@adyen/bento-vue3 1.25.0 → 1.26.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 (215) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +14 -48
  12. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  13. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
  15. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  17. package/dist/accordion.js +3 -3
  18. package/dist/action-bar.js +7 -7
  19. package/dist/alert.js +6 -6
  20. package/dist/assets/base-modal.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/index.css +1 -1
  23. package/dist/assets/index10.css +1 -1
  24. package/dist/assets/index11.css +1 -1
  25. package/dist/assets/index12.css +1 -1
  26. package/dist/assets/index13.css +1 -1
  27. package/dist/assets/index14.css +1 -1
  28. package/dist/assets/index16.css +1 -1
  29. package/dist/assets/index17.css +1 -1
  30. package/dist/assets/index18.css +1 -1
  31. package/dist/assets/index19.css +1 -1
  32. package/dist/assets/index2.css +1 -1
  33. package/dist/assets/index20.css +1 -1
  34. package/dist/assets/index21.css +1 -1
  35. package/dist/assets/index22.css +1 -1
  36. package/dist/assets/index23.css +1 -1
  37. package/dist/assets/index24.css +1 -1
  38. package/dist/assets/index25.css +1 -1
  39. package/dist/assets/index26.css +1 -1
  40. package/dist/assets/index27.css +1 -1
  41. package/dist/assets/index28.css +1 -1
  42. package/dist/assets/index29.css +1 -1
  43. package/dist/assets/index3.css +1 -1
  44. package/dist/assets/index30.css +1 -1
  45. package/dist/assets/index32.css +1 -1
  46. package/dist/assets/index33.css +1 -1
  47. package/dist/assets/index34.css +1 -1
  48. package/dist/assets/index36.css +1 -1
  49. package/dist/assets/index37.css +1 -1
  50. package/dist/assets/index38.css +1 -1
  51. package/dist/assets/index4.css +1 -1
  52. package/dist/assets/index40.css +1 -1
  53. package/dist/assets/index41.css +1 -1
  54. package/dist/assets/index42.css +1 -1
  55. package/dist/assets/index43.css +1 -1
  56. package/dist/assets/index44.css +1 -1
  57. package/dist/assets/index45.css +1 -1
  58. package/dist/assets/index46.css +1 -1
  59. package/dist/assets/index47.css +1 -1
  60. package/dist/assets/index48.css +1 -1
  61. package/dist/assets/index5.css +1 -1
  62. package/dist/assets/index6.css +1 -1
  63. package/dist/assets/index7.css +1 -1
  64. package/dist/assets/index8.css +1 -1
  65. package/dist/assets/index9.css +1 -1
  66. package/dist/avatar-image.js +1 -1
  67. package/dist/badge.js +1 -1
  68. package/dist/button.js +5 -5
  69. package/dist/card.js +4 -4
  70. package/dist/checkbox.js +6 -6
  71. package/dist/chunks/{base-button.6be8b60e.js → base-button.e84acf30.js} +2 -2
  72. package/dist/chunks/{base-button.6be8b60e.js.map → base-button.e84acf30.js.map} +1 -1
  73. package/dist/chunks/{base-modal.310c4790.js → base-modal.29e062d0.js} +7 -7
  74. package/dist/chunks/{base-modal.310c4790.js.map → base-modal.29e062d0.js.map} +1 -1
  75. package/dist/chunks/{button-actions-with-menu.a007b034.js → button-actions-with-menu.7fce47a2.js} +4 -4
  76. package/dist/chunks/{button-actions-with-menu.a007b034.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
  77. package/dist/chunks/{button-actions.adc0a2fe.js → button-actions.642b37de.js} +3 -3
  78. package/dist/chunks/{button-actions.adc0a2fe.js.map → button-actions.642b37de.js.map} +1 -1
  79. package/dist/chunks/{button.de5589fa.js → button.60dad578.js} +3 -3
  80. package/dist/chunks/{button.de5589fa.js.map → button.60dad578.js.map} +1 -1
  81. package/dist/chunks/{calendar.73f5b904.js → calendar.f38cdab9.js} +5 -5
  82. package/dist/chunks/{calendar.73f5b904.js.map → calendar.f38cdab9.js.map} +1 -1
  83. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
  84. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
  85. package/dist/chunks/{checkbox.4c96cc23.js → checkbox.f55ee3a5.js} +4 -4
  86. package/dist/chunks/{checkbox.4c96cc23.js.map → checkbox.f55ee3a5.js.map} +1 -1
  87. package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
  88. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
  89. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
  90. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
  91. package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
  92. package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
  93. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
  94. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
  95. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
  96. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
  97. package/dist/chunks/{controls-group.37a67734.js → controls-group.9e0f17b2.js} +3 -3
  98. package/dist/chunks/{controls-group.37a67734.js.map → controls-group.9e0f17b2.js.map} +1 -1
  99. package/dist/chunks/{copy.43de2653.js → copy.852d4cb8.js} +4 -4
  100. package/dist/chunks/{copy.43de2653.js.map → copy.852d4cb8.js.map} +1 -1
  101. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
  102. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
  103. package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
  104. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
  105. package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
  106. package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
  107. package/dist/chunks/{dialog-page.cd8c7fff.js → dialog-page.ea67bb14.js} +3 -3
  108. package/dist/chunks/{dialog-page.cd8c7fff.js.map → dialog-page.ea67bb14.js.map} +1 -1
  109. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js → dropdown-default-textbox.ad5063c2.js} +4 -4
  110. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
  111. package/dist/chunks/{dropdown.57b2ea6f.js → dropdown.d8587f36.js} +15 -15
  112. package/dist/chunks/{dropdown.57b2ea6f.js.map → dropdown.d8587f36.js.map} +1 -1
  113. package/dist/chunks/{error-message.4bd22112.js → error-message.3fb5573a.js} +3 -3
  114. package/dist/chunks/{error-message.4bd22112.js.map → error-message.3fb5573a.js.map} +1 -1
  115. package/dist/chunks/{fixed-scroller.5b93a6a6.js → fixed-scroller.59aefd1b.js} +3 -3
  116. package/dist/chunks/{fixed-scroller.5b93a6a6.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
  117. package/dist/chunks/{footer-actions.c401ec50.js → footer-actions.89e68269.js} +4 -4
  118. package/dist/chunks/{footer-actions.c401ec50.js.map → footer-actions.89e68269.js.map} +1 -1
  119. package/dist/chunks/{index.8b10ee32.js → index.030c1dd7.js} +7 -7
  120. package/dist/chunks/{index.8b10ee32.js.map → index.030c1dd7.js.map} +1 -1
  121. package/dist/chunks/{index.98bbaed9.js → index.07122048.js} +2 -2
  122. package/dist/chunks/{index.98bbaed9.js.map → index.07122048.js.map} +1 -1
  123. package/dist/chunks/{index.8682bd04.js → index.146f967e.js} +2 -2
  124. package/dist/chunks/{index.8682bd04.js.map → index.146f967e.js.map} +1 -1
  125. package/dist/chunks/{index.bab8811d.js → index.5bdebf9d.js} +7 -7
  126. package/dist/chunks/{index.bab8811d.js.map → index.5bdebf9d.js.map} +1 -1
  127. package/dist/chunks/{index.aa83aa48.js → index.6e0e9d21.js} +3 -3
  128. package/dist/chunks/{index.aa83aa48.js.map → index.6e0e9d21.js.map} +1 -1
  129. package/dist/chunks/{index.ea65003b.js → index.8be283d5.js} +2 -2
  130. package/dist/chunks/{index.ea65003b.js.map → index.8be283d5.js.map} +1 -1
  131. package/dist/chunks/{index.faec0854.js → index.96cd0d4c.js} +15 -15
  132. package/dist/chunks/{index.faec0854.js.map → index.96cd0d4c.js.map} +1 -1
  133. package/dist/chunks/{index.f71015d8.js → index.9bf04b01.js} +3 -3
  134. package/dist/chunks/{index.f71015d8.js.map → index.9bf04b01.js.map} +1 -1
  135. package/dist/chunks/{index.11b6dd35.js → index.a3d60e4f.js} +17 -17
  136. package/dist/chunks/index.a3d60e4f.js.map +1 -0
  137. package/dist/chunks/{index.73ac0db6.js → index.ba3396d3.js} +3 -3
  138. package/dist/chunks/{index.73ac0db6.js.map → index.ba3396d3.js.map} +1 -1
  139. package/dist/chunks/{index.38752f78.js → index.c8ffede1.js} +7 -7
  140. package/dist/chunks/{index.38752f78.js.map → index.c8ffede1.js.map} +1 -1
  141. package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
  142. package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
  143. package/dist/chunks/{listbox-option-tag.d1a3b340.js → listbox-option-tag.b6182b2e.js} +3 -3
  144. package/dist/chunks/{listbox-option-tag.d1a3b340.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
  145. package/dist/chunks/{loading-button.2db95771.js → loading-button.0391ad8b.js} +4 -4
  146. package/dist/chunks/{loading-button.2db95771.js.map → loading-button.0391ad8b.js.map} +1 -1
  147. package/dist/chunks/{payment-method.26fa5509.js → payment-method.31a68b9b.js} +2 -2
  148. package/dist/chunks/{payment-method.26fa5509.js.map → payment-method.31a68b9b.js.map} +1 -1
  149. package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
  150. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
  151. package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
  152. package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
  153. package/dist/chunks/{tooltip.e29f7d7e.js → tooltip.1084d92b.js} +3 -3
  154. package/dist/chunks/{tooltip.e29f7d7e.js.map → tooltip.1084d92b.js.map} +1 -1
  155. package/dist/chunks/{use-bento-toast-controller.98ca249a.js → use-bento-toast-controller.98d8613c.js} +2 -2
  156. package/dist/chunks/{use-bento-toast-controller.98ca249a.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
  157. package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js → use-cached-selected-values.852aeafe.js} +8 -8
  158. package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js.map → use-cached-selected-values.852aeafe.js.map} +1 -1
  159. package/dist/code-snippet.js +7 -7
  160. package/dist/country.js +2 -2
  161. package/dist/currency.js +1 -1
  162. package/dist/data-grid-template.js +1 -1
  163. package/dist/data-grid.js +1287 -1253
  164. package/dist/data-grid.js.map +1 -1
  165. package/dist/date-picker.js +19 -19
  166. package/dist/date-picker.js.map +1 -1
  167. package/dist/date-range-picker.js +2 -2
  168. package/dist/date.js +1 -1
  169. package/dist/divider.js +1 -1
  170. package/dist/dropdown.js +7 -7
  171. package/dist/empty-state.js +3 -3
  172. package/dist/filter-bar.js +22 -22
  173. package/dist/focus-trap.js +1 -1
  174. package/dist/form-layout.js +53 -51
  175. package/dist/form-layout.js.map +1 -1
  176. package/dist/header.js +4 -4
  177. package/dist/index.js +22 -22
  178. package/dist/info-icon.js +4 -4
  179. package/dist/input-field.js +3 -3
  180. package/dist/internal.js +8 -8
  181. package/dist/link.js +1 -1
  182. package/dist/loading-indicator.js +1 -1
  183. package/dist/menu.js +1 -1
  184. package/dist/modal-fullscreen.js +7 -7
  185. package/dist/modal.js +6 -6
  186. package/dist/pagination.js +4 -4
  187. package/dist/payment-method.js +1 -1
  188. package/dist/popover.js +1 -1
  189. package/dist/popper-container.js +1 -1
  190. package/dist/radio-group.js +4 -4
  191. package/dist/search-bar.js +4 -4
  192. package/dist/secondary-nav.js +2 -2
  193. package/dist/segmented-control.js +4 -4
  194. package/dist/selection-card.js +5 -5
  195. package/dist/sidepanel.js +7 -7
  196. package/dist/status.js +2 -2
  197. package/dist/stepper.js +4 -4
  198. package/dist/structured-list.js +1 -1
  199. package/dist/summary-grid.js +2 -2
  200. package/dist/tabs.js +22 -20
  201. package/dist/tabs.js.map +1 -1
  202. package/dist/tag.js +3 -3
  203. package/dist/textarea.js +4 -4
  204. package/dist/timeline.js +6 -6
  205. package/dist/toast.js +5 -5
  206. package/dist/toggle.js +3 -3
  207. package/dist/tutorial.js +145 -124
  208. package/dist/tutorial.js.map +1 -1
  209. package/dist/typography.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +2 -2
  212. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  213. package/dist/chunks/index.11b6dd35.js.map +0 -1
  214. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
  215. /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
@@ -1,22 +1,22 @@
1
1
  import { ref as C, computed as P, defineComponent as J, toRef as N, watch as Q, nextTick as U, resolveComponent as p, resolveDirective as X, withDirectives as Z, openBlock as c, createElementBlock as x, withKeys as M, createBlock as y, createCommentVNode as k, createElementVNode as ee, createVNode as _, normalizeClass as ae, withCtx as h, createTextVNode as te, toDisplayString as re } from "vue";
2
- import { a as ne } from "./chunks/index.bab8811d.js";
3
- import { B as oe } from "./chunks/index.11b6dd35.js";
4
- import { d as le } from "./chunks/debounce.b5ef6acf.js";
5
- import { D as A, v as ie, f as se } from "./chunks/date-input.9186a0bf.js";
2
+ import { a as ne } from "./chunks/index.5bdebf9d.js";
3
+ import { B as oe } from "./chunks/index.a3d60e4f.js";
4
+ import { c as le, B as ie } from "./chunks/dropdown-default-textbox.ad5063c2.js";
5
+ import { d as se } from "./chunks/debounce.b5ef6acf.js";
6
+ import { D as A, v as de, f as ue } from "./chunks/date-input.9186a0bf.js";
6
7
  import { g as I } from "./chunks/unique-id.a2a2b458.js";
7
8
  import { u as L } from "./chunks/i18n.f7e6533e.js";
8
- import { f as F } from "./chunks/index.8682bd04.js";
9
- import { e as w, d as de, f as ue } from "./chunks/index.f55fdc32.js";
10
- import { u as pe } from "./chunks/use-form-layout-loading.d03e5d48.js";
11
- import { c as ce, B as fe } from "./chunks/dropdown-default-textbox.424e0eb6.js";
12
- import { C as g } from "./chunks/calendar.73f5b904.js";
13
- import { b as Ye } from "./chunks/calendar.73f5b904.js";
14
- import { E as me, F as De } from "./chunks/error-message.4bd22112.js";
9
+ import { f as F } from "./chunks/index.146f967e.js";
10
+ import { e as w, d as pe, f as ce } from "./chunks/index.f55fdc32.js";
11
+ import { u as fe } from "./chunks/use-form-layout-loading.d03e5d48.js";
12
+ import { C as g } from "./chunks/calendar.f38cdab9.js";
13
+ import { b as Ye } from "./chunks/calendar.f38cdab9.js";
14
+ import { E as me, F as De } from "./chunks/error-message.3fb5573a.js";
15
15
  import { _ as be } from "./chunks/_plugin-vue_export-helper.dad06003.js";
16
- import "./assets/index13.css";
16
+ import "./assets/index2.css";
17
17
  const ve = ({ datePickerValue: e, isDateIncorrect: t }) => {
18
18
  var i;
19
- const { locale: o, t: f } = L(), m = { de, enUS: w, fr: ue }, l = C((i = e.value) == null ? void 0 : i.toDateString());
19
+ const { locale: o, t: f } = L(), m = { de: pe, enUS: w, fr: ce }, l = C((i = e.value) == null ? void 0 : i.toDateString());
20
20
  return {
21
21
  // Values
22
22
  dateDisplayValue: P(() => t.value ? l.value : e.value ? F(e.value, A.FULL_DATE, {
@@ -48,10 +48,10 @@ const $ = {
48
48
  BentoPopover: ne,
49
49
  Calendar: g,
50
50
  ErrorMessage: me,
51
- DropdownInputDefault: ce,
51
+ DropdownInputDefault: le,
52
52
  FieldLabel: De
53
53
  },
54
- directives: { BentoClickOutsideDirective: fe },
54
+ directives: { BentoClickOutsideDirective: ie },
55
55
  props: {
56
56
  /**
57
57
  * Descriptive supporting text visbile underneath the dropdown.
@@ -108,7 +108,7 @@ const $ = {
108
108
  },
109
109
  emits: [d.INPUT],
110
110
  setup(e, { emit: t }) {
111
- const { t: o } = L({ messages: $ }), f = I("bento-date-picker-container"), m = I("bento-date-picker-label"), l = I("bento-date-picker-description"), D = I("bento-date-picker-error"), b = I("bento-date-picker-date-error"), i = P(() => e.label || o("datePicker", { name: f })), s = C(null), E = C(null), r = C(!1), n = C(!1), { isReadOnly: v } = pe(N(e, "readonly"));
111
+ const { t: o } = L({ messages: $ }), f = I("bento-date-picker-container"), m = I("bento-date-picker-label"), l = I("bento-date-picker-description"), D = I("bento-date-picker-error"), b = I("bento-date-picker-date-error"), i = P(() => e.label || o("datePicker", { name: f })), s = C(null), E = C(null), r = C(!1), n = C(!1), { isReadOnly: v } = fe(N(e, "readonly"));
112
112
  Q(
113
113
  () => e.disabled,
114
114
  (a) => {
@@ -131,12 +131,12 @@ const $ = {
131
131
  }, z = async () => {
132
132
  r.value && (r.value = !1, u.value = null), t(d.INPUT, null);
133
133
  }, G = (a) => {
134
- ie(a);
134
+ de(a);
135
135
  }, R = (a) => {
136
136
  if (a.length < 10)
137
137
  return;
138
138
  /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && W(new Date(a)) ? (r.value = !1, t(d.INPUT, new Date(a))) : a && (r.value = !0, t(d.INPUT, null));
139
- }, H = le(R, ye);
139
+ }, H = se(R, ye);
140
140
  return {
141
141
  // Refs
142
142
  inputContainerRef: E,
@@ -163,7 +163,7 @@ const $ = {
163
163
  openDatePicker: V,
164
164
  onDateKeyDown: G,
165
165
  onDateInputChange: (a) => {
166
- u.value = se(a), n.value ? H(u.value) : R(u.value);
166
+ u.value = ue(a), n.value ? H(u.value) : R(u.value);
167
167
  },
168
168
  // Keyboard navigation
169
169
  onSpaceBarOrEnter: async (a) => {
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.js","sources":["../../vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../vue2/src/components/date-picker/date-picker.types.ts","../../vue2/src/components/date-picker/date-picker.vue"],"sourcesContent":["import { computed, ref } from 'vue';\nimport { de, enUS, fr } from 'date-fns/locale';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { DateFormat } from '@/types';\nimport format from 'date-fns/format';\n\n/**\n * Composable that sets and formats the date to be displayed in the input box of a Single Date Picker\n * @param {Ref<Date>} option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param {Ref<boolean>} option.isDateIncorrect Indicates if the date is correct or not\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({ datePickerValue, isDateIncorrect }) => {\n const { locale, t } = useI18n();\n const locales = { de, enUS, fr };\n\n const textInputValue = ref(datePickerValue.value?.toDateString());\n\n const dateDisplayValue = computed(() => {\n // Display incorrect date when there's an error with the input\n if (isDateIncorrect.value) {\n return textInputValue.value;\n }\n\n // Display \"Select a date\" when there's no date selected or input\n if (!datePickerValue.value) {\n return t('selectDate') as string;\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" if there's a valid date selected\n return format(datePickerValue.value as Date, DateFormat.FULL_DATE, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\n });\n\n /**\n * Formats the \"dateToFormat\" date value with the yyyy-MM-dd format and sets it as \"formatTextInputDisplayValue\" value\n * @param {DATE} dateToFormat - Date to be assigned and formatted\n */\n const formatTextInputDisplayValue = (dateToFormat: Date = datePickerValue.value) => {\n // If date is incorrect, leave the textInputValue intact\n if (isDateIncorrect.value) {\n return;\n }\n\n textInputValue.value = dateToFormat\n ? format(dateToFormat, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : null;\n };\n\n return {\n // Values\n dateDisplayValue,\n textInputValue,\n\n // Methods\n formatTextInputDisplayValue,\n };\n};\n","export { CalendarFirstDayOfWeek as BentoDatePickerFirstDayOfWeek } from '@/internal';\nexport type {\n CalendarIsDateDisabled as BentoDatePickerIsDateDisabled,\n CalendarSingleDateValue as BentoDatePickerValue,\n} from '@/internal';\n\nexport enum BentoDatePickerEvent {\n INPUT = 'input',\n}\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div\n v-bento-click-outside-directive=\"closeDatePicker\"\n class=\"b-date-picker\"\n @keydown.space.capture=\"onSpaceBarOrEnter\"\n @keydown.enter.capture=\"onSpaceBarOrEnter\"\n >\n <!-- Label -->\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :disabled=\"disabled\"\n dynamic-filtering\n :is-invalid=\"!!errorMessage || !!dateErrorText\"\n :open=\"isDatePickerOpen\"\n :value=\"textInputValue\"\n :display-value=\"dateDisplayValue\"\n :debounce-time=\"0\"\n :readonly=\"isReadOnly\"\n @input=\"onDateInputChange\"\n @open=\"openDatePicker\"\n @keydown=\"onDateKeyDown\"\n @clear=\"clearDatePickerValue\"\n @close=\"closeDatePicker\"\n />\n </div>\n\n <!-- Error Messages -->\n <error-message\n v-if=\"dateErrorText\"\n :id=\"dateErrorId\"\n :error-message=\"dateErrorText\"\n class=\"b-date-picker__error-message\"\n />\n <error-message\n v-if=\"errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-date-picker__error-message\"\n />\n\n <!-- Description -->\n <bento-typography\n v-if=\"description\"\n class=\"b-date-picker__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n {{ description }}\n </bento-typography>\n\n <!-- Calendar container -->\n <bento-popover\n v-if=\"inputContainerRef\"\n :id=\"datePickerContainerId\"\n class=\"b-date-picker__container\"\n role=\"dialog\"\n :open=\"isDatePickerOpen\"\n :target-element=\"inputContainerRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n position=\"bottom-start\"\n fit-content\n >\n <calendar\n ref=\"calendarContainerRef\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"value\"\n :min=\"min\"\n :max=\"max\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, Ref, ref, toRef, watch } from 'vue';\n\n // Components\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '../typography';\n import { Calendar, ErrorMessage, FieldLabel } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n\n // Utils\n import { debounce } from '@/utils/ts/debounce';\n import { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n // Composables\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { useFormLayoutFieldLoading } from '@/composables';\n\n // Directive\n import { BentoClickOutsideDirective } from '@/directives';\n\n // Types\n import { BentoDatePickerEvent, BentoDatePickerValue } from './date-picker.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\n /**\n * Date picker selector.\n *\n * @example\n * import { BentoDatePicker } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDatePicker },\n * template: `\n * <bento-date-picker\n * label=\"Label\"\n * description=\"Supporting text\"\n * required\n * optional\n * disabled\n * @input=\"onDateChanged\"\n * v-model=\"selectedDate\"\n * />\n * `,\n * setup() {\n * const selectedDate = ref(new Date()); // reactive({ startDate: new Date(), endDate: new Date() })\n * return {\n * selectedDate,\n * }\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-date-picker',\n components: {\n BentoTypography,\n BentoPopover,\n Calendar,\n ErrorMessage,\n DropdownInputDefault,\n FieldLabel,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description: { type: String, default: undefined },\n\n /**\n * Disables dropdown functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Displays component in an error state with an error message\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: Calendar.props.firstDayOfWeek,\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: Calendar.props.isDateDisabled,\n\n /**\n * Sets a minimum limit for selectable dates - dates before `min` will not be selectable\n */\n min: Calendar.props.min,\n\n /**\n * Sets a maximum limit for selectable dates - dates after `max` will not be selectable\n */\n max: Calendar.props.max,\n\n /**\n * Text that is displayed as a label above the element.\n */\n label: { type: String, default: undefined },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date picker.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * Selected date\n */\n value: { type: [Date, Object] as PropType<BentoDatePickerValue>, default: null },\n },\n emits: [BentoDatePickerEvent.INPUT],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const datePickerContainerId = generateUid('bento-date-picker-container');\n const labelId = generateUid('bento-date-picker-label');\n const descriptionId = generateUid('bento-date-picker-description');\n const errorId = generateUid('bento-date-picker-error');\n const dateErrorId = generateUid('bento-date-picker-date-error');\n const popoverAriaLabel = computed(() => props.label || t('datePicker', { name: datePickerContainerId }));\n\n // Refs\n const calendarContainerRef = ref(null);\n const inputContainerRef = ref(null);\n\n // Values\n const isDateIncorrect = ref(false);\n const isDatePickerOpen = ref(false);\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n watch(\n () => props.disabled,\n disabled => {\n // Close date picker popover if it's opened when it's disabled\n if (disabled && isDatePickerOpen.value) {\n isDatePickerOpen.value = false;\n }\n }\n );\n\n const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: toRef(props, 'value') as Ref<Date>,\n isDateIncorrect,\n });\n\n const dateErrorText = computed(() => {\n if (\n props.isDateDisabled &&\n props.isDateDisabled(new Date(textInputValue.value)) &&\n !isDatePickerOpen.value\n ) {\n return t('selectedDateIsNotAvailable');\n }\n\n return isDateIncorrect.value ? t('provideDateInAFormat') : null;\n });\n\n const descriptionConditionalClasses = computed(() => ({\n 'b-date-picker__description--error': props.errorMessage || dateErrorText.value,\n }));\n\n const ariaDescribedBy = computed(\n () =>\n `${props.description ? descriptionId : ''} ${props.errorMessage ? errorId : ''} ${\n dateErrorText.value ? dateErrorId : ''\n }`.trim() || null\n );\n\n const isDateEnabled = (date: Date) => {\n // Check if date is between min/max bounds, if there are any\n if ((props.min && date <= props.min) || (props.max && date >= props.max)) {\n return false;\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled) {\n return !props.isDateDisabled(date);\n }\n\n return true;\n };\n\n const closeDatePicker = () => {\n isDatePickerOpen.value = false;\n };\n\n const openDatePicker = () => {\n isDatePickerOpen.value = true;\n\n formatTextInputDisplayValue();\n };\n\n const onDateSelected = (selectedDate: Date) => {\n // Reset the error state when a valid date is selected\n isDateIncorrect.value = false;\n\n closeDatePicker();\n emit(BentoDatePickerEvent.INPUT, selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emit(BentoDatePickerEvent.INPUT, null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n validateDateInput(event);\n };\n\n const validateDate = (stringDate: string) => {\n // Validate only if the date is complete\n if (stringDate.length < 10) {\n return;\n }\n\n // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/;\n const isValidDate = dateRegex.test(stringDate) && isDateEnabled(new Date(stringDate));\n if (isValidDate) {\n isDateIncorrect.value = false;\n emit(BentoDatePickerEvent.INPUT, new Date(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emit(BentoDatePickerEvent.INPUT, null);\n }\n };\n\n const validateDateDebounced = debounce(validateDate, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = formatDateInputValue(stringDate);\n // If we are closing the date picker, we should validate (and emit date inputs) immediately so the user doesn't have to wait for the debounce time.\n if (isDatePickerOpen.value) {\n validateDateDebounced(textInputValue.value);\n } else {\n validateDate(textInputValue.value);\n }\n };\n\n /**\n * Space bar and Enter keyDown event handler.\n *\n * * Opens the date picker dialog on the first keydown.\n * * Move focus to selected date, i.e., the date displayed in the date input text field. If no date has been selected, places focus on the current date.\n * @param {KeyboardEvent} event Event being triggered\n */\n const onSpaceBarOrEnter = async (event: KeyboardEvent) => {\n if (isDatePickerOpen.value) {\n return;\n }\n event.preventDefault();\n\n openDatePicker();\n\n // Wait for the date picker dialog to open\n await nextTick();\n\n // Set current date (today) if no date is selected\n if (!props.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emit(BentoDatePickerEvent.INPUT, new Date());\n\n // Wait for new value to be set with the emit\n await nextTick();\n }\n\n // Focus on date\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(props.value);\n };\n\n return {\n // Refs\n inputContainerRef,\n calendarContainerRef,\n\n // Values,\n dateDisplayValue,\n datePickerContainerId,\n descriptionConditionalClasses,\n isDateIncorrect,\n isDatePickerOpen,\n isReadOnly,\n dateErrorText,\n labelId,\n descriptionId,\n errorId,\n dateErrorId,\n popoverAriaLabel,\n ariaDescribedBy,\n textInputValue,\n\n // Events\n closeDatePicker,\n clearDatePickerValue,\n onDateSelected,\n openDatePicker,\n onDateKeyDown,\n onDateInputChange,\n\n // Keyboard navigation\n onSpaceBarOrEnter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","locale","t","useI18n","locales","enUS","fr","textInputValue","ref","_a","computed","format","DateFormat","dateToFormat","BentoDatePickerEvent","BentoDatePickerEvent2","DEBOUNCE_TIME","_sfc_main","defineComponent","messages","BentoTypography","BentoPopover","Calendar","ErrorMessage","DropdownInputDefault","FieldLabel","BentoClickOutsideDirective","props","emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","isReadOnly","useFormLayoutFieldLoading","toRef","watch","disabled","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","date","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","stringDate","validateDateDebounced","debounce","formatDateInputValue","nextTick","_ctx","createCommentVNode","createElementVNode","createVNode","_component_dropdown_input_default","openBlock","createBlock","_component_error_message","_component_bento_typography","normalizeClass","_component_bento_popover","withCtx","_component_calendar"],"mappings":";;;;;;;;;;;;;;;;AAYO,MAAAA,KAAA,CAAA,EAAA,iBAAAC,GAAA,iBAAAC,EAAA,MAAA;;AACH,QAAA,EAAA,QAAAC,GAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAA,EAAA,IAAA,MAAAC,GAAA,IAAAC,GAAA,GAEAC,IAAAC,GAAAC,IAAAV,EAAA,UAAA,gBAAAU,EAAA,cAAA;AAoCA,SAAA;AAAA;AAAA,IAAO,kBAlCPC,EAAA,MAEIV,EAAA,QACIO,EAAA,QAIJR,EAAA,QAKAY,EAAAZ,EAAA,OAAAa,EAAA,WAAA;AAAA,MAAmE,QAAAR,EAAAH,EAAA,MAAA,UAAA,GAAA,CAAA,CAAA,KAAAI;AAAA,IACd,CAAA,IALjDH,EAAA,YAAA,CAMH;AAAA,IAsBD,gBAAAK;AAAA;AAAA,IACA,6BAhBJ,CAAAM,IA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AA,QAAAR,EAAAS,GAAA;AAAA,UACgB,KAAA;AAAA,UACnB,qBAAAZ,EAAA;AAAA,UACmB,oBAAAA,EAAA;AAAA,UACP,oBAAA;AAAA,UACJ,OAAAA,EAAA;AAAA,UACH,KAAAA,EAAA;AAAA,UACE,KAAAA,EAAA;AAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"date-picker.js","sources":["../../vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../vue2/src/components/date-picker/date-picker.types.ts","../../vue2/src/components/date-picker/date-picker.vue"],"sourcesContent":["import { computed, ref } from 'vue';\nimport { de, enUS, fr } from 'date-fns/locale';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { DateFormat } from '@/types';\nimport format from 'date-fns/format';\n\n/**\n * Composable that sets and formats the date to be displayed in the input box of a Single Date Picker\n * @param {Ref<Date>} option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param {Ref<boolean>} option.isDateIncorrect Indicates if the date is correct or not\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({ datePickerValue, isDateIncorrect }) => {\n const { locale, t } = useI18n();\n const locales = { de, enUS, fr };\n\n const textInputValue = ref(datePickerValue.value?.toDateString());\n\n const dateDisplayValue = computed(() => {\n // Display incorrect date when there's an error with the input\n if (isDateIncorrect.value) {\n return textInputValue.value;\n }\n\n // Display \"Select a date\" when there's no date selected or input\n if (!datePickerValue.value) {\n return t('selectDate') as string;\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" if there's a valid date selected\n return format(datePickerValue.value as Date, DateFormat.FULL_DATE, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\n });\n\n /**\n * Formats the \"dateToFormat\" date value with the yyyy-MM-dd format and sets it as \"formatTextInputDisplayValue\" value\n * @param {DATE} dateToFormat - Date to be assigned and formatted\n */\n const formatTextInputDisplayValue = (dateToFormat: Date = datePickerValue.value) => {\n // If date is incorrect, leave the textInputValue intact\n if (isDateIncorrect.value) {\n return;\n }\n\n textInputValue.value = dateToFormat\n ? format(dateToFormat, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : null;\n };\n\n return {\n // Values\n dateDisplayValue,\n textInputValue,\n\n // Methods\n formatTextInputDisplayValue,\n };\n};\n","export { CalendarFirstDayOfWeek as BentoDatePickerFirstDayOfWeek } from '@/internal';\nexport type {\n CalendarIsDateDisabled as BentoDatePickerIsDateDisabled,\n CalendarSingleDateValue as BentoDatePickerValue,\n} from '@/internal';\n\nexport enum BentoDatePickerEvent {\n INPUT = 'input',\n}\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div\n v-bento-click-outside-directive=\"closeDatePicker\"\n class=\"b-date-picker\"\n @keydown.space.capture=\"onSpaceBarOrEnter\"\n @keydown.enter.capture=\"onSpaceBarOrEnter\"\n >\n <!-- Label -->\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :disabled=\"disabled\"\n dynamic-filtering\n :is-invalid=\"!!errorMessage || !!dateErrorText\"\n :open=\"isDatePickerOpen\"\n :value=\"textInputValue\"\n :display-value=\"dateDisplayValue\"\n :debounce-time=\"0\"\n :readonly=\"isReadOnly\"\n @input=\"onDateInputChange\"\n @open=\"openDatePicker\"\n @keydown=\"onDateKeyDown\"\n @clear=\"clearDatePickerValue\"\n @close=\"closeDatePicker\"\n />\n </div>\n\n <!-- Error Messages -->\n <error-message\n v-if=\"dateErrorText\"\n :id=\"dateErrorId\"\n :error-message=\"dateErrorText\"\n class=\"b-date-picker__error-message\"\n />\n <error-message\n v-if=\"errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-date-picker__error-message\"\n />\n\n <!-- Description -->\n <bento-typography\n v-if=\"description\"\n class=\"b-date-picker__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n {{ description }}\n </bento-typography>\n\n <!-- Calendar container -->\n <bento-popover\n v-if=\"inputContainerRef\"\n :id=\"datePickerContainerId\"\n class=\"b-date-picker__container\"\n role=\"dialog\"\n :open=\"isDatePickerOpen\"\n :target-element=\"inputContainerRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n position=\"bottom-start\"\n fit-content\n >\n <calendar\n ref=\"calendarContainerRef\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"value\"\n :min=\"min\"\n :max=\"max\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, Ref, ref, toRef, watch } from 'vue';\n\n // Components\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '../typography';\n import { Calendar, ErrorMessage, FieldLabel } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n\n // Utils\n import { debounce } from '@/utils/ts/debounce';\n import { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n // Composables\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { useFormLayoutFieldLoading } from '@/composables';\n\n // Directive\n import { BentoClickOutsideDirective } from '@/directives';\n\n // Types\n import { BentoDatePickerEvent, BentoDatePickerValue } from './date-picker.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\n /**\n * Date picker selector.\n *\n * @example\n * import { BentoDatePicker } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDatePicker },\n * template: `\n * <bento-date-picker\n * label=\"Label\"\n * description=\"Supporting text\"\n * required\n * optional\n * disabled\n * @input=\"onDateChanged\"\n * v-model=\"selectedDate\"\n * />\n * `,\n * setup() {\n * const selectedDate = ref(new Date()); // reactive({ startDate: new Date(), endDate: new Date() })\n * return {\n * selectedDate,\n * }\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-date-picker',\n components: {\n BentoTypography,\n BentoPopover,\n Calendar,\n ErrorMessage,\n DropdownInputDefault,\n FieldLabel,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description: { type: String, default: undefined },\n\n /**\n * Disables dropdown functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Displays component in an error state with an error message\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: Calendar.props.firstDayOfWeek,\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: Calendar.props.isDateDisabled,\n\n /**\n * Sets a minimum limit for selectable dates - dates before `min` will not be selectable\n */\n min: Calendar.props.min,\n\n /**\n * Sets a maximum limit for selectable dates - dates after `max` will not be selectable\n */\n max: Calendar.props.max,\n\n /**\n * Text that is displayed as a label above the element.\n */\n label: { type: String, default: undefined },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date picker.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * Selected date\n */\n value: { type: [Date, Object] as PropType<BentoDatePickerValue>, default: null },\n },\n emits: [BentoDatePickerEvent.INPUT],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const datePickerContainerId = generateUid('bento-date-picker-container');\n const labelId = generateUid('bento-date-picker-label');\n const descriptionId = generateUid('bento-date-picker-description');\n const errorId = generateUid('bento-date-picker-error');\n const dateErrorId = generateUid('bento-date-picker-date-error');\n const popoverAriaLabel = computed(() => props.label || t('datePicker', { name: datePickerContainerId }));\n\n // Refs\n const calendarContainerRef = ref(null);\n const inputContainerRef = ref(null);\n\n // Values\n const isDateIncorrect = ref(false);\n const isDatePickerOpen = ref(false);\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n watch(\n () => props.disabled,\n disabled => {\n // Close date picker popover if it's opened when it's disabled\n if (disabled && isDatePickerOpen.value) {\n isDatePickerOpen.value = false;\n }\n }\n );\n\n const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: toRef(props, 'value') as Ref<Date>,\n isDateIncorrect,\n });\n\n const dateErrorText = computed(() => {\n if (\n props.isDateDisabled &&\n props.isDateDisabled(new Date(textInputValue.value)) &&\n !isDatePickerOpen.value\n ) {\n return t('selectedDateIsNotAvailable');\n }\n\n return isDateIncorrect.value ? t('provideDateInAFormat') : null;\n });\n\n const descriptionConditionalClasses = computed(() => ({\n 'b-date-picker__description--error': props.errorMessage || dateErrorText.value,\n }));\n\n const ariaDescribedBy = computed(\n () =>\n `${props.description ? descriptionId : ''} ${props.errorMessage ? errorId : ''} ${\n dateErrorText.value ? dateErrorId : ''\n }`.trim() || null\n );\n\n const isDateEnabled = (date: Date) => {\n // Check if date is between min/max bounds, if there are any\n if ((props.min && date <= props.min) || (props.max && date >= props.max)) {\n return false;\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled) {\n return !props.isDateDisabled(date);\n }\n\n return true;\n };\n\n const closeDatePicker = () => {\n isDatePickerOpen.value = false;\n };\n\n const openDatePicker = () => {\n isDatePickerOpen.value = true;\n\n formatTextInputDisplayValue();\n };\n\n const onDateSelected = (selectedDate: Date) => {\n // Reset the error state when a valid date is selected\n isDateIncorrect.value = false;\n\n closeDatePicker();\n emit(BentoDatePickerEvent.INPUT, selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emit(BentoDatePickerEvent.INPUT, null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n validateDateInput(event);\n };\n\n const validateDate = (stringDate: string) => {\n // Validate only if the date is complete\n if (stringDate.length < 10) {\n return;\n }\n\n // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/;\n const isValidDate = dateRegex.test(stringDate) && isDateEnabled(new Date(stringDate));\n if (isValidDate) {\n isDateIncorrect.value = false;\n emit(BentoDatePickerEvent.INPUT, new Date(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emit(BentoDatePickerEvent.INPUT, null);\n }\n };\n\n const validateDateDebounced = debounce(validateDate, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = formatDateInputValue(stringDate);\n // If we are closing the date picker, we should validate (and emit date inputs) immediately so the user doesn't have to wait for the debounce time.\n if (isDatePickerOpen.value) {\n validateDateDebounced(textInputValue.value);\n } else {\n validateDate(textInputValue.value);\n }\n };\n\n /**\n * Space bar and Enter keyDown event handler.\n *\n * * Opens the date picker dialog on the first keydown.\n * * Move focus to selected date, i.e., the date displayed in the date input text field. If no date has been selected, places focus on the current date.\n * @param {KeyboardEvent} event Event being triggered\n */\n const onSpaceBarOrEnter = async (event: KeyboardEvent) => {\n if (isDatePickerOpen.value) {\n return;\n }\n event.preventDefault();\n\n openDatePicker();\n\n // Wait for the date picker dialog to open\n await nextTick();\n\n // Set current date (today) if no date is selected\n if (!props.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emit(BentoDatePickerEvent.INPUT, new Date());\n\n // Wait for new value to be set with the emit\n await nextTick();\n }\n\n // Focus on date\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(props.value);\n };\n\n return {\n // Refs\n inputContainerRef,\n calendarContainerRef,\n\n // Values,\n dateDisplayValue,\n datePickerContainerId,\n descriptionConditionalClasses,\n isDateIncorrect,\n isDatePickerOpen,\n isReadOnly,\n dateErrorText,\n labelId,\n descriptionId,\n errorId,\n dateErrorId,\n popoverAriaLabel,\n ariaDescribedBy,\n textInputValue,\n\n // Events\n closeDatePicker,\n clearDatePickerValue,\n onDateSelected,\n openDatePicker,\n onDateKeyDown,\n onDateInputChange,\n\n // Keyboard navigation\n onSpaceBarOrEnter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","locale","t","useI18n","locales","de","enUS","fr","textInputValue","ref","_a","computed","format","DateFormat","dateToFormat","BentoDatePickerEvent","BentoDatePickerEvent2","DEBOUNCE_TIME","_sfc_main","defineComponent","messages","BentoTypography","BentoPopover","Calendar","ErrorMessage","DropdownInputDefault","FieldLabel","BentoClickOutsideDirective","props","emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","isReadOnly","useFormLayoutFieldLoading","toRef","watch","disabled","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","date","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","stringDate","validateDateDebounced","debounce","formatDateInputValue","nextTick","_ctx","createCommentVNode","createElementVNode","createVNode","_component_dropdown_input_default","openBlock","createBlock","_component_error_message","_component_bento_typography","normalizeClass","_component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ACK,iBAAAA,EAAA;AAAA;IAKA,GAAA,MAAA,GAAA,CAAA,MAAA,eAAA,CAAA,KAAAC,EAAA,IAAA,EAAA;AAAA,IAMSD,EAAA,eAAAK,EAAA,GAAAC,EAAAE,GAAA;AAAA,MAJP,KAAA;AAAA,MACL,OAAAC,GAAA,CAAA,8BAAAT,EAAA,6BAAA,CAAA;AAAA;;;;;;IAOG,GAAA,GAAA,CAAA,OAAA,CAAA,KAAAC,EAAA,IAAA,EAAA;AAAA,IAsBMD,EAAA,qBAAAK,EAAA,GAAAC,EAAAI,GAAA;AAAA,MArBc,KAAA;AAAA,MACrB,IAAAV,EAAA;AAAA,MACA,OAAA;AAAA,MACE,MAAA;AAAA,MACN,MAAAA,EAAA;AAAA,MACA,kBAAAA,EAAA;AAAA,MACY,sBAAA;AAAA,MACI,cAAAA,EAAA;AAAA,MACR,cAAA;AAAA,MACE,UAAA;AAAA;;MAGH,SAAAW,EAAA,MAAA;AAAA,QAAAR,EAAAS,GAAA;AAAA,UACgB,KAAA;AAAA,UACnB,qBAAAZ,EAAA;AAAA,UACmB,oBAAAA,EAAA;AAAA,UACP,oBAAA;AAAA,UACJ,OAAAA,EAAA;AAAA,UACH,KAAAA,EAAA;AAAA,UACE,KAAAA,EAAA;AAAA;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- import { B as t, a as r } from "./chunks/index.faec0854.js";
2
- import { b as o } from "./chunks/calendar.73f5b904.js";
1
+ import { B as t, a as r } from "./chunks/index.96cd0d4c.js";
2
+ import { b as o } from "./chunks/calendar.f38cdab9.js";
3
3
  export {
4
4
  t as BentoDateRangePicker,
5
5
  r as BentoDateRangePickerEvent,
package/dist/date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, a as o } from "./chunks/index.8682bd04.js";
1
+ import { B as e, a as o } from "./chunks/index.146f967e.js";
2
2
  export {
3
3
  e as BentoDate,
4
4
  o as BentoDateFormat
package/dist/divider.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as r } from "./chunks/index.98bbaed9.js";
1
+ import { B as r } from "./chunks/index.07122048.js";
2
2
  export {
3
3
  r as BentoDivider
4
4
  };
package/dist/dropdown.js CHANGED
@@ -1,14 +1,14 @@
1
- import { B as n } from "./chunks/dropdown.57b2ea6f.js";
2
- import { a as Z } from "./chunks/dropdown.57b2ea6f.js";
1
+ import { B as n } from "./chunks/dropdown.d8587f36.js";
2
+ import { a as Z } from "./chunks/dropdown.d8587f36.js";
3
3
  import { defineComponent as r, computed as w, openBlock as l, createElementBlock as y, createVNode as i, mergeProps as f, unref as m, withCtx as _, toRefs as D, createTextVNode as $, toDisplayString as g, createBlock as v } from "vue";
4
- import { B as I, L as b } from "./chunks/listbox-option-tag.d1a3b340.js";
5
- import { d as C, B as x } from "./chunks/index.11b6dd35.js";
4
+ import { B as I, L as b } from "./chunks/listbox-option-tag.b6182b2e.js";
5
+ import { d as C, B as x } from "./chunks/index.a3d60e4f.js";
6
6
  import { u as T } from "./chunks/use-country-items.32e30471.js";
7
7
  import { B } from "./chunks/country.types.002caff2.js";
8
- import { B as A } from "./chunks/payment-method.26fa5509.js";
9
- import { c as ot, b as et } from "./chunks/use-cached-selected-values.a9b0fb3d.js";
8
+ import { B as A } from "./chunks/payment-method.31a68b9b.js";
9
+ import { c as ot, b as et } from "./chunks/use-cached-selected-values.852aeafe.js";
10
10
  import { _ as k } from "./chunks/_plugin-vue_export-helper.dad06003.js";
11
- import "./assets/index23.css";
11
+ import "./assets/index48.css";
12
12
  const L = r({
13
13
  name: "bento-dropdown-avatar"
14
14
  }), G = /* @__PURE__ */ r({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as U, ref as v, computed as l, watch as L, openBlock as o, createElementBlock as A, unref as r, normalizeClass as S, createCommentVNode as d, createVNode as k, mergeProps as M, withCtx as c, renderSlot as C, createTextVNode as m, toDisplayString as f, createBlock as p, createSlots as P, resolveDynamicComponent as w } from "vue";
2
- import { a as F } from "./chunks/button.de5589fa.js";
3
- import { c as j, B as y } from "./chunks/index.11b6dd35.js";
2
+ import { a as F } from "./chunks/button.60dad578.js";
3
+ import { c as j, B as y } from "./chunks/index.a3d60e4f.js";
4
4
  import { o as x } from "./chunks/resize.a041304d.js";
5
5
  import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import "./assets/index22.css";
6
+ import "./assets/index8.css";
7
7
  const O = (e, s) => {
8
8
  const i = e[s];
9
9
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((E, t) => {
@@ -1,42 +1,42 @@
1
1
  import { defineComponent as J, useSlots as ke, useAttrs as Bt, computed as c, ref as V, openBlock as p, createBlock as I, unref as U, normalizeClass as Se, withCtx as y, createTextVNode as q, toDisplayString as N, createCommentVNode as Y, createElementBlock as K, createElementVNode as R, renderSlot as ie, createVNode as A, watch as me, resolveComponent as S, withKeys as ye, toRef as X, onBeforeUpdate as we, provide as Dt, mergeProps as re, Fragment as Be, reactive as lt, createSlots as De, renderList as de, normalizeProps as Ue, guardReactiveProps as Pe, nextTick as It, onMounted as Tt, resolveDynamicComponent as Re, withDirectives as Te, vShow as Ee } from "vue";
2
2
  import { _ as G } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as Ke, I as Et } from "./chunks/index.bab8811d.js";
4
- import { B as Ut } from "./chunks/dropdown-default-textbox.424e0eb6.js";
5
- import { B as Pt } from "./chunks/tooltip.e29f7d7e.js";
3
+ import { a as Ke, I as Et } from "./chunks/index.5bdebf9d.js";
4
+ import { B as Ut } from "./chunks/dropdown-default-textbox.ad5063c2.js";
5
+ import { B as Pt } from "./chunks/tooltip.1084d92b.js";
6
6
  import { u as be } from "./chunks/i18n.f7e6533e.js";
7
7
  import { g as Ne } from "./chunks/unique-id.a2a2b458.js";
8
8
  import { u as Vt } from "./chunks/use-click-outside.941d1600.js";
9
- import { B as ve, d as kt } from "./chunks/index.11b6dd35.js";
9
+ import { B as ve, d as kt } from "./chunks/index.a3d60e4f.js";
10
10
  import { u as at } from "./chunks/aria-label.ac9651a5.js";
11
- import { B as nt, a as je } from "./chunks/base-button.6be8b60e.js";
11
+ import { B as nt, a as je } from "./chunks/base-button.e84acf30.js";
12
12
  import { g as ot } from "./chunks/get-slot-text.bead058f.js";
13
13
  import { u as st } from "./chunks/use-has-slot.4d98bf29.js";
14
- import { C as it, a as rt } from "./chunks/chevron-up.638a9f34.js";
14
+ import { C as it, a as rt } from "./chunks/chevron-up.05ca20db.js";
15
15
  import { B as Lt } from "./chunks/teleport.afeb4c3b.js";
16
16
  import { BentoRadioGroup as Rt } from "./radio-group.js";
17
17
  import { BentoInputField as ut } from "./input-field.js";
18
18
  import { BentoSearchBar as Ve, BentoSearchBarEvent as ge } from "./search-bar.js";
19
- import { u as Ot } from "./chunks/use-bento-toast-controller.98ca249a.js";
19
+ import { u as Ot } from "./chunks/use-bento-toast-controller.98d8613c.js";
20
20
  import { BentoModal as wt } from "./modal.js";
21
- import { g as Nt } from "./chunks/base-modal.310c4790.js";
22
- import { a as Mt } from "./chunks/button.de5589fa.js";
23
- import { u as dt, B as Ht } from "./chunks/dropdown.57b2ea6f.js";
24
- import { g as qt } from "./chunks/index.ea65003b.js";
25
- import { B as Me } from "./chunks/index.98bbaed9.js";
21
+ import { g as Nt } from "./chunks/base-modal.29e062d0.js";
22
+ import { a as Mt } from "./chunks/button.60dad578.js";
23
+ import { u as dt, B as Ht } from "./chunks/dropdown.d8587f36.js";
24
+ import { g as qt } from "./chunks/index.8be283d5.js";
25
+ import { B as Me } from "./chunks/index.07122048.js";
26
26
  import { BentoDatePicker as Kt } from "./date-picker.js";
27
- import { f as pe } from "./chunks/index.8682bd04.js";
27
+ import { f as pe } from "./chunks/index.146f967e.js";
28
28
  import { e as se, d as ct, f as bt } from "./chunks/index.f55fdc32.js";
29
- import { C as jt, i as Yt } from "./chunks/calendar.73f5b904.js";
30
- import { B as zt, D as Jt, i as Ye } from "./chunks/index.faec0854.js";
29
+ import { C as jt, i as Yt } from "./chunks/calendar.f38cdab9.js";
30
+ import { B as zt, D as Jt, i as Ye } from "./chunks/index.96cd0d4c.js";
31
31
  import { D as ze } from "./chunks/date-input.9186a0bf.js";
32
- import { B as Gt } from "./chunks/button-actions.adc0a2fe.js";
33
- import { a as Je, B as Wt } from "./chunks/use-cached-selected-values.a9b0fb3d.js";
34
- import { B as Zt, L as ft } from "./chunks/listbox-option-tag.d1a3b340.js";
32
+ import { B as Gt } from "./chunks/button-actions.642b37de.js";
33
+ import { a as Je, B as Wt } from "./chunks/use-cached-selected-values.852aeafe.js";
34
+ import { B as Zt, L as ft } from "./chunks/listbox-option-tag.b6182b2e.js";
35
35
  import { u as Qt } from "./chunks/use-country-items.32e30471.js";
36
- import { B as Xt } from "./chunks/payment-method.26fa5509.js";
37
- import { R as xt } from "./chunks/refresh.bd60f6a8.js";
38
- import { F as el } from "./chunks/fixed-scroller.5b93a6a6.js";
39
- import "./assets/index12.css";
36
+ import { B as Xt } from "./chunks/payment-method.31a68b9b.js";
37
+ import { R as xt } from "./chunks/refresh.53691839.js";
38
+ import { F as el } from "./chunks/fixed-scroller.59aefd1b.js";
39
+ import "./assets/index16.css";
40
40
  const tl = { class: "b-filter-bar-button__container" }, ll = { class: "b-filter-bar-button__label-container" }, al = {
41
41
  key: 1,
42
42
  class: "b-filter-bar-button__chevron"
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.ea65003b.js";
1
+ import { B as a } from "./chunks/index.8be283d5.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as d, useSlots as h, computed as n, provide as O, toRef as C, openBlock as c, createBlock as v, resolveDynamicComponent as I, unref as e, withCtx as _, renderSlot as s, createCommentVNode as b, createElementBlock as p, createElementVNode as g, createVNode as L, normalizeClass as $ } from "vue";
1
+ import { defineComponent as m, useSlots as g, computed as i, provide as F, toRef as O, openBlock as l, createBlock as d, resolveDynamicComponent as S, unref as t, withCtx as _, renderSlot as a, createCommentVNode as p, createElementBlock as f, createElementVNode as L, normalizeClass as $, createVNode as C } from "vue";
2
2
  import { BentoAlert as B } from "./alert.js";
3
- import { F as S } from "./chunks/form-layout.types.a7a1438d.js";
4
- import { u as T } from "./chunks/use-has-slot.4d98bf29.js";
5
- import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as f, c as E } from "./chunks/index.11b6dd35.js";
7
- import "./assets/index18.css";
8
- const N = {
3
+ import { F as I } from "./chunks/form-layout.types.a7a1438d.js";
4
+ import { u as h } from "./chunks/use-has-slot.4d98bf29.js";
5
+ import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
+ import { B as v, c as k } from "./chunks/index.a3d60e4f.js";
7
+ import "./assets/index43.css";
8
+ const E = {
9
9
  key: 1,
10
10
  class: "b-form-layout__actions-container"
11
- }, k = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ d({
11
+ }, N = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ m({
12
12
  ...G,
13
13
  __name: "form-layout",
14
14
  props: {
@@ -23,37 +23,37 @@ const N = {
23
23
  loading: { type: Boolean, default: !1 }
24
24
  },
25
25
  setup(o) {
26
- const t = o, l = h(), r = T(l), i = n(() => t.form ? "form" : "div"), u = n(() => r("actions-left") || r("actions-right"));
27
- return O(S, C(t, "loading")), (a, F) => (c(), v(I(e(i)), {
26
+ const e = o, n = g(), s = h(n), c = i(() => e.form ? "form" : "div"), u = i(() => s("actions-left") || s("actions-right"));
27
+ return F(I, O(e, "loading")), (r, T) => (l(), d(S(t(c)), {
28
28
  class: "b-form-layout",
29
29
  role: "form"
30
30
  }, {
31
31
  default: _(() => [
32
- e(r)("error-message") ? (c(), v(e(B), {
32
+ t(s)("error-message") ? (l(), d(t(B), {
33
33
  key: 0,
34
34
  class: "b-form-layout__error-message",
35
35
  type: "critical"
36
36
  }, {
37
37
  description: _(() => [
38
- s(a.$slots, "error-message", {}, void 0, !0)
38
+ a(r.$slots, "error-message", {}, void 0, !0)
39
39
  ]),
40
40
  _: 3
41
- })) : b("", !0),
42
- s(a.$slots, "default", {}, void 0, !0),
43
- e(u) ? (c(), p("div", N, [
44
- g("div", k, [
45
- s(a.$slots, "actions-left", {}, void 0, !0)
41
+ })) : p("", !0),
42
+ a(r.$slots, "default", {}, void 0, !0),
43
+ t(u) ? (l(), f("div", E, [
44
+ L("div", N, [
45
+ a(r.$slots, "actions-left", {}, void 0, !0)
46
46
  ]),
47
- g("div", A, [
48
- s(a.$slots, "actions-right", {}, void 0, !0)
47
+ L("div", A, [
48
+ a(r.$slots, "actions-right", {}, void 0, !0)
49
49
  ])
50
- ])) : b("", !0)
50
+ ])) : p("", !0)
51
51
  ]),
52
52
  _: 3
53
53
  }));
54
54
  }
55
55
  });
56
- const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ d({
56
+ const Q = /* @__PURE__ */ y(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ m({
57
57
  ...P,
58
58
  __name: "form-layout-field-tip",
59
59
  props: {
@@ -68,21 +68,23 @@ const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warnin
68
68
  }
69
69
  },
70
70
  setup(o) {
71
- return (t, l) => (c(), p("div", D, [
72
- s(t.$slots, "default", {}, void 0, !0),
73
- L(e(B), {
71
+ const e = g(), n = h(e);
72
+ return (s, c) => (l(), f("div", D, [
73
+ a(s.$slots, "default", {}, void 0, !0),
74
+ t(n)("message") ? (l(), d(t(B), {
75
+ key: 0,
74
76
  variant: "tip",
75
77
  type: o.type
76
78
  }, {
77
79
  description: _(() => [
78
- s(t.$slots, "message", {}, void 0, !0)
80
+ a(s.$slots, "message", {}, void 0, !0)
79
81
  ]),
80
82
  _: 3
81
- }, 8, ["type"])
83
+ }, 8, ["type"])) : p("", !0)
82
84
  ]));
83
85
  }
84
86
  });
85
- const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
87
+ const W = /* @__PURE__ */ y(V, [["__scopeId", "data-v-84d68dd1"]]), b = [
86
88
  "100",
87
89
  "50",
88
90
  "33",
@@ -93,7 +95,7 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
93
95
  "25-75",
94
96
  "50-50",
95
97
  "33-33-33"
96
- ], x = {}, U = /* @__PURE__ */ d({
98
+ ], x = {}, U = /* @__PURE__ */ m({
97
99
  ...x,
98
100
  __name: "form-layout-group",
99
101
  props: {
@@ -123,26 +125,26 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
123
125
  layout: {
124
126
  type: String,
125
127
  default: "100",
126
- validator: (o) => y.includes(o)
128
+ validator: (o) => b.includes(o)
127
129
  }
128
130
  },
129
131
  setup(o) {
130
- const t = o, l = 100, r = n(
131
- () => y.includes(t.layout) ? t.layout : l
132
- ), i = n(() => ({
132
+ const e = o, n = 100, s = i(
133
+ () => b.includes(e.layout) ? e.layout : n
134
+ ), c = i(() => ({
133
135
  // Transform into column if the layout is unsupported
134
- "b-form-layout-group--column": !y.includes(t.layout),
136
+ "b-form-layout-group--column": !b.includes(e.layout),
135
137
  // Assings the correct layout class
136
- [`b-form-layout-group--${r.value}`]: !0
138
+ [`b-form-layout-group--${s.value}`]: !0
137
139
  }));
138
- return (u, a) => (c(), p("div", {
139
- class: $(["b-form-layout-group", e(i)])
140
+ return (u, r) => (l(), f("div", {
141
+ class: $(["b-form-layout-group", t(c)])
140
142
  }, [
141
- s(u.$slots, "default", {}, void 0, !0)
143
+ a(u.$slots, "default", {}, void 0, !0)
142
144
  ], 2));
143
145
  }
144
146
  });
145
- const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ d({
147
+ const X = /* @__PURE__ */ y(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ m({
146
148
  ...Y,
147
149
  __name: "form-layout-title",
148
150
  props: {
@@ -160,43 +162,43 @@ const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j =
160
162
  * @values h1, h2, h3, h4, h5, h6, div, p, span
161
163
  */
162
164
  el: {
163
- type: f.props.el.type,
165
+ type: v.props.el.type,
164
166
  required: !0,
165
- validator: (o) => Object.values(E).includes(o)
167
+ validator: (o) => Object.values(k).includes(o)
166
168
  }
167
169
  },
168
170
  setup(o) {
169
- const t = o, l = h(), r = n(() => !t.subsection), i = T(l), u = n(() => ({
170
- "b-form-layout-title--subsection": t.subsection
171
+ const e = o, n = g(), s = i(() => !e.subsection), c = h(n), u = i(() => ({
172
+ "b-form-layout-title--subsection": e.subsection
171
173
  }));
172
- return (a, F) => (c(), p("div", {
173
- class: $(["b-form-layout-title", e(u)])
174
+ return (r, T) => (l(), f("div", {
175
+ class: $(["b-form-layout-title", t(u)])
174
176
  }, [
175
- L(e(f), {
177
+ C(t(v), {
176
178
  el: o.el,
177
179
  variant: "title",
178
- medium: e(r)
180
+ medium: t(s)
179
181
  }, {
180
182
  default: _(() => [
181
- s(a.$slots, "default", {}, void 0, !0)
183
+ a(r.$slots, "default", {}, void 0, !0)
182
184
  ]),
183
185
  _: 3
184
186
  }, 8, ["el", "medium"]),
185
- e(i)("description") ? (c(), v(e(f), {
187
+ t(c)("description") ? (l(), d(t(v), {
186
188
  key: 0,
187
189
  class: "b-form-layout-title__description",
188
190
  el: "span",
189
191
  wide: ""
190
192
  }, {
191
193
  default: _(() => [
192
- s(a.$slots, "description", {}, void 0, !0)
194
+ a(r.$slots, "description", {}, void 0, !0)
193
195
  ]),
194
196
  _: 3
195
- })) : b("", !0)
197
+ })) : p("", !0)
196
198
  ], 2));
197
199
  }
198
200
  });
199
- const Z = /* @__PURE__ */ m(j, [["__scopeId", "data-v-fbc939de"]]);
201
+ const Z = /* @__PURE__ */ y(j, [["__scopeId", "data-v-fbc939de"]]);
200
202
  export {
201
203
  Q as BentoFormLayout,
202
204
  W as BentoFormLayoutFieldTip,