@lion/ui 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/components/calendar/src/LionCalendar.js +13 -3
  2. package/components/combobox/src/LionCombobox.js +1 -0
  3. package/components/combobox/test/lion-combobox.test.js +25 -0
  4. package/components/listbox/test-suites/ListboxMixin.suite.js +2 -1
  5. package/components/localize/src/number/parseNumber.js +7 -1
  6. package/components/localize/test/number/parseNumber.test.js +18 -4
  7. package/components/overlays/src/OverlayController.js +25 -6
  8. package/components/overlays/test/OverlayController.test.js +15 -1
  9. package/custom-elements.json +67 -27
  10. package/dist-types/components/calendar/src/LionCalendar.d.ts +2 -0
  11. package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
  12. package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
  13. package/dist-types/components/listbox/test-suites/ListboxMixin.suite.d.ts.map +1 -1
  14. package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
  15. package/dist-types/components/overlays/src/OverlayController.d.ts +2 -0
  16. package/dist-types/components/overlays/src/OverlayController.d.ts.map +1 -1
  17. package/dist-types/tsconfig.tsbuildinfo +1 -1
  18. package/docs/components/checkbox-group/overview.md +2 -2
  19. package/docs/components/checkbox-group/use-cases.md +1 -0
  20. package/docs/components/collapsible/overview.md +1 -1
  21. package/docs/components/combobox/overview.md +1 -1
  22. package/docs/components/combobox/use-cases.md +1 -1
  23. package/docs/components/dialog/overview.md +1 -1
  24. package/docs/components/fieldset/overview.md +5 -5
  25. package/docs/components/form/overview.md +3 -3
  26. package/docs/components/icon/use-cases.md +1 -1
  27. package/docs/components/input/overview.md +1 -1
  28. package/docs/components/input-amount/overview.md +3 -3
  29. package/docs/components/input-date/overview.md +3 -3
  30. package/docs/components/input-datepicker/overview.md +5 -5
  31. package/docs/components/input-email/overview.md +2 -2
  32. package/docs/components/input-iban/overview.md +2 -2
  33. package/docs/components/input-range/overview.md +2 -2
  34. package/docs/components/input-stepper/overview.md +1 -1
  35. package/docs/components/input-tel/overview.md +1 -1
  36. package/docs/components/input-tel/use-cases.md +6 -6
  37. package/docs/components/input-tel-dropdown/overview.md +1 -1
  38. package/docs/components/radio-group/overview.md +3 -3
  39. package/docs/components/select-rich/overview.md +7 -10
  40. package/docs/components/select-rich/use-cases.md +54 -69
  41. package/docs/components/tabs/examples.md +1 -1
  42. package/docs/fundamentals/index.md +4 -4
  43. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  44. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  45. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  46. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  47. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  48. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  49. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  50. package/docs/fundamentals/systems/core/overview.md +1 -1
  51. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  52. package/docs/fundamentals/systems/form/model-value.md +1 -1
  53. package/docs/fundamentals/systems/form/overview.md +28 -28
  54. package/docs/fundamentals/systems/form/validate.md +1 -1
  55. package/docs/fundamentals/systems/localize/overview.md +4 -4
  56. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  57. package/docs/fundamentals/systems/overlays/overview.md +5 -10
  58. package/docs/fundamentals/systems/overlays/rationale.md +3 -6
  59. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  60. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  61. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  62. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  63. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  64. package/docs/guides/index.md +8 -8
  65. package/docs/guides/principles/index.md +5 -5
  66. package/docs/guides/principles/styling.md +1 -1
  67. package/package.json +1 -1
@@ -21,11 +21,11 @@ export const main = () => html`
21
21
  `;
22
22
  ```
23
23
 
24
- > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/form/overview.md)'s serialization result.
24
+ > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/form/overview.md)'s serialization result.
25
25
 
26
26
  ## Features
27
27
 
28
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/fieldset/overview.md),
28
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/fieldset/overview.md),
29
29
  it has all the features a fieldset has.
30
30
 
31
31
  ## Installation
@@ -3,6 +3,7 @@
3
3
  ```js script
4
4
  import { html } from '@mdjs/mdjs-preview';
5
5
  import '@lion/ui/define/lion-checkbox-group.js';
