@lion/ui 0.7.8 → 0.8.0

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 (95) hide show
  1. package/components/accordion/src/LionAccordion.js +20 -14
  2. package/components/accordion/test/lion-accordion.test.js +84 -28
  3. package/components/calendar/src/LionCalendar.js +3 -1
  4. package/components/combobox/test/lion-combobox.test.js +124 -120
  5. package/components/combobox/test/validators.test.js +2 -2
  6. package/components/combobox/test-helpers/combobox-helpers.js +8 -9
  7. package/components/core/src/browserDetection.js +9 -1
  8. package/components/form-core/test-suites/NativeTextFieldMixin.suite.js +9 -10
  9. package/components/validate-messages/translations/cs.js +4 -4
  10. package/components/validate-messages/translations/es.js +2 -2
  11. package/components/validate-messages/translations/hu.js +2 -2
  12. package/components/validate-messages/translations/it.js +2 -2
  13. package/components/validate-messages/translations/nl.js +2 -2
  14. package/components/validate-messages/translations/pl.js +2 -2
  15. package/components/validate-messages/translations/ru.js +2 -2
  16. package/components/validate-messages/translations/sk.js +2 -2
  17. package/components/validate-messages/translations/uk.js +2 -2
  18. package/custom-elements.json +735 -2528
  19. package/dist-types/components/accordion/src/LionAccordion.d.ts +11 -1
  20. package/dist-types/components/accordion/src/LionAccordion.d.ts.map +1 -1
  21. package/dist-types/components/accordion/test/lion-accordion.test.d.ts.map +1 -1
  22. package/dist-types/components/calendar/src/LionCalendar.d.ts +0 -1
  23. package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
  24. package/dist-types/components/combobox/test-helpers/combobox-helpers.d.ts +2 -2
  25. package/dist-types/components/combobox/test-helpers/combobox-helpers.d.ts.map +1 -1
  26. package/dist-types/components/form-core/test-suites/NativeTextFieldMixin.suite.d.ts.map +1 -1
  27. package/dist-types/components/icon/src/LionIcon.d.ts +2 -2
  28. package/dist-types/components/icon/src/LionIcon.d.ts.map +1 -1
  29. package/dist-types/tsconfig.tsbuildinfo +1 -1
  30. package/docs/components/accordion/api-table.md +6 -4
  31. package/docs/components/accordion/use-cases.md +43 -4
  32. package/docs/components/checkbox-group/overview.md +2 -2
  33. package/docs/components/checkbox-group/use-cases.md +20 -59
  34. package/docs/components/collapsible/overview.md +1 -1
  35. package/docs/components/combobox/overview.md +1 -1
  36. package/docs/components/combobox/use-cases.md +3 -4
  37. package/docs/components/dialog/overview.md +1 -1
  38. package/docs/components/fieldset/overview.md +5 -5
  39. package/docs/components/fieldset/use-cases.md +9 -2
  40. package/docs/components/form/overview.md +3 -3
  41. package/docs/components/form/use-cases.md +2 -1
  42. package/docs/components/icon/use-cases.md +1 -1
  43. package/docs/components/input/overview.md +1 -1
  44. package/docs/components/input-amount/overview.md +3 -3
  45. package/docs/components/input-amount/use-cases.md +2 -2
  46. package/docs/components/input-date/overview.md +3 -3
  47. package/docs/components/input-date/use-cases.md +5 -4
  48. package/docs/components/input-datepicker/overview.md +5 -5
  49. package/docs/components/input-datepicker/use-cases.md +2 -3
  50. package/docs/components/input-email/overview.md +2 -2
  51. package/docs/components/input-file/overview.md +1 -1
  52. package/docs/components/input-iban/overview.md +2 -2
  53. package/docs/components/input-range/overview.md +2 -2
  54. package/docs/components/input-stepper/overview.md +1 -1
  55. package/docs/components/input-tel/overview.md +1 -1
  56. package/docs/components/input-tel/use-cases.md +6 -6
  57. package/docs/components/input-tel-dropdown/overview.md +1 -1
  58. package/docs/components/listbox/use-cases.md +1 -1
  59. package/docs/components/pagination/use-cases.md +3 -1
  60. package/docs/components/radio-group/overview.md +3 -3
  61. package/docs/components/select/use-cases.md +1 -1
  62. package/docs/components/select-rich/use-cases.md +1 -1
  63. package/docs/components/steps/overview.md +6 -2
  64. package/docs/components/steps/use-cases.md +9 -3
  65. package/docs/components/tabs/examples.md +1 -1
  66. package/docs/fundamentals/index.md +4 -4
  67. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  68. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  69. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  70. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  71. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  72. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  73. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  74. package/docs/fundamentals/rationales/accessibility.md +1 -1
  75. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  76. package/docs/fundamentals/systems/core/overview.md +1 -1
  77. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  78. package/docs/fundamentals/systems/form/model-value.md +1 -1
  79. package/docs/fundamentals/systems/form/overview.md +28 -28
  80. package/docs/fundamentals/systems/form/use-cases.md +2 -1
  81. package/docs/fundamentals/systems/form/validate.md +2 -2
  82. package/docs/fundamentals/systems/localize/overview.md +4 -4
  83. package/docs/fundamentals/systems/localize/use-cases.md +3 -1
  84. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  85. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  86. package/docs/fundamentals/systems/overlays/use-cases.md +5 -3
  87. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  88. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  89. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  90. package/docs/guides/how-to/create-a-form.md +4 -4
  91. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  92. package/docs/guides/index.md +8 -8
  93. package/docs/guides/principles/index.md +5 -5
  94. package/docs/guides/principles/styling.md +1 -1
  95. package/package.json +1 -1
