@statistikzh/leu 0.13.1 → 0.14.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 (174) hide show
  1. package/.eslintrc.json +8 -0
  2. package/.github/workflows/ci.yml +78 -0
  3. package/.github/workflows/deploy-github-pages.yaml +2 -1
  4. package/.github/workflows/release-please.yml +2 -1
  5. package/.nvmrc +1 -0
  6. package/.prettierignore +1 -0
  7. package/.storybook/main.js +19 -3
  8. package/CHANGELOG.md +16 -0
  9. package/custom-elements-manifest.config.js +2 -2
  10. package/dist/Accordion.d.ts +1 -1
  11. package/dist/Accordion.d.ts.map +1 -1
  12. package/dist/Accordion.js +2 -4
  13. package/dist/Button.d.ts +2 -2
  14. package/dist/Button.js +2 -2
  15. package/dist/ButtonGroup.d.ts +1 -1
  16. package/dist/ButtonGroup.js +1 -1
  17. package/dist/Checkbox.d.ts +1 -1
  18. package/dist/Checkbox.d.ts.map +1 -1
  19. package/dist/Checkbox.js +2 -3
  20. package/dist/CheckboxGroup.d.ts +1 -1
  21. package/dist/CheckboxGroup.d.ts.map +1 -1
  22. package/dist/CheckboxGroup.js +1 -3
  23. package/dist/Chip.d.ts +1 -1
  24. package/dist/Chip.d.ts.map +1 -1
  25. package/dist/Chip.js +1 -3
  26. package/dist/ChipGroup.d.ts +1 -1
  27. package/dist/ChipGroup.d.ts.map +1 -1
  28. package/dist/ChipGroup.js +2 -2
  29. package/dist/ChipLink.js +1 -1
  30. package/dist/ChipRemovable.js +1 -1
  31. package/dist/ChipSelectable.js +1 -1
  32. package/dist/Dialog.d.ts +1 -1
  33. package/dist/Dialog.d.ts.map +1 -1
  34. package/dist/Dialog.js +3 -5
  35. package/dist/Dropdown.d.ts +1 -1
  36. package/dist/Dropdown.js +3 -3
  37. package/dist/Icon.d.ts +2 -98
  38. package/dist/Icon.d.ts.map +1 -1
  39. package/dist/Icon.js +1 -1
  40. package/dist/Input.d.ts +7 -2
  41. package/dist/Input.d.ts.map +1 -1
  42. package/dist/Input.js +15 -8
  43. package/dist/{LeuElement-b670d77c.d.ts → LeuElement-BjGpKQpe.d.ts} +1 -1
  44. package/dist/LeuElement-BjGpKQpe.d.ts.map +1 -0
  45. package/dist/{LeuElement-b670d77c.js → LeuElement-BjGpKQpe.js} +2 -2
  46. package/dist/Menu.d.ts +2 -2
  47. package/dist/Menu.js +1 -1
  48. package/dist/MenuItem.d.ts +3 -3
  49. package/dist/MenuItem.js +1 -1
  50. package/dist/Pagination.d.ts +1 -1
  51. package/dist/Pagination.js +3 -3
  52. package/dist/Popup.d.ts +2 -2
  53. package/dist/Popup.d.ts.map +1 -1
  54. package/dist/Popup.js +1 -3
  55. package/dist/Radio.d.ts +1 -1
  56. package/dist/Radio.d.ts.map +1 -1
  57. package/dist/Radio.js +1 -3
  58. package/dist/RadioGroup.d.ts +1 -1
  59. package/dist/RadioGroup.d.ts.map +1 -1
  60. package/dist/RadioGroup.js +1 -3
  61. package/dist/Range.d.ts +1 -1
  62. package/dist/Range.d.ts.map +1 -1
  63. package/dist/Range.js +17 -19
  64. package/dist/ScrollTop.d.ts +1 -1
  65. package/dist/ScrollTop.d.ts.map +1 -1
  66. package/dist/ScrollTop.js +27 -3
  67. package/dist/Select.d.ts +3 -3
  68. package/dist/Select.d.ts.map +1 -1
  69. package/dist/Select.js +6 -4
  70. package/dist/Spinner.d.ts +1 -1
  71. package/dist/Spinner.js +1 -1
  72. package/dist/Table.d.ts +1 -1
  73. package/dist/Table.d.ts.map +1 -1
  74. package/dist/Table.js +3 -4
  75. package/dist/VisuallyHidden.d.ts +1 -1
  76. package/dist/VisuallyHidden.d.ts.map +1 -1
  77. package/dist/VisuallyHidden.js +3 -5
  78. package/dist/{hasSlotController-c09741c5.d.ts → hasSlotController-DvFw2NdC.d.ts} +1 -1
  79. package/dist/hasSlotController-DvFw2NdC.d.ts.map +1 -0
  80. package/dist/{hasSlotController-c09741c5.js → hasSlotController-DvFw2NdC.js} +1 -1
  81. package/dist/index.d.ts +1 -2
  82. package/dist/index.js +5 -7
  83. package/dist/leu-accordion.js +1 -1
  84. package/dist/leu-button-group.js +1 -1
  85. package/dist/leu-button.js +2 -2
  86. package/dist/leu-checkbox-group.js +1 -1
  87. package/dist/leu-checkbox.js +1 -1
  88. package/dist/leu-chip-group.js +1 -1
  89. package/dist/leu-chip-link.js +1 -1
  90. package/dist/leu-chip-removable.js +1 -1
  91. package/dist/leu-chip-selectable.js +1 -1
  92. package/dist/leu-dialog.js +2 -2
  93. package/dist/leu-dropdown.js +2 -2
  94. package/dist/leu-icon.js +1 -1
  95. package/dist/leu-input.js +1 -1
  96. package/dist/leu-menu-item.js +1 -1
  97. package/dist/leu-menu.js +1 -1
  98. package/dist/leu-pagination.js +2 -2
  99. package/dist/leu-popup.js +1 -1
  100. package/dist/leu-radio-group.js +1 -1
  101. package/dist/leu-radio.js +1 -1
  102. package/dist/leu-range.js +1 -1
  103. package/dist/leu-scroll-top.js +2 -3
  104. package/dist/leu-select.js +2 -2
  105. package/dist/leu-spinner.js +1 -1
  106. package/dist/leu-table.js +2 -2
  107. package/dist/leu-visually-hidden.js +1 -1
  108. package/dist/theme.css +143 -107
  109. package/dist/vscode.html-custom-data.json +3 -32
  110. package/dist/vue/index.d.ts +11 -77
  111. package/dist/web-types.json +246 -242
  112. package/index.js +0 -1
  113. package/package.json +55 -51
  114. package/rollup.config.js +3 -3
  115. package/scripts/generate-component/generate.js +5 -5
  116. package/src/components/accordion/test/accordion.test.js +24 -20
  117. package/src/components/button/Button.js +1 -1
  118. package/src/components/button/stories/button.stories.js +43 -45
  119. package/src/components/button/test/button.test.js +10 -10
  120. package/src/components/button-group/ButtonGroup.js +1 -1
  121. package/src/components/button-group/stories/button-group.stories.js +2 -2
  122. package/src/components/checkbox/checkbox.css +1 -0
  123. package/src/components/chip/ChipSelectable.js +1 -1
  124. package/src/components/chip/stories/chip-group.stories.js +4 -4
  125. package/src/components/chip/test/chip-group.test.js +25 -33
  126. package/src/components/chip/test/chip-link.test.js +5 -5
  127. package/src/components/chip/test/chip-removable.test.js +6 -8
  128. package/src/components/chip/test/chip-selectable.test.js +9 -11
  129. package/src/components/dialog/test/dialog.test.js +1 -1
  130. package/src/components/dropdown/test/dropdown.test.js +12 -13
  131. package/src/components/input/Input.js +25 -17
  132. package/src/components/input/stories/input.stories.js +0 -2
  133. package/src/components/input/test/input.test.js +26 -0
  134. package/src/components/menu/stories/menu-item.stories.js +2 -0
  135. package/src/components/menu/test/menu-item.test.js +3 -2
  136. package/src/components/menu/test/menu.test.js +24 -22
  137. package/src/components/pagination/Pagination.js +1 -1
  138. package/src/components/pagination/pagination.css +1 -1
  139. package/src/components/pagination/stories/pagination.stories.js +2 -1
  140. package/src/components/pagination/test/pagination.test.js +8 -6
  141. package/src/components/popup/Popup.js +4 -4
  142. package/src/components/popup/test/popup.test.js +6 -8
  143. package/src/components/radio/RadioGroup.js +2 -2
  144. package/src/components/range/Range.js +20 -21
  145. package/src/components/select/Select.js +6 -1
  146. package/src/components/select/stories/select.stories.js +1 -1
  147. package/src/components/select/test/select.test.js +18 -16
  148. package/src/components/table/Table.js +4 -4
  149. package/src/components/table/test/table.test.js +3 -2
  150. package/src/components/visually-hidden/test/visually-hidden.test.js +6 -8
  151. package/src/lib/LeuElement.js +2 -2
  152. package/src/lib/hasSlotController.js +1 -1
  153. package/src/styles/style.stories.js +3 -1
  154. package/tsconfig.build.json +4 -3
  155. package/web-dev-server.config.mjs +1 -0
  156. package/web-test-runner.config.mjs +1 -1
  157. package/.github/workflows/test.yml +0 -38
  158. package/.storybook/preview-head.html +0 -2
  159. package/dist/Breadcrumb.d.ts +0 -69
  160. package/dist/Breadcrumb.d.ts.map +0 -1
  161. package/dist/Breadcrumb.js +0 -391
  162. package/dist/LeuElement-b670d77c.d.ts.map +0 -1
  163. package/dist/hasSlotController-c09741c5.d.ts.map +0 -1
  164. package/dist/leu-breadcrumb.d.ts +0 -3
  165. package/dist/leu-breadcrumb.d.ts.map +0 -1
  166. package/dist/leu-breadcrumb.js +0 -17
  167. package/dist/utils-65469421.d.ts +0 -16
  168. package/dist/utils-65469421.d.ts.map +0 -1
  169. package/dist/utils-65469421.js +0 -35
  170. package/src/components/breadcrumb/Breadcrumb.js +0 -324
  171. package/src/components/breadcrumb/breadcrumb.css +0 -98
  172. package/src/components/breadcrumb/leu-breadcrumb.js +0 -5
  173. package/src/components/breadcrumb/stories/breadcrumb.stories.js +0 -73
  174. package/src/components/breadcrumb/test/breadcrumb.test.js +0 -141
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@statistikzh/leu",
4
- "version": "0.13.1",
4
+ "version": "0.14.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -42,66 +42,25 @@
42
42
  "js": {
43
43
  "properties": [
44
44
  {
45
- "name": "heading-level",
45
+ "name": "headingLevel",
46
46
  "description": "The heading level of the accordion title. Must be between 1 and 6.",
47
- "value": { "type": "number" }
48
- },
49
- {
50
- "name": "label-prefix",
51
- "description": "The prefix of the accordion label. e.g. \"01\"",
52
- "value": { "type": "string" }
47
+ "type": "number"
53
48
  },
54
49
  {
55
50
  "name": "open",
56
51
  "description": "The expanded state of the accordion.",
57
- "value": { "type": "boolean" }
52
+ "type": "boolean"
58
53
  },
59
54
  {
60
55
  "name": "label",
61
56
  "description": "The label (title) of the accordion.",
62
- "value": { "type": "string" }
63
- }
64
- ],
65
- "events": []
66
- }
67
- },
68
- {
69
- "name": "leu-breadcrumb",
70
- "description": "A Breadcrumb Navigation.\n\nThe breadcrumbs can be displayed in two different layouts.\nOnly the back link (the last item / parent of the current page)\nis displayed when…\n- … the width of the container is smaller\n than the BACK_ONLY_BREAKPOINT.\n- … less then two breadcrumb items could be displayed\n without overflowing the container.\n\nOtherwise as many items as possible are displayed in an inline list\nwithout overflowing the container. The remaining items are displayed\nin a dropdown menu.\n\nIn order to determine the exact numbers of items that have to be\nhidden inside the dropdown, all of them have to be rendered first.\n1. Render all items\n2. Calculate (measure) the number of items that can be displayed\n without overflowing the container.\n3. Updating the state (_hiddeItems) which will trigger a rerender\n4. Render the items again with the new state.\n\nThis results in multiple updates scheduled one after another. Lit\nwill also print a waring in the console beacause of that.\nIt's no a nice behaviour but the only one that works without\nhaving duplicate and hidden markup to derive the sizes from that.\n---\n\n\n### **Methods:**\n - **renderDropdown(): __** - Render the dropdown menu",
71
- "doc-url": "",
72
- "attributes": [
73
- {
74
- "name": "items",
75
- "description": "Object array with { label, href }",
76
- "value": { "type": "Array", "default": "[]" }
77
- },
78
- {
79
- "name": "inverted",
80
- "description": "invert color on dark background",
81
- "value": { "type": "boolean", "default": "false" }
82
- },
83
- { "name": "_hiddenItems", "value": { "type": "string" } },
84
- { "name": "_showBackOnly", "value": { "type": "string" } },
85
- { "name": "_isRecalculating", "value": { "type": "string" } },
86
- { "name": "_isDropdownOpen", "value": { "type": "string" } }
87
- ],
88
- "events": [],
89
- "js": {
90
- "properties": [
91
- {
92
- "name": "items",
93
- "description": "Object array with { label, href }",
94
- "value": { "type": "Array" }
57
+ "type": "string"
95
58
  },
96
59
  {
97
- "name": "inverted",
98
- "description": "invert color on dark background",
99
- "value": { "type": "boolean" }
100
- },
101
- { "name": "_hiddenItems", "value": {} },
102
- { "name": "_showBackOnly", "value": {} },
103
- { "name": "_isRecalculating", "value": {} },
104
- { "name": "_isDropdownOpen", "value": {} }
60
+ "name": "labelPrefix",
61
+ "description": "The prefix of the accordion label. e.g. \"01\"",
62
+ "type": "string"
63
+ }
105
64
  ],
106
65
  "events": []
107
66
  }
