lion/packages/ui/components
gerjanvangeest d2de984f0b
Feat/input file (#1881)
* feat(input-file): create input-file component

* chore: improvements after review

* chore: update after review

* chore: update translations

* chore: - fixed demo with form submit, submit was not prevented
       - fixed checking allowed file extensions
       - fixed clicking on select file button in drag and drop area

* chore: since the input-file does not upload files itself but enables user to select files, I replaced "upload" and "upload" with "select" and "selected" where applicable

* chore: - removed unused properties allowedFileTypes and allowedFileExtensions from lion-input-file
       - cleaned up docs

* chore: - changed type Array.<type> to Array<type>
       - removed redundant type definition

* fix: - FocusMixin: moved registering events for from connectedCallback to firstUpdated since _focusableNode is sometimes not available yet
     - SlotMixin: changed updated to update in since slots were rendered too late (related to previous fix in FocusMixin.js)

* fix: renamed lion-uploaded-file-list.js to lion-selected-file-list.js

* fix: fixed test for lion-selected-file-list

* fix: fixed typ

* wip

* fix: - fixed issue with multiple file selection where element would not select valid files after invalid ones
     - added getMessage method to FileValidation that returns empty string to prevent message being shown that error message must be configured
     - fixed tests

* chore: replaced `uploadOnFormSubmit` with `uploadOnSelect` and flipped the default value to false. When `uploadOnSelect` is set to true, the file will be uploaded as soon as it is selected.

* fix: - replaced `uploadOnFormSubmit` with `uploadOnSelect` and flipped the default value to false. When `uploadOnSelect` is set to true, the file will be uploaded as soon as it is selected.
     - fixed issue where a valid file was not selected and added to the file list if it was preceded by an invalid file

* chore: removed redundant README.md

* fix: fixed failing test

* chore: added missing type annotation

* chore: annotated event param as optional

---------

Co-authored-by: Danny Moerkerke <danny.moerkerke@ing.com>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2023-06-06 11:30:43 +02:00
..
accordion chore: added test 2023-03-14 13:40:40 +01:00
button fix(button): only pre-style non-shorthands for easier extension 2023-05-30 18:44:41 +02:00
calendar fix: lion-calendar: when determining if user interacted with a day button we no longer examine event.target but event.composedPath()[0] since it otherwise fails in Firefox 111+ 2023-04-19 15:34:03 +02:00
checkbox-group feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
collapsible feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
combobox fix(combobox): update option list after clear 2023-03-22 13:07:34 +01:00
core Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
dialog chore(dialog): add focus tests 2023-05-16 12:01:18 +02:00
drawer fix: changed import in type definition from @lion/core to lit 2022-11-08 07:58:17 +01:00
fieldset chore: introduce a component src folder 2022-10-31 16:55:07 +01:00
form feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
form-core Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
form-integrations/test Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
helpers feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
icon fix(icon): non-fatal console error for missing icons (#1884) 2023-01-23 12:37:18 +01:00
input fix(ui): type requestUpdate 2022-11-22 19:29:37 +01:00
input-amount feat(@lion/ui): add _currencyDisplayNodeSlot to LionInputAmount (#1988) 2023-06-01 08:55:42 +02:00
input-date fix(LionInputDatePicker): remove endless loop on InvalidDate modelValue (#1984) 2023-05-24 11:51:26 +02:00
input-datepicker fix(LionInputDatePicker): remove endless loop on InvalidDate modelValue (#1984) 2023-05-24 11:51:26 +02:00
input-email feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
input-file Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
input-iban fix: more sensible default for German iban validator translation 2023-03-15 09:42:48 +01:00
input-range feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
input-stepper feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
input-tel feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
input-tel-dropdown feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
listbox chore(overlays): add documentation about role=none is used 2023-03-20 14:18:53 +01:00
localize fix(localize): parseNumbers as heuristic if there is only 1 separator and 2 or less decimals e.g. 12.34 (#1976) 2023-05-17 12:07:00 +02:00
overlays Fix/dialog scroll to top ios (#1957) 2023-04-13 15:04:23 +02:00
pagination feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
progress-indicator feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
radio-group feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
select chore: - added test to assert that modelValue of lion-select is updated when the value or text of one or more options are changed 2023-02-01 17:15:51 +01:00
select-rich fix(@lion/ui): [select-rich] listbox element always focused in overlay 2023-02-09 18:41:18 +01:00
steps feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
switch fix(switch): remove one of the two nested role="switch" 2023-03-15 11:31:43 +01:00
tabs feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
textarea feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
tooltip fix(ui): overlay fixes (responsive backdrop/select-rich/tooltip) 2022-12-16 08:47:48 +01:00
validate-messages feat(combobox): add requireOptionMatch flag and MatchesOption validator 2023-03-16 18:18:40 +01:00