@statistikzh/leu 0.11.1 → 0.12.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.
Files changed (97) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -14
  3. package/dist/Accordion.d.ts +1 -1
  4. package/dist/Accordion.js +1 -1
  5. package/dist/Breadcrumb.d.ts +1 -1
  6. package/dist/Breadcrumb.js +1 -1
  7. package/dist/Button.d.ts +1 -1
  8. package/dist/Button.js +2 -2
  9. package/dist/ButtonGroup.d.ts +1 -1
  10. package/dist/ButtonGroup.js +1 -1
  11. package/dist/Checkbox.d.ts +1 -1
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/CheckboxGroup.d.ts +1 -1
  14. package/dist/CheckboxGroup.js +1 -1
  15. package/dist/Chip.d.ts +1 -1
  16. package/dist/Chip.js +1 -1
  17. package/dist/ChipGroup.d.ts +1 -1
  18. package/dist/ChipGroup.js +1 -1
  19. package/dist/ChipLink.js +1 -1
  20. package/dist/ChipRemovable.js +1 -1
  21. package/dist/ChipSelectable.js +1 -1
  22. package/dist/Dialog.d.ts +1 -1
  23. package/dist/Dialog.js +2 -2
  24. package/dist/Dropdown.d.ts +1 -1
  25. package/dist/Dropdown.js +2 -2
  26. package/dist/Icon.d.ts +1 -1
  27. package/dist/Icon.js +1 -1
  28. package/dist/Input.d.ts +1 -1
  29. package/dist/Input.d.ts.map +1 -1
  30. package/dist/Input.js +2 -1
  31. package/dist/{LeuElement-e092765a.d.ts → LeuElement-b9109dcb.d.ts} +1 -1
  32. package/dist/LeuElement-b9109dcb.d.ts.map +1 -0
  33. package/dist/{LeuElement-e092765a.js → LeuElement-b9109dcb.js} +1 -1
  34. package/dist/Menu.d.ts +1 -1
  35. package/dist/Menu.js +1 -1
  36. package/dist/MenuItem.d.ts +1 -1
  37. package/dist/MenuItem.js +1 -1
  38. package/dist/Pagination.d.ts +1 -1
  39. package/dist/Pagination.js +2 -2
  40. package/dist/Popup.d.ts +1 -1
  41. package/dist/Popup.js +1 -1
  42. package/dist/Radio.d.ts +1 -1
  43. package/dist/Radio.js +1 -1
  44. package/dist/RadioGroup.d.ts +1 -1
  45. package/dist/RadioGroup.js +1 -1
  46. package/dist/Range.d.ts +1 -1
  47. package/dist/Range.js +1 -1
  48. package/dist/ScrollTop.d.ts +1 -1
  49. package/dist/ScrollTop.js +2 -2
  50. package/dist/Select.d.ts +1 -1
  51. package/dist/Select.js +2 -2
  52. package/dist/Spinner.d.ts +1 -1
  53. package/dist/Spinner.js +1 -1
  54. package/dist/Table.d.ts +1 -1
  55. package/dist/Table.d.ts.map +1 -1
  56. package/dist/Table.js +6 -3
  57. package/dist/VisuallyHidden.d.ts +1 -1
  58. package/dist/VisuallyHidden.js +1 -1
  59. package/dist/{hasSlotController-d1f26756.d.ts → hasSlotController-16f26398.d.ts} +1 -1
  60. package/dist/{hasSlotController-d1f26756.d.ts.map → hasSlotController-16f26398.d.ts.map} +1 -1
  61. package/dist/{hasSlotController-d1f26756.js → hasSlotController-16f26398.js} +1 -1
  62. package/dist/index.js +2 -2
  63. package/dist/leu-accordion.js +1 -1
  64. package/dist/leu-breadcrumb.js +1 -1
  65. package/dist/leu-button-group.js +1 -1
  66. package/dist/leu-button.js +2 -2
  67. package/dist/leu-checkbox-group.js +1 -1
  68. package/dist/leu-checkbox.js +1 -1
  69. package/dist/leu-chip-group.js +1 -1
  70. package/dist/leu-chip-link.js +1 -1
  71. package/dist/leu-chip-removable.js +1 -1
  72. package/dist/leu-chip-selectable.js +1 -1
  73. package/dist/leu-dialog.js +2 -2
  74. package/dist/leu-dropdown.js +2 -2
  75. package/dist/leu-icon.js +1 -1
  76. package/dist/leu-input.js +1 -1
  77. package/dist/leu-menu-item.js +1 -1
  78. package/dist/leu-menu.js +1 -1
  79. package/dist/leu-pagination.js +2 -2
  80. package/dist/leu-popup.js +1 -1
  81. package/dist/leu-radio-group.js +1 -1
  82. package/dist/leu-radio.js +1 -1
  83. package/dist/leu-range.js +1 -1
  84. package/dist/leu-scroll-top.js +2 -2
  85. package/dist/leu-select.js +2 -2
  86. package/dist/leu-spinner.js +1 -1
  87. package/dist/leu-table.js +2 -2
  88. package/dist/leu-visually-hidden.js +1 -1
  89. package/dist/vscode.html-custom-data.json +112 -112
  90. package/dist/vue/index.d.ts +157 -157
  91. package/dist/web-types.json +216 -216
  92. package/package.json +1 -1
  93. package/src/components/input/input.css +1 -0
  94. package/src/components/table/Table.js +5 -1
  95. package/src/components/table/stories/table.stories.js +6 -1
  96. package/src/components/table/table.css +1 -0
  97. package/dist/LeuElement-e092765a.d.ts.map +0 -1
