@statistikzh/leu 0.24.0 → 0.24.1

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 (84) hide show
  1. package/.github/workflows/publish.yml +7 -0
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +8 -0
  4. package/dist/Accordion.js +1 -1
  5. package/dist/Button.js +1 -1
  6. package/dist/ButtonGroup.js +1 -1
  7. package/dist/ChartWrapper.js +1 -1
  8. package/dist/Checkbox.js +1 -1
  9. package/dist/CheckboxGroup.js +1 -1
  10. package/dist/Chip.js +1 -1
  11. package/dist/ChipGroup.js +1 -1
  12. package/dist/ChipLink.js +1 -1
  13. package/dist/ChipRemovable.js +1 -1
  14. package/dist/ChipSelectable.js +1 -1
  15. package/dist/Dialog.js +1 -1
  16. package/dist/Dropdown.js +1 -1
  17. package/dist/FileInput.js +1 -1
  18. package/dist/Icon.js +1 -1
  19. package/dist/Input.js +1 -1
  20. package/dist/{LeuElement-BfbOWTGZ.js → LeuElement-jrR2M5pZ.js} +1 -1
  21. package/dist/Menu.js +1 -1
  22. package/dist/MenuItem.js +1 -1
  23. package/dist/Message.js +1 -1
  24. package/dist/Pagination.js +1 -1
  25. package/dist/Placeholder.js +1 -1
  26. package/dist/Popup.js +1 -1
  27. package/dist/ProgressBar.js +1 -1
  28. package/dist/Radio.js +1 -1
  29. package/dist/RadioGroup.js +1 -1
  30. package/dist/Range.d.ts +32 -20
  31. package/dist/Range.js +137 -72
  32. package/dist/ScrollTop.js +2 -25
  33. package/dist/Select.js +1 -1
  34. package/dist/Spinner.js +1 -1
  35. package/dist/Table.js +1 -1
  36. package/dist/Tag.js +1 -1
  37. package/dist/VisuallyHidden.js +1 -1
  38. package/dist/components/range/Range.d.ts +33 -20
  39. package/dist/components/range/Range.d.ts.map +1 -1
  40. package/dist/components/range/stories/range.stories.d.ts +1 -0
  41. package/dist/components/range/stories/range.stories.d.ts.map +1 -1
  42. package/dist/index.js +2 -1
  43. package/dist/leu-accordion.js +1 -1
  44. package/dist/leu-button-group.js +1 -1
  45. package/dist/leu-button.js +1 -1
  46. package/dist/leu-chart-wrapper.js +1 -1
  47. package/dist/leu-checkbox-group.js +1 -1
  48. package/dist/leu-checkbox.js +1 -1
  49. package/dist/leu-chip-group.js +1 -1
  50. package/dist/leu-chip-link.js +1 -1
  51. package/dist/leu-chip-removable.js +1 -1
  52. package/dist/leu-chip-selectable.js +1 -1
  53. package/dist/leu-dialog.js +1 -1
  54. package/dist/leu-dropdown.js +1 -1
  55. package/dist/leu-file-input.js +1 -1
  56. package/dist/leu-icon.js +1 -1
  57. package/dist/leu-input.js +1 -1
  58. package/dist/leu-menu-item.js +1 -1
  59. package/dist/leu-menu.js +1 -1
  60. package/dist/leu-message.js +1 -1
  61. package/dist/leu-pagination.js +1 -1
  62. package/dist/leu-placeholder.js +1 -1
  63. package/dist/leu-popup.js +1 -1
  64. package/dist/leu-progress-bar.js +1 -1
  65. package/dist/leu-radio-group.js +1 -1
  66. package/dist/leu-radio.js +1 -1
  67. package/dist/leu-range.js +3 -1
  68. package/dist/leu-scroll-top.js +2 -1
  69. package/dist/leu-select.js +1 -1
  70. package/dist/leu-spinner.js +1 -1
  71. package/dist/leu-table.js +1 -1
  72. package/dist/leu-tag.js +1 -1
  73. package/dist/leu-visually-hidden.js +1 -1
  74. package/dist/lib/utils.d.ts +10 -3
  75. package/dist/lib/utils.d.ts.map +1 -1
  76. package/dist/utils-DBGsNSJW.js +33 -0
  77. package/dist/vscode.html-custom-data.json +66 -62
  78. package/dist/vue/index.d.ts +80 -73
  79. package/dist/web-types.json +143 -137
  80. package/package.json +1 -1
  81. package/src/components/range/Range.ts +160 -87
  82. package/src/components/range/stories/range.stories.ts +3 -0
  83. package/src/components/range/test/range.test.ts +59 -0
  84. package/src/lib/utils.ts +13 -3
