bt-core-app 1.4.169 → 1.4.170

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.
@@ -5426,16 +5426,19 @@ function M_(e, t) {
5426
5426
  function Sn(e, t = 0) {
5427
5427
  return e != null && Array.isArray(e) && e.length > t;
5428
5428
  }
5429
+ function __(e) {
5430
+ return e == null || e.length == 0;
5431
+ }
5429
5432
  function h0(e) {
5430
5433
  return e == "0001-01-01T00:00:00Z";
5431
5434
  }
5432
- function __() {
5435
+ function A_() {
5433
5436
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
5434
5437
  }
5435
5438
  function y0() {
5436
5439
  return "0001-01-01T00:00:00Z";
5437
5440
  }
5438
- function A_(e, t) {
5441
+ function D_(e, t) {
5439
5442
  let n = "1", a = 0;
5440
5443
  if (a < t)
5441
5444
  do
@@ -5444,7 +5447,7 @@ function A_(e, t) {
5444
5447
  let r = Number.parseInt(n);
5445
5448
  return Math.round(e * r) / r;
5446
5449
  }
5447
- function D_(e, t) {
5450
+ function I_(e, t) {
5448
5451
  let n = e ?? "";
5449
5452
  return t != null && (g0(n, t) ? n = n.split(",").filter((a) => a != t).toString() : n != null ? n = `${n},${t}` : n = t), n != null && n.length > 0 ? n : null;
5450
5453
  }
@@ -5483,7 +5486,7 @@ function gv(e, t = (n) => n) {
5483
5486
  return Sn(l) && a.push(...l), a;
5484
5487
  }, [])] : [];
5485
5488
  }
5486
- function I_(e) {
5489
+ function E_(e) {
5487
5490
  const t = e.split(","), n = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), a = t[0].split(":")[1].split(";")[0], r = new Uint8Array(n.length);
5488
5491
  for (let l = 0; l < n.length; l++)
5489
5492
  r[l] = n.charCodeAt(l);
@@ -5519,10 +5522,10 @@ function k0(e, t, n) {
5519
5522
  }
5520
5523
  return !1;
5521
5524
  }
5522
- function E_(e) {
5525
+ function V_(e) {
5523
5526
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
5524
5527
  }
5525
- function V_(e = 2e3) {
5528
+ function P_(e = 2e3) {
5526
5529
  return new Promise((t) => {
5527
5530
  setTimeout(() => t(), e);
5528
5531
  });
@@ -7004,7 +7007,7 @@ function Oc() {
7004
7007
  const e = _t == null ? void 0 : _t.getEnv();
7005
7008
  return _t == null ? "" : (_t[e] ?? _t.development).auth ?? "";
7006
7009
  }
7007
- function P_(e, t) {
7010
+ function L_(e, t) {
7008
7011
  const n = _t == null ? void 0 : _t.getEnv();
7009
7012
  if (_t == null)
7010
7013
  return "";
@@ -7018,7 +7021,7 @@ function M0(e) {
7018
7021
  const n = _t[t] ?? _t.development;
7019
7022
  return e == null ? n.data ?? "" : n.other[e] ?? n.data ?? "";
7020
7023
  }
7021
- function L_() {
7024
+ function $_() {
7022
7025
  return _t;
7023
7026
  }
7024
7027
  function _0(e) {
@@ -7032,7 +7035,7 @@ function wn() {
7032
7035
  const e = pv();
7033
7036
  return (mi == null || mi.config.name != e) && (mi = wv.createInstance({ name: e })), mi;
7034
7037
  }
7035
- function $_() {
7038
+ function N_() {
7036
7039
  async function e(r) {
7037
7040
  const l = wn();
7038
7041
  (await l.keys()).filter((u) => u.startsWith(r)).forEach((u) => {
@@ -7056,7 +7059,7 @@ function $_() {
7056
7059
  };
7057
7060
  }
7058
7061
  let Vi;
7059
- function N_(e) {
7062
+ function B_(e) {
7060
7063
  return Vi(e)();
7061
7064
  }
7062
7065
  function fr(e) {
@@ -8265,7 +8268,7 @@ let wo;
8265
8268
  function B0() {
8266
8269
  return wo;
8267
8270
  }
8268
- function B_(e) {
8271
+ function R_(e) {
8269
8272
  const t = localStorage.getItem("cosmetics");
8270
8273
  let n;
8271
8274
  return t != null && t.length > 0 && (n = JSON.parse(t)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), {
@@ -8346,7 +8349,7 @@ function R0(e) {
8346
8349
  undoTemporaryColor: h
8347
8350
  }, wo;
8348
8351
  }
8349
- const R_ = {
8352
+ const F_ = {
8350
8353
  canExportCSV: !1
8351
8354
  };
8352
8355
  function F0() {
@@ -8448,7 +8451,7 @@ function O0(e) {
8448
8451
  }, po;
8449
8452
  }
8450
8453
  let So;
8451
- function F_() {
8454
+ function H_() {
8452
8455
  return So;
8453
8456
  }
8454
8457
  function z0(e) {
@@ -29290,7 +29293,7 @@ const ly = /* @__PURE__ */ tt({
29290
29293
  }), null, 16, ["dark", "modelValue"]));
29291
29294
  }
29292
29295
  });
29293
- function H_() {
29296
+ function O_() {
29294
29297
  const e = Ru();
29295
29298
  return async (t) => {
29296
29299
  let n;
@@ -29323,7 +29326,7 @@ function H_() {
29323
29326
  return n != null && t.itemValue != null ? n[t.itemValue] : n;
29324
29327
  };
29325
29328
  }
29326
- function O_() {
29329
+ function z_() {
29327
29330
  const e = Ru();
29328
29331
  return async (t) => {
29329
29332
  let n;
@@ -29345,7 +29348,7 @@ function O_() {
29345
29348
  return n;
29346
29349
  };
29347
29350
  }
29348
- function z_() {
29351
+ function Y_() {
29349
29352
  const e = Ru();
29350
29353
  return async (t) => {
29351
29354
  let n;
@@ -29368,7 +29371,7 @@ function z_() {
29368
29371
  };
29369
29372
  }
29370
29373
  var eM = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
29371
- function Y_(e) {
29374
+ function W_(e) {
29372
29375
  function t(n) {
29373
29376
  var r;
29374
29377
  const a = n.matched.slice().reverse().find((l) => l.meta && l.meta.title);
@@ -29561,7 +29564,7 @@ const nM = {
29561
29564
  component: gu
29562
29565
  };
29563
29566
  var rM = "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z", lM = "M20 21H4V10H6V19H18V10H20V21M3 3H21V9H3V3M9.5 11H14.5C14.78 11 15 11.22 15 11.5V13H9V11.5C9 11.22 9.22 11 9.5 11M5 5V7H19V5H5Z", iM = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z", sM = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", oM = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z", uM = "M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z", cM = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", dM = "M16.24,3.56L21.19,8.5C21.97,9.29 21.97,10.55 21.19,11.34L12,20.53C10.44,22.09 7.91,22.09 6.34,20.53L2.81,17C2.03,16.21 2.03,14.95 2.81,14.16L13.41,3.56C14.2,2.78 15.46,2.78 16.24,3.56M4.22,15.58L7.76,19.11C8.54,19.9 9.8,19.9 10.59,19.11L14.12,15.58L9.17,10.63L4.22,15.58Z", fM = "M15.14,3C14.63,3 14.12,3.2 13.73,3.59L2.59,14.73C1.81,15.5 1.81,16.77 2.59,17.56L5.03,20H12.69L21.41,11.27C22.2,10.5 22.2,9.23 21.41,8.44L16.56,3.59C16.17,3.2 15.65,3 15.14,3M17,18L15,20H22V18", vM = "M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M15 16L13 20H10L12 16H9V11H15V16M13 9V3.5L18.5 9H13Z", mM = "M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z", hM = "M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z", yM = "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z", gM = "M7,10L12,15L17,10H7Z", bM = "M1.88,0.46L0.46,1.88L5.59,7H2V9H9V2H7V5.59M11,7V9H21V15H23V9A2,2 0 0,0 21,7M7,11V21A2,2 0 0,0 9,23H15V21H9V11M15.88,14.46L14.46,15.88L19.6,21H17V23H23V17H21V19.59", wM = "M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z", pM = "M18.66,2C18.4,2 18.16,2.09 17.97,2.28L16.13,4.13L19.88,7.88L21.72,6.03C22.11,5.64 22.11,5 21.72,4.63L19.38,2.28C19.18,2.09 18.91,2 18.66,2M3.28,4L2,5.28L8.5,11.75L4,16.25V20H7.75L12.25,15.5L18.72,22L20,20.72L13.5,14.25L9.75,10.5L3.28,4M15.06,5.19L11.03,9.22L14.78,12.97L18.81,8.94L15.06,5.19Z", SM = "M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z", kM = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z", CM = "M4,4H20V20H4V4M6,8V18H18V8H6Z";
29564
- function W_(e) {
29567
+ function U_(e) {
29565
29568
  return {
29566
29569
  defaultSet: "mdi",
29567
29570
  aliases: {
@@ -29821,7 +29824,7 @@ function MM() {
29821
29824
  let lf, sf, of, uf = !1;
29822
29825
  const so = U(!1), oo = U(!1), cf = U(), ki = U();
29823
29826
  let Go;
29824
- function U_() {
29827
+ function q_() {
29825
29828
  return Go;
29826
29829
  }
29827
29830
  function _M() {
@@ -29855,7 +29858,7 @@ function _M() {
29855
29858
  }, Go;
29856
29859
  }
29857
29860
  const oy = Symbol(), AM = Symbol(), uy = Symbol(), cy = Symbol();
29858
- function q_(e, t, n) {
29861
+ function G_(e, t, n) {
29859
29862
  const a = Ne(oy), r = Ne(cy), l = Ne(uy), i = a.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || i != null && i.requiresAuth !== !1, u = e.query.isDemo === "true";
29860
29863
  if (!s)
29861
29864
  a.updateNavigationChange(e, t);
@@ -29871,7 +29874,7 @@ function q_(e, t, n) {
29871
29874
  } else
29872
29875
  return r.login(window.location.pathname), n;
29873
29876
  }
29874
- function G_(e) {
29877
+ function Z_(e) {
29875
29878
  const t = [];
29876
29879
  return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => C0(n) || "Email must be valid")), t;
29877
29880
  }
@@ -31857,7 +31860,7 @@ const DM = { key: 0 }, IM = /* @__PURE__ */ tt({
31857
31860
  return (r, l) => (R(), ie("span", null, We(r.prefix) + We(a.value) + We(r.suffix), 1));
31858
31861
  }
31859
31862
  });
31860
- function Z_(e) {
31863
+ function j_(e) {
31861
31864
  return {
31862
31865
  install(t, n) {
31863
31866
  var c, h;
@@ -31886,7 +31889,7 @@ function Z_(e) {
31886
31889
  };
31887
31890
  }
31888
31891
  export {
31889
- I_ as DataURIToBlob,
31892
+ E_ as DataURIToBlob,
31890
31893
  x_ as addWeekday,
31891
31894
  Va as appendUrl,
31892
31895
  cy as authKey,
@@ -31898,7 +31901,7 @@ export {
31898
31901
  b0 as copyItemByAlphabet,
31899
31902
  V0 as createApi,
31900
31903
  P0 as createAuth,
31901
- Z_ as createCore,
31904
+ j_ as createCore,
31902
31905
  R0 as createCosmetics,
31903
31906
  O0 as createDates,
31904
31907
  z0 as createDemo,
@@ -31913,7 +31916,7 @@ export {
31913
31916
  Uw as createVuetify,
31914
31917
  zc as createWholeLastUpdateStoreDefinition,
31915
31918
  g0 as csvContains,
31916
- R_ as csvDefaults,
31919
+ F_ as csvDefaults,
31917
31920
  gv as deepSelect,
31918
31921
  uy as demoKey,
31919
31922
  v_ as distinct,
@@ -31926,24 +31929,25 @@ export {
31926
31929
  b_ as getGoogleMapsLocationLine,
31927
31930
  w_ as getImageData,
31928
31931
  yv as getLocationLine,
31929
- __ as getMinDate,
31932
+ A_ as getMinDate,
31930
31933
  y0 as getMinDateString,
31931
31934
  S0 as getRandomColor,
31932
- q_ as guardRoute,
31935
+ G_ as guardRoute,
31933
31936
  k0 as hasSearch,
31934
31937
  M_ as isArrayOfLength,
31935
31938
  Sn as isLengthyArray,
31936
31939
  h0 as isMinDate,
31940
+ __ as isNullOrEmpty,
31937
31941
  oy as navigationKey,
31938
31942
  Aa as nestedValue,
31939
31943
  T_ as removeWeekday,
31940
- A_ as roundTo,
31944
+ D_ as roundTo,
31941
31945
  x0 as singularize,
31942
31946
  f_ as sum,
31943
31947
  p_ as toCamelCase,
31944
- E_ as toCompareString,
31945
- D_ as toggleCSV,
31946
- V_ as twiddleThumbs,
31948
+ V_ as toCompareString,
31949
+ I_ as toggleCSV,
31950
+ P_ as twiddleThumbs,
31947
31951
  AM as urlsKey,
31948
31952
  Sv as useActions,
31949
31953
  dg as useActionsTracker,
@@ -31956,32 +31960,32 @@ export {
31956
31960
  M0 as useDataUrl,
31957
31961
  H0 as useDates,
31958
31962
  pv as useDbName,
31959
- F_ as useDemo,
31960
- Y_ as useDocumentMeta,
31963
+ H_ as useDemo,
31964
+ W_ as useDocumentMeta,
31961
31965
  L0 as useDraggable,
31962
31966
  ps as useFilters,
31963
- W_ as useIcons,
31967
+ U_ as useIcons,
31964
31968
  ug as useId,
31965
- P_ as useImageUrl,
31969
+ L_ as useImageUrl,
31966
31970
  sy as useItem,
31967
31971
  Fu as useList,
31968
- $_ as useLocalCache,
31969
- B_ as useLocalCosmetics,
31972
+ N_ as useLocalCache,
31973
+ R_ as useLocalCosmetics,
31970
31974
  wn as useLocalDb,
31971
31975
  MM as useMenu,
31972
31976
  gh as useNavBack,
31973
31977
  ei as useNavigation,
31974
- U_ as usePWA,
31978
+ q_ as usePWA,
31975
31979
  vs as usePresets,
31976
31980
  N0 as useResizable,
31977
- G_ as useRules,
31978
- O_ as useSelectDate,
31979
- H_ as useSelectItem,
31980
- z_ as useSelectNumber,
31981
- N_ as useStore,
31981
+ Z_ as useRules,
31982
+ z_ as useSelectDate,
31983
+ O_ as useSelectItem,
31984
+ Y_ as useSelectNumber,
31985
+ B_ as useStore,
31982
31986
  fr as useStoreDefinition,
31983
31987
  xM as useTracker,
31984
- L_ as useUrls,
31988
+ $_ as useUrls,
31985
31989
  C0 as validEmail,
31986
31990
  Ul as weekdayPairs,
31987
31991
  k_ as weekdayShortName,
package/dist/index.d.ts CHANGED
@@ -571,6 +571,8 @@ export declare function isLengthyArray(val: any, greaterThan?: number): boolean;
571
571
 
572
572
  export declare function isMinDate(d?: string): boolean;
573
573
 
574
+ export declare function isNullOrEmpty(val: string | undefined): boolean;
575
+
574
576
  export declare interface ItemProps {
575
577
  additionalUrl?: string;
576
578
  bladeID?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.169",
3
+ "version": "1.4.170",
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": {