@adyen/bento-vue3 1.12.0 → 1.13.1

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 (223) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +10 -22
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +23 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +2 -1
  5. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
  6. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +9 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +520 -0
  8. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -1
  10. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/index.d.ts +1 -0
  11. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +31 -0
  12. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -4
  13. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/useListboxKeyboardNavigation.d.ts +2 -2
  15. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +3 -2
  16. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.keys.d.ts +1 -0
  17. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/index.d.ts +2 -0
  18. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.types.d.ts +1 -0
  19. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +24 -27
  20. package/dist/@types/packages/vue2/src/components/radio-group/index.d.ts +2 -1
  21. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +1 -0
  22. package/dist/accordion.js +2 -2
  23. package/dist/action-bar.js +5 -5
  24. package/dist/alert.js +26 -25
  25. package/dist/alert.js.map +1 -1
  26. package/dist/assets/base-modal.css +1 -1
  27. package/dist/assets/button.css +1 -1
  28. package/dist/assets/checkbox.css +1 -1
  29. package/dist/assets/controls-group.css +1 -1
  30. package/dist/assets/index.css +1 -1
  31. package/dist/assets/index10.css +1 -1
  32. package/dist/assets/index11.css +1 -1
  33. package/dist/assets/index12.css +1 -1
  34. package/dist/assets/index13.css +1 -1
  35. package/dist/assets/index14.css +1 -1
  36. package/dist/assets/index15.css +1 -1
  37. package/dist/assets/index16.css +1 -1
  38. package/dist/assets/index17.css +1 -1
  39. package/dist/assets/index18.css +1 -1
  40. package/dist/assets/index19.css +1 -1
  41. package/dist/assets/index2.css +1 -1
  42. package/dist/assets/index20.css +1 -1
  43. package/dist/assets/index21.css +1 -1
  44. package/dist/assets/index22.css +1 -1
  45. package/dist/assets/index23.css +1 -1
  46. package/dist/assets/index24.css +1 -1
  47. package/dist/assets/index25.css +1 -1
  48. package/dist/assets/index26.css +1 -1
  49. package/dist/assets/index27.css +1 -1
  50. package/dist/assets/index28.css +1 -1
  51. package/dist/assets/index29.css +1 -1
  52. package/dist/assets/index3.css +1 -1
  53. package/dist/assets/index30.css +1 -1
  54. package/dist/assets/index31.css +1 -1
  55. package/dist/assets/index32.css +1 -1
  56. package/dist/assets/index33.css +1 -1
  57. package/dist/assets/index34.css +1 -1
  58. package/dist/assets/index35.css +1 -1
  59. package/dist/assets/index36.css +1 -1
  60. package/dist/assets/index37.css +1 -1
  61. package/dist/assets/index38.css +1 -1
  62. package/dist/assets/index39.css +1 -1
  63. package/dist/assets/index4.css +1 -1
  64. package/dist/assets/index40.css +1 -1
  65. package/dist/assets/index41.css +1 -1
  66. package/dist/assets/index42.css +1 -1
  67. package/dist/assets/index43.css +1 -1
  68. package/dist/assets/index44.css +1 -1
  69. package/dist/assets/index45.css +1 -1
  70. package/dist/assets/index46.css +1 -1
  71. package/dist/assets/index47.css +1 -1
  72. package/dist/assets/index5.css +1 -1
  73. package/dist/assets/index6.css +1 -1
  74. package/dist/assets/index7.css +1 -1
  75. package/dist/assets/index8.css +1 -1
  76. package/dist/assets/index9.css +1 -1
  77. package/dist/assets/listbox.css +1 -1
  78. package/dist/avatar-image.js +1 -1
  79. package/dist/badge.js +1 -1
  80. package/dist/button.js +99 -111
  81. package/dist/button.js.map +1 -1
  82. package/dist/card.js +2 -2
  83. package/dist/checkbox.js +6 -6
  84. package/dist/chunks/arrow-left.81a91b8f.js.map +1 -1
  85. package/dist/chunks/{base-button.9f2acdeb.js → base-button.35d84224.js} +2 -2
  86. package/dist/chunks/{base-button.9f2acdeb.js.map → base-button.35d84224.js.map} +1 -1
  87. package/dist/chunks/{base-modal.56a671c3.js → base-modal.c4045ec6.js} +101 -98
  88. package/dist/chunks/base-modal.c4045ec6.js.map +1 -0
  89. package/dist/chunks/{button-actions-with-menu.080ccaf8.js → button-actions-with-menu.b3130fc5.js} +3 -3
  90. package/dist/chunks/{button-actions-with-menu.080ccaf8.js.map → button-actions-with-menu.b3130fc5.js.map} +1 -1
  91. package/dist/chunks/{button.7ce49c43.js → button.9a51e27a.js} +24 -24
  92. package/dist/chunks/{button.7ce49c43.js.map → button.9a51e27a.js.map} +1 -1
  93. package/dist/chunks/{calendar.f0f7b405.js → calendar.ac3ea3d9.js} +66 -66
  94. package/dist/chunks/{calendar.f0f7b405.js.map → calendar.ac3ea3d9.js.map} +1 -1
  95. package/dist/chunks/{checkbox.c63cd1d8.js → checkbox.093e5288.js} +3 -3
  96. package/dist/chunks/checkbox.093e5288.js.map +1 -0
  97. package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -1
  98. package/dist/chunks/checkmark-small.c79220d9.js.map +1 -1
  99. package/dist/chunks/checkmark.eb3c7a06.js.map +1 -1
  100. package/dist/chunks/chevron-left.4ee92950.js.map +1 -1
  101. package/dist/chunks/chevron-up.46afb34c.js.map +1 -1
  102. package/dist/chunks/{controls-group.1660076e.js → controls-group.f24676ab.js} +4 -4
  103. package/dist/chunks/{controls-group.1660076e.js.map → controls-group.f24676ab.js.map} +1 -1
  104. package/dist/chunks/{copy.91983fad.js → copy.d5ee2f1a.js} +4 -4
  105. package/dist/chunks/copy.d5ee2f1a.js.map +1 -0
  106. package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -1
  107. package/dist/chunks/cross-small.b85406fe.js +29 -0
  108. package/dist/chunks/cross-small.b85406fe.js.map +1 -0
  109. package/dist/chunks/cross.26509efc.js.map +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.157f95f0.js → dropdown-default-textbox.3350778f.js} +2 -2
  111. package/dist/chunks/{dropdown-default-textbox.157f95f0.js.map → dropdown-default-textbox.3350778f.js.map} +1 -1
  112. package/dist/chunks/{dropdown.b0e80aaa.js → dropdown.01c80ffd.js} +22 -22
  113. package/dist/chunks/dropdown.01c80ffd.js.map +1 -0
  114. package/dist/chunks/{field-label.894140ec.js → field-label.a23f17b5.js} +2 -2
  115. package/dist/chunks/{field-label.894140ec.js.map → field-label.a23f17b5.js.map} +1 -1
  116. package/dist/chunks/{fixed-scroller.708a4c4e.js → fixed-scroller.f6bc3063.js} +2 -2
  117. package/dist/chunks/{fixed-scroller.708a4c4e.js.map → fixed-scroller.f6bc3063.js.map} +1 -1
  118. package/dist/chunks/{footer-actions.21ba3026.js → footer-actions.2340bf71.js} +3 -3
  119. package/dist/chunks/{footer-actions.21ba3026.js.map → footer-actions.2340bf71.js.map} +1 -1
  120. package/dist/chunks/{index.3ec651d0.js → index.01e085bf.js} +2 -2
  121. package/dist/chunks/{index.3ec651d0.js.map → index.01e085bf.js.map} +1 -1
  122. package/dist/chunks/{index.9ae856b3.js → index.2f746572.js} +3 -3
  123. package/dist/chunks/{index.9ae856b3.js.map → index.2f746572.js.map} +1 -1
  124. package/dist/chunks/{index.46b7b1d3.js → index.59f8058f.js} +6 -6
  125. package/dist/chunks/{index.46b7b1d3.js.map → index.59f8058f.js.map} +1 -1
  126. package/dist/chunks/{index.762f7ec9.js → index.5c07d389.js} +7 -7
  127. package/dist/chunks/index.5c07d389.js.map +1 -0
  128. package/dist/chunks/{index.d57976cb.js → index.83ca2d5c.js} +28 -28
  129. package/dist/chunks/{index.d57976cb.js.map → index.83ca2d5c.js.map} +1 -1
  130. package/dist/chunks/{index.113137fb.js → index.8a92a332.js} +2 -2
  131. package/dist/chunks/{index.113137fb.js.map → index.8a92a332.js.map} +1 -1
  132. package/dist/chunks/{index.266dd8ff.js → index.8be283d5.js} +2 -2
  133. package/dist/chunks/{index.266dd8ff.js.map → index.8be283d5.js.map} +1 -1
  134. package/dist/chunks/{index.fcfca776.js → index.a56038f2.js} +2 -2
  135. package/dist/chunks/{index.fcfca776.js.map → index.a56038f2.js.map} +1 -1
  136. package/dist/chunks/{index.a25e53b8.js → index.cb2167c3.js} +5 -5
  137. package/dist/chunks/{index.a25e53b8.js.map → index.cb2167c3.js.map} +1 -1
  138. package/dist/chunks/{index.62c5d91f.js → index.e3dba813.js} +3 -3
  139. package/dist/chunks/{index.62c5d91f.js.map → index.e3dba813.js.map} +1 -1
  140. package/dist/chunks/index.eba55960.js +112 -0
  141. package/dist/chunks/index.eba55960.js.map +1 -0
  142. package/dist/chunks/{info-filled.e591599f.js → info-filled.a6f9d7d0.js} +19 -42
  143. package/dist/chunks/info-filled.a6f9d7d0.js.map +1 -0
  144. package/dist/chunks/{listbox-option-tag.1f42ad7f.js → listbox-option-tag.8e75f1a7.js} +3 -3
  145. package/dist/chunks/{listbox-option-tag.1f42ad7f.js.map → listbox-option-tag.8e75f1a7.js.map} +1 -1
  146. package/dist/chunks/listbox.e4f1d305.js +1466 -0
  147. package/dist/chunks/listbox.e4f1d305.js.map +1 -0
  148. package/dist/chunks/{loading-button.52696f0f.js → loading-button.7167caaf.js} +2 -2
  149. package/dist/chunks/{loading-button.52696f0f.js.map → loading-button.7167caaf.js.map} +1 -1
  150. package/dist/chunks/refresh.bd60f6a8.js.map +1 -1
  151. package/dist/chunks/search.ade93bda.js.map +1 -1
  152. package/dist/chunks/sidepanel.keys.3f8d69c1.js +7 -0
  153. package/dist/chunks/sidepanel.keys.3f8d69c1.js.map +1 -0
  154. package/dist/chunks/{tooltip.d366f95d.js → tooltip.1ee20c7d.js} +3 -3
  155. package/dist/chunks/{tooltip.d366f95d.js.map → tooltip.1ee20c7d.js.map} +1 -1
  156. package/dist/code-snippet.js +7 -7
  157. package/dist/code-snippet.js.map +1 -1
  158. package/dist/country.js +2 -2
  159. package/dist/currency.js +1 -1
  160. package/dist/data-grid.js +999 -990
  161. package/dist/data-grid.js.map +1 -1
  162. package/dist/date-picker.js +20 -20
  163. package/dist/date-picker.js.map +1 -1
  164. package/dist/date-range-picker.js +2 -2
  165. package/dist/date.js +1 -1
  166. package/dist/divider.js +1 -1
  167. package/dist/dropdown.js +6 -6
  168. package/dist/empty-state.js +3 -3
  169. package/dist/filter-bar.js +640 -625
  170. package/dist/filter-bar.js.map +1 -1
  171. package/dist/focus-trap.js +1 -1
  172. package/dist/form-layout.js +2 -2
  173. package/dist/header.js +3 -3
  174. package/dist/index.js +262 -256
  175. package/dist/index.js.map +1 -1
  176. package/dist/info-icon.js +3 -3
  177. package/dist/info-icon.js.map +1 -1
  178. package/dist/input-field.js +4 -4
  179. package/dist/internal.js +7 -7
  180. package/dist/link.js +3 -80
  181. package/dist/link.js.map +1 -1
  182. package/dist/loading-indicator.js +1 -1
  183. package/dist/menu.js +1 -1
  184. package/dist/modal.js +4 -4
  185. package/dist/pagination.js +4 -4
  186. package/dist/pagination.js.map +1 -1
  187. package/dist/payment-method.js +2 -2
  188. package/dist/popover.js +1 -1
  189. package/dist/popper-container.js +1 -1
  190. package/dist/radio-group.js +155 -177
  191. package/dist/radio-group.js.map +1 -1
  192. package/dist/search-bar.js +2 -2
  193. package/dist/secondary-nav.js +2 -2
  194. package/dist/segmented-control.js +3 -3
  195. package/dist/sidepanel.js +98 -95
  196. package/dist/sidepanel.js.map +1 -1
  197. package/dist/status.js +2 -2
  198. package/dist/stepper.js +3 -3
  199. package/dist/stepper.js.map +1 -1
  200. package/dist/structured-list.js +1 -1
  201. package/dist/summary-grid.js +3 -3
  202. package/dist/tabs.js +3 -3
  203. package/dist/tag.js +3 -3
  204. package/dist/textarea.js +116 -112
  205. package/dist/textarea.js.map +1 -1
  206. package/dist/timeline.js +6 -6
  207. package/dist/timeline.js.map +1 -1
  208. package/dist/toast.js +8 -7
  209. package/dist/toast.js.map +1 -1
  210. package/dist/toggle.js +2 -2
  211. package/dist/tutorial.js +5 -5
  212. package/dist/tutorial.js.map +1 -1
  213. package/dist/typography.js +1 -1
  214. package/dist/web-types.json +1 -1
  215. package/package.json +2 -2
  216. package/dist/chunks/base-modal.56a671c3.js.map +0 -1
  217. package/dist/chunks/checkbox.c63cd1d8.js.map +0 -1
  218. package/dist/chunks/copy.91983fad.js.map +0 -1
  219. package/dist/chunks/dropdown.b0e80aaa.js.map +0 -1
  220. package/dist/chunks/index.762f7ec9.js.map +0 -1
  221. package/dist/chunks/info-filled.e591599f.js.map +0 -1
  222. package/dist/chunks/listbox.2c0a69a6.js +0 -1419
  223. package/dist/chunks/listbox.2c0a69a6.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { defineComponent as R, useAttrs as C, useSlots as I, computed as s, openBlock as i, createBlock as _, resolveDynamicComponent as N, unref as n, mergeProps as h, withCtx as y, createElementBlock as m, renderSlot as c, createCommentVNode as d } from "vue";