@@ -4,10 +4,11 @@
4
4
 
5
5
  ### Fields
6
6
 
7
- | Name | Privacy | Type | Default | Description | Inherited From |
8
- | -------------- | ------- | -------- | ------- | ------------------------------------------- | -------------- |
9
- | `focusedIndex` | public | `number` | | index number of the focused accordion | |
10
- | `expanded` | public | `array` | | array of indices of the expanded accordions | |
7
+ | Name | Privacy | Type | Default | Description | Inherited From |
8
+ | -------------- | ------- | --------- | ------- | ---------------------------------------------------------------------- | -------------- |
9
+ | `focusedIndex` | public | `number` | | index number of the focused accordion | |
10
+ | `expanded` | public | `array` | | array of indices of the expanded accordions | |
11
+ | `exclusive` | public | `boolean` | `false` | exclusive property allows only one accordion slot to be open at a time | |
11
12
 
12
13
  ### Methods
13
14
 
@@ -27,5 +28,6 @@
27
28
  | -------------- | ------------ | -------------- |
28
29
  | `focusedIndex` | focusedIndex | |
29
30
  | `expanded` | expanded | |
31
+ | `exclusive` | exclusive | |
30
32
 
31
33
  <hr/>
@@ -15,7 +15,7 @@ All accordion panels are collapsed by default.
15
15
  <h3 slot="invoker">
16
16
  <button>Sensory Factors</button>
17
17
  </h3>
18
- <div slot="content" class="lion-paragraph-container">
18
+ <div slot="content">
19
19
  <p>
20
20
  The taste of oranges is determined mainly by the relative ratios of sugars and acids, whereas
21
21
  orange aroma derives from volatile organic compounds, including alcohols, aldehydes, ketones,
@@ -52,7 +52,7 @@ Multiple accordion panels can be expanded at the same time. When content drops o
52
52
  <h3 slot="invoker">
53
53
  <button>Sensory Factors</button>
54
54
  </h3>
55
- <div slot="content" class="lion-paragraph-container">
55
+ <div slot="content">
56
56
  <p>
57
57
  The taste of oranges is determined mainly by the relative ratios of sugars and acids, whereas
58
58
  orange aroma derives from volatile organic compounds, including alcohols, aldehydes, ketones,
@@ -92,7 +92,7 @@ The invoker and content slots are ordered by DOM order. This means you can put a
92
92
  <h3 slot="invoker">
93
93
  <button>Nutritional value</button>
94
94
  </h3>
95
- <div slot="content" class="lion-paragraph-container">
95
+ <div slot="content">
96
96
  <p>
97
97
  The taste of oranges is determined mainly by the relative ratios of sugars and acids, whereas
98
98
  orange aroma derives from volatile organic compounds, including alcohols, aldehydes, ketones,
