@lion/ui 0.3.0 → 0.3.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 (94) hide show
  1. package/components/checkbox-group/src/LionCheckboxIndeterminate.js +2 -2
  2. package/components/checkbox-group/test/lion-checkbox-indeterminate-integrations.test.js +6 -0
  3. package/components/checkbox-group/{test/lion-checkbox-indeterminate.test.js → test-suites/CheckboxIndeterminate.suite.js} +209 -187
  4. package/components/combobox/src/LionCombobox.js +3 -1
  5. package/components/combobox/test/lion-combobox.test.js +52 -0
  6. package/components/input-file/src/LionInputFile.js +15 -8
  7. package/components/input-file/src/LionSelectedFileList.js +0 -3
  8. package/components/input-file/test/lion-input-file.test.js +2 -3
  9. package/components/listbox/src/ListboxMixin.js +3 -2
  10. package/components/listbox/test-suites/ListboxMixin.suite.js +31 -1
  11. package/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.js +22 -0
  12. package/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.js +64 -0
  13. package/components/localize/src/number/utils/normalize-format-number-to-parts/normalizeIntl.js +13 -7
  14. package/components/localize/test/number/formatNumber.test.js +6 -28
  15. package/custom-elements.json +213 -40
  16. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts +12 -0
  17. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -0
  18. package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
  19. package/dist-types/components/combobox/test/lion-combobox.test.d.ts.map +1 -1
  20. package/dist-types/components/input-file/src/LionInputFile.d.ts +5 -0
  21. package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
  22. package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -1
  23. package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
  24. package/dist-types/components/listbox/test-suites/ListboxMixin.suite.d.ts.map +1 -1
  25. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.d.ts +14 -0
  26. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.d.ts.map +1 -0
  27. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.d.ts +20 -0
  28. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.d.ts.map +1 -0
  29. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/normalizeIntl.d.ts.map +1 -1
  30. package/dist-types/exports/checkbox-group-test-suites.d.ts +2 -0
  31. package/dist-types/exports/checkbox-group-test-suites.d.ts.map +1 -0
  32. package/dist-types/tsconfig.tsbuildinfo +1 -1
  33. package/docs/components/checkbox-group/overview.md +9 -10
  34. package/docs/components/checkbox-group/use-cases.md +110 -142
  35. package/docs/components/collapsible/overview.md +1 -1
  36. package/docs/components/combobox/overview.md +1 -1
  37. package/docs/components/combobox/use-cases.md +1 -1
  38. package/docs/components/dialog/overview.md +1 -1
  39. package/docs/components/fieldset/overview.md +5 -5
  40. package/docs/components/form/overview.md +3 -3
  41. package/docs/components/icon/use-cases.md +1 -1
  42. package/docs/components/input/overview.md +1 -1
  43. package/docs/components/input-amount/overview.md +3 -3
  44. package/docs/components/input-date/overview.md +3 -3
  45. package/docs/components/input-datepicker/overview.md +5 -5
  46. package/docs/components/input-email/overview.md +2 -2
  47. package/docs/components/input-file/overview.md +1 -1
  48. package/docs/components/input-iban/overview.md +2 -2
  49. package/docs/components/input-range/overview.md +2 -2
  50. package/docs/components/input-stepper/overview.md +1 -1
  51. package/docs/components/input-tel/overview.md +1 -1
  52. package/docs/components/input-tel/use-cases.md +6 -6
  53. package/docs/components/input-tel-dropdown/overview.md +1 -1
  54. package/docs/components/radio-group/overview.md +3 -3
  55. package/docs/components/select-rich/use-cases.md +1 -1
  56. package/docs/components/tabs/examples.md +1 -1
  57. package/docs/fundamentals/index.md +4 -4
  58. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  59. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  60. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  61. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  62. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  63. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  64. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  65. package/docs/fundamentals/rationales/accessibility.md +1 -1
  66. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  67. package/docs/fundamentals/systems/core/overview.md +1 -1
  68. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  69. package/docs/fundamentals/systems/form/model-value.md +1 -1
  70. package/docs/fundamentals/systems/form/overview.md +28 -28
  71. package/docs/fundamentals/systems/form/validate.md +1 -1
  72. package/docs/fundamentals/systems/localize/overview.md +4 -4
  73. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  74. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  75. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  76. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  77. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  78. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  79. package/docs/guides/how-to/create-a-form.md +4 -4
  80. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  81. package/docs/guides/how-to/get-started.md +28 -1
  82. package/docs/guides/index.md +8 -8
  83. package/docs/guides/principles/index.md +5 -5
  84. package/docs/guides/principles/styling.md +1 -1
  85. package/exports/checkbox-group-test-suites.js +1 -0
  86. package/package.json +1 -1
  87. package/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js +0 -25
  88. package/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js +0 -15
  89. package/dist-types/components/checkbox-group/test/lion-checkbox-indeterminate.test.d.ts +0 -4
  90. package/dist-types/components/checkbox-group/test/lion-checkbox-indeterminate.test.d.ts.map +0 -1
  91. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.d.ts +0 -14
  92. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.d.ts.map +0 -1
  93. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.d.ts +0 -9
  94. package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.d.ts.map +0 -1
