hlrender 0.0.179 → 0.0.180
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/{_pdf-86b339d2.js → _pdf-eafe129a.js} +5 -5
- package/{_txt-0c3484d7.js → _txt-c2a71b60.js} +5 -5
- package/{_unsupport-4a214aba.js → _unsupport-11301314.js} +1 -1
- package/{affix-widget-4d356ec0.js → affix-widget-aca17a23.js} +15 -15
- package/{alert-widget-58e64964.js → alert-widget-c0ba122c.js} +15 -15
- package/{anchor-widget-2e80233c.js → anchor-widget-abae59da.js} +12 -12
- package/{auto-complete-widget-926d8808.js → auto-complete-widget-c2081b6c.js} +15 -15
- package/{avatar-widget-d85bf6b1.js → avatar-widget-f3cb9a91.js} +15 -15
- package/{backtop-widget-acac4847.js → backtop-widget-953731d5.js} +15 -15
- package/{badge-widget-0cdebc3c.js → badge-widget-974e13cf.js} +15 -15
- package/{barcode-widget-fd4b6574.js → barcode-widget-340cd358.js} +12 -12
- package/{baseImp-2a99f96b.js → baseImp-3059a0cc.js} +5 -5
- package/{breadcrumb-widget-e4c9b4f3.js → breadcrumb-widget-9f710a0c.js} +12 -12
- package/{button-widget-a8ca402b.js → button-widget-9f66bd3f.js} +15 -15
- package/{cache-widget-49fa3954.js → cache-widget-edf6bebb.js} +14 -14
- package/{card-widget-2c86a944.js → card-widget-8563a4d5.js} +13 -13
- package/{carousel-widget-00daff39.js → carousel-widget-5b13f5b2.js} +13 -13
- package/{cascader-widget-951ff329.js → cascader-widget-1a70bde7.js} +14 -14
- package/{chart-widget-e1bd4a5b.js → chart-widget-11cebd58.js} +12 -12
- package/{checkbox-widget-c59b7c70.js → checkbox-widget-e2c51d29.js} +17 -17
- package/{collapse-widget-30899a5c.js → collapse-widget-8a33c67c.js} +13 -13
- package/{color-picker-widget-0c42a4d1.js → color-picker-widget-e93b41df.js} +14 -14
- package/{cont-cell-widget-9837e445.js → cont-cell-widget-0c253486.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b4239fb6.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5ad69f98.js} +5 -5
- package/{cont-widget-9b9be9da.js → cont-widget-bb0f4fdd.js} +5 -5
- package/{content-wrapper-d4cd27e3.js → content-wrapper-f688c976.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-b024182b.js → content-wrapper.vue_vue_type_script_setup_true_lang-30883d35.js} +3 -3
- package/{date-picker-range-widget-4bf5014e.js → date-picker-range-widget-01b9737d.js} +14 -14
- package/{date-picker-widget-3926774d.js → date-picker-widget-244dac69.js} +14 -14
- package/default-slot-widget-0260dab5.js +26 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5a89d225.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-abf0dae3.js} +7 -7
- package/{descriptions-widget-bbc98713.js → descriptions-widget-ef3c8649.js} +13 -13
- package/{dialog-fe01221d.js → dialog-d522d309.js} +2 -2
- package/{dialog-widget-01ecbc04.js → dialog-widget-20959547.js} +14 -14
- package/{divider-widget-84ac6d7e.js → divider-widget-e01ac5fb.js} +15 -15
- package/{drag-wrapper-4cb5cc54.js → drag-wrapper-c585d77c.js} +6 -6
- package/{drawer-widget-58508c73.js → drawer-widget-25d0e29a.js} +14 -14
- package/{dropdown-widget-153bed70.js → dropdown-widget-3b24159f.js} +13 -13
- package/{empty-widget-c1a50044.js → empty-widget-217cc850.js} +15 -15
- package/{enum-type-f137dd08.js → enum-type-3bd819a0.js} +1 -1
- package/{enum-type-a8519266.js → enum-type-6e7ccb0e.js} +1 -1
- package/{expression-63558be5.js → expression-11649997.js} +1413 -1394
- package/feedback-widget-a2595e27.js +26 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-7e15a60f.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-51851ca6.js} +5 -5
- package/{fieldobj-e046d93f.js → fieldobj-ec130f21.js} +1 -1
- package/{file-upload-widget-bfc335f0.js → file-upload-widget-4c6f10cc.js} +19 -19
- package/{form-item-wrapper-8f8ae4b6.js → form-item-wrapper-48f43292.js} +10 -10
- package/{form-widget-ab4b7d70.js → form-widget-83241b31.js} +37 -37
- package/{grid-col-widget-8f3ce8d1.js → grid-col-widget-354afbd6.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-94692979.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3f416da3.js} +5 -5
- package/{grid-widget-642036c3.js → grid-widget-b3619fd5.js} +8 -8
- package/{html-text-widget-7f058c95.js → html-text-widget-1dceb33a.js} +13 -13
- package/{icon-widget-aa21783a.js → icon-widget-7af26d3c.js} +12 -12
- package/{iframe-widget-bea5379d.js → iframe-widget-107bd071.js} +12 -12
- package/{image-widget-ddcc9f73.js → image-widget-7aa1d341.js} +12 -12
- package/{index-19923435.js → index-70a7d3e6.js} +1 -1
- package/{index-c6960059.js → index-8698042c.js} +3 -3
- package/{index-796f510c.js → index-c4b7a0c8.js} +4 -4
- package/{input-number-widget-5ac177e1.js → input-number-widget-37e03b67.js} +14 -14
- package/{input-widget-64489c0e.js → input-widget-60b2d0de.js} +15 -15
- package/{label-wrapper-29608d84.js → label-wrapper-6be1aa7d.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-ac9a4c05.js → label-wrapper.vue_vue_type_style_index_0_lang-a7f0ebd1.js} +3 -3
- package/{link-widget-b27eb8b5.js → link-widget-23c0143a.js} +15 -15
- package/{ltable-col-widget-fcdbd144.js → ltable-col-widget-6ab1f1a5.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-4847b03e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-0c00ed84.js} +9 -9
- package/{ltable-widget-a89ed3f0.js → ltable-widget-12a56080.js} +5 -5
- package/{menu-widget-00da6d17.js → menu-widget-b7caec95.js} +13 -13
- package/{model-widget-68a169ab.js → model-widget-5e2d0948.js} +12 -12
- package/{multirow-cc17167a.js → multirow-a99d2c26.js} +5 -5
- package/{multirow-widget-2bd2c04c.js → multirow-widget-9fc437a2.js} +14 -14
- package/package.json +1 -1
- package/{pagination-widget-9719bd8e.js → pagination-widget-75f468c6.js} +12 -12
- package/{picture-upload-widget-77e9d467.js → picture-upload-widget-cca67b97.js} +15 -15
- package/{progress-widget-08cc816a.js → progress-widget-509b4a2e.js} +13 -13
- package/{propresult-d434045a.js → propresult-108af2cc.js} +1 -1
- package/{qrcode-widget-f82ddc2e.js → qrcode-widget-caac70ed.js} +12 -12
- package/{radio-widget-b9a72bbe.js → radio-widget-c48363df.js} +14 -14
- package/{range-widget-06f0be5b.js → range-widget-881959da.js} +15 -15
- package/{rate-widget-0822f4f4.js → rate-widget-48f35734.js} +14 -14
- package/render.es.js +812 -809
- package/render.umd.js +225 -225
- package/{result-widget-a6dbfdb5.js → result-widget-69c292df.js} +13 -13
- package/{rich-editor-widget copy-3bad0f55.js → rich-editor-widget copy-5bfece82.js } +14 -14
- package/{rich-editor-widget-a651ee99.js → rich-editor-widget-34436a79.js} +14 -14
- package/{router-widget-582c95d8.js → router-widget-edbecb3a.js} +12 -12
- package/{select-widget-910a15c2.js → select-widget-e206967c.js} +14 -14
- package/{sfc-e4e6d925.js → sfc-1a2ff384.js} +7 -7
- package/{sfcview-b56b45bb.js → sfcview-1a5231ee.js} +6 -6
- package/{share-field-b5360287.js → share-field-f5225ff5.js} +30 -30
- package/{share-file-809e6d34.js → share-file-d2cd0d9c.js} +5 -5
- package/{slider-widget-a2f33bac.js → slider-widget-f427d9cc.js} +14 -14
- package/{slot-bfb3564a.js → slot-5fa5969b.js} +18 -18
- package/{static-text-widget-a499d491.js → static-text-widget-01592cdc.js} +13 -13
- package/{steps-widget-e6e57038.js → steps-widget-3e076af7.js} +12 -12
- package/{subMenu-widget-caa98aa2.js → subMenu-widget-179daf58.js} +7 -7
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-0a0dab4f.js → subMenu-widget.vue_vue_type_script_setup_true_lang-88776101.js} +3 -3
- package/{switch-widget-5374eb5f.js → switch-widget-6c9e2f7b.js} +14 -14
- package/{tab-pane-widget-87bd4d1f.js → tab-pane-widget-a0202f48.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-72cb406d.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-fd04e12a.js} +5 -5
- package/{table-col-widget-41f0f567.js → table-col-widget-bcf634cc.js} +10 -10
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a8735f8c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-4dc05d65.js} +5 -5
- package/{table-widget-272726d7.js → table-widget-c93dcb52.js} +25 -25
- package/{tabs-widget-6b1ff838.js → tabs-widget-024bc3f8.js} +12 -12
- package/{tag-widget-46d8c461.js → tag-widget-5a4c3a1e.js} +15 -15
- package/{text-widget-9bd7dc43.js → text-widget-38794c43.js} +15 -15
- package/{textarea-widget-82a1fbaa.js → textarea-widget-7e587bcc.js} +14 -14
- package/{time-picker-range-widget-80d1374c.js → time-picker-range-widget-013849cd.js} +14 -14
- package/{time-picker-widget-d261a79d.js → time-picker-widget-2541410b.js} +14 -14
- package/{time-select-widget-327350af.js → time-select-widget-36af3f09.js} +14 -14
- package/{tmpl-widget-f3695223.js → tmpl-widget-7a2d94bc.js} +18 -18
- package/{tree-select-widget-9a0e4a56.js → tree-select-widget-01abddfc.js} +14 -14
- package/{tree-widget-2f591538.js → tree-widget-23572f32.js} +17 -17
- package/{verifycode-widget-bd2d939b.js → verifycode-widget-19a1b74b.js} +12 -12
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e480eb5c.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-f3a8357e.js} +22 -22
- package/{wrapper-widget-0ff2ca6f.js → wrapper-widget-1fc3c667.js} +6 -6
- package/default-slot-widget-ae81666d.js +0 -26
- package/feedback-widget-e6814f97.js +0 -26
package/render.es.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { D as
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
15
|
-
import { u as
|
|
16
|
-
import { l as
|
|
17
|
-
import { F as
|
|
18
|
-
import { I as
|
|
19
|
-
import { i as
|
|
20
|
-
import { g as
|
|
21
|
-
import { u as
|
|
22
|
-
import { u as
|
|
23
|
-
import { W as
|
|
24
|
-
import { u as
|
|
25
|
-
import { ElMessage as
|
|
26
|
-
import { D as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { g as
|
|
29
|
-
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-
|
|
30
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
31
|
-
import "./index-
|
|
32
|
-
import "./index-
|
|
33
|
-
import "./fieldobj-
|
|
34
|
-
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
35
|
-
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
36
|
-
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
1
|
+
import { _ as sr } from "./cont-cell-widget-0c253486.js";
|
|
2
|
+
import { _ as lr } from "./cont-widget-bb0f4fdd.js";
|
|
3
|
+
import { _ as fr } from "./form-widget-83241b31.js";
|
|
4
|
+
import { _ as ur } from "./grid-col-widget-354afbd6.js";
|
|
5
|
+
import { _ as cr } from "./grid-widget-b3619fd5.js";
|
|
6
|
+
import { _ as dr } from "./ltable-col-widget-6ab1f1a5.js";
|
|
7
|
+
import { _ as vr } from "./ltable-widget-12a56080.js";
|
|
8
|
+
import { _ as hr } from "./tab-pane-widget-a0202f48.js";
|
|
9
|
+
import { _ as gr } from "./tabs-widget-024bc3f8.js";
|
|
10
|
+
import { _ as pr } from "./wrapper-widget-1fc3c667.js";
|
|
11
|
+
import { _ as mr } from "./index-8698042c.js";
|
|
12
|
+
import { D as yr, o as Sr } from "./dialog-d522d309.js";
|
|
13
|
+
import br, { computed as Oe, ref as hn, onMounted as Er, onUnmounted as xr, nextTick as Or, defineComponent as Hn, provide as Tn, resolveDirective as Ir, withDirectives as Tr, openBlock as Cn, createElementBlock as Cr, unref as re, normalizeClass as Pr, withKeys as Pn, renderSlot as nn, createBlock as Dr, Suspense as Ar, withCtx as Rr, createVNode as Mr } from "vue";
|
|
14
|
+
import { t as Nr, r as Fr, p as wr, u as Dn, f as we, a as Vn, w as ze, d as An } from "./expression-11649997.js";
|
|
15
|
+
import { u as jr, a as Lr, P as Ie, g as Ur } from "./baseImp-3059a0cc.js";
|
|
16
|
+
import { l as ei } from "./baseImp-3059a0cc.js";
|
|
17
|
+
import { F as $r } from "./slot-5fa5969b.js";
|
|
18
|
+
import { I as Gr } from "./widget-base-4c2d6265.js";
|
|
19
|
+
import { i as Kr, a as Br, o as Wr, b as Hr, f as Vr, d as Xr, c as Yr, t as zr, e as Jr } from "./enum-type-6e7ccb0e.js";
|
|
20
|
+
import { g as Qr } from "./uuid-4999945f.js";
|
|
21
|
+
import { u as Xn } from "./icon-a0e0cdb0.js";
|
|
22
|
+
import { u as Zr, a as kr } from "./multirow-a99d2c26.js";
|
|
23
|
+
import { W as je } from "./enum-type-3bd819a0.js";
|
|
24
|
+
import { u as qr, a as Rn, R as Mn } from "./share-field-f5225ff5.js";
|
|
25
|
+
import { ElMessage as _r, ElMessageBox as to, ElNotification as eo } from "element-plus";
|
|
26
|
+
import { D as no } from "./drag-wrapper-c585d77c.js";
|
|
27
|
+
import { _ as ro } from "./_plugin-vue_export-helper-dad06003.js";
|
|
28
|
+
import { g as oo, c as ao, a as io } from "./_commonjsHelpers-e7ea1525.js";
|
|
29
|
+
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5ad69f98.js";
|
|
30
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-f3a8357e.js";
|
|
31
|
+
import "./index-c4b7a0c8.js";
|
|
32
|
+
import "./index-70a7d3e6.js";
|
|
33
|
+
import "./fieldobj-ec130f21.js";
|
|
34
|
+
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3f416da3.js";
|
|
35
|
+
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-0c00ed84.js";
|
|
36
|
+
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-fd04e12a.js";
|
|
37
37
|
import "./source-map-b04aec4a.js";
|
|
38
38
|
import "./esprima-e8d15055.js";
|
|
39
|
-
function
|
|
39
|
+
function Yn(o) {
|
|
40
40
|
let n = /* @__PURE__ */ new Map();
|
|
41
41
|
for (const r in o) {
|
|
42
42
|
let i = o == null ? void 0 : o[r], e = i == null ? void 0 : i.default, f = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.__name);
|
|
@@ -44,28 +44,28 @@ function Xn(o) {
|
|
|
44
44
|
}
|
|
45
45
|
return n;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function zn() {
|
|
48
|
+
return Yn(/* @__PURE__ */ Object.assign({ "../cont-cell-widget.vue": sr, "../cont-widget.vue": lr, "../form-widget.vue": fr, "../grid-col-widget.vue": ur, "../grid-widget.vue": cr, "../ltable-col-widget.vue": dr, "../ltable-widget.vue": vr, "../tab-pane-widget.vue": hr, "../tabs-widget.vue": gr, "../wrapper-widget.vue": pr }));
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
const r =
|
|
50
|
+
const so = (o, n) => {
|
|
51
|
+
const r = zn();
|
|
52
52
|
for (const i in Object.keys(r))
|
|
53
53
|
o.component(i, r[i]);
|
|
54
|
-
},
|
|
55
|
-
const r =
|
|
54
|
+
}, lo = { install: so }, fo = (o, n) => {
|
|
55
|
+
const r = zn();
|
|
56
56
|
for (const i in Object.keys(r))
|
|
57
57
|
o.component(i, r[i]);
|
|
58
|
-
},
|
|
59
|
-
function
|
|
60
|
-
return
|
|
58
|
+
}, uo = { install: fo };
|
|
59
|
+
function co() {
|
|
60
|
+
return Yn(/* @__PURE__ */ Object.assign({ "./index.vue": mr }));
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
const r =
|
|
64
|
-
o.use(
|
|
62
|
+
const vo = (o, n) => {
|
|
63
|
+
const r = co();
|
|
64
|
+
o.use(yr);
|
|
65
65
|
for (const i in Object.keys(r))
|
|
66
66
|
o.component(i, r[i]);
|
|
67
|
-
},
|
|
68
|
-
function
|
|
67
|
+
}, ho = { install: vo };
|
|
68
|
+
function go(o, n, r, i) {
|
|
69
69
|
const e = { r: 255, g: 255, b: 255 };
|
|
70
70
|
return {
|
|
71
71
|
r: Math.round(o * (1 - i) + e.r * i),
|
|
@@ -73,26 +73,26 @@ function po(o, n, r, i) {
|
|
|
73
73
|
b: Math.round(r * (1 - i) + e.b * i)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function po(o, n, r, i = !1, e = 5) {
|
|
77
77
|
const f = [];
|
|
78
78
|
for (let t = 0; t < e; t++) {
|
|
79
|
-
const a =
|
|
79
|
+
const a = go(o, n, r, t * 0.1);
|
|
80
80
|
f.push(a);
|
|
81
81
|
}
|
|
82
82
|
return f;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
const i =
|
|
86
|
-
return e == null ? void 0 : e.map((f) =>
|
|
84
|
+
function mo(o, n = !1, r = 5) {
|
|
85
|
+
const i = So(o), e = po(i.r, i.g, i.b, n, r);
|
|
86
|
+
return e == null ? void 0 : e.map((f) => yo(f.r, f.g, f.b));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function yo(o, n, r) {
|
|
89
89
|
const i = (e) => {
|
|
90
90
|
const f = e.toString(16);
|
|
91
91
|
return f.length === 1 ? "0" + f : f;
|
|
92
92
|
};
|
|
93
93
|
return `#${i(o)}${i(n)}${i(r)}`;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function So(o) {
|
|
96
96
|
o = o.replace(/^#/, ""), o.length === 3 && (o = o[0] + o[0] + o[1] + o[1] + o[2] + o[2]);
|
|
97
97
|
const n = parseInt(o, 16);
|
|
98
98
|
return {
|
|
@@ -101,86 +101,89 @@ function bo(o) {
|
|
|
101
101
|
b: n & 255
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function bo(o, n) {
|
|
105
105
|
return {
|
|
106
|
-
cssWithPrimaryColor:
|
|
106
|
+
cssWithPrimaryColor: Oe(() => {
|
|
107
107
|
var f, t;
|
|
108
|
-
const i = (n == null ? void 0 : n.themeColor) ||
|
|
108
|
+
const i = (n == null ? void 0 : n.themeColor) || Nr.color1;
|
|
109
109
|
var e = {
|
|
110
110
|
themeColor: i
|
|
111
111
|
};
|
|
112
|
-
return (f =
|
|
112
|
+
return (f = mo(i, !1, 10)) == null || f.forEach((a, s) => {
|
|
113
113
|
e["themeColor-" + s] = a;
|
|
114
|
-
}), !
|
|
114
|
+
}), !Kr(o) && Br(o) && ((t = Wr(e)) == null || t.forEach((a) => {
|
|
115
115
|
var s = `var\\(--${a}\\)`;
|
|
116
|
-
o =
|
|
116
|
+
o = Fr(o, s, e[a]);
|
|
117
117
|
})), o;
|
|
118
118
|
})
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var { addWindowName: n, addWindowHook: r } =
|
|
121
|
+
function Eo(o) {
|
|
122
|
+
var { addWindowName: n, addWindowHook: r } = jr();
|
|
123
123
|
n(), r("openModalAsync", (i) => {
|
|
124
|
-
|
|
125
|
-
}), r("ElMessage",
|
|
124
|
+
Sr(o == null ? void 0 : o.instance, i);
|
|
125
|
+
}), r("ElMessage", _r), r("ElMessageBox", to), r("ElNotification", eo);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const n = o.designer, r = n == null ? void 0 : n.pageConfig, i = hn(n == null ? void 0 : n.widgetList), e = o == null ? void 0 : o.designState, f = o == null ? void 0 : o.pageData, t = o == null ? void 0 : o.renderConfig, a = {}, s = {}, { off$: l, on$: u, emit$: c } =
|
|
129
|
-
var { instance: d, proxy: v } =
|
|
130
|
-
const h = { instance: d, designState: e, formData: f, pageConfig: r, globalConfig: t }, { handleFunc: g } =
|
|
131
|
-
let V = (() => "vfRender" +
|
|
127
|
+
function xo(o) {
|
|
128
|
+
const n = o.designer, r = n == null ? void 0 : n.pageConfig, i = hn(n == null ? void 0 : n.widgetList), e = o == null ? void 0 : o.designState, f = o == null ? void 0 : o.pageData, t = o == null ? void 0 : o.renderConfig, a = {}, s = {}, { off$: l, on$: u, emit$: c } = kr();
|
|
129
|
+
var { instance: d, proxy: v } = Xn();
|
|
130
|
+
const h = { instance: d, designState: e, formData: f, pageConfig: r, globalConfig: t }, { handleFunc: g } = qr({ options: r }, h), { callWidgetsExposed: p } = Rn(s), { formModel: m, setData: S, getData: T, clearData: x } = Zr(i.value, h), C = new Mn(a), O = new Mn(s), { findRefByName: w } = Rn(s), { getOneSchemaData: L, getSchemaDataObject: I, getSchemaDatas: N } = Lr(h);
|
|
131
|
+
let V = (() => "vfRender" + Qr())();
|
|
132
132
|
const D = () => {
|
|
133
133
|
g(r == null ? void 0 : r.pageCreated);
|
|
134
134
|
}, R = () => {
|
|
135
135
|
g(r == null ? void 0 : r.pageMounted);
|
|
136
|
-
},
|
|
136
|
+
}, K = Oe(() => e ? "" : V), M = () => {
|
|
137
137
|
if (!r)
|
|
138
138
|
return;
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
const { cssWithPrimaryColor:
|
|
142
|
-
|
|
139
|
+
const { insertCustomCssToHead: J, insertGlobalFunctionsToHtml: it } = Dn(), ht = Ie.getValue(r.cssCode, !1, !0);
|
|
140
|
+
if (ht) {
|
|
141
|
+
const { cssWithPrimaryColor: Xt } = bo(ht, { themeColor: (t == null ? void 0 : t.themeColor) || "" });
|
|
142
|
+
J(Xt.value, K.value);
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
144
|
+
const bt = Ie.getValue(r.functions, !1, !0);
|
|
145
|
+
bt && it(bt, K.value);
|
|
146
|
+
}, G = () => {
|
|
147
|
+
const { removeCustomCssToHead: J, removeGlobalFunctionsToHtml: it } = Dn();
|
|
148
|
+
J(K.value), it(K.value);
|
|
149
|
+
}, q = (J = !0) => {
|
|
150
|
+
J && M(), xt(), D(), Ot(), Lt();
|
|
151
|
+
}, nt = wr.page, xt = () => {
|
|
152
|
+
C.setWidgetRef(nt, d), O.setWidgetRef(nt, d);
|
|
153
|
+
}, st = (J) => p(J, je.getValue), lt = (J, it) => p(J, je.setValue, it), vt = (J, it = !0) => {
|
|
154
|
+
p(J, je.setDisabled, { flag: it });
|
|
155
|
+
}, St = (J) => {
|
|
156
|
+
vt(J, !1);
|
|
157
|
+
}, ct = (J, it = !0) => {
|
|
158
|
+
p(J, je.setHidden, { flag: it });
|
|
159
|
+
}, rt = (J) => {
|
|
160
|
+
ct(J, !1);
|
|
161
|
+
}, at = (J) => {
|
|
162
|
+
if (J) {
|
|
163
|
+
var it = Vr(J);
|
|
164
|
+
if (it) {
|
|
165
|
+
if (!it.pageConfig || !it.widgetList)
|
|
163
166
|
return "Invalid pageat of page json.";
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
Xr(o.pageConfig, it), M(), Or(() => {
|
|
168
|
+
q(!1), R();
|
|
166
169
|
});
|
|
167
170
|
} else
|
|
168
171
|
return "Set page json failed.";
|
|
169
172
|
}
|
|
170
|
-
},
|
|
171
|
-
v == null || v.$emit(
|
|
172
|
-
},
|
|
173
|
-
l(
|
|
174
|
-
|
|
173
|
+
}, Pt = (J, it, ht) => {
|
|
174
|
+
v == null || v.$emit(Vn.formChange, J, it, ht, m);
|
|
175
|
+
}, Ot = () => {
|
|
176
|
+
l(we.fieldChange), u(we.fieldChange, (J) => {
|
|
177
|
+
Pt(J == null ? void 0 : J.fieldName, J == null ? void 0 : J.newValue, J == null ? void 0 : J.oldValue);
|
|
175
178
|
});
|
|
176
|
-
},
|
|
177
|
-
l(
|
|
179
|
+
}, Lt = () => {
|
|
180
|
+
l(we.fieldValidation), u(we.fieldValidation, (J) => {
|
|
178
181
|
});
|
|
179
182
|
};
|
|
180
|
-
return
|
|
181
|
-
x(),
|
|
182
|
-
}),
|
|
183
|
-
x();
|
|
183
|
+
return q(), Er(() => {
|
|
184
|
+
x(), Hr(), R(), Eo({ instance: d });
|
|
185
|
+
}), xr(() => {
|
|
186
|
+
x(), G();
|
|
184
187
|
}), {
|
|
185
188
|
formModel: m,
|
|
186
189
|
pageConfig: r,
|
|
@@ -190,13 +193,13 @@ function Oo(o) {
|
|
|
190
193
|
exposed: {
|
|
191
194
|
// findRefById,
|
|
192
195
|
findRefByName: w,
|
|
193
|
-
setPageJson:
|
|
194
|
-
hideWidgets:
|
|
195
|
-
showWidgets:
|
|
196
|
-
disableWidgets:
|
|
197
|
-
enableWidgets:
|
|
198
|
-
getFieldValue:
|
|
199
|
-
setFieldValue:
|
|
196
|
+
setPageJson: at,
|
|
197
|
+
hideWidgets: ct,
|
|
198
|
+
showWidgets: rt,
|
|
199
|
+
disableWidgets: vt,
|
|
200
|
+
enableWidgets: St,
|
|
201
|
+
getFieldValue: st,
|
|
202
|
+
setFieldValue: lt,
|
|
200
203
|
setData: S,
|
|
201
204
|
getData: T,
|
|
202
205
|
clearData: x,
|
|
@@ -210,7 +213,7 @@ function Oo(o) {
|
|
|
210
213
|
}
|
|
211
214
|
};
|
|
212
215
|
}
|
|
213
|
-
function
|
|
216
|
+
function Oo() {
|
|
214
217
|
const o = {}, n = (e, f, t) => {
|
|
215
218
|
o[e] = { opt: f, doEvent: t };
|
|
216
219
|
}, r = (e, f) => {
|
|
@@ -227,8 +230,8 @@ function Io() {
|
|
|
227
230
|
}
|
|
228
231
|
};
|
|
229
232
|
}
|
|
230
|
-
function
|
|
231
|
-
const { bindKey: n, runEvent: r } =
|
|
233
|
+
function Io(o) {
|
|
234
|
+
const { bindKey: n, runEvent: r } = Oo(), i = () => {
|
|
232
235
|
n("enter", { ctrlKey: !1 }, a), n("arrowleft", { ctrlKey: !0 }, s);
|
|
233
236
|
}, e = (l) => (i(), r(l)), f = "input,select,textarea", t = ["textarea"], a = () => {
|
|
234
237
|
var v, h;
|
|
@@ -260,42 +263,42 @@ function To(o) {
|
|
|
260
263
|
addKeyBoardEvent: e
|
|
261
264
|
};
|
|
262
265
|
}
|
|
263
|
-
const
|
|
264
|
-
...
|
|
266
|
+
const To = ["element-loading-text", "onKeyup"], Co = Hn({ componentName: ze.VFormRender, name: ze.VFormRender }), Po = /* @__PURE__ */ Hn({
|
|
267
|
+
...Co,
|
|
265
268
|
props: {
|
|
266
|
-
...
|
|
269
|
+
...Gr,
|
|
267
270
|
pageData: { type: Object },
|
|
268
271
|
renderConfig: { type: Object }
|
|
269
272
|
},
|
|
270
273
|
setup(o, { expose: n, emit: r }) {
|
|
271
|
-
const i = o, { formModel: e, exposed: f, widgetList: t, pageConfig: a, allWidgetRefList: s } =
|
|
274
|
+
const i = o, { formModel: e, exposed: f, widgetList: t, pageConfig: a, allWidgetRefList: s } = xo(i), l = Oe(() => {
|
|
272
275
|
var m, S;
|
|
273
|
-
return
|
|
274
|
-
}), u =
|
|
276
|
+
return Ie.getValue((S = (m = i.designer) == null ? void 0 : m.pageConfig) == null ? void 0 : S.layoutType);
|
|
277
|
+
}), u = Oe(() => Yr(zr(Ie.getValue(a == null ? void 0 : a.customClass), !0))), c = Oe(() => {
|
|
275
278
|
var m;
|
|
276
|
-
return (m =
|
|
279
|
+
return (m = Ie.getValue(a == null ? void 0 : a.componentWrapperClass)) == null ? void 0 : m.join(" ");
|
|
277
280
|
}), d = hn(!1), v = {};
|
|
278
|
-
|
|
281
|
+
$r.globalProvide({
|
|
279
282
|
formRefList: v,
|
|
280
283
|
globalRefList: s,
|
|
281
284
|
globalDataModel: e,
|
|
282
285
|
globalFormName: ze.VFormRender
|
|
283
286
|
// globalPageName: widgetVar.VFormRender
|
|
284
|
-
}), Tn(
|
|
287
|
+
}), Tn(An.globalConfig, i.renderConfig), Tn(An.isRenderComplete, d);
|
|
285
288
|
const h = hn(), g = (m) => {
|
|
286
|
-
const { addKeyBoardEvent: S } =
|
|
289
|
+
const { addKeyBoardEvent: S } = Io(h.value);
|
|
287
290
|
S(m);
|
|
288
291
|
}, p = () => {
|
|
289
|
-
d.value = !0, r(
|
|
292
|
+
d.value = !0, r(Vn.renderComplete);
|
|
290
293
|
};
|
|
291
294
|
return n({
|
|
292
295
|
...f,
|
|
293
296
|
componentName: ze.VFormRender
|
|
294
297
|
}), (m, S) => {
|
|
295
|
-
const T =
|
|
296
|
-
return
|
|
297
|
-
"element-loading-text": re(
|
|
298
|
-
class:
|
|
298
|
+
const T = Ir("loading");
|
|
299
|
+
return Tr((Cn(), Cr("div", {
|
|
300
|
+
"element-loading-text": re(Jr).i18nt("designer.hint.loading"),
|
|
301
|
+
class: Pr([...re(u), re(l) + "-layout", { loadingLayout: !d.value }]),
|
|
299
302
|
tabindex: "0",
|
|
300
303
|
ref_key: "taregtWrapperRef",
|
|
301
304
|
ref: h,
|
|
@@ -306,9 +309,9 @@ const Co = ["element-loading-text", "onKeyup"], Po = Wn({ componentName: ze.VFor
|
|
|
306
309
|
}, [
|
|
307
310
|
nn(m.$slots, "header", {}, void 0, !0),
|
|
308
311
|
nn(m.$slots, "default", {}, () => [
|
|
309
|
-
(Cn(),
|
|
310
|
-
default:
|
|
311
|
-
|
|
312
|
+
(Cn(), Dr(Ar, { onResolve: p }, {
|
|
313
|
+
default: Rr(() => [
|
|
314
|
+
Mr(no, {
|
|
312
315
|
designer: m.designer,
|
|
313
316
|
"widget-list": re(t),
|
|
314
317
|
model: re(e),
|
|
@@ -320,14 +323,14 @@ const Co = ["element-loading-text", "onKeyup"], Po = Wn({ componentName: ze.VFor
|
|
|
320
323
|
}))
|
|
321
324
|
], !0),
|
|
322
325
|
nn(m.$slots, "footer", {}, void 0, !0)
|
|
323
|
-
], 42,
|
|
326
|
+
], 42, To)), [
|
|
324
327
|
[T, !d.value]
|
|
325
328
|
]);
|
|
326
329
|
};
|
|
327
330
|
}
|
|
328
331
|
});
|
|
329
|
-
const
|
|
330
|
-
var gn = {},
|
|
332
|
+
const Jn = /* @__PURE__ */ ro(Po, [["__scopeId", "data-v-527104aa"]]);
|
|
333
|
+
var gn = {}, Do = {
|
|
331
334
|
get exports() {
|
|
332
335
|
return gn;
|
|
333
336
|
},
|
|
@@ -341,7 +344,7 @@ var gn = {}, Ao = {
|
|
|
341
344
|
* @author owenm <owen23355@gmail.com>
|
|
342
345
|
* @license MIT
|
|
343
346
|
*/
|
|
344
|
-
function
|
|
347
|
+
function Nn(o, n) {
|
|
345
348
|
var r = Object.keys(o);
|
|
346
349
|
if (Object.getOwnPropertySymbols) {
|
|
347
350
|
var i = Object.getOwnPropertySymbols(o);
|
|
@@ -351,12 +354,12 @@ function Mn(o, n) {
|
|
|
351
354
|
}
|
|
352
355
|
return r;
|
|
353
356
|
}
|
|
354
|
-
function
|
|
357
|
+
function Vt(o) {
|
|
355
358
|
for (var n = 1; n < arguments.length; n++) {
|
|
356
359
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
357
|
-
n % 2 ?
|
|
358
|
-
|
|
359
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) :
|
|
360
|
+
n % 2 ? Nn(Object(r), !0).forEach(function(i) {
|
|
361
|
+
Ao(o, i, r[i]);
|
|
362
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : Nn(Object(r)).forEach(function(i) {
|
|
360
363
|
Object.defineProperty(o, i, Object.getOwnPropertyDescriptor(r, i));
|
|
361
364
|
});
|
|
362
365
|
}
|
|
@@ -369,7 +372,7 @@ function We(o) {
|
|
|
369
372
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
370
373
|
}, We(o);
|
|
371
374
|
}
|
|
372
|
-
function
|
|
375
|
+
function Ao(o, n, r) {
|
|
373
376
|
return n in o ? Object.defineProperty(o, n, {
|
|
374
377
|
value: r,
|
|
375
378
|
enumerable: !0,
|
|
@@ -377,17 +380,17 @@ function Ro(o, n, r) {
|
|
|
377
380
|
writable: !0
|
|
378
381
|
}) : o[n] = r, o;
|
|
379
382
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
383
|
+
function jt() {
|
|
384
|
+
return jt = Object.assign || function(o) {
|
|
382
385
|
for (var n = 1; n < arguments.length; n++) {
|
|
383
386
|
var r = arguments[n];
|
|
384
387
|
for (var i in r)
|
|
385
388
|
Object.prototype.hasOwnProperty.call(r, i) && (o[i] = r[i]);
|
|
386
389
|
}
|
|
387
390
|
return o;
|
|
388
|
-
},
|
|
391
|
+
}, jt.apply(this, arguments);
|
|
389
392
|
}
|
|
390
|
-
function
|
|
393
|
+
function Ro(o, n) {
|
|
391
394
|
if (o == null)
|
|
392
395
|
return {};
|
|
393
396
|
var r = {}, i = Object.keys(o), e, f;
|
|
@@ -395,10 +398,10 @@ function Mo(o, n) {
|
|
|
395
398
|
e = i[f], !(n.indexOf(e) >= 0) && (r[e] = o[e]);
|
|
396
399
|
return r;
|
|
397
400
|
}
|
|
398
|
-
function
|
|
401
|
+
function Mo(o, n) {
|
|
399
402
|
if (o == null)
|
|
400
403
|
return {};
|
|
401
|
-
var r =
|
|
404
|
+
var r = Ro(o, n), i, e;
|
|
402
405
|
if (Object.getOwnPropertySymbols) {
|
|
403
406
|
var f = Object.getOwnPropertySymbols(o);
|
|
404
407
|
for (e = 0; e < f.length; e++)
|
|
@@ -406,18 +409,18 @@ function No(o, n) {
|
|
|
406
409
|
}
|
|
407
410
|
return r;
|
|
408
411
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
412
|
+
function No(o) {
|
|
413
|
+
return Fo(o) || wo(o) || jo(o) || Lo();
|
|
411
414
|
}
|
|
412
|
-
function
|
|
415
|
+
function Fo(o) {
|
|
413
416
|
if (Array.isArray(o))
|
|
414
417
|
return pn(o);
|
|
415
418
|
}
|
|
416
|
-
function
|
|
419
|
+
function wo(o) {
|
|
417
420
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
418
421
|
return Array.from(o);
|
|
419
422
|
}
|
|
420
|
-
function
|
|
423
|
+
function jo(o, n) {
|
|
421
424
|
if (o) {
|
|
422
425
|
if (typeof o == "string")
|
|
423
426
|
return pn(o, n);
|
|
@@ -434,24 +437,24 @@ function pn(o, n) {
|
|
|
434
437
|
i[r] = o[r];
|
|
435
438
|
return i;
|
|
436
439
|
}
|
|
437
|
-
function
|
|
440
|
+
function Lo() {
|
|
438
441
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
439
442
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
440
443
|
}
|
|
441
|
-
var
|
|
442
|
-
function
|
|
444
|
+
var Uo = "1.14.0";
|
|
445
|
+
function Yt(o) {
|
|
443
446
|
if (typeof window < "u" && window.navigator)
|
|
444
447
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
445
448
|
}
|
|
446
|
-
var
|
|
449
|
+
var zt = Yt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Yt(/Edge/i), Fn = Yt(/firefox/i), Te = Yt(/safari/i) && !Yt(/chrome/i) && !Yt(/android/i), Qn = Yt(/iP(ad|od|hone)/i), $o = Yt(/chrome/i) && Yt(/android/i), Zn = {
|
|
447
450
|
capture: !1,
|
|
448
451
|
passive: !1
|
|
449
452
|
};
|
|
450
453
|
function k(o, n, r) {
|
|
451
|
-
o.addEventListener(n, r, !
|
|
454
|
+
o.addEventListener(n, r, !zt && Zn);
|
|
452
455
|
}
|
|
453
456
|
function Z(o, n, r) {
|
|
454
|
-
o.removeEventListener(n, r, !
|
|
457
|
+
o.removeEventListener(n, r, !zt && Zn);
|
|
455
458
|
}
|
|
456
459
|
function Je(o, n) {
|
|
457
460
|
if (n) {
|
|
@@ -469,10 +472,10 @@ function Je(o, n) {
|
|
|
469
472
|
return !1;
|
|
470
473
|
}
|
|
471
474
|
}
|
|
472
|
-
function
|
|
475
|
+
function Go(o) {
|
|
473
476
|
return o.host && o !== document && o.host.nodeType ? o.host : o.parentNode;
|
|
474
477
|
}
|
|
475
|
-
function
|
|
478
|
+
function Kt(o, n, r, i) {
|
|
476
479
|
if (o) {
|
|
477
480
|
r = r || document;
|
|
478
481
|
do {
|
|
@@ -480,18 +483,18 @@ function Gt(o, n, r, i) {
|
|
|
480
483
|
return o;
|
|
481
484
|
if (o === r)
|
|
482
485
|
break;
|
|
483
|
-
} while (o =
|
|
486
|
+
} while (o = Go(o));
|
|
484
487
|
}
|
|
485
488
|
return null;
|
|
486
489
|
}
|
|
487
|
-
var
|
|
488
|
-
function
|
|
490
|
+
var wn = /\s+/g;
|
|
491
|
+
function dt(o, n, r) {
|
|
489
492
|
if (o && n)
|
|
490
493
|
if (o.classList)
|
|
491
494
|
o.classList[r ? "add" : "remove"](n);
|
|
492
495
|
else {
|
|
493
|
-
var i = (" " + o.className + " ").replace(
|
|
494
|
-
o.className = (i + (r ? " " + n : "")).replace(
|
|
496
|
+
var i = (" " + o.className + " ").replace(wn, " ").replace(" " + n + " ", " ");
|
|
497
|
+
o.className = (i + (r ? " " + n : "")).replace(wn, " ");
|
|
495
498
|
}
|
|
496
499
|
}
|
|
497
500
|
function U(o, n, r) {
|
|
@@ -514,7 +517,7 @@ function ee(o, n) {
|
|
|
514
517
|
var e = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
515
518
|
return e && new e(r);
|
|
516
519
|
}
|
|
517
|
-
function
|
|
520
|
+
function kn(o, n, r) {
|
|
518
521
|
if (o) {
|
|
519
522
|
var i = o.getElementsByTagName(n), e = 0, f = i.length;
|
|
520
523
|
if (r)
|
|
@@ -524,14 +527,14 @@ function Zn(o, n, r) {
|
|
|
524
527
|
}
|
|
525
528
|
return [];
|
|
526
529
|
}
|
|
527
|
-
function
|
|
530
|
+
function Ht() {
|
|
528
531
|
var o = document.scrollingElement;
|
|
529
532
|
return o || document.documentElement;
|
|
530
533
|
}
|
|
531
534
|
function ut(o, n, r, i, e) {
|
|
532
535
|
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
533
536
|
var f, t, a, s, l, u, c;
|
|
534
|
-
if (o !== window && o.parentNode && o !==
|
|
537
|
+
if (o !== window && o.parentNode && o !== Ht() ? (f = o.getBoundingClientRect(), t = f.top, a = f.left, s = f.bottom, l = f.right, u = f.height, c = f.width) : (t = 0, a = 0, s = window.innerHeight, l = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (n || r) && o !== window && (e = e || o.parentNode, !zt))
|
|
535
538
|
do
|
|
536
539
|
if (e && e.getBoundingClientRect && (U(e, "transform") !== "none" || r && U(e, "position") !== "static")) {
|
|
537
540
|
var d = e.getBoundingClientRect();
|
|
@@ -553,20 +556,20 @@ function ut(o, n, r, i, e) {
|
|
|
553
556
|
};
|
|
554
557
|
}
|
|
555
558
|
}
|
|
556
|
-
function
|
|
557
|
-
for (var i =
|
|
559
|
+
function jn(o, n, r) {
|
|
560
|
+
for (var i = kt(o, !0), e = ut(o)[n]; i; ) {
|
|
558
561
|
var f = ut(i)[r], t = void 0;
|
|
559
562
|
if (r === "top" || r === "left" ? t = e >= f : t = e <= f, !t)
|
|
560
563
|
return i;
|
|
561
|
-
if (i ===
|
|
564
|
+
if (i === Ht())
|
|
562
565
|
break;
|
|
563
|
-
i =
|
|
566
|
+
i = kt(i, !1);
|
|
564
567
|
}
|
|
565
568
|
return !1;
|
|
566
569
|
}
|
|
567
570
|
function fe(o, n, r, i) {
|
|
568
571
|
for (var e = 0, f = 0, t = o.children; f < t.length; ) {
|
|
569
|
-
if (t[f].style.display !== "none" && t[f] !==
|
|
572
|
+
if (t[f].style.display !== "none" && t[f] !== W.ghost && (i || t[f] !== W.dragged) && Kt(t[f], r.draggable, o, !1)) {
|
|
570
573
|
if (e === n)
|
|
571
574
|
return t[f];
|
|
572
575
|
e++;
|
|
@@ -576,20 +579,20 @@ function fe(o, n, r, i) {
|
|
|
576
579
|
return null;
|
|
577
580
|
}
|
|
578
581
|
function En(o, n) {
|
|
579
|
-
for (var r = o.lastElementChild; r && (r ===
|
|
582
|
+
for (var r = o.lastElementChild; r && (r === W.ghost || U(r, "display") === "none" || n && !Je(r, n)); )
|
|
580
583
|
r = r.previousElementSibling;
|
|
581
584
|
return r || null;
|
|
582
585
|
}
|
|
583
|
-
function
|
|
586
|
+
function mt(o, n) {
|
|
584
587
|
var r = 0;
|
|
585
588
|
if (!o || !o.parentNode)
|
|
586
589
|
return -1;
|
|
587
590
|
for (; o = o.previousElementSibling; )
|
|
588
|
-
o.nodeName.toUpperCase() !== "TEMPLATE" && o !==
|
|
591
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== W.clone && (!n || Je(o, n)) && r++;
|
|
589
592
|
return r;
|
|
590
593
|
}
|
|
591
|
-
function
|
|
592
|
-
var n = 0, r = 0, i =
|
|
594
|
+
function Ln(o) {
|
|
595
|
+
var n = 0, r = 0, i = Ht();
|
|
593
596
|
if (o)
|
|
594
597
|
do {
|
|
595
598
|
var e = ee(o), f = e.a, t = e.d;
|
|
@@ -597,7 +600,7 @@ function jn(o) {
|
|
|
597
600
|
} while (o !== i && (o = o.parentNode));
|
|
598
601
|
return [n, r];
|
|
599
602
|
}
|
|
600
|
-
function
|
|
603
|
+
function Ko(o, n) {
|
|
601
604
|
for (var r in o)
|
|
602
605
|
if (o.hasOwnProperty(r)) {
|
|
603
606
|
for (var i in n)
|
|
@@ -606,25 +609,25 @@ function Bo(o, n) {
|
|
|
606
609
|
}
|
|
607
610
|
return -1;
|
|
608
611
|
}
|
|
609
|
-
function
|
|
612
|
+
function kt(o, n) {
|
|
610
613
|
if (!o || !o.getBoundingClientRect)
|
|
611
|
-
return
|
|
614
|
+
return Ht();
|
|
612
615
|
var r = o, i = !1;
|
|
613
616
|
do
|
|
614
617
|
if (r.clientWidth < r.scrollWidth || r.clientHeight < r.scrollHeight) {
|
|
615
618
|
var e = U(r);
|
|
616
619
|
if (r.clientWidth < r.scrollWidth && (e.overflowX == "auto" || e.overflowX == "scroll") || r.clientHeight < r.scrollHeight && (e.overflowY == "auto" || e.overflowY == "scroll")) {
|
|
617
620
|
if (!r.getBoundingClientRect || r === document.body)
|
|
618
|
-
return
|
|
621
|
+
return Ht();
|
|
619
622
|
if (i || n)
|
|
620
623
|
return r;
|
|
621
624
|
i = !0;
|
|
622
625
|
}
|
|
623
626
|
}
|
|
624
627
|
while (r = r.parentNode);
|
|
625
|
-
return
|
|
628
|
+
return Ht();
|
|
626
629
|
}
|
|
627
|
-
function
|
|
630
|
+
function Bo(o, n) {
|
|
628
631
|
if (o && n)
|
|
629
632
|
for (var r in n)
|
|
630
633
|
n.hasOwnProperty(r) && (o[r] = n[r]);
|
|
@@ -633,47 +636,47 @@ function Wo(o, n) {
|
|
|
633
636
|
function rn(o, n) {
|
|
634
637
|
return Math.round(o.top) === Math.round(n.top) && Math.round(o.left) === Math.round(n.left) && Math.round(o.height) === Math.round(n.height) && Math.round(o.width) === Math.round(n.width);
|
|
635
638
|
}
|
|
636
|
-
var
|
|
637
|
-
function
|
|
639
|
+
var Ce;
|
|
640
|
+
function qn(o, n) {
|
|
638
641
|
return function() {
|
|
639
|
-
if (!
|
|
642
|
+
if (!Ce) {
|
|
640
643
|
var r = arguments, i = this;
|
|
641
|
-
r.length === 1 ? o.call(i, r[0]) : o.apply(i, r),
|
|
642
|
-
|
|
644
|
+
r.length === 1 ? o.call(i, r[0]) : o.apply(i, r), Ce = setTimeout(function() {
|
|
645
|
+
Ce = void 0;
|
|
643
646
|
}, n);
|
|
644
647
|
}
|
|
645
648
|
};
|
|
646
649
|
}
|
|
647
|
-
function
|
|
648
|
-
clearTimeout(
|
|
650
|
+
function Wo() {
|
|
651
|
+
clearTimeout(Ce), Ce = void 0;
|
|
649
652
|
}
|
|
650
|
-
function
|
|
653
|
+
function _n(o, n, r) {
|
|
651
654
|
o.scrollLeft += n, o.scrollTop += r;
|
|
652
655
|
}
|
|
653
656
|
function xn(o) {
|
|
654
657
|
var n = window.Polymer, r = window.jQuery || window.Zepto;
|
|
655
658
|
return n && n.dom ? n.dom(o).cloneNode(!0) : r ? r(o).clone(!0)[0] : o.cloneNode(!0);
|
|
656
659
|
}
|
|
657
|
-
function
|
|
660
|
+
function Un(o, n) {
|
|
658
661
|
U(o, "position", "absolute"), U(o, "top", n.top), U(o, "left", n.left), U(o, "width", n.width), U(o, "height", n.height);
|
|
659
662
|
}
|
|
660
663
|
function on(o) {
|
|
661
664
|
U(o, "position", ""), U(o, "top", ""), U(o, "left", ""), U(o, "width", ""), U(o, "height", "");
|
|
662
665
|
}
|
|
663
|
-
var
|
|
664
|
-
function
|
|
666
|
+
var Ct = "Sortable" + new Date().getTime();
|
|
667
|
+
function Ho() {
|
|
665
668
|
var o = [], n;
|
|
666
669
|
return {
|
|
667
670
|
captureAnimationState: function() {
|
|
668
671
|
if (o = [], !!this.options.animation) {
|
|
669
672
|
var i = [].slice.call(this.el.children);
|
|
670
673
|
i.forEach(function(e) {
|
|
671
|
-
if (!(U(e, "display") === "none" || e ===
|
|
674
|
+
if (!(U(e, "display") === "none" || e === W.ghost)) {
|
|
672
675
|
o.push({
|
|
673
676
|
target: e,
|
|
674
677
|
rect: ut(e)
|
|
675
678
|
});
|
|
676
|
-
var f =
|
|
679
|
+
var f = Vt({}, o[o.length - 1].rect);
|
|
677
680
|
if (e.thisAnimationDuration) {
|
|
678
681
|
var t = ee(e, !0);
|
|
679
682
|
t && (f.top -= t.f, f.left -= t.e);
|
|
@@ -687,7 +690,7 @@ function Vo() {
|
|
|
687
690
|
o.push(i);
|
|
688
691
|
},
|
|
689
692
|
removeAnimationState: function(i) {
|
|
690
|
-
o.splice(
|
|
693
|
+
o.splice(Ko(o, {
|
|
691
694
|
target: i
|
|
692
695
|
}), 1);
|
|
693
696
|
},
|
|
@@ -700,7 +703,7 @@ function Vo() {
|
|
|
700
703
|
var f = !1, t = 0;
|
|
701
704
|
o.forEach(function(a) {
|
|
702
705
|
var s = 0, l = a.target, u = l.fromRect, c = ut(l), d = l.prevFromRect, v = l.prevToRect, h = a.rect, g = ee(l, !0);
|
|
703
|
-
g && (c.top -= g.f, c.left -= g.e), l.toRect = c, l.thisAnimationDuration && rn(d, c) && !rn(u, c) && (h.top - c.top) / (h.left - c.left) === (u.top - c.top) / (u.left - c.left) && (s =
|
|
706
|
+
g && (c.top -= g.f, c.left -= g.e), l.toRect = c, l.thisAnimationDuration && rn(d, c) && !rn(u, c) && (h.top - c.top) / (h.left - c.left) === (u.top - c.top) / (u.left - c.left) && (s = Xo(h, d, v, e.options)), rn(c, u) || (l.prevFromRect = u, l.prevToRect = c, s || (s = e.options.animation), e.animate(l, h, c, s)), s && (f = !0, t = Math.max(t, s), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
|
|
704
707
|
l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
|
|
705
708
|
}, s), l.thisAnimationDuration = s);
|
|
706
709
|
}), clearTimeout(n), f ? n = setTimeout(function() {
|
|
@@ -711,22 +714,22 @@ function Vo() {
|
|
|
711
714
|
if (t) {
|
|
712
715
|
U(i, "transition", ""), U(i, "transform", "");
|
|
713
716
|
var a = ee(this.el), s = a && a.a, l = a && a.d, u = (e.left - f.left) / (s || 1), c = (e.top - f.top) / (l || 1);
|
|
714
|
-
i.animatingX = !!u, i.animatingY = !!c, U(i, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
717
|
+
i.animatingX = !!u, i.animatingY = !!c, U(i, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Vo(i), U(i, "transition", "transform " + t + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
715
718
|
U(i, "transition", ""), U(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
716
719
|
}, t);
|
|
717
720
|
}
|
|
718
721
|
}
|
|
719
722
|
};
|
|
720
723
|
}
|
|
721
|
-
function
|
|
724
|
+
function Vo(o) {
|
|
722
725
|
return o.offsetWidth;
|
|
723
726
|
}
|
|
724
|
-
function
|
|
727
|
+
function Xo(o, n, r, i) {
|
|
725
728
|
return Math.sqrt(Math.pow(n.top - o.top, 2) + Math.pow(n.left - o.left, 2)) / Math.sqrt(Math.pow(n.top - r.top, 2) + Math.pow(n.left - r.left, 2)) * i.animation;
|
|
726
729
|
}
|
|
727
730
|
var oe = [], an = {
|
|
728
731
|
initializeByDefault: !0
|
|
729
|
-
},
|
|
732
|
+
}, Me = {
|
|
730
733
|
mount: function(n) {
|
|
731
734
|
for (var r in an)
|
|
732
735
|
an.hasOwnProperty(r) && !(r in n) && (n[r] = an[r]);
|
|
@@ -742,9 +745,9 @@ var oe = [], an = {
|
|
|
742
745
|
};
|
|
743
746
|
var f = n + "Global";
|
|
744
747
|
oe.forEach(function(t) {
|
|
745
|
-
r[t.pluginName] && (r[t.pluginName][f] && r[t.pluginName][f](
|
|
748
|
+
r[t.pluginName] && (r[t.pluginName][f] && r[t.pluginName][f](Vt({
|
|
746
749
|
sortable: r
|
|
747
|
-
}, i)), r.options[t.pluginName] && r[t.pluginName][n] && r[t.pluginName][n](
|
|
750
|
+
}, i)), r.options[t.pluginName] && r[t.pluginName][n] && r[t.pluginName][n](Vt({
|
|
748
751
|
sortable: r
|
|
749
752
|
}, i)));
|
|
750
753
|
});
|
|
@@ -754,7 +757,7 @@ var oe = [], an = {
|
|
|
754
757
|
var s = a.pluginName;
|
|
755
758
|
if (!(!n.options[s] && !a.initializeByDefault)) {
|
|
756
759
|
var l = new a(n, r, n.options);
|
|
757
|
-
l.sortable = n, l.options = n.options, n[s] = l,
|
|
760
|
+
l.sortable = n, l.options = n.options, n[s] = l, jt(i, l.defaults);
|
|
758
761
|
}
|
|
759
762
|
});
|
|
760
763
|
for (var f in n.options)
|
|
@@ -766,7 +769,7 @@ var oe = [], an = {
|
|
|
766
769
|
getEventProperties: function(n, r) {
|
|
767
770
|
var i = {};
|
|
768
771
|
return oe.forEach(function(e) {
|
|
769
|
-
typeof e.eventProperties == "function" &&
|
|
772
|
+
typeof e.eventProperties == "function" && jt(i, e.eventProperties.call(r[e.pluginName], n));
|
|
770
773
|
}), i;
|
|
771
774
|
},
|
|
772
775
|
modifyOption: function(n, r, i) {
|
|
@@ -778,47 +781,47 @@ var oe = [], an = {
|
|
|
778
781
|
};
|
|
779
782
|
function Se(o) {
|
|
780
783
|
var n = o.sortable, r = o.rootEl, i = o.name, e = o.targetEl, f = o.cloneEl, t = o.toEl, a = o.fromEl, s = o.oldIndex, l = o.newIndex, u = o.oldDraggableIndex, c = o.newDraggableIndex, d = o.originalEvent, v = o.putSortable, h = o.extraEventProperties;
|
|
781
|
-
if (n = n || r && r[
|
|
784
|
+
if (n = n || r && r[Ct], !!n) {
|
|
782
785
|
var g, p = n.options, m = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
783
|
-
window.CustomEvent && !
|
|
786
|
+
window.CustomEvent && !zt && !Re ? g = new CustomEvent(i, {
|
|
784
787
|
bubbles: !0,
|
|
785
788
|
cancelable: !0
|
|
786
789
|
}) : (g = document.createEvent("Event"), g.initEvent(i, !0, !0)), g.to = t || r, g.from = a || r, g.item = e || r, g.clone = f, g.oldIndex = s, g.newIndex = l, g.oldDraggableIndex = u, g.newDraggableIndex = c, g.originalEvent = d, g.pullMode = v ? v.lastPutMode : void 0;
|
|
787
|
-
var S =
|
|
790
|
+
var S = Vt(Vt({}, h), Me.getEventProperties(i, n));
|
|
788
791
|
for (var T in S)
|
|
789
792
|
g[T] = S[T];
|
|
790
793
|
r && r.dispatchEvent(g), p[m] && p[m].call(n, g);
|
|
791
794
|
}
|
|
792
795
|
}
|
|
793
|
-
var
|
|
794
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = i.evt, f =
|
|
795
|
-
|
|
796
|
+
var Yo = ["evt"], Rt = function(n, r) {
|
|
797
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = i.evt, f = Mo(i, Yo);
|
|
798
|
+
Me.pluginEvent.bind(W)(n, r, Vt({
|
|
796
799
|
dragEl: A,
|
|
797
|
-
parentEl:
|
|
798
|
-
ghostEl:
|
|
800
|
+
parentEl: gt,
|
|
801
|
+
ghostEl: z,
|
|
799
802
|
rootEl: ft,
|
|
800
803
|
nextEl: te,
|
|
801
804
|
lastDownEl: He,
|
|
802
|
-
cloneEl:
|
|
803
|
-
cloneHidden:
|
|
805
|
+
cloneEl: pt,
|
|
806
|
+
cloneHidden: Zt,
|
|
804
807
|
dragStarted: be,
|
|
805
|
-
putSortable:
|
|
806
|
-
activeSortable:
|
|
808
|
+
putSortable: It,
|
|
809
|
+
activeSortable: W.active,
|
|
807
810
|
originalEvent: e,
|
|
808
811
|
oldIndex: le,
|
|
809
|
-
oldDraggableIndex:
|
|
810
|
-
newIndex:
|
|
811
|
-
newDraggableIndex:
|
|
812
|
-
hideGhostForTarget:
|
|
813
|
-
unhideGhostForTarget:
|
|
812
|
+
oldDraggableIndex: Pe,
|
|
813
|
+
newIndex: Ft,
|
|
814
|
+
newDraggableIndex: Qt,
|
|
815
|
+
hideGhostForTarget: rr,
|
|
816
|
+
unhideGhostForTarget: or,
|
|
814
817
|
cloneNowHidden: function() {
|
|
815
|
-
|
|
818
|
+
Zt = !0;
|
|
816
819
|
},
|
|
817
820
|
cloneNowShown: function() {
|
|
818
|
-
|
|
821
|
+
Zt = !1;
|
|
819
822
|
},
|
|
820
823
|
dispatchSortableEvent: function(a) {
|
|
821
|
-
|
|
824
|
+
Dt({
|
|
822
825
|
sortable: r,
|
|
823
826
|
name: a,
|
|
824
827
|
originalEvent: e
|
|
@@ -826,26 +829,26 @@ var zo = ["evt"], At = function(n, r) {
|
|
|
826
829
|
}
|
|
827
830
|
}, f));
|
|
828
831
|
};
|
|
829
|
-
function
|
|
830
|
-
Se(
|
|
831
|
-
putSortable:
|
|
832
|
-
cloneEl:
|
|
832
|
+
function Dt(o) {
|
|
833
|
+
Se(Vt({
|
|
834
|
+
putSortable: It,
|
|
835
|
+
cloneEl: pt,
|
|
833
836
|
targetEl: A,
|
|
834
837
|
rootEl: ft,
|
|
835
838
|
oldIndex: le,
|
|
836
|
-
oldDraggableIndex:
|
|
837
|
-
newIndex:
|
|
838
|
-
newDraggableIndex:
|
|
839
|
+
oldDraggableIndex: Pe,
|
|
840
|
+
newIndex: Ft,
|
|
841
|
+
newDraggableIndex: Qt
|
|
839
842
|
}, o));
|
|
840
843
|
}
|
|
841
|
-
var A,
|
|
844
|
+
var A, gt, z, ft, te, He, pt, Zt, le, Ft, Pe, Qt, Le, It, se = !1, Qe = !1, Ze = [], qt, $t, sn, ln, $n, Gn, be, ae, De, Ae = !1, Ue = !1, Ve, Tt, fn = [], mn = !1, ke = [], _e = typeof document < "u", $e = Qn, Kn = Re || zt ? "cssFloat" : "float", zo = _e && !$o && !Qn && "draggable" in document.createElement("div"), tr = function() {
|
|
842
845
|
if (_e) {
|
|
843
|
-
if (
|
|
846
|
+
if (zt)
|
|
844
847
|
return !1;
|
|
845
848
|
var o = document.createElement("x");
|
|
846
849
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
847
850
|
}
|
|
848
|
-
}(),
|
|
851
|
+
}(), er = function(n, r) {
|
|
849
852
|
var i = U(n), e = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), f = fe(n, 0, r), t = fe(n, 1, r), a = f && U(f), s = t && U(t), l = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + ut(f).width, u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + ut(t).width;
|
|
850
853
|
if (i.display === "flex")
|
|
851
854
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -855,21 +858,21 @@ var A, ht, J, ft, te, He, gt, Qt, le, Nt, Ce, Jt, je, Ot, se = !1, Qe = !1, Ze =
|
|
|
855
858
|
var c = a.float === "left" ? "left" : "right";
|
|
856
859
|
return t && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
857
860
|
}
|
|
858
|
-
return f && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || l >= e && i[
|
|
859
|
-
},
|
|
861
|
+
return f && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || l >= e && i[Kn] === "none" || t && i[Kn] === "none" && l + u > e) ? "vertical" : "horizontal";
|
|
862
|
+
}, Jo = function(n, r, i) {
|
|
860
863
|
var e = i ? n.left : n.top, f = i ? n.right : n.bottom, t = i ? n.width : n.height, a = i ? r.left : r.top, s = i ? r.right : r.bottom, l = i ? r.width : r.height;
|
|
861
864
|
return e === a || f === s || e + t / 2 === a + l / 2;
|
|
862
|
-
},
|
|
865
|
+
}, Qo = function(n, r) {
|
|
863
866
|
var i;
|
|
864
867
|
return Ze.some(function(e) {
|
|
865
|
-
var f = e[
|
|
868
|
+
var f = e[Ct].options.emptyInsertThreshold;
|
|
866
869
|
if (!(!f || En(e))) {
|
|
867
870
|
var t = ut(e), a = n >= t.left - f && n <= t.right + f, s = r >= t.top - f && r <= t.bottom + f;
|
|
868
871
|
if (a && s)
|
|
869
872
|
return i = e;
|
|
870
873
|
}
|
|
871
874
|
}), i;
|
|
872
|
-
},
|
|
875
|
+
}, nr = function(n) {
|
|
873
876
|
function r(f, t) {
|
|
874
877
|
return function(a, s, l, u) {
|
|
875
878
|
var c = a.options.group.name && s.options.group.name && a.options.group.name === s.options.group.name;
|
|
@@ -889,10 +892,10 @@ var A, ht, J, ft, te, He, gt, Qt, le, Nt, Ce, Jt, je, Ot, se = !1, Qe = !1, Ze =
|
|
|
889
892
|
(!e || We(e) != "object") && (e = {
|
|
890
893
|
name: e
|
|
891
894
|
}), i.name = e.name, i.checkPull = r(e.pull, !0), i.checkPut = r(e.put), i.revertClone = e.revertClone, n.group = i;
|
|
892
|
-
}, nr = function() {
|
|
893
|
-
!_n && J && U(J, "display", "none");
|
|
894
895
|
}, rr = function() {
|
|
895
|
-
!
|
|
896
|
+
!tr && z && U(z, "display", "none");
|
|
897
|
+
}, or = function() {
|
|
898
|
+
!tr && z && U(z, "display", "");
|
|
896
899
|
};
|
|
897
900
|
_e && document.addEventListener("click", function(o) {
|
|
898
901
|
if (Qe)
|
|
@@ -901,21 +904,21 @@ _e && document.addEventListener("click", function(o) {
|
|
|
901
904
|
var _t = function(n) {
|
|
902
905
|
if (A) {
|
|
903
906
|
n = n.touches ? n.touches[0] : n;
|
|
904
|
-
var r =
|
|
907
|
+
var r = Qo(n.clientX, n.clientY);
|
|
905
908
|
if (r) {
|
|
906
909
|
var i = {};
|
|
907
910
|
for (var e in n)
|
|
908
911
|
n.hasOwnProperty(e) && (i[e] = n[e]);
|
|
909
|
-
i.target = i.rootEl = r, i.preventDefault = void 0, i.stopPropagation = void 0, r[
|
|
912
|
+
i.target = i.rootEl = r, i.preventDefault = void 0, i.stopPropagation = void 0, r[Ct]._onDragOver(i);
|
|
910
913
|
}
|
|
911
914
|
}
|
|
912
|
-
},
|
|
913
|
-
A && A.parentNode[
|
|
915
|
+
}, Zo = function(n) {
|
|
916
|
+
A && A.parentNode[Ct]._isOutsideThisEl(n.target);
|
|
914
917
|
};
|
|
915
|
-
function
|
|
918
|
+
function W(o, n) {
|
|
916
919
|
if (!(o && o.nodeType && o.nodeType === 1))
|
|
917
920
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
|
|
918
|
-
this.el = o, this.options = n =
|
|
921
|
+
this.el = o, this.options = n = jt({}, n), o[Ct] = this;
|
|
919
922
|
var r = {
|
|
920
923
|
group: null,
|
|
921
924
|
sort: !0,
|
|
@@ -931,7 +934,7 @@ function B(o, n) {
|
|
|
931
934
|
// will be set to same as swapThreshold if default
|
|
932
935
|
removeCloneOnHide: !0,
|
|
933
936
|
direction: function() {
|
|
934
|
-
return
|
|
937
|
+
return er(o, this.options);
|
|
935
938
|
},
|
|
936
939
|
ghostClass: "sortable-ghost",
|
|
937
940
|
chosenClass: "sortable-chosen",
|
|
@@ -958,20 +961,20 @@ function B(o, n) {
|
|
|
958
961
|
x: 0,
|
|
959
962
|
y: 0
|
|
960
963
|
},
|
|
961
|
-
supportPointer:
|
|
964
|
+
supportPointer: W.supportPointer !== !1 && "PointerEvent" in window && !Te,
|
|
962
965
|
emptyInsertThreshold: 5
|
|
963
966
|
};
|
|
964
|
-
|
|
967
|
+
Me.initializePlugins(this, o, r);
|
|
965
968
|
for (var i in r)
|
|
966
969
|
!(i in n) && (n[i] = r[i]);
|
|
967
|
-
|
|
970
|
+
nr(n);
|
|
968
971
|
for (var e in this)
|
|
969
972
|
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
970
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
973
|
+
this.nativeDraggable = n.forceFallback ? !1 : zo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? k(o, "pointerdown", this._onTapStart) : (k(o, "mousedown", this._onTapStart), k(o, "touchstart", this._onTapStart)), this.nativeDraggable && (k(o, "dragover", this), k(o, "dragenter", this)), Ze.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), jt(this, Ho());
|
|
971
974
|
}
|
|
972
|
-
|
|
975
|
+
W.prototype = /** @lends Sortable.prototype */
|
|
973
976
|
{
|
|
974
|
-
constructor:
|
|
977
|
+
constructor: W,
|
|
975
978
|
_isOutsideThisEl: function(n) {
|
|
976
979
|
!this.el.contains(n) && n !== this.el && (ae = null);
|
|
977
980
|
},
|
|
@@ -981,38 +984,38 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
981
984
|
_onTapStart: function(n) {
|
|
982
985
|
if (n.cancelable) {
|
|
983
986
|
var r = this, i = this.el, e = this.options, f = e.preventOnFilter, t = n.type, a = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, s = (a || n).target, l = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || s, u = e.filter;
|
|
984
|
-
if (
|
|
985
|
-
if (le =
|
|
987
|
+
if (oa(i), !A && !(/mousedown|pointerdown/.test(t) && n.button !== 0 || e.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = Kt(s, e.draggable, i, !1), !(s && s.animated) && He !== s)) {
|
|
988
|
+
if (le = mt(s), Pe = mt(s, e.draggable), typeof u == "function") {
|
|
986
989
|
if (u.call(this, n, s, this)) {
|
|
987
|
-
|
|
990
|
+
Dt({
|
|
988
991
|
sortable: r,
|
|
989
992
|
rootEl: l,
|
|
990
993
|
name: "filter",
|
|
991
994
|
targetEl: s,
|
|
992
995
|
toEl: i,
|
|
993
996
|
fromEl: i
|
|
994
|
-
}),
|
|
997
|
+
}), Rt("filter", r, {
|
|
995
998
|
evt: n
|
|
996
999
|
}), f && n.cancelable && n.preventDefault();
|
|
997
1000
|
return;
|
|
998
1001
|
}
|
|
999
1002
|
} else if (u && (u = u.split(",").some(function(c) {
|
|
1000
|
-
if (c =
|
|
1001
|
-
return
|
|
1003
|
+
if (c = Kt(l, c.trim(), i, !1), c)
|
|
1004
|
+
return Dt({
|
|
1002
1005
|
sortable: r,
|
|
1003
1006
|
rootEl: c,
|
|
1004
1007
|
name: "filter",
|
|
1005
1008
|
targetEl: s,
|
|
1006
1009
|
fromEl: i,
|
|
1007
1010
|
toEl: i
|
|
1008
|
-
}),
|
|
1011
|
+
}), Rt("filter", r, {
|
|
1009
1012
|
evt: n
|
|
1010
1013
|
}), !0;
|
|
1011
1014
|
}), u)) {
|
|
1012
1015
|
f && n.cancelable && n.preventDefault();
|
|
1013
1016
|
return;
|
|
1014
1017
|
}
|
|
1015
|
-
e.handle && !
|
|
1018
|
+
e.handle && !Kt(l, e.handle, i, !1) || this._prepareDragStart(n, a, s);
|
|
1016
1019
|
}
|
|
1017
1020
|
}
|
|
1018
1021
|
},
|
|
@@ -1020,28 +1023,28 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1020
1023
|
var e = this, f = e.el, t = e.options, a = f.ownerDocument, s;
|
|
1021
1024
|
if (i && !A && i.parentNode === f) {
|
|
1022
1025
|
var l = ut(i);
|
|
1023
|
-
if (ft = f, A = i,
|
|
1026
|
+
if (ft = f, A = i, gt = A.parentNode, te = A.nextSibling, He = i, Le = t.group, W.dragged = A, qt = {
|
|
1024
1027
|
target: A,
|
|
1025
1028
|
clientX: (r || n).clientX,
|
|
1026
1029
|
clientY: (r || n).clientY
|
|
1027
|
-
},
|
|
1028
|
-
if (
|
|
1030
|
+
}, $n = qt.clientX - l.left, Gn = qt.clientY - l.top, this._lastX = (r || n).clientX, this._lastY = (r || n).clientY, A.style["will-change"] = "all", s = function() {
|
|
1031
|
+
if (Rt("delayEnded", e, {
|
|
1029
1032
|
evt: n
|
|
1030
|
-
}),
|
|
1033
|
+
}), W.eventCanceled) {
|
|
1031
1034
|
e._onDrop();
|
|
1032
1035
|
return;
|
|
1033
1036
|
}
|
|
1034
|
-
e._disableDelayedDragEvents(), !
|
|
1037
|
+
e._disableDelayedDragEvents(), !Fn && e.nativeDraggable && (A.draggable = !0), e._triggerDragStart(n, r), Dt({
|
|
1035
1038
|
sortable: e,
|
|
1036
1039
|
name: "choose",
|
|
1037
1040
|
originalEvent: n
|
|
1038
|
-
}),
|
|
1041
|
+
}), dt(A, t.chosenClass, !0);
|
|
1039
1042
|
}, t.ignore.split(",").forEach(function(u) {
|
|
1040
|
-
|
|
1041
|
-
}), k(a, "dragover", _t), k(a, "mousemove", _t), k(a, "touchmove", _t), k(a, "mouseup", e._onDrop), k(a, "touchend", e._onDrop), k(a, "touchcancel", e._onDrop),
|
|
1043
|
+
kn(A, u.trim(), un);
|
|
1044
|
+
}), k(a, "dragover", _t), k(a, "mousemove", _t), k(a, "touchmove", _t), k(a, "mouseup", e._onDrop), k(a, "touchend", e._onDrop), k(a, "touchcancel", e._onDrop), Fn && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), Rt("delayStart", this, {
|
|
1042
1045
|
evt: n
|
|
1043
|
-
}), t.delay && (!t.delayOnTouchOnly || r) && (!this.nativeDraggable || !(
|
|
1044
|
-
if (
|
|
1046
|
+
}), t.delay && (!t.delayOnTouchOnly || r) && (!this.nativeDraggable || !(Re || zt))) {
|
|
1047
|
+
if (W.eventCanceled) {
|
|
1045
1048
|
this._onDrop();
|
|
1046
1049
|
return;
|
|
1047
1050
|
}
|
|
@@ -1072,11 +1075,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1072
1075
|
},
|
|
1073
1076
|
_dragStarted: function(n, r) {
|
|
1074
1077
|
if (se = !1, ft && A) {
|
|
1075
|
-
|
|
1078
|
+
Rt("dragStarted", this, {
|
|
1076
1079
|
evt: r
|
|
1077
|
-
}), this.nativeDraggable && k(document, "dragover",
|
|
1080
|
+
}), this.nativeDraggable && k(document, "dragover", Zo);
|
|
1078
1081
|
var i = this.options;
|
|
1079
|
-
!n &&
|
|
1082
|
+
!n && dt(A, i.dragClass, !1), dt(A, i.ghostClass, !0), W.active = this, n && this._appendGhost(), Dt({
|
|
1080
1083
|
sortable: this,
|
|
1081
1084
|
name: "start",
|
|
1082
1085
|
originalEvent: r
|
|
@@ -1085,17 +1088,17 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1085
1088
|
this._nulling();
|
|
1086
1089
|
},
|
|
1087
1090
|
_emulateDragOver: function() {
|
|
1088
|
-
if (
|
|
1089
|
-
this._lastX =
|
|
1090
|
-
for (var n = document.elementFromPoint(
|
|
1091
|
+
if ($t) {
|
|
1092
|
+
this._lastX = $t.clientX, this._lastY = $t.clientY, rr();
|
|
1093
|
+
for (var n = document.elementFromPoint($t.clientX, $t.clientY), r = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint($t.clientX, $t.clientY), n !== r); )
|
|
1091
1094
|
r = n;
|
|
1092
|
-
if (A.parentNode[
|
|
1095
|
+
if (A.parentNode[Ct]._isOutsideThisEl(n), r)
|
|
1093
1096
|
do {
|
|
1094
|
-
if (r[
|
|
1097
|
+
if (r[Ct]) {
|
|
1095
1098
|
var i = void 0;
|
|
1096
|
-
if (i = r[
|
|
1097
|
-
clientX:
|
|
1098
|
-
clientY:
|
|
1099
|
+
if (i = r[Ct]._onDragOver({
|
|
1100
|
+
clientX: $t.clientX,
|
|
1101
|
+
clientY: $t.clientY,
|
|
1099
1102
|
target: n,
|
|
1100
1103
|
rootEl: r
|
|
1101
1104
|
}), i && !this.options.dragoverBubble)
|
|
@@ -1103,18 +1106,18 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1103
1106
|
}
|
|
1104
1107
|
n = r;
|
|
1105
1108
|
} while (r = r.parentNode);
|
|
1106
|
-
|
|
1109
|
+
or();
|
|
1107
1110
|
}
|
|
1108
1111
|
},
|
|
1109
1112
|
_onTouchMove: function(n) {
|
|
1110
1113
|
if (qt) {
|
|
1111
|
-
var r = this.options, i = r.fallbackTolerance, e = r.fallbackOffset, f = n.touches ? n.touches[0] : n, t =
|
|
1112
|
-
if (!
|
|
1114
|
+
var r = this.options, i = r.fallbackTolerance, e = r.fallbackOffset, f = n.touches ? n.touches[0] : n, t = z && ee(z, !0), a = z && t && t.a, s = z && t && t.d, l = $e && Tt && Ln(Tt), u = (f.clientX - qt.clientX + e.x) / (a || 1) + (l ? l[0] - fn[0] : 0) / (a || 1), c = (f.clientY - qt.clientY + e.y) / (s || 1) + (l ? l[1] - fn[1] : 0) / (s || 1);
|
|
1115
|
+
if (!W.active && !se) {
|
|
1113
1116
|
if (i && Math.max(Math.abs(f.clientX - this._lastX), Math.abs(f.clientY - this._lastY)) < i)
|
|
1114
1117
|
return;
|
|
1115
1118
|
this._onDragStart(n, !0);
|
|
1116
1119
|
}
|
|
1117
|
-
if (
|
|
1120
|
+
if (z) {
|
|
1118
1121
|
t ? (t.e += u - (sn || 0), t.f += c - (ln || 0)) : t = {
|
|
1119
1122
|
a: 1,
|
|
1120
1123
|
b: 0,
|
|
@@ -1124,44 +1127,44 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1124
1127
|
f: c
|
|
1125
1128
|
};
|
|
1126
1129
|
var d = "matrix(".concat(t.a, ",").concat(t.b, ",").concat(t.c, ",").concat(t.d, ",").concat(t.e, ",").concat(t.f, ")");
|
|
1127
|
-
U(
|
|
1130
|
+
U(z, "webkitTransform", d), U(z, "mozTransform", d), U(z, "msTransform", d), U(z, "transform", d), sn = u, ln = c, $t = f;
|
|
1128
1131
|
}
|
|
1129
1132
|
n.cancelable && n.preventDefault();
|
|
1130
1133
|
}
|
|
1131
1134
|
},
|
|
1132
1135
|
_appendGhost: function() {
|
|
1133
|
-
if (!
|
|
1134
|
-
var n = this.options.fallbackOnBody ? document.body : ft, r = ut(A, !0,
|
|
1135
|
-
if (
|
|
1136
|
-
for (
|
|
1137
|
-
|
|
1138
|
-
|
|
1136
|
+
if (!z) {
|
|
1137
|
+
var n = this.options.fallbackOnBody ? document.body : ft, r = ut(A, !0, $e, !0, n), i = this.options;
|
|
1138
|
+
if ($e) {
|
|
1139
|
+
for (Tt = n; U(Tt, "position") === "static" && U(Tt, "transform") === "none" && Tt !== document; )
|
|
1140
|
+
Tt = Tt.parentNode;
|
|
1141
|
+
Tt !== document.body && Tt !== document.documentElement ? (Tt === document && (Tt = Ht()), r.top += Tt.scrollTop, r.left += Tt.scrollLeft) : Tt = Ht(), fn = Ln(Tt);
|
|
1139
1142
|
}
|
|
1140
|
-
|
|
1143
|
+
z = A.cloneNode(!0), dt(z, i.ghostClass, !1), dt(z, i.fallbackClass, !0), dt(z, i.dragClass, !0), U(z, "transition", ""), U(z, "transform", ""), U(z, "box-sizing", "border-box"), U(z, "margin", 0), U(z, "top", r.top), U(z, "left", r.left), U(z, "width", r.width), U(z, "height", r.height), U(z, "opacity", "0.8"), U(z, "position", $e ? "absolute" : "fixed"), U(z, "zIndex", "100000"), U(z, "pointerEvents", "none"), W.ghost = z, n.appendChild(z), U(z, "transform-origin", $n / parseInt(z.style.width) * 100 + "% " + Gn / parseInt(z.style.height) * 100 + "%");
|
|
1141
1144
|
}
|
|
1142
1145
|
},
|
|
1143
1146
|
_onDragStart: function(n, r) {
|
|
1144
1147
|
var i = this, e = n.dataTransfer, f = i.options;
|
|
1145
|
-
if (
|
|
1148
|
+
if (Rt("dragStart", this, {
|
|
1146
1149
|
evt: n
|
|
1147
|
-
}),
|
|
1150
|
+
}), W.eventCanceled) {
|
|
1148
1151
|
this._onDrop();
|
|
1149
1152
|
return;
|
|
1150
1153
|
}
|
|
1151
|
-
|
|
1152
|
-
|
|
1154
|
+
Rt("setupClone", this), W.eventCanceled || (pt = xn(A), pt.draggable = !1, pt.style["will-change"] = "", this._hideClone(), dt(pt, this.options.chosenClass, !1), W.clone = pt), i.cloneId = Xe(function() {
|
|
1155
|
+
Rt("clone", i), !W.eventCanceled && (i.options.removeCloneOnHide || ft.insertBefore(pt, A), i._hideClone(), Dt({
|
|
1153
1156
|
sortable: i,
|
|
1154
1157
|
name: "clone"
|
|
1155
1158
|
}));
|
|
1156
|
-
}), !r &&
|
|
1159
|
+
}), !r && dt(A, f.dragClass, !0), r ? (Qe = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (Z(document, "mouseup", i._onDrop), Z(document, "touchend", i._onDrop), Z(document, "touchcancel", i._onDrop), e && (e.effectAllowed = "move", f.setData && f.setData.call(i, e, A)), k(document, "drop", i), U(A, "transform", "translateZ(0)")), se = !0, i._dragStartId = Xe(i._dragStarted.bind(i, r, n)), k(document, "selectstart", i), be = !0, Te && U(document.body, "user-select", "none");
|
|
1157
1160
|
},
|
|
1158
1161
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1159
1162
|
_onDragOver: function(n) {
|
|
1160
|
-
var r = this.el, i = n.target, e, f, t, a = this.options, s = a.group, l =
|
|
1163
|
+
var r = this.el, i = n.target, e, f, t, a = this.options, s = a.group, l = W.active, u = Le === s, c = a.sort, d = It || l, v, h = this, g = !1;
|
|
1161
1164
|
if (mn)
|
|
1162
1165
|
return;
|
|
1163
|
-
function p(
|
|
1164
|
-
|
|
1166
|
+
function p(q, nt) {
|
|
1167
|
+
Rt(q, h, Vt({
|
|
1165
1168
|
evt: n,
|
|
1166
1169
|
isOwner: u,
|
|
1167
1170
|
axis: v ? "vertical" : "horizontal",
|
|
@@ -1172,8 +1175,8 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1172
1175
|
fromSortable: d,
|
|
1173
1176
|
target: i,
|
|
1174
1177
|
completed: S,
|
|
1175
|
-
onMove: function(
|
|
1176
|
-
return
|
|
1178
|
+
onMove: function(st, lt) {
|
|
1179
|
+
return Ge(ft, r, A, e, st, ut(st), n, lt);
|
|
1177
1180
|
},
|
|
1178
1181
|
changed: T
|
|
1179
1182
|
}, nt));
|
|
@@ -1181,63 +1184,63 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1181
1184
|
function m() {
|
|
1182
1185
|
p("dragOverAnimationCapture"), h.captureAnimationState(), h !== d && d.captureAnimationState();
|
|
1183
1186
|
}
|
|
1184
|
-
function S(
|
|
1187
|
+
function S(q) {
|
|
1185
1188
|
return p("dragOverCompleted", {
|
|
1186
|
-
insertion:
|
|
1187
|
-
}),
|
|
1189
|
+
insertion: q
|
|
1190
|
+
}), q && (u ? l._hideClone() : l._showClone(h), h !== d && (dt(A, It ? It.options.ghostClass : l.options.ghostClass, !1), dt(A, a.ghostClass, !0)), It !== h && h !== W.active ? It = h : h === W.active && It && (It = null), d === h && (h._ignoreWhileAnimating = i), h.animateAll(function() {
|
|
1188
1191
|
p("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
1189
|
-
}), h !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (i === A && !A.animated || i === r && !i.animated) && (ae = null), !a.dragoverBubble && !n.rootEl && i !== document && (A.parentNode[
|
|
1192
|
+
}), h !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (i === A && !A.animated || i === r && !i.animated) && (ae = null), !a.dragoverBubble && !n.rootEl && i !== document && (A.parentNode[Ct]._isOutsideThisEl(n.target), !q && _t(n)), !a.dragoverBubble && n.stopPropagation && n.stopPropagation(), g = !0;
|
|
1190
1193
|
}
|
|
1191
1194
|
function T() {
|
|
1192
|
-
|
|
1195
|
+
Ft = mt(A), Qt = mt(A, a.draggable), Dt({
|
|
1193
1196
|
sortable: h,
|
|
1194
1197
|
name: "change",
|
|
1195
1198
|
toEl: r,
|
|
1196
|
-
newIndex:
|
|
1197
|
-
newDraggableIndex:
|
|
1199
|
+
newIndex: Ft,
|
|
1200
|
+
newDraggableIndex: Qt,
|
|
1198
1201
|
originalEvent: n
|
|
1199
1202
|
});
|
|
1200
1203
|
}
|
|
1201
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), i =
|
|
1204
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), i = Kt(i, a.draggable, r, !0), p("dragOver"), W.eventCanceled)
|
|
1202
1205
|
return g;
|
|
1203
1206
|
if (A.contains(n.target) || i.animated && i.animatingX && i.animatingY || h._ignoreWhileAnimating === i)
|
|
1204
1207
|
return S(!1);
|
|
1205
|
-
if (Qe = !1, l && !a.disabled && (u ? c || (t =
|
|
1206
|
-
if (v = this._getDirection(n, i) === "vertical", e = ut(A), p("dragOverValid"),
|
|
1208
|
+
if (Qe = !1, l && !a.disabled && (u ? c || (t = gt !== ft) : It === this || (this.lastPutMode = Le.checkPull(this, l, A, n)) && s.checkPut(this, l, A, n))) {
|
|
1209
|
+
if (v = this._getDirection(n, i) === "vertical", e = ut(A), p("dragOverValid"), W.eventCanceled)
|
|
1207
1210
|
return g;
|
|
1208
1211
|
if (t)
|
|
1209
|
-
return
|
|
1212
|
+
return gt = ft, m(), this._hideClone(), p("revert"), W.eventCanceled || (te ? ft.insertBefore(A, te) : ft.appendChild(A)), S(!0);
|
|
1210
1213
|
var x = En(r, a.draggable);
|
|
1211
|
-
if (!x ||
|
|
1214
|
+
if (!x || ta(n, v, this) && !x.animated) {
|
|
1212
1215
|
if (x === A)
|
|
1213
1216
|
return S(!1);
|
|
1214
|
-
if (x && r === n.target && (i = x), i && (f = ut(i)),
|
|
1215
|
-
return m(), r.appendChild(A),
|
|
1216
|
-
} else if (x &&
|
|
1217
|
+
if (x && r === n.target && (i = x), i && (f = ut(i)), Ge(ft, r, A, e, i, f, n, !!i) !== !1)
|
|
1218
|
+
return m(), r.appendChild(A), gt = r, T(), S(!0);
|
|
1219
|
+
} else if (x && _o(n, v, this)) {
|
|
1217
1220
|
var C = fe(r, 0, a, !0);
|
|
1218
1221
|
if (C === A)
|
|
1219
1222
|
return S(!1);
|
|
1220
|
-
if (i = C, f = ut(i),
|
|
1221
|
-
return m(), r.insertBefore(A, C),
|
|
1223
|
+
if (i = C, f = ut(i), Ge(ft, r, A, e, i, f, n, !1) !== !1)
|
|
1224
|
+
return m(), r.insertBefore(A, C), gt = r, T(), S(!0);
|
|
1222
1225
|
} else if (i.parentNode === r) {
|
|
1223
1226
|
f = ut(i);
|
|
1224
|
-
var O = 0, w, L = A.parentNode !== r, I = !
|
|
1225
|
-
ae !== i && (w = f[N],
|
|
1227
|
+
var O = 0, w, L = A.parentNode !== r, I = !Jo(A.animated && A.toRect || e, i.animated && i.toRect || f, v), N = v ? "top" : "left", F = jn(i, "top", "top") || jn(A, "top", "top"), V = F ? F.scrollTop : void 0;
|
|
1228
|
+
ae !== i && (w = f[N], Ae = !1, Ue = !I && a.invertSwap || L), O = ea(n, i, f, v, I ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ue, ae === i);
|
|
1226
1229
|
var D;
|
|
1227
1230
|
if (O !== 0) {
|
|
1228
|
-
var R =
|
|
1231
|
+
var R = mt(A);
|
|
1229
1232
|
do
|
|
1230
|
-
R -= O, D =
|
|
1231
|
-
while (D && (U(D, "display") === "none" || D ===
|
|
1233
|
+
R -= O, D = gt.children[R];
|
|
1234
|
+
while (D && (U(D, "display") === "none" || D === z));
|
|
1232
1235
|
}
|
|
1233
1236
|
if (O === 0 || D === i)
|
|
1234
1237
|
return S(!1);
|
|
1235
|
-
ae = i,
|
|
1236
|
-
var
|
|
1238
|
+
ae = i, De = O;
|
|
1239
|
+
var K = i.nextElementSibling, M = !1;
|
|
1237
1240
|
M = O === 1;
|
|
1238
|
-
var G =
|
|
1241
|
+
var G = Ge(ft, r, A, e, i, f, n, M);
|
|
1239
1242
|
if (G !== !1)
|
|
1240
|
-
return (G === 1 || G === -1) && (M = G === 1), mn = !0, setTimeout(
|
|
1243
|
+
return (G === 1 || G === -1) && (M = G === 1), mn = !0, setTimeout(qo, 30), m(), M && !K ? r.appendChild(A) : i.parentNode.insertBefore(A, M ? K : i), F && _n(F, 0, V - F.scrollTop), gt = A.parentNode, w !== void 0 && !Ue && (Ve = Math.abs(w - ut(i)[N])), T(), S(!0);
|
|
1241
1244
|
}
|
|
1242
1245
|
if (r.contains(A))
|
|
1243
1246
|
return S(!1);
|
|
@@ -1254,60 +1257,60 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1254
1257
|
},
|
|
1255
1258
|
_onDrop: function(n) {
|
|
1256
1259
|
var r = this.el, i = this.options;
|
|
1257
|
-
if (
|
|
1260
|
+
if (Ft = mt(A), Qt = mt(A, i.draggable), Rt("drop", this, {
|
|
1258
1261
|
evt: n
|
|
1259
|
-
}),
|
|
1262
|
+
}), gt = A && A.parentNode, Ft = mt(A), Qt = mt(A, i.draggable), W.eventCanceled) {
|
|
1260
1263
|
this._nulling();
|
|
1261
1264
|
return;
|
|
1262
1265
|
}
|
|
1263
|
-
se = !1,
|
|
1266
|
+
se = !1, Ue = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yn(this.cloneId), yn(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(r, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && U(document.body, "user-select", ""), U(A, "transform", ""), n && (be && (n.cancelable && n.preventDefault(), !i.dropBubble && n.stopPropagation()), z && z.parentNode && z.parentNode.removeChild(z), (ft === gt || It && It.lastPutMode !== "clone") && pt && pt.parentNode && pt.parentNode.removeChild(pt), A && (this.nativeDraggable && Z(A, "dragend", this), un(A), A.style["will-change"] = "", be && !se && dt(A, It ? It.options.ghostClass : this.options.ghostClass, !1), dt(A, this.options.chosenClass, !1), Dt({
|
|
1264
1267
|
sortable: this,
|
|
1265
1268
|
name: "unchoose",
|
|
1266
|
-
toEl:
|
|
1269
|
+
toEl: gt,
|
|
1267
1270
|
newIndex: null,
|
|
1268
1271
|
newDraggableIndex: null,
|
|
1269
1272
|
originalEvent: n
|
|
1270
|
-
}), ft !==
|
|
1271
|
-
rootEl:
|
|
1273
|
+
}), ft !== gt ? (Ft >= 0 && (Dt({
|
|
1274
|
+
rootEl: gt,
|
|
1272
1275
|
name: "add",
|
|
1273
|
-
toEl:
|
|
1276
|
+
toEl: gt,
|
|
1274
1277
|
fromEl: ft,
|
|
1275
1278
|
originalEvent: n
|
|
1276
|
-
}),
|
|
1279
|
+
}), Dt({
|
|
1277
1280
|
sortable: this,
|
|
1278
1281
|
name: "remove",
|
|
1279
|
-
toEl:
|
|
1282
|
+
toEl: gt,
|
|
1280
1283
|
originalEvent: n
|
|
1281
|
-
}),
|
|
1282
|
-
rootEl:
|
|
1284
|
+
}), Dt({
|
|
1285
|
+
rootEl: gt,
|
|
1283
1286
|
name: "sort",
|
|
1284
|
-
toEl:
|
|
1287
|
+
toEl: gt,
|
|
1285
1288
|
fromEl: ft,
|
|
1286
1289
|
originalEvent: n
|
|
1287
|
-
}),
|
|
1290
|
+
}), Dt({
|
|
1288
1291
|
sortable: this,
|
|
1289
1292
|
name: "sort",
|
|
1290
|
-
toEl:
|
|
1293
|
+
toEl: gt,
|
|
1291
1294
|
originalEvent: n
|
|
1292
|
-
})),
|
|
1295
|
+
})), It && It.save()) : Ft !== le && Ft >= 0 && (Dt({
|
|
1293
1296
|
sortable: this,
|
|
1294
1297
|
name: "update",
|
|
1295
|
-
toEl:
|
|
1298
|
+
toEl: gt,
|
|
1296
1299
|
originalEvent: n
|
|
1297
|
-
}),
|
|
1300
|
+
}), Dt({
|
|
1298
1301
|
sortable: this,
|
|
1299
1302
|
name: "sort",
|
|
1300
|
-
toEl:
|
|
1303
|
+
toEl: gt,
|
|
1301
1304
|
originalEvent: n
|
|
1302
|
-
})),
|
|
1305
|
+
})), W.active && ((Ft == null || Ft === -1) && (Ft = le, Qt = Pe), Dt({
|
|
1303
1306
|
sortable: this,
|
|
1304
1307
|
name: "end",
|
|
1305
|
-
toEl:
|
|
1308
|
+
toEl: gt,
|
|
1306
1309
|
originalEvent: n
|
|
1307
1310
|
}), this.save()))), this._nulling();
|
|
1308
1311
|
},
|
|
1309
1312
|
_nulling: function() {
|
|
1310
|
-
|
|
1313
|
+
Rt("nulling", this), ft = A = gt = z = te = pt = He = Zt = qt = $t = be = Ft = Qt = le = Pe = ae = De = It = Le = W.dragged = W.ghost = W.clone = W.active = null, ke.forEach(function(n) {
|
|
1311
1314
|
n.checked = !0;
|
|
1312
1315
|
}), ke.length = sn = ln = 0;
|
|
1313
1316
|
},
|
|
@@ -1319,7 +1322,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1319
1322
|
break;
|
|
1320
1323
|
case "dragenter":
|
|
1321
1324
|
case "dragover":
|
|
1322
|
-
A && (this._onDragOver(n),
|
|
1325
|
+
A && (this._onDragOver(n), ko(n));
|
|
1323
1326
|
break;
|
|
1324
1327
|
case "selectstart":
|
|
1325
1328
|
n.preventDefault();
|
|
@@ -1332,7 +1335,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1332
1335
|
*/
|
|
1333
1336
|
toArray: function() {
|
|
1334
1337
|
for (var n = [], r, i = this.el.children, e = 0, f = i.length, t = this.options; e < f; e++)
|
|
1335
|
-
r = i[e],
|
|
1338
|
+
r = i[e], Kt(r, t.draggable, this.el, !1) && n.push(r.getAttribute(t.dataIdAttr) || ra(r));
|
|
1336
1339
|
return n;
|
|
1337
1340
|
},
|
|
1338
1341
|
/**
|
|
@@ -1343,7 +1346,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1343
1346
|
var i = {}, e = this.el;
|
|
1344
1347
|
this.toArray().forEach(function(f, t) {
|
|
1345
1348
|
var a = e.children[t];
|
|
1346
|
-
|
|
1349
|
+
Kt(a, this.options.draggable, e, !1) && (i[f] = a);
|
|
1347
1350
|
}, this), r && this.captureAnimationState(), n.forEach(function(f) {
|
|
1348
1351
|
i[f] && (e.removeChild(i[f]), e.appendChild(i[f]));
|
|
1349
1352
|
}), r && this.animateAll();
|
|
@@ -1362,7 +1365,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1362
1365
|
* @returns {HTMLElement|null}
|
|
1363
1366
|
*/
|
|
1364
1367
|
closest: function(n, r) {
|
|
1365
|
-
return
|
|
1368
|
+
return Kt(n, r || this.options.draggable, this.el, !1);
|
|
1366
1369
|
},
|
|
1367
1370
|
/**
|
|
1368
1371
|
* Set/get option
|
|
@@ -1374,24 +1377,24 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1374
1377
|
var i = this.options;
|
|
1375
1378
|
if (r === void 0)
|
|
1376
1379
|
return i[n];
|
|
1377
|
-
var e =
|
|
1378
|
-
typeof e < "u" ? i[n] = e : i[n] = r, n === "group" &&
|
|
1380
|
+
var e = Me.modifyOption(this, n, r);
|
|
1381
|
+
typeof e < "u" ? i[n] = e : i[n] = r, n === "group" && nr(i);
|
|
1379
1382
|
},
|
|
1380
1383
|
/**
|
|
1381
1384
|
* Destroy
|
|
1382
1385
|
*/
|
|
1383
1386
|
destroy: function() {
|
|
1384
|
-
|
|
1387
|
+
Rt("destroy", this);
|
|
1385
1388
|
var n = this.el;
|
|
1386
|
-
n[
|
|
1389
|
+
n[Ct] = null, Z(n, "mousedown", this._onTapStart), Z(n, "touchstart", this._onTapStart), Z(n, "pointerdown", this._onTapStart), this.nativeDraggable && (Z(n, "dragover", this), Z(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(r) {
|
|
1387
1390
|
r.removeAttribute("draggable");
|
|
1388
1391
|
}), this._onDrop(), this._disableDelayedDragEvents(), Ze.splice(Ze.indexOf(this.el), 1), this.el = n = null;
|
|
1389
1392
|
},
|
|
1390
1393
|
_hideClone: function() {
|
|
1391
|
-
if (!
|
|
1392
|
-
if (
|
|
1394
|
+
if (!Zt) {
|
|
1395
|
+
if (Rt("hideClone", this), W.eventCanceled)
|
|
1393
1396
|
return;
|
|
1394
|
-
U(
|
|
1397
|
+
U(pt, "display", "none"), this.options.removeCloneOnHide && pt.parentNode && pt.parentNode.removeChild(pt), Zt = !0;
|
|
1395
1398
|
}
|
|
1396
1399
|
},
|
|
1397
1400
|
_showClone: function(n) {
|
|
@@ -1399,19 +1402,19 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
1399
1402
|
this._hideClone();
|
|
1400
1403
|
return;
|
|
1401
1404
|
}
|
|
1402
|
-
if (
|
|
1403
|
-
if (
|
|
1405
|
+
if (Zt) {
|
|
1406
|
+
if (Rt("showClone", this), W.eventCanceled)
|
|
1404
1407
|
return;
|
|
1405
|
-
A.parentNode == ft && !this.options.group.revertClone ? ft.insertBefore(
|
|
1408
|
+
A.parentNode == ft && !this.options.group.revertClone ? ft.insertBefore(pt, A) : te ? ft.insertBefore(pt, te) : ft.appendChild(pt), this.options.group.revertClone && this.animate(A, pt), U(pt, "display", ""), Zt = !1;
|
|
1406
1409
|
}
|
|
1407
1410
|
}
|
|
1408
1411
|
};
|
|
1409
|
-
function
|
|
1412
|
+
function ko(o) {
|
|
1410
1413
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1411
1414
|
}
|
|
1412
|
-
function
|
|
1413
|
-
var s, l = o[
|
|
1414
|
-
return window.CustomEvent && !
|
|
1415
|
+
function Ge(o, n, r, i, e, f, t, a) {
|
|
1416
|
+
var s, l = o[Ct], u = l.options.onMove, c;
|
|
1417
|
+
return window.CustomEvent && !zt && !Re ? s = new CustomEvent("move", {
|
|
1415
1418
|
bubbles: !0,
|
|
1416
1419
|
cancelable: !0
|
|
1417
1420
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = n, s.from = o, s.dragged = r, s.draggedRect = i, s.related = e || n, s.relatedRect = f || ut(n), s.willInsertAfter = a, s.originalEvent = t, o.dispatchEvent(s), u && (c = u.call(l, s, t)), c;
|
|
@@ -1419,39 +1422,39 @@ function $e(o, n, r, i, e, f, t, a) {
|
|
|
1419
1422
|
function un(o) {
|
|
1420
1423
|
o.draggable = !1;
|
|
1421
1424
|
}
|
|
1422
|
-
function
|
|
1425
|
+
function qo() {
|
|
1423
1426
|
mn = !1;
|
|
1424
1427
|
}
|
|
1425
|
-
function
|
|
1428
|
+
function _o(o, n, r) {
|
|
1426
1429
|
var i = ut(fe(r.el, 0, r.options, !0)), e = 10;
|
|
1427
1430
|
return n ? o.clientX < i.left - e || o.clientY < i.top && o.clientX < i.right : o.clientY < i.top - e || o.clientY < i.bottom && o.clientX < i.left;
|
|
1428
1431
|
}
|
|
1429
|
-
function
|
|
1432
|
+
function ta(o, n, r) {
|
|
1430
1433
|
var i = ut(En(r.el, r.options.draggable)), e = 10;
|
|
1431
1434
|
return n ? o.clientX > i.right + e || o.clientX <= i.right && o.clientY > i.bottom && o.clientX >= i.left : o.clientX > i.right && o.clientY > i.top || o.clientX <= i.right && o.clientY > i.bottom + e;
|
|
1432
1435
|
}
|
|
1433
|
-
function
|
|
1436
|
+
function ea(o, n, r, i, e, f, t, a) {
|
|
1434
1437
|
var s = i ? o.clientY : o.clientX, l = i ? r.height : r.width, u = i ? r.top : r.left, c = i ? r.bottom : r.right, d = !1;
|
|
1435
1438
|
if (!t) {
|
|
1436
1439
|
if (a && Ve < l * e) {
|
|
1437
|
-
if (!
|
|
1440
|
+
if (!Ae && (De === 1 ? s > u + l * f / 2 : s < c - l * f / 2) && (Ae = !0), Ae)
|
|
1438
1441
|
d = !0;
|
|
1439
|
-
else if (
|
|
1440
|
-
return -
|
|
1442
|
+
else if (De === 1 ? s < u + Ve : s > c - Ve)
|
|
1443
|
+
return -De;
|
|
1441
1444
|
} else if (s > u + l * (1 - e) / 2 && s < c - l * (1 - e) / 2)
|
|
1442
|
-
return
|
|
1445
|
+
return na(n);
|
|
1443
1446
|
}
|
|
1444
1447
|
return d = d || t, d && (s < u + l * f / 2 || s > c - l * f / 2) ? s > u + l / 2 ? 1 : -1 : 0;
|
|
1445
1448
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1449
|
+
function na(o) {
|
|
1450
|
+
return mt(A) < mt(o) ? 1 : -1;
|
|
1448
1451
|
}
|
|
1449
|
-
function
|
|
1452
|
+
function ra(o) {
|
|
1450
1453
|
for (var n = o.tagName + o.className + o.src + o.href + o.textContent, r = n.length, i = 0; r--; )
|
|
1451
1454
|
i += n.charCodeAt(r);
|
|
1452
1455
|
return i.toString(36);
|
|
1453
1456
|
}
|
|
1454
|
-
function
|
|
1457
|
+
function oa(o) {
|
|
1455
1458
|
ke.length = 0;
|
|
1456
1459
|
for (var n = o.getElementsByTagName("input"), r = n.length; r--; ) {
|
|
1457
1460
|
var i = n[r];
|
|
@@ -1465,45 +1468,45 @@ function yn(o) {
|
|
|
1465
1468
|
return clearTimeout(o);
|
|
1466
1469
|
}
|
|
1467
1470
|
_e && k(document, "touchmove", function(o) {
|
|
1468
|
-
(
|
|
1471
|
+
(W.active || se) && o.cancelable && o.preventDefault();
|
|
1469
1472
|
});
|
|
1470
|
-
|
|
1473
|
+
W.utils = {
|
|
1471
1474
|
on: k,
|
|
1472
1475
|
off: Z,
|
|
1473
1476
|
css: U,
|
|
1474
|
-
find:
|
|
1477
|
+
find: kn,
|
|
1475
1478
|
is: function(n, r) {
|
|
1476
|
-
return !!
|
|
1479
|
+
return !!Kt(n, r, n, !1);
|
|
1477
1480
|
},
|
|
1478
|
-
extend:
|
|
1479
|
-
throttle:
|
|
1480
|
-
closest:
|
|
1481
|
-
toggleClass:
|
|
1481
|
+
extend: Bo,
|
|
1482
|
+
throttle: qn,
|
|
1483
|
+
closest: Kt,
|
|
1484
|
+
toggleClass: dt,
|
|
1482
1485
|
clone: xn,
|
|
1483
|
-
index:
|
|
1486
|
+
index: mt,
|
|
1484
1487
|
nextTick: Xe,
|
|
1485
1488
|
cancelNextTick: yn,
|
|
1486
|
-
detectDirection:
|
|
1489
|
+
detectDirection: er,
|
|
1487
1490
|
getChild: fe
|
|
1488
1491
|
};
|
|
1489
|
-
|
|
1490
|
-
return o[
|
|
1492
|
+
W.get = function(o) {
|
|
1493
|
+
return o[Ct];
|
|
1491
1494
|
};
|
|
1492
|
-
|
|
1495
|
+
W.mount = function() {
|
|
1493
1496
|
for (var o = arguments.length, n = new Array(o), r = 0; r < o; r++)
|
|
1494
1497
|
n[r] = arguments[r];
|
|
1495
1498
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(i) {
|
|
1496
1499
|
if (!i.prototype || !i.prototype.constructor)
|
|
1497
1500
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
1498
|
-
i.utils && (
|
|
1501
|
+
i.utils && (W.utils = Vt(Vt({}, W.utils), i.utils)), Me.mount(i);
|
|
1499
1502
|
});
|
|
1500
1503
|
};
|
|
1501
|
-
|
|
1502
|
-
return new
|
|
1504
|
+
W.create = function(o, n) {
|
|
1505
|
+
return new W(o, n);
|
|
1503
1506
|
};
|
|
1504
|
-
|
|
1505
|
-
var
|
|
1506
|
-
function
|
|
1507
|
+
W.version = Uo;
|
|
1508
|
+
var Et = [], Ee, Sn, bn = !1, cn, dn, qe, xe;
|
|
1509
|
+
function aa() {
|
|
1507
1510
|
function o() {
|
|
1508
1511
|
this.defaults = {
|
|
1509
1512
|
scroll: !0,
|
|
@@ -1525,67 +1528,67 @@ function ia() {
|
|
|
1525
1528
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1526
1529
|
},
|
|
1527
1530
|
drop: function() {
|
|
1528
|
-
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1531
|
+
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Bn(), Ye(), Wo();
|
|
1529
1532
|
},
|
|
1530
1533
|
nulling: function() {
|
|
1531
|
-
qe = Sn = Ee = bn = xe = cn = dn = null,
|
|
1534
|
+
qe = Sn = Ee = bn = xe = cn = dn = null, Et.length = 0;
|
|
1532
1535
|
},
|
|
1533
1536
|
_handleFallbackAutoScroll: function(r) {
|
|
1534
1537
|
this._handleAutoScroll(r, !0);
|
|
1535
1538
|
},
|
|
1536
1539
|
_handleAutoScroll: function(r, i) {
|
|
1537
1540
|
var e = this, f = (r.touches ? r.touches[0] : r).clientX, t = (r.touches ? r.touches[0] : r).clientY, a = document.elementFromPoint(f, t);
|
|
1538
|
-
if (qe = r, i || this.options.forceAutoScrollFallback ||
|
|
1541
|
+
if (qe = r, i || this.options.forceAutoScrollFallback || Re || zt || Te) {
|
|
1539
1542
|
vn(r, this.options, a, i);
|
|
1540
|
-
var s =
|
|
1541
|
-
bn && (!xe || f !== cn || t !== dn) && (xe &&
|
|
1542
|
-
var l =
|
|
1543
|
+
var s = kt(a, !0);
|
|
1544
|
+
bn && (!xe || f !== cn || t !== dn) && (xe && Bn(), xe = setInterval(function() {
|
|
1545
|
+
var l = kt(document.elementFromPoint(f, t), !0);
|
|
1543
1546
|
l !== s && (s = l, Ye()), vn(r, e.options, l, i);
|
|
1544
1547
|
}, 10), cn = f, dn = t);
|
|
1545
1548
|
} else {
|
|
1546
|
-
if (!this.options.bubbleScroll ||
|
|
1549
|
+
if (!this.options.bubbleScroll || kt(a, !0) === Ht()) {
|
|
1547
1550
|
Ye();
|
|
1548
1551
|
return;
|
|
1549
1552
|
}
|
|
1550
|
-
vn(r, this.options,
|
|
1553
|
+
vn(r, this.options, kt(a, !1), !1);
|
|
1551
1554
|
}
|
|
1552
1555
|
}
|
|
1553
|
-
},
|
|
1556
|
+
}, jt(o, {
|
|
1554
1557
|
pluginName: "scroll",
|
|
1555
1558
|
initializeByDefault: !0
|
|
1556
1559
|
});
|
|
1557
1560
|
}
|
|
1558
1561
|
function Ye() {
|
|
1559
|
-
|
|
1562
|
+
Et.forEach(function(o) {
|
|
1560
1563
|
clearInterval(o.pid);
|
|
1561
|
-
}),
|
|
1564
|
+
}), Et = [];
|
|
1562
1565
|
}
|
|
1563
|
-
function
|
|
1566
|
+
function Bn() {
|
|
1564
1567
|
clearInterval(xe);
|
|
1565
1568
|
}
|
|
1566
|
-
var vn =
|
|
1569
|
+
var vn = qn(function(o, n, r, i) {
|
|
1567
1570
|
if (n.scroll) {
|
|
1568
|
-
var e = (o.touches ? o.touches[0] : o).clientX, f = (o.touches ? o.touches[0] : o).clientY, t = n.scrollSensitivity, a = n.scrollSpeed, s =
|
|
1569
|
-
Sn !== r && (Sn = r, Ye(), Ee = n.scroll, u = n.scrollFn, Ee === !0 && (Ee =
|
|
1571
|
+
var e = (o.touches ? o.touches[0] : o).clientX, f = (o.touches ? o.touches[0] : o).clientY, t = n.scrollSensitivity, a = n.scrollSpeed, s = Ht(), l = !1, u;
|
|
1572
|
+
Sn !== r && (Sn = r, Ye(), Ee = n.scroll, u = n.scrollFn, Ee === !0 && (Ee = kt(r, !0)));
|
|
1570
1573
|
var c = 0, d = Ee;
|
|
1571
1574
|
do {
|
|
1572
1575
|
var v = d, h = ut(v), g = h.top, p = h.bottom, m = h.left, S = h.right, T = h.width, x = h.height, C = void 0, O = void 0, w = v.scrollWidth, L = v.scrollHeight, I = U(v), N = v.scrollLeft, F = v.scrollTop;
|
|
1573
1576
|
v === s ? (C = T < w && (I.overflowX === "auto" || I.overflowX === "scroll" || I.overflowX === "visible"), O = x < L && (I.overflowY === "auto" || I.overflowY === "scroll" || I.overflowY === "visible")) : (C = T < w && (I.overflowX === "auto" || I.overflowX === "scroll"), O = x < L && (I.overflowY === "auto" || I.overflowY === "scroll"));
|
|
1574
1577
|
var V = C && (Math.abs(S - e) <= t && N + T < w) - (Math.abs(m - e) <= t && !!N), D = O && (Math.abs(p - f) <= t && F + x < L) - (Math.abs(g - f) <= t && !!F);
|
|
1575
|
-
if (!
|
|
1578
|
+
if (!Et[c])
|
|
1576
1579
|
for (var R = 0; R <= c; R++)
|
|
1577
|
-
|
|
1578
|
-
(
|
|
1579
|
-
i && this.layer === 0 &&
|
|
1580
|
-
var
|
|
1581
|
-
typeof u == "function" && u.call(
|
|
1580
|
+
Et[R] || (Et[R] = {});
|
|
1581
|
+
(Et[c].vx != V || Et[c].vy != D || Et[c].el !== v) && (Et[c].el = v, Et[c].vx = V, Et[c].vy = D, clearInterval(Et[c].pid), (V != 0 || D != 0) && (l = !0, Et[c].pid = setInterval(function() {
|
|
1582
|
+
i && this.layer === 0 && W.active._onTouchMove(qe);
|
|
1583
|
+
var K = Et[this.layer].vy ? Et[this.layer].vy * a : 0, M = Et[this.layer].vx ? Et[this.layer].vx * a : 0;
|
|
1584
|
+
typeof u == "function" && u.call(W.dragged.parentNode[Ct], M, K, o, qe, Et[this.layer].el) !== "continue" || _n(Et[this.layer].el, M, K);
|
|
1582
1585
|
}.bind({
|
|
1583
1586
|
layer: c
|
|
1584
1587
|
}), 24))), c++;
|
|
1585
|
-
} while (n.bubbleScroll && d !== s && (d =
|
|
1588
|
+
} while (n.bubbleScroll && d !== s && (d = kt(d, !1)));
|
|
1586
1589
|
bn = l;
|
|
1587
1590
|
}
|
|
1588
|
-
}, 30),
|
|
1591
|
+
}, 30), ar = function(n) {
|
|
1589
1592
|
var r = n.originalEvent, i = n.putSortable, e = n.dragEl, f = n.activeSortable, t = n.dispatchSortableEvent, a = n.hideGhostForTarget, s = n.unhideGhostForTarget;
|
|
1590
1593
|
if (r) {
|
|
1591
1594
|
var l = i || f;
|
|
@@ -1611,9 +1614,9 @@ On.prototype = {
|
|
|
1611
1614
|
var e = fe(this.sortable.el, this.startIndex, this.options);
|
|
1612
1615
|
e ? this.sortable.el.insertBefore(r, e) : this.sortable.el.appendChild(r), this.sortable.animateAll(), i && i.animateAll();
|
|
1613
1616
|
},
|
|
1614
|
-
drop:
|
|
1617
|
+
drop: ar
|
|
1615
1618
|
};
|
|
1616
|
-
|
|
1619
|
+
jt(On, {
|
|
1617
1620
|
pluginName: "revertOnSpill"
|
|
1618
1621
|
});
|
|
1619
1622
|
function In() {
|
|
@@ -1623,13 +1626,13 @@ In.prototype = {
|
|
|
1623
1626
|
var r = n.dragEl, i = n.putSortable, e = i || this.sortable;
|
|
1624
1627
|
e.captureAnimationState(), r.parentNode && r.parentNode.removeChild(r), e.animateAll();
|
|
1625
1628
|
},
|
|
1626
|
-
drop:
|
|
1629
|
+
drop: ar
|
|
1627
1630
|
};
|
|
1628
|
-
|
|
1631
|
+
jt(In, {
|
|
1629
1632
|
pluginName: "removeOnSpill"
|
|
1630
1633
|
});
|
|
1631
|
-
var
|
|
1632
|
-
function
|
|
1634
|
+
var wt;
|
|
1635
|
+
function ia() {
|
|
1633
1636
|
function o() {
|
|
1634
1637
|
this.defaults = {
|
|
1635
1638
|
swapClass: "sortable-swap-highlight"
|
|
@@ -1638,41 +1641,41 @@ function sa() {
|
|
|
1638
1641
|
return o.prototype = {
|
|
1639
1642
|
dragStart: function(r) {
|
|
1640
1643
|
var i = r.dragEl;
|
|
1641
|
-
|
|
1644
|
+
wt = i;
|
|
1642
1645
|
},
|
|
1643
1646
|
dragOverValid: function(r) {
|
|
1644
1647
|
var i = r.completed, e = r.target, f = r.onMove, t = r.activeSortable, a = r.changed, s = r.cancel;
|
|
1645
1648
|
if (t.options.swap) {
|
|
1646
1649
|
var l = this.sortable.el, u = this.options;
|
|
1647
1650
|
if (e && e !== l) {
|
|
1648
|
-
var c =
|
|
1649
|
-
f(e) !== !1 ? (
|
|
1651
|
+
var c = wt;
|
|
1652
|
+
f(e) !== !1 ? (dt(e, u.swapClass, !0), wt = e) : wt = null, c && c !== wt && dt(c, u.swapClass, !1);
|
|
1650
1653
|
}
|
|
1651
1654
|
a(), i(!0), s();
|
|
1652
1655
|
}
|
|
1653
1656
|
},
|
|
1654
1657
|
drop: function(r) {
|
|
1655
1658
|
var i = r.activeSortable, e = r.putSortable, f = r.dragEl, t = e || this.sortable, a = this.options;
|
|
1656
|
-
|
|
1659
|
+
wt && dt(wt, a.swapClass, !1), wt && (a.swap || e && e.options.swap) && f !== wt && (t.captureAnimationState(), t !== i && i.captureAnimationState(), sa(f, wt), t.animateAll(), t !== i && i.animateAll());
|
|
1657
1660
|
},
|
|
1658
1661
|
nulling: function() {
|
|
1659
|
-
|
|
1662
|
+
wt = null;
|
|
1660
1663
|
}
|
|
1661
|
-
},
|
|
1664
|
+
}, jt(o, {
|
|
1662
1665
|
pluginName: "swap",
|
|
1663
1666
|
eventProperties: function() {
|
|
1664
1667
|
return {
|
|
1665
|
-
swapItem:
|
|
1668
|
+
swapItem: wt
|
|
1666
1669
|
};
|
|
1667
1670
|
}
|
|
1668
1671
|
});
|
|
1669
1672
|
}
|
|
1670
|
-
function
|
|
1673
|
+
function sa(o, n) {
|
|
1671
1674
|
var r = o.parentNode, i = n.parentNode, e, f;
|
|
1672
|
-
!r || !i || r.isEqualNode(n) || i.isEqualNode(o) || (e =
|
|
1675
|
+
!r || !i || r.isEqualNode(n) || i.isEqualNode(o) || (e = mt(o), f = mt(n), r.isEqualNode(i) && e < f && f++, r.insertBefore(n, r.children[e]), i.insertBefore(o, i.children[f]));
|
|
1673
1676
|
}
|
|
1674
|
-
var
|
|
1675
|
-
function
|
|
1677
|
+
var Y = [], Nt = [], pe, Gt, me = !1, Mt = !1, ie = !1, ot, ye, Ke;
|
|
1678
|
+
function la() {
|
|
1676
1679
|
function o(n) {
|
|
1677
1680
|
for (var r in this)
|
|
1678
1681
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
@@ -1681,7 +1684,7 @@ function fa() {
|
|
|
1681
1684
|
multiDragKey: null,
|
|
1682
1685
|
setData: function(e, f) {
|
|
1683
1686
|
var t = "";
|
|
1684
|
-
|
|
1687
|
+
Y.length && Gt === n ? Y.forEach(function(a, s) {
|
|
1685
1688
|
t += (s ? ", " : "") + a.textContent;
|
|
1686
1689
|
}) : t = f.textContent, e.setData("Text", t);
|
|
1687
1690
|
}
|
|
@@ -1695,38 +1698,38 @@ function fa() {
|
|
|
1695
1698
|
ot = i;
|
|
1696
1699
|
},
|
|
1697
1700
|
delayEnded: function() {
|
|
1698
|
-
this.isMultiDrag = ~
|
|
1701
|
+
this.isMultiDrag = ~Y.indexOf(ot);
|
|
1699
1702
|
},
|
|
1700
1703
|
setupClone: function(r) {
|
|
1701
1704
|
var i = r.sortable, e = r.cancel;
|
|
1702
1705
|
if (this.isMultiDrag) {
|
|
1703
|
-
for (var f = 0; f <
|
|
1704
|
-
|
|
1706
|
+
for (var f = 0; f < Y.length; f++)
|
|
1707
|
+
Nt.push(xn(Y[f])), Nt[f].sortableIndex = Y[f].sortableIndex, Nt[f].draggable = !1, Nt[f].style["will-change"] = "", dt(Nt[f], this.options.selectedClass, !1), Y[f] === ot && dt(Nt[f], this.options.chosenClass, !1);
|
|
1705
1708
|
i._hideClone(), e();
|
|
1706
1709
|
}
|
|
1707
1710
|
},
|
|
1708
1711
|
clone: function(r) {
|
|
1709
1712
|
var i = r.sortable, e = r.rootEl, f = r.dispatchSortableEvent, t = r.cancel;
|
|
1710
|
-
this.isMultiDrag && (this.options.removeCloneOnHide ||
|
|
1713
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || Y.length && Gt === i && (Wn(!0, e), f("clone"), t()));
|
|
1711
1714
|
},
|
|
1712
1715
|
showClone: function(r) {
|
|
1713
1716
|
var i = r.cloneNowShown, e = r.rootEl, f = r.cancel;
|
|
1714
|
-
this.isMultiDrag && (
|
|
1717
|
+
this.isMultiDrag && (Wn(!1, e), Nt.forEach(function(t) {
|
|
1715
1718
|
U(t, "display", "");
|
|
1716
|
-
}), i(),
|
|
1719
|
+
}), i(), Ke = !1, f());
|
|
1717
1720
|
},
|
|
1718
1721
|
hideClone: function(r) {
|
|
1719
1722
|
var i = this;
|
|
1720
1723
|
r.sortable;
|
|
1721
1724
|
var e = r.cloneNowHidden, f = r.cancel;
|
|
1722
|
-
this.isMultiDrag && (
|
|
1725
|
+
this.isMultiDrag && (Nt.forEach(function(t) {
|
|
1723
1726
|
U(t, "display", "none"), i.options.removeCloneOnHide && t.parentNode && t.parentNode.removeChild(t);
|
|
1724
|
-
}), e(),
|
|
1727
|
+
}), e(), Ke = !0, f());
|
|
1725
1728
|
},
|
|
1726
1729
|
dragStartGlobal: function(r) {
|
|
1727
|
-
r.sortable, !this.isMultiDrag &&
|
|
1728
|
-
i.sortableIndex =
|
|
1729
|
-
}),
|
|
1730
|
+
r.sortable, !this.isMultiDrag && Gt && Gt.multiDrag._deselectMultiDrag(), Y.forEach(function(i) {
|
|
1731
|
+
i.sortableIndex = mt(i);
|
|
1732
|
+
}), Y = Y.sort(function(i, e) {
|
|
1730
1733
|
return i.sortableIndex - e.sortableIndex;
|
|
1731
1734
|
}), ie = !0;
|
|
1732
1735
|
},
|
|
@@ -1734,47 +1737,47 @@ function fa() {
|
|
|
1734
1737
|
var i = this, e = r.sortable;
|
|
1735
1738
|
if (this.isMultiDrag) {
|
|
1736
1739
|
if (this.options.sort && (e.captureAnimationState(), this.options.animation)) {
|
|
1737
|
-
|
|
1740
|
+
Y.forEach(function(t) {
|
|
1738
1741
|
t !== ot && U(t, "position", "absolute");
|
|
1739
1742
|
});
|
|
1740
1743
|
var f = ut(ot, !1, !0, !0);
|
|
1741
|
-
|
|
1742
|
-
t !== ot &&
|
|
1743
|
-
}),
|
|
1744
|
+
Y.forEach(function(t) {
|
|
1745
|
+
t !== ot && Un(t, f);
|
|
1746
|
+
}), Mt = !0, me = !0;
|
|
1744
1747
|
}
|
|
1745
1748
|
e.animateAll(function() {
|
|
1746
|
-
|
|
1749
|
+
Mt = !1, me = !1, i.options.animation && Y.forEach(function(t) {
|
|
1747
1750
|
on(t);
|
|
1748
|
-
}), i.options.sort &&
|
|
1751
|
+
}), i.options.sort && Be();
|
|
1749
1752
|
});
|
|
1750
1753
|
}
|
|
1751
1754
|
},
|
|
1752
1755
|
dragOver: function(r) {
|
|
1753
1756
|
var i = r.target, e = r.completed, f = r.cancel;
|
|
1754
|
-
|
|
1757
|
+
Mt && ~Y.indexOf(i) && (e(!1), f());
|
|
1755
1758
|
},
|
|
1756
1759
|
revert: function(r) {
|
|
1757
1760
|
var i = r.fromSortable, e = r.rootEl, f = r.sortable, t = r.dragRect;
|
|
1758
|
-
|
|
1761
|
+
Y.length > 1 && (Y.forEach(function(a) {
|
|
1759
1762
|
f.addAnimationState({
|
|
1760
1763
|
target: a,
|
|
1761
|
-
rect:
|
|
1764
|
+
rect: Mt ? ut(a) : t
|
|
1762
1765
|
}), on(a), a.fromRect = t, i.removeAnimationState(a);
|
|
1763
|
-
}),
|
|
1766
|
+
}), Mt = !1, fa(!this.options.removeCloneOnHide, e));
|
|
1764
1767
|
},
|
|
1765
1768
|
dragOverCompleted: function(r) {
|
|
1766
1769
|
var i = r.sortable, e = r.isOwner, f = r.insertion, t = r.activeSortable, a = r.parentEl, s = r.putSortable, l = this.options;
|
|
1767
1770
|
if (f) {
|
|
1768
|
-
if (e && t._hideClone(), me = !1, l.animation &&
|
|
1771
|
+
if (e && t._hideClone(), me = !1, l.animation && Y.length > 1 && (Mt || !e && !t.options.sort && !s)) {
|
|
1769
1772
|
var u = ut(ot, !1, !0, !0);
|
|
1770
|
-
|
|
1771
|
-
d !== ot && (
|
|
1772
|
-
}),
|
|
1773
|
+
Y.forEach(function(d) {
|
|
1774
|
+
d !== ot && (Un(d, u), a.appendChild(d));
|
|
1775
|
+
}), Mt = !0;
|
|
1773
1776
|
}
|
|
1774
1777
|
if (!e)
|
|
1775
|
-
if (
|
|
1776
|
-
var c =
|
|
1777
|
-
t._showClone(i), t.options.animation && !
|
|
1778
|
+
if (Mt || Be(), Y.length > 1) {
|
|
1779
|
+
var c = Ke;
|
|
1780
|
+
t._showClone(i), t.options.animation && !Ke && c && Nt.forEach(function(d) {
|
|
1778
1781
|
t.addAnimationState({
|
|
1779
1782
|
target: d,
|
|
1780
1783
|
rect: ye
|
|
@@ -1786,24 +1789,24 @@ function fa() {
|
|
|
1786
1789
|
},
|
|
1787
1790
|
dragOverAnimationCapture: function(r) {
|
|
1788
1791
|
var i = r.dragRect, e = r.isOwner, f = r.activeSortable;
|
|
1789
|
-
if (
|
|
1792
|
+
if (Y.forEach(function(a) {
|
|
1790
1793
|
a.thisAnimationDuration = null;
|
|
1791
1794
|
}), f.options.animation && !e && f.multiDrag.isMultiDrag) {
|
|
1792
|
-
ye =
|
|
1795
|
+
ye = jt({}, i);
|
|
1793
1796
|
var t = ee(ot, !0);
|
|
1794
1797
|
ye.top -= t.f, ye.left -= t.e;
|
|
1795
1798
|
}
|
|
1796
1799
|
},
|
|
1797
1800
|
dragOverAnimationComplete: function() {
|
|
1798
|
-
|
|
1801
|
+
Mt && (Mt = !1, Be());
|
|
1799
1802
|
},
|
|
1800
1803
|
drop: function(r) {
|
|
1801
1804
|
var i = r.originalEvent, e = r.rootEl, f = r.parentEl, t = r.sortable, a = r.dispatchSortableEvent, s = r.oldIndex, l = r.putSortable, u = l || this.sortable;
|
|
1802
1805
|
if (i) {
|
|
1803
1806
|
var c = this.options, d = f.children;
|
|
1804
1807
|
if (!ie)
|
|
1805
|
-
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(),
|
|
1806
|
-
|
|
1808
|
+
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), dt(ot, c.selectedClass, !~Y.indexOf(ot)), ~Y.indexOf(ot))
|
|
1809
|
+
Y.splice(Y.indexOf(ot), 1), pe = null, Se({
|
|
1807
1810
|
sortable: t,
|
|
1808
1811
|
rootEl: e,
|
|
1809
1812
|
name: "deselect",
|
|
@@ -1811,18 +1814,18 @@ function fa() {
|
|
|
1811
1814
|
originalEvt: i
|
|
1812
1815
|
});
|
|
1813
1816
|
else {
|
|
1814
|
-
if (
|
|
1817
|
+
if (Y.push(ot), Se({
|
|
1815
1818
|
sortable: t,
|
|
1816
1819
|
rootEl: e,
|
|
1817
1820
|
name: "select",
|
|
1818
1821
|
targetEl: ot,
|
|
1819
1822
|
originalEvt: i
|
|
1820
1823
|
}), i.shiftKey && pe && t.el.contains(pe)) {
|
|
1821
|
-
var v =
|
|
1824
|
+
var v = mt(pe), h = mt(ot);
|
|
1822
1825
|
if (~v && ~h && v !== h) {
|
|
1823
1826
|
var g, p;
|
|
1824
1827
|
for (h > v ? (p = v, g = h) : (p = h, g = v + 1); p < g; p++)
|
|
1825
|
-
~
|
|
1828
|
+
~Y.indexOf(d[p]) || (dt(d[p], c.selectedClass, !0), Y.push(d[p]), Se({
|
|
1826
1829
|
sortable: t,
|
|
1827
1830
|
rootEl: e,
|
|
1828
1831
|
name: "select",
|
|
@@ -1832,52 +1835,52 @@ function fa() {
|
|
|
1832
1835
|
}
|
|
1833
1836
|
} else
|
|
1834
1837
|
pe = ot;
|
|
1835
|
-
|
|
1838
|
+
Gt = u;
|
|
1836
1839
|
}
|
|
1837
1840
|
if (ie && this.isMultiDrag) {
|
|
1838
|
-
if (
|
|
1839
|
-
var m = ut(ot), S =
|
|
1840
|
-
if (!me && c.animation && (ot.thisAnimationDuration = null), u.captureAnimationState(), !me && (c.animation && (ot.fromRect = m,
|
|
1841
|
+
if (Mt = !1, (f[Ct].options.sort || f !== e) && Y.length > 1) {
|
|
1842
|
+
var m = ut(ot), S = mt(ot, ":not(." + this.options.selectedClass + ")");
|
|
1843
|
+
if (!me && c.animation && (ot.thisAnimationDuration = null), u.captureAnimationState(), !me && (c.animation && (ot.fromRect = m, Y.forEach(function(x) {
|
|
1841
1844
|
if (x.thisAnimationDuration = null, x !== ot) {
|
|
1842
|
-
var C =
|
|
1845
|
+
var C = Mt ? ut(x) : m;
|
|
1843
1846
|
x.fromRect = C, u.addAnimationState({
|
|
1844
1847
|
target: x,
|
|
1845
1848
|
rect: C
|
|
1846
1849
|
});
|
|
1847
1850
|
}
|
|
1848
|
-
})),
|
|
1851
|
+
})), Be(), Y.forEach(function(x) {
|
|
1849
1852
|
d[S] ? f.insertBefore(x, d[S]) : f.appendChild(x), S++;
|
|
1850
|
-
}), s ===
|
|
1853
|
+
}), s === mt(ot))) {
|
|
1851
1854
|
var T = !1;
|
|
1852
|
-
|
|
1853
|
-
if (x.sortableIndex !==
|
|
1855
|
+
Y.forEach(function(x) {
|
|
1856
|
+
if (x.sortableIndex !== mt(x)) {
|
|
1854
1857
|
T = !0;
|
|
1855
1858
|
return;
|
|
1856
1859
|
}
|
|
1857
1860
|
}), T && a("update");
|
|
1858
1861
|
}
|
|
1859
|
-
|
|
1862
|
+
Y.forEach(function(x) {
|
|
1860
1863
|
on(x);
|
|
1861
1864
|
}), u.animateAll();
|
|
1862
1865
|
}
|
|
1863
|
-
|
|
1866
|
+
Gt = u;
|
|
1864
1867
|
}
|
|
1865
|
-
(e === f || l && l.lastPutMode !== "clone") &&
|
|
1868
|
+
(e === f || l && l.lastPutMode !== "clone") && Nt.forEach(function(x) {
|
|
1866
1869
|
x.parentNode && x.parentNode.removeChild(x);
|
|
1867
1870
|
});
|
|
1868
1871
|
}
|
|
1869
1872
|
},
|
|
1870
1873
|
nullingGlobal: function() {
|
|
1871
|
-
this.isMultiDrag = ie = !1,
|
|
1874
|
+
this.isMultiDrag = ie = !1, Nt.length = 0;
|
|
1872
1875
|
},
|
|
1873
1876
|
destroyGlobal: function() {
|
|
1874
1877
|
this._deselectMultiDrag(), Z(document, "pointerup", this._deselectMultiDrag), Z(document, "mouseup", this._deselectMultiDrag), Z(document, "touchend", this._deselectMultiDrag), Z(document, "keydown", this._checkKeyDown), Z(document, "keyup", this._checkKeyUp);
|
|
1875
1878
|
},
|
|
1876
1879
|
_deselectMultiDrag: function(r) {
|
|
1877
|
-
if (!(typeof ie < "u" && ie) &&
|
|
1878
|
-
for (;
|
|
1879
|
-
var i =
|
|
1880
|
-
|
|
1880
|
+
if (!(typeof ie < "u" && ie) && Gt === this.sortable && !(r && Kt(r.target, this.options.draggable, this.sortable.el, !1)) && !(r && r.button !== 0))
|
|
1881
|
+
for (; Y.length; ) {
|
|
1882
|
+
var i = Y[0];
|
|
1883
|
+
dt(i, this.options.selectedClass, !1), Y.shift(), Se({
|
|
1881
1884
|
sortable: this.sortable,
|
|
1882
1885
|
rootEl: this.sortable.el,
|
|
1883
1886
|
name: "deselect",
|
|
@@ -1892,7 +1895,7 @@ function fa() {
|
|
|
1892
1895
|
_checkKeyUp: function(r) {
|
|
1893
1896
|
r.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
1894
1897
|
}
|
|
1895
|
-
},
|
|
1898
|
+
}, jt(o, {
|
|
1896
1899
|
// Static methods & properties
|
|
1897
1900
|
pluginName: "multiDrag",
|
|
1898
1901
|
utils: {
|
|
@@ -1901,33 +1904,33 @@ function fa() {
|
|
|
1901
1904
|
* @param {HTMLElement} el The element to be selected
|
|
1902
1905
|
*/
|
|
1903
1906
|
select: function(r) {
|
|
1904
|
-
var i = r.parentNode[
|
|
1905
|
-
!i || !i.options.multiDrag || ~
|
|
1907
|
+
var i = r.parentNode[Ct];
|
|
1908
|
+
!i || !i.options.multiDrag || ~Y.indexOf(r) || (Gt && Gt !== i && (Gt.multiDrag._deselectMultiDrag(), Gt = i), dt(r, i.options.selectedClass, !0), Y.push(r));
|
|
1906
1909
|
},
|
|
1907
1910
|
/**
|
|
1908
1911
|
* Deselects the provided multi-drag item
|
|
1909
1912
|
* @param {HTMLElement} el The element to be deselected
|
|
1910
1913
|
*/
|
|
1911
1914
|
deselect: function(r) {
|
|
1912
|
-
var i = r.parentNode[
|
|
1913
|
-
!i || !i.options.multiDrag || !~e || (
|
|
1915
|
+
var i = r.parentNode[Ct], e = Y.indexOf(r);
|
|
1916
|
+
!i || !i.options.multiDrag || !~e || (dt(r, i.options.selectedClass, !1), Y.splice(e, 1));
|
|
1914
1917
|
}
|
|
1915
1918
|
},
|
|
1916
1919
|
eventProperties: function() {
|
|
1917
1920
|
var r = this, i = [], e = [];
|
|
1918
|
-
return
|
|
1921
|
+
return Y.forEach(function(f) {
|
|
1919
1922
|
i.push({
|
|
1920
1923
|
multiDragElement: f,
|
|
1921
1924
|
index: f.sortableIndex
|
|
1922
1925
|
});
|
|
1923
1926
|
var t;
|
|
1924
|
-
|
|
1927
|
+
Mt && f !== ot ? t = -1 : Mt ? t = mt(f, ":not(." + r.options.selectedClass + ")") : t = mt(f), e.push({
|
|
1925
1928
|
multiDragElement: f,
|
|
1926
1929
|
index: t
|
|
1927
1930
|
});
|
|
1928
1931
|
}), {
|
|
1929
|
-
items:
|
|
1930
|
-
clones: [].concat(
|
|
1932
|
+
items: No(Y),
|
|
1933
|
+
clones: [].concat(Nt),
|
|
1931
1934
|
oldIndicies: i,
|
|
1932
1935
|
newIndicies: e
|
|
1933
1936
|
};
|
|
@@ -1939,36 +1942,36 @@ function fa() {
|
|
|
1939
1942
|
}
|
|
1940
1943
|
});
|
|
1941
1944
|
}
|
|
1942
|
-
function
|
|
1943
|
-
|
|
1945
|
+
function fa(o, n) {
|
|
1946
|
+
Y.forEach(function(r, i) {
|
|
1944
1947
|
var e = n.children[r.sortableIndex + (o ? Number(i) : 0)];
|
|
1945
1948
|
e ? n.insertBefore(r, e) : n.appendChild(r);
|
|
1946
1949
|
});
|
|
1947
1950
|
}
|
|
1948
|
-
function
|
|
1949
|
-
|
|
1951
|
+
function Wn(o, n) {
|
|
1952
|
+
Nt.forEach(function(r, i) {
|
|
1950
1953
|
var e = n.children[r.sortableIndex + (o ? Number(i) : 0)];
|
|
1951
1954
|
e ? n.insertBefore(r, e) : n.appendChild(r);
|
|
1952
1955
|
});
|
|
1953
1956
|
}
|
|
1954
|
-
function
|
|
1955
|
-
|
|
1957
|
+
function Be() {
|
|
1958
|
+
Y.forEach(function(o) {
|
|
1956
1959
|
o !== ot && o.parentNode && o.parentNode.removeChild(o);
|
|
1957
1960
|
});
|
|
1958
1961
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
const
|
|
1962
|
+
W.mount(new aa());
|
|
1963
|
+
W.mount(In, On);
|
|
1964
|
+
const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1962
1965
|
__proto__: null,
|
|
1963
|
-
MultiDrag:
|
|
1964
|
-
Sortable:
|
|
1965
|
-
Swap:
|
|
1966
|
-
default:
|
|
1967
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1966
|
+
MultiDrag: la,
|
|
1967
|
+
Sortable: W,
|
|
1968
|
+
Swap: ia,
|
|
1969
|
+
default: W
|
|
1970
|
+
}, Symbol.toStringTag, { value: "Module" })), ca = /* @__PURE__ */ oo(ua);
|
|
1968
1971
|
(function(o, n) {
|
|
1969
1972
|
(function(i, e) {
|
|
1970
|
-
o.exports = e(
|
|
1971
|
-
})(typeof self < "u" ? self :
|
|
1973
|
+
o.exports = e(br, ca);
|
|
1974
|
+
})(typeof self < "u" ? self : ao, function(r, i) {
|
|
1972
1975
|
return function(e) {
|
|
1973
1976
|
var f = {};
|
|
1974
1977
|
function t(a) {
|
|
@@ -2440,75 +2443,75 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2440
2443
|
return [
|
|
2441
2444
|
// `String.prototype.replace` method
|
|
2442
2445
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2443
|
-
function(R,
|
|
2446
|
+
function(R, K) {
|
|
2444
2447
|
var M = d(this), G = R == null ? void 0 : R[C];
|
|
2445
|
-
return G !== void 0 ? G.call(R, M,
|
|
2448
|
+
return G !== void 0 ? G.call(R, M, K) : O.call(String(M), R, K);
|
|
2446
2449
|
},
|
|
2447
2450
|
// `RegExp.prototype[@@replace]` method
|
|
2448
2451
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2449
2452
|
function(D, R) {
|
|
2450
2453
|
if (!I && N || typeof R == "string" && R.indexOf(F) === -1) {
|
|
2451
|
-
var
|
|
2452
|
-
if (
|
|
2453
|
-
return
|
|
2454
|
+
var K = w(O, D, this, R);
|
|
2455
|
+
if (K.done)
|
|
2456
|
+
return K.value;
|
|
2454
2457
|
}
|
|
2455
|
-
var M = s(D), G = String(this),
|
|
2456
|
-
|
|
2458
|
+
var M = s(D), G = String(this), q = typeof R == "function";
|
|
2459
|
+
q || (R = String(R));
|
|
2457
2460
|
var nt = M.global;
|
|
2458
2461
|
if (nt) {
|
|
2459
|
-
var
|
|
2462
|
+
var xt = M.unicode;
|
|
2460
2463
|
M.lastIndex = 0;
|
|
2461
2464
|
}
|
|
2462
|
-
for (var
|
|
2465
|
+
for (var st = []; ; ) {
|
|
2463
2466
|
var lt = h(M, G);
|
|
2464
|
-
if (lt === null || (
|
|
2467
|
+
if (lt === null || (st.push(lt), !nt))
|
|
2465
2468
|
break;
|
|
2466
|
-
var
|
|
2467
|
-
|
|
2469
|
+
var vt = String(lt[0]);
|
|
2470
|
+
vt === "" && (M.lastIndex = v(G, u(M.lastIndex), xt));
|
|
2468
2471
|
}
|
|
2469
|
-
for (var
|
|
2470
|
-
lt =
|
|
2471
|
-
for (var
|
|
2472
|
-
|
|
2473
|
-
var
|
|
2474
|
-
if (
|
|
2475
|
-
var
|
|
2476
|
-
|
|
2477
|
-
var
|
|
2472
|
+
for (var St = "", ct = 0, rt = 0; rt < st.length; rt++) {
|
|
2473
|
+
lt = st[rt];
|
|
2474
|
+
for (var at = String(lt[0]), Pt = g(p(c(lt.index), G.length), 0), Ot = [], Lt = 1; Lt < lt.length; Lt++)
|
|
2475
|
+
Ot.push(x(lt[Lt]));
|
|
2476
|
+
var J = lt.groups;
|
|
2477
|
+
if (q) {
|
|
2478
|
+
var it = [at].concat(Ot, Pt, G);
|
|
2479
|
+
J !== void 0 && it.push(J);
|
|
2480
|
+
var ht = String(R.apply(void 0, it));
|
|
2478
2481
|
} else
|
|
2479
|
-
|
|
2480
|
-
|
|
2482
|
+
ht = V(at, G, Pt, Ot, J, R);
|
|
2483
|
+
Pt >= ct && (St += G.slice(ct, Pt) + ht, ct = Pt + at.length);
|
|
2481
2484
|
}
|
|
2482
|
-
return
|
|
2485
|
+
return St + G.slice(ct);
|
|
2483
2486
|
}
|
|
2484
2487
|
];
|
|
2485
|
-
function V(D, R,
|
|
2486
|
-
var nt =
|
|
2487
|
-
return G !== void 0 && (G = l(G),
|
|
2488
|
-
var
|
|
2489
|
-
switch (
|
|
2488
|
+
function V(D, R, K, M, G, q) {
|
|
2489
|
+
var nt = K + D.length, xt = M.length, st = T;
|
|
2490
|
+
return G !== void 0 && (G = l(G), st = S), O.call(q, st, function(lt, vt) {
|
|
2491
|
+
var St;
|
|
2492
|
+
switch (vt.charAt(0)) {
|
|
2490
2493
|
case "$":
|
|
2491
2494
|
return "$";
|
|
2492
2495
|
case "&":
|
|
2493
2496
|
return D;
|
|
2494
2497
|
case "`":
|
|
2495
|
-
return R.slice(0,
|
|
2498
|
+
return R.slice(0, K);
|
|
2496
2499
|
case "'":
|
|
2497
2500
|
return R.slice(nt);
|
|
2498
2501
|
case "<":
|
|
2499
|
-
|
|
2502
|
+
St = G[vt.slice(1, -1)];
|
|
2500
2503
|
break;
|
|
2501
2504
|
default:
|
|
2502
|
-
var
|
|
2503
|
-
if (
|
|
2505
|
+
var ct = +vt;
|
|
2506
|
+
if (ct === 0)
|
|
2504
2507
|
return lt;
|
|
2505
|
-
if (
|
|
2506
|
-
var rt = m(
|
|
2507
|
-
return rt === 0 ? lt : rt <=
|
|
2508
|
+
if (ct > xt) {
|
|
2509
|
+
var rt = m(ct / 10);
|
|
2510
|
+
return rt === 0 ? lt : rt <= xt ? M[rt - 1] === void 0 ? vt.charAt(1) : M[rt - 1] + vt.charAt(1) : lt;
|
|
2508
2511
|
}
|
|
2509
|
-
|
|
2512
|
+
St = M[ct - 1];
|
|
2510
2513
|
}
|
|
2511
|
-
return
|
|
2514
|
+
return St === void 0 ? "" : St;
|
|
2512
2515
|
});
|
|
2513
2516
|
}
|
|
2514
2517
|
});
|
|
@@ -2729,11 +2732,11 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2729
2732
|
var a = t("23e7"), s = t("9ed3"), l = t("e163"), u = t("d2bb"), c = t("d44e"), d = t("9112"), v = t("6eeb"), h = t("b622"), g = t("c430"), p = t("3f8c"), m = t("ae93"), S = m.IteratorPrototype, T = m.BUGGY_SAFARI_ITERATORS, x = h("iterator"), C = "keys", O = "values", w = "entries", L = function() {
|
|
2730
2733
|
return this;
|
|
2731
2734
|
};
|
|
2732
|
-
e.exports = function(I, N, F, V, D, R,
|
|
2735
|
+
e.exports = function(I, N, F, V, D, R, K) {
|
|
2733
2736
|
s(F, N, V);
|
|
2734
2737
|
var M = function(rt) {
|
|
2735
|
-
if (rt === D &&
|
|
2736
|
-
return
|
|
2738
|
+
if (rt === D && st)
|
|
2739
|
+
return st;
|
|
2737
2740
|
if (!T && rt in nt)
|
|
2738
2741
|
return nt[rt];
|
|
2739
2742
|
switch (rt) {
|
|
@@ -2753,20 +2756,20 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2753
2756
|
return function() {
|
|
2754
2757
|
return new F(this);
|
|
2755
2758
|
};
|
|
2756
|
-
}, G = N + " Iterator",
|
|
2757
|
-
if (lt && (
|
|
2758
|
-
return
|
|
2759
|
-
}), (!g ||
|
|
2760
|
-
if (
|
|
2759
|
+
}, G = N + " Iterator", q = !1, nt = I.prototype, xt = nt[x] || nt["@@iterator"] || D && nt[D], st = !T && xt || M(D), lt = N == "Array" && nt.entries || xt, vt, St, ct;
|
|
2760
|
+
if (lt && (vt = l(lt.call(new I())), S !== Object.prototype && vt.next && (!g && l(vt) !== S && (u ? u(vt, S) : typeof vt[x] != "function" && d(vt, x, L)), c(vt, G, !0, !0), g && (p[G] = L))), D == O && xt && xt.name !== O && (q = !0, st = function() {
|
|
2761
|
+
return xt.call(this);
|
|
2762
|
+
}), (!g || K) && nt[x] !== st && d(nt, x, st), p[N] = st, D)
|
|
2763
|
+
if (St = {
|
|
2761
2764
|
values: M(O),
|
|
2762
|
-
keys: R ?
|
|
2765
|
+
keys: R ? st : M(C),
|
|
2763
2766
|
entries: M(w)
|
|
2764
|
-
},
|
|
2765
|
-
for (
|
|
2766
|
-
(T ||
|
|
2767
|
+
}, K)
|
|
2768
|
+
for (ct in St)
|
|
2769
|
+
(T || q || !(ct in nt)) && v(nt, ct, St[ct]);
|
|
2767
2770
|
else
|
|
2768
|
-
a({ target: N, proto: !0, forced: T ||
|
|
2769
|
-
return
|
|
2771
|
+
a({ target: N, proto: !0, forced: T || q }, St);
|
|
2772
|
+
return St;
|
|
2770
2773
|
};
|
|
2771
2774
|
},
|
|
2772
2775
|
/***/
|
|
@@ -2902,17 +2905,17 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2902
2905
|
}, L = !C || !O;
|
|
2903
2906
|
a({ target: "Array", proto: !0, forced: L }, {
|
|
2904
2907
|
concat: function(N) {
|
|
2905
|
-
var F = c(this), V = h(F, 0), D = 0, R,
|
|
2908
|
+
var F = c(this), V = h(F, 0), D = 0, R, K, M, G, q;
|
|
2906
2909
|
for (R = -1, M = arguments.length; R < M; R++)
|
|
2907
|
-
if (
|
|
2908
|
-
if (G = d(
|
|
2910
|
+
if (q = R === -1 ? F : arguments[R], w(q)) {
|
|
2911
|
+
if (G = d(q.length), D + G > T)
|
|
2909
2912
|
throw TypeError(x);
|
|
2910
|
-
for (
|
|
2911
|
-
|
|
2913
|
+
for (K = 0; K < G; K++, D++)
|
|
2914
|
+
K in q && v(V, D, q[K]);
|
|
2912
2915
|
} else {
|
|
2913
2916
|
if (D >= T)
|
|
2914
2917
|
throw TypeError(x);
|
|
2915
|
-
v(V, D++,
|
|
2918
|
+
v(V, D++, q);
|
|
2916
2919
|
}
|
|
2917
2920
|
return V.length = D, V;
|
|
2918
2921
|
}
|
|
@@ -2997,110 +3000,110 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2997
3000
|
var a = t("23e7"), s = t("23cb"), l = t("a691"), u = t("50c4"), c = t("7b0b"), d = t("65f0"), v = t("8418"), h = t("1dde"), g = t("ae40"), p = h("splice"), m = g("splice", { ACCESSORS: !0, 0: 0, 1: 2 }), S = Math.max, T = Math.min, x = 9007199254740991, C = "Maximum allowed length exceeded";
|
|
2998
3001
|
a({ target: "Array", proto: !0, forced: !p || !m }, {
|
|
2999
3002
|
splice: function(w, L) {
|
|
3000
|
-
var I = c(this), N = u(I.length), F = s(w, N), V = arguments.length, D, R,
|
|
3003
|
+
var I = c(this), N = u(I.length), F = s(w, N), V = arguments.length, D, R, K, M, G, q;
|
|
3001
3004
|
if (V === 0 ? D = R = 0 : V === 1 ? (D = 0, R = N - F) : (D = V - 2, R = T(S(l(L), 0), N - F)), N + D - R > x)
|
|
3002
3005
|
throw TypeError(C);
|
|
3003
|
-
for (
|
|
3004
|
-
G = F + M, G in I && v(
|
|
3005
|
-
if (
|
|
3006
|
+
for (K = d(I, R), M = 0; M < R; M++)
|
|
3007
|
+
G = F + M, G in I && v(K, M, I[G]);
|
|
3008
|
+
if (K.length = R, D < R) {
|
|
3006
3009
|
for (M = F; M < N - R; M++)
|
|
3007
|
-
G = M + R,
|
|
3010
|
+
G = M + R, q = M + D, G in I ? I[q] = I[G] : delete I[q];
|
|
3008
3011
|
for (M = N; M > N - R + D; M--)
|
|
3009
3012
|
delete I[M - 1];
|
|
3010
3013
|
} else if (D > R)
|
|
3011
3014
|
for (M = N - R; M > F; M--)
|
|
3012
|
-
G = M + R - 1,
|
|
3015
|
+
G = M + R - 1, q = M + D - 1, G in I ? I[q] = I[G] : delete I[q];
|
|
3013
3016
|
for (M = 0; M < D; M++)
|
|
3014
3017
|
I[M + F] = arguments[M + 2];
|
|
3015
|
-
return I.length = N - R + D,
|
|
3018
|
+
return I.length = N - R + D, K;
|
|
3016
3019
|
}
|
|
3017
3020
|
});
|
|
3018
3021
|
},
|
|
3019
3022
|
/***/
|
|
3020
3023
|
a4d3: function(e, f, t) {
|
|
3021
|
-
var a = t("23e7"), s = t("da84"), l = t("d066"), u = t("c430"), c = t("83ab"), d = t("4930"), v = t("fdbf"), h = t("d039"), g = t("5135"), p = t("e8b5"), m = t("861d"), S = t("825a"), T = t("7b0b"), x = t("fc6a"), C = t("c04e"), O = t("5c6c"), w = t("7c73"), L = t("df75"), I = t("241c"), N = t("057f"), F = t("7418"), V = t("06cf"), D = t("9bf2"), R = t("d1e7"),
|
|
3022
|
-
return w(
|
|
3024
|
+
var a = t("23e7"), s = t("da84"), l = t("d066"), u = t("c430"), c = t("83ab"), d = t("4930"), v = t("fdbf"), h = t("d039"), g = t("5135"), p = t("e8b5"), m = t("861d"), S = t("825a"), T = t("7b0b"), x = t("fc6a"), C = t("c04e"), O = t("5c6c"), w = t("7c73"), L = t("df75"), I = t("241c"), N = t("057f"), F = t("7418"), V = t("06cf"), D = t("9bf2"), R = t("d1e7"), K = t("9112"), M = t("6eeb"), G = t("5692"), q = t("f772"), nt = t("d012"), xt = t("90e3"), st = t("b622"), lt = t("e538"), vt = t("746f"), St = t("d44e"), ct = t("69f3"), rt = t("b727").forEach, at = q("hidden"), Pt = "Symbol", Ot = "prototype", Lt = st("toPrimitive"), J = ct.set, it = ct.getterFor(Pt), ht = Object[Ot], bt = s.Symbol, Xt = l("JSON", "stringify"), Bt = V.f, Wt = D.f, Ne = N.f, tn = R.f, Ut = G("symbols"), Jt = G("op-symbols"), ne = G("string-to-symbol-registry"), ue = G("symbol-to-string-registry"), ce = G("wks"), de = s.QObject, ve = !de || !de[Ot] || !de[Ot].findChild, he = c && h(function() {
|
|
3025
|
+
return w(Wt({}, "a", {
|
|
3023
3026
|
get: function() {
|
|
3024
|
-
return
|
|
3027
|
+
return Wt(this, "a", { value: 7 }).a;
|
|
3025
3028
|
}
|
|
3026
3029
|
})).a != 7;
|
|
3027
|
-
}) ? function(
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3030
|
-
} :
|
|
3031
|
-
var
|
|
3032
|
-
return
|
|
3033
|
-
type:
|
|
3034
|
-
tag:
|
|
3030
|
+
}) ? function(X, $, B) {
|
|
3031
|
+
var _ = Bt(ht, $);
|
|
3032
|
+
_ && delete ht[$], Wt(X, $, B), _ && X !== ht && Wt(ht, $, _);
|
|
3033
|
+
} : Wt, ge = function(X, $) {
|
|
3034
|
+
var B = Ut[X] = w(bt[Ot]);
|
|
3035
|
+
return J(B, {
|
|
3036
|
+
type: Pt,
|
|
3037
|
+
tag: X,
|
|
3035
3038
|
description: $
|
|
3036
|
-
}), c || (
|
|
3037
|
-
}, b = v ? function(
|
|
3038
|
-
return typeof
|
|
3039
|
-
} : function(
|
|
3040
|
-
return Object(
|
|
3041
|
-
}, y = function($,
|
|
3042
|
-
$ ===
|
|
3043
|
-
var tt = C(
|
|
3044
|
-
return S(
|
|
3045
|
-
}, E = function($,
|
|
3039
|
+
}), c || (B.description = $), B;
|
|
3040
|
+
}, b = v ? function(X) {
|
|
3041
|
+
return typeof X == "symbol";
|
|
3042
|
+
} : function(X) {
|
|
3043
|
+
return Object(X) instanceof bt;
|
|
3044
|
+
}, y = function($, B, _) {
|
|
3045
|
+
$ === ht && y(Jt, B, _), S($);
|
|
3046
|
+
var tt = C(B, !0);
|
|
3047
|
+
return S(_), g(Ut, tt) ? (_.enumerable ? (g($, at) && $[at][tt] && ($[at][tt] = !1), _ = w(_, { enumerable: O(0, !1) })) : (g($, at) || Wt($, at, O(1, {})), $[at][tt] = !0), he($, tt, _)) : Wt($, tt, _);
|
|
3048
|
+
}, E = function($, B) {
|
|
3046
3049
|
S($);
|
|
3047
|
-
var
|
|
3048
|
-
return rt(tt, function(
|
|
3049
|
-
(!c || j.call(
|
|
3050
|
+
var _ = x(B), tt = L(_).concat(et(_));
|
|
3051
|
+
return rt(tt, function(At) {
|
|
3052
|
+
(!c || j.call(_, At)) && y($, At, _[At]);
|
|
3050
3053
|
}), $;
|
|
3051
|
-
}, P = function($,
|
|
3052
|
-
return
|
|
3054
|
+
}, P = function($, B) {
|
|
3055
|
+
return B === void 0 ? w($) : E(w($), B);
|
|
3053
3056
|
}, j = function($) {
|
|
3054
|
-
var
|
|
3055
|
-
return this ===
|
|
3056
|
-
},
|
|
3057
|
-
var
|
|
3058
|
-
if (!(
|
|
3059
|
-
var
|
|
3060
|
-
return
|
|
3057
|
+
var B = C($, !0), _ = tn.call(this, B);
|
|
3058
|
+
return this === ht && g(Ut, B) && !g(Jt, B) ? !1 : _ || !g(this, B) || !g(Ut, B) || g(this, at) && this[at][B] ? _ : !0;
|
|
3059
|
+
}, H = function($, B) {
|
|
3060
|
+
var _ = x($), tt = C(B, !0);
|
|
3061
|
+
if (!(_ === ht && g(Ut, tt) && !g(Jt, tt))) {
|
|
3062
|
+
var At = Bt(_, tt);
|
|
3063
|
+
return At && g(Ut, tt) && !(g(_, at) && _[at][tt]) && (At.enumerable = !0), At;
|
|
3061
3064
|
}
|
|
3062
3065
|
}, Q = function($) {
|
|
3063
|
-
var
|
|
3064
|
-
return rt(
|
|
3065
|
-
!g(
|
|
3066
|
-
}),
|
|
3066
|
+
var B = Ne(x($)), _ = [];
|
|
3067
|
+
return rt(B, function(tt) {
|
|
3068
|
+
!g(Ut, tt) && !g(nt, tt) && _.push(tt);
|
|
3069
|
+
}), _;
|
|
3067
3070
|
}, et = function($) {
|
|
3068
|
-
var
|
|
3069
|
-
return rt(
|
|
3070
|
-
g(
|
|
3071
|
+
var B = $ === ht, _ = Ne(B ? Jt : x($)), tt = [];
|
|
3072
|
+
return rt(_, function(At) {
|
|
3073
|
+
g(Ut, At) && (!B || g(ht, At)) && tt.push(Ut[At]);
|
|
3071
3074
|
}), tt;
|
|
3072
3075
|
};
|
|
3073
|
-
if (d || (
|
|
3074
|
-
if (this instanceof
|
|
3076
|
+
if (d || (bt = function() {
|
|
3077
|
+
if (this instanceof bt)
|
|
3075
3078
|
throw TypeError("Symbol is not a constructor");
|
|
3076
|
-
var $ = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]),
|
|
3077
|
-
this ===
|
|
3079
|
+
var $ = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), B = xt($), _ = function(tt) {
|
|
3080
|
+
this === ht && _.call(Jt, tt), g(this, at) && g(this[at], B) && (this[at][B] = !1), he(this, B, O(1, tt));
|
|
3078
3081
|
};
|
|
3079
|
-
return c && ve && he(
|
|
3080
|
-
}, M(
|
|
3081
|
-
return
|
|
3082
|
-
}), M(
|
|
3083
|
-
return ge(
|
|
3084
|
-
}), R.f = j, D.f = y, V.f =
|
|
3085
|
-
return ge(
|
|
3086
|
-
}, c && (
|
|
3082
|
+
return c && ve && he(ht, B, { configurable: !0, set: _ }), ge(B, $);
|
|
3083
|
+
}, M(bt[Ot], "toString", function() {
|
|
3084
|
+
return it(this).tag;
|
|
3085
|
+
}), M(bt, "withoutSetter", function(X) {
|
|
3086
|
+
return ge(xt(X), X);
|
|
3087
|
+
}), R.f = j, D.f = y, V.f = H, I.f = N.f = Q, F.f = et, lt.f = function(X) {
|
|
3088
|
+
return ge(st(X), X);
|
|
3089
|
+
}, c && (Wt(bt[Ot], "description", {
|
|
3087
3090
|
configurable: !0,
|
|
3088
3091
|
get: function() {
|
|
3089
|
-
return
|
|
3092
|
+
return it(this).description;
|
|
3090
3093
|
}
|
|
3091
|
-
}), u || M(
|
|
3092
|
-
Symbol:
|
|
3093
|
-
}), rt(L(ce), function(
|
|
3094
|
-
|
|
3095
|
-
}), a({ target:
|
|
3094
|
+
}), u || M(ht, "propertyIsEnumerable", j, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !d, sham: !d }, {
|
|
3095
|
+
Symbol: bt
|
|
3096
|
+
}), rt(L(ce), function(X) {
|
|
3097
|
+
vt(X);
|
|
3098
|
+
}), a({ target: Pt, stat: !0, forced: !d }, {
|
|
3096
3099
|
// `Symbol.for` method
|
|
3097
3100
|
// https://tc39.github.io/ecma262/#sec-symbol.for
|
|
3098
|
-
for: function(
|
|
3099
|
-
var $ = String(
|
|
3101
|
+
for: function(X) {
|
|
3102
|
+
var $ = String(X);
|
|
3100
3103
|
if (g(ne, $))
|
|
3101
3104
|
return ne[$];
|
|
3102
|
-
var
|
|
3103
|
-
return ne[$] =
|
|
3105
|
+
var B = bt($);
|
|
3106
|
+
return ne[$] = B, ue[B] = $, B;
|
|
3104
3107
|
},
|
|
3105
3108
|
// `Symbol.keyFor` method
|
|
3106
3109
|
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
@@ -3128,7 +3131,7 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3128
3131
|
defineProperties: E,
|
|
3129
3132
|
// `Object.getOwnPropertyDescriptor` method
|
|
3130
3133
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
3131
|
-
getOwnPropertyDescriptor:
|
|
3134
|
+
getOwnPropertyDescriptor: H
|
|
3132
3135
|
}), a({ target: "Object", stat: !0, forced: !d }, {
|
|
3133
3136
|
// `Object.getOwnPropertyNames` method
|
|
3134
3137
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
@@ -3142,25 +3145,25 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3142
3145
|
getOwnPropertySymbols: function($) {
|
|
3143
3146
|
return F.f(T($));
|
|
3144
3147
|
}
|
|
3145
|
-
}),
|
|
3146
|
-
var
|
|
3147
|
-
var
|
|
3148
|
-
return
|
|
3148
|
+
}), Xt) {
|
|
3149
|
+
var yt = !d || h(function() {
|
|
3150
|
+
var X = bt();
|
|
3151
|
+
return Xt([X]) != "[null]" || Xt({ a: X }) != "{}" || Xt(Object(X)) != "{}";
|
|
3149
3152
|
});
|
|
3150
|
-
a({ target: "JSON", stat: !0, forced:
|
|
3153
|
+
a({ target: "JSON", stat: !0, forced: yt }, {
|
|
3151
3154
|
// eslint-disable-next-line no-unused-vars
|
|
3152
|
-
stringify: function($,
|
|
3153
|
-
for (var tt = [$],
|
|
3154
|
-
tt.push(arguments[
|
|
3155
|
-
if (en =
|
|
3156
|
-
return p(
|
|
3157
|
-
if (typeof en == "function" && (
|
|
3158
|
-
return
|
|
3159
|
-
}), tt[1] =
|
|
3155
|
+
stringify: function($, B, _) {
|
|
3156
|
+
for (var tt = [$], At = 1, en; arguments.length > At; )
|
|
3157
|
+
tt.push(arguments[At++]);
|
|
3158
|
+
if (en = B, !(!m(B) && $ === void 0 || b($)))
|
|
3159
|
+
return p(B) || (B = function(ir, Fe) {
|
|
3160
|
+
if (typeof en == "function" && (Fe = en.call(this, ir, Fe)), !b(Fe))
|
|
3161
|
+
return Fe;
|
|
3162
|
+
}), tt[1] = B, Xt.apply(null, tt);
|
|
3160
3163
|
}
|
|
3161
3164
|
});
|
|
3162
3165
|
}
|
|
3163
|
-
|
|
3166
|
+
bt[Ot][Lt] || K(bt[Ot], Lt, bt[Ot].valueOf), St(bt, Pt), nt[at] = !0;
|
|
3164
3167
|
},
|
|
3165
3168
|
/***/
|
|
3166
3169
|
a630: function(e, f, t) {
|
|
@@ -3293,10 +3296,10 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3293
3296
|
var a = t("0366"), s = t("44ad"), l = t("7b0b"), u = t("50c4"), c = t("65f0"), d = [].push, v = function(h) {
|
|
3294
3297
|
var g = h == 1, p = h == 2, m = h == 3, S = h == 4, T = h == 6, x = h == 5 || T;
|
|
3295
3298
|
return function(C, O, w, L) {
|
|
3296
|
-
for (var I = l(C), N = s(I), F = a(O, w, 3), V = u(N.length), D = 0, R = L || c,
|
|
3299
|
+
for (var I = l(C), N = s(I), F = a(O, w, 3), V = u(N.length), D = 0, R = L || c, K = g ? R(C, V) : p ? R(C, 0) : void 0, M, G; V > D; D++)
|
|
3297
3300
|
if ((x || D in N) && (M = N[D], G = F(M, D, I), h)) {
|
|
3298
3301
|
if (g)
|
|
3299
|
-
|
|
3302
|
+
K[D] = G;
|
|
3300
3303
|
else if (G)
|
|
3301
3304
|
switch (h) {
|
|
3302
3305
|
case 3:
|
|
@@ -3306,12 +3309,12 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3306
3309
|
case 6:
|
|
3307
3310
|
return D;
|
|
3308
3311
|
case 2:
|
|
3309
|
-
d.call(
|
|
3312
|
+
d.call(K, M);
|
|
3310
3313
|
}
|
|
3311
3314
|
else if (S)
|
|
3312
3315
|
return !1;
|
|
3313
3316
|
}
|
|
3314
|
-
return T ? -1 : m || S ? S :
|
|
3317
|
+
return T ? -1 : m || S ? S : K;
|
|
3315
3318
|
};
|
|
3316
3319
|
};
|
|
3317
3320
|
e.exports = {
|
|
@@ -3566,8 +3569,8 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3566
3569
|
}, R[O](""), !D;
|
|
3567
3570
|
});
|
|
3568
3571
|
if (!w || !L || S === "replace" && !(v && h && !p) || S === "split" && !m) {
|
|
3569
|
-
var I = /./[O], N = x(O, ""[S], function(D, R,
|
|
3570
|
-
return R.exec === u ? w && !G ? { done: !0, value: I.call(R,
|
|
3572
|
+
var I = /./[O], N = x(O, ""[S], function(D, R, K, M, G) {
|
|
3573
|
+
return R.exec === u ? w && !G ? { done: !0, value: I.call(R, K, M) } : { done: !0, value: D.call(K, R, M) } : { done: !1 };
|
|
3571
3574
|
}, {
|
|
3572
3575
|
REPLACE_KEEPS_$0: h,
|
|
3573
3576
|
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: p
|
|
@@ -3830,18 +3833,18 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3830
3833
|
t("e01a"), t("d28b"), t("e260"), t("d3b7"), t("3ca3"), t("ddb0");
|
|
3831
3834
|
function h(b, y) {
|
|
3832
3835
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(b)))) {
|
|
3833
|
-
var E = [], P = !0, j = !1,
|
|
3836
|
+
var E = [], P = !0, j = !1, H = void 0;
|
|
3834
3837
|
try {
|
|
3835
3838
|
for (var Q = b[Symbol.iterator](), et; !(P = (et = Q.next()).done) && (E.push(et.value), !(y && E.length === y)); P = !0)
|
|
3836
3839
|
;
|
|
3837
|
-
} catch (
|
|
3838
|
-
j = !0,
|
|
3840
|
+
} catch (yt) {
|
|
3841
|
+
j = !0, H = yt;
|
|
3839
3842
|
} finally {
|
|
3840
3843
|
try {
|
|
3841
3844
|
!P && Q.return != null && Q.return();
|
|
3842
3845
|
} finally {
|
|
3843
3846
|
if (j)
|
|
3844
|
-
throw
|
|
3847
|
+
throw H;
|
|
3845
3848
|
}
|
|
3846
3849
|
}
|
|
3847
3850
|
return E;
|
|
@@ -3910,48 +3913,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3910
3913
|
});
|
|
3911
3914
|
});
|
|
3912
3915
|
t("5db7"), t("73d9");
|
|
3913
|
-
var
|
|
3916
|
+
var K = ["Start", "Add", "Remove", "Update", "End"], M = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], G = ["Move"], q = [G, K, M].flatMap(function(b) {
|
|
3914
3917
|
return b;
|
|
3915
3918
|
}).map(function(b) {
|
|
3916
3919
|
return "on".concat(b);
|
|
3917
3920
|
}), nt = {
|
|
3918
3921
|
manage: G,
|
|
3919
|
-
manageAndEmit:
|
|
3922
|
+
manageAndEmit: K,
|
|
3920
3923
|
emit: M
|
|
3921
3924
|
};
|
|
3922
|
-
function
|
|
3923
|
-
return
|
|
3925
|
+
function xt(b) {
|
|
3926
|
+
return q.indexOf(b) !== -1;
|
|
3924
3927
|
}
|
|
3925
3928
|
t("caad"), t("2ca0");
|
|
3926
|
-
var
|
|
3929
|
+
var st = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"];
|
|
3927
3930
|
function lt(b) {
|
|
3928
|
-
return
|
|
3931
|
+
return st.includes(b);
|
|
3929
3932
|
}
|
|
3930
|
-
function
|
|
3933
|
+
function vt(b) {
|
|
3931
3934
|
return ["transition-group", "TransitionGroup"].includes(b);
|
|
3932
3935
|
}
|
|
3933
|
-
function
|
|
3936
|
+
function St(b) {
|
|
3934
3937
|
return ["id", "class", "role", "style"].includes(b) || b.startsWith("data-") || b.startsWith("aria-") || b.startsWith("on");
|
|
3935
3938
|
}
|
|
3936
|
-
function
|
|
3939
|
+
function ct(b) {
|
|
3937
3940
|
return b.reduce(function(y, E) {
|
|
3938
|
-
var P = S(E, 2), j = P[0],
|
|
3939
|
-
return y[j] =
|
|
3941
|
+
var P = S(E, 2), j = P[0], H = P[1];
|
|
3942
|
+
return y[j] = H, y;
|
|
3940
3943
|
}, {});
|
|
3941
3944
|
}
|
|
3942
3945
|
function rt(b) {
|
|
3943
|
-
var y = b.$attrs, E = b.componentData, P = E === void 0 ? {} : E, j =
|
|
3944
|
-
var Q = S(
|
|
3945
|
-
return Q[1],
|
|
3946
|
+
var y = b.$attrs, E = b.componentData, P = E === void 0 ? {} : E, j = ct(Object.entries(y).filter(function(H) {
|
|
3947
|
+
var Q = S(H, 2), et = Q[0];
|
|
3948
|
+
return Q[1], St(et);
|
|
3946
3949
|
}));
|
|
3947
3950
|
return d(d({}, j), P);
|
|
3948
3951
|
}
|
|
3949
|
-
function
|
|
3950
|
-
var y = b.$attrs, E = b.callBackBuilder, P =
|
|
3951
|
-
Object.entries(E).forEach(function(
|
|
3952
|
-
var Q = S(
|
|
3953
|
-
nt[et].forEach(function(
|
|
3954
|
-
P["on".concat(
|
|
3952
|
+
function at(b) {
|
|
3953
|
+
var y = b.$attrs, E = b.callBackBuilder, P = ct(Pt(y));
|
|
3954
|
+
Object.entries(E).forEach(function(H) {
|
|
3955
|
+
var Q = S(H, 2), et = Q[0], yt = Q[1];
|
|
3956
|
+
nt[et].forEach(function(X) {
|
|
3957
|
+
P["on".concat(X)] = yt(X);
|
|
3955
3958
|
});
|
|
3956
3959
|
});
|
|
3957
3960
|
var j = "[data-draggable]".concat(P.draggable || "");
|
|
@@ -3959,85 +3962,85 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3959
3962
|
draggable: j
|
|
3960
3963
|
});
|
|
3961
3964
|
}
|
|
3962
|
-
function
|
|
3965
|
+
function Pt(b) {
|
|
3963
3966
|
return Object.entries(b).filter(function(y) {
|
|
3964
3967
|
var E = S(y, 2), P = E[0];
|
|
3965
|
-
return E[1], !
|
|
3968
|
+
return E[1], !St(P);
|
|
3966
3969
|
}).map(function(y) {
|
|
3967
3970
|
var E = S(y, 2), P = E[0], j = E[1];
|
|
3968
3971
|
return [R(P), j];
|
|
3969
3972
|
}).filter(function(y) {
|
|
3970
3973
|
var E = S(y, 2), P = E[0];
|
|
3971
|
-
return E[1], !
|
|
3974
|
+
return E[1], !xt(P);
|
|
3972
3975
|
});
|
|
3973
3976
|
}
|
|
3974
3977
|
t("c740");
|
|
3975
|
-
function
|
|
3978
|
+
function Ot(b, y) {
|
|
3976
3979
|
if (!(b instanceof y))
|
|
3977
3980
|
throw new TypeError("Cannot call a class as a function");
|
|
3978
3981
|
}
|
|
3979
|
-
function
|
|
3982
|
+
function Lt(b, y) {
|
|
3980
3983
|
for (var E = 0; E < y.length; E++) {
|
|
3981
3984
|
var P = y[E];
|
|
3982
3985
|
P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(b, P.key, P);
|
|
3983
3986
|
}
|
|
3984
3987
|
}
|
|
3985
|
-
function
|
|
3986
|
-
return y &&
|
|
3988
|
+
function J(b, y, E) {
|
|
3989
|
+
return y && Lt(b.prototype, y), E && Lt(b, E), b;
|
|
3987
3990
|
}
|
|
3988
|
-
var
|
|
3991
|
+
var it = function(y) {
|
|
3989
3992
|
var E = y.el;
|
|
3990
3993
|
return E;
|
|
3991
|
-
},
|
|
3994
|
+
}, ht = function(y, E) {
|
|
3992
3995
|
return y.__draggable_context = E;
|
|
3993
|
-
},
|
|
3996
|
+
}, bt = function(y) {
|
|
3994
3997
|
return y.__draggable_context;
|
|
3995
|
-
},
|
|
3998
|
+
}, Xt = /* @__PURE__ */ function() {
|
|
3996
3999
|
function b(y) {
|
|
3997
|
-
var E = y.nodes, P = E.header, j = E.default,
|
|
3998
|
-
|
|
4000
|
+
var E = y.nodes, P = E.header, j = E.default, H = E.footer, Q = y.root, et = y.realList;
|
|
4001
|
+
Ot(this, b), this.defaultNodes = j, this.children = [].concat(O(P), O(j), O(H)), this.externalComponent = Q.externalComponent, this.rootTransition = Q.transition, this.tag = Q.tag, this.realList = et;
|
|
3999
4002
|
}
|
|
4000
|
-
return
|
|
4003
|
+
return J(b, [{
|
|
4001
4004
|
key: "render",
|
|
4002
4005
|
value: function(E, P) {
|
|
4003
|
-
var j = this.tag,
|
|
4006
|
+
var j = this.tag, H = this.children, Q = this._isRootComponent, et = Q ? {
|
|
4004
4007
|
default: function() {
|
|
4005
|
-
return
|
|
4008
|
+
return H;
|
|
4006
4009
|
}
|
|
4007
|
-
} :
|
|
4010
|
+
} : H;
|
|
4008
4011
|
return E(j, P, et);
|
|
4009
4012
|
}
|
|
4010
4013
|
}, {
|
|
4011
4014
|
key: "updated",
|
|
4012
4015
|
value: function() {
|
|
4013
4016
|
var E = this.defaultNodes, P = this.realList;
|
|
4014
|
-
E.forEach(function(j,
|
|
4015
|
-
|
|
4016
|
-
element: P[
|
|
4017
|
-
index:
|
|
4017
|
+
E.forEach(function(j, H) {
|
|
4018
|
+
ht(it(j), {
|
|
4019
|
+
element: P[H],
|
|
4020
|
+
index: H
|
|
4018
4021
|
});
|
|
4019
4022
|
});
|
|
4020
4023
|
}
|
|
4021
4024
|
}, {
|
|
4022
4025
|
key: "getUnderlyingVm",
|
|
4023
4026
|
value: function(E) {
|
|
4024
|
-
return
|
|
4027
|
+
return bt(E);
|
|
4025
4028
|
}
|
|
4026
4029
|
}, {
|
|
4027
4030
|
key: "getVmIndexFromDomIndex",
|
|
4028
4031
|
value: function(E, P) {
|
|
4029
|
-
var j = this.defaultNodes,
|
|
4032
|
+
var j = this.defaultNodes, H = j.length, Q = P.children, et = Q.item(E);
|
|
4030
4033
|
if (et === null)
|
|
4031
|
-
return
|
|
4032
|
-
var
|
|
4033
|
-
if (
|
|
4034
|
-
return
|
|
4035
|
-
if (
|
|
4034
|
+
return H;
|
|
4035
|
+
var yt = bt(et);
|
|
4036
|
+
if (yt)
|
|
4037
|
+
return yt.index;
|
|
4038
|
+
if (H === 0)
|
|
4036
4039
|
return 0;
|
|
4037
|
-
var
|
|
4038
|
-
return
|
|
4040
|
+
var X = it(j[0]), $ = O(Q).findIndex(function(B) {
|
|
4041
|
+
return B === X;
|
|
4039
4042
|
});
|
|
4040
|
-
return E < $ ? 0 :
|
|
4043
|
+
return E < $ ? 0 : H;
|
|
4041
4044
|
}
|
|
4042
4045
|
}, {
|
|
4043
4046
|
key: "_isRootComponent",
|
|
@@ -4045,23 +4048,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4045
4048
|
return this.externalComponent || this.rootTransition;
|
|
4046
4049
|
}
|
|
4047
4050
|
}]), b;
|
|
4048
|
-
}(),
|
|
4049
|
-
function
|
|
4051
|
+
}(), Bt = t("8bbf");
|
|
4052
|
+
function Wt(b, y) {
|
|
4050
4053
|
var E = b[y];
|
|
4051
4054
|
return E ? E() : [];
|
|
4052
4055
|
}
|
|
4053
|
-
function
|
|
4054
|
-
var y = b.$slots, E = b.realList, P = b.getKey, j = E || [],
|
|
4055
|
-
return
|
|
4056
|
-
}), Q = S(
|
|
4057
|
-
if (!
|
|
4056
|
+
function Ne(b) {
|
|
4057
|
+
var y = b.$slots, E = b.realList, P = b.getKey, j = E || [], H = ["header", "footer"].map(function(B) {
|
|
4058
|
+
return Wt(y, B);
|
|
4059
|
+
}), Q = S(H, 2), et = Q[0], yt = Q[1], X = y.item;
|
|
4060
|
+
if (!X)
|
|
4058
4061
|
throw new Error("draggable element must have an item slot");
|
|
4059
|
-
var $ = j.flatMap(function(
|
|
4060
|
-
return
|
|
4061
|
-
element:
|
|
4062
|
-
index:
|
|
4062
|
+
var $ = j.flatMap(function(B, _) {
|
|
4063
|
+
return X({
|
|
4064
|
+
element: B,
|
|
4065
|
+
index: _
|
|
4063
4066
|
}).map(function(tt) {
|
|
4064
|
-
return tt.key = P(
|
|
4067
|
+
return tt.key = P(B), tt.props = d(d({}, tt.props || {}), {}, {
|
|
4065
4068
|
"data-draggable": !0
|
|
4066
4069
|
}), tt;
|
|
4067
4070
|
});
|
|
@@ -4070,33 +4073,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4070
4073
|
throw new Error("Item slot must have only one child");
|
|
4071
4074
|
return {
|
|
4072
4075
|
header: et,
|
|
4073
|
-
footer:
|
|
4076
|
+
footer: yt,
|
|
4074
4077
|
default: $
|
|
4075
4078
|
};
|
|
4076
4079
|
}
|
|
4077
4080
|
function tn(b) {
|
|
4078
|
-
var y =
|
|
4081
|
+
var y = vt(b), E = !lt(b) && !y;
|
|
4079
4082
|
return {
|
|
4080
4083
|
transition: y,
|
|
4081
4084
|
externalComponent: E,
|
|
4082
|
-
tag: E ? Object(
|
|
4085
|
+
tag: E ? Object(Bt.resolveComponent)(b) : y ? Bt.TransitionGroup : b
|
|
4083
4086
|
};
|
|
4084
4087
|
}
|
|
4085
|
-
function
|
|
4086
|
-
var y = b.$slots, E = b.tag, P = b.realList, j = b.getKey,
|
|
4088
|
+
function Ut(b) {
|
|
4089
|
+
var y = b.$slots, E = b.tag, P = b.realList, j = b.getKey, H = Ne({
|
|
4087
4090
|
$slots: y,
|
|
4088
4091
|
realList: P,
|
|
4089
4092
|
getKey: j
|
|
4090
4093
|
}), Q = tn(E);
|
|
4091
|
-
return new
|
|
4092
|
-
nodes:
|
|
4094
|
+
return new Xt({
|
|
4095
|
+
nodes: H,
|
|
4093
4096
|
root: Q,
|
|
4094
4097
|
realList: P
|
|
4095
4098
|
});
|
|
4096
4099
|
}
|
|
4097
|
-
function
|
|
4100
|
+
function Jt(b, y) {
|
|
4098
4101
|
var E = this;
|
|
4099
|
-
Object(
|
|
4102
|
+
Object(Bt.nextTick)(function() {
|
|
4100
4103
|
return E.$emit(b.toLowerCase(), y);
|
|
4101
4104
|
});
|
|
4102
4105
|
}
|
|
@@ -4110,7 +4113,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4110
4113
|
function ue(b) {
|
|
4111
4114
|
var y = this, E = ne.call(this, b);
|
|
4112
4115
|
return function(P, j) {
|
|
4113
|
-
E.call(y, P, j),
|
|
4116
|
+
E.call(y, P, j), Jt.call(y, b, P);
|
|
4114
4117
|
};
|
|
4115
4118
|
}
|
|
4116
4119
|
var ce = null, de = {
|
|
@@ -4149,7 +4152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4149
4152
|
}
|
|
4150
4153
|
}, ve = ["update:modelValue", "change"].concat(O([].concat(O(nt.manageAndEmit), O(nt.emit)).map(function(b) {
|
|
4151
4154
|
return b.toLowerCase();
|
|
4152
|
-
}))), he = Object(
|
|
4155
|
+
}))), he = Object(Bt.defineComponent)({
|
|
4153
4156
|
name: "draggable",
|
|
4154
4157
|
inheritAttrs: !1,
|
|
4155
4158
|
props: de,
|
|
@@ -4162,24 +4165,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4162
4165
|
render: function() {
|
|
4163
4166
|
try {
|
|
4164
4167
|
this.error = !1;
|
|
4165
|
-
var y = this.$slots, E = this.$attrs, P = this.tag, j = this.componentData,
|
|
4168
|
+
var y = this.$slots, E = this.$attrs, P = this.tag, j = this.componentData, H = this.realList, Q = this.getKey, et = Ut({
|
|
4166
4169
|
$slots: y,
|
|
4167
4170
|
tag: P,
|
|
4168
|
-
realList:
|
|
4171
|
+
realList: H,
|
|
4169
4172
|
getKey: Q
|
|
4170
4173
|
});
|
|
4171
4174
|
this.componentStructure = et;
|
|
4172
|
-
var
|
|
4175
|
+
var yt = rt({
|
|
4173
4176
|
$attrs: E,
|
|
4174
4177
|
componentData: j
|
|
4175
4178
|
});
|
|
4176
|
-
return et.render(
|
|
4177
|
-
} catch (
|
|
4178
|
-
return this.error = !0, Object(
|
|
4179
|
+
return et.render(Bt.h, yt);
|
|
4180
|
+
} catch (X) {
|
|
4181
|
+
return this.error = !0, Object(Bt.h)("pre", {
|
|
4179
4182
|
style: {
|
|
4180
4183
|
color: "red"
|
|
4181
4184
|
}
|
|
4182
|
-
},
|
|
4185
|
+
}, X.stack);
|
|
4183
4186
|
}
|
|
4184
4187
|
},
|
|
4185
4188
|
created: function() {
|
|
@@ -4190,21 +4193,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4190
4193
|
if (!this.error) {
|
|
4191
4194
|
var E = this.$attrs, P = this.$el, j = this.componentStructure;
|
|
4192
4195
|
j.updated();
|
|
4193
|
-
var
|
|
4196
|
+
var H = at({
|
|
4194
4197
|
$attrs: E,
|
|
4195
4198
|
callBackBuilder: {
|
|
4196
|
-
manageAndEmit: function(
|
|
4197
|
-
return ue.call(y,
|
|
4199
|
+
manageAndEmit: function(yt) {
|
|
4200
|
+
return ue.call(y, yt);
|
|
4198
4201
|
},
|
|
4199
|
-
emit: function(
|
|
4200
|
-
return
|
|
4202
|
+
emit: function(yt) {
|
|
4203
|
+
return Jt.bind(y, yt);
|
|
4201
4204
|
},
|
|
4202
|
-
manage: function(
|
|
4203
|
-
return ne.call(y,
|
|
4205
|
+
manage: function(yt) {
|
|
4206
|
+
return ne.call(y, yt);
|
|
4204
4207
|
}
|
|
4205
4208
|
}
|
|
4206
4209
|
}), Q = P.nodeType === 1 ? P : P.parentElement;
|
|
4207
|
-
this._sortable = new L.a(Q,
|
|
4210
|
+
this._sortable = new L.a(Q, H), this.targetDomElement = Q, Q.__draggable_component__ = this;
|
|
4208
4211
|
}
|
|
4209
4212
|
},
|
|
4210
4213
|
updated: function() {
|
|
@@ -4229,9 +4232,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4229
4232
|
$attrs: {
|
|
4230
4233
|
handler: function(y) {
|
|
4231
4234
|
var E = this._sortable;
|
|
4232
|
-
E &&
|
|
4233
|
-
var j = S(P, 2),
|
|
4234
|
-
E.option(
|
|
4235
|
+
E && Pt(y).forEach(function(P) {
|
|
4236
|
+
var j = S(P, 2), H = j[0], Q = j[1];
|
|
4237
|
+
E.option(H, Q);
|
|
4235
4238
|
});
|
|
4236
4239
|
},
|
|
4237
4240
|
deep: !0
|
|
@@ -4246,7 +4249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4246
4249
|
},
|
|
4247
4250
|
emitChanges: function(y) {
|
|
4248
4251
|
var E = this;
|
|
4249
|
-
Object(
|
|
4252
|
+
Object(Bt.nextTick)(function() {
|
|
4250
4253
|
return E.$emit("change", y);
|
|
4251
4254
|
});
|
|
4252
4255
|
},
|
|
@@ -4265,8 +4268,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4265
4268
|
this.alterList(E);
|
|
4266
4269
|
},
|
|
4267
4270
|
updatePosition: function(y, E) {
|
|
4268
|
-
var P = function(
|
|
4269
|
-
return
|
|
4271
|
+
var P = function(H) {
|
|
4272
|
+
return H.splice(E, 0, H.splice(y, 1)[0]);
|
|
4270
4273
|
};
|
|
4271
4274
|
this.alterList(P);
|
|
4272
4275
|
},
|
|
@@ -4276,11 +4279,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4276
4279
|
return {
|
|
4277
4280
|
component: j
|
|
4278
4281
|
};
|
|
4279
|
-
var
|
|
4280
|
-
list:
|
|
4282
|
+
var H = j.realList, Q = {
|
|
4283
|
+
list: H,
|
|
4281
4284
|
component: j
|
|
4282
4285
|
};
|
|
4283
|
-
if (E !== P &&
|
|
4286
|
+
if (E !== P && H) {
|
|
4284
4287
|
var et = j.getUnderlyingVm(P) || {};
|
|
4285
4288
|
return d(d({}, et), Q);
|
|
4286
4289
|
}
|
|
@@ -4314,12 +4317,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4314
4317
|
}
|
|
4315
4318
|
var E = this.context, P = E.index, j = E.element;
|
|
4316
4319
|
this.spliceList(P, 1);
|
|
4317
|
-
var
|
|
4320
|
+
var H = {
|
|
4318
4321
|
element: j,
|
|
4319
4322
|
oldIndex: P
|
|
4320
4323
|
};
|
|
4321
4324
|
this.emitChanges({
|
|
4322
|
-
removed:
|
|
4325
|
+
removed: H
|
|
4323
4326
|
});
|
|
4324
4327
|
},
|
|
4325
4328
|
onDragUpdate: function(y) {
|
|
@@ -4340,20 +4343,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4340
4343
|
return 0;
|
|
4341
4344
|
var P = O(E.to.children).filter(function(et) {
|
|
4342
4345
|
return et.style.display !== "none";
|
|
4343
|
-
}), j = P.indexOf(E.related),
|
|
4344
|
-
return Q || !E.willInsertAfter ?
|
|
4346
|
+
}), j = P.indexOf(E.related), H = y.component.getVmIndexFromDomIndex(j), Q = P.indexOf(ce) !== -1;
|
|
4347
|
+
return Q || !E.willInsertAfter ? H : H + 1;
|
|
4345
4348
|
},
|
|
4346
4349
|
onDragMove: function(y, E) {
|
|
4347
4350
|
var P = this.move, j = this.realList;
|
|
4348
4351
|
if (!P || !j)
|
|
4349
4352
|
return !0;
|
|
4350
|
-
var
|
|
4353
|
+
var H = this.getRelatedContextFromMoveEvent(y), Q = this.computeFutureIndex(H, y), et = d(d({}, this.context), {}, {
|
|
4351
4354
|
futureIndex: Q
|
|
4352
|
-
}),
|
|
4353
|
-
relatedContext:
|
|
4355
|
+
}), yt = d(d({}, y), {}, {
|
|
4356
|
+
relatedContext: H,
|
|
4354
4357
|
draggedContext: et
|
|
4355
4358
|
});
|
|
4356
|
-
return P(
|
|
4359
|
+
return P(yt, E);
|
|
4357
4360
|
},
|
|
4358
4361
|
onDragEnd: function() {
|
|
4359
4362
|
ce = null;
|
|
@@ -4367,12 +4370,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4367
4370
|
var a = t("23e7"), s = t("861d"), l = t("e8b5"), u = t("23cb"), c = t("50c4"), d = t("fc6a"), v = t("8418"), h = t("b622"), g = t("1dde"), p = t("ae40"), m = g("slice"), S = p("slice", { ACCESSORS: !0, 0: 0, 1: 2 }), T = h("species"), x = [].slice, C = Math.max;
|
|
4368
4371
|
a({ target: "Array", proto: !0, forced: !m || !S }, {
|
|
4369
4372
|
slice: function(w, L) {
|
|
4370
|
-
var I = d(this), N = c(I.length), F = u(w, N), V = u(L === void 0 ? N : L, N), D, R,
|
|
4373
|
+
var I = d(this), N = c(I.length), F = u(w, N), V = u(L === void 0 ? N : L, N), D, R, K;
|
|
4371
4374
|
if (l(I) && (D = I.constructor, typeof D == "function" && (D === Array || l(D.prototype)) ? D = void 0 : s(D) && (D = D[T], D === null && (D = void 0)), D === Array || D === void 0))
|
|
4372
4375
|
return x.call(I, F, V);
|
|
4373
|
-
for (R = new (D === void 0 ? Array : D)(C(V - F, 0)),
|
|
4374
|
-
F in I && v(R,
|
|
4375
|
-
return R.length =
|
|
4376
|
+
for (R = new (D === void 0 ? Array : D)(C(V - F, 0)), K = 0; F < V; F++, K++)
|
|
4377
|
+
F in I && v(R, K, I[F]);
|
|
4378
|
+
return R.length = K, R;
|
|
4376
4379
|
}
|
|
4377
4380
|
});
|
|
4378
4381
|
},
|
|
@@ -4427,44 +4430,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4427
4430
|
/******/
|
|
4428
4431
|
}).default;
|
|
4429
4432
|
});
|
|
4430
|
-
})(
|
|
4431
|
-
const
|
|
4432
|
-
function
|
|
4433
|
+
})(Do);
|
|
4434
|
+
const da = /* @__PURE__ */ io(gn);
|
|
4435
|
+
function ka(o) {
|
|
4433
4436
|
return {
|
|
4434
4437
|
getSFCCode: () => new Promise((e, f) => {
|
|
4435
|
-
import("./sfc-
|
|
4438
|
+
import("./sfc-1a2ff384.js").then((t) => {
|
|
4436
4439
|
const { genSFC: a } = t, s = a(o == null ? void 0 : o.pageConfig, o == null ? void 0 : o.widgetList, !1);
|
|
4437
4440
|
e == null || e(s);
|
|
4438
4441
|
});
|
|
4439
4442
|
}),
|
|
4440
4443
|
getFieldItems: () => new Promise((e, f) => {
|
|
4441
|
-
import("./sfcview-
|
|
4444
|
+
import("./sfcview-1a5231ee.js").then((t) => {
|
|
4442
4445
|
const { useGenFieldItemList: a } = t, { filterFieldItems: s } = a(o == null ? void 0 : o.widgetList), l = s();
|
|
4443
4446
|
e == null || e(l);
|
|
4444
4447
|
});
|
|
4445
4448
|
}),
|
|
4446
4449
|
getCtx: (e) => {
|
|
4447
|
-
const { instance: f } =
|
|
4448
|
-
return
|
|
4450
|
+
const { instance: f } = Xn(e);
|
|
4451
|
+
return Ur({ instance: f });
|
|
4449
4452
|
}
|
|
4450
4453
|
};
|
|
4451
4454
|
}
|
|
4452
|
-
const
|
|
4453
|
-
o.use(
|
|
4455
|
+
const va = (o) => {
|
|
4456
|
+
o.use(uo), o.use(lo);
|
|
4454
4457
|
};
|
|
4455
|
-
|
|
4456
|
-
const
|
|
4458
|
+
Jn.install = va;
|
|
4459
|
+
const qa = {
|
|
4457
4460
|
install(o) {
|
|
4458
|
-
o.use(
|
|
4461
|
+
o.use(ho);
|
|
4459
4462
|
try {
|
|
4460
|
-
o.component("draggable",
|
|
4463
|
+
o.component("draggable", da);
|
|
4461
4464
|
} catch {
|
|
4462
4465
|
}
|
|
4463
|
-
o.component("VFormRender",
|
|
4466
|
+
o.component("VFormRender", Jn);
|
|
4464
4467
|
}
|
|
4465
4468
|
};
|
|
4466
4469
|
export {
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
+
qa as default,
|
|
4471
|
+
ei as loadSfc,
|
|
4472
|
+
ka as useGenerator
|
|
4470
4473
|
};
|