@@ -129,7 +129,7 @@ A header can be multiline.
129
129
  <small>or the experience of taste</small>
130
130
  </button>
131
131
  </h3>
132
- <div slot="content" class="lion-paragraph-container">
132
+ <div slot="content">
133
133
  <p>
134
134
  The taste of oranges is determined mainly by the relative ratios of sugars and acids, whereas
135
135
  orange aroma derives from volatile organic compounds, including alcohols, aldehydes, ketones,
@@ -160,6 +160,45 @@ A header can be multiline.
160
160
  </lion-accordion>
161
161
  ```
162
162
 
163
+ ## Exclusive
164
+
165
+ Sometimes, it might be required to show only one expanded slot of the accordion at a time. For such instances, we have a feature called 'exclusive'. This allows the accordion to open only one and a time and closes the open slot when a new slot is clicked upon.
166
+
167
+ This field takes in a Boolean value, which by default is false.
168
+
169
+ ```html preview-story
170
+ <lion-accordion exclusive>
171
+ <h3 slot="invoker">
172
+ <button>This collapsible closes all other ones</button>
173
+ </h3>
174
+ <div slot="content">
175
+ <p>
176
+ The taste of oranges is determined mainly by the relative ratios of sugars and acids, whereas
177
+ orange aroma derives from volatile organic compounds, including alcohols, aldehydes, ketones,
178
+ terpenes, and esters. Bitter limonoid compounds, such as limonin, decrease gradually during
179
+ development, whereas volatile aroma compounds tend to peak in mid– to late–season development.
180
+ Taste quality tends to improve later in harvests when there is a higher sugar/acid ratio with
181
+ less bitterness. As a citrus fruit, the orange is acidic, with pH levels ranging from 2.9 to
182
+ 4.0.
183
+ </p>
184
+
185
+ <p>
186
+ Sensory qualities vary according to genetic background, environmental conditions during
187
+ development, ripeness at harvest, postharvest conditions, and storage duration.
188
+ </p>
189
+ </div>
190
+ <h3 slot="invoker">
191
+ <button>Same for this collapsible</button>
192
+ </h3>
193
+ <div slot="content">
194
+ Orange flesh is 87% water, 12% carbohydrates, 1% protein, and contains negligible fat (table).
195
+ In a 100 gram reference amount, orange flesh provides 47 calories, and is a rich source of
196
+ vitamin C, providing 64% of the Daily Value. No other micronutrients are present in significant
197
+ amounts (table).
198
+ </div>
199
+ </lion-accordion>
200
+ ```
201
+
163
202
  ## Distribute New Elements
164
203
 
165
204
  Below, we demonstrate how you could dynamically add a new invoker + content.
@@ -19,11 +19,11 @@ import '@lion/ui/define/lion-checkbox.js';
19
19
  </lion-checkbox-group>
20
20
  ```
21
21
 
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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/form/overview.md)'s serialization result.
23
23
 
24
24
  ## Features
25
25
 
26
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/fieldset/overview.md),
26
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/fieldset/overview.md),
27
27
  it has all the features a fieldset has.
28
28
 
29
29
  ## Installation
@@ -31,10 +31,7 @@ Our recommendation would be to set the `name` attribute only on the `lion-checkb
31
31
  ## Example
32
32
 
33
33
  ```html
34
- <lion-checkbox-group
35
- name="scientists[]"
36
- label="Favorite scientists"
37
- >
34
+ <lion-checkbox-group name="scientists[]" label="Favorite scientists">
38
35
  <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
39
36
  <lion-checkbox label="Francis Bacon" .choiceValue="${'Francis Bacon'}"></lion-checkbox>
40
37
  <lion-checkbox label="Marie Curie" .choiceValue="${'Marie Curie'}"></lion-checkbox>
@@ -49,7 +46,7 @@ You can pre-select options by targeting the `modelValue` object of the option an
49
46
  <lion-checkbox-group name="scientists" label="Favorite scientists">
50
47
  <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
51
48
  <lion-checkbox label="Francis Bacon" .choiceValue="${'Francis Bacon'}" checked></lion-checkbox>
52
- <lion-checkbox label="Marie Curie" .choiceValue="${'Marie Curie'}"></lion-checkbox>
49
+ <lion-checkbox label="Marie Curie" .choiceValue="${'Marie Curie'}"></lion-checkbox>
53
50
  </lion-checkbox-group>
