@statistikzh/leu 0.19.2 → 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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.d.ts +1 -0
- package/dist/Dropdown.js +1 -1
- package/dist/FileInput.d.ts +2 -1
- package/dist/FileInput.js +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-CcarVabH.js → LeuElement-C1c3TgrG.js} +1 -1
- package/dist/Menu.d.ts +2 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.d.ts +22 -46
- package/dist/Popup.js +40 -31
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.d.ts +3 -2
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/file-input/FileInput.d.ts +2 -1
- package/dist/components/file-input/FileInput.d.ts.map +1 -1
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/popup/Popup.d.ts +21 -46
- package/dist/components/popup/Popup.d.ts.map +1 -1
- package/dist/components/popup/stories/popup.stories.d.ts +9 -0
- package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
- package/dist/components/select/Select.d.ts +2 -2
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- 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-dialog.js +1 -1
- package/dist/leu-dropdown.d.ts +1 -0
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-file-input.js +1 -1
- 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-message.js +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.d.ts +1 -0
- package/dist/leu-popup.js +3 -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 +1 -1
- package/dist/leu-scroll-top.js +1 -1
- package/dist/leu-select.d.ts +1 -0
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +16 -12
- package/dist/vue/index.d.ts +20 -26
- package/dist/web-types.json +39 -47
- package/package.json +1 -1
- package/src/components/file-input/FileInput.ts +2 -2
- package/src/components/menu/Menu.ts +2 -2
- package/src/components/popup/Popup.ts +49 -44
- package/src/components/popup/stories/popup.stories.ts +49 -0
- package/src/components/popup/test/popup.test.ts +39 -3
- package/src/components/select/Select.ts +2 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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:
|
|
56
|
-
|
|
57
|
-
|
|
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":"
|
|
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:
|
|
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;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/select/Select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAI5C;;;;;;;;;;;;;GAaG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,MAAM,CAAC,YAAY;;;;;;;MAOlB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,KAAK,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwBpB;IAED,MAAM,CAAC,cAAc,CAAC,MAAM,KAAA;IAO5B;;OAEG;IACH,iBAAiB,oBAAmD;;IAyCpE,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IA4B/C;;;;OAIG;IACG,gBAAgB,CAAC,OAAO,KAAA;IA6C9B;;;;;OAKG;IACH,qBAAqB;IAQrB;;;;OAIG;IACH,oBAAoB,uBAInB;IAED;;;OAGG;IACH,cAAc,uBAIb;IAED;;;OAGG;IACG,oBAAoB,CAAC,KAAK,KAAA;IAiBhC;;;OAGG;IACH,yBAAyB,CAAC,KAAK,KAAA;IAQ/B;;;OAGG;IACH,gBAAgB;IAQhB,eAAe;IAQf,gBAAgB;IAQhB,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-
|
|
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';
|
package/dist/leu-accordion.js
CHANGED
package/dist/leu-button-group.js
CHANGED
package/dist/leu-button.js
CHANGED
|
@@ -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-
|
|
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-
|
|
5
|
+
import './LeuElement-C1c3TgrG.js';
|
|
6
6
|
import './hasSlotController-Bm2tipvG.js';
|
|
7
7
|
import './Spinner.js';
|
|
8
8
|
|
package/dist/leu-checkbox.js
CHANGED
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
package/dist/leu-dialog.js
CHANGED
|
@@ -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-
|
|
5
|
+
import './LeuElement-C1c3TgrG.js';
|
|
6
6
|
import './hasSlotController-Bm2tipvG.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-dropdown.d.ts
CHANGED
package/dist/leu-dropdown.js
CHANGED
|
@@ -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-
|
|
4
|
+
import './LeuElement-C1c3TgrG.js';
|
|
5
5
|
import './hasSlotController-Bm2tipvG.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-file-input.js
CHANGED
|
@@ -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-
|
|
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
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-
|
|
7
|
+
import './LeuElement-C1c3TgrG.js';
|
|
8
8
|
import './Icon.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
|
10
10
|
import 'lit/decorators.js';
|
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-message.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.d.ts
CHANGED
package/dist/leu-popup.js
CHANGED
package/dist/leu-progress-bar.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -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-
|
|
4
|
+
import './LeuElement-C1c3TgrG.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import './_tslib-CNEFicEt.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-select.d.ts
CHANGED
package/dist/leu-select.js
CHANGED
|
@@ -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-
|
|
6
|
+
import './LeuElement-C1c3TgrG.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
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-
|
|
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
|
@@ -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.",
|
|
@@ -604,7 +604,10 @@
|
|
|
604
604
|
"name": "leu-popup",
|
|
605
605
|
"description": "\n---\n",
|
|
606
606
|
"attributes": [
|
|
607
|
-
{
|
|
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" }
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DefineComponent } from "vue";
|
|
2
2
|
|
|
3
3
|
import type { LeuAccordion } from "../Accordion.js";
|
|
4
|
-
import type { LeuButton } from "../Button.js";
|
|
5
4
|
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
|
+
import type { LeuButton } from "../Button.js";
|
|
6
6
|
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
7
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
8
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
@@ -43,6 +43,13 @@ 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
|
+
|
|
46
53
|
type LeuButtonProps = {
|
|
47
54
|
/** `aria-label` of the underlying button elements.
|
|
48
55
|
Use it to provide a label when only an icon is visible. */
|
|
@@ -74,13 +81,6 @@ If it is set, the icon will either show an expanded or collapsed state. */
|
|
|
74
81
|
fluid?: LeuButton["fluid"];
|
|
75
82
|
};
|
|
76
83
|
|
|
77
|
-
type LeuButtonGroupProps = {
|
|
78
|
-
/** The value of the currently selected (active) button */
|
|
79
|
-
value?: LeuButtonGroup["value"];
|
|
80
|
-
/** When the value of the group changes by clicking a button */
|
|
81
|
-
oninput?: (e: CustomEvent<never>) => void;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
84
|
type LeuChartWrapperProps = {
|
|
85
85
|
/** Whether the chart is currently loading or not.
|
|
86
86
|
When set to `true`, a spinner will be shown in the chart container. */
|
|
@@ -351,12 +351,6 @@ type LeuPopupProps = {
|
|
|
351
351
|
autoSize?: LeuPopup["autoSize"];
|
|
352
352
|
/** */
|
|
353
353
|
autoSizePadding?: LeuPopup["autoSizePadding"];
|
|
354
|
-
/** */
|
|
355
|
-
popupEl?: LeuPopup["popupEl"];
|
|
356
|
-
/** */
|
|
357
|
-
anchorEl?: LeuPopup["anchorEl"];
|
|
358
|
-
/** */
|
|
359
|
-
cleanup?: LeuPopup["cleanup"];
|
|
360
354
|
};
|
|
361
355
|
|
|
362
356
|
type LeuProgressBarProps = {
|
|
@@ -506,18 +500,6 @@ export type CustomElements = {
|
|
|
506
500
|
*/
|
|
507
501
|
"leu-accordion": DefineComponent<LeuAccordionProps>;
|
|
508
502
|
|
|
509
|
-
/**
|
|
510
|
-
*
|
|
511
|
-
* ---
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
* ### **Slots:**
|
|
515
|
-
* - **before** - The icon to display before the label
|
|
516
|
-
* - **after** - The icon to display after the label
|
|
517
|
-
* - _default_ - The label of the button or the icon if no label is set
|
|
518
|
-
*/
|
|
519
|
-
"leu-button": DefineComponent<LeuButtonProps>;
|
|
520
|
-
|
|
521
503
|
/**
|
|
522
504
|
* A radio input-like button group component.
|
|
523
505
|
* It allows only one button to be active at a time.
|
|
@@ -532,6 +514,18 @@ export type CustomElements = {
|
|
|
532
514
|
*/
|
|
533
515
|
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
534
516
|
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* ---
|
|
520
|
+
*
|
|
521
|
+
*
|
|
522
|
+
* ### **Slots:**
|
|
523
|
+
* - **before** - The icon to display before the label
|
|
524
|
+
* - **after** - The icon to display after the label
|
|
525
|
+
* - _default_ - The label of the button or the icon if no label is set
|
|
526
|
+
*/
|
|
527
|
+
"leu-button": DefineComponent<LeuButtonProps>;
|
|
528
|
+
|
|
535
529
|
/**
|
|
536
530
|
* A wrapper element for charts.
|
|
537
531
|
* ---
|