@statistikzh/leu 0.19.1 → 0.20.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.
Files changed (95) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Button.js +1 -1
  5. package/dist/ButtonGroup.js +1 -1
  6. package/dist/ChartWrapper.js +1 -1
  7. package/dist/Checkbox.js +1 -1
  8. package/dist/CheckboxGroup.js +1 -1
  9. package/dist/Chip.js +1 -1
  10. package/dist/ChipGroup.js +1 -1
  11. package/dist/ChipLink.js +1 -1
  12. package/dist/ChipRemovable.js +1 -1
  13. package/dist/ChipSelectable.js +1 -1
  14. package/dist/Dialog.js +1 -1
  15. package/dist/Dropdown.d.ts +1 -0
  16. package/dist/Dropdown.js +1 -1
  17. package/dist/FileInput.d.ts +7 -1
  18. package/dist/FileInput.js +18 -1
  19. package/dist/Icon.js +1 -1
  20. package/dist/Input.js +1 -1
  21. package/dist/{LeuElement-CRdVLttR.js → LeuElement-C1c3TgrG.js} +1 -1
  22. package/dist/Menu.d.ts +2 -1
  23. package/dist/Menu.js +1 -1
  24. package/dist/MenuItem.js +1 -1
  25. package/dist/Message.js +1 -1
  26. package/dist/Pagination.js +1 -1
  27. package/dist/Placeholder.js +1 -1
  28. package/dist/Popup.d.ts +22 -46
  29. package/dist/Popup.js +40 -31
  30. package/dist/ProgressBar.js +1 -1
  31. package/dist/Radio.js +1 -1
  32. package/dist/RadioGroup.js +1 -1
  33. package/dist/Range.js +1 -1
  34. package/dist/ScrollTop.js +1 -1
  35. package/dist/Select.d.ts +3 -2
  36. package/dist/Select.js +1 -1
  37. package/dist/Spinner.js +1 -1
  38. package/dist/Table.js +1 -1
  39. package/dist/Tag.js +1 -1
  40. package/dist/VisuallyHidden.js +1 -1
  41. package/dist/components/file-input/FileInput.d.ts +7 -1
  42. package/dist/components/file-input/FileInput.d.ts.map +1 -1
  43. package/dist/components/menu/Menu.d.ts +2 -1
  44. package/dist/components/menu/Menu.d.ts.map +1 -1
  45. package/dist/components/popup/Popup.d.ts +21 -46
  46. package/dist/components/popup/Popup.d.ts.map +1 -1
  47. package/dist/components/popup/stories/popup.stories.d.ts +9 -0
  48. package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
  49. package/dist/components/select/Select.d.ts +2 -2
  50. package/dist/components/select/Select.d.ts.map +1 -1
  51. package/dist/index.js +1 -1
  52. package/dist/leu-accordion.js +1 -1
  53. package/dist/leu-button-group.js +1 -1
  54. package/dist/leu-button.js +1 -1
  55. package/dist/leu-chart-wrapper.js +1 -1
  56. package/dist/leu-checkbox-group.js +1 -1
  57. package/dist/leu-checkbox.js +1 -1
  58. package/dist/leu-chip-group.js +1 -1
  59. package/dist/leu-chip-link.js +1 -1
  60. package/dist/leu-chip-removable.js +1 -1
  61. package/dist/leu-chip-selectable.js +1 -1
  62. package/dist/leu-dialog.js +1 -1
  63. package/dist/leu-dropdown.d.ts +1 -0
  64. package/dist/leu-dropdown.js +1 -1
  65. package/dist/leu-file-input.js +1 -1
  66. package/dist/leu-icon.js +1 -1
  67. package/dist/leu-input.js +1 -1
  68. package/dist/leu-menu-item.js +1 -1
  69. package/dist/leu-menu.js +1 -1
  70. package/dist/leu-message.js +1 -1
  71. package/dist/leu-pagination.js +1 -1
  72. package/dist/leu-placeholder.js +1 -1
  73. package/dist/leu-popup.d.ts +1 -0
  74. package/dist/leu-popup.js +3 -1
  75. package/dist/leu-progress-bar.js +1 -1
  76. package/dist/leu-radio-group.js +1 -1
  77. package/dist/leu-radio.js +1 -1
  78. package/dist/leu-range.js +1 -1
  79. package/dist/leu-scroll-top.js +1 -1
  80. package/dist/leu-select.d.ts +1 -0
  81. package/dist/leu-select.js +1 -1
  82. package/dist/leu-spinner.js +1 -1
  83. package/dist/leu-table.js +1 -1
  84. package/dist/leu-tag.js +1 -1
  85. package/dist/leu-visually-hidden.js +1 -1
  86. package/dist/vscode.html-custom-data.json +17 -13
  87. package/dist/vue/index.d.ts +29 -27
  88. package/dist/web-types.json +48 -50
  89. package/package.json +1 -1
  90. package/src/components/file-input/FileInput.ts +25 -2
  91. package/src/components/menu/Menu.ts +2 -2
  92. package/src/components/popup/Popup.ts +49 -44
  93. package/src/components/popup/stories/popup.stories.ts +49 -0
  94. package/src/components/popup/test/popup.test.ts +39 -3
  95. package/src/components/select/Select.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-CRdVLttR.js';