54
51
  ```
55
52
 
@@ -61,7 +58,7 @@ You can disable the entire group by setting the `disabled` attribute on the `<li
61
58
  <lion-checkbox-group name="scientists[]" label="Favorite scientists" disabled>
62
59
  <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
63
60
  <lion-checkbox label="Francis Bacon" .choiceValue="${'Francis Bacon'}"></lion-checkbox>
64
- <lion-checkbox label="Marie Curie" .choiceValue="${'Marie Curie'}"></lion-checkbox>
61
+ <lion-checkbox label="Marie Curie" .choiceValue="${'Marie Curie'}"></lion-checkbox>
65
62
  </lion-checkbox-group>
66
63
  ```
67
64
 
@@ -145,25 +142,13 @@ A `checkbox-indeterminate`'s value is neither true nor false, but is instead ind
145
142
  ```html preview-story
146
143
  <lion-checkbox-group name="scientists[]" label="Favorite scientists">
147
144
  <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>
145
+ <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
146
+ <lion-checkbox label="Plato" .choiceValue="${'Plato'}"></lion-checkbox>
147
+ <lion-checkbox label="Pythagoras" .choiceValue="${'Pythagoras'}"></lion-checkbox>
157
148
  </lion-checkbox-indeterminate>
158
149
  <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>
150
+ <lion-checkbox label="Isaac Newton" .choiceValue="${'Isaac Newton'}"></lion-checkbox>
151
+ <lion-checkbox label="Galileo Galilei" .choiceValue="${'Galileo Galilei'}"></lion-checkbox>
167
152
  </lion-checkbox-indeterminate>
168
153
  </lion-checkbox-group>
169
154
  ```
@@ -173,24 +158,12 @@ The `checkbox-indeterminate` can have another `checkbox-indeterminate` as a chil
173
158
  ```html preview-story
174
159
  <lion-checkbox-group name="scientists[]" label="Favorite scientists">
175
160
  <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">
185
- <lion-checkbox
186
- label="Archimedes"
187
- .choiceValue="${'Archimedes'}"
188
- ></lion-checkbox>
189
- <lion-checkbox label="Plato" .choiceValue="${'Plato'}"></lion-checkbox>
190
- <lion-checkbox
191
- label="Pythagoras"
192
- .choiceValue="${'Pythagoras'}"
193
- ></lion-checkbox>
161
+ <lion-checkbox label="Isaac Newton" .choiceValue="${'Isaac Newton'}"></lion-checkbox>
162
+ <lion-checkbox label="Galileo Galilei" .choiceValue="${'Galileo Galilei'}"></lion-checkbox>
163
+ <lion-checkbox-indeterminate label="Old Greek scientists">
164
+ <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
165
+ <lion-checkbox label="Plato" .choiceValue="${'Plato'}"></lion-checkbox>
166
+ <lion-checkbox label="Pythagoras" .choiceValue="${'Pythagoras'}"></lion-checkbox>
194
167
  </lion-checkbox-indeterminate>
195
168
  </lion-checkbox-indeterminate>
196
169
  </lion-checkbox-group>
@@ -201,24 +174,12 @@ You can also use `mixed-state` attribute so your indeterminate checkbox toggles
201
174
  ```html preview-story
202
175
  <lion-checkbox-group name="scientists[]" label="Favorite scientists">
203
176
  <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">
213
- <lion-checkbox
214
- label="Archimedes"
215
- .choiceValue="${'Archimedes'}"
216
- ></lion-checkbox>
217
- <lion-checkbox label="Plato" .choiceValue="${'Plato'}"></lion-checkbox>
218
- <lion-checkbox
219
- label="Pythagoras"
220
- .choiceValue="${'Pythagoras'}"
221
- ></lion-checkbox>
177
+ <lion-checkbox label="Isaac Newton" .choiceValue="${'Isaac Newton'}"></lion-checkbox>
178
+ <lion-checkbox label="Galileo Galilei" .choiceValue="${'Galileo Galilei'}"></lion-checkbox>
179
+ <lion-checkbox-indeterminate mixed-state label="Old Greek scientists">
180
+ <lion-checkbox label="Archimedes" .choiceValue="${'Archimedes'}"></lion-checkbox>
181
+ <lion-checkbox label="Plato" .choiceValue="${'Plato'}"></lion-checkbox>
182
+ <lion-checkbox label="Pythagoras" .choiceValue="${'Pythagoras'}"></lion-checkbox>
222
183
  </lion-checkbox-indeterminate>
223
184
  </lion-checkbox-indeterminate>
224
185
  </lion-checkbox-group>
@@ -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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/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
 
@@ -34,7 +34,7 @@ export const main = () => html`
34
34
  `;
35
35
  ```
