@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.
Files changed (185) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.types.d.ts +1 -0
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +17 -2
  4. package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +1 -7
  6. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -7
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -7
  8. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -7
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +1 -7
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +1 -7
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +2 -2
  16. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
  17. package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue.d.ts +32 -0
  19. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +33 -22
  20. package/dist/@types/packages/vue2/src/components/input-field/input-field.keys.d.ts +1 -0
  21. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +0 -9
  22. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +0 -9
  23. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +0 -9
  24. package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +4 -0
  25. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -16
  26. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +1 -7
  27. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  28. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +3 -1
  29. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +53 -30
  30. package/dist/@types/packages/vue2/src/utils/ts/i18n.d.ts +7 -33
  31. package/dist/accordion.js +1 -1
  32. package/dist/action-bar.js +126 -102
  33. package/dist/action-bar.js.map +1 -1
  34. package/dist/alert.js +2 -2
  35. package/dist/assets/base-modal.css +1 -1
  36. package/dist/assets/dropdown.css +1 -1
  37. package/dist/assets/index.css +1 -1
  38. package/dist/assets/index10.css +1 -1
  39. package/dist/assets/index11.css +1 -1
  40. package/dist/assets/index12.css +1 -1
  41. package/dist/assets/index13.css +1 -1
  42. package/dist/assets/index14.css +1 -1
  43. package/dist/assets/index15.css +1 -1
  44. package/dist/assets/index16.css +1 -1
  45. package/dist/assets/index17.css +1 -1
  46. package/dist/assets/index18.css +1 -1
  47. package/dist/assets/index19.css +1 -1
  48. package/dist/assets/index2.css +1 -1
  49. package/dist/assets/index21.css +1 -1
  50. package/dist/assets/index22.css +1 -1
  51. package/dist/assets/index23.css +1 -1
  52. package/dist/assets/index25.css +1 -1
  53. package/dist/assets/index26.css +1 -1
  54. package/dist/assets/index27.css +1 -1
  55. package/dist/assets/index28.css +1 -1
  56. package/dist/assets/index29.css +1 -1
  57. package/dist/assets/index3.css +1 -1
  58. package/dist/assets/index30.css +1 -1
  59. package/dist/assets/index31.css +1 -1
  60. package/dist/assets/index32.css +1 -1
  61. package/dist/assets/index34.css +1 -1
  62. package/dist/assets/index35.css +1 -1
  63. package/dist/assets/index36.css +1 -1
  64. package/dist/assets/index37.css +1 -1
  65. package/dist/assets/index38.css +1 -1
  66. package/dist/assets/index39.css +1 -1
  67. package/dist/assets/index4.css +1 -1
  68. package/dist/assets/index40.css +1 -1
  69. package/dist/assets/index41.css +1 -1
  70. package/dist/assets/index42.css +1 -1
  71. package/dist/assets/index43.css +1 -1
  72. package/dist/assets/index44.css +1 -1
  73. package/dist/assets/index45.css +1 -1
  74. package/dist/assets/index46.css +1 -1
  75. package/dist/assets/index47.css +1 -0
  76. package/dist/assets/index5.css +1 -1
  77. package/dist/assets/index6.css +1 -1
  78. package/dist/assets/index7.css +1 -1
  79. package/dist/assets/index8.css +1 -1
  80. package/dist/assets/index9.css +1 -1
  81. package/dist/avatar-image.js +1 -1
  82. package/dist/badge.js +1 -1
  83. package/dist/button.js +5 -5
  84. package/dist/card.js +1 -1
  85. package/dist/checkbox.js +1 -1
  86. package/dist/chunks/{base-modal.babcdf50.js → base-modal.4f6eb218.js} +43 -47
  87. package/dist/chunks/base-modal.4f6eb218.js.map +1 -0
  88. package/dist/chunks/{button-actions-with-menu.d17b184d.js → button-actions-with-menu.abb1c2a7.js} +3 -3
  89. package/dist/chunks/{button-actions-with-menu.d17b184d.js.map → button-actions-with-menu.abb1c2a7.js.map} +1 -1
  90. package/dist/chunks/{button.788944f8.js → button.a554a1a8.js} +2 -2
  91. package/dist/chunks/{button.788944f8.js.map → button.a554a1a8.js.map} +1 -1
  92. package/dist/chunks/{calendar.2d4f2237.js → calendar.9dc9c0d2.js} +2 -2
  93. package/dist/chunks/{calendar.2d4f2237.js.map → calendar.9dc9c0d2.js.map} +1 -1
  94. package/dist/chunks/{copy.c1a67fc6.js → copy.2b6e032b.js} +4 -4
  95. package/dist/chunks/{copy.c1a67fc6.js.map → copy.2b6e032b.js.map} +1 -1
  96. package/dist/chunks/{dropdown.ca5ff514.js → dropdown.75441496.js} +197 -197
  97. package/dist/chunks/dropdown.75441496.js.map +1 -0
  98. package/dist/chunks/{fixed-scroller.80e51c1b.js → fixed-scroller.f631634d.js} +2 -2
  99. package/dist/chunks/{fixed-scroller.80e51c1b.js.map → fixed-scroller.f631634d.js.map} +1 -1
  100. package/dist/chunks/{footer-actions.d77abe77.js → footer-actions.c90de730.js} +2 -2
  101. package/dist/chunks/{footer-actions.d77abe77.js.map → footer-actions.c90de730.js.map} +1 -1
  102. package/dist/chunks/i18n.eb5b985b.js.map +1 -1
  103. package/dist/chunks/{index.71638f79.js → index.009455ee.js} +2 -2
  104. package/dist/chunks/{index.71638f79.js.map → index.009455ee.js.map} +1 -1
  105. package/dist/chunks/{index.3e96615d.js → index.1163f656.js} +8 -8
  106. package/dist/chunks/index.1163f656.js.map +1 -0
  107. package/dist/chunks/index.15c0dba4.js +1683 -0
  108. package/dist/chunks/index.15c0dba4.js.map +1 -0
  109. package/dist/chunks/{index.a663e8fe.js → index.15d681a1.js} +4 -4
  110. package/dist/chunks/{index.a663e8fe.js.map → index.15d681a1.js.map} +1 -1
  111. package/dist/chunks/{index.4fa8a7fe.js → index.3e375af4.js} +2 -2
  112. package/dist/chunks/{index.4fa8a7fe.js.map → index.3e375af4.js.map} +1 -1
  113. package/dist/chunks/{index.7ed46af7.js → index.7103d894.js} +2 -2
  114. package/dist/chunks/{index.7ed46af7.js.map → index.7103d894.js.map} +1 -1
  115. package/dist/chunks/{index.c01ee9cc.js → index.76fd4e58.js} +23 -23
  116. package/dist/chunks/{index.c01ee9cc.js.map → index.76fd4e58.js.map} +1 -1
  117. package/dist/chunks/{index.0a20d7ce.js → index.a1dad6fc.js} +5 -5
  118. package/dist/chunks/{index.0a20d7ce.js.map → index.a1dad6fc.js.map} +1 -1
  119. package/dist/chunks/{index.3fe9a55c.js → index.d9b801d1.js} +5 -5
  120. package/dist/chunks/{index.3fe9a55c.js.map → index.d9b801d1.js.map} +1 -1
  121. package/dist/chunks/{index.5cd5af15.js → index.f4162086.js} +3 -3
  122. package/dist/chunks/{index.5cd5af15.js.map → index.f4162086.js.map} +1 -1
  123. package/dist/chunks/info.8b6328aa.js +26 -0
  124. package/dist/chunks/info.8b6328aa.js.map +1 -0
  125. package/dist/chunks/{listbox-option-tag.0e778735.js → listbox-option-tag.fed72c34.js} +2 -2
  126. package/dist/chunks/{listbox-option-tag.0e778735.js.map → listbox-option-tag.fed72c34.js.map} +1 -1
  127. package/dist/chunks/{listbox.a440c634.js → listbox.b021b864.js} +2 -2
  128. package/dist/chunks/{listbox.a440c634.js.map → listbox.b021b864.js.map} +1 -1
  129. package/dist/chunks/{loading-button.4fd20d2d.js → loading-button.07afbfbc.js} +2 -2
  130. package/dist/chunks/{loading-button.4fd20d2d.js.map → loading-button.07afbfbc.js.map} +1 -1
  131. package/dist/chunks/{tooltip.3502709e.js → tooltip.ed1cdb86.js} +2 -2
  132. package/dist/chunks/{tooltip.3502709e.js.map → tooltip.ed1cdb86.js.map} +1 -1
  133. package/dist/code-snippet.js +6 -6
  134. package/dist/code-snippet.js.map +1 -1
  135. package/dist/country.js +1 -1
  136. package/dist/data-grid.js +7 -1678
  137. package/dist/data-grid.js.map +1 -1
  138. package/dist/date-picker.js +14 -14
  139. package/dist/date-range-picker.js +2 -2
  140. package/dist/divider.js +1 -1
  141. package/dist/dropdown.js +5 -5
  142. package/dist/empty-state.js +2 -2
  143. package/dist/filter-bar.js +12 -12
  144. package/dist/focus-trap.js +1 -1
  145. package/dist/form-layout.js +1 -1
  146. package/dist/header.js +190 -122
  147. package/dist/header.js.map +1 -1
  148. package/dist/index.js +306 -244
  149. package/dist/index.js.map +1 -1
  150. package/dist/info-icon.js +16 -34
  151. package/dist/info-icon.js.map +1 -1
  152. package/dist/input-field.js +44 -42
  153. package/dist/input-field.js.map +1 -1
  154. package/dist/internal.js +5 -5
  155. package/dist/link.js +1 -1
  156. package/dist/menu.js +1 -1
  157. package/dist/modal.js +100 -107
  158. package/dist/modal.js.map +1 -1
  159. package/dist/pagination.js +3 -3
  160. package/dist/payment-method.js +1 -1
  161. package/dist/popover.js +1 -1
  162. package/dist/popper-container.js +1 -1
  163. package/dist/radio-group.js +17 -17
  164. package/dist/radio-group.js.map +1 -1
  165. package/dist/search-bar.js +2 -2
  166. package/dist/secondary-nav.js +1 -1
  167. package/dist/segmented-control.js +2 -2
  168. package/dist/sidepanel.js +6 -6
  169. package/dist/sidepanel.js.map +1 -1
  170. package/dist/status.js +1 -1
  171. package/dist/stepper.js +1 -1
  172. package/dist/structured-list.js +1 -1
  173. package/dist/summary-grid.js +2 -2
  174. package/dist/tabs.js +8 -8
  175. package/dist/tag.js +2 -2
  176. package/dist/textarea.js +2 -2
  177. package/dist/timeline.js +4 -4
  178. package/dist/toast.js +2 -2
  179. package/dist/toggle.js +1 -1
  180. package/dist/tutorial.js +4 -4
  181. package/dist/web-types.json +87 -62
  182. package/package.json +2 -2
  183. package/dist/chunks/base-modal.babcdf50.js.map +0 -1
  184. package/dist/chunks/dropdown.ca5ff514.js.map +0 -1
  185. package/dist/chunks/index.3e96615d.js.map +0 -1
