@statistikzh/leu 0.23.0 → 0.24.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 (93) hide show
  1. package/.github/workflows/ci.yml +8 -8
  2. package/.github/workflows/deploy-github-pages.yaml +2 -2
  3. package/.github/workflows/publish.yml +30 -0
  4. package/.github/workflows/release-please.yml +1 -19
  5. package/.release-please-manifest.json +1 -1
  6. package/CHANGELOG.md +18 -0
  7. package/dist/Accordion.js +1 -1
  8. package/dist/Button.js +1 -1
  9. package/dist/ButtonGroup.js +1 -1
  10. package/dist/ChartWrapper.js +1 -1
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/CheckboxGroup.js +1 -1
  13. package/dist/Chip.js +1 -1
  14. package/dist/ChipGroup.js +1 -1
  15. package/dist/ChipLink.js +1 -1
  16. package/dist/ChipRemovable.js +1 -1
  17. package/dist/ChipSelectable.js +1 -1
  18. package/dist/Dialog.js +1 -1
  19. package/dist/Dropdown.js +1 -1
  20. package/dist/FileInput.d.ts +0 -1
  21. package/dist/FileInput.js +1 -35
  22. package/dist/Icon.js +1 -1
  23. package/dist/Input.js +1 -1
  24. package/dist/{LeuElement-CWseJvWv.js → LeuElement-BfbOWTGZ.js} +1 -1
  25. package/dist/Menu.js +1 -1
  26. package/dist/MenuItem.js +1 -1
  27. package/dist/Message.js +1 -1
  28. package/dist/Pagination.js +1 -1
  29. package/dist/Placeholder.js +1 -1
  30. package/dist/Popup.js +1 -1
  31. package/dist/ProgressBar.js +1 -1
  32. package/dist/Radio.js +1 -1
  33. package/dist/RadioGroup.js +1 -1
  34. package/dist/Range.d.ts +51 -0
  35. package/dist/Range.js +143 -5
  36. package/dist/ScrollTop.js +1 -1
  37. package/dist/Select.js +1 -1
  38. package/dist/Spinner.js +1 -1
  39. package/dist/Table.js +1 -1
  40. package/dist/Tag.js +1 -1
  41. package/dist/VisuallyHidden.js +1 -1
  42. package/dist/components/file-input/FileInput.d.ts +2 -2
  43. package/dist/components/file-input/FileInput.d.ts.map +1 -1
  44. package/dist/components/range/Range.d.ts +51 -0
  45. package/dist/components/range/Range.d.ts.map +1 -1
  46. package/dist/components/range/stories/range.stories.d.ts +230 -0
  47. package/dist/components/range/stories/range.stories.d.ts.map +1 -0
  48. package/dist/components/range/test/range.test.d.ts.map +1 -1
  49. package/dist/index.js +1 -2
  50. package/dist/leu-accordion.js +1 -1
  51. package/dist/leu-button-group.js +1 -1
  52. package/dist/leu-button.js +1 -1
  53. package/dist/leu-chart-wrapper.js +1 -1
  54. package/dist/leu-checkbox-group.js +1 -1
  55. package/dist/leu-checkbox.js +1 -1
  56. package/dist/leu-chip-group.js +1 -1
  57. package/dist/leu-chip-link.js +1 -1
  58. package/dist/leu-chip-removable.js +1 -1
  59. package/dist/leu-chip-selectable.js +1 -1
  60. package/dist/leu-dialog.js +1 -1
  61. package/dist/leu-dropdown.js +1 -1
  62. package/dist/leu-file-input.d.ts +0 -1
  63. package/dist/leu-file-input.js +1 -35
  64. package/dist/leu-icon.js +1 -1
  65. package/dist/leu-input.js +1 -1
  66. package/dist/leu-menu-item.js +1 -1
  67. package/dist/leu-menu.js +1 -1
  68. package/dist/leu-message.js +1 -1
  69. package/dist/leu-pagination.js +1 -1
  70. package/dist/leu-placeholder.js +1 -1
  71. package/dist/leu-popup.js +1 -1
  72. package/dist/leu-progress-bar.js +1 -1
  73. package/dist/leu-radio-group.js +1 -1
  74. package/dist/leu-radio.js +1 -1
  75. package/dist/leu-range.js +1 -1
  76. package/dist/leu-scroll-top.js +1 -1
  77. package/dist/leu-select.js +1 -1
  78. package/dist/leu-spinner.js +1 -1
  79. package/dist/leu-table.js +1 -1
  80. package/dist/leu-tag.js +1 -1
  81. package/dist/leu-visually-hidden.js +1 -1
  82. package/dist/vscode.html-custom-data.json +99 -50
  83. package/dist/vue/index.d.ts +84 -66
  84. package/dist/web-types.json +192 -98
  85. package/package.json +6 -2
  86. package/src/components/file-input/FileInput.ts +2 -2
  87. package/src/components/range/Range.ts +102 -3
  88. package/src/components/range/range.css +48 -1
  89. package/src/components/range/stories/range.stories.ts +182 -0
  90. package/src/components/range/test/range.test.ts +151 -6
  91. package/dist/components/range/stories/range-slider.stories.d.ts +0 -26
  92. package/dist/components/range/stories/range-slider.stories.d.ts.map +0 -1
  93. package/src/components/range/stories/range-slider.stories.ts +0 -142
