bt-core-app 1.4.185 → 1.4.187

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 +109 -105
  2. package/package.json +2 -1
@@ -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, 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";
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 Xe, 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";
@@ -6345,7 +6345,7 @@ var pm = { exports: {} };
6345
6345
  function Me() {
6346
6346
  return typeof openDatabase == "function";
6347
6347
  }
6348
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ce = "~~local_forage_type~", he = /^~~local_forage_type~([^~]+)~/, gt = "__lfsc__:", at = gt.length, Pt = "arbf", rt = "blob", ln = "si08", kn = "ui08", Gt = "uic8", Nt = "si16", Ba = "si32", xa = "ur16", na = "ui32", ce = "fl32", We = "fl64", Xe = at + Pt.length, ee = Object.prototype.toString;
6348
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ce = "~~local_forage_type~", he = /^~~local_forage_type~([^~]+)~/, gt = "__lfsc__:", at = gt.length, Pt = "arbf", rt = "blob", ln = "si08", kn = "ui08", Gt = "uic8", Nt = "si16", Ba = "si32", xa = "ur16", na = "ui32", ce = "fl32", We = "fl64", Je = at + Pt.length, ee = Object.prototype.toString;
6349
6349
  function me($) {
6350
6350
  var G = $.length * 0.75, R = $.length, Q, te = 0, X, ue, ye, we;
6351
6351
  $[$.length - 1] === "=" && (G--, $[$.length - 2] === "=" && G--);
@@ -6381,7 +6381,7 @@ var pm = { exports: {} };
6381
6381
  function fe($) {
6382
6382
  if ($.substring(0, at) !== gt)
6383
6383
  return JSON.parse($);
6384
- var G = $.substring(Xe), R = $.substring(at, Xe), Q;
6384
+ var G = $.substring(Je), R = $.substring(at, Je), Q;
6385
6385
  if (R === rt && he.test(G)) {
6386
6386
  var te = G.match(he);
6387
6387
  Q = te[1], G = G.substring(te[0].length);
@@ -8216,17 +8216,18 @@ function B0(e, t = {}) {
8216
8216
  }
8217
8217
  }
8218
8218
  function F(E) {
8219
+ console.log("applying style");
8219
8220
  const q = ra(e);
8220
8221
  if (!q)
8221
8222
  return;
8222
8223
  const Y = q.$el;
8223
- E.top ? Y.style.top = `${E.top}px` : Y.style.top = void 0, E.left ? Y.style.left = `${E.left}px` : Y.style.left = void 0, E.height ? Y.style.height = `${E.height}px` : Y.style.height = void 0, E.width ? Y.style.width = `${E.width}px` : Y.style.width = void 0, E.position ? Y.style.position = `${E.position}` : Y.style.position = void 0, console.log(Y.style.position);
8224
+ E.top ? Y.style.top = `${E.top}px` : Y.style.top = void 0, E.left ? Y.style.left = `${E.left}px` : Y.style.left = void 0, E.height ? Y.style.height = `${E.height}px` : Y.style.height = void 0, E.width ? Y.style.width = `${E.width}px` : Y.style.width = void 0, E.position ? Y.style.position = `${E.position}` : Y.style.position = void 0;
8224
8225
  }
8225
8226
  function Z(E, q) {
8226
8227
  if (g.value)
8227
8228
  return;
8228
8229
  const Y = ra(e);
8229
- Y && (console.log("adding handles"), console.log(Y), A(Y, E ?? N0), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
8230
+ Y && (A(Y, E ?? N0), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
8230
8231
  }
8231
8232
  function N(E) {
8232
8233
  if (!g.value)
@@ -8287,7 +8288,7 @@ function uu(e) {
8287
8288
  }
8288
8289
  }
8289
8290
  function s(u) {
8290
- if (console.log("updating"), console.log(u), u.bladeName == null)
8291
+ if (u.bladeName == null)
8291
8292
  return;
8292
8293
  const d = l(u.bladeName);
8293
8294
  if (d >= 0) {
@@ -18500,7 +18501,7 @@ const ih = Se({
18500
18501
  class: "v-select__selection-text"
18501
18502
  }, [_.title, e.multiple && V < h.value.length - 1 && S("span", {
18502
18503
  class: "v-select__selection-comma"
18503
- }, [Je(",")])])]);
18504
+ }, [Xe(",")])])]);
18504
18505
  })]),
18505
18506
  "append-inner": function() {
18506
18507
  var ae;
@@ -19240,7 +19241,7 @@ const mk = Se({
19240
19241
  class: "v-combobox__selection-text"
19241
19242
  }, [be.title, e.multiple && Ce < b.value.length - 1 && S("span", {
19242
19243
  class: "v-combobox__selection-comma"
19243
- }, [Je(",")])])]);
19244
+ }, [Xe(",")])])]);
19244
19245
  })]),
19245
19246
  "append-inner": function() {
19246
19247
  var gt;
@@ -20792,8 +20793,8 @@ function Ou(e, t, n) {
20792
20793
  const me = y.value[ee], Ie = c.find((Ue) => Ue.name == me);
20793
20794
  Ie != null ? ce = ce != null ? `${ce}ANDALSO${Ie.filterFunction()}` : Ie.filterFunction() : We.push(me);
20794
20795
  });
