bt-core-app 1.4.157 → 1.4.159
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.
- package/dist/bt-core-app.js +10 -6
- package/dist/index.d.ts +2 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -29835,14 +29835,18 @@ function MM() {
|
|
|
29835
29835
|
}
|
|
29836
29836
|
const sy = Symbol(), _M = Symbol(), oy = Symbol(), uy = Symbol();
|
|
29837
29837
|
function U_(e, t, n) {
|
|
29838
|
-
const a = Ne(sy), r = Ne(uy), l = Ne(oy), i = a.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 ||
|
|
29838
|
+
const a = Ne(sy), r = Ne(uy), l = Ne(oy), 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";
|
|
29839
29839
|
if (a.updateHistory(e, t), !s)
|
|
29840
|
-
|
|
29841
|
-
if (u)
|
|
29842
|
-
|
|
29843
|
-
if (l.endDemo(), r.tryLogin()) {
|
|
29840
|
+
a.updateNavigationProperties(i);
|
|
29841
|
+
else if (u)
|
|
29842
|
+
r.isLoggedIn.value && r.logout(), l.isDemoing.value || l.startDemo();
|
|
29843
|
+
else if (l.isDemoing.value && l.endDemo(), r.tryLogin()) {
|
|
29844
29844
|
const c = (i == null ? void 0 : i.subscriptions) ?? [], h = (i == null ? void 0 : i.permissions) ?? [];
|
|
29845
|
-
|
|
29845
|
+
if (r.doShow(c, h, "view")) {
|
|
29846
|
+
a.updateNavigationProperties(i);
|
|
29847
|
+
return;
|
|
29848
|
+
} else
|
|
29849
|
+
return n;
|
|
29846
29850
|
} else
|
|
29847
29851
|
return r.login(window.location.pathname), a.updateNavigationProperties(i), n;
|
|
29848
29852
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -304,12 +304,10 @@ export declare interface CreateAuthOptions {
|
|
|
304
304
|
|
|
305
305
|
export declare function createCore(options: CreateCoreOptions): CoreApp;
|
|
306
306
|
|
|
307
|
-
export declare interface CreateCoreOptions extends UseCosmeticsOptions<BaseCosmeticTheme
|
|
307
|
+
export declare interface CreateCoreOptions extends UseCosmeticsOptions<BaseCosmeticTheme>, UseNavigationOptions {
|
|
308
308
|
auth: CreateAuthOptions;
|
|
309
|
-
defaultCacheExpiryHours?: number;
|
|
310
309
|
includeComponents?: boolean;
|
|
311
310
|
menu?: CreateMenuOptions;
|
|
312
|
-
navItems?: NavigationItem[];
|
|
313
311
|
presets: any;
|
|
314
312
|
/**suboptions */
|
|
315
313
|
subscriptionOptions?: AuthSubscription[];
|
|
@@ -556,7 +554,7 @@ export declare interface GroupedHeaderOption {
|
|
|
556
554
|
values: TableColumn[];
|
|
557
555
|
}
|
|
558
556
|
|
|
559
|
-
export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocationNormalized, restrictedRoute: RouteLocationRaw): RouteLocationRaw |
|
|
557
|
+
export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocationNormalized, restrictedRoute: RouteLocationRaw): RouteLocationRaw | undefined;
|
|
560
558
|
|
|
561
559
|
/**tests for whether string is contains in any of the given props of the given value */
|
|
562
560
|
export declare function hasSearch(value: any, str?: string, props?: string[]): boolean;
|
package/package.json
CHANGED