@@ -2,19 +2,19 @@ import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { LeuAccordion } from "../Accordion.js";
4
4
  import type { LeuButton } from "../Button.js";
5
- import type { LeuChartWrapper } from "../ChartWrapper.js";
6
5
  import type { LeuButtonGroup } from "../ButtonGroup.js";
7
6
  import type { LeuCheckbox } from "../Checkbox.js";
8
7
  import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
9
- import type { LeuDropdown } from "../Dropdown.js";
10
- import type { LeuDialog } from "../Dialog.js";
8
+ import type { LeuChartWrapper } from "../ChartWrapper.js";
11
9
  import type { LeuChipGroup } from "../ChipGroup.js";
12
10
  import type { LeuChipLink } from "../ChipLink.js";
13
11
  import type { LeuChipRemovable } from "../ChipRemovable.js";
14
12
  import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
13
+ import type { LeuDropdown } from "../Dropdown.js";
15
14
  import type { LeuFileInput, CustomEvent } from "../FileInput.js";
16
- import type { LeuInput, CustomEvent } from "../Input.js";
17
15
  import type { LeuIcon } from "../Icon.js";
16
+ 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";
@@ -74,14 +74,6 @@ If it is set, the icon will either show an expanded or collapsed state. */
74
74
  fluid?: LeuButton["fluid"];
75
75
  };
76
76
 