@@ -11,21 +11,19 @@ import '@lion/ui/define/lion-checkbox-group.js';
11
11
  import '@lion/ui/define/lion-checkbox.js';
12
12
  ```
13
13
 
14
- ```js preview-story
15
- export const main = () => html`
16
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
17
- <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
18
- <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'}></lion-checkbox>
19
- <lion-checkbox label="Marie Curie" .choiceValue=${'Marie Curie'}></lion-checkbox>
20
- </lion-checkbox-group>
21
- `;
14
+ ```html preview-story
15
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
16
+ <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
17
+ <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'}></lion-checkbox>
18
+ <lion-checkbox label="Marie Curie" .choiceValue=${'Marie Curie'}></lion-checkbox>
19
+ </lion-checkbox-group>
22
20
  ```
23
21
 
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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/form/overview.md)'s serialization result.
22
+ > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/form/overview.md)'s serialization result.
25
23
 
26
24
  ## Features
27
25
 
28
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/fieldset/overview.md),
26
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/fieldset/overview.md),
29
27
  it has all the features a fieldset has.
30
28
 
31
29
  ## Installation
@@ -36,5 +34,6 @@ npm i --save @lion/ui
36
34
 
37
35
  ```js
38
36
  import '@lion/ui/define/lion-checkbox-group.js';
37
+ import '@lion/ui/define/lion-checkbox-indeterminate.js';
39
38
  import '@lion/ui/define/lion-checkbox.js';
40
39
  ```
@@ -45,86 +45,72 @@ Our recommendation would be to set the `name` attribute only on the `lion-checkb
45
45
 
46
46
  You can pre-select options by targeting the `modelValue` object of the option and setting the `checked` property to `true`.
47
47
 
48
- ```js preview-story
49
- export const preselect = () => html`
50
- <lion-checkbox-group name="scientists" label="Favorite scientists">
51
- <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
52
- <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'} checked></lion-checkbox>
53
- <lion-checkbox
54
- label="Marie Curie"
55
- .modelValue=${{ value: 'Marie Curie', checked: true }}
56
- ></lion-checkbox>
57
- </lion-checkbox-group>
58
- `;
48
+ ```html preview-story
49
+ <lion-checkbox-group name="scientists" label="Favorite scientists">
50
+ <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
51
+ <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'} checked></lion-checkbox>
52
+ <lion-checkbox label="Marie Curie" .choiceValue=${'Marie Curie'}></lion-checkbox>
53
+ </lion-checkbox-group>
59
54
  ```
60
55
 
61
56
  ## Disabled
62
57
 
63
58
  You can disable the entire group by setting the `disabled` attribute on the `<lion-checkbox-group>`.
64
59
 
