bt-core-app 1.4.650 → 1.4.651

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 (2) hide show
  1. package/dist/bt-core-app.js +67 -67
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  var L0 = Object.defineProperty;
2
2
  var E0 = (e, t, a) => t in e ? L0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var He = (e, t, a) => (E0(e, typeof t != "symbol" ? t + "" : t, a), a);
4
- import { ref as H, shallowRef as Be, computed as A, toValue as tt, toRaw as Ot, watch as Ce, onMounted as kt, h as al, Fragment as Se, reactive as ja, watchEffect as vn, toRefs as ud, capitalize as ho, isVNode as I0, Comment as V0, unref as T, warn as go, getCurrentInstance as P0, provide as ra, inject as qe, defineComponent as je, camelize as bh, createVNode as p, mergeProps as we, toRef as $e, isRef as gl, Text as $0, TransitionGroup as cd, Transition as ln, onBeforeMount as yo, nextTick as ct, onBeforeUnmount as Ha, withDirectives as jt, resolveDirective as ol, vShow as Sn, openBlock as $, createBlock as X, normalizeProps as Ft, guardReactiveProps as aa, withCtx as B, createElementVNode as ze, onScopeDispose as Ma, effectScope as dd, onUpdated as wh, readonly as fd, resolveDynamicComponent as po, markRaw as B0, resolveComponent as Pa, renderSlot as ge, createCommentVNode as K, normalizeStyle as Ct, createElementBlock as re, createTextVNode as Fe, onDeactivated as kh, onActivated as N0, Teleport as xh, onBeforeUpdate as Sh, cloneVNode as F0, renderList as Oe, withKeys as eo, toDisplayString as Ne, normalizeClass as Ge, createSlots as va, withModifiers as da, getTransitionRawChildren as R0, onUnmounted as wl, useSlots as Sr, render as Of, getCurrentScope as z0, vModelText as H0 } from "vue";
4
+ import { ref as H, shallowRef as Be, computed as A, toValue as tt, toRaw as Ot, watch as Ce, onMounted as kt, h as al, Fragment as Se, reactive as ja, watchEffect as vn, toRefs as ud, capitalize as ho, isVNode as I0, Comment as V0, unref as T, warn as go, getCurrentInstance as P0, provide as ra, inject as qe, defineComponent as je, camelize as bh, createVNode as p, mergeProps as we, toRef as $e, isRef as gl, Text as $0, TransitionGroup as cd, Transition as ln, onBeforeMount as yo, nextTick as ut, onBeforeUnmount as Ha, withDirectives as jt, resolveDirective as ol, vShow as Sn, openBlock as $, createBlock as X, normalizeProps as Ft, guardReactiveProps as aa, withCtx as B, createElementVNode as ze, onScopeDispose as Ma, effectScope as dd, onUpdated as wh, readonly as fd, resolveDynamicComponent as po, markRaw as B0, resolveComponent as Pa, renderSlot as ge, createCommentVNode as K, normalizeStyle as Ct, createElementBlock as re, createTextVNode as Fe, onDeactivated as kh, onActivated as N0, Teleport as xh, onBeforeUpdate as Sh, cloneVNode as F0, renderList as Oe, withKeys as eo, toDisplayString as Ne, normalizeClass as Ge, createSlots as va, withModifiers as da, getTransitionRawChildren as R0, onUnmounted as wl, useSlots as Sr, render as Of, getCurrentScope as z0, vModelText as H0 } from "vue";
5
5
  import { watchArray as cc, useStorage as Ch, useEventListener as ka, toValue as Gn, useParentElement as W0, useResizeObserver as U0, useFileDialog as Th, useArrayUnique as O0, useArrayDifference as Yf, watchDebounced as Mh, tryOnMounted as Y0 } from "@vueuse/core";
6
6
  import { defineStore as md, getActivePinia as j0 } from "pinia";
7
7
  import { useRouter as bo, useRoute as wo } from "vue-router";
@@ -6636,7 +6636,7 @@ var Eg = { exports: {} };
6636
6636
  });
6637
6637
  return y(se, ne), se;
6638
6638
  }
