bt-core-app 1.4.182 → 1.4.184

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.
@@ -1,7 +1,7 @@
1
1
  var Wy = Object.defineProperty;
2
2
  var Uy = (e, t, n) => t in e ? Wy(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _e = (e, t, n) => (Uy(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { ref as U, shallowRef as Ve, computed as k, toValue as st, watch as De, onScopeDispose as fn, effectScope as jo, Fragment as xe, reactive as Fn, watchEffect as An, toRefs as Ko, capitalize as Hl, isVNode as qy, Comment as Gy, unref as M, warn as ts, provide as rn, inject as $e, defineComponent as tt, camelize as mf, h as er, getCurrentInstance as Zy, toRaw as Dn, createVNode as S, mergeProps as ge, onBeforeUnmount as In, readonly as Jo, onDeactivated as jy, onActivated as Ky, nextTick as mt, TransitionGroup as Xo, Transition as pn, isRef as ja, toRef as Pe, onBeforeMount as vf, withDirectives as tn, resolveDirective as tr, vShow as fa, onMounted as Dt, onUpdated as Jy, Text as Xy, resolveDynamicComponent as Ol, markRaw as Qy, Teleport as hf, cloneVNode as eg, createTextVNode as Je, onBeforeUpdate as yf, vModelText as tg, resolveComponent as Yr, openBlock as H, createBlock as se, withCtx as K, renderSlot as de, createCommentVNode as re, createElementBlock as ie, renderList as et, withKeys as Ze, toDisplayString as ze, normalizeStyle as mn, withModifiers as wt, createElementVNode as Ye, normalizeClass as lt, useSlots as Sr, onUnmounted as ns, createSlots as hn, normalizeProps as Vt, guardReactiveProps as en, render as dc, getCurrentScope as ng } from "vue";
4
+ import { ref as U, shallowRef as Ve, computed as k, toValue as st, watch as De, onMounted as At, onScopeDispose as fn, effectScope as jo, Fragment as xe, reactive as Fn, watchEffect as An, toRefs as Ko, capitalize as Hl, isVNode as qy, Comment as Gy, unref as M, warn as ts, provide as rn, inject as $e, defineComponent as tt, camelize as mf, h as er, getCurrentInstance as Zy, toRaw as Dn, createVNode as S, mergeProps as ge, onBeforeUnmount as In, readonly as Jo, onDeactivated as jy, onActivated as Ky, nextTick as mt, TransitionGroup as Xo, Transition as pn, isRef as ja, toRef as Pe, onBeforeMount as vf, withDirectives as tn, resolveDirective as tr, vShow as fa, onUpdated as Jy, Text as Xy, resolveDynamicComponent as Ol, markRaw as Qy, Teleport as hf, cloneVNode as eg, createTextVNode as Je, onBeforeUpdate as yf, vModelText as tg, resolveComponent as Yr, openBlock as H, createBlock as se, withCtx as K, renderSlot as de, createCommentVNode as re, createElementBlock as ie, renderList as et, withKeys as Ze, toDisplayString as ze, normalizeStyle as mn, withModifiers as wt, createElementVNode as Ye, normalizeClass as lt, useSlots as Sr, onUnmounted as ns, createSlots as hn, normalizeProps as Vt, guardReactiveProps as en, render as dc, getCurrentScope as ng } from "vue";
5
5
  import { watchArray as gf, useStorage as ag, useEventListener as yn, toValue as ra, useParentElement as rg, useResizeObserver as lg, useArrayUnique as ig, useArrayDifference as fc, watchDebounced as sg, useFocus as og, tryOnMounted as ug } from "@vueuse/core";
6
6
  import { defineStore as bf } from "pinia";
7
7
  import { useRouter as as, useRoute as Qo } from "vue-router";
@@ -8226,7 +8226,7 @@ function B0(e, t = {}) {
8226
8226
  if (g.value)
8227
8227
  return;
8228
8228
  const Y = ra(e);
8229
- Y && (A(Y, E ?? N0), P(q), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
8229
+ Y && (console.log("adding handles"), console.log(Y), A(Y, E ?? N0), P(q), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
8230
8230
  }
8231
8231
  function N(E) {
8232
8232
  if (!g.value)
@@ -8251,7 +8251,9 @@ function R0(e) {
8251
8251
  function f(h) {
8252
8252
  d(), h == "page" ? s(h) : h == "blade" ? u(["l", "r"], h) : h == "freestyle" ? (s(), u(void 0, h), m()) : h == "inline" && s();
8253
8253
  }
8254
- return f(i.value), De(i, (h) => f(h)), {
8254
+ return De(i, (h) => f(h)), At(() => {
8255
+ f(i.value);
8256
+ }), {
8255
8257
  isMobile: r,
8256
8258
  variant: i,
8257
8259
  bladeData: n
@@ -12190,7 +12192,7 @@ const lp = [null, "prominent", "default", "comfortable", "compact"], ip = Se({
12190
12192
  });
12191
12193
  function sv() {
12192
12194
  const e = Ve(!1);
12193
- return Dt(() => {
12195
+ return At(() => {
12194
12196
  window.requestAnimationFrame(() => {
12195
12197
  e.value = !0;
12196
12198
  });
@@ -12379,7 +12381,7 @@ function xu(e, t) {
12379
12381
  const h = a.find((c) => !c.disabled);
12380
12382
  h && e.mandatory === "force" && !r.value.length && (r.value = [h.id]);
12381
12383
  }
12382
- Dt(() => {
12384
+ At(() => {
12383
12385
  u();
12384
12386
  }), In(() => {
12385
12387
  n = !0;
@@ -14145,7 +14147,7 @@ function Hp(e) {
14145
14147
  });
14146
14148
  }), In(() => {
14147
14149
  l == null || l.unregister(w.value);
14148
- }), Dt(async () => {
14150
+ }), At(async () => {
14149
14151
  h.value.lazy || await T(!0), l == null || l.update(w.value, c.value, f.value);
14150
14152
  }), Gn(() => h.value.input, () => {
14151
14153
  De(r, () => {
@@ -16822,7 +16824,7 @@ function ES() {
16822
16824
  } = Zl();
16823
16825
  if (e) {
16824
16826
  const t = Ve(!1);
16825
- return Dt(() => {
16827
+ return At(() => {
16826
16828
  t.value = !0;
16827
16829
  }), t;
16828
16830
  } else
@@ -18080,7 +18082,7 @@ const XS = Se({
18080
18082
  passive: !0
18081
18083
  }), (x = l.value) == null || x[g]("scrollend", u));
18082
18084
  }
18083
- Dt(() => {
18085
+ At(() => {
18084
18086
  l.value = zm(a.vnode.el, !0), o(!0);
18085
18087
  }), fn(o);
18086
18088
  }), qe(() => {
@@ -19846,7 +19848,7 @@ function Ek(e) {
19846
19848
  top: a.value.top
19847
19849
  }];
19848
19850
  });
19849
- Dt(() => {
19851
+ At(() => {
19850
19852
  De(n, (d) => {
19851
19853
  d ? window.addEventListener("scroll", u, {
19852
19854
  passive: !0
@@ -19944,7 +19946,7 @@ function Nk(e) {
19944
19946
  touchless: l,
19945
19947
  position: i
19946
19948
  } = e;
19947
- Dt(() => {
19949
+ At(() => {
19948
19950
  window.addEventListener("touchstart", x, {
19949
19951
  passive: !0
19950
19952
  }), window.addEventListener("touchmove", C, {
@@ -20481,7 +20483,7 @@ const Bk = ["start", "end", "left", "right", "top", "bottom"], Rk = Se({
20481
20483
  v.value = Math.floor((Y - F) / N), o.value = Ge(Y);
20482
20484
  });
20483
20485
  }
20484
- Dt(I), De(l, I), De(() => e.rows, I), De(() => e.maxRows, I), De(() => e.density, I);
20486
+ At(I), De(l, I), De(() => e.rows, I), De(() => e.maxRows, I), De(() => e.density, I);
20485
20487
  let D;
20486
20488
  return De(b, (L) => {
20487
20489
  L ? (D = new ResizeObserver(I), D.observe(b.value)) : D == null || D.disconnect();
@@ -20939,7 +20941,7 @@ function Ou(e, t, n) {
20939
20941
  Gt({ deepRefresh: !0 });
20940
20942
  }), gf([P, () => e.items], () => {
20941
20943
  ln();
20942
- }), Dt(async () => {
20944
+ }), At(async () => {
20943
20945
  var ce;
20944
20946
  e.eager == !0 && await Gt({ deepRefresh: ((ce = i == null ? void 0 : i.params) == null ? void 0 : ce.refresh) == "true" });
20945
20947
  }), {
@@ -21228,7 +21230,6 @@ const Zk = {
21228
21230
  startShowingInactive: { type: Boolean },
21229
21231
  storeMode: {},
21230
21232
  storageMode: {},
21231
- useInterEvents: { type: Boolean },
21232
21233
  useServerPagination: { type: Boolean, default: !0 },
21233
21234
  useBladeSrc: { type: Boolean },
21234
21235
  useRouteSrc: { type: Boolean },
@@ -21268,13 +21269,13 @@ const Zk = {
21268
21269
  n("update:selected", v), A.value = [];
21269
21270
  else {
21270
21271
  let p = v;
21271
- a.returnIndex ? (p = v, console.log(p)) : p = v.map((I) => l(m.filteredItems.value[I], a.itemValue)), a.selectSingle ? (p = sn(p) ? p[0] : void 0, A.value = p != null ? [p] : []) : A.value = p, a.returnCSV && p != null && (p = p.toString()), n("update:selected", p), A.value = p;
21272
+ a.returnIndex ? p = v : p = v.map((I) => l(m.filteredItems.value[I], a.itemValue)), a.selectSingle ? (p = sn(p) ? p[0] : void 0, A.value = p != null ? [p] : []) : A.value = p, a.returnCSV && p != null && (p = p.toString()), n("update:selected", p), A.value = p;
21272
21273
  }
21273
21274
  }
21274
21275
  });
21275
21276
  return De(m.showSearch, () => {
21276
21277
  f.value = !0;
21277
- }), Dt(() => {
21278
+ }), At(() => {
21278
21279
  x.value && (f.value = !0);
21279
21280
  }), (v, p) => {
21280
21281
  const I = Yr("bt-header-option"), D = Yr("bt-blade");
@@ -21818,7 +21819,7 @@ const Zk = {
21818
21819
  for (const [a, r] of t)
21819
21820
  n[a] = r;
21820
21821
  return n;
21821
- }, wh = /* @__PURE__ */ Qk(Xk, [["__scopeId", "data-v-2759f678"]]);
21822
+ }, wh = /* @__PURE__ */ Qk(Xk, [["__scopeId", "data-v-0b355030"]]);
21822
21823
  function Oe(e) {
21823
21824
  const t = Object.prototype.toString.call(e);
21824
21825
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
@@ -24706,7 +24707,7 @@ function Nh(e, t) {
24706
24707
  const i = aC(l);
24707
24708
  return n.setMonth(t, Math.min(r, i)), n;
24708
24709
  }
24709
- function At(e, t) {
24710
+ function Dt(e, t) {
24710
24711
  let n = Oe(e);
24711
24712
  return isNaN(+n) ? ht(e, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = Nh(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
24712
24713
  }
@@ -25011,7 +25012,7 @@ function ox(e, t) {
25011
25012
  }
25012
25013
  const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t}"]`), Wh = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), ac = (e) => ha(e, "dd-MM-yyyy"), Qs = (e) => Array.isArray(e), es = (e, t) => t.get(ac(e)), cx = (e, t) => e ? t ? t instanceof Map ? !!es(e, t) : t(ve(e)) : !1 : !0, tf = (e, t, n, a, r, l) => {
25013
25014
  const i = Uo(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: l });
25014
- return xl(i) && Th(i) ? a || r ? i : At(i, {
25015
+ return xl(i) && Th(i) ? a || r ? i : Dt(i, {
25015
25016
  hours: +n.hours,
25016
25017
  minutes: +(n == null ? void 0 : n.minutes),
25017
25018
  seconds: +(n == null ? void 0 : n.seconds),
@@ -25050,7 +25051,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25050
25051
  let r = e ? ve(e) : ve();
25051
25052
  return (t || t === 0) && (r = Bh(r, +t)), (n || n === 0) && (r = Rh(r, +n)), (a || a === 0) && (r = ju(r, +a)), Zu(r, 0);
25052
25053
  }, Rt = (e, t) => !e || !t ? !1 : Rl(_n(e), _n(t)), ut = (e, t) => !e || !t ? !1 : Fr(_n(e), _n(t)), Wt = (e, t) => !e || !t ? !1 : Bl(_n(e), _n(t)), bs = (e, t, n) => e != null && e[0] && e != null && e[1] ? Wt(n, e[0]) && Rt(n, e[1]) : e != null && e[0] && t ? Wt(n, e[0]) && Rt(n, t) || Rt(n, e[0]) && Wt(n, t) : !1, Un = (e) => {
25053
- const t = At(new Date(e), { date: 1 });
25054
+ const t = Dt(new Date(e), { date: 1 });
25054
25055
  return _n(t);
25055
25056
  }, eo = (e, t, n) => t && (n || n === 0) ? Object.fromEntries(
25056
25057
  ["hours", "minutes", "seconds"].map((a) => a === t ? [a, n] : [a, isNaN(+e[a]) ? void 0 : +e[a]])
@@ -25094,7 +25095,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25094
25095
  seconds: t ? jr(ve()) : 0
25095
25096
  };
25096
25097
  return Object.assign(n, e);
25097
- }, qa = (e, t, n) => [At(ve(e), { date: 1 }), At(ve(), { month: t, year: n, date: 1 })], Aa = (e, t, n) => {
25098
+ }, qa = (e, t, n) => [Dt(ve(e), { date: 1 }), Dt(ve(), { month: t, year: n, date: 1 })], Aa = (e, t, n) => {
25098
25099
  let a = e ? ve(e) : ve();
25099
25100
  return (t || t === 0) && (a = Nh(a, t)), n && (a = da(a, n)), a;
25100
25101
  }, jh = (e, t, n, a, r) => {
@@ -25115,7 +25116,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25115
25116
  if (t)
25116
25117
  return e();
25117
25118
  throw new Error(nc.prop("range"));
25118
- }, qo = (e) => Array.isArray(e) ? xl(e[0]) && (e[1] ? xl(e[1]) : !0) : e ? xl(e) : !1, yx = (e, t) => At(t ?? ve(), {
25119
+ }, qo = (e) => Array.isArray(e) ? xl(e[0]) && (e[1] ? xl(e[1]) : !0) : e ? xl(e) : !1, yx = (e, t) => Dt(t ?? ve(), {
25119
25120
  hours: +e.hours || 0,
25120
25121
  minutes: +e.minutes || 0,
25121
25122
  seconds: +e.seconds || 0
@@ -25124,7 +25125,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25124
25125
  return !0;
25125
25126
  if (a) {
25126
25127
  const r = n === "max" ? Rl(e, t) : Bl(e, t), l = { seconds: 0, milliseconds: 0 };
25127
- return r || Fr(At(e, l), At(t, l));
25128
+ return r || Fr(Dt(e, l), Dt(t, l));
25128
25129
  }
25129
25130
  return n === "max" ? e.getTime() <= t.getTime() : e.getTime() >= t.getTime();
25130
25131
  }, no = (e, t, n) => e ? yx(e, t) : ve(n ?? t), nf = (e, t, n, a, r) => {
@@ -25134,7 +25135,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25134
25135
  }
25135
25136
  const l = no(e, a, t);
25136
25137
  return to(a, l, n, !!t) && r;
25137
- }, ao = (e) => At(ve(), br(e)), gx = (e, t) => e instanceof Map ? Array.from(e.values()).filter((n) => nt(ve(n)) === t).map((n) => ot(n)) : [], Jh = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), rc = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), pl = Fn({
25138
+ }, ao = (e) => Dt(ve(), br(e)), gx = (e, t) => e instanceof Map ? Array.from(e.values()).filter((n) => nt(ve(n)) === t).map((n) => ot(n)) : [], Jh = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), rc = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), pl = Fn({
25138
25139
  menuFocused: !1,
25139
25140
  shiftKeyInMenu: !1
25140
25141
  }), Xh = () => {
@@ -25460,7 +25461,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25460
25461
  Za(null, +V[1].hours, +V[1].minutes, V[1].seconds)
25461
25462
  )
25462
25463
  ] : w(V, Za(null, V.hours, V.minutes, V.seconds)), C = (V) => {
25463
- const j = At(ve(), { date: 1 });
25464
+ const j = Dt(ve(), { date: 1 });
25464
25465
  return Array.isArray(V) ? s.value.enabled ? V.map((ae) => w(ae, Aa(j, +ae.month, +ae.year))) : ki(
25465
25466
  () => [
25466
25467
  w(V[0], Aa(j, +V[0].month, +V[0].year)),
@@ -25543,7 +25544,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25543
25544
  let h = m;
25544
25545
  return n.value.years.includes(nt(h)) ? (h = f ? zu(m, 1) : Fh(m, 1), i(h, f)) : h;
25545
25546
  }, s = (m, f = !1) => {
25546
- const h = At(ve(), { month: e.month, year: e.year });
25547
+ const h = Dt(ve(), { month: e.month, year: e.year });
25547
25548
  let c = m ? Kn(h, 1) : Kr(h, 1);
25548
25549
  e.disableYearSelect && (c = da(c, e.year));
25549
25550
  let o = ot(c), y = nt(c);
@@ -25551,7 +25552,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
25551
25552
  }, u = (m, f, h) => {
25552
25553
  t("update-month-year", { month: m, year: f, fromNav: h });
25553
25554
  }, d = k(() => (m) => jh(
25554
- At(ve(), { month: e.month, year: e.year }),
25555
+ Dt(ve(), { month: e.month, year: e.year }),
25555
25556
  a.value.maxDate,
25556
25557
  a.value.minDate,
25557
25558
  e.preventMinMaxNavigation,
@@ -26361,7 +26362,7 @@ const Rx = ({
26361
26362
  defaultedMultiDates: m,
26362
26363
  getDefaultPattern: f
26363
26364
  } = $t(a), { isTimeValid: h, isMonthValid: c } = lr(a), { buildMatrix: o } = rr(), y = U(null), g = U(null), w = U(!1), x = U({}), C = U(null), T = U(null);
26364
- Dt(() => {
26365
+ At(() => {
26365
26366
  a.arrowNavigation && o([Qt(y), Qt(g)], "actionRow"), A(), window.addEventListener("resize", A);
26366
26367
  }), ns(() => {
26367
26368
  window.removeEventListener("resize", A);
@@ -26495,7 +26496,7 @@ const Rx = ({
26495
26496
  ), { hideNavigationButtons: f } = ws(), h = U(!1), c = U(null), o = U(null), y = U([]), g = U(), w = U(null), x = U(0), C = U(null);
26496
26497
  yf(() => {
26497
26498
  c.value = null;
26498
- }), Dt(() => {
26499
+ }), At(() => {
26499
26500
  mt().then(() => L()), s.noOverlayFocus || A(), T(!0);
26500
26501
  }), ns(() => T(!1));
26501
26502
  const T = (z) => {
@@ -26693,7 +26694,7 @@ const Rx = ({
26693
26694
  emits: ["activate", "set-ref"],
26694
26695
  setup(e, { emit: t }) {
26695
26696
  const n = t, a = U(null);
26696
- return Dt(() => n("set-ref", a)), (r, l) => (H(), ie("button", {
26697
+ return At(() => n("set-ref", a)), (r, l) => (H(), ie("button", {
26697
26698
  ref_key: "elRef",
26698
26699
  ref: a,
26699
26700
  type: "button",
@@ -26848,7 +26849,7 @@ const Rx = ({
26848
26849
  emit: d
26849
26850
  }) => {
26850
26851
  const m = k(() => tc(l.yearRange, l.locale, l.reverseYears)), f = U([!1]), h = k(() => (b, v) => {
26851
- const p = At(Un(/* @__PURE__ */ new Date()), {
26852
+ const p = Dt(Un(/* @__PURE__ */ new Date()), {
26852
26853
  month: u.value(b),
26853
26854
  year: s.value(b)
26854
26855
  });
@@ -26864,13 +26865,13 @@ const Rx = ({
26864
26865
  if (b === 0)
26865
26866
  a.value[b] = a.value[0];
26866
26867
  else {
26867
- const v = At(ve(), a.value[b - 1]);
26868
+ const v = Dt(ve(), a.value[b - 1]);
26868
26869
  a.value[b] = { month: ot(v), year: nt(zu(v, 1)) };
26869
26870
  }
26870
26871
  }, o = (b) => {
26871
26872
  if (!b)
26872
26873
  return c();
26873
- const v = At(ve(), a.value[b]);
26874
+ const v = Dt(ve(), a.value[b]);
26874
26875
  return a.value[0].year = nt(Fh(v, e.value.count - 1)), c();
26875
26876
  }, y = (b) => l.focusStartDate ? b[0] : b[1] ? b[1] : b[0], g = () => {
26876
26877
  if (r.value) {
@@ -26878,7 +26879,7 @@ const Rx = ({
26878
26879
  a.value[0] = { month: ot(b), year: nt(b) };
26879
26880
  }
26880
26881
  };
26881
- Dt(() => {
26882
+ At(() => {
26882
26883
  g(), e.value.count && c();
26883
26884
  });
26884
26885
  const w = (b, v) => {
@@ -26942,7 +26943,7 @@ const Rx = ({
26942
26943
  props: e,
26943
26944
  emit: t
26944
26945
  });
26945
- Dt(() => {
26946
+ At(() => {
26946
26947
  e.startDate && (h.value && e.focusStartDate || !h.value) && C(nt(ve(e.startDate)), 0);
26947
26948
  });
26948
26949
  const D = (_) => _ ? { month: ot(_), year: nt(_) } : { month: null, year: null }, L = () => h.value ? Array.isArray(h.value) ? h.value.map((_) => D(_)) : D(h.value) : D(), P = (_, V) => {
@@ -27039,7 +27040,7 @@ const Rx = ({
27039
27040
  ],
27040
27041
  setup(e, { expose: t, emit: n }) {
27041
27042
  const a = n, r = Sr(), l = Tn(r, "yearMode"), i = e;
27042
- Dt(() => {
27043
+ At(() => {
27043
27044
  i.shadow || a("mount", null);
27044
27045
  });
27045
27046
  const {
@@ -27121,7 +27122,7 @@ const Rx = ({
27121
27122
  }
27122
27123
  }), lT = (e, t) => {
27123
27124
  const { modelValue: n } = ri(e, t), a = U(null), { defaultedHighlight: r, defaultedMultiDates: l, defaultedFilters: i, defaultedRange: s, propDates: u } = $t(e), d = U();
27124
- Dt(() => {
27125
+ At(() => {
27125
27126
  e.startDate && (n.value && e.focusStartDate || !n.value) && (d.value = nt(ve(e.startDate)));
27126
27127
  });
27127
27128
  const m = (o) => Array.isArray(n.value) ? n.value.some((y) => nt(y) === o) : n.value ? nt(n.value) === o : !1, f = (o) => s.value.enabled && Array.isArray(n.value) ? bs(n.value, a.value, c(o)) : !1, h = k(() => Jr(tc(e.yearRange, e.locale, e.reverseYears), (o) => {
@@ -27234,10 +27235,10 @@ const Rx = ({
27234
27235
  minutes: !1,
27235
27236
  seconds: !1
27236
27237
  }), y = U("AM"), g = U(null), w = U([]);
27237
- Dt(() => {
27238
+ At(() => {
27238
27239
  a("mounted");
27239
27240
  });
27240
- const x = (ne) => At(/* @__PURE__ */ new Date(), {
27241
+ const x = (ne) => Dt(/* @__PURE__ */ new Date(), {
27241
27242
  hours: ne.hours,
27242
27243
  minutes: ne.minutes,
27243
27244
  seconds: r.enableSeconds ? ne.seconds : 0,
@@ -27250,7 +27251,7 @@ const Rx = ({
27250
27251
  return !r.validateTime(ne, W);
27251
27252
  }
27252
27253
  return !1;
27253
- }, v = k(() => (ne) => !J(+r[ne] + +r[`${ne}Increment`], ne) || b(ne, !0)), p = k(() => (ne) => !J(+r[ne] - +r[`${ne}Increment`], ne) || b(ne, !1)), I = (ne, oe) => ph(At(ve(), ne), oe), D = (ne, oe) => tx(At(ve(), ne), oe), L = k(
27254
+ }, v = k(() => (ne) => !J(+r[ne] + +r[`${ne}Increment`], ne) || b(ne, !0)), p = k(() => (ne) => !J(+r[ne] - +r[`${ne}Increment`], ne) || b(ne, !1)), I = (ne, oe) => ph(Dt(ve(), ne), oe), D = (ne, oe) => tx(Dt(ve(), ne), oe), L = k(
27254
27255
  () => ({
27255
27256
  dp__time_col: !0,
27256
27257
  dp__time_col_block: !r.timePickerInline,
@@ -27502,7 +27503,7 @@ const Rx = ({
27502
27503
  ],
27503
27504
  setup(e, { expose: t, emit: n }) {
27504
27505
  const a = n, r = e, { buildMatrix: l, setTimePicker: i } = rr(), s = Sr(), { defaultedTransitions: u, defaultedAriaLabels: d, defaultedTextInput: m, defaultedConfig: f, defaultedRange: h } = $t(r), { transitionName: c, showTransition: o } = ai(u), { hideNavigationButtons: y } = ws(), g = U(null), w = U(null), x = U([]), C = U(null);
27505
- Dt(() => {
27506
+ At(() => {
27506
27507
  a("mount"), !r.timePicker && r.arrowNavigation ? l([Qt(g.value)], "time") : i(!0, r.timePicker);
27507
27508
  });
27508
27509
  const T = k(() => h.value.enabled && r.modelAuto ? zh(r.internalModelValue) : !0), A = U(!1), b = (E) => ({
@@ -27726,10 +27727,10 @@ const Rx = ({
27726
27727
  if (e.startTime) {
27727
27728
  if (Array.isArray(e.startTime)) {
27728
27729
  const T = h(e.startTime[0]), A = h(e.startTime[1]);
27729
- return [At(ve(), T), At(ve(), A)];
27730
+ return [Dt(ve(), T), Dt(ve(), A)];
27730
27731
  }
27731
27732
  const C = h(e.startTime);
27732
- return At(ve(), C);
27733
+ return Dt(ve(), C);
27733
27734
  }
27734
27735
  return l.value.enabled ? [null, null] : null;
27735
27736
  }, o = () => {
@@ -27748,7 +27749,7 @@ const Rx = ({
27748
27749
  [C.seconds, T.seconds]
27749
27750
  ) : g(C.hours, C.minutes, C.seconds);
27750
27751
  };
27751
- Dt(() => {
27752
+ At(() => {
27752
27753
  if (!e.shadow)
27753
27754
  return d(r.value), n.value ? w() : o();
27754
27755
  });
@@ -27831,7 +27832,7 @@ const Rx = ({
27831
27832
  defaultedHighlight: m,
27832
27833
  propDates: f
27833
27834
  } = $t(r), { transitionName: h, showTransition: c } = ai(l), { buildMatrix: o } = rr(), { handleMonthYearChange: y, isDisabled: g, updateMonthYear: w } = Bx(r, a), { showLeftIcon: x, showRightIcon: C } = ws(), T = U(!1), A = U(!1), b = U([null, null, null, null]);
27834
- Dt(() => {
27835
+ At(() => {
27835
27836
  a("mount");
27836
27837
  });
27837
27838
  const v = (O) => ({
@@ -28085,7 +28086,7 @@ const Rx = ({
28085
28086
  left: "",
28086
28087
  transform: ""
28087
28088
  }), o = U([]), y = U(null), g = U(!0), w = U(""), x = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = U([]), T = U({ left: "50%" }), A = U(!1), b = k(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), v = k(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : ax(r.formatLocale, r.locale, +r.weekStart));
28088
- Dt(() => {
28089
+ At(() => {
28089
28090
  a("mount", { cmp: "calendar", refs: o }), s.value.noSwipe || y.value && (y.value.addEventListener("touchstart", J, { passive: !1 }), y.value.addEventListener("touchend", z, { passive: !1 }), y.value.addEventListener("touchmove", O, { passive: !1 })), r.monthChangeOnScroll && y.value && y.value.addEventListener("wheel", V, { passive: !1 });
28090
28091
  });
28091
28092
  const p = (oe) => oe ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", I = (oe, Ne) => {
@@ -28322,7 +28323,7 @@ const Rx = ({
28322
28323
  JSON.stringify(ee) !== JSON.stringify(me) && N();
28323
28324
  },
28324
28325
  { deep: !0 }
28325
- ), Dt(() => {
28326
+ ), At(() => {
28326
28327
  e.shadow || (i.value || (ae(), m.value && b(m.value)), N(!0), e.focusStartDate && e.startDate && ae());
28327
28328
  });
28328
28329
  const F = k(() => {
@@ -28338,7 +28339,7 @@ const Rx = ({
28338
28339
  }, E = () => Array.isArray(i.value) && f.value.enabled ? ot(i.value[0]) === ot(i.value[1] ?? i.value[0]) : !1, q = (ee, me = !1) => {
28339
28340
  if ((!d.value.count || !d.value.static || me) && L(0, ot(ee), nt(ee)), d.value.count && (!d.value.solo || !i.value || E()))
28340
28341
  for (let Ie = 1; Ie < d.value.count; Ie++) {
28341
- const Ue = At(ve(), { month: I.value(Ie - 1), year: D.value(Ie - 1) }), fe = ph(Ue, { months: 1 });
28342
+ const Ue = Dt(ve(), { month: I.value(Ie - 1), year: D.value(Ie - 1) }), fe = ph(Ue, { months: 1 });
28342
28343
  s.value[Ie] = { month: ot(fe), year: nt(fe) };
28343
28344
  }
28344
28345
  }, Y = (ee, me) => {
@@ -28369,15 +28370,15 @@ const Rx = ({
28369
28370
  const me = i.value;
28370
28371
  O(me, ee), d.value.count && d.value.solo && j();
28371
28372
  }, _ = (ee, me) => {
28372
- const Ie = At(ve(), { month: I.value(me), year: D.value(me) }), Ue = ee < 0 ? Kn(Ie, 1) : Kr(Ie, 1);
28373
+ const Ie = Dt(ve(), { month: I.value(me), year: D.value(me) }), Ue = ee < 0 ? Kn(Ie, 1) : Kr(Ie, 1);
28373
28374
  y(ot(Ue), nt(Ue), ee < 0, e.preventMinMaxNavigation) && (L(me, ot(Ue), nt(Ue)), t("update-month-year", { instance: me, month: ot(Ue), year: nt(Ue) }), d.value.count && !d.value.solo && V(me), n());
28374
28375
  }, V = (ee) => {
28375
28376
  for (let me = ee - 1; me >= 0; me--) {
28376
- const Ie = Kr(At(ve(), { month: I.value(me + 1), year: D.value(me + 1) }), 1);
28377
+ const Ie = Kr(Dt(ve(), { month: I.value(me + 1), year: D.value(me + 1) }), 1);
28377
28378
  L(me, ot(Ie), nt(Ie));
28378
28379
  }
28379
28380
  for (let me = ee + 1; me <= d.value.count - 1; me++) {
28380
- const Ie = Kn(At(ve(), { month: I.value(me - 1), year: D.value(me - 1) }), 1);
28381
+ const Ie = Kn(Dt(ve(), { month: I.value(me - 1), year: D.value(me - 1) }), 1);
28381
28382
  L(me, ot(Ie), nt(Ie));
28382
28383
  }
28383
28384
  }, j = () => {
@@ -28470,7 +28471,7 @@ const Rx = ({
28470
28471
  if (L(0, me, Ie), d.value.count > 0)
28471
28472
  for (let Ue = 1; Ue < d.value.count; Ue++) {
28472
28473
  const fe = mx(
28473
- At(ve(ee), { year: I.value(Ue - 1), month: D.value(Ue - 1) })
28474
+ Dt(ve(ee), { year: I.value(Ue - 1), month: D.value(Ue - 1) })
28474
28475
  );
28475
28476
  L(Ue, fe.month, fe.year);
28476
28477
  }
@@ -28768,7 +28769,7 @@ const Rx = ({
28768
28769
  }
28769
28770
  return !1;
28770
28771
  }, I = (N, E) => N.quarter === Ud(E) && N.year === nt(E), D = (N) => typeof l.value == "function" ? l.value({ quarter: Ud(N), year: nt(N) }) : !!l.value.quarters.find((E) => I(E, N)), L = k(() => (N) => {
28771
- const E = At(/* @__PURE__ */ new Date(), { year: f.value(N) });
28772
+ const E = Dt(/* @__PURE__ */ new Date(), { year: f.value(N) });
28772
28773
  return o2({
28773
28774
  start: Ah(E),
28774
28775
  end: u2(E)
@@ -28967,7 +28968,7 @@ const Rx = ({
28967
28968
  menuWrapRef: l.value
28968
28969
  };
28969
28970
  }), { setMenuFocused: s, setShiftKey: u, control: d } = Xh(), m = Sr(), { defaultedTextInput: f, defaultedInline: h, defaultedConfig: c } = $t(r), o = U(null), y = U(0), g = U(null), w = U(!1), x = U(null);
28970
- Dt(() => {
28971
+ At(() => {
28971
28972
  if (!r.shadow) {
28972
28973
  w.value = !0, C(), window.addEventListener("resize", C);
28973
28974
  const W = Qt(l);
@@ -29246,7 +29247,7 @@ const Rx = ({
29246
29247
  defaultedRange: D,
29247
29248
  defaultedMultiDates: L
29248
29249
  } = $t(r), { menuTransition: P, showTransition: F } = ai(b);
29249
- Dt(() => {
29250
+ At(() => {
29250
29251
  V(r.modelValue), mt().then(() => {
29251
29252
  if (!p.value.enabled) {
29252
29253
  const fe = z(c.value);
@@ -29887,7 +29888,7 @@ function oy(e, t) {
29887
29888
  I.value = B != null;
29888
29889
  }), De(() => e.refreshToggle, () => {
29889
29890
  J({ deepRefresh: !0 });
29890
- }), Dt(async () => {
29891
+ }), At(async () => {
29891
29892
  var B;
29892
29893
  e.eager == !0 && await J({ deepRefresh: ((B = d == null ? void 0 : d.params) == null ? void 0 : B.refresh) == "true" });
29893
29894
  }), {
@@ -29913,16 +29914,16 @@ function oy(e, t) {
29913
29914
  };
29914
29915
  }
29915
29916
  function KA(e) {
29916
- const t = [];
29917
+ const t = U([]);
29917
29918
  function n() {
29918
- t.every((r) => r.loaded) && e.onAllLoaded();
29919
+ t.value.every((r) => r.loaded) && e.onAllLoaded();
29919
29920
  }
29920
29921
  function a(r) {
29921
29922
  const l = {
29922
29923
  nav: r.nav ?? r.bladeName ?? "",
29923
29924
  loaded: !1
29924
29925
  };
29925
- if (t.push(l), r.onFinished == null)
29926
+ if (t.value.push(l), r.onFinished == null)
29926
29927
  r.onFinished = () => {
29927
29928
  l.loaded = !0, n();
29928
29929
  };
@@ -29935,6 +29936,7 @@ function KA(e) {
29935
29936
  return r;
29936
29937
  }
29937
29938
  return {
29939
+ loading: k(() => t.value.every((r) => r.loaded)),
29938
29940
  registerList: a
29939
29941
  };
29940
29942
  }
@@ -31688,7 +31690,6 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31688
31690
  startShowingInactive: { type: Boolean },
31689
31691
  storeMode: {},
31690
31692
  storageMode: {},
31691
- useInterEvents: { type: Boolean },
31692
31693
  useServerPagination: { type: Boolean },
31693
31694
  useBladeSrc: { type: Boolean },
31694
31695
  useRouteSrc: { type: Boolean },
@@ -32014,7 +32015,6 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
32014
32015
  startShowingInactive: { type: Boolean },
32015
32016
  storeMode: {},
32016
32017
  storageMode: {},
32017
- useInterEvents: { type: Boolean },
32018
32018
  useServerPagination: { type: Boolean },
32019
32019
  useBladeSrc: { type: Boolean },
32020
32020
  useRouteSrc: { type: Boolean },
package/dist/index.d.ts CHANGED
@@ -714,7 +714,6 @@ export declare interface ListProps {
714
714
  startShowingInactive?: boolean;
715
715
  storeMode?: StoreMode;
716
716
  storageMode?: StorageMode;
717
- useInterEvents?: boolean;
718
717
  useServerPagination?: boolean;
719
718
  useBladeSrc?: boolean;
720
719
  useRouteSrc?: boolean;
@@ -1310,7 +1309,7 @@ export declare interface UseItemOptions {
1310
1309
  * @param options
1311
1310
  */
1312
1311
  export declare function useList<T extends BaseIDModel>(props: ListProps, emit?: ListEvents, options?: UseListOptions): {
1313
- blades: Ref<BladeData[]>; /**when trying to delete in api */
1312
+ blades: Ref<BladeData[]>;
1314
1313
  bladeData: BladeData;
1315
1314
  closeBlade: (options?: CloseBladeOptions_2 | undefined) => void;
1316
1315
  updateBlade: (data: UpdateBladeData_2<GetOptions>) => void;
@@ -1423,6 +1422,7 @@ declare interface UseListOptions {
1423
1422
  }
1424
1423
 
1425
1424
  export declare function useLists(options: UseListsOptions): {
1425
+ loading: ComputedRef<boolean>;
1426
1426
  registerList: (listOptions: ListProps) => ListProps;
1427
1427
  };
1428
1428