@adyen/bento-vue2 1.14.0 → 1.15.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/dist/@types/components.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +17 -2
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue.d.ts +32 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +33 -22
- package/dist/@types/packages/vue2/src/components/input-field/input-field.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +0 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +0 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +0 -9
- package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -16
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +1 -7
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +53 -30
- package/dist/@types/packages/vue2/src/utils/ts/i18n.d.ts +7 -33
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +126 -102
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +2 -2
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chunks/{base-modal.babcdf50.js → base-modal.4f6eb218.js} +43 -47
- package/dist/chunks/base-modal.4f6eb218.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.d17b184d.js → button-actions-with-menu.abb1c2a7.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.d17b184d.js.map → button-actions-with-menu.abb1c2a7.js.map} +1 -1
- package/dist/chunks/{button.788944f8.js → button.a554a1a8.js} +2 -2
- package/dist/chunks/{button.788944f8.js.map → button.a554a1a8.js.map} +1 -1
- package/dist/chunks/{calendar.2d4f2237.js → calendar.9dc9c0d2.js} +2 -2
- package/dist/chunks/{calendar.2d4f2237.js.map → calendar.9dc9c0d2.js.map} +1 -1
- package/dist/chunks/{copy.c1a67fc6.js → copy.2b6e032b.js} +4 -4
- package/dist/chunks/{copy.c1a67fc6.js.map → copy.2b6e032b.js.map} +1 -1
- package/dist/chunks/{dropdown.ca5ff514.js → dropdown.75441496.js} +197 -197
- package/dist/chunks/dropdown.75441496.js.map +1 -0
- package/dist/chunks/{fixed-scroller.80e51c1b.js → fixed-scroller.f631634d.js} +2 -2
- package/dist/chunks/{fixed-scroller.80e51c1b.js.map → fixed-scroller.f631634d.js.map} +1 -1
- package/dist/chunks/{footer-actions.d77abe77.js → footer-actions.c90de730.js} +2 -2
- package/dist/chunks/{footer-actions.d77abe77.js.map → footer-actions.c90de730.js.map} +1 -1
- package/dist/chunks/i18n.eb5b985b.js.map +1 -1
- package/dist/chunks/{index.71638f79.js → index.009455ee.js} +2 -2
- package/dist/chunks/{index.71638f79.js.map → index.009455ee.js.map} +1 -1
- package/dist/chunks/{index.3e96615d.js → index.1163f656.js} +8 -8
- package/dist/chunks/index.1163f656.js.map +1 -0
- package/dist/chunks/index.15c0dba4.js +1683 -0
- package/dist/chunks/index.15c0dba4.js.map +1 -0
- package/dist/chunks/{index.a663e8fe.js → index.15d681a1.js} +4 -4
- package/dist/chunks/{index.a663e8fe.js.map → index.15d681a1.js.map} +1 -1
- package/dist/chunks/{index.4fa8a7fe.js → index.3e375af4.js} +2 -2
- package/dist/chunks/{index.4fa8a7fe.js.map → index.3e375af4.js.map} +1 -1
- package/dist/chunks/{index.7ed46af7.js → index.7103d894.js} +2 -2
- package/dist/chunks/{index.7ed46af7.js.map → index.7103d894.js.map} +1 -1
- package/dist/chunks/{index.c01ee9cc.js → index.76fd4e58.js} +23 -23
- package/dist/chunks/{index.c01ee9cc.js.map → index.76fd4e58.js.map} +1 -1
- package/dist/chunks/{index.0a20d7ce.js → index.a1dad6fc.js} +5 -5
- package/dist/chunks/{index.0a20d7ce.js.map → index.a1dad6fc.js.map} +1 -1
- package/dist/chunks/{index.3fe9a55c.js → index.d9b801d1.js} +5 -5
- package/dist/chunks/{index.3fe9a55c.js.map → index.d9b801d1.js.map} +1 -1
- package/dist/chunks/{index.5cd5af15.js → index.f4162086.js} +3 -3
- package/dist/chunks/{index.5cd5af15.js.map → index.f4162086.js.map} +1 -1
- package/dist/chunks/info.8b6328aa.js +26 -0
- package/dist/chunks/info.8b6328aa.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.0e778735.js → listbox-option-tag.fed72c34.js} +2 -2
- package/dist/chunks/{listbox-option-tag.0e778735.js.map → listbox-option-tag.fed72c34.js.map} +1 -1
- package/dist/chunks/{listbox.a440c634.js → listbox.b021b864.js} +2 -2
- package/dist/chunks/{listbox.a440c634.js.map → listbox.b021b864.js.map} +1 -1
- package/dist/chunks/{loading-button.4fd20d2d.js → loading-button.07afbfbc.js} +2 -2
- package/dist/chunks/{loading-button.4fd20d2d.js.map → loading-button.07afbfbc.js.map} +1 -1
- package/dist/chunks/{tooltip.3502709e.js → tooltip.ed1cdb86.js} +2 -2
- package/dist/chunks/{tooltip.3502709e.js.map → tooltip.ed1cdb86.js.map} +1 -1
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +7 -1678
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +14 -14
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +5 -5
- package/dist/empty-state.js +2 -2
- package/dist/filter-bar.js +12 -12
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +190 -122
- package/dist/header.js.map +1 -1
- package/dist/index.js +306 -244
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +16 -34
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +44 -42
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +5 -5
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +100 -107
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +3 -3
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +17 -17
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +2 -2
- package/dist/sidepanel.js +6 -6
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +8 -8
- package/dist/tag.js +2 -2
- package/dist/textarea.js +2 -2
- package/dist/timeline.js +4 -4
- package/dist/toast.js +2 -2
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +4 -4
- package/dist/web-types.json +87 -62
- package/package.json +2 -2
- package/dist/chunks/base-modal.babcdf50.js.map +0 -1
- package/dist/chunks/dropdown.ca5ff514.js.map +0 -1
- package/dist/chunks/index.3e96615d.js.map +0 -1
package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts
CHANGED
|
@@ -7,29 +7,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
7
7
|
actions: import("../..").BentoButtonActionsList;
|
|
8
8
|
infoIconTooltipText: string;
|
|
9
9
|
lastUpdated: number | Date;
|
|
10
|
+
infoIconPopoverPosition: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition;
|
|
10
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
|
|
12
|
-
type: PropType<
|
|
13
|
-
default:
|
|
14
|
-
validator: (value: import("../../components/header/header.types").BentoHeaderVariant) => boolean;
|
|
15
|
-
};
|
|
16
|
-
title: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
required: true;
|
|
12
|
+
actions: {
|
|
13
|
+
type: PropType<import("../..").BentoButtonActionsList>;
|
|
14
|
+
default: any;
|
|
19
15
|
};
|
|
20
16
|
infoIconTooltipText: {
|
|
21
17
|
type: StringConstructor;
|
|
22
18
|
default: any;
|
|
23
19
|
};
|
|
24
|
-
|
|
25
|
-
type: PropType<import("
|
|
26
|
-
default:
|
|
20
|
+
infoIconPopoverPosition: {
|
|
21
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition>;
|
|
22
|
+
default: import("../../components/popper-container").PopperContainerPositionExtended;
|
|
23
|
+
validator: (value: import("../../components/popper-container").PopperContainerPosition) => boolean;
|
|
27
24
|
};
|
|
28
25
|
lastUpdated: {
|
|
29
26
|
type: (DateConstructor | NumberConstructor)[];
|
|
30
27
|
default: any;
|
|
31
28
|
};
|
|
32
|
-
}>>, import("vue/types/v3-component-props").DefaultKeys<{
|
|
33
29
|
variant: {
|
|
34
30
|
type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
|
|
35
31
|
default: import("../../components/header/header.types").BentoHeaderVariant;
|
|
@@ -39,18 +35,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
35
|
type: StringConstructor;
|
|
40
36
|
required: true;
|
|
41
37
|
};
|
|
38
|
+
}>>, import("vue/types/v3-component-props").DefaultKeys<{
|
|
39
|
+
actions: {
|
|
40
|
+
type: PropType<import("../..").BentoButtonActionsList>;
|
|
41
|
+
default: any;
|
|
42
|
+
};
|
|
42
43
|
infoIconTooltipText: {
|
|
43
44
|
type: StringConstructor;
|
|
44
45
|
default: any;
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
-
type: PropType<import("
|
|
48
|
-
default:
|
|
47
|
+
infoIconPopoverPosition: {
|
|
48
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition>;
|
|
49
|
+
default: import("../../components/popper-container").PopperContainerPositionExtended;
|
|
50
|
+
validator: (value: import("../../components/popper-container").PopperContainerPosition) => boolean;
|
|
49
51
|
};
|
|
50
52
|
lastUpdated: {
|
|
51
53
|
type: (DateConstructor | NumberConstructor)[];
|
|
52
54
|
default: any;
|
|
53
55
|
};
|
|
56
|
+
variant: {
|
|
57
|
+
type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
|
|
58
|
+
default: import("../../components/header/header.types").BentoHeaderVariant;
|
|
59
|
+
validator: (value: import("../../components/header/header.types").BentoHeaderVariant) => boolean;
|
|
60
|
+
};
|
|
61
|
+
title: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
54
65
|
}>>>>;
|
|
55
66
|
required: true;
|
|
56
67
|
};
|
|
@@ -69,29 +80,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
80
|
actions: import("../..").BentoButtonActionsList;
|
|
70
81
|
infoIconTooltipText: string;
|
|
71
82
|
lastUpdated: number | Date;
|
|
83
|
+
infoIconPopoverPosition: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition;
|
|
72
84
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
73
|
-
|
|
74
|
-
type: PropType<
|
|
75
|
-
default:
|
|
76
|
-
validator: (value: import("../../components/header/header.types").BentoHeaderVariant) => boolean;
|
|
77
|
-
};
|
|
78
|
-
title: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
required: true;
|
|
85
|
+
actions: {
|
|
86
|
+
type: PropType<import("../..").BentoButtonActionsList>;
|
|
87
|
+
default: any;
|
|
81
88
|
};
|
|
82
89
|
infoIconTooltipText: {
|
|
83
90
|
type: StringConstructor;
|
|
84
91
|
default: any;
|
|
85
92
|
};
|
|
86
|
-
|
|
87
|
-
type: PropType<import("
|
|
88
|
-
default:
|
|
93
|
+
infoIconPopoverPosition: {
|
|
94
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition>;
|
|
95
|
+
default: import("../../components/popper-container").PopperContainerPositionExtended;
|
|
96
|
+
validator: (value: import("../../components/popper-container").PopperContainerPosition) => boolean;
|
|
89
97
|
};
|
|
90
98
|
lastUpdated: {
|
|
91
99
|
type: (DateConstructor | NumberConstructor)[];
|
|
92
100
|
default: any;
|
|
93
101
|
};
|
|
94
|
-
}>>, import("vue/types/v3-component-props").DefaultKeys<{
|
|
95
102
|
variant: {
|
|
96
103
|
type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
|
|
97
104
|
default: import("../../components/header/header.types").BentoHeaderVariant;
|
|
@@ -101,18 +108,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
101
108
|
type: StringConstructor;
|
|
102
109
|
required: true;
|
|
103
110
|
};
|
|
111
|
+
}>>, import("vue/types/v3-component-props").DefaultKeys<{
|
|
112
|
+
actions: {
|
|
113
|
+
type: PropType<import("../..").BentoButtonActionsList>;
|
|
114
|
+
default: any;
|
|
115
|
+
};
|
|
104
116
|
infoIconTooltipText: {
|
|
105
117
|
type: StringConstructor;
|
|
106
118
|
default: any;
|
|
107
119
|
};
|
|
108
|
-
|
|
109
|
-
type: PropType<import("
|
|
110
|
-
default:
|
|
120
|
+
infoIconPopoverPosition: {
|
|
121
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../../components/popper-container").PopperContainerPosition>;
|
|
122
|
+
default: import("../../components/popper-container").PopperContainerPositionExtended;
|
|
123
|
+
validator: (value: import("../../components/popper-container").PopperContainerPosition) => boolean;
|
|
111
124
|
};
|
|
112
125
|
lastUpdated: {
|
|
113
126
|
type: (DateConstructor | NumberConstructor)[];
|
|
114
127
|
default: any;
|
|
115
128
|
};
|
|
129
|
+
variant: {
|
|
130
|
+
type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
|
|
131
|
+
default: import("../../components/header/header.types").BentoHeaderVariant;
|
|
132
|
+
validator: (value: import("../../components/header/header.types").BentoHeaderVariant) => boolean;
|
|
133
|
+
};
|
|
134
|
+
title: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
required: true;
|
|
137
|
+
};
|
|
116
138
|
}>>>>;
|
|
117
139
|
required: true;
|
|
118
140
|
};
|
|
@@ -128,6 +150,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
128
150
|
tabs: BentoDataGridTemplateTabs;
|
|
129
151
|
stickyTabs: boolean;
|
|
130
152
|
}>, Record<string, (_: {}) => any> & {
|
|
153
|
+
infoIconTooltipContent: (_: {}) => any;
|
|
131
154
|
additionalContent: (_: {}) => any;
|
|
132
155
|
default: (_: {}) => any;
|
|
133
156
|
}>;
|
|
@@ -12,12 +12,12 @@ export declare function createI18n(options?: {
|
|
|
12
12
|
}): VueI18n;
|
|
13
13
|
export interface Composer<MessageKey> {
|
|
14
14
|
locale: WritableComputedRef<string>;
|
|
15
|
-
t(key: MessageKey, values?: VueI18n.Values): string;
|
|
16
|
-
tc(key: MessageKey, choice?: VueI18n.Choice, values?: VueI18n.Values): string;
|
|
17
|
-
tc(key: MessageKey, choice: VueI18n.Choice, locale: VueI18n.Locale, values?: VueI18n.Values): string;
|
|
18
|
-
te(key: MessageKey, locale?: VueI18n.Locale): boolean;
|
|
19
|
-
d
|
|
20
|
-
n
|
|
15
|
+
t?(key: MessageKey, values?: VueI18n.Values): string;
|
|
16
|
+
tc?(key: MessageKey, choice?: VueI18n.Choice, values?: VueI18n.Values): string;
|
|
17
|
+
tc?(key: MessageKey, choice: VueI18n.Choice, locale: VueI18n.Locale, values?: VueI18n.Values): string;
|
|
18
|
+
te?(key: MessageKey, locale?: VueI18n.Locale): boolean;
|
|
19
|
+
d?: typeof VueI18n.prototype.d;
|
|
20
|
+
n?: typeof VueI18n.prototype.n;
|
|
21
21
|
}
|
|
22
22
|
export type MessageKeys = {
|
|
23
23
|
[key: string]: string;
|
|
@@ -34,33 +34,7 @@ export declare const useI18n: <T extends {
|
|
|
34
34
|
message: MessageKeys;
|
|
35
35
|
}>(params?: {
|
|
36
36
|
messages?: i18nMessages;
|
|
37
|
-
} | undefined, onlyLocale?: boolean) => Composer<keyof T["message"]
|
|
38
|
-
locale: WritableComputedRef<Locales>;
|
|
39
|
-
t: import("vue-i18n-bridge").ComposerTranslation<i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
40
|
-
[x: string]: import("vue-i18n-bridge").LocaleMessageValue<import("vue-i18n-bridge").VueMessageType>;
|
|
41
|
-
}>, never, import("@intlify/core-base")._ResourcePath<{
|
|
42
|
-
[key: string]: string;
|
|
43
|
-
}>, import("@intlify/core-base")._ResourcePath<{
|
|
44
|
-
[key: string]: string;
|
|
45
|
-
}>>;
|
|
46
|
-
d: import("vue-i18n-bridge").ComposerDateTimeFormatting<{}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
47
|
-
[x: string]: import("@intlify/core-base").DateTimeFormatOptions;
|
|
48
|
-
}>, never, never, never>;
|
|
49
|
-
te: <Str extends string, Key extends import("@intlify/core-base")._ResourcePath<{
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
}> = import("@intlify/core-base")._ResourcePath<{
|
|
52
|
-
[key: string]: string;
|
|
53
|
-
}>>(key: Str | Key, locale?: string) => boolean;
|
|
54
|
-
n: import("vue-i18n-bridge").ComposerNumberFormatting<{}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
55
|
-
[x: string]: import("@intlify/core-base").NumberFormatOptions;
|
|
56
|
-
}>, never, never, never>;
|
|
57
|
-
} | {
|
|
58
|
-
locale: WritableComputedRef<string>;
|
|
59
|
-
t?: undefined;
|
|
60
|
-
d?: undefined;
|
|
61
|
-
te?: undefined;
|
|
62
|
-
n?: undefined;
|
|
63
|
-
};
|
|
37
|
+
} | undefined, onlyLocale?: boolean) => Composer<keyof T["message"]>;
|
|
64
38
|
export declare const getI18nComponent: () => "i18n-t" | "i18n";
|
|
65
39
|
export declare const getI18nProps: (path: string) => {
|
|
66
40
|
path: string;
|
package/dist/accordion.js
CHANGED
|
@@ -5,7 +5,7 @@ import { C as O, a as T } from "./chunks/chevron-up.81185563.js";
|
|
|
5
5
|
import { g as d } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as E } from "./chunks/resize.a041304d.js";
|
|
7
7
|
import { u as N } from "./chunks/use-expandable-content-height.62fc84e5.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index2.css";
|
|
9
9
|
const m = Symbol("accordion title size injection key"), S = {}, z = /* @__PURE__ */ p({
|
|
10
10
|
...S,
|
|
11
11
|
__name: "accordion",
|
package/dist/action-bar.js
CHANGED
|
@@ -1,112 +1,117 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
1
|
+
import { onMounted as O, nextTick as y, getCurrentScope as x, onScopeDispose as P, unref as F, getCurrentInstance as T, ref as _, watch as C, watchEffect as R, computed as b, defineComponent as k, toRefs as j, provide as D } from "vue";
|
|
2
|
+
import { a as G } from "./chunks/button.a554a1a8.js";
|
|
3
|
+
import { B as z } from "./chunks/index.ee11faa7.js";
|
|
4
|
+
import { B as H } from "./chunks/button-actions-with-menu.abb1c2a7.js";
|
|
5
|
+
import { C as U } from "./chunks/cross.04678d81.js";
|
|
6
|
+
import { u as Y } from "./chunks/i18n.eb5b985b.js";
|
|
7
7
|
import "./chunks/index.4c062058.js";
|
|
8
|
-
import { P as
|
|
9
|
-
import {
|
|
10
|
-
import "./
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { P as K } from "./chunks/index.15d681a1.js";
|
|
9
|
+
import { BentoButtonActions as Q } from "./button.js";
|
|
10
|
+
import { n as $ } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
11
|
+
import "./assets/index3.css";
|
|
12
|
+
function N(e) {
|
|
13
|
+
return x() ? (P(e), !0) : !1;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
return typeof e == "function" ? e() :
|
|
15
|
+
function S(e) {
|
|
16
|
+
return typeof e == "function" ? e() : F(e);
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const q = typeof window < "u" && typeof document < "u";
|
|
18
19
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
19
|
-
const
|
|
20
|
+
const J = Object.prototype.toString, Z = (e) => J.call(e) === "[object Object]", X = () => {
|
|
20
21
|
};
|
|
21
|
-
function
|
|
22
|
-
return e ||
|
|
22
|
+
function tt(e) {
|
|
23
|
+
return e || T();
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
25
|
+
function et(e, n = !0, t) {
|
|
26
|
+
tt() ? O(e, t) : n ? e() : y(e);
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function nt(e) {
|
|
28
29
|
var n;
|
|
29
|
-
const t =
|
|
30
|
+
const t = S(e);
|
|
30
31
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
31
32
|
}
|
|
32
|
-
const I =
|
|
33
|
-
function
|
|
34
|
-
let n, t, o,
|
|
35
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o,
|
|
36
|
-
return
|
|
33
|
+
const I = q ? window : void 0;
|
|
34
|
+
function ot(...e) {
|
|
35
|
+
let n, t, o, a;
|
|
36
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, a] = e, n = I) : [n, t, o, a] = e, !n)
|
|
37
|
+
return X;
|
|
37
38
|
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
38
|
-
const r = [],
|
|
39
|
-
r.forEach((
|
|
40
|
-
},
|
|
41
|
-
() => [
|
|
42
|
-
([
|
|
43
|
-
if (
|
|
39
|
+
const r = [], i = () => {
|
|
40
|
+
r.forEach((c) => c()), r.length = 0;
|
|
41
|
+
}, s = (c, d, v, f) => (c.addEventListener(d, v, f), () => c.removeEventListener(d, v, f)), u = C(
|
|
42
|
+
() => [nt(n), S(a)],
|
|
43
|
+
([c, d]) => {
|
|
44
|
+
if (i(), !c)
|
|
44
45
|
return;
|
|
45
|
-
const
|
|
46
|
+
const v = Z(d) ? { ...d } : d;
|
|
46
47
|
r.push(
|
|
47
|
-
...t.flatMap((
|
|
48
|
+
...t.flatMap((f) => o.map((l) => s(c, f, l, v)))
|
|
48
49
|
);
|
|
49
50
|
},
|
|
50
51
|
{ immediate: !0, flush: "post" }
|
|
51
|
-
),
|
|
52
|
-
u(),
|
|
52
|
+
), p = () => {
|
|
53
|
+
u(), i();
|
|
53
54
|
};
|
|
54
|
-
return
|
|
55
|
+
return N(p), p;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
const e =
|
|
58
|
-
return
|
|
57
|
+
function at() {
|
|
58
|
+
const e = _(!1);
|
|
59
|
+
return T() && O(() => {
|
|
59
60
|
e.value = !0;
|
|
60
61
|
}), e;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
const n =
|
|
64
|
-
return
|
|
63
|
+
function it(e) {
|
|
64
|
+
const n = at();
|
|
65
|
+
return b(() => (n.value, !!e()));
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
const { window: t = I } = n, o =
|
|
68
|
-
let
|
|
69
|
-
const r =
|
|
70
|
-
r.value =
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
}, u =
|
|
74
|
-
o.value && (
|
|
67
|
+
function st(e, n = {}) {
|
|
68
|
+
const { window: t = I } = n, o = it(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
69
|
+
let a;
|
|
70
|
+
const r = _(!1), i = (p) => {
|
|
71
|
+
r.value = p.matches;
|
|
72
|
+
}, s = () => {
|
|
73
|
+
a && ("removeEventListener" in a ? a.removeEventListener("change", i) : a.removeListener(i));
|
|
74
|
+
}, u = R(() => {
|
|
75
|
+
o.value && (s(), a = t.matchMedia(S(e)), "addEventListener" in a ? a.addEventListener("change", i) : a.addListener(i), r.value = a.matches);
|
|
75
76
|
});
|
|
76
|
-
return
|
|
77
|
-
u(),
|
|
77
|
+
return N(() => {
|
|
78
|
+
u(), s(), a = void 0;
|
|
78
79
|
}), r;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function rt(e = {}) {
|
|
81
82
|
const {
|
|
82
83
|
window: n = I,
|
|
83
84
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
84
85
|
initialHeight: o = Number.POSITIVE_INFINITY,
|
|
85
|
-
listenOrientation:
|
|
86
|
+
listenOrientation: a = !0,
|
|
86
87
|
includeScrollbar: r = !0
|
|
87
|
-
} = e,
|
|
88
|
-
n && (r ? (
|
|
88
|
+
} = e, i = _(t), s = _(o), u = () => {
|
|
89
|
+
n && (r ? (i.value = n.innerWidth, s.value = n.innerHeight) : (i.value = n.document.documentElement.clientWidth, s.value = n.document.documentElement.clientHeight));
|
|
89
90
|
};
|
|
90
|
-
if (u(),
|
|
91
|
-
const
|
|
92
|
-
|
|
91
|
+
if (u(), et(u), ot("resize", u, { passive: !0 }), a) {
|
|
92
|
+
const p = st("(orientation: portrait)");
|
|
93
|
+
C(p, () => u());
|
|
93
94
|
}
|
|
94
|
-
return { width:
|
|
95
|
+
return { width: i, height: s };
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const ct = {
|
|
97
98
|
"en-US": {
|
|
98
99
|
actionBar: "Action bar",
|
|
100
|
+
cancel: "Cancel",
|
|
99
101
|
close: "Close",
|
|
100
|
-
|
|
102
|
+
save: "Save",
|
|
103
|
+
selected: "selected",
|
|
104
|
+
unsavedChanges: "unsaved change | unsaved changes"
|
|
101
105
|
}
|
|
102
|
-
},
|
|
103
|
-
i18n: { messages:
|
|
104
|
-
},
|
|
105
|
-
...
|
|
106
|
+
}, lt = {
|
|
107
|
+
i18n: { messages: ct }
|
|
108
|
+
}, ut = /* @__PURE__ */ k({
|
|
109
|
+
...lt,
|
|
106
110
|
__name: "action-bar",
|
|
107
111
|
props: {
|
|
108
112
|
/**
|
|
109
113
|
* List of actions that will be used to render the buttons.
|
|
114
|
+
* Required and used for the `default` variant.
|
|
110
115
|
*
|
|
111
116
|
* Each object in the list should have a `title`, an `event` and,
|
|
112
117
|
* optionally, an `icon`.
|
|
@@ -117,7 +122,7 @@ const ie = {
|
|
|
117
122
|
*/
|
|
118
123
|
actions: {
|
|
119
124
|
type: Array,
|
|
120
|
-
|
|
125
|
+
default: () => []
|
|
121
126
|
},
|
|
122
127
|
/**
|
|
123
128
|
* How many actions should be visible outside the menu, cannot be more than 4
|
|
@@ -147,64 +152,83 @@ const ie = {
|
|
|
147
152
|
selectionLabel: {
|
|
148
153
|
type: String,
|
|
149
154
|
default: null
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* Variant for the action bar
|
|
158
|
+
* @values default, confirmation
|
|
159
|
+
*/
|
|
160
|
+
variant: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: "default"
|
|
150
163
|
}
|
|
151
164
|
},
|
|
152
|
-
emits: ["close"],
|
|
165
|
+
emits: ["close", "cancel", "save"],
|
|
153
166
|
setup(e, { emit: n }) {
|
|
154
|
-
const t = e, o = 100,
|
|
155
|
-
|
|
156
|
-
() =>
|
|
167
|
+
const t = e, o = 100, a = 7, r = 500, i = 32, { t: s, tc: u } = Y(), p = b(() => t.selectionLabel ? t.selectionLabel : s("selected")), c = _(null), { extraBottomSpacing: d, visibleActions: v } = j(t), { width: f } = rt(), l = _(null), h = _(null), w = b(() => t.variant === "confirmation");
|
|
168
|
+
C(
|
|
169
|
+
() => v.value,
|
|
157
170
|
(m) => {
|
|
158
|
-
|
|
171
|
+
h.value = m <= 4 ? m : 4, l.value = h.value;
|
|
159
172
|
},
|
|
160
173
|
{ immediate: !0 }
|
|
161
174
|
);
|
|
162
|
-
const
|
|
163
|
-
"b-action-bar--extra-spacing": d.value
|
|
175
|
+
const L = b(() => ({
|
|
176
|
+
"b-action-bar--extra-spacing": d.value,
|
|
177
|
+
"b-action-bar--confirmation": w.value
|
|
164
178
|
}));
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
const m = t.actions.map((
|
|
168
|
-
...
|
|
179
|
+
D(K, a);
|
|
180
|
+
const M = b(() => {
|
|
181
|
+
const m = t.actions.map((V) => ({
|
|
182
|
+
...V,
|
|
169
183
|
variant: "secondary"
|
|
170
|
-
})),
|
|
171
|
-
return [...
|
|
172
|
-
}),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
184
|
+
})), B = m.slice(0, l.value).reverse(), E = m.slice(l.value);
|
|
185
|
+
return [...B, ...E];
|
|
186
|
+
}), W = b(() => [
|
|
187
|
+
{
|
|
188
|
+
title: s("save"),
|
|
189
|
+
event: () => n("save")
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
title: s("cancel"),
|
|
193
|
+
variant: "secondary",
|
|
194
|
+
event: () => n("cancel")
|
|
195
|
+
}
|
|
196
|
+
]), g = async () => {
|
|
197
|
+
await y(), f.value > c.value.clientWidth + i + o && l.value < h.value && (l.value += 1, g());
|
|
198
|
+
}, A = async () => {
|
|
199
|
+
await y(), f.value < c.value.clientWidth + i && l.value > 0 && (l.value -= 1, A());
|
|
176
200
|
};
|
|
177
|
-
return
|
|
201
|
+
return C(
|
|
178
202
|
() => f.value,
|
|
179
|
-
async (m,
|
|
180
|
-
if (await
|
|
203
|
+
async (m, B) => {
|
|
204
|
+
if (await y(), !c.value)
|
|
181
205
|
return;
|
|
182
|
-
const
|
|
183
|
-
f.value < r ?
|
|
206
|
+
const E = m > B;
|
|
207
|
+
f.value < r ? l.value = 0 : E ? g() : A();
|
|
184
208
|
},
|
|
185
209
|
{ immediate: !0 }
|
|
186
|
-
), { __sfc: !0, AVERAGE_BUTTON_SIZE: o, MENU_OFFSET:
|
|
210
|
+
), { __sfc: !0, AVERAGE_BUTTON_SIZE: o, MENU_OFFSET: a, RESPONSIVE_BREAKPOINT: r, SPACING: i, props: t, emit: n, t: s, tc: u, label: p, actionBar: c, extraBottomSpacing: d, visibleActions: v, width: f, internalDisplayedActions: l, internalVisibleActions: h, isConfirmationVariant: w, conditionalClasses: L, actionsInternal: M, confirmationActions: W, showActions: g, hideActions: A, BentoButton: G, BentoButtonActions: Q, BentoTypography: z, ButtonActionsWithMenu: H, CrossIcon: U };
|
|
187
211
|
}
|
|
188
212
|
});
|
|
189
|
-
var
|
|
213
|
+
var ft = function() {
|
|
190
214
|
var n = this, t = n._self._c, o = n._self._setupProxy;
|
|
191
|
-
return t("Transition", { attrs: { name: "b-action-bar__animation", appear: "" } }, [t("section", { staticClass: "b-action-bar", class: o.conditionalClasses, attrs: { "aria-label": o.t("actionBar") } }, [t("div", { ref: "actionBar", staticClass: "b-action-bar__container" }, [t("div", { staticClass: "b-action-bar__close-button" }, [t(o.BentoButton, { attrs: { variant: "tertiary", inverse: "", "aria-label": o.t("close") }, on: { click: function(
|
|
215
|
+
return t("Transition", { attrs: { name: "b-action-bar__animation", appear: "" } }, [t("section", { staticClass: "b-action-bar", class: o.conditionalClasses, attrs: { "aria-label": o.t("actionBar") } }, [t("div", { ref: "actionBar", staticClass: "b-action-bar__container" }, [o.isConfirmationVariant ? n._e() : t("div", { staticClass: "b-action-bar__close-button" }, [t(o.BentoButton, { attrs: { variant: "tertiary", inverse: "", "aria-label": o.t("close") }, on: { click: function(a) {
|
|
192
216
|
return o.emit("close");
|
|
193
217
|
} }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
|
|
194
218
|
return [t(o.CrossIcon, { attrs: { "aria-hidden": !0 } })];
|
|
195
|
-
}, proxy: !0 }]) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(n._s(n.itemCounter) + " " + n._s(o.label))]), t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.internalDisplayedActions, "menu-position": "top-end", inverse: "" } })], 1)])]);
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
219
|
+
}, proxy: !0 }], null, !1, 4214210411) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(" " + n._s(n.itemCounter) + " " + n._s(o.isConfirmationVariant ? o.tc("unsavedChanges", n.itemCounter) : o.label) + " ")]), o.isConfirmationVariant ? t(o.BentoButtonActions, { staticClass: "b-action-bar__actions", attrs: { actions: o.confirmationActions, inverse: "" } }) : t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.internalDisplayedActions, "menu-position": "top-end", inverse: "" } })], 1)])]);
|
|
220
|
+
}, dt = [], pt = /* @__PURE__ */ $(
|
|
221
|
+
ut,
|
|
222
|
+
ft,
|
|
223
|
+
dt,
|
|
200
224
|
!1,
|
|
201
225
|
null,
|
|
202
|
-
"
|
|
226
|
+
"f42b2c8c",
|
|
203
227
|
null,
|
|
204
228
|
null
|
|
205
229
|
);
|
|
206
|
-
const
|
|
230
|
+
const Et = pt.exports;
|
|
207
231
|
export {
|
|
208
|
-
|
|
232
|
+
Et as BentoActionBar
|
|
209
233
|
};
|
|
210
234
|
//# sourceMappingURL=action-bar.js.map
|