@dpa-id-components/dpa-shared-components 3.1.0 → 3.1.2

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.
@@ -92,8 +92,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
92
92
  default: number;
93
93
  };
94
94
  maxDate: {
95
- type: __PropType<Date | undefined>;
95
+ type: __PropType<Date | null | undefined>;
96
96
  required: false;
97
+ default: null;
97
98
  };
98
99
  autoRange: {
99
100
  type: __PropType<number | null | undefined>;
@@ -105,6 +106,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
105
106
  required: false;
106
107
  default: boolean;
107
108
  };
109
+ monthPicker: {
110
+ type: __PropType<boolean | undefined>;
111
+ required: false;
112
+ default: boolean;
113
+ };
108
114
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "date-changed")[], "close" | "date-changed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
115
  definesRange: {
110
116
  type: __PropType<boolean | undefined>;
@@ -192,8 +198,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
192
198
  default: number;
193
199
  };
194
200
  maxDate: {
195
- type: __PropType<Date | undefined>;
201
+ type: __PropType<Date | null | undefined>;
196
202
  required: false;
203
+ default: null;
197
204
  };
198
205
  autoRange: {
199
206
  type: __PropType<number | null | undefined>;
@@ -205,6 +212,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
205
212
  required: false;
206
213
  default: boolean;
207
214
  };
215
+ monthPicker: {
216
+ type: __PropType<boolean | undefined>;
217
+ required: false;
218
+ default: boolean;
219
+ };
208
220
  }>> & {
209
221
  onClose?: ((...args: any[]) => any) | undefined;
210
222
  "onDate-changed"?: ((...args: any[]) => any) | undefined;
@@ -226,7 +238,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
226
238
  cancel: string | undefined;
227
239
  submit: string | undefined;
228
240
  firstAvailableDate: number | undefined;
241
+ maxDate: Date | null | undefined;
229
242
  autoRange: number | null | undefined;
230
243
  activeState: boolean | undefined;
244
+ monthPicker: boolean | undefined;
231
245
  }>;
232
246
  export default _sfc_main;