@@ -1,20 +1,20 @@
1
1
  import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { LeuAccordion } from "../Accordion.js";
4
- import type { LeuButton } from "../Button.js";
5
4
  import type { LeuButtonGroup } from "../ButtonGroup.js";
6
- import type { LeuCheckbox } from "../Checkbox.js";
7
- import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
5
+ import type { LeuButton } from "../Button.js";
8
6
  import type { LeuChartWrapper } from "../ChartWrapper.js";
7
+ import type { LeuDialog } from "../Dialog.js";
9
8
  import type { LeuChipGroup } from "../ChipGroup.js";
10
9
  import type { LeuChipLink } from "../ChipLink.js";
11
10
  import type { LeuChipRemovable } from "../ChipRemovable.js";
12
11
  import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
12
+ import type { LeuCheckbox } from "../Checkbox.js";
13
+ import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
13
14
  import type { LeuDropdown } from "../Dropdown.js";
14
15
  import type { LeuFileInput, CustomEvent } from "../FileInput.js";
15
16
  import type { LeuIcon } from "../Icon.js";
16
17
  import type { LeuInput, CustomEvent } from "../Input.js";
17
- import type { LeuDialog } from "../Dialog.js";
18
18
  import type { LeuMenu } from "../Menu.js";
19
19
  import type { LeuMenuItem } from "../MenuItem.js";
20
20
  import type { LeuMessage, CustomEvent } from "../Message.js";
@@ -24,7 +24,7 @@ import type { LeuPopup } from "../Popup.js";
24
24
  import type { LeuProgressBar } from "../ProgressBar.js";
25
25
  import type { LeuRadio } from "../Radio.js";
26
26
  import type { LeuRadioGroup } from "../RadioGroup.js";
27
- import type { LeuRange } from "../Range.js";
27
+ import type { LeuRange, CustomEvent } from "../Range.js";
28
28
  import type { LeuScrollTop } from "../ScrollTop.js";
29
29
  import type { LeuSelect } from "../Select.js";
30
30
  import type { LeuSpinner } from "../Spinner.js";
@@ -43,6 +43,13 @@ type LeuAccordionProps = {
43
43
  label?: LeuAccordion["label"];
44
44
  };
45
45
 
46
+ type LeuButtonGroupProps = {
47
+ /** The value of the currently selected (active) button */
48
+ value?: LeuButtonGroup["value"];
49
+ /** When the value of the group changes by clicking a button */
50
+ oninput?: (e: CustomEvent<never>) => void;
51
+ };
52
+
46
53
  type LeuButtonProps = {
47
54
  /** `aria-label` of the underlying button elements.
48
55
  Use it to provide a label when only an icon is visible. */
@@ -74,33 +81,6 @@ If it is set, the icon will either show an expanded or collapsed state. */
74
81
  fluid?: LeuButton["fluid"];
75
82
  };
76
83
 
77
- type LeuButtonGroupProps = {
78
- /** The value of the currently selected (active) button */
79
- value?: LeuButtonGroup["value"];
80
- /** When the value of the group changes by clicking a button */
81
- oninput?: (e: CustomEvent<never>) => void;
82
- };
83
-
84
- type LeuCheckboxProps = {
85
- /** */
86
- checked?: LeuCheckbox["checked"];
87
- /** */
88
- disabled?: LeuCheckbox["disabled"];
89
- /** */
90
- value?: LeuCheckbox["value"];
91
- /** */
92
- name?: LeuCheckbox["name"];
93
- };
94
-
95
- type LeuCheckboxGroupProps = {
96
- /** Defines how the checkboxes should be aligned. */
97
- orientation?: LeuCheckboxGroup["orientation"];
98
- /** The label of the checkbox group */
99
- label?: LeuCheckboxGroup["label"];
100
- /** */
101
- value?: LeuCheckboxGroup["value"];
102
- };
103
-
104
84
  type LeuChartWrapperProps = {
105
85
  /** Whether the chart is currently loading or not.
106
86
  When set to `true`, a spinner will be shown in the chart container. */
@@ -109,6 +89,15 @@ When set to `true`, a spinner will be shown in the chart container. */
109
89
  hasSlotController?: LeuChartWrapper["hasSlotController"];
110
90
  };
