This fix is similar to the previous commit.
Under very specific circumstances on a very complicated application logic, a file input field (that
extends from FocusMixin) gets created and immediately destroyed. This unfortunately causes an
error, because the `disconnectedCallback()` gets called to remove the event listeners for a
component that hasn't been fully set up.
> Uncaught TypeError: this._focusableNode is null
* fix(validate-mixin): determine if a required validator or result validator has been registered based on characteristics
* chore(validate-mixin): create changeset
* Add failing tests
* Fix the issues with indeterminate checkbox
* Update the fix
* Clean up the code
* Add changeset
* Fix a type issue
* Refactor the code
* Fix a bug regarding disabled checked sub checkbox
* Add test case where subCheckboxes are added and removed dynamically
* Make a few node reference optional as it spits undefined error when the element is removed
* fix(input-amount): parse amount always on locale once the amount is formatted
* chore: add unit test
* chore: add some description
* chore: update playwright script to install dependencies
* Update .github/workflows/verify-pr.yml
* chore: set formatOptions temp and cleanup for programmatic api
* feat(form-core): add "user-edit" mode to formatOptions while editing existing value of a form control
* chore: enhance code readability and robustness
---------
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
* fix(form-core): make use of `validatorName` and `type` to check validator instance
* fix(form-core): check for nullability for disabled prop
* fix: add `_$isValidator$` property to improve the check
* fix: disable dot notation to avoid the renaming for the prop during build/minification
* fix: disable dot notation to avoid the renaming for the prop during build/minification
* test: add check for _$isValidator$
* chore: catch edge cases in cem script
* chore: cleanup, docs, and add prop on ctor to be more unobtrusive
* chore: changeset
---------
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
* update prettier to v3.x
* update prettify in @lion/nodejs-helpers to match updated prettier
* remove redundant await for promise
* remove `@types/prettier` as it's now included in `prettier`
* format lit template snippets with `jsx`
* 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>