* 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>
* 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>
* Update verify.yml with setup-common-steps
This commit updates the verify.yml file to include the setup-common-steps job. The setup-common-steps job is responsible for setting up the common steps required for the verify workflow. By adding this job, we ensure that the necessary setup is performed before running the verify job.
The update includes the following changes:
- Added the setup-common-steps job to the jobs section.
- Added the needs keyword to the verify, browser-tests, node-tests, and node-tests-windows jobs, specifying that they depend on the setup-common-steps job.
* Update actions/setup-node and actions/checkout versions
This commit updates the versions of actions/setup-node and actions/checkout in the release.yml file.
* Rename 'setup-common-steps' to 'init' in verify.yml
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* Update setup-node and action/checkout to v3
* Update setup-node and action/checkout to v3 and rename setup-common-steps to init
---------
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* feat(@lion/ui): add _currencyDisplayNodeSlot to LionInputAmount
* Remove test for feature what is not supported anymore
* Add documentation
* Add test for customizable currency slot
* refactor: used IsDate validator instead of custom isValidDate function
* fix: used IsDate validator to validate modelValue before it's passed to lion-calendar's selctedDate
* test: Updated lion-input-datepicker tests to include example of handling invalid modelValue
* docs: Updated docs to include example with invalid modelValue
* refactor: updated returned type of __getSyncDownValue method
* changset: updated changeset for @lion/ui
* refactor: linting fix
* refactor: import path updated
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* refactor: label added to Faulty prefilled datepicker input
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* test: updated test to include more obvious invalid date value
---------
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* fix: possible fix for iOS focus issue WIP
* chore: added test for elementToFocusAfterHide WIP
* chore: dialog tests for elementToFocusAFterHide
* chore: added test to assert element specified in `elementToFocusAfterHide` config key of lion-dialog is scrolled into the viewport
* chore: - added test to assert that element specified in dialog config key `elementToFocusAfterHide` is not focused when the dialog is closed if the user deliberately moved focus to another element while the dialog was open
- added changeset
* chore: - removed unneeded button
- renamed this.__activeElement to this.__activeElementRightBeforeHide in OverlayController.js
- set this.__activeElementRightBeforeHide to this.contentNode.getRootNode().activeElement instead of document.activeElement
* chore: moved test to assert if element specified in dialog config key elementToFocusAfterHide is in viewport when dialog is closed to OverlayController.test.js
---------
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>