111
91
 
92
+ type LeuDialogProps = {
93
+ /** */
94
+ label?: LeuDialog["label"];
95
+ /** */
96
+ sublabel?: LeuDialog["sublabel"];
97
+ /** */
98
+ open?: LeuDialog["open"];
99
+ };
100
+
112
101
  type LeuChipGroupProps = {
113
102
  /** */
114
103
  inverted?: LeuChipGroup["inverted"];
@@ -158,6 +147,26 @@ type LeuChipSelectableProps = {
158
147
  oninput?: (e: CustomEvent<CustomEvent>) => void;
159
148
  };
160
149
 
150
+ type LeuCheckboxProps = {
151
+ /** */
152
+ checked?: LeuCheckbox["checked"];
153
+ /** */
154
+ disabled?: LeuCheckbox["disabled"];
155
+ /** */
156
+ value?: LeuCheckbox["value"];
157
+ /** */
158
+ name?: LeuCheckbox["name"];
159
+ };
160
+
161
+ type LeuCheckboxGroupProps = {
162
+ /** Defines how the checkboxes should be aligned. */
163
+ orientation?: LeuCheckboxGroup["orientation"];
164
+ /** The label of the checkbox group */
165
+ label?: LeuCheckboxGroup["label"];
166
+ /** */
167
+ value?: LeuCheckboxGroup["value"];
168
+ };
169
+
161
170
  type LeuDropdownProps = {
162
171
  /** */
163
172
  label?: LeuDropdown["label"];
@@ -250,15 +259,6 @@ type LeuInputProps = {
250
259
  onchange?: (e: CustomEvent<CustomEvent>) => void;
251
260
  };
252
261
 
253
- type LeuDialogProps = {
254
- /** */
255
- label?: LeuDialog["label"];
256
- /** */
257
- sublabel?: LeuDialog["sublabel"];
258
- /** */
259
- open?: LeuDialog["open"];
260
- };
261
-
262
262
  type LeuMenuProps = {
263
263
  /** This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'. */
264
264
  selects?: LeuMenu["selects"];
@@ -377,7 +377,8 @@ type LeuRadioGroupProps = {
377
377
  };
378
378
 
379
379
  type LeuRangeProps = {
380
- /** */
380
+ /** The default value of the range slider.
381
+ String input is parsed as a comma-separated list of numbers. */
381
382
  value?: LeuRange["defaultValue"];
382
383
  /** The minimum value of the range slider. */
383
384
  min?: LeuRange["min"];
@@ -411,9 +412,10 @@ Is ignored if a custom valueFormatter is provided. */
411
412
  /** A custom function to format the value displayed in the output element(s).
412
413
  If provided, the prefix and suffix properties will be ignored. */
413
414
  valueFormatter?: LeuRange["valueFormatter"];
414
- /** Sets the value of the underlying input element(s).
415
- The value has to be an array if "multiple" range is used.
416
- Otherwise it has to be a string. */
415
+ /** The value of the range slider.
416
+ String input is parsed as a comma-separated list of numbers.
417
+ In multiple mode, if only a single value is provided, the second handle will be set to the minimum value.
418
+ In single mode, only the first value will be used. */
417
419
  value?: LeuRange["value"];
418
420
  /** */
419
421
  valueAsArray?: LeuRange["valueAsArray"];
@@ -421,6 +423,8 @@ Otherwise it has to be a string. */
421
423
  valueLow?: LeuRange["valueLow"];
422
424
  /** */
423
425
  valueHigh?: LeuRange["valueHigh"];
426
+ /** */
427
+ oninput?: (e: CustomEvent<CustomEvent>) => void;
424
428
  };
425
429
 
426
430
  type LeuScrollTopProps = {
@@ -510,18 +514,6 @@ export type CustomElements = {
510
514
  */
511
515
  "leu-accordion": DefineComponent<LeuAccordionProps>;
512
516
 
513
- /**
514
- *
515
- * ---
516
- *
517
- *
518
- * ### **Slots:**
519
- * - **before** - The icon to display before the label
520
- * - **after** - The icon to display after the label
521
- * - _default_ - The label of the button or the icon if no label is set
522
- */
523
- "leu-button": DefineComponent<LeuButtonProps>;
524
-
525
517
  /**
526
518
  * A radio input-like button group component.
527
519
  * It allows only one button to be active at a time.
@@ -536,22 +528,17 @@ export type CustomElements = {
536
528
  */
537
529
  "leu-button-group": DefineComponent<LeuButtonGroupProps>;
538
530
 
539
- /**
540
- *
541
- * ---
542
- *
543
- */
544
- "leu-checkbox": DefineComponent<LeuCheckboxProps>;
545
-
546
531
  /**
547
532
  *
548
533
  * ---
549
534
  *
550
535
  *
551
536
  * ### **Slots:**
552
- * - _default_ - Place the checkboxes inside the default slot.
537
+ * - **before** - The icon to display before the label
538
+ * - **after** - The icon to display after the label
539
+ * - _default_ - The label of the button or the icon if no label is set
553
540
  */
554
- "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
541
+ "leu-button": DefineComponent<LeuButtonProps>;
555
542
 
556
543
  /**
557
544
  * A wrapper element for charts.
@@ -567,6 +554,13 @@ export type CustomElements = {
567
554
  */
568
555
  "leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
569
556
 
557
+ /**
558
+ *
559
+ * ---
560
+ *
561
+ */
562
+ "leu-dialog": DefineComponent<LeuDialogProps>;
563
+
570
564
  /**
571
565
  *
572
566
  * ---
@@ -622,6 +616,23 @@ export type CustomElements = {
622
616
  */
623
617
  "leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
624
618
 
619
+ /**
620
+ *
621
+ * ---
622
+ *
623
+ */
624
+ "leu-checkbox": DefineComponent<LeuCheckboxProps>;
625
+
626
+ /**
627
+ *
628
+ * ---
629
+ *
630
+ *
631
+ * ### **Slots:**
632
+ * - _default_ - Place the checkboxes inside the default slot.
633
+ */
634
+ "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
635
+
625
636
  /**
626
637
  *
627
638
  * ---
@@ -676,13 +687,6 @@ export type CustomElements = {
676
687
  */
677
688
  "leu-input": DefineComponent<LeuInputProps>;
678
689
 
679
- /**
680
- *
681
- * ---
682
- *
683
- */
684
- "leu-dialog": DefineComponent<LeuDialogProps>;
685
-
686
690
  /**
687
691
  *
688
692
  * ---
@@ -778,6 +782,9 @@ export type CustomElements = {
778
782
  * ---
779
783
  *
780
784
  *
785
+ * ### **Events:**
786
+ * - **input**
787
+ *
781
788
  * ### **Methods:**
782
789
  *
783
790
  */
@@ -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.24.0",
4
+ "version": "0.24.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -65,6 +65,33 @@
65
65
  "events": []
66
66
  }
67
67
  },
68
+ {
69
+ "name": "leu-button-group",
70
+ "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
71
+ "doc-url": "",
72
+ "attributes": [],
73
+ "slots": [{ "name": "", "description": "Slot for the buttons" }],
74
+ "events": [
75
+ {
76
+ "name": "input",
77
+ "description": "When the value of the group changes by clicking a button"
78
+ }
79
+ ],
80
+ "js": {
81
+ "properties": [
82
+ {
83
+ "name": "value",
84
+ "description": "The value of the currently selected (active) button"
85
+ }
86
+ ],
87
+ "events": [
88
+ {
89
+ "name": "input",
90
+ "description": "When the value of the group changes by clicking a button"
91
+ }
92
+ ]
93
+ }
94
+ },
68
95
  {
69
96
  "name": "leu-button",
70
97
  "description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
@@ -211,106 +238,6 @@
211
238
  "events": []
212
239
  }
213
240
  },
214
- {
215
- "name": "leu-button-group",
216
- "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
217
- "doc-url": "",
218
- "attributes": [],
219
- "slots": [{ "name": "", "description": "Slot for the buttons" }],
220
- "events": [
221
- {
222
- "name": "input",
223
- "description": "When the value of the group changes by clicking a button"
224
- }
225
- ],
226
- "js": {
227
- "properties": [
228
- {
229
- "name": "value",
230
- "description": "The value of the currently selected (active) button"
231
- }
232
- ],
233
- "events": [
234
- {
235
- "name": "input",
236
- "description": "When the value of the group changes by clicking a button"
237
- }
238
- ]
239
- }
240
- },
241
- {
242
- "name": "leu-checkbox",
243
- "description": "\n---\n",
244
- "doc-url": "",
245
- "attributes": [
246
- {
247
- "name": "checked",
248
- "value": { "type": "boolean", "default": "false" }
249
- },
250
- {
251
- "name": "disabled",
252
- "value": { "type": "boolean", "default": "false" }
253
- },
254
- {
255
- "name": "value",
256
- "value": { "type": "string", "default": "\"\"" }
257
- },
258
- { "name": "name", "value": { "type": "string", "default": "\"\"" } }
259
- ],
260
- "events": [],
261
- "js": {
262
- "properties": [
263
- { "name": "checked", "type": "boolean" },
264
- { "name": "disabled", "type": "boolean" },
265
- { "name": "value", "type": "string" },
266
- { "name": "name", "type": "string" }
267
- ],
268
- "events": []
269
- }
270
- },
271
- {
272
- "name": "leu-checkbox-group",
273
- "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
274
- "doc-url": "",
275
- "attributes": [
276
- {
277
- "name": "orientation",
278
- "description": "Defines how the checkboxes should be aligned.",
279
- "value": {
280
- "type": "\"horizontal\" | \"vertical\"",
281
- "default": "\"horizontal\""
282
- }
283
- },
284
- {
285
- "name": "label",
286
- "description": "The label of the checkbox group",
287
- "value": { "type": "string | undefined" }
288
- }
289
- ],
290
- "slots": [
291
- {
292
- "name": "",
293
- "description": "Place the checkboxes inside the default slot."
294
- }
295
- ],
296
- "events": [],
297
- "js": {
298
- "properties": [
299
- {
300
- "name": "orientation",
301
- "description": "Defines how the checkboxes should be aligned.",
302
- "type": "\"horizontal\" | \"vertical\""
303
- },
304
- {
305
- "name": "label",
306
- "description": "The label of the checkbox group",
307
- "type": "string | undefined"
308
- },
309
- { "name": "value" }
310
- ],
311
- "events": []
312
- }
313
- },
314
241
  {
315
242
  "name": "leu-chart-wrapper",
316
243
  "description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
@@ -354,6 +281,34 @@
354
281
  "events": []
355
282
  }
356
283
  },
284
+ {
285
+ "name": "leu-dialog",
286
+ "description": "\n---\n",
287
+ "doc-url": "",
288
+ "attributes": [
289
+ {
290
+ "name": "label",
291
+ "value": { "type": "string", "default": "\"\"" }
292
+ },
293
+ {
294
+ "name": "sublabel",
295
+ "value": { "type": "string", "default": "\"\"" }
296
+ },
297
+ {
298
+ "name": "open",
299
+ "value": { "type": "boolean", "default": "false" }
300
+ }
301
+ ],
302
+ "events": [],
303
+ "js": {
304
+ "properties": [
305
+ { "name": "label", "type": "string" },
306
+ { "name": "sublabel", "type": "string" },
307
+ { "name": "open", "type": "boolean" }
308
+ ],
309
+ "events": []
310
+ }
311
+ },
357
312
  {
358
313
  "name": "leu-chip-group",
359
314
  "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place leu-chip-* elements inside this slot\n\n### **CSS Properties:**\n - **--leu-chip-group-gap** - The gap between the chips _(default: undefined)_",
@@ -549,6 +504,79 @@
549
504
  "events": [{ "name": "input", "type": "CustomEvent" }]
550
505
  }
551
506
  },
