Commit graph

903 commits

Author SHA1 Message Date
Thijs Louisse
fb0813bc6d fix(overlays): don't use hidesOnOutsideEsc in configs, as it disallows nested overlays (a11y concern) 2025-07-29 17:22:12 +02:00
vbabu35
f19befe9c4
fix: preselection in combobox
Co-authored-by: JYOTHI <JYOTHI@Jyomayi.local>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2025-07-29 17:21:22 +02:00
Thijs Louisse
da46980da1 fix(overlays): avoid native dialog esc interference 2025-07-28 17:50:10 +02:00
sainzrow
765a1a298c
fix(combobox): add support for disabled and readonly states
* fix(combobox): don't use setAttribute for disabled/enabled attributes

How to reproduce this bug:

1. Go to https://lion.js.org/components/combobox/overview/ or just use the combobox in your application.
2. Inspect the combobox in the browser. Click on the `<lion-combobox>` element at the DOM inspector.
3. At the JavaScript console, print `$0.disabled`. Observe it is currently `false`, and the user can interact with it normally.
4. (optional) Run `$0.disabled =true`. Observe the user cannot interact with it anymore. That's expected.
5. Run `$0.disabled = false`.

BUG: The user cannot interact with the combobox anymore, despite `disabled` being false.

Root cause: If you inspect the `<input>` element, you can see it has `disabled="false"`.

