@adyen/bento-vue3 1.26.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 (248) 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/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  14. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
  17. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
  18. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
  19. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
  20. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
  21. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
  23. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
  24. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
  25. package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
  26. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
  27. package/dist/accordion.js +3 -3
  28. package/dist/action-bar.js +71 -155
  29. package/dist/action-bar.js.map +1 -1
  30. package/dist/alert.js +6 -6
  31. package/dist/assets/base-modal.css +1 -1
  32. package/dist/assets/button-actions.css +1 -1
  33. package/dist/assets/button.css +1 -1
  34. package/dist/assets/dialog-page.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/index.css +1 -1
  37. package/dist/assets/index10.css +1 -1
  38. package/dist/assets/index11.css +1 -1
  39. package/dist/assets/index13.css +1 -1
  40. package/dist/assets/index14.css +1 -1
  41. package/dist/assets/index15.css +1 -1
  42. package/dist/assets/index16.css +1 -1
  43. package/dist/assets/index17.css +1 -1
  44. package/dist/assets/index18.css +1 -1
  45. package/dist/assets/index19.css +1 -1
  46. package/dist/assets/index2.css +1 -1
  47. package/dist/assets/index20.css +1 -1
  48. package/dist/assets/index21.css +1 -1
  49. package/dist/assets/index22.css +1 -1
  50. package/dist/assets/index23.css +1 -1
  51. package/dist/assets/index24.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/index33.css +1 -1
  62. package/dist/assets/index34.css +1 -1
  63. package/dist/assets/index35.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 -1
  76. package/dist/assets/index48.css +1 -1
  77. package/dist/assets/index49.css +1 -0
  78. package/dist/assets/index5.css +1 -1
  79. package/dist/assets/index6.css +1 -1
  80. package/dist/assets/index7.css +1 -1
  81. package/dist/assets/index8.css +1 -1
  82. package/dist/assets/index9.css +1 -1
  83. package/dist/assets/use-cached-selected-values.css +1 -1
  84. package/dist/avatar-image.js +1 -1
  85. package/dist/badge.js +1 -1
  86. package/dist/button.js +4 -4
  87. package/dist/card.js +4 -4
  88. package/dist/checkbox.js +6 -6
  89. package/dist/chunks/{base-button.e84acf30.js → base-button.a0140a4c.js} +2 -2
  90. package/dist/chunks/{base-button.e84acf30.js.map → base-button.a0140a4c.js.map} +1 -1
  91. package/dist/chunks/{base-modal.29e062d0.js → base-modal.4102f69d.js} +7 -7
  92. package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.4102f69d.js.map} +1 -1
  93. package/dist/chunks/{button-actions-with-menu.7fce47a2.js → button-actions-with-menu.4f311411.js} +4 -4
  94. package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
  95. package/dist/chunks/{button-actions.642b37de.js → button-actions.82163994.js} +42 -40
  96. package/dist/chunks/button-actions.82163994.js.map +1 -0
  97. package/dist/chunks/{button.60dad578.js → button.ae4760cd.js} +27 -26
  98. package/dist/chunks/button.ae4760cd.js.map +1 -0
  99. package/dist/chunks/{calendar.f38cdab9.js → calendar.a9c5a68c.js} +6 -6
  100. package/dist/chunks/{calendar.f38cdab9.js.map → calendar.a9c5a68c.js.map} +1 -1
  101. package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.99336948.js} +2 -2
  102. package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.99336948.js.map} +1 -1
  103. package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.9c30c07b.js} +4 -4
  104. package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.9c30c07b.js.map} +1 -1
  105. package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js → checkmark-circle-fill.c45a999d.js} +2 -2
  106. package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.c45a999d.js.map} +1 -1
  107. package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.c79220d9.js} +2 -2
  108. package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.c79220d9.js.map} +1 -1
  109. package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4ee92950.js} +2 -2
  110. package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4ee92950.js.map} +1 -1
  111. package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.638a9f34.js} +2 -2
  112. package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.638a9f34.js.map} +1 -1
  113. package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.8357e3fd.js} +3 -3
  114. package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.8357e3fd.js.map} +1 -1
  115. package/dist/chunks/{copy.852d4cb8.js → copy.60ee6ac3.js} +4 -4
  116. package/dist/chunks/{copy.852d4cb8.js.map → copy.60ee6ac3.js.map} +1 -1
  117. package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.1abec1a2.js} +2 -2
  118. package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.1abec1a2.js.map} +1 -1
  119. package/dist/chunks/{cross-small.9bc6a02f.js → cross-small.b85406fe.js} +2 -2
  120. package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.b85406fe.js.map} +1 -1
  121. package/dist/chunks/{cross.a60533f6.js → cross.26509efc.js} +2 -2
  122. package/dist/chunks/{cross.a60533f6.js.map → cross.26509efc.js.map} +1 -1
  123. package/dist/chunks/{dialog-page.ea67bb14.js → dialog-page.cb6ce9b6.js} +3 -3
  124. package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
  125. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.cda0798f.js} +5 -5
  126. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
  127. package/dist/chunks/{dropdown.d8587f36.js → dropdown.0ae3b842.js} +122 -132
  128. package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
  129. package/dist/chunks/{error-message.3fb5573a.js → error-message.d2bdeb80.js} +3 -3
  130. package/dist/chunks/{error-message.3fb5573a.js.map → error-message.d2bdeb80.js.map} +1 -1
  131. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  132. package/dist/chunks/events.f14a214b.js.map +1 -0
  133. package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.7b42cb1e.js} +3 -3
  134. package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
  135. package/dist/chunks/{footer-actions.89e68269.js → footer-actions.64f6f5d8.js} +4 -4
  136. package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.64f6f5d8.js.map} +1 -1
  137. package/dist/chunks/{index.96cd0d4c.js → index.2d7b4511.js} +15 -15
  138. package/dist/chunks/{index.96cd0d4c.js.map → index.2d7b4511.js.map} +1 -1
  139. package/dist/chunks/index.2fcd1233.js +103 -0
  140. package/dist/chunks/index.2fcd1233.js.map +1 -0
  141. package/dist/chunks/{index.9bf04b01.js → index.6295e754.js} +3 -3
  142. package/dist/chunks/{index.9bf04b01.js.map → index.6295e754.js.map} +1 -1
  143. package/dist/chunks/{index.030c1dd7.js → index.6bb6f38c.js} +7 -7
  144. package/dist/chunks/{index.030c1dd7.js.map → index.6bb6f38c.js.map} +1 -1
  145. package/dist/chunks/{index.ba3396d3.js → index.8aa536a8.js} +3 -3
  146. package/dist/chunks/{index.ba3396d3.js.map → index.8aa536a8.js.map} +1 -1
  147. package/dist/chunks/{index.8be283d5.js → index.9d7fb316.js} +2 -2
  148. package/dist/chunks/{index.8be283d5.js.map → index.9d7fb316.js.map} +1 -1
  149. package/dist/chunks/{index.5bdebf9d.js → index.a001a0a8.js} +7 -7
  150. package/dist/chunks/{index.5bdebf9d.js.map → index.a001a0a8.js.map} +1 -1
  151. package/dist/chunks/{index.07122048.js → index.b18c78d6.js} +2 -2
  152. package/dist/chunks/{index.07122048.js.map → index.b18c78d6.js.map} +1 -1
  153. package/dist/chunks/{index.6e0e9d21.js → index.eb38a6c4.js} +3 -3
  154. package/dist/chunks/{index.6e0e9d21.js.map → index.eb38a6c4.js.map} +1 -1
  155. package/dist/chunks/{index.a3d60e4f.js → index.ee15db35.js} +2 -2
  156. package/dist/chunks/{index.a3d60e4f.js.map → index.ee15db35.js.map} +1 -1
  157. package/dist/chunks/{index.146f967e.js → index.f9d081d2.js} +2 -2
  158. package/dist/chunks/{index.146f967e.js.map → index.f9d081d2.js.map} +1 -1
  159. package/dist/chunks/index.fedbb4c2.js +125 -0
  160. package/dist/chunks/index.fedbb4c2.js.map +1 -0
  161. package/dist/chunks/{info.205b4496.js → info.550f9511.js} +2 -2
  162. package/dist/chunks/{info.205b4496.js.map → info.550f9511.js.map} +1 -1
  163. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  164. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  165. package/dist/chunks/{listbox-option-tag.b6182b2e.js → listbox-option-tag.2aea037c.js} +3 -3
  166. package/dist/chunks/{listbox-option-tag.b6182b2e.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
  167. package/dist/chunks/{loading-button.0391ad8b.js → loading-button.6b81b546.js} +4 -4
  168. package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.6b81b546.js.map} +1 -1
  169. package/dist/chunks/{payment-method.31a68b9b.js → payment-method.d5595a7c.js} +2 -2
  170. package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.d5595a7c.js.map} +1 -1
  171. package/dist/chunks/{refresh.53691839.js → refresh.bd60f6a8.js} +2 -2
  172. package/dist/chunks/{refresh.53691839.js.map → refresh.bd60f6a8.js.map} +1 -1
  173. package/dist/chunks/{search.4e4ee4dd.js → search.ade93bda.js} +2 -2
  174. package/dist/chunks/{search.4e4ee4dd.js.map → search.ade93bda.js.map} +1 -1
  175. package/dist/chunks/{tooltip.1084d92b.js → tooltip.36172265.js} +4 -4
  176. package/dist/chunks/{tooltip.1084d92b.js.map → tooltip.36172265.js.map} +1 -1
  177. package/dist/chunks/{use-bento-toast-controller.98d8613c.js → use-bento-toast-controller.3dc4e113.js} +2 -2
  178. package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
  179. package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.3c312296.js} +396 -375
  180. package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
  181. package/dist/code-snippet.js +137 -135
  182. package/dist/code-snippet.js.map +1 -1
  183. package/dist/country.js +2 -2
  184. package/dist/currency.js +1 -1
  185. package/dist/dashboard-template.js +169 -0
  186. package/dist/dashboard-template.js.map +1 -0
  187. package/dist/data-grid-template.js +1 -1
  188. package/dist/data-grid.js +52 -44
  189. package/dist/data-grid.js.map +1 -1
  190. package/dist/date-picker.js +19 -19
  191. package/dist/date-picker.js.map +1 -1
  192. package/dist/date-range-picker.js +2 -2
  193. package/dist/date.js +1 -1
  194. package/dist/divider.js +1 -1
  195. package/dist/dropdown.js +7 -7
  196. package/dist/empty-state.js +3 -3
  197. package/dist/filter-bar.js +85 -83
  198. package/dist/filter-bar.js.map +1 -1
  199. package/dist/focus-trap.js +1 -1
  200. package/dist/form-layout.js +2 -2
  201. package/dist/header.js +5 -5
  202. package/dist/index.js +66 -63
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +4 -4
  205. package/dist/input-field.js +4 -4
  206. package/dist/internal.js +8 -8
  207. package/dist/link.js +1 -1
  208. package/dist/loading-indicator.js +1 -1
  209. package/dist/menu.js +1 -1
  210. package/dist/modal-fullscreen.js +7 -7
  211. package/dist/modal.js +6 -6
  212. package/dist/pagination.js +4 -4
  213. package/dist/payment-method.js +1 -1
  214. package/dist/popover.js +1 -1
  215. package/dist/popper-container.js +1 -1
  216. package/dist/radio-group.js +4 -4
  217. package/dist/search-bar.js +4 -4
  218. package/dist/secondary-nav.js +2 -2
  219. package/dist/segmented-control.js +66 -72
  220. package/dist/segmented-control.js.map +1 -1
  221. package/dist/selection-card.js +5 -5
  222. package/dist/sidepanel.js +7 -7
  223. package/dist/status.js +2 -2
  224. package/dist/stepper.js +5 -5
  225. package/dist/structured-list.js +1 -1
  226. package/dist/summary-grid.js +3 -3
  227. package/dist/tabs.js +80 -78
  228. package/dist/tabs.js.map +1 -1
  229. package/dist/tag.js +3 -3
  230. package/dist/textarea.js +4 -4
  231. package/dist/timeline.js +7 -7
  232. package/dist/toast.js +4 -4
  233. package/dist/toggle.js +3 -3
  234. package/dist/tutorial.js +125 -110
  235. package/dist/tutorial.js.map +1 -1
  236. package/dist/typography.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +8 -6
  239. package/dist/chunks/button-actions.642b37de.js.map +0 -1
  240. package/dist/chunks/button.60dad578.js.map +0 -1
  241. package/dist/chunks/checkmark.87919b24.js +0 -29
  242. package/dist/chunks/checkmark.87919b24.js.map +0 -1
  243. package/dist/chunks/dropdown.d8587f36.js.map +0 -1
  244. package/dist/chunks/events.58c00e6d.js.map +0 -1
  245. package/dist/chunks/index.c8ffede1.js +0 -168
  246. package/dist/chunks/index.c8ffede1.js.map +0 -1
  247. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +0 -1
  248. /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
@@ -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.60dad578.js";
3
- import { B as te } from "./chunks/index.a3d60e4f.js";
4
- import { B as ne } from "./chunks/button-actions-with-menu.7fce47a2.js";
5
- import { C as ae } from "./chunks/cross.a60533f6.js";
6
- import { u as oe } from "./chunks/i18n.f7e6533e.js";
7
- import { P as ie } from "./chunks/index.5bdebf9d.js";
8
- import { B as se } from "./chunks/button-actions.642b37de.js";
9
- import { _ as ce } from "./chunks/_plugin-vue_export-helper.dad06003.js";
10
- import "./assets/index17.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 = {
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";
11
+ import "./assets/index5.css";
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