@statistikzh/leu 0.22.1 → 0.23.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -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.js +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-DfsEye-A.js → LeuElement-CWseJvWv.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.js +1 -1
- 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/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/index.js +1 -1
- 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.js +1 -1
- 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 +87 -72
- package/dist/vue/index.d.ts +89 -82
- package/dist/web-types.json +193 -163
- package/package.json +1 -1
- 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/web-test-runner.config.mjs +10 -0
package/dist/leu-menu.js
CHANGED
|
@@ -2,7 +2,7 @@ import { LeuMenu } from './Menu.js';
|
|
|
2
2
|
import './_tslib-CNEFicEt.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/decorators.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-CWseJvWv.js';
|
|
6
6
|
import './MenuItem.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|
package/dist/leu-message.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CWseJvWv.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/class-map.js';
|
|
9
9
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.js
CHANGED
package/dist/leu-progress-bar.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CWseJvWv.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/if-defined.js';
|
|
9
9
|
import './Icon.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CWseJvWv.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -2,7 +2,7 @@ import { LeuTable } from './Table.js';
|
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-CWseJvWv.js';
|
|
6
6
|
import 'lit/directive.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-tag.js
CHANGED
|
@@ -109,6 +109,34 @@
|
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"name": "leu-chart-wrapper",
|
|
114
|
+
"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.",
|
|
115
|
+
"attributes": [
|
|
116
|
+
{
|
|
117
|
+
"name": "pending",
|
|
118
|
+
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
119
|
+
"values": []
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"references": [
|
|
123
|
+
{
|
|
124
|
+
"name": "Documentation",
|
|
125
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "leu-button-group",
|
|
131
|
+
"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",
|
|
132
|
+
"attributes": [],
|
|
133
|
+
"references": [
|
|
134
|
+
{
|
|
135
|
+
"name": "Documentation",
|
|
136
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
112
140
|
{
|
|
113
141
|
"name": "leu-checkbox",
|
|
114
142
|
"description": "\n---\n",
|
|
@@ -147,34 +175,6 @@
|
|
|
147
175
|
}
|
|
148
176
|
]
|
|
149
177
|
},
|
|
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
|
-
{
|
|
162
|
-
"name": "leu-chart-wrapper",
|
|
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.",
|
|
164
|
-
"attributes": [
|
|
165
|
-
{
|
|
166
|
-
"name": "pending",
|
|
167
|
-
"description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
|
|
168
|
-
"values": []
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"references": [
|
|
172
|
-
{
|
|
173
|
-
"name": "Documentation",
|
|
174
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
178
|
{
|
|
179
179
|
"name": "leu-dropdown",
|
|
180
180
|
"description": "\n---\n",
|
|
@@ -205,44 +205,6 @@
|
|
|
205
205
|
}
|
|
206
206
|
]
|
|
207
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
208
|
{
|
|
247
209
|
"name": "leu-chip-group",
|
|
248
210
|
"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)_",
|
|
@@ -341,19 +303,40 @@
|
|
|
341
303
|
]
|
|
342
304
|
},
|
|
343
305
|
{
|
|
344
|
-
"name": "leu-
|
|
345
|
-
"description": "
|
|
306
|
+
"name": "leu-file-input",
|
|
307
|
+
"description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
|
|
346
308
|
"attributes": [
|
|
309
|
+
{ "name": "label", "values": [] },
|
|
347
310
|
{
|
|
348
|
-
"name": "
|
|
349
|
-
"description": "
|
|
350
|
-
"values": [
|
|
311
|
+
"name": "accept",
|
|
312
|
+
"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).",
|
|
313
|
+
"values": []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "disabled",
|
|
317
|
+
"description": "Whether the file input is disabled.",
|
|
318
|
+
"values": []
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "multiple",
|
|
322
|
+
"description": "Whether the file input allows multiple files.",
|
|
323
|
+
"values": []
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "required",
|
|
327
|
+
"description": "Whether the file input is required.",
|
|
328
|
+
"values": []
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "variant",
|
|
332
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
333
|
+
"values": [{ "name": "filled" }, { "name": "transparent" }]
|
|
351
334
|
}
|
|
352
335
|
],
|
|
353
336
|
"references": [
|
|
354
337
|
{
|
|
355
338
|
"name": "Documentation",
|
|
356
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/
|
|
339
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/file-input"
|
|
357
340
|
}
|
|
358
341
|
]
|
|
359
342
|
},
|
|
@@ -469,6 +452,23 @@
|
|
|
469
452
|
}
|
|
470
453
|
]
|
|
471
454
|
},
|
|
455
|
+
{
|
|
456
|
+
"name": "leu-icon",
|
|
457
|
+
"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)_",
|
|
458
|
+
"attributes": [
|
|
459
|
+
{
|
|
460
|
+
"name": "name",
|
|
461
|
+
"description": "The name of the icon to display.",
|
|
462
|
+
"values": [{ "name": "IconPathName" }, { "name": "\"\"" }]
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"references": [
|
|
466
|
+
{
|
|
467
|
+
"name": "Documentation",
|
|
468
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/icon"
|
|
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": [
|
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 { LeuChartWrapper } from "../ChartWrapper.js";
|
|
6
|
+
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
6
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
7
|
-
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
8
|
-
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
9
9
|
import type { LeuDropdown } from "../Dropdown.js";
|
|
10
10
|
import type { LeuDialog } from "../Dialog.js";
|
|
11
|
-
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
12
11
|
import type { LeuChipGroup } from "../ChipGroup.js";
|
|
13
12
|
import type { LeuChipLink } from "../ChipLink.js";
|
|
14
13
|
import type { LeuChipRemovable } from "../ChipRemovable.js";
|
|
15
14
|
import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
|
|
16
|
-
import type {
|
|
15
|
+
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
17
16
|
import type { LeuInput, CustomEvent } from "../Input.js";
|
|
17
|
+
import type { LeuIcon } from "../Icon.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,21 @@ If it is set, the icon will either show an expanded or collapsed state. */
|
|
|
74
74
|
fluid?: LeuButton["fluid"];
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
type LeuChartWrapperProps = {
|
|
78
|
+
/** Whether the chart is currently loading or not.
|
|
79
|
+
When set to `true`, a spinner will be shown in the chart container. */
|
|
80
|
+
pending?: LeuChartWrapper["pending"];
|
|
81
|
+
/** */
|
|
82
|
+
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
type LeuButtonGroupProps = {
|
|
86
|
+
/** The value of the currently selected (active) button */
|
|
87
|
+
value?: LeuButtonGroup["value"];
|
|
88
|
+
/** When the value of the group changes by clicking a button */
|
|
89
|
+
oninput?: (e: CustomEvent<never>) => void;
|
|
90
|
+
};
|
|
91
|
+
|
|
77
92
|
type LeuCheckboxProps = {
|
|
78
93
|
/** */
|
|
79
94
|
checked?: LeuCheckbox["checked"];
|
|
@@ -94,21 +109,6 @@ type LeuCheckboxGroupProps = {
|
|
|
94
109
|
value?: LeuCheckboxGroup["value"];
|
|
95
110
|
};
|
|
96
111
|
|
|
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
|
-
type LeuChartWrapperProps = {
|
|
105
|
-
/** Whether the chart is currently loading or not.
|
|
106
|
-
When set to `true`, a spinner will be shown in the chart container. */
|
|
107
|
-
pending?: LeuChartWrapper["pending"];
|
|
108
|
-
/** */
|
|
109
|
-
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
110
|
-
};
|
|
111
|
-
|
|
112
112
|
type LeuDropdownProps = {
|
|
113
113
|
/** */
|
|
114
114
|
label?: LeuDropdown["label"];
|
|
@@ -127,33 +127,6 @@ type LeuDialogProps = {
|
|
|
127
127
|
open?: LeuDialog["open"];
|
|
128
128
|
};
|
|
129
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
130
|
type LeuChipGroupProps = {
|
|
158
131
|
/** */
|
|
159
132
|
inverted?: LeuChipGroup["inverted"];
|
|
@@ -203,9 +176,31 @@ type LeuChipSelectableProps = {
|
|
|
203
176
|
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
204
177
|
};
|
|
205
178
|
|
|
206
|
-
type
|
|
207
|
-
/**
|
|
208
|
-
|
|
179
|
+
type LeuFileInputProps = {
|
|
180
|
+
/** */
|
|
181
|
+
label?: LeuFileInput["label"];
|
|
182
|
+
/** 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). */
|
|
183
|
+
accept?: LeuFileInput["accept"];
|
|
184
|
+
/** Whether the file input is disabled. */
|
|
185
|
+
disabled?: LeuFileInput["disabled"];
|
|
186
|
+
/** Whether the file input allows multiple files. */
|
|
187
|
+
multiple?: LeuFileInput["multiple"];
|
|
188
|
+
/** Whether the file input is required. */
|
|
189
|
+
required?: LeuFileInput["required"];
|
|
190
|
+
/** The variant of the file list item. `filled` renders a gray background. */
|
|
191
|
+
variant?: LeuFileInput["variant"];
|
|
192
|
+
/** */
|
|
193
|
+
files?: LeuFileInput["files"];
|
|
194
|
+
/** */
|
|
195
|
+
input?: LeuFileInput["input"];
|
|
196
|
+
/** */
|
|
197
|
+
form?: LeuFileInput["form"];
|
|
198
|
+
/** */
|
|
199
|
+
name?: LeuFileInput["name"];
|
|
200
|
+
/** */
|
|
201
|
+
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
202
|
+
/** */
|
|
203
|
+
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
209
204
|
};
|
|
210
205
|
|
|
211
206
|
type LeuInputProps = {
|
|
@@ -259,6 +254,11 @@ type LeuInputProps = {
|
|
|
259
254
|
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
260
255
|
};
|
|
261
256
|
|
|
257
|
+
type LeuIconProps = {
|
|
258
|
+
/** The name of the icon to display. */
|
|
259
|
+
name?: LeuIcon["name"];
|
|
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
|
/** */
|
|
@@ -498,21 +505,18 @@ export type CustomElements = {
|
|
|
498
505
|
"leu-button": DefineComponent<LeuButtonProps>;
|
|
499
506
|
|
|
500
507
|
/**
|
|
501
|
-
*
|
|
502
|
-
* ---
|
|
503
|
-
*
|
|
504
|
-
*/
|
|
505
|
-
"leu-checkbox": DefineComponent<LeuCheckboxProps>;
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
508
|
+
* A wrapper element for charts.
|
|
509
509
|
* ---
|
|
510
510
|
*
|
|
511
511
|
*
|
|
512
512
|
* ### **Slots:**
|
|
513
|
-
* -
|
|
513
|
+
* - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
|
|
514
|
+
* - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
|
|
515
|
+
* - **chart** - The actual chart
|
|
516
|
+
* - **caption** - A caption for the chart, e.g. a source or explanation of the data.
|
|
517
|
+
* - **download** - A download button or dropdown to export the chart in different formats.
|
|
514
518
|
*/
|
|
515
|
-
"leu-
|
|
519
|
+
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
516
520
|
|
|
517
521
|
/**
|
|
518
522
|
* A radio input-like button group component.
|
|
@@ -529,43 +533,35 @@ export type CustomElements = {
|
|
|
529
533
|
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
530
534
|
|
|
531
535
|
/**
|
|
532
|
-
* A wrapper element for charts.
|
|
533
|
-
* ---
|
|
534
536
|
*
|
|
537
|
+
* ---
|
|
535
538
|
*
|
|
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
539
|
*/
|
|
543
|
-
"leu-
|
|
540
|
+
"leu-checkbox": DefineComponent<LeuCheckboxProps>;
|
|
544
541
|
|
|
545
542
|
/**
|
|
546
543
|
*
|
|
547
544
|
* ---
|
|
548
545
|
*
|
|
546
|
+
*
|
|
547
|
+
* ### **Slots:**
|
|
548
|
+
* - _default_ - Place the checkboxes inside the default slot.
|
|
549
549
|
*/
|
|
550
|
-
"leu-
|
|
550
|
+
"leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
|
|
551
551
|
|
|
552
552
|
/**
|
|
553
553
|
*
|
|
554
554
|
* ---
|
|
555
555
|
*
|
|
556
556
|
*/
|
|
557
|
-
"leu-
|
|
557
|
+
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
*
|
|
561
561
|
* ---
|
|
562
562
|
*
|
|
563
|
-
*
|
|
564
|
-
* ### **Events:**
|
|
565
|
-
* - **input**
|
|
566
|
-
* - **change**
|
|
567
563
|
*/
|
|
568
|
-
"leu-
|
|
564
|
+
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
569
565
|
|
|
570
566
|
/**
|
|
571
567
|
*
|
|
@@ -623,17 +619,15 @@ export type CustomElements = {
|
|
|
623
619
|
"leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
|
|
624
620
|
|
|
625
621
|
/**
|
|
626
|
-
*
|
|
627
|
-
* The `fill` of the icon is set to `currentColor` and
|
|
628
|
-
* can be overriden by setting the css `color` property.
|
|
629
|
-
* If the icon name is not found, a placeholder will be displayed.
|
|
622
|
+
*
|
|
630
623
|
* ---
|
|
631
624
|
*
|
|
632
625
|
*
|
|
633
|
-
* ### **
|
|
634
|
-
* -
|
|
626
|
+
* ### **Events:**
|
|
627
|
+
* - **input**
|
|
628
|
+
* - **change**
|
|
635
629
|
*/
|
|
636
|
-
"leu-
|
|
630
|
+
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
637
631
|
|
|
638
632
|
/**
|
|
639
633
|
* A text input element.
|
|
@@ -658,6 +652,19 @@ export type CustomElements = {
|
|
|
658
652
|
*/
|
|
659
653
|
"leu-input": DefineComponent<LeuInputProps>;
|
|
660
654
|
|
|
655
|
+
/**
|
|
656
|
+
* A component to render all defined zhWeb icons.
|
|
657
|
+
* The `fill` of the icon is set to `currentColor` and
|
|
658
|
+
* can be overriden by setting the css `color` property.
|
|
659
|
+
* If the icon name is not found, a placeholder will be displayed.
|
|
660
|
+
* ---
|
|
661
|
+
*
|
|
662
|
+
*
|
|
663
|
+
* ### **CSS Properties:**
|
|
664
|
+
* - **--leu-icon-size** - The size of the icon. _(default: undefined)_
|
|
665
|
+
*/
|
|
666
|
+
"leu-icon": DefineComponent<LeuIconProps>;
|
|
667
|
+
|
|
661
668
|
/**
|
|
662
669
|
*
|
|
663
670
|
* ---
|