bt-core-app 1.4.539 → 1.4.541
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 +19 -21
- package/dist/index.d.ts +0 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -10104,12 +10104,14 @@ function ek(e) {
|
|
|
10104
10104
|
const t = "isInDemoMode", n = localStorage.getItem(t), a = H((e == null ? void 0 : e.startInDemo) == !0 || n == "true"), l = (e == null ? void 0 : e.apis) ?? [];
|
|
10105
10105
|
function r() {
|
|
10106
10106
|
var v;
|
|
10107
|
-
((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout()), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Ww(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true");
|
|
10107
|
+
((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout()), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Ww(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true"), window.location.href = location.href;
|
|
10108
10108
|
}
|
|
10109
10109
|
function i(v) {
|
|
10110
10110
|
a.value = !1;
|
|
10111
10111
|
const m = B0();
|
|
10112
|
-
m && m._s.forEach((g) =>
|
|
10112
|
+
m && m._s.forEach((g) => {
|
|
10113
|
+
console.log("resetting"), console.log(g), g.$reset();
|
|
10114
|
+
}), localStorage.setItem(t, "false"), (e == null ? void 0 : e.auth) != null && (e == null || e.auth.logout()), window.location.href = v == !0 ? location.origin : location.href;
|
|
10113
10115
|
}
|
|
10114
10116
|
function o(v) {
|
|
10115
10117
|
let m;
|
|
@@ -12486,28 +12488,24 @@ function H2() {
|
|
|
12486
12488
|
}
|
|
12487
12489
|
const my = Symbol(), W2 = Symbol(), vy = Symbol(), hy = Symbol();
|
|
12488
12490
|
function UV(e, t, n, a) {
|
|
12489
|
-
var
|
|
12490
|
-
const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.
|
|
12491
|
-
function
|
|
12491
|
+
var h;
|
|
12492
|
+
const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.meta.permissions ?? [], u = e.meta.subscriptions ?? [];
|
|
12493
|
+
function f() {
|
|
12492
12494
|
document.title = `${i.isDemoing.value ? "(Demo) " : ""}${cx() ?? ""}`;
|
|
12493
12495
|
}
|
|
12494
|
-
if (s)
|
|
12495
|
-
if (
|
|
12496
|
-
|
|
12497
|
-
else {
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
if (m.push(...f), g.push(...u), r.doShow(m, g, "view")) {
|
|
12503
|
-
l.updateNavigationChange(e, t);
|
|
12504
|
-
return;
|
|
12505
|
-
} else
|
|
12506
|
-
return { name: n };
|
|
12496
|
+
if (e.query.isDemo === "true" && !i.isDemoing.value && i.startDemo(), s)
|
|
12497
|
+
if (i.isDemoing.value)
|
|
12498
|
+
f(), l.updateNavigationChange(e, t);
|
|
12499
|
+
else if (f(), r.tryLogin()) {
|
|
12500
|
+
const v = (o == null ? void 0 : o.subscriptions) ?? [], m = (o == null ? void 0 : o.permissions) ?? [];
|
|
12501
|
+
if (v.push(...u), m.push(...c), r.doShow(v, m, "view")) {
|
|
12502
|
+
l.updateNavigationChange(e, t);
|
|
12503
|
+
return;
|
|
12507
12504
|
} else
|
|
12508
|
-
return
|
|
12509
|
-
}
|
|
12510
|
-
|
|
12505
|
+
return { name: n };
|
|
12506
|
+
} else
|
|
12507
|
+
return r.login(window.location.pathname), { name: n };
|
|
12508
|
+
else if (f(), l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && vl((h = t.name) == null ? void 0 : h.toString()))
|
|
12511
12509
|
return { name: a };
|
|
12512
12510
|
}
|
|
12513
12511
|
function YV(e) {
|
package/dist/index.d.ts
CHANGED
|
@@ -728,10 +728,6 @@ export declare interface GroupedHeaderOption {
|
|
|
728
728
|
|
|
729
729
|
export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocationNormalized, restrictedName: string, loggedInHome: string): {
|
|
730
730
|
name: string;
|
|
731
|
-
path?: undefined;
|
|
732
|
-
} | {
|
|
733
|
-
path: string;
|
|
734
|
-
name?: undefined;
|
|
735
731
|
} | undefined;
|
|
736
732
|
|
|
737
733
|
/**tests for whether string is contains in any of the given props of the given value */
|
package/package.json
CHANGED