2
+ import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  clip: rect(0 0 0 0);
@@ -1,7 +1,12 @@
1
+ import { PropertyValues } from "lit";
1
2
  import { LeuElement } from "../../lib/LeuElement.js";
2
3
  import { LeuButton } from "../../index.js";
3
4
  import { LeuIcon } from "../icon/leu-icon.js";
4
5
  import { LeuVisuallyHidden } from "../visually-hidden/VisuallyHidden.js";
6
+ /**
7
+ * @todo Pluralize text when multiple files are allowed
8
+ * @todo Hide dropzone when not multiple and already filled
9
+ */
5
10
  /**
6
11
  * @tagname leu-file-input
7
12
  */
@@ -39,8 +44,9 @@ export declare class LeuFileInput extends LeuElement {
39
44
  constructor();
40
45
  get form(): HTMLFormElement;
41
46
  get name(): string;
42
- updated(changedProperties: any): void;
47
+ updated(changedProperties: PropertyValues<this>): void;
43
48
  protected handleInput(): void;
49
+ private handleChange;
44
50
  formResetCallback(): void;
45
51
  protected updateFormValue(): void;
46
52
  protected removeFile(fileToRemove: File): void;
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/file-input/FileInput.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AA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AC,eAAe,UAAW,SAAS,UAQ5C;IAGD,SAAS,CAAC,cAAc,UAAW,SAAS,UAK3C;IAED,SAAS,CAAC,eAAe,UAAW,SAAS,UAM5C;IAED,SAAS,CAAC,UAAU,UAAW,SAAS,UAcvC;IAED,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IA4BnC,MAAM;CAkEP"}
@@ -1,3 +1,4 @@
1
+ import { PropertyValues } from "lit";
1
2
  import { LeuElement } from "../../lib/LeuElement.js";
2
3
  import { LeuMenuItem } from "./MenuItem.js";
3
4
  /**
@@ -38,7 +39,7 @@ export declare class LeuMenu extends LeuElement {
38
39
  setCurrentItem(index: any): any;
39
40
  focusItem(index: any): void;
40
41
  firstUpdated(): void;
41
- updated(changedProperties: any): void;
42
+ updated(changedProperties: PropertyValues<this>): void;
42
43
  render(): import("lit-html").TemplateResult<1>;
43
44
  }
44
45
  //# sourceMappingURL=Menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C;;GAEG;AAEH;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,UAAU;;;;;MAEhB;;IAWD,iBAAiB;IAUjB,oBAAoB;IAKpB,iBAAiB;IAKjB,iBAAiB;IAuBjB;;;OAGG;IACH,YAAY;IAOZ,mBAAmB;IAInB,cAAc,CAAC,KAAK,KAAA;IAqBpB,cAAc,CAAC,KAAK,KAAA;IAkBpB,SAAS,CAAC,KAAK,KAAA;IAMf,YAAY;IAIZ,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;CAGP"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C;;GAEG;AAEH;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,UAAU;;;;;MAEhB;;IAWD,iBAAiB;IAUjB,oBAAoB;IAKpB,iBAAiB;IAKjB,iBAAiB;IAuBjB;;;OAGG;IACH,YAAY;IAOZ,mBAAmB;IAInB,cAAc,CAAC,KAAK,KAAA;IAqBpB,cAAc,CAAC,KAAK,KAAA;IAkBpB,SAAS,CAAC,KAAK,KAAA;IAMf,YAAY;IAIZ,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAM/C,MAAM;CAGP"}
@@ -1,7 +1,10 @@
1
+ import { PropertyValues } from "lit";
2
+ import { Placement } from "@floating-ui/dom";
1
3
  import { LeuElement } from "../../lib/LeuElement.js";
2
- /**
3
- * @typedef {"top"|"top-start"|"top-end"|"bottom"|"bottom-start"|"bottom-end"|"left"|"left-start"|"left-end"|"right"|"right-start"|"right-end"} Placement
4
- */
4
+ export interface VirtualElement {
5
+ getBoundingClientRect: () => DOMRect;
6
+ contextElement?: Element;
7
+ }
5
8
  /**
6
9
  * @tagname leu-popup
7
10
  */
@@ -15,50 +18,22 @@ export declare class LeuPopup extends LeuElement {
15
18
  customElements?: CustomElementRegistry;
16
19
  registry?: CustomElementRegistry;
17
20
  };
18
- static properties: {
19
- anchor: {};
20
- active: {
21
- type: BooleanConstructor;
22
- reflect: boolean;
23
- };
24
- placement: {
25
- type: StringConstructor;
26
- reflect: boolean;
27
- };
28
- flip: {
29
- type: BooleanConstructor;
30
- reflect: boolean;
31
- };
32
- shift: {
33
- type: BooleanConstructor;
34
- reflect: boolean;
35
- };
36
- shiftPadding: {
37
- type: NumberConstructor;
38
- reflect: boolean;
39
- };
40
- matchSize: {
41
- type: StringConstructor;
42
- reflect: boolean;
43
- };
44
- autoSize: {
45
- type: StringConstructor;
46
- reflect: boolean;
47
- };
48
- autoSizePadding: {
49
- type: NumberConstructor;
50
- reflect: boolean;
51
- };
52
- };
53
- constructor();
21
+ anchor: Element | string | VirtualElement;
22
+ active: boolean;
23
+ placement?: Placement;
24
+ flip: boolean;
25
+ shift: boolean;
26
+ shiftPadding: number;
27
+ matchSize?: "width" | "height" | "both";
28
+ autoSize?: "width" | "height" | "both";
29
+ autoSizePadding: number;
30
+ private anchorEl;
31
+ private cleanup;
54
32
  disconnectedCallback(): void;
55
- updated(changedProperties: any): void;
56
- /**
57
- * @returns {HTMLElement | null}
58
- */
59
- get popupEl(): Element;
60
- start(): void;
61
- stop(): void;
33
+ updated(changedProperties: PropertyValues<this>): void;
34
+ protected get popupEl(): HTMLDivElement;
35
+ protected start(): void;
36
+ protected stop(): void;
62
37
  reposition(): void;
63
38
  handleAnchorChange(): void;
64
39
  render(): import("lit-html").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/popup/Popup.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD;;GAEG;AAEH;;GAEG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUhB;;IA4BD,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,KAAA;IAkBzB;;OAEG;IACH,IAAI,OAAO,YAEV;IAED,KAAK;IAQL,IAAI;IAOJ,UAAU;IAmFV,kBAAkB;IAmBlB,MAAM;CAQP"}
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/popup/Popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAIL,SAAS,EAGV,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD,MAAM,WAAW,cAAc;IAC7B,qBAAqB,EAAE,MAAM,OAAO,CAAA;IACpC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAWD;;GAEG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAEW,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,cAAc,CAAA;IAGrD,MAAM,EAAE,OAAO,CAAQ;IAGvB,SAAS,CAAC,EAAE,SAAS,CAAA;IAGrB,IAAI,EAAE,OAAO,CAAQ;IAGrB,KAAK,EAAE,OAAO,CAAQ;IAGtB,YAAY,EAAE,MAAM,CAAI;IAGxB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAEI,QAAQ,CAAC,EAChD,OAAO,GACP,QAAQ,GACR,MAAM,CAAA;IAEiC,eAAe,EAAE,MAAM,CAAI;IAEtE,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,OAAO,CAA2C;IAE1D,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAkB/C,SAAS,KAAK,OAAO,mBAEpB;IAED,SAAS,CAAC,KAAK;IAQf,SAAS,CAAC,IAAI;IAOP,UAAU;IAmFjB,kBAAkB;IAsBlB,MAAM;CAQP"}
@@ -14,4 +14,13 @@ declare const _default: {
14
14
  };
15
15
  export default _default;
16
16
  export declare const Regular: any;
17
+ export declare const VirtualElement: {
18
+ render: (args?: {}) => import("lit-html").TemplateResult<1>;
19
+ args: {
20
+ active: boolean;
21
+ placement: string;
22
+ flip: boolean;
23
+ shift: boolean;
24
+ };
25
+ };
17
26
  //# sourceMappingURL=popup.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/popup/stories/popup.stories.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA;AACxB,OAAO,4BAA4B,CAAA;;;;;;;;;;;;;AAEnC,wBAwBC;AAqBD,eAAO,MAAM,OAAO,KAAoB,CAAA"}
1
+ {"version":3,"file":"popup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/popup/stories/popup.stories.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA;AACxB,OAAO,4BAA4B,CAAA;;;;;;;;;;;;;AAEnC,wBAwBC;AAqBD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAQxC,eAAO,MAAM,cAAc;;;;;;;;CA+C1B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { nothing } from "lit";
1
+ import { nothing, PropertyValues } from "lit";
2
2
  import { LeuElement } from "../../lib/LeuElement.js";
3
3
  import { HasSlotController } from "../../lib/hasSlotController.js";
4
4
  import { LeuButton } from "../button/Button.js";
@@ -84,7 +84,7 @@ export declare class LeuSelect extends LeuElement {
84
84
  constructor();
85
85
  connectedCallback(): void;
86
86
  disconnectedCallback(): void;
87
- updated(changedProperties: any): void;
87
+ updated(changedProperties: PropertyValues<this>): void;
88
88
  /**
89
89
  * Apply the current state to the menu items.
90
90
  * - Set the active property when the value property has changed.
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/select/Select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAA;AAKnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MA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B,WAAW,CAAC,KAAK,KAAA;IAUjB,eAAe;IAMf,cAAc;IASd,kBAAkB,CAAC,KAAK,KAAA;IAIxB;;;;OAIG;IACH,WAAW,CAAC,aAAa,KAAA;IAIzB,oBAAoB,CAAC,KAAK,KAAA;IA8B1B,kBAAkB;IAgBlB,kBAAkB;IAkBlB,mBAAmB;IAwCnB,MAAM;CAqDP"}
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ export { LeuRadio } from './Radio.js';
18
18
  export { LeuRadioGroup } from './RadioGroup.js';
19
19
  export { LeuSelect } from './Select.js';
20
20
  export { LeuTable } from './Table.js';
21
- export { L as LeuElement } from './LeuElement-CRdVLttR.js';
21
+ export { L as LeuElement } from './LeuElement-C1c3TgrG.js';
22
22
  import './_tslib-CNEFicEt.js';
23
23
  import 'lit';
24
24
  import 'lit/static-html.js';
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/static-html.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
 
8
8
  LeuAccordion.define("leu-accordion");
9
9
 
@@ -1,6 +1,6 @@
1
1
  import { LeuButtonGroup } from './ButtonGroup.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
  import './Button.js';
5
5
  import './_tslib-CNEFicEt.js';
6
6
  import 'lit/directives/class-map.js';
@@ -5,7 +5,7 @@ import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import 'lit/decorators.js';
7
7
  import './Icon.js';
8
- import './LeuElement-CRdVLttR.js';
8
+ import './LeuElement-C1c3TgrG.js';
9
9
  import './hasSlotController-Bm2tipvG.js';
10
10
 
11
11
  LeuButton.define("leu-button");
@@ -2,7 +2,7 @@ import { LeuChartWrapper } from './ChartWrapper.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
  import './hasSlotController-Bm2tipvG.js';
7
7
  import './Spinner.js';
8
8
 
@@ -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-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './Checkbox.js';
8
8
  import './Icon.js';
9
9
 
@@ -2,7 +2,7 @@ import { LeuCheckbox } from './Checkbox.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
  import './Icon.js';
7
7
 
8
8
  LeuCheckbox.define("leu-checkbox");
@@ -1,6 +1,6 @@
1
1
  import { LeuChipGroup } from './ChipGroup.js';
2
2
  import 'lit/static-html.js';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
  import 'lit';
5
5
 
6
6
  LeuChipGroup.define("leu-chip-group");
@@ -1,7 +1,7 @@
1
1
  import { LeuChipLink } from './ChipLink.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
 
6
6
  LeuChipLink.define("leu-chip-link");
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { LeuChipRemovable } from './ChipRemovable.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
  import './Icon.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/decorators.js';
@@ -1,7 +1,7 @@
1
1
  import { LeuChipSelectable } from './ChipSelectable.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
 
6
6
  LeuChipSelectable.define("leu-chip-selectable");
7
7
 
@@ -2,7 +2,7 @@ import { LeuDialog } from './Dialog.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/ref.js';
4
4
  import 'lit/directives/class-map.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
  import './hasSlotController-Bm2tipvG.js';
7
7
  import './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
@@ -8,6 +8,7 @@ import './Icon.js';
8
8
  import './Menu.js';
9
9
  import './MenuItem.js';
10
10
  import './Popup.js';
11
+ import '@floating-ui/dom';
11
12
 
12
13
  declare global {
13
14
  interface HTMLElementTagNameMap {
@@ -1,7 +1,7 @@
1
1
  import { LeuDropdown } from './Dropdown.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/ref.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
  import './hasSlotController-Bm2tipvG.js';
6
6
  import './Button.js';
7
7
  import './_tslib-CNEFicEt.js';
@@ -4,7 +4,7 @@ import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import 'lit/directives/class-map.js';
7
- import './LeuElement-CRdVLttR.js';
7
+ import './LeuElement-C1c3TgrG.js';
8
8
  import './Accordion.js';
9
9
  import 'lit/static-html.js';
10
10
  import './Button.js';
package/dist/leu-icon.js CHANGED
@@ -2,7 +2,7 @@ import { LeuIcon } from './Icon.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
 
7
7
  LeuIcon.define("leu-icon");
8
8
 
package/dist/leu-input.js CHANGED
@@ -4,7 +4,7 @@ import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import 'lit/directives/live.js';
6
6
  import 'lit/directives/ref.js';
7
- import './LeuElement-CRdVLttR.js';
7
+ import './LeuElement-C1c3TgrG.js';
8
8
  import './Icon.js';
9
9
  import './_tslib-CNEFicEt.js';
10
10
  import 'lit/decorators.js';
@@ -1,7 +1,7 @@
1
1
  import { LeuMenuItem } from './MenuItem.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/if-defined.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
  import './Icon.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/decorators.js';
package/dist/leu-menu.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuMenu } from './Menu.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
  import './MenuItem.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import './Icon.js';
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import 'lit/directives/class-map.js';
6
- import './LeuElement-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './Icon.js';
8
8
  import './hasSlotController-Bm2tipvG.js';
9
9
 
@@ -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-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './Button.js';
8
8
  import 'lit/directives/class-map.js';
9
9
  import 'lit/directives/if-defined.js';
@@ -1,6 +1,6 @@
1
1
  import { LeuPlaceholder } from './Placeholder.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
 
5
5
  LeuPlaceholder.define("leu-placeholder");
6
6
 
@@ -1,6 +1,7 @@
1
1
  import { LeuPopup } from './Popup.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
+ import '@floating-ui/dom';
4
5
  import './LeuElement.d-BevHqLUu.js';
5
6
 
6
7
  declare global {
package/dist/leu-popup.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import { LeuPopup } from './Popup.js';
2
+ import './_tslib-CNEFicEt.js';
2
3
  import 'lit';
4
+ import 'lit/decorators.js';
3
5
  import '@floating-ui/dom';
4
- import './LeuElement-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
5
7
 
6
8
  LeuPopup.define("leu-popup");
7
9
 
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
 
8
8
  LeuProgressBar.define("leu-progress-bar");
9
9
 
@@ -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-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './Radio.js';
8
8
 
9
9
  LeuRadioGroup.define("leu-radio-group");
package/dist/leu-radio.js CHANGED
@@ -2,7 +2,7 @@ import { LeuRadio } from './Radio.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
 
7
7
  LeuRadio.define("leu-radio");
8
8
 
package/dist/leu-range.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuRange } from './Range.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
 
5
5
  LeuRange.define("leu-range");
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { LeuScrollTop } from './ScrollTop.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
- import './LeuElement-CRdVLttR.js';
4
+ import './LeuElement-C1c3TgrG.js';
5
5
  import './Button.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/directives/if-defined.js';
@@ -9,6 +9,7 @@ import './Menu.js';
9
9
  import './MenuItem.js';
10
10
  import './Input.js';
11
11
  import './Popup.js';
12
+ import '@floating-ui/dom';
12
13
 
13
14
  declare global {
14
15
  interface HTMLElementTagNameMap {
@@ -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-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './hasSlotController-Bm2tipvG.js';
8
8
  import './Button.js';
9
9
  import './_tslib-CNEFicEt.js';
@@ -1,6 +1,6 @@
1
1
  import { LeuSpinner } from './Spinner.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
 
5
5
  LeuSpinner.define("leu-spinner");
6
6
 
package/dist/leu-table.js CHANGED
@@ -3,7 +3,7 @@ import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/style-map.js';
5
5
  import 'lit/directives/ref.js';
6
- import './LeuElement-CRdVLttR.js';
6
+ import './LeuElement-C1c3TgrG.js';
7
7
  import './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
9
9
  import 'lit/decorators.js';
package/dist/leu-tag.js CHANGED
@@ -2,7 +2,7 @@ import { LeuTag } from './Tag.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-CRdVLttR.js';
5
+ import './LeuElement-C1c3TgrG.js';
6
6
 
7
7
  LeuTag.define("leu-tag");
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
2
2
  import 'lit';
3
- import './LeuElement-CRdVLttR.js';
3
+ import './LeuElement-C1c3TgrG.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
@@ -34,6 +34,17 @@
34
34
  }
35
35
  ]
36
36
  },
37
+ {
38
+ "name": "leu-button-group",
39
+ "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",
40
+ "attributes": [],
41
+ "references": [
42
+ {
43
+ "name": "Documentation",
44
+ "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
45
+ }
46
+ ]
47
+ },
37
48
  {
38
49
  "name": "leu-button",
39
50
  "description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
@@ -109,17 +120,6 @@
109
120
  }
110
121
  ]
111
122
  },
112
- {
113
- "name": "leu-button-group",
114
- "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",
115
- "attributes": [],
116
- "references": [
117
- {
118
- "name": "Documentation",
119
- "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
120
- }
121
- ]
122
- },
123
123
  {
124
124
  "name": "leu-chart-wrapper",
125
125
  "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.",
@@ -299,7 +299,7 @@
299
299
  },
300
300
  {
301
301
  "name": "leu-file-input",
302
- "description": "\n---\n",
302
+ "description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
303
303
  "attributes": [
304
304
  { "name": "label", "values": [] },
305
305
  {
@@ -604,7 +604,10 @@
604
604
  "name": "leu-popup",
605
605
  "description": "\n---\n",
606
606
  "attributes": [
607
- { "name": "anchor", "values": [{ "name": "HTMLElement" }] },
607
+ {
608
+ "name": "anchor",
609
+ "values": [{ "name": "Element" }, { "name": "VirtualElement" }]
610
+ },
608
611
  { "name": "active", "values": [] },
609
612
  { "name": "placement", "values": [{ "name": "Placement" }] },
610
613
  { "name": "flip", "values": [] },
@@ -621,6 +624,7 @@
621
624
  {
622
625
  "name": "autoSize",
623
626
  "values": [
627
+ { "name": "" },
624
628
  { "name": "width" },
625
629
  { "name": "height" },
626
630
  { "name": "both" }