6
+ import '@lion/ui/define/lion-checkbox-indeterminate.js';
6
7
  import '@lion/ui/define/lion-checkbox.js';
7
8
  ```
8
9
 
@@ -22,7 +22,7 @@ export const main = () => html`
22
22
  ## Features
23
23
 
24
24
  - Use `opened` attribute or `toggle()` method to render default open.
25
- - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/button/overview.md) or native `button` with custom styling.
25
+ - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/button/overview.md) or native `button` with custom styling.
26
26
  - Observe the state with the help of `@opened-changed` event.
27
27
  - `show()` and `hide()` are helper methods to hide or show the content from outside.
28
28
 
@@ -33,7 +33,7 @@ export const main = () => html`
33
33
  `;
34
34
  ```
35
35
 
36
- [...show more](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/combobox/examples.md)
36
+ [...show more](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/combobox/examples.md)
37
37
 
38
38
  ## Features
39
39
 
@@ -433,4 +433,4 @@ export const complexObjectChoiceValue = () => html` <complex-object-combobox
433
433
  ## Listbox compatibility
434
434
 
435
435
  All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
436
- See the [listbox documentation](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/listbox/overview.md) for more information.
436
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/listbox/overview.md) for more information.
@@ -54,6 +54,6 @@ import '@lion/ui/define/lion-dialog.js';
54
54
  ## Changing the configuration
55
55
 
56
56
  You can use the `.config` property on the dialog to change the configuration.
57
- The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/overlays/configuration.md).
57
+ The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/overlays/configuration.md).
58
58
 
59
59
  The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
@@ -20,9 +20,9 @@ export const main = () => html`
20
20
 
21
21
  We have three specific fieldset implementations:
22
22
 
23
- - [form](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/form/overview.md)
24
- - [checkbox-group](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/checkbox-group/overview.md)
25
- - [radio-group](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/radio-group/overview.md)
23
+ - [form](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/form/overview.md)
24
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/checkbox-group/overview.md)
25
+ - [radio-group](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/radio-group/overview.md)
26
26
 
27
27
  A native fieldset element should always have a legend-element for a11y purposes.
28
28
  However, our fieldset element is not native and should not have a legend-element.
@@ -31,8 +31,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or
31
31
  ## Features
32
32
 
33
33
  - Easy retrieval of form data based on field names
34
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/interaction-states.md)
35
- - Can have [validate](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
34
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/interaction-states.md)
35
+ - Can have [validate](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
36
36
  - Can disable input fields on fieldset level
37
37
  - Accessible out of the box
38
38
 
@@ -8,7 +8,7 @@ import '@lion/ui/define/lion-form.js';
8
8
  ```
9
9
 
10
10
  A web component that enhances the functionality of the native `form` component.
11
- It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/overview.md).
11
+ It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/overview.md).
12
12
 
13
13
  ```js preview-story
14
14
  export const main = () => html`
@@ -26,11 +26,11 @@ export const main = () => html`
26
26
  - Data synchronization with models
27
27
  - Easy retrieval of form data based on field names
28
28
  - Advanced validation possibilities
29
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/interaction-states.md)
29
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/interaction-states.md)
30
30
  - Registration mechanism for form controls
31
31
  - Accessible out of the box
32
32
 
33
- For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/overview.md).
33
+ For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/overview.md).
34
34
 
35
35
  ## Installation
36
36
 
@@ -26,7 +26,7 @@ icons.addIconResolver('lion', (iconset, name) => {
26
26
  ## Icon sets
27
27
 
28
28
  Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance.
29
- See the [system documentation](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
29
+ See the [system documentation](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
30
30
 
31
31
  ```js preview-story