65
- ```js preview-story
66
- export const disabled = () => html`
67
- <lion-checkbox-group name="scientists[]" label="Favorite scientists" disabled>
68
- <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
69
- <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'}></lion-checkbox>
70
- <lion-checkbox
71
- label="Marie Curie"
72
- .modelValue=${{ value: 'Marie Curie', checked: true }}
73
- ></lion-checkbox>
74
- </lion-checkbox-group>
75
- `;
60
+ ```html preview-story
61
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists" disabled>
62
+ <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
63
+ <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'}></lion-checkbox>
64
+ <lion-checkbox label="Marie Curie" .choiceValue=${'Marie Curie'}></lion-checkbox>
65
+ </lion-checkbox-group>
76
66
  ```
77
67
 
78
68
  ## Label
79
69
 
80
70
  You can use `slot="label"` instead of the `label` attribute for defining more complex labels, such as containing screen reader only text or an anchor.
81
71
 
82
- ```js preview-story
83
- export const label = () => html`
84
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
85
- <lion-checkbox .choiceValue=${'Archimedes'}>
86
- <label slot="label"
87
- ><a href="https://wikipedia.org/wiki/Archimedes" target="_blank">Archimedes</a></label
88
- >
89
- </lion-checkbox>
90
- <lion-checkbox .choiceValue=${'Francis Bacon'}>
91
- <label slot="label"
92
- ><a href="https://wikipedia.org/wiki/Francis_Bacon" target="_blank">Francis Bacon</a></label
93
- >
94
- </lion-checkbox>
95
- <lion-checkbox .choiceValue=${'Marie Curie'}>
96
- <label slot="label"
97
- ><a href="https://wikipedia.org/wiki/Marie_Curie" target="_blank">Marie Curie</a></label
98
- >
99
- </lion-checkbox>
100
- </lion-checkbox-group>
101
- `;
72
+ ```html preview-story
73
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
74
+ <lion-checkbox .choiceValue=${'Archimedes'}>
75
+ <label slot="label"
76
+ ><a href="https://wikipedia.org/wiki/Archimedes" target="_blank">Archimedes</a></label
77
+ >
78
+ </lion-checkbox>
79
+ <lion-checkbox .choiceValue=${'Francis Bacon'}>
80
+ <label slot="label"
81
+ ><a href="https://wikipedia.org/wiki/Francis_Bacon" target="_blank">Francis Bacon</a></label
82
+ >
83
+ </lion-checkbox>
84
+ <lion-checkbox .choiceValue=${'Marie Curie'}>
85
+ <label slot="label"
86
+ ><a href="https://wikipedia.org/wiki/Marie_Curie" target="_blank">Marie Curie</a></label
87
+ >
88
+ </lion-checkbox>
89
+ </lion-checkbox-group>
102
90
  ```
103
91
 
104
92
  ## Help text
105
93
 
106
94
  You can add help text on each checkbox with `help-text` attribute on the `<lion-checkbox>`.
107
95
 
108
- ```js preview-story
109
- export const helpText = () => html`
110
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
111
- <lion-checkbox
112
- label="Archimedes"
113
- .choiceValue=${'Archimedes'}
114
- help-text="Archimedes of Syracuse was a Greek mathematician, physicist, engineer, inventor, and astronomer"
115
- ></lion-checkbox>
116
- <lion-checkbox
117
- label="Francis Bacon"
118
- .choiceValue=${'Francis Bacon'}
119
- help-text="Francis Bacon, 1st Viscount St Alban also known as Lord Verulam, was an English philosopher and statesman who served as Attorney General and as Lord Chancellor of England"
120
- ></lion-checkbox>
121
- <lion-checkbox
122
- label="Marie Curie"
123
- .choiceValue=${'Marie Curie'}
124
- help-text="Marie Skłodowska Curie born Maria Salomea Skłodowska, was a Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity"
125
- ></lion-checkbox>
126
- </lion-checkbox-group>
127
- `;
96
+ ```html preview-story
97
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
98
+ <lion-checkbox
99
+ label="Archimedes"
100
+ .choiceValue=${'Archimedes'}
101
+ help-text="Archimedes of Syracuse was a Greek mathematician, physicist, engineer, inventor, and astronomer"
102
+ ></lion-checkbox>
103
+ <lion-checkbox
104
+ label="Francis Bacon"
105
+ .choiceValue=${'Francis Bacon'}
106
+ help-text="Francis Bacon, 1st Viscount St Alban also known as Lord Verulam, was an English philosopher and statesman who served as Attorney General and as Lord Chancellor of England"
107
+ ></lion-checkbox>
108
+ <lion-checkbox
109
+ label="Marie Curie"
110
+ .choiceValue=${'Marie Curie'}
111
+ help-text="Marie Skłodowska Curie born Maria Salomea Skłodowska, was a Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity"
112
+ ></lion-checkbox>
113
+ </lion-checkbox-group>
128
114
  ```
129
115
 
130
116
  ## Event
@@ -156,102 +142,84 @@ export const event = ({ shadowRoot }) => html`
156
142
 