6639
- function ut(W, ne, Y, se) {
6639
+ function ct(W, ne, Y, se) {
6640
6640
  var fe = this;
6641
6641
  W = m(W);
6642
6642
  var oe = new f(function(xe, _e) {
@@ -6653,7 +6653,7 @@ var Eg = { exports: {} };
6653
6653
  }, function(dt) {
6654
6654
  if (dt.code === dt.QUOTA_ERR) {
6655
6655
  if (se > 0) {
6656
- xe(ut.apply(fe, [W, Ee, Y, se - 1]));
6656
+ xe(ct.apply(fe, [W, Ee, Y, se - 1]));
6657
6657
  return;
6658
6658
  }
6659
6659
  _e(dt);
@@ -6665,7 +6665,7 @@ var Eg = { exports: {} };
6665
6665
  return y(oe, Y), oe;
6666
6666
  }
6667
6667
  function Bt(W, ne, Y) {
6668
- return ut.apply(this, [W, ne, Y, 1]);
6668
+ return ct.apply(this, [W, ne, Y, 1]);
6669
6669
  }
6670
6670
  function rn(W, ne) {
6671
6671
  var Y = this;
@@ -12381,8 +12381,8 @@ function si(e, t, a) {
12381
12381
  }), le = A(() => e.errorMsg ?? N.value), ae = H(), q = A(() => ae.value ?? e.loadingMsg ?? O.value), ie = A(() => q.value != null), De = Be(!1), ce = Be(e.startShowingSearch == !0), ee = H(0), U = A(() => {
12382
12382
  let G, de = [];
12383
12383
  c.value.forEach((nt) => {
12384
- const ut = h.value[nt], Bt = m.find((rn) => rn.name == ut);
12385
- Bt != null ? G = G != null ? `${G}ANDALSO${Bt.filterFunction()}` : Bt.filterFunction() : de.push(ut);
12384
+ const ct = h.value[nt], Bt = m.find((rn) => rn.name == ct);
12385
+ Bt != null ? G = G != null ? `${G}ANDALSO${Bt.filterFunction()}` : Bt.filterFunction() : de.push(ct);
12386
12386
  });
12387
12387
  const me = {};
12388
12388
  return at(de) && (me.filterBy = de.toString()), G != null && (me.query = G), me;
@@ -12399,13 +12399,13 @@ function si(e, t, a) {
12399
12399
  }), ke = A(() => P.value.filter((G) => !G.hide)), Pe = A(() => {
12400
12400
  let G = new Array();
12401
12401
  return ke.value.filter((me) => me.sublevel != null).forEach((me) => {
12402
- let nt = G.find((ut) => ut.position == me.sublevel);
12402
+ let nt = G.find((ct) => ct.position == me.sublevel);
12403
12403
  nt == null ? G.push({ position: me.sublevel ?? 0, values: [me] }) : nt.values.push(me);
12404
12404
  }), G.sort(sn.firstBy((me) => me.position));
12405
12405
  }), et = A(() => {
12406
12406
  let G = new Array();
12407
12407
  return ke.value.filter((me) => me.level != null).forEach((me) => {
12408
- let nt = G.find((ut) => ut.position == me.level);
12408
+ let nt = G.find((ct) => ct.position == me.level);
12409
12409
  nt == null ? G.push({ position: me.level ?? 0, values: [me] }) : nt.values.push(me);
12410
12410
  }), G.sort(sn.firstBy((me) => me.position));
12411
12411
  }), ft = A(() => ke.value.filter((G) => G.nav != null && G.itemText != null || G.textFilter != null || G.display != null || G.bool != null));
@@ -12427,7 +12427,7 @@ function si(e, t, a) {
12427
12427
  } = { ...e };
12428
12428
  if (de == null)
12429
12429
  return;
12430
- const ut = (Bt, rn) => {
12430
+ const ct = (Bt, rn) => {
12431
12431
  if (!(Bt == null || !Array.isArray(Bt)))
12432
12432
  if (rn != null) {
12433
12433
  let Oa = Bt.findIndex((Ea) => r(Ea) == rn);
@@ -12437,13 +12437,13 @@ function si(e, t, a) {
12437
12437
  Oa == -1 && (Oa = Bt.findIndex((Ea) => Ea == G)), Oa > -1 && Bt.splice(Oa, 1);
12438
12438
  }
12439
12439
  };
12440
- e.localOnly == !0 || d == null ? v != "soft" ? (ut(D.value, de), ut(e.items, de)) : V.value || ut(I.value, de) : J({
12440
+ e.localOnly == !0 || d == null ? v != "soft" ? (ct(D.value, de), ct(e.items, de)) : V.value || ct(I.value, de) : J({
12441
12441
  additionalUrl: me,
12442
12442
  data: G,
12443
12443
  nav: d,
12444
12444
  onCanDeleteAsync: e.onCanDeleteAsync,
12445
12445
  onDeleteAsync: nt,
12446
- onDeleteSuccessAsync: async (Bt) => (v != "soft" ? (ut(D.value, de), ut(e.items, de)) : (ue(G, Bt), V.value || ut(I.value, de)), _a(), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(G) : Promise.resolve(void 0)),
12446
+ onDeleteSuccessAsync: async (Bt) => (v != "soft" ? (ct(D.value, de), ct(e.items, de)) : ue(G, Bt), _a(), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(G) : Promise.resolve(void 0)),
12447
12447
  proxyID: M.value,
12448
12448
  storeKey: u
12449
12449
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -12454,7 +12454,7 @@ function si(e, t, a) {
12454
12454
  const {
12455
12455
  additionalUrl: de,
12456
12456
  onRestoreAsync: me,
12457
- onRestoreSuccessAsync: nt = (ut) => (ue(G, ut), ut)
12457
+ onRestoreSuccessAsync: nt = (ct) => (ue(G, ct), ct)
12458
12458
  } = { ...e };
12459
12459
  return Q({
12460
12460
  additionalUrl: de,
@@ -12472,7 +12472,7 @@ function si(e, t, a) {
12472
12472
  const de = tt(G), {
12473
12473
  additionalUrl: me,
12474
12474
  onCanSaveAsync: nt,
12475
- onGetSaveAsync: ut,
12475
+ onGetSaveAsync: ct,
12476
12476
  onSaveAsync: Bt,
12477
12477
  onSaveSuccessAsync: rn
12478
12478
  } = { ...e };
@@ -12481,7 +12481,7 @@ function si(e, t, a) {
12481
12481
  data: de,
12482
12482
  nav: d,
12483
12483
  onCanSaveAsync: nt,
12484
- onGetSaveAsync: ut,
12484
+ onGetSaveAsync: ct,
12485
12485
  onSaveAsync: Bt,
12486
12486
  onSaveSuccessAsync: rn,
12487
12487
  proxyID: M.value,
@@ -12501,8 +12501,8 @@ function si(e, t, a) {
12501
12501
  let G = e.onFilter ? e.onFilter(D.value) : D.value;
12502
12502
  if (at(e.localFilters) && c.value.forEach((de) => {
12503
12503
  var nt;
12504
- const me = (nt = e.localFilters) == null ? void 0 : nt.find((ut) => ut.name == h.value[de]);
12505
- me != null && (me.onFilter != null ? G = me.onFilter(G) : me.predicate != null && (G = G.filter((ut) => me.predicate(ut))));
12504
+ const me = (nt = e.localFilters) == null ? void 0 : nt.find((ct) => ct.name == h.value[de]);
12505
+ me != null && (me.onFilter != null ? G = me.onFilter(G) : me.predicate != null && (G = G.filter((ct) => me.predicate(ct))));
12506
12506
  }), e.inactiveProp != null && !V.value) {
12507
12507
  const de = e.inactiveProp;
12508
12508
  G = G.filter((me) => me[de] !== !0);
@@ -12575,7 +12575,7 @@ function si(e, t, a) {
12575
12575
  };
12576
12576
  let me = await R({
12577
12577
  ...de,
12578
- onGetSuccessAsync: async (nt, ut) => nt != null && (nt.filters != null && (g.value = (nt == null ? void 0 : nt.filters) ?? []), jn(nt.data, nt.count), e.onGetSuccessAsync != null) ? await e.onGetSuccessAsync(nt, ut) : nt
12578
+ onGetSuccessAsync: async (nt, ct) => nt != null && (nt.filters != null && (g.value = (nt == null ? void 0 : nt.filters) ?? []), jn(nt.data, nt.count), e.onGetSuccessAsync != null) ? await e.onGetSuccessAsync(nt, ct) : nt
12579
12579
  });
12580
12580
  D.value = (me == null ? void 0 : me.data) ?? [], b.value = [...c.value];
12581
12581
  }
@@ -13437,7 +13437,7 @@ const gS = {
13437
13437
  const D = new Image();
13438
13438
  D.src = v.value.lazySrc, w(D, null);
13439
13439
  }
13440
- v.value.src && ct(() => {
13440
+ v.value.src && ut(() => {
13441
13441
  var D;
13442
13442
  a("loadstart", ((D = d.value) == null ? void 0 : D.currentSrc) || v.value.src), setTimeout(() => {
13443
13443
  var I;
@@ -14739,7 +14739,7 @@ const ru = Me({
14739
14739
  let Hu = !1;
14740
14740
  function FS(e, t) {
14741
14741
  let a = !1, n, l;
14742
- pt && (ct(() => {
14742
+ pt && (ut(() => {
14743
14743
  window.addEventListener("popstate", r), n = e == null ? void 0 : e.beforeEach((i, o, s) => {
14744
14744
  Hu ? a ? t(s) : s() : setTimeout(() => a ? t(s) : s()), Hu = !0;
14745
14745
  }), l = e == null ? void 0 : e.afterEach(() => {
@@ -14758,7 +14758,7 @@ function RS(e, t) {
14758
14758
  var a;
14759
14759
  return (a = e.isActive) == null ? void 0 : a.value;
14760
14760
  }, (a) => {
14761
- e.isLink.value && a && t && ct(() => {
14761
+ e.isLink.value && a && t && ut(() => {
14762
14762
  t(!0);
14763
14763
  });
14764
14764
  }, {
@@ -17386,7 +17386,7 @@ function vT() {
17386
17386
  } = g;
17387
17387
  g.mount = function() {
17388
17388
  const c = h(...arguments);
17389
- return ct(() => s.update()), g.mount = h, c;
17389
+ return ut(() => s.update()), g.mount = h, c;
17390
17390
  };
17391
17391
  }
17392
17392
  hn.reset(), g.mixin({
@@ -19018,7 +19018,7 @@ function WT(e, t, a) {
19018
19018
  contentBox: g
19019
19019
  };
19020
19020
  }
19021
- return Ce(() => [l.value, r.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => v()), ct(() => {
19021
+ return Ce(() => [l.value, r.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => v()), ut(() => {
19022
19022
  const m = v();
19023
19023
  if (!m)
19024
19024
  return;
@@ -19248,7 +19248,7 @@ function KT(e, t) {
19248
19248
  });
19249
19249
  const x = Ac();
19250
19250
  vn(() => {
19251
- x.value && ct(() => {
19251
+ x.value && ut(() => {
19252
19252
  i.value = x.el;
19253
19253
  });
19254
19254
  });
@@ -19287,7 +19287,7 @@ function XT(e, t, a) {
19287
19287
  const u = o(d);
19288
19288
  u && i(u);
19289
19289
  }
19290
- s && ct(() => r());
19290
+ s && ut(() => r());
19291
19291
  }, {
19292
19292
  immediate: !0
19293
19293
  }), Ce(() => e.activatorProps, () => {
@@ -19760,7 +19760,7 @@ const af = Me({
19760
19760
  async function f(h) {
19761
19761
  var x, w, C;
19762
19762
  const c = h.relatedTarget, b = h.target;
19763
- await ct(), n.value && c !== b && ((x = s.value) != null && x.contentEl) && // We're the topmost menu
19763
+ await ut(), n.value && c !== b && ((x = s.value) != null && x.contentEl) && // We're the topmost menu
19764
19764
  ((w = s.value) != null && w.globalTop) && // It isn't the document or the menu body
19765
19765
  ![document, s.value.contentEl].includes(b) && // It isn't inside the menu body
19766
19766
  !s.value.contentEl.contains(b) && ((C = ao(s.value.contentEl)[0]) == null || C.focus());
@@ -20082,7 +20082,7 @@ const oM = Me({
20082
20082
  (L = b.value[S]) == null || L.$el.focus();
20083
20083
  }
20084
20084
  function M(S) {
20085
- S.key === Dc.left && !e.disabled && l.value > +e.start ? (l.value = l.value - 1, ct(k)) : S.key === Dc.right && !e.disabled && l.value < v.value + y.value - 1 && (l.value = l.value + 1, ct(k));
20085
+ S.key === Dc.left && !e.disabled && l.value > +e.start ? (l.value = l.value - 1, ut(k)) : S.key === Dc.right && !e.disabled && l.value < v.value + y.value - 1 && (l.value = l.value + 1, ut(k));
20086
20086
  }
20087
20087
  return Je(() => p(e.tag, {
20088
20088
  ref: f,
@@ -20686,7 +20686,7 @@ function gM(e) {
20686
20686
  (x = r.update) == null || x.call(r, g.value, f.value, d.value);
20687
20687
  });
20688
20688
  async function h() {
20689
- n.value = null, await ct(), await c();
20689
+ n.value = null, await ut(), await c();
20690
20690
  }
20691
20691
  async function c() {
20692
20692
  o.value = !0, u.value.lazy ? i.value = [] : await b(!u.value.eager);
@@ -20905,7 +20905,7 @@ const _i = Me({
20905
20905
  c(), n("click:control", k);
20906
20906
  }
20907
20907
  function w(k) {
20908
- k.stopPropagation(), c(), ct(() => {
20908
+ k.stopPropagation(), c(), ut(() => {
20909
20909
  r.value = null, ey(e["onClick:clear"], k);
20910
20910
  });
20911
20911
  }
@@ -20914,7 +20914,7 @@ const _i = Me({
20914
20914
  const M = k.target;
20915
20915
  if (r.value = M.value, (S = e.modelModifiers) != null && S.trim && ["text", "search", "password", "tel", "url"].includes(e.type)) {
20916
20916
  const L = [M.selectionStart, M.selectionEnd];
20917
- ct(() => {
20917
+ ut(() => {
20918
20918
  M.selectionStart = L[0], M.selectionEnd = L[1];
20919
20919
  });
20920
20920
  }
@@ -21185,7 +21185,7 @@ const _i = Me({
21185
21185
  }
21186
21186
  });
21187
21187
  function V() {
21188
- ct(() => {
21188
+ ut(() => {
21189
21189
  var D, I;
21190
21190
  let E;
21191
21191
  M.value ? E = (D = r.value) == null ? void 0 : D.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])") : v.showSearch.value && (E = (I = l.value) == null ? void 0 : I.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])")), E == null || E.focus();
@@ -24652,7 +24652,7 @@ const BD = Rn({
24652
24652
  }
24653
24653
  return Ce(l, async (u) => {
24654
24654
  var f;
24655
- u || (await ct(), (f = i.value.activatorEl) == null || f.focus({
24655
+ u || (await ut(), (f = i.value.activatorEl) == null || f.focus({
24656
24656
  preventScroll: !0
24657
24657
  }));
24658
24658
  }), Je(() => {
@@ -29299,7 +29299,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
29299
29299
  Sh(() => {
29300
29300
  v.value = null;
29301
29301
  }), kt(() => {
29302
- ct().then(() => V()), o.noOverlayFocus || C(), w(!0);
29302
+ ut().then(() => V()), o.noOverlayFocus || C(), w(!0);
29303
29303
  }), wl(() => w(!1));
29304
29304
  const w = (R) => {
29305
29305
  var Q;
@@ -29340,7 +29340,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
29340
29340
  { deep: !0 }
29341
29341
  );
29342
29342
  const V = (R = !0) => {
29343
- ct().then(() => {
29343
+ ut().then(() => {
29344
29344
  const Q = ga(v), F = ga(m), le = ga(c), ae = ga(x), q = le ? le.getBoundingClientRect().height : 0;
29345
29345
  F && (F.getBoundingClientRect().height ? b.value = F.getBoundingClientRect().height - q : b.value = u.value.modeHeight - q), Q && ae && R && (ae.scrollTop = Q.offsetTop - ae.offsetTop - (b.value / 2 - Q.getBoundingClientRect().height) - q);
29346
29346
  });
@@ -29805,7 +29805,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
29805
29805
  v.value = vl(ae, F, m.value(le)), t("auto-apply"), t("update-flow-step");
29806
29806
  }, J = (F, le) => {
29807
29807
  const ae = N(F, le);
29808
- i.value.fixedEnd || i.value.fixedStart ? v.value = k1(ae, v, t, i) : v.value ? x(ae, v.value) && (v.value = Af(v, N(F, le), t)) : v.value = [N(F, le)], ct().then(() => {
29808
+ i.value.fixedEnd || i.value.fixedStart ? v.value = k1(ae, v, t, i) : v.value ? x(ae, v.value) && (v.value = Af(v, N(F, le), t)) : v.value = [N(F, le)], ut().then(() => {
29809
29809
  mu(v.value, t, e.autoApply, e.modelAuto);
29810
29810
  });
29811
29811
  }, j = (F, le) => {
@@ -29993,7 +29993,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
29993
29993
  var h;
29994
29994
  if (t("update-month-year", { instance: 0, year: g }), i.value.enabled)
29995
29995
  return n.value ? Array.isArray(n.value) && (((h = n.value) == null ? void 0 : h.map((c) => lt(c))).includes(g) ? n.value = n.value.filter((c) => lt(c) !== g) : n.value.push(Jn(qa(Ae()), g))) : n.value = [Jn(qa(so(Ae())), g)], t("auto-apply", !0);
29996
- s.value.enabled ? (n.value = Af(n, m(g), t), ct().then(() => {
29996
+ s.value.enabled ? (n.value = Af(n, m(g), t), ut().then(() => {
29997
29997
  mu(n.value, t, e.autoApply, e.modelAuto);
29998
29998
  })) : (n.value = m(g), t("auto-apply"));
29999
29999
  }
@@ -30389,7 +30389,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
30389
30389
  N.push(k(0));
30390
30390
  return N;
30391
30391
  }), S = (N, O = !1, J = "") => {
30392
- O || n("reset-flow"), C.value = N, n(N ? "overlay-opened" : "overlay-closed", Va.time), l.arrowNavigation && i(N), ct(() => {
30392
+ O || n("reset-flow"), C.value = N, n(N ? "overlay-opened" : "overlay-closed", Va.time), l.arrowNavigation && i(N), ut(() => {
30393
30393
  J !== "" && b.value[0] && b.value[0].openChildCmp(J);
30394
30394
  });
30395
30395
  }, L = A(() => ({
@@ -31004,7 +31004,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31004
31004
  const L = (ce) => ce ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", _ = (ce, ee) => {
31005
31005
  if (l.transitions) {
31006
31006
  const U = qa(vl(Ae(), l.month, l.year));
31007
- b.value = ta(qa(vl(Ae(), ce, ee)), U) ? i.value[L(!0)] : i.value[L(!1)], c.value = !1, ct(() => {
31007
+ b.value = ta(qa(vl(Ae(), ce, ee)), U) ? i.value[L(!0)] : i.value[L(!1)], c.value = !1, ut(() => {
31008
31008
  c.value = !0;
31009
31009
  });
31010
31010
  }
@@ -31028,7 +31028,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31028
31028
  const { width: pe, height: ve } = te.getBoundingClientRect();
31029
31029
  v.value = ce.value;
31030
31030
  let ye = { left: `${pe / 2}px` }, be = -50;
31031
- if (await ct(), w.value[0]) {
31031
+ if (await ut(), w.value[0]) {
31032
31032
  const { left: ue, width: ke } = w.value[0].getBoundingClientRect();
31033
31033
  ue < 0 && (ye = { left: "0" }, be = 0, C.value.left = `${pe / 2}px`), window.innerWidth < ue + ke && (ye = { right: "0" }, be = 0, C.value.left = `${ke - pe / 2}px`);
31034
31034
  }
@@ -31333,7 +31333,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31333
31333
  }
31334
31334
  }, be = (he, Le, G, de) => {
31335
31335
  if (e.sixWeeks && he.length < 6) {
31336
- const me = 6 - he.length, nt = (Le.getDay() + 7 - de) % 7, ut = 6 - (G.getDay() + 7 - de) % 7, [Bt, rn] = ye(nt, ut);
31336
+ const me = 6 - he.length, nt = (Le.getDay() + 7 - de) % 7, ct = 6 - (G.getDay() + 7 - de) % 7, [Bt, rn] = ye(nt, ct);
31337
31337
  for (let Oa = 1; Oa <= me; Oa++)
31338
31338
  if (rn ? !!(Oa % 2) == Bt : Bt) {
31339
31339
  const Ea = he[0].days[0], Ei = ue(En(Ea.value, -7), mt(Le));
@@ -31347,17 +31347,17 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31347
31347
  }, ue = (he, Le) => {
31348
31348
  const G = Ae(he), de = [];
31349
31349
  for (let me = 0; me < 7; me++) {
31350
- const nt = En(G, me), ut = mt(nt) !== Le;
31350
+ const nt = En(G, me), ct = mt(nt) !== Le;
31351
31351
  de.push({
31352
- text: e.hideOffsetDates && ut ? "" : nt.getDate(),
31352
+ text: e.hideOffsetDates && ct ? "" : nt.getDate(),
31353
31353
  value: nt,
31354
- current: !ut,
31354
+ current: !ct,
31355
31355
  classData: {}
31356
31356
  });
31357
31357
  }
31358
31358
  return de;
31359
31359
  }, ke = (he, Le) => {
31360
- const G = [], de = new Date(Le, he), me = new Date(Le, he + 1, 0), nt = e.weekStart, ut = Fn(de, { weekStartsOn: nt }), Bt = (rn) => {
31360
+ const G = [], de = new Date(Le, he), me = new Date(Le, he + 1, 0), nt = e.weekStart, ct = Fn(de, { weekStartsOn: nt }), Bt = (rn) => {
31361
31361
  const Oa = ue(rn, he);
31362
31362
  if (G.push({ days: Oa }), !G[G.length - 1].days.some(
31363
31363
  (Ea) => gt(qa(Ea.value), qa(me))
@@ -31366,10 +31366,10 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31366
31366
  Bt(Ea);
31367
31367
  }
31368
31368
  };
31369
- return Bt(ut), be(G, de, me, nt);
31369
+ return Bt(ct), be(G, de, me, nt);
31370
31370
  }, Pe = (he) => {
31371
31371
  const Le = Ul(Ae(he.value), u.hours, u.minutes, ya());
31372
- t("date-update", Le), b.value.enabled ? Df(Le, s, b.value.limit) : s.value = Le, n(), ct().then(() => {
31372
+ t("date-update", Le), b.value.enabled ? Df(Le, s, b.value.limit) : s.value = Le, n(), ut().then(() => {
31373
31373
  J();
31374
31374
  });
31375
31375
  }, et = (he) => m.value.noDisabledRange ? f1(l.value[0], he).some((Le) => w(Le)) : !1, ft = () => {
@@ -31428,7 +31428,7 @@ const d3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
31428
31428
  modelValue: s,
31429
31429
  range: m.value.enabled,
31430
31430
  timezone: Le ? void 0 : h.value.timezone
31431
- }), N(), e.multiCalendars && ct().then(() => j(!0));
31431
+ }), N(), e.multiCalendars && ut().then(() => j(!0));
31432
31432
  }, qn = () => {
31433
31433
  const he = xf(Ae(), h.value);
31434
31434
  m.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Zt(he, s.value[0]) ? [he, s.value[0]] : [s.value[0], he] : s.value = [he] : s.value = he, N();
@@ -32650,7 +32650,7 @@ const jL = ({
32650
32650
  }
32651
32651
  }, o = () => {
32652
32652
  var f, y;
32653
- (f = e.flow) != null && f.length && n.value !== -1 && (n.value += 1, t("flow-step", n.value), u()), ((y = e.flow) == null ? void 0 : y.length) === n.value && ct().then(() => s());
32653
+ (f = e.flow) != null && f.length && n.value !== -1 && (n.value += 1, t("flow-step", n.value), u()), ((y = e.flow) == null ? void 0 : y.length) === n.value && ut().then(() => s());
32654
32654
  }, s = () => {
32655
32655
  n.value = -1;
32656
32656
  }, d = (f, y, ...v) => {
@@ -32757,7 +32757,7 @@ const jL = ({
32757
32757
  }, V = (N) => {
32758
32758
  r.value.enabled && r.value.tabSubmit && S(N.target.value), r.value.tabSubmit && Xc(g.value) && l.inputValue !== "" ? (n("set-input-date", g.value, !0, !0), g.value = null) : r.value.tabSubmit && l.inputValue === "" && (g.value = null, n("clear", !0));
32759
32759
  }, E = () => {
32760
- c.value = !0, n("focus"), ct().then(() => {
32760
+ c.value = !0, n("focus"), ut().then(() => {
32761
32761
  var N;
32762
32762
  r.value.enabled && r.value.selectOnFocus && ((N = h.value) == null || N.select());
32763
32763
  });
@@ -32924,7 +32924,7 @@ const jL = ({
32924
32924
  defaultedMultiDates: E
32925
32925
  } = qt(l), { menuTransition: D, showTransition: I } = Po(M);
32926
32926
  kt(() => {
32927
- le(l.modelValue), ct().then(() => {
32927
+ le(l.modelValue), ut().then(() => {
32928
32928
  if (!L.value.enabled) {
32929
32929
  const G = Z(v.value);
32930
32930
  G == null || G.addEventListener("scroll", ve), window == null || window.addEventListener("resize", ye);
@@ -33012,8 +33012,8 @@ const jL = ({
33012
33012
  F.value = null;
33013
33013
  return;
33014
33014
  }
33015
- const nt = Array.isArray(G) ? !G.some((Bt) => !C(Bt)) : C(G), ut = k(G);
33016
- nt && ut && (c.value = !0, F.value = G, de && (m.value = me, ft(), n("text-submit")), ct().then(() => {
33015
+ const nt = Array.isArray(G) ? !G.some((Bt) => !C(Bt)) : C(G), ct = k(G);
33016
+ nt && ct && (c.value = !0, F.value = G, de && (m.value = me, ft(), n("text-submit")), ut().then(() => {
33017
33017
  c.value = !1;
33018
33018
  }));
33019
33019
  }, Sl = () => {
@@ -33083,8 +33083,8 @@ const jL = ({
33083
33083
  }), va({ _: 2 }, [
33084
33084
  Oe(T(z), (me, nt) => ({
33085
33085
  name: me,
33086
- fn: B((ut) => [
33087
- ge(G.$slots, me, Ft(aa(ut)))
33086
+ fn: B((ct) => [
33087
+ ge(G.$slots, me, Ft(aa(ct)))
33088
33088
  ])
33089
33089
  }))
33090
33090
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
@@ -33138,8 +33138,8 @@ const jL = ({
33138
33138
  }), va({ _: 2 }, [
33139
33139
  Oe(T(P), (me, nt) => ({
33140
33140
  name: me,
33141
- fn: B((ut) => [
33142
- ge(G.$slots, me, Ft(aa({ ...ut })))
33141
+ fn: B((ct) => [
33142
+ ge(G.$slots, me, Ft(aa({ ...ct })))
33143
33143
  ])
33144
33144
  }))
33145
33145
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
@@ -33663,7 +33663,7 @@ const Fs = Ue()({
33663
33663
  h.value && (h.value.checked = o.value);
33664
33664
  return;
33665
33665
  }
33666
- e.readonly && l && ct(() => l.forceUpdate()), o.value = M.target.checked;
33666
+ e.readonly && l && ut(() => l.forceUpdate()), o.value = M.target.checked;
33667
33667
  }
33668
33668
  return Je(() => {
33669
33669
  var V, E;
@@ -34984,7 +34984,7 @@ function z5(e, t) {
34984
34984
  h[R] = (h[R - 1] || 0) + x(R - 1);
34985
34985
  c.value = Math.max(c.value, performance.now() - j);
34986
34986
  }, c), C = Ce(m, (j) => {
34987
- j && (C(), u = d.value.offsetTop, w.immediate(), z(), ~b && ct(() => {
34987
+ j && (C(), u = d.value.offsetTop, w.immediate(), z(), ~b && ut(() => {
34988
34988
  pt && window.requestAnimationFrame(() => {
34989
34989
  O(b), b = -1;
34990
34990
  });
@@ -35349,7 +35349,7 @@ const V1 = Me({
35349
35349
  R && (y.value = [...y.value, J]);
35350
35350
  } else {
35351
35351
  const Z = j !== !1;
35352
- y.value = Z ? [J] : [], ct(() => {
35352
+ y.value = Z ? [J] : [], ut(() => {
35353
35353
  s.value = !1;
35354
35354
  });
35355
35355
  }
@@ -35722,7 +35722,7 @@ const K5 = Me({
35722
35722
  }
35723
35723
  }), E = A(() => typeof e.counterValue == "function" ? e.counterValue(k.value) : typeof e.counterValue == "number" ? e.counterValue : e.multiple ? k.value.length : V.value.length);
35724
35724
  Ce(_, (te) => {
35725
- m ? ct(() => m = !1) : i.value && !y.value && (y.value = !0), a("update:search", te);
35725
+ m ? ut(() => m = !1) : i.value && !y.value && (y.value = !0), a("update:search", te);
35726
35726
  }), Ce(k, (te) => {
35727
35727
  var pe;
35728
35728
  !e.multiple && !L.value && (_.value = ((pe = te[0]) == null ? void 0 : pe.title) ?? "");
@@ -35803,7 +35803,7 @@ const K5 = Me({
35803
35803
  e.clearOnSelect && (V.value = "");
35804
35804
  } else {
35805
35805
  const ve = pe !== !1;
35806
- k.value = ve ? [te] : [], _.value = ve && !L.value ? te.title : "", ct(() => {
35806
+ k.value = ve ? [te] : [], _.value = ve && !L.value ? te.title : "", ut(() => {
35807
35807
  y.value = !1, o.value = !0;
35808
35808
  });
35809
35809
  }
@@ -36140,7 +36140,7 @@ const K5 = Me({
36140
36140
  n("mousedown:control", V);
36141
36141
  }
36142
36142
  function w(V) {
36143
- V.stopPropagation(), c(), ct(() => {
36143
+ V.stopPropagation(), c(), ut(() => {
36144
36144
  r.value = "", ey(e["onClick:clear"], V);
36145
36145
  });
36146
36146
  }
@@ -36149,7 +36149,7 @@ const K5 = Me({
36149
36149
  const E = V.target;
36150
36150
  if (r.value = E.value, (D = e.modelModifiers) != null && D.trim) {
36151
36151
  const I = [E.selectionStart, E.selectionEnd];
36152
- ct(() => {
36152
+ ut(() => {
36153
36153
  E.selectionStart = I[0], E.selectionEnd = I[1];
36154
36154
  });
36155
36155
  }
@@ -36159,7 +36159,7 @@ const K5 = Me({
36159
36159
  e.autoGrow || (M.value = +e.rows);
36160
36160
  });
36161
36161
  function L() {
36162
- e.autoGrow && ct(() => {
36162
+ e.autoGrow && ut(() => {
36163
36163
  if (!k.value || !v.value)
36164
36164
  return;
36165
36165
  const V = getComputedStyle(k.value), E = getComputedStyle(v.value.$el), D = parseFloat(V.getPropertyValue("--v-field-padding-top")) + parseFloat(V.getPropertyValue("--v-input-padding-top")) + parseFloat(V.getPropertyValue("--v-field-padding-bottom")), I = k.value.scrollHeight, P = parseFloat(V.lineHeight), z = Math.max(parseFloat(e.rows) * P + D, parseFloat(E.getPropertyValue("--v-input-control-height"))), N = parseFloat(e.maxRows) * P + D || 1 / 0, O = Ra(I ?? 0, z, N);
@@ -38266,7 +38266,7 @@ const fI = /* @__PURE__ */ je({
38266
38266
  setup(e) {
38267
38267
  const t = H(), a = H("");
38268
38268
  async function n() {
38269
- await ct();
38269
+ await ut();
38270
38270
  const d = window.setInterval(() => {
38271
38271
  if (t.value)
38272
38272
  try {
@@ -38951,7 +38951,7 @@ const LI = ["start", "end", "left", "right", "top", "bottom"], EI = Me({
38951
38951
  Pn(() => e.expandOnHover && e.rail != null, () => {
38952
38952
  Ce(x, (Z) => n("update:rail", !Z));
38953
38953
  }), Pn(() => !e.disableResizeWatcher, () => {
38954
- Ce(L, (Z) => !e.permanent && ct(() => g.value = !Z));
38954
+ Ce(L, (Z) => !e.permanent && ut(() => g.value = !Z));
38955
38955
  }), Pn(() => !e.disableRouteWatcher && !!m, () => {
38956
38956
  Ce(m.currentRoute, () => L.value && (g.value = !1));
38957
38957
  }), Ce(() => e.permanent, (Z) => {
@@ -41031,7 +41031,7 @@ const Q1 = {
41031
41031
  s();
41032
41032
  }
41033
41033
  function f(m) {
41034
- i.value && ct(() => {
41034
+ i.value && ut(() => {
41035
41035
  !o.value || !i.value || !n || (n.transitionHeight.value = Ke(m.clientHeight));
41036
41036
  });
41037
41037
  }
@@ -41605,7 +41605,7 @@ const cV = { class: "d-flex align-center" }, dV = { class: "d-flex justify-space
41605
41605
  }
41606
41606
  }), j = A(() => `height: calc(100vh - ${v.getUsedHeight(48)}px)`);
41607
41607
  function Z() {
41608
- ct(() => {
41608
+ ut(() => {
41609
41609
  var U, te;
41610
41610
  let ee;
41611
41611
  O.value ? ee = (U = i.value) == null ? void 0 : U.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])") : m.showSearch.value && (ee = (te = r.value) == null ? void 0 : te.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])")), ee == null || ee.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.650",
3
+ "version": "1.4.651",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {