bt-core-app 1.4.185 → 1.4.186

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