@@ -1,26 +1,26 @@
1
1
  import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { LeuAccordion } from "../Accordion.js";
4
+ import type { LeuBreadcrumb } from "../Breadcrumb.js";
5
+ import type { LeuButton } from "../Button.js";
6
+ import type { LeuButtonGroup, CustomEvent } from "../ButtonGroup.js";
4
7
  import type { LeuCheckbox } from "../Checkbox.js";
5
8
  import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
6
- import type { LeuButtonGroup, CustomEvent } from "../ButtonGroup.js";
7
- import type { LeuButton } from "../Button.js";
8
- import type { LeuDialog } from "../Dialog.js";
9
- import type { LeuBreadcrumb } from "../Breadcrumb.js";
10
- import type { LeuDropdown } from "../Dropdown.js";
11
- import type { LeuIcon } from "../Icon.js";
12
9
  import type { LeuChipGroup } from "../ChipGroup.js";
13
10
  import type { LeuChipLink } from "../ChipLink.js";
14
11
  import type { LeuChipRemovable } from "../ChipRemovable.js";
15
12
  import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
13
+ import type { LeuDialog } from "../Dialog.js";
14
+ import type { LeuDropdown } from "../Dropdown.js";
15
+ import type { LeuIcon } from "../Icon.js";
16
16
  import type { LeuInput, CustomEvent } from "../Input.js";
17
17
  import type { LeuMenu } from "../Menu.js";
18
18
  import type { LeuMenuItem } from "../MenuItem.js";
19
19
  import type { LeuPagination, CustomEvent } from "../Pagination.js";
20
+ import type { LeuPopup } from "../Popup.js";
20
21
  import type { LeuRadio } from "../Radio.js";
21
22
  import type { LeuRadioGroup } from "../RadioGroup.js";
22
23
  import type { LeuRange } from "../Range.js";
23
- import type { LeuPopup } from "../Popup.js";
24
24
  import type { LeuScrollTop } from "../ScrollTop.js";
25
25
  import type { LeuSelect } from "../Select.js";
26
26
  import type { LeuSpinner } from "../Spinner.js";
@@ -38,35 +38,25 @@ type LeuAccordionProps = {
38
38
  label?: LeuAccordion["label"];
39
39
  };
40
40
 
