@adyen/bento-vue3 1.25.0 → 1.27.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 (239) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  6. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
  7. package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +27 -11
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +19 -6
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +38 -12
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +19 -6
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +19 -6
  18. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +29 -48
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
  22. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
  23. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
  24. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
  25. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  26. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  27. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +42 -3
  28. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  30. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
  32. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
  33. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
  34. package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
  36. package/dist/accordion.js +2 -2
  37. package/dist/action-bar.js +70 -154
  38. package/dist/action-bar.js.map +1 -1
  39. package/dist/alert.js +3 -3
  40. package/dist/assets/base-modal.css +1 -1
  41. package/dist/assets/button-actions.css +1 -1
  42. package/dist/assets/button.css +1 -1
  43. package/dist/assets/dialog-page.css +1 -1
  44. package/dist/assets/dropdown.css +1 -1
  45. package/dist/assets/index.css +1 -1
  46. package/dist/assets/index10.css +1 -1
  47. package/dist/assets/index11.css +1 -1
  48. package/dist/assets/index12.css +1 -1
  49. package/dist/assets/index13.css +1 -1
  50. package/dist/assets/index14.css +1 -1
  51. package/dist/assets/index15.css +1 -1
  52. package/dist/assets/index16.css +1 -1
  53. package/dist/assets/index17.css +1 -1
  54. package/dist/assets/index18.css +1 -1
  55. package/dist/assets/index19.css +1 -1
  56. package/dist/assets/index2.css +1 -1
  57. package/dist/assets/index20.css +1 -1
  58. package/dist/assets/index21.css +1 -1
  59. package/dist/assets/index22.css +1 -1
  60. package/dist/assets/index23.css +1 -1
  61. package/dist/assets/index24.css +1 -1
  62. package/dist/assets/index25.css +1 -1
  63. package/dist/assets/index26.css +1 -1
  64. package/dist/assets/index27.css +1 -1
  65. package/dist/assets/index28.css +1 -1
  66. package/dist/assets/index29.css +1 -1
  67. package/dist/assets/index3.css +1 -1
  68. package/dist/assets/index30.css +1 -1
  69. package/dist/assets/index31.css +1 -1
  70. package/dist/assets/index32.css +1 -1
  71. package/dist/assets/index33.css +1 -1
  72. package/dist/assets/index34.css +1 -1
  73. package/dist/assets/index35.css +1 -1
  74. package/dist/assets/index36.css +1 -1
  75. package/dist/assets/index37.css +1 -1
  76. package/dist/assets/index38.css +1 -1
  77. package/dist/assets/index39.css +1 -1
  78. package/dist/assets/index4.css +1 -1
  79. package/dist/assets/index40.css +1 -1
  80. package/dist/assets/index41.css +1 -1
  81. package/dist/assets/index42.css +1 -1
  82. package/dist/assets/index43.css +1 -1
  83. package/dist/assets/index44.css +1 -1
  84. package/dist/assets/index45.css +1 -1
  85. package/dist/assets/index46.css +1 -1
  86. package/dist/assets/index47.css +1 -1
  87. package/dist/assets/index48.css +1 -1
  88. package/dist/assets/index49.css +1 -0
  89. package/dist/assets/index5.css +1 -1
  90. package/dist/assets/index6.css +1 -1
  91. package/dist/assets/index7.css +1 -1
  92. package/dist/assets/index8.css +1 -1
  93. package/dist/assets/index9.css +1 -1
  94. package/dist/assets/use-cached-selected-values.css +1 -1
  95. package/dist/avatar-image.js +1 -1
  96. package/dist/badge.js +1 -1
  97. package/dist/button.js +5 -5
  98. package/dist/card.js +3 -3
  99. package/dist/checkbox.js +5 -5
  100. package/dist/chunks/{base-button.6be8b60e.js → base-button.a0140a4c.js} +2 -2
  101. package/dist/chunks/{base-button.6be8b60e.js.map → base-button.a0140a4c.js.map} +1 -1
  102. package/dist/chunks/{base-modal.310c4790.js → base-modal.4102f69d.js} +6 -6
  103. package/dist/chunks/{base-modal.310c4790.js.map → base-modal.4102f69d.js.map} +1 -1
  104. package/dist/chunks/{button-actions-with-menu.a007b034.js → button-actions-with-menu.4f311411.js} +4 -4
  105. package/dist/chunks/{button-actions-with-menu.a007b034.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
  106. package/dist/chunks/{button-actions.adc0a2fe.js → button-actions.82163994.js} +42 -40
  107. package/dist/chunks/button-actions.82163994.js.map +1 -0
  108. package/dist/chunks/{button.de5589fa.js → button.ae4760cd.js} +27 -26
  109. package/dist/chunks/button.ae4760cd.js.map +1 -0
  110. package/dist/chunks/{calendar.73f5b904.js → calendar.a9c5a68c.js} +5 -5
  111. package/dist/chunks/{calendar.73f5b904.js.map → calendar.a9c5a68c.js.map} +1 -1
  112. package/dist/chunks/{checkbox.4c96cc23.js → checkbox.9c30c07b.js} +3 -3
  113. package/dist/chunks/{checkbox.4c96cc23.js.map → checkbox.9c30c07b.js.map} +1 -1
  114. package/dist/chunks/{controls-group.37a67734.js → controls-group.8357e3fd.js} +3 -3
  115. package/dist/chunks/{controls-group.37a67734.js.map → controls-group.8357e3fd.js.map} +1 -1
  116. package/dist/chunks/{copy.43de2653.js → copy.60ee6ac3.js} +4 -4
  117. package/dist/chunks/{copy.43de2653.js.map → copy.60ee6ac3.js.map} +1 -1
  118. package/dist/chunks/{dialog-page.cd8c7fff.js → dialog-page.cb6ce9b6.js} +3 -3
  119. package/dist/chunks/{dialog-page.cd8c7fff.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
  120. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js → dropdown-default-textbox.cda0798f.js} +3 -3
  121. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
  122. package/dist/chunks/{dropdown.57b2ea6f.js → dropdown.0ae3b842.js} +118 -128
  123. package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
  124. package/dist/chunks/{error-message.4bd22112.js → error-message.d2bdeb80.js} +2 -2
  125. package/dist/chunks/{error-message.4bd22112.js.map → error-message.d2bdeb80.js.map} +1 -1
  126. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  127. package/dist/chunks/events.f14a214b.js.map +1 -0
  128. package/dist/chunks/{fixed-scroller.5b93a6a6.js → fixed-scroller.7b42cb1e.js} +2 -2
  129. package/dist/chunks/{fixed-scroller.5b93a6a6.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
  130. package/dist/chunks/{footer-actions.c401ec50.js → footer-actions.64f6f5d8.js} +4 -4
  131. package/dist/chunks/{footer-actions.c401ec50.js.map → footer-actions.64f6f5d8.js.map} +1 -1
  132. package/dist/chunks/{index.faec0854.js → index.2d7b4511.js} +9 -9
  133. package/dist/chunks/{index.faec0854.js.map → index.2d7b4511.js.map} +1 -1
  134. package/dist/chunks/index.2fcd1233.js +103 -0
  135. package/dist/chunks/index.2fcd1233.js.map +1 -0
  136. package/dist/chunks/{index.f71015d8.js → index.6295e754.js} +3 -3
  137. package/dist/chunks/{index.f71015d8.js.map → index.6295e754.js.map} +1 -1
  138. package/dist/chunks/{index.8b10ee32.js → index.6bb6f38c.js} +6 -6
  139. package/dist/chunks/{index.8b10ee32.js.map → index.6bb6f38c.js.map} +1 -1
  140. package/dist/chunks/{index.73ac0db6.js → index.8aa536a8.js} +3 -3
  141. package/dist/chunks/{index.73ac0db6.js.map → index.8aa536a8.js.map} +1 -1
  142. package/dist/chunks/{index.ea65003b.js → index.9d7fb316.js} +2 -2
  143. package/dist/chunks/{index.ea65003b.js.map → index.9d7fb316.js.map} +1 -1
  144. package/dist/chunks/{index.bab8811d.js → index.a001a0a8.js} +6 -6
  145. package/dist/chunks/{index.bab8811d.js.map → index.a001a0a8.js.map} +1 -1
  146. package/dist/chunks/{index.98bbaed9.js → index.b18c78d6.js} +2 -2
  147. package/dist/chunks/{index.98bbaed9.js.map → index.b18c78d6.js.map} +1 -1
  148. package/dist/chunks/{index.aa83aa48.js → index.eb38a6c4.js} +3 -3
  149. package/dist/chunks/{index.aa83aa48.js.map → index.eb38a6c4.js.map} +1 -1
  150. package/dist/chunks/{index.11b6dd35.js → index.ee15db35.js} +17 -17
  151. package/dist/chunks/index.ee15db35.js.map +1 -0
  152. package/dist/chunks/{index.8682bd04.js → index.f9d081d2.js} +2 -2
  153. package/dist/chunks/{index.8682bd04.js.map → index.f9d081d2.js.map} +1 -1
  154. package/dist/chunks/index.fedbb4c2.js +125 -0
  155. package/dist/chunks/index.fedbb4c2.js.map +1 -0
  156. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  157. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  158. package/dist/chunks/{listbox-option-tag.d1a3b340.js → listbox-option-tag.2aea037c.js} +3 -3
  159. package/dist/chunks/{listbox-option-tag.d1a3b340.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
  160. package/dist/chunks/{loading-button.2db95771.js → loading-button.6b81b546.js} +2 -2
  161. package/dist/chunks/{loading-button.2db95771.js.map → loading-button.6b81b546.js.map} +1 -1
  162. package/dist/chunks/{payment-method.26fa5509.js → payment-method.d5595a7c.js} +2 -2
  163. package/dist/chunks/{payment-method.26fa5509.js.map → payment-method.d5595a7c.js.map} +1 -1
  164. package/dist/chunks/{tooltip.e29f7d7e.js → tooltip.36172265.js} +4 -4
  165. package/dist/chunks/{tooltip.e29f7d7e.js.map → tooltip.36172265.js.map} +1 -1
  166. package/dist/chunks/{use-bento-toast-controller.98ca249a.js → use-bento-toast-controller.3dc4e113.js} +2 -2
  167. package/dist/chunks/{use-bento-toast-controller.98ca249a.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
  168. package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js → use-cached-selected-values.3c312296.js} +396 -375
  169. package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
  170. package/dist/code-snippet.js +137 -135
  171. package/dist/code-snippet.js.map +1 -1
  172. package/dist/country.js +2 -2
  173. package/dist/currency.js +1 -1
  174. package/dist/dashboard-template.js +169 -0
  175. package/dist/dashboard-template.js.map +1 -0
  176. package/dist/data-grid-template.js +1 -1
  177. package/dist/data-grid.js +1295 -1253
  178. package/dist/data-grid.js.map +1 -1
  179. package/dist/date-picker.js +8 -8
  180. package/dist/date-range-picker.js +2 -2
  181. package/dist/date.js +1 -1
  182. package/dist/divider.js +1 -1
  183. package/dist/dropdown.js +7 -7
  184. package/dist/empty-state.js +3 -3
  185. package/dist/filter-bar.js +84 -82
  186. package/dist/filter-bar.js.map +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +53 -51
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header.js +4 -4
  191. package/dist/index.js +66 -63
  192. package/dist/index.js.map +1 -1
  193. package/dist/info-icon.js +3 -3
  194. package/dist/input-field.js +4 -4
  195. package/dist/internal.js +8 -8
  196. package/dist/link.js +1 -1
  197. package/dist/loading-indicator.js +1 -1
  198. package/dist/menu.js +1 -1
  199. package/dist/modal-fullscreen.js +6 -6
  200. package/dist/modal.js +6 -6
  201. package/dist/pagination.js +4 -4
  202. package/dist/payment-method.js +1 -1
  203. package/dist/popover.js +1 -1
  204. package/dist/popper-container.js +1 -1
  205. package/dist/radio-group.js +4 -4
  206. package/dist/search-bar.js +2 -2
  207. package/dist/secondary-nav.js +2 -2
  208. package/dist/segmented-control.js +66 -72
  209. package/dist/segmented-control.js.map +1 -1
  210. package/dist/selection-card.js +4 -4
  211. package/dist/sidepanel.js +6 -6
  212. package/dist/status.js +2 -2
  213. package/dist/stepper.js +4 -4
  214. package/dist/structured-list.js +1 -1
  215. package/dist/summary-grid.js +3 -3
  216. package/dist/tabs.js +81 -77
  217. package/dist/tabs.js.map +1 -1
  218. package/dist/tag.js +3 -3
  219. package/dist/textarea.js +4 -4
  220. package/dist/timeline.js +7 -7
  221. package/dist/toast.js +4 -4
  222. package/dist/toggle.js +2 -2
  223. package/dist/tutorial.js +168 -132
  224. package/dist/tutorial.js.map +1 -1
  225. package/dist/typography.js +1 -1
  226. package/dist/web-types.json +1 -1
  227. package/package.json +8 -6
  228. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  229. package/dist/chunks/button-actions.adc0a2fe.js.map +0 -1
  230. package/dist/chunks/button.de5589fa.js.map +0 -1
  231. package/dist/chunks/checkmark.eb3c7a06.js +0 -29
  232. package/dist/chunks/checkmark.eb3c7a06.js.map +0 -1
  233. package/dist/chunks/dropdown.57b2ea6f.js.map +0 -1
  234. package/dist/chunks/events.58c00e6d.js.map +0 -1
  235. package/dist/chunks/index.11b6dd35.js.map +0 -1
  236. package/dist/chunks/index.38752f78.js +0 -168
  237. package/dist/chunks/index.38752f78.js.map +0 -1
  238. package/dist/chunks/use-cached-selected-values.a9b0fb3d.js.map +0 -1
  239. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import type { BentoDashboardTemplateHeader } from '../../dashboard-template.types';
2
+ /**
3
+ * Dashboard section is subcomponent of Dashboard template meant to be used to create the different sections within the page.
4
+ *
5
+ * @example
6
+ * import { BentoDashboardSection } from '@adyen/bento-vue2';
7
+ *
8
+ * export default {
9
+ * components: { BentoDashboardSection },
10
+ * template: `
11
+ * <bento-dashboard-section :header="{ title: 'Section' }" half-width>
12
+ * <template #controls>
13
+ * // Add your controls here
14
+ * </template>
15
+ * // You can render content with two cols
16
+ * <template #content-col-1>
17
+ * // Add your content here
18
+ * </template>
19
+ * <template #content-col-2>
20
+ * // Add your content here
21
+ * </template>
22
+ * // Or you can render full width content by using default slot
23
+ * // Add your content here
24
+ * </bento-dashboard-section>
25
+ * `
26
+ * }
27
+ */
28
+ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/node_modules/vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
29
+ /**
30
+ * The header of the section
31
+ */
32
+ header: BentoDashboardTemplateHeader;
33
+ /**
34
+ * Renders the section to take only half of the page
35
+ */
36
+ halfWidth?: boolean;
37
+ }>, {
38
+ halfWidth: boolean;
39
+ }>, {}, unknown, {}, {}, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../../vue3/node_modules/vue").VNodeProps & import("../../../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../../../vue3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
40
+ /**
41
+ * The header of the section
42
+ */
43
+ header: BentoDashboardTemplateHeader;
44
+ /**
45
+ * Renders the section to take only half of the page
46
+ */
47
+ halfWidth?: boolean;
48
+ }>, {
49
+ halfWidth: boolean;
50
+ }>>>, {
51
+ halfWidth: boolean;
52
+ }>, {
53
+ infoIconTooltipContent: (_: {}) => any;
54
+ controls: (_: {}) => any;
55
+ default: (_: {}) => any;
56
+ 'content-col-1': (_: {}) => any;
57
+ 'content-col-2': (_: {}) => any;
58
+ }>;
59
+ export default _default;
60
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
+ type __VLS_TypePropsToRuntimeProps<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
63
+ type: import("../../../../../../vue3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
64
+ } : {
65
+ type: import("../../../../../../vue3/node_modules/vue").PropType<T[K]>;
66
+ required: true;
67
+ };
68
+ };
69
+ type __VLS_WithDefaults<P, D> = {
70
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
71
+ default: D[K];
72
+ } : P[K];
73
+ };
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,8 @@
1
+ import type { BentoTab } from "../../components/tabs";
2
+ import type { BentoHeader } from "../../components/header";
3
+ export type BentoDashboardTemplateTab = InstanceType<typeof BentoTab>['$props'];
4
+ export type BentoDashboardTemplateHeader = InstanceType<typeof BentoHeader>['$props'];
5
+ export type BentoDashboardTemplateTabs = {
6
+ activeTabIndex?: number;
7
+ tabs: BentoDashboardTemplateTab[];
8
+ };
@@ -0,0 +1,103 @@
1
+ import type { BentoDashboardTemplateHeader, BentoDashboardTemplateTabs } from './dashboard-template.types';
2
+ /**
3
+ * Dashboard template is a full page template used to visualize data on pages such as data dashboards and reports.
4
+ *
5
+ * @example
6
+ * import { BentoDashboardTemplate, BentoDashboardSection } from '@adyen/bento-vue2';
7
+ *
8
+ * export default {
9
+ * components: { BentoDashboardTemplate, BentoDashboardSection },
10
+ * template: `
11
+ * <bento-dashboard-template :header="{ title: 'Dashboard'}" :tabs="tabs: [{ title: 'Tab 1' }, { title: 'Tab 2' }]" sticky-tabs sticky-filters>
12
+ * <template #tab-1>
13
+ * <bento-dashboard-section :header="{ title: 'Section'}">
14
+ * <template #controls>
15
+ * // Add your controls here
16
+ * </template>
17
+ * // Add your content here
18
+ * </bento-dashboard-section>
19
+ * </template>
20
+ * <template #tab-2>
21
+ * <bento-dashboard-section :header="{ title: 'Section'}">
22
+ * // Add your content here
23
+ * </bento-dashboard-section>
24
+ * </template>
25
+ * </bento-dashboard-template>
26
+ * `
27
+ * }
28
+ */
29
+ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_modules/vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
+ /**
31
+ * The header that goes to the top of the template
32
+ */
33
+ header: BentoDashboardTemplateHeader;
34
+ /**
35
+ * All the tab properties that can be set on the inner tab components.
36
+ * - tabs.activeTabIndex: the currently active tab index.
37
+ * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
38
+ */
39
+ tabs?: BentoDashboardTemplateTabs;
40
+ /**
41
+ * Renders the tabs with a sticky positioning
42
+ */
43
+ stickyTabs?: boolean;
44
+ /**
45
+ * Renders the tabs with a sticky positioning
46
+ */
47
+ stickyFilters?: boolean;
48
+ }>, {
49
+ tabs: any;
50
+ stickyTabs: boolean;
51
+ stickyFilters: boolean;
52
+ }>, {}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ /**
54
+ * The header that goes to the top of the template
55
+ */
56
+ header: BentoDashboardTemplateHeader;
57
+ /**
58
+ * All the tab properties that can be set on the inner tab components.
59
+ * - tabs.activeTabIndex: the currently active tab index.
60
+ * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
61
+ */
62
+ tabs?: BentoDashboardTemplateTabs;
63
+ /**
64
+ * Renders the tabs with a sticky positioning
65
+ */
66
+ stickyTabs?: boolean;
67
+ /**
68
+ * Renders the tabs with a sticky positioning
69
+ */
70
+ stickyFilters?: boolean;
71
+ }>, {
72
+ tabs: any;
73
+ stickyTabs: boolean;
74
+ stickyFilters: boolean;
75
+ }>>>, {
76
+ tabs: BentoDashboardTemplateTabs;
77
+ stickyFilters: boolean;
78
+ stickyTabs: boolean;
79
+ }>, Record<string, (_: {}) => any> & {
80
+ infoIconTooltipContent: (_: {}) => any;
81
+ filters: (_: {}) => any;
82
+ default: (_: {}) => any;
83
+ }>;
84
+ export default _default;
85
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
86
+ type __VLS_TypePropsToRuntimeProps<T> = {
87
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
88
+ type: import("../../../../vue3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
89
+ } : {
90
+ type: import("../../../../vue3/node_modules/vue").PropType<T[K]>;
91
+ required: true;
92
+ };
93
+ };
94
+ type __VLS_WithDefaults<P, D> = {
95
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
96
+ default: D[K];
97
+ } : P[K];
98
+ };
99
+ type __VLS_WithTemplateSlots<T, S> = T & {
100
+ new (): {
101
+ $slots: S;
102
+ };
103
+ };
@@ -0,0 +1,3 @@
1
+ export { default as BentoDashboardTemplate } from './dashboard-template.vue';
2
+ export { default as BentoDashboardSection } from './components/dashboard-section/dashboard-section.vue';
3
+ export type * from './dashboard-template.types';
@@ -1,15 +1,4 @@
1
- export declare const storybookDocsParameter: (codeSource: string, language?: string) => {
2
- docs: {
3
- source: {
4
- code: string;
5
- language: string;
6
- };
7
- };
8
- };
9
- export declare const getPokemonFromApi: (pokemonName?: string) => Promise<{
10
- label: any;
11
- value: any;
12
- }[]>;
1
+ export * from "../../../../core/src/utils/ts/storybook";
13
2
  /**
14
3
  * Adds necessary Toast component to display toasts.
15
4
  * It should be added just once on the app level, but never in the views or components itself
package/dist/accordion.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, provide as k, toRef as B, openBlock as a, createElementBlock as r, renderSlot as E, ref as b, inject as O, computed as $, watch as s, createVNode as y, unref as e, withCtx as g, createElementVNode as h, createBlock as I, createTextVNode as z, toDisplayString as A, Transition as D, normalizeStyle as H, createCommentVNode as V } from "vue";
2
2
  import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { B as w } from "./chunks/index.11b6dd35.js";
3
+ import { B as w } from "./chunks/index.ee15db35.js";
4
4
  import { C as R, a as j } from "./chunks/chevron-up.638a9f34.js";
5
5
  import { g as x } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { o as M } from "./chunks/resize.a041304d.js";
7
7
  import { u as U } from "./chunks/use-expandable-content-height.62fc84e5.js";
8
- import "./assets/index3.css";
8
+ import "./assets/index2.css";
9
9
  const S = Symbol("accordion title size injection key"), q = { class: "b-accordion" }, J = {}, K = /* @__PURE__ */ C({
10
10
  ...J,
11
11
  __name: "accordion",
@@ -1,99 +1,15 @@
1
- import { onMounted as k, nextTick as B, getCurrentScope as z, onScopeDispose as H, unref as o, getCurrentInstance as x, ref as _, watch as A, watchEffect as U, computed as y, defineComponent as Y, toRefs as K, provide as Q, openBlock as S, createBlock as I, Transition as $, withCtx as w, createElementVNode as V, normalizeClass as q, createElementBlock as J, createVNode as N, createCommentVNode as Z, createTextVNode as X, toDisplayString as W } from "vue";
2
- import { a as ee } from "./chunks/button.de5589fa.js";
3
- import { B as te } from "./chunks/index.11b6dd35.js";
4
- import { B as ne } from "./chunks/button-actions-with-menu.a007b034.js";
5
- import { C as ae } from "./chunks/cross.26509efc.js";
6
- import { u as oe } from "./chunks/i18n.f7e6533e.js";
7
- import { P as ie } from "./chunks/index.bab8811d.js";
8
- import { B as se } from "./chunks/button-actions.adc0a2fe.js";
9
- import { _ as ce } from "./chunks/_plugin-vue_export-helper.dad06003.js";
1
+ import { defineComponent as W, computed as c, ref as p, toRefs as U, watch as g, provide as z, nextTick as f, openBlock as m, createBlock as b, Transition as D, withCtx as y, createElementVNode as E, normalizeClass as G, unref as e, createElementBlock as K, createVNode as B, createCommentVNode as M, createTextVNode as q, toDisplayString as S } from "vue";
2
+ import { a as J } from "./chunks/button.ae4760cd.js";
3
+ import { B as Y } from "./chunks/index.ee15db35.js";
4
+ import { B as Z } from "./chunks/button-actions-with-menu.4f311411.js";
5
+ import { C as $ } from "./chunks/cross.26509efc.js";
6
+ import { u as j } from "./chunks/i18n.f7e6533e.js";
7
+ import { u as H } from "./chunks/index.fedbb4c2.js";
8
+ import { P as Q } from "./chunks/index.a001a0a8.js";
9
+ import { B as X } from "./chunks/button-actions.82163994.js";
10
+ import { _ as ee } from "./chunks/_plugin-vue_export-helper.dad06003.js";
10
11
  import "./assets/index5.css";
11
- function P(e) {
12
- return z() ? (H(e), !0) : !1;
13
- }
14
- function O(e) {
15
- return typeof e == "function" ? e() : o(e);
16
- }
17
- const re = typeof window < "u" && typeof document < "u";
18
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
19
- const le = Object.prototype.toString, ue = (e) => le.call(e) === "[object Object]", de = () => {
20
- };
21
- function fe(e) {
22
- return e || x();
23
- }
24
- function pe(e, n = !0, t) {
25
- fe() ? k(e, t) : n ? e() : B(e);
26
- }
27
- function ve(e) {
28
- var n;
29
- const t = O(e);
30
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
31
- }
32
- const T = re ? window : void 0;
33
- function me(...e) {
34
- let n, t, c, a;
35
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, c, a] = e, n = T) : [n, t, c, a] = e, !n)
36
- return de;
37
- Array.isArray(t) || (t = [t]), Array.isArray(c) || (c = [c]);
38
- const l = [], i = () => {
39
- l.forEach((r) => r()), l.length = 0;
40
- }, s = (r, v, b, f) => (r.addEventListener(v, b, f), () => r.removeEventListener(v, b, f)), d = A(
41
- () => [ve(n), O(a)],
42
- ([r, v]) => {
43
- if (i(), !r)
44
- return;
45
- const b = ue(v) ? { ...v } : v;
46
- l.push(
47
- ...t.flatMap((f) => c.map((u) => s(r, f, u, b)))
48
- );
49
- },
50
- { immediate: !0, flush: "post" }
51
- ), p = () => {
52
- d(), i();
53
- };
54
- return P(p), p;
55
- }
56
- function _e() {
57
- const e = _(!1);
58
- return x() && k(() => {
59
- e.value = !0;
60
- }), e;
61
- }
62
- function be(e) {
63
- const n = _e();
64
- return y(() => (n.value, !!e()));
65
- }
66
- function he(e, n = {}) {
67
- const { window: t = T } = n, c = be(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
68
- let a;
69
- const l = _(!1), i = (p) => {
70
- l.value = p.matches;
71
- }, s = () => {
72
- a && ("removeEventListener" in a ? a.removeEventListener("change", i) : a.removeListener(i));
73
- }, d = U(() => {
74
- c.value && (s(), a = t.matchMedia(O(e)), "addEventListener" in a ? a.addEventListener("change", i) : a.addListener(i), l.value = a.matches);
75
- });
76
- return P(() => {
77
- d(), s(), a = void 0;
78
- }), l;
79
- }
80
- function ye(e = {}) {
81
- const {
82
- window: n = T,
83
- initialWidth: t = Number.POSITIVE_INFINITY,
84
- initialHeight: c = Number.POSITIVE_INFINITY,
85
- listenOrientation: a = !0,
86
- includeScrollbar: l = !0
87
- } = e, i = _(t), s = _(c), d = () => {
88
- n && (l ? (i.value = n.innerWidth, s.value = n.innerHeight) : (i.value = n.document.documentElement.clientWidth, s.value = n.document.documentElement.clientHeight));
89
- };
90
- if (d(), pe(d), me("resize", d, { passive: !0 }), a) {
91
- const p = he("(orientation: portrait)");
92
- A(p, () => d());
93
- }
94
- return { width: i, height: s };
95
- }
96
- const F = {
12
+ const N = {
97
13
  "en-US": {
98
14
  actionBar: "Action bar",
99
15
  cancel: "Cancel",
@@ -102,13 +18,13 @@ const F = {
102
18
  selected: "selected",
103
19
  unsavedChanges: "unsaved change | unsaved changes"
104
20
  }
105
- }, ge = ["aria-label"], Ee = {
21
+ }, te = ["aria-label"], ae = {
106
22
  key: 0,
107
23
  class: "b-action-bar__close-button"
108
- }, Se = {
109
- i18n: { messages: F }
110
- }, Be = /* @__PURE__ */ Y({
111
- ...Se,
24
+ }, ne = {
25
+ i18n: { messages: N }
26
+ }, oe = /* @__PURE__ */ W({
27
+ ...ne,
112
28
  __name: "action-bar",
113
29
  props: {
114
30
  /**
@@ -132,7 +48,7 @@ const F = {
132
48
  visibleActions: {
133
49
  type: Number,
134
50
  default: 4,
135
- validator: (e) => e > 0 && e <= 4
51
+ validator: (n) => n > 0 && n <= 4
136
52
  },
137
53
  /**
138
54
  * Use when there are sticky elements at the bottom, like sticky pagination
@@ -165,109 +81,109 @@ const F = {
165
81
  }
166
82
  },
167
83
  emits: ["close", "cancel", "save"],
168
- setup(e, { emit: n }) {
169
- const t = e, c = 100, a = 7, l = 500, i = 32, { t: s, tc: d } = oe({ messages: F }), p = y(() => t.selectionLabel ? t.selectionLabel : s("selected")), r = _(null), { extraBottomSpacing: v, visibleActions: b } = K(t), { width: f } = ye(), u = _(null), C = _(null), g = y(() => t.variant === "confirmation");
170
- A(
171
- () => b.value,
172
- (m) => {
173
- C.value = m <= 4 ? m : 4, u.value = C.value;
84
+ setup(n, { emit: v }) {
85
+ const s = n, I = 100, x = 7, T = 500, A = 32, { t: i, tc: k } = j({ messages: N }), w = c(() => s.selectionLabel ? s.selectionLabel : i("selected")), r = p(null), { extraBottomSpacing: V, visibleActions: O } = U(s), { width: l } = H(), t = p(null), _ = p(null), u = c(() => s.variant === "confirmation");
86
+ g(
87
+ () => O.value,
88
+ (a) => {
89
+ _.value = a <= 4 ? a : 4, t.value = _.value;
174
90
  },
175
91
  { immediate: !0 }
176
92
  );
177
- const R = y(() => ({
178
- "b-action-bar--extra-spacing": v.value,
179
- "b-action-bar--confirmation": g.value
93
+ const P = c(() => ({
94
+ "b-action-bar--extra-spacing": V.value,
95
+ "b-action-bar--confirmation": u.value
180
96
  }));
181
- Q(ie, a);
182
- const j = y(() => {
183
- const m = t.actions.map((G) => ({
184
- ...G,
97
+ z(Q, x);
98
+ const R = c(() => {
99
+ const a = s.actions.map((L) => ({
100
+ ...L,
185
101
  variant: "secondary"
186
- })), h = m.slice(0, u.value).reverse(), E = m.slice(u.value);
187
- return [...h, ...E];
188
- }), D = y(() => [
102
+ })), o = a.slice(0, t.value).reverse(), d = a.slice(t.value);
103
+ return [...o, ...d];
104
+ }), F = c(() => [
189
105
  {
190
- title: s("save"),
191
- event: () => n("save")
106
+ title: i("save"),
107
+ event: () => v("save")
192
108
  },
193
109
  {
194
- title: s("cancel"),
110
+ title: i("cancel"),
195
111
  variant: "secondary",
196
- event: () => n("cancel")
112
+ event: () => v("cancel")
197
113
  }
198
- ]), L = async () => {
199
- await B(), f.value > r.value.clientWidth + i + c && u.value < C.value && (u.value += 1, L());
200
- }, M = async () => {
201
- await B(), f.value < r.value.clientWidth + i && u.value > 0 && (u.value -= 1, M());
114
+ ]), C = async () => {
115
+ await f(), l.value > r.value.clientWidth + A + I && t.value < _.value && (t.value += 1, C());
116
+ }, h = async () => {
117
+ await f(), l.value < r.value.clientWidth + A && t.value > 0 && (t.value -= 1, h());
202
118
  };
203
- return A(
204
- () => f.value,
205
- async (m, h) => {
206
- if (await B(), !r.value)
119
+ return g(
120
+ () => l.value,
121
+ async (a, o) => {
122
+ if (await f(), !r.value)
207
123
  return;
208
- const E = m > h;
209
- f.value < l ? u.value = 0 : E ? L() : M();
124
+ const d = a > o;
125
+ l.value < T ? t.value = 0 : d ? C() : h();
210
126
  },
211
127
  { immediate: !0 }
212
- ), (m, h) => (S(), I($, {
128
+ ), (a, o) => (m(), b(D, {
213
129
  name: "b-action-bar__animation",
214
130
  appear: ""
215
131
  }, {
216
- default: w(() => [
217
- V("section", {
218
- class: q(["b-action-bar", o(R)]),
219
- "aria-label": o(s)("actionBar")
132
+ default: y(() => [
133
+ E("section", {
134
+ class: G(["b-action-bar", e(P)]),
135
+ "aria-label": e(i)("actionBar")
220
136
  }, [
221
- V("div", {
137
+ E("div", {
222
138
  ref_key: "actionBar",
223
139
  ref: r,
224
140
  class: "b-action-bar__container"
225
141
  }, [
226
- o(g) ? Z("", !0) : (S(), J("div", Ee, [
227
- N(o(ee), {
142
+ e(u) ? M("", !0) : (m(), K("div", ae, [
143
+ B(e(J), {
228
144
  variant: "tertiary",
229
145
  inverse: "",
230
- "aria-label": o(s)("close"),
231
- onClick: h[0] || (h[0] = (E) => n("close"))
146
+ "aria-label": e(i)("close"),
147
+ onClick: o[0] || (o[0] = (d) => v("close"))
232
148
  }, {
233
- iconLeft: w(() => [
234
- N(o(ae), { "aria-hidden": !0 })
149
+ iconLeft: y(() => [
150
+ B(e($), { "aria-hidden": !0 })
235
151
  ]),
236
152
  _: 1
237
153
  }, 8, ["aria-label"])
238
154
  ])),
239
- N(o(te), {
155
+ B(e(Y), {
240
156
  el: "span",
241
157
  stronger: "",
242
158
  class: "b-action-bar__selection"
243
159
  }, {
244
- default: w(() => [
245
- X(W(e.itemCounter) + " " + W(o(g) ? o(d)("unsavedChanges", e.itemCounter) : o(p)), 1)
160
+ default: y(() => [
161
+ q(S(n.itemCounter) + " " + S(e(u) ? e(k)("unsavedChanges", n.itemCounter) : e(w)), 1)
246
162
  ]),
247
163
  _: 1
248
164
  }),
249
- o(g) ? (S(), I(o(se), {
165
+ e(u) ? (m(), b(e(X), {
250
166
  key: 1,
251
- actions: o(D),
167
+ actions: e(F),
252
168
  class: "b-action-bar__actions",
253
169
  inverse: ""
254
- }, null, 8, ["actions"])) : (S(), I(ne, {
170
+ }, null, 8, ["actions"])) : (m(), b(Z, {
255
171
  key: 2,
256
- actions: o(j),
172
+ actions: e(R),
257
173
  class: "b-action-bar__actions",
258
- "displayed-actions": u.value,
174
+ "displayed-actions": t.value,
259
175
  "menu-position": "top-end",
260
176
  inverse: ""
261
177
  }, null, 8, ["actions", "displayed-actions"]))
262
178
  ], 512)
263
- ], 10, ge)
179
+ ], 10, te)
264
180
  ]),
265
181
  _: 1
266
182
  }));
267
183
  }
268
184
  });
269
- const Ve = /* @__PURE__ */ ce(Be, [["__scopeId", "data-v-191a2ab0"]]);
185
+ const pe = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-191a2ab0"]]);
270
186
  export {
271
- Ve as BentoActionBar
187
+ pe as BentoActionBar
272
188
  };
273
189
  //# sourceMappingURL=action-bar.js.map