32
32
  export const iconSets = () => html`
@@ -23,7 +23,7 @@ export const main = () => html`<lion-input label="First Name"></lion-input>`;
23
23
  - **before**: does not have an active use case yet, but the option is in place.
24
24
  - **after**: can be used to show a currency or percentage.
25
25
  - Delegates attributes like `type`, `disabled`, `placeholder` and `readonly` to the native input.
26
- - Can make use of [validation](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md).
26
+ - Can make use of [validation](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md).
27
27
 
28
28
  ## Installation
29
29
 
@@ -24,13 +24,13 @@ export const main = () => {
24
24
 
25
25
  ## Features
26
26
 
27
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md)
28
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
27
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md)
28
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
29
29
  - Option to show currency as a suffix
30
30
  - Option to override locale to change the formatting and parsing
31
31
  - Option to provide additional format options overrides
32
32
  - Default label in different languages
33
- - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
33
+ - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
34
34
  - IsNumber (default)
35
35
  - MinNumber
36
36
  - MaxNumber
@@ -16,11 +16,11 @@ export const main = () => html` <lion-input-date label="Date"></lion-input-date>
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md)
20
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md)
20
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
21
  - Option to override locale to change the formatting and parsing
22
22
  - Default label in different languages
23
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
23
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
24
24
  - IsDate (default)
25
25
  - MinDate
26
26
  - MaxDate
@@ -2,7 +2,7 @@
2
2
 
3
3
  A web component based on the date text input field. Its purpose is to provide a way for users to fill in a date with a datepicker.
4
4
  For an input field with a big range, such as `birthday-input`, a datepicker is not the best choice due to the high variance between possible inputs.
5
- We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-date/overview.md) for this.
5
+ We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-date/overview.md) for this.
6
6
 
7
7
  ```js script
8
8
  import { html } from '@mdjs/mdjs-preview';
@@ -18,11 +18,11 @@ export const main = () => {
18
18
  ## Features
19
19
 
20
20
  - Input field with a datepicker to help to choose a date
21
- - Based on our [input-date](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-date/overview.md)
22
- - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/calendar/overview.md) inside the datepicker
23
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
+ - Based on our [input-date](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-date/overview.md)
22
+ - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/calendar/overview.md) inside the datepicker
23
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
24
24
  - Option to overwrite locale to change the formatting and parsing
25
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
25
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
26
26
  - IsDate (default)
27
27
  - MinDate
28
28
  - MaxDate
@@ -15,8 +15,8 @@ export const main = () => {
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md)
19
- - Makes use of email [validators](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md)
19
+ - Makes use of email [validators](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
20
20
  - IsEmail (default)
21
21
 
22
22
  ## Installation
@@ -16,9 +16,9 @@ export const main = () => {
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md)
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md)
20
20
  - Default label in different languages
21
- - Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
21
+ - Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
22
22
  - IsIBAN (default)
23
23
  - IsCountryIBAN
24
24
  - Parses IBANs automatically
@@ -15,11 +15,11 @@ export const main = () => html`
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md).
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md).
19
19
  - Shows `modelValue` and `unit` above the range input.
20
20
  - Shows `min` and `max` value after the range input.
21
21
  - Can hide the `min` and `max` value via `no-min-max-labels`.
22
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
22
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
23
23
 
24
24
  ## Installation
25
25
 
@@ -18,7 +18,7 @@ export const main = () => html`
18
18
 
19
19
  ## Features
20
20
 
21
- - Based on our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md).
21
+ - Based on our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md).
22
22
  - Set `min` and `max` value to define the range.
23
23
  - Set `step` value in integer or decimal to increase and decrease the value.
24
24
  - Use `ArrowUp` or `ArrowDown` to update the value.
@@ -39,7 +39,7 @@ export const main = () => {
39
39
 
40
40
  ## Features
41
41
 
42
- - Extends our [input](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input/overview.md)
42
+ - Extends our [input](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input/overview.md)
43
43
  - Shows a mobile telephone keypad on mobile (by having a native `<input inputmode="tel">` inside)
44
44
  - Can be configured with a list of allowed region codes
45
45
  - Will be preconfigured with region derived from locale
@@ -22,7 +22,7 @@ Say we have the following telephone number from Madrid, Spain: `+34919930432`.
22
22
  It contains a [country code](https://en.wikipedia.org/wiki/Country_code) (34), an [area code](https://en.wikipedia.org/wiki/Telephone_numbering_plan#Area_code) (91) and a [dial code](https://en.wikipedia.org/wiki/Mobile_dial_code) (+34 91).
23
23
  Input Tel interprets phone numbers based on their [region code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2): a two character long region representation('ES' in the telephone number above).
24
24
 
25
- The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/#allowed-regions) are not configured,
25
+ The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/#allowed-regions) are not configured,
26
26
  all of them will be supported as values of Input Tel.
27
27
 
28
28
  ```js story