20795
- const Xe = {};
20796
- return sn(We) && (Xe.filterBy = We.toString()), ce != null && (Xe.query = ce), Xe;
20796
+ const Je = {};
20797
+ return sn(We) && (Je.filterBy = We.toString()), ce != null && (Je.query = ce), Je;
20797
20798
  }), oe = k(() => {
20798
20799
  var We;
20799
20800
  let ce = e.itemID;
@@ -20804,16 +20805,16 @@ function Ou(e, t, n) {
20804
20805
  return e.useServerPagination && e.itemsPerPage != null && (ce.includeCount = !0, ce.takeAmount = e.itemsPerPage, ce.takeFrom = (C.value - 1) * e.itemsPerPage), ne.value != null && (ce = { ...ce, ...ne.value }), D.value && (ce.includeInactive = !0), sn(e.selectProps) && (ce.properties = (We = e.selectProps) == null ? void 0 : We.toString()), v.value != null && (ce.searchString = v.value), ce;
20805
20806
  }), W = k(() => (ce) => e.onCanDelete != null ? e.onCanDelete(ce) : !(ce != null && ce.isInactive === !0)), le = k(() => (ce) => D.value ? e.onCanRestore != null ? e.onCanRestore(ce) : (ce == null ? void 0 : ce.isInactive) === !0 : !1), Me = k(() => Z.value.filter((ce) => !ce.hide)), be = k(() => {
20806
20807
  let ce = new Array();
20807
- return Me.value.filter((Xe) => Xe.sublevel != null).forEach((Xe) => {
20808
- let ee = ce.find((me) => me.position == Xe.sublevel);
20809
- ee == null ? ce.push({ position: Xe.sublevel ?? 0, values: [Xe] }) : ee.values.push(Xe);
20810
- }), ce.sort(pr.firstBy((Xe) => Xe.position));
20808
+ return Me.value.filter((Je) => Je.sublevel != null).forEach((Je) => {
20809
+ let ee = ce.find((me) => me.position == Je.sublevel);
20810
+ ee == null ? ce.push({ position: Je.sublevel ?? 0, values: [Je] }) : ee.values.push(Je);
20811
+ }), ce.sort(pr.firstBy((Je) => Je.position));
20811
20812
  }), Ce = k(() => {
20812
20813
  let ce = new Array();
20813
- return Me.value.filter((Xe) => Xe.level != null).forEach((Xe) => {
20814
- let ee = ce.find((me) => me.position == Xe.level);
20815
- ee == null ? ce.push({ position: Xe.level ?? 0, values: [Xe] }) : ee.values.push(Xe);
20816
- }), ce.sort(pr.firstBy((Xe) => Xe.position));
20814
+ return Me.value.filter((Je) => Je.level != null).forEach((Je) => {
20815
+ let ee = ce.find((me) => me.position == Je.level);
20816
+ ee == null ? ce.push({ position: Je.level ?? 0, values: [Je] }) : ee.values.push(Je);
20817
+ }), ce.sort(pr.firstBy((Je) => Je.position));
20817
20818
  }), he = k(() => Me.value.filter((ce) => ce.nav != null && ce.itemText != null || ce.textFilter != null || ce.display != null || ce.bool != null));
20818
20819
  function gt(ce) {
20819
20820
  e.itemBladeName != null && (ce == "page" ? l.push({
@@ -20829,7 +20830,7 @@ function Ou(e, t, n) {
20829
20830
  function at(ce) {
20830
20831
  const {
20831
20832
  additionalUrl: We,
20832
- onDeleteAsync: Xe
20833
+ onDeleteAsync: Je
20833
20834
  } = { ...e }, ee = st(ce), me = ee.id, Ie = (Ue) => {
20834
20835
  if (Ue != null) {
20835
20836
  let fe = P.value.findIndex((Ee) => Ee.id == Ue);
@@ -20850,7 +20851,7 @@ function Ou(e, t, n) {
20850
20851
  data: ee,
20851
20852
  nav: m,
20852
20853
  onCanDeleteAsync: e.onCanDeleteAsync,
20853
- onDeleteAsync: Xe,
20854
+ onDeleteAsync: Je,
20854
20855
  onDeleteSuccessAsync: async () => (Ie(me), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(ee) : Promise.resolve(void 0)),
20855
20856
  proxyID: b.value,
20856
20857
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -20878,7 +20879,7 @@ function Ou(e, t, n) {
20878
20879
  let ce = st(P);
20879
20880
  if (ce = e.onFilter ? e.onFilter(ce) : ce, v.value != null && v.value.length > 0) {
20880
20881
  let We = [...L.value];
20881
- e.itemText && We.push(e.itemText), sn(We) && (ce = ce.filter((Xe) => C0(Xe, v.value, We)));
20882
+ e.itemText && We.push(e.itemText), sn(We) && (ce = ce.filter((Je) => C0(Je, v.value, We)));
20882
20883
  }
20883
20884
  F.value = ce;
20884
20885
  }
@@ -20907,24 +20908,24 @@ function Ou(e, t, n) {
20907
20908
  if (e.isSingle === !0)
20908
20909
  We.id === "new" ? P.value = [] : P.value = await z(We);
20909
20910
  else {
20910
- let Xe = await O({
20911
+ let Je = await O({
20911
20912
  ...We,
20912
20913
  onGetSuccessAsync: async (ee, me) => {
20913
20914
  let Ie = ee == null ? void 0 : ee.data;
20914
20915
  return o.value = (ee == null ? void 0 : ee.filters) ?? [], f != "whole-last-updated" && e.useServerPagination === !0 && e.itemsPerPage && ee.count && (Fe.value = Math.ceil(ee.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (Ie = await e.onGetSuccessAsync(Ie, me)), Ie;
20915
20916
  }
20916
20917
  });
20917
- P.value = Xe, w.value = [...g.value];
20918
+ P.value = Je, w.value = [...g.value];
20918
20919
  }
20919
20920
  ln();
20920
20921
  }
20921
20922
  function Nt(ce, We) {
20922
- const Xe = st(ce);
20923
- Xe != null && Xe === N && e.canUnselect ? N = null : N = Xe, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(Xe)) && (e.onSelectItem != null ? e.onSelectItem(N) : We == "blade" && N == null ? s.closeBlade({ bladeName: e.itemBladeName }) : We == "page" ? l.push({
20923
+ const Je = st(ce);
20924
+ Je != null && Je === N && e.canUnselect ? N = null : N = Je, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(Je)) && (e.onSelectItem != null ? e.onSelectItem(N) : We == "blade" && N == null ? s.closeBlade({ bladeName: e.itemBladeName }) : We == "page" ? l.push({
20924
20925
  name: e.itemBladeName,
20925
- params: { id: Xe.id }
20926
+ params: { id: Je.id }
20926
20927
  }) : We == "blade" && s.updateBlade({
20927
- data: { id: Xe.id },
20928
+ data: { id: Je.id, data: Je },
20928
20929
  bladeName: e.itemBladeName
20929
20930
  })), t != null && (t("select", N), t("confirm", N));
20930
20931
  }
@@ -21454,7 +21455,7 @@ const Zk = {
21454
21455
  default: K(() => [
21455
21456
  S(ft, { size: v.size }, {
21456
21457
  default: K(() => [
21457
- Je(ze(F ? "$check" : "mdi"), 1)
21458
+ Xe(ze(F ? "$check" : "mdi"), 1)
21458
21459
  ]),
21459
21460
  _: 2
21460
21461
  }, 1032, ["size"])
@@ -21481,11 +21482,11 @@ const Zk = {
21481
21482
  size: v.size
21482
21483
  }, {
21483
21484
  default: K(() => [
21484
- Je("$filter")
21485
+ Xe("$filter")
21485
21486
  ]),
21486
21487
  _: 1
21487
21488
  }, 8, ["size"]),
21488
- Je("Apply ")
21489
+ Xe("Apply ")
21489
21490
  ]),
21490
21491
  _: 1
21491
21492
  }, 8, ["size"])) : re("", !0)
@@ -21609,7 +21610,7 @@ const Zk = {
21609
21610
  title: P.errorMsg
21610
21611
  }, {
21611
21612
  default: K(() => [
21612
- Je("$alert-circle")
21613
+ Xe("$alert-circle")
21613
21614
  ]),
21614
21615
  _: 2
21615
21616
  }, 1032, ["size", "title"])) : re("", !0),
@@ -21753,7 +21754,7 @@ const Zk = {
21753
21754
  title: P.errorMsg
21754
21755
  }, {
21755
21756
  default: K(() => [
21756
- Je("$alert-circle")
21757
+ Xe("$alert-circle")
21757
21758
  ]),
21758
21759
  _: 2
21759
21760
  }, 1032, ["size", "title"])) : re("", !0),
@@ -26415,7 +26416,7 @@ const Rx = ({
26415
26416
  value: N.internalModelValue
26416
26417
  }) : re("", !0),
26417
26418
  !N.$slots["action-preview"] && w.value ? (H(), ie(xe, { key: 1 }, [
26418
- Je(ze(F.value), 1)
26419
+ Xe(ze(F.value), 1)
26419
26420
  ], 64)) : re("", !0)
26420
26421
  ], 12, Gx)) : re("", !0),
26421
26422
  Ye("div", {
@@ -26623,7 +26624,7 @@ const Rx = ({
26623
26624
  item: j
26624
26625
  }) : re("", !0),
26625
26626
  z.$slots.item ? re("", !0) : (H(), ie(xe, { key: 1 }, [
26626
- Je(ze(j.text), 1)
26627
+ Xe(ze(j.text), 1)
26627
26628
  ], 64))
26628
26629
  ], 2)
26629
26630
  ], 42, Xx))), 128))
