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
32ab5bfd41
fix(button): only pre-style non-shorthands for easier extension
2023-05-30 18:44:41 +02:00
SynnefonK
7089ea54e3
Merge pull request #1963 from Sciurus7/autofocus-ui
...
fix(form-core) sync autofocus to focusable node (fixes #1775 )
2023-05-25 10:34:39 +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
gerjanvangeest
88e6ca03ca
fix(localize): parseNumbers as heuristic if there is only 1 separator and 2 or less decimals e.g. 12.34 ( #1976 )
2023-05-17 12:07:00 +02:00
gerjanvangeest
56b3d334f6
chore(dialog): add focus tests
2023-05-16 12:01:18 +02:00
Danny Moerkerke
12f1800806
fix: lion-calendar: when determining if user interacted with a day button we no longer examine event.target but event.composedPath()[0] since it otherwise fails in Firefox 111+
2023-04-19 15:34:03 +02:00
Sciurus7
251de2c84e
fix(form-core) use updated over attributeChangedCallback
2023-04-17 16:42:48 +02:00
Sciurus7
2683a73080
fix(form-core) sync autofocus to focusable node
2023-04-14 13:39:05 +02:00
Danny Moerkerke
5b8d655f10
Fix/dialog scroll to top ios ( #1957 )
...
* 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>
2023-04-13 15:04:23 +02:00
Barni
a5f35158c0
feat(@lion/ui): add _previousIconTemplate and _nextIconTemplate to LionCalendar ( #1954 )
2023-04-03 17:00:30 +02:00
gvangeest
ddea63b381
fix(combobox): update option list after clear
2023-03-22 13:07:34 +01: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
barni52
1f018bafdf
feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker
2023-03-16 15:30:02 +01:00
Thijs Louisse
adfa29a049
fix(switch): remove one of the two nested role="switch"
2023-03-15 11:31:43 +01:00
gvangeest
0d4c42ab64
fix(listbox): allow use of arrow keys when focus is not on listbox
2023-03-15 11:10:48 +01:00
Danny Moerkerke
3256892ce9
fix: checked-changed event is no longer fired on element initialization when checked is set through attribute
2023-03-15 10:59:04 +01:00
Pascal Schneider
183c86af26
fix: more sensible default for German iban validator translation
2023-03-15 09:42:48 +01:00
Danny Moerkerke
075d5077bd
Merge pull request #1934 from ing-bank/fix/accordion-selector-fix
...
fix: changed selectors for invokers and content to only select slotte…
2023-03-15 09:35:53 +01:00
Danny Moerkerke
7cba2ef859
chore: added test
2023-03-14 13:40:40 +01:00
jorenbroekema
42a463eee1
fix(ui/overlays): set <dialog> wrapping el padding to 0
2023-03-11 00:05:23 +01:00
Danny Moerkerke
3f1c83a180
fix: changed selectors for invokers and content to only select slotted elements that are direct descendants. This is to prevent that slotted elements in accordion content and invokers are also selected and the amount of invokers and content is incorrect
2023-03-09 15:33:24 +01:00
gvangeest
4226a0144c
fix(combobox): add translations
2023-02-28 15:03:55 +01:00
gvangeest
943618fdcb
fix(combobox): fix direct open and closing of the overlay on focus of empty input when showAllOnEmpty
2023-02-23 12:39:36 +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
Danny Moerkerke
84173cdba1
fix(@lion/ui): [select-rich] listbox element always focused in overlay
...
when the overlay is shown, the "autofocus" attribute is added to _listboxNode (_inputNode) to make sure that keyboard navigation continues to work when the element is inside a bottomsheet. When the overlay is closed the attribute is removed.
2023-02-09 18:41:18 +01:00
SynnefonK
faae93376a
chore: camelCase linting for properties
2023-02-08 20:22:26 +01:00
Danny Moerkerke
eff3259eea
Feat/localize manager override data ( #1900 )
...
feat: - added `allowOverridesForExistingNamespaces` parameter to `addData` method of LocalizeManager to allow for changing data in a namespace for a given locale
2023-02-02 17:04:49 +01:00
gvangeest
13185da02a
fix(localize): don't set modelValue to unparseable if date has a negative timezone
...
Co-authored-by: Danny Moerkerke<Danny.Moerkerke@ing.com>
2023-02-01 17:42:19 +01:00
Danny Moerkerke
a47a6e615b
chore: - added test to assert that modelValue of lion-select is updated when the value or text of one or more options are changed
...
- added changeset
2023-02-01 17:15:51 +01:00
Thijs Louisse
853c517ec0
fix(select): sync values with async option contents
2023-02-01 17:15:51 +01:00
Thijs Louisse
cee40e5588
chore(@lion/ui): all tests side effect free wrt localize
2023-02-01 16:06:30 +01:00
Thijs Louisse
467ba6bf0b
feat(@lion/ui): localize side effect free internally
2023-02-01 16:06:30 +01:00
Thijs Louisse
6712934782
feat(@lion/ui): getLocalizeManager method, for side-effect-free localize
2023-02-01 16:06:30 +01:00
gvangeest
0efce8e18b
fix(localize): parse negative numbers correctly
2023-01-25 11:06:17 +01:00
Thomas Allmer
851329eee1
fix: correct msgLit return type
2023-01-24 10:32:04 +01:00
Joren Broekema
a5330c922c
fix(icon): non-fatal console error for missing icons ( #1884 )
...
* fix(icon): non-fatal console error for missing icons
2023-01-23 12:37:18 +01:00
Ryan
980a67eba1
Update namespace type for localize mixin
2023-01-23 12:24:50 +01:00
gvangeest
9f6270b340
fix(select-rich): set focusableNode correctly so focused and focused-visible attributes are set when invoker gets focus
2023-01-16 10:06:18 +01:00
Danny Moerkerke
9fb14fa1c5
fix: - rearranging invokers and content for a correct tab order is now implemented by changing the slot attributes of both instead of moving them
...
- changed css for this implementation
- fixed tests
- added changeset
2023-01-16 09:57:24 +01:00
Thijs Louisse
af2e0293a1
fix(ui): [overlays]: enhance adoptStyles fallback and make testable
2023-01-12 11:35:01 +01:00
gvangeest
9a43dc4d89
fix(input-tel-dropddown): add translations for 'All countries' and 'Suggested countries' labels
2023-01-04 11:17:49 +01:00
gerjanvangeest
fd09f652d4
fix(select-rich): solve case of having singleOption and hassNoDefaultSelected at the same time ( #1863 )
2022-12-29 10:37:40 +01:00
Thijs Louisse
973b6ff9ac
chore: small cleanup and RichSelect demo fix
2022-12-20 19:46:57 +01:00
Thijs Louisse
7ac0a42224
fix(ui): overlay fixes (responsive backdrop/select-rich/tooltip)
2022-12-16 08:47:48 +01:00
Thijs Louisse
5e70716862
fix(ui): prevent infinite tooltip loops
2022-12-15 16:52:02 +01:00
Danny Moerkerke
71906ed316
chore: - simplified selectors for content and invoker
...
- mentioned accordion in changeset
2022-12-14 13:56:27 +01:00
Danny Moerkerke
c1fa12fbd2
fix: narrowed the scope of the selectors that query [slot=invoker] and [slot=content] to prevent that any nested elements with [slot=invoker] and [slot=content] are moved to slot=_accordion as well
2022-12-14 13:56:27 +01:00
Thijs Louisse
fafd922251
fix(ui): add adopted stylesheets once; attach correctly to body
2022-12-12 14:31:14 +01:00