@@ -37,11 +37,11 @@ export const regionCodesTable = () => {
37
37
  The active region (accessible via readonly accessor `.activeRegion`) determines how validation and formatting
38
38
  should be applied. It is dependent on the following factors:
39
39
 
40
- - [allowed regions](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/#allowed-regions): a list that determines what is allowed to become .activeRegion. If
41
- [.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/#restrict-to-one-region), .activeRegion will always be this value.
40
+ - [allowed regions](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/#allowed-regions): a list that determines what is allowed to become .activeRegion. If
41
+ [.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/#restrict-to-one-region), .activeRegion will always be this value.
42
42
  - the modelValue or viewValue: once it contains sufficient info to derive its region code (and
43
- the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/#allowed-regions) if configured)
44
- - active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/#allowed-regions) if configured)
43
+ the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/#allowed-regions) if configured)
44
+ - active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/#allowed-regions) if configured)
45
45
 
46
46
  What follows from the list above is that .activeRegion can change dynamically, after a value
47
47
  change in the text box by the user (or when locales or allowed regions would be changed by the
@@ -130,7 +130,7 @@ export const heuristic = () => {
130
130
  Once it is configured, validation and formatting will be restricted to those
131
131
  values that are present in this list.
132
132
 
133
- > Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel-dropdown/index.md), only allowed regions will
133
+ > Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel-dropdown/index.md), only allowed regions will
134
134
  > be shown in the dropdown list.
135
135
 
136
136
  ```js preview-story
@@ -19,7 +19,7 @@ export const main = () => {
19
19
 
20
20
  ## Features
21
21
 
22
- - Extends our [input-tel](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/input-tel/overview.md)
22
+ - Extends our [input-tel](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/input-tel/overview.md)
23
23
  - Shows dropdown list with all possible regions
24
24
  - Shows only allowed regions in dropdown list when .allowedRegions is configured
25
25
  - Highlights regions on top of dropdown list when .preferredRegions is configured
@@ -20,12 +20,12 @@ export const main = () => html`
20
20
  `;
21
21
  ```
22
22
 
23
- - Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/form/overview.md)'s serialization result.
24
- - If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/select/overview.md) instead.
23
+ - Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/form/overview.md)'s serialization result.
24
+ - If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/select/overview.md) instead.
25
25
 
26
26
  ## Features
27
27
 
28
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/fieldset/overview.md), it has all the features a fieldset has.
28
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/fieldset/overview.md), it has all the features a fieldset has.
29
29
 
30
30
  - Get or set the checked value of the group:
31
31
  - modelValue (default) - `checkedValue()`
@@ -1,8 +1,7 @@
1
1
  # Select Rich >> Overview ||10
2
2
 
3
3
  This web component is a 'rich' version of the native `<select>` element.
4
- It allows providing fully customized options and a fully customized invoker button and is meant to be used whenever the native `<select>` doesn't provide enough
5
- styling,theming or user interaction opportunities.
4
+ It allows providing fully customized options and a fully customized invoker button and is meant to be used whenever the native `<select>` doesn't provide enough styling, theming or user interaction opportunities.
6
5
 
7
6
  Its implementation is based on the following Design pattern:
8
7
  <https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html>
@@ -13,14 +12,12 @@ import '@lion/ui/define/lion-select-rich.js';
13
12
  import '@lion/ui/define/lion-option.js';
14
13
  ```
15
14
 
16
- ```js preview-story
17
- export const main = () => html`
18
- <lion-select-rich name="favoriteColor" label="Favorite color">
19
- <lion-option .choiceValue=${'red'}>Red</lion-option>
20
- <lion-option .choiceValue=${'hotpink'}>Hotpink</lion-option>
21
- <lion-option .choiceValue=${'blue'}>Blue</lion-option>
22
- </lion-select-rich>
23
- `;
15
+ ```html preview-story
16
+ <lion-select-rich name="favoriteColor" label="Favorite color">
17
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
18
+ <lion-option .choiceValue=${'hotpink'}>Hotpink</lion-option>
19
+ <lion-option .choiceValue=${'blue'}>Blue</lion-option>
20
+ </lion-select-rich>
24
21
  ```