77
- type LeuChartWrapperProps = {
78
- /** Whether the chart is currently loading or not.
79
- When set to `true`, a spinner will be shown in the chart container. */
80
- pending?: LeuChartWrapper["pending"];
81
- /** */
82
- hasSlotController?: LeuChartWrapper["hasSlotController"];
83
- };
84
-
85
77
  type LeuButtonGroupProps = {
86
78
  /** The value of the currently selected (active) button */
87
79
  value?: LeuButtonGroup["value"];
@@ -109,22 +101,12 @@ type LeuCheckboxGroupProps = {
109
101
  value?: LeuCheckboxGroup["value"];
110
102
  };
111
103
 
112
- type LeuDropdownProps = {
113
- /** */
114
- label?: LeuDropdown["label"];
115
- /** */
116
- expanded?: LeuDropdown["expanded"];
117
- /** */
118
- inverted?: LeuDropdown["inverted"];
119
- };
120
-
121
- type LeuDialogProps = {
122
- /** */
123
- label?: LeuDialog["label"];
124
- /** */
125
- sublabel?: LeuDialog["sublabel"];
104
+ type LeuChartWrapperProps = {
105
+ /** Whether the chart is currently loading or not.
106
+ When set to `true`, a spinner will be shown in the chart container. */
107
+ pending?: LeuChartWrapper["pending"];
126
108
  /** */
127
- open?: LeuDialog["open"];
109
+ hasSlotController?: LeuChartWrapper["hasSlotController"];
128
110
  };
129
111
 
130
112
  type LeuChipGroupProps = {
@@ -176,6 +158,15 @@ type LeuChipSelectableProps = {
176
158
  oninput?: (e: CustomEvent<CustomEvent>) => void;
177
159
  };
178
160
 
161
+ type LeuDropdownProps = {
162
+ /** */
163
+ label?: LeuDropdown["label"];
164
+ /** */
165
+ expanded?: LeuDropdown["expanded"];
166
+ /** */
167
+ inverted?: LeuDropdown["inverted"];
168
+ };
169
+
179
170
  type LeuFileInputProps = {
180
171
  /** */
181
172
  label?: LeuFileInput["label"];
@@ -203,6 +194,11 @@ type LeuFileInputProps = {
203
194
  onchange?: (e: CustomEvent<CustomEvent>) => void;
204
195
  };
205
196
 
197
+ type LeuIconProps = {
198
+ /** The name of the icon to display. */
199
+ name?: LeuIcon["name"];
200
+ };
201
+
206
202
  type LeuInputProps = {
207
203
  /** Disables the input element. */
208
204
  disabled?: LeuInput["disabled"];
@@ -254,9 +250,13 @@ type LeuInputProps = {
254
250
  onchange?: (e: CustomEvent<CustomEvent>) => void;
255
251
  };
256
252
 
257
- type LeuIconProps = {
258
- /** The name of the icon to display. */
259
- name?: LeuIcon["name"];
253
+ type LeuDialogProps = {
254
+ /** */
255
+ label?: LeuDialog["label"];
256
+ /** */
257
+ sublabel?: LeuDialog["sublabel"];
258
+ /** */
259
+ open?: LeuDialog["open"];
260
260
  };
261
261
 
262
262
  type LeuMenuProps = {
@@ -379,20 +379,38 @@ type LeuRadioGroupProps = {
379
379
  type LeuRangeProps = {
380
380
  /** */
381
381
  value?: LeuRange["defaultValue"];
382
- /** */
382
+ /** The minimum value of the range slider. */
383
383
  min?: LeuRange["min"];
384
- /** */
384
+ /** The maximum value of the range slider. */
385
385
  max?: LeuRange["max"];
386
- /** */
386
+ /** The step size of the range slider. */
387
387
  step?: LeuRange["step"];
388
388
  /** */
389
389
  name?: LeuRange["name"];
390
- /** */
390
+ /** The label of the range slider. */
391
391
  label?: LeuRange["label"];
392
- /** */
392
+ /** Whether to hide the label of the range slider.
393
+ If true, the label will still be available for screen readers
394
+ and is only visually hidden. */
395
+ "hide-label"?: LeuRange["hideLabel"];
396
+ /** Whether the range slider is disabled. */
393
397
  disabled?: LeuRange["disabled"];
394
- /** */
398
+ /** Whether to use a range with two handles. */
395
399
  multiple?: LeuRange["multiple"];
400
+ /** Wheter to show tick marks below the range slider.
401
+ One tick mark per step will be rendered. */
402
+ "show-ticks"?: LeuRange["showTicks"];
403
+ /** Whether to show the min and max labels below the range slider. */
404
+ "show-range-labels"?: LeuRange["showRangeLabels"];
405
+ /** A prefix to display before the value in the output element(s).
406
+ Is ignored if a custom valueFormatter is provided. */
407
+ prefix?: LeuRange["prefix"];
408
+ /** A suffix to display after the value in the output element(s).
409
+ Is ignored if a custom valueFormatter is provided. */
410
+ suffix?: LeuRange["suffix"];
411
+ /** A custom function to format the value displayed in the output element(s).
412
+ If provided, the prefix and suffix properties will be ignored. */
413
+ valueFormatter?: LeuRange["valueFormatter"];
396
414
  /** Sets the value of the underlying input element(s).
397
415
  The value has to be an array if "multiple" range is used.
398
416
  Otherwise it has to be a string. */
@@ -504,20 +522,6 @@ export type CustomElements = {
504
522
  */
505
523
  "leu-button": DefineComponent<LeuButtonProps>;
506
524
 
507
- /**
508
- * A wrapper element for charts.
509
- * ---
510
- *
511
- *
512
- * ### **Slots:**
513
- * - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
514
- * - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
515
- * - **chart** - The actual chart
516
- * - **caption** - A caption for the chart, e.g. a source or explanation of the data.
517
- * - **download** - A download button or dropdown to export the chart in different formats.
518
- */
519
- "leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
520
-
521
525
  /**
522
526
  * A radio input-like button group component.
523
527
  * It allows only one button to be active at a time.
@@ -550,18 +554,18 @@ export type CustomElements = {
550
554
  "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
551
555
 
552
556
  /**
553
- *
557
+ * A wrapper element for charts.
554
558
  * ---
555
559
  *
556
- */
557
- "leu-dropdown": DefineComponent<LeuDropdownProps>;
558
-
559
- /**
560
- *
561
- * ---
562
560
  *
561
+ * ### **Slots:**
562
+ * - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
563
+ * - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
564
+ * - **chart** - The actual chart
565
+ * - **caption** - A caption for the chart, e.g. a source or explanation of the data.
566
+ * - **download** - A download button or dropdown to export the chart in different formats.
563
567
  */
564
- "leu-dialog": DefineComponent<LeuDialogProps>;
568
+ "leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
565
569
 
566
570
  /**
567
571
  *
@@ -618,6 +622,13 @@ export type CustomElements = {
618
622
  */
619
623
  "leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
620
624
 
625
+ /**
626
+ *
627
+ * ---
628
+ *
629
+ */
630
+ "leu-dropdown": DefineComponent<LeuDropdownProps>;
631
+
621
632
  /**
622
633
  *
623
634
  * ---
@@ -629,6 +640,19 @@ export type CustomElements = {
629
640
  */
630
641
  "leu-file-input": DefineComponent<LeuFileInputProps>;
631
642
 
643
+ /**
644
+ * A component to render all defined zhWeb icons.
645
+ * The `fill` of the icon is set to `currentColor` and
646
+ * can be overriden by setting the css `color` property.
647
+ * If the icon name is not found, a placeholder will be displayed.
648
+ * ---
649
+ *
650
+ *
651
+ * ### **CSS Properties:**
652
+ * - **--leu-icon-size** - The size of the icon. _(default: undefined)_
653
+ */
654
+ "leu-icon": DefineComponent<LeuIconProps>;
655
+
632
656
  /**
633
657
  * A text input element.
634
658
  * ---
@@ -653,17 +677,11 @@ export type CustomElements = {
653
677
  "leu-input": DefineComponent<LeuInputProps>;
654
678
 
655
679
  /**
656
- * A component to render all defined zhWeb icons.
657
- * The `fill` of the icon is set to `currentColor` and
658
- * can be overriden by setting the css `color` property.
659
- * If the icon name is not found, a placeholder will be displayed.
660
- * ---
661
680
  *
681
+ * ---
662
682
  *
663
- * ### **CSS Properties:**
664
- * - **--leu-icon-size** - The size of the icon. _(default: undefined)_
665
683
  */
666
- "leu-icon": DefineComponent<LeuIconProps>;
684
+ "leu-dialog": DefineComponent<LeuDialogProps>;
667
685
 
668
686
  /**
669
687
  *
@@ -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.23.0",
4
+ "version": "0.24.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -211,49 +211,6 @@
211
211
  "events": []
212
212
  }
213
213
  },
214
- {
215
- "name": "leu-chart-wrapper",
216
- "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.",
217
- "doc-url": "",
218
- "attributes": [
219
- {
220
- "name": "pending",
221
- "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
222
- "value": { "type": "boolean", "default": "false" }
223
- }
224
- ],
225
- "slots": [
226
- {
227
- "name": "title",
228
- "description": "The title of the chart. Use a heading tag (h2-4) depending on your context."
229
- },
230
- {
231
- "name": "description",
232
- "description": "A description of the chart. Content is wrapped in a `<p>` tag by the component."
233
- },
234
- { "name": "chart", "description": "The actual chart" },
235
- {
236
- "name": "caption",
237
- "description": "A caption for the chart, e.g. a source or explanation of the data."
238
- },
239
- {
240
- "name": "download",
241
- "description": "A download button or dropdown to export the chart in different formats."
242
- }
243
- ],
244
- "events": [],
245
- "js": {
246
- "properties": [
247
- {
248
- "name": "pending",
249
- "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
250
- "type": "boolean"
251
- },
252
- { "name": "hasSlotController" }
253
- ],
254
- "events": []
255
- }
256
- },
257
214
  {
258
215
  "name": "leu-button-group",
259
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",
@@ -355,57 +312,44 @@
355
312
  }
356
313
  },
357
314
  {
358
- "name": "leu-dropdown",
359
- "description": "\n---\n",
315
+ "name": "leu-chart-wrapper",
316
+ "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.",
360
317
  "doc-url": "",
361
318
  "attributes": [
362
319
  {
363
- "name": "label",
364
- "value": { "type": "string", "default": "\"\"" }
365
- },
366
- {
367
- "name": "expanded",
368
- "value": { "type": "boolean", "default": "false" }
369
- },
370
- {
371
- "name": "inverted",
320
+ "name": "pending",
321
+ "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
372
322
  "value": { "type": "boolean", "default": "false" }
373
323
  }
374
324
  ],
375
- "events": [],
376
- "js": {
377
- "properties": [
378
- { "name": "label", "type": "string" },
379
- { "name": "expanded", "type": "boolean" },
380
- { "name": "inverted", "type": "boolean" }
381
- ],
382
- "events": []
383
- }
384
- },
385
- {
386
- "name": "leu-dialog",
387
- "description": "\n---\n",
388
- "doc-url": "",
389
- "attributes": [
325
+ "slots": [
390
326
  {
391
- "name": "label",
392
- "value": { "type": "string", "default": "\"\"" }
327
+ "name": "title",
328
+ "description": "The title of the chart. Use a heading tag (h2-4) depending on your context."
393
329
  },
394
330
  {
395
- "name": "sublabel",
396
- "value": { "type": "string", "default": "\"\"" }
331
+ "name": "description",
332
+ "description": "A description of the chart. Content is wrapped in a `<p>` tag by the component."
397
333
  },
334
+ { "name": "chart", "description": "The actual chart" },
398
335
  {
399
- "name": "open",
400
- "value": { "type": "boolean", "default": "false" }
336
+ "name": "caption",
337
+ "description": "A caption for the chart, e.g. a source or explanation of the data."
338
+ },
339
+ {
340
+ "name": "download",
341
+ "description": "A download button or dropdown to export the chart in different formats."
401
342
  }
402
343
  ],
403
344
  "events": [],
404
345
  "js": {
405
346
  "properties": [
406
- { "name": "label", "type": "string" },
407
- { "name": "sublabel", "type": "string" },
408
- { "name": "open", "type": "boolean" }
347
+ {
348
+ "name": "pending",
349
+ "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
350
+ "type": "boolean"
351
+ },
352
+ { "name": "hasSlotController" }
409
353
  ],
410
354
  "events": []
411
355
  }
@@ -605,6 +549,34 @@
605
549
  "events": [{ "name": "input", "type": "CustomEvent" }]
606
550
  }
607
551
  },
552
+ {
553
+ "name": "leu-dropdown",
554
+ "description": "\n---\n",
555
+ "doc-url": "",
556
+ "attributes": [
557
+ {
558
+ "name": "label",
559
+ "value": { "type": "string", "default": "\"\"" }
560
+ },
561
+ {
562
+ "name": "expanded",
563
+ "value": { "type": "boolean", "default": "false" }
564
+ },
565
+ {
566
+ "name": "inverted",
567
+ "value": { "type": "boolean", "default": "false" }
568
+ }
569
+ ],
570
+ "events": [],
571
+ "js": {
572
+ "properties": [
573
+ { "name": "label", "type": "string" },
574
+ { "name": "expanded", "type": "boolean" },
575
+ { "name": "inverted", "type": "boolean" }
576
+ ],
577
+ "events": []
578
+ }
579
+ },
608
580
  {
609
581
  "name": "leu-file-input",
610
582
  "description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
@@ -686,6 +658,29 @@
686
658
  ]
687
659
  }
688
660
  },
661
+ {
662
+ "name": "leu-icon",
663
+ "description": "A component to render all defined zhWeb icons.\nThe `fill` of the icon is set to `currentColor` and\ncan be overriden by setting the css `color` property.\nIf the icon name is not found, a placeholder will be displayed.\n---\n\n\n### **CSS Properties:**\n - **--leu-icon-size** - The size of the icon. _(default: undefined)_",
664
+ "doc-url": "",
665
+ "attributes": [
666
+ {
667
+ "name": "name",
668
+ "description": "The name of the icon to display.",
669
+ "value": { "type": "IconPathName | \"\"", "default": "\"\"" }
670
+ }
671
+ ],
672
+ "events": [],
673
+ "js": {
674
+ "properties": [
675
+ {
676
+ "name": "name",
677
+ "description": "The name of the icon to display.",
678
+ "type": "IconPathName | \"\""
679
+ }
680
+ ],
681
+ "events": []
682
+ }
683
+ },
689
684
  {
690
685
  "name": "leu-input",
691
686
  "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 \n\n\n\n\n\n\n- **checkValidity()** - Check input validation\n\n",
@@ -927,24 +922,29 @@
927
922
  }
928
923
  },
929
924
  {
930
- "name": "leu-icon",
931
- "description": "A component to render all defined zhWeb icons.\nThe `fill` of the icon is set to `currentColor` and\ncan be overriden by setting the css `color` property.\nIf the icon name is not found, a placeholder will be displayed.\n---\n\n\n### **CSS Properties:**\n - **--leu-icon-size** - The size of the icon. _(default: undefined)_",
925
+ "name": "leu-dialog",
926
+ "description": "\n---\n",
932
927
  "doc-url": "",
933
928
  "attributes": [
934
929
  {
935
- "name": "name",
936
- "description": "The name of the icon to display.",
937
- "value": { "type": "IconPathName | \"\"", "default": "\"\"" }
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" }
938
940
  }
939
941
  ],
940
942
  "events": [],
941
943
  "js": {
942
944
  "properties": [
943
- {
944
- "name": "name",
945
- "description": "The name of the icon to display.",
946
- "type": "IconPathName | \"\""
947
- }
945
+ { "name": "label", "type": "string" },
946
+ { "name": "sublabel", "type": "string" },
947
+ { "name": "open", "type": "boolean" }
948
948
  ],
949
949
  "events": []
950
950
  }
@@ -1435,37 +1435,131 @@
1435
1435
  "name": "value",
1436
1436
  "value": { "type": "array", "default": "[50]" }
1437
1437
  },
1438
- { "name": "min", "value": { "type": "number", "default": "0" } },
1439
- { "name": "max", "value": { "type": "number", "default": "100" } },
1440
- { "name": "step", "value": { "type": "number", "default": "1" } },
1438
+ {
1439
+ "name": "min",
1440
+ "description": "The minimum value of the range slider.",
1441
+ "value": { "type": "number", "default": "0" }
1442
+ },
1443
+ {
1444
+ "name": "max",
1445
+ "description": "The maximum value of the range slider.",
1446
+ "value": { "type": "number", "default": "100" }
1447
+ },
1448
+ {
1449
+ "name": "step",
1450
+ "description": "The step size of the range slider.",
1451
+ "value": { "type": "number", "default": "1" }
1452
+ },
1441
1453
  {
1442
1454
  "name": "name",
1443
1455
  "value": { "type": "string", "default": "\"\"" }
1444
1456
  },
1445
1457
  {
1446
1458
  "name": "label",
1459
+ "description": "The label of the range slider.",
1447
1460
  "value": { "type": "string", "default": "\"\"" }
1448
1461
  },
1462
+ {
1463
+ "name": "hide-label",
1464
+ "description": "Whether to hide the label of the range slider.\nIf true, the label will still be available for screen readers\nand is only visually hidden.",
1465
+ "value": { "type": "boolean", "default": "false" }
1466
+ },
1449
1467
  {
1450
1468
  "name": "disabled",
1469
+ "description": "Whether the range slider is disabled.",
1451
1470
  "value": { "type": "boolean", "default": "false" }
1452
1471
  },
1453
1472
  {
1454
1473
  "name": "multiple",
1474
+ "description": "Whether to use a range with two handles.",
1475
+ "value": { "type": "boolean", "default": "false" }
1476
+ },
1477
+ {
1478
+ "name": "show-ticks",
1479
+ "description": "Wheter to show tick marks below the range slider.\nOne tick mark per step will be rendered.",
1480
+ "value": { "type": "boolean", "default": "false" }
1481
+ },
1482
+ {
1483
+ "name": "show-range-labels",
1484
+ "description": "Whether to show the min and max labels below the range slider.",
1455
1485
  "value": { "type": "boolean", "default": "false" }
1486
+ },
1487
+ {
1488
+ "name": "prefix",
1489
+ "description": "A prefix to display before the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
1490
+ "value": { "type": "string", "default": "\"\"" }
1491
+ },
1492
+ {
1493
+ "name": "suffix",
1494
+ "description": "A suffix to display after the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
1495
+ "value": { "type": "string", "default": "\"\"" }
1456
1496
  }
1457
1497
  ],
1458
1498
  "events": [],
1459
1499
  "js": {
1460
1500
  "properties": [
1461
1501
  { "name": "defaultValue", "type": "array" },
1462
- { "name": "min", "type": "number" },
1463
- { "name": "max", "type": "number" },
1464
- { "name": "step", "type": "number" },
1502
+ {
1503
+ "name": "min",
1504
+ "description": "The minimum value of the range slider.",
1505
+ "type": "number"
1506
+ },
1507
+ {
1508
+ "name": "max",
1509
+ "description": "The maximum value of the range slider.",
1510
+ "type": "number"
1511
+ },
1512
+ {
1513
+ "name": "step",
1514
+ "description": "The step size of the range slider.",
1515
+ "type": "number"
1516
+ },
1465
1517
  { "name": "name", "type": "string" },
1466
- { "name": "label", "type": "string" },
1467
- { "name": "disabled", "type": "boolean" },
1468
- { "name": "multiple", "type": "boolean" },
1518
+ {
1519
+ "name": "label",
1520
+ "description": "The label of the range slider.",
1521
+ "type": "string"
1522
+ },
1523
+ {
1524
+ "name": "hideLabel",
1525
+ "description": "Whether to hide the label of the range slider.\nIf true, the label will still be available for screen readers\nand is only visually hidden.",
1526
+ "type": "boolean"
1527
+ },
1528
+ {
1529
+ "name": "disabled",
1530
+ "description": "Whether the range slider is disabled.",
1531
+ "type": "boolean"
1532
+ },
1533
+ {
1534
+ "name": "multiple",
1535
+ "description": "Whether to use a range with two handles.",
1536
+ "type": "boolean"
1537
+ },
1538
+ {
1539
+ "name": "showTicks",
1540
+ "description": "Wheter to show tick marks below the range slider.\nOne tick mark per step will be rendered.",
1541
+ "type": "boolean"
1542
+ },
1543
+ {
1544
+ "name": "showRangeLabels",
1545
+ "description": "Whether to show the min and max labels below the range slider.",
1546
+ "type": "boolean"
1547
+ },
1548
+ {
1549
+ "name": "prefix",
1550
+ "description": "A prefix to display before the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
1551
+ "type": "string"
1552
+ },
1553
+ {
1554
+ "name": "suffix",
1555
+ "description": "A suffix to display after the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
1556
+ "type": "string"
1557
+ },
1558
+ {
1559
+ "name": "valueFormatter",
1560
+ "description": "A custom function to format the value displayed in the output element(s).\nIf provided, the prefix and suffix properties will be ignored.",
1561
+ "type": "(value: number) => string | undefined"
1562
+ },
1469
1563
  {
1470
1564
  "name": "value",
1471
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."
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.23.0",
6
+ "version": "0.24.0",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/statistikzh/leu.git"
22
+ "url": "git+https://github.com/statistikzh/leu.git"
23
23
  },
24
24
  "homepage": "https://github.com/statistikzh/leu/",
25
25
  "scripts": {
@@ -127,5 +127,9 @@
127
127
  },
128
128
  "esm.sh": {
129
129
  "bundle": false
130
+ },
131
+ "publishConfig": {
132
+ "access": "public",
133
+ "provenance": false
130
134
  }
131
135
  }