bt-core-app 2.0.24 → 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, e.menu != null && T.meta.menuGroup != null && (e.menu.currentGroup.value = T.meta.menuGroup);
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,16 +44876,16 @@ 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, h;
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
44883
  const l = bB(e.menu);
44884
- e.navigation ?? (e.navigation = {}), (d = e.navigation).menu ?? (d.menu = l);
44884
+ e.navigation ?? (e.navigation = {}), (d = e.navigation).menu ?? (d.menu = l), (m = e.navigation).updateNavItems ?? (m.updateNavItems = !1);
44885
44885
  const r = iP(e.navigation);
44886
- e.heights ?? (e.heights = {}), (m = e.heights).display ?? (m.display = a.vuetifyDisplay), (f = e.heights).navigation ?? (f.navigation = r), bh(e.heights), xB(e), (g = e.auth).menu ?? (g.menu = l), (p = e.auth).router ?? (p.router = a.router), e.auth.getAuthItem = r.findItem;
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 && ((h = e.demo).auth ?? (h.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,
package/dist/index.d.ts CHANGED
@@ -2524,6 +2524,7 @@ export declare interface UseNavigationOptions {
2524
2524
  getBackgroundURL?: (backgroundID?: string, backgroundName?: string) => string | undefined;
2525
2525
  menu?: BTCreateMenu;
2526
2526
  navItems?: NavigationItem[];
2527
+ updateNavItems?: boolean;
2527
2528
  }
2528
2529
 
2529
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.24",
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": {