bt-core-app 2.0.56 → 2.0.58

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.
@@ -5692,7 +5692,7 @@ var fl = function() {
5692
5692
  function toe(e, t, a, n) {
5693
5693
  let l = a ?? [];
5694
5694
  for (var r in t)
5695
- (n == "only-obj1-props" || e.hasOwnProperty(r)) && !l.some((i) => i == r) && (e[r] = t[r]);
5695
+ (n == "all-obj2-props" || e.hasOwnProperty(r)) && !l.some((i) => i == r) && (e[r] = t[r]);
5696
5696
  return e;
5697
5697
  }
5698
5698
  function aoe(e, t, a) {
@@ -7112,7 +7112,7 @@ var h_ = { exports: {} };
7112
7112
  });
7113
7113
  return v(ie, X), ie;
7114
7114
  }
7115
- function It(R) {
7115
+ function $t(R) {
7116
7116
  var X = this, G = new d(function(ie, oe) {
7117
7117
  X.ready().then(function() {
7118
7118
  var re = X._dbInfo;
@@ -7194,7 +7194,7 @@ var h_ = { exports: {} };
7194
7194
  clear: Qe,
7195
7195
  length: Xe,
7196
7196
  key: Mt,
7197
- keys: It,
7197
+ keys: $t,
7198
7198
  dropInstance: qt
7199
7199
  };
7200
7200
  function nl() {
@@ -13487,14 +13487,14 @@ function yc(e, t, a) {
13487
13487
  function M() {
13488
13488
  var Le, Qe, Xe, Mt;
13489
13489
  if (o) {
13490
- const It = (Qe = (Le = i == null ? void 0 : i.bladeData) == null ? void 0 : Le.data) == null ? void 0 : Qe.page;
13491
- if (It != null)
13492
- return Number.parseInt(It);
13490
+ const $t = (Qe = (Le = i == null ? void 0 : i.bladeData) == null ? void 0 : Le.data) == null ? void 0 : Qe.page;
13491
+ if ($t != null)
13492
+ return Number.parseInt($t);
13493
13493
  }
13494
13494
  if (s) {
13495
- const It = (Mt = (Xe = a == null ? void 0 : a.route) == null ? void 0 : Xe.query) == null ? void 0 : Mt.page;
13496
- if (It != null)
13497
- return Number.parseInt(typeof It == "string" ? It : It.toString());
13495
+ const $t = (Mt = (Xe = a == null ? void 0 : a.route) == null ? void 0 : Xe.query) == null ? void 0 : Mt.page;
13496
+ if ($t != null)
13497
+ return Number.parseInt(typeof $t == "string" ? $t : $t.toString());
13498
13498
  }
13499
13499
  return 1;
13500
13500
  }
@@ -13529,34 +13529,34 @@ function yc(e, t, a) {
13529
13529
  }), we = A(() => e.errorMsg ?? O.value), ke = q(), pe = A(() => ke.value ?? e.loadingMsg ?? U.value), te = A(() => pe.value != null), Q = Ne(!1), de = Ne(e.startShowingSearch == !0), F = q(0), se = A(() => {
13530
13530
  let Le, Qe = [];
13531
13531
  k.value.forEach((Mt) => {
13532
- const It = p.value[Mt], ha = y.find((qt) => qt.name == It);
13533
- ha != null ? Le = Le != null ? `${Le}ANDALSO${ha.filterFunction()}` : ha.filterFunction() : Qe.push(It);
13532
+ const $t = p.value[Mt], ha = y.find((qt) => qt.name == $t);
13533
+ ha != null ? Le = Le != null ? `${Le}ANDALSO${ha.filterFunction()}` : ha.filterFunction() : Qe.push($t);
13534
13534
  });
13535
13535
  const Xe = {};
13536
13536
  return Tt(Qe) && (Xe.filterBy = Qe.toString()), Le != null && (Xe.query = Le), Xe;
13537
13537
  }), Ce = A(() => {
13538
- var Qe, Xe, Mt, It, ha, qt;
13538
+ var Qe, Xe, Mt, $t, ha, qt;
13539
13539
  let Le = e.itemID;
13540
- return Le == null && o && (Le = (Xe = (Qe = i == null ? void 0 : i.bladeData) == null ? void 0 : Qe.data) == null ? void 0 : Xe.id), Le == null && s && (Le = (It = (Mt = a == null ? void 0 : a.route) == null ? void 0 : Mt.query) == null ? void 0 : It.id), Le == null && s && (Le = (qt = (ha = a == null ? void 0 : a.route) == null ? void 0 : ha.params) == null ? void 0 : qt.id), Le;
13540
+ return Le == null && o && (Le = (Xe = (Qe = i == null ? void 0 : i.bladeData) == null ? void 0 : Qe.data) == null ? void 0 : Xe.id), Le == null && s && (Le = ($t = (Mt = a == null ? void 0 : a.route) == null ? void 0 : Mt.query) == null ? void 0 : $t.id), Le == null && s && (Le = (qt = (ha = a == null ? void 0 : a.route) == null ? void 0 : ha.params) == null ? void 0 : qt.id), Le;
13541
13541
  }), fe = q(Ce.value == "new" ? "new" : e.startEditing ? "edit" : "view"), Se = A(() => {
13542
13542
  var Qe, Xe, Mt;
13543
13543
  let Le = e.params != null ? { ...e.params } : {};
13544
- return e.paginate == "server" && e.itemsPerPage != null && (Le.includeCount = !0, Le.takeAmount = e.itemsPerPage, Le.takeFrom = (C.value - 1) * e.itemsPerPage), se.value != null && (Le = { ...Le, ...se.value }), $.value && (Le.includeInactive = !0), Tt(e.selectProps) && (Le.properties = (Qe = e.selectProps) == null ? void 0 : Qe.toString()), V.value != null && (Le.searchString = V.value), Tt(e.queryParams) && ((Xe = a == null ? void 0 : a.route) == null ? void 0 : Xe.query) != null && ((Mt = e.queryParams) == null || Mt.forEach((It) => {
13544
+ return e.paginate == "server" && e.itemsPerPage != null && (Le.includeCount = !0, Le.takeAmount = e.itemsPerPage, Le.takeFrom = (C.value - 1) * e.itemsPerPage), se.value != null && (Le = { ...Le, ...se.value }), $.value && (Le.includeInactive = !0), Tt(e.selectProps) && (Le.properties = (Qe = e.selectProps) == null ? void 0 : Qe.toString()), V.value != null && (Le.searchString = V.value), Tt(e.queryParams) && ((Xe = a == null ? void 0 : a.route) == null ? void 0 : Xe.query) != null && ((Mt = e.queryParams) == null || Mt.forEach(($t) => {
13545
13545
  var ha, qt, On, nl;
13546
- typeof It == "string" ? ((ha = a.route) == null ? void 0 : ha.query[It]) != null && (Le[It] = (qt = a.route) == null ? void 0 : qt.query[It]) : ((On = a.route) == null ? void 0 : On.query[It.key]) != null && (Le[It.value] = (nl = a.route) == null ? void 0 : nl.query[It.key]);
13546
+ typeof $t == "string" ? ((ha = a.route) == null ? void 0 : ha.query[$t]) != null && (Le[$t] = (qt = a.route) == null ? void 0 : qt.query[$t]) : ((On = a.route) == null ? void 0 : On.query[$t.key]) != null && (Le[$t.value] = (nl = a.route) == null ? void 0 : nl.query[$t.key]);
13547
13547
  })), Le;
13548
13548
  }), Re = A(() => (Le) => e.onCanDelete != null ? e.onCanDelete(Le) : !(Le != null && Le.isInactive === !0)), Ee = A(() => (Le) => e.onCanIntegrate != null ? e.onCanIntegrate(Le) : !(!Tt(h.value) || (Le == null ? void 0 : Le.isInactive) === !0)), nt = A(() => (Le) => Tt(m.value) ? m.value.some((Qe) => Fn(Le, h.value[Qe].localIDProp) != null) : h.value.some((Qe) => Fn(Le, Qe.localIDProp) != null)), me = A(() => (Le) => $.value ? e.onCanRestore != null ? e.onCanRestore(Le) : (Le == null ? void 0 : Le.isInactive) === !0 : !1), qe = e.onUpdateAsyncItem ?? ((Le, Qe) => {
13549
13549
  Qe.hasOwnProperty("rowVersion") && (Le.rowVersion = Qe.rowVersion), Qe.hasOwnProperty("version") && (Le.version = Qe.version), Qe.hasOwnProperty("isDeleted") && (Le.isDeleted = Qe.isDeleted), Qe.hasOwnProperty("isInactive") && (Le.isInactive = Qe.isInactive), Qe.hasOwnProperty("id") && (Le.id = Qe.id);
13550
13550
  }), vt = A(() => j.value.filter((Le) => !Le.hide)), Pt = A(() => {
13551
13551
  let Le = new Array();
13552
13552
  return vt.value.filter((Xe) => Xe.sublevel != null).forEach((Xe) => {
13553
- let Mt = Le.find((It) => It.position == Xe.sublevel);
13553
+ let Mt = Le.find(($t) => $t.position == Xe.sublevel);
13554
13554
  Mt == null ? Le.push({ position: Xe.sublevel ?? 0, values: [Xe] }) : Mt.values.push(Xe);
13555
13555
  }), Le.sort(fl.firstBy((Xe) => Xe.position));
13556
13556
  }), sa = A(() => {
13557
13557
  let Le = new Array();
13558
13558
  return vt.value.filter((Xe) => Xe.level != null).forEach((Xe) => {
13559
- let Mt = Le.find((It) => It.position == Xe.level);
13559
+ let Mt = Le.find(($t) => $t.position == Xe.level);
13560
13560
  Mt == null ? Le.push({ position: Xe.level ?? 0, values: [Xe] }) : Mt.values.push(Xe);
13561
13561
  }), Le.sort(fl.firstBy((Xe) => Xe.position));
13562
13562
  }), ft = A(() => vt.value.filter((Le) => Le.nav != null && Le.itemText != null || Le.textFilter != null || Le.display != null || Le.bool != null));
@@ -13580,8 +13580,8 @@ function yc(e, t, a) {
13580
13580
  if (Qe == null)
13581
13581
  return;
13582
13582
  if (e.confirmOnDelete) {
13583
- var It = await m1({ text: "Are you sure you want to delete?" });
13584
- if (!It.isConfirmed)
13583
+ var $t = await m1({ text: "Are you sure you want to delete?" });
13584
+ if (!$t.isConfirmed)
13585
13585
  return;
13586
13586
  }
13587
13587
  const ha = (qt, On) => {
@@ -13617,7 +13617,7 @@ function yc(e, t, a) {
13617
13617
  const {
13618
13618
  additionalUrl: Qe,
13619
13619
  onRestoreAsync: Xe,
13620
- onRestoreSuccessAsync: Mt = (It) => (qe(Le, It), It)
13620
+ onRestoreSuccessAsync: Mt = ($t) => (qe(Le, $t), $t)
13621
13621
  } = { ...e };
13622
13622
  return B({
13623
13623
  additionalUrl: Qe,
@@ -13635,7 +13635,7 @@ function yc(e, t, a) {
13635
13635
  const Qe = ht(Le), {
13636
13636
  additionalUrl: Xe,
13637
13637
  onCanSaveAsync: Mt,
13638
- onGetSaveAsync: It,
13638
+ onGetSaveAsync: $t,
13639
13639
  onSaveAsync: ha,
13640
13640
  onSaveSuccessAsync: qt
13641
13641
  } = { ...e };
@@ -13644,7 +13644,7 @@ function yc(e, t, a) {
13644
13644
  data: Qe,
13645
13645
  nav: u,
13646
13646
  onCanSaveAsync: Mt,
13647
- onGetSaveAsync: It,
13647
+ onGetSaveAsync: $t,
13648
13648
  onSaveAsync: ha,
13649
13649
  onSaveSuccessAsync: qt,
13650
13650
  proxyID: D.value,
@@ -13664,8 +13664,8 @@ function yc(e, t, a) {
13664
13664
  let Le = e.onFilter ? e.onFilter(z.value) : z.value;
13665
13665
  if (Tt(e.localFilters) && k.value.forEach((Qe) => {
13666
13666
  var Mt;
13667
- const Xe = (Mt = e.localFilters) == null ? void 0 : Mt.find((It) => It.name == p.value[Qe]);
13668
- Xe != null && (Xe.onFilter != null ? Le = Xe.onFilter(Le) : Xe.predicate != null && (Le = Le.filter((It) => Xe.predicate(It))));
13667
+ const Xe = (Mt = e.localFilters) == null ? void 0 : Mt.find(($t) => $t.name == p.value[Qe]);
13668
+ Xe != null && (Xe.onFilter != null ? Le = Xe.onFilter(Le) : Xe.predicate != null && (Le = Le.filter(($t) => Xe.predicate($t))));
13669
13669
  }), e.inactiveProp != null && !$.value) {
13670
13670
  const Qe = e.inactiveProp;
13671
13671
  Le = Le.filter((Xe) => Xe[Qe] !== !0);
@@ -13691,7 +13691,7 @@ function yc(e, t, a) {
13691
13691
  Xe <= 0 || (e.paginate == "server" ? Qe != null && (F.value = Math.ceil(Qe / Xe)) : e.paginate == "local" && (F.value = Math.ceil(Le.length / Xe)));
13692
13692
  }
13693
13693
  async function Ie(Le) {
13694
- var Qe, Xe, Mt, It;
13694
+ var Qe, Xe, Mt, $t;
13695
13695
  if (Q.value = !1, (Le == null ? void 0 : Le.resetSearch) === !0 && (de.value = !1, V.value = void 0), e.items != null) {
13696
13696
  let ha = { data: e.items };
13697
13697
  ke.value = "Loading";
@@ -13729,7 +13729,7 @@ function yc(e, t, a) {
13729
13729
  nav: u,
13730
13730
  params: {
13731
13731
  ...Se.value,
13732
- ...o ? (It = (Mt = i == null ? void 0 : i.bladeData) == null ? void 0 : Mt.data) == null ? void 0 : It.params : {}
13732
+ ...o ? ($t = (Mt = i == null ? void 0 : i.bladeData) == null ? void 0 : Mt.data) == null ? void 0 : $t.params : {}
13733
13733
  },
13734
13734
  proxyID: D.value,
13735
13735
  refresh: (Le == null ? void 0 : Le.deepRefresh) ?? !1,
@@ -13746,16 +13746,20 @@ function yc(e, t, a) {
13746
13746
  mn(), Y && Y(z.value), (a == null ? void 0 : a.onFinishedAsync) != null && await (a == null ? void 0 : a.onFinishedAsync(z.value)), t && t("fetched", z.value);
13747
13747
  }
13748
13748
  function he(Le, Qe) {
13749
- var Mt;
13749
+ var $t;
13750
13750
  const Xe = ht(Le);
13751
- e.canUnselect ? K = Xe === K ? null : Xe : K = Xe ?? K, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(Xe)) && (e.onSelectItem != null ? e.onSelectItem(K) : e.itemBladeName && K == null ? i == null || i.closeBlade({ bladeName: e.itemBladeName }) : Qe == "page" ? (Mt = a == null ? void 0 : a.router) == null || Mt.push({
13752
- name: e.itemBladeName,
13753
- params: { id: Xe.id }
13754
- }) : e.itemBladeName && (i == null || i.updateBlade({
13755
- data: { id: Xe.id, data: Xe },
13756
- bladeName: e.itemBladeName,
13757
- closeBladeNames: e.closeBladeNames
13758
- }))), t != null && (t("select", K), t("confirm", K));
13751
+ if (e.canUnselect ? K = Xe === K ? null : Xe : K = Xe ?? K, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(Xe))) {
13752
+ var Mt = e.navType == "blade" || e.itemBladeName != null && K == null;
13753
+ e.onSelectItem != null ? e.onSelectItem(K) : Mt ? i == null || i.closeBlade({ bladeName: e.itemBladeName }) : e.navType == "page" || Qe == "page" ? ($t = a == null ? void 0 : a.router) == null || $t.push({
13754
+ name: e.itemBladeName,
13755
+ params: { id: Xe.id }
13756
+ }) : e.itemBladeName != null && (i == null || i.updateBlade({
13757
+ data: { id: Xe.id, data: Xe },
13758
+ bladeName: e.itemBladeName,
13759
+ closeBladeNames: e.closeBladeNames
13760
+ }));
13761
+ }
13762
+ t != null && (t("select", K), t("confirm", K));
13759
13763
  }
13760
13764
  function xe() {
13761
13765
  de.value = !de.value, V.value = void 0, Ie();
@@ -22723,6 +22727,7 @@ const O7 = ["color", "file", "time", "date", "datetime-local", "week", "month"],
22723
22727
  localFilters: {},
22724
22728
  localOnly: { type: Boolean },
22725
22729
  nav: {},
22730
+ navType: {},
22726
22731
  onCanDelete: {},
22727
22732
  onCanDeleteAsync: {},
22728
22733
  onCanIntegrate: {},
@@ -23924,6 +23929,7 @@ const nF = {
23924
23929
  localFilters: {},
23925
23930
  localOnly: { type: Boolean },
23926
23931
  nav: {},
23932
+ navType: {},
23927
23933
  onCanDelete: {},
23928
23934
  onCanDeleteAsync: {},
23929
23935
  onCanIntegrate: {},
@@ -28662,15 +28668,15 @@ const AR = di({
28662
28668
  function Da(e, t) {
28663
28669
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Hk in e ? e[Hk](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
28664
28670
  }
28665
- function $t(e, t) {
28671
+ function It(e, t) {
28666
28672
  return Da(t || e, e);
28667
28673
  }
28668
28674
  function wr(e, t, a) {
28669
- const n = $t(e, a == null ? void 0 : a.in);
28675
+ const n = It(e, a == null ? void 0 : a.in);
28670
28676
  return isNaN(t) ? Da((a == null ? void 0 : a.in) || e, NaN) : (t && n.setDate(n.getDate() + t), n);
28671
28677
  }
28672
28678
  function ti(e, t, a) {
28673
- const n = $t(e, a == null ? void 0 : a.in);
28679
+ const n = It(e, a == null ? void 0 : a.in);
28674
28680
  if (isNaN(t))
28675
28681
  return Da((a == null ? void 0 : a.in) || e, NaN);
28676
28682
  if (!t)
@@ -28693,11 +28699,11 @@ function LD(e, t, a) {
28693
28699
  hours: o = 0,
28694
28700
  minutes: s = 0,
28695
28701
  seconds: u = 0
28696
- } = t, c = $t(e, a == null ? void 0 : a.in), d = l || n ? ti(c, l + n * 12) : c, v = i || r ? wr(d, i + r * 7) : d, f = s + o * 60, h = (u + f * 60) * 1e3;
28702
+ } = t, c = It(e, a == null ? void 0 : a.in), d = l || n ? ti(c, l + n * 12) : c, v = i || r ? wr(d, i + r * 7) : d, f = s + o * 60, h = (u + f * 60) * 1e3;
28697
28703
  return Da((a == null ? void 0 : a.in) || e, +v + h);
28698
28704
  }
28699
28705
  function a9(e, t, a) {
28700
- return Da((a == null ? void 0 : a.in) || e, +$t(e) + t);
28706
+ return Da((a == null ? void 0 : a.in) || e, +It(e) + t);
28701
28707
  }
28702
28708
  function n9(e, t, a) {
28703
28709
  return a9(e, t * VD, a);
@@ -28708,14 +28714,14 @@ function cu() {
28708
28714
  }
28709
28715
  function ii(e, t) {
28710
28716
  var o, s, u, c;
28711
- const a = cu(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((c = (u = a.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, l = $t(e, t == null ? void 0 : t.in), r = l.getDay(), i = (r < n ? 7 : 0) + r - n;
28717
+ const a = cu(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((c = (u = a.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, l = It(e, t == null ? void 0 : t.in), r = l.getDay(), i = (r < n ? 7 : 0) + r - n;
28712
28718
  return l.setDate(l.getDate() - i), l.setHours(0, 0, 0, 0), l;
28713
28719
  }
28714
28720
  function kc(e, t) {
28715
28721
  return ii(e, { ...t, weekStartsOn: 1 });
28716
28722
  }
28717
28723
  function PD(e, t) {
28718
- const a = $t(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = Da(a, 0);
28724
+ const a = It(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = Da(a, 0);
28719
28725
  l.setFullYear(n + 1, 0, 4), l.setHours(0, 0, 0, 0);
28720
28726
  const r = kc(l), i = Da(a, 0);
28721
28727
  i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
@@ -28723,7 +28729,7 @@ function PD(e, t) {
28723
28729
  return a.getTime() >= r.getTime() ? n + 1 : a.getTime() >= o.getTime() ? n : n - 1;
28724
28730
  }
28725
28731
  function $m(e) {
28726
- const t = $t(e), a = new Date(
28732
+ const t = It(e), a = new Date(
28727
28733
  Date.UTC(
28728
28734
  t.getFullYear(),
28729
28735
  t.getMonth(),
@@ -28744,7 +28750,7 @@ function qf(e, ...t) {
28744
28750
  return t.map(a);
28745
28751
  }
28746
28752
  function Wk(e, t) {
28747
- const a = $t(e, t == null ? void 0 : t.in);
28753
+ const a = It(e, t == null ? void 0 : t.in);
28748
28754
  return a.setHours(0, 0, 0, 0), a;
28749
28755
  }
28750
28756
  function BD(e, t, a) {
@@ -28766,17 +28772,17 @@ function tb(e, t, a) {
28766
28772
  return ti(e, t * 12, a);
28767
28773
  }
28768
28774
  function jk(e, t) {
28769
- const a = +$t(e) - +$t(t);
28775
+ const a = +It(e) - +It(t);
28770
28776
  return a < 0 ? -1 : a > 0 ? 1 : a;
28771
28777
  }
28772
28778
  function ND(e) {
28773
28779
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
28774
28780
  }
28775
28781
  function Wd(e) {
28776
- return !(!ND(e) && typeof e != "number" || isNaN(+$t(e)));
28782
+ return !(!ND(e) && typeof e != "number" || isNaN(+It(e)));
28777
28783
  }
28778
28784
  function Uk(e, t) {
28779
- const a = $t(e, t == null ? void 0 : t.in);
28785
+ const a = It(e, t == null ? void 0 : t.in);
28780
28786
  return Math.trunc(a.getMonth() / 3) + 1;
28781
28787
  }
28782
28788
  function o9(e, t, a) {
@@ -28816,7 +28822,7 @@ function RD(e, t) {
28816
28822
  return l ? s.reverse() : s;
28817
28823
  }
28818
28824
  function Ps(e, t) {
28819
- const a = $t(e, t == null ? void 0 : t.in), n = a.getMonth(), l = n - n % 3;
28825
+ const a = It(e, t == null ? void 0 : t.in), n = a.getMonth(), l = n - n % 3;
28820
28826
  return a.setMonth(l, 1), a.setHours(0, 0, 0, 0), a;
28821
28827
  }
28822
28828
  function u9(e, t) {
@@ -28833,24 +28839,24 @@ function u9(e, t) {
28833
28839
  return l ? s.reverse() : s;
28834
28840
  }
28835
28841
  function c9(e, t) {
28836
- const a = $t(e, t == null ? void 0 : t.in);
28842
+ const a = It(e, t == null ? void 0 : t.in);
28837
28843
  return a.setDate(1), a.setHours(0, 0, 0, 0), a;
28838
28844
  }
28839
28845
  function zD(e, t) {
28840
- const a = $t(e, t == null ? void 0 : t.in), n = a.getFullYear();
28846
+ const a = It(e, t == null ? void 0 : t.in), n = a.getFullYear();
28841
28847
  return a.setFullYear(n + 1, 0, 0), a.setHours(23, 59, 59, 999), a;
28842
28848
  }
28843
28849
  function uf(e, t) {
28844
- const a = $t(e, t == null ? void 0 : t.in);
28850
+ const a = It(e, t == null ? void 0 : t.in);
28845
28851
  return a.setFullYear(a.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
28846
28852
  }
28847
28853
  function OD(e, t) {
28848
28854
  var o, s, u, c;
28849
- const a = cu(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((c = (u = a.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, l = $t(e, t == null ? void 0 : t.in), r = l.getDay(), i = (r < n ? -7 : 0) + 6 - (r - n);
28855
+ const a = cu(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((c = (u = a.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, l = It(e, t == null ? void 0 : t.in), r = l.getDay(), i = (r < n ? -7 : 0) + 6 - (r - n);
28850
28856
  return l.setDate(l.getDate() + i), l.setHours(23, 59, 59, 999), l;
28851
28857
  }
28852
28858
  function Yk(e, t) {
28853
- const a = $t(e, t == null ? void 0 : t.in), n = a.getMonth(), l = n - n % 3 + 3;
28859
+ const a = It(e, t == null ? void 0 : t.in), n = a.getMonth(), l = n - n % 3 + 3;
28854
28860
  return a.setMonth(l, 0), a.setHours(23, 59, 59, 999), a;
28855
28861
  }
28856
28862
  const d9 = {
@@ -29287,16 +29293,16 @@ const $9 = /^(\d+)(th|st|nd|rd)?/i, I9 = /\d+/i, E9 = {
29287
29293
  }
29288
29294
  };
29289
29295
  function W9(e, t) {
29290
- const a = $t(e, t == null ? void 0 : t.in);
29296
+ const a = It(e, t == null ? void 0 : t.in);
29291
29297
  return BD(a, uf(a)) + 1;
29292
29298
  }
29293
29299
  function ab(e, t) {
29294
- const a = $t(e, t == null ? void 0 : t.in), n = +kc(a) - +r9(a);
29300
+ const a = It(e, t == null ? void 0 : t.in), n = +kc(a) - +r9(a);
29295
29301
  return Math.round(n / ED) + 1;
29296
29302
  }
29297
29303
  function nb(e, t) {
29298
29304
  var c, d, v, f;
29299
- const a = $t(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = cu(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (v = l.locale) == null ? void 0 : v.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = Da((t == null ? void 0 : t.in) || e, 0);
29305
+ const a = It(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = cu(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (v = l.locale) == null ? void 0 : v.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = Da((t == null ? void 0 : t.in) || e, 0);
29300
29306
  i.setFullYear(n + 1, 0, r), i.setHours(0, 0, 0, 0);
29301
29307
  const o = ii(i, t), s = Da((t == null ? void 0 : t.in) || e, 0);
29302
29308
  s.setFullYear(n, 0, r), s.setHours(0, 0, 0, 0);
@@ -29309,7 +29315,7 @@ function j9(e, t) {
29309
29315
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), ii(r, t);
29310
29316
  }
29311
29317
  function lb(e, t) {
29312
- const a = $t(e, t == null ? void 0 : t.in), n = +ii(a, t) - +j9(a, t);
29318
+ const a = It(e, t == null ? void 0 : t.in), n = +ii(a, t) - +j9(a, t);
29313
29319
  return Math.round(n / ED) + 1;
29314
29320
  }
29315
29321
  function _a(e, t) {
@@ -29944,7 +29950,7 @@ function Z9(e, t, a) {
29944
29950
  const K9 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X9 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q9 = /^'([^]*?)'?$/, J9 = /''/g, ez = /[a-zA-Z]/;
29945
29951
  function Ii(e, t, a) {
29946
29952
  var c, d, v, f, g, h, m, y;
29947
- const n = cu(), l = (a == null ? void 0 : a.locale) ?? n.locale ?? HD, r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((d = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (v = n.locale) == null ? void 0 : v.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (a == null ? void 0 : a.weekStartsOn) ?? ((h = (g = a == null ? void 0 : a.locale) == null ? void 0 : g.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((y = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, o = $t(e, a == null ? void 0 : a.in);
29953
+ const n = cu(), l = (a == null ? void 0 : a.locale) ?? n.locale ?? HD, r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((d = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (v = n.locale) == null ? void 0 : v.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (a == null ? void 0 : a.weekStartsOn) ?? ((h = (g = a == null ? void 0 : a.locale) == null ? void 0 : g.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((y = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, o = It(e, a == null ? void 0 : a.in);
29948
29954
  if (!Wd(o))
29949
29955
  throw new RangeError("Invalid time value");
29950
29956
  let s = t.match(X9).map((w) => {
@@ -29988,42 +29994,42 @@ function tz(e) {
29988
29994
  return t ? t[1].replace(J9, "'") : e;
29989
29995
  }
29990
29996
  function az(e, t) {
29991
- return $t(e, t == null ? void 0 : t.in).getDay();
29997
+ return It(e, t == null ? void 0 : t.in).getDay();
29992
29998
  }
29993
29999
  function nz(e, t) {
29994
- const a = $t(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = a.getMonth(), r = Da(a, 0);
30000
+ const a = It(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = a.getMonth(), r = Da(a, 0);
29995
30001
  return r.setFullYear(n, l + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
29996
30002
  }
29997
30003
  function lz() {
29998
30004
  return Object.assign({}, cu());
29999
30005
  }
30000
30006
  function bo(e, t) {
30001
- return $t(e, t == null ? void 0 : t.in).getHours();
30007
+ return It(e, t == null ? void 0 : t.in).getHours();
30002
30008
  }
30003
30009
  function rz(e, t) {
30004
- const a = $t(e, t == null ? void 0 : t.in).getDay();
30010
+ const a = It(e, t == null ? void 0 : t.in).getDay();
30005
30011
  return a === 0 ? 7 : a;
30006
30012
  }
30007
30013
  function ns(e, t) {
30008
- return $t(e, t == null ? void 0 : t.in).getMinutes();
30014
+ return It(e, t == null ? void 0 : t.in).getMinutes();
30009
30015
  }
30010
30016
  function na(e, t) {
30011
- return $t(e, t == null ? void 0 : t.in).getMonth();
30017
+ return It(e, t == null ? void 0 : t.in).getMonth();
30012
30018
  }
30013
30019
  function Sc(e) {
30014
- return $t(e).getSeconds();
30020
+ return It(e).getSeconds();
30015
30021
  }
30016
30022
  function Ft(e, t) {
30017
- return $t(e, t == null ? void 0 : t.in).getFullYear();
30023
+ return It(e, t == null ? void 0 : t.in).getFullYear();
30018
30024
  }
30019
30025
  function Qs(e, t) {
30020
- return +$t(e) > +$t(t);
30026
+ return +It(e) > +It(t);
30021
30027
  }
30022
30028
  function Cc(e, t) {
30023
- return +$t(e) < +$t(t);
30029
+ return +It(e) < +It(t);
30024
30030
  }
30025
30031
  function Uu(e, t) {
30026
- return +$t(e) == +$t(t);
30032
+ return +It(e) == +It(t);
30027
30033
  }
30028
30034
  function iz(e, t) {
30029
30035
  const a = oz(t) ? new t(0) : Da(t, 0);
@@ -30637,8 +30643,8 @@ class bz extends ba {
30637
30643
  }
30638
30644
  }
30639
30645
  function wz(e, t, a) {
30640
- const n = $t(e, a == null ? void 0 : a.in), l = lb(n, a) - t;
30641
- return n.setDate(n.getDate() - l * 7), $t(n, a == null ? void 0 : a.in);
30646
+ const n = It(e, a == null ? void 0 : a.in), l = lb(n, a) - t;
30647
+ return n.setDate(n.getDate() - l * 7), It(n, a == null ? void 0 : a.in);
30642
30648
  }
30643
30649
  class xz extends ba {
30644
30650
  constructor() {
@@ -30678,7 +30684,7 @@ class xz extends ba {
30678
30684
  }
30679
30685
  }
30680
30686
  function kz(e, t, a) {
30681
- const n = $t(e, a == null ? void 0 : a.in), l = ab(n, a) - t;
30687
+ const n = It(e, a == null ? void 0 : a.in), l = ab(n, a) - t;
30682
30688
  return n.setDate(n.getDate() - l * 7), n;
30683
30689
  }
30684
30690
  class Sz extends ba {
@@ -30815,7 +30821,7 @@ class Tz extends ba {
30815
30821
  }
30816
30822
  function ib(e, t, a) {
30817
30823
  var d, v, f, g;
30818
- const n = cu(), l = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : v.weekStartsOn) ?? n.weekStartsOn ?? ((g = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : g.weekStartsOn) ?? 0, r = $t(e, a == null ? void 0 : a.in), i = r.getDay(), s = (t % 7 + 7) % 7, u = 7 - l, c = t < 0 || t > 6 ? t - (i + u) % 7 : (s + u) % 7 - (i + u) % 7;
30824
+ const n = cu(), l = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : v.weekStartsOn) ?? n.weekStartsOn ?? ((g = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : g.weekStartsOn) ?? 0, r = It(e, a == null ? void 0 : a.in), i = r.getDay(), s = (t % 7 + 7) % 7, u = 7 - l, c = t < 0 || t > 6 ? t - (i + u) % 7 : (s + u) % 7 - (i + u) % 7;
30819
30825
  return wr(r, c, a);
30820
30826
  }
30821
30827
  class Dz extends ba {
@@ -30986,7 +30992,7 @@ class $z extends ba {
30986
30992
  }
30987
30993
  }
30988
30994
  function Iz(e, t, a) {
30989
- const n = $t(e, a == null ? void 0 : a.in), l = rz(n, a), r = t - l;
30995
+ const n = It(e, a == null ? void 0 : a.in), l = rz(n, a), r = t - l;
30990
30996
  return wr(n, r, a);
30991
30997
  }
30992
30998
  class Ez extends ba {
@@ -31493,7 +31499,7 @@ function Jy(e, t, a, n) {
31493
31499
  var m, y, w, p, k, b, S, C;
31494
31500
  const l = () => Da((n == null ? void 0 : n.in) || a, NaN), r = lz(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? HD, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((b = (k = n == null ? void 0 : n.locale) == null ? void 0 : k.options) == null ? void 0 : b.weekStartsOn) ?? r.weekStartsOn ?? ((C = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : C.weekStartsOn) ?? 0;
31495
31501
  if (!t)
31496
- return e ? l() : $t(a, n == null ? void 0 : n.in);
31502
+ return e ? l() : It(a, n == null ? void 0 : n.in);
31497
31503
  const u = {
31498
31504
  firstWeekContainsDate: o,
31499
31505
  weekStartsOn: s,
@@ -31549,7 +31555,7 @@ function Jy(e, t, a, n) {
31549
31555
  const f = c.map((M) => M.priority).sort((M, T) => T - M).filter((M, T, D) => D.indexOf(M) === T).map(
31550
31556
  (M) => c.filter((T) => T.priority === M).sort((T, D) => D.subPriority - T.subPriority)
31551
31557
  ).map((M) => M[0]);
31552
- let g = $t(a, n == null ? void 0 : n.in);
31558
+ let g = It(a, n == null ? void 0 : n.in);
31553
31559
  if (isNaN(+g))
31554
31560
  return l();
31555
31561
  const h = {};
@@ -31576,33 +31582,33 @@ function KD(e, t, a) {
31576
31582
  return wr(e, -t, a);
31577
31583
  }
31578
31584
  function XD(e, t, a) {
31579
- const n = $t(e, a == null ? void 0 : a.in), l = n.getFullYear(), r = n.getDate(), i = Da((a == null ? void 0 : a.in) || e, 0);
31585
+ const n = It(e, a == null ? void 0 : a.in), l = n.getFullYear(), r = n.getDate(), i = Da((a == null ? void 0 : a.in) || e, 0);
31580
31586
  i.setFullYear(l, t, 15), i.setHours(0, 0, 0, 0);
31581
31587
  const o = nz(i);
31582
31588
  return n.setMonth(t, Math.min(r, o)), n;
31583
31589
  }
31584
31590
  function Ia(e, t, a) {
31585
- let n = $t(e, a == null ? void 0 : a.in);
31591
+ let n = It(e, a == null ? void 0 : a.in);
31586
31592
  return isNaN(+n) ? Da((a == null ? void 0 : a.in) || e, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = XD(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
31587
31593
  }
31588
31594
  function tO(e, t, a) {
31589
- const n = $t(e, a == null ? void 0 : a.in);
31595
+ const n = It(e, a == null ? void 0 : a.in);
31590
31596
  return n.setHours(t), n;
31591
31597
  }
31592
31598
  function QD(e, t, a) {
31593
- const n = $t(e, a == null ? void 0 : a.in);
31599
+ const n = It(e, a == null ? void 0 : a.in);
31594
31600
  return n.setMilliseconds(t), n;
31595
31601
  }
31596
31602
  function aO(e, t, a) {
31597
- const n = $t(e, a == null ? void 0 : a.in);
31603
+ const n = It(e, a == null ? void 0 : a.in);
31598
31604
  return n.setMinutes(t), n;
31599
31605
  }
31600
31606
  function JD(e, t, a) {
31601
- const n = $t(e, a == null ? void 0 : a.in);
31607
+ const n = It(e, a == null ? void 0 : a.in);
31602
31608
  return n.setSeconds(t), n;
31603
31609
  }
31604
31610
  function Di(e, t, a) {
31605
- const n = $t(e, a == null ? void 0 : a.in);
31611
+ const n = It(e, a == null ? void 0 : a.in);
31606
31612
  return isNaN(+n) ? Da((a == null ? void 0 : a.in) || e, NaN) : (n.setFullYear(t), n);
31607
31613
  }
31608
31614
  function Mc(e, t, a) {
@@ -34876,10 +34882,10 @@ const t0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
34876
34882
  const ze = 6 - he.length, Je = (xe.getDay() + 7 - He) % 7, ct = 6 - (Be.getDay() + 7 - He) % 7, [Le, Qe] = Ce(Je, ct);
34877
34883
  for (let Xe = 1; Xe <= ze; Xe++)
34878
34884
  if (Qe ? !!(Xe % 2) == Le : Le) {
34879
- const Mt = he[0].days[0], It = Se(wr(Mt.value, -7), na(xe));
34880
- he.unshift({ days: It });
34885
+ const Mt = he[0].days[0], $t = Se(wr(Mt.value, -7), na(xe));
34886
+ he.unshift({ days: $t });
34881
34887
  } else {
34882
- const Mt = he[he.length - 1], It = Mt.days[Mt.days.length - 1], ha = Se(wr(It.value, 1), na(xe));
34888
+ const Mt = he[he.length - 1], $t = Mt.days[Mt.days.length - 1], ha = Se(wr($t.value, 1), na(xe));
34883
34889
  he.push({ days: ha });
34884
34890
  }
34885
34891
  }
@@ -43601,6 +43607,7 @@ const UU = /* @__PURE__ */ Yf(WU, [["render", jU]]), YU = { class: "d-flex align
43601
43607
  loadingMsg: {},
43602
43608
  localFilters: {},
43603
43609
  localOnly: { type: Boolean },
43610
+ navType: {},
43604
43611
  onCanDelete: {},
43605
43612
  onCanDeleteAsync: {},
43606
43613
  onCanIntegrate: {},
@@ -43974,6 +43981,7 @@ const UU = /* @__PURE__ */ Yf(WU, [["render", jU]]), YU = { class: "d-flex align
43974
43981
  loadingMsg: {},
43975
43982
  localFilters: {},
43976
43983
  localOnly: { type: Boolean },
43984
+ navType: {},
43977
43985
  onCanDelete: {},
43978
43986
  onCanDeleteAsync: {},
43979
43987
  onCanIntegrate: {},
@@ -53437,7 +53445,7 @@ var t5 = { exports: {} };
53437
53445
  });
53438
53446
  return v(ie, X), ie;
53439
53447
  }
53440
- function It(R) {
53448
+ function $t(R) {
53441
53449
  var X = this, G = new d(function(ie, oe) {
53442
53450
  X.ready().then(function() {
53443
53451
  var re = X._dbInfo;
@@ -53519,7 +53527,7 @@ var t5 = { exports: {} };
53519
53527
  clear: Qe,
53520
53528
  length: Xe,
53521
53529
  key: Mt,
53522
- keys: It,
53530
+ keys: $t,
53523
53531
  dropInstance: qt
53524
53532
  };
53525
53533
  function nl() {
@@ -70141,8 +70149,8 @@ const nae = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${
70141
70149
  const Xe = Ie[0].days[0], Mt = fe(Zr(Xe.value, -7), Qt(he));
70142
70150
  Ie.unshift({ days: Mt });
70143
70151
  } else {
70144
- const Xe = Ie[Ie.length - 1], Mt = Xe.days[Xe.days.length - 1], It = fe(Zr(Mt.value, 1), Qt(he));
70145
- Ie.push({ days: It });
70152
+ const Xe = Ie[Ie.length - 1], Mt = Xe.days[Xe.days.length - 1], $t = fe(Zr(Mt.value, 1), Qt(he));
70153
+ Ie.push({ days: $t });
70146
70154
  }
70147
70155
  }
70148
70156
  return Ie;
package/dist/index.d.ts CHANGED
@@ -1149,6 +1149,7 @@ export declare interface ListProps<T, TSave, TReturn> {
1149
1149
  localFilters?: LocalFilter[];
1150
1150
  localOnly?: boolean;
1151
1151
  nav?: string;
1152
+ navType?: 'blade' | 'page';
1152
1153
  /**for defining if deletable (show button or not) */
1153
1154
  onCanDelete?: (item: TReturn) => boolean;
1154
1155
  /**when trying to delete in api */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.56",
3
+ "version": "2.0.58",
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": {