The [specs](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#enabling-and-disabling-form-controls:-the-disabled-attribute) say:

> The `disabled` content attribute is a [boolean attribute](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attribute).
>
> A form control is **disabled** if any of the following are true:
> * the element is a `button`, `input`, `select`, `textarea`, or form-associated custom element, and the `disabled` attribute is specified on this element (regardless of its value);

And [also](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attribute):

> A number of attributes are **boolean attributes**. The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.

Thanks to @thematho for finding the root cause.

* fix(combobox): add support for disabled and readonly states with corresponding tests

* Update packages/ui/components/combobox/src/LionCombobox.js

Co-authored-by: Thijs Louisse <t_louisse@hotmail.com>

* Update packages/ui/components/combobox/src/LionCombobox.js

Co-authored-by: Thijs Louisse <t_louisse@hotmail.com>

* Update packages/ui/components/combobox/src/LionCombobox.js

Co-authored-by: Thijs Louisse <t_louisse@hotmail.com>

* fix(combobox): added accessibility tests

---------

Co-authored-by: Denilson Sá Maia <denilsonsa@gmail.com>
Co-authored-by: Thijs Louisse <t_louisse@hotmail.com>
2025-07-28 16:29:32 +02:00
Thijs Louisse
9a80ba9c55 chore: test for disconnected overlay 2025-07-28 15:58:44 +02:00
Riovir
4460db7630 fix(dedupe-mixin): resolve version conflict between v1 and v2
@open-wc/scoped-elements 3.0.5 depends on the v1 version of the @open-wc/dedupe-mixin. The 3.0.6 version however depends on the v2. This causes a version conflict with @lion/ui.
2025-07-26 13:02:39 +02:00
github-actions[bot]
226f0cf003
Version Packages (#2540)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-17 16:47:11 +02:00
Bilal Özlü
9a4a8735b0
fix: editing negative numbers (#2538)
* fix: editing negative numbers

* fix: editing negative numbers (changeset added)
2025-07-17 14:20:26 +02:00
github-actions[bot]
eef0c48e41
Version Packages (#2533)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-07 09:46:02 +02:00
Stijn Van Asschodt
85666d6c49
feat(input-tel): use first preferred region to set a default region
* feat(input-tel): use first preferred region to set a default region

Takes priority over locale, but comes after user input

* chore(input-tel): add changeset
2025-07-03 21:00:05 +02:00
Stijn Van Asschodt
dc5d224e98
fix(input-tel): use full locale to translate country names in dropdown (#2526)
* fix(input-tel): use full locale to translate country names in dropdown

* test(input-tel): add test for nameForLocale in input tel dropdown

* test(input-tel): update name for locale test suite to fr-BE locale
2025-07-02 09:56:50 +02:00
github-actions[bot]
af6e47e4b5
Version Packages (#2519)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-21 11:17:18 +02:00
gerjanvangeest
cbe8f8656b
fix(input-file): set buttonLabel initially (#2524)
* fix(input-file): set buttonLabel initially

* chore(input-file): add test for locale change
2025-05-21 09:54:39 +02:00
selcen.sonmez
a0d334dc54
feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516)
* feat(input-datepicker): add Turkish translations

* chore: add changeset for Turkish translation

* feat(input-datepicker): add Turkish translations

* chore: consolidate all Turkish translations into a single changeset
2025-05-15 16:56:48 +02:00
gerjanvangeest
bcf269d92f
chore(input-stepper): small edit after previous input-stepper fix (#2523) 2025-05-15 08:05:51 +02:00
manuel
cf4a8fd1b0
feat(input-stepper): align value with step size (#2511)
* feat(input-stepper): add alignToStep property to align value with step size

* Create silver-eyes-count.md

* refactor: make alignTosTep property behavior as default behavior and remove property attribute

* test(input-stepper): handle min value as Infinity and update tests for decrement/increment behavior

---------

Co-authored-by: Manuel Servais <manuel.servais@ing.com>
2025-05-14 16:46:00 +02:00
Vladimir Skorokhod
f9f55193c3
LionInputFile: Customize the text content of the selected files for screen reader if uploadOnSelect is enabled (#2509)
* update lion input file component and en translations

* update tests for input file

* add changeset

* add german and russian translations

* chore: add NL translations and fix small 2 bugs in fileNameDescriptionLabels

* fix lint error

---------

Co-authored-by: gerjanvangeest <Gerjan.van.Geest@ing.com>
2025-05-13 13:00:20 +02:00
Mete Abduraman
07b089e80f
fix(validate-mixin): determine required or result validators based on characteristics (#2498)
* fix(validate-mixin): determine if a required validator or result validator has been registered based on characteristics

* chore(validate-mixin): create changeset
2025-05-08 08:42:12 +02:00
github-actions[bot]
6d7e6a6487 Version Packages 2025-04-30 09:31:49 +02:00
Thijs Louisse
3c77296c40 chore: redo release, so that @lion/ui 0.11.4 will be published 2025-04-30 09:29:34 +02:00
github-actions[bot]
50be120c4f Version Packages 2025-04-30 09:20:55 +02:00
Thijs Louisse
c3021f8e7f fix(form-core): make sure that slots with property fallbacks ignore initialization updates (undefined on firstUpdated) 2025-04-30 08:33:31 +02:00
ByoungYong Kim
1769e291d4
Revert version package PR (#2513)
* chore: wireit actions v2

* Update wireit version

* Revert "Version Packages (#2508)"

This reverts commit 2f47f23494.
2025-04-28 08:57:01 +02:00
github-actions[bot]
2f47f23494
Version Packages (#2508)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-24 15:44:28 +02:00
gerjanvangeest
23cd9841ed
fix(combobox): do not submit form if overlay of combobox is opened and ENTER is hit (#2481) 2025-04-08 15:07:42 +02:00
github-actions[bot]
95b70d32c8 Version Packages 2025-03-27 12:29:18 +01:00
Thijs Louisse
48ee70e813 feat(rocket-preset-extend-lion-docs): update remark-extend (support frontmatter) 2025-03-27 12:26:08 +01:00
Thijs Louisse
7eb8588bb1 fix(remark-extend): support md files with frontmatter 2025-03-27 08:57:32 +01:00
github-actions[bot]
656b39e0e4 Version Packages 2025-03-20 11:40:21 +01:00
Thijs Louisse
e0d2a759b6 fix(providence): fix ast cache (prevent from endless expanding); expose amountOfCachedProjects 2025-03-20 10:29:39 +01:00
Thijs Louisse
9827228b83 fix(providence): use globby again 2025-03-20 10:29:39 +01:00
github-actions[bot]
87a1cb4d5b Version Packages 2025-03-19 10:41:20 +01:00
Thijs Louisse
163af2eb42 chore: prepare documentation for cross-compatibility rocket and astro 2025-03-19 10:35:07 +01:00
Sebastian Kamiński
a181a035e9
fix: bug that accepted 3 digit year (#2489)
* fix: bug that accepted 3 digit year

* fix: bug that accepted 3 digit year

* Update packages/ui/components/localize/test/date/parseDate.test.js

---------

Co-authored-by: Thijs Louisse <t_louisse@hotmail.com>
2025-03-13 08:34:56 +01:00
github-actions[bot]
593b753f0f
Version Packages (#2470)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-06 11:05:47 +01:00
gerjanvangeest
d86c1f7439
fix(select-rich): block arrow key interaction when singleOption is set (#2474) 2025-02-13 14:35:52 +01:00
ByoungYong Kim
22b8f24804
Fix indeterminate checkbox edge cases (#2458)
* 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
2025-02-04 11:08:57 +01:00
github-actions[bot]
eb4ed0151a Version Packages 2025-02-03 12:58:20 +01:00
Thijs Louisse
87ba78e6da fix(providence): provide right ast to oxcTraverse 2025-02-03 12:54:39 +01:00
github-actions[bot]
50170d4edc Version Packages 2025-02-03 11:31:35 +01:00
Thijs Louisse
103df25306 fix(providence): pin oxc-parser; fix default edge cases 2025-02-03 11:26:33 +01:00
github-actions[bot]
4210edf798 Version Packages 2025-01-31 19:57:04 +01:00
Thijs Louisse
0d3b2fdeb5 fix(providence): update oxc-parser 2025-01-31 19:53:20 +01:00
github-actions[bot]
eea6726289 Version Packages 2025-01-30 16:53:27 +01:00
gerjanvangeest
41fecd367e fix(select-rich): allow arrowLeft and arrowRight to change the value when navigateWithinInvoker is true and dropdown is closed 2025-01-30 16:14:11 +01:00
Thijs Louisse
3fe4555cba chore: make sure we do not release a new minor 2025-01-30 16:13:44 +01:00
Thijs Louisse
02478fadec chore: allow build to proceed 2025-01-30 15:53:09 +01:00
Thijs Louisse
29b729ed84 fix(ui): [input-amount] make sure that previous locale is not used for parsing on user-edit with <= 2 decimals 2025-01-30 15:53:09 +01:00
Jakub Gurgacz
b9833795b1
Update polish translations for MinNumber and MaxNumber (#2459)
* Update polish translations for MinNumber and MaxNumber

Polish translations of the MinNumber and MaxNumber validation error messages indicate that min, max is an open interval.

* add changeset
2025-01-29 11:14:47 +01:00
github-actions[bot]
04a61d1e10 Version Packages 2025-01-29 10:33:28 +01:00