@statistikzh/leu 0.22.0 → 0.22.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/release-please.yml +1 -2
- package/.nvmrc +1 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +9 -0
- package/README.md +15 -10
- package/dist/Accordion.js +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -7
- package/dist/Chip.js +7 -5
- package/dist/ChipGroup.d.ts +17 -36
- package/dist/ChipGroup.js +35 -33
- package/dist/ChipLink.d.ts +5 -21
- package/dist/ChipLink.js +14 -15
- package/dist/ChipRemovable.d.ts +4 -15
- package/dist/ChipRemovable.js +7 -9
- package/dist/ChipSelectable.d.ts +14 -37
- package/dist/ChipSelectable.js +24 -28
- package/dist/Dialog.d.ts +7 -18
- package/dist/Dialog.js +15 -18
- package/dist/Dropdown.d.ts +16 -28
- package/dist/Dropdown.js +22 -23
- package/dist/FileInput.d.ts +2 -1
- package/dist/FileInput.js +19 -5
- package/dist/Icon.d-itcQ94ym.d.ts +151 -0
- package/dist/Icon.d.ts +4 -156
- package/dist/Icon.js +1 -4
- package/dist/Input.d.ts +73 -141
- package/dist/Input.js +91 -88
- package/dist/{LeuElement-BooZrClI.js → LeuElement-DfsEye-A.js} +1 -1
- package/dist/Menu.d.ts +2 -8
- package/dist/Menu.js +7 -9
- package/dist/MenuItem.d.ts +31 -59
- package/dist/MenuItem.js +30 -33
- package/dist/Message.d.ts +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.d.ts +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 +22 -65
- package/dist/Range.js +36 -37
- package/dist/ScrollTop.d.ts +5 -7
- package/dist/ScrollTop.js +10 -15
- package/dist/Select.d.ts +2 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts +5 -0
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts.map +1 -1
- package/dist/components/chip/Chip.d.ts +1 -7
- package/dist/components/chip/Chip.d.ts.map +1 -1
- package/dist/components/chip/ChipGroup.d.ts +15 -35
- package/dist/components/chip/ChipGroup.d.ts.map +1 -1
- package/dist/components/chip/ChipLink.d.ts +4 -20
- package/dist/components/chip/ChipLink.d.ts.map +1 -1
- package/dist/components/chip/ChipRemovable.d.ts +3 -14
- package/dist/components/chip/ChipRemovable.d.ts.map +1 -1
- package/dist/components/chip/ChipSelectable.d.ts +13 -36
- package/dist/components/chip/ChipSelectable.d.ts.map +1 -1
- package/dist/components/chip/stories/chip-group.stories.d.ts +1 -1
- package/dist/components/chip/stories/chip-group.stories.d.ts.map +1 -1
- package/dist/components/chip/stories/chip-link.stories.d.ts.map +1 -1
- package/dist/components/chip/stories/chip-selectable.stories.d.ts.map +1 -1
- package/dist/components/dialog/Dialog.d.ts +5 -17
- package/dist/components/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +14 -27
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/file-input/FileInput.d.ts +1 -0
- package/dist/components/file-input/FileInput.d.ts.map +1 -1
- package/dist/components/file-input/leu-file-input.d.ts +5 -0
- package/dist/components/file-input/leu-file-input.d.ts.map +1 -1
- package/dist/components/file-input/stories/file-input.stories.d.ts +4 -0
- package/dist/components/file-input/stories/file-input.stories.d.ts.map +1 -1
- package/dist/components/icon/Icon.d.ts +0 -6
- package/dist/components/icon/Icon.d.ts.map +1 -1
- package/dist/components/input/Input.d.ts +73 -140
- package/dist/components/input/Input.d.ts.map +1 -1
- package/dist/components/menu/Menu.d.ts +1 -7
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/MenuItem.d.ts +30 -57
- package/dist/components/menu/MenuItem.d.ts.map +1 -1
- package/dist/components/message/leu-message.d.ts +5 -0
- package/dist/components/message/leu-message.d.ts.map +1 -1
- package/dist/components/placeholder/leu-placeholder.d.ts +5 -0
- package/dist/components/placeholder/leu-placeholder.d.ts.map +1 -1
- package/dist/components/progress-bar/leu-progress-bar.d.ts +5 -0
- package/dist/components/progress-bar/leu-progress-bar.d.ts.map +1 -1
- package/dist/components/range/Range.d.ts +22 -65
- package/dist/components/range/Range.d.ts.map +1 -1
- package/dist/components/scroll-top/ScrollTop.d.ts +4 -6
- package/dist/components/scroll-top/ScrollTop.d.ts.map +1 -1
- package/dist/components/tag/leu-tag.d.ts +5 -0
- package/dist/components/tag/leu-tag.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -4
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.d.ts +10 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.d.ts +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.d.ts +2 -0
- package/dist/leu-chip-group.js +5 -1
- package/dist/leu-chip-link.js +3 -1
- package/dist/leu-chip-removable.d.ts +1 -1
- package/dist/leu-chip-removable.js +3 -3
- package/dist/leu-chip-selectable.js +3 -1
- package/dist/leu-dialog.d.ts +2 -1
- package/dist/leu-dialog.js +3 -3
- package/dist/leu-dropdown.d.ts +2 -1
- package/dist/leu-dropdown.js +3 -3
- package/dist/leu-file-input.d.ts +11 -2
- package/dist/leu-file-input.js +11 -4
- package/dist/leu-icon.d.ts +1 -1
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.d.ts +2 -1
- package/dist/leu-input.js +3 -3
- package/dist/leu-menu-item.d.ts +2 -2
- package/dist/leu-menu-item.js +3 -3
- package/dist/leu-menu.d.ts +1 -1
- package/dist/leu-menu.js +3 -3
- package/dist/leu-message.d.ts +11 -2
- package/dist/leu-message.js +1 -1
- package/dist/leu-pagination.d.ts +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.d.ts +10 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-progress-bar.d.ts +10 -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.d.ts +1 -1
- package/dist/leu-scroll-top.js +3 -3
- package/dist/leu-select.d.ts +2 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.d.ts +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.d.ts +10 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +126 -123
- package/dist/vue/index.d.ts +129 -146
- package/dist/web-types.json +340 -345
- package/package.json +1 -1
- package/scripts/generate-component/templates/[namespace]-[name].ts +6 -0
- package/src/components/chart-wrapper/leu-chart-wrapper.ts +6 -0
- package/src/components/chip/Chip.ts +3 -9
- package/src/components/chip/ChipGroup.ts +26 -39
- package/src/components/chip/ChipLink.ts +7 -18
- package/src/components/chip/ChipRemovable.ts +4 -11
- package/src/components/chip/ChipSelectable.ts +21 -35
- package/src/components/chip/stories/chip-group.stories.ts +4 -7
- package/src/components/chip/stories/chip-link.stories.ts +2 -4
- package/src/components/chip/stories/chip-selectable.stories.ts +4 -6
- package/src/components/chip/test/chip-group.test.ts +34 -31
- package/src/components/dialog/Dialog.ts +9 -22
- package/src/components/dropdown/Dropdown.ts +19 -26
- package/src/components/file-input/FileInput.ts +12 -1
- package/src/components/file-input/leu-file-input.ts +6 -0
- package/src/components/file-input/stories/file-input.stories.ts +7 -0
- package/src/components/icon/Icon.ts +0 -4
- package/src/components/input/Input.ts +108 -105
- package/src/components/menu/Menu.ts +3 -12
- package/src/components/menu/MenuItem.ts +37 -41
- package/src/components/message/leu-message.ts +6 -0
- package/src/components/placeholder/leu-placeholder.ts +6 -0
- package/src/components/progress-bar/leu-progress-bar.ts +6 -0
- package/src/components/range/Range.ts +51 -59
- package/src/components/scroll-top/ScrollTop.ts +8 -15
- package/src/components/tag/leu-tag.ts +6 -0
- package/src/index.ts +11 -0
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.22.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -65,33 +65,6 @@
|
|
|
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
|
-
},
|
|
95
68
|
{
|
|
96
69
|
"name": "leu-button",
|
|
97
70
|
"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",
|
|
@@ -238,49 +211,6 @@
|
|
|
238
211
|
"events": []
|
|
239
212
|
}
|
|
240
213
|
},
|
|
241
|
-
{
|
|
242
|
-
"name": "leu-chart-wrapper",
|
|
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.",
|
|
244
|
-
"doc-url": "",
|
|
245
|
-
"attributes": [
|
|
246
|
-
{
|
|
247
|
-
"name": "pending",
|
|
248
|
-
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
249
|
-
"value": { "type": "boolean", "default": "false" }
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"slots": [
|
|
253
|
-
{
|
|
254
|
-
"name": "title",
|
|
255
|
-
"description": "The title of the chart. Use a heading tag (h2-4) depending on your context."
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"name": "description",
|
|
259
|
-
"description": "A description of the chart. Content is wrapped in a `<p>` tag by the component."
|
|
260
|
-
},
|
|
261
|
-
{ "name": "chart", "description": "The actual chart" },
|
|
262
|
-
{
|
|
263
|
-
"name": "caption",
|
|
264
|
-
"description": "A caption for the chart, e.g. a source or explanation of the data."
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"name": "download",
|
|
268
|
-
"description": "A download button or dropdown to export the chart in different formats."
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
"events": [],
|
|
272
|
-
"js": {
|
|
273
|
-
"properties": [
|
|
274
|
-
{
|
|
275
|
-
"name": "pending",
|
|
276
|
-
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
277
|
-
"type": "boolean"
|
|
278
|
-
},
|
|
279
|
-
{ "name": "hasSlotController" }
|
|
280
|
-
],
|
|
281
|
-
"events": []
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
214
|
{
|
|
285
215
|
"name": "leu-checkbox",
|
|
286
216
|
"description": "\n---\n",
|
|
@@ -355,330 +285,405 @@
|
|
|
355
285
|
}
|
|
356
286
|
},
|
|
357
287
|
{
|
|
358
|
-
"name": "leu-
|
|
359
|
-
"description": "
|
|
288
|
+
"name": "leu-button-group",
|
|
289
|
+
"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",
|
|
290
|
+
"doc-url": "",
|
|
291
|
+
"attributes": [],
|
|
292
|
+
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
293
|
+
"events": [
|
|
294
|
+
{
|
|
295
|
+
"name": "input",
|
|
296
|
+
"description": "When the value of the group changes by clicking a button"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"js": {
|
|
300
|
+
"properties": [
|
|
301
|
+
{
|
|
302
|
+
"name": "value",
|
|
303
|
+
"description": "The value of the currently selected (active) button"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"events": [
|
|
307
|
+
{
|
|
308
|
+
"name": "input",
|
|
309
|
+
"description": "When the value of the group changes by clicking a button"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
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": "
|
|
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.",
|
|
364
322
|
"value": { "type": "boolean", "default": "false" }
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"slots": [
|
|
326
|
+
{
|
|
327
|
+
"name": "title",
|
|
328
|
+
"description": "The title of the chart. Use a heading tag (h2-4) depending on your context."
|
|
365
329
|
},
|
|
366
330
|
{
|
|
367
|
-
"name": "
|
|
368
|
-
"
|
|
331
|
+
"name": "description",
|
|
332
|
+
"description": "A description of the chart. Content is wrapped in a `<p>` tag by the component."
|
|
369
333
|
},
|
|
334
|
+
{ "name": "chart", "description": "The actual chart" },
|
|
370
335
|
{
|
|
371
|
-
"name": "
|
|
372
|
-
"
|
|
336
|
+
"name": "caption",
|
|
337
|
+
"description": "A caption for the chart, e.g. a source or explanation of the data."
|
|
373
338
|
},
|
|
374
339
|
{
|
|
375
|
-
"name": "
|
|
376
|
-
"
|
|
340
|
+
"name": "download",
|
|
341
|
+
"description": "A download button or dropdown to export the chart in different formats."
|
|
377
342
|
}
|
|
378
343
|
],
|
|
379
|
-
"
|
|
344
|
+
"events": [],
|
|
345
|
+
"js": {
|
|
346
|
+
"properties": [
|
|
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" }
|
|
353
|
+
],
|
|
354
|
+
"events": []
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "leu-dropdown",
|
|
359
|
+
"description": "\n---\n",
|
|
360
|
+
"doc-url": "",
|
|
361
|
+
"attributes": [
|
|
380
362
|
{
|
|
381
|
-
"name": "",
|
|
382
|
-
"
|
|
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" }
|
|
383
373
|
}
|
|
384
374
|
],
|
|
385
375
|
"events": [],
|
|
386
376
|
"js": {
|
|
387
377
|
"properties": [
|
|
388
|
-
{
|
|
389
|
-
"name": "value",
|
|
390
|
-
"description": "Checks the items with the given values.\nIf the selectionMode is single, only the first item with the given value is checked."
|
|
391
|
-
},
|
|
392
|
-
{ "name": "inverted", "type": "boolean" },
|
|
393
|
-
{ "name": "headingLevel", "type": "number" },
|
|
394
378
|
{ "name": "label", "type": "string" },
|
|
395
|
-
{
|
|
396
|
-
|
|
397
|
-
"type": "\"single\" | \"multiple\" | \"none\""
|
|
398
|
-
}
|
|
379
|
+
{ "name": "expanded", "type": "boolean" },
|
|
380
|
+
{ "name": "inverted", "type": "boolean" }
|
|
399
381
|
],
|
|
400
382
|
"events": []
|
|
401
383
|
}
|
|
402
384
|
},
|
|
403
385
|
{
|
|
404
|
-
"name": "leu-
|
|
405
|
-
"description": "\n---\n
|
|
386
|
+
"name": "leu-dialog",
|
|
387
|
+
"description": "\n---\n",
|
|
406
388
|
"doc-url": "",
|
|
407
389
|
"attributes": [
|
|
408
390
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"
|
|
411
|
-
"value": { "type": "keyof typeof SIZES" }
|
|
391
|
+
"name": "label",
|
|
392
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
412
393
|
},
|
|
413
394
|
{
|
|
414
|
-
"name": "
|
|
395
|
+
"name": "sublabel",
|
|
415
396
|
"value": { "type": "string", "default": "\"\"" }
|
|
416
397
|
},
|
|
417
398
|
{
|
|
418
|
-
"name": "
|
|
399
|
+
"name": "open",
|
|
419
400
|
"value": { "type": "boolean", "default": "false" }
|
|
420
401
|
}
|
|
421
402
|
],
|
|
422
|
-
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
423
403
|
"events": [],
|
|
424
404
|
"js": {
|
|
425
405
|
"properties": [
|
|
426
|
-
{ "name": "
|
|
427
|
-
{
|
|
428
|
-
|
|
429
|
-
"description": "The size of the chip",
|
|
430
|
-
"type": "keyof typeof SIZES"
|
|
431
|
-
},
|
|
432
|
-
{ "name": "href", "type": "string" }
|
|
406
|
+
{ "name": "label", "type": "string" },
|
|
407
|
+
{ "name": "sublabel", "type": "string" },
|
|
408
|
+
{ "name": "open", "type": "boolean" }
|
|
433
409
|
],
|
|
434
410
|
"events": []
|
|
435
411
|
}
|
|
436
412
|
},
|
|
437
413
|
{
|
|
438
|
-
"name": "leu-
|
|
439
|
-
"description": "\n---\n\n\n### **Events:**\n - **
|
|
414
|
+
"name": "leu-file-input",
|
|
415
|
+
"description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
|
|
440
416
|
"doc-url": "",
|
|
441
417
|
"attributes": [
|
|
442
418
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"description": "The value of the chip.",
|
|
419
|
+
"name": "label",
|
|
445
420
|
"value": { "type": "string", "default": "\"\"" }
|
|
446
421
|
},
|
|
447
422
|
{
|
|
448
|
-
"name": "
|
|
423
|
+
"name": "accept",
|
|
424
|
+
"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).",
|
|
425
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "disabled",
|
|
429
|
+
"description": "Whether the file input is disabled.",
|
|
430
|
+
"value": { "type": "boolean", "default": "false" }
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "multiple",
|
|
434
|
+
"description": "Whether the file input allows multiple files.",
|
|
435
|
+
"value": { "type": "boolean", "default": "false" }
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "required",
|
|
439
|
+
"description": "Whether the file input is required.",
|
|
449
440
|
"value": { "type": "boolean", "default": "false" }
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "variant",
|
|
444
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
445
|
+
"value": {
|
|
446
|
+
"type": "\"filled\" | \"transparent\"",
|
|
447
|
+
"default": "\"filled\""
|
|
448
|
+
}
|
|
450
449
|
}
|
|
451
450
|
],
|
|
452
|
-
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
453
451
|
"events": [
|
|
454
|
-
{
|
|
455
|
-
|
|
456
|
-
"description": "Dispatched when the user clicks on the chip"
|
|
457
|
-
}
|
|
452
|
+
{ "name": "input", "type": "CustomEvent" },
|
|
453
|
+
{ "name": "change", "type": "CustomEvent" }
|
|
458
454
|
],
|
|
459
455
|
"js": {
|
|
460
456
|
"properties": [
|
|
457
|
+
{ "name": "label", "type": "string" },
|
|
461
458
|
{
|
|
462
|
-
"name": "
|
|
463
|
-
"description": "
|
|
459
|
+
"name": "accept",
|
|
460
|
+
"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).",
|
|
464
461
|
"type": "string"
|
|
465
462
|
},
|
|
466
|
-
{
|
|
463
|
+
{
|
|
464
|
+
"name": "disabled",
|
|
465
|
+
"description": "Whether the file input is disabled.",
|
|
466
|
+
"type": "boolean"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "multiple",
|
|
470
|
+
"description": "Whether the file input allows multiple files.",
|
|
471
|
+
"type": "boolean"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "required",
|
|
475
|
+
"description": "Whether the file input is required.",
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "variant",
|
|
480
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
481
|
+
"type": "\"filled\" | \"transparent\""
|
|
482
|
+
},
|
|
483
|
+
{ "name": "files", "type": "File[]" },
|
|
484
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
485
|
+
{ "name": "form" },
|
|
486
|
+
{ "name": "name" }
|
|
467
487
|
],
|
|
468
488
|
"events": [
|
|
469
|
-
{
|
|
470
|
-
|
|
471
|
-
"description": "Dispatched when the user clicks on the chip"
|
|
472
|
-
}
|
|
489
|
+
{ "name": "input", "type": "CustomEvent" },
|
|
490
|
+
{ "name": "change", "type": "CustomEvent" }
|
|
473
491
|
]
|
|
474
492
|
}
|
|
475
493
|
},
|
|
476
494
|
{
|
|
477
|
-
"name": "leu-chip-
|
|
478
|
-
"description": "
|
|
495
|
+
"name": "leu-chip-group",
|
|
496
|
+
"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)_",
|
|
479
497
|
"doc-url": "",
|
|
480
498
|
"attributes": [
|
|
481
499
|
{
|
|
482
|
-
"name": "
|
|
483
|
-
"
|
|
484
|
-
"value": { "type": "keyof typeof SIZES" }
|
|
500
|
+
"name": "inverted",
|
|
501
|
+
"value": { "type": "boolean", "default": "false" }
|
|
485
502
|
},
|
|
486
503
|
{
|
|
487
|
-
"name": "
|
|
488
|
-
"description": "`toggle` or `radio`. Determines if only one or multiple chips can be selected.",
|
|
504
|
+
"name": "selection-mode",
|
|
489
505
|
"value": {
|
|
490
|
-
"type": "
|
|
491
|
-
"default": "\"
|
|
506
|
+
"type": "\"single\" | \"multiple\" | \"none\"",
|
|
507
|
+
"default": "\"none\""
|
|
492
508
|
}
|
|
493
509
|
},
|
|
494
510
|
{
|
|
495
|
-
"name": "
|
|
496
|
-
"
|
|
497
|
-
"value": { "type": "boolean", "default": "false" }
|
|
511
|
+
"name": "heading-level",
|
|
512
|
+
"value": { "type": "number", "default": "2" }
|
|
498
513
|
},
|
|
499
514
|
{
|
|
500
|
-
"name": "
|
|
501
|
-
"description": "The value of the chip.",
|
|
515
|
+
"name": "label",
|
|
502
516
|
"value": { "type": "string", "default": "\"\"" }
|
|
503
|
-
}
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"slots": [
|
|
504
520
|
{
|
|
505
|
-
"name": "
|
|
506
|
-
"
|
|
521
|
+
"name": "",
|
|
522
|
+
"description": "Place leu-chip-* elements inside this slot"
|
|
507
523
|
}
|
|
508
524
|
],
|
|
509
|
-
"
|
|
510
|
-
"events": [{ "name": "input", "type": "CustomEvent" }],
|
|
525
|
+
"events": [],
|
|
511
526
|
"js": {
|
|
512
527
|
"properties": [
|
|
528
|
+
{ "name": "inverted", "type": "boolean" },
|
|
513
529
|
{
|
|
514
|
-
"name": "
|
|
515
|
-
"
|
|
516
|
-
"type": "keyof typeof SIZES"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"name": "variant",
|
|
520
|
-
"description": "The variant of the chip. Has an effect not only on the visual appearance but also on the behavior.\n- `toggle`: The chip behaves like a toggle button.\n- `radio`: The chip behaves like a radio button.",
|
|
521
|
-
"type": "keyof typeof VARIANTS"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"name": "checked",
|
|
525
|
-
"description": "Whether the chip is selected.",
|
|
526
|
-
"type": "boolean"
|
|
530
|
+
"name": "selectionMode",
|
|
531
|
+
"type": "\"single\" | \"multiple\" | \"none\""
|
|
527
532
|
},
|
|
533
|
+
{ "name": "headingLevel", "type": "number" },
|
|
534
|
+
{ "name": "label", "type": "string" },
|
|
528
535
|
{
|
|
529
536
|
"name": "value",
|
|
530
|
-
"description": "
|
|
531
|
-
|
|
532
|
-
},
|
|
533
|
-
{ "name": "inverted", "type": "boolean" }
|
|
537
|
+
"description": "Checks the items with the given values.\nIf the selectionMode is single, only the first item with the given value is checked."
|
|
538
|
+
}
|
|
534
539
|
],
|
|
535
|
-
"events": [
|
|
540
|
+
"events": []
|
|
536
541
|
}
|
|
537
542
|
},
|
|
538
543
|
{
|
|
539
|
-
"name": "leu-
|
|
540
|
-
"description": "\n---\n",
|
|
544
|
+
"name": "leu-chip-link",
|
|
545
|
+
"description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
541
546
|
"doc-url": "",
|
|
542
547
|
"attributes": [
|
|
543
548
|
{
|
|
544
|
-
"name": "
|
|
545
|
-
"
|
|
549
|
+
"name": "size",
|
|
550
|
+
"description": "The size of the chip",
|
|
551
|
+
"value": {
|
|
552
|
+
"type": "\"regular\" | \"large\"",
|
|
553
|
+
"default": "\"regular\""
|
|
554
|
+
}
|
|
546
555
|
},
|
|
547
556
|
{
|
|
548
|
-
"name": "
|
|
557
|
+
"name": "href",
|
|
558
|
+
"description": "The URL that the chip links to",
|
|
549
559
|
"value": { "type": "string", "default": "\"\"" }
|
|
550
560
|
},
|
|
551
561
|
{
|
|
552
|
-
"name": "
|
|
562
|
+
"name": "inverted",
|
|
553
563
|
"value": { "type": "boolean", "default": "false" }
|
|
554
564
|
}
|
|
555
565
|
],
|
|
566
|
+
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
556
567
|
"events": [],
|
|
557
568
|
"js": {
|
|
558
569
|
"properties": [
|
|
559
|
-
{
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
570
|
+
{
|
|
571
|
+
"name": "size",
|
|
572
|
+
"description": "The size of the chip",
|
|
573
|
+
"type": "\"regular\" | \"large\""
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "href",
|
|
577
|
+
"description": "The URL that the chip links to",
|
|
578
|
+
"type": "string"
|
|
579
|
+
},
|
|
580
|
+
{ "name": "inverted", "type": "boolean" }
|
|
563
581
|
],
|
|
564
582
|
"events": []
|
|
565
583
|
}
|
|
566
584
|
},
|
|
567
585
|
{
|
|
568
|
-
"name": "leu-
|
|
569
|
-
"description": "\n---\n",
|
|
586
|
+
"name": "leu-chip-removable",
|
|
587
|
+
"description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Methods:**\n - **getValue()** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
570
588
|
"doc-url": "",
|
|
571
589
|
"attributes": [
|
|
572
590
|
{
|
|
573
|
-
"name": "
|
|
591
|
+
"name": "value",
|
|
592
|
+
"description": "The value of the chip.",
|
|
574
593
|
"value": { "type": "string", "default": "\"\"" }
|
|
575
594
|
},
|
|
576
|
-
{
|
|
577
|
-
"name": "expanded",
|
|
578
|
-
"value": { "type": "boolean", "default": "false" }
|
|
579
|
-
},
|
|
580
595
|
{
|
|
581
596
|
"name": "inverted",
|
|
582
597
|
"value": { "type": "boolean", "default": "false" }
|
|
583
598
|
}
|
|
584
599
|
],
|
|
585
|
-
"
|
|
600
|
+
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
601
|
+
"events": [
|
|
602
|
+
{
|
|
603
|
+
"name": "remove",
|
|
604
|
+
"description": "Dispatched when the user clicks on the chip"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
586
607
|
"js": {
|
|
587
608
|
"properties": [
|
|
588
|
-
{ "name": "hasSlotController" },
|
|
589
|
-
{ "name": "_documentClickHandler" },
|
|
590
|
-
{ "name": "_menuItemClickHandler" },
|
|
591
609
|
{
|
|
592
|
-
"name": "
|
|
593
|
-
"description": "
|
|
610
|
+
"name": "value",
|
|
611
|
+
"description": "The value of the chip.",
|
|
612
|
+
"type": "string"
|
|
594
613
|
},
|
|
595
|
-
{ "name": "
|
|
596
|
-
{ "name": "expanded", "type": "boolean" },
|
|
597
|
-
{ "name": "inverted", "type": "boolean" },
|
|
598
|
-
{ "name": "_toggleRef", "type": "Ref<HTMLButtonElement>" }
|
|
614
|
+
{ "name": "inverted", "type": "boolean" }
|
|
599
615
|
],
|
|
600
|
-
"events": [
|
|
616
|
+
"events": [
|
|
617
|
+
{
|
|
618
|
+
"name": "remove",
|
|
619
|
+
"description": "Dispatched when the user clicks on the chip"
|
|
620
|
+
}
|
|
621
|
+
]
|
|
601
622
|
}
|
|
602
623
|
},
|
|
603
624
|
{
|
|
604
|
-
"name": "leu-
|
|
605
|
-
"description": "
|
|
625
|
+
"name": "leu-chip-selectable",
|
|
626
|
+
"description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input**\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
606
627
|
"doc-url": "",
|
|
607
628
|
"attributes": [
|
|
608
629
|
{
|
|
609
|
-
"name": "
|
|
610
|
-
"
|
|
630
|
+
"name": "size",
|
|
631
|
+
"description": "The size of the chip. Has no effect when variant is \"radio\"",
|
|
632
|
+
"value": {
|
|
633
|
+
"type": "\"small\" | \"regular\"",
|
|
634
|
+
"default": "\"regular\""
|
|
635
|
+
}
|
|
611
636
|
},
|
|
612
637
|
{
|
|
613
|
-
"name": "
|
|
614
|
-
"description": "
|
|
615
|
-
"value": {
|
|
638
|
+
"name": "variant",
|
|
639
|
+
"description": "The variant of the chip. Determines if only one or multiple chips can be selected.",
|
|
640
|
+
"value": {
|
|
641
|
+
"type": "\"toggle\" | \"radio\"",
|
|
642
|
+
"default": "\"toggle\""
|
|
643
|
+
}
|
|
616
644
|
},
|
|
617
645
|
{
|
|
618
|
-
"name": "
|
|
619
|
-
"description": "Whether the
|
|
646
|
+
"name": "checked",
|
|
647
|
+
"description": "Whether the chip is selected",
|
|
620
648
|
"value": { "type": "boolean", "default": "false" }
|
|
621
649
|
},
|
|
622
650
|
{
|
|
623
|
-
"name": "
|
|
624
|
-
"description": "
|
|
625
|
-
"value": { "type": "
|
|
651
|
+
"name": "value",
|
|
652
|
+
"description": "The value of the chip",
|
|
653
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
626
654
|
},
|
|
627
655
|
{
|
|
628
|
-
"name": "
|
|
629
|
-
"description": "Whether the file input is required.",
|
|
656
|
+
"name": "inverted",
|
|
630
657
|
"value": { "type": "boolean", "default": "false" }
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"name": "variant",
|
|
634
|
-
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
635
|
-
"value": {
|
|
636
|
-
"type": "\"filled\" | \"transparent\"",
|
|
637
|
-
"default": "\"filled\""
|
|
638
|
-
}
|
|
639
658
|
}
|
|
640
659
|
],
|
|
641
|
-
"
|
|
642
|
-
|
|
643
|
-
{ "name": "change", "type": "CustomEvent" }
|
|
644
|
-
],
|
|
660
|
+
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
661
|
+
"events": [{ "name": "input", "type": "CustomEvent" }],
|
|
645
662
|
"js": {
|
|
646
663
|
"properties": [
|
|
647
|
-
{ "name": "label", "type": "string" },
|
|
648
|
-
{
|
|
649
|
-
"name": "accept",
|
|
650
|
-
"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).",
|
|
651
|
-
"type": "string"
|
|
652
|
-
},
|
|
653
664
|
{
|
|
654
|
-
"name": "
|
|
655
|
-
"description": "
|
|
656
|
-
"type": "
|
|
665
|
+
"name": "size",
|
|
666
|
+
"description": "The size of the chip. Has no effect when variant is \"radio\"",
|
|
667
|
+
"type": "\"small\" | \"regular\""
|
|
657
668
|
},
|
|
658
669
|
{
|
|
659
|
-
"name": "
|
|
660
|
-
"description": "
|
|
661
|
-
"type": "
|
|
670
|
+
"name": "variant",
|
|
671
|
+
"description": "The variant of the chip. Determines if only one or multiple chips can be selected.",
|
|
672
|
+
"type": "\"toggle\" | \"radio\""
|
|
662
673
|
},
|
|
663
674
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "Whether the
|
|
675
|
+
"name": "checked",
|
|
676
|
+
"description": "Whether the chip is selected",
|
|
666
677
|
"type": "boolean"
|
|
667
678
|
},
|
|
668
679
|
{
|
|
669
|
-
"name": "
|
|
670
|
-
"description": "The
|
|
671
|
-
"type": "
|
|
680
|
+
"name": "value",
|
|
681
|
+
"description": "The value of the chip",
|
|
682
|
+
"type": "string"
|
|
672
683
|
},
|
|
673
|
-
{ "name": "
|
|
674
|
-
{ "name": "input", "type": "HTMLInputElement" },
|
|
675
|
-
{ "name": "form" },
|
|
676
|
-
{ "name": "name" }
|
|
684
|
+
{ "name": "inverted", "type": "boolean" }
|
|
677
685
|
],
|
|
678
|
-
"events": [
|
|
679
|
-
{ "name": "input", "type": "CustomEvent" },
|
|
680
|
-
{ "name": "change", "type": "CustomEvent" }
|
|
681
|
-
]
|
|
686
|
+
"events": [{ "name": "input", "type": "CustomEvent" }]
|
|
682
687
|
}
|
|
683
688
|
},
|
|
684
689
|
{
|
|
@@ -706,7 +711,7 @@
|
|
|
706
711
|
},
|
|
707
712
|
{
|
|
708
713
|
"name": "leu-input",
|
|
709
|
-
"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
|
|
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",
|
|
710
715
|
"doc-url": "",
|
|
711
716
|
"attributes": [
|
|
712
717
|
{
|
|
@@ -716,12 +721,12 @@
|
|
|
716
721
|
},
|
|
717
722
|
{
|
|
718
723
|
"name": "required",
|
|
719
|
-
"description": "Marks the input element as required
|
|
724
|
+
"description": "Marks the input element as required",
|
|
720
725
|
"value": { "type": "boolean", "default": "false" }
|
|
721
726
|
},
|
|
722
727
|
{
|
|
723
728
|
"name": "clearable",
|
|
724
|
-
"description": "Adds a button to clear the input element
|
|
729
|
+
"description": "Adds a button to clear the input element",
|
|
725
730
|
"value": { "type": "boolean", "default": "false" }
|
|
726
731
|
},
|
|
727
732
|
{
|
|
@@ -732,21 +737,21 @@
|
|
|
732
737
|
{
|
|
733
738
|
"name": "name",
|
|
734
739
|
"description": "The name of the input element.",
|
|
735
|
-
"value": { "type": "string" }
|
|
740
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
736
741
|
},
|
|
737
742
|
{
|
|
738
743
|
"name": "error",
|
|
739
744
|
"description": "A custom error that is completely independent of the validity state. Useful for displaying server side errors.",
|
|
740
|
-
"value": { "type": "string" }
|
|
745
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
741
746
|
},
|
|
742
747
|
{
|
|
743
748
|
"name": "label",
|
|
744
|
-
"description": "The label of the input element
|
|
745
|
-
"value": { "type": "string" }
|
|
749
|
+
"description": "The label of the input element",
|
|
750
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
746
751
|
},
|
|
747
752
|
{
|
|
748
753
|
"name": "prefix",
|
|
749
|
-
"description": "A prefix that relates to the value of the input (e.g. CHF)
|
|
754
|
+
"description": "A prefix that relates to the value of the input (e.g. CHF)",
|
|
750
755
|
"value": { "type": "string" }
|
|
751
756
|
},
|
|
752
757
|
{
|
|
@@ -756,13 +761,16 @@
|
|
|
756
761
|
},
|
|
757
762
|
{
|
|
758
763
|
"name": "size",
|
|
759
|
-
"description": "The size of the input element
|
|
760
|
-
"value": {
|
|
764
|
+
"description": "The size of the input element",
|
|
765
|
+
"value": {
|
|
766
|
+
"type": "\"small\" | \"regular\"",
|
|
767
|
+
"default": "\"regular\""
|
|
768
|
+
}
|
|
761
769
|
},
|
|
762
770
|
{
|
|
763
771
|
"name": "icon",
|
|
764
|
-
"description": "The icon that is displayed at the end of the input element
|
|
765
|
-
"value": { "type": "
|
|
772
|
+
"description": "The icon that is displayed at the end of the input element",
|
|
773
|
+
"value": { "type": "IconPathName" }
|
|
766
774
|
},
|
|
767
775
|
{
|
|
768
776
|
"name": "pattern",
|
|
@@ -772,46 +780,42 @@
|
|
|
772
780
|
{
|
|
773
781
|
"name": "type",
|
|
774
782
|
"description": "The type of the input element.",
|
|
775
|
-
"value": { "type": "
|
|
783
|
+
"value": { "type": "InputType", "default": "\"text\"" }
|
|
776
784
|
},
|
|
777
785
|
{
|
|
778
786
|
"name": "min",
|
|
779
787
|
"description": "The minimum value of the input element.",
|
|
780
|
-
"value": { "type": "
|
|
788
|
+
"value": { "type": "number" }
|
|
781
789
|
},
|
|
782
790
|
{
|
|
783
791
|
"name": "max",
|
|
784
792
|
"description": "The maximum value of the input element.",
|
|
785
|
-
"value": { "type": "
|
|
793
|
+
"value": { "type": "number" }
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "step",
|
|
797
|
+
"description": "The step value of the input element.",
|
|
798
|
+
"value": { "type": "number" }
|
|
786
799
|
},
|
|
787
800
|
{
|
|
788
801
|
"name": "maxlength",
|
|
789
802
|
"description": "The maximum length of the input element.",
|
|
790
|
-
"value": { "type": "
|
|
803
|
+
"value": { "type": "number" }
|
|
791
804
|
},
|
|
792
805
|
{
|
|
793
806
|
"name": "minlength",
|
|
794
807
|
"description": "The minimum length of the input element.",
|
|
795
|
-
"value": { "type": "
|
|
808
|
+
"value": { "type": "number" }
|
|
796
809
|
},
|
|
797
810
|
{
|
|
798
811
|
"name": "validationMessages",
|
|
799
812
|
"description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
|
|
800
|
-
"value": { "type": "
|
|
813
|
+
"value": { "type": "Record<string, string>", "default": "{}" }
|
|
801
814
|
},
|
|
802
815
|
{
|
|
803
816
|
"name": "novalidate",
|
|
804
817
|
"description": "Disables the browser's validation.",
|
|
805
818
|
"value": { "type": "boolean", "default": "false" }
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"name": "step",
|
|
809
|
-
"description": "The step value of the input element.",
|
|
810
|
-
"value": { "type": "string" }
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"name": "_validity",
|
|
814
|
-
"value": { "type": "null", "default": "null" }
|
|
815
819
|
}
|
|
816
820
|
],
|
|
817
821
|
"events": [
|
|
@@ -828,7 +832,6 @@
|
|
|
828
832
|
],
|
|
829
833
|
"js": {
|
|
830
834
|
"properties": [
|
|
831
|
-
{ "name": "valueAsNumber" },
|
|
832
835
|
{
|
|
833
836
|
"name": "disabled",
|
|
834
837
|
"description": "Disables the input element.",
|
|
@@ -836,33 +839,12 @@
|
|
|
836
839
|
},
|
|
837
840
|
{
|
|
838
841
|
"name": "required",
|
|
839
|
-
"description": "Marks the input element as required
|
|
842
|
+
"description": "Marks the input element as required",
|
|
840
843
|
"type": "boolean"
|
|
841
844
|
},
|
|
842
845
|
{
|
|
843
846
|
"name": "clearable",
|
|
844
|
-
"description": "Adds a button to clear the input element
|
|
845
|
-
"type": "boolean"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
"name": "size",
|
|
849
|
-
"description": "The size of the input element.",
|
|
850
|
-
"type": "\"small\" | \"regular\""
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
"name": "type",
|
|
854
|
-
"description": "The type of the input element.",
|
|
855
|
-
"type": "string"
|
|
856
|
-
},
|
|
857
|
-
{ "name": "_validity", "type": "null" },
|
|
858
|
-
{
|
|
859
|
-
"name": "validationMessages",
|
|
860
|
-
"description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
|
|
861
|
-
"type": "object"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
"name": "novalidate",
|
|
865
|
-
"description": "Disables the browser's validation.",
|
|
847
|
+
"description": "Adds a button to clear the input element",
|
|
866
848
|
"type": "boolean"
|
|
867
849
|
},
|
|
868
850
|
{
|
|
@@ -875,24 +857,19 @@
|
|
|
875
857
|
"description": "The name of the input element.",
|
|
876
858
|
"type": "string"
|
|
877
859
|
},
|
|
878
|
-
{
|
|
879
|
-
"name": "label",
|
|
880
|
-
"description": "The label of the input element.",
|
|
881
|
-
"type": "string"
|
|
882
|
-
},
|
|
883
860
|
{
|
|
884
861
|
"name": "error",
|
|
885
862
|
"description": "A custom error that is completely independent of the validity state. Useful for displaying server side errors.",
|
|
886
863
|
"type": "string"
|
|
887
864
|
},
|
|
888
865
|
{
|
|
889
|
-
"name": "
|
|
890
|
-
"description": "The
|
|
866
|
+
"name": "label",
|
|
867
|
+
"description": "The label of the input element",
|
|
891
868
|
"type": "string"
|
|
892
869
|
},
|
|
893
870
|
{
|
|
894
871
|
"name": "prefix",
|
|
895
|
-
"description": "A prefix that relates to the value of the input (e.g. CHF)
|
|
872
|
+
"description": "A prefix that relates to the value of the input (e.g. CHF)",
|
|
896
873
|
"type": "string"
|
|
897
874
|
},
|
|
898
875
|
{
|
|
@@ -900,36 +877,63 @@
|
|
|
900
877
|
"description": "A suffix that relates to the value of the input (e.g. mm).",
|
|
901
878
|
"type": "string"
|
|
902
879
|
},
|
|
880
|
+
{
|
|
881
|
+
"name": "size",
|
|
882
|
+
"description": "The size of the input element",
|
|
883
|
+
"type": "\"small\" | \"regular\""
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "icon",
|
|
887
|
+
"description": "The icon that is displayed at the end of the input element",
|
|
888
|
+
"type": "IconPathName"
|
|
889
|
+
},
|
|
903
890
|
{
|
|
904
891
|
"name": "pattern",
|
|
905
892
|
"description": "A regular expression that the value is checked against.",
|
|
906
893
|
"type": "string"
|
|
907
894
|
},
|
|
895
|
+
{
|
|
896
|
+
"name": "type",
|
|
897
|
+
"description": "The type of the input element.",
|
|
898
|
+
"type": "InputType"
|
|
899
|
+
},
|
|
908
900
|
{
|
|
909
901
|
"name": "min",
|
|
910
902
|
"description": "The minimum value of the input element.",
|
|
911
|
-
"type": "
|
|
903
|
+
"type": "number"
|
|
912
904
|
},
|
|
913
905
|
{
|
|
914
906
|
"name": "max",
|
|
915
907
|
"description": "The maximum value of the input element.",
|
|
916
|
-
"type": "
|
|
908
|
+
"type": "number"
|
|
917
909
|
},
|
|
918
910
|
{
|
|
919
|
-
"name": "
|
|
920
|
-
"description": "The
|
|
921
|
-
"type": "
|
|
911
|
+
"name": "step",
|
|
912
|
+
"description": "The step value of the input element.",
|
|
913
|
+
"type": "number"
|
|
922
914
|
},
|
|
923
915
|
{
|
|
924
916
|
"name": "maxlength",
|
|
925
917
|
"description": "The maximum length of the input element.",
|
|
926
|
-
"type": "
|
|
918
|
+
"type": "number"
|
|
927
919
|
},
|
|
928
920
|
{
|
|
929
|
-
"name": "
|
|
930
|
-
"description": "The
|
|
931
|
-
"type": "
|
|
932
|
-
}
|
|
921
|
+
"name": "minlength",
|
|
922
|
+
"description": "The minimum length of the input element.",
|
|
923
|
+
"type": "number"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "validationMessages",
|
|
927
|
+
"description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
|
|
928
|
+
"type": "Record<string, string>"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "novalidate",
|
|
932
|
+
"description": "Disables the browser's validation.",
|
|
933
|
+
"type": "boolean"
|
|
934
|
+
},
|
|
935
|
+
{ "name": "_validity", "type": "ValidityState | null" },
|
|
936
|
+
{ "name": "valueAsNumber" }
|
|
933
937
|
],
|
|
934
938
|
"events": [
|
|
935
939
|
{
|
|
@@ -963,15 +967,14 @@
|
|
|
963
967
|
"name": "selects",
|
|
964
968
|
"description": "This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'.",
|
|
965
969
|
"type": "SelectsType"
|
|
966
|
-
}
|
|
967
|
-
{ "name": "value" }
|
|
970
|
+
}
|
|
968
971
|
],
|
|
969
972
|
"events": []
|
|
970
973
|
}
|
|
971
974
|
},
|
|
972
975
|
{
|
|
973
976
|
"name": "leu-menu-item",
|
|
974
|
-
"description": "\n---\n\n\n### **Methods:**\n - **getValue()
|
|
977
|
+
"description": "\n---\n\n\n### **Methods:**\n - **getValue()** - Returns the value of the item. If `value` is not set, it will return the inner text\n\n### **Slots:**\n - _default_ - The label of the menu item",
|
|
975
978
|
"doc-url": "",
|
|
976
979
|
"attributes": [
|
|
977
980
|
{
|
|
@@ -992,17 +995,17 @@
|
|
|
992
995
|
{
|
|
993
996
|
"name": "tabbable",
|
|
994
997
|
"description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
|
|
995
|
-
"value": { "type": "boolean"
|
|
998
|
+
"value": { "type": "boolean" }
|
|
996
999
|
},
|
|
997
1000
|
{
|
|
998
1001
|
"name": "href",
|
|
999
1002
|
"description": "The href of the underlying link",
|
|
1000
|
-
"value": { "type": "string"
|
|
1003
|
+
"value": { "type": "string" }
|
|
1001
1004
|
},
|
|
1002
1005
|
{
|
|
1003
1006
|
"name": "value",
|
|
1004
1007
|
"description": "The value of the item. It must not contain commas. See `getValue()`",
|
|
1005
|
-
"value": { "type": "string"
|
|
1008
|
+
"value": { "type": "string" }
|
|
1006
1009
|
},
|
|
1007
1010
|
{
|
|
1008
1011
|
"name": "componentRole",
|
|
@@ -1022,19 +1025,19 @@
|
|
|
1022
1025
|
"type": "boolean"
|
|
1023
1026
|
},
|
|
1024
1027
|
{
|
|
1025
|
-
"name": "
|
|
1026
|
-
"description": "
|
|
1028
|
+
"name": "multipleSelection",
|
|
1029
|
+
"description": "If the item is part of a multiple selection. Renders a checkmark before the label when active",
|
|
1027
1030
|
"type": "boolean"
|
|
1028
1031
|
},
|
|
1029
1032
|
{
|
|
1030
|
-
"name": "
|
|
1031
|
-
"description": "
|
|
1033
|
+
"name": "disabled",
|
|
1034
|
+
"description": "Disables the underlying button or link",
|
|
1032
1035
|
"type": "boolean"
|
|
1033
1036
|
},
|
|
1034
1037
|
{
|
|
1035
|
-
"name": "
|
|
1036
|
-
"description": "
|
|
1037
|
-
"type": "
|
|
1038
|
+
"name": "tabbable",
|
|
1039
|
+
"description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
|
|
1040
|
+
"type": "boolean"
|
|
1038
1041
|
},
|
|
1039
1042
|
{
|
|
1040
1043
|
"name": "href",
|
|
@@ -1042,9 +1045,9 @@
|
|
|
1042
1045
|
"type": "string"
|
|
1043
1046
|
},
|
|
1044
1047
|
{
|
|
1045
|
-
"name": "
|
|
1046
|
-
"description": "
|
|
1047
|
-
"type": "
|
|
1048
|
+
"name": "value",
|
|
1049
|
+
"description": "The value of the item. It must not contain commas. See `getValue()`",
|
|
1050
|
+
"type": "string"
|
|
1048
1051
|
},
|
|
1049
1052
|
{
|
|
1050
1053
|
"name": "componentRole",
|
|
@@ -1395,7 +1398,7 @@
|
|
|
1395
1398
|
},
|
|
1396
1399
|
{
|
|
1397
1400
|
"name": "leu-range",
|
|
1398
|
-
"description": "\n---\n\n\n### **Methods:**\n
|
|
1401
|
+
"description": "\n---\n\n\n### **Methods:**\n ",
|
|
1399
1402
|
"doc-url": "",
|
|
1400
1403
|
"attributes": [
|
|
1401
1404
|
{
|
|
@@ -1425,13 +1428,6 @@
|
|
|
1425
1428
|
"events": [],
|
|
1426
1429
|
"js": {
|
|
1427
1430
|
"properties": [
|
|
1428
|
-
{
|
|
1429
|
-
"name": "value",
|
|
1430
|
-
"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."
|
|
1431
|
-
},
|
|
1432
|
-
{ "name": "valueAsArray" },
|
|
1433
|
-
{ "name": "valueLow" },
|
|
1434
|
-
{ "name": "valueHigh" },
|
|
1435
1431
|
{ "name": "defaultValue", "type": "array" },
|
|
1436
1432
|
{ "name": "min", "type": "number" },
|
|
1437
1433
|
{ "name": "max", "type": "number" },
|
|
@@ -1439,7 +1435,14 @@
|
|
|
1439
1435
|
{ "name": "name", "type": "string" },
|
|
1440
1436
|
{ "name": "label", "type": "string" },
|
|
1441
1437
|
{ "name": "disabled", "type": "boolean" },
|
|
1442
|
-
{ "name": "multiple", "type": "boolean" }
|
|
1438
|
+
{ "name": "multiple", "type": "boolean" },
|
|
1439
|
+
{
|
|
1440
|
+
"name": "value",
|
|
1441
|
+
"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."
|
|
1442
|
+
},
|
|
1443
|
+
{ "name": "valueAsArray" },
|
|
1444
|
+
{ "name": "valueLow" },
|
|
1445
|
+
{ "name": "valueHigh" }
|
|
1443
1446
|
],
|
|
1444
1447
|
"events": []
|
|
1445
1448
|
}
|
|
@@ -1448,17 +1451,9 @@
|
|
|
1448
1451
|
"name": "leu-scroll-top",
|
|
1449
1452
|
"description": "\n---\n",
|
|
1450
1453
|
"doc-url": "",
|
|
1451
|
-
"attributes": [
|
|
1452
|
-
{ "name": "_showButton", "value": { "type": "string" } }
|
|
1453
|
-
],
|
|
1454
|
+
"attributes": [],
|
|
1454
1455
|
"events": [],
|
|
1455
|
-
"js": {
|
|
1456
|
-
"properties": [
|
|
1457
|
-
{ "name": "scroll" },
|
|
1458
|
-
{ "name": "_showButton", "type": "boolean" }
|
|
1459
|
-
],
|
|
1460
|
-
"events": []
|
|
1461
|
-
}
|
|
1456
|
+
"js": { "properties": [{ "name": "scroll" }], "events": [] }
|
|
1462
1457
|
},
|
|
1463
1458
|
{
|
|
1464
1459
|
"name": "leu-select",
|