Commit graph

241 commits

Author SHA1 Message Date
Oleksii Kadurin
f421bd7326
fix: update documentation and unit tests for validation 2023-11-07 11:21:41 +01:00
Thijs Louisse
7e72f60cc9
chore: cross-root-aria docs (#2107) 2023-10-23 11:46:40 +02:00
tkgroot
8bf54e669a
docs: fix code indentation (#2081)
- code not correctly indented
important for code replacement and transformation functions on docs generation

Signed-off-by: Tobias Kuppens Groot <tkuppensgroo@uos.de>
2023-10-04 17:00:22 +02:00
gerjanvangeest
b44bfc5d1f
feat: enable navigation to, selecting & give accessible message for calendar disabled dates (#1978)
Co-authored-by: Konstantinos Norgias <Konstantinos.Norgias@ing.com>
2023-07-04 10:36:18 +02:00
gerjanvangeest
7ec90dcb06
chore: add checkboxIndeterminate test suite (#2013) 2023-06-14 16:24:34 +02:00
gerjanvangeest
02e61285dd
Revert "fix: create exports for test-suites and test-helpers (#2010)" (#2012)
This reverts commit 3cfc9f9744.
2023-06-13 15:14:47 +02:00
gerjanvangeest
3cfc9f9744
fix: create exports for test-suites and test-helpers (#2010) 2023-06-13 08:47:56 +02:00
Konstantinos Norgias
c400ec94b9 chore: add info how to install each package 2023-06-08 18:07:43 +02:00
Konstantinos Norgias
33c0ff13da chore: add changeset & docs on how to enable VS Code autocomplete 2023-06-08 17:54:19 +02:00
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
Thijs Louisse
6893421779
chore: SlotRerenderObject aligned with reactive cycle (docs + changelog) (#1999) 2023-06-07 09:16:28 +02:00
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
Gyulai Levente
bdc7455610
feat(@lion/ui): add _currencyDisplayNodeSlot to LionInputAmount (#1988)
* feat(@lion/ui): add _currencyDisplayNodeSlot to LionInputAmount

* Remove test for feature what is not supported anymore
* Add documentation
* Add test for customizable currency slot
2023-06-01 08:55:42 +02:00
SynnefonK
ac2f2155f2
Merge pull request #1990 from ing-bank/subclasser-example/button
Subclasser example/button
2023-05-31 12:16:18 +02:00
Thijs Louisse
8293059fea chore: fix combobox extension demos 2023-05-30 19:13:30 +02:00
Thijs Louisse
b66662931f chore: extension example for bootstrap buttons 2023-05-30 18:45:51 +02:00
Thijs Louisse
3257060c39 chore: rename "Examples" to "Extensions" for clarity 2023-05-30 18:42:57 +02:00
Monika Nawój
e310c08af1
fix(LionInputDatePicker): remove endless loop on InvalidDate modelValue (#1984)
* 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>
2023-05-24 11:51:26 +02:00
Gerjan van Geest
4bf1633d0b chore(select-rich): update docs 2023-05-01 17:27:06 +02:00
gvangeest
eab0dcca78 chore: add missing import of lion-checkbox-indeterminate 2023-04-20 14:51:35 +02:00
Ioannis
19b17a99a3
chore: added missing word "Systems" (#1955) 2023-04-13 10:50:31 +02:00
Danny Moerkerke
593d330158
chore: wrote a blogpost on @lion/ui (#1946)
* chore: wrote a blogpost on @lion/ui

* Update docs/blog/introducing-lion-ui.md

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>

* Update docs/blog/introducing-lion-ui.md

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>

* Update introducing-lion-ui.md

Removed placeholder cover image

---------

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
2023-04-05 09:39:46 +02:00
gvangeest
5516bec4ba chore(overlays): add documentation about role=none is used 2023-03-20 14:18:53 +01:00
gerjanvangeest
a2b81b2693
feat(combobox): add requireOptionMatch flag and MatchesOption validator
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
2023-03-16 18:18:40 +01:00
gvangeest
1c18057cee fix(combobox): make the first occurrence of a string highlighted, instead of the last 2023-02-15 08:47:32 +01:00
SynnefonK
faae93376a
chore: camelCase linting for properties 2023-02-08 20:22:26 +01:00
Ahmet Yeşil
87e565caeb
fix: overlay docs error: 'return' outside of function (#1887) 2023-01-23 12:57:20 +01:00
Tobias Kuppens Groot
974a1bd635 docs: add reset and submit button imports
- add lion-button-reset and lion-button-submit imports
fixing the usage with native form demo
buttons were not imported and therefore didn't work accordingly

Signed-off-by: Tobias Kuppens Groot <tkuppensgroo@uos.de>
2023-01-05 11:17:21 +01:00
Tobias Kuppens Groot
03a90637bd docs: fix TemplateContentRenderError
- format section isTooltip
- removed trailing closing brackets which caused the error

Signed-off-by: Tobias Kuppens Groot <tkuppensgroo@uos.de>
2023-01-05 11:17:09 +01:00
Thijs Louisse
41d3fc7c1f chore: overlay demo fixes 2023-01-02 15:04:06 +01:00
Thijs Louisse
973b6ff9ac chore: small cleanup and RichSelect demo fix 2022-12-20 19:46:57 +01:00
Thijs Louisse
473cd0ffc4 chore: copy overlays docs assets inside ui pkg 2022-12-09 16:23:31 +01:00
Thijs Louisse
0bc604d600 fix: demos and overlay styles
chore: overlay documentation fixes
2022-12-09 15:54:28 +01:00
Thijs Louisse
64c0e26c20 feat: use dialog element for top layer functionality of all overlays 2022-12-09 15:54:28 +01:00
Thijs Louisse
5e15942386 chore: fix all form integrations tech debt 2022-12-09 15:54:28 +01:00
Thijs Louisse
f3191e8993 chore: decrease specificity of demo reset, so custom styles win 2022-12-09 15:54:28 +01:00
Thijs Louisse
5d30258dd6 chore: create-a-form docs 2022-12-05 13:25:15 +01:00
Thijs Louisse
2572012d8e chore: enhance SlotMixin docs 2022-11-23 16:19:09 +01:00
Thomas Allmer
9ddde34c5b chore: fix pdf link in docs 2022-11-23 12:05:38 +01:00
Thijs Louisse
d6d3810f7c chore: add a11y and SlotMixin docs 2022-11-17 12:08:12 +01:00
Danny Moerkerke
c7ea03577c chore: moved lion-drawer to correct directories for new lion/ui setup 2022-11-07 14:48:26 +01:00
Thomas Allmer
c9e060fc21 feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
Thomas Allmer
fab6b57b82 feat: move repo to npm workspaces 2022-10-20 10:20:12 +02:00
Joren Broekema
2d58320e51
feat: format number add thousandSeparator option, fix type decimalSep (#1774) 2022-09-08 09:19:07 +02:00
Martin Pool
b3d8d62be4
Merge pull request #1746 from ing-bank/chore/bump-ajax-v1
chore(ajax): bump to major version 1.0.0
2022-08-15 18:46:14 +02:00
Danny Moerkerke
da4652e2b1
Merge pull request #1745 from ing-bank/feature/accordion-focus-handling
fix: fixed focus handling, focus now jumps from header to panel when …
2022-08-15 09:13:24 +02:00
Thijs Louisse
facc094193
chore: reset light dom styles in mdjs-preview (#1752)
* chore: prettier format portal styles

* chore: reset light dom styles in mdjs-preview
2022-08-11 11:28:44 +02:00
Hardik Pithva
a616fd8dca
feat(progress-indicator): add support for progress bar (#1713)
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
2022-08-11 08:55:25 +02:00
Danny Moerkerke
236fb8e744 Merge branch 'master' into feature/accordion-focus-handling 2022-08-08 11:46:54 +02:00
rtemision
eac75227ad
Fix overlay docs: correct events names (#1751) 2022-07-27 14:11:14 +02:00
Martin Pool
18287a6465 chore(ajax): bump to major version 1.0.0 2022-07-19 10:28:43 +02:00
Danny Moerkerke
be30ff540b fix: fixed focus handling, focus now jumps from header to panel when tabbing 2022-07-11 16:22:13 +02:00
gerjanvangeest
7239d60466
Fix/input tel format options (#1733)
* fix(input-tel): remove unwanted characters in parser

* feat(input-tel-dropdown): export getFlagSymbol function

* feat(input-tel): add formatCountryCodeStyle option
2022-06-15 08:11:40 +02:00
Thijs Louisse
040c5b58c0 chore: markdown linting 2022-06-09 15:12:15 +02:00
Thijs Louisse
f46d908769 feat(rocket-preset-extend-lion-docs): allow globalReplaceFunction 2022-06-09 15:12:15 +02:00
Thijs Louisse
63f8f6fd36 feat(remark-extend): allow globalReplaceFunction 2022-06-09 15:12:15 +02:00
gerjanvangeest
abcff8c9e2
fix(input-tel): use pattern validation message for too-short/too-long (#1693) 2022-05-31 11:00:37 +02:00
Martin Pool
6c0be8e45a docs(ajax): update the config and cache options in overview.md 2022-05-30 15:48:54 +02:00
gvangeest
01fd0d2023 feat(input-tel-dropdown): add optgroups when preferredCountries are shown 2022-05-23 17:41:24 +02:00
gvangeest
6c0b0201e6 chore: set correct locale in portal 2022-05-17 11:38:32 +02:00
Danny Moerkerke
466471cbe9 fix: replaced checkedValue with modelValue 2022-05-16 12:11:59 +02:00
Danny Moerkerke
0ee55369bc Merge branch 'master' into fix/checked-index-and-value 2022-05-16 12:02:20 +02:00
gvangeest
a28686ee72 feat(listbox): add type ahead option 2022-05-04 16:01:56 +02:00
Joren Broekema
4129786909
feat: add mixed-state indeterminate checkbox feature (#1669)
* fix: don't switch to tri-state if all child boxes are same checked state

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
2022-05-03 13:34:24 +02:00
Danny Moerkerke
23d4d0014d fix: fixes issue 1483
replaced `getElementById` with `querySelector` so correct element  is also selected when size = inline
2022-05-03 11:39:36 +02:00
Konstantinos Norgias
43dd132013 fix: do not show ResultValidator feedback message if input field is empty 2022-04-19 10:27:38 +02:00
Thijs Louisse
780d8a9691
Merge pull request #1658 from ing-bank/fix/switchUnregister
Fix/switch unregister
2022-04-11 11:37:23 +02:00
Thijs Louisse
24a58cdf57 chore: add input-tel(-dropdown) to umbrella-form + test unregister
Co-authored-by: Konstantinos Norgias <Konstantinos.Norgias@ing.com>
2022-04-11 11:17:53 +02:00
Thomas Allmer
974d0872a0 chore: fix published docs pathes 2022-04-06 14:46:05 +02:00
Thijs Louisse
034e4bb88a chore: fix h-output helper for demos 2022-04-06 12:30:24 +02:00
Thomas Allmer
e913489344 chore: portal needs scoped registry polyfill 2022-04-05 17:27:21 +02:00
Knorgias
0f8488e13c
Merge pull request #1649 from ing-bank/chore/add-doc-validators-with-enum
chore: add eg for validator class that returns enum
2022-04-05 13:22:57 +02:00
Konstantinos Norgias
5cc64991b1 chore: add eg for validator class that returns enum 2022-04-05 12:53:46 +02:00
Thomas Allmer
aa8b89161d feat: update to @open-wc/scoped-element not needing a polyfill 2022-04-05 12:38:28 +02:00
Konstantinos Norgias
a790586b8b chore: add eg for label-sr-only attribute on input element 2022-04-04 16:39:37 +02:00
Thomas Allmer
75065f477e chore: fix imports in docs pages blocking deploys 2022-04-01 14:34:11 +02:00
Konstantinos Norgias
672c8e99b6 chore: update header order, components list and links 2022-03-30 12:37:30 +02:00
Thijs Louisse
0b5ed48e74 chore: fix double import in demo (breaks build) 2022-03-21 10:33:22 +01:00
Thijs Louisse
9434a2fae7 chore: improve custom Field tutorial 2022-03-16 16:29:01 +01:00
Thijs Louisse
d0bcfc08e7 chore: add input-tel to umbrella forms 2022-03-16 16:29:01 +01:00
Thijs Louisse
32b322c37e feat(input-tel-dropdown): new component LionInputTelDropdown
Co-authored-by: David Vossen<David.Vossen@ing.com>
2022-03-16 16:29:01 +01:00
Thijs Louisse
a882c94f11 feat(input-tel): new component LionInputTel 2022-03-16 16:29:00 +01:00
Thijs Louisse
8314b4b3ab chore: advanced version of h-output demo helper 2022-03-16 16:29:00 +01:00
Thijs Louisse
8d44b1d531 chore: select-rich Subclasser examples 2022-03-16 16:29:00 +01:00
Thijs Louisse
e3e761afb4 chore: select-rich doc corrections 2022-03-16 16:29:00 +01:00
Thijs Louisse
9c1dfdcd12 feat(form-core): add live formatter functionality via .preprocessor 2022-03-16 16:28:59 +01:00
jorenbroekema
17ae20df86 chore: refactor to reactive controller 2022-02-28 16:49:44 +01:00
jorenbroekema
57d2c62b78 feat(core): add ScopedStylesMixin 2022-02-28 13:39:55 +01:00
Thijs Louisse
ceea0aa246
Merge pull request #1603 from ing-bank/experiment-@lion
feat: remove fixed versions @lion and upgrade TSC
2022-02-23 14:55:45 +01:00
jorenbroekema
b4f6395cd8 chore: add documentation about typescript in lion 2022-02-22 14:48:03 +01:00
jorenbroekema
b9fb3bfd37 chore: add documentation about lion versioning 2022-02-22 14:30:18 +01:00
gerjanvangeest
e2af92d6af
Merge pull request #1597 from sbolz/patch-1
chore(docs): correct event-name to close overlay
2022-02-10 14:44:03 +01:00
jorenbroekema
bbb83f48bf feat: remove fixed versions @lion 2022-02-07 17:24:31 +01:00
gvangeest
80d5dec3e5 chore: upgrade node version 2022-02-02 13:57:31 +01:00
Sven Bolzern
6c4270427a chore(docs): correct event-name to close overlay 2022-01-18 18:09:39 +01:00
gvangeest
be84466311 fix(button): increase click area to meet WCAG success criteria 2021-12-15 11:10:45 +01:00
Joren Broekema
1340c1bd61
Merge pull request #1573 from jrobind/fix/disabledTabs
fix(tabs): prevent selection of disabled tabs.
2021-12-13 12:06:08 +01:00
James Robinson
eafa7d03d7 fix(tabs): prevent selection of disabled tabs. 2021-12-13 10:01:53 +00:00
Gaël Poupard
3393841522
fix(typo): in accessibility.md
Looks like a typo, am I wrong?

Thanks for this content @erikkroes, it's really useful ❤️
2021-12-08 14:16:41 +01:00
erik
f016883d7e
chore: accessibility blog 2021-12-07 11:05:55 +01:00