@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/vue/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { DefineComponent } from "vue";
|
|
2
2
|
|
|
3
3
|
import type { LeuAccordion } from "../Accordion.js";
|
|
4
|
-
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
4
|
import type { LeuButton } from "../Button.js";
|
|
6
|
-
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
7
5
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
8
6
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
7
|
+
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
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";
|
|
9
12
|
import type { LeuChipGroup } from "../ChipGroup.js";
|
|
10
13
|
import type { LeuChipLink } from "../ChipLink.js";
|
|
11
14
|
import type { LeuChipRemovable } from "../ChipRemovable.js";
|
|
12
15
|
import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
|
|
13
|
-
import type { LeuDialog } from "../Dialog.js";
|
|
14
|
-
import type { LeuDropdown } from "../Dropdown.js";
|
|
15
|
-
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
16
16
|
import type { LeuIcon } from "../Icon.js";
|
|
17
17
|
import type { LeuInput, CustomEvent } from "../Input.js";
|
|
18
18
|
import type { LeuMenu } from "../Menu.js";
|
|
@@ -43,13 +43,6 @@ type LeuAccordionProps = {
|
|
|
43
43
|
label?: LeuAccordion["label"];
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
type LeuButtonGroupProps = {
|
|
47
|
-
/** The value of the currently selected (active) button */
|
|
48
|
-
value?: LeuButtonGroup["value"];
|
|
49
|
-
/** When the value of the group changes by clicking a button */
|
|
50
|
-
oninput?: (e: CustomEvent<never>) => void;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
46
|
type LeuButtonProps = {
|
|
54
47
|
/** `aria-label` of the underlying button elements.
|
|
55
48
|
Use it to provide a label when only an icon is visible. */
|
|
@@ -81,14 +74,6 @@ If it is set, the icon will either show an expanded or collapsed state. */
|
|
|
81
74
|
fluid?: LeuButton["fluid"];
|
|
82
75
|
};
|
|
83
76
|
|
|
84
|
-
type LeuChartWrapperProps = {
|
|
85
|
-
/** Whether the chart is currently loading or not.
|
|
86
|
-
When set to `true`, a spinner will be shown in the chart container. */
|
|
87
|
-
pending?: LeuChartWrapper["pending"];
|
|
88
|
-
/** */
|
|
89
|
-
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
90
|
-
};
|
|
91
|
-
|
|
92
77
|
type LeuCheckboxProps = {
|
|
93
78
|
/** */
|
|
94
79
|
checked?: LeuCheckbox["checked"];
|
|
@@ -109,53 +94,28 @@ type LeuCheckboxGroupProps = {
|
|
|
109
94
|
value?: LeuCheckboxGroup["value"];
|
|
110
95
|
};
|
|
111
96
|
|
|
112
|
-
type
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
/** */
|
|
118
|
-
"heading-level"?: LeuChipGroup["headingLevel"];
|
|
119
|
-
/** */
|
|
120
|
-
label?: LeuChipGroup["label"];
|
|
121
|
-
/** Checks the items with the given values.
|
|
122
|
-
If the selectionMode is single, only the first item with the given value is checked. */
|
|
123
|
-
value?: LeuChipGroup["value"];
|
|
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;
|
|
124
102
|
};
|
|
125
103
|
|
|
126
|
-
type
|
|
127
|
-
/**
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
href?: LeuChipLink["href"];
|
|
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"];
|
|
131
108
|
/** */
|
|
132
|
-
|
|
109
|
+
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
133
110
|
};
|
|
134
111
|
|
|
135
|
-
type
|
|
136
|
-
/** The value of the chip. */
|
|
137
|
-
value?: LeuChipRemovable["value"];
|
|
112
|
+
type LeuDropdownProps = {
|
|
138
113
|
/** */
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/** Dispatched when the user clicks on the chip */
|
|
142
|
-
onremove?: (e: CustomEvent<never>) => void;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
type LeuChipSelectableProps = {
|
|
146
|
-
/** The size of the chip. Not supported for radio variant. */
|
|
147
|
-
size?: LeuChipSelectable["size"];
|
|
148
|
-
/** `toggle` or `radio`. Determines if only one or multiple chips can be selected. */
|
|
149
|
-
variant?: LeuChipSelectable["variant"];
|
|
150
|
-
/** Whether the chip is selected. */
|
|
151
|
-
checked?: LeuChipSelectable["checked"];
|
|
152
|
-
/** The value of the chip. */
|
|
153
|
-
value?: LeuChipSelectable["value"];
|
|
114
|
+
label?: LeuDropdown["label"];
|
|
154
115
|
/** */
|
|
155
|
-
|
|
156
|
-
|
|
116
|
+
expanded?: LeuDropdown["expanded"];
|
|
157
117
|
/** */
|
|
158
|
-
|
|
118
|
+
inverted?: LeuDropdown["inverted"];
|
|
159
119
|
};
|
|
160
120
|
|
|
161
121
|
type LeuDialogProps = {
|
|
@@ -165,28 +125,6 @@ type LeuDialogProps = {
|
|
|
165
125
|
sublabel?: LeuDialog["sublabel"];
|
|
166
126
|
/** */
|
|
167
127
|
open?: LeuDialog["open"];
|
|
168
|
-
/** */
|
|
169
|
-
_dialogRef?: LeuDialog["_dialogRef"];
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
type LeuDropdownProps = {
|
|
173
|
-
/** */
|
|
174
|
-
label?: LeuDropdown["label"];
|
|
175
|
-
/** */
|
|
176
|
-
expanded?: LeuDropdown["expanded"];
|
|
177
|
-
/** */
|
|
178
|
-
inverted?: LeuDropdown["inverted"];
|
|
179
|
-
/** */
|
|
180
|
-
hasSlotController?: LeuDropdown["hasSlotController"];
|
|
181
|
-
/** */
|
|
182
|
-
_documentClickHandler?: LeuDropdown["_documentClickHandler"];
|
|
183
|
-
/** */
|
|
184
|
-
_menuItemClickHandler?: LeuDropdown["_menuItemClickHandler"];
|
|
185
|
-
/** Close the dropdown when the user presses the Escape or the Tab key.
|
|
186
|
-
Navigating the menu with the arrow keys is handled by the menu itself. */
|
|
187
|
-
_keyDownMenuHandler?: LeuDropdown["_keyDownMenuHandler"];
|
|
188
|
-
/** */
|
|
189
|
-
_toggleRef?: LeuDropdown["_toggleRef"];
|
|
190
128
|
};
|
|
191
129
|
|
|
192
130
|
type LeuFileInputProps = {
|
|
@@ -216,6 +154,55 @@ type LeuFileInputProps = {
|
|
|
216
154
|
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
217
155
|
};
|
|
218
156
|
|
|
157
|
+
type LeuChipGroupProps = {
|
|
158
|
+
/** */
|
|
159
|
+
inverted?: LeuChipGroup["inverted"];
|
|
160
|
+
/** */
|
|
161
|
+
"selection-mode"?: LeuChipGroup["selectionMode"];
|
|
162
|
+
/** */
|
|
163
|
+
"heading-level"?: LeuChipGroup["headingLevel"];
|
|
164
|
+
/** */
|
|
165
|
+
label?: LeuChipGroup["label"];
|
|
166
|
+
/** Checks the items with the given values.
|
|
167
|
+
If the selectionMode is single, only the first item with the given value is checked. */
|
|
168
|
+
value?: LeuChipGroup["value"];
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
type LeuChipLinkProps = {
|
|
172
|
+
/** The size of the chip */
|
|
173
|
+
size?: LeuChipLink["size"];
|
|
174
|
+
/** The URL that the chip links to */
|
|
175
|
+
href?: LeuChipLink["href"];
|
|
176
|
+
/** */
|
|
177
|
+
inverted?: LeuChipLink["inverted"];
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
type LeuChipRemovableProps = {
|
|
181
|
+
/** The value of the chip. */
|
|
182
|
+
value?: LeuChipRemovable["value"];
|
|
183
|
+
/** */
|
|
184
|
+
inverted?: LeuChipRemovable["inverted"];
|
|
185
|
+
|
|
186
|
+
/** Dispatched when the user clicks on the chip */
|
|
187
|
+
onremove?: (e: CustomEvent<never>) => void;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
type LeuChipSelectableProps = {
|
|
191
|
+
/** The size of the chip. Has no effect when variant is "radio" */
|
|
192
|
+
size?: LeuChipSelectable["size"];
|
|
193
|
+
/** The variant of the chip. Determines if only one or multiple chips can be selected. */
|
|
194
|
+
variant?: LeuChipSelectable["variant"];
|
|
195
|
+
/** Whether the chip is selected */
|
|
196
|
+
checked?: LeuChipSelectable["checked"];
|
|
197
|
+
/** The value of the chip */
|
|
198
|
+
value?: LeuChipSelectable["value"];
|
|
199
|
+
/** */
|
|
200
|
+
inverted?: LeuChipSelectable["inverted"];
|
|
201
|
+
|
|
202
|
+
/** */
|
|
203
|
+
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
204
|
+
};
|
|
205
|
+
|
|
219
206
|
type LeuIconProps = {
|
|
220
207
|
/** The name of the icon to display. */
|
|
221
208
|
name?: LeuIcon["name"];
|
|
@@ -224,9 +211,9 @@ type LeuIconProps = {
|
|
|
224
211
|
type LeuInputProps = {
|
|
225
212
|
/** Disables the input element. */
|
|
226
213
|
disabled?: LeuInput["disabled"];
|
|
227
|
-
/** Marks the input element as required
|
|
214
|
+
/** Marks the input element as required */
|
|
228
215
|
required?: LeuInput["required"];
|
|
229
|
-
/** Adds a button to clear the input element
|
|
216
|
+
/** Adds a button to clear the input element */
|
|
230
217
|
clearable?: LeuInput["clearable"];
|
|
231
218
|
/** The value of the input element. */
|
|
232
219
|
value?: LeuInput["value"];
|
|
@@ -234,15 +221,15 @@ type LeuInputProps = {
|
|
|
234
221
|
name?: LeuInput["name"];
|
|
235
222
|
/** A custom error that is completely independent of the validity state. Useful for displaying server side errors. */
|
|
236
223
|
error?: LeuInput["error"];
|
|
237
|
-
/** The label of the input element
|
|
224
|
+
/** The label of the input element */
|
|
238
225
|
label?: LeuInput["label"];
|
|
239
|
-
/** A prefix that relates to the value of the input (e.g. CHF)
|
|
226
|
+
/** A prefix that relates to the value of the input (e.g. CHF) */
|
|
240
227
|
prefix?: LeuInput["prefix"];
|
|
241
228
|
/** A suffix that relates to the value of the input (e.g. mm). */
|
|
242
229
|
suffix?: LeuInput["suffix"];
|
|
243
|
-
/** The size of the input element
|
|
230
|
+
/** The size of the input element */
|
|
244
231
|
size?: LeuInput["size"];
|
|
245
|
-
/** The icon that is displayed at the end of the input element
|
|
232
|
+
/** The icon that is displayed at the end of the input element */
|
|
246
233
|
icon?: LeuInput["icon"];
|
|
247
234
|
/** A regular expression that the value is checked against. */
|
|
248
235
|
pattern?: LeuInput["pattern"];
|
|
@@ -252,6 +239,8 @@ type LeuInputProps = {
|
|
|
252
239
|
min?: LeuInput["min"];
|
|
253
240
|
/** The maximum value of the input element. */
|
|
254
241
|
max?: LeuInput["max"];
|
|
242
|
+
/** The step value of the input element. */
|
|
243
|
+
step?: LeuInput["step"];
|
|
255
244
|
/** The maximum length of the input element. */
|
|
256
245
|
maxlength?: LeuInput["maxlength"];
|
|
257
246
|
/** The minimum length of the input element. */
|
|
@@ -260,8 +249,6 @@ type LeuInputProps = {
|
|
|
260
249
|
validationMessages?: LeuInput["validationMessages"];
|
|
261
250
|
/** Disables the browser's validation. */
|
|
262
251
|
novalidate?: LeuInput["novalidate"];
|
|
263
|
-
/** The step value of the input element. */
|
|
264
|
-
step?: LeuInput["step"];
|
|
265
252
|
/** */
|
|
266
253
|
_validity?: LeuInput["_validity"];
|
|
267
254
|
/** */
|
|
@@ -275,8 +262,6 @@ type LeuInputProps = {
|
|
|
275
262
|
type LeuMenuProps = {
|
|
276
263
|
/** This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'. */
|
|
277
264
|
selects?: LeuMenu["selects"];
|
|
278
|
-
/** */
|
|
279
|
-
value?: LeuMenu["value"];
|
|
280
265
|
};
|
|
281
266
|
|
|
282
267
|
type LeuMenuItemProps = {
|
|
@@ -414,8 +399,6 @@ Otherwise it has to be a string. */
|
|
|
414
399
|
};
|
|
415
400
|
|
|
416
401
|
type LeuScrollTopProps = {
|
|
417
|
-
/** */
|
|
418
|
-
_showButton?: LeuScrollTop["_showButton"];
|
|
419
402
|
/** */
|
|
420
403
|
scroll?: LeuScrollTop["scroll"];
|
|
421
404
|
};
|
|
@@ -503,18 +486,23 @@ export type CustomElements = {
|
|
|
503
486
|
"leu-accordion": DefineComponent<LeuAccordionProps>;
|
|
504
487
|
|
|
505
488
|
/**
|
|
506
|
-
* A radio input-like button group component.
|
|
507
|
-
* It allows only one button to be active at a time.
|
|
508
|
-
* ---
|
|
509
489
|
*
|
|
490
|
+
* ---
|
|
510
491
|
*
|
|
511
|
-
* ### **Events:**
|
|
512
|
-
* - **input** - When the value of the group changes by clicking a button
|
|
513
492
|
*
|
|
514
493
|
* ### **Slots:**
|
|
515
|
-
* -
|
|
494
|
+
* - **before** - The icon to display before the label
|
|
495
|
+
* - **after** - The icon to display after the label
|
|
496
|
+
* - _default_ - The label of the button or the icon if no label is set
|
|
516
497
|
*/
|
|
517
|
-
"leu-button
|
|
498
|
+
"leu-button": DefineComponent<LeuButtonProps>;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* ---
|
|
503
|
+
*
|
|
504
|
+
*/
|
|
505
|
+
"leu-checkbox": DefineComponent<LeuCheckboxProps>;
|
|
518
506
|
|
|
519
507
|
/**
|
|
520
508
|
*
|
|
@@ -522,11 +510,23 @@ export type CustomElements = {
|
|
|
522
510
|
*
|
|
523
511
|
*
|
|
524
512
|
* ### **Slots:**
|
|
525
|
-
* -
|
|
526
|
-
* - **after** - The icon to display after the label
|
|
527
|
-
* - _default_ - The label of the button or the icon if no label is set
|
|
513
|
+
* - _default_ - Place the checkboxes inside the default slot.
|
|
528
514
|
*/
|
|
529
|
-
"leu-
|
|
515
|
+
"leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* A radio input-like button group component.
|
|
519
|
+
* It allows only one button to be active at a time.
|
|
520
|
+
* ---
|
|
521
|
+
*
|
|
522
|
+
*
|
|
523
|
+
* ### **Events:**
|
|
524
|
+
* - **input** - When the value of the group changes by clicking a button
|
|
525
|
+
*
|
|
526
|
+
* ### **Slots:**
|
|
527
|
+
* - _default_ - Slot for the buttons
|
|
528
|
+
*/
|
|
529
|
+
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
532
|
* A wrapper element for charts.
|
|
@@ -547,17 +547,25 @@ export type CustomElements = {
|
|
|
547
547
|
* ---
|
|
548
548
|
*
|
|
549
549
|
*/
|
|
550
|
-
"leu-
|
|
550
|
+
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
551
551
|
|
|
552
552
|
/**
|
|
553
553
|
*
|
|
554
554
|
* ---
|
|
555
555
|
*
|
|
556
|
+
*/
|
|
557
|
+
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
558
|
+
|
|
559
|
+
/**
|
|
556
560
|
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
561
|
+
* ---
|
|
562
|
+
*
|
|
563
|
+
*
|
|
564
|
+
* ### **Events:**
|
|
565
|
+
* - **input**
|
|
566
|
+
* - **change**
|
|
559
567
|
*/
|
|
560
|
-
"leu-
|
|
568
|
+
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
561
569
|
|
|
562
570
|
/**
|
|
563
571
|
*
|
|
@@ -591,7 +599,7 @@ export type CustomElements = {
|
|
|
591
599
|
* - **remove** - Dispatched when the user clicks on the chip
|
|
592
600
|
*
|
|
593
601
|
* ### **Methods:**
|
|
594
|
-
* - **getValue()
|
|
602
|
+
* - **getValue()** - Returns the value of the chip. If `value` is not set, it will return the text content
|
|
595
603
|
*
|
|
596
604
|
* ### **Slots:**
|
|
597
605
|
* - _default_ - The content of the chip
|
|
@@ -614,31 +622,6 @@ export type CustomElements = {
|
|
|
614
622
|
*/
|
|
615
623
|
"leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
|
|
616
624
|
|
|
617
|
-
/**
|
|
618
|
-
*
|
|
619
|
-
* ---
|
|
620
|
-
*
|
|
621
|
-
*/
|
|
622
|
-
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
*
|
|
626
|
-
* ---
|
|
627
|
-
*
|
|
628
|
-
*/
|
|
629
|
-
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
*
|
|
633
|
-
* ---
|
|
634
|
-
*
|
|
635
|
-
*
|
|
636
|
-
* ### **Events:**
|
|
637
|
-
* - **input**
|
|
638
|
-
* - **change**
|
|
639
|
-
*/
|
|
640
|
-
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
641
|
-
|
|
642
625
|
/**
|
|
643
626
|
* A component to render all defined zhWeb icons.
|
|
644
627
|
* The `fill` of the icon is set to `currentColor` and
|
|
@@ -662,15 +645,16 @@ export type CustomElements = {
|
|
|
662
645
|
* - **change** - Dispatched when the value of the input element changes and the input element loses focus.
|
|
663
646
|
*
|
|
664
647
|
* ### **Methods:**
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
* - **checkValidity()
|
|
673
|
-
*
|
|
648
|
+
*
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
*
|
|
652
|
+
*
|
|
653
|
+
*
|
|
654
|
+
*
|
|
655
|
+
* - **checkValidity()** - Check input validation
|
|
656
|
+
*
|
|
657
|
+
*
|
|
674
658
|
*/
|
|
675
659
|
"leu-input": DefineComponent<LeuInputProps>;
|
|
676
660
|
|
|
@@ -687,7 +671,7 @@ export type CustomElements = {
|
|
|
687
671
|
*
|
|
688
672
|
*
|
|
689
673
|
* ### **Methods:**
|
|
690
|
-
* - **getValue()
|
|
674
|
+
* - **getValue()** - Returns the value of the item. If `value` is not set, it will return the inner text
|
|
691
675
|
*
|
|
692
676
|
* ### **Slots:**
|
|
693
677
|
* - _default_ - The label of the menu item
|
|
@@ -770,8 +754,7 @@ export type CustomElements = {
|
|
|
770
754
|
*
|
|
771
755
|
*
|
|
772
756
|
* ### **Methods:**
|
|
773
|
-
*
|
|
774
|
-
* the value of the other input element. Swap the values if this is the case.
|
|
757
|
+
*
|
|
775
758
|
*/
|
|
776
759
|
"leu-range": DefineComponent<LeuRangeProps>;
|
|
777
760
|
|