@stonecrop/desktop 0.2.55 → 0.2.57
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/desktop.js +198 -194
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +2 -2
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as ye, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as
|
|
1
|
+
import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as ye, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as bo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as E, shallowReactive as Cr, watch as z, nextTick as Re, hasInjectionContext as Pr, getCurrentInstance as We, reactive as ke, h as _o, provide as ft, isRef as tt, isReactive as an, toRef as ht, watchEffect as Dr, getCurrentScope as xt, onScopeDispose as St, toRefs as Cn, useTemplateRef as Nt, normalizeStyle as re, renderSlot as ve, createVNode as Et, withCtx as kt, readonly as Ar, customRef as Tr, createTextVNode as Eo, onBeforeUnmount as Rr, resolveComponent as Vr, withKeys as ct, vModelText as jr } from "vue";
|
|
2
2
|
const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr = ["onClick"], Ur = { class: "dropdown-container" }, Hr = { class: "dropdown" }, Fr = ["onclick"], zr = ["href"], Gr = { class: "dropdown-item" }, qr = /* @__PURE__ */ Z({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
@@ -157,7 +157,7 @@ const Zr = { class: "aform" }, es = /* @__PURE__ */ Z({
|
|
|
157
157
|
}, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
|
-
}), ts = /* @__PURE__ */ Xr(es, [["__scopeId", "data-v-
|
|
160
|
+
}), ts = /* @__PURE__ */ Xr(es, [["__scopeId", "data-v-d9ce3008"]]);
|
|
161
161
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
162
162
|
var ns = Object.defineProperty, os = (e, t, n) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, X = (e, t, n) => os(e, typeof t != "symbol" ? t + "" : t, n);
|
|
163
163
|
function Gt(e) {
|
|
@@ -549,7 +549,7 @@ async function ys(e) {
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
let ie;
|
|
552
|
-
function
|
|
552
|
+
function ws() {
|
|
553
553
|
ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
|
|
554
554
|
function e() {
|
|
555
555
|
return new Promise((t, n) => {
|
|
@@ -564,9 +564,9 @@ function bs() {
|
|
|
564
564
|
}
|
|
565
565
|
return e;
|
|
566
566
|
}
|
|
567
|
-
async function
|
|
567
|
+
async function bs(e) {
|
|
568
568
|
try {
|
|
569
|
-
const t = await
|
|
569
|
+
const t = await ws()();
|
|
570
570
|
if (!t)
|
|
571
571
|
return;
|
|
572
572
|
const { text: n, file: o } = t;
|
|
@@ -660,7 +660,7 @@ function $s(e) {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
let Ae = !0;
|
|
663
|
-
const
|
|
663
|
+
const wt = [], Ee = "pinia:mutations", q = "pinia", { assign: Os } = Object, $t = (e) => "🍍 " + e;
|
|
664
664
|
function xs(e, t) {
|
|
665
665
|
cn({
|
|
666
666
|
id: "dev.esm.pinia",
|
|
@@ -668,7 +668,7 @@ function xs(e, t) {
|
|
|
668
668
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
669
669
|
packageName: "pinia",
|
|
670
670
|
homepage: "https://pinia.vuejs.org",
|
|
671
|
-
componentStateTypes:
|
|
671
|
+
componentStateTypes: wt,
|
|
672
672
|
app: e
|
|
673
673
|
}, (n) => {
|
|
674
674
|
typeof n.now != "function" && F("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
@@ -705,7 +705,7 @@ function xs(e, t) {
|
|
|
705
705
|
{
|
|
706
706
|
icon: "folder_open",
|
|
707
707
|
action: async () => {
|
|
708
|
-
await
|
|
708
|
+
await bs(t), n.sendInspectorTree(q), n.sendInspectorState(q);
|
|
709
709
|
},
|
|
710
710
|
tooltip: "Import the state from a JSON file"
|
|
711
711
|
}
|
|
@@ -795,13 +795,13 @@ Only state can be modified.`);
|
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
797
|
function Ss(e, t) {
|
|
798
|
-
|
|
798
|
+
wt.includes($t(t.$id)) || wt.push($t(t.$id)), cn({
|
|
799
799
|
id: "dev.esm.pinia",
|
|
800
800
|
label: "Pinia 🍍",
|
|
801
801
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
802
802
|
packageName: "pinia",
|
|
803
803
|
homepage: "https://pinia.vuejs.org",
|
|
804
|
-
componentStateTypes:
|
|
804
|
+
componentStateTypes: wt,
|
|
805
805
|
app: e,
|
|
806
806
|
settings: {
|
|
807
807
|
logStoreChanges: {
|
|
@@ -867,7 +867,7 @@ function Ss(e, t) {
|
|
|
867
867
|
});
|
|
868
868
|
});
|
|
869
869
|
}, !0), t._customProperties.forEach((i) => {
|
|
870
|
-
z(() =>
|
|
870
|
+
z(() => E(t[i]), (a, c) => {
|
|
871
871
|
n.notifyComponentUpdate(), n.sendInspectorState(q), Ae && n.addTimelineEvent({
|
|
872
872
|
layerId: Ee,
|
|
873
873
|
event: {
|
|
@@ -959,7 +959,7 @@ function Ns({ app: e, store: t, options: n }) {
|
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
function Is() {
|
|
962
|
-
const e =
|
|
962
|
+
const e = bo(!0), t = e.run(() => C({}));
|
|
963
963
|
let n = [], o = [];
|
|
964
964
|
const r = $e({
|
|
965
965
|
install(s) {
|
|
@@ -1048,35 +1048,35 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1048
1048
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
1049
1049
|
throw new Error("Pinia destroyed");
|
|
1050
1050
|
const c = { deep: !0 };
|
|
1051
|
-
process.env.NODE_ENV !== "production" && !$o && (c.onTrigger = (
|
|
1052
|
-
l ? f =
|
|
1051
|
+
process.env.NODE_ENV !== "production" && !$o && (c.onTrigger = (b) => {
|
|
1052
|
+
l ? f = b : l == !1 && !k._hotUpdating && (Array.isArray(f) ? f.push(b) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1053
1053
|
});
|
|
1054
1054
|
let l, u, d = [], p = [], f;
|
|
1055
1055
|
const m = o.state.value[e];
|
|
1056
1056
|
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1057
1057
|
const v = C({});
|
|
1058
1058
|
let $;
|
|
1059
|
-
function x(
|
|
1060
|
-
let
|
|
1061
|
-
l = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof
|
|
1059
|
+
function x(b) {
|
|
1060
|
+
let w;
|
|
1061
|
+
l = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
|
|
1062
1062
|
type: se.patchFunction,
|
|
1063
1063
|
storeId: e,
|
|
1064
1064
|
events: f
|
|
1065
|
-
}) : (Jt(o.state.value[e],
|
|
1065
|
+
}) : (Jt(o.state.value[e], b), w = {
|
|
1066
1066
|
type: se.patchObject,
|
|
1067
|
-
payload:
|
|
1067
|
+
payload: b,
|
|
1068
1068
|
storeId: e,
|
|
1069
1069
|
events: f
|
|
1070
1070
|
});
|
|
1071
1071
|
const L = $ = Symbol();
|
|
1072
1072
|
Re().then(() => {
|
|
1073
1073
|
$ === L && (l = !0);
|
|
1074
|
-
}), u = !0, De(d,
|
|
1074
|
+
}), u = !0, De(d, w, o.state.value[e]);
|
|
1075
1075
|
}
|
|
1076
1076
|
const O = s ? function() {
|
|
1077
|
-
const { state:
|
|
1077
|
+
const { state: b } = n, w = b ? b() : {};
|
|
1078
1078
|
this.$patch((L) => {
|
|
1079
|
-
Q(L,
|
|
1079
|
+
Q(L, w);
|
|
1080
1080
|
});
|
|
1081
1081
|
} : (
|
|
1082
1082
|
/* istanbul ignore next */
|
|
@@ -1087,9 +1087,9 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1087
1087
|
function P() {
|
|
1088
1088
|
i.stop(), d = [], p = [], o._s.delete(e);
|
|
1089
1089
|
}
|
|
1090
|
-
const U = (
|
|
1091
|
-
if (Tn in
|
|
1092
|
-
return
|
|
1090
|
+
const U = (b, w = "") => {
|
|
1091
|
+
if (Tn in b)
|
|
1092
|
+
return b[jt] = w, b;
|
|
1093
1093
|
const L = function() {
|
|
1094
1094
|
nt(o);
|
|
1095
1095
|
const K = Array.from(arguments), ee = [], Ue = [];
|
|
@@ -1102,19 +1102,19 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1102
1102
|
De(p, {
|
|
1103
1103
|
args: K,
|
|
1104
1104
|
name: L[jt],
|
|
1105
|
-
store:
|
|
1105
|
+
store: k,
|
|
1106
1106
|
after: He,
|
|
1107
1107
|
onError: it
|
|
1108
1108
|
});
|
|
1109
1109
|
let oe;
|
|
1110
1110
|
try {
|
|
1111
|
-
oe =
|
|
1111
|
+
oe = b.apply(this && this.$id === e ? this : k, K);
|
|
1112
1112
|
} catch (G) {
|
|
1113
1113
|
throw De(Ue, G), G;
|
|
1114
1114
|
}
|
|
1115
1115
|
return oe instanceof Promise ? oe.then((G) => (De(ee, G), G)).catch((G) => (De(Ue, G), Promise.reject(G))) : (De(ee, oe), oe);
|
|
1116
1116
|
};
|
|
1117
|
-
return L[Tn] = !0, L[jt] =
|
|
1117
|
+
return L[Tn] = !0, L[jt] = w, L;
|
|
1118
1118
|
}, D = /* @__PURE__ */ $e({
|
|
1119
1119
|
actions: {},
|
|
1120
1120
|
getters: {},
|
|
@@ -1127,18 +1127,18 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1127
1127
|
$onAction: An.bind(null, p),
|
|
1128
1128
|
$patch: x,
|
|
1129
1129
|
$reset: O,
|
|
1130
|
-
$subscribe(
|
|
1131
|
-
const L = An(d,
|
|
1132
|
-
(
|
|
1130
|
+
$subscribe(b, w = {}) {
|
|
1131
|
+
const L = An(d, b, w.detached, () => K()), K = i.run(() => z(() => o.state.value[e], (ee) => {
|
|
1132
|
+
(w.flush === "sync" ? u : l) && b({
|
|
1133
1133
|
storeId: e,
|
|
1134
1134
|
type: se.direct,
|
|
1135
1135
|
events: f
|
|
1136
1136
|
}, ee);
|
|
1137
|
-
}, Q({}, c,
|
|
1137
|
+
}, Q({}, c, w)));
|
|
1138
1138
|
return L;
|
|
1139
1139
|
},
|
|
1140
1140
|
$dispose: P
|
|
1141
|
-
},
|
|
1141
|
+
}, k = ke(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe ? Q(
|
|
1142
1142
|
{
|
|
1143
1143
|
_hmrPayload: D,
|
|
1144
1144
|
_customProperties: $e(/* @__PURE__ */ new Set())
|
|
@@ -1148,88 +1148,88 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1148
1148
|
// must be added later
|
|
1149
1149
|
// setupStore
|
|
1150
1150
|
) : B);
|
|
1151
|
-
o._s.set(e,
|
|
1152
|
-
const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (i =
|
|
1153
|
-
for (const
|
|
1154
|
-
const
|
|
1155
|
-
if (tt(
|
|
1156
|
-
process.env.NODE_ENV !== "production" && r ? ut(v.value,
|
|
1157
|
-
else if (typeof
|
|
1158
|
-
const L = process.env.NODE_ENV !== "production" && r ?
|
|
1159
|
-
ne[
|
|
1160
|
-
} else process.env.NODE_ENV !== "production" && Rn(
|
|
1151
|
+
o._s.set(e, k);
|
|
1152
|
+
const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (i = bo()).run(() => t({ action: U }))));
|
|
1153
|
+
for (const b in ne) {
|
|
1154
|
+
const w = ne[b];
|
|
1155
|
+
if (tt(w) && !Rn(w) || an(w))
|
|
1156
|
+
process.env.NODE_ENV !== "production" && r ? ut(v.value, b, ht(ne, b)) : s || (m && Ds(w) && (tt(w) ? w.value = m[b] : Jt(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" && D.state.push(b);
|
|
1157
|
+
else if (typeof w == "function") {
|
|
1158
|
+
const L = process.env.NODE_ENV !== "production" && r ? w : U(w, b);
|
|
1159
|
+
ne[b] = L, process.env.NODE_ENV !== "production" && (D.actions[b] = w), a.actions[b] = w;
|
|
1160
|
+
} else process.env.NODE_ENV !== "production" && Rn(w) && (D.getters[b] = s ? (
|
|
1161
1161
|
// @ts-expect-error
|
|
1162
|
-
n.getters[
|
|
1163
|
-
) :
|
|
1164
|
-
(ne._getters = $e([]))).push(
|
|
1162
|
+
n.getters[b]
|
|
1163
|
+
) : w, Oe && (ne._getters || // @ts-expect-error: same
|
|
1164
|
+
(ne._getters = $e([]))).push(b));
|
|
1165
1165
|
}
|
|
1166
|
-
if (Q(
|
|
1166
|
+
if (Q(k, ne), Q(et(k), ne), Object.defineProperty(k, "$state", {
|
|
1167
1167
|
get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
|
|
1168
|
-
set: (
|
|
1168
|
+
set: (b) => {
|
|
1169
1169
|
if (process.env.NODE_ENV !== "production" && r)
|
|
1170
1170
|
throw new Error("cannot set hotState");
|
|
1171
|
-
x((
|
|
1172
|
-
Q(
|
|
1171
|
+
x((w) => {
|
|
1172
|
+
Q(w, b);
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1176
|
-
|
|
1177
|
-
if (
|
|
1178
|
-
const L =
|
|
1179
|
-
typeof L == "object" && Ce(L) && Ce(K) ? Ro(L, K) :
|
|
1175
|
+
}), process.env.NODE_ENV !== "production" && (k._hotUpdate = $e((b) => {
|
|
1176
|
+
k._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
|
|
1177
|
+
if (w in k.$state) {
|
|
1178
|
+
const L = b.$state[w], K = k.$state[w];
|
|
1179
|
+
typeof L == "object" && Ce(L) && Ce(K) ? Ro(L, K) : b.$state[w] = K;
|
|
1180
1180
|
}
|
|
1181
|
-
ut(
|
|
1182
|
-
}), Object.keys(
|
|
1183
|
-
|
|
1184
|
-
}), l = !1, u = !1, o.state.value[e] = ht(
|
|
1181
|
+
ut(k, w, ht(b.$state, w));
|
|
1182
|
+
}), Object.keys(k.$state).forEach((w) => {
|
|
1183
|
+
w in b.$state || Vt(k, w);
|
|
1184
|
+
}), l = !1, u = !1, o.state.value[e] = ht(b._hmrPayload, "hotState"), u = !0, Re().then(() => {
|
|
1185
1185
|
l = !0;
|
|
1186
1186
|
});
|
|
1187
|
-
for (const
|
|
1188
|
-
const L = w
|
|
1189
|
-
ut(
|
|
1187
|
+
for (const w in b._hmrPayload.actions) {
|
|
1188
|
+
const L = b[w];
|
|
1189
|
+
ut(k, w, U(L, w));
|
|
1190
1190
|
}
|
|
1191
|
-
for (const
|
|
1192
|
-
const L =
|
|
1191
|
+
for (const w in b._hmrPayload.getters) {
|
|
1192
|
+
const L = b._hmrPayload.getters[w], K = s ? (
|
|
1193
1193
|
// special handling of options api
|
|
1194
|
-
j(() => (nt(o), L.call(
|
|
1194
|
+
j(() => (nt(o), L.call(k, k)))
|
|
1195
1195
|
) : L;
|
|
1196
|
-
ut(
|
|
1196
|
+
ut(k, w, K);
|
|
1197
1197
|
}
|
|
1198
|
-
Object.keys(
|
|
1199
|
-
|
|
1200
|
-
}), Object.keys(
|
|
1201
|
-
|
|
1202
|
-
}),
|
|
1198
|
+
Object.keys(k._hmrPayload.getters).forEach((w) => {
|
|
1199
|
+
w in b._hmrPayload.getters || Vt(k, w);
|
|
1200
|
+
}), Object.keys(k._hmrPayload.actions).forEach((w) => {
|
|
1201
|
+
w in b._hmrPayload.actions || Vt(k, w);
|
|
1202
|
+
}), k._hmrPayload = b._hmrPayload, k._getters = b._getters, k._hotUpdating = !1;
|
|
1203
1203
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1204
|
-
const
|
|
1204
|
+
const b = {
|
|
1205
1205
|
writable: !0,
|
|
1206
1206
|
configurable: !0,
|
|
1207
1207
|
// avoid warning on devtools trying to display this property
|
|
1208
1208
|
enumerable: !1
|
|
1209
1209
|
};
|
|
1210
|
-
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
|
1211
|
-
Object.defineProperty(
|
|
1210
|
+
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
|
1211
|
+
Object.defineProperty(k, w, Q({ value: k[w] }, b));
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
|
-
return o._p.forEach((
|
|
1214
|
+
return o._p.forEach((b) => {
|
|
1215
1215
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1216
|
-
const
|
|
1217
|
-
store:
|
|
1216
|
+
const w = i.run(() => b({
|
|
1217
|
+
store: k,
|
|
1218
1218
|
app: o._a,
|
|
1219
1219
|
pinia: o,
|
|
1220
1220
|
options: a
|
|
1221
1221
|
}));
|
|
1222
|
-
Object.keys(
|
|
1222
|
+
Object.keys(w || {}).forEach((L) => k._customProperties.add(L)), Q(k, w);
|
|
1223
1223
|
} else
|
|
1224
|
-
Q(
|
|
1225
|
-
store:
|
|
1224
|
+
Q(k, i.run(() => b({
|
|
1225
|
+
store: k,
|
|
1226
1226
|
app: o._a,
|
|
1227
1227
|
pinia: o,
|
|
1228
1228
|
options: a
|
|
1229
1229
|
})));
|
|
1230
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1230
|
+
}), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1231
1231
|
state: () => new MyClass()
|
|
1232
|
-
Found in store "${
|
|
1232
|
+
Found in store "${k.$id}".`), m && s && n.hydrate && n.hydrate(k.$state, m), l = !0, u = !0, k;
|
|
1233
1233
|
}
|
|
1234
1234
|
// @__NO_SIDE_EFFECTS__
|
|
1235
1235
|
function As(e, t, n) {
|
|
@@ -1278,11 +1278,11 @@ function jo(e) {
|
|
|
1278
1278
|
e.addDoctype(l), n.value.setup(l), a && (c ? await n.value.getRecord(l, c) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", c ? [c] : void 0), o.value = !0;
|
|
1279
1279
|
}), { stonecrop: n, isReady: o };
|
|
1280
1280
|
}
|
|
1281
|
-
const Rs = class
|
|
1281
|
+
const Rs = class bt {
|
|
1282
1282
|
constructor(t, n) {
|
|
1283
|
-
if (X(this, "name"), X(this, "router"), X(this, "registry"), X(this, "getMeta"),
|
|
1284
|
-
return
|
|
1285
|
-
|
|
1283
|
+
if (X(this, "name"), X(this, "router"), X(this, "registry"), X(this, "getMeta"), bt._root)
|
|
1284
|
+
return bt._root;
|
|
1285
|
+
bt._root = this, this.name = "Registry", this.router = t, this.registry = {}, this.getMeta = n;
|
|
1286
1286
|
}
|
|
1287
1287
|
addDoctype(t) {
|
|
1288
1288
|
t.doctype in Object.keys(this.registry) || (this.registry[t.slug] = t), this.router.hasRoute(t.doctype) || this.router.addRoute({
|
|
@@ -1370,9 +1370,9 @@ function jn(e, t) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function Ln(e, t, n) {
|
|
1372
1372
|
const o = t.matched.length - 1, r = n.matched.length - 1;
|
|
1373
|
-
return o > -1 && o === r &&
|
|
1373
|
+
return o > -1 && o === r && we(t.matched[o], n.matched[r]) && Fo(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function we(e, t) {
|
|
1376
1376
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
1377
1377
|
}
|
|
1378
1378
|
function Fo(e, t) {
|
|
@@ -1815,15 +1815,15 @@ function Fn(e) {
|
|
|
1815
1815
|
const t = e[e.length - 1];
|
|
1816
1816
|
return e.length > 0 && t[t.length - 1] < 0;
|
|
1817
1817
|
}
|
|
1818
|
-
const
|
|
1818
|
+
const wa = {
|
|
1819
1819
|
type: 0,
|
|
1820
1820
|
value: ""
|
|
1821
|
-
},
|
|
1821
|
+
}, ba = /[a-zA-Z0-9_]/;
|
|
1822
1822
|
function _a(e) {
|
|
1823
1823
|
if (!e)
|
|
1824
1824
|
return [[]];
|
|
1825
1825
|
if (e === "/")
|
|
1826
|
-
return [[
|
|
1826
|
+
return [[wa]];
|
|
1827
1827
|
if (!e.startsWith("/"))
|
|
1828
1828
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
1829
1829
|
function t(f) {
|
|
@@ -1864,7 +1864,7 @@ function _a(e) {
|
|
|
1864
1864
|
p(), n = o;
|
|
1865
1865
|
break;
|
|
1866
1866
|
case 1:
|
|
1867
|
-
c === "(" ? n = 2 :
|
|
1867
|
+
c === "(" ? n = 2 : ba.test(c) ? p() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
|
|
1868
1868
|
break;
|
|
1869
1869
|
case 2:
|
|
1870
1870
|
c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
|
|
@@ -1927,16 +1927,16 @@ function ka(e, t) {
|
|
|
1927
1927
|
for (const U of x) {
|
|
1928
1928
|
const { path: D } = U;
|
|
1929
1929
|
if (p && D[0] !== "/") {
|
|
1930
|
-
const B = p.record.path,
|
|
1931
|
-
U.path = p.record.path + (D &&
|
|
1930
|
+
const B = p.record.path, k = B[B.length - 1] === "/" ? "" : "/";
|
|
1931
|
+
U.path = p.record.path + (D && k + D);
|
|
1932
1932
|
}
|
|
1933
1933
|
if (process.env.NODE_ENV !== "production" && U.path === "*")
|
|
1934
1934
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
1935
1935
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
|
1936
1936
|
if (O = Ea(U, p, $), process.env.NODE_ENV !== "production" && p && D[0] === "/" && Na(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && xa(f, O)) : (P = P || O, P !== O && P.alias.push(O), m && d.name && !qn(O) && i(d.name)), Jo(O) && c(O), v.children) {
|
|
1937
1937
|
const B = v.children;
|
|
1938
|
-
for (let
|
|
1939
|
-
s(B[
|
|
1938
|
+
for (let k = 0; k < B.length; k++)
|
|
1939
|
+
s(B[k], O, f && f.children[k]);
|
|
1940
1940
|
}
|
|
1941
1941
|
f = f || O;
|
|
1942
1942
|
}
|
|
@@ -2238,7 +2238,7 @@ function Qn(e) {
|
|
|
2238
2238
|
const t = ae(fn), n = ae(Ko);
|
|
2239
2239
|
let o = !1, r = null;
|
|
2240
2240
|
const s = j(() => {
|
|
2241
|
-
const u =
|
|
2241
|
+
const u = E(e.to);
|
|
2242
2242
|
return process.env.NODE_ENV !== "production" && (!o || u !== r) && (Ot(u) || (o ? S(`Invalid value for prop "to" in useLink()
|
|
2243
2243
|
- to:`, u, `
|
|
2244
2244
|
- previous to:`, r, `
|
|
@@ -2249,7 +2249,7 @@ function Qn(e) {
|
|
|
2249
2249
|
const { matched: u } = s.value, { length: d } = u, p = u[d - 1], f = n.matched;
|
|
2250
2250
|
if (!p || !f.length)
|
|
2251
2251
|
return -1;
|
|
2252
|
-
const m = f.findIndex(
|
|
2252
|
+
const m = f.findIndex(we.bind(null, p));
|
|
2253
2253
|
if (m > -1)
|
|
2254
2254
|
return m;
|
|
2255
2255
|
const v = Xn(u[d - 2]);
|
|
@@ -2259,12 +2259,12 @@ function Qn(e) {
|
|
|
2259
2259
|
// referring to the empty child. Or we currently are on a different
|
|
2260
2260
|
// child of the same parent
|
|
2261
2261
|
Xn(p) === v && // avoid comparing the child with its parent
|
|
2262
|
-
f[f.length - 1].path !== v ? f.findIndex(
|
|
2262
|
+
f[f.length - 1].path !== v ? f.findIndex(we.bind(null, u[d - 2])) : m
|
|
2263
2263
|
);
|
|
2264
2264
|
}), a = j(() => i.value > -1 && La(n.params, s.value.params)), c = j(() => i.value > -1 && i.value === n.matched.length - 1 && Fo(n.params, s.value.params));
|
|
2265
2265
|
function l(u = {}) {
|
|
2266
|
-
return ja(u) ? t[
|
|
2267
|
-
|
|
2266
|
+
return ja(u) ? t[E(e.replace) ? "replace" : "push"](
|
|
2267
|
+
E(e.to)
|
|
2268
2268
|
// avoid uncaught errors are they are logged anyway
|
|
2269
2269
|
).catch(Ke) : Promise.resolve();
|
|
2270
2270
|
}
|
|
@@ -2278,7 +2278,7 @@ function Qn(e) {
|
|
|
2278
2278
|
error: null
|
|
2279
2279
|
};
|
|
2280
2280
|
u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(d), Dr(() => {
|
|
2281
|
-
d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = Ot(
|
|
2281
|
+
d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = Ot(E(e.to)) ? null : 'Invalid "to" value';
|
|
2282
2282
|
}, { flush: "post" });
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
@@ -2373,7 +2373,7 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ Z({
|
|
|
2373
2373
|
setup(e, { attrs: t, slots: n }) {
|
|
2374
2374
|
process.env.NODE_ENV !== "production" && Wa();
|
|
2375
2375
|
const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0), i = j(() => {
|
|
2376
|
-
let l =
|
|
2376
|
+
let l = E(s);
|
|
2377
2377
|
const { matched: u } = r.value;
|
|
2378
2378
|
let d;
|
|
2379
2379
|
for (; (d = u[l]) && !d.components; )
|
|
@@ -2385,7 +2385,7 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ Z({
|
|
|
2385
2385
|
return z(() => [c.value, a.value, e.name], ([l, u, d], [p, f, m]) => {
|
|
2386
2386
|
u && (u.instances[d] = l, f && f !== u && l && l === p && (u.leaveGuards.size || (u.leaveGuards = f.leaveGuards), u.updateGuards.size || (u.updateGuards = f.updateGuards))), l && u && // if there is no instance but to and from are the same this might be
|
|
2387
2387
|
// the first visit
|
|
2388
|
-
(!f || !
|
|
2388
|
+
(!f || !we(u, f) || !p) && (u.enterCallbacks[d] || []).forEach((v) => v(l));
|
|
2389
2389
|
}, { flush: "post" }), () => {
|
|
2390
2390
|
const l = r.value, u = e.name, d = a.value, p = d && d.components[u];
|
|
2391
2391
|
if (!p)
|
|
@@ -2683,8 +2683,8 @@ function er(e) {
|
|
|
2683
2683
|
let Ya = 0;
|
|
2684
2684
|
const Qa = /^\/(.*)\/([a-z]*)$/;
|
|
2685
2685
|
function tr(e, t) {
|
|
2686
|
-
const n = t.matched.length &&
|
|
2687
|
-
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) =>
|
|
2686
|
+
const n = t.matched.length && we(t.matched[t.matched.length - 1], e.record);
|
|
2687
|
+
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => we(o, e.record))), e.children.forEach((o) => tr(o, t));
|
|
2688
2688
|
}
|
|
2689
2689
|
function nr(e) {
|
|
2690
2690
|
e.__vd_match = !1, e.children.forEach(nr);
|
|
@@ -2731,12 +2731,12 @@ function Za(e) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
function x(h, y) {
|
|
2733
2733
|
if (y = R({}, y || c.value), typeof h == "string") {
|
|
2734
|
-
const N = Mt(n, h, y.path), W = t.resolve({ path: N.path }, y),
|
|
2735
|
-
return process.env.NODE_ENV !== "production" && (
|
|
2734
|
+
const N = Mt(n, h, y.path), W = t.resolve({ path: N.path }, y), be = r.createHref(N.fullPath);
|
|
2735
|
+
return process.env.NODE_ENV !== "production" && (be.startsWith("//") ? S(`Location "${h}" resolved to "${be}". A resolved location cannot start with multiple slashes.`) : W.matched.length || S(`No match found for location with path "${h}"`)), R(N, W, {
|
|
2736
2736
|
params: p(W.params),
|
|
2737
2737
|
hash: Ve(N.hash),
|
|
2738
2738
|
redirectedFrom: void 0,
|
|
2739
|
-
href:
|
|
2739
|
+
href: be
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
2742
2742
|
if (process.env.NODE_ENV !== "production" && !Ot(h))
|
|
@@ -2791,7 +2791,7 @@ function Za(e) {
|
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
2793
|
function U(h) {
|
|
2794
|
-
return
|
|
2794
|
+
return k(h);
|
|
2795
2795
|
}
|
|
2796
2796
|
function D(h) {
|
|
2797
2797
|
return U(R(O(h), { replace: !0 }));
|
|
@@ -2816,10 +2816,10 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2816
2816
|
}, _);
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function k(h, y) {
|
|
2820
2820
|
const g = l = x(h), _ = c.value, T = h.state, H = h.force, A = h.replace === !0, N = B(g);
|
|
2821
2821
|
if (N)
|
|
2822
|
-
return
|
|
2822
|
+
return k(
|
|
2823
2823
|
R(O(N), {
|
|
2824
2824
|
state: typeof N == "object" ? R({}, T, N.state) : T,
|
|
2825
2825
|
force: H,
|
|
@@ -2830,8 +2830,8 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2830
2830
|
);
|
|
2831
2831
|
const W = g;
|
|
2832
2832
|
W.redirectedFrom = y;
|
|
2833
|
-
let
|
|
2834
|
-
return !H && Ln(o, _, g) && (
|
|
2833
|
+
let be;
|
|
2834
|
+
return !H && Ln(o, _, g) && (be = je(16, { to: W, from: _ }), In(
|
|
2835
2835
|
_,
|
|
2836
2836
|
_,
|
|
2837
2837
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -2840,7 +2840,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2840
2840
|
// This cannot be the first navigation because the initial location
|
|
2841
2841
|
// cannot be manually navigated to
|
|
2842
2842
|
!1
|
|
2843
|
-
)), (
|
|
2843
|
+
)), (be ? Promise.resolve(be) : w(W, _)).catch((J) => le(J) ? (
|
|
2844
2844
|
// navigation redirects still mark the router as ready
|
|
2845
2845
|
le(
|
|
2846
2846
|
J,
|
|
@@ -2864,7 +2864,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2864
2864
|
// @ts-expect-error
|
|
2865
2865
|
y._count + 1
|
|
2866
2866
|
) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
|
|
2867
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) :
|
|
2867
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : k(
|
|
2868
2868
|
// keep options
|
|
2869
2869
|
R({
|
|
2870
2870
|
// preserve an existing replacement but allow the redirect to override it
|
|
@@ -2885,11 +2885,11 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2885
2885
|
const g = P(h, y);
|
|
2886
2886
|
return g ? Promise.reject(g) : Promise.resolve();
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function b(h) {
|
|
2889
2889
|
const y = lt.values().next().value;
|
|
2890
2890
|
return y && typeof y.runWithContext == "function" ? y.runWithContext(h) : h();
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function w(h, y) {
|
|
2893
2893
|
let g;
|
|
2894
2894
|
const [_, T, H] = ei(h, y);
|
|
2895
2895
|
g = Bt(_.reverse(), "beforeRouteLeave", h, y);
|
|
@@ -2920,7 +2920,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2920
2920
|
else
|
|
2921
2921
|
g.push(me(N.beforeEnter, h, y));
|
|
2922
2922
|
return g.push(A), Pe(g);
|
|
2923
|
-
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(H, "beforeRouteEnter", h, y,
|
|
2923
|
+
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(H, "beforeRouteEnter", h, y, b), g.push(A), Pe(g))).then(() => {
|
|
2924
2924
|
g = [];
|
|
2925
2925
|
for (const N of i.list())
|
|
2926
2926
|
g.push(me(N, h, y));
|
|
@@ -2932,7 +2932,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2932
2932
|
) ? N : Promise.reject(N));
|
|
2933
2933
|
}
|
|
2934
2934
|
function L(h, y, g) {
|
|
2935
|
-
a.list().forEach((_) =>
|
|
2935
|
+
a.list().forEach((_) => b(() => _(h, y, g)));
|
|
2936
2936
|
}
|
|
2937
2937
|
function K(h, y, g, _, T) {
|
|
2938
2938
|
const H = P(h, y);
|
|
@@ -2948,12 +2948,12 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2948
2948
|
ee || (ee = r.listen((h, y, g) => {
|
|
2949
2949
|
const _ = x(h), T = B(_);
|
|
2950
2950
|
if (T) {
|
|
2951
|
-
|
|
2951
|
+
k(R(T, { replace: !0 }), _).catch(Ke);
|
|
2952
2952
|
return;
|
|
2953
2953
|
}
|
|
2954
2954
|
l = _;
|
|
2955
2955
|
const H = c.value;
|
|
2956
|
-
ce && aa(Bn(H.fullPath, g.delta), It()),
|
|
2956
|
+
ce && aa(Bn(H.fullPath, g.delta), It()), w(_, H).catch((A) => le(
|
|
2957
2957
|
A,
|
|
2958
2958
|
12
|
|
2959
2959
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -2961,7 +2961,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2961
2961
|
A,
|
|
2962
2962
|
2
|
|
2963
2963
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2964
|
-
) ? (
|
|
2964
|
+
) ? (k(
|
|
2965
2965
|
A.to,
|
|
2966
2966
|
_
|
|
2967
2967
|
// avoid an uncaught rejection, let push call triggerError
|
|
@@ -3038,7 +3038,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3038
3038
|
const y = this;
|
|
3039
3039
|
h.component("RouterLink", Va), h.component("RouterView", Ba), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
|
|
3040
3040
|
enumerable: !0,
|
|
3041
|
-
get: () =>
|
|
3041
|
+
get: () => E(c)
|
|
3042
3042
|
}), ce && // used for the initial navigation client side to avoid pushing
|
|
3043
3043
|
// multiple times when the router is used in multiple apps
|
|
3044
3044
|
!Rt && c.value === he && (Rt = !0, U(r.location).catch((T) => {
|
|
@@ -3058,7 +3058,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3058
3058
|
}
|
|
3059
3059
|
};
|
|
3060
3060
|
function Pe(h) {
|
|
3061
|
-
return h.reduce((y, g) => y.then(() =>
|
|
3061
|
+
return h.reduce((y, g) => y.then(() => b(g)), Promise.resolve());
|
|
3062
3062
|
}
|
|
3063
3063
|
return Sr;
|
|
3064
3064
|
}
|
|
@@ -3066,9 +3066,9 @@ function ei(e, t) {
|
|
|
3066
3066
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
3067
3067
|
for (let i = 0; i < s; i++) {
|
|
3068
3068
|
const a = t.matched[i];
|
|
3069
|
-
a && (e.matched.find((l) =>
|
|
3069
|
+
a && (e.matched.find((l) => we(l, a)) ? o.push(a) : n.push(a));
|
|
3070
3070
|
const c = e.matched[i];
|
|
3071
|
-
c && (t.matched.find((l) =>
|
|
3071
|
+
c && (t.matched.find((l) => we(l, c)) || r.push(c));
|
|
3072
3072
|
}
|
|
3073
3073
|
return [n, o, r];
|
|
3074
3074
|
}
|
|
@@ -3260,7 +3260,7 @@ function yi(e, t) {
|
|
|
3260
3260
|
};
|
|
3261
3261
|
});
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function wi(e, t) {
|
|
3264
3264
|
if (e.closed)
|
|
3265
3265
|
return Promise.resolve([]);
|
|
3266
3266
|
var n = e.db.transaction(de, "readwrite", Pt), o = n.objectStore(de);
|
|
@@ -3273,7 +3273,7 @@ function bi(e, t) {
|
|
|
3273
3273
|
});
|
|
3274
3274
|
}));
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function bi(e, t) {
|
|
3277
3277
|
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(de, "readonly", Pt), r = o.objectStore(de), s = [];
|
|
3278
3278
|
return new Promise(function(i) {
|
|
3279
3279
|
r.openCursor().onsuccess = function(a) {
|
|
@@ -3287,8 +3287,8 @@ function wi(e, t) {
|
|
|
3287
3287
|
});
|
|
3288
3288
|
}
|
|
3289
3289
|
function _i(e) {
|
|
3290
|
-
return
|
|
3291
|
-
return
|
|
3290
|
+
return bi(e.db, e.options.idb.ttl).then(function(t) {
|
|
3291
|
+
return wi(e, t.map(function(n) {
|
|
3292
3292
|
return n.id;
|
|
3293
3293
|
}));
|
|
3294
3294
|
});
|
|
@@ -3697,7 +3697,7 @@ function Te(e) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
return `"${n === 0 ? e : t + e.slice(n)}"`;
|
|
3699
3699
|
}
|
|
3700
|
-
const
|
|
3700
|
+
const wn = -1, hr = -2, mr = -3, vr = -4, gr = -5, bn = -6;
|
|
3701
3701
|
function io(e, t) {
|
|
3702
3702
|
return sl(JSON.parse(e));
|
|
3703
3703
|
}
|
|
@@ -3710,11 +3710,11 @@ function sl(e, t) {
|
|
|
3710
3710
|
e
|
|
3711
3711
|
), o = Array(n.length);
|
|
3712
3712
|
function r(s, i = !1) {
|
|
3713
|
-
if (s ===
|
|
3713
|
+
if (s === wn) return;
|
|
3714
3714
|
if (s === mr) return NaN;
|
|
3715
3715
|
if (s === vr) return 1 / 0;
|
|
3716
3716
|
if (s === gr) return -1 / 0;
|
|
3717
|
-
if (s ===
|
|
3717
|
+
if (s === bn) return -0;
|
|
3718
3718
|
if (i) throw new Error("Invalid input");
|
|
3719
3719
|
if (s in o) return o[s];
|
|
3720
3720
|
const a = n[s];
|
|
@@ -3787,11 +3787,11 @@ function lo(e, t) {
|
|
|
3787
3787
|
if (typeof l == "function")
|
|
3788
3788
|
throw new Ut("Cannot stringify a function", s);
|
|
3789
3789
|
if (o.has(l)) return o.get(l);
|
|
3790
|
-
if (l === void 0) return
|
|
3790
|
+
if (l === void 0) return wn;
|
|
3791
3791
|
if (Number.isNaN(l)) return mr;
|
|
3792
3792
|
if (l === 1 / 0) return vr;
|
|
3793
3793
|
if (l === -1 / 0) return gr;
|
|
3794
|
-
if (l === 0 && 1 / l < 0) return
|
|
3794
|
+
if (l === 0 && 1 / l < 0) return bn;
|
|
3795
3795
|
const u = i++;
|
|
3796
3796
|
o.set(l, u);
|
|
3797
3797
|
for (const { key: p, fn: f } of r) {
|
|
@@ -3870,7 +3870,7 @@ function lo(e, t) {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
function Ht(e) {
|
|
3872
3872
|
const t = typeof e;
|
|
3873
|
-
return t === "string" ? Te(e) : e instanceof String ? Te(e.toString()) : e === void 0 ?
|
|
3873
|
+
return t === "string" ? Te(e) : e instanceof String ? Te(e.toString()) : e === void 0 ? wn.toString() : e === 0 && 1 / e < 0 ? bn.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
|
|
3874
3874
|
}
|
|
3875
3875
|
function al(e, t, { initialize: n, type: o }) {
|
|
3876
3876
|
let r = `${t.$id}-${e.toString()}`, s = new yn(r, { type: o }), i = !1, a = 0;
|
|
@@ -3913,7 +3913,7 @@ const ul = /* @__PURE__ */ Z({
|
|
|
3913
3913
|
r[i].value = c;
|
|
3914
3914
|
}), o.value = r;
|
|
3915
3915
|
}
|
|
3916
|
-
}), (r, s) =>
|
|
3916
|
+
}), (r, s) => E(n) ? (I(), xe(E(ts), {
|
|
3917
3917
|
key: 0,
|
|
3918
3918
|
class: "aform-main",
|
|
3919
3919
|
modelValue: o.value,
|
|
@@ -3926,7 +3926,7 @@ function yr(e) {
|
|
|
3926
3926
|
return xt() ? (St(e), !0) : !1;
|
|
3927
3927
|
}
|
|
3928
3928
|
function _n(e) {
|
|
3929
|
-
return typeof e == "function" ? e() :
|
|
3929
|
+
return typeof e == "function" ? e() : E(e);
|
|
3930
3930
|
}
|
|
3931
3931
|
const fl = typeof window < "u" && typeof document < "u";
|
|
3932
3932
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -3966,14 +3966,14 @@ function yl() {
|
|
|
3966
3966
|
e.value = !0;
|
|
3967
3967
|
}, t), e;
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function wl(e) {
|
|
3970
3970
|
const t = yl();
|
|
3971
3971
|
return j(() => (t.value, !!e()));
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3973
|
+
function bl(e, t, n = {}) {
|
|
3974
3974
|
const { window: o = at, ...r } = n;
|
|
3975
3975
|
let s;
|
|
3976
|
-
const i =
|
|
3976
|
+
const i = wl(() => o && "MutationObserver" in o), a = () => {
|
|
3977
3977
|
s && (s.disconnect(), s = void 0);
|
|
3978
3978
|
}, c = j(() => {
|
|
3979
3979
|
const p = _n(e), f = (Array.isArray(p) ? p : [p]).map(rt).filter(hl);
|
|
@@ -4011,7 +4011,7 @@ function _l(e = {}) {
|
|
|
4011
4011
|
};
|
|
4012
4012
|
return n && (st(n, "blur", (l) => {
|
|
4013
4013
|
l.relatedTarget === null && c();
|
|
4014
|
-
}, !0), st(n, "focus", c, !0)), r &&
|
|
4014
|
+
}, !0), st(n, "focus", c, !0)), r && bl(s, (l) => {
|
|
4015
4015
|
l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
|
|
4016
4016
|
u === a.value && c();
|
|
4017
4017
|
});
|
|
@@ -4219,7 +4219,7 @@ const pe = (e) => {
|
|
|
4219
4219
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4220
4220
|
}
|
|
4221
4221
|
};
|
|
4222
|
-
function
|
|
4222
|
+
function wr(e) {
|
|
4223
4223
|
const t = (i) => {
|
|
4224
4224
|
let a = null;
|
|
4225
4225
|
return i.parent && (typeof i.parent == "string" ? a = document.querySelector(i.parent) : i.parent instanceof HTMLElement ? a = i.parent : a = i.parent.value), a;
|
|
@@ -4286,7 +4286,7 @@ function Sn(e) {
|
|
|
4286
4286
|
return xt() ? (St(e), !0) : !1;
|
|
4287
4287
|
}
|
|
4288
4288
|
function Dt(e) {
|
|
4289
|
-
return typeof e == "function" ? e() :
|
|
4289
|
+
return typeof e == "function" ? e() : E(e);
|
|
4290
4290
|
}
|
|
4291
4291
|
const Il = typeof window < "u" && typeof document < "u";
|
|
4292
4292
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4333,14 +4333,14 @@ function Vl() {
|
|
|
4333
4333
|
e.value = !0;
|
|
4334
4334
|
}, t), e;
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function br(e) {
|
|
4337
4337
|
const t = Vl();
|
|
4338
4338
|
return j(() => (t.value, !!e()));
|
|
4339
4339
|
}
|
|
4340
4340
|
function _r(e, t, n = {}) {
|
|
4341
4341
|
const { window: o = Nn, ...r } = n;
|
|
4342
4342
|
let s;
|
|
4343
|
-
const i =
|
|
4343
|
+
const i = br(() => o && "MutationObserver" in o), a = () => {
|
|
4344
4344
|
s && (s.disconnect(), s = void 0);
|
|
4345
4345
|
}, c = j(() => {
|
|
4346
4346
|
const p = Dt(e), f = (Array.isArray(p) ? p : [p]).map(Me).filter(Cl);
|
|
@@ -4363,7 +4363,7 @@ function _r(e, t, n = {}) {
|
|
|
4363
4363
|
function jl(e, t, n = {}) {
|
|
4364
4364
|
const { window: o = Nn, ...r } = n;
|
|
4365
4365
|
let s;
|
|
4366
|
-
const i =
|
|
4366
|
+
const i = br(() => o && "ResizeObserver" in o), a = () => {
|
|
4367
4367
|
s && (s.disconnect(), s = void 0);
|
|
4368
4368
|
}, c = j(() => {
|
|
4369
4369
|
const d = Dt(e);
|
|
@@ -4466,7 +4466,7 @@ const Ml = (e) => {
|
|
|
4466
4466
|
typeof e.addNavigation == "object" && (D = {
|
|
4467
4467
|
...D,
|
|
4468
4468
|
...e.addNavigation
|
|
4469
|
-
}),
|
|
4469
|
+
}), wr([
|
|
4470
4470
|
{
|
|
4471
4471
|
selectors: n,
|
|
4472
4472
|
handlers: D
|
|
@@ -4482,8 +4482,8 @@ const Ml = (e) => {
|
|
|
4482
4482
|
ref: "cell",
|
|
4483
4483
|
"data-colindex": D.colIndex,
|
|
4484
4484
|
"data-rowindex": D.rowIndex,
|
|
4485
|
-
"data-editable":
|
|
4486
|
-
contenteditable:
|
|
4485
|
+
"data-editable": E(l).edit,
|
|
4486
|
+
contenteditable: E(l).edit,
|
|
4487
4487
|
tabindex: D.tabIndex,
|
|
4488
4488
|
spellcheck: !1,
|
|
4489
4489
|
style: re(m.value),
|
|
@@ -4493,12 +4493,12 @@ const Ml = (e) => {
|
|
|
4493
4493
|
onInput: P,
|
|
4494
4494
|
onClick: x,
|
|
4495
4495
|
onMousedown: x,
|
|
4496
|
-
class: Se(["
|
|
4496
|
+
class: Se(["atable-cell", D.pinned ? "sticky-column" : ""])
|
|
4497
4497
|
}, [
|
|
4498
|
-
|
|
4498
|
+
E(l).cellComponent ? (I(), xe(rn(E(l).cellComponent), sn({
|
|
4499
4499
|
key: 0,
|
|
4500
4500
|
value: v.value
|
|
4501
|
-
},
|
|
4501
|
+
}, E(l).cellComponentProps), null, 16, ["value"])) : f.value ? (I(), V("span", {
|
|
4502
4502
|
key: 1,
|
|
4503
4503
|
innerHTML: v.value
|
|
4504
4504
|
}, null, 8, Wl)) : (I(), V("span", Ul, ue(v.value), 1))
|
|
@@ -4521,7 +4521,7 @@ const Ml = (e) => {
|
|
|
4521
4521
|
typeof e.addNavigation == "object" && (a = {
|
|
4522
4522
|
...a,
|
|
4523
4523
|
...e.addNavigation
|
|
4524
|
-
}),
|
|
4524
|
+
}), wr([
|
|
4525
4525
|
{
|
|
4526
4526
|
selectors: n,
|
|
4527
4527
|
handlers: a
|
|
@@ -4534,11 +4534,11 @@ const Ml = (e) => {
|
|
|
4534
4534
|
class: "table-row"
|
|
4535
4535
|
}, [
|
|
4536
4536
|
ve(a.$slots, "index", {}, () => [
|
|
4537
|
-
|
|
4537
|
+
E(t).config.view === "list" ? (I(), V("td", {
|
|
4538
4538
|
key: 0,
|
|
4539
4539
|
tabIndex: -1,
|
|
4540
4540
|
class: Se(["list-index", o.value ? "sticky-index" : ""])
|
|
4541
|
-
}, ue(a.rowIndex + 1), 3)) :
|
|
4541
|
+
}, ue(a.rowIndex + 1), 3)) : E(t).config.view === "tree" ? (I(), V("td", {
|
|
4542
4542
|
key: 1,
|
|
4543
4543
|
tabIndex: -1,
|
|
4544
4544
|
class: Se(["tree-index", o.value ? "sticky-index" : ""]),
|
|
@@ -4555,7 +4555,7 @@ function Er(e) {
|
|
|
4555
4555
|
return xt() ? (St(e), !0) : !1;
|
|
4556
4556
|
}
|
|
4557
4557
|
function Qe(e) {
|
|
4558
|
-
return typeof e == "function" ? e() :
|
|
4558
|
+
return typeof e == "function" ? e() : E(e);
|
|
4559
4559
|
}
|
|
4560
4560
|
const kr = typeof window < "u" && typeof document < "u";
|
|
4561
4561
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4606,7 +4606,7 @@ function _t(...e) {
|
|
|
4606
4606
|
return Er(l), l;
|
|
4607
4607
|
}
|
|
4608
4608
|
let yo = !1;
|
|
4609
|
-
function
|
|
4609
|
+
function wo(e, t, n = {}) {
|
|
4610
4610
|
const { window: o = $r, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
|
|
4611
4611
|
if (!o)
|
|
4612
4612
|
return Xe;
|
|
@@ -4648,10 +4648,10 @@ const Yl = {
|
|
|
4648
4648
|
[go.mounted](e, t) {
|
|
4649
4649
|
const n = !t.modifiers.bubble;
|
|
4650
4650
|
if (typeof t.value == "function")
|
|
4651
|
-
e.__onClickOutside_stop =
|
|
4651
|
+
e.__onClickOutside_stop = wo(e, t.value, { capture: n });
|
|
4652
4652
|
else {
|
|
4653
4653
|
const [o, r] = t.value;
|
|
4654
|
-
e.__onClickOutside_stop =
|
|
4654
|
+
e.__onClickOutside_stop = wo(e, o, Object.assign({ capture: n }, r));
|
|
4655
4655
|
}
|
|
4656
4656
|
},
|
|
4657
4657
|
[go.unmounted](e) {
|
|
@@ -4797,10 +4797,14 @@ const tc = {
|
|
|
4797
4797
|
});
|
|
4798
4798
|
return (r, s) => r.columns.length ? (I(), V("thead", tc, [
|
|
4799
4799
|
M("tr", nc, [
|
|
4800
|
-
|
|
4800
|
+
E(t).zeroColumn ? (I(), V("th", {
|
|
4801
4801
|
key: 0,
|
|
4802
4802
|
id: "header-index",
|
|
4803
|
-
class: Se(
|
|
4803
|
+
class: Se([[
|
|
4804
|
+
n.value ? "sticky-index" : "",
|
|
4805
|
+
E(t).config.view === "tree" ? "tree-index" : "",
|
|
4806
|
+
E(t).config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
4807
|
+
], "list-index"])
|
|
4804
4808
|
}, null, 2)) : ye("", !0),
|
|
4805
4809
|
(I(!0), V(Ne, null, Ie(r.columns, (i, a) => (I(), V("th", {
|
|
4806
4810
|
key: i.name,
|
|
@@ -4884,36 +4888,36 @@ const tc = {
|
|
|
4884
4888
|
}), (c, l) => Ze((I(), V("table", {
|
|
4885
4889
|
ref: "table",
|
|
4886
4890
|
class: "atable",
|
|
4887
|
-
style: re({ width:
|
|
4891
|
+
style: re({ width: E(s).config.fullWidth ? "100%" : "auto" })
|
|
4888
4892
|
}, [
|
|
4889
|
-
ve(c.$slots, "header", { data:
|
|
4893
|
+
ve(c.$slots, "header", { data: E(s) }, () => [
|
|
4890
4894
|
Et(oc, {
|
|
4891
|
-
columns:
|
|
4892
|
-
tableid:
|
|
4895
|
+
columns: E(s).columns,
|
|
4896
|
+
tableid: E(s).id
|
|
4893
4897
|
}, null, 8, ["columns", "tableid"])
|
|
4894
4898
|
], !0),
|
|
4895
4899
|
M("tbody", null, [
|
|
4896
|
-
ve(c.$slots, "body", { data:
|
|
4897
|
-
(I(!0), V(Ne, null, Ie(
|
|
4900
|
+
ve(c.$slots, "body", { data: E(s) }, () => [
|
|
4901
|
+
(I(!0), V(Ne, null, Ie(E(s).rows, (u, d) => (I(), xe(zl, {
|
|
4898
4902
|
key: u.id,
|
|
4899
4903
|
row: u,
|
|
4900
4904
|
rowIndex: d,
|
|
4901
|
-
tableid:
|
|
4905
|
+
tableid: E(s).id
|
|
4902
4906
|
}, {
|
|
4903
4907
|
default: kt(() => [
|
|
4904
|
-
(I(!0), V(Ne, null, Ie(
|
|
4908
|
+
(I(!0), V(Ne, null, Ie(E(s).columns, (p, f) => (I(), xe(Hl, {
|
|
4905
4909
|
key: p.name,
|
|
4906
|
-
tableid:
|
|
4910
|
+
tableid: E(s).id,
|
|
4907
4911
|
col: p,
|
|
4908
4912
|
spellcheck: "false",
|
|
4909
4913
|
pinned: p.pinned,
|
|
4910
4914
|
rowIndex: d,
|
|
4911
|
-
colIndex: f + (
|
|
4915
|
+
colIndex: f + (E(s).zeroColumn ? 0 : -1),
|
|
4912
4916
|
component: p.cellComponent,
|
|
4913
4917
|
style: re({
|
|
4914
4918
|
textAlign: (p == null ? void 0 : p.align) || "center",
|
|
4915
4919
|
minWidth: (p == null ? void 0 : p.width) || "40ch",
|
|
4916
|
-
width:
|
|
4920
|
+
width: E(s).config.fullWidth ? "auto" : null
|
|
4917
4921
|
})
|
|
4918
4922
|
}, null, 8, ["tableid", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
|
|
4919
4923
|
]),
|
|
@@ -4921,33 +4925,33 @@ const tc = {
|
|
|
4921
4925
|
}, 1032, ["row", "rowIndex", "tableid"]))), 128))
|
|
4922
4926
|
], !0)
|
|
4923
4927
|
]),
|
|
4924
|
-
ve(c.$slots, "footer", { data:
|
|
4925
|
-
ve(c.$slots, "modal", { data:
|
|
4928
|
+
ve(c.$slots, "footer", { data: E(s) }, void 0, !0),
|
|
4929
|
+
ve(c.$slots, "modal", { data: E(s) }, () => [
|
|
4926
4930
|
Ze(Et(rc, {
|
|
4927
|
-
colIndex:
|
|
4928
|
-
rowIndex:
|
|
4929
|
-
tableid:
|
|
4931
|
+
colIndex: E(s).modal.colIndex,
|
|
4932
|
+
rowIndex: E(s).modal.rowIndex,
|
|
4933
|
+
tableid: E(s).id,
|
|
4930
4934
|
style: re({
|
|
4931
|
-
left:
|
|
4932
|
-
top:
|
|
4933
|
-
maxWidth:
|
|
4935
|
+
left: E(s).modal.left + "px",
|
|
4936
|
+
top: E(s).modal.top + "px",
|
|
4937
|
+
maxWidth: E(s).modal.width + "px"
|
|
4934
4938
|
})
|
|
4935
4939
|
}, {
|
|
4936
4940
|
default: kt(() => [
|
|
4937
|
-
(I(), xe(rn(
|
|
4938
|
-
key: `${
|
|
4939
|
-
colIndex:
|
|
4940
|
-
rowIndex:
|
|
4941
|
-
tableid:
|
|
4942
|
-
},
|
|
4941
|
+
(I(), xe(rn(E(s).modal.component), sn({
|
|
4942
|
+
key: `${E(s).modal.rowIndex}:${E(s).modal.colIndex}`,
|
|
4943
|
+
colIndex: E(s).modal.colIndex,
|
|
4944
|
+
rowIndex: E(s).modal.rowIndex,
|
|
4945
|
+
tableid: E(s).id
|
|
4946
|
+
}, E(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
|
|
4943
4947
|
]),
|
|
4944
4948
|
_: 1
|
|
4945
4949
|
}, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
|
|
4946
|
-
[on,
|
|
4950
|
+
[on, E(s).modal.visible]
|
|
4947
4951
|
])
|
|
4948
4952
|
], !0)
|
|
4949
4953
|
], 4)), [
|
|
4950
|
-
[
|
|
4954
|
+
[E(Yl), a]
|
|
4951
4955
|
]);
|
|
4952
4956
|
}
|
|
4953
4957
|
}), ac = (e, t) => {
|
|
@@ -4955,14 +4959,14 @@ const tc = {
|
|
|
4955
4959
|
for (const [o, r] of t)
|
|
4956
4960
|
n[o] = r;
|
|
4957
4961
|
return n;
|
|
4958
|
-
}, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-
|
|
4962
|
+
}, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-3b613fb3"]]), lc = /* @__PURE__ */ Z({
|
|
4959
4963
|
__name: "Records",
|
|
4960
4964
|
setup(e) {
|
|
4961
4965
|
const { stonecrop: t, isReady: n } = jo(), o = { view: "list" };
|
|
4962
|
-
return (r, s) =>
|
|
4966
|
+
return (r, s) => E(n) ? (I(), xe(E(ic), {
|
|
4963
4967
|
key: 0,
|
|
4964
|
-
columns:
|
|
4965
|
-
rows:
|
|
4968
|
+
columns: E(t).schema.schema.toArray(),
|
|
4969
|
+
rows: E(t).store.records,
|
|
4966
4970
|
config: o
|
|
4967
4971
|
}, null, 8, ["columns", "rows"])) : ye("", !0);
|
|
4968
4972
|
}
|