bt-core-app 2.0.250 → 2.0.252
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 +12 -12
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -11508,7 +11508,7 @@ function OL(e) {
|
|
|
11508
11508
|
var p = e == null ? void 0 : e.getAuthToken;
|
|
11509
11509
|
p ?? (p = (x = r(h)) == null ? void 0 : x.getAuthToken), p != null && e.auth.setAuth(DP(p()));
|
|
11510
11510
|
}
|
|
11511
|
-
n.value = !0, localStorage.setItem(t, "true"), window.location.href = location.href;
|
|
11511
|
+
n.value = !0, localStorage.setItem(t, "true"), h == null && (window.location.href = location.href);
|
|
11512
11512
|
}
|
|
11513
11513
|
function o(h) {
|
|
11514
11514
|
n.value = !1;
|
|
@@ -11526,17 +11526,17 @@ function OL(e) {
|
|
|
11526
11526
|
return p == null && (p = l.find((y) => Array.isArray(y.nav) ? y.nav.some((x) => x == h.nav) : y.nav == h.nav)), p == null && console.log(`No api group found for ${h.nav} and path: ${h.additionalUrl}`), p;
|
|
11527
11527
|
}
|
|
11528
11528
|
function c(h) {
|
|
11529
|
-
var x;
|
|
11529
|
+
var x, M;
|
|
11530
11530
|
if (l == null)
|
|
11531
11531
|
return Promise.resolve("no demo data available for this api");
|
|
11532
|
-
const p = h.id ?? ((x = h.data) == null ? void 0 : x.id), y = s(h);
|
|
11532
|
+
const p = h.id ?? ((x = h.data) == null ? void 0 : x.id) ?? ((M = h.params) == null ? void 0 : M.id), y = s(h);
|
|
11533
11533
|
if (p != null && (y == null ? void 0 : y.data) != null) {
|
|
11534
|
-
const
|
|
11535
|
-
|
|
11534
|
+
const b = y.data.findIndex((w) => w.id == p);
|
|
11535
|
+
b >= 0 && (y.deleteAction != null ? y.deleteAction(y.data, b) : y.data.splice(b, 1));
|
|
11536
11536
|
}
|
|
11537
|
-
return new Promise(function(
|
|
11537
|
+
return new Promise(function(b) {
|
|
11538
11538
|
setTimeout(function() {
|
|
11539
|
-
|
|
11539
|
+
b({
|
|
11540
11540
|
data: void 0
|
|
11541
11541
|
});
|
|
11542
11542
|
}, 200);
|
|
@@ -11556,19 +11556,19 @@ function OL(e) {
|
|
|
11556
11556
|
}
|
|
11557
11557
|
}
|
|
11558
11558
|
function d(h) {
|
|
11559
|
-
var b, w;
|
|
11559
|
+
var b, w, k;
|
|
11560
11560
|
if (l == null)
|
|
11561
11561
|
throw new Error("no demo data available for this api");
|
|
11562
|
-
const p = h.id ?? ((b = h.data) == null ? void 0 : b.id), y = s(h);
|
|
11562
|
+
const p = h.id ?? ((b = h.data) == null ? void 0 : b.id) ?? ((w = h.params) == null ? void 0 : w.id), y = s(h);
|
|
11563
11563
|
let x;
|
|
11564
11564
|
if (y != null) {
|
|
11565
11565
|
y.data ?? (y.data = []);
|
|
11566
11566
|
var M = u(y, "Get", h.additionalUrl);
|
|
11567
|
-
M != null ? x = M(y.data, h, p) : y.getAction != null ? x = y.getAction(y.data, p) : p != null ? x = (
|
|
11567
|
+
M != null ? x = M(y.data, h, p) : y.getAction != null ? x = y.getAction(y.data, p) : p != null ? x = (k = y.data) == null ? void 0 : k.find((v) => v.id == p) : y.path != null && (x = y.data);
|
|
11568
11568
|
}
|
|
11569
|
-
return x == null ? Promise.resolve(void 0) : new Promise((
|
|
11569
|
+
return x == null ? Promise.resolve(void 0) : new Promise((v) => {
|
|
11570
11570
|
setTimeout(() => {
|
|
11571
|
-
|
|
11571
|
+
v({
|
|
11572
11572
|
data: x
|
|
11573
11573
|
});
|
|
11574
11574
|
}, 200);
|
package/package.json
CHANGED