25
22
 
26
23
  ## Features
@@ -18,23 +18,21 @@ You can set the full `modelValue` for each option, which includes the checked pr
18
18
 
19
19
  The main feature of this rich select that makes it rich, is that your options can contain HTML.
20
20
 
21
- ```js preview-story
22
- export const optionsWithHTML = () => html`
23
- <lion-select-rich label="Favorite color" name="color">
24
- <lion-option .choiceValue="${'red'}">
25
- <p style="color: red;">I am red</p>
26
- <p>and multi Line</p>
27
- </lion-option>
28
- <lion-option .choiceValue="${'hotpink'}" checked>
29
- <p style="color: hotpink;">I am hotpink</p>
30
- <p>and multi Line</p>
31
- </lion-option>
32
- <lion-option .choiceValue="${'teal'}">
33
- <p style="color: teal;">I am teal</p>
34
- <p>and multi Line</p>
35
- </lion-option>
36
- </lion-select-rich>
37
- `;
21
+ ```html preview-story
22
+ <lion-select-rich label="Favorite color" name="color">
23
+ <lion-option .choiceValue="${'red'}">
24
+ <p style="color: red;">I am red</p>
25
+ <p>and multi Line</p>
26
+ </lion-option>
27
+ <lion-option .choiceValue="${'hotpink'}" checked>
28
+ <p style="color: hotpink;">I am hotpink</p>
29
+ <p>and multi Line</p>
30
+ </lion-option>
31
+ <lion-option .choiceValue="${'teal'}">
32
+ <p style="color: teal;">I am teal</p>
33
+ <p>and multi Line</p>
34
+ </lion-option>
35
+ </lion-select-rich>
38
36
  ```
39
37
 
40
38
  ## Many Options with Scrolling
@@ -84,14 +82,12 @@ This will block the user from opening the select.
84
82
 
85
83
  The readonly attribute is delegated to the invoker for disabling opening the overlay, and for styling purposes.
86
84
 
87
- ```js preview-story
88
- export const readOnlyPrefilled = () => html`
89
- <lion-select-rich label="Read-only select" readonly name="color">
90
- <lion-option .choiceValue=${'red'}>Red</lion-option>
91
- <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
92
- <lion-option .choiceValue=${'teal'}>Teal</lion-option>
93
- </lion-select-rich>
94
- `;
85
+ ```html preview-story
86
+ <lion-select-rich label="Read-only select" readonly name="color">
87
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
88
+ <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
89
+ <lion-option .choiceValue=${'teal'}>Teal</lion-option>
90
+ </lion-select-rich>
95
91
  ```
96
92
 
97
93
  ## Disabled Select
@@ -100,26 +96,22 @@ You can set the `disabled` attribute to disable either specific options or the e
100
96
 
101
97
  If you disable the entire select, the disabled attribute is also delegated to the invoker, similar to readonly.
102
98
 
103
- ```js preview-story
104
- export const disabledSelect = () => html`
105
- <lion-select-rich label="Disabled select" disabled name="color">
106
- <lion-option .choiceValue=${'red'}>Red</lion-option>
107
- <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
108
- <lion-option .choiceValue=${'teal'}>Teal</lion-option>
109
- </lion-select-rich>
110
- `;
99
+ ```html preview-story
100
+ <lion-select-rich label="Disabled select" disabled name="color">
101
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
102
+ <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
103
+ <lion-option .choiceValue=${'teal'}>Teal</lion-option>
104
+ </lion-select-rich>
111
105
  ```
112
106
 
113
- ```js preview-story
114
- export const disabledOption = () => html`
115
- <lion-select-rich label="Disabled options" name="color">
116
- <lion-option .choiceValue=${'red'} disabled>Red</lion-option>
117
- <lion-option .choiceValue=${'blue'}>Blue</lion-option>
118
- <lion-option .choiceValue=${'hotpink'} disabled>Hotpink</lion-option>
119
- <lion-option .choiceValue=${'green'}>Green</lion-option>
120
- <lion-option .choiceValue=${'teal'} disabled>Teal</lion-option>
121
- </lion-select-rich>
122
- `;
107
+ ```html preview-story
108
+ <lion-select-rich label="Disabled options" name="color">
109
+ <lion-option .choiceValue=${'red'} disabled>Red</lion-option>
110
+ <lion-option .choiceValue=${'blue'}>Blue</lion-option>
111
+ <lion-option .choiceValue=${'hotpink'} disabled>Hotpink</lion-option>
112
+ <lion-option .choiceValue=${'green'}>Green</lion-option>
113
+ <lion-option .choiceValue=${'teal'} disabled>Teal</lion-option>
114
+ </lion-select-rich>
123
115
  ```