507
+ {
508
+ "name": "leu-checkbox",
509
+ "description": "\n---\n",
510
+ "doc-url": "",
511
+ "attributes": [
512
+ {
513
+ "name": "checked",
514
+ "value": { "type": "boolean", "default": "false" }
515
+ },
516
+ {
517
+ "name": "disabled",
518
+ "value": { "type": "boolean", "default": "false" }
519
+ },
520
+ {
521
+ "name": "value",
522
+ "value": { "type": "string", "default": "\"\"" }
523
+ },
524
+ { "name": "name", "value": { "type": "string", "default": "\"\"" } }
525
+ ],
526
+ "events": [],
527
+ "js": {
528
+ "properties": [
529
+ { "name": "checked", "type": "boolean" },
530
+ { "name": "disabled", "type": "boolean" },
531
+ { "name": "value", "type": "string" },
532
+ { "name": "name", "type": "string" }
533
+ ],
534
+ "events": []
535
+ }
536
+ },
537
+ {
538
+ "name": "leu-checkbox-group",
539
+ "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
540
+ "doc-url": "",
541
+ "attributes": [
542
+ {
543
+ "name": "orientation",
544
+ "description": "Defines how the checkboxes should be aligned.",
545
+ "value": {
546
+ "type": "\"horizontal\" | \"vertical\"",
547
+ "default": "\"horizontal\""
548
+ }
549
+ },
550
+ {
551
+ "name": "label",
552
+ "description": "The label of the checkbox group",
553
+ "value": { "type": "string | undefined" }
554
+ }
555
+ ],
556
+ "slots": [
557
+ {
558
+ "name": "",
559
+ "description": "Place the checkboxes inside the default slot."
560
+ }
561
+ ],
562
+ "events": [],
563
+ "js": {
564
+ "properties": [
565
+ {
566
+ "name": "orientation",
567
+ "description": "Defines how the checkboxes should be aligned.",
568
+ "type": "\"horizontal\" | \"vertical\""
569
+ },
570
+ {
571
+ "name": "label",
572
+ "description": "The label of the checkbox group",
573
+ "type": "string | undefined"
574
+ },
575
+ { "name": "value" }
576
+ ],
577
+ "events": []
578
+ }
579
+ },
552
580
  {
553
581
  "name": "leu-dropdown",
554
582
  "description": "\n---\n",
@@ -921,34 +949,6 @@
921
949
  ]