157
143
  A `checkbox-indeterminate`'s value is neither true nor false, but is instead indeterminate, meaning that its state cannot be determined or stated in pure binary terms, based on it's `checkbox` children.
158
144
 
159
- ```js preview-story
160
- export const indeterminateSiblings = () => html`
161
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
162
- <lion-checkbox-indeterminate label="Old Greek scientists">
163
- <lion-checkbox
164
- slot="checkbox"
165
- label="Archimedes"
166
- .choiceValue=${'Archimedes'}
167
- ></lion-checkbox>
168
- <lion-checkbox slot="checkbox" label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
169
- <lion-checkbox
170
- slot="checkbox"
171
- label="Pythagoras"
172
- .choiceValue=${'Pythagoras'}
173
- ></lion-checkbox>
174
- </lion-checkbox-indeterminate>
175
- <lion-checkbox-indeterminate label="17th Century scientists">
176
- <lion-checkbox
177
- slot="checkbox"
178
- label="Isaac Newton"
179
- .choiceValue=${'Isaac Newton'}
180
- ></lion-checkbox>
181
- <lion-checkbox
182
- slot="checkbox"
183
- label="Galileo Galilei"
184
- .choiceValue=${'Galileo Galilei'}
185
- ></lion-checkbox>
186
- </lion-checkbox-indeterminate>
187
- </lion-checkbox-group>
188
- `;
145
+ ```html preview-story
146
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
147
+ <lion-checkbox-indeterminate label="Old Greek scientists">
148
+ <lion-checkbox
149
+ label="Archimedes"
150
+ .choiceValue=${'Archimedes'}
151
+ ></lion-checkbox>
152
+ <lion-checkbox label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
153
+ <lion-checkbox
154
+ label="Pythagoras"
155
+ .choiceValue=${'Pythagoras'}
156
+ ></lion-checkbox>
157
+ </lion-checkbox-indeterminate>
158
+ <lion-checkbox-indeterminate label="17th Century scientists">
159
+ <lion-checkbox
160
+ label="Isaac Newton"
161
+ .choiceValue=${'Isaac Newton'}
162
+ ></lion-checkbox>
163
+ <lion-checkbox
164
+ label="Galileo Galilei"
165
+ .choiceValue=${'Galileo Galilei'}
166
+ ></lion-checkbox>
167
+ </lion-checkbox-indeterminate>
168
+ </lion-checkbox-group>
189
169
  ```
190
170
 
191
171
  The `checkbox-indeterminate` can have another `checkbox-indeterminate` as a child.
192
172
 
193
- ```js preview-story
194
- export const indeterminateChildren = () => html`
195
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
196
- <lion-checkbox-indeterminate label="Scientists">
173
+ ```html preview-story
174
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
175
+ <lion-checkbox-indeterminate label="Scientists">
176
+ <lion-checkbox
177
+ label="Isaac Newton"
178
+ .choiceValue=${'Isaac Newton'}
179
+ ></lion-checkbox>
180
+ <lion-checkbox
181
+ label="Galileo Galilei"
182
+ .choiceValue=${'Galileo Galilei'}
183
+ ></lion-checkbox>
184
+ <lion-checkbox-indeterminate label="Old Greek scientists">
197
185
  <lion-checkbox
198
- slot="checkbox"
199
- label="Isaac Newton"
200
- .choiceValue=${'Isaac Newton'}
186
+ label="Archimedes"
187
+ .choiceValue=${'Archimedes'}
201
188
  ></lion-checkbox>
189
+ <lion-checkbox label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
202
190
  <lion-checkbox
203
- slot="checkbox"
204
- label="Galileo Galilei"
205
- .choiceValue=${'Galileo Galilei'}
191
+ label="Pythagoras"
192
+ .choiceValue=${'Pythagoras'}
206
193
  ></lion-checkbox>
207
- <lion-checkbox-indeterminate slot="checkbox" label="Old Greek scientists">
208
- <lion-checkbox
209
- slot="checkbox"
210
- label="Archimedes"
211
- .choiceValue=${'Archimedes'}
212
- ></lion-checkbox>
213
- <lion-checkbox slot="checkbox" label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
214
- <lion-checkbox
215
- slot="checkbox"
216
- label="Pythagoras"
217
- .choiceValue=${'Pythagoras'}
218
- ></lion-checkbox>
219
- </lion-checkbox-indeterminate>
220
194
  </lion-checkbox-indeterminate>
