vue-2024-ui 0.0.27 → 0.0.28
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/index.es.js +371 -371
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as hn, useModel as pn, ref as lt, onMounted as Zn, resolveComponent as be, openBlock as fe, createElementBlock as Ze, unref as M, createBlock as $e, mergeProps as pe, withCtx as H, renderSlot as oe, Fragment as xt, renderList as Ve, createTextVNode as st, toDisplayString as Je, createSlots as Qe, useSlots as
|
|
3
|
-
var
|
|
1
|
+
import zi, { ElMessage as To, ElMessageBox as Ha, ElDialog as Wi, ElDrawer as Hi } from "element-plus";
|
|
2
|
+
import { mergeModels as hn, useModel as pn, ref as lt, onMounted as Zn, resolveComponent as be, openBlock as fe, createElementBlock as Ze, unref as M, createBlock as $e, mergeProps as pe, withCtx as H, renderSlot as oe, Fragment as xt, renderList as Ve, createTextVNode as st, toDisplayString as Je, createSlots as Qe, useSlots as Xi, inject as Jo, useAttrs as Gi, watch as Qi, computed as Vr, createVNode as De, createElementVNode as Pe, normalizeStyle as ea, withModifiers as Zi, createCommentVNode as ut, normalizeProps as Rn, guardReactiveProps as Ao, Transition as Ji, withDirectives as Ro, vShow as No, defineComponent as Xa, onBeforeUnmount as eu, normalizeClass as Ga, watchEffect as tu, h as Uo, createApp as nu } from "vue";
|
|
3
|
+
var ru = {
|
|
4
4
|
name: "zh-cn",
|
|
5
5
|
el: {
|
|
6
6
|
breadcrumb: {
|
|
@@ -177,15 +177,15 @@ var ou = {
|
|
|
177
177
|
indicator: "幻灯片切换至索引 {index}"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
},
|
|
181
|
-
function
|
|
180
|
+
}, Lo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
181
|
+
function Qa(l) {
|
|
182
182
|
return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var Za = { exports: {} };
|
|
185
185
|
(function(l, i) {
|
|
186
186
|
(function(a, r) {
|
|
187
187
|
l.exports = r();
|
|
188
|
-
})(
|
|
188
|
+
})(Lo, function() {
|
|
189
189
|
var a = 1e3, r = 6e4, c = 36e5, d = "millisecond", m = "second", E = "minute", S = "hour", C = "day", B = "week", T = "month", Z = "quarter", q = "year", F = "date", se = "Invalid Date", qe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, re = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ae) {
|
|
190
190
|
var z = ["th", "st", "nd", "rd"], L = ae % 100;
|
|
191
191
|
return "[" + ae + (z[(L - 20) % 10] || z[L] || z[0]) + "]";
|
|
@@ -456,12 +456,12 @@ var Ja = { exports: {} };
|
|
|
456
456
|
return Ce(1e3 * ae);
|
|
457
457
|
}, Ce.en = ve[Re], Ce.Ls = ve, Ce.p = {}, Ce;
|
|
458
458
|
});
|
|
459
|
-
})(
|
|
460
|
-
var
|
|
461
|
-
const Nn = /* @__PURE__ */
|
|
459
|
+
})(Za);
|
|
460
|
+
var ou = Za.exports;
|
|
461
|
+
const Nn = /* @__PURE__ */ Qa(ou), au = {
|
|
462
462
|
style: { display: "flex", width: "100%" },
|
|
463
463
|
class: "g-ctrl-container"
|
|
464
|
-
},
|
|
464
|
+
}, Ja = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
465
465
|
__name: "g-ctrl",
|
|
466
466
|
props: /* @__PURE__ */ hn(["t", "ctrlKey", "item", "model", "ctrlType"], {
|
|
467
467
|
modelValue: { required: !0 },
|
|
@@ -469,7 +469,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
469
469
|
}),
|
|
470
470
|
emits: ["update:modelValue"],
|
|
471
471
|
setup(l) {
|
|
472
|
-
const i = pn(l, "modelValue"), a = l, r = a.item, c = a.ctrlKey, d = a.ctrlType, m = a.model, E = lt([]), S = () => Object.keys(
|
|
472
|
+
const i = pn(l, "modelValue"), a = l, r = a.item, c = a.ctrlKey, d = a.ctrlType, m = a.model, E = lt([]), S = () => Object.keys(Xi()).filter((q) => q.startsWith(`${a.t}-${c}-`)).map((q) => q.replace(`${a.t}-${c}-`, "")), C = {
|
|
473
473
|
filterable: !0,
|
|
474
474
|
remote: !!(r && r["remote-method"]),
|
|
475
475
|
...r
|
|
@@ -502,7 +502,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
502
502
|
}), (q, F) => {
|
|
503
503
|
var K;
|
|
504
504
|
const se = be("el-radio"), qe = be("el-radio-group"), V = be("el-radio-button"), re = be("el-checkbox"), ke = be("el-checkbox-group"), te = be("el-checkbox-button"), Re = be("el-option"), ve = be("el-option-group"), ce = be("el-select"), Ue = be("el-tree-select"), Ke = be("el-time-picker"), Ce = be("el-time-select"), me = be("el-date-picker"), Le = be("el-color-picker"), Oe = be("el-rate"), ae = be("el-slider"), z = be("el-switch"), L = be("el-transfer"), ie = be("el-cascader"), W = be("el-upload"), he = be("el-autocomplete"), D = be("el-input-number"), j = be("el-input");
|
|
505
|
-
return fe(), Ze("div",
|
|
505
|
+
return fe(), Ze("div", au, [
|
|
506
506
|
M(d) == "radio" ? (fe(), $e(qe, pe({
|
|
507
507
|
key: 0,
|
|
508
508
|
modelValue: i.value,
|
|
@@ -784,7 +784,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
784
784
|
]);
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
}),
|
|
787
|
+
}), Yo = /* @__PURE__ */ Object.assign({
|
|
788
788
|
name: "g-form",
|
|
789
789
|
inheritAttrs: !1
|
|
790
790
|
}, {
|
|
@@ -796,7 +796,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
796
796
|
emits: /* @__PURE__ */ hn(["submit", "reset"], ["update:modelValue"]),
|
|
797
797
|
setup(l, { emit: i }) {
|
|
798
798
|
var q, F, se, qe;
|
|
799
|
-
const a = pn(l, "modelValue"), r = i, c = lt(null), d =
|
|
799
|
+
const a = pn(l, "modelValue"), r = i, c = lt(null), d = Jo("options"), m = {
|
|
800
800
|
inline: !0,
|
|
801
801
|
type: "hidden",
|
|
802
802
|
"scroll-to-error": !0,
|
|
@@ -806,7 +806,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
806
806
|
style: {
|
|
807
807
|
display: "flex",
|
|
808
808
|
flexWrap: "wrap",
|
|
809
|
-
...(q =
|
|
809
|
+
...(q = Gi()) == null ? void 0 : q.style
|
|
810
810
|
},
|
|
811
811
|
// 表单底部属性
|
|
812
812
|
footer: {
|
|
@@ -913,7 +913,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
913
913
|
for (const [V, re] of Object.entries(T.value))
|
|
914
914
|
a.value[V].formItem = { ...a.value[V].formItem, ...re.formItem }, a.value[V].formItem.style = { ...a.value[V].formItem.style, ...re.formItem.style };
|
|
915
915
|
};
|
|
916
|
-
|
|
916
|
+
Qi(() => a.value.form.inline, () => B());
|
|
917
917
|
const T = Vr(() => Object.fromEntries(Object.entries(a.value).filter((V) => V[1].type != "hidden").filter((V) => V[1].editor !== !1).filter((V) => V[1].type !== "control").map((V) => [V[0], V[1]]))), Z = Vr(() => Object.fromEntries(Object.entries(a.value).filter((V) => V[1].type != "hidden").filter((V) => V[1].type != "control").map((V) => [V[0], V[1].value])));
|
|
918
918
|
return (V, re) => {
|
|
919
919
|
const ke = be("el-form-item"), te = be("el-col"), Re = be("el-button"), ve = be("el-form");
|
|
@@ -952,7 +952,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
952
952
|
item: ce,
|
|
953
953
|
model: a.value
|
|
954
954
|
}, () => [
|
|
955
|
-
De(
|
|
955
|
+
De(Ja, {
|
|
956
956
|
modelValue: a.value[Ue].value,
|
|
957
957
|
"onUpdate:modelValue": (Ce) => a.value[Ue].value = Ce,
|
|
958
958
|
item: ce == null ? void 0 : ce.editor,
|
|
@@ -985,12 +985,12 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
985
985
|
var ce, Ue, Ke, Ce, me, Le;
|
|
986
986
|
return [
|
|
987
987
|
Pe("div", {
|
|
988
|
-
style:
|
|
988
|
+
style: ea(a.value.form.footer.style)
|
|
989
989
|
}, [
|
|
990
990
|
oe(V.$slots, "f-footer-left"),
|
|
991
991
|
(Ke = (Ue = (ce = a.value) == null ? void 0 : ce.form) == null ? void 0 : Ue.submit) != null && Ke.hidden ? ut("", !0) : (fe(), $e(Re, pe({
|
|
992
992
|
key: 0,
|
|
993
|
-
onClick: re[0] || (re[0] =
|
|
993
|
+
onClick: re[0] || (re[0] = Zi((Oe) => a.value.form.submit.click(Z.value, a.value), ["stop"]))
|
|
994
994
|
}, M(Ct)(a.value.form.submit, (Oe) => !["click"].includes(Oe))), {
|
|
995
995
|
default: H(() => {
|
|
996
996
|
var Oe, ae, z;
|
|
@@ -1051,7 +1051,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1051
1051
|
})
|
|
1052
1052
|
]),
|
|
1053
1053
|
default: H(() => [
|
|
1054
|
-
De(
|
|
1054
|
+
De(Ja, {
|
|
1055
1055
|
modelValue: r.value[C],
|
|
1056
1056
|
"onUpdate:modelValue": (B) => r.value[C] = B,
|
|
1057
1057
|
item: { ...S == null ? void 0 : S.editor, ...S.search },
|
|
@@ -1082,13 +1082,13 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1082
1082
|
for (const [r, c] of i)
|
|
1083
1083
|
a[r] = c;
|
|
1084
1084
|
return a;
|
|
1085
|
-
},
|
|
1085
|
+
}, iu = {
|
|
1086
1086
|
class: "g-query-container",
|
|
1087
1087
|
style: { position: "relative" }
|
|
1088
|
-
},
|
|
1088
|
+
}, uu = {
|
|
1089
1089
|
key: 0,
|
|
1090
1090
|
class: "outer"
|
|
1091
|
-
},
|
|
1091
|
+
}, lu = { class: "inner" }, su = {
|
|
1092
1092
|
__name: "g-query",
|
|
1093
1093
|
props: {
|
|
1094
1094
|
modelValue: { required: !0 },
|
|
@@ -1096,7 +1096,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1096
1096
|
},
|
|
1097
1097
|
emits: /* @__PURE__ */ hn(["query", "reset"], ["update:modelValue"]),
|
|
1098
1098
|
setup(l, { emit: i }) {
|
|
1099
|
-
const a = pn(l, "modelValue"), r = i, c =
|
|
1099
|
+
const a = pn(l, "modelValue"), r = i, c = Jo("options"), d = lt(!1);
|
|
1100
1100
|
let m = Object.fromEntries(Object.entries(a.value).filter((B) => B[1].search).map(([B, T]) => [B, T.value]));
|
|
1101
1101
|
const E = lt(m), S = {
|
|
1102
1102
|
hidden: !1,
|
|
@@ -1162,7 +1162,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1162
1162
|
};
|
|
1163
1163
|
return a.value.queryItems = Dt(C, c == null ? void 0 : c.queryItems, a.value.queryItems), (B, T) => {
|
|
1164
1164
|
const Z = be("el-form"), q = be("el-button"), F = be("el-popover"), se = be("el-form-item"), qe = be("el-drawer");
|
|
1165
|
-
return fe(), Ze("div",
|
|
1165
|
+
return fe(), Ze("div", iu, [
|
|
1166
1166
|
De(Z, Rn(Ao(M(Ct)(a.value.query, (V) => !["query", "more", "reset"].includes(V)))), {
|
|
1167
1167
|
default: H(() => [
|
|
1168
1168
|
De($r, {
|
|
@@ -1187,7 +1187,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1187
1187
|
De(se, { style: { width: "100%" } }, {
|
|
1188
1188
|
default: H(() => [
|
|
1189
1189
|
Pe("div", {
|
|
1190
|
-
style:
|
|
1190
|
+
style: ea(a.value.query.btns.style)
|
|
1191
1191
|
}, [
|
|
1192
1192
|
De(q, pe(a.value.query.query, {
|
|
1193
1193
|
onClick: T[2] || (T[2] = (V) => a.value.query.query.click())
|
|
@@ -1253,14 +1253,14 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1253
1253
|
]),
|
|
1254
1254
|
_: 3
|
|
1255
1255
|
}),
|
|
1256
|
-
De(
|
|
1256
|
+
De(Ji, {
|
|
1257
1257
|
duration: 300,
|
|
1258
1258
|
name: "nested"
|
|
1259
1259
|
}, {
|
|
1260
1260
|
default: H(() => [
|
|
1261
|
-
d.value && !a.value.query.more.hidden && a.value.query.more.mode == 1 ? (fe(), Ze("div",
|
|
1262
|
-
Pe("div",
|
|
1263
|
-
a.value.query.more.mode == 1 ?
|
|
1261
|
+
d.value && !a.value.query.more.hidden && a.value.query.more.mode == 1 ? (fe(), Ze("div", uu, [
|
|
1262
|
+
Pe("div", lu, [
|
|
1263
|
+
a.value.query.more.mode == 1 ? Ro((fe(), $e(Z, Rn(pe({ key: 0 }, M(Ct)(a.value.query, (V) => !["query", "more", "reset"].includes(V)))), {
|
|
1264
1264
|
default: H(() => [
|
|
1265
1265
|
De($r, {
|
|
1266
1266
|
modelValue: a.value,
|
|
@@ -1279,7 +1279,7 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1279
1279
|
]),
|
|
1280
1280
|
_: 3
|
|
1281
1281
|
}, 16)), [
|
|
1282
|
-
[
|
|
1282
|
+
[No, d.value]
|
|
1283
1283
|
]) : ut("", !0)
|
|
1284
1284
|
])
|
|
1285
1285
|
])) : ut("", !0)
|
|
@@ -1344,9 +1344,9 @@ const Nn = /* @__PURE__ */ Za(au), iu = {
|
|
|
1344
1344
|
]);
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
},
|
|
1347
|
+
}, cu = /* @__PURE__ */ Yr(su, [["__scopeId", "data-v-86d5e1cc"]]);
|
|
1348
1348
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
1349
|
-
var
|
|
1349
|
+
var fu = /* @__PURE__ */ Xa({
|
|
1350
1350
|
name: "FullScreen",
|
|
1351
1351
|
__name: "full-screen",
|
|
1352
1352
|
setup(l) {
|
|
@@ -1360,7 +1360,7 @@ var du = /* @__PURE__ */ Ga({
|
|
|
1360
1360
|
})
|
|
1361
1361
|
]));
|
|
1362
1362
|
}
|
|
1363
|
-
}),
|
|
1363
|
+
}), du = fu, hu = /* @__PURE__ */ Xa({
|
|
1364
1364
|
name: "Remove",
|
|
1365
1365
|
__name: "remove",
|
|
1366
1366
|
setup(l) {
|
|
@@ -1378,14 +1378,14 @@ var du = /* @__PURE__ */ Ga({
|
|
|
1378
1378
|
})
|
|
1379
1379
|
]));
|
|
1380
1380
|
}
|
|
1381
|
-
}),
|
|
1381
|
+
}), pu = hu;
|
|
1382
1382
|
/**!
|
|
1383
1383
|
* Sortable 1.15.6
|
|
1384
1384
|
* @author RubaXa <trash@rubaxa.org>
|
|
1385
1385
|
* @author owenm <owen23355@gmail.com>
|
|
1386
1386
|
* @license MIT
|
|
1387
1387
|
*/
|
|
1388
|
-
function
|
|
1388
|
+
function ja(l, i) {
|
|
1389
1389
|
var a = Object.keys(l);
|
|
1390
1390
|
if (Object.getOwnPropertySymbols) {
|
|
1391
1391
|
var r = Object.getOwnPropertySymbols(l);
|
|
@@ -1398,9 +1398,9 @@ function Va(l, i) {
|
|
|
1398
1398
|
function Bt(l) {
|
|
1399
1399
|
for (var i = 1; i < arguments.length; i++) {
|
|
1400
1400
|
var a = arguments[i] != null ? arguments[i] : {};
|
|
1401
|
-
i % 2 ?
|
|
1402
|
-
|
|
1403
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(a)) :
|
|
1401
|
+
i % 2 ? ja(Object(a), !0).forEach(function(r) {
|
|
1402
|
+
mu(l, r, a[r]);
|
|
1403
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(a)) : ja(Object(a)).forEach(function(r) {
|
|
1404
1404
|
Object.defineProperty(l, r, Object.getOwnPropertyDescriptor(a, r));
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
@@ -1414,7 +1414,7 @@ function Ir(l) {
|
|
|
1414
1414
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
1415
1415
|
}, Ir(l);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function mu(l, i, a) {
|
|
1418
1418
|
return i in l ? Object.defineProperty(l, i, {
|
|
1419
1419
|
value: a,
|
|
1420
1420
|
enumerable: !0,
|
|
@@ -1432,16 +1432,16 @@ function Kt() {
|
|
|
1432
1432
|
return l;
|
|
1433
1433
|
}, Kt.apply(this, arguments);
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function vu(l, i) {
|
|
1436
1436
|
if (l == null) return {};
|
|
1437
1437
|
var a = {}, r = Object.keys(l), c, d;
|
|
1438
1438
|
for (d = 0; d < r.length; d++)
|
|
1439
1439
|
c = r[d], !(i.indexOf(c) >= 0) && (a[c] = l[c]);
|
|
1440
1440
|
return a;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function yu(l, i) {
|
|
1443
1443
|
if (l == null) return {};
|
|
1444
|
-
var a =
|
|
1444
|
+
var a = vu(l, i), r, c;
|
|
1445
1445
|
if (Object.getOwnPropertySymbols) {
|
|
1446
1446
|
var d = Object.getOwnPropertySymbols(l);
|
|
1447
1447
|
for (c = 0; c < d.length; c++)
|
|
@@ -1449,20 +1449,20 @@ function gu(l, i) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
return a;
|
|
1451
1451
|
}
|
|
1452
|
-
var
|
|
1452
|
+
var gu = "1.15.6";
|
|
1453
1453
|
function Vt(l) {
|
|
1454
1454
|
if (typeof window < "u" && window.navigator)
|
|
1455
1455
|
return !!/* @__PURE__ */ navigator.userAgent.match(l);
|
|
1456
1456
|
}
|
|
1457
|
-
var Rt = Vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Jn = Vt(/Edge/i),
|
|
1457
|
+
var Rt = Vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Jn = Vt(/Edge/i), Va = Vt(/firefox/i), Wn = Vt(/safari/i) && !Vt(/chrome/i) && !Vt(/android/i), ta = Vt(/iP(ad|od|hone)/i), ei = Vt(/chrome/i) && Vt(/android/i), ti = {
|
|
1458
1458
|
capture: !1,
|
|
1459
1459
|
passive: !1
|
|
1460
1460
|
};
|
|
1461
1461
|
function Be(l, i, a) {
|
|
1462
|
-
l.addEventListener(i, a, !Rt &&
|
|
1462
|
+
l.addEventListener(i, a, !Rt && ti);
|
|
1463
1463
|
}
|
|
1464
1464
|
function Ie(l, i, a) {
|
|
1465
|
-
l.removeEventListener(i, a, !Rt &&
|
|
1465
|
+
l.removeEventListener(i, a, !Rt && ti);
|
|
1466
1466
|
}
|
|
1467
1467
|
function Kr(l, i) {
|
|
1468
1468
|
if (i) {
|
|
@@ -1480,7 +1480,7 @@ function Kr(l, i) {
|
|
|
1480
1480
|
return !1;
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function ni(l) {
|
|
1484
1484
|
return l.host && l !== document && l.host.nodeType ? l.host : l.parentNode;
|
|
1485
1485
|
}
|
|
1486
1486
|
function Tt(l, i, a, r) {
|
|
@@ -1490,18 +1490,18 @@ function Tt(l, i, a, r) {
|
|
|
1490
1490
|
if (i != null && (i[0] === ">" ? l.parentNode === a && Kr(l, i) : Kr(l, i)) || r && l === a)
|
|
1491
1491
|
return l;
|
|
1492
1492
|
if (l === a) break;
|
|
1493
|
-
} while (l =
|
|
1493
|
+
} while (l = ni(l));
|
|
1494
1494
|
}
|
|
1495
1495
|
return null;
|
|
1496
1496
|
}
|
|
1497
|
-
var
|
|
1497
|
+
var Ka = /\s+/g;
|
|
1498
1498
|
function _t(l, i, a) {
|
|
1499
1499
|
if (l && i)
|
|
1500
1500
|
if (l.classList)
|
|
1501
1501
|
l.classList[a ? "add" : "remove"](i);
|
|
1502
1502
|
else {
|
|
1503
|
-
var r = (" " + l.className + " ").replace(
|
|
1504
|
-
l.className = (r + (a ? " " + i : "")).replace(
|
|
1503
|
+
var r = (" " + l.className + " ").replace(Ka, " ").replace(" " + i + " ", " ");
|
|
1504
|
+
l.className = (r + (a ? " " + i : "")).replace(Ka, " ");
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
function ge(l, i, a) {
|
|
@@ -1524,7 +1524,7 @@ function Sn(l, i) {
|
|
|
1524
1524
|
var c = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1525
1525
|
return c && new c(a);
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function ri(l, i, a) {
|
|
1528
1528
|
if (l) {
|
|
1529
1529
|
var r = l.getElementsByTagName(i), c = 0, d = r.length;
|
|
1530
1530
|
if (a)
|
|
@@ -1563,7 +1563,7 @@ function rt(l, i, a, r, c) {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function Ra(l, i, a) {
|
|
1567
1567
|
for (var r = Qt(l, !0), c = rt(l)[i]; r; ) {
|
|
1568
1568
|
var d = rt(r)[a], m = void 0;
|
|
1569
1569
|
if (m = c >= d, !m) return r;
|
|
@@ -1583,7 +1583,7 @@ function Cn(l, i, a, r) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
return null;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function na(l, i) {
|
|
1587
1587
|
for (var a = l.lastElementChild; a && (a === ye.ghost || ge(a, "display") === "none" || i && !Kr(a, i)); )
|
|
1588
1588
|
a = a.previousElementSibling;
|
|
1589
1589
|
return a || null;
|
|
@@ -1596,7 +1596,7 @@ function St(l, i) {
|
|
|
1596
1596
|
l.nodeName.toUpperCase() !== "TEMPLATE" && l !== ye.clone && (!i || Kr(l, i)) && a++;
|
|
1597
1597
|
return a;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Na(l) {
|
|
1600
1600
|
var i = 0, a = 0, r = Mt();
|
|
1601
1601
|
if (l)
|
|
1602
1602
|
do {
|
|
@@ -1605,7 +1605,7 @@ function Ua(l) {
|
|
|
1605
1605
|
} while (l !== r && (l = l.parentNode));
|
|
1606
1606
|
return [i, a];
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function bu(l, i) {
|
|
1609
1609
|
for (var a in l)
|
|
1610
1610
|
if (l.hasOwnProperty(a)) {
|
|
1611
1611
|
for (var r in i)
|
|
@@ -1628,7 +1628,7 @@ function Qt(l, i) {
|
|
|
1628
1628
|
while (a = a.parentNode);
|
|
1629
1629
|
return Mt();
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function wu(l, i) {
|
|
1632
1632
|
if (l && i)
|
|
1633
1633
|
for (var a in i)
|
|
1634
1634
|
i.hasOwnProperty(a) && (l[a] = i[a]);
|
|
@@ -1638,7 +1638,7 @@ function Po(l, i) {
|
|
|
1638
1638
|
return Math.round(l.top) === Math.round(i.top) && Math.round(l.left) === Math.round(i.left) && Math.round(l.height) === Math.round(i.height) && Math.round(l.width) === Math.round(i.width);
|
|
1639
1639
|
}
|
|
1640
1640
|
var Hn;
|
|
1641
|
-
function
|
|
1641
|
+
function oi(l, i) {
|
|
1642
1642
|
return function() {
|
|
1643
1643
|
if (!Hn) {
|
|
1644
1644
|
var a = arguments, r = this;
|
|
@@ -1648,17 +1648,17 @@ function ai(l, i) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
};
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function _u() {
|
|
1652
1652
|
clearTimeout(Hn), Hn = void 0;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function ai(l, i, a) {
|
|
1655
1655
|
l.scrollLeft += i, l.scrollTop += a;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function ii(l) {
|
|
1658
1658
|
var i = window.Polymer, a = window.jQuery || window.Zepto;
|
|
1659
1659
|
return i && i.dom ? i.dom(l).cloneNode(!0) : a ? a(l).clone(!0)[0] : l.cloneNode(!0);
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function ui(l, i, a) {
|
|
1662
1662
|
var r = {};
|
|
1663
1663
|
return Array.from(l.children).forEach(function(c) {
|
|
1664
1664
|
var d, m, E, S;
|
|
@@ -1669,7 +1669,7 @@ function li(l, i, a) {
|
|
|
1669
1669
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
1670
1670
|
}
|
|
1671
1671
|
var gt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1672
|
-
function
|
|
1672
|
+
function Eu() {
|
|
1673
1673
|
var l = [], i;
|
|
1674
1674
|
return {
|
|
1675
1675
|
captureAnimationState: function() {
|
|
@@ -1695,7 +1695,7 @@ function xu() {
|
|
|
1695
1695
|
l.push(r);
|
|
1696
1696
|
},
|
|
1697
1697
|
removeAnimationState: function(r) {
|
|
1698
|
-
l.splice(
|
|
1698
|
+
l.splice(bu(l, {
|
|
1699
1699
|
target: r
|
|
1700
1700
|
}), 1);
|
|
1701
1701
|
},
|
|
@@ -1709,7 +1709,7 @@ function xu() {
|
|
|
1709
1709
|
l.forEach(function(E) {
|
|
1710
1710
|
var S = 0, C = E.target, B = C.fromRect, T = rt(C), Z = C.prevFromRect, q = C.prevToRect, F = E.rect, se = Sn(C, !0);
|
|
1711
1711
|
se && (T.top -= se.f, T.left -= se.e), C.toRect = T, C.thisAnimationDuration && Po(Z, T) && !Po(B, T) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1712
|
-
(F.top - T.top) / (F.left - T.left) === (B.top - T.top) / (B.left - T.left) && (S =
|
|
1712
|
+
(F.top - T.top) / (F.left - T.left) === (B.top - T.top) / (B.left - T.left) && (S = Du(F, Z, q, c.options)), Po(T, B) || (C.prevFromRect = B, C.prevToRect = T, S || (S = c.options.animation), c.animate(C, F, T, S)), S && (d = !0, m = Math.max(m, S), clearTimeout(C.animationResetTimer), C.animationResetTimer = setTimeout(function() {
|
|
1713
1713
|
C.animationTime = 0, C.prevFromRect = null, C.fromRect = null, C.prevToRect = null, C.thisAnimationDuration = null;
|
|
1714
1714
|
}, S), C.thisAnimationDuration = S);
|
|
1715
1715
|
}), clearTimeout(i), d ? i = setTimeout(function() {
|
|
@@ -1720,17 +1720,17 @@ function xu() {
|
|
|
1720
1720
|
if (m) {
|
|
1721
1721
|
ge(r, "transition", ""), ge(r, "transform", "");
|
|
1722
1722
|
var E = Sn(this.el), S = E && E.a, C = E && E.d, B = (c.left - d.left) / (S || 1), T = (c.top - d.top) / (C || 1);
|
|
1723
|
-
r.animatingX = !!B, r.animatingY = !!T, ge(r, "transform", "translate3d(" + B + "px," + T + "px,0)"), this.forRepaintDummy =
|
|
1723
|
+
r.animatingX = !!B, r.animatingY = !!T, ge(r, "transform", "translate3d(" + B + "px," + T + "px,0)"), this.forRepaintDummy = xu(r), ge(r, "transition", "transform " + m + "ms" + (this.options.easing ? " " + this.options.easing : "")), ge(r, "transform", "translate3d(0,0,0)"), typeof r.animated == "number" && clearTimeout(r.animated), r.animated = setTimeout(function() {
|
|
1724
1724
|
ge(r, "transition", ""), ge(r, "transform", ""), r.animated = !1, r.animatingX = !1, r.animatingY = !1;
|
|
1725
1725
|
}, m);
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function xu(l) {
|
|
1731
1731
|
return l.offsetWidth;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function Du(l, i, a, r) {
|
|
1734
1734
|
return Math.sqrt(Math.pow(i.top - l.top, 2) + Math.pow(i.left - l.left, 2)) / Math.sqrt(Math.pow(i.top - a.top, 2) + Math.pow(i.left - a.left, 2)) * r.animation;
|
|
1735
1735
|
}
|
|
1736
1736
|
var En = [], Fo = {
|
|
@@ -1785,7 +1785,7 @@ var En = [], Fo = {
|
|
|
1785
1785
|
}), c;
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
|
-
function
|
|
1788
|
+
function ku(l) {
|
|
1789
1789
|
var i = l.sortable, a = l.rootEl, r = l.name, c = l.targetEl, d = l.cloneEl, m = l.toEl, E = l.fromEl, S = l.oldIndex, C = l.newIndex, B = l.oldDraggableIndex, T = l.newDraggableIndex, Z = l.originalEvent, q = l.putSortable, F = l.extraEventProperties;
|
|
1790
1790
|
if (i = i || a && a[gt], !!i) {
|
|
1791
1791
|
var se, qe = i.options, V = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
@@ -1799,8 +1799,8 @@ function Su(l) {
|
|
|
1799
1799
|
a && a.dispatchEvent(se), qe[V] && qe[V].call(i, se);
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
|
-
var
|
|
1803
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = r.evt, d =
|
|
1802
|
+
var Su = ["evt"], yt = function(i, a) {
|
|
1803
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = r.evt, d = yu(r, Su);
|
|
1804
1804
|
er.pluginEvent.bind(ye)(i, a, Bt({
|
|
1805
1805
|
dragEl: G,
|
|
1806
1806
|
parentEl: Ge,
|
|
@@ -1818,8 +1818,8 @@ var Cu = ["evt"], yt = function(i, a) {
|
|
|
1818
1818
|
oldDraggableIndex: Xn,
|
|
1819
1819
|
newIndex: Et,
|
|
1820
1820
|
newDraggableIndex: Xt,
|
|
1821
|
-
hideGhostForTarget:
|
|
1822
|
-
unhideGhostForTarget:
|
|
1821
|
+
hideGhostForTarget: fi,
|
|
1822
|
+
unhideGhostForTarget: di,
|
|
1823
1823
|
cloneNowHidden: function() {
|
|
1824
1824
|
Gt = !0;
|
|
1825
1825
|
},
|
|
@@ -1836,7 +1836,7 @@ var Cu = ["evt"], yt = function(i, a) {
|
|
|
1836
1836
|
}, d));
|
|
1837
1837
|
};
|
|
1838
1838
|
function vt(l) {
|
|
1839
|
-
|
|
1839
|
+
ku(Bt({
|
|
1840
1840
|
putSortable: it,
|
|
1841
1841
|
cloneEl: Xe,
|
|
1842
1842
|
targetEl: G,
|
|
@@ -1847,14 +1847,14 @@ function vt(l) {
|
|
|
1847
1847
|
newDraggableIndex: Xt
|
|
1848
1848
|
}, l));
|
|
1849
1849
|
}
|
|
1850
|
-
var G, Ge, _e, He, fn, Mr, Xe, Gt, kn, Et, Xn, Xt, Tr, it, Dn = !1, Rr = !1, Nr = [], sn, $t, Io, Mo,
|
|
1850
|
+
var G, Ge, _e, He, fn, Mr, Xe, Gt, kn, Et, Xn, Xt, Tr, it, Dn = !1, Rr = !1, Nr = [], sn, $t, Io, Mo, Ua, La, Un, xn, Gn, Qn = !1, Ar = !1, Br, pt, Bo = [], zo = !1, Ur = [], zr = typeof document < "u", Pr = ta, Ya = Jn || Rt ? "cssFloat" : "float", Cu = zr && !ei && !ta && "draggable" in document.createElement("div"), li = function() {
|
|
1851
1851
|
if (zr) {
|
|
1852
1852
|
if (Rt)
|
|
1853
1853
|
return !1;
|
|
1854
1854
|
var l = document.createElement("x");
|
|
1855
1855
|
return l.style.cssText = "pointer-events:auto", l.style.pointerEvents === "auto";
|
|
1856
1856
|
}
|
|
1857
|
-
}(),
|
|
1857
|
+
}(), si = function(i, a) {
|
|
1858
1858
|
var r = ge(i), c = parseInt(r.width) - parseInt(r.paddingLeft) - parseInt(r.paddingRight) - parseInt(r.borderLeftWidth) - parseInt(r.borderRightWidth), d = Cn(i, 0, a), m = Cn(i, 1, a), E = d && ge(d), S = m && ge(m), C = E && parseInt(E.marginLeft) + parseInt(E.marginRight) + rt(d).width, B = S && parseInt(S.marginLeft) + parseInt(S.marginRight) + rt(m).width;
|
|
1859
1859
|
if (r.display === "flex")
|
|
1860
1860
|
return r.flexDirection === "column" || r.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1864,21 +1864,21 @@ var G, Ge, _e, He, fn, Mr, Xe, Gt, kn, Et, Xn, Xt, Tr, it, Dn = !1, Rr = !1, Nr
|
|
|
1864
1864
|
var T = E.float === "left" ? "left" : "right";
|
|
1865
1865
|
return m && (S.clear === "both" || S.clear === T) ? "vertical" : "horizontal";
|
|
1866
1866
|
}
|
|
1867
|
-
return d && (E.display === "block" || E.display === "flex" || E.display === "table" || E.display === "grid" || C >= c && r[
|
|
1868
|
-
},
|
|
1867
|
+
return d && (E.display === "block" || E.display === "flex" || E.display === "table" || E.display === "grid" || C >= c && r[Ya] === "none" || m && r[Ya] === "none" && C + B > c) ? "vertical" : "horizontal";
|
|
1868
|
+
}, Ou = function(i, a, r) {
|
|
1869
1869
|
var c = r ? i.left : i.top, d = r ? i.right : i.bottom, m = r ? i.width : i.height, E = r ? a.left : a.top, S = r ? a.right : a.bottom, C = r ? a.width : a.height;
|
|
1870
1870
|
return c === E || d === S || c + m / 2 === E + C / 2;
|
|
1871
|
-
},
|
|
1871
|
+
}, $u = function(i, a) {
|
|
1872
1872
|
var r;
|
|
1873
1873
|
return Nr.some(function(c) {
|
|
1874
1874
|
var d = c[gt].options.emptyInsertThreshold;
|
|
1875
|
-
if (!(!d ||
|
|
1875
|
+
if (!(!d || na(c))) {
|
|
1876
1876
|
var m = rt(c), E = i >= m.left - d && i <= m.right + d, S = a >= m.top - d && a <= m.bottom + d;
|
|
1877
1877
|
if (E && S)
|
|
1878
1878
|
return r = c;
|
|
1879
1879
|
}
|
|
1880
1880
|
}), r;
|
|
1881
|
-
},
|
|
1881
|
+
}, ci = function(i) {
|
|
1882
1882
|
function a(d, m) {
|
|
1883
1883
|
return function(E, S, C, B) {
|
|
1884
1884
|
var T = E.options.group.name && S.options.group.name && E.options.group.name === S.options.group.name;
|
|
@@ -1898,19 +1898,19 @@ var G, Ge, _e, He, fn, Mr, Xe, Gt, kn, Et, Xn, Xt, Tr, it, Dn = !1, Rr = !1, Nr
|
|
|
1898
1898
|
(!c || Ir(c) != "object") && (c = {
|
|
1899
1899
|
name: c
|
|
1900
1900
|
}), r.name = c.name, r.checkPull = a(c.pull, !0), r.checkPut = a(c.put), r.revertClone = c.revertClone, i.group = r;
|
|
1901
|
+
}, fi = function() {
|
|
1902
|
+
!li && _e && ge(_e, "display", "none");
|
|
1901
1903
|
}, di = function() {
|
|
1902
|
-
!
|
|
1903
|
-
}, hi = function() {
|
|
1904
|
-
!si && _e && ge(_e, "display", "");
|
|
1904
|
+
!li && _e && ge(_e, "display", "");
|
|
1905
1905
|
};
|
|
1906
|
-
zr && !
|
|
1906
|
+
zr && !ei && document.addEventListener("click", function(l) {
|
|
1907
1907
|
if (Rr)
|
|
1908
1908
|
return l.preventDefault(), l.stopPropagation && l.stopPropagation(), l.stopImmediatePropagation && l.stopImmediatePropagation(), Rr = !1, !1;
|
|
1909
1909
|
}, !0);
|
|
1910
1910
|
var cn = function(i) {
|
|
1911
1911
|
if (G) {
|
|
1912
1912
|
i = i.touches ? i.touches[0] : i;
|
|
1913
|
-
var a =
|
|
1913
|
+
var a = $u(i.clientX, i.clientY);
|
|
1914
1914
|
if (a) {
|
|
1915
1915
|
var r = {};
|
|
1916
1916
|
for (var c in i)
|
|
@@ -1918,7 +1918,7 @@ var cn = function(i) {
|
|
|
1918
1918
|
r.target = r.rootEl = a, r.preventDefault = void 0, r.stopPropagation = void 0, a[gt]._onDragOver(r);
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
},
|
|
1921
|
+
}, Tu = function(i) {
|
|
1922
1922
|
G && G.parentNode[gt]._isOutsideThisEl(i.target);
|
|
1923
1923
|
};
|
|
1924
1924
|
function ye(l, i) {
|
|
@@ -1940,7 +1940,7 @@ function ye(l, i) {
|
|
|
1940
1940
|
// will be set to same as swapThreshold if default
|
|
1941
1941
|
removeCloneOnHide: !0,
|
|
1942
1942
|
direction: function() {
|
|
1943
|
-
return
|
|
1943
|
+
return si(l, this.options);
|
|
1944
1944
|
},
|
|
1945
1945
|
ghostClass: "sortable-ghost",
|
|
1946
1946
|
chosenClass: "sortable-chosen",
|
|
@@ -1968,16 +1968,16 @@ function ye(l, i) {
|
|
|
1968
1968
|
y: 0
|
|
1969
1969
|
},
|
|
1970
1970
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1971
|
-
supportPointer: ye.supportPointer !== !1 && "PointerEvent" in window && (!Wn ||
|
|
1971
|
+
supportPointer: ye.supportPointer !== !1 && "PointerEvent" in window && (!Wn || ta),
|
|
1972
1972
|
emptyInsertThreshold: 5
|
|
1973
1973
|
};
|
|
1974
1974
|
er.initializePlugins(this, l, a);
|
|
1975
1975
|
for (var r in a)
|
|
1976
1976
|
!(r in i) && (i[r] = a[r]);
|
|
1977
|
-
|
|
1977
|
+
ci(i);
|
|
1978
1978
|
for (var c in this)
|
|
1979
1979
|
c.charAt(0) === "_" && typeof this[c] == "function" && (this[c] = this[c].bind(this));
|
|
1980
|
-
this.nativeDraggable = i.forceFallback ? !1 :
|
|
1980
|
+
this.nativeDraggable = i.forceFallback ? !1 : Cu, this.nativeDraggable && (this.options.touchStartThreshold = 1), i.supportPointer ? Be(l, "pointerdown", this._onTapStart) : (Be(l, "mousedown", this._onTapStart), Be(l, "touchstart", this._onTapStart)), this.nativeDraggable && (Be(l, "dragover", this), Be(l, "dragenter", this)), Nr.push(this.el), i.store && i.store.get && this.sort(i.store.get(this) || []), Kt(this, Eu());
|
|
1981
1981
|
}
|
|
1982
1982
|
ye.prototype = /** @lends Sortable.prototype */
|
|
1983
1983
|
{
|
|
@@ -1991,7 +1991,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
1991
1991
|
_onTapStart: function(i) {
|
|
1992
1992
|
if (i.cancelable) {
|
|
1993
1993
|
var a = this, r = this.el, c = this.options, d = c.preventOnFilter, m = i.type, E = i.touches && i.touches[0] || i.pointerType && i.pointerType === "touch" && i, S = (E || i).target, C = i.target.shadowRoot && (i.path && i.path[0] || i.composedPath && i.composedPath()[0]) || S, B = c.filter;
|
|
1994
|
-
if (
|
|
1994
|
+
if (ju(r), !G && !(/mousedown|pointerdown/.test(m) && i.button !== 0 || c.disabled) && !C.isContentEditable && !(!this.nativeDraggable && Wn && S && S.tagName.toUpperCase() === "SELECT") && (S = Tt(S, c.draggable, r, !1), !(S && S.animated) && Mr !== S)) {
|
|
1995
1995
|
if (kn = St(S), Xn = St(S, c.draggable), typeof B == "function") {
|
|
1996
1996
|
if (B.call(this, i, S, this)) {
|
|
1997
1997
|
vt({
|
|
@@ -2034,21 +2034,21 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2034
2034
|
target: G,
|
|
2035
2035
|
clientX: (a || i).clientX,
|
|
2036
2036
|
clientY: (a || i).clientY
|
|
2037
|
-
},
|
|
2037
|
+
}, Ua = sn.clientX - C.left, La = sn.clientY - C.top, this._lastX = (a || i).clientX, this._lastY = (a || i).clientY, G.style["will-change"] = "all", S = function() {
|
|
2038
2038
|
if (yt("delayEnded", c, {
|
|
2039
2039
|
evt: i
|
|
2040
2040
|
}), ye.eventCanceled) {
|
|
2041
2041
|
c._onDrop();
|
|
2042
2042
|
return;
|
|
2043
2043
|
}
|
|
2044
|
-
c._disableDelayedDragEvents(), !
|
|
2044
|
+
c._disableDelayedDragEvents(), !Va && c.nativeDraggable && (G.draggable = !0), c._triggerDragStart(i, a), vt({
|
|
2045
2045
|
sortable: c,
|
|
2046
2046
|
name: "choose",
|
|
2047
2047
|
originalEvent: i
|
|
2048
2048
|
}), _t(G, m.chosenClass, !0);
|
|
2049
2049
|
}, m.ignore.split(",").forEach(function(B) {
|
|
2050
|
-
|
|
2051
|
-
}), Be(E, "dragover", cn), Be(E, "mousemove", cn), Be(E, "touchmove", cn), m.supportPointer ? (Be(E, "pointerup", c._onDrop), !this.nativeDraggable && Be(E, "pointercancel", c._onDrop)) : (Be(E, "mouseup", c._onDrop), Be(E, "touchend", c._onDrop), Be(E, "touchcancel", c._onDrop)),
|
|
2050
|
+
ri(G, B.trim(), qo);
|
|
2051
|
+
}), Be(E, "dragover", cn), Be(E, "mousemove", cn), Be(E, "touchmove", cn), m.supportPointer ? (Be(E, "pointerup", c._onDrop), !this.nativeDraggable && Be(E, "pointercancel", c._onDrop)) : (Be(E, "mouseup", c._onDrop), Be(E, "touchend", c._onDrop), Be(E, "touchcancel", c._onDrop)), Va && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), yt("delayStart", this, {
|
|
2052
2052
|
evt: i
|
|
2053
2053
|
}), m.delay && (!m.delayOnTouchOnly || a) && (!this.nativeDraggable || !(Jn || Rt))) {
|
|
2054
2054
|
if (ye.eventCanceled) {
|
|
@@ -2084,7 +2084,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2084
2084
|
if (Dn = !1, He && G) {
|
|
2085
2085
|
yt("dragStarted", this, {
|
|
2086
2086
|
evt: a
|
|
2087
|
-
}), this.nativeDraggable && Be(document, "dragover",
|
|
2087
|
+
}), this.nativeDraggable && Be(document, "dragover", Tu);
|
|
2088
2088
|
var r = this.options;
|
|
2089
2089
|
!i && _t(G, r.dragClass, !1), _t(G, r.ghostClass, !0), ye.active = this, i && this._appendGhost(), vt({
|
|
2090
2090
|
sortable: this,
|
|
@@ -2096,7 +2096,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2096
2096
|
},
|
|
2097
2097
|
_emulateDragOver: function() {
|
|
2098
2098
|
if ($t) {
|
|
2099
|
-
this._lastX = $t.clientX, this._lastY = $t.clientY,
|
|
2099
|
+
this._lastX = $t.clientX, this._lastY = $t.clientY, fi();
|
|
2100
2100
|
for (var i = document.elementFromPoint($t.clientX, $t.clientY), a = i; i && i.shadowRoot && (i = i.shadowRoot.elementFromPoint($t.clientX, $t.clientY), i !== a); )
|
|
2101
2101
|
a = i;
|
|
2102
2102
|
if (G.parentNode[gt]._isOutsideThisEl(i), a)
|
|
@@ -2112,13 +2112,13 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2112
2112
|
break;
|
|
2113
2113
|
}
|
|
2114
2114
|
i = a;
|
|
2115
|
-
} while (a =
|
|
2116
|
-
|
|
2115
|
+
} while (a = ni(a));
|
|
2116
|
+
di();
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
2119
|
_onTouchMove: function(i) {
|
|
2120
2120
|
if (sn) {
|
|
2121
|
-
var a = this.options, r = a.fallbackTolerance, c = a.fallbackOffset, d = i.touches ? i.touches[0] : i, m = _e && Sn(_e, !0), E = _e && m && m.a, S = _e && m && m.d, C = Pr && pt &&
|
|
2121
|
+
var a = this.options, r = a.fallbackTolerance, c = a.fallbackOffset, d = i.touches ? i.touches[0] : i, m = _e && Sn(_e, !0), E = _e && m && m.a, S = _e && m && m.d, C = Pr && pt && Na(pt), B = (d.clientX - sn.clientX + c.x) / (E || 1) + (C ? C[0] - Bo[0] : 0) / (E || 1), T = (d.clientY - sn.clientY + c.y) / (S || 1) + (C ? C[1] - Bo[1] : 0) / (S || 1);
|
|
2122
2122
|
if (!ye.active && !Dn) {
|
|
2123
2123
|
if (r && Math.max(Math.abs(d.clientX - this._lastX), Math.abs(d.clientY - this._lastY)) < r)
|
|
2124
2124
|
return;
|
|
@@ -2145,9 +2145,9 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2145
2145
|
if (Pr) {
|
|
2146
2146
|
for (pt = i; ge(pt, "position") === "static" && ge(pt, "transform") === "none" && pt !== document; )
|
|
2147
2147
|
pt = pt.parentNode;
|
|
2148
|
-
pt !== document.body && pt !== document.documentElement ? (pt === document && (pt = Mt()), a.top += pt.scrollTop, a.left += pt.scrollLeft) : pt = Mt(), Bo =
|
|
2148
|
+
pt !== document.body && pt !== document.documentElement ? (pt === document && (pt = Mt()), a.top += pt.scrollTop, a.left += pt.scrollLeft) : pt = Mt(), Bo = Na(pt);
|
|
2149
2149
|
}
|
|
2150
|
-
_e = G.cloneNode(!0), _t(_e, r.ghostClass, !1), _t(_e, r.fallbackClass, !0), _t(_e, r.dragClass, !0), ge(_e, "transition", ""), ge(_e, "transform", ""), ge(_e, "box-sizing", "border-box"), ge(_e, "margin", 0), ge(_e, "top", a.top), ge(_e, "left", a.left), ge(_e, "width", a.width), ge(_e, "height", a.height), ge(_e, "opacity", "0.8"), ge(_e, "position", Pr ? "absolute" : "fixed"), ge(_e, "zIndex", "100000"), ge(_e, "pointerEvents", "none"), ye.ghost = _e, i.appendChild(_e), ge(_e, "transform-origin",
|
|
2150
|
+
_e = G.cloneNode(!0), _t(_e, r.ghostClass, !1), _t(_e, r.fallbackClass, !0), _t(_e, r.dragClass, !0), ge(_e, "transition", ""), ge(_e, "transform", ""), ge(_e, "box-sizing", "border-box"), ge(_e, "margin", 0), ge(_e, "top", a.top), ge(_e, "left", a.left), ge(_e, "width", a.width), ge(_e, "height", a.height), ge(_e, "opacity", "0.8"), ge(_e, "position", Pr ? "absolute" : "fixed"), ge(_e, "zIndex", "100000"), ge(_e, "pointerEvents", "none"), ye.ghost = _e, i.appendChild(_e), ge(_e, "transform-origin", Ua / parseInt(_e.style.width) * 100 + "% " + La / parseInt(_e.style.height) * 100 + "%");
|
|
2151
2151
|
}
|
|
2152
2152
|
},
|
|
2153
2153
|
_onDragStart: function(i, a) {
|
|
@@ -2158,7 +2158,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2158
2158
|
this._onDrop();
|
|
2159
2159
|
return;
|
|
2160
2160
|
}
|
|
2161
|
-
yt("setupClone", this), ye.eventCanceled || (Xe =
|
|
2161
|
+
yt("setupClone", this), ye.eventCanceled || (Xe = ii(G), Xe.removeAttribute("id"), Xe.draggable = !1, Xe.style["will-change"] = "", this._hideClone(), _t(Xe, this.options.chosenClass, !1), ye.clone = Xe), r.cloneId = qr(function() {
|
|
2162
2162
|
yt("clone", r), !ye.eventCanceled && (r.options.removeCloneOnHide || He.insertBefore(Xe, G), r._hideClone(), vt({
|
|
2163
2163
|
sortable: r,
|
|
2164
2164
|
name: "clone"
|
|
@@ -2168,7 +2168,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2168
2168
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2169
2169
|
_onDragOver: function(i) {
|
|
2170
2170
|
var a = this.el, r = i.target, c, d, m, E = this.options, S = E.group, C = ye.active, B = Tr === S, T = E.sort, Z = it || C, q, F = this, se = !1;
|
|
2171
|
-
if (
|
|
2171
|
+
if (zo) return;
|
|
2172
2172
|
function qe(W, he) {
|
|
2173
2173
|
yt(W, F, Bt({
|
|
2174
2174
|
evt: i,
|
|
@@ -2214,13 +2214,13 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2214
2214
|
if (q = this._getDirection(i, r) === "vertical", c = rt(G), qe("dragOverValid"), ye.eventCanceled) return se;
|
|
2215
2215
|
if (m)
|
|
2216
2216
|
return Ge = He, V(), this._hideClone(), qe("revert"), ye.eventCanceled || (fn ? He.insertBefore(G, fn) : He.appendChild(G)), re(!0);
|
|
2217
|
-
var te =
|
|
2218
|
-
if (!te ||
|
|
2217
|
+
var te = na(a, E.draggable);
|
|
2218
|
+
if (!te || Iu(i, q, this) && !te.animated) {
|
|
2219
2219
|
if (te === G)
|
|
2220
2220
|
return re(!1);
|
|
2221
2221
|
if (te && a === i.target && (r = te), r && (d = rt(r)), Fr(He, a, G, c, r, d, i, !!r) !== !1)
|
|
2222
2222
|
return V(), te && te.nextSibling ? a.insertBefore(G, te.nextSibling) : a.appendChild(G), Ge = a, ke(), re(!0);
|
|
2223
|
-
} else if (te &&
|
|
2223
|
+
} else if (te && Fu(i, q, this)) {
|
|
2224
2224
|
var Re = Cn(a, 0, E, !0);
|
|
2225
2225
|
if (Re === G)
|
|
2226
2226
|
return re(!1);
|
|
@@ -2228,8 +2228,8 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2228
2228
|
return V(), a.insertBefore(G, Re), Ge = a, ke(), re(!0);
|
|
2229
2229
|
} else if (r.parentNode === a) {
|
|
2230
2230
|
d = rt(r);
|
|
2231
|
-
var ve = 0, ce, Ue = G.parentNode !== a, Ke =
|
|
2232
|
-
xn !== r && (ce = d[Ce], Qn = !1, Ar = !Ke && E.invertSwap || Ue), ve =
|
|
2231
|
+
var ve = 0, ce, Ue = G.parentNode !== a, Ke = !Ou(G.animated && G.toRect || c, r.animated && r.toRect || d, q), Ce = q ? "top" : "left", me = Ra(r, "top", "top") || Ra(G, "top", "top"), Le = me ? me.scrollTop : void 0;
|
|
2232
|
+
xn !== r && (ce = d[Ce], Qn = !1, Ar = !Ke && E.invertSwap || Ue), ve = Mu(i, r, d, q, Ke ? 1 : E.swapThreshold, E.invertedSwapThreshold == null ? E.swapThreshold : E.invertedSwapThreshold, Ar, xn === r);
|
|
2233
2233
|
var Oe;
|
|
2234
2234
|
if (ve !== 0) {
|
|
2235
2235
|
var ae = St(G);
|
|
@@ -2244,7 +2244,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2244
2244
|
L = ve === 1;
|
|
2245
2245
|
var ie = Fr(He, a, G, c, r, d, i, L);
|
|
2246
2246
|
if (ie !== !1)
|
|
2247
|
-
return (ie === 1 || ie === -1) && (L = ie === 1),
|
|
2247
|
+
return (ie === 1 || ie === -1) && (L = ie === 1), zo = !0, setTimeout(Pu, 30), V(), L && !z ? a.appendChild(G) : r.parentNode.insertBefore(G, L ? z : r), me && ai(me, 0, Le - me.scrollTop), Ge = G.parentNode, ce !== void 0 && !Ar && (Br = Math.abs(ce - rt(r)[Ce])), ke(), re(!0);
|
|
2248
2248
|
}
|
|
2249
2249
|
if (a.contains(G))
|
|
2250
2250
|
return re(!1);
|
|
@@ -2267,7 +2267,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2267
2267
|
this._nulling();
|
|
2268
2268
|
return;
|
|
2269
2269
|
}
|
|
2270
|
-
Dn = !1, Ar = !1, Qn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
2270
|
+
Dn = !1, Ar = !1, Qn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Wo(this.cloneId), Wo(this._dragStartId), this.nativeDraggable && (Ie(document, "drop", this), Ie(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Wn && ge(document.body, "user-select", ""), ge(G, "transform", ""), i && (Un && (i.cancelable && i.preventDefault(), !r.dropBubble && i.stopPropagation()), _e && _e.parentNode && _e.parentNode.removeChild(_e), (He === Ge || it && it.lastPutMode !== "clone") && Xe && Xe.parentNode && Xe.parentNode.removeChild(Xe), G && (this.nativeDraggable && Ie(G, "dragend", this), qo(G), G.style["will-change"] = "", Un && !Dn && _t(G, it ? it.options.ghostClass : this.options.ghostClass, !1), _t(G, this.options.chosenClass, !1), vt({
|
|
2271
2271
|
sortable: this,
|
|
2272
2272
|
name: "unchoose",
|
|
2273
2273
|
toEl: Ge,
|
|
@@ -2326,7 +2326,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2326
2326
|
break;
|
|
2327
2327
|
case "dragenter":
|
|
2328
2328
|
case "dragover":
|
|
2329
|
-
G && (this._onDragOver(i),
|
|
2329
|
+
G && (this._onDragOver(i), Au(i));
|
|
2330
2330
|
break;
|
|
2331
2331
|
case "selectstart":
|
|
2332
2332
|
i.preventDefault();
|
|
@@ -2339,7 +2339,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2339
2339
|
*/
|
|
2340
2340
|
toArray: function() {
|
|
2341
2341
|
for (var i = [], a, r = this.el.children, c = 0, d = r.length, m = this.options; c < d; c++)
|
|
2342
|
-
a = r[c], Tt(a, m.draggable, this.el, !1) && i.push(a.getAttribute(m.dataIdAttr) ||
|
|
2342
|
+
a = r[c], Tt(a, m.draggable, this.el, !1) && i.push(a.getAttribute(m.dataIdAttr) || qu(a));
|
|
2343
2343
|
return i;
|
|
2344
2344
|
},
|
|
2345
2345
|
/**
|
|
@@ -2382,7 +2382,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2382
2382
|
if (a === void 0)
|
|
2383
2383
|
return r[i];
|
|
2384
2384
|
var c = er.modifyOption(this, i, a);
|
|
2385
|
-
typeof c < "u" ? r[i] = c : r[i] = a, i === "group" &&
|
|
2385
|
+
typeof c < "u" ? r[i] = c : r[i] = a, i === "group" && ci(r);
|
|
2386
2386
|
},
|
|
2387
2387
|
/**
|
|
2388
2388
|
* Destroy
|
|
@@ -2411,7 +2411,7 @@ ye.prototype = /** @lends Sortable.prototype */
|
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
2413
|
};
|
|
2414
|
-
function
|
|
2414
|
+
function Au(l) {
|
|
2415
2415
|
l.dataTransfer && (l.dataTransfer.dropEffect = "move"), l.cancelable && l.preventDefault();
|
|
2416
2416
|
}
|
|
2417
2417
|
function Fr(l, i, a, r, c, d, m, E) {
|
|
@@ -2424,18 +2424,18 @@ function Fr(l, i, a, r, c, d, m, E) {
|
|
|
2424
2424
|
function qo(l) {
|
|
2425
2425
|
l.draggable = !1;
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2427
|
+
function Pu() {
|
|
2428
|
+
zo = !1;
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2431
|
-
var r = rt(Cn(a.el, 0, a.options, !0)), c =
|
|
2430
|
+
function Fu(l, i, a) {
|
|
2431
|
+
var r = rt(Cn(a.el, 0, a.options, !0)), c = ui(a.el, a.options, _e), d = 10;
|
|
2432
2432
|
return i ? l.clientX < c.left - d || l.clientY < r.top && l.clientX < r.right : l.clientY < c.top - d || l.clientY < r.bottom && l.clientX < r.left;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2435
|
-
var r = rt(
|
|
2434
|
+
function Iu(l, i, a) {
|
|
2435
|
+
var r = rt(na(a.el, a.options.draggable)), c = ui(a.el, a.options, _e), d = 10;
|
|
2436
2436
|
return i ? l.clientX > c.right + d || l.clientY > r.bottom && l.clientX > r.left : l.clientY > c.bottom + d || l.clientX > r.right && l.clientY > r.top;
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2438
|
+
function Mu(l, i, a, r, c, d, m, E) {
|
|
2439
2439
|
var S = r ? l.clientY : l.clientX, C = r ? a.height : a.width, B = r ? a.top : a.left, T = r ? a.bottom : a.right, Z = !1;
|
|
2440
2440
|
if (!m) {
|
|
2441
2441
|
if (E && Br < C * c) {
|
|
@@ -2444,19 +2444,19 @@ function Bu(l, i, a, r, c, d, m, E) {
|
|
|
2444
2444
|
else if (Gn === 1 ? S < B + Br : S > T - Br)
|
|
2445
2445
|
return -Gn;
|
|
2446
2446
|
} else if (S > B + C * (1 - c) / 2 && S < T - C * (1 - c) / 2)
|
|
2447
|
-
return
|
|
2447
|
+
return Bu(i);
|
|
2448
2448
|
}
|
|
2449
2449
|
return Z = Z || m, Z && (S < B + C * d / 2 || S > T - C * d / 2) ? S > B + C / 2 ? 1 : -1 : 0;
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function Bu(l) {
|
|
2452
2452
|
return St(G) < St(l) ? 1 : -1;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function qu(l) {
|
|
2455
2455
|
for (var i = l.tagName + l.className + l.src + l.href + l.textContent, a = i.length, r = 0; a--; )
|
|
2456
2456
|
r += i.charCodeAt(a);
|
|
2457
2457
|
return r.toString(36);
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function ju(l) {
|
|
2460
2460
|
Ur.length = 0;
|
|
2461
2461
|
for (var i = l.getElementsByTagName("input"), a = i.length; a--; ) {
|
|
2462
2462
|
var r = i[a];
|
|
@@ -2466,7 +2466,7 @@ function Vu(l) {
|
|
|
2466
2466
|
function qr(l) {
|
|
2467
2467
|
return setTimeout(l, 0);
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function Wo(l) {
|
|
2470
2470
|
return clearTimeout(l);
|
|
2471
2471
|
}
|
|
2472
2472
|
zr && Be(document, "touchmove", function(l) {
|
|
@@ -2476,19 +2476,19 @@ ye.utils = {
|
|
|
2476
2476
|
on: Be,
|
|
2477
2477
|
off: Ie,
|
|
2478
2478
|
css: ge,
|
|
2479
|
-
find:
|
|
2479
|
+
find: ri,
|
|
2480
2480
|
is: function(i, a) {
|
|
2481
2481
|
return !!Tt(i, a, i, !1);
|
|
2482
2482
|
},
|
|
2483
|
-
extend:
|
|
2484
|
-
throttle:
|
|
2483
|
+
extend: wu,
|
|
2484
|
+
throttle: oi,
|
|
2485
2485
|
closest: Tt,
|
|
2486
2486
|
toggleClass: _t,
|
|
2487
|
-
clone:
|
|
2487
|
+
clone: ii,
|
|
2488
2488
|
index: St,
|
|
2489
2489
|
nextTick: qr,
|
|
2490
|
-
cancelNextTick:
|
|
2491
|
-
detectDirection:
|
|
2490
|
+
cancelNextTick: Wo,
|
|
2491
|
+
detectDirection: si,
|
|
2492
2492
|
getChild: Cn,
|
|
2493
2493
|
expando: gt
|
|
2494
2494
|
};
|
|
@@ -2507,9 +2507,9 @@ ye.mount = function() {
|
|
|
2507
2507
|
ye.create = function(l, i) {
|
|
2508
2508
|
return new ye(l, i);
|
|
2509
2509
|
};
|
|
2510
|
-
ye.version =
|
|
2511
|
-
var nt = [], Ln,
|
|
2512
|
-
function
|
|
2510
|
+
ye.version = gu;
|
|
2511
|
+
var nt = [], Ln, Ho, Xo = !1, jo, Vo, Lr, Yn;
|
|
2512
|
+
function Vu() {
|
|
2513
2513
|
function l() {
|
|
2514
2514
|
this.defaults = {
|
|
2515
2515
|
scroll: !0,
|
|
@@ -2531,10 +2531,10 @@ function Ku() {
|
|
|
2531
2531
|
!this.options.dragOverBubble && !r.rootEl && this._handleAutoScroll(r);
|
|
2532
2532
|
},
|
|
2533
2533
|
drop: function() {
|
|
2534
|
-
this.sortable.nativeDraggable ? Ie(document, "dragover", this._handleAutoScroll) : (Ie(document, "pointermove", this._handleFallbackAutoScroll), Ie(document, "touchmove", this._handleFallbackAutoScroll), Ie(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
2534
|
+
this.sortable.nativeDraggable ? Ie(document, "dragover", this._handleAutoScroll) : (Ie(document, "pointermove", this._handleFallbackAutoScroll), Ie(document, "touchmove", this._handleFallbackAutoScroll), Ie(document, "mousemove", this._handleFallbackAutoScroll)), za(), jr(), _u();
|
|
2535
2535
|
},
|
|
2536
2536
|
nulling: function() {
|
|
2537
|
-
Lr =
|
|
2537
|
+
Lr = Ho = Ln = Xo = Yn = jo = Vo = null, nt.length = 0;
|
|
2538
2538
|
},
|
|
2539
2539
|
_handleFallbackAutoScroll: function(a) {
|
|
2540
2540
|
this._handleAutoScroll(a, !0);
|
|
@@ -2544,7 +2544,7 @@ function Ku() {
|
|
|
2544
2544
|
if (Lr = a, r || this.options.forceAutoScrollFallback || Jn || Rt || Wn) {
|
|
2545
2545
|
Ko(a, this.options, E, r);
|
|
2546
2546
|
var S = Qt(E, !0);
|
|
2547
|
-
|
|
2547
|
+
Xo && (!Yn || d !== jo || m !== Vo) && (Yn && za(), Yn = setInterval(function() {
|
|
2548
2548
|
var C = Qt(document.elementFromPoint(d, m), !0);
|
|
2549
2549
|
C !== S && (S = C, jr()), Ko(a, c.options, C, r);
|
|
2550
2550
|
}, 10), jo = d, Vo = m);
|
|
@@ -2566,13 +2566,13 @@ function jr() {
|
|
|
2566
2566
|
clearInterval(l.pid);
|
|
2567
2567
|
}), nt = [];
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2569
|
+
function za() {
|
|
2570
2570
|
clearInterval(Yn);
|
|
2571
2571
|
}
|
|
2572
|
-
var Ko =
|
|
2572
|
+
var Ko = oi(function(l, i, a, r) {
|
|
2573
2573
|
if (i.scroll) {
|
|
2574
2574
|
var c = (l.touches ? l.touches[0] : l).clientX, d = (l.touches ? l.touches[0] : l).clientY, m = i.scrollSensitivity, E = i.scrollSpeed, S = Mt(), C = !1, B;
|
|
2575
|
-
|
|
2575
|
+
Ho !== a && (Ho = a, jr(), Ln = i.scroll, B = i.scrollFn, Ln === !0 && (Ln = Qt(a, !0)));
|
|
2576
2576
|
var T = 0, Z = Ln;
|
|
2577
2577
|
do {
|
|
2578
2578
|
var q = Z, F = rt(q), se = F.top, qe = F.bottom, V = F.left, re = F.right, ke = F.width, te = F.height, Re = void 0, ve = void 0, ce = q.scrollWidth, Ue = q.scrollHeight, Ke = ge(q), Ce = q.scrollLeft, me = q.scrollTop;
|
|
@@ -2584,14 +2584,14 @@ var Ko = ai(function(l, i, a, r) {
|
|
|
2584
2584
|
(nt[T].vx != Le || nt[T].vy != Oe || nt[T].el !== q) && (nt[T].el = q, nt[T].vx = Le, nt[T].vy = Oe, clearInterval(nt[T].pid), (Le != 0 || Oe != 0) && (C = !0, nt[T].pid = setInterval((function() {
|
|
2585
2585
|
r && this.layer === 0 && ye.active._onTouchMove(Lr);
|
|
2586
2586
|
var z = nt[this.layer].vy ? nt[this.layer].vy * E : 0, L = nt[this.layer].vx ? nt[this.layer].vx * E : 0;
|
|
2587
|
-
typeof B == "function" && B.call(ye.dragged.parentNode[gt], L, z, l, Lr, nt[this.layer].el) !== "continue" ||
|
|
2587
|
+
typeof B == "function" && B.call(ye.dragged.parentNode[gt], L, z, l, Lr, nt[this.layer].el) !== "continue" || ai(nt[this.layer].el, L, z);
|
|
2588
2588
|
}).bind({
|
|
2589
2589
|
layer: T
|
|
2590
2590
|
}), 24))), T++;
|
|
2591
2591
|
} while (i.bubbleScroll && Z !== S && (Z = Qt(Z, !1)));
|
|
2592
|
-
|
|
2592
|
+
Xo = C;
|
|
2593
2593
|
}
|
|
2594
|
-
}, 30),
|
|
2594
|
+
}, 30), hi = function(i) {
|
|
2595
2595
|
var a = i.originalEvent, r = i.putSortable, c = i.dragEl, d = i.activeSortable, m = i.dispatchSortableEvent, E = i.hideGhostForTarget, S = i.unhideGhostForTarget;
|
|
2596
2596
|
if (a) {
|
|
2597
2597
|
var C = r || d;
|
|
@@ -2603,9 +2603,9 @@ var Ko = ai(function(l, i, a, r) {
|
|
|
2603
2603
|
}));
|
|
2604
2604
|
}
|
|
2605
2605
|
};
|
|
2606
|
-
function
|
|
2606
|
+
function ra() {
|
|
2607
2607
|
}
|
|
2608
|
-
|
|
2608
|
+
ra.prototype = {
|
|
2609
2609
|
startIndex: null,
|
|
2610
2610
|
dragStart: function(i) {
|
|
2611
2611
|
var a = i.oldDraggableIndex;
|
|
@@ -2617,26 +2617,26 @@ oa.prototype = {
|
|
|
2617
2617
|
var c = Cn(this.sortable.el, this.startIndex, this.options);
|
|
2618
2618
|
c ? this.sortable.el.insertBefore(a, c) : this.sortable.el.appendChild(a), this.sortable.animateAll(), r && r.animateAll();
|
|
2619
2619
|
},
|
|
2620
|
-
drop:
|
|
2620
|
+
drop: hi
|
|
2621
2621
|
};
|
|
2622
|
-
Kt(
|
|
2622
|
+
Kt(ra, {
|
|
2623
2623
|
pluginName: "revertOnSpill"
|
|
2624
2624
|
});
|
|
2625
|
-
function
|
|
2625
|
+
function oa() {
|
|
2626
2626
|
}
|
|
2627
|
-
|
|
2627
|
+
oa.prototype = {
|
|
2628
2628
|
onSpill: function(i) {
|
|
2629
2629
|
var a = i.dragEl, r = i.putSortable, c = r || this.sortable;
|
|
2630
2630
|
c.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), c.animateAll();
|
|
2631
2631
|
},
|
|
2632
|
-
drop:
|
|
2632
|
+
drop: hi
|
|
2633
2633
|
};
|
|
2634
|
-
Kt(
|
|
2634
|
+
Kt(oa, {
|
|
2635
2635
|
pluginName: "removeOnSpill"
|
|
2636
2636
|
});
|
|
2637
|
-
ye.mount(new
|
|
2638
|
-
ye.mount(
|
|
2639
|
-
const
|
|
2637
|
+
ye.mount(new Vu());
|
|
2638
|
+
ye.mount(oa, ra);
|
|
2639
|
+
const Ku = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ru = { style: { padding: "10px", "box-sizing": "border-box" } }, Nu = { style: { margin: "10px" } }, Uu = { style: { display: "flex" } }, Lu = ["textContent"], Yu = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, zu = ["download"], Wu = {
|
|
2640
2640
|
__name: "check-excel-item",
|
|
2641
2641
|
props: {
|
|
2642
2642
|
items: Array,
|
|
@@ -2665,14 +2665,14 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
2667
|
}), q = Z;
|
|
2668
|
-
|
|
2668
|
+
eu(() => {
|
|
2669
2669
|
q && q.destroy();
|
|
2670
2670
|
});
|
|
2671
2671
|
}), (Z, q) => {
|
|
2672
2672
|
const F = be("el-divider"), se = be("el-alert"), qe = be("el-checkbox"), V = be("el-checkbox-group"), re = be("el-button");
|
|
2673
|
-
return fe(), Ze("div",
|
|
2674
|
-
Pe("div",
|
|
2675
|
-
Pe("div",
|
|
2673
|
+
return fe(), Ze("div", Ku, [
|
|
2674
|
+
Pe("div", Ru, [
|
|
2675
|
+
Pe("div", Nu, [
|
|
2676
2676
|
Pe("a", {
|
|
2677
2677
|
onClick: q[0] || (q[0] = (...ke) => Z.selectAll && Z.selectAll(...ke))
|
|
2678
2678
|
}, "全选"),
|
|
@@ -2689,7 +2689,7 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2689
2689
|
style: { "margin-bottom": "10px" }
|
|
2690
2690
|
}),
|
|
2691
2691
|
q[3] || (q[3] = Pe("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2692
|
-
Pe("div",
|
|
2692
|
+
Pe("div", Uu, [
|
|
2693
2693
|
De(V, {
|
|
2694
2694
|
id: "excelSortEl",
|
|
2695
2695
|
modelValue: d.value,
|
|
@@ -2710,7 +2710,7 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2710
2710
|
Pe("span", {
|
|
2711
2711
|
textContent: Je(ke.label),
|
|
2712
2712
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2713
|
-
}, null, 8,
|
|
2713
|
+
}, null, 8, Lu)
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 2
|
|
2716
2716
|
}, 1032, ["data-id", "value", "title"]))), 128))
|
|
@@ -2719,7 +2719,7 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2719
2719
|
}, 8, ["modelValue"])
|
|
2720
2720
|
])
|
|
2721
2721
|
]),
|
|
2722
|
-
Pe("div",
|
|
2722
|
+
Pe("div", Yu, [
|
|
2723
2723
|
De(re, {
|
|
2724
2724
|
type: "primary",
|
|
2725
2725
|
onClick: B,
|
|
@@ -2730,7 +2730,7 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2730
2730
|
href: "",
|
|
2731
2731
|
download: C.value,
|
|
2732
2732
|
style: { "text-decoration": "none" }
|
|
2733
|
-
}, Je(a.commitText), 9,
|
|
2733
|
+
}, Je(a.commitText), 9, zu)
|
|
2734
2734
|
]),
|
|
2735
2735
|
_: 1
|
|
2736
2736
|
}, 8, ["disabled"])
|
|
@@ -2738,12 +2738,12 @@ const Ru = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } },
|
|
|
2738
2738
|
]);
|
|
2739
2739
|
};
|
|
2740
2740
|
}
|
|
2741
|
-
},
|
|
2742
|
-
var
|
|
2741
|
+
}, Hu = /* @__PURE__ */ Yr(Wu, [["__scopeId", "data-v-72c4cabb"]]);
|
|
2742
|
+
var pi = { exports: {} };
|
|
2743
2743
|
(function(l, i) {
|
|
2744
2744
|
(function(a, r) {
|
|
2745
2745
|
l.exports = r();
|
|
2746
|
-
})(
|
|
2746
|
+
})(Lo, function() {
|
|
2747
2747
|
var a = function(e, t) {
|
|
2748
2748
|
return (a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
2749
2749
|
n.__proto__ = o;
|
|
@@ -2760,7 +2760,7 @@ var mi = { exports: {} };
|
|
|
2760
2760
|
for (var o, u = 0, s = t.length; u < s; u++) !o && u in t || ((o = o || Array.prototype.slice.call(t, 0, u))[u] = t[u]);
|
|
2761
2761
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
2762
2762
|
}
|
|
2763
|
-
var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
2763
|
+
var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Lo, m = Object.keys, E = Array.isArray;
|
|
2764
2764
|
function S(e, t) {
|
|
2765
2765
|
return typeof t != "object" || m(t).forEach(function(n) {
|
|
2766
2766
|
e[n] = t[n];
|
|
@@ -2956,14 +2956,14 @@ var mi = { exports: {} };
|
|
|
2956
2956
|
return o && (this.onsuccess = this.onsuccess ? At(o, this.onsuccess) : o), u && (this.onerror = this.onerror ? At(u, this.onerror) : u), s !== void 0 ? s : n;
|
|
2957
2957
|
};
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function gi(e, t) {
|
|
2960
2960
|
return e === le ? t : function() {
|
|
2961
2961
|
e.apply(this, arguments);
|
|
2962
2962
|
var n = this.onsuccess, o = this.onerror;
|
|
2963
2963
|
this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? At(n, this.onsuccess) : n), o && (this.onerror = this.onerror ? At(o, this.onerror) : o);
|
|
2964
2964
|
};
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function bi(e, t) {
|
|
2967
2967
|
return e === le ? t : function(n) {
|
|
2968
2968
|
var o = e.apply(this, arguments);
|
|
2969
2969
|
S(n, o);
|
|
@@ -2971,7 +2971,7 @@ var mi = { exports: {} };
|
|
|
2971
2971
|
return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), u && (this.onsuccess = this.onsuccess ? At(u, this.onsuccess) : u), s && (this.onerror = this.onerror ? At(s, this.onerror) : s), o === void 0 ? n === void 0 ? void 0 : n : S(o, n);
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2974
|
+
function wi(e, t) {
|
|
2975
2975
|
return e === le ? t : function() {
|
|
2976
2976
|
return t.apply(this, arguments) !== !1 && e.apply(this, arguments);
|
|
2977
2977
|
};
|
|
@@ -2990,16 +2990,16 @@ var mi = { exports: {} };
|
|
|
2990
2990
|
}
|
|
2991
2991
|
Ee.ModifyError = ue, Ee.DexieError = P, Ee.BulkError = ze;
|
|
2992
2992
|
var Pt = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
|
|
2993
|
-
function
|
|
2993
|
+
function aa(e) {
|
|
2994
2994
|
Pt = e;
|
|
2995
2995
|
}
|
|
2996
|
-
var On = {},
|
|
2996
|
+
var On = {}, ia = 100, Zt = typeof Promise > "u" ? [] : function() {
|
|
2997
2997
|
var e = Promise.resolve();
|
|
2998
2998
|
if (typeof crypto > "u" || !crypto.subtle) return [e, C(e), e];
|
|
2999
2999
|
var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
3000
3000
|
return [t, C(t), e];
|
|
3001
3001
|
}(), $n = Zt[0], kt = Zt[1], Zt = Zt[2], kt = kt && kt.then, Jt = $n && $n.constructor, Hr = !!Zt, Tn = function(e, t) {
|
|
3002
|
-
An.push([e, t]), rr && (queueMicrotask(
|
|
3002
|
+
An.push([e, t]), rr && (queueMicrotask(Ei), rr = !1);
|
|
3003
3003
|
}, Xr = !0, rr = !0, en = [], or = [], Gr = Ne, Nt = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: le, pgp: !1, env: {}, finalize: le }, de = Nt, An = [], tn = 0, ar = [];
|
|
3004
3004
|
function ee(e) {
|
|
3005
3005
|
if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
|
|
@@ -3017,7 +3017,7 @@ var mi = { exports: {} };
|
|
|
3017
3017
|
var f = o._lib && mn();
|
|
3018
3018
|
s && typeof s.then == "function" ? n(o, function(h, v) {
|
|
3019
3019
|
s instanceof ee ? s._then(h, v) : s.then(h, v);
|
|
3020
|
-
}) : (o._state = !0, o._value = s,
|
|
3020
|
+
}) : (o._state = !0, o._value = s, la(o)), f && vn();
|
|
3021
3021
|
}
|
|
3022
3022
|
}, Zr.bind(null, o));
|
|
3023
3023
|
} catch (s) {
|
|
@@ -3029,7 +3029,7 @@ var mi = { exports: {} };
|
|
|
3029
3029
|
var e = de, t = sr;
|
|
3030
3030
|
function n(o, u) {
|
|
3031
3031
|
var s = this, f = !e.global && (e !== de || t !== sr), h = f && !Lt(), v = new ee(function(g, _) {
|
|
3032
|
-
Jr(s, new
|
|
3032
|
+
Jr(s, new ua(ca(o, e, f, h), ca(u, e, f, h), g, _, e));
|
|
3033
3033
|
});
|
|
3034
3034
|
return this._consoleTask && (v._consoleTask = this._consoleTask), v;
|
|
3035
3035
|
}
|
|
@@ -3039,16 +3039,16 @@ var mi = { exports: {} };
|
|
|
3039
3039
|
return e;
|
|
3040
3040
|
}, set: Qr.set });
|
|
3041
3041
|
} };
|
|
3042
|
-
function
|
|
3042
|
+
function ua(e, t, n, o, u) {
|
|
3043
3043
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.resolve = n, this.reject = o, this.psd = u;
|
|
3044
3044
|
}
|
|
3045
3045
|
function Zr(e, t) {
|
|
3046
3046
|
var n, o;
|
|
3047
3047
|
or.push(t), e._state === null && (n = e._lib && mn(), t = Gr(t), e._state = !1, e._value = t, o = e, en.some(function(u) {
|
|
3048
3048
|
return u._value === o._value;
|
|
3049
|
-
}) || en.push(o),
|
|
3049
|
+
}) || en.push(o), la(e), n && vn());
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function la(e) {
|
|
3052
3052
|
var t = e._listeners;
|
|
3053
3053
|
e._listeners = [];
|
|
3054
3054
|
for (var n = 0, o = t.length; n < o; ++n) Jr(e, t[n]);
|
|
@@ -3061,10 +3061,10 @@ var mi = { exports: {} };
|
|
|
3061
3061
|
if (e._state !== null) {
|
|
3062
3062
|
var n = e._state ? t.onFulfilled : t.onRejected;
|
|
3063
3063
|
if (n === null) return (e._state ? t.resolve : t.reject)(e._value);
|
|
3064
|
-
++t.psd.ref, ++tn, Tn(
|
|
3064
|
+
++t.psd.ref, ++tn, Tn(_i, [n, e, t]);
|
|
3065
3065
|
} else e._listeners.push(t);
|
|
3066
3066
|
}
|
|
3067
|
-
function
|
|
3067
|
+
function _i(e, t, n) {
|
|
3068
3068
|
try {
|
|
3069
3069
|
var o, u = t._value;
|
|
3070
3070
|
!t._state && or.length && (or = []), o = Pt && t._consoleTask ? t._consoleTask.run(function() {
|
|
@@ -3078,7 +3078,7 @@ var mi = { exports: {} };
|
|
|
3078
3078
|
--tn == 0 && eo(), --n.psd.ref || n.psd.finalize();
|
|
3079
3079
|
}
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3081
|
+
function Ei() {
|
|
3082
3082
|
nn(Nt, function() {
|
|
3083
3083
|
mn() && vn();
|
|
3084
3084
|
});
|
|
@@ -3121,7 +3121,7 @@ var mi = { exports: {} };
|
|
|
3121
3121
|
};
|
|
3122
3122
|
}
|
|
3123
3123
|
Z(ee.prototype, { then: Qr, _then: function(e, t) {
|
|
3124
|
-
Jr(this, new
|
|
3124
|
+
Jr(this, new ua(null, null, e, t, de));
|
|
3125
3125
|
}, catch: function(e) {
|
|
3126
3126
|
if (arguments.length === 1) return this.then(null, e);
|
|
3127
3127
|
var t = e, n = arguments[1];
|
|
@@ -3148,7 +3148,7 @@ var mi = { exports: {} };
|
|
|
3148
3148
|
}, e);
|
|
3149
3149
|
n.then(o, u).finally(clearTimeout.bind(null, s));
|
|
3150
3150
|
}) : this;
|
|
3151
|
-
} }), typeof Symbol < "u" && Symbol.toStringTag && F(ee.prototype, Symbol.toStringTag, "Dexie.Promise"), Nt.env =
|
|
3151
|
+
} }), typeof Symbol < "u" && Symbol.toStringTag && F(ee.prototype, Symbol.toStringTag, "Dexie.Promise"), Nt.env = sa(), Z(ee, { all: function() {
|
|
3152
3152
|
var e = D.apply(null, arguments).map(cr);
|
|
3153
3153
|
return new ee(function(t, n) {
|
|
3154
3154
|
e.length === 0 && t([]);
|
|
@@ -3229,18 +3229,18 @@ var mi = { exports: {} };
|
|
|
3229
3229
|
});
|
|
3230
3230
|
});
|
|
3231
3231
|
}), Jt.withResolvers && (ee.withResolvers = Jt.withResolvers));
|
|
3232
|
-
var ot = { awaits: 0, echoes: 0, id: 0 },
|
|
3232
|
+
var ot = { awaits: 0, echoes: 0, id: 0 }, xi = 0, ur = [], lr = 0, sr = 0, Di = 0;
|
|
3233
3233
|
function Ut(e, t, n, o) {
|
|
3234
3234
|
var u = de, s = Object.create(u);
|
|
3235
|
-
return s.parent = u, s.ref = 0, s.global = !1, s.id = ++
|
|
3235
|
+
return s.parent = u, s.ref = 0, s.global = !1, s.id = ++Di, Nt.env, s.env = Hr ? { Promise: ee, PromiseProp: { value: ee, configurable: !0, writable: !0 }, all: ee.all, race: ee.race, allSettled: ee.allSettled, any: ee.any, resolve: ee.resolve, reject: ee.reject } : {}, t && S(s, t), ++u.ref, s.finalize = function() {
|
|
3236
3236
|
--this.parent.ref || this.parent.finalize();
|
|
3237
3237
|
}, o = nn(s, e, n, o), s.ref === 0 && s.finalize(), o;
|
|
3238
3238
|
}
|
|
3239
3239
|
function yn() {
|
|
3240
|
-
return ot.id || (ot.id = ++
|
|
3240
|
+
return ot.id || (ot.id = ++xi), ++ot.awaits, ot.echoes += ia, ot.id;
|
|
3241
3241
|
}
|
|
3242
3242
|
function Lt() {
|
|
3243
|
-
return !!ot.awaits && (--ot.awaits == 0 && (ot.id = 0), ot.echoes = ot.awaits *
|
|
3243
|
+
return !!ot.awaits && (--ot.awaits == 0 && (ot.id = 0), ot.echoes = ot.awaits * ia, !0);
|
|
3244
3244
|
}
|
|
3245
3245
|
function cr(e) {
|
|
3246
3246
|
return ot.echoes && e && e.constructor === Jt ? (yn(), e.then(function(t) {
|
|
@@ -3249,7 +3249,7 @@ var mi = { exports: {} };
|
|
|
3249
3249
|
return Lt(), et(t);
|
|
3250
3250
|
})) : e;
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function ki() {
|
|
3253
3253
|
var e = ur[ur.length - 1];
|
|
3254
3254
|
ur.pop(), Yt(e, !1);
|
|
3255
3255
|
}
|
|
@@ -3257,9 +3257,9 @@ var mi = { exports: {} };
|
|
|
3257
3257
|
var n, o = de;
|
|
3258
3258
|
(t ? !ot.echoes || lr++ && e === de : !lr || --lr && e === de) || queueMicrotask(t ? (function(u) {
|
|
3259
3259
|
++sr, ot.echoes && --ot.echoes != 0 || (ot.echoes = ot.awaits = ot.id = 0), ur.push(de), Yt(u, !0);
|
|
3260
|
-
}).bind(null, e) :
|
|
3260
|
+
}).bind(null, e) : ki), e !== de && (de = e, o === Nt && (Nt.env = sa()), Hr && (n = Nt.env.Promise, t = e.env, (o.global || e.global) && (Object.defineProperty(d, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function sa() {
|
|
3263
3263
|
var e = d.Promise;
|
|
3264
3264
|
return Hr ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(d, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
|
|
3265
3265
|
}
|
|
@@ -3271,7 +3271,7 @@ var mi = { exports: {} };
|
|
|
3271
3271
|
Yt(s, !1);
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3274
|
+
function ca(e, t, n, o) {
|
|
3275
3275
|
return typeof e != "function" ? e : function() {
|
|
3276
3276
|
var u = de;
|
|
3277
3277
|
n && yn(), Yt(t, !0);
|
|
@@ -3286,13 +3286,13 @@ var mi = { exports: {} };
|
|
|
3286
3286
|
Promise === Jt && ot.echoes === 0 ? lr === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
|
|
3287
3287
|
}
|
|
3288
3288
|
("" + kt).indexOf("[native code]") === -1 && (yn = Lt = le);
|
|
3289
|
-
var et = ee.reject, rn = "", qt = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",
|
|
3289
|
+
var et = ee.reject, rn = "", qt = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", fa = "String expected.", gn = [], fr = "__dbnames", no = "readonly", ro = "readwrite";
|
|
3290
3290
|
function on(e, t) {
|
|
3291
3291
|
return e ? t ? function() {
|
|
3292
3292
|
return e.apply(this, arguments) && t.apply(this, arguments);
|
|
3293
3293
|
} : e : t;
|
|
3294
3294
|
}
|
|
3295
|
-
var
|
|
3295
|
+
var da = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
|
|
3296
3296
|
function dr(e) {
|
|
3297
3297
|
return typeof e != "string" || /\./.test(e) ? function(t) {
|
|
3298
3298
|
return t;
|
|
@@ -3300,12 +3300,12 @@ var mi = { exports: {} };
|
|
|
3300
3300
|
return t[e] === void 0 && e in t && delete (t = Oe(t))[e], t;
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function ha() {
|
|
3304
3304
|
throw R.Type();
|
|
3305
3305
|
}
|
|
3306
3306
|
function Me(e, t) {
|
|
3307
3307
|
try {
|
|
3308
|
-
var n =
|
|
3308
|
+
var n = pa(e), o = pa(t);
|
|
3309
3309
|
if (n !== o) return n === "Array" ? 1 : o === "Array" ? -1 : n === "binary" ? 1 : o === "binary" ? -1 : n === "string" ? 1 : o === "string" ? -1 : n === "Date" ? 1 : o !== "Date" ? NaN : -1;
|
|
3310
3310
|
switch (n) {
|
|
3311
3311
|
case "number":
|
|
@@ -3316,7 +3316,7 @@ var mi = { exports: {} };
|
|
|
3316
3316
|
return function(u, s) {
|
|
3317
3317
|
for (var f = u.length, h = s.length, v = f < h ? f : h, g = 0; g < v; ++g) if (u[g] !== s[g]) return u[g] < s[g] ? -1 : 1;
|
|
3318
3318
|
return f === h ? 0 : f < h ? -1 : 1;
|
|
3319
|
-
}(
|
|
3319
|
+
}(ma(e), ma(t));
|
|
3320
3320
|
case "Array":
|
|
3321
3321
|
return function(u, s) {
|
|
3322
3322
|
for (var f = u.length, h = s.length, v = f < h ? f : h, g = 0; g < v; ++g) {
|
|
@@ -3330,14 +3330,14 @@ var mi = { exports: {} };
|
|
|
3330
3330
|
}
|
|
3331
3331
|
return NaN;
|
|
3332
3332
|
}
|
|
3333
|
-
function
|
|
3333
|
+
function pa(e) {
|
|
3334
3334
|
var t = typeof e;
|
|
3335
3335
|
return t != "object" ? t : ArrayBuffer.isView(e) ? "binary" : (e = z(e), e === "ArrayBuffer" ? "binary" : e);
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function ma(e) {
|
|
3338
3338
|
return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
|
|
3339
3339
|
}
|
|
3340
|
-
var
|
|
3340
|
+
var va = (Ye.prototype._trans = function(e, t, n) {
|
|
3341
3341
|
var o = this._tx || de.trans, u = this.name, s = Pt && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
|
|
3342
3342
|
function f(g, _, p) {
|
|
3343
3343
|
if (!p.schema[u]) throw new R.NotFound("Table " + u + " not part of transaction");
|
|
@@ -3454,7 +3454,7 @@ var mi = { exports: {} };
|
|
|
3454
3454
|
function u() {
|
|
3455
3455
|
return t !== null && t.apply(this, arguments) || this;
|
|
3456
3456
|
}
|
|
3457
|
-
(this.schema.mappedClass = e).prototype instanceof
|
|
3457
|
+
(this.schema.mappedClass = e).prototype instanceof ha && (function(v, g) {
|
|
3458
3458
|
if (typeof g != "function" && g !== null) throw new TypeError("Class extends value " + String(g) + " is not a constructor or null");
|
|
3459
3459
|
function _() {
|
|
3460
3460
|
this.constructor = v;
|
|
@@ -3520,7 +3520,7 @@ var mi = { exports: {} };
|
|
|
3520
3520
|
}, Ye.prototype.clear = function() {
|
|
3521
3521
|
var e = this;
|
|
3522
3522
|
return this._trans("readwrite", function(t) {
|
|
3523
|
-
return e.core.mutate({ trans: t, type: "deleteRange", range:
|
|
3523
|
+
return e.core.mutate({ trans: t, type: "deleteRange", range: da });
|
|
3524
3524
|
}).then(function(t) {
|
|
3525
3525
|
return t.numFailures ? ee.reject(t.failures[0]) : void 0;
|
|
3526
3526
|
});
|
|
@@ -3619,7 +3619,7 @@ var mi = { exports: {} };
|
|
|
3619
3619
|
function s(f, h, v) {
|
|
3620
3620
|
if (typeof f != "object") {
|
|
3621
3621
|
var g;
|
|
3622
|
-
h = h ||
|
|
3622
|
+
h = h || wi;
|
|
3623
3623
|
var _ = { subscribers: [], fire: v = v || le, subscribe: function(p) {
|
|
3624
3624
|
_.subscribers.indexOf(p) === -1 && (_.subscribers.push(p), _.fire = h(_.fire, p));
|
|
3625
3625
|
}, unsubscribe: function(p) {
|
|
@@ -3667,7 +3667,7 @@ var mi = { exports: {} };
|
|
|
3667
3667
|
if (!n) throw new R.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
|
|
3668
3668
|
return n;
|
|
3669
3669
|
}
|
|
3670
|
-
function
|
|
3670
|
+
function ya(e, t, n) {
|
|
3671
3671
|
var o = hr(e, t.schema);
|
|
3672
3672
|
return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: o, range: e.range } });
|
|
3673
3673
|
}
|
|
@@ -3682,11 +3682,11 @@ var mi = { exports: {} };
|
|
|
3682
3682
|
return v.fail(k);
|
|
3683
3683
|
}) || ((p = "" + (_ = v.primaryKey)) == "[object ArrayBuffer]" && (p = "" + new Uint8Array(_)), T(s, p) || (s[p] = !0, t(h, v, g)));
|
|
3684
3684
|
};
|
|
3685
|
-
return Promise.all([e.or._iterate(f, n),
|
|
3685
|
+
return Promise.all([e.or._iterate(f, n), ga(ya(e, o, n), e.algorithm, f, !e.keysOnly && e.valueMapper)]);
|
|
3686
3686
|
}
|
|
3687
|
-
return
|
|
3687
|
+
return ga(ya(e, o, n), on(e.algorithm, u), t, !e.keysOnly && e.valueMapper);
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3689
|
+
function ga(e, t, n, o) {
|
|
3690
3690
|
var u = We(o ? function(s, f, h) {
|
|
3691
3691
|
return n(o(s), f, h);
|
|
3692
3692
|
} : n);
|
|
@@ -3707,7 +3707,7 @@ var mi = { exports: {} };
|
|
|
3707
3707
|
});
|
|
3708
3708
|
});
|
|
3709
3709
|
}
|
|
3710
|
-
var In = (
|
|
3710
|
+
var In = (ba.prototype.execute = function(e) {
|
|
3711
3711
|
var t = this["@@propmod"];
|
|
3712
3712
|
if (t.add !== void 0) {
|
|
3713
3713
|
var n = t.add;
|
|
@@ -3734,11 +3734,11 @@ var mi = { exports: {} };
|
|
|
3734
3734
|
throw new TypeError("Invalid subtrahend ".concat(o));
|
|
3735
3735
|
}
|
|
3736
3736
|
return n = (n = t.replacePrefix) === null || n === void 0 ? void 0 : n[0], n && typeof e == "string" && e.startsWith(n) ? t.replacePrefix[1] + e.substring(n.length) : e;
|
|
3737
|
-
},
|
|
3738
|
-
function
|
|
3737
|
+
}, ba);
|
|
3738
|
+
function ba(e) {
|
|
3739
3739
|
this["@@propmod"] = e;
|
|
3740
3740
|
}
|
|
3741
|
-
var
|
|
3741
|
+
var Si = (je.prototype._read = function(e, t) {
|
|
3742
3742
|
var n = this._ctx;
|
|
3743
3743
|
return n.error ? n.table._trans(null, et.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
|
|
3744
3744
|
}, je.prototype._write = function(e) {
|
|
@@ -3972,25 +3972,25 @@ var mi = { exports: {} };
|
|
|
3972
3972
|
var io = function(e, t) {
|
|
3973
3973
|
return t.value = null;
|
|
3974
3974
|
};
|
|
3975
|
-
function
|
|
3975
|
+
function Ci(e, t) {
|
|
3976
3976
|
return e < t ? -1 : e === t ? 0 : 1;
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function Oi(e, t) {
|
|
3979
3979
|
return t < e ? -1 : e === t ? 0 : 1;
|
|
3980
3980
|
}
|
|
3981
3981
|
function bt(e, t, n) {
|
|
3982
|
-
return e = e instanceof
|
|
3982
|
+
return e = e instanceof _a ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
|
|
3983
3983
|
}
|
|
3984
3984
|
function wn(e) {
|
|
3985
3985
|
return new e.Collection(e, function() {
|
|
3986
|
-
return
|
|
3986
|
+
return wa("");
|
|
3987
3987
|
}).limit(0);
|
|
3988
3988
|
}
|
|
3989
3989
|
function mr(e, t, n, o) {
|
|
3990
3990
|
var u, s, f, h, v, g, _, p = n.length;
|
|
3991
3991
|
if (!n.every(function(w) {
|
|
3992
3992
|
return typeof w == "string";
|
|
3993
|
-
})) return bt(e,
|
|
3993
|
+
})) return bt(e, fa);
|
|
3994
3994
|
function k(w) {
|
|
3995
3995
|
u = w === "next" ? function(b) {
|
|
3996
3996
|
return b.toUpperCase();
|
|
@@ -4000,7 +4000,7 @@ var mi = { exports: {} };
|
|
|
4000
4000
|
return b.toLowerCase();
|
|
4001
4001
|
} : function(b) {
|
|
4002
4002
|
return b.toUpperCase();
|
|
4003
|
-
}, f = w === "next" ?
|
|
4003
|
+
}, f = w === "next" ? Ci : Oi;
|
|
4004
4004
|
var x = n.map(function(b) {
|
|
4005
4005
|
return { lower: s(b), upper: u(b) };
|
|
4006
4006
|
}).sort(function(b, O) {
|
|
@@ -4042,10 +4042,10 @@ var mi = { exports: {} };
|
|
|
4042
4042
|
function zt(e, t, n, o) {
|
|
4043
4043
|
return { type: 2, lower: e, upper: t, lowerOpen: n, upperOpen: o };
|
|
4044
4044
|
}
|
|
4045
|
-
function
|
|
4045
|
+
function wa(e) {
|
|
4046
4046
|
return { type: 1, lower: e, upper: e };
|
|
4047
4047
|
}
|
|
4048
|
-
var
|
|
4048
|
+
var _a = (Object.defineProperty(at.prototype, "Collection", { get: function() {
|
|
4049
4049
|
return this._ctx.table.db.Collection;
|
|
4050
4050
|
}, enumerable: !1, configurable: !0 }), at.prototype.between = function(e, t, n, o) {
|
|
4051
4051
|
n = n !== !1, o = o === !0;
|
|
@@ -4058,7 +4058,7 @@ var mi = { exports: {} };
|
|
|
4058
4058
|
}
|
|
4059
4059
|
}, at.prototype.equals = function(e) {
|
|
4060
4060
|
return e == null ? bt(this, qt) : new this.Collection(this, function() {
|
|
4061
|
-
return
|
|
4061
|
+
return wa(e);
|
|
4062
4062
|
});
|
|
4063
4063
|
}, at.prototype.above = function(e) {
|
|
4064
4064
|
return e == null ? bt(this, qt) : new this.Collection(this, function() {
|
|
@@ -4077,7 +4077,7 @@ var mi = { exports: {} };
|
|
|
4077
4077
|
return zt(void 0, e);
|
|
4078
4078
|
});
|
|
4079
4079
|
}, at.prototype.startsWith = function(e) {
|
|
4080
|
-
return typeof e != "string" ? bt(this,
|
|
4080
|
+
return typeof e != "string" ? bt(this, fa) : this.between(e, e + rn, !0, !0);
|
|
4081
4081
|
}, at.prototype.startsWithIgnoreCase = function(e) {
|
|
4082
4082
|
return e === "" ? this.startsWith(e) : mr(this, function(t, n) {
|
|
4083
4083
|
return t.indexOf(n[0]) === 0;
|
|
@@ -4194,7 +4194,7 @@ var mi = { exports: {} };
|
|
|
4194
4194
|
function Mn(e) {
|
|
4195
4195
|
e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
|
|
4196
4196
|
}
|
|
4197
|
-
var Bn = "storagemutated", uo = "x-storagemutated-1", Wt = Pn(null, Bn),
|
|
4197
|
+
var Bn = "storagemutated", uo = "x-storagemutated-1", Wt = Pn(null, Bn), $i = (It.prototype._lock = function() {
|
|
4198
4198
|
return te(!de.global), ++this._reculock, this._reculock !== 1 || de.global || (de.lockOwnerFor = this), this;
|
|
4199
4199
|
}, It.prototype._unlock = function() {
|
|
4200
4200
|
if (te(!de.global), --this._reculock == 0) for (de.global || (de.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
|
|
@@ -4283,9 +4283,9 @@ var mi = { exports: {} };
|
|
|
4283
4283
|
function It() {
|
|
4284
4284
|
}
|
|
4285
4285
|
function lo(e, t, n, o, u, s, f) {
|
|
4286
|
-
return { name: e, keyPath: t, unique: n, multi: o, auto: u, compound: s, src: (n && !f ? "&" : "") + (o ? "*" : "") + (u ? "++" : "") +
|
|
4286
|
+
return { name: e, keyPath: t, unique: n, multi: o, auto: u, compound: s, src: (n && !f ? "&" : "") + (o ? "*" : "") + (u ? "++" : "") + Ea(t) };
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function Ea(e) {
|
|
4289
4289
|
return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
|
|
4290
4290
|
}
|
|
4291
4291
|
function so(e, t, n) {
|
|
@@ -4318,14 +4318,14 @@ var mi = { exports: {} };
|
|
|
4318
4318
|
};
|
|
4319
4319
|
var t;
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function xa(e) {
|
|
4322
4322
|
return [].slice.call(e);
|
|
4323
4323
|
}
|
|
4324
|
-
var
|
|
4324
|
+
var Ti = 0;
|
|
4325
4325
|
function jn(e) {
|
|
4326
4326
|
return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4328
|
+
function Ai(e, t, v) {
|
|
4329
4329
|
function o(b) {
|
|
4330
4330
|
if (b.type === 3) return null;
|
|
4331
4331
|
if (b.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
|
|
@@ -4403,7 +4403,7 @@ var mi = { exports: {} };
|
|
|
4403
4403
|
var J = $.index, U = $.range, Y = b.objectStore(w), Y = J.isPrimaryKey ? Y : Y.index(J.name), J = A ? I ? "prevunique" : "prev" : I ? "nextunique" : "next", X = !O && "openKeyCursor" in Y ? Y.openKeyCursor(o(U), J) : Y.openCursor(o(U), J);
|
|
4404
4404
|
X.onerror = Ft(Q), X.onsuccess = We(function(ne) {
|
|
4405
4405
|
var Se, Te, Ae, wt, xe = X.result;
|
|
4406
|
-
xe ? (xe.___id = ++
|
|
4406
|
+
xe ? (xe.___id = ++Ti, xe.done = !1, Se = xe.continue.bind(xe), Te = (Te = xe.continuePrimaryKey) && Te.bind(xe), Ae = xe.advance.bind(xe), wt = function() {
|
|
4407
4407
|
throw new Error("Cursor not stopped");
|
|
4408
4408
|
}, xe.trans = b, xe.stop = xe.continue = xe.continuePrimaryKey = xe.advance = function() {
|
|
4409
4409
|
throw new Error("Cursor not started");
|
|
@@ -4446,10 +4446,10 @@ var mi = { exports: {} };
|
|
|
4446
4446
|
});
|
|
4447
4447
|
} };
|
|
4448
4448
|
}
|
|
4449
|
-
var s, f, h, _ = (f = v, h =
|
|
4449
|
+
var s, f, h, _ = (f = v, h = xa((s = e).objectStoreNames), { schema: { name: s.name, tables: h.map(function(k) {
|
|
4450
4450
|
return f.objectStore(k);
|
|
4451
4451
|
}).map(function(k) {
|
|
4452
|
-
var y = k.keyPath, b = k.autoIncrement, w = E(y), x = {}, b = { name: k.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: w, keyPath: y, autoIncrement: b, unique: !0, extractKey: co(y) }, indexes:
|
|
4452
|
+
var y = k.keyPath, b = k.autoIncrement, w = E(y), x = {}, b = { name: k.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: w, keyPath: y, autoIncrement: b, unique: !0, extractKey: co(y) }, indexes: xa(k.indexNames).map(function(O) {
|
|
4453
4453
|
return k.index(O);
|
|
4454
4454
|
}).map(function(I) {
|
|
4455
4455
|
var $ = I.name, A = I.unique, N = I.multiEntry, I = I.keyPath, N = { name: $, compound: E(I), keyPath: I, unique: A, multiEntry: N, extractKey: co(I) };
|
|
@@ -4466,14 +4466,14 @@ var mi = { exports: {} };
|
|
|
4466
4466
|
return p[k];
|
|
4467
4467
|
}, MIN_KEY: -1 / 0, MAX_KEY: qn(t), schema: v };
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4469
|
+
function Pi(e, t, n, o) {
|
|
4470
4470
|
var u = n.IDBKeyRange;
|
|
4471
|
-
return n.indexedDB, { dbcore: (o =
|
|
4471
|
+
return n.indexedDB, { dbcore: (o = Ai(t, u, o), e.dbcore.reduce(function(s, f) {
|
|
4472
4472
|
return f = f.create, r(r({}, s), f(s));
|
|
4473
4473
|
}, o)) };
|
|
4474
4474
|
}
|
|
4475
4475
|
function vr(e, o) {
|
|
4476
|
-
var n = o.db, o =
|
|
4476
|
+
var n = o.db, o = Pi(e._middlewares, n, e._deps, o);
|
|
4477
4477
|
e.core = o.dbcore, e.tables.forEach(function(u) {
|
|
4478
4478
|
var s = u.name;
|
|
4479
4479
|
e.core.schema.tables.some(function(f) {
|
|
@@ -4501,12 +4501,12 @@ var mi = { exports: {} };
|
|
|
4501
4501
|
for (var o in n) n[o] instanceof e.Table && delete n[o];
|
|
4502
4502
|
});
|
|
4503
4503
|
}
|
|
4504
|
-
function
|
|
4504
|
+
function Fi(e, t) {
|
|
4505
4505
|
return e._cfg.version - t._cfg.version;
|
|
4506
4506
|
}
|
|
4507
|
-
function
|
|
4507
|
+
function Ii(e, t, n, o) {
|
|
4508
4508
|
var u = e._dbSchema;
|
|
4509
|
-
n.objectStoreNames.contains("$meta") && !u.$meta && (u.$meta = so("$meta",
|
|
4509
|
+
n.objectStoreNames.contains("$meta") && !u.$meta && (u.$meta = so("$meta", ka("")[0], []), e._storeNames.push("$meta"));
|
|
4510
4510
|
var s = e._createTransaction("readwrite", e._storeNames, u);
|
|
4511
4511
|
s.create(n), s._completion.catch(o);
|
|
4512
4512
|
var f = s._reject.bind(s), h = de.transless || de;
|
|
@@ -4562,7 +4562,7 @@ var mi = { exports: {} };
|
|
|
4562
4562
|
}), function O() {
|
|
4563
4563
|
return x.length ? ee.resolve(x.shift()(y.idbtrans)).then(O) : ee.resolve();
|
|
4564
4564
|
}().then(function() {
|
|
4565
|
-
|
|
4565
|
+
Da(b, w);
|
|
4566
4566
|
})) : ee.resolve();
|
|
4567
4567
|
var p, k, y, w, x, b;
|
|
4568
4568
|
}).catch(f)) : (m(u).forEach(function(_) {
|
|
@@ -4573,8 +4573,8 @@ var mi = { exports: {} };
|
|
|
4573
4573
|
var v, g;
|
|
4574
4574
|
});
|
|
4575
4575
|
}
|
|
4576
|
-
function
|
|
4577
|
-
|
|
4576
|
+
function Mi(e, t) {
|
|
4577
|
+
Da(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
|
|
4578
4578
|
var n = br(0, e.idbdb, t);
|
|
4579
4579
|
wr(e, e._dbSchema, t);
|
|
4580
4580
|
for (var o = 0, u = ho(n, e._dbSchema).change; o < u.length; o++) {
|
|
@@ -4615,7 +4615,7 @@ var mi = { exports: {} };
|
|
|
4615
4615
|
return gr(u, s);
|
|
4616
4616
|
}), u;
|
|
4617
4617
|
}
|
|
4618
|
-
function
|
|
4618
|
+
function Da(e, t) {
|
|
4619
4619
|
m(e).forEach(function(n) {
|
|
4620
4620
|
t.db.objectStoreNames.contains(n) || (Pt && console.debug("Dexie: Creating missing table", n), po(t, n, e[n].primKey, e[n].indexes));
|
|
4621
4621
|
});
|
|
@@ -4626,7 +4626,7 @@ var mi = { exports: {} };
|
|
|
4626
4626
|
function br(e, t, n) {
|
|
4627
4627
|
var o = {};
|
|
4628
4628
|
return re(t.objectStoreNames, 0).forEach(function(u) {
|
|
4629
|
-
for (var s = n.objectStore(u), f = lo(
|
|
4629
|
+
for (var s = n.objectStore(u), f = lo(Ea(g = s.keyPath), g || "", !0, !1, !!s.autoIncrement, g && typeof g != "string", !0), h = [], v = 0; v < s.indexNames.length; ++v) {
|
|
4630
4630
|
var _ = s.index(s.indexNames[v]), g = _.keyPath, _ = lo(_.name, g, !!_.unique, !!_.multiEntry, !1, g && typeof g != "string", !1);
|
|
4631
4631
|
h.push(_);
|
|
4632
4632
|
}
|
|
@@ -4644,16 +4644,16 @@ var mi = { exports: {} };
|
|
|
4644
4644
|
}
|
|
4645
4645
|
typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && d.WorkerGlobalScope && d instanceof d.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
|
|
4646
4646
|
}
|
|
4647
|
-
function
|
|
4647
|
+
function ka(e) {
|
|
4648
4648
|
return e.split(",").map(function(t, n) {
|
|
4649
4649
|
var o = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), u = /^\[/.test(o) ? o.match(/^\[(.*)\]$/)[1].split("+") : o;
|
|
4650
4650
|
return lo(o, u || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), E(u), n === 0);
|
|
4651
4651
|
});
|
|
4652
4652
|
}
|
|
4653
|
-
var
|
|
4653
|
+
var Bi = (_r.prototype._parseStoresSpec = function(e, t) {
|
|
4654
4654
|
m(e).forEach(function(n) {
|
|
4655
4655
|
if (e[n] !== null) {
|
|
4656
|
-
var o =
|
|
4656
|
+
var o = ka(e[n]), u = o.shift();
|
|
4657
4657
|
if (u.unique = !0, u.multi) throw new R.Schema("Primary key cannot be multi-valued");
|
|
4658
4658
|
o.forEach(function(s) {
|
|
4659
4659
|
if (s.auto) throw new R.Schema("Only primary key can be marked as autoIncrement (++)");
|
|
@@ -4701,8 +4701,8 @@ var mi = { exports: {} };
|
|
|
4701
4701
|
if (0 < o) throw RangeError();
|
|
4702
4702
|
if (go(e)) return S(e, { from: t, to: n, d: 1 });
|
|
4703
4703
|
var u = e.l, o = e.r;
|
|
4704
|
-
if (Me(n, e.from) < 0) return u ? Vn(u, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null },
|
|
4705
|
-
if (0 < Me(t, e.to)) return o ? Vn(o, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null },
|
|
4704
|
+
if (Me(n, e.from) < 0) return u ? Vn(u, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, Ca(e);
|
|
4705
|
+
if (0 < Me(t, e.to)) return o ? Vn(o, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, Ca(e);
|
|
4706
4706
|
Me(t, e.from) < 0 && (e.from = t, e.l = null, e.d = o ? o.d + 1 : 1), 0 < Me(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, u && !e.l && Kn(e, u), o && n && Kn(e, o);
|
|
4707
4707
|
}
|
|
4708
4708
|
}
|
|
@@ -4712,7 +4712,7 @@ var mi = { exports: {} };
|
|
|
4712
4712
|
Vn(o, s, f), h && n(o, h), v && n(o, v);
|
|
4713
4713
|
}(e, t);
|
|
4714
4714
|
}
|
|
4715
|
-
function
|
|
4715
|
+
function Sa(e, t) {
|
|
4716
4716
|
var n = Er(t), o = n.next();
|
|
4717
4717
|
if (o.done) return !1;
|
|
4718
4718
|
for (var u = o.value, s = Er(e), f = s.next(u.from), h = f.value; !o.done && !f.done; ) {
|
|
@@ -4741,11 +4741,11 @@ var mi = { exports: {} };
|
|
|
4741
4741
|
return { done: !0 };
|
|
4742
4742
|
} };
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4744
|
+
function Ca(e) {
|
|
4745
4745
|
var t, n, o = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), u = 1 < o ? "r" : o < -1 ? "l" : "";
|
|
4746
|
-
u && (t = u == "r" ? "l" : "r", n = r({}, e), o = e[u], e.from = o.from, e.to = o.to, e[u] = o[u], n[u] = o[t], (e[t] = n).d =
|
|
4746
|
+
u && (t = u == "r" ? "l" : "r", n = r({}, e), o = e[u], e.from = o.from, e.to = o.to, e[u] = o[u], n[u] = o[t], (e[t] = n).d = Oa(n)), e.d = Oa(e);
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function Oa(n) {
|
|
4749
4749
|
var t = n.r, n = n.l;
|
|
4750
4750
|
return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
|
|
4751
4751
|
}
|
|
@@ -4760,7 +4760,7 @@ var mi = { exports: {} };
|
|
|
4760
4760
|
}
|
|
4761
4761
|
function bo(e, t) {
|
|
4762
4762
|
return e.all || t.all || Object.keys(e).some(function(n) {
|
|
4763
|
-
return t[n] &&
|
|
4763
|
+
return t[n] && Sa(t[n], e[n]);
|
|
4764
4764
|
});
|
|
4765
4765
|
}
|
|
4766
4766
|
Z(ft.prototype, ((kt = { add: function(e) {
|
|
@@ -4787,16 +4787,16 @@ var mi = { exports: {} };
|
|
|
4787
4787
|
function Eo(e, t) {
|
|
4788
4788
|
t === void 0 && (t = !1);
|
|
4789
4789
|
var n = /* @__PURE__ */ new Set();
|
|
4790
|
-
if (e.all) for (var o = 0, u = Object.values(an); o < u.length; o++)
|
|
4790
|
+
if (e.all) for (var o = 0, u = Object.values(an); o < u.length; o++) $a(f = u[o], e, n, t);
|
|
4791
4791
|
else for (var s in e) {
|
|
4792
4792
|
var f, h = /^idb\:\/\/(.*)\/(.*)\//.exec(s);
|
|
4793
|
-
h && (s = h[1], h = h[2], (f = an["idb://".concat(s, "/").concat(h)]) &&
|
|
4793
|
+
h && (s = h[1], h = h[2], (f = an["idb://".concat(s, "/").concat(h)]) && $a(f, e, n, t));
|
|
4794
4794
|
}
|
|
4795
4795
|
n.forEach(function(v) {
|
|
4796
4796
|
return v();
|
|
4797
4797
|
});
|
|
4798
4798
|
}
|
|
4799
|
-
function
|
|
4799
|
+
function $a(e, t, n, o) {
|
|
4800
4800
|
for (var u = [], s = 0, f = Object.entries(e.queries.query); s < f.length; s++) {
|
|
4801
4801
|
for (var h = f[s], v = h[0], g = [], _ = 0, p = h[1]; _ < p.length; _++) {
|
|
4802
4802
|
var k = p[_];
|
|
@@ -4811,7 +4811,7 @@ var mi = { exports: {} };
|
|
|
4811
4811
|
e.queries.query[v] = g;
|
|
4812
4812
|
}
|
|
4813
4813
|
}
|
|
4814
|
-
function
|
|
4814
|
+
function qi(e) {
|
|
4815
4815
|
var t = e._state, n = e._deps.indexedDB;
|
|
4816
4816
|
if (t.isBeingOpened || e.idbdb) return t.dbReadyPromise.then(function() {
|
|
4817
4817
|
return t.dbOpenError ? et(t.dbOpenError) : e;
|
|
@@ -4830,7 +4830,7 @@ var mi = { exports: {} };
|
|
|
4830
4830
|
var O;
|
|
4831
4831
|
_ = x.transaction, t.autoSchema && !e._options.allowEmptyDB ? (x.onerror = Mn, _.abort(), x.result.close(), (O = n.deleteDatabase(w)).onsuccess = O.onerror = We(function() {
|
|
4832
4832
|
y(new R.NoSuchDatabase("Database ".concat(w, " doesnt exist")));
|
|
4833
|
-
})) : (_.onerror = Ft(y), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, p = b < 1, e.idbdb = x.result, s &&
|
|
4833
|
+
})) : (_.onerror = Ft(y), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, p = b < 1, e.idbdb = x.result, s && Mi(e, _), Ii(e, b / 10, _, y));
|
|
4834
4834
|
}, y), x.onsuccess = We(function() {
|
|
4835
4835
|
_ = null;
|
|
4836
4836
|
var b, O, $, A, I, N = e.idbdb = x.result, Q = re(N.objectStoreNames);
|
|
@@ -4918,7 +4918,7 @@ var mi = { exports: {} };
|
|
|
4918
4918
|
for (var o = E(e) ? e.slice() : [e], u = 0; u < n; ++u) o.push(t);
|
|
4919
4919
|
return o;
|
|
4920
4920
|
}
|
|
4921
|
-
var
|
|
4921
|
+
var ji = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
|
|
4922
4922
|
return r(r({}, e), { table: function(t) {
|
|
4923
4923
|
var n = e.table(t), o = n.schema, u = {}, s = [];
|
|
4924
4924
|
function f(p, k, y) {
|
|
@@ -4975,7 +4975,7 @@ var mi = { exports: {} };
|
|
|
4975
4975
|
function ko(e, t) {
|
|
4976
4976
|
return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
|
|
4977
4977
|
}
|
|
4978
|
-
var
|
|
4978
|
+
var Vi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
|
|
4979
4979
|
return r(r({}, e), { table: function(t) {
|
|
4980
4980
|
var n = e.table(t), o = n.schema.primaryKey;
|
|
4981
4981
|
return r(r({}, n), { mutate: function(u) {
|
|
@@ -5036,7 +5036,7 @@ var mi = { exports: {} };
|
|
|
5036
5036
|
} });
|
|
5037
5037
|
} });
|
|
5038
5038
|
} };
|
|
5039
|
-
function
|
|
5039
|
+
function Ta(e, t, n) {
|
|
5040
5040
|
try {
|
|
5041
5041
|
if (!t || t.keys.length < e.length) return null;
|
|
5042
5042
|
for (var o = [], u = 0, s = 0; u < t.keys.length && s < e.length; ++u) Me(t.keys[u], e[s]) === 0 && (o.push(n ? Oe(t.values[u]) : t.values[u]), ++s);
|
|
@@ -5045,12 +5045,12 @@ var mi = { exports: {} };
|
|
|
5045
5045
|
return null;
|
|
5046
5046
|
}
|
|
5047
5047
|
}
|
|
5048
|
-
var
|
|
5048
|
+
var Ki = { stack: "dbcore", level: -1, create: function(e) {
|
|
5049
5049
|
return { table: function(t) {
|
|
5050
5050
|
var n = e.table(t);
|
|
5051
5051
|
return r(r({}, n), { getMany: function(o) {
|
|
5052
5052
|
if (!o.cache) return n.getMany(o);
|
|
5053
|
-
var u =
|
|
5053
|
+
var u = Ta(o.keys, o.trans._cache, o.cache === "clone");
|
|
5054
5054
|
return u ? ee.resolve(u) : n.getMany(o).then(function(s) {
|
|
5055
5055
|
return o.trans._cache = { keys: o.keys, values: o.cache === "clone" ? Oe(s) : s }, s;
|
|
5056
5056
|
});
|
|
@@ -5059,10 +5059,10 @@ var mi = { exports: {} };
|
|
|
5059
5059
|
} });
|
|
5060
5060
|
} };
|
|
5061
5061
|
} };
|
|
5062
|
-
function
|
|
5062
|
+
function Aa(e, t) {
|
|
5063
5063
|
return e.trans.mode === "readonly" && !!e.subscr && !e.trans.explicit && e.trans.db._options.cache !== "disabled" && !t.schema.primaryKey.outbound;
|
|
5064
5064
|
}
|
|
5065
|
-
function
|
|
5065
|
+
function Pa(e, t) {
|
|
5066
5066
|
switch (e) {
|
|
5067
5067
|
case "query":
|
|
5068
5068
|
return t.values && !t.unique;
|
|
@@ -5073,7 +5073,7 @@ var mi = { exports: {} };
|
|
|
5073
5073
|
return !1;
|
|
5074
5074
|
}
|
|
5075
5075
|
}
|
|
5076
|
-
var
|
|
5076
|
+
var Ri = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
|
|
5077
5077
|
var t = e.schema.name, n = new ft(e.MIN_KEY, e.MAX_KEY);
|
|
5078
5078
|
return r(r({}, e), { transaction: function(o, u, s) {
|
|
5079
5079
|
if (de.subscr && u !== "readonly") throw new R.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(de.querier));
|
|
@@ -5088,7 +5088,7 @@ var mi = { exports: {} };
|
|
|
5088
5088
|
var x, b, O, $ = y.trans, A = y.mutatedParts || (y.mutatedParts = {}), I = w(""), N = w(":dels"), Q = y.type, J = y.type === "deleteRange" ? [y.range] : y.type === "delete" ? [y.keys] : y.values.length < 50 ? [ko(f, y).filter(function(X) {
|
|
5089
5089
|
return X;
|
|
5090
5090
|
}), y.values] : [], U = J[0], Y = J[1], J = y.trans._cache;
|
|
5091
|
-
return E(U) ? (I.addKeys(U), (J = Q === "delete" || U.length === Y.length ?
|
|
5091
|
+
return E(U) ? (I.addKeys(U), (J = Q === "delete" || U.length === Y.length ? Ta(U, J) : null) || N.addKeys(U), (J || Y) && (x = w, b = J, O = Y, s.indexes.forEach(function(X) {
|
|
5092
5092
|
var ne = x(X.name || "");
|
|
5093
5093
|
function Se(Ae) {
|
|
5094
5094
|
return Ae != null ? X.extractKey(Ae) : null;
|
|
@@ -5124,7 +5124,7 @@ var mi = { exports: {} };
|
|
|
5124
5124
|
}, count: p, query: p, openCursor: p };
|
|
5125
5125
|
return m(k).forEach(function(y) {
|
|
5126
5126
|
_[y] = function(w) {
|
|
5127
|
-
var x = de.subscr, b = !!x, O =
|
|
5127
|
+
var x = de.subscr, b = !!x, O = Aa(de, u) && Pa(y, w) ? w.obsSet = {} : x;
|
|
5128
5128
|
if (b) {
|
|
5129
5129
|
var $ = function(Y) {
|
|
5130
5130
|
return Y = "idb://".concat(t, "/").concat(o, "/").concat(Y), O[Y] || (O[Y] = new ft());
|
|
@@ -5161,7 +5161,7 @@ var mi = { exports: {} };
|
|
|
5161
5161
|
}), _;
|
|
5162
5162
|
} });
|
|
5163
5163
|
} };
|
|
5164
|
-
function
|
|
5164
|
+
function Fa(e, t, n) {
|
|
5165
5165
|
if (n.numFailures === 0) return t;
|
|
5166
5166
|
if (t.type === "deleteRange") return null;
|
|
5167
5167
|
var o = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
|
|
@@ -5175,7 +5175,7 @@ var mi = { exports: {} };
|
|
|
5175
5175
|
return n = e, ((o = t).lower === void 0 || (o.lowerOpen ? 0 < Me(n, o.lower) : 0 <= Me(n, o.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? Me(e, t.upper) < 0 : Me(e, t.upper) <= 0));
|
|
5176
5176
|
var n, o;
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function Ia(e, t, k, o, u, s) {
|
|
5179
5179
|
if (!k || k.length === 0) return e;
|
|
5180
5180
|
var f = t.query.index, h = f.multiEntry, v = t.query.range, g = o.schema.primaryKey.extractKey, _ = f.extractKey, p = (f.lowLevelIndex || f).extractKey, k = k.reduce(function(y, w) {
|
|
5181
5181
|
var x = y, b = [];
|
|
@@ -5225,10 +5225,10 @@ var mi = { exports: {} };
|
|
|
5225
5225
|
return Me(p(y), p(w)) || Me(g(y), g(w));
|
|
5226
5226
|
}), t.limit && t.limit < 1 / 0 && (k.length > t.limit ? k.length = t.limit : e.length === t.limit && k.length < t.limit && (u.dirty = !0)), s ? Object.freeze(k) : k);
|
|
5227
5227
|
}
|
|
5228
|
-
function
|
|
5228
|
+
function Ma(e, t) {
|
|
5229
5229
|
return Me(e.lower, t.lower) === 0 && Me(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
|
|
5230
5230
|
}
|
|
5231
|
-
function
|
|
5231
|
+
function Ni(e, t) {
|
|
5232
5232
|
return function(n, o, u, s) {
|
|
5233
5233
|
if (n === void 0) return o !== void 0 ? -1 : 0;
|
|
5234
5234
|
if (o === void 0) return 1;
|
|
@@ -5249,7 +5249,7 @@ var mi = { exports: {} };
|
|
|
5249
5249
|
return o;
|
|
5250
5250
|
}(e.upper, t.upper, e.upperOpen, t.upperOpen);
|
|
5251
5251
|
}
|
|
5252
|
-
function
|
|
5252
|
+
function Ui(e, t, n, o) {
|
|
5253
5253
|
e.subscribers.add(n), o.addEventListener("abort", function() {
|
|
5254
5254
|
var u, s;
|
|
5255
5255
|
e.subscribers.delete(n), e.subscribers.size === 0 && (u = e, s = t, setTimeout(function() {
|
|
@@ -5257,7 +5257,7 @@ var mi = { exports: {} };
|
|
|
5257
5257
|
}, 3e3));
|
|
5258
5258
|
});
|
|
5259
5259
|
}
|
|
5260
|
-
var
|
|
5260
|
+
var Li = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
|
|
5261
5261
|
var t = e.schema.name;
|
|
5262
5262
|
return r(r({}, e), { transaction: function(n, o, u) {
|
|
5263
5263
|
var s, f, h = e.transaction(n, o, u);
|
|
@@ -5277,7 +5277,7 @@ var mi = { exports: {} };
|
|
|
5277
5277
|
y.optimisticOps = y.optimisticOps.filter(function(ne) {
|
|
5278
5278
|
return ne.trans !== h;
|
|
5279
5279
|
});
|
|
5280
|
-
for (var I = 0, N = Object.values(y.queries.query); I < N.length; I++) for (var Q, U, Y, J = 0, X = (Q = N[I]).slice(); J < X.length; J++) (U = X[J]).res != null && h.mutatedParts && (v && !U.dirty ? (Y = Object.isFrozen(U.res), Y =
|
|
5280
|
+
for (var I = 0, N = Object.values(y.queries.query); I < N.length; I++) for (var Q, U, Y, J = 0, X = (Q = N[I]).slice(); J < X.length; J++) (U = X[J]).res != null && h.mutatedParts && (v && !U.dirty ? (Y = Object.isFrozen(U.res), Y = Ia(U.res, U.req, x, w, U, Y), U.dirty ? (W(Q, U), U.subscribers.forEach(function(ne) {
|
|
5281
5281
|
return g.add(ne);
|
|
5282
5282
|
})) : Y !== U.res && (U.res = Y, U.promise = ee.resolve({ result: Y }))) : (U.dirty && W(Q, U), U.subscribers.forEach(function(ne) {
|
|
5283
5283
|
return g.add(ne);
|
|
@@ -5300,11 +5300,11 @@ var mi = { exports: {} };
|
|
|
5300
5300
|
return h ? (f = o.mutate(s), s.type !== "add" && s.type !== "put" || !(50 <= s.values.length || ko(u, s).some(function(v) {
|
|
5301
5301
|
return v == null;
|
|
5302
5302
|
})) ? (h.optimisticOps.push(s), s.mutatedParts && Dr(s.mutatedParts), f.then(function(v) {
|
|
5303
|
-
0 < v.numFailures && (W(h.optimisticOps, s), (v =
|
|
5303
|
+
0 < v.numFailures && (W(h.optimisticOps, s), (v = Fa(0, s, v)) && h.optimisticOps.push(v), s.mutatedParts && Dr(s.mutatedParts));
|
|
5304
5304
|
}), f.catch(function() {
|
|
5305
5305
|
W(h.optimisticOps, s), s.mutatedParts && Dr(s.mutatedParts);
|
|
5306
5306
|
})) : f.then(function(v) {
|
|
5307
|
-
var g =
|
|
5307
|
+
var g = Fa(0, r(r({}, s), { values: s.values.map(function(_, p) {
|
|
5308
5308
|
var k;
|
|
5309
5309
|
return v.failures[p] ? _ : (_ = (k = u.keyPath) !== null && k !== void 0 && k.includes(".") ? Oe(_) : r({}, _), ce(_, u.keyPath, v.results[p]), _);
|
|
5310
5310
|
}) }), v);
|
|
@@ -5313,7 +5313,7 @@ var mi = { exports: {} };
|
|
|
5313
5313
|
});
|
|
5314
5314
|
}), f) : o.mutate(s);
|
|
5315
5315
|
}, query: function(s) {
|
|
5316
|
-
if (!
|
|
5316
|
+
if (!Aa(de, o) || !Pa("query", s)) return o.query(s);
|
|
5317
5317
|
var f = ((g = de.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", p = de, h = p.requery, v = p.signal, g = function(w, x, b, O) {
|
|
5318
5318
|
var $ = an["idb://".concat(w, "/").concat(x)];
|
|
5319
5319
|
if (!$) return [];
|
|
@@ -5323,14 +5323,14 @@ var mi = { exports: {} };
|
|
|
5323
5323
|
switch (b) {
|
|
5324
5324
|
case "query":
|
|
5325
5325
|
var I = A.find(function(N) {
|
|
5326
|
-
return N.req.limit === O.limit && N.req.values === O.values &&
|
|
5326
|
+
return N.req.limit === O.limit && N.req.values === O.values && Ma(N.req.query.range, O.query.range);
|
|
5327
5327
|
});
|
|
5328
5328
|
return I ? [I, !0, $, A] : [A.find(function(N) {
|
|
5329
|
-
return ("limit" in N.req ? N.req.limit : 1 / 0) >= O.limit && (!O.values || N.req.values) &&
|
|
5329
|
+
return ("limit" in N.req ? N.req.limit : 1 / 0) >= O.limit && (!O.values || N.req.values) && Ni(N.req.query.range, O.query.range);
|
|
5330
5330
|
}), !1, $, A];
|
|
5331
5331
|
case "count":
|
|
5332
5332
|
return I = A.find(function(N) {
|
|
5333
|
-
return
|
|
5333
|
+
return Ma(N.req.query.range, O.query.range);
|
|
5334
5334
|
}), [I, !!I, $, A];
|
|
5335
5335
|
}
|
|
5336
5336
|
}(t, n, "query", s), _ = g[0], p = g[1], k = g[2], y = g[3];
|
|
@@ -5343,8 +5343,8 @@ var mi = { exports: {} };
|
|
|
5343
5343
|
return w;
|
|
5344
5344
|
}).catch(function(w) {
|
|
5345
5345
|
return y && _ && W(y, _), Promise.reject(w);
|
|
5346
|
-
}), _ = { obsSet: s.obsSet, promise: p, subscribers: /* @__PURE__ */ new Set(), type: "query", req: s, dirty: !1 }, y ? y.push(_) : (y = [_], (k = k || (an["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[s.query.index.name || ""] = y)),
|
|
5347
|
-
return { result:
|
|
5346
|
+
}), _ = { obsSet: s.obsSet, promise: p, subscribers: /* @__PURE__ */ new Set(), type: "query", req: s, dirty: !1 }, y ? y.push(_) : (y = [_], (k = k || (an["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[s.query.index.name || ""] = y)), Ui(_, y, h, v), _.promise.then(function(w) {
|
|
5347
|
+
return { result: Ia(w.result, s, k == null ? void 0 : k.optimisticOps, o, _, f) };
|
|
5348
5348
|
});
|
|
5349
5349
|
} });
|
|
5350
5350
|
} });
|
|
@@ -5361,7 +5361,7 @@ var mi = { exports: {} };
|
|
|
5361
5361
|
var t = this._versions, n = t.filter(function(o) {
|
|
5362
5362
|
return o._cfg.version === e;
|
|
5363
5363
|
})[0];
|
|
5364
|
-
return n || (n = new this.Version(e), t.push(n), t.sort(
|
|
5364
|
+
return n || (n = new this.Version(e), t.push(n), t.sort(Fi), n.stores({}), this._state.autoSchema = !1, n);
|
|
5365
5365
|
}, tt.prototype._whenReady = function(e) {
|
|
5366
5366
|
var t = this;
|
|
5367
5367
|
return this.idbdb && (this._state.openComplete || de.letThrough || this._vip) ? e() : new ee(function(n, o) {
|
|
@@ -5385,7 +5385,7 @@ var mi = { exports: {} };
|
|
|
5385
5385
|
}, tt.prototype.open = function() {
|
|
5386
5386
|
var e = this;
|
|
5387
5387
|
return nn(Nt, function() {
|
|
5388
|
-
return
|
|
5388
|
+
return qi(e);
|
|
5389
5389
|
});
|
|
5390
5390
|
}, tt.prototype._close = function() {
|
|
5391
5391
|
var e = this._state, t = gn.indexOf(this);
|
|
@@ -5529,9 +5529,9 @@ var mi = { exports: {} };
|
|
|
5529
5529
|
}));
|
|
5530
5530
|
});
|
|
5531
5531
|
};
|
|
5532
|
-
}), this.Collection = (u = this, Fn(
|
|
5532
|
+
}), this.Collection = (u = this, Fn(Si.prototype, function(O, b) {
|
|
5533
5533
|
this.db = u;
|
|
5534
|
-
var y =
|
|
5534
|
+
var y = da, w = null;
|
|
5535
5535
|
if (b) try {
|
|
5536
5536
|
y = b();
|
|
5537
5537
|
} catch ($) {
|
|
@@ -5539,9 +5539,9 @@ var mi = { exports: {} };
|
|
|
5539
5539
|
}
|
|
5540
5540
|
var x = O._ctx, b = x.table, O = b.hook.reading.fire;
|
|
5541
5541
|
this._ctx = { table: b, index: x.index, isPrimKey: !x.index || b.schema.primKey.keyPath && x.index === b.schema.primKey.name, range: y, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: w, or: x.or, valueMapper: O !== Ne ? O : null };
|
|
5542
|
-
})), this.Table = (s = this, Fn(
|
|
5543
|
-
this.db = s, this._tx = y, this.name = p, this.schema = k, this.hook = s._allTables[p] ? s._allTables[p].hook : Pn(null, { creating: [nr, le], reading: [tr, Ne], updating: [
|
|
5544
|
-
})), this.Transaction = (f = this, Fn(
|
|
5542
|
+
})), this.Table = (s = this, Fn(va.prototype, function(p, k, y) {
|
|
5543
|
+
this.db = s, this._tx = y, this.name = p, this.schema = k, this.hook = s._allTables[p] ? s._allTables[p].hook : Pn(null, { creating: [nr, le], reading: [tr, Ne], updating: [bi, le], deleting: [gi, le] });
|
|
5544
|
+
})), this.Transaction = (f = this, Fn($i.prototype, function(p, k, y, w, x) {
|
|
5545
5545
|
var b = this;
|
|
5546
5546
|
this.db = f, this.mode = p, this.storeNames = k, this.schema = y, this.chromeTransactionDurability = w, this.idbtrans = null, this.on = Pn(this, "complete", "error", "abort"), this.parent = x || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new ee(function(O, $) {
|
|
5547
5547
|
b._resolve = O, b._reject = $;
|
|
@@ -5551,9 +5551,9 @@ var mi = { exports: {} };
|
|
|
5551
5551
|
var $ = b.active;
|
|
5552
5552
|
return b.active = !1, b.on.error.fire(O), b.parent ? b.parent._reject(O) : $ && b.idbtrans && b.idbtrans.abort(), et(O);
|
|
5553
5553
|
});
|
|
5554
|
-
})), this.Version = (h = this, Fn(
|
|
5554
|
+
})), this.Version = (h = this, Fn(Bi.prototype, function(p) {
|
|
5555
5555
|
this.db = h, this._cfg = { version: p, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
5556
|
-
})), this.WhereClause = (v = this, Fn(
|
|
5556
|
+
})), this.WhereClause = (v = this, Fn(_a.prototype, function(p, k, y) {
|
|
5557
5557
|
if (this.db = v, this._ctx = { table: p, index: k === ":id" ? null : k, or: y }, this._cmp = this._ascending = Me, this._descending = function(w, x) {
|
|
5558
5558
|
return Me(x, w);
|
|
5559
5559
|
}, this._max = function(w, x) {
|
|
@@ -5573,14 +5573,14 @@ var mi = { exports: {} };
|
|
|
5573
5573
|
}).map(function(k) {
|
|
5574
5574
|
return k.on("versionchange").fire(p);
|
|
5575
5575
|
});
|
|
5576
|
-
}, this.use(
|
|
5576
|
+
}, this.use(Ki), this.use(Li), this.use(Ri), this.use(ji), this.use(Vi);
|
|
5577
5577
|
var _ = new Proxy(this, { get: function(p, k, y) {
|
|
5578
5578
|
if (k === "_vip") return !0;
|
|
5579
5579
|
if (k === "table") return function(x) {
|
|
5580
5580
|
return Sr(n.table(x), _);
|
|
5581
5581
|
};
|
|
5582
5582
|
var w = Reflect.get(p, k, y);
|
|
5583
|
-
return w instanceof
|
|
5583
|
+
return w instanceof va ? Sr(w, _) : k === "tables" ? w.map(function(x) {
|
|
5584
5584
|
return Sr(x, _);
|
|
5585
5585
|
}) : k === "_createTransaction" ? function() {
|
|
5586
5586
|
return Sr(w.apply(this, arguments), _);
|
|
@@ -5590,7 +5590,7 @@ var mi = { exports: {} };
|
|
|
5590
5590
|
return p(n);
|
|
5591
5591
|
});
|
|
5592
5592
|
}
|
|
5593
|
-
var Cr, kt = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable",
|
|
5593
|
+
var Cr, kt = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Yi = (Co.prototype.subscribe = function(e, t, n) {
|
|
5594
5594
|
return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
|
|
5595
5595
|
}, Co.prototype[kt] = function() {
|
|
5596
5596
|
return this;
|
|
@@ -5603,8 +5603,8 @@ var mi = { exports: {} };
|
|
|
5603
5603
|
} catch {
|
|
5604
5604
|
Cr = { indexedDB: null, IDBKeyRange: null };
|
|
5605
5605
|
}
|
|
5606
|
-
function
|
|
5607
|
-
var t, n = !1, o = new
|
|
5606
|
+
function Ba(e) {
|
|
5607
|
+
var t, n = !1, o = new Yi(function(u) {
|
|
5608
5608
|
var s = j(e), f, h = !1, v = {}, g = {}, _ = { get closed() {
|
|
5609
5609
|
return h;
|
|
5610
5610
|
}, unsubscribe: function() {
|
|
@@ -5706,8 +5706,8 @@ var mi = { exports: {} };
|
|
|
5706
5706
|
}, Promise: ee, debug: { get: function() {
|
|
5707
5707
|
return Pt;
|
|
5708
5708
|
}, set: function(e) {
|
|
5709
|
-
|
|
5710
|
-
} }, derive: se, extend: S, props: Z, override: ke, Events: Pn, on: Wt, liveQuery:
|
|
5709
|
+
aa(e);
|
|
5710
|
+
} }, derive: se, extend: S, props: Z, override: ke, Events: Pn, on: Wt, liveQuery: Ba, extendObservabilitySet: xr, getByKeyPath: ve, setByKeyPath: ce, delByKeyPath: function(e, t) {
|
|
5711
5711
|
typeof t == "string" ? ce(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
|
|
5712
5712
|
ce(e, n, void 0);
|
|
5713
5713
|
});
|
|
@@ -5720,9 +5720,9 @@ var mi = { exports: {} };
|
|
|
5720
5720
|
}), addEventListener(uo, function(e) {
|
|
5721
5721
|
e = e.detail, Ht || Oo(e);
|
|
5722
5722
|
}));
|
|
5723
|
-
var _n, Ht = !1,
|
|
5723
|
+
var _n, Ht = !1, qa = function() {
|
|
5724
5724
|
};
|
|
5725
|
-
return typeof BroadcastChannel < "u" && ((
|
|
5725
|
+
return typeof BroadcastChannel < "u" && ((qa = function() {
|
|
5726
5726
|
(_n = new BroadcastChannel(uo)).onmessage = function(e) {
|
|
5727
5727
|
return e.data && Oo(e.data);
|
|
5728
5728
|
};
|
|
@@ -5734,25 +5734,25 @@ var mi = { exports: {} };
|
|
|
5734
5734
|
for (var t = 0, n = gn; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
|
|
5735
5735
|
}
|
|
5736
5736
|
}), addEventListener("pageshow", function(e) {
|
|
5737
|
-
!jt.disableBfCache && e.persisted && (Pt && console.debug("Dexie: handling persisted pageshow"),
|
|
5737
|
+
!jt.disableBfCache && e.persisted && (Pt && console.debug("Dexie: handling persisted pageshow"), qa(), Oo({ all: new ft(-1 / 0, [[]]) }));
|
|
5738
5738
|
})), ee.rejectionMapper = function(e, t) {
|
|
5739
5739
|
return !e || e instanceof P || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Fe[e.name] ? e : (t = new Fe[e.name](t || e.message, e), "stack" in e && F(t, "stack", { get: function() {
|
|
5740
5740
|
return this.inner.stack;
|
|
5741
5741
|
} }), t);
|
|
5742
|
-
},
|
|
5742
|
+
}, aa(Pt), r(jt, Object.freeze({ __proto__: null, Dexie: jt, liveQuery: Ba, Entity: ha, cmp: Me, PropModification: In, replacePrefix: function(e, t) {
|
|
5743
5743
|
return new In({ replacePrefix: [e, t] });
|
|
5744
5744
|
}, add: function(e) {
|
|
5745
5745
|
return new In({ add: e });
|
|
5746
5746
|
}, remove: function(e) {
|
|
5747
5747
|
return new In({ remove: e });
|
|
5748
|
-
}, default: jt, RangeSet: ft, mergeRanges: Kn, rangesOverlap:
|
|
5748
|
+
}, default: jt, RangeSet: ft, mergeRanges: Kn, rangesOverlap: Sa }), { default: jt }), jt;
|
|
5749
5749
|
});
|
|
5750
|
-
})(
|
|
5751
|
-
var
|
|
5752
|
-
const
|
|
5753
|
-
if (
|
|
5754
|
-
throw new Error(`Two different versions of Dexie loaded in the same app: ${
|
|
5755
|
-
const dn = new
|
|
5750
|
+
})(pi);
|
|
5751
|
+
var Xu = pi.exports;
|
|
5752
|
+
const Go = /* @__PURE__ */ Qa(Xu), Wa = Symbol.for("Dexie"), Qo = globalThis[Wa] || (globalThis[Wa] = Go);
|
|
5753
|
+
if (Go.semVer !== Qo.semVer)
|
|
5754
|
+
throw new Error(`Two different versions of Dexie loaded in the same app: ${Go.semVer} and ${Qo.semVer}`);
|
|
5755
|
+
const dn = new Qo("gyc");
|
|
5756
5756
|
dn.version(1).stores({
|
|
5757
5757
|
tableInfo: "++id,user,page,key,showCol,width,sort",
|
|
5758
5758
|
tableList: "++id,name"
|
|
@@ -5766,21 +5766,21 @@ async function zn(l, i, a, r = {}) {
|
|
|
5766
5766
|
return await dn.tableInfo.add({ user: l, page: i, key: a, ...d }), "add success";
|
|
5767
5767
|
}
|
|
5768
5768
|
}
|
|
5769
|
-
async function
|
|
5769
|
+
async function Gu(l, i) {
|
|
5770
5770
|
return await dn.tableInfo.where({ user: l, page: i }).toArray();
|
|
5771
5771
|
}
|
|
5772
|
-
async function
|
|
5772
|
+
async function Qu(l, i) {
|
|
5773
5773
|
dn.tableInfo.where({ user: l, page: i }).delete((a) => {
|
|
5774
5774
|
console.log("删除了" + a + "条数据");
|
|
5775
5775
|
});
|
|
5776
5776
|
}
|
|
5777
|
-
const
|
|
5777
|
+
const Zu = {
|
|
5778
5778
|
style: { margin: "10px" },
|
|
5779
5779
|
class: "allcheck"
|
|
5780
|
-
},
|
|
5780
|
+
}, Ju = {
|
|
5781
5781
|
id: "cols",
|
|
5782
5782
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
5783
|
-
},
|
|
5783
|
+
}, el = ["textContent"], tl = {
|
|
5784
5784
|
__name: "columns-setting",
|
|
5785
5785
|
props: /* @__PURE__ */ hn({
|
|
5786
5786
|
name: {
|
|
@@ -5852,12 +5852,12 @@ const Ju = {
|
|
|
5852
5852
|
});
|
|
5853
5853
|
}
|
|
5854
5854
|
}, S = () => {
|
|
5855
|
-
|
|
5855
|
+
Ha.confirm("确定要复位吗?", "提示", {
|
|
5856
5856
|
confirmButtonText: "确定",
|
|
5857
5857
|
cancelButtonText: "取消",
|
|
5858
5858
|
type: "warning"
|
|
5859
5859
|
}).then(() => {
|
|
5860
|
-
|
|
5860
|
+
Qu(r.value.table.user, i.name).then((C) => {
|
|
5861
5861
|
console.log(C), window.location.reload();
|
|
5862
5862
|
}).catch(() => {
|
|
5863
5863
|
To({
|
|
@@ -5879,7 +5879,7 @@ const Ju = {
|
|
|
5879
5879
|
}), (C, B) => {
|
|
5880
5880
|
const T = be("el-divider"), Z = be("el-alert"), q = be("el-checkbox");
|
|
5881
5881
|
return fe(), Ze("div", null, [
|
|
5882
|
-
Pe("div",
|
|
5882
|
+
Pe("div", Zu, [
|
|
5883
5883
|
Pe("a", { onClick: m }, "全选"),
|
|
5884
5884
|
De(T, { direction: "vertical" }),
|
|
5885
5885
|
Pe("a", { onClick: E }, "全不选"),
|
|
@@ -5894,12 +5894,12 @@ const Ju = {
|
|
|
5894
5894
|
style: { "margin-bottom": "10px" }
|
|
5895
5895
|
}),
|
|
5896
5896
|
Pe("div", null, [
|
|
5897
|
-
Pe("div",
|
|
5897
|
+
Pe("div", Ju, [
|
|
5898
5898
|
(fe(!0), Ze(xt, null, Ve(a.value, (F) => (fe(), $e(q, {
|
|
5899
5899
|
modelValue: F.showCol,
|
|
5900
5900
|
"onUpdate:modelValue": (se) => F.showCol = se,
|
|
5901
5901
|
"data-id": F.value,
|
|
5902
|
-
class:
|
|
5902
|
+
class: Ga(["check-box-hover", F.value == "control" ? "filtered" : ""]),
|
|
5903
5903
|
onChange: (se) => c(se, F.value),
|
|
5904
5904
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
5905
5905
|
value: F.value,
|
|
@@ -5911,7 +5911,7 @@ const Ju = {
|
|
|
5911
5911
|
Pe("span", {
|
|
5912
5912
|
textContent: Je(F.label),
|
|
5913
5913
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
5914
|
-
}, null, 8,
|
|
5914
|
+
}, null, 8, el)
|
|
5915
5915
|
]),
|
|
5916
5916
|
_: 2
|
|
5917
5917
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -5920,10 +5920,10 @@ const Ju = {
|
|
|
5920
5920
|
]);
|
|
5921
5921
|
};
|
|
5922
5922
|
}
|
|
5923
|
-
},
|
|
5923
|
+
}, nl = /* @__PURE__ */ Yr(tl, [["__scopeId", "data-v-dd3ae3d0"]]), rl = { class: "table-query-container" }, ol = { class: "btns" }, al = { class: "btns" }, il = ["innerHTML"], ul = { style: { display: "flex", "margin-top": "-2px" } }, ll = { style: { display: "flex", flex: "1" } }, sl = {
|
|
5924
5924
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
5925
5925
|
id: "table-form"
|
|
5926
|
-
},
|
|
5926
|
+
}, cl = { style: { display: "flex" } }, fl = { style: { display: "flex", flex: "1" } }, dl = /* @__PURE__ */ Object.assign({
|
|
5927
5927
|
name: "g-table",
|
|
5928
5928
|
inheritAttrs: !1
|
|
5929
5929
|
}, {
|
|
@@ -5938,7 +5938,7 @@ const Ju = {
|
|
|
5938
5938
|
emits: /* @__PURE__ */ hn(["load", "open", "delete", "submit", "reset"], ["update:modelValue"]),
|
|
5939
5939
|
setup(l, { emit: i }) {
|
|
5940
5940
|
var Oe, ae, z, L, ie, W, he;
|
|
5941
|
-
const a = i, r = pn(l, "modelValue"), c =
|
|
5941
|
+
const a = i, r = pn(l, "modelValue"), c = Jo("options"), d = lt({}), m = lt(!1), E = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], S = lt(void 0), C = l, B = {
|
|
5942
5942
|
data: [],
|
|
5943
5943
|
border: !0,
|
|
5944
5944
|
stripe: !0,
|
|
@@ -6123,7 +6123,7 @@ const Ju = {
|
|
|
6123
6123
|
r.value.control.delete.click(D, j, K, P);
|
|
6124
6124
|
else {
|
|
6125
6125
|
let { message: ue, title: ze, options: ct } = r.value.control.delete.dialog;
|
|
6126
|
-
|
|
6126
|
+
Ha.confirm(ue, ze, ct).then(() => {
|
|
6127
6127
|
a("delete", { row: D, column: j, $index: K }, (Ot) => {
|
|
6128
6128
|
Ot && (r.value.table.data.splice(K, 1), r.value.table.page.total--);
|
|
6129
6129
|
});
|
|
@@ -6148,11 +6148,11 @@ const Ju = {
|
|
|
6148
6148
|
a("reset", D);
|
|
6149
6149
|
}, Ce = (D) => {
|
|
6150
6150
|
var j;
|
|
6151
|
-
(j = D.control.download) != null && j.click ? D.control.download.click(D) :
|
|
6151
|
+
(j = D.control.download) != null && j.click ? D.control.download.click(D) : Zo({
|
|
6152
6152
|
title: D.control.download.label,
|
|
6153
6153
|
width: 600,
|
|
6154
6154
|
slots: {
|
|
6155
|
-
default: () =>
|
|
6155
|
+
default: () => Uo(Hu, {
|
|
6156
6156
|
items: Object.entries(Le.value).map((K) => ({ label: K[1].label, value: K[0] })),
|
|
6157
6157
|
commitText: "DOWNLOAD"
|
|
6158
6158
|
})
|
|
@@ -6160,11 +6160,11 @@ const Ju = {
|
|
|
6160
6160
|
});
|
|
6161
6161
|
}, me = (D) => {
|
|
6162
6162
|
var j;
|
|
6163
|
-
(j = D.control.setting) != null && j.click ? D.control.setting.click(D) :
|
|
6163
|
+
(j = D.control.setting) != null && j.click ? D.control.setting.click(D) : Zo({
|
|
6164
6164
|
title: D.control.setting.label,
|
|
6165
6165
|
width: 600,
|
|
6166
6166
|
slots: {
|
|
6167
|
-
default: () =>
|
|
6167
|
+
default: () => Uo(nl, {
|
|
6168
6168
|
modelValue: D,
|
|
6169
6169
|
name: C.name
|
|
6170
6170
|
})
|
|
@@ -6175,7 +6175,7 @@ const Ju = {
|
|
|
6175
6175
|
Object.entries(r.value).filter((D) => D[1].type != "hidden").filter((D) => D[1].visible !== !1).filter((D) => D[1].showCol !== !1).map((D) => (D[1].sort = D[1].sort || 0, [D[0], D[1]])).sort((D, j) => D[1].sort - j[1].sort)
|
|
6176
6176
|
)
|
|
6177
6177
|
);
|
|
6178
|
-
return
|
|
6178
|
+
return tu(() => {
|
|
6179
6179
|
r.value.table.load();
|
|
6180
6180
|
}), Zn(async () => {
|
|
6181
6181
|
var D;
|
|
@@ -6187,7 +6187,7 @@ const Ju = {
|
|
|
6187
6187
|
alert("必须给使用此表格的用户一个名字!");
|
|
6188
6188
|
return;
|
|
6189
6189
|
}
|
|
6190
|
-
|
|
6190
|
+
Gu(r.value.table.user, C.name).then((j) => {
|
|
6191
6191
|
j && j.forEach((K) => {
|
|
6192
6192
|
r.value[K.key] && (r.value[K.key].width = K.width, r.value[K.key].showCol = K.showCol, r.value[K.key].sort = K.sort);
|
|
6193
6193
|
});
|
|
@@ -6195,9 +6195,9 @@ const Ju = {
|
|
|
6195
6195
|
}), (D, j) => {
|
|
6196
6196
|
const K = be("el-button"), P = be("el-table-column"), we = be("el-table"), ue = be("el-pagination"), ze = be("el-icon"), ct = be("el-dialog"), Ot = be("el-drawer");
|
|
6197
6197
|
return fe(), Ze(xt, null, [
|
|
6198
|
-
Pe("div",
|
|
6198
|
+
Pe("div", rl, [
|
|
6199
6199
|
oe(D.$slots, "query", {}, () => [
|
|
6200
|
-
De(
|
|
6200
|
+
De(cu, {
|
|
6201
6201
|
modelValue: r.value,
|
|
6202
6202
|
"onUpdate:modelValue": j[3] || (j[3] = (R) => r.value = R),
|
|
6203
6203
|
onQuery: ke,
|
|
@@ -6205,7 +6205,7 @@ const Ju = {
|
|
|
6205
6205
|
}, Qe({
|
|
6206
6206
|
"q-btns": H(() => [
|
|
6207
6207
|
oe(D.$slots, "q-btns", {}, () => [
|
|
6208
|
-
Pe("div",
|
|
6208
|
+
Pe("div", ol, [
|
|
6209
6209
|
oe(D.$slots, "control-add-left", {}, void 0, !0),
|
|
6210
6210
|
r.value.control.add.auth() ? oe(D.$slots, "control-add", { key: 0 }, () => [
|
|
6211
6211
|
De(K, pe(r.value.control.add, {
|
|
@@ -6219,7 +6219,7 @@ const Ju = {
|
|
|
6219
6219
|
], !0) : ut("", !0),
|
|
6220
6220
|
oe(D.$slots, "control-add-right", {}, void 0, !0)
|
|
6221
6221
|
]),
|
|
6222
|
-
Pe("div",
|
|
6222
|
+
Pe("div", al, [
|
|
6223
6223
|
r.value.control.download.auth() ? oe(D.$slots, "control-download", { key: 0 }, () => [
|
|
6224
6224
|
De(K, pe(r.value.control.download, {
|
|
6225
6225
|
onClick: j[1] || (j[1] = (R) => Ce(r.value))
|
|
@@ -6289,7 +6289,7 @@ const Ju = {
|
|
|
6289
6289
|
}, () => [
|
|
6290
6290
|
Pe("div", {
|
|
6291
6291
|
innerHTML: V(R, le.formatter(Ee, le, Ee[Fe], Ne))
|
|
6292
|
-
}, null, 8,
|
|
6292
|
+
}, null, 8, il)
|
|
6293
6293
|
], !0)
|
|
6294
6294
|
]),
|
|
6295
6295
|
key: "0"
|
|
@@ -6300,8 +6300,8 @@ const Ju = {
|
|
|
6300
6300
|
var tr, At;
|
|
6301
6301
|
return [
|
|
6302
6302
|
Pe("div", {
|
|
6303
|
-
class:
|
|
6304
|
-
style:
|
|
6303
|
+
class: Ga(["control", (tr = r.value.control) == null ? void 0 : tr.class]),
|
|
6304
|
+
style: ea((At = r.value.control) == null ? void 0 : At.style)
|
|
6305
6305
|
}, [
|
|
6306
6306
|
oe(D.$slots, "control", {}, () => [
|
|
6307
6307
|
oe(D.$slots, "control-left", {
|
|
@@ -6393,19 +6393,19 @@ const Ju = {
|
|
|
6393
6393
|
_: 3
|
|
6394
6394
|
}, 16, ["page-size", "current-page"])
|
|
6395
6395
|
], !0),
|
|
6396
|
-
|
|
6396
|
+
Ro(Pe("div", null, [
|
|
6397
6397
|
De(ct, pe({
|
|
6398
6398
|
modelValue: m.value,
|
|
6399
6399
|
"onUpdate:modelValue": j[9] || (j[9] = (R) => m.value = R),
|
|
6400
6400
|
fullscreen: r.value.dialog.fullScreen
|
|
6401
6401
|
}, M(Ct)(r.value.dialog, (R) => !["size"].includes(R)), {
|
|
6402
|
-
width: M(
|
|
6402
|
+
width: M(yi)(r.value.dialog.width) + 35
|
|
6403
6403
|
}), {
|
|
6404
6404
|
header: H(() => {
|
|
6405
6405
|
var R, Fe, Ee, le;
|
|
6406
6406
|
return [
|
|
6407
|
-
Pe("div",
|
|
6408
|
-
Pe("div",
|
|
6407
|
+
Pe("div", ul, [
|
|
6408
|
+
Pe("div", ll, [
|
|
6409
6409
|
oe(D.$slots, "f-header", {}, () => [
|
|
6410
6410
|
Pe("div", null, Je(r.value.dialog.title), 1)
|
|
6411
6411
|
], !0)
|
|
@@ -6419,7 +6419,7 @@ const Ju = {
|
|
|
6419
6419
|
}, [
|
|
6420
6420
|
De(ze, null, {
|
|
6421
6421
|
default: H(() => [
|
|
6422
|
-
De(M(
|
|
6422
|
+
De(M(du))
|
|
6423
6423
|
]),
|
|
6424
6424
|
_: 1
|
|
6425
6425
|
})
|
|
@@ -6433,7 +6433,7 @@ const Ju = {
|
|
|
6433
6433
|
}, [
|
|
6434
6434
|
De(ze, null, {
|
|
6435
6435
|
default: H(() => [
|
|
6436
|
-
De(M(
|
|
6436
|
+
De(M(pu))
|
|
6437
6437
|
]),
|
|
6438
6438
|
_: 1
|
|
6439
6439
|
})
|
|
@@ -6442,8 +6442,8 @@ const Ju = {
|
|
|
6442
6442
|
];
|
|
6443
6443
|
}),
|
|
6444
6444
|
default: H(() => [
|
|
6445
|
-
Pe("div",
|
|
6446
|
-
De(
|
|
6445
|
+
Pe("div", sl, [
|
|
6446
|
+
De(Yo, {
|
|
6447
6447
|
modelValue: r.value,
|
|
6448
6448
|
"onUpdate:modelValue": j[8] || (j[8] = (R) => r.value = R),
|
|
6449
6449
|
onSubmit: Ue,
|
|
@@ -6461,16 +6461,16 @@ const Ju = {
|
|
|
6461
6461
|
_: 3
|
|
6462
6462
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
6463
6463
|
], 512), [
|
|
6464
|
-
[
|
|
6464
|
+
[No, r.value.dialog.mode == "dialog"]
|
|
6465
6465
|
]),
|
|
6466
|
-
|
|
6466
|
+
Ro(Pe("div", null, [
|
|
6467
6467
|
De(Ot, pe({
|
|
6468
6468
|
modelValue: m.value,
|
|
6469
6469
|
"onUpdate:modelValue": j[11] || (j[11] = (R) => m.value = R)
|
|
6470
6470
|
}, M(Ct)(r.value.dialog, (R) => !["width"].includes(R))), {
|
|
6471
6471
|
header: H(() => [
|
|
6472
|
-
Pe("div",
|
|
6473
|
-
Pe("div",
|
|
6472
|
+
Pe("div", cl, [
|
|
6473
|
+
Pe("div", fl, [
|
|
6474
6474
|
oe(D.$slots, "f-header", {}, () => [
|
|
6475
6475
|
Pe("div", null, Je(r.value.dialog.title), 1)
|
|
6476
6476
|
], !0)
|
|
@@ -6478,7 +6478,7 @@ const Ju = {
|
|
|
6478
6478
|
])
|
|
6479
6479
|
]),
|
|
6480
6480
|
default: H(() => [
|
|
6481
|
-
De(
|
|
6481
|
+
De(Yo, {
|
|
6482
6482
|
modelValue: r.value,
|
|
6483
6483
|
"onUpdate:modelValue": j[10] || (j[10] = (R) => r.value = R),
|
|
6484
6484
|
onSubmit: Ue,
|
|
@@ -6495,22 +6495,22 @@ const Ju = {
|
|
|
6495
6495
|
_: 3
|
|
6496
6496
|
}, 16, ["modelValue"])
|
|
6497
6497
|
], 512), [
|
|
6498
|
-
[
|
|
6498
|
+
[No, r.value.dialog.mode == "drawer"]
|
|
6499
6499
|
])
|
|
6500
6500
|
], 64);
|
|
6501
6501
|
};
|
|
6502
6502
|
}
|
|
6503
|
-
}),
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
]
|
|
6503
|
+
}), hl = /* @__PURE__ */ Yr(dl, [["__scopeId", "data-v-f896236d"]]), mi = Object.freeze({}), vi = [
|
|
6504
|
+
hl,
|
|
6505
|
+
Yo
|
|
6506
|
+
], gl = {
|
|
6507
6507
|
install: (l, i = {}) => {
|
|
6508
|
-
const a = Object.freeze({ ...
|
|
6509
|
-
|
|
6510
|
-
l.component(
|
|
6511
|
-
}), l.provide("options", a), l.config.globalProperties.$openModal =
|
|
6508
|
+
const a = Object.freeze({ ...mi, ...i });
|
|
6509
|
+
vi.forEach((r) => {
|
|
6510
|
+
l.component(r.name, r);
|
|
6511
|
+
}), l.provide("options", a), l.config.globalProperties.$openModal = Zo;
|
|
6512
6512
|
}
|
|
6513
|
-
}, pl = (l) => ({ dialog:
|
|
6513
|
+
}, pl = (l) => ({ dialog: Wi, drawer: Hi })[l] || null, Zo = (l = {}, i = "dialog") => {
|
|
6514
6514
|
if (typeof document > "u") return () => {
|
|
6515
6515
|
};
|
|
6516
6516
|
const a = document.createElement("div");
|
|
@@ -6519,7 +6519,7 @@ const Ju = {
|
|
|
6519
6519
|
const c = pl(i);
|
|
6520
6520
|
if (!c) return () => {
|
|
6521
6521
|
};
|
|
6522
|
-
const d = lt(!0), m =
|
|
6522
|
+
const d = lt(!0), m = nu({
|
|
6523
6523
|
setup() {
|
|
6524
6524
|
return r = () => {
|
|
6525
6525
|
d.value = !1, setTimeout(() => {
|
|
@@ -6527,7 +6527,7 @@ const Ju = {
|
|
|
6527
6527
|
}, 300);
|
|
6528
6528
|
}, () => {
|
|
6529
6529
|
var E, S, C;
|
|
6530
|
-
return
|
|
6530
|
+
return Uo(c, {
|
|
6531
6531
|
modelValue: d.value,
|
|
6532
6532
|
"onUpdate:modelValue": (B) => d.value = B,
|
|
6533
6533
|
...l,
|
|
@@ -6541,11 +6541,11 @@ const Ju = {
|
|
|
6541
6541
|
};
|
|
6542
6542
|
}
|
|
6543
6543
|
});
|
|
6544
|
-
return
|
|
6545
|
-
m.component(
|
|
6546
|
-
}), m.provide("options",
|
|
6544
|
+
return vi.forEach((E) => {
|
|
6545
|
+
m.component(E.name, E);
|
|
6546
|
+
}), m.provide("options", mi), m.use(zi, { locale: ru }), document.body.appendChild(a), m.mount(a), r;
|
|
6547
6547
|
};
|
|
6548
|
-
function
|
|
6548
|
+
function yi(l, i = window.innerWidth) {
|
|
6549
6549
|
if (typeof l == "number")
|
|
6550
6550
|
return l;
|
|
6551
6551
|
if (l.endsWith("px"))
|
|
@@ -6567,7 +6567,7 @@ function gi(l, i = window.innerWidth) {
|
|
|
6567
6567
|
throw new Error("Invalid calc expression");
|
|
6568
6568
|
};
|
|
6569
6569
|
const c = l.slice(5, -1).trim();
|
|
6570
|
-
return d(c.replace(/([0-9.]+)([a-z%]+)/g, (E, S, C) =>
|
|
6570
|
+
return d(c.replace(/([0-9.]+)([a-z%]+)/g, (E, S, C) => yi(S + C, i)));
|
|
6571
6571
|
}
|
|
6572
6572
|
throw new Error("Unsupported unit in value: " + l);
|
|
6573
6573
|
}
|
|
@@ -6596,10 +6596,10 @@ function ml(l, i, a = "value", r = "label", c = "children") {
|
|
|
6596
6596
|
return null;
|
|
6597
6597
|
}
|
|
6598
6598
|
export {
|
|
6599
|
-
|
|
6599
|
+
yi as convertToPx,
|
|
6600
6600
|
gl as default,
|
|
6601
6601
|
Ct as filterObject,
|
|
6602
6602
|
ml as findTreeLabelByValue,
|
|
6603
6603
|
Dt as mergeObjects,
|
|
6604
|
-
|
|
6604
|
+
Zo as openModal
|
|
6605
6605
|
};
|