bt-core-app 2.0.23 → 2.0.25

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.
@@ -8993,7 +8993,7 @@ function iP(e) {
8993
8993
  function C(T, D) {
8994
8994
  T.name == (D == null ? void 0 : D.name) && ((D == null ? void 0 : D.params.id) == "new" || (D == null ? void 0 : D.query.id) == "new") && a.value.pop(), T.params.navIgnore !== "true" && a.value.push(T);
8995
8995
  const L = T.meta.nav ?? T.name, $ = y(L), P = T.meta.background ?? ($ == null ? void 0 : $.background);
8996
- P != s.value && (s.value = P, o.value == null && k()), l.value = T.meta.hideNavigation !== !0 && ($ == null ? void 0 : $.hideNavigation) !== !0, r.value = T.meta.hideBottomNavigation !== !0 && ($ == null ? void 0 : $.hideBottomNavigation) !== !0, n.value = T.meta.hideAppBar !== !0 && ($ == null ? void 0 : $.hideAppBar) !== !0;
8996
+ P != s.value && (s.value = P, o.value == null && k()), l.value = T.meta.hideNavigation !== !0 && ($ == null ? void 0 : $.hideNavigation) !== !0, r.value = T.meta.hideBottomNavigation !== !0 && ($ == null ? void 0 : $.hideBottomNavigation) !== !0, n.value = T.meta.hideAppBar !== !0 && ($ == null ? void 0 : $.hideAppBar) !== !0, e.menu != null && T.meta.menuGroup != null && e.updateNavItems && (e.menu.currentGroup.value = T.meta.menuGroup);
8997
8997
  }
8998
8998
  return gy = {
8999
8999
  showAppBar: n,
@@ -44876,21 +44876,21 @@ const JU = /* @__PURE__ */ et({
44876
44876
  function Koe(e) {
44877
44877
  return {
44878
44878
  install(t, a) {
44879
- var u, d, m, f, g, p;
44879
+ var u, d, m, f, g, p, h, y;
44880
44880
  e.includeComponents == !0 && (t.component("bt-avatar", GB), t.component("bt-background-task", w8), t.component("bt-blade-item", H8), t.component("bt-blade-items", G7), t.component("bt-blade-steps", fF), t.component("bt-blade", VF), t.component("bt-btn", LF), t.component("bt-camera-overlay", BF), t.component("bt-col", NF), t.component("bt-cosmetics-menu", ER), t.component("bt-cron", XR), t.component("bt-date", uW), t.component("bt-drag-counter", hW), t.component("bt-entity", yW), t.component("bt-error", bW), t.component("bt-field", wW), t.component("bt-field-checkbox", CW), t.component("bt-field-date", MW), t.component("bt-field-entity", _W), t.component("bt-field-select", TW), t.component("bt-field-string", AW), t.component("bt-field-switch", IW), t.component("bt-field-tags", tj), t.component("bt-field-text-area", nj), t.component("bt-field-trigger", sj), t.component("bt-header-option", dj), t.component("bt-image-uploader", JA), t.component("bt-json", SU), t.component("bt-loader", CU), t.component("bt-nav-sidebar", LU), t.component("bt-number", BU), t.component("bt-numpad", NU), t.component("bt-select-inline", jU), t.component("bt-select-list-box", qU), t.component("bt-select", GU), t.component("bt-signature", JU), t.component("bt-signature-overlay", eY), t.component("bt-slider", tY), t.component("bt-span", aY), t.component("bt-status-item", rY), t.component("bt-tags", AA)), e.cosmetics ?? (e.cosmetics = {}), (u = e.cosmetics).vuetifyInstance ?? (u.vuetifyInstance = a.vuetifyInstance), sP(e.assistant ?? { items: [] });
44881
44881
  const n = KL(e.urls);
44882
44882
  SF(e.componentConfig), mP(e.cosmetics);
44883
- const l = iP(e.navigation ?? {});
44884
- e.heights ?? (e.heights = {}), (d = e.heights).display ?? (d.display = a.vuetifyDisplay), (m = e.heights).navigation ?? (m.navigation = l), bh(e.heights);
44885
- const r = bB(e.menu);
44886
- xB(e), (f = e.auth).menu ?? (f.menu = r), (g = e.auth).router ?? (g.router = a.router), e.auth.getAuthItem = l.findItem;
44883
+ const l = bB(e.menu);
44884
+ e.navigation ?? (e.navigation = {}), (d = e.navigation).menu ?? (d.menu = l), (m = e.navigation).updateNavItems ?? (m.updateNavItems = !1);
44885
+ const r = iP(e.navigation);
44886
+ e.heights ?? (e.heights = {}), (f = e.heights).display ?? (f.display = a.vuetifyDisplay), (g = e.heights).navigation ?? (g.navigation = r), bh(e.heights), xB(e), (p = e.auth).menu ?? (p.menu = l), (h = e.auth).router ?? (h.router = a.router), e.auth.getAuthItem = r.findItem;
44887
44887
  const i = uP(e.auth);
44888
- e.demo != null && ((p = e.demo).auth ?? (p.auth = i));
44888
+ e.demo != null && ((y = e.demo).auth ?? (y.auth = i));
44889
44889
  const o = HP(e.demo), s = rP({
44890
44890
  ...e.api,
44891
44891
  auth: i,
44892
44892
  demo: o,
44893
- findPath: l.findPath,
44893
+ findPath: r.findPath,
44894
44894
  useBearerToken: !0
44895
44895
  });
44896
44896
  e.backgroundTasks != null && cP({ api: s, ...e.backgroundTasks });
@@ -44907,14 +44907,14 @@ function Koe(e) {
44907
44907
  auth: i,
44908
44908
  dates: c,
44909
44909
  demo: o,
44910
- navigation: l
44910
+ navigation: r
44911
44911
  }), JL({
44912
44912
  api: s,
44913
44913
  auth: i,
44914
44914
  dates: c,
44915
44915
  demo: o,
44916
- navigation: l
44917
- }), t.provide(rT, l), t.provide(oT, i), t.provide(iT, o), t.provide(SB, n);
44916
+ navigation: r
44917
+ }), t.provide(rT, r), t.provide(oT, i), t.provide(iT, o), t.provide(SB, n);
44918
44918
  }
44919
44919
  };
44920
44920
  }
package/dist/index.d.ts CHANGED
@@ -2522,7 +2522,9 @@ export declare interface UseNavigationOptions {
2522
2522
  getDefaultBackgroundID?: () => string | undefined;
2523
2523
  /**formulate the background url - whether external or internal */
2524
2524
  getBackgroundURL?: (backgroundID?: string, backgroundName?: string) => string | undefined;
2525
+ menu?: BTCreateMenu;
2525
2526
  navItems?: NavigationItem[];
2527
+ updateNavItems?: boolean;
2526
2528
  }
2527
2529
 
2528
2530
  export declare function useNested(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
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": {