41
- type LeuCheckboxProps = {
42
- /** */
43
- checked?: LeuCheckbox["checked"];
44
- /** */
45
- disabled?: LeuCheckbox["disabled"];
41
+ type LeuBreadcrumbProps = {
42
+ /** Object array with { label, href } */
43
+ items?: LeuBreadcrumb["items"];
44
+ /** invert color on dark background */
45
+ inverted?: LeuBreadcrumb["inverted"];
46
46
  /** */
47
- value?: LeuCheckbox["value"];
47
+ _hiddenItems?: LeuBreadcrumb["_hiddenItems"];
48
48
  /** */
49
- name?: LeuCheckbox["name"];
50
- };
51
-
52
- type LeuCheckboxGroupProps = {
49
+ _showBackOnly?: LeuBreadcrumb["_showBackOnly"];
53
50
  /** */
54
- orientation?: LeuCheckboxGroup["orientation"];
51
+ _isRecalculating?: LeuBreadcrumb["_isRecalculating"];
55
52
  /** */
56
- label?: LeuCheckboxGroup["label"];
53
+ _isDropdownOpen?: LeuBreadcrumb["_isDropdownOpen"];
57
54
  /** */
58
- value?: LeuCheckboxGroup["value"];
55
+ _handleResize?: LeuBreadcrumb["_handleResize"];
59
56
  /** */
60
- items?: LeuCheckboxGroup["items"];
61
- };
62
-
63
- type LeuButtonGroupProps = {
64
- /** The value of the currenty selected (active) button */
65
- value?: LeuButtonGroup["value"];
57
+ _closeDropdown?: LeuBreadcrumb["_closeDropdown"];
66
58
  /** */
67
- _items?: LeuButtonGroup["_items"];
68
- /** When the value of the group changes by clicking a button */
69
- onInput?: (e: CustomEvent<CustomEvent>) => void;
59
+ resizeObserver?: LeuBreadcrumb["resizeObserver"];
70
60
  };
71
61
 
72
62
  type LeuButtonProps = {
@@ -94,59 +84,35 @@ type LeuButtonProps = {
94
84
  fluid?: LeuButton["fluid"];
95
85
  };
96
86
 
97
- type LeuDialogProps = {
98
- /** */
99
- label?: LeuDialog["label"];
100
- /** */
101
- sublabel?: LeuDialog["sublabel"];
102
- /** */
103
- open?: LeuDialog["open"];
87
+ type LeuButtonGroupProps = {
88
+ /** The value of the currenty selected (active) button */
89
+ value?: LeuButtonGroup["value"];
104
90
  /** */
105
- _dialogRef?: LeuDialog["_dialogRef"];
91
+ _items?: LeuButtonGroup["_items"];
92
+ /** When the value of the group changes by clicking a button */
93
+ onInput?: (e: CustomEvent<CustomEvent>) => void;
106
94
  };
107
95
 
108
- type LeuBreadcrumbProps = {
109
- /** Object array with { label, href } */
110
- items?: LeuBreadcrumb["items"];
111
- /** invert color on dark background */
112
- inverted?: LeuBreadcrumb["inverted"];
113
- /** */
114
- _hiddenItems?: LeuBreadcrumb["_hiddenItems"];
115
- /** */
116
- _showBackOnly?: LeuBreadcrumb["_showBackOnly"];
117
- /** */
118
- _isRecalculating?: LeuBreadcrumb["_isRecalculating"];
96
+ type LeuCheckboxProps = {
119
97
  /** */
120
- _isDropdownOpen?: LeuBreadcrumb["_isDropdownOpen"];
98
+ checked?: LeuCheckbox["checked"];
121
99
  /** */
122
- _handleResize?: LeuBreadcrumb["_handleResize"];
100
+ disabled?: LeuCheckbox["disabled"];
123
101
  /** */
124
- _closeDropdown?: LeuBreadcrumb["_closeDropdown"];
102
+ value?: LeuCheckbox["value"];
125
103
  /** */
126
- resizeObserver?: LeuBreadcrumb["resizeObserver"];
104
+ name?: LeuCheckbox["name"];
127
105
  };
128
106
 
129
- type LeuDropdownProps = {
130
- /** */
131
- label?: LeuDropdown["label"];
132
- /** */
133
- expanded?: LeuDropdown["expanded"];
107
+ type LeuCheckboxGroupProps = {
134
108
  /** */
135
- hasSlotController?: LeuDropdown["hasSlotController"];
109
+ orientation?: LeuCheckboxGroup["orientation"];
136
110
  /** */
137
- _documentClickHandler?: LeuDropdown["_documentClickHandler"];
111
+ label?: LeuCheckboxGroup["label"];
138
112
  /** */
139
- _menuItemClickHandler?: LeuDropdown["_menuItemClickHandler"];
140
- /** Close the dropdown when the user presses the Escape or the Tab key.
141
- Navigating the menu with the arrow keys is handled by the menu itself. */
142
- _keyDownMenuHandler?: LeuDropdown["_keyDownMenuHandler"];
113
+ value?: LeuCheckboxGroup["value"];
143
114
  /** */
144
- _toggleRef?: LeuDropdown["_toggleRef"];
145
- };
146
-
147
- type LeuIconProps = {
148
- /** The name of the icon to display. */
149
- name?: LeuIcon["name"];
115
+ items?: LeuCheckboxGroup["items"];
150
116
  };
151
117
 
152
118
  type LeuChipGroupProps = {
@@ -208,6 +174,40 @@ type LeuChipSelectableProps = {
208
174
  onInput?: (e: CustomEvent<CustomEvent>) => void;
209
175
  };
210
176
 
177
+ type LeuDialogProps = {
178
+ /** */
179
+ label?: LeuDialog["label"];
180
+ /** */
181
+ sublabel?: LeuDialog["sublabel"];
182
+ /** */
183
+ open?: LeuDialog["open"];
184
+ /** */
185
+ _dialogRef?: LeuDialog["_dialogRef"];
186
+ };
187
+
188
+ type LeuDropdownProps = {
189
+ /** */
190
+ label?: LeuDropdown["label"];
191
+ /** */
192
+ expanded?: LeuDropdown["expanded"];
193
+ /** */
194
+ hasSlotController?: LeuDropdown["hasSlotController"];
195
+ /** */
196
+ _documentClickHandler?: LeuDropdown["_documentClickHandler"];
197
+ /** */
198
+ _menuItemClickHandler?: LeuDropdown["_menuItemClickHandler"];
199
+ /** Close the dropdown when the user presses the Escape or the Tab key.
200
+ Navigating the menu with the arrow keys is handled by the menu itself. */
201
+ _keyDownMenuHandler?: LeuDropdown["_keyDownMenuHandler"];
202
+ /** */
203
+ _toggleRef?: LeuDropdown["_toggleRef"];
204
+ };
205
+
206
+ type LeuIconProps = {
207
+ /** The name of the icon to display. */
208
+ name?: LeuIcon["name"];
209
+ };
210
+
211
211
  type LeuInputProps = {
212
212
  /** Disables the input element. */
213
213
  disabled?: LeuInput["disabled"];
@@ -304,6 +304,33 @@ type LeuPaginationProps = {
304
304
  onLeupagechange?: (e: CustomEvent<CustomEvent>) => void;
305
305
  };
306
306
 
307
+ type LeuPopupProps = {
308
+ /** */
309
+ anchor?: LeuPopup["anchor"];
310
+ /** */
311
+ active?: LeuPopup["active"];
312
+ /** */
313
+ placement?: LeuPopup["placement"];
314
+ /** */
315
+ flip?: LeuPopup["flip"];
316
+ /** */
317
+ shift?: LeuPopup["shift"];
318
+ /** */
319
+ shiftPadding?: LeuPopup["shiftPadding"];
320
+ /** */
321
+ matchSize?: LeuPopup["matchSize"];
322
+ /** */
323
+ autoSize?: LeuPopup["autoSize"];
324
+ /** */
325
+ autoSizePadding?: LeuPopup["autoSizePadding"];
326
+ /** */
327
+ popupEl?: LeuPopup["popupEl"];
328
+ /** */
329
+ anchorEl?: LeuPopup["anchorEl"];
330
+ /** */
331
+ cleanup?: LeuPopup["cleanup"];
332
+ };
333
+
307
334
  type LeuRadioProps = {
308
335
  /** */
309
336
  checked?: LeuRadio["checked"];
@@ -363,33 +390,6 @@ Otherwise it has to be a string. */
363
390
  valueHigh?: LeuRange["valueHigh"];
364
391
  };
365
392
 
366
- type LeuPopupProps = {
367
- /** */
368
- anchor?: LeuPopup["anchor"];
369
- /** */
370
- active?: LeuPopup["active"];
371
- /** */
372
- placement?: LeuPopup["placement"];
373
- /** */
374
- flip?: LeuPopup["flip"];
375
- /** */
376
- shift?: LeuPopup["shift"];
377
- /** */
378
- shiftPadding?: LeuPopup["shiftPadding"];
379
- /** */
380
- matchSize?: LeuPopup["matchSize"];
381
- /** */
382
- autoSize?: LeuPopup["autoSize"];
383
- /** */
384
- autoSizePadding?: LeuPopup["autoSizePadding"];
385
- /** */
386
- popupEl?: LeuPopup["popupEl"];
387
- /** */
388
- anchorEl?: LeuPopup["anchorEl"];
389
- /** */
390
- cleanup?: LeuPopup["cleanup"];
391
- };
392
-
393
393
  type LeuScrollTopProps = {
394
394
  /** */
395
395
  _showButton?: LeuScrollTop["_showButton"];
@@ -474,52 +474,6 @@ export type CustomElements = {
474
474
  */
475
475
  "leu-accordion": DefineComponent<LeuAccordionProps>;
476
476
 
477
- /**
478
- *
479
- * ---
480
- *
481
- */
482
- "leu-checkbox": DefineComponent<LeuCheckboxProps>;
483
-
484
- /**
485
- *
486
- * ---
487
- *
488
- */
489
- "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
490
-
491
- /**
492
- *
493
- * ---
494
- *
495
- *
496
- * ### **Events:**
497
- * - **input** - When the value of the group changes by clicking a button
498
- *
499
- * ### **Slots:**
500
- * - _default_ - Slot for the buttons
501
- */
502
- "leu-button-group": DefineComponent<LeuButtonGroupProps>;
503
-
504
- /**
505
- *
506
- * ---
507
- *
508
- *
509
- * ### **Slots:**
510
- * - **before** - The icon to display before the label
511
- * - **after** - The icon to display after the label
512
- * - _default_ - The label of the button or the icon if no label is set
513
- */
514
- "leu-button": DefineComponent<LeuButtonProps>;
515
-
516
- /**
517
- *
518
- * ---
519
- *
520
- */
521
- "leu-dialog": DefineComponent<LeuDialogProps>;
522
-
523
477
  /**
524
478
  * A Breadcrumb Navigation.
525
479
  *
@@ -559,21 +513,40 @@ export type CustomElements = {
559
513
  *
560
514
  * ---
561
515
  *
516
+ *
517
+ * ### **Slots:**
518
+ * - **before** - The icon to display before the label
519
+ * - **after** - The icon to display after the label
520
+ * - _default_ - The label of the button or the icon if no label is set
562
521
  */
563
- "leu-dropdown": DefineComponent<LeuDropdownProps>;
522
+ "leu-button": DefineComponent<LeuButtonProps>;
564
523
 
565
524
  /**
566
- * A component to render all defined zhWeb icons.
567
- * The `fill` of the icon is set to `currentColor` and
568
- * can be overriden by setting the css `color` property.
569
- * If the icon name is not found, a placeholder will be displayed.
525
+ *
570
526
  * ---
571
527
  *
572
528
  *
573
- * ### **CSS Properties:**
574
- * - **--leu-icon-size** - The size of the icon. _(default: undefined)_
529
+ * ### **Events:**
530
+ * - **input** - When the value of the group changes by clicking a button
531
+ *
532
+ * ### **Slots:**
533
+ * - _default_ - Slot for the buttons
575
534
  */
576
- "leu-icon": DefineComponent<LeuIconProps>;
535
+ "leu-button-group": DefineComponent<LeuButtonGroupProps>;
536
+
537
+ /**
538
+ *
539
+ * ---
540
+ *
541
+ */
542
+ "leu-checkbox": DefineComponent<LeuCheckboxProps>;
543
+
544
+ /**
545
+ *
546
+ * ---
547
+ *
548
+ */
549
+ "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
577
550
 
578
551
  /**
579
552
  *
@@ -630,6 +603,33 @@ export type CustomElements = {
630
603
  */
631
604
  "leu-chip-selectable": DefineComponent<LeuChipSelectableProps>;
632
605
 
606
+ /**
607
+ *
608
+ * ---
609
+ *
610
+ */
611
+ "leu-dialog": DefineComponent<LeuDialogProps>;
612
+
613
+ /**
614
+ *
615
+ * ---
616
+ *
617
+ */
618
+ "leu-dropdown": DefineComponent<LeuDropdownProps>;
619
+
620
+ /**
621
+ * A component to render all defined zhWeb icons.
622
+ * The `fill` of the icon is set to `currentColor` and
623
+ * can be overriden by setting the css `color` property.
624
+ * If the icon name is not found, a placeholder will be displayed.
625
+ * ---
626
+ *
627
+ *
628
+ * ### **CSS Properties:**
629
+ * - **--leu-icon-size** - The size of the icon. _(default: undefined)_
630
+ */
631
+ "leu-icon": DefineComponent<LeuIconProps>;
632
+
633
633
  /**
634
634
  * A text input element.
635
635
  * ---
@@ -681,6 +681,13 @@ export type CustomElements = {
681
681
  */
682
682
  "leu-pagination": DefineComponent<LeuPaginationProps>;
683
683
 
684
+ /**
685
+ *
686
+ * ---
687
+ *
688
+ */
689
+ "leu-popup": DefineComponent<LeuPopupProps>;
690
+
684
691
  /**
685
692
  *
686
693
  * ---
@@ -706,13 +713,6 @@ export type CustomElements = {
706
713
  */
707
714
  "leu-range": DefineComponent<LeuRangeProps>;
708
715
 
709
- /**
710
- *
711
- * ---
712
- *
713
- */
714
- "leu-popup": DefineComponent<LeuPopupProps>;
715
-
716
716
  /**
717
717
  *
718
718
  * ---