lion/docs/components
Danny Moerkerke 8b9c8050e5
Fix/upload response (#2000)
* 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

* chore: corrected property names in demo and removed demo of prefilled state

* chore: renamed `_fileSelectResponse` back to `uploadResponse` and restored demo of prefilled state

---------

Co-authored-by: gvangeest <gerjan.van.geest@ing.com>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2023-06-07 12:57:34 +02:00
..
accordion feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
button chore: extension example for bootstrap buttons 2023-05-30 18:45:51 +02:00
calendar feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
checkbox-group chore: add missing import of lion-checkbox-indeterminate 2023-04-20 14:51:35 +02:00
collapsible feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
combobox chore: fix combobox extension demos 2023-05-30 19:13:30 +02:00
dialog fix: demos and overlay styles 2022-12-09 15:54:28 +01:00
drawer chore: moved lion-drawer to correct directories for new lion/ui setup 2022-11-07 14:48:26 +01:00
fieldset feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
form chore: camelCase linting for properties 2023-02-08 20:22:26 +01:00
icon feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-amount feat(@lion/ui): add _currencyDisplayNodeSlot to LionInputAmount (#1988) 2023-06-01 08:55:42 +02:00
input-date feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-datepicker fix(LionInputDatePicker): remove endless loop on InvalidDate modelValue (#1984) 2023-05-24 11:51:26 +02:00
input-email feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-file Fix/upload response (#2000) 2023-06-07 12:57:34 +02:00
input-iban feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-range feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-stepper feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-tel feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
input-tel-dropdown chore: rename "Examples" to "Extensions" for clarity 2023-05-30 18:42:57 +02:00
listbox fix(combobox): make the first occurrence of a string highlighted, instead of the last 2023-02-15 08:47:32 +01:00
pagination feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
progress-indicator feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
radio-group feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
select feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
select-rich chore(select-rich): update docs 2023-05-01 17:27:06 +02:00
steps feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
switch feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
tabs feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
textarea feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
tooltip feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
index.11tydata.cjs chore: improve social media images 2021-03-15 16:17:44 +01:00
index.md chore: update header order, components list and links 2022-03-30 12:37:30 +02:00