2
- import { B as T } from "./index.fcfca776.js";
1
+ import { defineComponent as R, useAttrs as C, useSlots as I, computed as s, openBlock as i, createBlock as f, resolveDynamicComponent as N, unref as a, mergeProps as h, withCtx as y, createElementBlock as m, renderSlot as c, createCommentVNode as d } from "vue";
2
+ import { B as T } from "./index.a56038f2.js";
3
3
  import { u as $ } from "./use-has-slot.4d98bf29.js";
4
- import { BentoLink as A, BentoLinkVariant as L } from "../link.js";
4
+ import { B as A, a as L } from "./index.eba55960.js";
5
5
  import { _ as O } from "./_plugin-vue_export-helper.dad06003.js";
6
6
  import "../assets/button.css";
7
- var u = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t.TERTIARY = "tertiary", t))(u || {}), a = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DESTRUCTIVE = "critical", t.DISABLED = "disabled", t.ICON_ONLY = "icon-only", t.INVERSE = "inverse", t))(a || {});
8
- const Y = {
7
+ var u = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t.TERTIARY = "tertiary", t))(u || {}), n = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DESTRUCTIVE = "critical", t.DISABLED = "disabled", t.ICON_ONLY = "icon-only", t.INVERSE = "inverse", t))(n || {});
8
+ const B = {
9
9
  key: 0,
10
10
  class: "b-button__icon-left",
11
11
  "data-testid": "icon-button-left"
12
- }, B = {
12
+ }, Y = {
13
13
  key: 2,
14
14
  class: "b-button__icon-right",
15
15
  "data-testid": "icon-button-right"
@@ -58,38 +58,38 @@ const Y = {
58
58
  },
59
59
  emits: ["blur", "click", "focus", "keydown.esc"],
60
60
  setup(t, { emit: v }) {
61
- const e = t, p = C(), b = I(), r = $(b), f = s(() => (e == null ? void 0 : e.link) !== void 0 ? A : "button"), E = s(() => {
61
+ const e = t, b = C(), p = I(), r = $(p), _ = s(() => (e == null ? void 0 : e.link) !== void 0 ? A : "button"), E = s(() => {
62
62
  var o, l;
63
63
  return {
64
- "aria-controls": (o = p["aria-controls"]) == null ? void 0 : o.toString(),
65
- "aria-expanded": (l = p["aria-expanded"]) == null ? void 0 : l.toString()
64
+ "aria-controls": (o = b["aria-controls"]) == null ? void 0 : o.toString(),
65
+ "aria-expanded": (l = b["aria-expanded"]) == null ? void 0 : l.toString()
66
66
  };
67
67
  }), S = s(
68
- () => f.value === "button" ? {
68
+ () => _.value === "button" ? {
69
69
  ...E.value,
70
70
  disabled: e.disabled,
71
71
  type: e.type
72
- } : { ...e.link, disableTypography: !0, variant: L.DEFAULT }
72
+ } : { ...e.link, disableTypography: !0, variant: L.DEFAULT, isButton: !0 }
73
73
  ), k = s(() => ({
74
- [`b-button--${e.variant}${e.critical ? `-${a.DESTRUCTIVE}` : ""}`]: !0
74
+ [`b-button--${e.variant}${e.critical ? `-${n.DESTRUCTIVE}` : ""}`]: !0
75
75
  })), g = s(() => ({
76
76
  ...k.value,
77
- [`b-button--${a.CONDENSED}`]: e.condensed,
78
- [`b-button--${a.DISABLED}`]: e.disabled,
79
- [`b-button--${a.ICON_ONLY}`]: !b.default,
80
- [`b-button--${a.INVERSE}`]: e.inverse
77
+ [`b-button--${n.CONDENSED}`]: e.condensed,
78
+ [`b-button--${n.DISABLED}`]: e.disabled,
79
+ [`b-button--${n.ICON_ONLY}`]: !p.default,
80
+ [`b-button--${n.INVERSE}`]: e.inverse
81
81
  })), D = (o) => {
82
82
  e.disabled ? (o.preventDefault(), o.stopPropagation()) : v("click", o);
83
83
  };
84
- return (o, l) => (i(), _(N(n(f)), h(n(S), {
85
- class: ["b-button", n(g)],
84
+ return (o, l) => (i(), f(N(a(_)), h(a(S), {
85
+ class: ["b-button", a(g)],
86
86
  onClickCapture: D
87
87
  }), {
88
88
  default: y(() => [
89
- n(r)("iconLeft") ? (i(), m("span", Y, [
89
+ a(r)("iconLeft") ? (i(), m("span", B, [
90
90
  c(o.$slots, "iconLeft", {}, void 0, !0)
91
91
  ])) : d("", !0),
92
- n(r)("default") ? (i(), _(n(T), {
92
+ a(r)("default") ? (i(), f(a(T), {
93
93
  key: 1,
94
94
  el: "span",
95
95
  variant: "body",
@@ -101,7 +101,7 @@ const Y = {
101
101
  ]),
102
102
  _: 3
103
103
  })) : d("", !0),
104
- n(r)("iconRight") ? (i(), m("span", B, [
104
+ a(r)("iconRight") ? (i(), m("span", Y, [
105
105
  c(o.$slots, "iconRight", {}, void 0, !0)
106
106
  ])) : d("", !0)
107
107
  ]),
@@ -109,10 +109,10 @@ const Y = {
109
109
  }, 16, ["class"]));
110
110
  }
111
111
  });
112
- const H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-f5393f3a"]]);
112
+ const H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-be0c439a"]]);
113
113
  export {
114
114
  u as B,
115
115
  H as a,
116
- a as b
116
+ n as b
117
117
  };
118
- //# sourceMappingURL=button.7ce49c43.js.map
118
+ //# sourceMappingURL=button.9a51e27a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.7ce49c43.js","sources":["../../../core/src/components/button/button.types.ts","../../../vue2/src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"conditionalClasses\"\n @click.capture=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n // eslint-disable-next-line vue/require-default-prop\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n return BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : { ...props.link, disableTypography: true, variant: BentoLinkVariant.DEFAULT }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !slots.default,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/button/button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","onClickButton","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YAHQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;GCgLRE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7EAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SACIC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA,EAAA,GAAAA,EAAA,MAAA,mBAAA,IAAA,SAAAM,EAAA,QAAA;AAAA,IAE4D,GAGtFC,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,UAAAA,EAAA,WAAA,IAAAX,EAAA,gBAAA,IAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,WAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,UAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,WAAA,GAAA,CAAAK,EAAA;AAAA,MACE,CAAA,aAAAL,EAAA,SAAA,GAAAW,EAAA;AAAA,IACH,EAAA,GAGzDS,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,YAGIU,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button.9a51e27a.js","sources":["../../../core/src/components/button/button.types.ts","../../../vue2/src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"conditionalClasses\"\n @click.capture=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n // eslint-disable-next-line vue/require-default-prop\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n return BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : { ...props.link, disableTypography: true, variant: BentoLinkVariant.DEFAULT, isButton: true }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !slots.default,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/button/button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","onClickButton","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YAHQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;GCgLRE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7EAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SACIC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA,EAAA,GAAAA,EAAA,MAAA,mBAAA,IAAA,SAAAM,EAAA,SAAA,UAAA,GAAA;AAAA,IAE4E,GAGtGC,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,UAAAA,EAAA,WAAA,IAAAX,EAAA,gBAAA,IAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,WAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,UAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,WAAA,GAAA,CAAAK,EAAA;AAAA,MACE,CAAA,aAAAL,EAAA,SAAA,GAAAW,EAAA;AAAA,IACH,EAAA,GAGzDS,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,YAGIU,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,16 +1,16 @@
1
- import { defineComponent as ge, computed as p, resolveComponent as F, openBlock as I, createElementBlock as U, normalizeClass as Re, withKeys as Ue, createElementVNode as C, createVNode as J, ref as x, watch as H, nextTick as $e, toRef as V, resolveDirective as We, withDirectives as Ye, mergeProps as Ce, toHandlers as Fe, createBlock as se, withCtx as oe, createCommentVNode as me, createTextVNode as Te, toDisplayString as ke, Fragment as ue, renderList as le, reactive as _e, toRaw as je } from "vue";
1
+ import { defineComponent as ge, computed as p, resolveComponent as F, openBlock as I, createElementBlock as U, normalizeClass as Re, withKeys as Ue, createElementVNode as C, createVNode as J, ref as H, watch as q, nextTick as $e, toRef as x, resolveDirective as We, withDirectives as Ye, mergeProps as Ce, toHandlers as Fe, createBlock as se, withCtx as oe, createCommentVNode as me, createTextVNode as Te, toDisplayString as ke, Fragment as ue, renderList as le, reactive as _e, toRaw as je } from "vue";
2
2
  import { r as k, t as M, g as Ee, e as ye, d as Be, f as Ge } from "./index.f55fdc32.js";
3
- import { t as O, B as Ve, a as xe, f as Me } from "./index.3ec651d0.js";
3
+ import { t as O, B as Ve, a as xe, f as Me } from "./index.01e085bf.js";
4
4
  import { e as we } from "./index.d80206ed.js";
5
- import { a as He } from "./button.7ce49c43.js";
6
- import { B as qe } from "./index.fcfca776.js";
5
+ import { a as He } from "./button.9a51e27a.js";
6
+ import { B as qe } from "./index.a56038f2.js";
7
7
  import { u as Ke } from "./i18n.6c402773.js";
8
8
  import { g as Qe } from "./unique-id.a2a2b458.js";
9
9
  import { a as Xe } from "./keyboard-navigation.ca47dfa8.js";
10
10
  import { C as ze, a as Je } from "./chevron-left.4ee92950.js";
11
11
  import { _ as be } from "./_plugin-vue_export-helper.dad06003.js";
12
12
  import "../assets/calendar.css";
13
- function q(e, t) {
13
+ function K(e, t) {
14
14
  k(2, arguments);
15
15
  var n = M(e), a = O(t);
16
16
  return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : (a && n.setDate(n.getDate() + a), n);
@@ -49,7 +49,7 @@ function et(e, t) {
49
49
  function Pe(e, t) {
50
50
  k(2, arguments);
51
51
  var n = O(t), a = n * 7;
52
- return q(e, a);
52
+ return K(e, a);
53
53
  }
54
54
  function re(e, t) {
55
55
  k(2, arguments);
@@ -83,7 +83,7 @@ function he(e, t) {
83
83
  function at(e, t) {
84
84
  k(2, arguments);
85
85
  var n = O(t);
86
- return q(e, -n);
86
+ return K(e, -n);
87
87
  }
88
88
  function te(e, t) {
89
89
  k(2, arguments);
@@ -113,7 +113,7 @@ function rt(e, t, n) {
113
113
  if (!(r >= 0 && r <= 6))
114
114
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
115
115
  var y = M(e), d = O(t), D = y.getDay(), c = d % 7, i = (c + 7) % 7, h = 7 - r, g = d < 0 || d > 6 ? d - (D + h) % 7 : (i + h) % 7 - (D + h) % 7;
116
- return q(y, g);
116
+ return K(y, g);
117
117
  }
118
118
  function st(e, t) {
119
119
  k(2, arguments);
@@ -246,12 +246,12 @@ var ve = {}, mt = {
246
246
  set exports(e) {
247
247
  fe = e;
248
248
  }
249
- }, K = {}, ht = {
249
+ }, Q = {}, ht = {
250
250
  get exports() {
251
- return K;
251
+ return Q;
252
252
  },
253
253
  set exports(e) {
254
- K = e;
254
+ Q = e;
255
255
  }
256
256
  };
257
257
  (function(e, t) {
@@ -263,12 +263,12 @@ var ve = {}, mt = {
263
263
  throw new TypeError(a + " argument" + (a > 1 ? "s" : "") + " required, but only " + u.length + " present");
264
264
  }
265
265
  e.exports = t.default;
266
- })(ht, K);
266
+ })(ht, Q);
267
267
  (function(e, t) {
268
268
  Object.defineProperty(t, "__esModule", {
269
269
  value: !0
270
270
  }), t.default = u;
271
- var n = a(K);
271
+ var n = a(Q);
272
272
  function a(o) {
273
273
  return o && o.__esModule ? o : { default: o };
274
274
  }
@@ -283,7 +283,7 @@ var ve = {}, mt = {
283
283
  Object.defineProperty(t, "__esModule", {
284
284
  value: !0
285
285
  }), t.default = l;
286
- var n = o(ae), a = o(fe), u = o(K);
286
+ var n = o(ae), a = o(fe), u = o(Q);
287
287
  function o(r) {
288
288
  return r && r.__esModule ? r : { default: r };
289
289
  }
@@ -298,7 +298,7 @@ var ve = {}, mt = {
298
298
  Object.defineProperty(t, "__esModule", {
299
299
  value: !0
300
300
  }), t.default = l;
301
- var n = o(ae), a = o(ve), u = o(K);
301
+ var n = o(ae), a = o(ve), u = o(Q);
302
302
  function o(r) {
303
303
  return r && r.__esModule ? r : { default: r };
304
304
  }
@@ -310,19 +310,19 @@ var ve = {}, mt = {
310
310
  e.exports = t.default;
311
311
  })(ft, ce);
312
312
  const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, u) => {
313
- const o = x(new Date(t.value));
314
- H(
313
+ const o = H(new Date(t.value));
314
+ q(
315
315
  t,
316
316
  () => {
317
317
  o.value = t.value;
318
318
  },
319
319
  { immediate: !0 }
320
320
  );
321
- const l = x(new Date(e.value));
322
- H(e, () => {
321
+ const l = H(new Date(e.value));
322
+ q(e, () => {
323
323
  l.value = e.value;
324
324
  });
325
- const r = x({}), y = (s) => (v) => {
325
+ const r = H({}), y = (s) => (v) => {
326
326
  r.value[s.toDateString()] = v;
327
327
  }, d = () => {
328
328
  r.value = {};
@@ -363,7 +363,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
363
363
  moveToNextDay: (s) => {
364
364
  h(s);
365
365
  const v = 1;
366
- g({ nextDate: q(l.value, v), isIncreasingDays: !0 });
366
+ g({ nextDate: K(l.value, v), isIncreasingDays: !0 });
367
367
  },
368
368
  // ArrowLeft
369
369
  moveToPreviousDay: (s) => {
@@ -381,7 +381,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
381
381
  moveToNextWeek: (s) => {
382
382
  h(s);
383
383
  const v = 7;
384
- g({ nextDate: q(l.value, v), isIncreasingDays: !0 });
384
+ g({ nextDate: K(l.value, v), isIncreasingDays: !0 });
385
385
  },
386
386
  // Home
387
387
  moveToFirstDayOfWeek: (s) => {
@@ -536,14 +536,14 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
536
536
  moveToFirstDayOfWeek: m,
537
537
  moveToLastDayOfWeek: E,
538
538
  moveToPreviousMonth: T,
539
- moveToPreviousYear: Q,
539
+ moveToPreviousYear: G,
540
540
  moveToNextMonth: X,
541
541
  moveToNextYear: f,
542
542
  focusOnDate: _
543
543
  } = gt(
544
544
  {
545
- currentSelectedDate: V(e, "startDate"),
546
- month: V(e, "month"),
545
+ currentSelectedDate: x(e, "startDate"),
546
+ month: x(e, "month"),
547
547
  isDateDisabled: o.value,
548
548
  firstDayOfWeek: e.firstDayOfWeek
549
549
  },
@@ -592,7 +592,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
592
592
  "keydown:home": m,
593
593
  "keydown:end": E,
594
594
  "keydown:page-up": T,
595
- "keydown:shift-page-up": Q,
595
+ "keydown:shift-page-up": G,
596
596
  "keydown:page-down": X,
597
597
  "keydown:shift-page-down": f
598
598
  };
@@ -627,7 +627,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
627
627
  moveToFirstDayOfWeek: m,
628
628
  moveToLastDayOfWeek: E,
629
629
  moveToPreviousMonth: T,
630
- moveToPreviousYear: Q,
630
+ moveToPreviousYear: G,
631
631
  moveToNextMonth: X,
632
632
  moveToNextYear: f
633
633
  };
@@ -726,14 +726,14 @@ function wt(e, t, n, a, u, o) {
726
726
  [c]
727
727
  ]);
728
728
  }
729
- const G = /* @__PURE__ */ be(_t, [["render", wt], ["__scopeId", "data-v-b9b8810b"]]);
729
+ const V = /* @__PURE__ */ be(_t, [["render", wt], ["__scopeId", "data-v-b9b8810b"]]);
730
730
  var S = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(S || {});
731
731
  const St = ({ selectedDate: e }, t) => {
732
732
  const n = _e({
733
733
  startDate: null,
734
734
  endDate: null
735
735
  });
736
- return H(
736
+ return q(
737
737
  () => e.value,
738
738
  () => {
739
739
  n.startDate = e.value, n.endDate = void 0;
@@ -796,8 +796,8 @@ const St = ({ selectedDate: e }, t) => {
796
796
  const { adjustDateForWeekly: D, adjustDateForMonthly: c } = It(u, o, l), { savedRanges: i, saveRange: h, resetSavedRange: g } = Ot(), m = _e({
797
797
  startDate: null,
798
798
  endDate: null
799
- }), E = x(null);
800
- H(
799
+ }), E = H(null);
800
+ q(
801
801
  () => e.value,
802
802
  () => {
803
803
  let { startDate: f = null, endDate: _ = null } = e.value || {};
@@ -808,26 +808,10 @@ const St = ({ selectedDate: e }, t) => {
808
808
  const T = (f, _, w) => {
809
809
  if (m.startDate = f, m.endDate = _, n.value) {
810
810
  const b = tt(_, f) - n.value;
811
- b > 0 && (w < 1 ? (m.startDate = f, m.endDate = at(_, b)) : (m.startDate = q(f, b), m.endDate = _));
811
+ b > 0 && (w < 1 ? (m.startDate = f, m.endDate = at(_, b)) : (m.startDate = K(f, b), m.endDate = _));
812
812
  }
813
813
  r(S.START_DATE_SELECTED, m.startDate), r(S.END_DATE_SELECTED, m.endDate);
814
- }, Q = (f) => {
815
- var _, w;
816
- if (E.value)
817
- E.value = null, r(S.INPUT, m), a.value && g(a.value.type);
818
- else {
819
- let b = f;
820
- if (((_ = a == null ? void 0 : a.value) == null ? void 0 : _.type) === "weekly") {
821
- const { startDate: W, endDate: s } = D(f);
822
- b = W, T(b, s);
823
- }
824
- if (((w = a == null ? void 0 : a.value) == null ? void 0 : w.type) === "monthly") {
825
- const { startDate: W, endDate: s } = c(f);
826
- b = W, T(b, s);
827
- }
828
- E.value = b, r(S.START_DATE_SELECTED, b), r(S.END_DATE_SELECTED, b);
829
- }
830
- }, X = (f) => {
814
+ }, G = (f) => {
831
815
  var _, w, b, W;
832
816
  if (!(!E.value || t && t(f)))
833
817
  if (ot(f, E.value)) {
@@ -855,8 +839,24 @@ const St = ({ selectedDate: e }, t) => {
855
839
  }
856
840
  T(E.value, f, 1);
857
841
  }
842
+ }, X = (f) => {
843
+ var _, w;
844
+ if (E.value)
845
+ E.value = null, r(S.INPUT, m), a.value && g(a.value.type);
846
+ else {
847
+ let b = f;
848
+ if (((_ = a == null ? void 0 : a.value) == null ? void 0 : _.type) === "weekly") {
849
+ const { startDate: W, endDate: s } = D(f);
850
+ b = W, T(b, s);
851
+ }
852
+ if (((w = a == null ? void 0 : a.value) == null ? void 0 : w.type) === "monthly") {
853
+ const { startDate: W, endDate: s } = c(f);
854
+ b = W, T(b, s);
855
+ }
856
+ E.value = b, G(b), r(S.START_DATE_SELECTED, b), r(S.END_DATE_SELECTED, b);
857
+ }
858
858
  };
859
- return H(a, (f, _) => {
859
+ return q(a, (f, _) => {
860
860
  switch (h(_.type, structuredClone(je(m))), f.type) {
861
861
  case "monthly": {
862
862
  if (i.monthly) {
@@ -883,17 +883,17 @@ const St = ({ selectedDate: e }, t) => {
883
883
  }
884
884
  }), {
885
885
  internalValue: m,
886
- onDateInput: Q,
887
- onMouseOver: X
886
+ onDateInput: X,
887
+ onMouseOver: G
888
888
  };
889
889
  }, Rt = ge({
890
890
  name: "calendar",
891
- components: { CalendarMonth: G },
891
+ components: { CalendarMonth: V },
892
892
  props: {
893
893
  /**
894
894
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
895
895
  */
896
- firstDayOfWeek: G.props.firstDayOfWeek,
896
+ firstDayOfWeek: V.props.firstDayOfWeek,
897
897
  /**
898
898
  * The selected granularity configuration
899
899
  */
@@ -904,11 +904,11 @@ const St = ({ selectedDate: e }, t) => {
904
904
  /**
905
905
  * Indicate if a date should be disabled or not
906
906
  */
907
- isDateDisabled: G.props.isDateDisabled,
907
+ isDateDisabled: V.props.isDateDisabled,
908
908
  /**
909
909
  * Enables the Date Range calendar
910
910
  */
911
- isRange: G.props.isRange,
911
+ isRange: V.props.isRange,
912
912
  /**
913
913
  * Set a maximum number of dates to be selectable by the range.
914
914
  */
@@ -916,11 +916,11 @@ const St = ({ selectedDate: e }, t) => {
916
916
  /**
917
917
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
918
918
  */
919
- min: G.props.min,
919
+ min: V.props.min,
920
920
  /**
921
921
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
922
922
  */
923
- max: G.props.max,
923
+ max: V.props.max,
924
924
  /**
925
925
  * Number of months rendered on pane
926
926
  */
@@ -937,8 +937,8 @@ const St = ({ selectedDate: e }, t) => {
937
937
  },
938
938
  emit: [S.INPUT, S.START_DATE_SELECTED, S.END_DATE_SELECTED],
939
939
  setup(e, { emit: t }) {
940
- const n = x(null), a = x();
941
- H(
940
+ const n = H(null), a = H();
941
+ q(
942
942
  () => e.value,
943
943
  () => {
944
944
  var i;
@@ -954,10 +954,10 @@ const St = ({ selectedDate: e }, t) => {
954
954
  onMouseOver: r
955
955
  } = e.isRange ? pt(
956
956
  {
957
- selectedDate: V(e, "value"),
957
+ selectedDate: x(e, "value"),
958
958
  isDateDisabled: e.isDateDisabled,
959
- maxRange: V(e, "maxRange"),
960
- granularity: V(e, "granularity"),
959
+ maxRange: x(e, "maxRange"),
960
+ granularity: x(e, "granularity"),
961
961
  firstDayOfWeek: e.firstDayOfWeek,
962
962
  min: e.min,
963
963
  max: e.max
@@ -965,7 +965,7 @@ const St = ({ selectedDate: e }, t) => {
965
965
  t
966
966
  ) : St(
967
967
  {
968
- selectedDate: V(e, "value"),
968
+ selectedDate: x(e, "value"),
969
969
  firstDayOfWeek: e.firstDayOfWeek
970
970
  },
971
971
  t
@@ -1026,7 +1026,7 @@ export {
1026
1026
  S as a,
1027
1027
  ee as b,
1028
1028
  ie as c,
1029
- q as d,
1029
+ K as d,
1030
1030
  he as e,
1031
1031
  at as f,
1032
1032
  de as g,
@@ -1035,4 +1035,4 @@ export {
1035
1035
  B as s,
1036
1036
  It as u
1037
1037
  };
1038
- //# sourceMappingURL=calendar.f0f7b405.js.map
1038
+ //# sourceMappingURL=calendar.ac3ea3d9.js.map