124
116
 
125
117
  ## Render options
@@ -141,10 +133,9 @@ export const renderOptions = ({ shadowRoot }) => {
141
133
  2,
142
134
  );
143
135
  }
144
- const mv = { value: obj, checked: false };
145
136
  return html`
146
137
  <lion-select-rich label="Credit Card" name="color" @model-value-changed=${showOutput}>
147
- ${objs.map(obj => html` <lion-option .modelValue=${mv}>${obj.label}</lion-option> `)}
138
+ ${objs.map(obj => html` <lion-option .choiceValue=${obj}>${obj.label}</lion-option> `)}
148
139
  </lion-select-rich>
149
140
  <p>Full value:</p>
150
141
  <pre id="demoRenderOutput"></pre>
@@ -159,19 +150,17 @@ By default, it will choose based on the user Operating System, but it can be for
159
150
 
160
151
  This changes the keyboard interaction.
161
152
 
162
- ```js preview-story
163
- export const interactionMode = () => html`
164
- <lion-select-rich label="Mac mode" name="color" interaction-mode="mac">
165
- <lion-option .choiceValue=${'red'}>Red</lion-option>
166
- <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
167
- <lion-option .choiceValue=${'teal'}>Teal</lion-option>
168
- </lion-select-rich>
169
- <lion-select-rich label="Windows/Linux mode" name="color" interaction-mode="windows/linux">
170
- <lion-option .choiceValue=${'red'}>Red</lion-option>
171
- <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
172
- <lion-option .choiceValue=${'teal'}>Teal</lion-option>
173
- </lion-select-rich>
174
- `;
153
+ ```html preview-story
154
+ <lion-select-rich label="Mac mode" name="color" interaction-mode="mac">
155
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
156
+ <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
157
+ <lion-option .choiceValue=${'teal'}>Teal</lion-option>
158
+ </lion-select-rich>
159
+ <lion-select-rich label="Windows/Linux mode" name="color" interaction-mode="windows/linux">
160
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
161
+ <lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>
162
+ <lion-option .choiceValue=${'teal'}>Teal</lion-option>
163
+ </lion-select-rich>
175
164
  ```
176
165
 
177
166
  ## Checked index & value
@@ -195,7 +184,7 @@ export const checkedIndexAndValue = ({ shadowRoot }) => html`
195
184
  type="number"
196
185
  @change=${e => {
197
186
  const selectEl = shadowRoot.querySelector('#checkedRichSelect');
198
- selectEl.checkedIndex = e.target.value;
187
+ selectEl.checkedIndex = Number(e.target.value);
199
188
  }}
200
189
  />
201
190
  </div>
@@ -232,14 +221,12 @@ However, this allows the user to explicitly select this option.
232
221
  Often, you may want a placeholder that appears initially, but cannot be selected explicitly by the user.
233
222
  For this you can use `has-no-default-selected` attribute.
234
223
 
235
- ```js preview-story
236
- export const noDefaultSelection = () => html`
224
+ ```html preview-story
237
225
  <lion-select-rich name="favoriteColor" label="Favorite color" has-no-default-selected>
238
226
  <lion-option .choiceValue=${'red'}>Red</lion-option>
239
227
  <lion-option .choiceValue=${'hotpink'}>Hotpink</lion-option>
240
228
  <lion-option .choiceValue=${'teal'}>Teal</lion-option>
241
229
  </lion-select-rich>
242
- `;
243
230
  ```
244
231
 
245
232
  > By default, the placeholder is completely empty in the `LionSelectInvoker`,