@@ -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
- variant: {
12
- type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
13
- default: import("../../components/header/header.types").BentoHeaderVariant;
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
- actions: {
25
- type: PropType<import("../..").BentoButtonActionsList>;
26
- default: any;
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
- actions: {
47
- type: PropType<import("../..").BentoButtonActionsList>;
48
- default: any;
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
- variant: {
74
- type: PropType<"component" | "page" | import("../../components/header/header.types").BentoHeaderVariant>;
75
- default: import("../../components/header/header.types").BentoHeaderVariant;
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
- actions: {
87
- type: PropType<import("../..").BentoButtonActionsList>;
88
- default: any;
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
- actions: {
109
- type: PropType<import("../..").BentoButtonActionsList>;
110
- default: any;
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: typeof VueI18n.prototype.d;
20
- n: typeof VueI18n.prototype.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/index.css";
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",
@@ -1,112 +1,117 @@
1
- import { onMounted as C, nextTick as h, getCurrentScope as M, onScopeDispose as W, unref as x, getCurrentInstance as w, ref as v, watch as b, watchEffect as P, computed as y, defineComponent as F, toRefs as V, provide as R } from "vue";
2
- import { a as k } from "./chunks/button.788944f8.js";
3
- import { B as j } from "./chunks/index.ee11faa7.js";
4
- import { B as D } from "./chunks/button-actions-with-menu.d17b184d.js";
5
- import { C as G } from "./chunks/cross.04678d81.js";
6
- import { u as z } from "./chunks/i18n.eb5b985b.js";
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 H } from "./chunks/index.a663e8fe.js";
9
- import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
10
- import "./assets/index26.css";
11
- function O(e) {
12
- return M() ? (W(e), !0) : !1;
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 B(e) {
15
- return typeof e == "function" ? e() : x(e);
15
+ function S(e) {
16
+ return typeof e == "function" ? e() : F(e);
16
17
  }
17
- const Y = typeof window < "u" && typeof document < "u";
18
+ const q = typeof window < "u" && typeof document < "u";
18
19
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
19
- const q = Object.prototype.toString, K = (e) => q.call(e) === "[object Object]", Q = () => {
20
+ const J = Object.prototype.toString, Z = (e) => J.call(e) === "[object Object]", X = () => {
20
21
  };
21
- function $(e) {
22
- return e || w();
22
+ function tt(e) {
23
+ return e || T();
23
24
  }
24
- function J(e, n = !0, t) {
25
- $() ? C(e, t) : n ? e() : h(e);
25
+ function et(e, n = !0, t) {
26
+ tt() ? O(e, t) : n ? e() : y(e);
26
27
  }
27
- function Z(e) {
28
+ function nt(e) {
28
29
  var n;
29
- const t = B(e);
30
+ const t = S(e);
30
31
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
31
32
  }
32
- const I = Y ? window : void 0;
33
- function X(...e) {
34
- let n, t, o, i;
35
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = I) : [n, t, o, i] = e, !n)
36
- return Q;
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 = [], s = () => {
39
- r.forEach((d) => d()), r.length = 0;
40
- }, c = (d, p, f, a) => (d.addEventListener(p, f, a), () => d.removeEventListener(p, f, a)), u = b(
41
- () => [Z(n), B(i)],
42
- ([d, p]) => {
43
- if (s(), !d)
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 f = K(p) ? { ...p } : p;
46
+ const v = Z(d) ? { ...d } : d;
46
47
  r.push(
47
- ...t.flatMap((a) => o.map((_) => c(d, a, _, f)))
48
+ ...t.flatMap((f) => o.map((l) => s(c, f, l, v)))
48
49
  );
49
50
  },
50
51
  { immediate: !0, flush: "post" }
51
- ), l = () => {
52
- u(), s();
52
+ ), p = () => {
53
+ u(), i();
53
54
  };
54
- return O(l), l;
55
+ return N(p), p;
55
56
  }
56
- function ee() {
57
- const e = v(!1);
58
- return w() && C(() => {
57
+ function at() {
58
+ const e = _(!1);
59
+ return T() && O(() => {
59
60
  e.value = !0;
60
61
  }), e;
61
62
  }
62
- function te(e) {
63
- const n = ee();
64
- return y(() => (n.value, !!e()));
63
+ function it(e) {
64
+ const n = at();
65
+ return b(() => (n.value, !!e()));
65
66
  }
66
- function ne(e, n = {}) {
67
- const { window: t = I } = n, o = te(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
68
- let i;
69
- const r = v(!1), s = (l) => {
70
- r.value = l.matches;
71
- }, c = () => {
72
- i && ("removeEventListener" in i ? i.removeEventListener("change", s) : i.removeListener(s));
73
- }, u = P(() => {
74
- o.value && (c(), i = t.matchMedia(B(e)), "addEventListener" in i ? i.addEventListener("change", s) : i.addListener(s), r.value = i.matches);
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 O(() => {
77
- u(), c(), i = void 0;
77
+ return N(() => {
78
+ u(), s(), a = void 0;
78
79
  }), r;
79
80
  }
80
- function oe(e = {}) {
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: i = !0,
86
+ listenOrientation: a = !0,
86
87
  includeScrollbar: r = !0
87
- } = e, s = v(t), c = v(o), u = () => {
88
- n && (r ? (s.value = n.innerWidth, c.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, c.value = n.document.documentElement.clientHeight));
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(), J(u), X("resize", u, { passive: !0 }), i) {
91
- const l = ne("(orientation: portrait)");
92
- b(l, () => u());
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: s, height: c };
95
+ return { width: i, height: s };
95
96
  }
96
- const ie = {
97
+ const ct = {
97
98
  "en-US": {
98
99
  actionBar: "Action bar",
100
+ cancel: "Cancel",
99
101
  close: "Close",
100
- selected: "selected"
102
+ save: "Save",
103
+ selected: "selected",
104
+ unsavedChanges: "unsaved change | unsaved changes"
101
105
  }
102
- }, se = {
103
- i18n: { messages: ie }
104
- }, ae = /* @__PURE__ */ F({
105
- ...se,
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
- required: !0
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, i = 7, r = 500, s = 32, { t: c } = z(), u = y(() => t.selectionLabel ? t.selectionLabel : c("selected")), l = v(null), { extraBottomSpacing: d, visibleActions: p } = V(t), { width: f } = oe(), a = v(null), _ = v(null);
155
- b(
156
- () => p.value,
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
- _.value = m <= 4 ? m : 4, a.value = _.value;
171
+ h.value = m <= 4 ? m : 4, l.value = h.value;
159
172
  },
160
173
  { immediate: !0 }
161
174
  );
162
- const T = y(() => ({
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
- R(H, i);
166
- const N = y(() => {
167
- const m = t.actions.map((L) => ({
168
- ...L,
179
+ D(K, a);
180
+ const M = b(() => {
181
+ const m = t.actions.map((V) => ({
182
+ ...V,
169
183
  variant: "secondary"
170
- })), A = m.slice(0, a.value).reverse(), S = m.slice(a.value);
171
- return [...A, ...S];
172
- }), E = async () => {
173
- await h(), f.value > l.value.clientWidth + s + o && a.value < _.value && (a.value += 1, E());
174
- }, g = async () => {
175
- await h(), f.value < l.value.clientWidth + s && a.value > 0 && (a.value -= 1, g());
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 b(
201
+ return C(
178
202
  () => f.value,
179
- async (m, A) => {
180
- if (await h(), !l.value)
203
+ async (m, B) => {
204
+ if (await y(), !c.value)
181
205
  return;
182
- const S = m > A;
183
- f.value < r ? a.value = 0 : S ? E() : g();
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: i, RESPONSIVE_BREAKPOINT: r, SPACING: s, props: t, emit: n, t: c, label: u, actionBar: l, extraBottomSpacing: d, visibleActions: p, width: f, internalDisplayedActions: a, internalVisibleActions: _, conditionalClasses: T, actionsInternal: N, showActions: E, hideActions: g, BentoButton: k, BentoTypography: j, ButtonActionsWithMenu: D, CrossIcon: G };
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 re = function() {
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(i) {
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
- }, ce = [], le = /* @__PURE__ */ U(
197
- ae,
198
- re,
199
- ce,
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
- "d2278799",
226
+ "f42b2c8c",
203
227
  null,
204
228
  null
205
229
  );
206
- const be = le.exports;
230
+ const Et = pt.exports;
207
231
  export {
208
- be as BentoActionBar
232
+ Et as BentoActionBar
209
233
  };
210
234
  //# sourceMappingURL=action-bar.js.map