lion/packages/ui/exports/define
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
..
lion-accordion.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-button-reset.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-button-submit.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-button.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-calendar.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-checkbox-group.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-checkbox-indeterminate.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-checkbox.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-collapsible.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-combobox.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-dialog.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-drawer.js chore: moved lion-drawer to correct directories for new lion/ui setup 2022-11-07 14:48:26 +01:00
lion-field.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-fieldset.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-form.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-icon.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-amount.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-date.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-datepicker.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-email.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-file.js Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
lion-input-iban.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-range.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-stepper.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-tel-dropdown.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input-tel.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-input.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-listbox.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-option.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-options.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-pagination.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-progress-indicator.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-radio-group.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-radio.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-select-invoker.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-select-rich.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-select.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-selected-file-list.js Feat/input file (#1881) 2023-06-06 11:30:43 +02:00
lion-step.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-steps.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-switch-button.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-switch.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-tabs.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-textarea.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-tooltip.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
lion-validation-feedback.js feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00