@@ -249,12 +236,10 @@ export const noDefaultSelection = () => html`
249
236
 
250
237
  If there is a single option rendered, then `singleOption` property is set to `true` on `lion-select-rich` and invoker as well. Invoker also gets `single-option` which can be used to having desired templating and styling. As in here the arrow is not displayed for single option
251
238
 
252
- ```js preview-story
253
- export const singleOption = () => html`
254
- <lion-select-rich label="Single Option" name="color">
255
- <lion-option .choiceValue=${'red'}>Red</lion-option>
256
- </lion-select-rich>
257
- `;
239
+ ```html preview-story
240
+ <lion-select-rich label="Single Option" name="color">
241
+ <lion-option .choiceValue=${'red'}>Red</lion-option>
242
+ </lion-select-rich>
258
243
  ```
259
244
 
260
245
  When adding/removing options the `singleOption` will only be `true` when there is exactly one option.
@@ -317,7 +302,7 @@ LionSelectRich will give it acces to:
317
302
  - LionSelectRich itself, via `.hostElement`
318
303
 
319
304
  Code of an advanced custom invoker is shown below (this is the code for the
320
- invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/components/select-rich/examples.md)).
305
+ invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/components/select-rich/examples.md)).
321
306
  The invoker is usually added in the invoker slot of the LionSelectRich subclass.
322
307
  However, it would also be possible for an application developer to provide the invoker
323
308
  by putting it in light dom:
@@ -9,7 +9,7 @@ import './src/lea-tab-panel.js';
9
9
 
10
10
  ## Lea Tabs
11
11
 
12
- Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/blog/ing-open-sources-lion.md).
12
+ Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/blog/ing-open-sources-lion.md).
13
13
 
14
14
  ```js preview-story
15
15
  export const main = () => html`
@@ -9,11 +9,11 @@ Here you find more details about what we offer.
9
9
 
10
10
  Let's see what each section describes.
11
11
 
12
- 1. [](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/systems/core/overview.md) <br>
12
+ 1. [Systems](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/systems/core/overview.md) <br>
13
13
  These are the fundamental systems that power all of our components.
14
- 2. [Tools](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/tools/helpers/overview.md) <br>
14
+ 2. [Tools](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/tools/helpers/overview.md) <br>
15
15
  Frontend Tools useful for web development but are not visual and therefore are not components.
16
- 3. [Node Tools](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md) <br>
16
+ 3. [Node Tools](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md) <br>
17
17
  Node tools to analyse the code and for extending the documentation.
18
- 4. [Rationales](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/rationales/side-effects.md) <br>
18
+ 4. [Rationales](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/rationales/side-effects.md) <br>
19
19
  The reasoning behind some of our decisions.
@@ -45,7 +45,7 @@ export default {
45
45
  ### referenceCollections
46
46
 
47
47
  A list of file system paths. They can be defined relative from the current project root or they can be full paths.
48
- When a [MatchAnalyzer](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/node-tools/providence-analytics/analyzer.md) like `match-imports` or `match-subclasses` is used, the default reference(s) can be configured here. For instance: ['/path/to/@lion/ui/form.js']
48
+ When a [MatchAnalyzer](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/node-tools/providence-analytics/analyzer.md) like `match-imports` or `match-subclasses` is used, the default reference(s) can be configured here. For instance: ['/path/to/@lion/ui/form.js']
49
49
 
50
50
  An example:
51
51
 
@@ -108,4 +108,4 @@ QueryOutput structure could be simplified in the future.
108
108
 
109
109
  The output files stored in the file system always need to be machine independent:
110
110
  this means that all machine specific information, like a complete filepath, needs to be removed from a QueryOutput (paths relative from project root are still allowed).
111
- In that way, the caching mechanism (based on hash comparisons) as described in [Analyzer](https://github.com/ing-bank/lion/blob/0ec0d6dc9fbc38c16d12e0e25e4ad9348866eb9e/docs/fundamentals/node-tools/providence-analytics/analyzer.md) is guaranteed to work across different machines.
111
+ In that way, the caching mechanism (based on hash comparisons) as described in [Analyzer](https://github.com/ing-bank/lion/blob/ede8412cbca3f6dd025797336745330f31706ad3/docs/fundamentals/node-tools/providence-analytics/analyzer.md) is guaranteed to work across different machines.