@adyen/bento-vue2 1.95.0 → 1.96.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 (95) hide show
  1. package/dist/@types/index.d.ts +77 -0
  2. package/dist/assets/accordion-item.css +1 -1
  3. package/dist/assets/action-bar.css +1 -1
  4. package/dist/assets/base-modal.css +1 -1
  5. package/dist/assets/button-actions.css +1 -1
  6. package/dist/assets/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/date-picker.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/draggable-handle.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/field-label.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/filter-bar.css +1 -1
  15. package/dist/assets/input-field-password.css +1 -1
  16. package/dist/assets/inspector.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/navigation-menu-group.css +1 -1
  19. package/dist/assets/secondary-nav.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/chunks/{calendar.ofn3G6eW.js → calendar.D0JIbmoS.js} +310 -304
  22. package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
  23. package/dist/chunks/{code-snippet.B3iCsNmb.js → code-snippet.lcQRsLdZ.js} +2 -2
  24. package/dist/chunks/{code-snippet.B3iCsNmb.js.map → code-snippet.lcQRsLdZ.js.map} +1 -1
  25. package/dist/chunks/{dashboard-section.HFJcf8-_.js → dashboard-section.DiGQXS9L.js} +2 -2
  26. package/dist/chunks/{dashboard-section.HFJcf8-_.js.map → dashboard-section.DiGQXS9L.js.map} +1 -1
  27. package/dist/chunks/{data-grid-template.BjfPUEoH.js → data-grid-template.BVppx9kZ.js} +2 -2
  28. package/dist/chunks/{data-grid-template.BjfPUEoH.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
  29. package/dist/chunks/{data-grid.Cua2Jxvq.js → data-grid.Djy7XjVS.js} +10 -10
  30. package/dist/chunks/{data-grid.Cua2Jxvq.js.map → data-grid.Djy7XjVS.js.map} +1 -1
  31. package/dist/chunks/{date-picker.CYDTf6De.js → date-picker.BWxvyK5J.js} +40 -40
  32. package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
  33. package/dist/chunks/{date-range-picker.DGGvwRfn.js → date-range-picker.gfRJmzXn.js} +10 -10
  34. package/dist/chunks/{date-range-picker.DGGvwRfn.js.map → date-range-picker.gfRJmzXn.js.map} +1 -1
  35. package/dist/chunks/{date-time-picker.CyNb-xDm.js → date-time-picker.BIl9kFLh.js} +5 -5
  36. package/dist/chunks/{date-time-picker.CyNb-xDm.js.map → date-time-picker.BIl9kFLh.js.map} +1 -1
  37. package/dist/chunks/{draggable-handle.CU1L7J87.js → draggable-handle.DIhHtHG9.js} +530 -499
  38. package/dist/chunks/{draggable-handle.CU1L7J87.js.map → draggable-handle.DIhHtHG9.js.map} +1 -1
  39. package/dist/chunks/{dropdown-tag.C1qg52L9.js → dropdown-tag.CuDxdSfb.js} +2 -2
  40. package/dist/chunks/{dropdown-tag.C1qg52L9.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
  41. package/dist/chunks/{dropdown.BEurqT8m.js → dropdown.C70AlvOT.js} +264 -257
  42. package/dist/chunks/dropdown.C70AlvOT.js.map +1 -0
  43. package/dist/chunks/{filter-bar.gjMPoK6d.js → filter-bar.C6ZBgizQ.js} +15 -15
  44. package/dist/chunks/{filter-bar.gjMPoK6d.js.map → filter-bar.C6ZBgizQ.js.map} +1 -1
  45. package/dist/chunks/{header-with-views.B2Ok5KI1.js → header-with-views.m0xMmoav.js} +3 -3
  46. package/dist/chunks/{header-with-views.B2Ok5KI1.js.map → header-with-views.m0xMmoav.js.map} +1 -1
  47. package/dist/chunks/{input-field-password.viF49CQh.js → input-field-password.CRqYWZGS.js} +34 -34
  48. package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
  49. package/dist/chunks/{input-field-phone-number.DnpTj7q5.js → input-field-phone-number.DHiuL0cF.js} +2 -2
  50. package/dist/chunks/{input-field-phone-number.DnpTj7q5.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
  51. package/dist/chunks/{input-field.D86PSAiu.js → input-field.BkQZ6Qzl.js} +2 -2
  52. package/dist/chunks/{input-field.D86PSAiu.js.map → input-field.BkQZ6Qzl.js.map} +1 -1
  53. package/dist/chunks/{input-time.LyKZXnVO.js → input-time.BiOHvUEA.js} +3 -3
  54. package/dist/chunks/{input-time.LyKZXnVO.js.map → input-time.BiOHvUEA.js.map} +1 -1
  55. package/dist/chunks/{pagination.CJ3d1O_s.js → pagination.DItyAwy1.js} +2 -2
  56. package/dist/chunks/{pagination.CJ3d1O_s.js.map → pagination.DItyAwy1.js.map} +1 -1
  57. package/dist/chunks/{search-bar.BvHhXdNu.js → search-bar.D-WK8eMQ.js} +3 -3
  58. package/dist/chunks/{search-bar.BvHhXdNu.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
  59. package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
  60. package/dist/chunks/{secondary-nav.BvbT8LXa.js.map → secondary-nav.C7lEDaoj.js.map} +1 -1
  61. package/dist/chunks/tab.QEKU5Udp.js +256 -0
  62. package/dist/chunks/{tab.YQXssvyU.js.map → tab.QEKU5Udp.js.map} +1 -1
  63. package/dist/chunks/{use-cached-selected-values.txnml8sE.js → use-cached-selected-values.D0s14AxT.js} +2 -2
  64. package/dist/chunks/{use-cached-selected-values.txnml8sE.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
  65. package/dist/chunks/{use-date-input-formatter.D7Ud6Ana.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
  66. package/dist/chunks/{use-date-input-formatter.D7Ud6Ana.js.map → use-date-input-formatter.B5GQd3s2.js.map} +1 -1
  67. package/dist/code-snippet.js +1 -1
  68. package/dist/dashboard-template.js +1 -1
  69. package/dist/data-grid-template.js +1 -1
  70. package/dist/data-grid.js +1 -1
  71. package/dist/date-picker.js +2 -2
  72. package/dist/date-range-picker.js +2 -2
  73. package/dist/date-time-picker.js +1 -1
  74. package/dist/draggable.js +1 -1
  75. package/dist/dropdown.js +3 -3
  76. package/dist/filter-bar.js +1 -1
  77. package/dist/header-with-views.js +1 -1
  78. package/dist/index.js +22 -22
  79. package/dist/input-field-password.js +1 -1
  80. package/dist/input-field-phone-number.js +1 -1
  81. package/dist/input-field.js +1 -1
  82. package/dist/input-time.js +1 -1
  83. package/dist/internal.js +2 -2
  84. package/dist/pagination.js +1 -1
  85. package/dist/search-bar.js +2 -2
  86. package/dist/secondary-nav.js +1 -1
  87. package/dist/tabs.js +1 -1
  88. package/dist/web-types.json +11 -1
  89. package/package.json +3 -3
  90. package/dist/chunks/calendar.ofn3G6eW.js.map +0 -1
  91. package/dist/chunks/date-picker.CYDTf6De.js.map +0 -1
  92. package/dist/chunks/dropdown.BEurqT8m.js.map +0 -1
  93. package/dist/chunks/input-field-password.viF49CQh.js.map +0 -1
  94. package/dist/chunks/secondary-nav.BvbT8LXa.js +0 -223
  95. package/dist/chunks/tab.YQXssvyU.js +0 -229
@@ -1,14 +1,14 @@
1
1
  import { ref as f, computed as i, defineComponent as re, toRef as B, watch as E, nextTick as le } from "vue";
2
- import { g as oe, f as z, b as ne, h as ie, i as se, p as de } from "./calendar.ofn3G6eW.js";
2
+ import { g as oe, f as z, b as ne, h as ie, i as se, p as de } from "./calendar.D0JIbmoS.js";
3
3
  import { h as ce } from "./button-actions.D1jRC1fs.js";
4
4
  import { d as ue, B as pe } from "./typography.C8lPlsbD.js";
5
- import { D as De } from "./dropdown.BEurqT8m.js";
6
- import { B as me } from "./input-field.D86PSAiu.js";
7
- import { d as fe } from "./use-cached-selected-values.txnml8sE.js";
5
+ import { D as me } from "./dropdown.C70AlvOT.js";
6
+ import { B as De } from "./input-field.BkQZ6Qzl.js";
7
+ import { d as fe } from "./use-cached-selected-values.D0s14AxT.js";
8
8
  import { g as y } from "./generate-uid.NJ8tVoha.js";
9
9
  import { u as q } from "./index.B6WW_F-J.js";
10
10
  import { u as ve } from "./form-field.D_2g7vaP.js";
11
- import { u as W, a as be } from "./use-date-input-formatter.D7Ud6Ana.js";
11
+ import { u as W, a as be } from "./use-date-input-formatter.B5GQd3s2.js";
12
12
  import { u as ye } from "./use-form-layout-loading.CWbjZiwP.js";
13
13
  import "./index.Cl4_42j5.js";
14
14
  import { u as ke } from "./use-touch-device.DTqFAbXh.js";
@@ -83,7 +83,7 @@ const he = {
83
83
  },
84
84
  "zh-CN": {
85
85
  datePicker: "日期选择器",
86
- provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期",
86
+ provideDateInAFormat: "提供年-月-日格式的日期",
87
87
  selectDate: "选择日期",
88
88
  selectDateRange: "选择日期范围",
89
89
  selectedDateIsNotAvailable: "所选日期不可用"
@@ -95,14 +95,14 @@ const he = {
95
95
  placeholder: e
96
96
  }) => {
97
97
  var k;
98
- const { locale: d, t: D } = q(), { formatDate: v } = W(), l = f((k = p.value) == null ? void 0 : k.toDateString());
98
+ const { locale: d, t: m } = q(), { formatDate: v } = W(), l = f((k = p.value) == null ? void 0 : k.toDateString());
99
99
  return {
100
100
  // Values
101
101
  dateDisplayValue: i(() => {
102
102
  if (a.value)
103
103
  return l.value;
104
104
  if (!p.value)
105
- return (e == null ? void 0 : e.value) || D("selectDate");
105
+ return (e == null ? void 0 : e.value) || m("selectDate");
106
106
  const c = t != null && t.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
107
107
  return oe(d.value, c).format(p.value);
108
108
  }),
@@ -146,7 +146,7 @@ const he = {
146
146
  },
147
147
  emits: ["update:model-value", "input"],
148
148
  setup(p, { emit: a }) {
149
- const t = p, e = 1e3, { t: d } = q(), D = y("bento-date-picker-container"), v = y("bento-date-picker-label"), l = y("bento-date-picker-description"), h = y("bento-date-picker-error"), S = y("bento-date-picker-date-error"), k = i(() => t.label || d("datePicker", { name: D })), c = f(null), I = f(null), n = f(null), u = f(!1), P = f(void 0), m = f(t.modelValue), { isReadOnly: G } = ye(B(t, "readonly")), { emitValue: s } = ve(a), { resolvedFirstDayOfWeek: K } = be(B(t, "firstDayOfWeek")), { isFormatValid: C, parseDate: g, onKeyDown: R, autoFormat: T } = W(), { isTouchDevice: N } = ke(), U = i(() => ({
149
+ const t = p, e = 1e3, { t: d } = q(), m = y("bento-date-picker-container"), v = y("bento-date-picker-label"), l = y("bento-date-picker-description"), h = y("bento-date-picker-error"), S = y("bento-date-picker-date-error"), k = i(() => t.label || d("datePicker", { name: m })), c = f(null), I = f(null), n = f(null), u = f(!1), P = f(void 0), D = f(t.modelValue), { isReadOnly: G } = ye(B(t, "readonly")), { emitValue: s } = ve(a), { resolvedFirstDayOfWeek: K } = be(B(t, "firstDayOfWeek")), { isFormatValid: C, parseDate: F, onKeyDown: R, autoFormat: T } = W(), { isTouchDevice: N } = ke(), U = i(() => ({
150
150
  initialFocus: P.value,
151
151
  additionalContainers: [I.value.$el]
152
152
  }));
@@ -162,43 +162,43 @@ const he = {
162
162
  'BentoDatePicker "value" property',
163
163
  'The use of "value" prop in "BentoDatePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
164
164
  "2.0.0"
165
- ), m.value = o ?? r;
165
+ ), D.value = o ?? r;
166
166
  },
167
167
  { immediate: !0 }
168
168
  );
169
- const A = i(() => t.variant === "month"), { dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: M } = Se({
170
- datePickerValue: m,
169
+ const g = i(() => t.variant === "month"), { dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: x } = Se({
170
+ datePickerValue: D,
171
171
  dateError: n,
172
- isMonthVariant: A,
172
+ isMonthVariant: g,
173
173
  placeholder: B(t, "placeholder")
174
- }), _ = (r) => r ? A.value ? ie(r) : se(r) : "", $ = i(() => _(m.value)), j = (r) => {
174
+ }), A = (r) => r ? g.value ? ie(r) : se(r) : "", $ = i(() => A(D.value)), j = (r) => {
175
175
  if (!r) {
176
- s(null);
176
+ n.value = null, s(null);
177
177
  return;
178
178
  }
179
- if (A.value) {
180
- s(de(r));
179
+ const o = de(r, g.value ? "month" : "date");
180
+ if (n.value = _(o), n.value) {
181
+ s(null);
181
182
  return;
182
183
  }
183
- const o = g(r);
184
- o && s(o);
185
- }, X = i(() => _(t.min)), H = i(() => _(t.max)), F = (r) => !r || t.min && r <= t.min || t.max && r >= t.max ? "provideDateInAFormat" : t.isDateDisabled && t.isDateDisabled(r) ? "selectedDateIsNotAvailable" : null, x = i(() => n.value ? d(n.value) : null);
184
+ s(o);
185
+ }, X = i(() => A(t.min)), H = i(() => A(t.max)), _ = (r) => !r || isNaN(r.getTime()) || t.min && r < t.min || t.max && r > t.max ? "provideDateInAFormat" : t.isDateDisabled && t.isDateDisabled(r) ? "selectedDateIsNotAvailable" : null, M = i(() => n.value ? d(n.value) : null);
186
186
  E(
187
187
  [u, b, () => t.isDateDisabled, () => t.min, () => t.max],
188
188
  ([r, o]) => {
189
- !r && o && C(o) && (n.value = F(g(o)));
189
+ !r && o && C(o) && (n.value = _(F(o)));
190
190
  }
191
191
  );
192
192
  const Q = i(() => ({
193
- "b-date-picker__description--error": t.errorMessage || x.value
193
+ "b-date-picker__description--error": t.errorMessage || M.value
194
194
  })), Z = i(
195
- () => `${t.description ? l : ""} ${t.errorMessage ? h : ""} ${x.value ? S : ""}`.trim() || null
196
- ), Y = () => {
195
+ () => `${t.description ? l : ""} ${t.errorMessage ? h : ""} ${M.value ? S : ""}`.trim() || null
196
+ ), w = () => {
197
197
  u.value = !1;
198
- }, w = () => {
199
- u.value = !0, M();
198
+ }, Y = () => {
199
+ u.value = !0, x();
200
200
  }, ee = (r) => {
201
- n.value = null, Y(), s(r);
201
+ n.value = null, w(), s(r);
202
202
  }, ae = async () => {
203
203
  n.value && (n.value = null, b.value = null), s(null);
204
204
  }, te = (r) => {
@@ -206,40 +206,40 @@ const he = {
206
206
  }, O = (r) => {
207
207
  if (r.length < 10)
208
208
  return;
209
- const o = C(r) ? g(r) : null, V = F(o);
209
+ const o = C(r) ? F(r) : null, V = _(o);
210
210
  !V && o ? (n.value = null, s(o)) : r && (n.value = V || "provideDateInAFormat", s(null));
211
211
  }, L = fe(O, e);
212
- return { __sfc: !0, DEBOUNCE_TIME: e, props: t, emit: a, t: d, datePickerContainerId: D, labelId: v, descriptionId: l, errorId: h, dateErrorId: S, popoverAriaLabel: k, calendarContainerRef: c, inputContainerRef: I, dateError: n, isDatePickerOpen: u, initialFocusOnDatePickerOpen: P, internalModelValue: m, isReadOnly: G, emitValue: s, resolvedFirstDayOfWeek: K, isFormatValid: C, parseDate: g, onKeyDown: R, autoFormat: T, isTouchDevice: N, computedTrapAllOptions: U, isMonthVariant: A, dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: M, formatNativeDate: _, nativeValue: $, onNativeDateInput: j, formattedMin: X, formattedMax: H, getDateErrorReason: F, dateErrorText: x, descriptionConditionalClasses: Q, ariaDescribedBy: Z, closeDatePicker: Y, openDatePicker: w, onDateSelected: ee, clearDatePickerValue: ae, onDateKeyDown: te, validateDate: O, validateDateDebounced: L, onDateInputChange: (r) => {
212
+ return { __sfc: !0, DEBOUNCE_TIME: e, props: t, emit: a, t: d, datePickerContainerId: m, labelId: v, descriptionId: l, errorId: h, dateErrorId: S, popoverAriaLabel: k, calendarContainerRef: c, inputContainerRef: I, dateError: n, isDatePickerOpen: u, initialFocusOnDatePickerOpen: P, internalModelValue: D, isReadOnly: G, emitValue: s, resolvedFirstDayOfWeek: K, isFormatValid: C, parseDate: F, onKeyDown: R, autoFormat: T, isTouchDevice: N, computedTrapAllOptions: U, isMonthVariant: g, dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: x, formatNativeDate: A, nativeValue: $, onNativeDateInput: j, formattedMin: X, formattedMax: H, getDateErrorReason: _, dateErrorText: M, descriptionConditionalClasses: Q, ariaDescribedBy: Z, closeDatePicker: w, openDatePicker: Y, onDateSelected: ee, clearDatePickerValue: ae, onDateKeyDown: te, validateDate: O, validateDateDebounced: L, onDateInputChange: (r) => {
213
213
  b.value = T(r), u.value || N.value ? O(b.value) : L(b.value);
214
214
  }, onSpaceBarOrEnter: async (r) => {
215
215
  var o;
216
- u.value || (r.preventDefault(), w(), await le(), m.value || (M(/* @__PURE__ */ new Date()), s(/* @__PURE__ */ new Date())), P.value = ((o = c.value) == null ? void 0 : o.$refs.calendarRef[0].focusOnDate(
217
- t.variant === "month" ? z(m.value) : m.value,
216
+ u.value || (r.preventDefault(), Y(), await le(), D.value || (x(/* @__PURE__ */ new Date()), s(/* @__PURE__ */ new Date())), P.value = ((o = c.value) == null ? void 0 : o.$refs.calendarRef[0].focusOnDate(
217
+ t.variant === "month" ? z(D.value) : D.value,
218
218
  !0
219
219
  )) ?? void 0);
220
- }, BentoPopover: ce, BentoTypography: pe, Calendar: ne, ErrorMessage: Ae, FieldLabel: ge, DropdownInputDefault: De, BentoInputField: me, vBentoClickOutsideDirective: Ie };
220
+ }, BentoPopover: ce, BentoTypography: pe, Calendar: ne, ErrorMessage: Ae, FieldLabel: ge, DropdownInputDefault: me, BentoInputField: De, vBentoClickOutsideDirective: Ie };
221
221
  }
222
222
  });
223
- var Me = function() {
224
- var d, D, v;
223
+ var Fe = function() {
224
+ var d, m, v;
225
225
  var a = this, t = a._self._c, e = a._self._setupProxy;
226
226
  return t("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDatePicker, expression: "closeDatePicker" }], staticClass: "b-date-picker", on: { "!keydown": [function(l) {
227
227
  return !l.type.indexOf("key") && a._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onSpaceBarOrEnter.apply(null, arguments);
228
228
  }, function(l) {
229
229
  return !l.type.indexOf("key") && a._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onSpaceBarOrEnter.apply(null, arguments);
230
- }] } }, [a.label ? t(e.FieldLabel, { attrs: { id: e.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), t("div", [e.isTouchDevice ? t(e.BentoInputField, { ref: "inputContainerRef", attrs: { type: e.isMonthVariant ? "month" : "date", "aria-labelledby": a.label ? e.labelId : (d = a.$attrs) == null ? void 0 : d["aria-labelledby"], "aria-label": a.label || (D = a.$attrs) != null && D["aria-labelledby"] ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, error: !!a.errorMessage || !!e.dateErrorText, "model-value": e.nativeValue, readonly: e.isReadOnly, min: e.formattedMin, max: e.formattedMax }, on: { "update:model-value": e.onNativeDateInput } }) : t(e.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": a.label ? e.labelId : (v = a.$attrs) == null ? void 0 : v["aria-labelledby"], "aria-label": a.label ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "dynamic-filtering": "", "is-invalid": !!a.errorMessage || !!e.dateErrorText, open: e.isDatePickerOpen, value: e.textInputValue, "display-value": e.dateDisplayValue, "debounce-time": 0, readonly: e.isReadOnly }, on: { input: e.onDateInputChange, open: e.openDatePicker, keydown: e.onDateKeyDown, clear: e.clearDatePickerValue, close: e.closeDatePicker } })], 1), e.dateErrorText ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : a._e(), a.errorMessage ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? t(e.BentoTypography, { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), e.inputContainerRef && !e.isTouchDevice ? t(e.BentoPopover, { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: "bottom-start", "fit-content": "", "trap-all": "", "trap-all-options": e.computedTrapAllOptions }, nativeOn: { keydown: function(l) {
230
+ }] } }, [a.label ? t(e.FieldLabel, { attrs: { id: e.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), t("div", [e.isTouchDevice ? t(e.BentoInputField, { ref: "inputContainerRef", attrs: { type: e.isMonthVariant ? "month" : "date", "aria-labelledby": a.label ? e.labelId : (d = a.$attrs) == null ? void 0 : d["aria-labelledby"], "aria-label": a.label || (m = a.$attrs) != null && m["aria-labelledby"] ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, error: !!a.errorMessage || !!e.dateErrorText, "model-value": e.nativeValue, readonly: e.isReadOnly, min: e.formattedMin, max: e.formattedMax }, on: { "update:model-value": e.onNativeDateInput } }) : t(e.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": a.label ? e.labelId : (v = a.$attrs) == null ? void 0 : v["aria-labelledby"], "aria-label": a.label ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "dynamic-filtering": "", "is-invalid": !!a.errorMessage || !!e.dateErrorText, open: e.isDatePickerOpen, value: e.textInputValue, "display-value": e.dateDisplayValue, "debounce-time": 0, readonly: e.isReadOnly }, on: { input: e.onDateInputChange, open: e.openDatePicker, keydown: e.onDateKeyDown, clear: e.clearDatePickerValue, close: e.closeDatePicker } })], 1), e.dateErrorText ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : a._e(), a.errorMessage ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? t(e.BentoTypography, { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), e.inputContainerRef && !e.isTouchDevice ? t(e.BentoPopover, { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: "bottom-start", "fit-content": "", "trap-all": "", "trap-all-options": e.computedTrapAllOptions }, nativeOn: { keydown: function(l) {
231
231
  return !l.type.indexOf("key") && a._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closeDatePicker.apply(null, arguments);
232
232
  } } }, [t(e.Calendar, { ref: "calendarContainerRef", attrs: { "default-display-month": a.defaultDisplayMonth, "first-day-of-week": e.resolvedFirstDayOfWeek, "is-date-disabled": a.isDateDisabled, "number-of-months": 1, value: e.internalModelValue, min: a.min, max: a.max, variant: a.variant }, on: { input: e.onDateSelected } })], 1) : a._e()], 1);
233
- }, Fe = [], xe = /* @__PURE__ */ _e(
233
+ }, xe = [], Me = /* @__PURE__ */ _e(
234
234
  Ce,
235
- Me,
236
235
  Fe,
236
+ xe,
237
237
  !1,
238
238
  null,
239
- "1d7c5ad5"
239
+ "008cec8d"
240
240
  );
241
- const He = xe.exports;
241
+ const He = Me.exports;
242
242
  export {
243
243
  He as B
244
244
  };
245
- //# sourceMappingURL=date-picker.CYDTf6De.js.map
245
+ //# sourceMappingURL=date-picker.BWxvyK5J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.BWxvyK5J.js","sources":["../../src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../src/components/date-picker/date-picker.vue"],"sourcesContent":["import { computed, ref } from 'vue';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { type UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { startOfMonth } from 'date-fns/startOfMonth';\nimport { getDateTimeFormatter } from '@/utils/ts/format-date/format-date';\nimport { useDateInputFormatter } from '@/composables/use-date-input-formatter/use-date-input-formatter';\nimport messages from '../messages.json';\n\ntype MessageSchema = (typeof messages)['en-US'];\n\n/**\n * Composable that sets and formats the date to be displayed in the input box of a Single Date Picker\n * @param option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param option.dateError The i18n message key for the current error, or null if valid\n * @param option.isMonthVariant Indicates if the date picker has variant \"month\"\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({\n datePickerValue,\n dateError,\n isMonthVariant,\n placeholder,\n}) => {\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const { formatDate } = useDateInputFormatter();\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 (dateError.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 placeholder?.value || (t('selectDate') as string);\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" or \"MMMM yyyy (June 2023)\"\n // if there's a valid date selected\n const dateFormatOptions: Intl.DateTimeFormatOptions = isMonthVariant?.value\n ? { month: 'long', year: 'numeric' }\n : { day: 'numeric', month: 'short', year: 'numeric' };\n\n return getDateTimeFormatter(locale.value, dateFormatOptions).format(datePickerValue.value);\n });\n\n /**\n * Formats the \"dateToFormat\" date value with the current format and sets it as \"formatTextInputDisplayValue\" value\n * @param 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 (dateError.value) {\n return;\n }\n\n if (!dateToFormat) {\n textInputValue.value = '';\n return;\n }\n\n const date = isMonthVariant?.value ? startOfMonth(dateToFormat) : dateToFormat;\n textInputValue.value = formatDate(date);\n };\n\n return {\n // Values\n dateDisplayValue,\n textInputValue,\n\n // Methods\n formatTextInputDisplayValue,\n };\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 <bento-input-field\n v-if=\"isTouchDevice\"\n ref=\"inputContainerRef\"\n :type=\"isMonthVariant ? 'month' : 'date'\"\n :aria-labelledby=\"label ? labelId : $attrs?.['aria-labelledby']\"\n :aria-label=\"label || $attrs?.['aria-labelledby'] ? null : popoverAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-required=\"required\"\n :disabled=\"disabled\"\n :error=\"!!errorMessage || !!dateErrorText\"\n :model-value=\"nativeValue\"\n :readonly=\"isReadOnly\"\n :min=\"formattedMin\"\n :max=\"formattedMax\"\n @update:model-value=\"onNativeDateInput\"\n />\n <dropdown-input-default\n v-else\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : $attrs?.['aria-labelledby']\"\n :aria-label=\"label ? null : popoverAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-required=\"required\"\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 && !isTouchDevice\"\n :id=\"datePickerContainerId\"\n class=\"b-date-picker__container\"\n role=\"dialog\"\n :open=\"isDatePickerOpen\"\n :target-element=\"inputContainerRef\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n position=\"bottom-start\"\n fit-content\n trap-all\n :trap-all-options=\"computedTrapAllOptions\"\n @keydown.esc.native=\"closeDatePicker\"\n >\n <calendar\n ref=\"calendarContainerRef\"\n :default-display-month=\"defaultDisplayMonth\"\n :first-day-of-week=\"resolvedFirstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"internalModelValue\"\n :min=\"min\"\n :max=\"max\"\n :variant=\"variant\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, toRef, watch } from 'vue';\n import { startOfMonth } from 'date-fns/startOfMonth';\n\n // Components\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '../typography';\n import { Calendar, type CalendarSingleDateValue, ErrorMessage, FieldLabel } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n import { BentoInputField } from '@/components/input-field';\n\n // Utils\n import { debounce } from '@/utils/ts/debounce';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { dateToNativeDateString, dateToNativeMonthString, parseNativeDateString } from '@/utils/ts/format-date';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n // Composables\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { useDateInputFormatter, useFirstDayOfWeek, useFormLayoutFieldLoading, useTouchDevice } from '@/composables';\n\n // Directive\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives';\n\n // Types\n import { type BentoDatePickerEmits, type BentoDatePickerProps } 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 const props = defineProps({\n description: { default: undefined },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: undefined },\n optional: { type: Boolean, default: false },\n placeholder: { default: null },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n defaultDisplayMonth: { default: null },\n firstDayOfWeek: { default: undefined },\n isDateDisabled: { default: undefined },\n min: { default: null },\n max: { default: null },\n modelValue: { default: null },\n value: { default: null },\n variant: { default: undefined }\n});\n\n const emit = defineEmits([\"update:model-value\", \"input\"]);\n\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 dateError = ref<keyof MessageSchema | null>(null);\n const isDatePickerOpen = ref(false);\n const initialFocusOnDatePickerOpen = ref(undefined);\n const internalModelValue = ref<CalendarSingleDateValue | null>(props.modelValue); // to be removed when `props.value` is removed\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const { emitValue } = useFormFieldEmits<CalendarSingleDateValue>(emit);\n const { resolvedFirstDayOfWeek } = useFirstDayOfWeek(toRef(props, 'firstDayOfWeek'));\n const { isFormatValid, parseDate, onKeyDown, autoFormat } = useDateInputFormatter();\n const { isTouchDevice } = useTouchDevice();\n\n const computedTrapAllOptions = computed(() => ({\n initialFocus: initialFocusOnDatePickerOpen.value,\n additionalContainers: [inputContainerRef.value.$el],\n }));\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 watch(\n [() => props.value, () => props.modelValue],\n ([newValue, newModelValue]) => {\n if (newValue) {\n deprecate(\n 'BentoDatePicker \"value\" property',\n `The use of \"value\" prop in \"BentoDatePicker\" is no longer supported. Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n\n internalModelValue.value = newModelValue ?? newValue;\n },\n { immediate: true }\n );\n\n const isMonthVariant = computed(() => props.variant === 'month');\n\n const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: internalModelValue,\n dateError,\n isMonthVariant,\n placeholder: toRef(props, 'placeholder'),\n });\n\n const formatNativeDate = (date: Date): string => {\n if (!date) {\n return '';\n }\n return isMonthVariant.value ? dateToNativeMonthString(date) : dateToNativeDateString(date);\n };\n\n const nativeValue = computed(() => formatNativeDate(internalModelValue.value));\n\n const onNativeDateInput = (value: string) => {\n if (!value) {\n dateError.value = null;\n emitValue(null);\n return;\n }\n\n const date = parseNativeDateString(value, isMonthVariant.value ? 'month' : 'date');\n dateError.value = getDateErrorReason(date);\n\n if (dateError.value) {\n // Emit null to match the non-touch validation behavior.\n // Note: on repeated invalid selections, the native input may still display\n // the selected date because Vue skips re-rendering when the model stays null.\n emitValue(null);\n return;\n }\n\n emitValue(date);\n };\n\n const formattedMin = computed(() => formatNativeDate(props.min));\n const formattedMax = computed(() => formatNativeDate(props.max));\n\n const getDateErrorReason = (date: Date | null): keyof MessageSchema | null => {\n if (!date || isNaN(date.getTime())) {\n return 'provideDateInAFormat';\n }\n\n // Check if date is between min/max bounds, if there are any (inclusive)\n if ((props.min && date < props.min) || (props.max && date > props.max)) {\n return 'provideDateInAFormat';\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled && props.isDateDisabled(date)) {\n return 'selectedDateIsNotAvailable';\n }\n\n return null;\n };\n\n const dateErrorText = computed(() => (dateError.value ? t(dateError.value) : null));\n\n watch(\n [isDatePickerOpen, textInputValue, () => props.isDateDisabled, () => props.min, () => props.max],\n ([isOpen, textValue]) => {\n // Re-validate the current input when the picker closes, validation props change or text input change\n if (!isOpen && textValue && isFormatValid(textValue)) {\n dateError.value = getDateErrorReason(parseDate(textValue));\n }\n }\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 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 dateError.value = null;\n\n closeDatePicker();\n emitValue(selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (dateError.value) {\n dateError.value = null;\n textInputValue.value = null;\n }\n emitValue(null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n onKeyDown(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 const parsedDate = isFormatValid(stringDate) ? parseDate(stringDate) : null;\n const errorKey = getDateErrorReason(parsedDate);\n\n if (!errorKey && parsedDate) {\n dateError.value = null;\n emitValue(parsedDate);\n } else if (stringDate) {\n dateError.value = errorKey || 'provideDateInAFormat';\n emitValue(null);\n }\n };\n\n const validateDateDebounced = debounce(validateDate, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = autoFormat(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 // On touch devices with native input, we also want immediate feedback.\n if (isDatePickerOpen.value || isTouchDevice.value) {\n validateDate(textInputValue.value);\n } else {\n validateDateDebounced(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 (!internalModelValue.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emitValue(new Date());\n }\n\n // Set initial focus\n initialFocusOnDatePickerOpen.value =\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(\n props.variant === 'month' ? startOfMonth(internalModelValue.value) : internalModelValue.value,\n true\n ) ?? undefined;\n };\n</script>\n\n<script lang=\"ts\">\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 {\n i18n: { messages },\n name: 'bento-date-picker',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["useDatePickerSingleCalendarText","datePickerValue","dateError","isMonthVariant","placeholder","locale","t","useI18n","formatDate","useDateInputFormatter","textInputValue","ref","_a","computed","dateFormatOptions","getDateTimeFormatter","dateToFormat","date","startOfMonth","__default__","messages","DEBOUNCE_TIME","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","props","calendarContainerRef","inputContainerRef","isDatePickerOpen","initialFocusOnDatePickerOpen","internalModelValue","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","emit","resolvedFirstDayOfWeek","useFirstDayOfWeek","isFormatValid","parseDate","onKeyDown","autoFormat","isTouchDevice","useTouchDevice","computedTrapAllOptions","watch","disabled","newValue","newModelValue","deprecate","dateDisplayValue","formatTextInputDisplayValue","formatNativeDate","dateToNativeMonthString","dateToNativeDateString","nativeValue","onNativeDateInput","value","parseNativeDateString","getDateErrorReason","formattedMin","formattedMax","dateErrorText","isOpen","textValue","descriptionConditionalClasses","ariaDescribedBy","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDate","stringDate","parsedDate","errorKey","validateDateDebounced","debounce","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBOA,KAAA,CAAA;AAAA,EAAmE,iBAAAC;AAAA,EACtE,WAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAEJ,MAAA;;AACI,QAAA,EAAA,QAAAC,GAAA,GAAAC,EAAA,IAAAC,EAAA,GACA,EAAA,YAAAC,EAAA,IAAAC,EAAA,GAEAC,IAAAC,GAAAC,IAAAX,EAAA,UAAA,gBAAAW,EAAA,cAAA;AAyCA,SAAA;AAAA;AAAA,IAAO,kBAvCPC,EAAA,MAAA;AAEI,UAAAX,EAAA;AACI,eAAAQ,EAAA;AAIJ,UAAA,CAAAT,EAAA;AACI,gBAAAG,KAAA,gBAAAA,EAAA,UAAAE,EAAA,YAAA;AAKJ,YAAAQ,IAAAX,KA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, d as we } from "./typography.C8lPlsbD.js";
6
6
  import { B as Ra } from "./alert.B4bHCE8V.js";
7
- import { B as Ya } from "./input-field.D86PSAiu.js";
8
- import { B as Aa, i as Oe } from "./input-time.LyKZXnVO.js";
9
- import { B as ba, D as ka } from "./dropdown.BEurqT8m.js";
7
+ import { B as Ya } from "./input-field.BkQZ6Qzl.js";
8
+ import { B as Aa, i as Oe } from "./input-time.BiOHvUEA.js";
9
+ import { B as ba, D as ka } from "./dropdown.C70AlvOT.js";
10
10
  import { B as Ia } from "./segmented-control.C0JtDa4q.js";
11
11
  import { u as Ae } from "./index.B6WW_F-J.js";
12
- import { d as Ce } from "./use-cached-selected-values.txnml8sE.js";
12
+ import { d as Ce } from "./use-cached-selected-values.D0s14AxT.js";
13
13
  import { u as _a } from "./use-has-slot.C9lQZ6nz.js";
14
- import { u as be, a as Sa } from "./use-date-input-formatter.D7Ud6Ana.js";
14
+ import { u as be, a as Sa } from "./use-date-input-formatter.B5GQd3s2.js";
15
15
  import { u as xa } from "./use-touch-device.DTqFAbXh.js";
16
- import { j as re, k as F, s as R, l as Fa, m as Be, n as Ea, f as qe, o as wa, q as Oa, r as Ca, t as Pe, u as Ba, b as N, v as qa, h as Pa, i as Na, e as _, p as Ne, w as ze, g as za } from "./calendar.ofn3G6eW.js";
16
+ import { j as re, k as F, s as R, l as Fa, m as Be, n as Ea, f as qe, o as wa, q as Oa, r as Ca, t as Pe, u as Ba, b as N, v as qa, h as Pa, i as Na, e as _, w as Ne, x as ze, g as za } from "./calendar.D0JIbmoS.js";
17
17
  import { e as C, a as Qe } from "./differenceInMonths.CpwVtHZX.js";
18
18
  import { s as We } from "./startOfWeek.Br5KM4z_.js";
19
19
  import { t as ge, n as Qa, c as Wa } from "./en-US.BK5uiAND.js";
@@ -128,7 +128,7 @@ var v = /* @__PURE__ */ ((o) => (o.CUSTOM_RANGE = "custom-range", o.INPUT = "inp
128
128
  const et = {
129
129
  "de-DE": {
130
130
  "DD-MM-YYYY": "TT-MM-JJJJ",
131
- "MM-DD-YYYY": "JJJJ-MM-TT",
131
+ "MM-DD-YYYY": "MM-TT-JJJJ",
132
132
  "YYYY-MM-DD": "JJJJ-MM-TT",
133
133
  customRange: "Benutzerdefinierter Bereich",
134
134
  daily: "Täglich",
@@ -317,7 +317,7 @@ const et = {
317
317
  },
318
318
  "zh-CN": {
319
319
  "DD-MM-YYYY": "日-月-年",
320
- "MM-DD-YYYY": "YYYY-MM-DD",
320
+ "MM-DD-YYYY": "月-日-年",
321
321
  "YYYY-MM-DD": "年-月-日",
322
322
  customRange: "自定义范围",
323
323
  daily: "每日",
@@ -875,7 +875,7 @@ const ot = st.exports, lt = {
875
875
  apply: "应用",
876
876
  cancel: "取消",
877
877
  dateRangePicker: "日期范围选择器 {name}",
878
- provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期",
878
+ provideDateInAFormat: "提供年-月-日格式的日期",
879
879
  quarter: "{year} {quarter} 季度",
880
880
  selectDate: "选择日期",
881
881
  selectDateRange: "选择日期范围",
@@ -1111,4 +1111,4 @@ export {
1111
1111
  Ka as a,
1112
1112
  Te as i
1113
1113
  };
1114
- //# sourceMappingURL=date-range-picker.DGGvwRfn.js.map
1114
+ //# sourceMappingURL=date-range-picker.gfRJmzXn.js.map