922
950
  }
923
951
  },
924
- {
925
- "name": "leu-dialog",
926
- "description": "\n---\n",
927
- "doc-url": "",
928
- "attributes": [
929
- {
930
- "name": "label",
931
- "value": { "type": "string", "default": "\"\"" }
932
- },
933
- {
934
- "name": "sublabel",
935
- "value": { "type": "string", "default": "\"\"" }
936
- },
937
- {
938
- "name": "open",
939
- "value": { "type": "boolean", "default": "false" }
940
- }
941
- ],
942
- "events": [],
943
- "js": {
944
- "properties": [
945
- { "name": "label", "type": "string" },
946
- { "name": "sublabel", "type": "string" },
947
- { "name": "open", "type": "boolean" }
948
- ],
949
- "events": []
950
- }
951
- },
952
952
  {
953
953
  "name": "leu-menu",
954
954
  "description": "\n---\n",
@@ -1428,11 +1428,12 @@
1428
1428
  },
1429
1429
  {
1430
1430
  "name": "leu-range",
1431
- "description": "\n---\n\n\n### **Methods:**\n ",
1431
+ "description": "\n---\n\n\n### **Events:**\n - **input**\n\n### **Methods:**\n ",
1432
1432
  "doc-url": "",
1433
1433
  "attributes": [
1434
1434
  {
1435
1435
  "name": "value",
1436
+ "description": "The default value of the range slider.\nString input is parsed as a comma-separated list of numbers.",
1436
1437
  "value": { "type": "array", "default": "[50]" }
1437
1438
  },
1438
1439
  {
@@ -1495,10 +1496,14 @@
1495
1496
  "value": { "type": "string", "default": "\"\"" }
1496
1497
  }
1497
1498
  ],
1498
- "events": [],
1499
+ "events": [{ "name": "input", "type": "CustomEvent" }],
1499
1500
  "js": {
1500
1501
  "properties": [
1501
- { "name": "defaultValue", "type": "array" },
1502
+ {
1503
+ "name": "defaultValue",
1504
+ "description": "The default value of the range slider.\nString input is parsed as a comma-separated list of numbers.",
1505
+ "type": "array"
1506
+ },
1502
1507
  {
1503
1508
  "name": "min",
1504
1509
  "description": "The minimum value of the range slider.",
@@ -1562,13 +1567,14 @@
1562
1567
  },
1563
1568
  {
1564
1569
  "name": "value",
1565
- "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."
1570
+ "description": "The value of the range slider.\nString input is parsed as a comma-separated list of numbers.\nIn multiple mode, if only a single value is provided, the second handle will be set to the minimum value.\nIn single mode, only the first value will be used.",
1571
+ "type": "string"
1566
1572
  },
1567
- { "name": "valueAsArray" },
1568
- { "name": "valueLow" },
1569
- { "name": "valueHigh" }
1573
+ { "name": "valueAsArray", "type": "InternalRangeValue" },
1574
+ { "name": "valueLow", "type": "number" },
1575
+ { "name": "valueHigh", "type": "number" }
1570
1576
  ],
1571
- "events": []
1577
+ "events": [{ "name": "input", "type": "CustomEvent" }]
1572
1578
  }
1573
1579
  },
1574
1580
  {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI component library of the canton of zurich",
4
4
  "license": "MIT",
5
5
  "author": "statistikzh",
6
- "version": "0.24.0",
6
+ "version": "0.24.1",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",