bt-core-app 2.0.107 → 2.0.109

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.
@@ -7814,7 +7814,7 @@ function iP(e) {
7814
7814
  if (e.getStorageKey != null)
7815
7815
  return e.getStorageKey(y);
7816
7816
  if (!va(y.itemID))
7817
- return `${s(y)}_${y.itemID}`;
7817
+ return `${s(y)}_${y.itemID ?? "no-item-id"}`;
7818
7818
  let k = "";
7819
7819
  const C = b.params ?? {};
7820
7820
  return C != null && (k = Object.entries(C).sort(vl.firstBy((M) => M[0])).map((M) => `${M[0]}=${JSON.stringify(M[1])}`).join("&")), `${s(y)}_${k ?? "no-params"}`;
@@ -7908,7 +7908,7 @@ function iP(e) {
7908
7908
  };
7909
7909
  C == "update" ? a.value[b] = D : C == "remove" && delete a.value[b], l == !0 && (C == "update" ? await r.setItem(b, Wt(D)) : C == "remove" && await r.removeItem(b));
7910
7910
  var A = await r.keys();
7911
- let V = c(k), L = s(V), P = `${L}_${V.itemID}`;
7911
+ let V = c(k), L = s(V), P = `${L}_${V.itemID ?? "no-item-id"}`;
7912
7912
  A = A.filter((R) => (R.startsWith(L) || R.startsWith(P)) && R != b), Object.entries(a.value).filter((R) => A.some((I) => R[0] == I)).forEach((R) => {
7913
7913
  const I = R[1].data;
7914
7914
  if (I != null)
@@ -8652,7 +8652,7 @@ function uP(e) {
8652
8652
  let w = new URLSearchParams();
8653
8653
  return Object.entries(p).forEach((S) => {
8654
8654
  S[1] != null && w.append(S[0], S[1]);
8655
- }), p.filterBy && w.set("filterBy", p.filterBy), p.includeCount && w.set("includeCount", p.includeCount.toString()), p.includeDetails != null && w.set("includeDetails", p.includeDetails.toString()), p.includeInactive && w.set("includeInactive", p.includeInactive.toString()), p.properties && w.set("properties", p.properties.toString()), p.query && w.set("query", p.query.toString()), p.searchString && w.set("searchString", p.searchString), p.sortOrder && w.set("sortOrder", p.sortOrder), p.sortBy && w.set("sortBy", p.sortBy), p.takeFrom && w.set("takeFrom", p.takeFrom.toString()), p.takeAmount && w.set("takeAmount", p.takeAmount.toString()), p.other && Object.entries(p.other).forEach((S) => {
8655
+ }), p.filterBy && w.set("filterBy", p.filterBy), p.includeCount && w.set("includeCount", p.includeCount.toString()), p.includeInactive && w.set("includeInactive", p.includeInactive.toString()), p.properties && w.set("properties", p.properties.toString()), p.query && w.set("query", p.query.toString()), p.searchString && w.set("searchString", p.searchString), p.sortOrder && w.set("sortOrder", p.sortOrder), p.sortBy && w.set("sortBy", p.sortBy), p.takeFrom && w.set("takeFrom", p.takeFrom.toString()), p.takeAmount && w.set("takeAmount", p.takeAmount.toString()), p.other && Object.entries(p.other).forEach((S) => {
8656
8656
  S[1] != null && w.append(S[0], S[1].toString());
8657
8657
  }), w.toString();
8658
8658
  }
@@ -13294,7 +13294,7 @@ function uD(e, t, a) {
13294
13294
  }), P = q(L.value == "new" ? "new" : e.startEditing || e.alwaysEditing ? "edit" : "view"), E = Fe(!1), $ = T(() => {
13295
13295
  var te;
13296
13296
  let X = e.params != null ? { ...e.params } : {};
13297
- return e.includeDetails != null && (X.includeDetails = e.includeDetails), Dt(e.queryParams) && (f == null ? void 0 : f.query) != null && ((te = e.queryParams) == null || te.forEach((fe) => {
13297
+ return Dt(e.queryParams) && (f == null ? void 0 : f.query) != null && ((te = e.queryParams) == null || te.forEach((fe) => {
13298
13298
  typeof fe == "string" ? (f == null ? void 0 : f.query[fe]) != null && (X[fe] = f == null ? void 0 : f.query[fe]) : (f == null ? void 0 : f.query[fe.key]) != null && (X[fe.value] = f == null ? void 0 : f.query[fe.key]);
13299
13299
  })), X;
13300
13300
  }), R = T(() => {
@@ -17713,7 +17713,6 @@ const U8 = Ue({
17713
17713
  errorMsg: {},
17714
17714
  findItem: {},
17715
17715
  ignorePermissions: { type: Boolean },
17716
- includeDetails: { type: Boolean },
17717
17716
  isSingle: { type: Boolean, default: !0 },
17718
17717
  item: {},
17719
17718
  itemID: {},
@@ -37108,7 +37107,6 @@ const mW = /* @__PURE__ */ et({
37108
37107
  errorMsg: {},
37109
37108
  findItem: {},
37110
37109
  ignorePermissions: { type: Boolean },
37111
- includeDetails: { type: Boolean },
37112
37110
  isSingle: { type: Boolean, default: !0 },
37113
37111
  item: {},
37114
37112
  itemID: {},
package/dist/index.d.ts CHANGED
@@ -1046,7 +1046,6 @@ export declare interface ItemProps<T, TSave, TReturn> {
1046
1046
  errorMsg?: string;
1047
1047
  findItem?: (list?: TReturn[]) => TReturn | undefined;
1048
1048
  ignorePermissions?: boolean;
1049
- includeDetails?: boolean;
1050
1049
  isSingle?: boolean;
1051
1050
  item?: any;
1052
1051
  itemID?: string;
@@ -1488,7 +1487,6 @@ export declare function pullPropsFrom(obj1: any, obj2: any, propsToIgnore?: stri
1488
1487
  export declare interface QueryParams extends Record<string, any> {
1489
1488
  filterBy?: string;
1490
1489
  includeCount?: boolean;
1491
- includeDetails?: boolean;
1492
1490
  includeInactive?: boolean;
1493
1491
  lastUpdate?: string;
1494
1492
  other?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.107",
3
+ "version": "2.0.109",
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": {