@@ -26763,7 +26764,7 @@ const Rx = ({
26763
26764
  year: e.year
26764
26765
  }) : re("", !0),
26765
26766
  y.$slots.year ? re("", !0) : (H(), ie(xe, { key: 1 }, [
26766
- Je(ze(e.year), 1)
26767
+ Xe(ze(e.year), 1)
26767
26768
  ], 64))
26768
26769
  ], 40, nT),
26769
26770
  M(r)(M(s), e.instance) ? (H(), se(Tl, {
@@ -27322,7 +27323,7 @@ const Rx = ({
27322
27323
  class: lt(L.value)
27323
27324
  }, [
27324
27325
  W.separator ? (H(), ie(xe, { key: 0 }, [
27325
- Je(" : ")
27326
+ Xe(" : ")
27326
27327
  ], 64)) : (H(), ie(xe, { key: 1 }, [
27327
27328
  Ye("button", {
27328
27329
  ref_for: !0,
@@ -27377,7 +27378,7 @@ const Rx = ({
27377
27378
  value: Z.value(W.type).value
27378
27379
  }) : re("", !0),
27379
27380
  ne.$slots[W.type] ? re("", !0) : (H(), ie(xe, { key: 1 }, [
27380
- Je(ze(Z.value(W.type).text), 1)
27381
+ Xe(ze(Z.value(W.type).text), 1)
27381
27382
  ], 64))
27382
27383
  ], 42, dT),
27383
27384
  Ye("button", {
@@ -27947,7 +27948,7 @@ const Rx = ({
27947
27948
  value: r[ae.type]
27948
27949
  }) : re("", !0),
27949
27950
  O.$slots[ae.type] ? re("", !0) : (H(), ie(xe, { key: 1 }, [
27950
- Je(ze(ae.text), 1)
27951
+ Xe(ze(ae.text), 1)
27951
27952
  ], 64))
27952
27953
  ], 40, TT),
27953
27954
  S(pn, {
@@ -28183,7 +28184,7 @@ const Rx = ({
28183
28184
  index: Me
28184
28185
  }) : re("", !0),
28185
28186
  oe.$slots["calendar-header"] ? re("", !0) : (H(), ie(xe, { key: 1 }, [
28186
- Je(ze(le), 1)
28187
+ Xe(ze(le), 1)
28187
28188
  ], 64))
28188
28189
  ], 8, IT);
28189
28190
  }), 128))
@@ -28243,7 +28244,7 @@ const Rx = ({
28243
28244
  date: Ce.value
28244
28245
  }) : re("", !0),
28245
28246
  oe.$slots.day ? re("", !0) : (H(), ie(xe, { key: 1 }, [
28246
- Je(ze(Ce.text), 1)
28247
+ Xe(ze(Ce.text), 1)
28247
28248
  ], 64)),
28248
28249
  Ce.marker && Z.value(Ce) ? (H(), ie(xe, { key: 2 }, [
28249
28250
  oe.$slots.marker ? de(oe.$slots, "marker", {
@@ -28520,14 +28521,14 @@ const Rx = ({
28520
28521
  }, We = () => {
28521
28522
  if (Array.isArray(i.value))
28522
28523
  if (o.value.enabled) {
28523
- const ee = Xe();
28524
+ const ee = Je();
28524
28525
  i.value[i.value.length - 1] = T(ee);
28525
28526
  } else
28526
28527
  i.value = i.value.map((ee, me) => ee && T(ee, me));
28527
28528
  else
28528
28529
  i.value = T(i.value);
28529
28530
  t("time-update");
28530
- }, Xe = () => Array.isArray(i.value) && i.value.length ? i.value[i.value.length - 1] : null;
28531
+ }, Je = () => Array.isArray(i.value) && i.value.length ? i.value[i.value.length - 1] : null;
28531
28532
  return {
28532
28533
  calendars: s,
28533
28534
  modelValue: i,
@@ -28898,7 +28899,7 @@ const Rx = ({
28898
28899
  value: v.value,
28899
28900
  text: v.text
28900
28901
  }) : (H(), ie(xe, { key: 1 }, [
28901
- Je(ze(v.text), 1)
28902
+ Xe(ze(v.text), 1)
28902
28903
  ], 64))
28903
28904
  ], 42, zT)
28904
28905
  ]))), 128))
@@ -29341,7 +29342,7 @@ const Rx = ({
29341
29342
  _.value = fe;
29342
29343
  }, We = () => {
29343
29344
  v.value.enabled && (h.value = !0, ae()), a("focus");
29344
- }, Xe = () => {
29345
+ }, Je = () => {
29345
29346
  if (v.value.enabled && (h.value = !1, V(r.modelValue), o.value)) {
29346
29347
  const fe = ox(c.value, y.value);
29347
29348
  fe == null || fe.focus();
@@ -29393,7 +29394,7 @@ const Rx = ({
29393
29394
  onToggle: na,
29394
29395
  onClose: Nt,
29395
29396
  onFocus: We,
29396
- onBlur: Xe,
29397
+ onBlur: Je,
29397
29398
  onRealBlur: Ee[1] || (Ee[1] = (Be) => h.value = !1)
29398
29399
  }), hn({ _: 2 }, [
29399
29400
  et(M(N), (Be, Hn) => ({
@@ -29743,55 +29744,55 @@ function DM(e, t) {
29743
29744
  };
29744
29745
  }
29745
29746
  function oy(e, t) {
29746
- const n = (t == null ? void 0 : t.useBladeSrc) ?? e.useBladeSrc ?? e.variant == "blade", a = (t == null ? void 0 : t.useRouteSrc) ?? e.useRouteSrc ?? e.variant == "page", r = e.storeMode ?? (t == null ? void 0 : t.storeMode), l = e.storageMode ?? (t == null ? void 0 : t.storageMode), i = e.proxyKey ?? "proxyID", s = e.nav ?? e.bladeName ?? "basic", { navBack: u } = bh(), d = Qo(), m = k(() => {
29747
+ const n = (t == null ? void 0 : t.useBladeSrc) ?? e.useBladeSrc ?? e.variant == "blade", a = (t == null ? void 0 : t.useRouteSrc) ?? e.useRouteSrc ?? e.variant == "page", r = e.storeMode ?? (t == null ? void 0 : t.storeMode), l = e.storageMode ?? (t == null ? void 0 : t.storageMode), i = e.proxyKey ?? "proxyID", s = e.nav ?? e.bladeName ?? "basic", { navBack: u } = bh(), d = Qo(), m = uu({
29748
+ bladeGroup: e.bladeGroup,
29749
+ bladeName: e.bladeName,
29750
+ onOpen: (B) => {
29751
+ console.log("opening single blade"), console.log(B), J({ deepRefresh: !1 });
29752
+ },
29753
+ onUpdate: (B) => {
29754
+ console.log("updating single blade"), console.log(B), J({ deepRefresh: !1 });
29755
+ },
29756
+ bladeStartShowing: e.bladeStartShowing
29757
+ }), f = k(() => {
29747
29758
  var _;
29748
29759
  let B = e.proxyID;
29749
- return B == null && n && (B = C.bladeData.data[i]), B == null && a && (B = (_ = d == null ? void 0 : d.query) == null ? void 0 : _[i]), B;
29750
- }), f = U(void 0), { actionErrorMsg: h, actionLoadingMsg: c, deleteItem: o, getItem: y, getAllItems: g, restoreItem: w, saveItem: x } = Cm({
29760
+ return B == null && n && (B = m.bladeData.data[i]), B == null && a && (B = (_ = d == null ? void 0 : d.query) == null ? void 0 : _[i]), B;
29761
+ }), h = U(void 0), { actionErrorMsg: c, actionLoadingMsg: o, deleteItem: y, getItem: g, getAllItems: w, restoreItem: x, saveItem: C } = Cm({
29751
29762
  nav: s,
29752
29763
  onError: e.onError ?? (t == null ? void 0 : t.onError),
29753
- proxyID: m.value,
29764
+ proxyID: f.value,
29754
29765
  store: fr({
29755
29766
  storeMode: r,
29756
29767
  storageMode: l,
29757
29768
  nav: s
29758
29769
  })
29759
- }), C = uu({
29760
- bladeGroup: e.bladeGroup,
29761
- bladeName: e.bladeName,
29762
- onOpen: (B) => {
29763
- console.log("opening single blade"), console.log(B);
29764
- },
29765
- onUpdate: (B) => {
29766
- console.log("updating single blade"), console.log(B);
29767
- },
29768
- bladeStartShowing: e.bladeStartShowing
29769
- }), T = k(() => e.errorMsg ?? h.value), A = k(() => e.loadingMsg ?? c.value), b = k(() => A.value != null), v = k(() => {
29770
+ }), T = k(() => e.errorMsg ?? c.value), A = k(() => e.loadingMsg ?? o.value), b = k(() => A.value != null), v = k(() => {
29770
29771
  var _;
29771
29772
  let B = e.itemID;
29772
- return B == null && n && (B = C.bladeData.data.id), B == null && a && (B = (_ = d == null ? void 0 : d.query) == null ? void 0 : _.id), B;
29773
+ return B == null && n && (B = m.bladeData.data.id), B == null && a && (B = (_ = d == null ? void 0 : d.query) == null ? void 0 : _.id), B;
29773
29774
  }), p = U(v.value == "new" ? "new" : e.startEditing ? "edit" : "view"), I = Ve(!1), D = k(() => {
29774
29775
  let B = e.params != null ? { ...e.params } : {};
29775
29776
  return e.includeDetails != null && (B.includeDetails = e.includeDetails), B;
29776
29777
  }), L = k(() => {
29777
29778
  if (p.value == "new")
29778
29779
  return !1;
29779
- const B = st(f);
29780
+ const B = st(h);
29780
29781
  return e.onCanDelete != null ? e.onCanDelete(B) : (B == null ? void 0 : B.isInactive) !== !0;
29781
29782
  }), P = k(() => {
29782
29783
  if (p.value == "new")
29783
29784
  return !1;
29784
- const B = st(f);
29785
+ const B = st(h);
29785
29786
  return e.onCanEdit != null ? e.onCanEdit(B) : !0;
29786
29787
  }), F = k(() => {
29787
29788
  if (p.value == "new")
29788
29789
  return !1;
29789
- const B = st(f);
29790
+ const B = st(h);
29790
29791
  return e.onCanRestore != null ? e.onCanRestore(B) : (B == null ? void 0 : B.isInactive) === !0;
29791
29792
  }), Z = k(() => {
29792
- const B = st(f);
29793
+ const B = st(h);
29793
29794
  return e.onCanSave != null ? e.onCanSave(B) : !0;
29794
- }), { isChanged: N, restartTracker: E } = DM(f, {
29795
+ }), { isChanged: N, restartTracker: E } = DM(h, {
29795
29796
  useTracker: e.trackChanges,
29796
29797
  propsToIgnore: e.trackIgnoreProps,
29797
29798
  propsToTrack: e.trackProps
@@ -29800,10 +29801,10 @@ function oy(e, t) {
29800
29801
  const {
29801
29802
  additionalUrl: _,
29802
29803
  onDeleteAsync: V,
29803
- onDeleteSuccessAsync: j = () => (e.variant == "blade" ? C.closeBlade({ bladeName: e.bladeName }) : u(), Promise.resolve(void 0)),
29804
+ onDeleteSuccessAsync: j = () => (e.variant == "blade" ? m.closeBlade({ bladeName: e.bladeName }) : u(), Promise.resolve(void 0)),
29804
29805
  proxyID: ae
29805
29806
  } = { ...e };
29806
- o({
29807
+ y({
29807
29808
  additionalUrl: _,
29808
29809
  data: B,
29809
29810
  nav: s,
@@ -29822,7 +29823,7 @@ function oy(e, t) {
29822
29823
  onRestoreSuccessAsync: j,
29823
29824
  proxyID: ae
29824
29825
  } = { ...e };
29825
- w({
29826
+ x({
29826
29827
  additionalUrl: _,
29827
29828
  data: B,
29828
29829
  nav: s,
@@ -29834,14 +29835,17 @@ function oy(e, t) {
29834
29835
  });
29835
29836
  }
29836
29837
  async function J(B) {
29837
- if (I.value = !1, e.item != null)
29838
- f.value = e.item;
29838
+ if (I.value = !1, console.log("a"), console.log(m.bladeData.data), e.item != null)
29839
+ h.value = e.item;
29840
+ else if (e.variant == "blade" && v.value !== "new" && m.bladeData.data.data != null)
29841
+ console.log("b"), h.value = m.bladeData.data.data;
29839
29842
  else {
29843
+ console.log("c");
29840
29844
  const _ = {
29841
29845
  additionalUrl: e.additionalUrl,
29842
29846
  id: v.value,
29843
29847
  nav: s,
29844
- proxyID: m.value,
29848
+ proxyID: f.value,
29845
29849
  params: D.value,
29846
29850
  //props.params,
29847
29851
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -29850,10 +29854,10 @@ function oy(e, t) {
29850
29854
  onGetSuccessAsync: e.onGetSuccessAsync
29851
29855
  };
29852
29856
  if (e.isSingle === !0)
29853
- _.id === "new" ? f.value = e.onGetNew ? e.onGetNew(_) : {} : f.value = await y(_);
29857
+ _.id === "new" ? h.value = e.onGetNew ? e.onGetNew(_) : {} : h.value = await g(_);
29854
29858
  else {
29855
- const V = await g(_);
29856
- f.value = V.data;
29859
+ const V = await w(_);
29860
+ h.value = V.data;
29857
29861
  }
29858
29862
  }
29859
29863
  E();
@@ -29866,7 +29870,7 @@ function oy(e, t) {
29866
29870
  onSaveAsync: ke,
29867
29871
  onSaveSuccessAsync: Fe = (ne) => ((_ == null ? void 0 : _.navBack) === !0 ? u() : (B.rowVersion != null && ne.rowVersion != null && (B.rowVersion = ne.rowVersion), E(), p.value = "view"), Promise.resolve(void 0))
29868
29872
  } = { ...e };
29869
- x({
29873
+ C({
29870
29874
  additionalUrl: V,
29871
29875
  data: B,
29872
29876
  nav: s,
@@ -29874,7 +29878,7 @@ function oy(e, t) {
29874
29878
  onGetSaveAsync: ae,
29875
29879
  onSaveAsync: ke,
29876
29880
  onSaveSuccessAsync: Fe,
29877
- proxyID: m.value,
29881
+ proxyID: f.value,
29878
29882
  // ...params.getOptions(),
29879
29883
  // ...(useBladeSrc ? bladeData.value : {}),
29880
29884
  mode: p.value
@@ -29892,7 +29896,7 @@ function oy(e, t) {
29892
29896
  var B;
29893
29897
  e.eager == !0 && await J({ deepRefresh: ((B = d == null ? void 0 : d.params) == null ? void 0 : B.refresh) == "true" });
29894
29898
  }), {
29895
- asyncItem: f,
29899
+ asyncItem: h,
29896
29900
  deleteItem: q,
29897
29901
  errorMsg: T,
29898
29902
  isChanged: N,
@@ -29910,7 +29914,7 @@ function oy(e, t) {
29910
29914
  saveItem: z,
29911
29915
  showError: I,
29912
29916
  toggleMode: O,
29913
- ...C
29917
+ ...m
29914
29918
  };
29915
29919
  }
29916
29920
  function KA(e) {
@@ -30170,7 +30174,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30170
30174
  })
30171
30175
  ]),
30172
30176
  content: K(({ isMobile: x }) => [
30173
- Je(ze(M(i).bladeData) + " ", 1),
30177
+ Xe(ze(M(i).asyncItem.value) + " ", 1),
30174
30178
  de(y.$slots, "body", {
30175
30179
  item: M(i).asyncItem.value,
30176
30180
  density: y.density,
@@ -30231,7 +30235,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30231
30235
  start: "",
30232
30236
  icon: "$content-save"
30233
30237
  }, null, 8, ["size"]),
30234
- Je("Save ")
30238
+ Xe("Save ")
30235
30239
  ]),
30236
30240
  _: 1
30237
30241
  }, 8, ["size"])) : re("", !0),
@@ -30247,7 +30251,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30247
30251
  start: "",
30248
30252
  icon: "$content-save"
30249
30253
  }, null, 8, ["size"]),
30250
- Je("Save And Close ")
30254
+ Xe("Save And Close ")
30251
30255
  ]),
30252
30256
  _: 1
30253
30257
  }, 8, ["size"])) : re("", !0)
@@ -30341,7 +30345,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30341
30345
  de(g.$slots, "blade-title-left"),
30342
30346
  S(Qm, { key: "2" }, {
30343
30347
  default: K(() => [
30344
- Je(ze(g.label), 1)
30348
+ Xe(ze(g.label), 1)
30345
30349
  ]),
30346
30350
  _: 1
30347
30351
  }),
@@ -30409,7 +30413,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30409
30413
  default: K(() => [
30410
30414
  S(zv, null, {
30411
30415
  default: K(() => [
30412
- Je(ze(g.label), 1)
30416
+ Xe(ze(g.label), 1)
30413
30417
  ]),
30414
30418
  _: 1
30415
30419
  }),
@@ -30428,7 +30432,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30428
30432
  "onUpdate:modelValue": w[4] || (w[4] = (x) => y.value = x)
30429
30433
  }, {
30430
30434
  default: K(() => [
30431
- Je(ze(g.errorMsg), 1)
30435
+ Xe(ze(g.errorMsg), 1)
30432
30436
  ]),
30433
30437
  _: 1
30434
30438
  }, 8, ["modelValue"])
@@ -30594,14 +30598,14 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30594
30598
  de(l.$slots, "prepend", {
30595
30599
  item: M(a).asyncItem.value
30596
30600
  }, () => [
30597
- Je(ze(l.prefix), 1)
30601
+ Xe(ze(l.prefix), 1)
30598
30602
  ]),
30599
30603
  de(l.$slots, "default", {
30600
30604
  item: M(a).asyncItem.value,
30601
30605
  deleteItem: M(a).deleteItem,
30602
30606
  save: M(a).saveItem
30603
30607
  }, () => [
30604
- Je(ze(r.value), 1)
30608
+ Xe(ze(r.value), 1)
30605
30609
  ]),
30606
30610
  de(l.$slots, "append", {
30607
30611
  item: M(a).asyncItem.value
@@ -30754,13 +30758,13 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30754
30758
  default: K(() => [
30755
30759
  S(Ja, null, {
30756
30760
  default: K(() => [
30757
- Je(ze(w.label), 1)
30761
+ Xe(ze(w.label), 1)
30758
30762
  ]),
30759
30763
  _: 1
30760
30764
  }),
30761
30765
  S(Xa, null, {
30762
30766
  default: K(() => [
30763
- Je(ze(s.value), 1)
30767
+ Xe(ze(s.value), 1)
30764
30768
  ]),
30765
30769
  _: 1
30766
30770
  })
@@ -30798,7 +30802,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30798
30802
  default: K(() => [
30799
30803
  s.label != null ? (H(), se(Ja, { key: 0 }, {
30800
30804
  default: K(() => [
30801
- Je(ze(s.label), 1)
30805
+ Xe(ze(s.label), 1)
30802
30806
  ]),
30803
30807
  _: 1
30804
30808
  })) : re("", !0),
@@ -30955,13 +30959,13 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
30955
30959
  default: K(() => [
30956
30960
  S(Ja, null, {
30957
30961
  default: K(() => [
30958
- Je(ze(c.label), 1)
30962
+ Xe(ze(c.label), 1)
30959
30963
  ]),
30960
30964
  _: 1
30961
30965
  }),
30962
30966
  S(Xa, null, {
30963
30967
  default: K(() => [
30964
- Je(ze(c.modelValue), 1)
30968
+ Xe(ze(c.modelValue), 1)
30965
30969
  ]),
30966
30970
  _: 1
30967
30971
  })
@@ -31208,7 +31212,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31208
31212
  title: "Automation"
31209
31213
  }), {
31210
31214
  default: K(() => [
31211
- Je(ze(b.automation ?? "select"), 1)
31215
+ Xe(ze(b.automation ?? "select"), 1)
31212
31216
  ]),
31213
31217
  _: 2
31214
31218
  }, 1040, ["disabled", "size"])
@@ -31239,7 +31243,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31239
31243
  title: "Guide"
31240
31244
  }), {
31241
31245
  default: K(() => [
31242
- Je(ze(b.guide ?? "select"), 1)
31246
+ Xe(ze(b.guide ?? "select"), 1)
31243
31247
  ]),
31244
31248
  _: 2
31245
31249
  }, 1040, ["disabled", "size"])
@@ -31291,7 +31295,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31291
31295
  title: "Trigger"
31292
31296
  }), {
31293
31297
  default: K(() => [
31294
- Je(ze(b.trigger ?? "select"), 1)
31298
+ Xe(ze(b.trigger ?? "select"), 1)
31295
31299
  ]),
31296
31300
  _: 2
31297
31301
  }, 1040, ["disabled"])
@@ -31342,7 +31346,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31342
31346
  "append-icon": "$menu-down"
31343
31347
  }), {
31344
31348
  default: K(() => [
31345
- Je(ze(b.custom ?? "select"), 1)
31349
+ Xe(ze(b.custom ?? "select"), 1)
31346
31350
  ]),
31347
31351
  _: 2
31348
31352
  }, 1040, ["disabled"])
@@ -31390,7 +31394,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31390
31394
  default: K(() => [
31391
31395
  S(Ja, null, {
31392
31396
  default: K(() => [
31393
- Je(ze(b.label), 1)
31397
+ Xe(ze(b.label), 1)
31394
31398
  ]),
31395
31399
  _: 1
31396
31400
  }),
@@ -31438,7 +31442,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31438
31442
  size: r.size
31439
31443
  }, {
31440
31444
  default: K(() => [
31441
- Je("$check")
31445
+ Xe("$check")
31442
31446
  ]),
31443
31447
  _: 1
31444
31448
  }, 8, ["size"])) : re("", !0)
@@ -31550,7 +31554,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31550
31554
  default: K(() => [
31551
31555
  S(ft, null, {
31552
31556
  default: K(() => [
31553
- Je(ze(M(t).drawerStick ? "$pin-off" : "$pin"), 1)
31557
+ Xe(ze(M(t).drawerStick ? "$pin-off" : "$pin"), 1)
31554
31558
  ]),
31555
31559
  _: 1
31556
31560
  })
@@ -31736,7 +31740,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31736
31740
  de(T.$slots, "actions"),
31737
31741
  S(ft, null, {
31738
31742
  default: K(() => [
31739
- Je("$chevron-up")
31743
+ Xe("$chevron-up")
31740
31744
  ]),
31741
31745
  _: 1
31742
31746
  }),
@@ -31815,13 +31819,13 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31815
31819
  de(T.$slots, "default", { item: b }, () => [
31816
31820
  T.itemText != null || T.textFilter != null || T.textFunction != null ? (H(), se(Xa, { key: 0 }, {
31817
31821
  default: K(() => [
31818
- Je(ze(f.value(b)), 1)
31822
+ Xe(ze(f.value(b)), 1)
31819
31823
  ]),
31820
31824
  _: 2
31821
31825
  }, 1024)) : re("", !0),
31822
31826
  T.itemSubtext != null || T.subtextFilter != null || T.subtextFunction != null ? (H(), se(Ja, { key: 1 }, {
31823
31827
  default: K(() => [
31824
- Je(ze(m.value(b)), 1)
31828
+ Xe(ze(m.value(b)), 1)
31825
31829
  ]),
31826
31830
  _: 2
31827
31831
  }, 1024)) : re("", !0)
@@ -31868,13 +31872,13 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31868
31872
  }, () => [
31869
31873
  T.itemText != null || T.textFilter != null || T.textFunction != null ? (H(), se(Xa, { key: 0 }, {
31870
31874
  default: K(() => [
31871
- Je(ze(f.value(b)), 1)
31875
+ Xe(ze(f.value(b)), 1)
31872
31876
  ]),
31873
31877
  _: 2
31874
31878
  }, 1024)) : re("", !0),
31875
31879
  T.itemSubtext != null || T.subtextFilter != null || T.subtextFunction != null ? (H(), se(Ja, { key: 1 }, {
31876
31880
  default: K(() => [
31877
- Je(ze(m.value(b)), 1)
31881
+ Xe(ze(m.value(b)), 1)
31878
31882
  ]),
31879
31883
  _: 2
31880
31884
  }, 1024)) : re("", !0)
@@ -31905,7 +31909,7 @@ const PM = { key: 0 }, LM = /* @__PURE__ */ tt({
31905
31909
  de(T.$slots, "actions"),
31906
31910
  S(ft, null, {
31907
31911
  default: K(() => [
31908
- Je("$chevron-down")
31912
+ Xe("$chevron-down")
31909
31913
  ]),
31910
31914
  _: 1
31911
31915
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.185",
3
+ "version": "1.4.187",
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": {
@@ -42,6 +42,7 @@
42
42
  "luxon": "^3.4.4",
43
43
  "thenby": "^1.3.4",
44
44
  "vue-chartjs": "^5.3.1",
45
+ "vue-draggable-resizable": "^3.0.0",
45
46
  "vuetify": "^3.6.7",
46
47
  "vuetify-use-dialog": "^0.6.11"
47
48
  },