@@ -183,35 +142,32 @@
183
142
  "events": [],
184
143
  "js": {
185
144
  "properties": [
186
- { "name": "label", "value": { "type": "string" } },
187
- { "name": "size", "value": { "type": "string" } },
188
- { "name": "variant", "value": { "type": "string" } },
189
- {
190
- "name": "type",
191
- "value": { "type": "\"button\" | \"submit\" | \"reset\"" }
192
- },
193
- { "name": "componentRole", "value": { "type": "string" } },
194
- { "name": "disabled", "value": { "type": "boolean" } },
145
+ { "name": "label", "type": "string" },
146
+ { "name": "size", "type": "string" },
147
+ { "name": "variant", "type": "string" },
148
+ { "name": "type", "type": "\"button\" | \"submit\" | \"reset\"" },
149
+ { "name": "componentRole", "type": "string" },
150
+ { "name": "disabled", "type": "boolean" },
195
151
  {
196
152
  "name": "round",
197
153
  "description": "Only taken into account if no Label and an Icon is set",
198
- "value": { "type": "boolean" }
154
+ "type": "boolean"
199
155
  },
200
- { "name": "active", "value": { "type": "boolean" } },
156
+ { "name": "active", "type": "boolean" },
201
157
  {
202
158
  "name": "inverted",
203
159
  "description": "will be used on dark Background",
204
- "value": { "type": "boolean" }
205
- },
206
- {
207
- "name": "expanded",
208
- "description": "Only taken into account if variant is \"ghost\"",
209
- "value": { "type": "(\"true\" | \"false\" | undefined)" }
160
+ "type": "boolean"
210
161
  },
211
162
  {
212
163
  "name": "fluid",
213
164
  "description": "Alters the shape of the button to be full width of its parent container",
214
- "value": { "type": "boolean" }
165
+ "type": "boolean"
166
+ },
167
+ {
168
+ "name": "expanded",
169
+ "description": "Only taken into account if variant is \"ghost\"",
170
+ "type": "(\"true\" | \"false\" | undefined)"
215
171
  }
216
172
  ],
217
173
  "events": []
@@ -226,24 +182,23 @@
226
182
  "events": [
227
183
  {
228
184
  "name": "input",
185
+ "type": "CustomEvent",
229
186
  "description": "When the value of the group changes by clicking a button"
230
187
  }
231
188
  ],
232
189
  "js": {
233
190
  "properties": [
234
- { "name": "getButtonValue", "value": {} },
235
191
  {
236
192
  "name": "value",
237
193
  "description": "The value of the currenty selected (active) button",
238
- "value": { "type": "string" }
194
+ "type": "string"
239
195
  },
240
- { "name": "_handleSlotChange", "value": {} },
241
- { "name": "_handleButtonClick", "value": {} },
242
- { "name": "_items", "value": { "type": "array" } }
196
+ { "name": "_items", "type": "array" }
243
197
  ],
244
198
  "events": [
245
199
  {
246
200
  "name": "input",
201
+ "type": "CustomEvent",
247
202
  "description": "When the value of the group changes by clicking a button"
248
203
  }
249
204
  ]
@@ -271,10 +226,10 @@
271
226
  "events": [],
272
227
  "js": {
273
228
  "properties": [
274
- { "name": "checked", "value": { "type": "boolean" } },
275
- { "name": "disabled", "value": { "type": "boolean" } },
276
- { "name": "value", "value": { "type": "string" } },
277
- { "name": "name", "value": { "type": "string" } }
229
+ { "name": "checked", "type": "boolean" },
230
+ { "name": "disabled", "type": "boolean" },
231
+ { "name": "name", "type": "string" },
232
+ { "name": "value", "type": "string" }
278
233
  ],
279
234
  "events": []
280
235
  }
@@ -296,11 +251,13 @@
296
251
  "events": [],
297
252
  "js": {
298
253
  "properties": [
254
+ { "name": "value" },
299
255
  {
300
256
  "name": "orientation",
301
- "value": { "type": "\"horizontal\" | \"vertical\"" }
257
+ "type": "\"horizontal\" | \"vertical\""
302
258
  },
303
- { "name": "label", "value": { "type": "string" } }
259
+ { "name": "items", "type": "array" },
260
+ { "name": "label", "type": "string" }
304
261
  ],
305
262
  "events": []
306
263
  }
@@ -336,13 +293,17 @@
336
293
  "events": [],
337
294
  "js": {
338
295
  "properties": [
339
- { "name": "inverted", "value": { "type": "boolean" } },
340
296
  {
341
- "name": "selection-mode",
342
- "value": { "type": "\"single\" | \"multiple\" | \"none\"" }
297
+ "name": "value",
298
+ "description": "Checks the items with the given values.\nIf the selectionMode is single, only the first item with the given value is checked."
343
299
  },
344
- { "name": "heading-level", "value": { "type": "number" } },
345
- { "name": "label", "value": { "type": "string" } }
300
+ { "name": "inverted", "type": "boolean" },
301
+ { "name": "headingLevel", "type": "number" },
302
+ { "name": "label", "type": "string" },
303
+ {
304
+ "name": "selectionMode",
305
+ "type": "\"single\" | \"multiple\" | \"none\""
306
+ }
346
307
  ],
347
308
  "events": []
348
309
  }
@@ -352,7 +313,6 @@
352
313
  "description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
353
314
  "doc-url": "",
354
315
  "attributes": [
355
- { "name": "", "value": { "type": "string" } },
356
316
  {
357
317
  "name": "size",
358
318
  "description": "The size of the chip",
@@ -371,14 +331,13 @@
371
331
  "events": [],
372
332
  "js": {
373
333
  "properties": [
374
- { "name": "", "value": {} },
334
+ { "name": "inverted", "type": "boolean" },
375
335
  {
376
336
  "name": "size",
377
337
  "description": "The size of the chip",
378
- "value": { "type": "keyof typeof SIZES" }
338
+ "type": "keyof typeof SIZES"
379
339
  },
380
- { "name": "href", "value": { "type": "string" } },
381
- { "name": "inverted", "value": { "type": "boolean" } }
340
+ { "name": "href", "type": "string" }
382
341
  ],
383
342
  "events": []
384
343
  }
@@ -388,7 +347,6 @@
388
347
  "description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
389
348
  "doc-url": "",
390
349
  "attributes": [
391
- { "name": "", "value": { "type": "string" } },
392
350
  {
393
351
  "name": "value",
394
352
  "description": "The value of the chip.",
@@ -408,13 +366,12 @@
408
366
  ],
409
367
  "js": {
410
368
  "properties": [
411
- { "name": "", "value": {} },
412
369
  {
413
370
  "name": "value",
414
371
  "description": "The value of the chip.",
415
- "value": { "type": "string" }
372
+ "type": "string"
416
373
  },
417
- { "name": "inverted", "value": { "type": "boolean" } }
374
+ { "name": "inverted", "type": "boolean" }
418
375
  ],
419
376
  "events": [
420
377
  {
@@ -426,10 +383,9 @@
426
383
  },
427
384
  {
428
385
  "name": "leu-chip-selectable",
429
- "description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input** - undefined\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
386
+ "description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input**\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
430
387
  "doc-url": "",
431
388
  "attributes": [
432
- { "name": "", "value": { "type": "string" } },
433
389
  {
434
390
  "name": "size",
435
391
  "description": "The size of the chip. Not supported for radio variant.",
@@ -459,33 +415,32 @@
459
415
  }
460
416
  ],
461
417
  "slots": [{ "name": "", "description": "The content of the chip" }],
462
- "events": [{ "name": "input" }],
418
+ "events": [{ "name": "input", "type": "CustomEvent" }],
463
419
  "js": {
464
420
  "properties": [
465
- { "name": "", "value": {} },
466
421
  {
467
422
  "name": "size",
468
423
  "description": "The size of the chip. Not supported for radio variant.",
469
- "value": { "type": "keyof typeof SIZES" }
424
+ "type": "keyof typeof SIZES"
470
425
  },
471
426
  {
472
427
  "name": "variant",
473
- "description": "`toggle` or `radio`. Determines if only one or multiple chips can be selected.",
474
- "value": { "type": "keyof typeof VARIANTS" }
428
+ "description": "The variant of the chip. Has an effect not only on the visual appearance but also on the behavior.\n- `toggle`: The chip behaves like a toggle button.\n- `radio`: The chip behaves like a radio button.",
429
+ "type": "keyof typeof VARIANTS"
475
430
  },
476
431
  {
477
432
  "name": "checked",
478
433
  "description": "Whether the chip is selected.",
479
- "value": { "type": "boolean" }
434
+ "type": "boolean"
480
435
  },
481
436
  {
482
437
  "name": "value",
483
438
  "description": "The value of the chip.",
484
- "value": { "type": "string" }
439
+ "type": "string"
485
440
  },
486
- { "name": "inverted", "value": { "type": "boolean" } }
441
+ { "name": "inverted", "type": "boolean" }
487
442
  ],
488
- "events": [{ "name": "input" }]
443
+ "events": [{ "name": "input", "type": "CustomEvent" }]
489
444
  }
490
445
  },
491
446
  {
@@ -509,9 +464,10 @@
509
464
  "events": [],
510
465
  "js": {
511
466
  "properties": [
512
- { "name": "label", "value": { "type": "string" } },
513
- { "name": "sublabel", "value": { "type": "string" } },
514
- { "name": "open", "value": { "type": "boolean" } }
467
+ { "name": "_dialogRef", "type": "Ref<HTMLDialogElement>" },
468
+ { "name": "label", "type": "string" },
469
+ { "name": "sublabel", "type": "string" },
470
+ { "name": "open", "type": "boolean" }
515
471
  ],
516
472
  "events": []
517
473
  }
@@ -533,8 +489,16 @@
533
489
  "events": [],
534
490
  "js": {
535
491
  "properties": [
536
- { "name": "label", "value": { "type": "string" } },
537
- { "name": "expanded", "value": { "type": "boolean" } }
492
+ { "name": "hasSlotController" },
493
+ { "name": "_documentClickHandler" },
494
+ { "name": "_menuItemClickHandler" },
495
+ {
496
+ "name": "_keyDownMenuHandler",
497
+ "description": "Close the dropdown when the user presses the Escape or the Tab key.\nNavigating the menu with the arrow keys is handled by the menu itself."
498
+ },
499
+ { "name": "label", "type": "string" },
500
+ { "name": "expanded", "type": "boolean" },
501
+ { "name": "_toggleRef", "type": "Ref<HTMLButtonElement>" }
538
502
  ],
539
503
  "events": []
540
504
  }
@@ -556,7 +520,7 @@
556
520
  {
557
521
  "name": "name",
558
522
  "description": "The name of the icon to display.",
559
- "value": { "type": "IconPathName" }
523
+ "type": "IconPathName | \"\""
560
524
  }
561
525
  ],
562
526
  "events": []
@@ -564,7 +528,7 @@
564
528
  },
565
529
  {
566
530
  "name": "leu-input",
567
- "description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.",
531
+ "description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **checkValidity(): _boolean_** - Check input validation\n- **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.",
568
532
  "doc-url": "",
569
533
  "attributes": [
570
534
  {
@@ -675,124 +639,129 @@
675
639
  "events": [
676
640
  {
677
641
  "name": "input",
642
+ "type": "CustomEvent",
678
643
  "description": "Dispatched when the value of the input element changes."
679
644
  },
680
645
  {
681
646
  "name": "change",
647
+ "type": "CustomEvent",
682
648
  "description": "Dispatched when the value of the input element changes and the input element loses focus."
683
649
  }
684
650
  ],
685
651
  "js": {
686
652
  "properties": [
653
+ { "name": "valueAsNumber" },
687
654
  {
688
655
  "name": "disabled",
689
656
  "description": "Disables the input element.",
690
- "value": { "type": "boolean" }
657
+ "type": "boolean"
691
658
  },
692
659
  {
693
660
  "name": "required",
694
661
  "description": "Marks the input element as required.",
695
- "value": { "type": "boolean" }
662
+ "type": "boolean"
696
663
  },
697
664
  {
698
665
  "name": "clearable",
699
666
  "description": "Adds a button to clear the input element.",
700
- "value": { "type": "boolean" }
667
+ "type": "boolean"
668
+ },
669
+ {
670
+ "name": "size",
671
+ "description": "The size of the input element.",
672
+ "type": "\"small\" | \"regular\""
673
+ },
674
+ {
675
+ "name": "type",
676
+ "description": "The type of the input element.",
677
+ "type": "string"
678
+ },
679
+ { "name": "_validity", "type": "null" },
680
+ {
681
+ "name": "validationMessages",
682
+ "description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
683
+ "type": "object"
684
+ },
685
+ {
686
+ "name": "novalidate",
687
+ "description": "Disables the browser's validation.",
688
+ "type": "boolean"
701
689
  },
702
690
  {
703
691
  "name": "value",
704
692
  "description": "The value of the input element.",
705
- "value": { "type": "string" }
693
+ "type": "string"
706
694
  },
707
695
  {
708
696
  "name": "name",
709
697
  "description": "The name of the input element.",
710
- "value": { "type": "string" }
698
+ "type": "string"
699
+ },
700
+ {
701
+ "name": "label",
702
+ "description": "The label of the input element.",
703
+ "type": "string"
711
704
  },
712
705
  {
713
706
  "name": "error",
714
707
  "description": "A custom error that is completely independent of the validity state. Useful for displaying server side errors.",
715
- "value": { "type": "string" }
708
+ "type": "string"
716
709
  },
717
710
  {
718
- "name": "label",
719
- "description": "The label of the input element.",
720
- "value": { "type": "string" }
711
+ "name": "icon",
712
+ "description": "The icon that is displayed at the end of the input element.",
713
+ "type": "string"
721
714
  },
722
715
  {
723
716
  "name": "prefix",
724
717
  "description": "A prefix that relates to the value of the input (e.g. CHF).",
725
- "value": { "type": "string" }
718
+ "type": "string"
726
719
  },
727
720
  {
728
721
  "name": "suffix",
729
722
  "description": "A suffix that relates to the value of the input (e.g. mm).",
730
- "value": { "type": "string" }
731
- },
732
- {
733
- "name": "size",
734
- "description": "The size of the input element.",
735
- "value": { "type": "string" }
736
- },
737
- {
738
- "name": "icon",
739
- "description": "The icon that is displayed at the end of the input element.",
740
- "value": { "type": "string" }
723
+ "type": "string"
741
724
  },
742
725
  {
743
726
  "name": "pattern",
744
727
  "description": "A regular expression that the value is checked against.",
745
- "value": { "type": "string" }
746
- },
747
- {
748
- "name": "type",
749
- "description": "The type of the input element.",
750
- "value": { "type": "string" }
728
+ "type": "string"
751
729
  },
752
730
  {
753
731
  "name": "min",
754
732
  "description": "The minimum value of the input element.",
755
- "value": { "type": "string" }
733
+ "type": "string"
756
734
  },
757
735
  {
758
736
  "name": "max",
759
737
  "description": "The maximum value of the input element.",
760
- "value": { "type": "string" }
761
- },
762
- {
763
- "name": "maxlength",
764
- "description": "The maximum length of the input element.",
765
- "value": { "type": "string" }
738
+ "type": "string"
766
739
  },
767
740
  {
768
741
  "name": "minlength",
769
742
  "description": "The minimum length of the input element.",
770
- "value": { "type": "string" }
743
+ "type": "string"
771
744
  },
772
745
  {
773
- "name": "validationMessages",
774
- "description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
775
- "value": { "type": "object" }
776
- },
777
- {
778
- "name": "novalidate",
779
- "description": "Disables the browser's validation.",
780
- "value": { "type": "boolean" }
746
+ "name": "maxlength",
747
+ "description": "The maximum length of the input element.",
748
+ "type": "string"
781
749
  },
782
750
  {
783
751
  "name": "step",
784
752
  "description": "The step value of the input element.",
785
- "value": { "type": "string" }
786
- },
787
- { "name": "_validity", "value": { "type": "null" } }
753
+ "type": "string"
754
+ }
788
755
  ],
789
756
  "events": [
790
757
  {
791
758
  "name": "input",
759
+ "type": "CustomEvent",
792
760
  "description": "Dispatched when the value of the input element changes."
793
761
  },
794
762
  {
795
763
  "name": "change",
764
+ "type": "CustomEvent",
796
765
  "description": "Dispatched when the value of the input element changes and the input element loses focus."
797
766
  }
798
767
  ]
@@ -815,8 +784,9 @@
815
784
  {
816
785
  "name": "selects",
817
786
  "description": "This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'.",
818
- "value": { "type": "SelectsType" }
819
- }
787
+ "type": "SelectsType"
788
+ },
789
+ { "name": "value" }
820
790
  ],
821
791
  "events": []
822
792
  }
@@ -871,37 +841,37 @@
871
841
  {
872
842
  "name": "active",
873
843
  "description": "Defines if the item is selected or checked",
874
- "value": { "type": "boolean" }
875
- },
876
- {
877
- "name": "multipleSelection",
878
- "description": "If the item is part of a multiple selection. Renders a checkmark before the label when active",
879
- "value": { "type": "boolean" }
844
+ "type": "boolean"
880
845
  },
881
846
  {
882
847
  "name": "disabled",
883
848
  "description": "Disables the underlying button or link",
884
- "value": { "type": "boolean" }
849
+ "type": "boolean"
885
850
  },
886
851
  {
887
- "name": "tabbable",
888
- "description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
889
- "value": { "type": "boolean" }
852
+ "name": "multipleSelection",
853
+ "description": "If the item is part of a multiple selection. Renders a checkmark before the label when active",
854
+ "type": "boolean"
855
+ },
856
+ {
857
+ "name": "value",
858
+ "description": "The value of the item. It must not contain commas. See `getValue()`",
859
+ "type": "string"
890
860
  },
891
861
  {
892
862
  "name": "href",
893
863
  "description": "The href of the underlying link",
894
- "value": { "type": "string" }
864
+ "type": "string"
895
865
  },
896
866
  {
897
- "name": "value",
898
- "description": "The value of the item. It must not contain commas. See `getValue()`",
899
- "value": { "type": "string" }
867
+ "name": "tabbable",
868
+ "description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
869
+ "type": "boolean"
900
870
  },
901
871
  {
902
872
  "name": "componentRole",
903
873
  "description": "The role of the item. This will be reflected as `role` to the underlying button or link. Default is `'menuitem'.`",
904
- "value": { "type": "MenuItemRole" }
874
+ "type": "MenuItemRole"
905
875
  }
906
876
  ],
907
877
  "events": []
@@ -909,7 +879,7 @@
909
879
  },
910
880
  {
911
881
  "name": "leu-pagination",
912
- "description": "\n---\n\n\n### **Events:**\n - **leu:pagechange** - undefined",
882
+ "description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**",
913
883
  "doc-url": "",
914
884
  "attributes": [
915
885
  { "name": "defaultPage", "value": { "type": "number" } },
@@ -923,15 +893,23 @@
923
893
  },
924
894
  { "name": "_page", "value": { "type": "string" } }
925
895
  ],
926
- "events": [{ "name": "leu:pagechange" }],
896
+ "events": [{ "name": "leu:pagechange", "type": "CustomEvent" }],
927
897
  "js": {
928
898
  "properties": [
929
- { "name": "defaultPage", "value": { "type": "number" } },
930
- { "name": "itemsPerPage", "value": { "type": "Number" } },
931
- { "name": "numOfItems", "value": { "type": "Number" } },
932
- { "name": "_page", "value": {} }
899
+ { "name": "page" },
900
+ { "name": "startIndex" },
901
+ { "name": "endIndex" },
902
+ { "name": "_maxPage" },
903
+ { "name": "numOfItems", "type": "Number" },
904
+ { "name": "itemsPerPage", "type": "Number" },
905
+ { "name": "defaultPage", "type": "number" },
906
+ {
907
+ "name": "_page",
908
+ "description": "Internal page state that contains an\nalready clamped page number. Should only\nbe accessed through the `page` getter and\nsetter.",
909
+ "type": "Number"
910
+ }
933
911
  ],
934
- "events": [{ "name": "leu:pagechange" }]
912
+ "events": [{ "name": "leu:pagechange", "type": "CustomEvent" }]
935
913
  }
936
914
  },
937
915
  {
@@ -988,21 +966,24 @@
988
966
  "events": [],
989
967
  "js": {
990
968
  "properties": [
991
- { "name": "anchor", "value": { "type": "string | HTMLElement" } },
992
- { "name": "active", "value": { "type": "boolean" } },
993
- { "name": "placement", "value": { "type": "Placement" } },
994
- { "name": "flip", "value": { "type": "boolean" } },
995
- { "name": "shift", "value": { "type": "boolean" } },
996
- { "name": "shiftPadding", "value": { "type": "number" } },
969
+ { "name": "popupEl" },
970
+ { "name": "anchorEl", "type": "null" },
971
+ { "name": "cleanup" },
972
+ { "name": "flip", "type": "boolean" },
973
+ { "name": "shift", "type": "boolean" },
974
+ { "name": "active", "type": "boolean" },
975
+ { "name": "placement", "type": "Placement" },
997
976
  {
998
977
  "name": "matchSize",
999
- "value": { "type": "\"width\" | \"height\" | \"both\"" }
978
+ "type": "\"width\" | \"height\" | \"both\""
1000
979
  },
1001
980
  {
1002
981
  "name": "autoSize",
1003
- "value": { "type": "\"width\" | \"height\" | \"both\"" }
982
+ "type": "\"width\" | \"height\" | \"both\""
1004
983
  },
1005
- { "name": "autoSizePadding", "value": { "type": "number" } }
984
+ { "name": "shiftPadding", "type": "number" },
985
+ { "name": "autoSizePadding", "type": "number" },
986
+ { "name": "anchor", "type": "string | HTMLElement" }
1006
987
  ],
1007
988
  "events": []
1008
989
  }
@@ -1029,10 +1010,10 @@
1029
1010
  "events": [],
1030
1011
  "js": {
1031
1012
  "properties": [
1032
- { "name": "checked", "value": { "type": "boolean" } },
1033
- { "name": "disabled", "value": { "type": "boolean" } },
1034
- { "name": "value", "value": { "type": "string" } },
1035
- { "name": "name", "value": { "type": "string" } }
1013
+ { "name": "checked", "type": "boolean" },
1014
+ { "name": "disabled", "type": "boolean" },
1015
+ { "name": "name", "type": "string" },
1016
+ { "name": "value", "type": "string" }
1036
1017
  ],
1037
1018
  "events": []
1038
1019
  }
@@ -1054,11 +1035,17 @@
1054
1035
  "events": [],
1055
1036
  "js": {
1056
1037
  "properties": [
1038
+ { "name": "value" },
1039
+ { "name": "handleFocusIn" },
1040
+ { "name": "handleKeyDown" },
1041
+ { "name": "handleInput" },
1057
1042
  {
1058
1043
  "name": "orientation",
1059
- "value": { "type": "\"horizontal\" | \"vertical\"" }
1044
+ "type": "\"horizontal\" | \"vertical\""
1060
1045
  },
1061
- { "name": "label", "value": { "type": "string" } }
1046
+ { "name": "_currentIndex", "type": "number" },
1047
+ { "name": "items", "type": "array" },
1048
+ { "name": "label", "type": "string" }
1062
1049
  ],
1063
1050
  "events": []
1064
1051
  }
@@ -1095,14 +1082,21 @@
1095
1082
  "events": [],
1096
1083
  "js": {
1097
1084
  "properties": [
1098
- { "name": "value", "value": { "type": "array" } },
1099
- { "name": "min", "value": { "type": "number" } },
1100
- { "name": "max", "value": { "type": "number" } },
1101
- { "name": "step", "value": { "type": "number" } },
1102
- { "name": "name", "value": { "type": "string" } },
1103
- { "name": "label", "value": { "type": "string" } },
1104
- { "name": "disabled", "value": { "type": "boolean" } },
1105
- { "name": "multiple", "value": { "type": "boolean" } }
1085
+ {
1086
+ "name": "value",
1087
+ "description": "Sets the value of the underlying input element(s).\nThe value has to be an array if \"multiple\" range is used.\nOtherwise it has to be a string."
1088
+ },
1089
+ { "name": "valueAsArray" },
1090
+ { "name": "valueLow" },
1091
+ { "name": "valueHigh" },
1092
+ { "name": "defaultValue", "type": "array" },
1093
+ { "name": "min", "type": "number" },
1094
+ { "name": "max", "type": "number" },
1095
+ { "name": "step", "type": "number" },
1096
+ { "name": "name", "type": "string" },
1097
+ { "name": "label", "type": "string" },
1098
+ { "name": "disabled", "type": "boolean" },
1099
+ { "name": "multiple", "type": "boolean" }
1106
1100
  ],
1107
1101
  "events": []
1108
1102
  }
@@ -1116,7 +1110,10 @@
1116
1110
  ],
1117
1111
  "events": [],
1118
1112
  "js": {
1119
- "properties": [{ "name": "_showButton", "value": {} }],
1113
+ "properties": [
1114
+ { "name": "scroll" },
1115
+ { "name": "_showButton", "type": "boolean" }
1116
+ ],
1120
1117
  "events": []
1121
1118
  }
1122
1119
  },
@@ -1182,49 +1179,52 @@
1182
1179
  "events": [],
1183
1180
  "js": {
1184
1181
  "properties": [
1185
- {
1186
- "name": "value",
1187
- "description": "List of selected values. If they're set from outside the component, the select element tries to find all the options with the given values and selects them.",
1188
- "value": { "type": "array" }
1189
- },
1190
- {
1191
- "name": "name",
1192
- "description": "Reflects to the name attribute of the hidden input field that would be used in a form",
1193
- "value": { "type": "string" }
1194
- },
1195
1182
  {
1196
1183
  "name": "open",
1197
1184
  "description": "The expanded state of the popup",
1198
- "value": { "type": "boolean" }
1185
+ "type": "boolean"
1199
1186
  },
1200
1187
  {
1201
- "name": "label",
1202
- "description": "The label of the select",
1203
- "value": { "type": "string" }
1188
+ "name": "disabled",
1189
+ "description": "If the select should be disabled",
1190
+ "type": "boolean"
1204
1191
  },
1205
1192
  {
1206
- "name": "clearable",
1207
- "description": "Show a clearable button to reset the value",
1208
- "value": { "type": "boolean" }
1193
+ "name": "multiple",
1194
+ "description": "Allow multiple selections",
1195
+ "type": "boolean"
1209
1196
  },
1210
1197
  {
1211
- "name": "disabled",
1212
- "description": "If the select should be disabled",
1213
- "value": { "type": "boolean" }
1198
+ "name": "clearable",
1199
+ "description": "Show a clearable button to reset the value",
1200
+ "type": "boolean"
1214
1201
  },
1215
1202
  {
1216
1203
  "name": "filterable",
1217
1204
  "description": "Show an input field to filter the options inside the popup",
1218
- "value": { "type": "boolean" }
1205
+ "type": "boolean"
1219
1206
  },
1220
1207
  {
1221
- "name": "multiple",
1222
- "description": "Allow multiple selections",
1223
- "value": { "type": "boolean" }
1208
+ "name": "value",
1209
+ "description": "List of selected values. If they're set from outside the component, the select element tries to find all the options with the given values and selects them.",
1210
+ "type": "array"
1211
+ },
1212
+ {
1213
+ "name": "label",
1214
+ "description": "The label of the select",
1215
+ "type": "string"
1216
+ },
1217
+ {
1218
+ "name": "name",
1219
+ "description": "Reflects to the name attribute of the hidden input field that would be used in a form",
1220
+ "type": "string"
1224
1221
  },
1225
- { "name": "_optionFilter", "value": {} },
1226
- { "name": "_hasFilterResults", "value": {} },
1227
- { "name": "_displayValue", "value": {} }
1222
+ { "name": "_optionFilterRef", "type": "Ref<LeuInput>" },
1223
+ { "name": "_toggleButtonRef", "type": "Ref<HTMLButtonElement>" },
1224
+ { "name": "_menuRef", "type": "Ref<LeuMenu>" },
1225
+ { "name": "_optionFilter", "type": "string" },
1226
+ { "name": "_hasFilterResults", "type": "boolean" },
1227
+ { "name": "_displayValue", "type": "string" }
1228
1228
  ],
1229
1229
  "events": []
1230
1230
  }
@@ -1274,16 +1274,20 @@
1274
1274
  "events": [],
1275
1275
  "js": {
1276
1276
  "properties": [
1277
- { "name": "columns", "value": { "type": "array" } },
1278
- { "name": "data", "value": { "type": "array" } },
1279
- { "name": "firstColumnSticky", "value": { "type": "boolean" } },
1280
- { "name": "itemsPerPage", "value": { "type": "number" } },
1281
- { "name": "sortIndex", "value": { "type": "number" } },
1282
- { "name": "sortOrderAsc", "value": { "type": "boolean" } },
1283
- { "name": "width", "value": { "type": "number" } },
1284
- { "name": "_shadowLeft", "value": {} },
1285
- { "name": "_shadowRight", "value": {} },
1286
- { "name": "_page", "value": {} }
1277
+ { "name": "_columns" },
1278
+ { "name": "_sortedData" },
1279
+ { "name": "_data" },
1280
+ { "name": "columns", "type": "array" },
1281
+ { "name": "data", "type": "array" },
1282
+ { "name": "firstColumnSticky", "type": "boolean" },
1283
+ { "name": "itemsPerPage", "type": "number" },
1284
+ { "name": "sortIndex", "type": "number" },
1285
+ { "name": "sortOrderAsc", "type": "boolean" },
1286
+ { "name": "width", "type": "number" },
1287
+ { "name": "_resizeObserver" },
1288
+ { "name": "_shadowLeft", "type": "boolean" },
1289
+ { "name": "_shadowRight", "type": "boolean" },
1290
+ { "name": "_page", "type": "number" }
1287
1291
  ],
1288
1292
  "events": []
1289
1293
  }