221
- </lion-checkbox-group>
222
- `;
195
+ </lion-checkbox-indeterminate>
196
+ </lion-checkbox-group>
223
197
  ```
224
198
 
225
199
  You can also use `mixed-state` attribute so your indeterminate checkbox toggles through three states (indeterminate, checked, unchecked), where for indeterminate state the old children states are restored when you toggle back into this.
226
200
 
227
- ```js preview-story
228
- export const mixedState = () => html`
229
- <lion-checkbox-group name="scientists[]" label="Favorite scientists">
230
- <lion-checkbox-indeterminate mixed-state label="Scientists">
201
+ ```html preview-story
202
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
203
+ <lion-checkbox-indeterminate mixed-state label="Scientists">
204
+ <lion-checkbox
205
+ label="Isaac Newton"
206
+ .choiceValue=${'Isaac Newton'}
207
+ ></lion-checkbox>
208
+ <lion-checkbox
209
+ label="Galileo Galilei"
210
+ .choiceValue=${'Galileo Galilei'}
211
+ ></lion-checkbox>
212
+ <lion-checkbox-indeterminate mixed-state label="Old Greek scientists">
231
213
  <lion-checkbox
232
- slot="checkbox"
233
- label="Isaac Newton"
234
- .choiceValue=${'Isaac Newton'}
214
+ label="Archimedes"
215
+ .choiceValue=${'Archimedes'}
235
216
  ></lion-checkbox>
217
+ <lion-checkbox label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
236
218
  <lion-checkbox
237
- slot="checkbox"
238
- label="Galileo Galilei"
239
- .choiceValue=${'Galileo Galilei'}
219
+ label="Pythagoras"
220
+ .choiceValue=${'Pythagoras'}
240
221
  ></lion-checkbox>
241
- <lion-checkbox-indeterminate mixed-state slot="checkbox" label="Old Greek scientists">
242
- <lion-checkbox
243
- slot="checkbox"
244
- label="Archimedes"
245
- .choiceValue=${'Archimedes'}
246
- ></lion-checkbox>
247
- <lion-checkbox slot="checkbox" label="Plato" .choiceValue=${'Plato'}></lion-checkbox>
248
- <lion-checkbox
249
- slot="checkbox"
250
- label="Pythagoras"
251
- .choiceValue=${'Pythagoras'}
252
- ></lion-checkbox>
253
- </lion-checkbox-indeterminate>
254
222
  </lion-checkbox-indeterminate>
255
- </lion-checkbox-group>
256
- `;
223
+ </lion-checkbox-indeterminate>
224
+ </lion-checkbox-group>
257
225
  ```
@@ -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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/combobox/extensions.md)
36
+ [...show more](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/combobox/extensions.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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/listbox/overview.md) for more information.
436
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/form/overview.md)
24
- - [checkbox-group](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/checkbox-group/overview.md)
25
- - [radio-group](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/radio-group/overview.md)
23
+ - [form](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/form/overview.md)
24
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/checkbox-group/overview.md)
25
+ - [radio-group](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/interaction-states.md)
35
- - Can have [validate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/fundamentals/systems/form/interaction-states.md)
35
+ - Can have [validate](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/interaction-states.md)
29
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
29
+ See the [system documentation](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md).
26
+ - Can make use of [validation](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
28
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
27
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input/overview.md)
28
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
20
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input/overview.md)
20
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input-date/overview.md) for this.
5
+ We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input-date/overview.md)
22
- - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/calendar/overview.md) inside the datepicker
23
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
+ - Based on our [input-date](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input-date/overview.md)
22
+ - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/calendar/overview.md) inside the datepicker
23
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
19
- - Makes use of email [validators](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input/overview.md)
19
+ - Makes use of email [validators](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
20
20
  - IsEmail (default)
21
21
 
22
22
  ## Installation
@@ -15,7 +15,7 @@ export const main = () => {
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input/overview.md)
19
19
  - Default labels and validation messages in different languages
20
20
  - Options for multi file upload and drop-zone.
21
21
 
@@ -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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/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/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md).
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
22
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md).
21
+ - Based on our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
42
+ - Extends our [input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/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