36
36
 
37
- [...show more](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/combobox/extensions.md)
37
+ [...show more](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/combobox/extensions.md)
38
38
 
39
39
  ## Features
40
40
 
@@ -371,9 +371,8 @@ class DemoServerSide extends LitElement {
371
371
  .helpText="Returned from server: [${this.options.join(', ')}]"
372
372
  >
373
373
  <label slot="label" aria-live="polite"
374
- >Server side completion ${this.loading
375
- ? html`<span style="font-style: italic;">(loading...)</span>`
376
- : ''}</label
374
+ >Server side completion
375
+ ${this.loading ? html`<span style="font-style: italic;">(loading...)</span>` : ''}</label
377
376
  >
378
377
  ${repeat(
379
378
  this.options,
@@ -458,4 +457,4 @@ export const complexObjectChoiceValue = () =>
458
457
  ## Listbox compatibility
459
458
 
460
459
  All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
461
- See the [listbox documentation](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/listbox/overview.md) for more information.
460
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/form/overview.md)
24
- - [checkbox-group](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/checkbox-group/overview.md)
25
- - [radio-group](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/radio-group/overview.md)
23
+ - [form](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/form/overview.md)
24
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/checkbox-group/overview.md)
25
+ - [radio-group](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/form/interaction-states.md)
35
- - Can have [validate](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/interaction-states.md)
35
+ - Can have [validate](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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
 
@@ -41,7 +41,12 @@ export const disabled = () => {
41
41
  <lion-input name="FirstName" label="First Name" .modelValue="${'Foo'}"></lion-input>
42
42
  <lion-input name="LastName" label="Last Name" .modelValue="${'Bar'}"></lion-input>
43
43
  <lion-fieldset name="nameGroup2" label="Name">
44
- <lion-input name="FirstName2" label="First Name" .modelValue="${'Foo'}" disabled></lion-input>
44
+ <lion-input
45
+ name="FirstName2"
46
+ label="First Name"
47
+ .modelValue="${'Foo'}"
48
+ disabled
49
+ ></lion-input>
45
50
  <lion-input name="LastName2" label="Last Name" .modelValue="${'Bar'}"></lion-input>
46
51
  </lion-fieldset>
47
52
  </lion-fieldset>
@@ -70,7 +75,9 @@ export const nestingFieldsets = () => html`
70
75
  Log everything to Action Logger
71
76
  </button>
72
77
  <br />
73
- <button @click="${ev => console.log(ev.target.parentElement.formElements.nameGroup.modelValue)}">
78
+ <button
79
+ @click="${ev => console.log(ev.target.parentElement.formElements.nameGroup.modelValue)}"
80
+ >
74
81
  Log only Name fieldset to Action Logger
75
82
  </button>
76
83
  </lion-fieldset>
@@ -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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/overview.md).
12
12
 
13
13
  ```js preview-story
14
14
  export const main = () => {
@@ -37,11 +37,11 @@ export const main = () => {
37
37
  - Data synchronization with models
38
38
  - Easy retrieval of form data based on field names
39
39
  - Advanced validation possibilities
40
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/form/interaction-states.md)
40
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/interaction-states.md)
41
41
  - Registration mechanism for form controls
42
42
  - Accessible out of the box
43
43
 
44
- For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/form/overview.md).
44
+ For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/overview.md).
45
45
 
46
46
  ## Installation
47
47
 
@@ -55,7 +55,8 @@ export const formSubmit = () => {
55
55
  <button>Submit</button>
56
56
  <button
57
57
  type="button"
58
- @click="${ev => ev.currentTarget.parentElement.parentElement.parentElement.resetGroup()}"
58
+ @click="${ev =>
59
+ ev.currentTarget.parentElement.parentElement.parentElement.resetGroup()}"
59
60
  >
60
61
  Reset
61
62
  </button>
@@ -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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
29
+ See the [system documentation](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/form/validate.md).
26
+ - Can make use of [validation](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
28
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
27
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/input/overview.md)
28
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
34
34
  - IsNumber (default)
35
35
  - MinNumber
36
36
  - MaxNumber
@@ -96,10 +96,10 @@ export const noDecimals = () => html`
96
96
  <lion-input-amount
97
97
  label="Amount"
98
98
  help-text="Prefilled and formatted"
99
- .formatOptions="${({
99
+ .formatOptions="${{
100
100
  minimumFractionDigits: 0,
101
101
  maximumFractionDigits: 0,
102
- })}"
102
+ }}"
103
103
  .modelValue="${20}"
104
104
  >
105
105
  </lion-input-amount>
@@ -16,11 +16,11 @@ import '@lion/ui/define/lion-input-date.js';
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
20
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/input/overview.md)
20
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
24
24
  - IsDate (default)
25
25
  - MinDate
26
26
  - MaxDate
@@ -58,12 +58,13 @@ export const withMinimumAndMaximumDate = () => {
58
58
  <lion-input-date
59
59
  label="MinMaxDate"
60
60
  .modelValue="${new Date('2018/05/30')}"
61
- .validators="${[new MinMaxDate({ min: new Date('2018/05/24'), max: new Date('2018/06/24') })]}"
61
+ .validators="${[
62
+ new MinMaxDate({ min: new Date('2018/05/24'), max: new Date('2018/06/24') }),
63
+ ]}"
62
64
  >
63
65
  <div slot="help-text">
64
- Enter a date between ${formatDate(new Date('2018/05/24'))} and ${formatDate(
65
- new Date('2018/06/24'),
66
- )}.
66
+ Enter a date between ${formatDate(new Date('2018/05/24'))} and
67
+ ${formatDate(new Date('2018/06/24'))}.
67
68
  </div>
68
69
  </lion-input-date>
69
70
  `;
@@ -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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input-date/overview.md) for this.
5
+ We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input-date/overview.md)
22
- - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/calendar/overview.md) inside the datepicker
23
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
+ - Based on our [input-date](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/input-date/overview.md)
22
+ - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/calendar/overview.md) inside the datepicker
23
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
26
26
  - IsDate (default)