@@ -1,4 +1,4 @@
1
- import { defineComponent as Ce, ref as ie, onMounted as Ft, watch as Kt, computed as X, openBlock as x, createBlock as Te, resolveDynamicComponent as Ea, normalizeClass as le, unref as k, createElementBlock as B, toDisplayString as ge, createCommentVNode as W, createElementVNode as G, renderSlot as J, createTextVNode as bt, withCtx as fe, createVNode as Fe, withModifiers as Lt, withDirectives as mr, withKeys as Ie, normalizeStyle as Dt, Fragment as Le, renderList as tt, vShow as qr, reactive as Aa, useSlots as $o, toRef as Da, onUnmounted as Mo, mergeProps as St, isRef as Pr, createSlots as Bt, normalizeProps as Et, guardReactiveProps as sr, Teleport as Du, Transition as Qr, nextTick as Er, onBeforeUpdate as Ou, getCurrentScope as Pu, onScopeDispose as Cu, watchEffect as os, vModelText as $u } from "vue";
1
+ import { defineComponent as Ce, ref as ie, onMounted as Ft, watch as Kt, computed as X, openBlock as x, createBlock as Te, resolveDynamicComponent as Ea, normalizeClass as le, unref as k, createElementBlock as B, toDisplayString as ge, createCommentVNode as W, createElementVNode as G, renderSlot as J, createTextVNode as bt, withCtx as fe, createVNode as Fe, withModifiers as Lt, withDirectives as mr, withKeys as Ie, normalizeStyle as Dt, Fragment as Le, renderList as et, vShow as qr, reactive as Aa, useSlots as $o, toRef as Da, onUnmounted as Mo, mergeProps as St, isRef as Pr, createSlots as Bt, normalizeProps as Et, guardReactiveProps as sr, Teleport as Du, Transition as Qr, nextTick as Er, onBeforeUpdate as Ou, getCurrentScope as Pu, onScopeDispose as Cu, watchEffect as os, vModelText as $u } from "vue";
2
2
  var ra = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  function Mu(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -5671,7 +5671,7 @@ const P0 = /* @__PURE__ */ ca(O0, [["__scopeId", "data-v-2ec6a23c"]]), C0 = ["on
5671
5671
  }, [
5672
5672
  Fe(Yo, null, {
5673
5673
  default: fe(() => [
5674
- (x(!0), B(Le, null, tt(e.options, (w, C) => (x(), Te(qo, {
5674
+ (x(!0), B(Le, null, et(e.options, (w, C) => (x(), Te(qo, {
5675
5675
  id: `listbox-item-${C}`,
5676
5676
  key: `option-${C}`,
5677
5677
  value: w,
@@ -5800,7 +5800,7 @@ const ib = /* @__PURE__ */ ca(L0, [["render", F0]]), sb = /* @__PURE__ */ Ce({
5800
5800
  };
5801
5801
  return (l, s) => (x(), Te(Yo, { class: "grid grid-cols-2 flex-wrap border-none pt-2 lg:flex lg:pt-0" }, {
5802
5802
  default: fe(() => [
5803
- (x(!0), B(Le, null, tt(r.value, (u, c) => (x(), Te(qo, {
5803
+ (x(!0), B(Le, null, et(r.value, (u, c) => (x(), Te(qo, {
5804
5804
  key: u.name,
5805
5805
  "is-checked": u.isChecked,
5806
5806
  class: "flex h-8 items-center border-none py-2 text-sm shadow-none lg:py-3",
@@ -7279,7 +7279,7 @@ function iv(e, t) {
7279
7279
  var a = Pe(e), r = Vr(a, t).getTime() - nv(a, t).getTime();
7280
7280
  return Math.round(r / ov) + 1;
7281
7281
  }
7282
- function et(e) {
7282
+ function tt(e) {
7283
7283
  return xe(1, arguments), Pe(e).getFullYear();
7284
7284
  }
7285
7285
  function jo(e, t) {
@@ -10064,7 +10064,7 @@ const Zh = (e, t = 3) => {
10064
10064
  var z;
10065
10065
  return (z = e.hideNavigation) == null ? void 0 : z.includes(h);
10066
10066
  }), c = (h) => {
10067
- const z = e.maxDate ? Ut(l(h), l(oe(e.maxDate))) : !1, _ = e.minDate ? At(l(h), l(oe(e.minDate))) : !1, U = T(h, e.disabledDates), Y = a.value.filters.months.map((ae) => +ae).includes(st(h)), j = e.disabledWeekDays.length ? e.disabledWeekDays.some((ae) => +ae === Jp(h)) : !1, R = e.allowedDates.length ? !e.allowedDates.some((ae) => Ze(l(oe(ae)), l(h))) : !1, v = et(h), D = v < +e.yearRange[0] || v > +e.yearRange[1];
10067
+ const z = e.maxDate ? Ut(l(h), l(oe(e.maxDate))) : !1, _ = e.minDate ? At(l(h), l(oe(e.minDate))) : !1, U = T(h, e.disabledDates), Y = a.value.filters.months.map((ae) => +ae).includes(st(h)), j = e.disabledWeekDays.length ? e.disabledWeekDays.some((ae) => +ae === Jp(h)) : !1, R = e.allowedDates.length ? !e.allowedDates.some((ae) => Ze(l(oe(ae)), l(h))) : !1, v = tt(h), D = v < +e.yearRange[0] || v > +e.yearRange[1];
10068
10068
  return !(z || _ || U || Y || D || j || R);
10069
10069
  }, d = (h) => {
10070
10070
  const z = {
@@ -10255,7 +10255,7 @@ const Zh = (e, t = 3) => {
10255
10255
  Kt(P, () => {
10256
10256
  Ke(0);
10257
10257
  });
10258
- const p = ie([{ month: st(oe()), year: et(oe()) }]), g = Aa({
10258
+ const p = ie([{ month: st(oe()), year: tt(oe()) }]), g = Aa({
10259
10259
  hours: e.range ? [xr(oe()), xr(oe())] : xr(oe()),
10260
10260
  minutes: e.range ? [_r(oe()), _r(oe())] : _r(oe()),
10261
10261
  seconds: e.range ? [0, 0] : 0
@@ -10270,7 +10270,7 @@ const Zh = (e, t = 3) => {
10270
10270
  g[A] = ee;
10271
10271
  };
10272
10272
  Ft(() => {
10273
- f.value || (e.startDate && (E(0, st(oe(e.startDate)), et(oe(e.startDate))), d.value.multiCalendars && Ke(0)), d.value.startTime && H()), L(!0);
10273
+ f.value || (e.startDate && (E(0, st(oe(e.startDate)), tt(oe(e.startDate))), d.value.multiCalendars && Ke(0)), d.value.startTime && H()), L(!0);
10274
10274
  });
10275
10275
  const L = (A = !1) => {
10276
10276
  if (f.value)
@@ -10284,10 +10284,10 @@ const Zh = (e, t = 3) => {
10284
10284
  if (d.value.multiCalendars && A && !e.startDate)
10285
10285
  return Q(oe(), A);
10286
10286
  }, Q = (A, ee = !1) => {
10287
- if ((!d.value.multiCalendars || !e.multiStatic || ee) && E(0, st(A), et(A)), d.value.multiCalendars)
10287
+ if ((!d.value.multiCalendars || !e.multiStatic || ee) && E(0, st(A), tt(A)), d.value.multiCalendars)
10288
10288
  for (let Se = 1; Se < d.value.multiCalendars; Se++) {
10289
10289
  const De = Pt(oe(), { month: T.value(Se - 1), year: w.value(Se - 1) }), lt = Rs(De, { months: 1 });
10290
- p.value[Se] = { month: st(lt), year: et(lt) };
10290
+ p.value[Se] = { month: st(lt), year: tt(lt) };
10291
10291
  }
10292
10292
  }, M = (A) => {
10293
10293
  Q(A), O("hours", xr(A)), O("minutes", _r(A)), O("seconds", oa(A));
@@ -10332,14 +10332,14 @@ const Zh = (e, t = 3) => {
10332
10332
  if (Array.isArray(f.value) && f.value.length === 2) {
10333
10333
  const A = oe(
10334
10334
  oe(f.value[1] ? f.value[1] : hr(f.value[0], 1))
10335
- ), [ee, Se] = [st(f.value[0]), et(f.value[0])], [De, lt] = [st(f.value[1]), et(f.value[1])];
10336
- (ee !== De || ee === De && Se !== lt) && e.multiCalendarsSolo && E(1, st(A), et(A));
10335
+ ), [ee, Se] = [st(f.value[0]), tt(f.value[0])], [De, lt] = [st(f.value[1]), tt(f.value[1])];
10336
+ (ee !== De || ee === De && Se !== lt) && e.multiCalendarsSolo && E(1, st(A), tt(A));
10337
10337
  }
10338
10338
  }, _ = (A) => {
10339
10339
  const ee = hr(A, 1);
10340
- return { month: st(ee), year: et(ee) };
10340
+ return { month: st(ee), year: tt(ee) };
10341
10341
  }, U = (A) => {
10342
- const ee = st(oe(A)), Se = et(oe(A));
10342
+ const ee = st(oe(A)), Se = tt(oe(A));
10343
10343
  if (E(0, ee, Se), d.value.multiCalendars > 0)
10344
10344
  for (let De = 1; De < d.value.multiCalendars; De++) {
10345
10345
  const lt = _(
@@ -10413,11 +10413,11 @@ const Zh = (e, t = 3) => {
10413
10413
  }, Ke = (A) => {
10414
10414
  for (let ee = A - 1; ee >= 0; ee--) {
10415
10415
  const Se = aa(Pt(oe(), { month: T.value(ee + 1), year: w.value(ee + 1) }), 1);
10416
- E(ee, st(Se), et(Se));
10416
+ E(ee, st(Se), tt(Se));
10417
10417
  }
10418
10418
  for (let ee = A + 1; ee <= d.value.multiCalendars - 1; ee++) {
10419
10419
  const Se = hr(Pt(oe(), { month: T.value(ee - 1), year: w.value(ee - 1) }), 1);
10420
- E(ee, st(Se), et(Se));
10420
+ E(ee, st(Se), tt(Se));
10421
10421
  }
10422
10422
  }, Re = (A) => u(oe(), T.value(A), w.value(A)), at = (A) => tr(A, g.hours, g.minutes, se()), wt = (A) => {
10423
10423
  Y(Re(A));
@@ -10443,7 +10443,7 @@ const Zh = (e, t = 3) => {
10443
10443
  a();
10444
10444
  }, Ct = (A, ee) => {
10445
10445
  const Se = Pt(oe(), { month: T.value(ee), year: w.value(ee) }), De = A < 0 ? hr(Se, 1) : aa(Se, 1);
10446
- c(st(De), et(De), A < 0, e.preventMinMaxNavigation) && (E(ee, st(De), et(De)), d.value.multiCalendars && !e.multiCalendarsSolo && Ke(ee), t("update-month-year", { instance: ee, month: st(De), year: et(De) }), r());
10446
+ c(st(De), tt(De), A < 0, e.preventMinMaxNavigation) && (E(ee, st(De), tt(De)), d.value.multiCalendars && !e.multiCalendarsSolo && Ke(ee), t("update-month-year", { instance: ee, month: st(De), year: tt(De) }), r());
10447
10447
  }, Jt = (A) => {
10448
10448
  Wi(A) && Wi(f.value) && Lr(g.hours) && Lr(g.minutes) ? (A[0] && f.value[0] && (f.value[0] = tr(A[0], g.hours[0], g.minutes[0], se())), A[1] && f.value[1] && (f.value[1] = tr(A[1], g.hours[1], g.minutes[1], se(!1)))) : e.multiDates && Array.isArray(f.value) ? f.value[f.value.length - 1] = at(A) : !e.range && !Hi(A) && (f.value = at(A)), t("time-update");
10449
10449
  }, dr = (A, ee = !0, Se = !1) => {
@@ -10516,7 +10516,7 @@ const Zh = (e, t = 3) => {
10516
10516
  minutes: _r(D),
10517
10517
  seconds: t.enableSeconds ? oa(D) : 0
10518
10518
  };
10519
- }, g = (v) => t.modelType ? U(v) : { month: st(v), year: et(v) }, T = (v) => Array.isArray(v) ? s(() => [
10519
+ }, g = (v) => t.modelType ? U(v) : { month: st(v), year: tt(v) }, T = (v) => Array.isArray(v) ? s(() => [
10520
10520
  Wr(oe(), v[0]),
10521
10521
  v[1] ? Wr(oe(), v[1]) : u()
10522
10522
  ]) : Wr(oe(), +v), w = (v, D) => (typeof v == "string" || typeof v == "number") && t.modelType ? _(v) : D, C = (v) => Array.isArray(v) ? [
@@ -10589,7 +10589,7 @@ const Zh = (e, t = 3) => {
10589
10589
  checkBeforeEmit: () => r.value ? t.range ? t.partialRange ? r.value.length >= 1 : r.value.length === 2 : !!r.value : !1,
10590
10590
  parseExternalModelValue: ce,
10591
10591
  formatInputValue: z,
10592
- emitModelValue: () => (z(), t.monthPicker ? R(g) : t.timePicker ? R(p) : t.yearPicker ? R(et) : t.weekPicker ? Y(r.value) : Y(K()))
10592
+ emitModelValue: () => (z(), t.monthPicker ? R(g) : t.timePicker ? R(p) : t.yearPicker ? R(tt) : t.weekPicker ? Y(r.value) : Y(K()))
10593
10593
  };
10594
10594
  }, fm = (e, t) => {
10595
10595
  const { validateMonthYearInRange: a, validateMaxDate: r, validateMinDate: n, defaults: i } = Zt(e), o = (d, f) => {
@@ -10597,17 +10597,17 @@ const Zh = (e, t = 3) => {
10597
10597
  return i.value.filters.months.includes(st(y)) ? (y = f ? hr(d, 1) : aa(d, 1), o(y, f)) : y;
10598
10598
  }, l = (d, f) => {
10599
10599
  let y = d;
10600
- return i.value.filters.years.includes(et(y)) ? (y = f ? Ls(d, 1) : xh(d, 1), l(y, f)) : y;
10600
+ return i.value.filters.years.includes(tt(y)) ? (y = f ? Ls(d, 1) : xh(d, 1), l(y, f)) : y;
10601
10601
  }, s = (d) => {
10602
10602
  const f = Pt(/* @__PURE__ */ new Date(), { month: e.month, year: e.year });
10603
- let y = d ? hr(f, 1) : aa(f, 1), P = st(y), p = et(y);
10604
- i.value.filters.months.includes(P) && (y = o(y, d), P = st(y), p = et(y)), i.value.filters.years.includes(p) && (y = l(y, d), p = et(y)), a(P, p, d, e.preventMinMaxNavigation) && u(P, p);
10603
+ let y = d ? hr(f, 1) : aa(f, 1), P = st(y), p = tt(y);
10604
+ i.value.filters.months.includes(P) && (y = o(y, d), P = st(y), p = tt(y)), i.value.filters.years.includes(p) && (y = l(y, d), p = tt(y)), a(P, p, d, e.preventMinMaxNavigation) && u(P, p);
10605
10605
  }, u = (d, f) => {
10606
10606
  t("update-month-year", { month: d, year: f });
10607
10607
  }, c = X(() => (d) => {
10608
10608
  if (!e.preventMinMaxNavigation || d && !e.maxDate || !d && !e.minDate)
10609
10609
  return !1;
10610
- const f = Pt(/* @__PURE__ */ new Date(), { month: e.month, year: e.year }), y = d ? hr(f, 1) : aa(f, 1), P = [st(y), et(y)];
10610
+ const f = Pt(/* @__PURE__ */ new Date(), { month: e.month, year: e.year }), y = d ? hr(f, 1) : aa(f, 1), P = [st(y), tt(y)];
10611
10611
  return d ? !r(...P) : !n(...P);
10612
10612
  });
10613
10613
  return { handleMonthYearChange: s, isDisabled: c, updateMonthYear: u };
@@ -11105,7 +11105,7 @@ const pm = (e, t, a, r) => {
11105
11105
  Array.isArray(k(p)) ? W("", !0) : (x(), B(Le, { key: 0 }, [
11106
11106
  bt(ge(k(p)), 1)
11107
11107
  ], 64)),
11108
- Array.isArray(k(p)) ? (x(!0), B(Le, { key: 1 }, tt(k(p), (E, O) => (x(), B("div", { key: O }, ge(E), 1))), 128)) : W("", !0)
11108
+ Array.isArray(k(p)) ? (x(!0), B(Le, { key: 1 }, et(k(p), (E, O) => (x(), B("div", { key: O }, ge(E), 1))), 128)) : W("", !0)
11109
11109
  ], 64))
11110
11110
  ], 8, xm),
11111
11111
  G("div", _m, [
@@ -11260,7 +11260,7 @@ const pm = (e, t, a, r) => {
11260
11260
  }, [
11261
11261
  G("div", Om, [
11262
11262
  h.weekNumbers ? (x(), B("div", Pm, ge(h.weekNumName), 1)) : W("", !0),
11263
- (x(!0), B(Le, null, tt(k(g), (U, Y) => (x(), B("div", {
11263
+ (x(!0), B(Le, null, et(k(g), (U, Y) => (x(), B("div", {
11264
11264
  class: "dp__calendar_header_item",
11265
11265
  role: "gridcell",
11266
11266
  key: Y,
@@ -11290,7 +11290,7 @@ const pm = (e, t, a, r) => {
11290
11290
  role: "grid",
11291
11291
  "aria-label": (U = k(o).ariaLabels) == null ? void 0 : U.calendarDays
11292
11292
  }, [
11293
- (x(!0), B(Le, null, tt(e.mappedDates, (Y, j) => (x(), B("div", {
11293
+ (x(!0), B(Le, null, et(e.mappedDates, (Y, j) => (x(), B("div", {
11294
11294
  class: "dp__calendar_row",
11295
11295
  role: "row",
11296
11296
  key: j
@@ -11298,7 +11298,7 @@ const pm = (e, t, a, r) => {
11298
11298
  h.weekNumbers ? (x(), B("div", Mm, [
11299
11299
  G("div", Em, ge(e.getWeekNum(Y.days)), 1)
11300
11300
  ])) : W("", !0),
11301
- (x(!0), B(Le, null, tt(Y.days, (R, v) => {
11301
+ (x(!0), B(Le, null, et(Y.days, (R, v) => {
11302
11302
  var D, ae, q;
11303
11303
  return x(), B("div", {
11304
11304
  role: "gridcell",
@@ -11349,7 +11349,7 @@ const pm = (e, t, a, r) => {
11349
11349
  onClick: z[0] || (z[0] = Lt(() => {
11350
11350
  }, ["stop"]))
11351
11351
  }, [
11352
- (x(!0), B(Le, null, tt(R.marker.tooltip, (re, ue) => (x(), B("div", {
11352
+ (x(!0), B(Le, null, et(R.marker.tooltip, (re, ue) => (x(), B("div", {
11353
11353
  key: ue,
11354
11354
  class: "dp__tooltip_text"
11355
11355
  }, [
@@ -11544,12 +11544,12 @@ const pm = (e, t, a, r) => {
11544
11544
  G("div", Rm, [
11545
11545
  J(H.$slots, "header")
11546
11546
  ]),
11547
- H.$slots.overlay ? J(H.$slots, "overlay", { key: 0 }) : (x(!0), B(Le, { key: 1 }, tt(k(O), (_, U) => (x(), B("div", {
11547
+ H.$slots.overlay ? J(H.$slots, "overlay", { key: 0 }) : (x(!0), B(Le, { key: 1 }, et(k(O), (_, U) => (x(), B("div", {
11548
11548
  class: le(["dp__overlay_row", { dp__flex_row: k(O).length >= 3 }]),
11549
11549
  key: U,
11550
11550
  role: "row"
11551
11551
  }, [
11552
- (x(!0), B(Le, null, tt(_, (Y, j) => (x(), B("div", {
11552
+ (x(!0), B(Le, null, et(_, (Y, j) => (x(), B("div", {
11553
11553
  role: "gridcell",
11554
11554
  class: le(k(C)),
11555
11555
  key: Y.value,
@@ -11719,7 +11719,7 @@ const pm = (e, t, a, r) => {
11719
11719
  a("update-month-year", { [v]: D, [ae]: r[ae] }), a("month-year-select", v === "year"), v === "month" ? _(!0) : U(!0);
11720
11720
  }
11721
11721
  }), w = X(T("month")), C = X(T("year")), E = (v) => {
11722
- const D = et(oe(v));
11722
+ const D = tt(oe(v));
11723
11723
  return r.year === D;
11724
11724
  }, O = X(() => r.monthPicker ? Array.isArray(r.disabledDates) ? r.disabledDates.map((v) => oe(v)).filter((v) => E(v)).map((v) => st(v)) : [] : []), L = X(() => (v) => {
11725
11725
  const D = v === "month";
@@ -11745,7 +11745,7 @@ const pm = (e, t, a, r) => {
11745
11745
  instance: r.instance,
11746
11746
  updateMonthYear: c,
11747
11747
  toggle: v === "month" ? _ : U
11748
- })), M = X(() => r.minDate ? et(oe(r.minDate)) : null), $ = X(() => r.maxDate ? et(oe(r.maxDate)) : null), F = X(() => {
11748
+ })), M = X(() => r.minDate ? tt(oe(r.minDate)) : null), $ = X(() => r.maxDate ? tt(oe(r.maxDate)) : null), F = X(() => {
11749
11749
  if (r.minDate && M.value) {
11750
11750
  if (M.value > r.year)
11751
11751
  return 12;
@@ -12151,7 +12151,7 @@ const pm = (e, t, a, r) => {
12151
12151
  return t({ openChildCmp: ce }), (h, z) => {
12152
12152
  var _;
12153
12153
  return h.disabled ? W("", !0) : (x(), B("div", Gm, [
12154
- (x(!0), B(Le, null, tt(k(w), (U, Y) => {
12154
+ (x(!0), B(Le, null, et(k(w), (U, Y) => {
12155
12155
  var j, R, v;
12156
12156
  return x(), B("div", {
12157
12157
  key: Y,
@@ -12248,7 +12248,7 @@ const pm = (e, t, a, r) => {
12248
12248
  ]
12249
12249
  }, ge(c.value), 41, Jm))
12250
12250
  ])),
12251
- (x(!0), B(Le, null, tt(k(C), (U, Y) => (x(), Te(Qr, {
12251
+ (x(!0), B(Le, null, et(k(C), (U, Y) => (x(), Te(Qr, {
12252
12252
  key: Y,
12253
12253
  name: k(l)(u[U.type]),
12254
12254
  css: k(s)
@@ -12392,7 +12392,7 @@ const pm = (e, t, a, r) => {
12392
12392
  setSeconds: $
12393
12393
  }) : W("", !0),
12394
12394
  S.$slots["time-picker-overlay"] ? W("", !0) : (x(), B("div", ag, [
12395
- (x(!0), B(Le, null, tt(k(w), (se, H) => mr((x(), Te(eg, St({ key: H }, {
12395
+ (x(!0), B(Le, null, et(k(w), (se, H) => mr((x(), Te(eg, St({ key: H }, {
12396
12396
  ...S.$props,
12397
12397
  order: H,
12398
12398
  hours: se.hours,
@@ -12410,7 +12410,7 @@ const pm = (e, t, a, r) => {
12410
12410
  onMounted: F,
12411
12411
  onOverlayClosed: F
12412
12412
  }), Bt({ _: 2 }, [
12413
- tt(k(O), (h, z) => ({
12413
+ et(k(O), (h, z) => ({
12414
12414
  name: h,
12415
12415
  fn: fe((_) => [
12416
12416
  J(S.$slots, h, Et(sr(_)))
@@ -12752,7 +12752,7 @@ const pm = (e, t, a, r) => {
12752
12752
  J(Z.$slots, "left-sidebar", Et(sr({ handleMonthYearChange: kt })))
12753
12753
  ])) : W("", !0),
12754
12754
  (wr = Z.presetRanges) != null && wr.length ? (x(), B("div", ug, [
12755
- (x(!0), B(Le, null, tt(Z.presetRanges, (_e, Sr) => (x(), B("div", {
12755
+ (x(!0), B(Le, null, et(Z.presetRanges, (_e, Sr) => (x(), B("div", {
12756
12756
  key: Sr,
12757
12757
  style: Dt(_e.style || {}),
12758
12758
  class: "dp__preset_range",
@@ -12777,7 +12777,7 @@ const pm = (e, t, a, r) => {
12777
12777
  G("div", {
12778
12778
  class: le(k(wt))
12779
12779
  }, [
12780
- (x(!0), B(Le, null, tt(k(Ke), (_e, Sr) => (x(), B("div", {
12780
+ (x(!0), B(Le, null, et(k(Ke), (_e, Sr) => (x(), B("div", {
12781
12781
  key: _e,
12782
12782
  class: le(k(mt))
12783
12783
  }, [
@@ -12800,7 +12800,7 @@ const pm = (e, t, a, r) => {
12800
12800
  onMonthYearSelect: k(U),
12801
12801
  onOverlayClosed: M
12802
12802
  }), Bt({ _: 2 }, [
12803
- tt(k(ze), (Ee, hn) => ({
12803
+ et(k(ze), (Ee, hn) => ({
12804
12804
  name: Ee,
12805
12805
  fn: fe((da) => [
12806
12806
  J(Z.$slots, Ee, Et(sr(da)))
@@ -12831,7 +12831,7 @@ const pm = (e, t, a, r) => {
12831
12831
  onTooltipOpen: ye[4] || (ye[4] = (Ee) => Z.$emit("tooltip-open", Ee)),
12832
12832
  onTooltipClose: ye[5] || (ye[5] = (Ee) => Z.$emit("tooltip-close", Ee))
12833
12833
  }), Bt({ _: 2 }, [
12834
- tt(k(be), (Ee, hn) => ({
12834
+ et(k(be), (Ee, hn) => ({
12835
12835
  name: Ee,
12836
12836
  fn: fe((da) => [
12837
12837
  J(Z.$slots, Ee, Et(sr({ ...da })))
@@ -12859,7 +12859,7 @@ const pm = (e, t, a, r) => {
12859
12859
  onOverlayClosed: M,
12860
12860
  onOverlayOpened: ye[10] || (ye[10] = (_e) => Z.$emit("time-picker-open", _e))
12861
12861
  }), Bt({ _: 2 }, [
12862
- tt(k(Ae), (_e, Sr) => ({
12862
+ et(k(Ae), (_e, Sr) => ({
12863
12863
  name: _e,
12864
12864
  fn: fe((Ee) => [
12865
12865
  J(Z.$slots, _e, Et(sr(Ee)))
@@ -12897,7 +12897,7 @@ const pm = (e, t, a, r) => {
12897
12897
  onSelectDate: ye[13] || (ye[13] = (_e) => Z.$emit("select-date")),
12898
12898
  onInvalidSelect: ye[14] || (ye[14] = (_e) => Z.$emit("invalid-select"))
12899
12899
  }), Bt({ _: 2 }, [
12900
- tt(k(ne), (_e, Sr) => ({
12900
+ et(k(ne), (_e, Sr) => ({
12901
12901
  name: _e,
12902
12902
  fn: fe((Ee) => [
12903
12903
  J(Z.$slots, _e, Et(sr({ ...Ee })))
@@ -13083,7 +13083,7 @@ const pm = (e, t, a, r) => {
13083
13083
  onFocus: Ae,
13084
13084
  onBlur: ze
13085
13085
  }), Bt({ _: 2 }, [
13086
- tt(k(w), (Me, Ke) => ({
13086
+ et(k(w), (Me, Ke) => ({
13087
13087
  name: Me,
13088
13088
  fn: fe((Re) => [
13089
13089
  J(ke.$slots, Me, Et(sr(Re)))
@@ -13115,7 +13115,7 @@ const pm = (e, t, a, r) => {
13115
13115
  onTooltipClose: Ne[7] || (Ne[7] = (Me) => ke.$emit("tooltip-close", Me)),
13116
13116
  onTimePickerOpen: Ne[8] || (Ne[8] = (Me) => ke.$emit("time-picker-open", Me))
13117
13117
  }), Bt({ _: 2 }, [
13118
- tt(k(T), (Me, Ke) => ({
13118
+ et(k(T), (Me, Ke) => ({
13119
13119
  name: Me,
13120
13120
  fn: fe((Re) => [
13121
13121
  J(ke.$slots, Me, Et(sr({ ...Re })))
@@ -13212,9 +13212,10 @@ const wg = ["disabled"], fl = /* @__PURE__ */ Ce({
13212
13212
  cancel: { default: "" },
13213
13213
  submit: { default: "" },
13214
13214
  firstAvailableDate: { default: 1948 },
13215
- maxDate: null,
13215
+ maxDate: { default: null },
13216
13216
  autoRange: { default: null },
13217
- activeState: { type: Boolean, default: !1 }
13217
+ activeState: { type: Boolean, default: !1 },
13218
+ monthPicker: { type: Boolean, default: !1 }
13218
13219
  },
13219
13220
  emits: ["date-changed", "close"],
13220
13221
  setup(e, { emit: t }) {
@@ -13226,7 +13227,7 @@ const wg = ["disabled"], fl = /* @__PURE__ */ Ce({
13226
13227
  const p = $r(P[0], "dd.MM.yyyy"), g = $r(P[1], "dd.MM.yyyy");
13227
13228
  return p + "-" + g;
13228
13229
  }, u = (P) => $r(P, "dd.MM.yyyy"), c = a.definesRange ? s : u, d = X(() => {
13229
- const P = et(/* @__PURE__ */ new Date());
13230
+ const P = tt(/* @__PURE__ */ new Date());
13230
13231
  return [a.firstAvailableDate, P];
13231
13232
  }), f = (P) => {
13232
13233
  t("date-changed", P), i.value = !1, o();
@@ -13274,6 +13275,7 @@ const wg = ["disabled"], fl = /* @__PURE__ */ Ce({
13274
13275
  position: "left",
13275
13276
  "keep-action-row": e.actionArea,
13276
13277
  "auto-range": e.autoRange,
13278
+ "month-picker": e.monthPicker,
13277
13279
  onOpen: p[2] || (p[2] = (g) => i.value = !0),
13278
13280
  onClosed: p[3] || (p[3] = (g) => i.value = !1)
13279
13281
  }, Bt({
@@ -13319,7 +13321,7 @@ const wg = ["disabled"], fl = /* @__PURE__ */ Ce({
13319
13321
  fn: fe(() => [
13320
13322
  G("div", xg, [
13321
13323
  G("p", _g, ge(a.quickFilterHeadline), 1),
13322
- (x(!0), B(Le, null, tt(e.quickFilterRanges, (g) => (x(), B("div", {
13324
+ (x(!0), B(Le, null, et(e.quickFilterRanges, (g) => (x(), B("div", {
13323
13325
  key: g.label
13324
13326
  }, [
13325
13327
  Fe(fl, {
@@ -13333,7 +13335,7 @@ const wg = ["disabled"], fl = /* @__PURE__ */ Ce({
13333
13335
  ]),
13334
13336
  key: "0"
13335
13337
  } : void 0
13336
- ]), 1032, ["modelValue", "class", "range", "multi-calendars", "locale", "enable-time-picker", "auto-apply", "close-on-auto-apply", "input-class-name", "placeholder", "format", "max-date", "year-range", "auto-position", "keep-action-row", "auto-range"])
13338
+ ]), 1032, ["modelValue", "class", "range", "multi-calendars", "locale", "enable-time-picker", "auto-apply", "close-on-auto-apply", "input-class-name", "placeholder", "format", "max-date", "year-range", "auto-position", "keep-action-row", "auto-range", "month-picker"])
13337
13339
  ]));
13338
13340
  }
13339
13341
  });
@@ -13501,9 +13503,7 @@ const $g = ["aria-label"], Mg = { key: 0 }, Eg = { class: "flex w-full items-cen
13501
13503
  const a = e, r = ie(), n = ie(a?.selectedDate), i = ie(!1), o = X(() => n.value ? a.inputLabel : a.placeholderText), l = (c) => {
13502
13504
  const d = new Date(c[0]).getDate(), f = new Date(c[0]).getMonth() + 1, y = new Date(c[0]).getFullYear(), P = new Date(c[1]).getDate(), p = new Date(c[1]).getMonth() + 1, g = new Date(c[1]).getFullYear();
13503
13505
  return `${d}.${f}.${y} - ${P}.${p}.${g}`;
13504
- };
13505
- X(() => [1948, et(/* @__PURE__ */ new Date())]);
13506
- const s = (c) => {
13506
+ }, s = (c) => {
13507
13507
  t("date-changed", c), i.value = !1;
13508
13508
  }, u = () => {
13509
13509
  n.value = a.selectedDate, i.value = !1;
@@ -13643,7 +13643,7 @@ const db = /* @__PURE__ */ Ce({
13643
13643
  }), Ng = { class: "z-10" }, fb = /* @__PURE__ */ Ce({
13644
13644
  __name: "UiFilterBadgeButton",
13645
13645
  props: {
13646
- color: { default: "#000" },
13646
+ color: { default: "#4D4D4D" },
13647
13647
  fill: { default: "#333" },
13648
13648
  iconIsFilled: { type: Boolean, default: !0 },
13649
13649
  label: null
@@ -13664,7 +13664,7 @@ const db = /* @__PURE__ */ Ce({
13664
13664
  style: Dt({ backgroundColor: e.fill })
13665
13665
  }, null, 4),
13666
13666
  G("p", {
13667
- class: "z-0 w-full text-sm font-medium leading-normal",
13667
+ class: "z-0 w-full cursor-pointer text-sm font-medium leading-normal",
13668
13668
  style: Dt({ color: e.color }),
13669
13669
  "data-testid": "labelText",
13670
13670
  onClick: r[0] || (r[0] = Lt((n) => t("click"), ["self"]))
@@ -13843,7 +13843,7 @@ const db = /* @__PURE__ */ Ce({
13843
13843
  }, null, 8, ["placeholder"])
13844
13844
  ])) : W("", !0),
13845
13845
  G("ul", Wg, [
13846
- (x(!0), B(Le, null, tt(e.options, (f, y) => (x(), Te(qo, {
13846
+ (x(!0), B(Le, null, et(e.options, (f, y) => (x(), Te(qo, {
13847
13847
  key: `menuOptions-${y}`,
13848
13848
  selected: f.selected,
13849
13849
  selectable: e.listVariant === "selectable",
@@ -13936,7 +13936,7 @@ const db = /* @__PURE__ */ Ce({
13936
13936
  }), (s, u) => (x(), B("div", {
13937
13937
  class: le(["flex gap-5", k(o)])
13938
13938
  }, [
13939
- (x(!0), B(Le, null, tt(r.value, (c) => (x(), B("span", {
13939
+ (x(!0), B(Le, null, et(r.value, (c) => (x(), B("span", {
13940
13940
  key: c.label
13941
13941
  }, [
13942
13942
  G("label", Gg, [
@@ -15213,7 +15213,7 @@ const f1 = { class: "pb-1 text-sm font-semibold" }, p1 = { class: "text-sm" }, _
15213
15213
  "data-testid": "structuredTooltip",
15214
15214
  class: le(["border-1 my-1 w-72 rounded-2xl border-gray-300 bg-white text-xs leading-5 shadow-lg", { hidden: !a.value }])
15215
15215
  }, [
15216
- (x(!0), B(Le, null, tt(e.structuredInfo, ({ title: l, description: s }, u) => (x(), B("li", {
15216
+ (x(!0), B(Le, null, et(e.structuredInfo, ({ title: l, description: s }, u) => (x(), B("li", {
15217
15217
  key: `info-${u}`,
15218
15218
  class: le([
15219
15219
  "mx-4 py-3 text-left",
@@ -15281,7 +15281,7 @@ const f1 = { class: "pb-1 text-sm font-semibold" }, p1 = { class: "text-sm" }, _
15281
15281
  G("label", h1, ge(e.label), 1),
15282
15282
  J(P.$slots, "tooltip")
15283
15283
  ])) : W("", !0),
15284
- (x(!0), B(Le, null, tt(r.value, (g, T) => (x(), B("div", {
15284
+ (x(!0), B(Le, null, et(r.value, (g, T) => (x(), B("div", {
15285
15285
  key: T,
15286
15286
  class: le(k(y))
15287
15287
  }, [
@@ -16555,7 +16555,7 @@ const jn = /* @__PURE__ */ Mu(X1), Z1 = { class: "flex" }, J1 = ["id", "aria-che
16555
16555
  return o.contrast(jn("white")) >= l ? "text-white" : "text-gray-800";
16556
16556
  });
16557
16557
  return (o, l) => (x(), B("div", Z1, [
16558
- (x(!0), B(Le, null, tt(k(Fr), (s, u) => (x(), B("div", {
16558
+ (x(!0), B(Le, null, et(k(Fr), (s, u) => (x(), B("div", {
16559
16559
  id: `color-${s}`,
16560
16560
  key: `ui-cp-${u}`,
16561
16561
  class: "mr-3 flex h-4 w-4 rotate-45 cursor-pointer items-center justify-center",