@statistikzh/leu 0.22.1 → 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.
- package/.github/workflows/ci.yml +8 -8
- package/.github/workflows/deploy-github-pages.yaml +2 -2
- package/.github/workflows/publish.yml +30 -0
- package/.github/workflows/release-please.yml +1 -19
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +25 -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-DfsEye-A.js → LeuElement-BfbOWTGZ.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.d.ts +16 -0
- package/dist/Popup.js +20 -2
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +51 -0
- package/dist/Range.js +143 -5
- package/dist/ScrollTop.js +1 -1
- 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/popup/Popup.d.ts +16 -0
- package/dist/components/popup/Popup.d.ts.map +1 -1
- package/dist/components/popup/stories/popup.stories.d.ts +2 -0
- package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
- package/dist/components/range/Range.d.ts +51 -0
- package/dist/components/range/Range.d.ts.map +1 -1
- package/dist/components/range/stories/range.stories.d.ts +230 -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 +1 -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 +1 -1
- package/dist/leu-scroll-top.js +1 -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/vscode.html-custom-data.json +149 -85
- package/dist/vue/index.d.ts +125 -100
- package/dist/web-types.json +298 -174
- package/package.json +6 -2
- package/src/components/file-input/FileInput.ts +2 -2
- package/src/components/popup/Popup.ts +37 -0
- package/src/components/popup/stories/popup.stories.ts +10 -0
- package/src/components/popup/test/popup.test.ts +27 -0
- package/src/components/range/Range.ts +102 -3
- package/src/components/range/range.css +48 -1
- package/src/components/range/stories/range.stories.ts +182 -0
- package/src/components/range/test/range.test.ts +151 -6
- package/web-test-runner.config.mjs +10 -0
- 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
|
@@ -109,6 +109,17 @@
|
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"name": "leu-button-group",
|
|
114
|
+
"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",
|
|
115
|
+
"attributes": [],
|
|
116
|
+
"references": [
|
|
117
|
+
{
|
|
118
|
+
"name": "Documentation",
|
|
119
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
112
123
|
{
|
|
113
124
|
"name": "leu-checkbox",
|
|
114
125
|
"description": "\n---\n",
|
|
@@ -147,17 +158,6 @@
|
|
|
147
158
|
}
|
|
148
159
|
]
|
|
149
160
|
},
|
|
150
|
-
{
|
|
151
|
-
"name": "leu-button-group",
|
|
152
|
-
"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",
|
|
153
|
-
"attributes": [],
|
|
154
|
-
"references": [
|
|
155
|
-
{
|
|
156
|
-
"name": "Documentation",
|
|
157
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
161
|
{
|
|
162
162
|
"name": "leu-chart-wrapper",
|
|
163
163
|
"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.",
|
|
@@ -175,74 +175,6 @@
|
|
|
175
175
|
}
|
|
176
176
|
]
|
|
177
177
|
},
|
|
178
|
-
{
|
|
179
|
-
"name": "leu-dropdown",
|
|
180
|
-
"description": "\n---\n",
|
|
181
|
-
"attributes": [
|
|
182
|
-
{ "name": "label", "values": [] },
|
|
183
|
-
{ "name": "expanded", "values": [] },
|
|
184
|
-
{ "name": "inverted", "values": [] }
|
|
185
|
-
],
|
|
186
|
-
"references": [
|
|
187
|
-
{
|
|
188
|
-
"name": "Documentation",
|
|
189
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/dropdown"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"name": "leu-dialog",
|
|
195
|
-
"description": "\n---\n",
|
|
196
|
-
"attributes": [
|
|
197
|
-
{ "name": "label", "values": [] },
|
|
198
|
-
{ "name": "sublabel", "values": [] },
|
|
199
|
-
{ "name": "open", "values": [] }
|
|
200
|
-
],
|
|
201
|
-
"references": [
|
|
202
|
-
{
|
|
203
|
-
"name": "Documentation",
|
|
204
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/dialog"
|
|
205
|
-
}
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "leu-file-input",
|
|
210
|
-
"description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
|
|
211
|
-
"attributes": [
|
|
212
|
-
{ "name": "label", "values": [] },
|
|
213
|
-
{
|
|
214
|
-
"name": "accept",
|
|
215
|
-
"description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
|
|
216
|
-
"values": []
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "disabled",
|
|
220
|
-
"description": "Whether the file input is disabled.",
|
|
221
|
-
"values": []
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"name": "multiple",
|
|
225
|
-
"description": "Whether the file input allows multiple files.",
|
|
226
|
-
"values": []
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "required",
|
|
230
|
-
"description": "Whether the file input is required.",
|
|
231
|
-
"values": []
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "variant",
|
|
235
|
-
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
236
|
-
"values": [{ "name": "filled" }, { "name": "transparent" }]
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"references": [
|
|
240
|
-
{
|
|
241
|
-
"name": "Documentation",
|
|
242
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/file-input"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
178
|
{
|
|
247
179
|
"name": "leu-chip-group",
|
|
248
180
|
"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)_",
|
|
@@ -340,6 +272,59 @@
|
|
|
340
272
|
}
|
|
341
273
|
]
|
|
342
274
|
},
|
|
275
|
+
{
|
|
276
|
+
"name": "leu-dropdown",
|
|
277
|
+
"description": "\n---\n",
|
|
278
|
+
"attributes": [
|
|
279
|
+
{ "name": "label", "values": [] },
|
|
280
|
+
{ "name": "expanded", "values": [] },
|
|
281
|
+
{ "name": "inverted", "values": [] }
|
|
282
|
+
],
|
|
283
|
+
"references": [
|
|
284
|
+
{
|
|
285
|
+
"name": "Documentation",
|
|
286
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/dropdown"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "leu-file-input",
|
|
292
|
+
"description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
|
|
293
|
+
"attributes": [
|
|
294
|
+
{ "name": "label", "values": [] },
|
|
295
|
+
{
|
|
296
|
+
"name": "accept",
|
|
297
|
+
"description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
|
|
298
|
+
"values": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "disabled",
|
|
302
|
+
"description": "Whether the file input is disabled.",
|
|
303
|
+
"values": []
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "multiple",
|
|
307
|
+
"description": "Whether the file input allows multiple files.",
|
|
308
|
+
"values": []
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "required",
|
|
312
|
+
"description": "Whether the file input is required.",
|
|
313
|
+
"values": []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "variant",
|
|
317
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
318
|
+
"values": [{ "name": "filled" }, { "name": "transparent" }]
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"references": [
|
|
322
|
+
{
|
|
323
|
+
"name": "Documentation",
|
|
324
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/file-input"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
343
328
|
{
|
|
344
329
|
"name": "leu-icon",
|
|
345
330
|
"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)_",
|
|
@@ -469,6 +454,21 @@
|
|
|
469
454
|
}
|
|
470
455
|
]
|
|
471
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"name": "leu-dialog",
|
|
459
|
+
"description": "\n---\n",
|
|
460
|
+
"attributes": [
|
|
461
|
+
{ "name": "label", "values": [] },
|
|
462
|
+
{ "name": "sublabel", "values": [] },
|
|
463
|
+
{ "name": "open", "values": [] }
|
|
464
|
+
],
|
|
465
|
+
"references": [
|
|
466
|
+
{
|
|
467
|
+
"name": "Documentation",
|
|
468
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/dialog"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
472
|
{
|
|
473
473
|
"name": "leu-menu",
|
|
474
474
|
"description": "\n---\n",
|
|
@@ -625,6 +625,21 @@
|
|
|
625
625
|
{ "name": "both" }
|
|
626
626
|
]
|
|
627
627
|
},
|
|
628
|
+
{
|
|
629
|
+
"name": "offset-main-axis",
|
|
630
|
+
"description": "Offsets the popup along the main axis.",
|
|
631
|
+
"values": []
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "offset-cross-axis",
|
|
635
|
+
"description": "Offsets the popup along the cross axis.",
|
|
636
|
+
"values": []
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "offset-alignment-axis",
|
|
640
|
+
"description": "Offsets the popup along the alignment axis.\nOverrides the `offsetCrossAxis` value.",
|
|
641
|
+
"values": []
|
|
642
|
+
},
|
|
628
643
|
{
|
|
629
644
|
"name": "autoSize",
|
|
630
645
|
"values": [
|
|
@@ -713,13 +728,62 @@
|
|
|
713
728
|
"description": "\n---\n\n\n### **Methods:**\n ",
|
|
714
729
|
"attributes": [
|
|
715
730
|
{ "name": "value", "values": [{ "name": "array" }] },
|
|
716
|
-
{
|
|
717
|
-
|
|
718
|
-
|
|
731
|
+
{
|
|
732
|
+
"name": "min",
|
|
733
|
+
"description": "The minimum value of the range slider.",
|
|
734
|
+
"values": []
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "max",
|
|
738
|
+
"description": "The maximum value of the range slider.",
|
|
739
|
+
"values": []
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "step",
|
|
743
|
+
"description": "The step size of the range slider.",
|
|
744
|
+
"values": []
|
|
745
|
+
},
|
|
719
746
|
{ "name": "name", "values": [] },
|
|
720
|
-
{
|
|
721
|
-
|
|
722
|
-
|
|
747
|
+
{
|
|
748
|
+
"name": "label",
|
|
749
|
+
"description": "The label of the range slider.",
|
|
750
|
+
"values": []
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "hide-label",
|
|
754
|
+
"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.",
|
|
755
|
+
"values": []
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "disabled",
|
|
759
|
+
"description": "Whether the range slider is disabled.",
|
|
760
|
+
"values": []
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "multiple",
|
|
764
|
+
"description": "Whether to use a range with two handles.",
|
|
765
|
+
"values": []
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "show-ticks",
|
|
769
|
+
"description": "Wheter to show tick marks below the range slider.\nOne tick mark per step will be rendered.",
|
|
770
|
+
"values": []
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "show-range-labels",
|
|
774
|
+
"description": "Whether to show the min and max labels below the range slider.",
|
|
775
|
+
"values": []
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "prefix",
|
|
779
|
+
"description": "A prefix to display before the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
780
|
+
"values": []
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"name": "suffix",
|
|
784
|
+
"description": "A suffix to display after the value in the output element(s).\nIs ignored if a custom valueFormatter is provided.",
|
|
785
|
+
"values": []
|
|
786
|
+
}
|
|
723
787
|
],
|
|
724
788
|
"references": [
|
|
725
789
|
{
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -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 { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
6
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
6
7
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
7
|
-
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
8
8
|
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
9
|
-
import type { LeuDropdown } from "../Dropdown.js";
|
|
10
|
-
import type { LeuDialog } from "../Dialog.js";
|
|
11
|
-
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
12
9
|
import type { LeuChipGroup } from "../ChipGroup.js";
|
|
13
10
|
import type { LeuChipLink } from "../ChipLink.js";
|
|
14
11
|
import type { LeuChipRemovable } from "../ChipRemovable.js";
|
|
15
12
|
import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
|
|
13
|
+
import type { LeuDropdown } from "../Dropdown.js";
|
|
14
|
+
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
16
15
|
import type { LeuIcon } from "../Icon.js";
|
|
17
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,6 +74,13 @@ 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 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
|
+
|
|
77
84
|
type LeuCheckboxProps = {
|
|
78
85
|
/** */
|
|
79
86
|
checked?: LeuCheckbox["checked"];
|
|
@@ -94,13 +101,6 @@ type LeuCheckboxGroupProps = {
|
|
|
94
101
|
value?: LeuCheckboxGroup["value"];
|
|
95
102
|
};
|
|
96
103
|
|
|
97
|
-
type LeuButtonGroupProps = {
|
|
98
|
-
/** The value of the currently selected (active) button */
|
|
99
|
-
value?: LeuButtonGroup["value"];
|
|
100
|
-
/** When the value of the group changes by clicking a button */
|
|
101
|
-
oninput?: (e: CustomEvent<never>) => void;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
104
|
type LeuChartWrapperProps = {
|
|
105
105
|
/** Whether the chart is currently loading or not.
|
|
106
106
|
When set to `true`, a spinner will be shown in the chart container. */
|
|
@@ -109,51 +109,6 @@ When set to `true`, a spinner will be shown in the chart container. */
|
|
|
109
109
|
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
110
110
|
};
|
|
111
111
|
|
|
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"];
|
|
126
|
-
/** */
|
|
127
|
-
open?: LeuDialog["open"];
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
type LeuFileInputProps = {
|
|
131
|
-
/** */
|
|
132
|
-
label?: LeuFileInput["label"];
|
|
133
|
-
/** A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers). */
|
|
134
|
-
accept?: LeuFileInput["accept"];
|
|
135
|
-
/** Whether the file input is disabled. */
|
|
136
|
-
disabled?: LeuFileInput["disabled"];
|
|
137
|
-
/** Whether the file input allows multiple files. */
|
|
138
|
-
multiple?: LeuFileInput["multiple"];
|
|
139
|
-
/** Whether the file input is required. */
|
|
140
|
-
required?: LeuFileInput["required"];
|
|
141
|
-
/** The variant of the file list item. `filled` renders a gray background. */
|
|
142
|
-
variant?: LeuFileInput["variant"];
|
|
143
|
-
/** */
|
|
144
|
-
files?: LeuFileInput["files"];
|
|
145
|
-
/** */
|
|
146
|
-
input?: LeuFileInput["input"];
|
|
147
|
-
/** */
|
|
148
|
-
form?: LeuFileInput["form"];
|
|
149
|
-
/** */
|
|
150
|
-
name?: LeuFileInput["name"];
|
|
151
|
-
/** */
|
|
152
|
-
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
153
|
-
/** */
|
|
154
|
-
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
112
|
type LeuChipGroupProps = {
|
|
158
113
|
/** */
|
|
159
114
|
inverted?: LeuChipGroup["inverted"];
|
|
@@ -203,6 +158,42 @@ type LeuChipSelectableProps = {
|
|
|
203
158
|
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
204
159
|
};
|
|
205
160
|
|
|
161
|
+
type LeuDropdownProps = {
|
|
162
|
+
/** */
|
|
163
|
+
label?: LeuDropdown["label"];
|
|
164
|
+
/** */
|
|
165
|
+
expanded?: LeuDropdown["expanded"];
|
|
166
|
+
/** */
|
|
167
|
+
inverted?: LeuDropdown["inverted"];
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
type LeuFileInputProps = {
|
|
171
|
+
/** */
|
|
172
|
+
label?: LeuFileInput["label"];
|
|
173
|
+
/** A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers). */
|
|
174
|
+
accept?: LeuFileInput["accept"];
|
|
175
|
+
/** Whether the file input is disabled. */
|
|
176
|
+
disabled?: LeuFileInput["disabled"];
|
|
177
|
+
/** Whether the file input allows multiple files. */
|
|
178
|
+
multiple?: LeuFileInput["multiple"];
|
|
179
|
+
/** Whether the file input is required. */
|
|
180
|
+
required?: LeuFileInput["required"];
|
|
181
|
+
/** The variant of the file list item. `filled` renders a gray background. */
|
|
182
|
+
variant?: LeuFileInput["variant"];
|
|
183
|
+
/** */
|
|
184
|
+
files?: LeuFileInput["files"];
|
|
185
|
+
/** */
|
|
186
|
+
input?: LeuFileInput["input"];
|
|
187
|
+
/** */
|
|
188
|
+
form?: LeuFileInput["form"];
|
|
189
|
+
/** */
|
|
190
|
+
name?: LeuFileInput["name"];
|
|
191
|
+
/** */
|
|
192
|
+
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
193
|
+
/** */
|
|
194
|
+
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
195
|
+
};
|
|
196
|
+
|
|
206
197
|
type LeuIconProps = {
|
|
207
198
|
/** The name of the icon to display. */
|
|
208
199
|
name?: LeuIcon["name"];
|
|
@@ -259,6 +250,15 @@ type LeuInputProps = {
|
|
|
259
250
|
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
260
251
|
};
|
|
261
252
|
|
|
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"];
|
|
@@ -334,6 +334,13 @@ type LeuPopupProps = {
|
|
|
334
334
|
shiftPadding?: LeuPopup["shiftPadding"];
|
|
335
335
|
/** */
|
|
336
336
|
matchSize?: LeuPopup["matchSize"];
|
|
337
|
+
/** Offsets the popup along the main axis. */
|
|
338
|
+
"offset-main-axis"?: LeuPopup["offsetMainAxis"];
|
|
339
|
+
/** Offsets the popup along the cross axis. */
|
|
340
|
+
"offset-cross-axis"?: LeuPopup["offsetCrossAxis"];
|
|
341
|
+
/** Offsets the popup along the alignment axis.
|
|
342
|
+
Overrides the `offsetCrossAxis` value. */
|
|
343
|
+
"offset-alignment-axis"?: LeuPopup["offsetAlignmentAxis"];
|
|
337
344
|
/** */
|
|
338
345
|
autoSize?: LeuPopup["autoSize"];
|
|
339
346
|
/** */
|
|
@@ -372,20 +379,38 @@ type LeuRadioGroupProps = {
|
|
|
372
379
|
type LeuRangeProps = {
|
|
373
380
|
/** */
|
|
374
381
|
value?: LeuRange["defaultValue"];
|
|
375
|
-
/**
|
|
382
|
+
/** The minimum value of the range slider. */
|
|
376
383
|
min?: LeuRange["min"];
|
|
377
|
-
/**
|
|
384
|
+
/** The maximum value of the range slider. */
|
|
378
385
|
max?: LeuRange["max"];
|
|
379
|
-
/**
|
|
386
|
+
/** The step size of the range slider. */
|
|
380
387
|
step?: LeuRange["step"];
|
|
381
388
|
/** */
|
|
382
389
|
name?: LeuRange["name"];
|
|
383
|
-
/**
|
|
390
|
+
/** The label of the range slider. */
|
|
384
391
|
label?: LeuRange["label"];
|
|
385
|
-
/**
|
|
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. */
|
|
386
397
|
disabled?: LeuRange["disabled"];
|
|
387
|
-
/**
|
|
398
|
+
/** Whether to use a range with two handles. */
|
|
388
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"];
|
|
389
414
|
/** Sets the value of the underlying input element(s).
|
|
390
415
|
The value has to be an array if "multiple" range is used.
|
|
391
416
|
Otherwise it has to be a string. */
|
|
@@ -497,23 +522,6 @@ export type CustomElements = {
|
|
|
497
522
|
*/
|
|
498
523
|
"leu-button": DefineComponent<LeuButtonProps>;
|
|
499
524
|
|
|
500
|
-
/**
|
|
501
|
-
*
|
|
502
|
-
* ---
|
|
503
|
-
*
|
|
504
|
-
*/
|
|
505
|
-
"leu-checkbox": DefineComponent<LeuCheckboxProps>;
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
509
|
-
* ---
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
* ### **Slots:**
|
|
513
|
-
* - _default_ - Place the checkboxes inside the default slot.
|
|
514
|
-
*/
|
|
515
|
-
"leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
|
|
516
|
-
|
|
517
525
|
/**
|
|
518
526
|
* A radio input-like button group component.
|
|
519
527
|
* It allows only one button to be active at a time.
|
|
@@ -528,44 +536,36 @@ export type CustomElements = {
|
|
|
528
536
|
*/
|
|
529
537
|
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
530
538
|
|
|
531
|
-
/**
|
|
532
|
-
* A wrapper element for charts.
|
|
533
|
-
* ---
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
* ### **Slots:**
|
|
537
|
-
* - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
|
|
538
|
-
* - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
|
|
539
|
-
* - **chart** - The actual chart
|
|
540
|
-
* - **caption** - A caption for the chart, e.g. a source or explanation of the data.
|
|
541
|
-
* - **download** - A download button or dropdown to export the chart in different formats.
|
|
542
|
-
*/
|
|
543
|
-
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
544
|
-
|
|
545
539
|
/**
|
|
546
540
|
*
|
|
547
541
|
* ---
|
|
548
542
|
*
|
|
549
543
|
*/
|
|
550
|
-
"leu-
|
|
544
|
+
"leu-checkbox": DefineComponent<LeuCheckboxProps>;
|
|
551
545
|
|
|
552
546
|
/**
|
|
553
547
|
*
|
|
554
548
|
* ---
|
|
555
549
|
*
|
|
550
|
+
*
|
|
551
|
+
* ### **Slots:**
|
|
552
|
+
* - _default_ - Place the checkboxes inside the default slot.
|
|
556
553
|
*/
|
|
557
|
-
"leu-
|
|
554
|
+
"leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
|
|
558
555
|
|
|
559
556
|
/**
|
|
560
|
-
*
|
|
557
|
+
* A wrapper element for charts.
|
|
561
558
|
* ---
|
|
562
559
|
*
|
|
563
560
|
*
|
|
564
|
-
* ### **
|
|
565
|
-
* - **
|
|
566
|
-
* - **
|
|
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.
|
|
567
567
|
*/
|
|
568
|
-
"leu-
|
|
568
|
+
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
*
|
|
@@ -622,6 +622,24 @@ export type CustomElements = {
|
|
|
622
622
|
*/
|
|
623
623
|
"leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
|
|
624
624
|
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* ---
|
|
628
|
+
*
|
|
629
|
+
*/
|
|
630
|
+
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* ---
|
|
635
|
+
*
|
|
636
|
+
*
|
|
637
|
+
* ### **Events:**
|
|
638
|
+
* - **input**
|
|
639
|
+
* - **change**
|
|
640
|
+
*/
|
|
641
|
+
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
642
|
+
|
|
625
643
|
/**
|
|
626
644
|
* A component to render all defined zhWeb icons.
|
|
627
645
|
* The `fill` of the icon is set to `currentColor` and
|
|
@@ -658,6 +676,13 @@ export type CustomElements = {
|
|
|
658
676
|
*/
|
|
659
677
|
"leu-input": DefineComponent<LeuInputProps>;
|
|
660
678
|
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* ---
|
|
682
|
+
*
|
|
683
|
+
*/
|
|
684
|
+
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
685
|
+
|
|
661
686
|
/**
|
|
662
687
|
*
|
|
663
688
|
* ---
|