@statistikzh/leu 0.23.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.
- package/.github/workflows/ci.yml +8 -8
- package/.github/workflows/deploy-github-pages.yaml +2 -2
- package/.github/workflows/publish.yml +37 -0
- package/.github/workflows/release-please.yml +1 -19
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +26 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/FileInput.d.ts +0 -1
- package/dist/FileInput.js +1 -35
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-CWseJvWv.js → LeuElement-jrR2M5pZ.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.js +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +83 -20
- package/dist/Range.js +276 -73
- package/dist/ScrollTop.js +2 -25
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/file-input/FileInput.d.ts +2 -2
- package/dist/components/file-input/FileInput.d.ts.map +1 -1
- package/dist/components/range/Range.d.ts +84 -20
- package/dist/components/range/Range.d.ts.map +1 -1
- package/dist/components/range/stories/range.stories.d.ts +231 -0
- package/dist/components/range/stories/range.stories.d.ts.map +1 -0
- package/dist/components/range/test/range.test.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-file-input.d.ts +0 -1
- package/dist/leu-file-input.js +1 -35
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-message.js +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-progress-bar.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +3 -1
- package/dist/leu-scroll-top.js +2 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/lib/utils.d.ts +10 -3
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/utils-DBGsNSJW.js +33 -0
- package/dist/vscode.html-custom-data.json +142 -89
- package/dist/vue/index.d.ts +132 -107
- package/dist/web-types.json +269 -169
- package/package.json +6 -2
- package/src/components/file-input/FileInput.ts +2 -2
- package/src/components/range/Range.ts +257 -85
- package/src/components/range/range.css +48 -1
- package/src/components/range/stories/range.stories.ts +185 -0
- package/src/components/range/test/range.test.ts +210 -6
- package/src/lib/utils.ts +13 -3
- package/dist/components/range/stories/range-slider.stories.d.ts +0 -26
- package/dist/components/range/stories/range-slider.stories.d.ts.map +0 -1
- package/src/components/range/stories/range-slider.stories.ts +0 -142
package/dist/web-types.json
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -254,134 +281,6 @@
|
|
|
254
281
|
"events": []
|
|
255
282
|
}
|
|
256
283
|
},
|
|
257
|
-
{
|
|
258
|
-
"name": "leu-button-group",
|
|
259
|
-
"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",
|
|
260
|
-
"doc-url": "",
|
|
261
|
-
"attributes": [],
|
|
262
|
-
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
263
|
-
"events": [
|
|
264
|
-
{
|
|
265
|
-
"name": "input",
|
|
266
|
-
"description": "When the value of the group changes by clicking a button"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"js": {
|
|
270
|
-
"properties": [
|
|
271
|
-
{
|
|
272
|
-
"name": "value",
|
|
273
|
-
"description": "The value of the currently selected (active) button"
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"events": [
|
|
277
|
-
{
|
|
278
|
-
"name": "input",
|
|
279
|
-
"description": "When the value of the group changes by clicking a button"
|
|
280
|
-
}
|
|
281
|
-
]
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"name": "leu-checkbox",
|
|
286
|
-
"description": "\n---\n",
|
|
287
|
-
"doc-url": "",
|
|
288
|
-
"attributes": [
|
|
289
|
-
{
|
|
290
|
-
"name": "checked",
|
|
291
|
-
"value": { "type": "boolean", "default": "false" }
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"name": "disabled",
|
|
295
|
-
"value": { "type": "boolean", "default": "false" }
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"name": "value",
|
|
299
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
300
|
-
},
|
|
301
|
-
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
302
|
-
],
|
|
303
|
-
"events": [],
|
|
304
|
-
"js": {
|
|
305
|
-
"properties": [
|
|
306
|
-
{ "name": "checked", "type": "boolean" },
|
|
307
|
-
{ "name": "disabled", "type": "boolean" },
|
|
308
|
-
{ "name": "value", "type": "string" },
|
|
309
|
-
{ "name": "name", "type": "string" }
|
|
310
|
-
],
|
|
311
|
-
"events": []
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "leu-checkbox-group",
|
|
316
|
-
"description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
|
|
317
|
-
"doc-url": "",
|
|
318
|
-
"attributes": [
|
|
319
|
-
{
|
|
320
|
-
"name": "orientation",
|
|
321
|
-
"description": "Defines how the checkboxes should be aligned.",
|
|
322
|
-
"value": {
|
|
323
|
-
"type": "\"horizontal\" | \"vertical\"",
|
|
324
|
-
"default": "\"horizontal\""
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"name": "label",
|
|
329
|
-
"description": "The label of the checkbox group",
|
|
330
|
-
"value": { "type": "string | undefined" }
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
"slots": [
|
|
334
|
-
{
|
|
335
|
-
"name": "",
|
|
336
|
-
"description": "Place the checkboxes inside the default slot."
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
"events": [],
|
|
340
|
-
"js": {
|
|
341
|
-
"properties": [
|
|
342
|
-
{
|
|
343
|
-
"name": "orientation",
|
|
344
|
-
"description": "Defines how the checkboxes should be aligned.",
|
|
345
|
-
"type": "\"horizontal\" | \"vertical\""
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"name": "label",
|
|
349
|
-
"description": "The label of the checkbox group",
|
|
350
|
-
"type": "string | undefined"
|
|
351
|
-
},
|
|
352
|
-
{ "name": "value" }
|
|
353
|
-
],
|
|
354
|
-
"events": []
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "leu-dropdown",
|
|
359
|
-
"description": "\n---\n",
|
|
360
|
-
"doc-url": "",
|
|
361
|
-
"attributes": [
|
|
362
|
-
{
|
|
363
|
-
"name": "label",
|
|
364
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"name": "expanded",
|
|
368
|
-
"value": { "type": "boolean", "default": "false" }
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"name": "inverted",
|
|
372
|
-
"value": { "type": "boolean", "default": "false" }
|
|
373
|
-
}
|
|
374
|
-
],
|
|
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
284
|
{
|
|
386
285
|
"name": "leu-dialog",
|
|
387
286
|
"description": "\n---\n",
|
|
@@ -605,6 +504,107 @@
|
|
|
605
504
|
"events": [{ "name": "input", "type": "CustomEvent" }]
|
|
606
505
|
}
|
|
607
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
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "leu-dropdown",
|
|
582
|
+
"description": "\n---\n",
|
|
583
|
+
"doc-url": "",
|
|
584
|
+
"attributes": [
|
|
585
|
+
{
|
|
586
|
+
"name": "label",
|
|
587
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "expanded",
|
|
591
|
+
"value": { "type": "boolean", "default": "false" }
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "inverted",
|
|
595
|
+
"value": { "type": "boolean", "default": "false" }
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"events": [],
|
|
599
|
+
"js": {
|
|
600
|
+
"properties": [
|
|
601
|
+
{ "name": "label", "type": "string" },
|
|
602
|
+
{ "name": "expanded", "type": "boolean" },
|
|
603
|
+
{ "name": "inverted", "type": "boolean" }
|
|
604
|
+
],
|
|
605
|
+
"events": []
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
608
|
{
|
|
609
609
|
"name": "leu-file-input",
|
|
610
610
|
"description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
|
|
@@ -686,6 +686,29 @@
|
|
|
686
686
|
]
|
|
687
687
|
}
|
|
688
688
|
},
|
|
689
|
+
{
|
|
690
|
+
"name": "leu-icon",
|
|
691
|
+
"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)_",
|
|
692
|
+
"doc-url": "",
|
|
693
|
+
"attributes": [
|
|
694
|
+
{
|
|
695
|
+
"name": "name",
|
|
696
|
+
"description": "The name of the icon to display.",
|
|
697
|
+
"value": { "type": "IconPathName | \"\"", "default": "\"\"" }
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"events": [],
|
|
701
|
+
"js": {
|
|
702
|
+
"properties": [
|
|
703
|
+
{
|
|
704
|
+
"name": "name",
|
|
705
|
+
"description": "The name of the icon to display.",
|
|
706
|
+
"type": "IconPathName | \"\""
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
"events": []
|
|
710
|
+
}
|
|
711
|
+
},
|
|
689
712
|
{
|
|
690
713
|
"name": "leu-input",
|
|
691
714
|
"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",
|
|
@@ -926,29 +949,6 @@
|
|
|
926
949
|
]
|
|
927
950
|
}
|
|
928
951
|
},
|
|
929
|
-
{
|
|
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)_",
|
|
932
|
-
"doc-url": "",
|
|
933
|
-
"attributes": [
|
|
934
|
-
{
|
|
935
|
-
"name": "name",
|
|
936
|
-
"description": "The name of the icon to display.",
|
|
937
|
-
"value": { "type": "IconPathName | \"\"", "default": "\"\"" }
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
"events": [],
|
|
941
|
-
"js": {
|
|
942
|
-
"properties": [
|
|
943
|
-
{
|
|
944
|
-
"name": "name",
|
|
945
|
-
"description": "The name of the icon to display.",
|
|
946
|
-
"type": "IconPathName | \"\""
|
|
947
|
-
}
|
|
948
|
-
],
|
|
949
|
-
"events": []
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
952
|
{
|
|
953
953
|
"name": "leu-menu",
|
|
954
954
|
"description": "\n---\n",
|
|
@@ -1428,53 +1428,153 @@
|
|
|
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
|
-
|
|
1440
|
-
|
|
1439
|
+
{
|
|
1440
|
+
"name": "min",
|
|
1441
|
+
"description": "The minimum value of the range slider.",
|
|
1442
|
+
"value": { "type": "number", "default": "0" }
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"name": "max",
|
|
1446
|
+
"description": "The maximum value of the range slider.",
|
|
1447
|
+
"value": { "type": "number", "default": "100" }
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"name": "step",
|
|
1451
|
+
"description": "The step size of the range slider.",
|
|
1452
|
+
"value": { "type": "number", "default": "1" }
|
|
1453
|
+
},
|
|
1441
1454
|
{
|
|
1442
1455
|
"name": "name",
|
|
1443
1456
|
"value": { "type": "string", "default": "\"\"" }
|
|
1444
1457
|
},
|
|
1445
1458
|
{
|
|
1446
1459
|
"name": "label",
|
|
1460
|
+
"description": "The label of the range slider.",
|
|
1447
1461
|
"value": { "type": "string", "default": "\"\"" }
|
|
1448
1462
|
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "hide-label",
|
|
1465
|
+
"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.",
|
|
1466
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1467
|
+
},
|
|
1449
1468
|
{
|
|
1450
1469
|
"name": "disabled",
|
|
1470
|
+
"description": "Whether the range slider is disabled.",
|
|
1451
1471
|
"value": { "type": "boolean", "default": "false" }
|
|
1452
1472
|
},
|
|
1453
1473
|
{
|
|
1454
1474
|
"name": "multiple",
|
|
1475
|
+
"description": "Whether to use a range with two handles.",
|
|
1476
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "show-ticks",
|
|
1480
|
+
"description": "Wheter to show tick marks below the range slider.\nOne tick mark per step will be rendered.",
|
|
1481
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "show-range-labels",
|
|
1485
|
+
"description": "Whether to show the min and max labels below the range slider.",
|
|
1455
1486
|
"value": { "type": "boolean", "default": "false" }
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "prefix",
|
|
1490
|
+
"description": "A prefix to display before the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
1491
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "suffix",
|
|
1495
|
+
"description": "A suffix to display after the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
1496
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1456
1497
|
}
|
|
1457
1498
|
],
|
|
1458
|
-
"events": [],
|
|
1499
|
+
"events": [{ "name": "input", "type": "CustomEvent" }],
|
|
1459
1500
|
"js": {
|
|
1460
1501
|
"properties": [
|
|
1461
|
-
{
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
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
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"name": "min",
|
|
1509
|
+
"description": "The minimum value of the range slider.",
|
|
1510
|
+
"type": "number"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "max",
|
|
1514
|
+
"description": "The maximum value of the range slider.",
|
|
1515
|
+
"type": "number"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"name": "step",
|
|
1519
|
+
"description": "The step size of the range slider.",
|
|
1520
|
+
"type": "number"
|
|
1521
|
+
},
|
|
1465
1522
|
{ "name": "name", "type": "string" },
|
|
1466
|
-
{
|
|
1467
|
-
|
|
1468
|
-
|
|
1523
|
+
{
|
|
1524
|
+
"name": "label",
|
|
1525
|
+
"description": "The label of the range slider.",
|
|
1526
|
+
"type": "string"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"name": "hideLabel",
|
|
1530
|
+
"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.",
|
|
1531
|
+
"type": "boolean"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"name": "disabled",
|
|
1535
|
+
"description": "Whether the range slider is disabled.",
|
|
1536
|
+
"type": "boolean"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "multiple",
|
|
1540
|
+
"description": "Whether to use a range with two handles.",
|
|
1541
|
+
"type": "boolean"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "showTicks",
|
|
1545
|
+
"description": "Wheter to show tick marks below the range slider.\nOne tick mark per step will be rendered.",
|
|
1546
|
+
"type": "boolean"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "showRangeLabels",
|
|
1550
|
+
"description": "Whether to show the min and max labels below the range slider.",
|
|
1551
|
+
"type": "boolean"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"name": "prefix",
|
|
1555
|
+
"description": "A prefix to display before the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
1556
|
+
"type": "string"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "suffix",
|
|
1560
|
+
"description": "A suffix to display after the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
1561
|
+
"type": "string"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "valueFormatter",
|
|
1565
|
+
"description": "A custom function to format the value displayed in the output element(s).\nIf provided, the prefix and suffix properties will be ignored.",
|
|
1566
|
+
"type": "(value: number) => string | undefined"
|
|
1567
|
+
},
|
|
1469
1568
|
{
|
|
1470
1569
|
"name": "value",
|
|
1471
|
-
"description": "
|
|
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"
|
|
1472
1572
|
},
|
|
1473
|
-
{ "name": "valueAsArray" },
|
|
1474
|
-
{ "name": "valueLow" },
|
|
1475
|
-
{ "name": "valueHigh" }
|
|
1573
|
+
{ "name": "valueAsArray", "type": "InternalRangeValue" },
|
|
1574
|
+
{ "name": "valueLow", "type": "number" },
|
|
1575
|
+
{ "name": "valueHigh", "type": "number" }
|
|
1476
1576
|
],
|
|
1477
|
-
"events": []
|
|
1577
|
+
"events": [{ "name": "input", "type": "CustomEvent" }]
|
|
1478
1578
|
}
|
|
1479
1579
|
},
|
|
1480
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.
|
|
6
|
+
"version": "0.24.1",
|
|
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
|
}
|
|
@@ -6,8 +6,8 @@ import { classMap } from "lit/directives/class-map.js"
|
|
|
6
6
|
import { LeuElement } from "../../lib/LeuElement.js"
|
|
7
7
|
|
|
8
8
|
import styles from "./file-input.css"
|
|
9
|
-
import { LeuButton } from "
|
|
10
|
-
import { LeuIcon } from "../icon/
|
|
9
|
+
import { LeuButton } from "../button/Button.js"
|
|
10
|
+
import { LeuIcon } from "../icon/Icon.js"
|
|
11
11
|
import { LeuVisuallyHidden } from "../visually-hidden/VisuallyHidden.js"
|
|
12
12
|
|
|
13
13
|
/**
|