@statistikzh/leu 0.6.0 → 0.7.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/CHANGELOG.md +14 -0
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.d.ts.map +1 -1
- package/dist/Breadcrumb.js +3 -1
- package/dist/{Button-9692e403.d.ts → Button-7370f901.d.ts} +2 -2
- package/dist/Button-7370f901.d.ts.map +1 -0
- package/dist/{Button-9692e403.js → Button-7370f901.js} +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox.js +3 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.d.ts.map +1 -1
- package/dist/CheckboxGroup.js +3 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +19 -17
- package/dist/ChipGroup.d.ts +8 -2
- package/dist/ChipGroup.d.ts.map +1 -1
- package/dist/ChipGroup.js +32 -5
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.d.ts +3 -1
- package/dist/ChipSelectable.d.ts.map +1 -1
- package/dist/ChipSelectable.js +13 -11
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/Icon.d.ts +98 -2
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +7 -2
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +16 -3
- package/dist/{LeuElement-6de6f209.d.ts → LeuElement-ba5ea33d.d.ts} +2 -2
- package/dist/LeuElement-ba5ea33d.d.ts.map +1 -0
- package/dist/LeuElement-ba5ea33d.js +49 -0
- package/dist/Menu.d.ts +2 -2
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +2 -2
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +3 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.d.ts.map +1 -1
- package/dist/Radio.js +3 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup.js +19 -8
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +4 -2
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +4 -3
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden.js +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.js +2 -2
- 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-dropdown.js +2 -2
- 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-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +18 -5
- package/dist/vue/index.d.ts +21 -9
- package/dist/web-types.json +211 -232
- package/package.json +3 -3
- package/src/components/chip/ChipGroup.js +28 -4
- package/src/components/chip/ChipSelectable.js +12 -10
- package/src/components/chip/chip.css +16 -16
- package/src/components/chip/stories/chip-group.stories.js +6 -9
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/chip/test/chip-group.test.js +67 -0
- package/src/components/chip/test/chip-selectable.test.js +7 -7
- package/src/components/input/Input.js +14 -1
- package/src/components/input/stories/input.stories.js +3 -3
- package/src/components/input/test/input.test.js +20 -0
- package/src/components/radio/RadioGroup.js +12 -9
- package/dist/Button-9692e403.d.ts.map +0 -1
- package/dist/LeuElement-6de6f209.d.ts.map +0 -1
- package/dist/LeuElement-6de6f209.js +0 -43
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuPagination } from './Pagination.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
|
-
import './Button-
|
|
5
|
+
import './Button-7370f901.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
|
-
import './Button-
|
|
5
|
+
import './Button-7370f901.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './utils-65469421.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuSelect } from './Select.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
|
-
import './Button-
|
|
7
|
+
import './Button-7370f901.js';
|
|
8
8
|
import './Icon.js';
|
|
9
9
|
import './Menu.js';
|
|
10
10
|
import './MenuItem.js';
|
package/dist/leu-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeuTable } from './Table.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/style-map.js';
|
|
@@ -7,7 +7,7 @@ import 'lit/directives/ref.js';
|
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './Pagination.js';
|
|
9
9
|
import 'lit/directives/live.js';
|
|
10
|
-
import './Button-
|
|
10
|
+
import './Button-7370f901.js';
|
|
11
11
|
import 'lit/directives/if-defined.js';
|
|
12
12
|
import './VisuallyHidden.js';
|
|
13
13
|
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"name": "leu-chip-link",
|
|
179
179
|
"description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
180
180
|
"attributes": [
|
|
181
|
+
{ "name": "", "values": [] },
|
|
181
182
|
{
|
|
182
183
|
"name": "size",
|
|
183
184
|
"description": "The size of the chip",
|
|
@@ -196,7 +197,10 @@
|
|
|
196
197
|
{
|
|
197
198
|
"name": "leu-chip-removable",
|
|
198
199
|
"description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
199
|
-
"attributes": [
|
|
200
|
+
"attributes": [
|
|
201
|
+
{ "name": "", "values": [] },
|
|
202
|
+
{ "name": "inverted", "values": [] }
|
|
203
|
+
],
|
|
200
204
|
"references": [
|
|
201
205
|
{
|
|
202
206
|
"name": "Documentation",
|
|
@@ -206,8 +210,9 @@
|
|
|
206
210
|
},
|
|
207
211
|
{
|
|
208
212
|
"name": "leu-chip-selectable",
|
|
209
|
-
"description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input
|
|
213
|
+
"description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input** - undefined\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
210
214
|
"attributes": [
|
|
215
|
+
{ "name": "", "values": [] },
|
|
211
216
|
{
|
|
212
217
|
"name": "size",
|
|
213
218
|
"description": "The size of the chip. Not supported for radio variant.",
|
|
@@ -218,8 +223,16 @@
|
|
|
218
223
|
"description": "`toggle` or `radio`. Determines if only one or multiple chips can be selected.",
|
|
219
224
|
"values": [{ "name": "keyof typeof VARIANTS" }]
|
|
220
225
|
},
|
|
221
|
-
{
|
|
222
|
-
|
|
226
|
+
{
|
|
227
|
+
"name": "checked",
|
|
228
|
+
"description": "Whether the chip is selected.",
|
|
229
|
+
"values": []
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "value",
|
|
233
|
+
"description": "The value of the chip.",
|
|
234
|
+
"values": []
|
|
235
|
+
},
|
|
223
236
|
{ "name": "inverted", "values": [] }
|
|
224
237
|
],
|
|
225
238
|
"references": [
|
|
@@ -434,7 +447,7 @@
|
|
|
434
447
|
},
|
|
435
448
|
{
|
|
436
449
|
"name": "leu-pagination",
|
|
437
|
-
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**",
|
|
450
|
+
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange** - undefined",
|
|
438
451
|
"attributes": [
|
|
439
452
|
{ "name": "defaultPage", "values": [] },
|
|
440
453
|
{ "name": "itemsPerPage", "values": [{ "name": "Number" }] },
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -121,39 +121,50 @@ type LeuChipGroupProps = {
|
|
|
121
121
|
"heading-level"?: LeuChipGroup["headingLevel"];
|
|
122
122
|
/** */
|
|
123
123
|
label?: LeuChipGroup["label"];
|
|
124
|
-
/**
|
|
124
|
+
/** Checks the items with the given values.
|
|
125
|
+
If the selectionMode is single, only the first item with the given value is checked. */
|
|
125
126
|
value?: LeuChipGroup["value"];
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
type LeuChipLinkProps = {
|
|
130
|
+
/** */
|
|
131
|
+
""?: LeuChipLink[""];
|
|
129
132
|
/** The size of the chip */
|
|
130
133
|
size?: LeuChipLink["size"];
|
|
131
134
|
/** */
|
|
132
135
|
href?: LeuChipLink["href"];
|
|
133
136
|
/** */
|
|
134
137
|
inverted?: LeuChipLink["inverted"];
|
|
138
|
+
/** */
|
|
139
|
+
""?: LeuChipLink[""];
|
|
135
140
|
};
|
|
136
141
|
|
|
137
142
|
type LeuChipRemovableProps = {
|
|
143
|
+
/** */
|
|
144
|
+
""?: LeuChipRemovable[""];
|
|
138
145
|
/** */
|
|
139
146
|
inverted?: LeuChipRemovable["inverted"];
|
|
140
|
-
|
|
147
|
+
/** */
|
|
148
|
+
""?: LeuChipRemovable[""];
|
|
141
149
|
/** Dispatched when the user clicks on the chip */
|
|
142
150
|
onRemove?: (e: CustomEvent<never>) => void;
|
|
143
151
|
};
|
|
144
152
|
|
|
145
153
|
type LeuChipSelectableProps = {
|
|
154
|
+
/** */
|
|
155
|
+
""?: LeuChipSelectable[""];
|
|
146
156
|
/** The size of the chip. Not supported for radio variant. */
|
|
147
157
|
size?: LeuChipSelectable["size"];
|
|
148
158
|
/** `toggle` or `radio`. Determines if only one or multiple chips can be selected. */
|
|
149
159
|
variant?: LeuChipSelectable["variant"];
|
|
150
|
-
/**
|
|
151
|
-
|
|
152
|
-
/**
|
|
160
|
+
/** Whether the chip is selected. */
|
|
161
|
+
checked?: LeuChipSelectable["checked"];
|
|
162
|
+
/** The value of the chip. */
|
|
153
163
|
value?: LeuChipSelectable["value"];
|
|
154
164
|
/** */
|
|
155
165
|
inverted?: LeuChipSelectable["inverted"];
|
|
156
|
-
|
|
166
|
+
/** */
|
|
167
|
+
""?: LeuChipSelectable[""];
|
|
157
168
|
/** */
|
|
158
169
|
onInput?: (e: CustomEvent<CustomEvent>) => void;
|
|
159
170
|
};
|
|
@@ -224,7 +235,8 @@ type LeuInputProps = {
|
|
|
224
235
|
step?: LeuInput["step"];
|
|
225
236
|
/** */
|
|
226
237
|
_validity?: LeuInput["_validity"];
|
|
227
|
-
|
|
238
|
+
/** */
|
|
239
|
+
valueAsNumber?: LeuInput["valueAsNumber"];
|
|
228
240
|
/** Dispatched when the value of the input element changes. */
|
|
229
241
|
onInput?: (e: CustomEvent<CustomEvent>) => void;
|
|
230
242
|
/** Dispatched when the value of the input element changes and the input element loses focus. */
|
|
@@ -529,7 +541,7 @@ export type CustomElements = {
|
|
|
529
541
|
*
|
|
530
542
|
*
|
|
531
543
|
* ### **Events:**
|
|
532
|
-
* - **input**
|
|
544
|
+
* - **input** - undefined
|
|
533
545
|
*
|
|
534
546
|
* ### **Slots:**
|
|
535
547
|
* - _default_ - The content of the chip
|
|
@@ -603,7 +615,7 @@ export type CustomElements = {
|
|
|
603
615
|
*
|
|
604
616
|
*
|
|
605
617
|
* ### **Events:**
|
|
606
|
-
* - **leu:pagechange**
|
|
618
|
+
* - **leu:pagechange** - undefined
|
|
607
619
|
*/
|
|
608
620
|
"leu-pagination": DefineComponent<LeuPaginationProps>;
|
|
609
621
|
|