@statistikzh/leu 0.22.0 → 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/.github/workflows/release-please.yml +1 -2
- package/.nvmrc +1 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +16 -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-CWseJvWv.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.d.ts +16 -0
- package/dist/Popup.js +20 -2
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +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/popup/Popup.d.ts +16 -0
- package/dist/components/popup/Popup.d.ts.map +1 -1
- package/dist/components/popup/stories/popup.stories.d.ts +2 -0
- package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
- package/dist/components/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 +106 -88
- package/dist/vue/index.d.ts +105 -115
- package/dist/web-types.json +268 -243
- 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/popup/Popup.ts +37 -0
- package/src/components/popup/stories/popup.stories.ts +10 -0
- package/src/components/popup/test/popup.test.ts +27 -0
- package/src/components/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/web-test-runner.config.mjs +10 -0
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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
5
|
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
6
|
+
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
7
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
8
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
9
|
+
import type { LeuDropdown } from "../Dropdown.js";
|
|
10
|
+
import type { LeuDialog } from "../Dialog.js";
|
|
9
11
|
import type { LeuChipGroup } from "../ChipGroup.js";
|
|
10
12
|
import type { LeuChipLink } from "../ChipLink.js";
|
|
11
13
|
import type { LeuChipRemovable } from "../ChipRemovable.js";
|
|
12
14
|
import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
|
|
13
|
-
import type { LeuDialog } from "../Dialog.js";
|
|
14
|
-
import type { LeuDropdown } from "../Dropdown.js";
|
|
15
15
|
import type { LeuFileInput, CustomEvent } from "../FileInput.js";
|
|
16
|
-
import type { LeuIcon } from "../Icon.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";
|
|
@@ -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. */
|
|
@@ -89,6 +82,13 @@ When set to `true`, a spinner will be shown in the chart container. */
|
|
|
89
82
|
hasSlotController?: LeuChartWrapper["hasSlotController"];
|
|
90
83
|
};
|
|
91
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
|
+
|
|
92
92
|
type LeuCheckboxProps = {
|
|
93
93
|
/** */
|
|
94
94
|
checked?: LeuCheckbox["checked"];
|
|
@@ -109,6 +109,24 @@ type LeuCheckboxGroupProps = {
|
|
|
109
109
|
value?: LeuCheckboxGroup["value"];
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
+
type LeuDropdownProps = {
|
|
113
|
+
/** */
|
|
114
|
+
label?: LeuDropdown["label"];
|
|
115
|
+
/** */
|
|
116
|
+
expanded?: LeuDropdown["expanded"];
|
|
117
|
+
/** */
|
|
118
|
+
inverted?: LeuDropdown["inverted"];
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
type LeuDialogProps = {
|
|
122
|
+
/** */
|
|
123
|
+
label?: LeuDialog["label"];
|
|
124
|
+
/** */
|
|
125
|
+
sublabel?: LeuDialog["sublabel"];
|
|
126
|
+
/** */
|
|
127
|
+
open?: LeuDialog["open"];
|
|
128
|
+
};
|
|
129
|
+
|
|
112
130
|
type LeuChipGroupProps = {
|
|
113
131
|
/** */
|
|
114
132
|
inverted?: LeuChipGroup["inverted"];
|
|
@@ -126,7 +144,7 @@ If the selectionMode is single, only the first item with the given value is chec
|
|
|
126
144
|
type LeuChipLinkProps = {
|
|
127
145
|
/** The size of the chip */
|
|
128
146
|
size?: LeuChipLink["size"];
|
|
129
|
-
/**
|
|
147
|
+
/** The URL that the chip links to */
|
|
130
148
|
href?: LeuChipLink["href"];
|
|
131
149
|
/** */
|
|
132
150
|
inverted?: LeuChipLink["inverted"];
|
|
@@ -143,13 +161,13 @@ type LeuChipRemovableProps = {
|
|
|
143
161
|
};
|
|
144
162
|
|
|
145
163
|
type LeuChipSelectableProps = {
|
|
146
|
-
/** The size of the chip.
|
|
164
|
+
/** The size of the chip. Has no effect when variant is "radio" */
|
|
147
165
|
size?: LeuChipSelectable["size"];
|
|
148
|
-
/**
|
|
166
|
+
/** The variant of the chip. Determines if only one or multiple chips can be selected. */
|
|
149
167
|
variant?: LeuChipSelectable["variant"];
|
|
150
|
-
/** Whether the chip is selected
|
|
168
|
+
/** Whether the chip is selected */
|
|
151
169
|
checked?: LeuChipSelectable["checked"];
|
|
152
|
-
/** The value of the chip
|
|
170
|
+
/** The value of the chip */
|
|
153
171
|
value?: LeuChipSelectable["value"];
|
|
154
172
|
/** */
|
|
155
173
|
inverted?: LeuChipSelectable["inverted"];
|
|
@@ -158,37 +176,6 @@ type LeuChipSelectableProps = {
|
|
|
158
176
|
oninput?: (e: CustomEvent<CustomEvent>) => void;
|
|
159
177
|
};
|
|
160
178
|
|
|
161
|
-
type LeuDialogProps = {
|
|
162
|
-
/** */
|
|
163
|
-
label?: LeuDialog["label"];
|
|
164
|
-
/** */
|
|
165
|
-
sublabel?: LeuDialog["sublabel"];
|
|
166
|
-
/** */
|
|
167
|
-
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
|
-
};
|
|
191
|
-
|
|
192
179
|
type LeuFileInputProps = {
|
|
193
180
|
/** */
|
|
194
181
|
label?: LeuFileInput["label"];
|
|
@@ -216,17 +203,12 @@ type LeuFileInputProps = {
|
|
|
216
203
|
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
217
204
|
};
|
|
218
205
|
|
|
219
|
-
type LeuIconProps = {
|
|
220
|
-
/** The name of the icon to display. */
|
|
221
|
-
name?: LeuIcon["name"];
|
|
222
|
-
};
|
|
223
|
-
|
|
224
206
|
type LeuInputProps = {
|
|
225
207
|
/** Disables the input element. */
|
|
226
208
|
disabled?: LeuInput["disabled"];
|
|
227
|
-
/** Marks the input element as required
|
|
209
|
+
/** Marks the input element as required */
|
|
228
210
|
required?: LeuInput["required"];
|
|
229
|
-
/** Adds a button to clear the input element
|
|
211
|
+
/** Adds a button to clear the input element */
|
|
230
212
|
clearable?: LeuInput["clearable"];
|
|
231
213
|
/** The value of the input element. */
|
|
232
214
|
value?: LeuInput["value"];
|
|
@@ -234,15 +216,15 @@ type LeuInputProps = {
|
|
|
234
216
|
name?: LeuInput["name"];
|
|
235
217
|
/** A custom error that is completely independent of the validity state. Useful for displaying server side errors. */
|
|
236
218
|
error?: LeuInput["error"];
|
|
237
|
-
/** The label of the input element
|
|
219
|
+
/** The label of the input element */
|
|
238
220
|
label?: LeuInput["label"];
|
|
239
|
-
/** A prefix that relates to the value of the input (e.g. CHF)
|
|
221
|
+
/** A prefix that relates to the value of the input (e.g. CHF) */
|
|
240
222
|
prefix?: LeuInput["prefix"];
|
|
241
223
|
/** A suffix that relates to the value of the input (e.g. mm). */
|
|
242
224
|
suffix?: LeuInput["suffix"];
|
|
243
|
-
/** The size of the input element
|
|
225
|
+
/** The size of the input element */
|
|
244
226
|
size?: LeuInput["size"];
|
|
245
|
-
/** The icon that is displayed at the end of the input element
|
|
227
|
+
/** The icon that is displayed at the end of the input element */
|
|
246
228
|
icon?: LeuInput["icon"];
|
|
247
229
|
/** A regular expression that the value is checked against. */
|
|
248
230
|
pattern?: LeuInput["pattern"];
|
|
@@ -252,6 +234,8 @@ type LeuInputProps = {
|
|
|
252
234
|
min?: LeuInput["min"];
|
|
253
235
|
/** The maximum value of the input element. */
|
|
254
236
|
max?: LeuInput["max"];
|
|
237
|
+
/** The step value of the input element. */
|
|
238
|
+
step?: LeuInput["step"];
|
|
255
239
|
/** The maximum length of the input element. */
|
|
256
240
|
maxlength?: LeuInput["maxlength"];
|
|
257
241
|
/** The minimum length of the input element. */
|
|
@@ -260,8 +244,6 @@ type LeuInputProps = {
|
|
|
260
244
|
validationMessages?: LeuInput["validationMessages"];
|
|
261
245
|
/** Disables the browser's validation. */
|
|
262
246
|
novalidate?: LeuInput["novalidate"];
|
|
263
|
-
/** The step value of the input element. */
|
|
264
|
-
step?: LeuInput["step"];
|
|
265
247
|
/** */
|
|
266
248
|
_validity?: LeuInput["_validity"];
|
|
267
249
|
/** */
|
|
@@ -272,11 +254,14 @@ type LeuInputProps = {
|
|
|
272
254
|
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
273
255
|
};
|
|
274
256
|
|
|
257
|
+
type LeuIconProps = {
|
|
258
|
+
/** The name of the icon to display. */
|
|
259
|
+
name?: LeuIcon["name"];
|
|
260
|
+
};
|
|
261
|
+
|
|
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 = {
|
|
@@ -349,6 +334,13 @@ type LeuPopupProps = {
|
|
|
349
334
|
shiftPadding?: LeuPopup["shiftPadding"];
|
|
350
335
|
/** */
|
|
351
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"];
|
|
352
344
|
/** */
|
|
353
345
|
autoSize?: LeuPopup["autoSize"];
|
|
354
346
|
/** */
|
|
@@ -414,8 +406,6 @@ Otherwise it has to be a string. */
|
|
|
414
406
|
};
|
|
415
407
|
|
|
416
408
|
type LeuScrollTopProps = {
|
|
417
|
-
/** */
|
|
418
|
-
_showButton?: LeuScrollTop["_showButton"];
|
|
419
409
|
/** */
|
|
420
410
|
scroll?: LeuScrollTop["scroll"];
|
|
421
411
|
};
|
|
@@ -502,20 +492,6 @@ export type CustomElements = {
|
|
|
502
492
|
*/
|
|
503
493
|
"leu-accordion": DefineComponent<LeuAccordionProps>;
|
|
504
494
|
|
|
505
|
-
/**
|
|
506
|
-
* A radio input-like button group component.
|
|
507
|
-
* It allows only one button to be active at a time.
|
|
508
|
-
* ---
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
* ### **Events:**
|
|
512
|
-
* - **input** - When the value of the group changes by clicking a button
|
|
513
|
-
*
|
|
514
|
-
* ### **Slots:**
|
|
515
|
-
* - _default_ - Slot for the buttons
|
|
516
|
-
*/
|
|
517
|
-
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
518
|
-
|
|
519
495
|
/**
|
|
520
496
|
*
|
|
521
497
|
* ---
|
|
@@ -542,6 +518,20 @@ export type CustomElements = {
|
|
|
542
518
|
*/
|
|
543
519
|
"leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
|
|
544
520
|
|
|
521
|
+
/**
|
|
522
|
+
* A radio input-like button group component.
|
|
523
|
+
* It allows only one button to be active at a time.
|
|
524
|
+
* ---
|
|
525
|
+
*
|
|
526
|
+
*
|
|
527
|
+
* ### **Events:**
|
|
528
|
+
* - **input** - When the value of the group changes by clicking a button
|
|
529
|
+
*
|
|
530
|
+
* ### **Slots:**
|
|
531
|
+
* - _default_ - Slot for the buttons
|
|
532
|
+
*/
|
|
533
|
+
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
534
|
+
|
|
545
535
|
/**
|
|
546
536
|
*
|
|
547
537
|
* ---
|
|
@@ -559,6 +549,20 @@ export type CustomElements = {
|
|
|
559
549
|
*/
|
|
560
550
|
"leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
|
|
561
551
|
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* ---
|
|
555
|
+
*
|
|
556
|
+
*/
|
|
557
|
+
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* ---
|
|
562
|
+
*
|
|
563
|
+
*/
|
|
564
|
+
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
565
|
+
|
|
562
566
|
/**
|
|
563
567
|
*
|
|
564
568
|
* ---
|
|
@@ -591,7 +595,7 @@ export type CustomElements = {
|
|
|
591
595
|
* - **remove** - Dispatched when the user clicks on the chip
|
|
592
596
|
*
|
|
593
597
|
* ### **Methods:**
|
|
594
|
-
* - **getValue()
|
|
598
|
+
* - **getValue()** - Returns the value of the chip. If `value` is not set, it will return the text content
|
|
595
599
|
*
|
|
596
600
|
* ### **Slots:**
|
|
597
601
|
* - _default_ - The content of the chip
|
|
@@ -618,26 +622,35 @@ export type CustomElements = {
|
|
|
618
622
|
*
|
|
619
623
|
* ---
|
|
620
624
|
*
|
|
621
|
-
*/
|
|
622
|
-
"leu-dialog": DefineComponent<LeuDialogProps>;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
*
|
|
626
|
-
* ---
|
|
627
625
|
*
|
|
626
|
+
* ### **Events:**
|
|
627
|
+
* - **input**
|
|
628
|
+
* - **change**
|
|
628
629
|
*/
|
|
629
|
-
"leu-
|
|
630
|
+
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
630
631
|
|
|
631
632
|
/**
|
|
632
|
-
*
|
|
633
|
+
* A text input element.
|
|
633
634
|
* ---
|
|
634
635
|
*
|
|
635
636
|
*
|
|
636
637
|
* ### **Events:**
|
|
637
|
-
* - **input**
|
|
638
|
-
* - **change**
|
|
638
|
+
* - **input** - Dispatched when the value of the input element changes.
|
|
639
|
+
* - **change** - Dispatched when the value of the input element changes and the input element loses focus.
|
|
640
|
+
*
|
|
641
|
+
* ### **Methods:**
|
|
642
|
+
*
|
|
643
|
+
*
|
|
644
|
+
*
|
|
645
|
+
*
|
|
646
|
+
*
|
|
647
|
+
*
|
|
648
|
+
*
|
|
649
|
+
* - **checkValidity()** - Check input validation
|
|
650
|
+
*
|
|
651
|
+
*
|
|
639
652
|
*/
|
|
640
|
-
"leu-
|
|
653
|
+
"leu-input": DefineComponent<LeuInputProps>;
|
|
641
654
|
|
|
642
655
|
/**
|
|
643
656
|
* A component to render all defined zhWeb icons.
|
|
@@ -652,28 +665,6 @@ export type CustomElements = {
|
|
|
652
665
|
*/
|
|
653
666
|
"leu-icon": DefineComponent<LeuIconProps>;
|
|
654
667
|
|
|
655
|
-
/**
|
|
656
|
-
* A text input element.
|
|
657
|
-
* ---
|
|
658
|
-
*
|
|
659
|
-
*
|
|
660
|
-
* ### **Events:**
|
|
661
|
-
* - **input** - Dispatched when the value of the input element changes.
|
|
662
|
-
* - **change** - Dispatched when the value of the input element changes and the input element loses focus.
|
|
663
|
-
*
|
|
664
|
-
* ### **Methods:**
|
|
665
|
-
* - **getValidationMessages(): _Object_** - Merge custom and default validation messages.
|
|
666
|
-
* A validation message can be a function or a string.
|
|
667
|
-
* If it s a function, the function is called with the corresponding
|
|
668
|
-
* attribute value as argument.
|
|
669
|
-
* e.g.
|
|
670
|
-
* `tooLong(this.maxlength)`
|
|
671
|
-
* This way the framework user can create reasonable validation messages
|
|
672
|
-
* - **checkValidity(): _boolean_** - Check input validation
|
|
673
|
-
* - **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.
|
|
674
|
-
*/
|
|
675
|
-
"leu-input": DefineComponent<LeuInputProps>;
|
|
676
|
-
|
|
677
668
|
/**
|
|
678
669
|
*
|
|
679
670
|
* ---
|
|
@@ -687,7 +678,7 @@ export type CustomElements = {
|
|
|
687
678
|
*
|
|
688
679
|
*
|
|
689
680
|
* ### **Methods:**
|
|
690
|
-
* - **getValue()
|
|
681
|
+
* - **getValue()** - Returns the value of the item. If `value` is not set, it will return the inner text
|
|
691
682
|
*
|
|
692
683
|
* ### **Slots:**
|
|
693
684
|
* - _default_ - The label of the menu item
|
|
@@ -770,8 +761,7 @@ export type CustomElements = {
|
|
|
770
761
|
*
|
|
771
762
|
*
|
|
772
763
|
* ### **Methods:**
|
|
773
|
-
*
|
|
774
|
-
* the value of the other input element. Swap the values if this is the case.
|
|
764
|
+
*
|
|
775
765
|
*/
|
|
776
766
|
"leu-range": DefineComponent<LeuRangeProps>;
|
|
777
767
|
|