bt-core-app 1.4.60 → 1.4.61
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 +171 -171
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as Y, shallowRef as
|
|
1
|
+
import { ref as Y, shallowRef as Re, computed as te, toValue as j, watch as _e, toRef as zt, onMounted as Or } from "vue";
|
|
2
2
|
import { watchArray as pr, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Wr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
|
|
3
3
|
import { defineStore as et } from "pinia";
|
|
4
4
|
import { DateTime as de } from "luxon";
|
|
@@ -11,7 +11,7 @@ function en(e) {
|
|
|
11
11
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
12
12
|
}
|
|
13
13
|
function rn(e) {
|
|
14
|
-
const t = Y([]), l =
|
|
14
|
+
const t = Y([]), l = Re(), b = Re(), f = Re(), g = te(() => l.value != null);
|
|
15
15
|
function E(o) {
|
|
16
16
|
t.value = t.value.filter((h) => h.id != o);
|
|
17
17
|
}
|
|
@@ -59,7 +59,7 @@ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
59
59
|
function tn(e) {
|
|
60
60
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var Ge = function() {
|
|
63
63
|
function e(f) {
|
|
64
64
|
return f;
|
|
65
65
|
}
|
|
@@ -94,7 +94,7 @@ var ke = function() {
|
|
|
94
94
|
}
|
|
95
95
|
return b.firstBy = b, b;
|
|
96
96
|
}();
|
|
97
|
-
function
|
|
97
|
+
function Ue(e, t) {
|
|
98
98
|
let l = e ?? "", b = t ?? "";
|
|
99
99
|
if (l.endsWith("/"))
|
|
100
100
|
do
|
|
@@ -185,7 +185,7 @@ function ra(e) {
|
|
|
185
185
|
function an(e) {
|
|
186
186
|
return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const Ze = [
|
|
189
189
|
{ value: 1, short: "sun", values: ["sun", "sunday"] },
|
|
190
190
|
{ value: 2, short: "mon", values: ["mon", "monday"] },
|
|
191
191
|
{ value: 3, short: "tue", values: ["tue", "tues", "tuesday"] },
|
|
@@ -198,19 +198,19 @@ const Ye = [
|
|
|
198
198
|
function ta(e) {
|
|
199
199
|
if (e == null)
|
|
200
200
|
return 0;
|
|
201
|
-
const t = e.replaceAll(" ", "").split(",").map((b) => b.toLowerCase()), l =
|
|
201
|
+
const t = e.replaceAll(" ", "").split(",").map((b) => b.toLowerCase()), l = Ze.filter((b) => b.values.some((f) => t.some((g) => f == g))).map((b) => b.value);
|
|
202
202
|
return l.length == 0 ? 8 : Math.min(...l);
|
|
203
203
|
}
|
|
204
204
|
function na(e) {
|
|
205
205
|
return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
|
|
206
|
-
let l =
|
|
206
|
+
let l = Ze.find((b) => b.values.some((f) => f == t));
|
|
207
207
|
return l != null ? l.short : "";
|
|
208
208
|
}).filter((t) => t != null && t.length > 0).toString();
|
|
209
209
|
}
|
|
210
210
|
function aa(e, t) {
|
|
211
211
|
if (e == null || t == null)
|
|
212
212
|
return !0;
|
|
213
|
-
const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), b = t.replaceAll(" ", "").toLowerCase(), f =
|
|
213
|
+
const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), b = t.replaceAll(" ", "").toLowerCase(), f = Ze.find((g) => g.values.some((E) => E == b));
|
|
214
214
|
return f != null && l.some((g) => g == f.short || f.values.some((E) => E == g));
|
|
215
215
|
}
|
|
216
216
|
function la(e, t) {
|
|
@@ -218,13 +218,13 @@ function la(e, t) {
|
|
|
218
218
|
return e;
|
|
219
219
|
let l = e ?? "";
|
|
220
220
|
l = `${l},${t}`;
|
|
221
|
-
let b = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((f) =>
|
|
221
|
+
let b = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((f) => Ze.find((g) => g.values.some((E) => E == f))).filter((f) => f != null).sort(Ge.firstBy((f) => (f == null ? void 0 : f.value) ?? 0)).map((f) => f == null ? void 0 : f.short))].toString();
|
|
222
222
|
return b.length > 0 ? b : void 0;
|
|
223
223
|
}
|
|
224
224
|
function ua(e, t) {
|
|
225
225
|
if (t == null || e == null)
|
|
226
226
|
return e;
|
|
227
|
-
let l = e ?? "", b = t.replaceAll(" ", "").toLowerCase(), f = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) =>
|
|
227
|
+
let l = e ?? "", b = t.replaceAll(" ", "").toLowerCase(), f = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((E) => E.values.some((C) => C == g && C != b))).filter((g) => g != null).sort(Ge.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
|
|
228
228
|
return f.length > 0 ? f : void 0;
|
|
229
229
|
}
|
|
230
230
|
function ca(e, t) {
|
|
@@ -754,7 +754,7 @@ var at = { exports: {} };
|
|
|
754
754
|
var c = P(atob(n.data));
|
|
755
755
|
return $([c], { type: n.type });
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function V(n) {
|
|
758
758
|
return n && n.__local_forage_encoded_blob;
|
|
759
759
|
}
|
|
760
760
|
function ae(n) {
|
|
@@ -853,7 +853,7 @@ var at = { exports: {} };
|
|
|
853
853
|
var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
|
|
854
854
|
F.onsuccess = function() {
|
|
855
855
|
var k = F.result;
|
|
856
|
-
k === void 0 && (k = null),
|
|
856
|
+
k === void 0 && (k = null), V(k) && (k = Z(k)), v(k);
|
|
857
857
|
}, F.onerror = function() {
|
|
858
858
|
s(F.error);
|
|
859
859
|
};
|
|
@@ -877,7 +877,7 @@ var at = { exports: {} };
|
|
|
877
877
|
var q = F.result;
|
|
878
878
|
if (q) {
|
|
879
879
|
var z = q.value;
|
|
880
|
-
|
|
880
|
+
V(z) && (z = Z(z));
|
|
881
881
|
var p = n(z, q.key, k++);
|
|
882
882
|
p !== void 0 ? v(p) : q.continue();
|
|
883
883
|
} else
|
|
@@ -893,7 +893,7 @@ var at = { exports: {} };
|
|
|
893
893
|
});
|
|
894
894
|
return h(m, c), m;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Be(n, c, a) {
|
|
897
897
|
var m = this;
|
|
898
898
|
n = r(n);
|
|
899
899
|
var v = new o(function(s, M) {
|
|
@@ -924,7 +924,7 @@ var at = { exports: {} };
|
|
|
924
924
|
});
|
|
925
925
|
return h(v, a), v;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Me(n, c) {
|
|
928
928
|
var a = this;
|
|
929
929
|
n = r(n);
|
|
930
930
|
var m = new o(function(v, s) {
|
|
@@ -1023,7 +1023,7 @@ var at = { exports: {} };
|
|
|
1023
1023
|
});
|
|
1024
1024
|
return h(m, c), m;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Ce(n) {
|
|
1027
1027
|
var c = this, a = new o(function(m, v) {
|
|
1028
1028
|
c.ready().then(function() {
|
|
1029
1029
|
X(c._dbInfo, L, function(s, M) {
|
|
@@ -1077,8 +1077,8 @@ var at = { exports: {} };
|
|
|
1077
1077
|
var p = new o(function(re, ue) {
|
|
1078
1078
|
var le = T.open(n.name, B);
|
|
1079
1079
|
le.onerror = function(ge) {
|
|
1080
|
-
var
|
|
1081
|
-
|
|
1080
|
+
var Ye = le.result;
|
|
1081
|
+
Ye.close(), ue(ge);
|
|
1082
1082
|
}, le.onupgradeneeded = function() {
|
|
1083
1083
|
var ge = le.result;
|
|
1084
1084
|
ge.deleteObjectStore(n.storeName);
|
|
@@ -1138,18 +1138,18 @@ var at = { exports: {} };
|
|
|
1138
1138
|
_support: N(),
|
|
1139
1139
|
iterate: Ee,
|
|
1140
1140
|
getItem: ie,
|
|
1141
|
-
setItem:
|
|
1142
|
-
removeItem:
|
|
1141
|
+
setItem: Be,
|
|
1142
|
+
removeItem: Me,
|
|
1143
1143
|
clear: rr,
|
|
1144
1144
|
length: tr,
|
|
1145
1145
|
key: nr,
|
|
1146
|
-
keys:
|
|
1146
|
+
keys: Ce,
|
|
1147
1147
|
dropInstance: ar
|
|
1148
1148
|
};
|
|
1149
1149
|
function ur() {
|
|
1150
1150
|
return typeof openDatabase == "function";
|
|
1151
1151
|
}
|
|
1152
|
-
var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/,
|
|
1152
|
+
var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, $e = "__lfsc__:", Pe = $e.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", J = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Pe + We.length, De = Object.prototype.toString;
|
|
1153
1153
|
function Se(n) {
|
|
1154
1154
|
var c = n.length * 0.75, a = n.length, m, v = 0, s, M, R, B;
|
|
1155
1155
|
n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
|
|
@@ -1164,16 +1164,16 @@ var at = { exports: {} };
|
|
|
1164
1164
|
a += be[c[m] >> 2], a += be[(c[m] & 3) << 4 | c[m + 1] >> 4], a += be[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += be[c[m + 2] & 63];
|
|
1165
1165
|
return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Ne(n, c) {
|
|
1168
1168
|
var a = "";
|
|
1169
1169
|
if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
|
|
1170
|
-
var m, v =
|
|
1171
|
-
n instanceof ArrayBuffer ? (m = n, v +=
|
|
1170
|
+
var m, v = $e;
|
|
1171
|
+
n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += J : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
|
|
1172
1172
|
} else if (a === "[object Blob]") {
|
|
1173
1173
|
var s = new FileReader();
|
|
1174
1174
|
s.onload = function() {
|
|
1175
1175
|
var M = cr + n.type + "~" + se(this.result);
|
|
1176
|
-
c(
|
|
1176
|
+
c($e + Ie + M);
|
|
1177
1177
|
}, s.readAsArrayBuffer(n);
|
|
1178
1178
|
} else
|
|
1179
1179
|
try {
|
|
@@ -1183,16 +1183,16 @@ var at = { exports: {} };
|
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
function ft(n) {
|
|
1186
|
-
if (n.substring(0,
|
|
1186
|
+
if (n.substring(0, Pe) !== $e)
|
|
1187
1187
|
return JSON.parse(n);
|
|
1188
|
-
var c = n.substring(ve), a = n.substring(
|
|
1188
|
+
var c = n.substring(ve), a = n.substring(Pe, ve), m;
|
|
1189
1189
|
if (a === Ie && ze.test(c)) {
|
|
1190
1190
|
var v = c.match(ze);
|
|
1191
1191
|
m = v[1], c = c.substring(v[0].length);
|
|
1192
1192
|
}
|
|
1193
1193
|
var s = Se(c);
|
|
1194
1194
|
switch (a) {
|
|
1195
|
-
case
|
|
1195
|
+
case We:
|
|
1196
1196
|
return s;
|
|
1197
1197
|
case Ie:
|
|
1198
1198
|
return $([s], { type: m });
|
|
@@ -1200,15 +1200,15 @@ var at = { exports: {} };
|
|
|
1200
1200
|
return new Int8Array(s);
|
|
1201
1201
|
case je:
|
|
1202
1202
|
return new Uint8Array(s);
|
|
1203
|
-
case We:
|
|
1204
|
-
return new Uint8ClampedArray(s);
|
|
1205
1203
|
case qe:
|
|
1204
|
+
return new Uint8ClampedArray(s);
|
|
1205
|
+
case Ve:
|
|
1206
1206
|
return new Int16Array(s);
|
|
1207
1207
|
case J:
|
|
1208
1208
|
return new Uint16Array(s);
|
|
1209
1209
|
case U:
|
|
1210
1210
|
return new Int32Array(s);
|
|
1211
|
-
case
|
|
1211
|
+
case H:
|
|
1212
1212
|
return new Uint32Array(s);
|
|
1213
1213
|
case O:
|
|
1214
1214
|
return new Float32Array(s);
|
|
@@ -1219,7 +1219,7 @@ var at = { exports: {} };
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
var ir = {
|
|
1222
|
-
serialize:
|
|
1222
|
+
serialize: Ne,
|
|
1223
1223
|
deserialize: ft,
|
|
1224
1224
|
stringToBuffer: Se,
|
|
1225
1225
|
bufferToString: se
|
|
@@ -1638,11 +1638,11 @@ var at = { exports: {} };
|
|
|
1638
1638
|
return !1;
|
|
1639
1639
|
}, Fr = Array.isArray || function(n) {
|
|
1640
1640
|
return Object.prototype.toString.call(n) === "[object Array]";
|
|
1641
|
-
}, He = {}, kr = {},
|
|
1641
|
+
}, He = {}, kr = {}, Fe = {
|
|
1642
1642
|
INDEXEDDB: lr,
|
|
1643
1643
|
WEBSQL: At,
|
|
1644
1644
|
LOCALSTORAGE: Bt
|
|
1645
|
-
}, kt = [
|
|
1645
|
+
}, kt = [Fe.INDEXEDDB._driver, Fe.WEBSQL._driver, Fe.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
|
|
1646
1646
|
description: "",
|
|
1647
1647
|
driver: kt.slice(),
|
|
1648
1648
|
name: "localforage",
|
|
@@ -1672,9 +1672,9 @@ var at = { exports: {} };
|
|
|
1672
1672
|
var qt = function() {
|
|
1673
1673
|
function n(c) {
|
|
1674
1674
|
E(this, n);
|
|
1675
|
-
for (var a in
|
|
1676
|
-
if (
|
|
1677
|
-
var m =
|
|
1675
|
+
for (var a in Fe)
|
|
1676
|
+
if (Fe.hasOwnProperty(a)) {
|
|
1677
|
+
var m = Fe[a], v = m._driver;
|
|
1678
1678
|
this[a] = v, He[v] || this.defineDriver(m);
|
|
1679
1679
|
}
|
|
1680
1680
|
this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
@@ -1708,19 +1708,19 @@ var at = { exports: {} };
|
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
var ue = function() {
|
|
1711
|
-
for (var
|
|
1711
|
+
for (var Ye = function(Yt) {
|
|
1712
1712
|
return function() {
|
|
1713
1713
|
var Zt = new Error("Method " + Yt + " is not implemented by the current driver"), Gr = o.reject(Zt);
|
|
1714
1714
|
return h(Gr, arguments[arguments.length - 1]), Gr;
|
|
1715
1715
|
};
|
|
1716
|
-
}, or = 0,
|
|
1716
|
+
}, or = 0, Ht = Ke.length; or < Ht; or++) {
|
|
1717
1717
|
var dr = Ke[or];
|
|
1718
|
-
a[dr] || (a[dr] =
|
|
1718
|
+
a[dr] || (a[dr] = Ye(dr));
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
1721
|
ue();
|
|
1722
|
-
var le = function(
|
|
1723
|
-
He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] =
|
|
1722
|
+
var le = function(Ye) {
|
|
1723
|
+
He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = Ye, M();
|
|
1724
1724
|
};
|
|
1725
1725
|
"_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
|
|
1726
1726
|
} catch (ge) {
|
|
@@ -1795,8 +1795,8 @@ var at = { exports: {} };
|
|
|
1795
1795
|
}, n.prototype.createInstance = function(a) {
|
|
1796
1796
|
return new n(a);
|
|
1797
1797
|
}, n;
|
|
1798
|
-
}(),
|
|
1799
|
-
b.exports =
|
|
1798
|
+
}(), Vt = new qt();
|
|
1799
|
+
b.exports = Vt;
|
|
1800
1800
|
}, { 3: 3 }] }, {}, [4])(4);
|
|
1801
1801
|
});
|
|
1802
1802
|
})(at);
|
|
@@ -1860,7 +1860,7 @@ let er;
|
|
|
1860
1860
|
function ga(e) {
|
|
1861
1861
|
return er(e)();
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Le(e) {
|
|
1864
1864
|
return er(e);
|
|
1865
1865
|
}
|
|
1866
1866
|
function bn(e) {
|
|
@@ -1879,20 +1879,20 @@ function Sn(e) {
|
|
|
1879
1879
|
if (e.storeMode == "whole-last-updated") {
|
|
1880
1880
|
if (e.api == null)
|
|
1881
1881
|
throw new Error("Must supply an api object to use store");
|
|
1882
|
-
return
|
|
1882
|
+
return Vr({ ...e, storeName: e.storeName ?? "" });
|
|
1883
1883
|
} else if (e.storeMode == "partial-last-updated") {
|
|
1884
1884
|
if (e.api == null)
|
|
1885
1885
|
throw new Error("Must supply an api object to use store");
|
|
1886
|
-
return
|
|
1886
|
+
return Vr({ ...e, storeName: e.storeName ?? "" });
|
|
1887
1887
|
} else
|
|
1888
1888
|
return En({ ...e, storeName: e.storeName ?? "" });
|
|
1889
1889
|
}
|
|
1890
1890
|
const An = (e) => {
|
|
1891
1891
|
let t = j(e.url) ?? void 0;
|
|
1892
|
-
if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t =
|
|
1892
|
+
if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ue(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ue(t, e.id)), e.params != null) {
|
|
1893
1893
|
t ?? (t = "");
|
|
1894
1894
|
let l = new URLSearchParams();
|
|
1895
|
-
Object.entries(e.params).sort(
|
|
1895
|
+
Object.entries(e.params).sort(Ge.firstBy((f) => f[0])).forEach((f) => {
|
|
1896
1896
|
f[1] != null && l.append(f[0], f[1].toString());
|
|
1897
1897
|
}), t = `${t}?${l.toString()}`;
|
|
1898
1898
|
}
|
|
@@ -2064,7 +2064,7 @@ function En(e) {
|
|
|
2064
2064
|
};
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function Vr(e) {
|
|
2068
2068
|
return et(e.storeName, () => {
|
|
2069
2069
|
const t = Y(), l = Y(0), b = de.utc().toSeconds() / 3600, f = Y(), g = Y(), E = Y({}), C = e.storageMode == "local-cache";
|
|
2070
2070
|
function T() {
|
|
@@ -2266,7 +2266,7 @@ function In(e) {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
function E(u) {
|
|
2268
2268
|
let r = j(u.url) ?? void 0, y = j(u.id);
|
|
2269
|
-
return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r =
|
|
2269
|
+
return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Ue(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
|
|
2270
2270
|
}
|
|
2271
2271
|
function C(u) {
|
|
2272
2272
|
var y, S;
|
|
@@ -2430,7 +2430,7 @@ function ct(e) {
|
|
|
2430
2430
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
|
|
2431
2431
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2432
2432
|
const S = (e == null ? void 0 : e.items) ?? [];
|
|
2433
|
-
return y == null && r.nav != null && (y =
|
|
2433
|
+
return y == null && r.nav != null && (y = Le({
|
|
2434
2434
|
storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
|
|
2435
2435
|
storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
|
|
2436
2436
|
nav: r.nav ?? (e == null ? void 0 : e.nav)
|
|
@@ -2457,7 +2457,7 @@ function ct(e) {
|
|
|
2457
2457
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
|
|
2458
2458
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2459
2459
|
const S = (e == null ? void 0 : e.items) ?? [];
|
|
2460
|
-
return y == null && r.nav != null && (y =
|
|
2460
|
+
return y == null && r.nav != null && (y = Le({
|
|
2461
2461
|
storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
|
|
2462
2462
|
storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
|
|
2463
2463
|
nav: r.nav ?? (e == null ? void 0 : e.nav)
|
|
@@ -2481,7 +2481,7 @@ function ct(e) {
|
|
|
2481
2481
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
|
|
2482
2482
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2483
2483
|
const S = (e == null ? void 0 : e.items) ?? [];
|
|
2484
|
-
return y == null && r.nav != null && (y =
|
|
2484
|
+
return y == null && r.nav != null && (y = Le({
|
|
2485
2485
|
storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
|
|
2486
2486
|
storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
|
|
2487
2487
|
nav: r.nav ?? (e == null ? void 0 : e.nav)
|
|
@@ -2500,7 +2500,7 @@ function ct(e) {
|
|
|
2500
2500
|
function $(r) {
|
|
2501
2501
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
|
|
2502
2502
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2503
|
-
return y == null && r.nav != null && (y =
|
|
2503
|
+
return y == null && r.nav != null && (y = Le({
|
|
2504
2504
|
storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
|
|
2505
2505
|
storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
|
|
2506
2506
|
nav: r.nav ?? (e == null ? void 0 : e.nav)
|
|
@@ -2520,7 +2520,7 @@ function ct(e) {
|
|
|
2520
2520
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
|
|
2521
2521
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2522
2522
|
const S = (e == null ? void 0 : e.items) ?? [];
|
|
2523
|
-
return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y =
|
|
2523
|
+
return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({
|
|
2524
2524
|
storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
|
|
2525
2525
|
storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
|
|
2526
2526
|
nav: r.nav ?? (e == null ? void 0 : e.nav)
|
|
@@ -2573,16 +2573,16 @@ function ct(e) {
|
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
2575
2575
|
let hr = "Australia/Melbourne", Ir;
|
|
2576
|
-
const
|
|
2576
|
+
const Hr = "auth-credentials-state";
|
|
2577
2577
|
function Dn() {
|
|
2578
2578
|
return Ir;
|
|
2579
2579
|
}
|
|
2580
2580
|
function xn(e) {
|
|
2581
2581
|
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
|
|
2582
|
-
let l = Y(localStorage.getItem(
|
|
2582
|
+
let l = Y(localStorage.getItem(Hr) ?? "");
|
|
2583
2583
|
l.value.length == 0 && b();
|
|
2584
2584
|
function b() {
|
|
2585
|
-
l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(
|
|
2585
|
+
l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
|
|
2586
2586
|
}
|
|
2587
2587
|
const f = Jt("auth-credentials", {});
|
|
2588
2588
|
function g(D) {
|
|
@@ -2663,7 +2663,7 @@ function xn(e) {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
function o(D) {
|
|
2665
2665
|
return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (_, d) => {
|
|
2666
|
-
const A =
|
|
2666
|
+
const A = Ue(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${d}`);
|
|
2667
2667
|
return _ ? `${A}&redirect_path=${_}` : A;
|
|
2668
2668
|
}), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
|
|
2669
2669
|
}
|
|
@@ -2703,7 +2703,7 @@ function xn(e) {
|
|
|
2703
2703
|
if (A != l.value)
|
|
2704
2704
|
throw new Error("state does not match");
|
|
2705
2705
|
let ee = "";
|
|
2706
|
-
e.getTokenUrl ?? (e.getTokenUrl = () =>
|
|
2706
|
+
e.getTokenUrl ?? (e.getTokenUrl = () => Ue(qr(), "token")), ee = e.getTokenUrl(d, `${window.location.origin}/authentication`, K, Q);
|
|
2707
2707
|
const ce = {};
|
|
2708
2708
|
ce.grant_type = K, ce.code = d, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
|
|
2709
2709
|
const W = await Er().post({
|
|
@@ -2841,14 +2841,14 @@ function Mn(e, t = {}) {
|
|
|
2841
2841
|
Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
|
|
2842
2842
|
}
|
|
2843
2843
|
function w(W, Z) {
|
|
2844
|
-
h = Z.map(D), h.forEach((
|
|
2844
|
+
h = Z.map(D), h.forEach((V) => W.$el.appendChild(V));
|
|
2845
2845
|
}
|
|
2846
2846
|
function P(W) {
|
|
2847
2847
|
h.forEach((Z) => W.$el.removeChild(Z));
|
|
2848
2848
|
}
|
|
2849
2849
|
function D(W) {
|
|
2850
|
-
const Z = b + "px",
|
|
2851
|
-
return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? f : ae).toString(), G.style.cursor = K(W), W.includes("t") && (G.style.top =
|
|
2850
|
+
const Z = b + "px", V = -b / 2 + "px", ae = f + 1, G = document.createElement("div");
|
|
2851
|
+
return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? f : ae).toString(), G.style.cursor = K(W), W.includes("t") && (G.style.top = V, G.style.height = Z, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Z, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Z, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Z, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
|
|
2852
2852
|
}
|
|
2853
2853
|
function _(W) {
|
|
2854
2854
|
var ne;
|
|
@@ -2857,12 +2857,12 @@ function Mn(e, t = {}) {
|
|
|
2857
2857
|
const Z = Ae(e);
|
|
2858
2858
|
if (!Z)
|
|
2859
2859
|
return;
|
|
2860
|
-
const
|
|
2860
|
+
const V = Z.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2861
2861
|
if (i.value.x = G.clientX, i.value.y = G.clientY, x = {
|
|
2862
|
-
left:
|
|
2863
|
-
top:
|
|
2864
|
-
height: parseInt(window.getComputedStyle(
|
|
2865
|
-
width: parseInt(window.getComputedStyle(
|
|
2862
|
+
left: V.offsetLeft,
|
|
2863
|
+
top: V.offsetTop,
|
|
2864
|
+
height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
|
|
2865
|
+
width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
|
|
2866
2866
|
}, I = Lr(x), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
|
|
2867
2867
|
return;
|
|
2868
2868
|
let X = W.target;
|
|
@@ -2872,7 +2872,7 @@ function Mn(e, t = {}) {
|
|
|
2872
2872
|
const Z = Ae(e);
|
|
2873
2873
|
if (!Z)
|
|
2874
2874
|
return;
|
|
2875
|
-
const
|
|
2875
|
+
const V = Z.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2876
2876
|
let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
|
|
2877
2877
|
const fe = Ae(x);
|
|
2878
2878
|
if (o.includes("t")) {
|
|
@@ -2891,7 +2891,7 @@ function Mn(e, t = {}) {
|
|
|
2891
2891
|
const ie = Math.min(E, Math.max(g, (fe.width ?? 0) + X));
|
|
2892
2892
|
I.width = ie;
|
|
2893
2893
|
}
|
|
2894
|
-
|
|
2894
|
+
V.dispatchEvent(new CustomEvent("resize")), L(W), ee(I);
|
|
2895
2895
|
}
|
|
2896
2896
|
function A() {
|
|
2897
2897
|
document.documentElement.style.cursor = "", o = null, y.forEach((W) => {
|
|
@@ -2905,37 +2905,37 @@ function Mn(e, t = {}) {
|
|
|
2905
2905
|
b: "s",
|
|
2906
2906
|
l: "w"
|
|
2907
2907
|
};
|
|
2908
|
-
return W.split("").map((
|
|
2908
|
+
return W.split("").map((V) => Z[V]).join("") + "-resize";
|
|
2909
2909
|
}
|
|
2910
2910
|
function Q(W) {
|
|
2911
2911
|
const Z = Ae(e);
|
|
2912
2912
|
if (!Z)
|
|
2913
2913
|
return;
|
|
2914
|
-
const
|
|
2914
|
+
const V = Z.$el;
|
|
2915
2915
|
if (console.log(l), l !== "page" && W == "page") {
|
|
2916
|
-
const ae = jt(
|
|
2916
|
+
const ae = jt(V), G = Ae(ae) ?? null;
|
|
2917
2917
|
let X = 0;
|
|
2918
2918
|
if (G != null) {
|
|
2919
2919
|
const ne = window.getComputedStyle(G);
|
|
2920
2920
|
X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
|
|
2921
2921
|
}
|
|
2922
|
-
|
|
2922
|
+
V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", V.offsetHeight, u.value = !0, ee({
|
|
2923
2923
|
height: void 0,
|
|
2924
2924
|
width: X,
|
|
2925
2925
|
top: 0,
|
|
2926
2926
|
left: 0,
|
|
2927
2927
|
position: void 0
|
|
2928
|
-
}), he(
|
|
2929
|
-
|
|
2928
|
+
}), he(V, "transitionend", () => {
|
|
2929
|
+
V.style.width = "auto", V.style.top = "", V.style.left = "", V.style.position = "", V.style.transition = "", u.value = !1;
|
|
2930
2930
|
}, { once: !0 });
|
|
2931
2931
|
} else if ((l == "page" || Z.$el.style.position !== "absolute") && W !== "page") {
|
|
2932
|
-
|
|
2933
|
-
height: parseInt(window.getComputedStyle(
|
|
2934
|
-
width: parseInt(window.getComputedStyle(
|
|
2935
|
-
top:
|
|
2936
|
-
left:
|
|
2932
|
+
V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, x = {
|
|
2933
|
+
height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
|
|
2934
|
+
width: parseInt(window.getComputedStyle(V).getPropertyValue("width")),
|
|
2935
|
+
top: V.offsetTop,
|
|
2936
|
+
left: V.offsetLeft,
|
|
2937
2937
|
position: "absolute"
|
|
2938
|
-
}, ee(x),
|
|
2938
|
+
}, ee(x), V.offsetHeight;
|
|
2939
2939
|
const ae = x;
|
|
2940
2940
|
W == "freestyle" ? I = {
|
|
2941
2941
|
height: ae.height,
|
|
@@ -2949,8 +2949,8 @@ function Mn(e, t = {}) {
|
|
|
2949
2949
|
top: (ae.top ?? 0) + 2,
|
|
2950
2950
|
left: (ae.left ?? 0) + 2,
|
|
2951
2951
|
position: "absolute"
|
|
2952
|
-
}), ee(I), he(
|
|
2953
|
-
|
|
2952
|
+
}), ee(I), he(V, "transitionend", () => {
|
|
2953
|
+
V.style.transition = "", u.value = !1;
|
|
2954
2954
|
}, { once: !0 });
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
@@ -2958,21 +2958,21 @@ function Mn(e, t = {}) {
|
|
|
2958
2958
|
const Z = Ae(e);
|
|
2959
2959
|
if (!Z)
|
|
2960
2960
|
return;
|
|
2961
|
-
const
|
|
2962
|
-
W.top ?
|
|
2961
|
+
const V = Z.$el;
|
|
2962
|
+
W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
|
|
2963
2963
|
}
|
|
2964
2964
|
function ce(W, Z) {
|
|
2965
2965
|
if (S.value)
|
|
2966
2966
|
return;
|
|
2967
|
-
const
|
|
2968
|
-
|
|
2967
|
+
const V = Ae(e);
|
|
2968
|
+
V && (w(V, W ?? Tn), Q(Z), r.push(he(V.$el, "mousedown", _)), r.push(he(V.$el, "touchstart", _)), S.value = !0, l = Z);
|
|
2969
2969
|
}
|
|
2970
2970
|
function we(W) {
|
|
2971
2971
|
if (!S.value)
|
|
2972
2972
|
return;
|
|
2973
2973
|
const Z = Ae(e);
|
|
2974
|
-
Z && (P(Z), Q(W), r.forEach((
|
|
2975
|
-
|
|
2974
|
+
Z && (P(Z), Q(W), r.forEach((V) => {
|
|
2975
|
+
V();
|
|
2976
2976
|
}), r.length = 0, S.value = !1);
|
|
2977
2977
|
}
|
|
2978
2978
|
return {
|
|
@@ -3493,12 +3493,12 @@ function Da(e, t) {
|
|
|
3493
3493
|
}), $ = Y(void 0), { actionErrorMsg: o, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: S, saveItem: i } = ct({
|
|
3494
3494
|
nav: g,
|
|
3495
3495
|
proxyID: N.value,
|
|
3496
|
-
store:
|
|
3496
|
+
store: Le({
|
|
3497
3497
|
storeMode: b,
|
|
3498
3498
|
storageMode: f,
|
|
3499
3499
|
nav: g
|
|
3500
3500
|
})
|
|
3501
|
-
}), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = C == null ? void 0 : C.params) == null ? void 0 : ae.id : void 0)), P = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D =
|
|
3501
|
+
}), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = C == null ? void 0 : C.params) == null ? void 0 : ae.id : void 0)), P = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), _ = te(() => {
|
|
3502
3502
|
if (P.value == "new")
|
|
3503
3503
|
return !1;
|
|
3504
3504
|
const G = j($);
|
|
@@ -3588,7 +3588,7 @@ function Da(e, t) {
|
|
|
3588
3588
|
onCanSaveAsync: fe,
|
|
3589
3589
|
onGetSaveAsync: ie,
|
|
3590
3590
|
onSaveAsync: Ee,
|
|
3591
|
-
onSaveSuccessAsync:
|
|
3591
|
+
onSaveSuccessAsync: Be = (Me) => ((X == null ? void 0 : X.navBack) === !0 ? E.back() : (G.rowVersion != null && Me.rowVersion != null && (G.rowVersion = Me.rowVersion), ee(), P.value = "view"), Promise.resolve(void 0))
|
|
3592
3592
|
} = { ...e };
|
|
3593
3593
|
i({
|
|
3594
3594
|
additionalUrl: ne,
|
|
@@ -3597,14 +3597,14 @@ function Da(e, t) {
|
|
|
3597
3597
|
onCanSaveAsync: fe,
|
|
3598
3598
|
onGetSaveAsync: ie,
|
|
3599
3599
|
onSaveAsync: Ee,
|
|
3600
|
-
onSaveSuccessAsync:
|
|
3600
|
+
onSaveSuccessAsync: Be,
|
|
3601
3601
|
proxyID: N.value,
|
|
3602
3602
|
// ...params.getOptions(),
|
|
3603
3603
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
3604
3604
|
mode: P.value
|
|
3605
3605
|
});
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function V() {
|
|
3608
3608
|
const G = j(P);
|
|
3609
3609
|
!G || G == "view" ? P.value = "edit" : G == "edit" && (P.value = "view");
|
|
3610
3610
|
}
|
|
@@ -3633,7 +3633,7 @@ function Da(e, t) {
|
|
|
3633
3633
|
restoreItem: we,
|
|
3634
3634
|
saveItem: Z,
|
|
3635
3635
|
showError: D,
|
|
3636
|
-
toggleMode:
|
|
3636
|
+
toggleMode: V
|
|
3637
3637
|
};
|
|
3638
3638
|
}
|
|
3639
3639
|
const Yr = Y(!0), Zr = Y(!1), zr = Y(), gr = Y(!1);
|
|
@@ -3680,7 +3680,7 @@ function Fn(e) {
|
|
|
3680
3680
|
if (u == null)
|
|
3681
3681
|
return;
|
|
3682
3682
|
let r = yn(u.microservice ?? "default") ?? "";
|
|
3683
|
-
return u.path != null && (r =
|
|
3683
|
+
return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
|
|
3684
3684
|
}
|
|
3685
3685
|
function N(h) {
|
|
3686
3686
|
const u = C(h);
|
|
@@ -3720,8 +3720,8 @@ function Fn(e) {
|
|
|
3720
3720
|
}, Mr;
|
|
3721
3721
|
}
|
|
3722
3722
|
function xa(e, t, l) {
|
|
3723
|
-
var
|
|
3724
|
-
const b = Nn(), f = it(), g = Nr(), E = rt(), { bladeData: C } = Cn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((
|
|
3723
|
+
var qe, Ve;
|
|
3724
|
+
const b = Nn(), f = it(), g = Nr(), E = rt(), { bladeData: C } = Cn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((qe = f.findItem($)) == null ? void 0 : qe.storeMode) ?? "session", h = e.storageMode ?? ((Ve = f.findItem($)) == null ? void 0 : Ve.storageMode) ?? "local-cache", u = j(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
|
|
3725
3725
|
...u.filter((U) => U.name != null).map((U) => U.name),
|
|
3726
3726
|
...e.defaultFilters ?? [],
|
|
3727
3727
|
...r.value
|
|
@@ -3731,82 +3731,82 @@ function xa(e, t, l) {
|
|
|
3731
3731
|
function L() {
|
|
3732
3732
|
var U, J;
|
|
3733
3733
|
if (T) {
|
|
3734
|
-
const
|
|
3735
|
-
if (
|
|
3736
|
-
return Number.parseInt(
|
|
3734
|
+
const H = (U = C.value) == null ? void 0 : U.page;
|
|
3735
|
+
if (H != null)
|
|
3736
|
+
return Number.parseInt(H);
|
|
3737
3737
|
}
|
|
3738
3738
|
if (N) {
|
|
3739
|
-
const
|
|
3740
|
-
if (
|
|
3741
|
-
return Number.parseInt(typeof
|
|
3739
|
+
const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.page;
|
|
3740
|
+
if (H != null)
|
|
3741
|
+
return Number.parseInt(typeof H == "string" ? H : H.toString());
|
|
3742
3742
|
}
|
|
3743
3743
|
return 1;
|
|
3744
3744
|
}
|
|
3745
3745
|
const w = te(() => {
|
|
3746
3746
|
var U, J;
|
|
3747
3747
|
if (T) {
|
|
3748
|
-
const
|
|
3749
|
-
if (
|
|
3750
|
-
return
|
|
3748
|
+
const H = (U = C.value) == null ? void 0 : U.proxyID;
|
|
3749
|
+
if (H != null)
|
|
3750
|
+
return H;
|
|
3751
3751
|
}
|
|
3752
3752
|
if (N) {
|
|
3753
|
-
const
|
|
3754
|
-
if (
|
|
3755
|
-
return
|
|
3753
|
+
const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.query;
|
|
3754
|
+
if (H != null)
|
|
3755
|
+
return H;
|
|
3756
3756
|
}
|
|
3757
3757
|
return e.proxyID;
|
|
3758
3758
|
}), P = Y(D());
|
|
3759
3759
|
function D() {
|
|
3760
3760
|
var U, J;
|
|
3761
3761
|
if (T) {
|
|
3762
|
-
const
|
|
3763
|
-
if (
|
|
3764
|
-
return
|
|
3762
|
+
const H = (U = C.value) == null ? void 0 : U.search;
|
|
3763
|
+
if (H != null)
|
|
3764
|
+
return H;
|
|
3765
3765
|
}
|
|
3766
3766
|
if (N) {
|
|
3767
|
-
const
|
|
3768
|
-
if (
|
|
3769
|
-
return
|
|
3767
|
+
const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.search;
|
|
3768
|
+
if (H != null)
|
|
3769
|
+
return H;
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
const _ = Y(j(e.startShowingInactive) ?? !1), d = te(() => [
|
|
3773
3773
|
...e.searchProps ?? [],
|
|
3774
3774
|
...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
|
|
3775
|
-
]), A = Y([]), K =
|
|
3775
|
+
]), A = Y([]), K = Re([]), Q = Y([]);
|
|
3776
3776
|
let ee;
|
|
3777
|
-
const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem:
|
|
3777
|
+
const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: V, getAllItems: ae, restoreItem: G } = ct({
|
|
3778
3778
|
nav: $,
|
|
3779
3779
|
proxyID: w.value,
|
|
3780
|
-
store:
|
|
3780
|
+
store: Le({
|
|
3781
3781
|
storeMode: o,
|
|
3782
3782
|
storageMode: h,
|
|
3783
3783
|
nav: $
|
|
3784
3784
|
})
|
|
3785
|
-
}), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ie =
|
|
3785
|
+
}), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ie = Re(!1), Ee = Re(e.showSearch ?? !0), Be = Y(0), Me = te(() => {
|
|
3786
3786
|
let U, J = [];
|
|
3787
3787
|
S.value.forEach((O) => {
|
|
3788
3788
|
const oe = y.value[O], ve = u.find((De) => De.name == oe);
|
|
3789
3789
|
ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : J.push(oe);
|
|
3790
3790
|
});
|
|
3791
|
-
const
|
|
3792
|
-
return Te(J) && (
|
|
3791
|
+
const H = {};
|
|
3792
|
+
return Te(J) && (H.filterBy = J.toString()), U != null && (H.query = U), H;
|
|
3793
3793
|
}), rr = te(() => {
|
|
3794
3794
|
var J;
|
|
3795
3795
|
let U = e.params != null ? { ...e.params } : {};
|
|
3796
|
-
return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage),
|
|
3797
|
-
}), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => _.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1),
|
|
3796
|
+
return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Me.value != null && (U = { ...U, ...Me.value }), _.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (J = e.selectProps) == null ? void 0 : J.toString()), P.value != null && (U.searchString = P.value), U;
|
|
3797
|
+
}), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => _.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
|
|
3798
3798
|
let U = new Array();
|
|
3799
|
-
return
|
|
3800
|
-
let O = U.find((oe) => oe.position ==
|
|
3801
|
-
O == null ? U.push({ position:
|
|
3802
|
-
}), U.sort(
|
|
3799
|
+
return Ce.value.filter((H) => H.sublevel != null).forEach((H) => {
|
|
3800
|
+
let O = U.find((oe) => oe.position == H.sublevel);
|
|
3801
|
+
O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
|
|
3802
|
+
}), U.sort(Ge.firstBy((H) => H.position));
|
|
3803
3803
|
}), lr = te(() => {
|
|
3804
3804
|
let U = new Array();
|
|
3805
|
-
return
|
|
3806
|
-
let O = U.find((oe) => oe.position ==
|
|
3807
|
-
O == null ? U.push({ position:
|
|
3808
|
-
}), U.sort(
|
|
3809
|
-
}), ur = te(() =>
|
|
3805
|
+
return Ce.value.filter((H) => H.level != null).forEach((H) => {
|
|
3806
|
+
let O = U.find((oe) => oe.position == H.level);
|
|
3807
|
+
O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
|
|
3808
|
+
}), U.sort(Ge.firstBy((H) => H.position));
|
|
3809
|
+
}), ur = te(() => Ce.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
|
|
3810
3810
|
function be(U) {
|
|
3811
3811
|
if (e.itemBladeName != null) {
|
|
3812
3812
|
let J = {
|
|
@@ -3823,19 +3823,19 @@ function xa(e, t, l) {
|
|
|
3823
3823
|
function cr(U) {
|
|
3824
3824
|
const {
|
|
3825
3825
|
additionalUrl: J,
|
|
3826
|
-
onDeleteAsync:
|
|
3826
|
+
onDeleteAsync: H
|
|
3827
3827
|
} = { ...e }, O = j(U), oe = O.id, ve = (De) => {
|
|
3828
3828
|
if (De != null) {
|
|
3829
3829
|
let Se = A.value.findIndex((se) => se.id == De);
|
|
3830
3830
|
if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
|
|
3831
|
-
let se = e.items.findIndex((
|
|
3831
|
+
let se = e.items.findIndex((Ne) => Ne.id == De);
|
|
3832
3832
|
se > -1 && e.items.splice(se, 1);
|
|
3833
3833
|
}
|
|
3834
3834
|
} else {
|
|
3835
3835
|
let Se = A.value.findIndex((se) => se === O);
|
|
3836
3836
|
if (Se == -1 && (Se = A.value.findIndex((se) => se == O)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
|
|
3837
|
-
let se = e.items.findIndex((
|
|
3838
|
-
se == -1 && (se = e.items.findIndex((
|
|
3837
|
+
let se = e.items.findIndex((Ne) => Ne === O);
|
|
3838
|
+
se == -1 && (se = e.items.findIndex((Ne) => Ne == O)), se > -1 && e.items.splice(se, 1);
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
};
|
|
@@ -3844,7 +3844,7 @@ function xa(e, t, l) {
|
|
|
3844
3844
|
data: O,
|
|
3845
3845
|
nav: $,
|
|
3846
3846
|
onCanDeleteAsync: e.onCanDeleteAsync,
|
|
3847
|
-
onDeleteAsync:
|
|
3847
|
+
onDeleteAsync: H,
|
|
3848
3848
|
onDeleteSuccessAsync: async () => (ve(oe), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
|
|
3849
3849
|
proxyID: w.value,
|
|
3850
3850
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
@@ -3863,20 +3863,20 @@ function xa(e, t, l) {
|
|
|
3863
3863
|
// ...(useBladeSrc ? bladeData.value : {})
|
|
3864
3864
|
});
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3866
|
+
function $e() {
|
|
3867
3867
|
Z(() => {
|
|
3868
|
-
b.exportToCSV(
|
|
3868
|
+
b.exportToCSV(Ce.value, K.value);
|
|
3869
3869
|
}, { loadingMsg: "Exporting to CSV" });
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3871
|
+
function Pe() {
|
|
3872
3872
|
let U = j(A);
|
|
3873
3873
|
if (U = e.onFilter ? e.onFilter(U) : U, P.value != null && P.value.length > 0) {
|
|
3874
3874
|
let J = [...d.value];
|
|
3875
|
-
e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((
|
|
3875
|
+
e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((H) => hn(H, P.value, J)));
|
|
3876
3876
|
}
|
|
3877
3877
|
K.value = U;
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function We() {
|
|
3880
3880
|
const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
|
|
3881
3881
|
e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
3882
3882
|
}
|
|
@@ -3900,28 +3900,28 @@ function xa(e, t, l) {
|
|
|
3900
3900
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
3901
3901
|
};
|
|
3902
3902
|
if (e.isSingle === !0)
|
|
3903
|
-
J.id === "new" ? A.value = [] : A.value = await
|
|
3903
|
+
J.id === "new" ? A.value = [] : A.value = await V(J);
|
|
3904
3904
|
else {
|
|
3905
|
-
let
|
|
3905
|
+
let H = await ae({
|
|
3906
3906
|
...J,
|
|
3907
3907
|
onGetSuccessAsync: async (O, oe) => {
|
|
3908
3908
|
let ve = O == null ? void 0 : O.data;
|
|
3909
|
-
return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (
|
|
3909
|
+
return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
|
|
3910
3910
|
}
|
|
3911
3911
|
});
|
|
3912
|
-
A.value =
|
|
3912
|
+
A.value = H;
|
|
3913
3913
|
}
|
|
3914
|
-
|
|
3914
|
+
Pe();
|
|
3915
3915
|
}
|
|
3916
3916
|
function Je(U, J) {
|
|
3917
|
-
const
|
|
3918
|
-
if (
|
|
3917
|
+
const H = j(U);
|
|
3918
|
+
if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
|
|
3919
3919
|
if (e.onSelectItem != null)
|
|
3920
3920
|
e.onSelectItem(ee);
|
|
3921
3921
|
else {
|
|
3922
3922
|
let O = {
|
|
3923
3923
|
bladeName: e.itemBladeName,
|
|
3924
|
-
id:
|
|
3924
|
+
id: H.id,
|
|
3925
3925
|
nav: $
|
|
3926
3926
|
};
|
|
3927
3927
|
J == "page" && g.push({
|
|
@@ -3933,8 +3933,8 @@ function xa(e, t, l) {
|
|
|
3933
3933
|
function je() {
|
|
3934
3934
|
Ee.value ? (Ee.value = e.showSearch ?? !1, P.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
|
|
3935
3935
|
}
|
|
3936
|
-
return
|
|
3937
|
-
|
|
3936
|
+
return We(), Xt([P], () => {
|
|
3937
|
+
Pe();
|
|
3938
3938
|
}, { debounce: 500, maxWait: 500 }), _e([_, I], async () => {
|
|
3939
3939
|
await Ie();
|
|
3940
3940
|
}), _e([X, () => e.errorMsg], ([U, J]) => {
|
|
@@ -3942,7 +3942,7 @@ function xa(e, t, l) {
|
|
|
3942
3942
|
}), _e(() => e.refreshToggle, () => {
|
|
3943
3943
|
Ie({ deepRefresh: !0 });
|
|
3944
3944
|
}), pr([A, () => e.items], () => {
|
|
3945
|
-
|
|
3945
|
+
Pe();
|
|
3946
3946
|
}), Or(async () => {
|
|
3947
3947
|
var U;
|
|
3948
3948
|
e.eager == !0 && await Ie({ deepRefresh: ((U = E == null ? void 0 : E.params) == null ? void 0 : U.refresh) == "true" });
|
|
@@ -3953,7 +3953,7 @@ function xa(e, t, l) {
|
|
|
3953
3953
|
deleteItem: cr,
|
|
3954
3954
|
displayHeaders: ur,
|
|
3955
3955
|
errorMsg: X,
|
|
3956
|
-
exportToCSV:
|
|
3956
|
+
exportToCSV: $e,
|
|
3957
3957
|
filteredItems: K,
|
|
3958
3958
|
filters: y,
|
|
3959
3959
|
filtersChanged: x,
|
|
@@ -3972,32 +3972,32 @@ function xa(e, t, l) {
|
|
|
3972
3972
|
showInactive: _,
|
|
3973
3973
|
showSearch: Ee,
|
|
3974
3974
|
subtitleOptions: ar,
|
|
3975
|
-
tableHeaders:
|
|
3975
|
+
tableHeaders: Ce,
|
|
3976
3976
|
titleOptions: lr,
|
|
3977
3977
|
toggleSearch: je,
|
|
3978
|
-
totalPages:
|
|
3978
|
+
totalPages: Be
|
|
3979
3979
|
};
|
|
3980
3980
|
}
|
|
3981
|
-
let
|
|
3981
|
+
let ke;
|
|
3982
3982
|
function kn(e) {
|
|
3983
3983
|
const t = Y((e == null ? void 0 : e.default) ?? "Admin"), l = Y((e == null ? void 0 : e.groups) ?? []);
|
|
3984
|
-
return
|
|
3984
|
+
return ke = {
|
|
3985
3985
|
currentGroup: t,
|
|
3986
3986
|
groupOptions: l,
|
|
3987
3987
|
useRoutes: e == null ? void 0 : e.useRoutes
|
|
3988
|
-
},
|
|
3988
|
+
}, ke;
|
|
3989
3989
|
}
|
|
3990
3990
|
function _a() {
|
|
3991
3991
|
const e = Nr(), t = it(), l = Dn();
|
|
3992
3992
|
return {
|
|
3993
|
-
...
|
|
3993
|
+
...ke,
|
|
3994
3994
|
sidebarNavItems: te(() => {
|
|
3995
3995
|
var g;
|
|
3996
3996
|
let b = e.getRoutes().filter((E) => E.meta != null && E.meta.menuGroup != null);
|
|
3997
3997
|
const f = [];
|
|
3998
3998
|
return b.forEach((E) => {
|
|
3999
3999
|
var o;
|
|
4000
|
-
const C =
|
|
4000
|
+
const C = ke.groupOptions.value.find((h) => h.displayName == E.meta.menuGroup), T = t.findItem(E.meta.nav), N = E.meta;
|
|
4001
4001
|
let $ = f.find((h) => h.displayName == N.menuGroup);
|
|
4002
4002
|
$ == null && ($ = {
|
|
4003
4003
|
displayName: N.menuGroup,
|
|
@@ -4015,8 +4015,8 @@ function _a() {
|
|
|
4015
4015
|
});
|
|
4016
4016
|
}), f.forEach((E) => {
|
|
4017
4017
|
var C;
|
|
4018
|
-
E.items = (C = E.items) == null ? void 0 : C.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(
|
|
4019
|
-
}),
|
|
4018
|
+
E.items = (C = E.items) == null ? void 0 : C.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Ge.firstBy((T) => T.displayName));
|
|
4019
|
+
}), ke.currentGroup.value != null ? ((g = f.find((E) => E.displayName == ke.currentGroup.value)) == null ? void 0 : g.items) ?? [] : f.filter((E) => !E.requiresAuth || l.doShow(E.subscriptions, E.permissions, "view"));
|
|
4020
4020
|
})
|
|
4021
4021
|
};
|
|
4022
4022
|
}
|
|
@@ -4104,7 +4104,7 @@ function Pa(e) {
|
|
|
4104
4104
|
export {
|
|
4105
4105
|
oa as DataURIToBlob,
|
|
4106
4106
|
la as addWeekday,
|
|
4107
|
-
|
|
4107
|
+
Ue as appendUrl,
|
|
4108
4108
|
an as capitalizeWords,
|
|
4109
4109
|
pn as checkImage,
|
|
4110
4110
|
sn as containsSearch,
|
|
@@ -4125,7 +4125,7 @@ export {
|
|
|
4125
4125
|
En as createSessionStoreDefinition,
|
|
4126
4126
|
bn as createStoreBuilder,
|
|
4127
4127
|
wn as createUrl,
|
|
4128
|
-
|
|
4128
|
+
Vr as createWholeLastUpdateStoreDefinition,
|
|
4129
4129
|
cn as csvContains,
|
|
4130
4130
|
ba as csvDefaults,
|
|
4131
4131
|
nt as deepSelect,
|
|
@@ -4182,11 +4182,11 @@ export {
|
|
|
4182
4182
|
Mn as useResizable,
|
|
4183
4183
|
Ca as useRules,
|
|
4184
4184
|
ga as useStore,
|
|
4185
|
-
|
|
4185
|
+
Le as useStoreDefinition,
|
|
4186
4186
|
$n as useTracker,
|
|
4187
4187
|
ma as useUrls,
|
|
4188
4188
|
mn as validEmail,
|
|
4189
|
-
|
|
4189
|
+
Ze as weekdayPairs,
|
|
4190
4190
|
na as weekdayShortName,
|
|
4191
4191
|
ta as weekdayValue
|
|
4192
4192
|
};
|
package/package.json
CHANGED