27
27
  - MinDate
28
28
  - MaxDate
@@ -21,9 +21,8 @@ export const minimumAndMaximumDate = () => html`
21
21
  .validators="${[new MinMaxDate({ min: new Date('2018/05/24'), max: new Date('2018/06/24') })]}"
22
22
  >
23
23
  <div slot="help-text">
24
- Enter a date between ${formatDate(new Date('2018/05/24'))} and ${formatDate(
25
- new Date('2018/06/24'),
26
- )}.
24
+ Enter a date between ${formatDate(new Date('2018/05/24'))} and
25
+ ${formatDate(new Date('2018/06/24'))}.
27
26
  </div>
28
27
  </lion-input-datepicker>
29
28
  `;
@@ -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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
19
- - Makes use of email [validators](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/input/overview.md)
19
+ - Makes use of email [validators](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/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/370b357bd3ab5667616801c496f59c79d71585ba/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
@@ -13,11 +13,11 @@ import '@lion/ui/define/lion-input-range.js';
13
13
 
14
14
  ## Features
15
15
 
16
- - Based on our [input](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md).
16
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/components/input/overview.md).
17
17
  - Shows `modelValue` and `unit` above the range input.
18
18
  - Shows `min` and `max` value after the range input.
19
19
  - Can hide the `min` and `max` value via `no-min-max-labels`.
20
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
20
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
21
21
 
22
22
  ## Installation
23
23
 
@@ -18,7 +18,7 @@ loadDefaultFeedbackMessages();
18
18
 
19
19
  ## Features
20
20
 
21
- - Based on our [input](https://github.com/ing-bank/lion/blob/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md).
21
+ - Based on our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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/b25478e4cc0cb51c4fda1eccadf5e630b679f53c/docs/components/input/overview.md)
42
+ - Extends our [input](https://github.com/ing-bank/lion/blob/370b357bd3ab5667616801c496f59c79d71585ba/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