hlrender 0.0.202 → 0.0.206
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-7c668149.js → _pdf-253395f0.js} +6 -6
- package/{_txt-31429e8d.js → _txt-a707bc5c.js} +6 -6
- package/{_unsupport-35f551f9.js → _unsupport-3eb82daa.js} +1 -1
- package/{affix-widget-ddc78fd2.js → affix-widget-9ddc9909.js} +16 -16
- package/{alert-widget-a9d39f29.js → alert-widget-b75af0a6.js} +16 -16
- package/{anchor-widget-3d626be6.js → anchor-widget-92f6a72c.js} +13 -13
- package/{auto-complete-widget-7db0de11.js → auto-complete-widget-58a69dc8.js} +16 -16
- package/{avatar-widget-481b4ab1.js → avatar-widget-c00a510a.js} +16 -16
- package/{backtop-widget-27954a77.js → backtop-widget-0faa98ca.js} +16 -16
- package/{badge-widget-8fd64136.js → badge-widget-4b7945ad.js} +16 -16
- package/{barcode-widget-213a15b9.js → barcode-widget-5d740bfe.js} +13 -13
- package/{baseImp-242db99f.js → baseImp-0b9badc9.js} +12 -6
- package/{breadcrumb-widget-71a1c2fd.js → breadcrumb-widget-3ffd9785.js} +13 -13
- package/{button-widget-9f5a3fb4.js → button-widget-4330d78b.js} +16 -16
- package/{cache-widget-38b72fda.js → cache-widget-b2a554e7.js} +15 -15
- package/{card-widget-1528e123.js → card-widget-7f693641.js} +14 -14
- package/{carousel-widget-95b2c9ed.js → carousel-widget-7dab0441.js} +14 -14
- package/{cascader-widget-fe9aff54.js → cascader-widget-ba4cc7e3.js} +15 -15
- package/{chart-widget-611e48bd.js → chart-widget-6f82e01b.js} +13 -13
- package/{checkbox-widget-09707dc4.js → checkbox-widget-30ee7abd.js} +15 -15
- package/{collapse-widget-0b6b4eca.js → collapse-widget-ed56e9ce.js} +14 -14
- package/{color-picker-widget-84549c6f.js → color-picker-widget-195a3ea3.js} +15 -15
- package/{cont-cell-widget-77c16652.js → cont-cell-widget-4f4c2dc7.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a4d8969a.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ba79328e.js} +5 -5
- package/{cont-widget-17f438f8.js → cont-widget-edcb1bef.js} +5 -5
- package/{content-wrapper-9d93e627.js → content-wrapper-26074a64.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-55618b6d.js → content-wrapper.vue_vue_type_script_setup_true_lang-218c9ef7.js} +3 -3
- package/{date-picker-range-widget-d6e754cd.js → date-picker-range-widget-715aaf81.js} +15 -15
- package/{date-picker-widget-b8e833dc.js → date-picker-widget-29b8b420.js} +15 -15
- package/default-slot-widget-da675376.js +26 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fcf48830.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-382c2367.js} +7 -7
- package/{descriptions-widget-e294abe8.js → descriptions-widget-0860d156.js} +14 -14
- package/{dialog-cb26ee83.js → dialog-1931c6d5.js} +2 -2
- package/{dialog-widget-03845073.js → dialog-widget-6116c6c0.js} +15 -15
- package/{divider-widget-f03b1dd9.js → divider-widget-61b89338.js} +16 -16
- package/{drag-wrapper-6f9d27ca.js → drag-wrapper-6fe1fa7c.js} +6 -6
- package/{drawer-widget-1d3d5b3f.js → drawer-widget-584a4933.js} +15 -15
- package/{dropdown-widget-0c7af6ed.js → dropdown-widget-03803162.js} +14 -14
- package/{empty-widget-ea1bbed0.js → empty-widget-7006a86b.js} +16 -16
- package/{enum-type-1c0ae1da.js → enum-type-371a21c2.js} +897 -266
- package/{enum-type-768f07b9.js → enum-type-f421870d.js} +1 -1
- package/{expression-d514d13e.js → expression-242aaf07.js} +2 -2
- package/feedback-widget-0ebf7939.js +26 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-5b8dd13d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-47527ebd.js} +5 -5
- package/{fieldobj-5eca64a8.js → fieldobj-45322a50.js} +1 -1
- package/{file-upload-widget-2d109e94.js → file-upload-widget-d4c0318e.js} +20 -20
- package/{form-item-wrapper-b761d512.js → form-item-wrapper-6cc630c2.js} +11 -11
- package/{form-widget-034a08b6.js → form-widget-cbc6e330.js} +10 -10
- package/{grid-col-widget-64f6dcd4.js → grid-col-widget-99aae520.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c8c7af67.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2814f7a3.js} +5 -5
- package/{grid-widget-63a5f5dc.js → grid-widget-37242663.js} +5 -5
- package/{html-text-widget-39de395d.js → html-text-widget-5d901d37.js} +14 -14
- package/{icon-widget-a92659c0.js → icon-widget-578b9c9c.js} +13 -13
- package/{iframe-widget-52faa612.js → iframe-widget-0421d341.js} +13 -13
- package/{image-widget-17dd79c8.js → image-widget-45f2084e.js} +13 -13
- package/{index-2f190dda.js → index-0ec53886.js} +4 -4
- package/{index-a152420d.js → index-71414f55.js} +1 -1
- package/{index-38b887d7.js → index-e87f6095.js} +5 -5
- package/{input-number-widget-2ec5fbb9.js → input-number-widget-e5f194ee.js} +15 -15
- package/{input-widget-0fcb2818.js → input-widget-2e387198.js} +16 -16
- package/{label-wrapper-0b97fbf7.js → label-wrapper-74ac3d25.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-21ba79d3.js → label-wrapper.vue_vue_type_style_index_0_lang-a752a09a.js} +3 -3
- package/{link-widget-5874c9bd.js → link-widget-c4b88869.js} +16 -16
- package/{ltable-col-widget-dba43068.js → ltable-col-widget-d997607a.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b21fceac.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d76a0dda.js} +9 -9
- package/{ltable-widget-003f718c.js → ltable-widget-3fd4f8fa.js} +5 -5
- package/{menu-widget-d0e533ed.js → menu-widget-4922b9ad.js} +14 -14
- package/{model-widget-31487103.js → model-widget-d2b07b57.js} +13 -13
- package/{multirow-d79e0604.js → multirow-0925cb09.js} +6 -6
- package/{multirow-widget-0b8d2b58.js → multirow-widget-438d3717.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-f7ab8680.js → pagination-widget-bb45f999.js} +13 -13
- package/{picture-upload-widget-78d34bf8.js → picture-upload-widget-6a01717b.js} +16 -16
- package/{progress-widget-6c7e162f.js → progress-widget-5e36a47c.js} +14 -14
- package/{propresult-e4364460.js → propresult-7e5e2a86.js} +1 -1
- package/{qrcode-widget-16957a62.js → qrcode-widget-1f993823.js} +13 -13
- package/{radio-widget-188c1438.js → radio-widget-845c5f3a.js} +15 -15
- package/{range-widget-7f289ea1.js → range-widget-55e8fc67.js} +16 -16
- package/{rate-widget-2dd26126.js → rate-widget-488e03ea.js} +15 -15
- package/render.es.js +852 -853
- package/render.umd.js +835 -272
- package/{result-widget-2aa7e9a0.js → result-widget-a3d87088.js} +14 -14
- package/{rich-editor-widget-a00fe33d.js → rich-editor-widget-38df15ad.js} +15 -15
- package/{router-widget-967e9b1d.js → router-widget-f444b2b5.js} +13 -13
- package/{select-widget-c17f0591.js → select-widget-c91806f0.js} +15 -15
- package/{sfc-cfdb858f.js → sfc-906b2ece.js} +8 -8
- package/{sfcview-5e86900c.js → sfcview-44b09d06.js} +7 -7
- package/{share-field-fcd3dafc.js → share-field-e617229c.js} +134 -133
- package/{share-file-73cef45a.js → share-file-b00abb8f.js} +6 -6
- package/{slider-widget-07a59d1e.js → slider-widget-14047cb7.js} +15 -15
- package/{slot-7eaafaa3.js → slot-d17a0232.js} +4 -4
- package/{static-text-widget-91ff9511.js → static-text-widget-9fc4c89f.js} +14 -14
- package/{steps-widget-b1e0882e.js → steps-widget-998ecf65.js} +13 -13
- package/{subMenu-widget-31b2de2f.js → subMenu-widget-abae98b6.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-705e9942.js → subMenu-widget.vue_vue_type_script_setup_true_lang-92a3f7dd.js} +3 -3
- package/{switch-widget-a555b084.js → switch-widget-d9e89a5f.js} +15 -15
- package/{tab-pane-widget-ac8c950e.js → tab-pane-widget-23653113.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-66244ac0.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ffb2c743.js} +5 -5
- package/table-col-widget-b85130e9.js +22 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-27776f4a.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8cd47cfd.js} +6 -6
- package/{table-widget-7fd05bf7.js → table-widget-36fcd9ae.js} +15 -15
- package/{tabs-widget-dc5727ef.js → tabs-widget-8f782f21.js} +7 -7
- package/{tag-widget-1a6e5fc4.js → tag-widget-308644a0.js} +16 -16
- package/{text-widget-538a206e.js → text-widget-4d09c9f5.js} +16 -16
- package/{textarea-widget-9b7f1126.js → textarea-widget-0768353e.js} +15 -15
- package/{time-picker-range-widget-61caae19.js → time-picker-range-widget-b72dc3f2.js} +15 -15
- package/{time-picker-widget-5753a44d.js → time-picker-widget-d73cf0c9.js} +15 -15
- package/{time-select-widget-6d373331.js → time-select-widget-6c2e583c.js} +15 -15
- package/{tmpl-widget-3fb389f8.js → tmpl-widget-f9e1d402.js} +14 -14
- package/{tree-select-widget-d987b456.js → tree-select-widget-52d4da3f.js} +15 -15
- package/{tree-widget-6b6ff0ad.js → tree-widget-1b6c7c89.js} +13 -13
- package/{uuid-81bac653.js → uuid-7e57e368.js} +1 -1
- package/{verifycode-widget-15cf3e5c.js → verifycode-widget-ec65a0c7.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-00da89c5.js} +7 -7
- package/{wrapper-widget-e243df5a.js → wrapper-widget-aeca5e2e.js} +6 -6
- package/default-slot-widget-187a0a77.js +0 -26
- package/feedback-widget-f6ab7210.js +0 -26
- package/table-col-widget-c0db0601.js +0 -22
package/render.es.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { _ as sr } from "./cont-cell-widget-
|
|
2
|
-
import { _ as lr } from "./cont-widget-
|
|
3
|
-
import { _ as fr } from "./form-widget-
|
|
4
|
-
import { _ as ur } from "./grid-col-widget-
|
|
5
|
-
import { _ as cr } from "./grid-widget-
|
|
6
|
-
import { _ as dr } from "./ltable-col-widget-
|
|
7
|
-
import { _ as vr } from "./ltable-widget-
|
|
8
|
-
import { _ as hr } from "./tab-pane-widget-
|
|
9
|
-
import { _ as gr } from "./tabs-widget-
|
|
10
|
-
import { _ as pr } from "./wrapper-widget-
|
|
11
|
-
import { _ as mr } from "./index-
|
|
12
|
-
import { D as yr, o as Sr } from "./dialog-
|
|
13
|
-
import br, { computed as
|
|
14
|
-
import { t as
|
|
15
|
-
import { u as
|
|
16
|
-
import { l as
|
|
17
|
-
import { u as An, F as
|
|
18
|
-
import { I as
|
|
19
|
-
import { i as
|
|
20
|
-
import { g as
|
|
1
|
+
import { _ as sr } from "./cont-cell-widget-4f4c2dc7.js";
|
|
2
|
+
import { _ as lr } from "./cont-widget-edcb1bef.js";
|
|
3
|
+
import { _ as fr } from "./form-widget-cbc6e330.js";
|
|
4
|
+
import { _ as ur } from "./grid-col-widget-99aae520.js";
|
|
5
|
+
import { _ as cr } from "./grid-widget-37242663.js";
|
|
6
|
+
import { _ as dr } from "./ltable-col-widget-d997607a.js";
|
|
7
|
+
import { _ as vr } from "./ltable-widget-3fd4f8fa.js";
|
|
8
|
+
import { _ as hr } from "./tab-pane-widget-23653113.js";
|
|
9
|
+
import { _ as gr } from "./tabs-widget-8f782f21.js";
|
|
10
|
+
import { _ as pr } from "./wrapper-widget-aeca5e2e.js";
|
|
11
|
+
import { _ as mr } from "./index-0ec53886.js";
|
|
12
|
+
import { D as yr, o as Sr } from "./dialog-1931c6d5.js";
|
|
13
|
+
import br, { computed as Ie, ref as Te, watch as Er, onMounted as xr, onUnmounted as Or, nextTick as Ir, defineComponent as Hn, provide as Tn, resolveDirective as Tr, withDirectives as Pr, openBlock as Pn, createElementBlock as Cr, unref as oe, normalizeClass as Dr, withKeys as Cn, renderSlot as rn, createBlock as Ar, Suspense as Rr, withCtx as Mr, createVNode as Nr } from "vue";
|
|
14
|
+
import { t as Fr, r as wr, p as jr, f as je, a as Vn, w as Je, d as Dn } from "./expression-242aaf07.js";
|
|
15
|
+
import { u as Lr, a as Ur, P as Pe, g as $r } from "./baseImp-0b9badc9.js";
|
|
16
|
+
import { l as ni } from "./baseImp-0b9badc9.js";
|
|
17
|
+
import { u as An, F as Gr } from "./slot-d17a0232.js";
|
|
18
|
+
import { I as Kr } from "./widget-base-4c2d6265.js";
|
|
19
|
+
import { i as Br, a as Wr, o as Hr, b as Vr, f as Xr, d as Yr, c as zr, t as Jr, e as Qr } from "./enum-type-371a21c2.js";
|
|
20
|
+
import { g as Zr } from "./uuid-7e57e368.js";
|
|
21
21
|
import { u as Xn } from "./icon-a0e0cdb0.js";
|
|
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-
|
|
22
|
+
import { u as kr, a as qr } from "./multirow-0925cb09.js";
|
|
23
|
+
import { W as Le } from "./enum-type-f421870d.js";
|
|
24
|
+
import { u as _r, a as Rn, R as Mn } from "./share-field-e617229c.js";
|
|
25
|
+
import { ElMessage as to, ElMessageBox as eo, ElNotification as no } from "element-plus";
|
|
26
|
+
import { D as ro } from "./drag-wrapper-6fe1fa7c.js";
|
|
27
|
+
import { _ as oo } from "./_plugin-vue_export-helper-dad06003.js";
|
|
28
|
+
import { g as ao, c as io, a as so } from "./_commonjsHelpers-e7ea1525.js";
|
|
29
|
+
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ba79328e.js";
|
|
30
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-00da89c5.js";
|
|
31
|
+
import "./index-e87f6095.js";
|
|
32
|
+
import "./index-71414f55.js";
|
|
33
|
+
import "./fieldobj-45322a50.js";
|
|
34
|
+
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2814f7a3.js";
|
|
35
|
+
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d76a0dda.js";
|
|
36
|
+
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ffb2c743.js";
|
|
37
37
|
import "./source-map-b04aec4a.js";
|
|
38
38
|
import "./esprima-e8d15055.js";
|
|
39
39
|
function Yn(o) {
|
|
@@ -47,25 +47,25 @@ function Yn(o) {
|
|
|
47
47
|
function zn() {
|
|
48
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
|
|
50
|
+
const lo = (o, n) => {
|
|
51
51
|
const r = zn();
|
|
52
52
|
for (const i in Object.keys(r))
|
|
53
53
|
o.component(i, r[i]);
|
|
54
|
-
},
|
|
54
|
+
}, fo = { install: lo }, uo = (o, n) => {
|
|
55
55
|
const r = zn();
|
|
56
56
|
for (const i in Object.keys(r))
|
|
57
57
|
o.component(i, r[i]);
|
|
58
|
-
},
|
|
59
|
-
function
|
|
58
|
+
}, co = { install: uo };
|
|
59
|
+
function vo() {
|
|
60
60
|
return Yn(/* @__PURE__ */ Object.assign({ "./index.vue": mr }));
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
const r =
|
|
62
|
+
const ho = (o, n) => {
|
|
63
|
+
const r = vo();
|
|
64
64
|
o.use(yr);
|
|
65
65
|
for (const i in Object.keys(r))
|
|
66
66
|
o.component(i, r[i]);
|
|
67
|
-
},
|
|
68
|
-
function
|
|
67
|
+
}, go = { install: ho };
|
|
68
|
+
function po(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 go(o, n, r, i) {
|
|
|
73
73
|
b: Math.round(r * (1 - i) + e.b * i)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function mo(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 = po(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 yo(o, n = !1, r = 5) {
|
|
85
|
+
const i = bo(o), e = mo(i.r, i.g, i.b, n, r);
|
|
86
|
+
return e == null ? void 0 : e.map((f) => So(f.r, f.g, f.b));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function So(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 bo(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,97 +101,96 @@ function So(o) {
|
|
|
101
101
|
b: n & 255
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Eo(o, n) {
|
|
105
105
|
return {
|
|
106
|
-
cssWithPrimaryColor:
|
|
106
|
+
cssWithPrimaryColor: Ie(() => {
|
|
107
107
|
var f, t;
|
|
108
|
-
const i = (n == null ? void 0 : n.themeColor) ||
|
|
108
|
+
const i = (n == null ? void 0 : n.themeColor) || Fr.color1;
|
|
109
109
|
var e = {
|
|
110
110
|
themeColor: i
|
|
111
111
|
};
|
|
112
|
-
return (f =
|
|
112
|
+
return (f = yo(i, !1, 10)) == null || f.forEach((a, s) => {
|
|
113
113
|
e["themeColor-" + s] = a;
|
|
114
|
-
}), !
|
|
114
|
+
}), !Br(o) && Wr(o) && ((t = Hr(e)) == null || t.forEach((a) => {
|
|
115
115
|
var s = `var\\(--${a}\\)`;
|
|
116
|
-
o =
|
|
116
|
+
o = wr(o, s, e[a]);
|
|
117
117
|
})), o;
|
|
118
118
|
})
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var { addWindowName: n, addWindowHook: r } =
|
|
121
|
+
function xo(o) {
|
|
122
|
+
var { addWindowName: n, addWindowHook: r } = Lr();
|
|
123
123
|
n(), r("openModalAsync", (i) => {
|
|
124
124
|
Sr(o == null ? void 0 : o.instance, i);
|
|
125
|
-
}), r("ElMessage",
|
|
125
|
+
}), r("ElMessage", to), r("ElMessageBox", eo), r("ElNotification", no);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const n = o.designer, r = n == null ? void 0 : n.pageConfig, i =
|
|
127
|
+
function Oo(o) {
|
|
128
|
+
const n = o.designer, r = n == null ? void 0 : n.pageConfig, i = Te(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 } = qr();
|
|
129
129
|
var { instance: d, proxy: v } = Xn();
|
|
130
|
-
const h = { instance: d, designState: e, formData: f, pageConfig: r, globalConfig: t }, { handleFunc: g } =
|
|
131
|
-
let
|
|
130
|
+
const h = { instance: d, designState: e, formData: f, pageConfig: r, globalConfig: t }, { handleFunc: g } = _r({ options: r }, h), { callWidgetsExposed: p } = Rn(s), { formModel: m, setData: S, getData: T, clearData: x } = kr(i.value, h), P = new Mn(a), O = new Mn(s), { findRefByName: w } = Rn(s), { getOneSchemaData: L, getSchemaDataObject: I, getSchemaDatas: N } = Ur(h);
|
|
131
|
+
let X = (() => "vfRender" + Zr())();
|
|
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
|
-
},
|
|
137
|
-
const { insertCustomCssToHead:
|
|
138
|
-
if (
|
|
139
|
-
const { cssWithPrimaryColor:
|
|
140
|
-
|
|
136
|
+
}, B = Ie(() => e ? "" : X), M = () => {
|
|
137
|
+
const { insertCustomCssToHead: K, insertGlobalFunctionsToHtml: k } = An(), Mt = Pe.getValue(r == null ? void 0 : r.cssCode, !1, !0);
|
|
138
|
+
if (Mt) {
|
|
139
|
+
const { cssWithPrimaryColor: Pt } = Eo(Mt, { themeColor: (t == null ? void 0 : t.themeColor) || "" });
|
|
140
|
+
K(Pt.value, B.value);
|
|
141
141
|
}
|
|
142
|
-
return new Promise((
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}) :
|
|
142
|
+
return new Promise((Pt) => {
|
|
143
|
+
const Nt = Pe.getValue(r == null ? void 0 : r.functions, !1, !0);
|
|
144
|
+
Nt ? k(Nt, B.value).then((ne) => {
|
|
145
|
+
Pt(ne);
|
|
146
|
+
}) : Pt(!0);
|
|
147
147
|
});
|
|
148
148
|
}, G = () => {
|
|
149
|
-
const { removeCustomCssToHead:
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
J ? M().then((ft) => {
|
|
156
|
-
nt();
|
|
157
|
-
}) : nt();
|
|
158
|
-
}, rt = wr.page, xt = () => {
|
|
149
|
+
const { removeCustomCssToHead: K, removeGlobalFunctionsToHtml: k } = An();
|
|
150
|
+
K(B.value), k(B.value);
|
|
151
|
+
}, _ = () => {
|
|
152
|
+
bt(), D(), Et(), Ut();
|
|
153
|
+
}, rt = jr.page, bt = () => {
|
|
159
154
|
P.setWidgetRef(rt, d), O.setWidgetRef(rt, d);
|
|
160
|
-
}, st = (
|
|
161
|
-
p(
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
p(
|
|
166
|
-
}, ot = (
|
|
167
|
-
|
|
168
|
-
}, it = (
|
|
169
|
-
if (
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
if (!
|
|
155
|
+
}, st = (K) => p(K, Le.getValue), lt = (K, k) => p(K, Le.setValue, k), vt = (K, k = !0) => {
|
|
156
|
+
p(K, Le.setDisabled, { flag: k });
|
|
157
|
+
}, yt = (K) => {
|
|
158
|
+
vt(K, !1);
|
|
159
|
+
}, ct = (K, k = !0) => {
|
|
160
|
+
p(K, Le.setHidden, { flag: k });
|
|
161
|
+
}, ot = (K) => {
|
|
162
|
+
ct(K, !1);
|
|
163
|
+
}, it = (K) => {
|
|
164
|
+
if (K) {
|
|
165
|
+
var k = Xr(K);
|
|
166
|
+
if (k) {
|
|
167
|
+
if (!k.pageConfig || !k.widgetList)
|
|
173
168
|
return "Invalid pageat of page json.";
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
Yr(o.pageConfig, k), M().then((Mt) => {
|
|
170
|
+
Ir(() => {
|
|
171
|
+
_(), R();
|
|
177
172
|
});
|
|
178
173
|
});
|
|
179
174
|
} else
|
|
180
175
|
return "Set page json failed.";
|
|
181
176
|
}
|
|
182
|
-
},
|
|
183
|
-
v == null || v.$emit(Vn.formChange,
|
|
184
|
-
},
|
|
185
|
-
l(
|
|
186
|
-
|
|
177
|
+
}, Tt = (K, k, Mt) => {
|
|
178
|
+
v == null || v.$emit(Vn.formChange, K, k, Mt, m);
|
|
179
|
+
}, Et = () => {
|
|
180
|
+
l(je.fieldChange), u(je.fieldChange, (K) => {
|
|
181
|
+
Tt(K == null ? void 0 : K.fieldName, K == null ? void 0 : K.newValue, K == null ? void 0 : K.oldValue);
|
|
187
182
|
});
|
|
188
183
|
}, Ut = () => {
|
|
189
|
-
l(
|
|
184
|
+
l(je.fieldValidation), u(je.fieldValidation, (K) => {
|
|
190
185
|
});
|
|
191
|
-
};
|
|
192
|
-
return
|
|
193
|
-
|
|
186
|
+
}, Ht = Te(!1), $t = Te(!1);
|
|
187
|
+
return Er([Ht, $t], ([K, k]) => {
|
|
188
|
+
K && k && R();
|
|
189
|
+
}), M().then(() => {
|
|
190
|
+
_(), Ht.value = !0;
|
|
194
191
|
}), xr(() => {
|
|
192
|
+
x(), Vr(), xo({ instance: d }), $t.value = !0;
|
|
193
|
+
}), Or(() => {
|
|
195
194
|
x(), G();
|
|
196
195
|
}), {
|
|
197
196
|
formModel: m,
|
|
@@ -203,10 +202,10 @@ function xo(o) {
|
|
|
203
202
|
// findRefById,
|
|
204
203
|
findRefByName: w,
|
|
205
204
|
setPageJson: it,
|
|
206
|
-
hideWidgets:
|
|
205
|
+
hideWidgets: ct,
|
|
207
206
|
showWidgets: ot,
|
|
208
|
-
disableWidgets:
|
|
209
|
-
enableWidgets:
|
|
207
|
+
disableWidgets: vt,
|
|
208
|
+
enableWidgets: yt,
|
|
210
209
|
getFieldValue: st,
|
|
211
210
|
setFieldValue: lt,
|
|
212
211
|
setData: S,
|
|
@@ -222,7 +221,7 @@ function xo(o) {
|
|
|
222
221
|
}
|
|
223
222
|
};
|
|
224
223
|
}
|
|
225
|
-
function
|
|
224
|
+
function Io() {
|
|
226
225
|
const o = {}, n = (e, f, t) => {
|
|
227
226
|
o[e] = { opt: f, doEvent: t };
|
|
228
227
|
}, r = (e, f) => {
|
|
@@ -239,8 +238,8 @@ function Oo() {
|
|
|
239
238
|
}
|
|
240
239
|
};
|
|
241
240
|
}
|
|
242
|
-
function
|
|
243
|
-
const { bindKey: n, runEvent: r } =
|
|
241
|
+
function To(o) {
|
|
242
|
+
const { bindKey: n, runEvent: r } = Io(), i = () => {
|
|
244
243
|
n("enter", { ctrlKey: !1 }, a), n("arrowleft", { ctrlKey: !0 }, s);
|
|
245
244
|
}, e = (l) => (i(), r(l)), f = "input,select,textarea", t = ["textarea"], a = () => {
|
|
246
245
|
var v, h;
|
|
@@ -272,42 +271,42 @@ function Io(o) {
|
|
|
272
271
|
addKeyBoardEvent: e
|
|
273
272
|
};
|
|
274
273
|
}
|
|
275
|
-
const
|
|
276
|
-
...
|
|
274
|
+
const Po = ["element-loading-text", "onKeyup"], Co = Hn({ componentName: Je.VFormRender, name: Je.VFormRender }), Do = /* @__PURE__ */ Hn({
|
|
275
|
+
...Co,
|
|
277
276
|
props: {
|
|
278
|
-
...
|
|
277
|
+
...Kr,
|
|
279
278
|
pageData: { type: Object },
|
|
280
279
|
renderConfig: { type: Object }
|
|
281
280
|
},
|
|
282
281
|
setup(o, { expose: n, emit: r }) {
|
|
283
|
-
const i = o, { formModel: e, exposed: f, widgetList: t, pageConfig: a, allWidgetRefList: s } =
|
|
282
|
+
const i = o, { formModel: e, exposed: f, widgetList: t, pageConfig: a, allWidgetRefList: s } = Oo(i), l = Ie(() => {
|
|
284
283
|
var m, S;
|
|
285
|
-
return
|
|
286
|
-
}), u =
|
|
284
|
+
return Pe.getValue((S = (m = i.designer) == null ? void 0 : m.pageConfig) == null ? void 0 : S.layoutType);
|
|
285
|
+
}), u = Ie(() => zr(Jr(Pe.getValue(a == null ? void 0 : a.customClass), !0))), c = Ie(() => {
|
|
287
286
|
var m;
|
|
288
|
-
return (m =
|
|
289
|
-
}), d =
|
|
290
|
-
|
|
287
|
+
return (m = Pe.getValue(a == null ? void 0 : a.componentWrapperClass)) == null ? void 0 : m.join(" ");
|
|
288
|
+
}), d = Te(!1), v = {};
|
|
289
|
+
Gr.globalProvide({
|
|
291
290
|
formRefList: v,
|
|
292
291
|
globalRefList: s,
|
|
293
292
|
globalDataModel: e,
|
|
294
|
-
globalFormName:
|
|
293
|
+
globalFormName: Je.VFormRender
|
|
295
294
|
// globalPageName: widgetVar.VFormRender
|
|
296
295
|
}), Tn(Dn.globalConfig, i.renderConfig), Tn(Dn.isRenderComplete, d);
|
|
297
|
-
const h =
|
|
298
|
-
const { addKeyBoardEvent: S } =
|
|
296
|
+
const h = Te(), g = (m) => {
|
|
297
|
+
const { addKeyBoardEvent: S } = To(h.value);
|
|
299
298
|
S(m);
|
|
300
299
|
}, p = () => {
|
|
301
300
|
d.value = !0, r(Vn.renderComplete);
|
|
302
301
|
};
|
|
303
302
|
return n({
|
|
304
303
|
...f,
|
|
305
|
-
componentName:
|
|
304
|
+
componentName: Je.VFormRender
|
|
306
305
|
}), (m, S) => {
|
|
307
|
-
const T =
|
|
308
|
-
return
|
|
309
|
-
"element-loading-text":
|
|
310
|
-
class:
|
|
306
|
+
const T = Tr("loading");
|
|
307
|
+
return Pr((Pn(), Cr("div", {
|
|
308
|
+
"element-loading-text": oe(Qr).i18nt("designer.hint.loading"),
|
|
309
|
+
class: Dr([...oe(u), oe(l) + "-layout", { loadingLayout: !d.value }]),
|
|
311
310
|
tabindex: "0",
|
|
312
311
|
ref_key: "taregtWrapperRef",
|
|
313
312
|
ref: h,
|
|
@@ -316,30 +315,30 @@ const To = ["element-loading-text", "onKeyup"], Po = Hn({ componentName: ze.VFor
|
|
|
316
315
|
Cn(g, ["left"])
|
|
317
316
|
]
|
|
318
317
|
}, [
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
(Pn(),
|
|
322
|
-
default:
|
|
323
|
-
|
|
318
|
+
rn(m.$slots, "header", {}, void 0, !0),
|
|
319
|
+
rn(m.$slots, "default", {}, () => [
|
|
320
|
+
(Pn(), Ar(Rr, { onResolve: p }, {
|
|
321
|
+
default: Mr(() => [
|
|
322
|
+
Nr(ro, {
|
|
324
323
|
designer: m.designer,
|
|
325
|
-
"widget-list":
|
|
326
|
-
model:
|
|
324
|
+
"widget-list": oe(t),
|
|
325
|
+
model: oe(e),
|
|
327
326
|
"design-state": !1,
|
|
328
|
-
"component-class":
|
|
327
|
+
"component-class": oe(c)
|
|
329
328
|
}, null, 8, ["designer", "widget-list", "model", "component-class"])
|
|
330
329
|
]),
|
|
331
330
|
_: 1
|
|
332
331
|
}))
|
|
333
332
|
], !0),
|
|
334
|
-
|
|
335
|
-
], 42,
|
|
333
|
+
rn(m.$slots, "footer", {}, void 0, !0)
|
|
334
|
+
], 42, Po)), [
|
|
336
335
|
[T, !d.value]
|
|
337
336
|
]);
|
|
338
337
|
};
|
|
339
338
|
}
|
|
340
339
|
});
|
|
341
|
-
const Jn = /* @__PURE__ */
|
|
342
|
-
var gn = {},
|
|
340
|
+
const Jn = /* @__PURE__ */ oo(Do, [["__scopeId", "data-v-527104aa"]]);
|
|
341
|
+
var gn = {}, Ao = {
|
|
343
342
|
get exports() {
|
|
344
343
|
return gn;
|
|
345
344
|
},
|
|
@@ -367,21 +366,21 @@ function Xt(o) {
|
|
|
367
366
|
for (var n = 1; n < arguments.length; n++) {
|
|
368
367
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
369
368
|
n % 2 ? Nn(Object(r), !0).forEach(function(i) {
|
|
370
|
-
|
|
369
|
+
Ro(o, i, r[i]);
|
|
371
370
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : Nn(Object(r)).forEach(function(i) {
|
|
372
371
|
Object.defineProperty(o, i, Object.getOwnPropertyDescriptor(r, i));
|
|
373
372
|
});
|
|
374
373
|
}
|
|
375
374
|
return o;
|
|
376
375
|
}
|
|
377
|
-
function
|
|
378
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
376
|
+
function He(o) {
|
|
377
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? He = function(n) {
|
|
379
378
|
return typeof n;
|
|
380
|
-
} :
|
|
379
|
+
} : He = function(n) {
|
|
381
380
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
382
|
-
},
|
|
381
|
+
}, He(o);
|
|
383
382
|
}
|
|
384
|
-
function
|
|
383
|
+
function Ro(o, n, r) {
|
|
385
384
|
return n in o ? Object.defineProperty(o, n, {
|
|
386
385
|
value: r,
|
|
387
386
|
enumerable: !0,
|
|
@@ -399,7 +398,7 @@ function Lt() {
|
|
|
399
398
|
return o;
|
|
400
399
|
}, Lt.apply(this, arguments);
|
|
401
400
|
}
|
|
402
|
-
function
|
|
401
|
+
function Mo(o, n) {
|
|
403
402
|
if (o == null)
|
|
404
403
|
return {};
|
|
405
404
|
var r = {}, i = Object.keys(o), e, f;
|
|
@@ -407,10 +406,10 @@ function Ro(o, n) {
|
|
|
407
406
|
e = i[f], !(n.indexOf(e) >= 0) && (r[e] = o[e]);
|
|
408
407
|
return r;
|
|
409
408
|
}
|
|
410
|
-
function
|
|
409
|
+
function No(o, n) {
|
|
411
410
|
if (o == null)
|
|
412
411
|
return {};
|
|
413
|
-
var r =
|
|
412
|
+
var r = Mo(o, n), i, e;
|
|
414
413
|
if (Object.getOwnPropertySymbols) {
|
|
415
414
|
var f = Object.getOwnPropertySymbols(o);
|
|
416
415
|
for (e = 0; e < f.length; e++)
|
|
@@ -418,18 +417,18 @@ function Mo(o, n) {
|
|
|
418
417
|
}
|
|
419
418
|
return r;
|
|
420
419
|
}
|
|
421
|
-
function No(o) {
|
|
422
|
-
return Fo(o) || wo(o) || jo(o) || Lo();
|
|
423
|
-
}
|
|
424
420
|
function Fo(o) {
|
|
421
|
+
return wo(o) || jo(o) || Lo(o) || Uo();
|
|
422
|
+
}
|
|
423
|
+
function wo(o) {
|
|
425
424
|
if (Array.isArray(o))
|
|
426
425
|
return pn(o);
|
|
427
426
|
}
|
|
428
|
-
function
|
|
427
|
+
function jo(o) {
|
|
429
428
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
430
429
|
return Array.from(o);
|
|
431
430
|
}
|
|
432
|
-
function
|
|
431
|
+
function Lo(o, n) {
|
|
433
432
|
if (o) {
|
|
434
433
|
if (typeof o == "string")
|
|
435
434
|
return pn(o, n);
|
|
@@ -446,26 +445,26 @@ function pn(o, n) {
|
|
|
446
445
|
i[r] = o[r];
|
|
447
446
|
return i;
|
|
448
447
|
}
|
|
449
|
-
function
|
|
448
|
+
function Uo() {
|
|
450
449
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
451
450
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
452
451
|
}
|
|
453
|
-
var
|
|
452
|
+
var $o = "1.14.0";
|
|
454
453
|
function Yt(o) {
|
|
455
454
|
if (typeof window < "u" && window.navigator)
|
|
456
455
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
457
456
|
}
|
|
458
|
-
var zt = Yt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
457
|
+
var zt = Yt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ne = Yt(/Edge/i), Fn = Yt(/firefox/i), Ce = Yt(/safari/i) && !Yt(/chrome/i) && !Yt(/android/i), Qn = Yt(/iP(ad|od|hone)/i), Go = Yt(/chrome/i) && Yt(/android/i), Zn = {
|
|
459
458
|
capture: !1,
|
|
460
459
|
passive: !1
|
|
461
460
|
};
|
|
462
|
-
function
|
|
461
|
+
function q(o, n, r) {
|
|
463
462
|
o.addEventListener(n, r, !zt && Zn);
|
|
464
463
|
}
|
|
465
464
|
function Z(o, n, r) {
|
|
466
465
|
o.removeEventListener(n, r, !zt && Zn);
|
|
467
466
|
}
|
|
468
|
-
function
|
|
467
|
+
function Qe(o, n) {
|
|
469
468
|
if (n) {
|
|
470
469
|
if (n[0] === ">" && (n = n.substring(1)), o)
|
|
471
470
|
try {
|
|
@@ -481,23 +480,23 @@ function Je(o, n) {
|
|
|
481
480
|
return !1;
|
|
482
481
|
}
|
|
483
482
|
}
|
|
484
|
-
function
|
|
483
|
+
function Ko(o) {
|
|
485
484
|
return o.host && o !== document && o.host.nodeType ? o.host : o.parentNode;
|
|
486
485
|
}
|
|
487
|
-
function
|
|
486
|
+
function Wt(o, n, r, i) {
|
|
488
487
|
if (o) {
|
|
489
488
|
r = r || document;
|
|
490
489
|
do {
|
|
491
|
-
if (n != null && (n[0] === ">" ? o.parentNode === r &&
|
|
490
|
+
if (n != null && (n[0] === ">" ? o.parentNode === r && Qe(o, n) : Qe(o, n)) || i && o === r)
|
|
492
491
|
return o;
|
|
493
492
|
if (o === r)
|
|
494
493
|
break;
|
|
495
|
-
} while (o =
|
|
494
|
+
} while (o = Ko(o));
|
|
496
495
|
}
|
|
497
496
|
return null;
|
|
498
497
|
}
|
|
499
498
|
var wn = /\s+/g;
|
|
500
|
-
function
|
|
499
|
+
function dt(o, n, r) {
|
|
501
500
|
if (o && n)
|
|
502
501
|
if (o.classList)
|
|
503
502
|
o.classList[r ? "add" : "remove"](n);
|
|
@@ -540,7 +539,7 @@ function Vt() {
|
|
|
540
539
|
var o = document.scrollingElement;
|
|
541
540
|
return o || document.documentElement;
|
|
542
541
|
}
|
|
543
|
-
function
|
|
542
|
+
function ut(o, n, r, i, e) {
|
|
544
543
|
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
545
544
|
var f, t, a, s, l, u, c;
|
|
546
545
|
if (o !== window && o.parentNode && o !== Vt() ? (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))
|
|
@@ -566,8 +565,8 @@ function ct(o, n, r, i, e) {
|
|
|
566
565
|
}
|
|
567
566
|
}
|
|
568
567
|
function jn(o, n, r) {
|
|
569
|
-
for (var i = kt(o, !0), e =
|
|
570
|
-
var f =
|
|
568
|
+
for (var i = kt(o, !0), e = ut(o)[n]; i; ) {
|
|
569
|
+
var f = ut(i)[r], t = void 0;
|
|
571
570
|
if (r === "top" || r === "left" ? t = e >= f : t = e <= f, !t)
|
|
572
571
|
return i;
|
|
573
572
|
if (i === Vt())
|
|
@@ -576,9 +575,9 @@ function jn(o, n, r) {
|
|
|
576
575
|
}
|
|
577
576
|
return !1;
|
|
578
577
|
}
|
|
579
|
-
function
|
|
578
|
+
function ue(o, n, r, i) {
|
|
580
579
|
for (var e = 0, f = 0, t = o.children; f < t.length; ) {
|
|
581
|
-
if (t[f].style.display !== "none" && t[f] !==
|
|
580
|
+
if (t[f].style.display !== "none" && t[f] !== H.ghost && (i || t[f] !== H.dragged) && Wt(t[f], r.draggable, o, !1)) {
|
|
582
581
|
if (e === n)
|
|
583
582
|
return t[f];
|
|
584
583
|
e++;
|
|
@@ -588,16 +587,16 @@ function fe(o, n, r, i) {
|
|
|
588
587
|
return null;
|
|
589
588
|
}
|
|
590
589
|
function En(o, n) {
|
|
591
|
-
for (var r = o.lastElementChild; r && (r ===
|
|
590
|
+
for (var r = o.lastElementChild; r && (r === H.ghost || U(r, "display") === "none" || n && !Qe(r, n)); )
|
|
592
591
|
r = r.previousElementSibling;
|
|
593
592
|
return r || null;
|
|
594
593
|
}
|
|
595
|
-
function
|
|
594
|
+
function pt(o, n) {
|
|
596
595
|
var r = 0;
|
|
597
596
|
if (!o || !o.parentNode)
|
|
598
597
|
return -1;
|
|
599
598
|
for (; o = o.previousElementSibling; )
|
|
600
|
-
o.nodeName.toUpperCase() !== "TEMPLATE" && o !==
|
|
599
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== H.clone && (!n || Qe(o, n)) && r++;
|
|
601
600
|
return r;
|
|
602
601
|
}
|
|
603
602
|
function Ln(o) {
|
|
@@ -609,7 +608,7 @@ function Ln(o) {
|
|
|
609
608
|
} while (o !== i && (o = o.parentNode));
|
|
610
609
|
return [n, r];
|
|
611
610
|
}
|
|
612
|
-
function
|
|
611
|
+
function Bo(o, n) {
|
|
613
612
|
for (var r in o)
|
|
614
613
|
if (o.hasOwnProperty(r)) {
|
|
615
614
|
for (var i in n)
|
|
@@ -636,28 +635,28 @@ function kt(o, n) {
|
|
|
636
635
|
while (r = r.parentNode);
|
|
637
636
|
return Vt();
|
|
638
637
|
}
|
|
639
|
-
function
|
|
638
|
+
function Wo(o, n) {
|
|
640
639
|
if (o && n)
|
|
641
640
|
for (var r in n)
|
|
642
641
|
n.hasOwnProperty(r) && (o[r] = n[r]);
|
|
643
642
|
return o;
|
|
644
643
|
}
|
|
645
|
-
function
|
|
644
|
+
function on(o, n) {
|
|
646
645
|
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);
|
|
647
646
|
}
|
|
648
|
-
var
|
|
647
|
+
var De;
|
|
649
648
|
function qn(o, n) {
|
|
650
649
|
return function() {
|
|
651
|
-
if (!
|
|
650
|
+
if (!De) {
|
|
652
651
|
var r = arguments, i = this;
|
|
653
|
-
r.length === 1 ? o.call(i, r[0]) : o.apply(i, r),
|
|
654
|
-
|
|
652
|
+
r.length === 1 ? o.call(i, r[0]) : o.apply(i, r), De = setTimeout(function() {
|
|
653
|
+
De = void 0;
|
|
655
654
|
}, n);
|
|
656
655
|
}
|
|
657
656
|
};
|
|
658
657
|
}
|
|
659
|
-
function
|
|
660
|
-
clearTimeout(
|
|
658
|
+
function Ho() {
|
|
659
|
+
clearTimeout(De), De = void 0;
|
|
661
660
|
}
|
|
662
661
|
function _n(o, n, r) {
|
|
663
662
|
o.scrollLeft += n, o.scrollTop += r;
|
|
@@ -669,21 +668,21 @@ function xn(o) {
|
|
|
669
668
|
function Un(o, n) {
|
|
670
669
|
U(o, "position", "absolute"), U(o, "top", n.top), U(o, "left", n.left), U(o, "width", n.width), U(o, "height", n.height);
|
|
671
670
|
}
|
|
672
|
-
function
|
|
671
|
+
function an(o) {
|
|
673
672
|
U(o, "position", ""), U(o, "top", ""), U(o, "left", ""), U(o, "width", ""), U(o, "height", "");
|
|
674
673
|
}
|
|
675
|
-
var
|
|
676
|
-
function
|
|
674
|
+
var It = "Sortable" + new Date().getTime();
|
|
675
|
+
function Vo() {
|
|
677
676
|
var o = [], n;
|
|
678
677
|
return {
|
|
679
678
|
captureAnimationState: function() {
|
|
680
679
|
if (o = [], !!this.options.animation) {
|
|
681
680
|
var i = [].slice.call(this.el.children);
|
|
682
681
|
i.forEach(function(e) {
|
|
683
|
-
if (!(U(e, "display") === "none" || e ===
|
|
682
|
+
if (!(U(e, "display") === "none" || e === H.ghost)) {
|
|
684
683
|
o.push({
|
|
685
684
|
target: e,
|
|
686
|
-
rect:
|
|
685
|
+
rect: ut(e)
|
|
687
686
|
});
|
|
688
687
|
var f = Xt({}, o[o.length - 1].rect);
|
|
689
688
|
if (e.thisAnimationDuration) {
|
|
@@ -699,7 +698,7 @@ function Ho() {
|
|
|
699
698
|
o.push(i);
|
|
700
699
|
},
|
|
701
700
|
removeAnimationState: function(i) {
|
|
702
|
-
o.splice(
|
|
701
|
+
o.splice(Bo(o, {
|
|
703
702
|
target: i
|
|
704
703
|
}), 1);
|
|
705
704
|
},
|
|
@@ -711,8 +710,8 @@ function Ho() {
|
|
|
711
710
|
}
|
|
712
711
|
var f = !1, t = 0;
|
|
713
712
|
o.forEach(function(a) {
|
|
714
|
-
var s = 0, l = a.target, u = l.fromRect, c =
|
|
715
|
-
g && (c.top -= g.f, c.left -= g.e), l.toRect = c, l.thisAnimationDuration &&
|
|
713
|
+
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);
|
|
714
|
+
g && (c.top -= g.f, c.left -= g.e), l.toRect = c, l.thisAnimationDuration && on(d, c) && !on(u, c) && (h.top - c.top) / (h.left - c.left) === (u.top - c.top) / (u.left - c.left) && (s = Yo(h, d, v, e.options)), on(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() {
|
|
716
715
|
l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
|
|
717
716
|
}, s), l.thisAnimationDuration = s);
|
|
718
717
|
}), clearTimeout(n), f ? n = setTimeout(function() {
|
|
@@ -723,29 +722,29 @@ function Ho() {
|
|
|
723
722
|
if (t) {
|
|
724
723
|
U(i, "transition", ""), U(i, "transform", "");
|
|
725
724
|
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);
|
|
726
|
-
i.animatingX = !!u, i.animatingY = !!c, U(i, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
725
|
+
i.animatingX = !!u, i.animatingY = !!c, U(i, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Xo(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() {
|
|
727
726
|
U(i, "transition", ""), U(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
728
727
|
}, t);
|
|
729
728
|
}
|
|
730
729
|
}
|
|
731
730
|
};
|
|
732
731
|
}
|
|
733
|
-
function
|
|
732
|
+
function Xo(o) {
|
|
734
733
|
return o.offsetWidth;
|
|
735
734
|
}
|
|
736
|
-
function
|
|
735
|
+
function Yo(o, n, r, i) {
|
|
737
736
|
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;
|
|
738
737
|
}
|
|
739
|
-
var
|
|
738
|
+
var ae = [], sn = {
|
|
740
739
|
initializeByDefault: !0
|
|
741
|
-
},
|
|
740
|
+
}, Fe = {
|
|
742
741
|
mount: function(n) {
|
|
743
|
-
for (var r in
|
|
744
|
-
|
|
745
|
-
|
|
742
|
+
for (var r in sn)
|
|
743
|
+
sn.hasOwnProperty(r) && !(r in n) && (n[r] = sn[r]);
|
|
744
|
+
ae.forEach(function(i) {
|
|
746
745
|
if (i.pluginName === n.pluginName)
|
|
747
746
|
throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
|
|
748
|
-
}),
|
|
747
|
+
}), ae.push(n);
|
|
749
748
|
},
|
|
750
749
|
pluginEvent: function(n, r, i) {
|
|
751
750
|
var e = this;
|
|
@@ -753,7 +752,7 @@ var oe = [], an = {
|
|
|
753
752
|
e.eventCanceled = !0;
|
|
754
753
|
};
|
|
755
754
|
var f = n + "Global";
|
|
756
|
-
|
|
755
|
+
ae.forEach(function(t) {
|
|
757
756
|
r[t.pluginName] && (r[t.pluginName][f] && r[t.pluginName][f](Xt({
|
|
758
757
|
sortable: r
|
|
759
758
|
}, i)), r.options[t.pluginName] && r[t.pluginName][n] && r[t.pluginName][n](Xt({
|
|
@@ -762,7 +761,7 @@ var oe = [], an = {
|
|
|
762
761
|
});
|
|
763
762
|
},
|
|
764
763
|
initializePlugins: function(n, r, i, e) {
|
|
765
|
-
|
|
764
|
+
ae.forEach(function(a) {
|
|
766
765
|
var s = a.pluginName;
|
|
767
766
|
if (!(!n.options[s] && !a.initializeByDefault)) {
|
|
768
767
|
var l = new a(n, r, n.options);
|
|
@@ -777,49 +776,49 @@ var oe = [], an = {
|
|
|
777
776
|
},
|
|
778
777
|
getEventProperties: function(n, r) {
|
|
779
778
|
var i = {};
|
|
780
|
-
return
|
|
779
|
+
return ae.forEach(function(e) {
|
|
781
780
|
typeof e.eventProperties == "function" && Lt(i, e.eventProperties.call(r[e.pluginName], n));
|
|
782
781
|
}), i;
|
|
783
782
|
},
|
|
784
783
|
modifyOption: function(n, r, i) {
|
|
785
784
|
var e;
|
|
786
|
-
return
|
|
785
|
+
return ae.forEach(function(f) {
|
|
787
786
|
n[f.pluginName] && f.optionListeners && typeof f.optionListeners[r] == "function" && (e = f.optionListeners[r].call(n[f.pluginName], i));
|
|
788
787
|
}), e;
|
|
789
788
|
}
|
|
790
789
|
};
|
|
791
|
-
function
|
|
790
|
+
function be(o) {
|
|
792
791
|
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;
|
|
793
|
-
if (n = n || r && r[
|
|
792
|
+
if (n = n || r && r[It], !!n) {
|
|
794
793
|
var g, p = n.options, m = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
795
|
-
window.CustomEvent && !zt && !
|
|
794
|
+
window.CustomEvent && !zt && !Ne ? g = new CustomEvent(i, {
|
|
796
795
|
bubbles: !0,
|
|
797
796
|
cancelable: !0
|
|
798
797
|
}) : (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;
|
|
799
|
-
var S = Xt(Xt({}, h),
|
|
798
|
+
var S = Xt(Xt({}, h), Fe.getEventProperties(i, n));
|
|
800
799
|
for (var T in S)
|
|
801
800
|
g[T] = S[T];
|
|
802
801
|
r && r.dispatchEvent(g), p[m] && p[m].call(n, g);
|
|
803
802
|
}
|
|
804
803
|
}
|
|
805
|
-
var
|
|
806
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = i.evt, f =
|
|
807
|
-
|
|
804
|
+
var zo = ["evt"], At = function(n, r) {
|
|
805
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = i.evt, f = No(i, zo);
|
|
806
|
+
Fe.pluginEvent.bind(H)(n, r, Xt({
|
|
808
807
|
dragEl: A,
|
|
809
|
-
parentEl:
|
|
810
|
-
ghostEl:
|
|
811
|
-
rootEl:
|
|
808
|
+
parentEl: ht,
|
|
809
|
+
ghostEl: J,
|
|
810
|
+
rootEl: ft,
|
|
812
811
|
nextEl: te,
|
|
813
|
-
lastDownEl:
|
|
814
|
-
cloneEl:
|
|
812
|
+
lastDownEl: Ve,
|
|
813
|
+
cloneEl: gt,
|
|
815
814
|
cloneHidden: Zt,
|
|
816
|
-
dragStarted:
|
|
817
|
-
putSortable:
|
|
818
|
-
activeSortable:
|
|
815
|
+
dragStarted: Ee,
|
|
816
|
+
putSortable: xt,
|
|
817
|
+
activeSortable: H.active,
|
|
819
818
|
originalEvent: e,
|
|
820
|
-
oldIndex:
|
|
821
|
-
oldDraggableIndex:
|
|
822
|
-
newIndex:
|
|
819
|
+
oldIndex: fe,
|
|
820
|
+
oldDraggableIndex: Ae,
|
|
821
|
+
newIndex: wt,
|
|
823
822
|
newDraggableIndex: Qt,
|
|
824
823
|
hideGhostForTarget: rr,
|
|
825
824
|
unhideGhostForTarget: or,
|
|
@@ -830,7 +829,7 @@ var Yo = ["evt"], Rt = function(n, r) {
|
|
|
830
829
|
Zt = !1;
|
|
831
830
|
},
|
|
832
831
|
dispatchSortableEvent: function(a) {
|
|
833
|
-
|
|
832
|
+
Ct({
|
|
834
833
|
sortable: r,
|
|
835
834
|
name: a,
|
|
836
835
|
originalEvent: e
|
|
@@ -838,27 +837,27 @@ var Yo = ["evt"], Rt = function(n, r) {
|
|
|
838
837
|
}
|
|
839
838
|
}, f));
|
|
840
839
|
};
|
|
841
|
-
function
|
|
842
|
-
|
|
843
|
-
putSortable:
|
|
844
|
-
cloneEl:
|
|
840
|
+
function Ct(o) {
|
|
841
|
+
be(Xt({
|
|
842
|
+
putSortable: xt,
|
|
843
|
+
cloneEl: gt,
|
|
845
844
|
targetEl: A,
|
|
846
|
-
rootEl:
|
|
847
|
-
oldIndex:
|
|
848
|
-
oldDraggableIndex:
|
|
849
|
-
newIndex:
|
|
845
|
+
rootEl: ft,
|
|
846
|
+
oldIndex: fe,
|
|
847
|
+
oldDraggableIndex: Ae,
|
|
848
|
+
newIndex: wt,
|
|
850
849
|
newDraggableIndex: Qt
|
|
851
850
|
}, o));
|
|
852
851
|
}
|
|
853
|
-
var A,
|
|
854
|
-
if (
|
|
852
|
+
var A, ht, J, ft, te, Ve, gt, Zt, fe, wt, Ae, Qt, Ue, xt, le = !1, Ze = !1, ke = [], qt, Kt, ln, fn, $n, Gn, Ee, ie, Re, Me = !1, $e = !1, Xe, Ot, un = [], mn = !1, qe = [], tn = typeof document < "u", Ge = Qn, Kn = Ne || zt ? "cssFloat" : "float", Jo = tn && !Go && !Qn && "draggable" in document.createElement("div"), tr = function() {
|
|
853
|
+
if (tn) {
|
|
855
854
|
if (zt)
|
|
856
855
|
return !1;
|
|
857
856
|
var o = document.createElement("x");
|
|
858
857
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
859
858
|
}
|
|
860
859
|
}(), er = function(n, r) {
|
|
861
|
-
var i = U(n), e = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), f =
|
|
860
|
+
var i = U(n), e = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), f = ue(n, 0, r), t = ue(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;
|
|
862
861
|
if (i.display === "flex")
|
|
863
862
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
864
863
|
if (i.display === "grid")
|
|
@@ -868,15 +867,15 @@ var A, pt, z, ut, te, He, mt, Zt, le, Ft, Ce, Qt, Le, It, se = !1, Qe = !1, Ze =
|
|
|
868
867
|
return t && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
869
868
|
}
|
|
870
869
|
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";
|
|
871
|
-
},
|
|
870
|
+
}, Qo = function(n, r, i) {
|
|
872
871
|
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;
|
|
873
872
|
return e === a || f === s || e + t / 2 === a + l / 2;
|
|
874
|
-
},
|
|
873
|
+
}, Zo = function(n, r) {
|
|
875
874
|
var i;
|
|
876
|
-
return
|
|
877
|
-
var f = e[
|
|
875
|
+
return ke.some(function(e) {
|
|
876
|
+
var f = e[It].options.emptyInsertThreshold;
|
|
878
877
|
if (!(!f || En(e))) {
|
|
879
|
-
var t =
|
|
878
|
+
var t = ut(e), a = n >= t.left - f && n <= t.right + f, s = r >= t.top - f && r <= t.bottom + f;
|
|
880
879
|
if (a && s)
|
|
881
880
|
return i = e;
|
|
882
881
|
}
|
|
@@ -898,36 +897,36 @@ var A, pt, z, ut, te, He, mt, Zt, le, Ft, Ce, Qt, Le, It, se = !1, Qe = !1, Ze =
|
|
|
898
897
|
};
|
|
899
898
|
}
|
|
900
899
|
var i = {}, e = n.group;
|
|
901
|
-
(!e ||
|
|
900
|
+
(!e || He(e) != "object") && (e = {
|
|
902
901
|
name: e
|
|
903
902
|
}), i.name = e.name, i.checkPull = r(e.pull, !0), i.checkPut = r(e.put), i.revertClone = e.revertClone, n.group = i;
|
|
904
903
|
}, rr = function() {
|
|
905
|
-
!tr &&
|
|
904
|
+
!tr && J && U(J, "display", "none");
|
|
906
905
|
}, or = function() {
|
|
907
|
-
!tr &&
|
|
906
|
+
!tr && J && U(J, "display", "");
|
|
908
907
|
};
|
|
909
|
-
|
|
910
|
-
if (
|
|
911
|
-
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(),
|
|
908
|
+
tn && document.addEventListener("click", function(o) {
|
|
909
|
+
if (Ze)
|
|
910
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), Ze = !1, !1;
|
|
912
911
|
}, !0);
|
|
913
912
|
var _t = function(n) {
|
|
914
913
|
if (A) {
|
|
915
914
|
n = n.touches ? n.touches[0] : n;
|
|
916
|
-
var r =
|
|
915
|
+
var r = Zo(n.clientX, n.clientY);
|
|
917
916
|
if (r) {
|
|
918
917
|
var i = {};
|
|
919
918
|
for (var e in n)
|
|
920
919
|
n.hasOwnProperty(e) && (i[e] = n[e]);
|
|
921
|
-
i.target = i.rootEl = r, i.preventDefault = void 0, i.stopPropagation = void 0, r[
|
|
920
|
+
i.target = i.rootEl = r, i.preventDefault = void 0, i.stopPropagation = void 0, r[It]._onDragOver(i);
|
|
922
921
|
}
|
|
923
922
|
}
|
|
924
|
-
},
|
|
925
|
-
A && A.parentNode[
|
|
923
|
+
}, ko = function(n) {
|
|
924
|
+
A && A.parentNode[It]._isOutsideThisEl(n.target);
|
|
926
925
|
};
|
|
927
|
-
function
|
|
926
|
+
function H(o, n) {
|
|
928
927
|
if (!(o && o.nodeType && o.nodeType === 1))
|
|
929
928
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
|
|
930
|
-
this.el = o, this.options = n = Lt({}, n), o[
|
|
929
|
+
this.el = o, this.options = n = Lt({}, n), o[It] = this;
|
|
931
930
|
var r = {
|
|
932
931
|
group: null,
|
|
933
932
|
sort: !0,
|
|
@@ -970,22 +969,22 @@ function W(o, n) {
|
|
|
970
969
|
x: 0,
|
|
971
970
|
y: 0
|
|
972
971
|
},
|
|
973
|
-
supportPointer:
|
|
972
|
+
supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && !Ce,
|
|
974
973
|
emptyInsertThreshold: 5
|
|
975
974
|
};
|
|
976
|
-
|
|
975
|
+
Fe.initializePlugins(this, o, r);
|
|
977
976
|
for (var i in r)
|
|
978
977
|
!(i in n) && (n[i] = r[i]);
|
|
979
978
|
nr(n);
|
|
980
979
|
for (var e in this)
|
|
981
980
|
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
982
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
981
|
+
this.nativeDraggable = n.forceFallback ? !1 : Jo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? q(o, "pointerdown", this._onTapStart) : (q(o, "mousedown", this._onTapStart), q(o, "touchstart", this._onTapStart)), this.nativeDraggable && (q(o, "dragover", this), q(o, "dragenter", this)), ke.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), Lt(this, Vo());
|
|
983
982
|
}
|
|
984
|
-
|
|
983
|
+
H.prototype = /** @lends Sortable.prototype */
|
|
985
984
|
{
|
|
986
|
-
constructor:
|
|
985
|
+
constructor: H,
|
|
987
986
|
_isOutsideThisEl: function(n) {
|
|
988
|
-
!this.el.contains(n) && n !== this.el && (
|
|
987
|
+
!this.el.contains(n) && n !== this.el && (ie = null);
|
|
989
988
|
},
|
|
990
989
|
_getDirection: function(n, r) {
|
|
991
990
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, r, A) : this.options.direction;
|
|
@@ -993,71 +992,71 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
993
992
|
_onTapStart: function(n) {
|
|
994
993
|
if (n.cancelable) {
|
|
995
994
|
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;
|
|
996
|
-
if (
|
|
997
|
-
if (
|
|
995
|
+
if (aa(i), !A && !(/mousedown|pointerdown/.test(t) && n.button !== 0 || e.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Ce && s && s.tagName.toUpperCase() === "SELECT") && (s = Wt(s, e.draggable, i, !1), !(s && s.animated) && Ve !== s)) {
|
|
996
|
+
if (fe = pt(s), Ae = pt(s, e.draggable), typeof u == "function") {
|
|
998
997
|
if (u.call(this, n, s, this)) {
|
|
999
|
-
|
|
998
|
+
Ct({
|
|
1000
999
|
sortable: r,
|
|
1001
1000
|
rootEl: l,
|
|
1002
1001
|
name: "filter",
|
|
1003
1002
|
targetEl: s,
|
|
1004
1003
|
toEl: i,
|
|
1005
1004
|
fromEl: i
|
|
1006
|
-
}),
|
|
1005
|
+
}), At("filter", r, {
|
|
1007
1006
|
evt: n
|
|
1008
1007
|
}), f && n.cancelable && n.preventDefault();
|
|
1009
1008
|
return;
|
|
1010
1009
|
}
|
|
1011
1010
|
} else if (u && (u = u.split(",").some(function(c) {
|
|
1012
|
-
if (c =
|
|
1013
|
-
return
|
|
1011
|
+
if (c = Wt(l, c.trim(), i, !1), c)
|
|
1012
|
+
return Ct({
|
|
1014
1013
|
sortable: r,
|
|
1015
1014
|
rootEl: c,
|
|
1016
1015
|
name: "filter",
|
|
1017
1016
|
targetEl: s,
|
|
1018
1017
|
fromEl: i,
|
|
1019
1018
|
toEl: i
|
|
1020
|
-
}),
|
|
1019
|
+
}), At("filter", r, {
|
|
1021
1020
|
evt: n
|
|
1022
1021
|
}), !0;
|
|
1023
1022
|
}), u)) {
|
|
1024
1023
|
f && n.cancelable && n.preventDefault();
|
|
1025
1024
|
return;
|
|
1026
1025
|
}
|
|
1027
|
-
e.handle && !
|
|
1026
|
+
e.handle && !Wt(l, e.handle, i, !1) || this._prepareDragStart(n, a, s);
|
|
1028
1027
|
}
|
|
1029
1028
|
}
|
|
1030
1029
|
},
|
|
1031
1030
|
_prepareDragStart: function(n, r, i) {
|
|
1032
1031
|
var e = this, f = e.el, t = e.options, a = f.ownerDocument, s;
|
|
1033
1032
|
if (i && !A && i.parentNode === f) {
|
|
1034
|
-
var l =
|
|
1035
|
-
if (
|
|
1033
|
+
var l = ut(i);
|
|
1034
|
+
if (ft = f, A = i, ht = A.parentNode, te = A.nextSibling, Ve = i, Ue = t.group, H.dragged = A, qt = {
|
|
1036
1035
|
target: A,
|
|
1037
1036
|
clientX: (r || n).clientX,
|
|
1038
1037
|
clientY: (r || n).clientY
|
|
1039
1038
|
}, $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() {
|
|
1040
|
-
if (
|
|
1039
|
+
if (At("delayEnded", e, {
|
|
1041
1040
|
evt: n
|
|
1042
|
-
}),
|
|
1041
|
+
}), H.eventCanceled) {
|
|
1043
1042
|
e._onDrop();
|
|
1044
1043
|
return;
|
|
1045
1044
|
}
|
|
1046
|
-
e._disableDelayedDragEvents(), !Fn && e.nativeDraggable && (A.draggable = !0), e._triggerDragStart(n, r),
|
|
1045
|
+
e._disableDelayedDragEvents(), !Fn && e.nativeDraggable && (A.draggable = !0), e._triggerDragStart(n, r), Ct({
|
|
1047
1046
|
sortable: e,
|
|
1048
1047
|
name: "choose",
|
|
1049
1048
|
originalEvent: n
|
|
1050
|
-
}),
|
|
1049
|
+
}), dt(A, t.chosenClass, !0);
|
|
1051
1050
|
}, t.ignore.split(",").forEach(function(u) {
|
|
1052
|
-
kn(A, u.trim(),
|
|
1053
|
-
}),
|
|
1051
|
+
kn(A, u.trim(), cn);
|
|
1052
|
+
}), q(a, "dragover", _t), q(a, "mousemove", _t), q(a, "touchmove", _t), q(a, "mouseup", e._onDrop), q(a, "touchend", e._onDrop), q(a, "touchcancel", e._onDrop), Fn && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), At("delayStart", this, {
|
|
1054
1053
|
evt: n
|
|
1055
|
-
}), t.delay && (!t.delayOnTouchOnly || r) && (!this.nativeDraggable || !(
|
|
1056
|
-
if (
|
|
1054
|
+
}), t.delay && (!t.delayOnTouchOnly || r) && (!this.nativeDraggable || !(Ne || zt))) {
|
|
1055
|
+
if (H.eventCanceled) {
|
|
1057
1056
|
this._onDrop();
|
|
1058
1057
|
return;
|
|
1059
1058
|
}
|
|
1060
|
-
|
|
1059
|
+
q(a, "mouseup", e._disableDelayedDrag), q(a, "touchend", e._disableDelayedDrag), q(a, "touchcancel", e._disableDelayedDrag), q(a, "mousemove", e._delayedDragTouchMoveHandler), q(a, "touchmove", e._delayedDragTouchMoveHandler), t.supportPointer && q(a, "pointermove", e._delayedDragTouchMoveHandler), e._dragStartTimer = setTimeout(s, t.delay);
|
|
1061
1060
|
} else
|
|
1062
1061
|
s();
|
|
1063
1062
|
}
|
|
@@ -1067,28 +1066,28 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1067
1066
|
Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1068
1067
|
},
|
|
1069
1068
|
_disableDelayedDrag: function() {
|
|
1070
|
-
A &&
|
|
1069
|
+
A && cn(A), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1071
1070
|
},
|
|
1072
1071
|
_disableDelayedDragEvents: function() {
|
|
1073
1072
|
var n = this.el.ownerDocument;
|
|
1074
1073
|
Z(n, "mouseup", this._disableDelayedDrag), Z(n, "touchend", this._disableDelayedDrag), Z(n, "touchcancel", this._disableDelayedDrag), Z(n, "mousemove", this._delayedDragTouchMoveHandler), Z(n, "touchmove", this._delayedDragTouchMoveHandler), Z(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1075
1074
|
},
|
|
1076
1075
|
_triggerDragStart: function(n, r) {
|
|
1077
|
-
r = r || n.pointerType == "touch" && n, !this.nativeDraggable || r ? this.options.supportPointer ?
|
|
1076
|
+
r = r || n.pointerType == "touch" && n, !this.nativeDraggable || r ? this.options.supportPointer ? q(document, "pointermove", this._onTouchMove) : r ? q(document, "touchmove", this._onTouchMove) : q(document, "mousemove", this._onTouchMove) : (q(A, "dragend", this), q(ft, "dragstart", this._onDragStart));
|
|
1078
1077
|
try {
|
|
1079
|
-
document.selection ?
|
|
1078
|
+
document.selection ? Ye(function() {
|
|
1080
1079
|
document.selection.empty();
|
|
1081
1080
|
}) : window.getSelection().removeAllRanges();
|
|
1082
1081
|
} catch {
|
|
1083
1082
|
}
|
|
1084
1083
|
},
|
|
1085
1084
|
_dragStarted: function(n, r) {
|
|
1086
|
-
if (
|
|
1087
|
-
|
|
1085
|
+
if (le = !1, ft && A) {
|
|
1086
|
+
At("dragStarted", this, {
|
|
1088
1087
|
evt: r
|
|
1089
|
-
}), this.nativeDraggable &&
|
|
1088
|
+
}), this.nativeDraggable && q(document, "dragover", ko);
|
|
1090
1089
|
var i = this.options;
|
|
1091
|
-
!n &&
|
|
1090
|
+
!n && dt(A, i.dragClass, !1), dt(A, i.ghostClass, !0), H.active = this, n && this._appendGhost(), Ct({
|
|
1092
1091
|
sortable: this,
|
|
1093
1092
|
name: "start",
|
|
1094
1093
|
originalEvent: r
|
|
@@ -1097,17 +1096,17 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1097
1096
|
this._nulling();
|
|
1098
1097
|
},
|
|
1099
1098
|
_emulateDragOver: function() {
|
|
1100
|
-
if (
|
|
1101
|
-
this._lastX =
|
|
1102
|
-
for (var n = document.elementFromPoint(
|
|
1099
|
+
if (Kt) {
|
|
1100
|
+
this._lastX = Kt.clientX, this._lastY = Kt.clientY, rr();
|
|
1101
|
+
for (var n = document.elementFromPoint(Kt.clientX, Kt.clientY), r = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Kt.clientX, Kt.clientY), n !== r); )
|
|
1103
1102
|
r = n;
|
|
1104
|
-
if (A.parentNode[
|
|
1103
|
+
if (A.parentNode[It]._isOutsideThisEl(n), r)
|
|
1105
1104
|
do {
|
|
1106
|
-
if (r[
|
|
1105
|
+
if (r[It]) {
|
|
1107
1106
|
var i = void 0;
|
|
1108
|
-
if (i = r[
|
|
1109
|
-
clientX:
|
|
1110
|
-
clientY:
|
|
1107
|
+
if (i = r[It]._onDragOver({
|
|
1108
|
+
clientX: Kt.clientX,
|
|
1109
|
+
clientY: Kt.clientY,
|
|
1111
1110
|
target: n,
|
|
1112
1111
|
rootEl: r
|
|
1113
1112
|
}), i && !this.options.dragoverBubble)
|
|
@@ -1120,14 +1119,14 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1120
1119
|
},
|
|
1121
1120
|
_onTouchMove: function(n) {
|
|
1122
1121
|
if (qt) {
|
|
1123
|
-
var r = this.options, i = r.fallbackTolerance, e = r.fallbackOffset, f = n.touches ? n.touches[0] : n, t =
|
|
1124
|
-
if (!
|
|
1122
|
+
var r = this.options, i = r.fallbackTolerance, e = r.fallbackOffset, f = n.touches ? n.touches[0] : n, t = J && ee(J, !0), a = J && t && t.a, s = J && t && t.d, l = Ge && Ot && Ln(Ot), u = (f.clientX - qt.clientX + e.x) / (a || 1) + (l ? l[0] - un[0] : 0) / (a || 1), c = (f.clientY - qt.clientY + e.y) / (s || 1) + (l ? l[1] - un[1] : 0) / (s || 1);
|
|
1123
|
+
if (!H.active && !le) {
|
|
1125
1124
|
if (i && Math.max(Math.abs(f.clientX - this._lastX), Math.abs(f.clientY - this._lastY)) < i)
|
|
1126
1125
|
return;
|
|
1127
1126
|
this._onDragStart(n, !0);
|
|
1128
1127
|
}
|
|
1129
|
-
if (
|
|
1130
|
-
t ? (t.e += u - (
|
|
1128
|
+
if (J) {
|
|
1129
|
+
t ? (t.e += u - (ln || 0), t.f += c - (fn || 0)) : t = {
|
|
1131
1130
|
a: 1,
|
|
1132
1131
|
b: 0,
|
|
1133
1132
|
c: 0,
|
|
@@ -1136,44 +1135,44 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1136
1135
|
f: c
|
|
1137
1136
|
};
|
|
1138
1137
|
var d = "matrix(".concat(t.a, ",").concat(t.b, ",").concat(t.c, ",").concat(t.d, ",").concat(t.e, ",").concat(t.f, ")");
|
|
1139
|
-
U(
|
|
1138
|
+
U(J, "webkitTransform", d), U(J, "mozTransform", d), U(J, "msTransform", d), U(J, "transform", d), ln = u, fn = c, Kt = f;
|
|
1140
1139
|
}
|
|
1141
1140
|
n.cancelable && n.preventDefault();
|
|
1142
1141
|
}
|
|
1143
1142
|
},
|
|
1144
1143
|
_appendGhost: function() {
|
|
1145
|
-
if (!
|
|
1146
|
-
var n = this.options.fallbackOnBody ? document.body :
|
|
1147
|
-
if (
|
|
1148
|
-
for (
|
|
1149
|
-
|
|
1150
|
-
|
|
1144
|
+
if (!J) {
|
|
1145
|
+
var n = this.options.fallbackOnBody ? document.body : ft, r = ut(A, !0, Ge, !0, n), i = this.options;
|
|
1146
|
+
if (Ge) {
|
|
1147
|
+
for (Ot = n; U(Ot, "position") === "static" && U(Ot, "transform") === "none" && Ot !== document; )
|
|
1148
|
+
Ot = Ot.parentNode;
|
|
1149
|
+
Ot !== document.body && Ot !== document.documentElement ? (Ot === document && (Ot = Vt()), r.top += Ot.scrollTop, r.left += Ot.scrollLeft) : Ot = Vt(), un = Ln(Ot);
|
|
1151
1150
|
}
|
|
1152
|
-
|
|
1151
|
+
J = A.cloneNode(!0), dt(J, i.ghostClass, !1), dt(J, i.fallbackClass, !0), dt(J, i.dragClass, !0), U(J, "transition", ""), U(J, "transform", ""), U(J, "box-sizing", "border-box"), U(J, "margin", 0), U(J, "top", r.top), U(J, "left", r.left), U(J, "width", r.width), U(J, "height", r.height), U(J, "opacity", "0.8"), U(J, "position", Ge ? "absolute" : "fixed"), U(J, "zIndex", "100000"), U(J, "pointerEvents", "none"), H.ghost = J, n.appendChild(J), U(J, "transform-origin", $n / parseInt(J.style.width) * 100 + "% " + Gn / parseInt(J.style.height) * 100 + "%");
|
|
1153
1152
|
}
|
|
1154
1153
|
},
|
|
1155
1154
|
_onDragStart: function(n, r) {
|
|
1156
1155
|
var i = this, e = n.dataTransfer, f = i.options;
|
|
1157
|
-
if (
|
|
1156
|
+
if (At("dragStart", this, {
|
|
1158
1157
|
evt: n
|
|
1159
|
-
}),
|
|
1158
|
+
}), H.eventCanceled) {
|
|
1160
1159
|
this._onDrop();
|
|
1161
1160
|
return;
|
|
1162
1161
|
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1162
|
+
At("setupClone", this), H.eventCanceled || (gt = xn(A), gt.draggable = !1, gt.style["will-change"] = "", this._hideClone(), dt(gt, this.options.chosenClass, !1), H.clone = gt), i.cloneId = Ye(function() {
|
|
1163
|
+
At("clone", i), !H.eventCanceled && (i.options.removeCloneOnHide || ft.insertBefore(gt, A), i._hideClone(), Ct({
|
|
1165
1164
|
sortable: i,
|
|
1166
1165
|
name: "clone"
|
|
1167
1166
|
}));
|
|
1168
|
-
}), !r &&
|
|
1167
|
+
}), !r && dt(A, f.dragClass, !0), r ? (Ze = !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)), q(document, "drop", i), U(A, "transform", "translateZ(0)")), le = !0, i._dragStartId = Ye(i._dragStarted.bind(i, r, n)), q(document, "selectstart", i), Ee = !0, Ce && U(document.body, "user-select", "none");
|
|
1169
1168
|
},
|
|
1170
1169
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1171
1170
|
_onDragOver: function(n) {
|
|
1172
|
-
var r = this.el, i = n.target, e, f, t, a = this.options, s = a.group, l =
|
|
1171
|
+
var r = this.el, i = n.target, e, f, t, a = this.options, s = a.group, l = H.active, u = Ue === s, c = a.sort, d = xt || l, v, h = this, g = !1;
|
|
1173
1172
|
if (mn)
|
|
1174
1173
|
return;
|
|
1175
|
-
function p(
|
|
1176
|
-
|
|
1174
|
+
function p(_, rt) {
|
|
1175
|
+
At(_, h, Xt({
|
|
1177
1176
|
evt: n,
|
|
1178
1177
|
isOwner: u,
|
|
1179
1178
|
axis: v ? "vertical" : "horizontal",
|
|
@@ -1185,7 +1184,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1185
1184
|
target: i,
|
|
1186
1185
|
completed: S,
|
|
1187
1186
|
onMove: function(st, lt) {
|
|
1188
|
-
return
|
|
1187
|
+
return Ke(ft, r, A, e, st, ut(st), n, lt);
|
|
1189
1188
|
},
|
|
1190
1189
|
changed: T
|
|
1191
1190
|
}, rt));
|
|
@@ -1193,63 +1192,63 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1193
1192
|
function m() {
|
|
1194
1193
|
p("dragOverAnimationCapture"), h.captureAnimationState(), h !== d && d.captureAnimationState();
|
|
1195
1194
|
}
|
|
1196
|
-
function S(
|
|
1195
|
+
function S(_) {
|
|
1197
1196
|
return p("dragOverCompleted", {
|
|
1198
|
-
insertion:
|
|
1199
|
-
}),
|
|
1197
|
+
insertion: _
|
|
1198
|
+
}), _ && (u ? l._hideClone() : l._showClone(h), h !== d && (dt(A, xt ? xt.options.ghostClass : l.options.ghostClass, !1), dt(A, a.ghostClass, !0)), xt !== h && h !== H.active ? xt = h : h === H.active && xt && (xt = null), d === h && (h._ignoreWhileAnimating = i), h.animateAll(function() {
|
|
1200
1199
|
p("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
1201
|
-
}), h !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (i === A && !A.animated || i === r && !i.animated) && (
|
|
1200
|
+
}), h !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (i === A && !A.animated || i === r && !i.animated) && (ie = null), !a.dragoverBubble && !n.rootEl && i !== document && (A.parentNode[It]._isOutsideThisEl(n.target), !_ && _t(n)), !a.dragoverBubble && n.stopPropagation && n.stopPropagation(), g = !0;
|
|
1202
1201
|
}
|
|
1203
1202
|
function T() {
|
|
1204
|
-
|
|
1203
|
+
wt = pt(A), Qt = pt(A, a.draggable), Ct({
|
|
1205
1204
|
sortable: h,
|
|
1206
1205
|
name: "change",
|
|
1207
1206
|
toEl: r,
|
|
1208
|
-
newIndex:
|
|
1207
|
+
newIndex: wt,
|
|
1209
1208
|
newDraggableIndex: Qt,
|
|
1210
1209
|
originalEvent: n
|
|
1211
1210
|
});
|
|
1212
1211
|
}
|
|
1213
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), i =
|
|
1212
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), i = Wt(i, a.draggable, r, !0), p("dragOver"), H.eventCanceled)
|
|
1214
1213
|
return g;
|
|
1215
1214
|
if (A.contains(n.target) || i.animated && i.animatingX && i.animatingY || h._ignoreWhileAnimating === i)
|
|
1216
1215
|
return S(!1);
|
|
1217
|
-
if (
|
|
1218
|
-
if (v = this._getDirection(n, i) === "vertical", e =
|
|
1216
|
+
if (Ze = !1, l && !a.disabled && (u ? c || (t = ht !== ft) : xt === this || (this.lastPutMode = Ue.checkPull(this, l, A, n)) && s.checkPut(this, l, A, n))) {
|
|
1217
|
+
if (v = this._getDirection(n, i) === "vertical", e = ut(A), p("dragOverValid"), H.eventCanceled)
|
|
1219
1218
|
return g;
|
|
1220
1219
|
if (t)
|
|
1221
|
-
return
|
|
1220
|
+
return ht = ft, m(), this._hideClone(), p("revert"), H.eventCanceled || (te ? ft.insertBefore(A, te) : ft.appendChild(A)), S(!0);
|
|
1222
1221
|
var x = En(r, a.draggable);
|
|
1223
|
-
if (!x ||
|
|
1222
|
+
if (!x || ea(n, v, this) && !x.animated) {
|
|
1224
1223
|
if (x === A)
|
|
1225
1224
|
return S(!1);
|
|
1226
|
-
if (x && r === n.target && (i = x), i && (f =
|
|
1227
|
-
return m(), r.appendChild(A),
|
|
1228
|
-
} else if (x &&
|
|
1229
|
-
var P =
|
|
1225
|
+
if (x && r === n.target && (i = x), i && (f = ut(i)), Ke(ft, r, A, e, i, f, n, !!i) !== !1)
|
|
1226
|
+
return m(), r.appendChild(A), ht = r, T(), S(!0);
|
|
1227
|
+
} else if (x && ta(n, v, this)) {
|
|
1228
|
+
var P = ue(r, 0, a, !0);
|
|
1230
1229
|
if (P === A)
|
|
1231
1230
|
return S(!1);
|
|
1232
|
-
if (i = P, f =
|
|
1233
|
-
return m(), r.insertBefore(A, P),
|
|
1231
|
+
if (i = P, f = ut(i), Ke(ft, r, A, e, i, f, n, !1) !== !1)
|
|
1232
|
+
return m(), r.insertBefore(A, P), ht = r, T(), S(!0);
|
|
1234
1233
|
} else if (i.parentNode === r) {
|
|
1235
|
-
f =
|
|
1236
|
-
var O = 0, w, L = A.parentNode !== r, I = !
|
|
1237
|
-
|
|
1234
|
+
f = ut(i);
|
|
1235
|
+
var O = 0, w, L = A.parentNode !== r, I = !Qo(A.animated && A.toRect || e, i.animated && i.toRect || f, v), N = v ? "top" : "left", F = jn(i, "top", "top") || jn(A, "top", "top"), X = F ? F.scrollTop : void 0;
|
|
1236
|
+
ie !== i && (w = f[N], Me = !1, $e = !I && a.invertSwap || L), O = na(n, i, f, v, I ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, ie === i);
|
|
1238
1237
|
var D;
|
|
1239
1238
|
if (O !== 0) {
|
|
1240
|
-
var R =
|
|
1239
|
+
var R = pt(A);
|
|
1241
1240
|
do
|
|
1242
|
-
R -= O, D =
|
|
1243
|
-
while (D && (U(D, "display") === "none" || D ===
|
|
1241
|
+
R -= O, D = ht.children[R];
|
|
1242
|
+
while (D && (U(D, "display") === "none" || D === J));
|
|
1244
1243
|
}
|
|
1245
1244
|
if (O === 0 || D === i)
|
|
1246
1245
|
return S(!1);
|
|
1247
|
-
|
|
1248
|
-
var
|
|
1246
|
+
ie = i, Re = O;
|
|
1247
|
+
var B = i.nextElementSibling, M = !1;
|
|
1249
1248
|
M = O === 1;
|
|
1250
|
-
var G =
|
|
1249
|
+
var G = Ke(ft, r, A, e, i, f, n, M);
|
|
1251
1250
|
if (G !== !1)
|
|
1252
|
-
return (G === 1 || G === -1) && (M = G === 1), mn = !0, setTimeout(
|
|
1251
|
+
return (G === 1 || G === -1) && (M = G === 1), mn = !0, setTimeout(_o, 30), m(), M && !B ? r.appendChild(A) : i.parentNode.insertBefore(A, M ? B : i), F && _n(F, 0, X - F.scrollTop), ht = A.parentNode, w !== void 0 && !$e && (Xe = Math.abs(w - ut(i)[N])), T(), S(!0);
|
|
1253
1252
|
}
|
|
1254
1253
|
if (r.contains(A))
|
|
1255
1254
|
return S(!1);
|
|
@@ -1266,62 +1265,62 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1266
1265
|
},
|
|
1267
1266
|
_onDrop: function(n) {
|
|
1268
1267
|
var r = this.el, i = this.options;
|
|
1269
|
-
if (
|
|
1268
|
+
if (wt = pt(A), Qt = pt(A, i.draggable), At("drop", this, {
|
|
1270
1269
|
evt: n
|
|
1271
|
-
}),
|
|
1270
|
+
}), ht = A && A.parentNode, wt = pt(A), Qt = pt(A, i.draggable), H.eventCanceled) {
|
|
1272
1271
|
this._nulling();
|
|
1273
1272
|
return;
|
|
1274
1273
|
}
|
|
1275
|
-
|
|
1274
|
+
le = !1, $e = !1, Me = !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(), Ce && U(document.body, "user-select", ""), U(A, "transform", ""), n && (Ee && (n.cancelable && n.preventDefault(), !i.dropBubble && n.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (ft === ht || xt && xt.lastPutMode !== "clone") && gt && gt.parentNode && gt.parentNode.removeChild(gt), A && (this.nativeDraggable && Z(A, "dragend", this), cn(A), A.style["will-change"] = "", Ee && !le && dt(A, xt ? xt.options.ghostClass : this.options.ghostClass, !1), dt(A, this.options.chosenClass, !1), Ct({
|
|
1276
1275
|
sortable: this,
|
|
1277
1276
|
name: "unchoose",
|
|
1278
|
-
toEl:
|
|
1277
|
+
toEl: ht,
|
|
1279
1278
|
newIndex: null,
|
|
1280
1279
|
newDraggableIndex: null,
|
|
1281
1280
|
originalEvent: n
|
|
1282
|
-
}),
|
|
1283
|
-
rootEl:
|
|
1281
|
+
}), ft !== ht ? (wt >= 0 && (Ct({
|
|
1282
|
+
rootEl: ht,
|
|
1284
1283
|
name: "add",
|
|
1285
|
-
toEl:
|
|
1286
|
-
fromEl:
|
|
1284
|
+
toEl: ht,
|
|
1285
|
+
fromEl: ft,
|
|
1287
1286
|
originalEvent: n
|
|
1288
|
-
}),
|
|
1287
|
+
}), Ct({
|
|
1289
1288
|
sortable: this,
|
|
1290
1289
|
name: "remove",
|
|
1291
|
-
toEl:
|
|
1290
|
+
toEl: ht,
|
|
1292
1291
|
originalEvent: n
|
|
1293
|
-
}),
|
|
1294
|
-
rootEl:
|
|
1292
|
+
}), Ct({
|
|
1293
|
+
rootEl: ht,
|
|
1295
1294
|
name: "sort",
|
|
1296
|
-
toEl:
|
|
1297
|
-
fromEl:
|
|
1295
|
+
toEl: ht,
|
|
1296
|
+
fromEl: ft,
|
|
1298
1297
|
originalEvent: n
|
|
1299
|
-
}),
|
|
1298
|
+
}), Ct({
|
|
1300
1299
|
sortable: this,
|
|
1301
1300
|
name: "sort",
|
|
1302
|
-
toEl:
|
|
1301
|
+
toEl: ht,
|
|
1303
1302
|
originalEvent: n
|
|
1304
|
-
})),
|
|
1303
|
+
})), xt && xt.save()) : wt !== fe && wt >= 0 && (Ct({
|
|
1305
1304
|
sortable: this,
|
|
1306
1305
|
name: "update",
|
|
1307
|
-
toEl:
|
|
1306
|
+
toEl: ht,
|
|
1308
1307
|
originalEvent: n
|
|
1309
|
-
}),
|
|
1308
|
+
}), Ct({
|
|
1310
1309
|
sortable: this,
|
|
1311
1310
|
name: "sort",
|
|
1312
|
-
toEl:
|
|
1311
|
+
toEl: ht,
|
|
1313
1312
|
originalEvent: n
|
|
1314
|
-
})),
|
|
1313
|
+
})), H.active && ((wt == null || wt === -1) && (wt = fe, Qt = Ae), Ct({
|
|
1315
1314
|
sortable: this,
|
|
1316
1315
|
name: "end",
|
|
1317
|
-
toEl:
|
|
1316
|
+
toEl: ht,
|
|
1318
1317
|
originalEvent: n
|
|
1319
1318
|
}), this.save()))), this._nulling();
|
|
1320
1319
|
},
|
|
1321
1320
|
_nulling: function() {
|
|
1322
|
-
|
|
1321
|
+
At("nulling", this), ft = A = ht = J = te = gt = Ve = Zt = qt = Kt = Ee = wt = Qt = fe = Ae = ie = Re = xt = Ue = H.dragged = H.ghost = H.clone = H.active = null, qe.forEach(function(n) {
|
|
1323
1322
|
n.checked = !0;
|
|
1324
|
-
}),
|
|
1323
|
+
}), qe.length = ln = fn = 0;
|
|
1325
1324
|
},
|
|
1326
1325
|
handleEvent: function(n) {
|
|
1327
1326
|
switch (n.type) {
|
|
@@ -1331,7 +1330,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1331
1330
|
break;
|
|
1332
1331
|
case "dragenter":
|
|
1333
1332
|
case "dragover":
|
|
1334
|
-
A && (this._onDragOver(n),
|
|
1333
|
+
A && (this._onDragOver(n), qo(n));
|
|
1335
1334
|
break;
|
|
1336
1335
|
case "selectstart":
|
|
1337
1336
|
n.preventDefault();
|
|
@@ -1344,7 +1343,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1344
1343
|
*/
|
|
1345
1344
|
toArray: function() {
|
|
1346
1345
|
for (var n = [], r, i = this.el.children, e = 0, f = i.length, t = this.options; e < f; e++)
|
|
1347
|
-
r = i[e],
|
|
1346
|
+
r = i[e], Wt(r, t.draggable, this.el, !1) && n.push(r.getAttribute(t.dataIdAttr) || oa(r));
|
|
1348
1347
|
return n;
|
|
1349
1348
|
},
|
|
1350
1349
|
/**
|
|
@@ -1355,7 +1354,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1355
1354
|
var i = {}, e = this.el;
|
|
1356
1355
|
this.toArray().forEach(function(f, t) {
|
|
1357
1356
|
var a = e.children[t];
|
|
1358
|
-
|
|
1357
|
+
Wt(a, this.options.draggable, e, !1) && (i[f] = a);
|
|
1359
1358
|
}, this), r && this.captureAnimationState(), n.forEach(function(f) {
|
|
1360
1359
|
i[f] && (e.removeChild(i[f]), e.appendChild(i[f]));
|
|
1361
1360
|
}), r && this.animateAll();
|
|
@@ -1374,7 +1373,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1374
1373
|
* @returns {HTMLElement|null}
|
|
1375
1374
|
*/
|
|
1376
1375
|
closest: function(n, r) {
|
|
1377
|
-
return
|
|
1376
|
+
return Wt(n, r || this.options.draggable, this.el, !1);
|
|
1378
1377
|
},
|
|
1379
1378
|
/**
|
|
1380
1379
|
* Set/get option
|
|
@@ -1386,24 +1385,24 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1386
1385
|
var i = this.options;
|
|
1387
1386
|
if (r === void 0)
|
|
1388
1387
|
return i[n];
|
|
1389
|
-
var e =
|
|
1388
|
+
var e = Fe.modifyOption(this, n, r);
|
|
1390
1389
|
typeof e < "u" ? i[n] = e : i[n] = r, n === "group" && nr(i);
|
|
1391
1390
|
},
|
|
1392
1391
|
/**
|
|
1393
1392
|
* Destroy
|
|
1394
1393
|
*/
|
|
1395
1394
|
destroy: function() {
|
|
1396
|
-
|
|
1395
|
+
At("destroy", this);
|
|
1397
1396
|
var n = this.el;
|
|
1398
|
-
n[
|
|
1397
|
+
n[It] = 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) {
|
|
1399
1398
|
r.removeAttribute("draggable");
|
|
1400
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1399
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = n = null;
|
|
1401
1400
|
},
|
|
1402
1401
|
_hideClone: function() {
|
|
1403
1402
|
if (!Zt) {
|
|
1404
|
-
if (
|
|
1403
|
+
if (At("hideClone", this), H.eventCanceled)
|
|
1405
1404
|
return;
|
|
1406
|
-
U(
|
|
1405
|
+
U(gt, "display", "none"), this.options.removeCloneOnHide && gt.parentNode && gt.parentNode.removeChild(gt), Zt = !0;
|
|
1407
1406
|
}
|
|
1408
1407
|
},
|
|
1409
1408
|
_showClone: function(n) {
|
|
@@ -1412,110 +1411,110 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
1412
1411
|
return;
|
|
1413
1412
|
}
|
|
1414
1413
|
if (Zt) {
|
|
1415
|
-
if (
|
|
1414
|
+
if (At("showClone", this), H.eventCanceled)
|
|
1416
1415
|
return;
|
|
1417
|
-
A.parentNode ==
|
|
1416
|
+
A.parentNode == ft && !this.options.group.revertClone ? ft.insertBefore(gt, A) : te ? ft.insertBefore(gt, te) : ft.appendChild(gt), this.options.group.revertClone && this.animate(A, gt), U(gt, "display", ""), Zt = !1;
|
|
1418
1417
|
}
|
|
1419
1418
|
}
|
|
1420
1419
|
};
|
|
1421
|
-
function
|
|
1420
|
+
function qo(o) {
|
|
1422
1421
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1423
1422
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var s, l = o[
|
|
1426
|
-
return window.CustomEvent && !zt && !
|
|
1423
|
+
function Ke(o, n, r, i, e, f, t, a) {
|
|
1424
|
+
var s, l = o[It], u = l.options.onMove, c;
|
|
1425
|
+
return window.CustomEvent && !zt && !Ne ? s = new CustomEvent("move", {
|
|
1427
1426
|
bubbles: !0,
|
|
1428
1427
|
cancelable: !0
|
|
1429
|
-
}) : (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 ||
|
|
1428
|
+
}) : (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;
|
|
1430
1429
|
}
|
|
1431
|
-
function
|
|
1430
|
+
function cn(o) {
|
|
1432
1431
|
o.draggable = !1;
|
|
1433
1432
|
}
|
|
1434
|
-
function
|
|
1433
|
+
function _o() {
|
|
1435
1434
|
mn = !1;
|
|
1436
1435
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var i =
|
|
1436
|
+
function ta(o, n, r) {
|
|
1437
|
+
var i = ut(ue(r.el, 0, r.options, !0)), e = 10;
|
|
1439
1438
|
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;
|
|
1440
1439
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var i =
|
|
1440
|
+
function ea(o, n, r) {
|
|
1441
|
+
var i = ut(En(r.el, r.options.draggable)), e = 10;
|
|
1443
1442
|
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;
|
|
1444
1443
|
}
|
|
1445
|
-
function
|
|
1444
|
+
function na(o, n, r, i, e, f, t, a) {
|
|
1446
1445
|
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;
|
|
1447
1446
|
if (!t) {
|
|
1448
|
-
if (a &&
|
|
1449
|
-
if (!
|
|
1447
|
+
if (a && Xe < l * e) {
|
|
1448
|
+
if (!Me && (Re === 1 ? s > u + l * f / 2 : s < c - l * f / 2) && (Me = !0), Me)
|
|
1450
1449
|
d = !0;
|
|
1451
|
-
else if (
|
|
1452
|
-
return -
|
|
1450
|
+
else if (Re === 1 ? s < u + Xe : s > c - Xe)
|
|
1451
|
+
return -Re;
|
|
1453
1452
|
} else if (s > u + l * (1 - e) / 2 && s < c - l * (1 - e) / 2)
|
|
1454
|
-
return
|
|
1453
|
+
return ra(n);
|
|
1455
1454
|
}
|
|
1456
1455
|
return d = d || t, d && (s < u + l * f / 2 || s > c - l * f / 2) ? s > u + l / 2 ? 1 : -1 : 0;
|
|
1457
1456
|
}
|
|
1458
|
-
function na(o) {
|
|
1459
|
-
return yt(A) < yt(o) ? 1 : -1;
|
|
1460
|
-
}
|
|
1461
1457
|
function ra(o) {
|
|
1458
|
+
return pt(A) < pt(o) ? 1 : -1;
|
|
1459
|
+
}
|
|
1460
|
+
function oa(o) {
|
|
1462
1461
|
for (var n = o.tagName + o.className + o.src + o.href + o.textContent, r = n.length, i = 0; r--; )
|
|
1463
1462
|
i += n.charCodeAt(r);
|
|
1464
1463
|
return i.toString(36);
|
|
1465
1464
|
}
|
|
1466
|
-
function
|
|
1467
|
-
|
|
1465
|
+
function aa(o) {
|
|
1466
|
+
qe.length = 0;
|
|
1468
1467
|
for (var n = o.getElementsByTagName("input"), r = n.length; r--; ) {
|
|
1469
1468
|
var i = n[r];
|
|
1470
|
-
i.checked &&
|
|
1469
|
+
i.checked && qe.push(i);
|
|
1471
1470
|
}
|
|
1472
1471
|
}
|
|
1473
|
-
function
|
|
1472
|
+
function Ye(o) {
|
|
1474
1473
|
return setTimeout(o, 0);
|
|
1475
1474
|
}
|
|
1476
1475
|
function yn(o) {
|
|
1477
1476
|
return clearTimeout(o);
|
|
1478
1477
|
}
|
|
1479
|
-
|
|
1480
|
-
(
|
|
1478
|
+
tn && q(document, "touchmove", function(o) {
|
|
1479
|
+
(H.active || le) && o.cancelable && o.preventDefault();
|
|
1481
1480
|
});
|
|
1482
|
-
|
|
1483
|
-
on:
|
|
1481
|
+
H.utils = {
|
|
1482
|
+
on: q,
|
|
1484
1483
|
off: Z,
|
|
1485
1484
|
css: U,
|
|
1486
1485
|
find: kn,
|
|
1487
1486
|
is: function(n, r) {
|
|
1488
|
-
return !!
|
|
1487
|
+
return !!Wt(n, r, n, !1);
|
|
1489
1488
|
},
|
|
1490
|
-
extend:
|
|
1489
|
+
extend: Wo,
|
|
1491
1490
|
throttle: qn,
|
|
1492
|
-
closest:
|
|
1493
|
-
toggleClass:
|
|
1491
|
+
closest: Wt,
|
|
1492
|
+
toggleClass: dt,
|
|
1494
1493
|
clone: xn,
|
|
1495
|
-
index:
|
|
1496
|
-
nextTick:
|
|
1494
|
+
index: pt,
|
|
1495
|
+
nextTick: Ye,
|
|
1497
1496
|
cancelNextTick: yn,
|
|
1498
1497
|
detectDirection: er,
|
|
1499
|
-
getChild:
|
|
1498
|
+
getChild: ue
|
|
1500
1499
|
};
|
|
1501
|
-
|
|
1502
|
-
return o[
|
|
1500
|
+
H.get = function(o) {
|
|
1501
|
+
return o[It];
|
|
1503
1502
|
};
|
|
1504
|
-
|
|
1503
|
+
H.mount = function() {
|
|
1505
1504
|
for (var o = arguments.length, n = new Array(o), r = 0; r < o; r++)
|
|
1506
1505
|
n[r] = arguments[r];
|
|
1507
1506
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(i) {
|
|
1508
1507
|
if (!i.prototype || !i.prototype.constructor)
|
|
1509
1508
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
1510
|
-
i.utils && (
|
|
1509
|
+
i.utils && (H.utils = Xt(Xt({}, H.utils), i.utils)), Fe.mount(i);
|
|
1511
1510
|
});
|
|
1512
1511
|
};
|
|
1513
|
-
|
|
1514
|
-
return new
|
|
1512
|
+
H.create = function(o, n) {
|
|
1513
|
+
return new H(o, n);
|
|
1515
1514
|
};
|
|
1516
|
-
|
|
1517
|
-
var
|
|
1518
|
-
function
|
|
1515
|
+
H.version = $o;
|
|
1516
|
+
var St = [], xe, Sn, bn = !1, dn, vn, _e, Oe;
|
|
1517
|
+
function ia() {
|
|
1519
1518
|
function o() {
|
|
1520
1519
|
this.defaults = {
|
|
1521
1520
|
scroll: !0,
|
|
@@ -1530,36 +1529,36 @@ function aa() {
|
|
|
1530
1529
|
return o.prototype = {
|
|
1531
1530
|
dragStarted: function(r) {
|
|
1532
1531
|
var i = r.originalEvent;
|
|
1533
|
-
this.sortable.nativeDraggable ?
|
|
1532
|
+
this.sortable.nativeDraggable ? q(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? q(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? q(document, "touchmove", this._handleFallbackAutoScroll) : q(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1534
1533
|
},
|
|
1535
1534
|
dragOverCompleted: function(r) {
|
|
1536
1535
|
var i = r.originalEvent;
|
|
1537
1536
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1538
1537
|
},
|
|
1539
1538
|
drop: function() {
|
|
1540
|
-
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Bn(),
|
|
1539
|
+
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Bn(), ze(), Ho();
|
|
1541
1540
|
},
|
|
1542
1541
|
nulling: function() {
|
|
1543
|
-
|
|
1542
|
+
_e = Sn = xe = bn = Oe = dn = vn = null, St.length = 0;
|
|
1544
1543
|
},
|
|
1545
1544
|
_handleFallbackAutoScroll: function(r) {
|
|
1546
1545
|
this._handleAutoScroll(r, !0);
|
|
1547
1546
|
},
|
|
1548
1547
|
_handleAutoScroll: function(r, i) {
|
|
1549
1548
|
var e = this, f = (r.touches ? r.touches[0] : r).clientX, t = (r.touches ? r.touches[0] : r).clientY, a = document.elementFromPoint(f, t);
|
|
1550
|
-
if (
|
|
1551
|
-
|
|
1549
|
+
if (_e = r, i || this.options.forceAutoScrollFallback || Ne || zt || Ce) {
|
|
1550
|
+
hn(r, this.options, a, i);
|
|
1552
1551
|
var s = kt(a, !0);
|
|
1553
|
-
bn && (!
|
|
1552
|
+
bn && (!Oe || f !== dn || t !== vn) && (Oe && Bn(), Oe = setInterval(function() {
|
|
1554
1553
|
var l = kt(document.elementFromPoint(f, t), !0);
|
|
1555
|
-
l !== s && (s = l,
|
|
1556
|
-
}, 10),
|
|
1554
|
+
l !== s && (s = l, ze()), hn(r, e.options, l, i);
|
|
1555
|
+
}, 10), dn = f, vn = t);
|
|
1557
1556
|
} else {
|
|
1558
1557
|
if (!this.options.bubbleScroll || kt(a, !0) === Vt()) {
|
|
1559
|
-
|
|
1558
|
+
ze();
|
|
1560
1559
|
return;
|
|
1561
1560
|
}
|
|
1562
|
-
|
|
1561
|
+
hn(r, this.options, kt(a, !1), !1);
|
|
1563
1562
|
}
|
|
1564
1563
|
}
|
|
1565
1564
|
}, Lt(o, {
|
|
@@ -1567,30 +1566,30 @@ function aa() {
|
|
|
1567
1566
|
initializeByDefault: !0
|
|
1568
1567
|
});
|
|
1569
1568
|
}
|
|
1570
|
-
function
|
|
1571
|
-
|
|
1569
|
+
function ze() {
|
|
1570
|
+
St.forEach(function(o) {
|
|
1572
1571
|
clearInterval(o.pid);
|
|
1573
|
-
}),
|
|
1572
|
+
}), St = [];
|
|
1574
1573
|
}
|
|
1575
1574
|
function Bn() {
|
|
1576
|
-
clearInterval(
|
|
1575
|
+
clearInterval(Oe);
|
|
1577
1576
|
}
|
|
1578
|
-
var
|
|
1577
|
+
var hn = qn(function(o, n, r, i) {
|
|
1579
1578
|
if (n.scroll) {
|
|
1580
1579
|
var e = (o.touches ? o.touches[0] : o).clientX, f = (o.touches ? o.touches[0] : o).clientY, t = n.scrollSensitivity, a = n.scrollSpeed, s = Vt(), l = !1, u;
|
|
1581
|
-
Sn !== r && (Sn = r,
|
|
1582
|
-
var c = 0, d =
|
|
1580
|
+
Sn !== r && (Sn = r, ze(), xe = n.scroll, u = n.scrollFn, xe === !0 && (xe = kt(r, !0)));
|
|
1581
|
+
var c = 0, d = xe;
|
|
1583
1582
|
do {
|
|
1584
|
-
var v = d, h =
|
|
1583
|
+
var v = d, h = ut(v), g = h.top, p = h.bottom, m = h.left, S = h.right, T = h.width, x = h.height, P = void 0, O = void 0, w = v.scrollWidth, L = v.scrollHeight, I = U(v), N = v.scrollLeft, F = v.scrollTop;
|
|
1585
1584
|
v === s ? (P = T < w && (I.overflowX === "auto" || I.overflowX === "scroll" || I.overflowX === "visible"), O = x < L && (I.overflowY === "auto" || I.overflowY === "scroll" || I.overflowY === "visible")) : (P = T < w && (I.overflowX === "auto" || I.overflowX === "scroll"), O = x < L && (I.overflowY === "auto" || I.overflowY === "scroll"));
|
|
1586
|
-
var
|
|
1587
|
-
if (!
|
|
1585
|
+
var X = P && (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);
|
|
1586
|
+
if (!St[c])
|
|
1588
1587
|
for (var R = 0; R <= c; R++)
|
|
1589
|
-
|
|
1590
|
-
(
|
|
1591
|
-
i && this.layer === 0 &&
|
|
1592
|
-
var
|
|
1593
|
-
typeof u == "function" && u.call(
|
|
1588
|
+
St[R] || (St[R] = {});
|
|
1589
|
+
(St[c].vx != X || St[c].vy != D || St[c].el !== v) && (St[c].el = v, St[c].vx = X, St[c].vy = D, clearInterval(St[c].pid), (X != 0 || D != 0) && (l = !0, St[c].pid = setInterval(function() {
|
|
1590
|
+
i && this.layer === 0 && H.active._onTouchMove(_e);
|
|
1591
|
+
var B = St[this.layer].vy ? St[this.layer].vy * a : 0, M = St[this.layer].vx ? St[this.layer].vx * a : 0;
|
|
1592
|
+
typeof u == "function" && u.call(H.dragged.parentNode[It], M, B, o, _e, St[this.layer].el) !== "continue" || _n(St[this.layer].el, M, B);
|
|
1594
1593
|
}.bind({
|
|
1595
1594
|
layer: c
|
|
1596
1595
|
}), 24))), c++;
|
|
@@ -1620,7 +1619,7 @@ On.prototype = {
|
|
|
1620
1619
|
onSpill: function(n) {
|
|
1621
1620
|
var r = n.dragEl, i = n.putSortable;
|
|
1622
1621
|
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
1623
|
-
var e =
|
|
1622
|
+
var e = ue(this.sortable.el, this.startIndex, this.options);
|
|
1624
1623
|
e ? this.sortable.el.insertBefore(r, e) : this.sortable.el.appendChild(r), this.sortable.animateAll(), i && i.animateAll();
|
|
1625
1624
|
},
|
|
1626
1625
|
drop: ar
|
|
@@ -1641,7 +1640,7 @@ Lt(In, {
|
|
|
1641
1640
|
pluginName: "removeOnSpill"
|
|
1642
1641
|
});
|
|
1643
1642
|
var jt;
|
|
1644
|
-
function
|
|
1643
|
+
function sa() {
|
|
1645
1644
|
function o() {
|
|
1646
1645
|
this.defaults = {
|
|
1647
1646
|
swapClass: "sortable-swap-highlight"
|
|
@@ -1658,14 +1657,14 @@ function ia() {
|
|
|
1658
1657
|
var l = this.sortable.el, u = this.options;
|
|
1659
1658
|
if (e && e !== l) {
|
|
1660
1659
|
var c = jt;
|
|
1661
|
-
f(e) !== !1 ? (
|
|
1660
|
+
f(e) !== !1 ? (dt(e, u.swapClass, !0), jt = e) : jt = null, c && c !== jt && dt(c, u.swapClass, !1);
|
|
1662
1661
|
}
|
|
1663
1662
|
a(), i(!0), s();
|
|
1664
1663
|
}
|
|
1665
1664
|
},
|
|
1666
1665
|
drop: function(r) {
|
|
1667
1666
|
var i = r.activeSortable, e = r.putSortable, f = r.dragEl, t = e || this.sortable, a = this.options;
|
|
1668
|
-
jt &&
|
|
1667
|
+
jt && dt(jt, a.swapClass, !1), jt && (a.swap || e && e.options.swap) && f !== jt && (t.captureAnimationState(), t !== i && i.captureAnimationState(), la(f, jt), t.animateAll(), t !== i && i.animateAll());
|
|
1669
1668
|
},
|
|
1670
1669
|
nulling: function() {
|
|
1671
1670
|
jt = null;
|
|
@@ -1679,21 +1678,21 @@ function ia() {
|
|
|
1679
1678
|
}
|
|
1680
1679
|
});
|
|
1681
1680
|
}
|
|
1682
|
-
function
|
|
1681
|
+
function la(o, n) {
|
|
1683
1682
|
var r = o.parentNode, i = n.parentNode, e, f;
|
|
1684
|
-
!r || !i || r.isEqualNode(n) || i.isEqualNode(o) || (e =
|
|
1683
|
+
!r || !i || r.isEqualNode(n) || i.isEqualNode(o) || (e = pt(o), f = pt(n), r.isEqualNode(i) && e < f && f++, r.insertBefore(n, r.children[e]), i.insertBefore(o, i.children[f]));
|
|
1685
1684
|
}
|
|
1686
|
-
var
|
|
1687
|
-
function
|
|
1685
|
+
var z = [], Ft = [], me, Bt, ye = !1, Rt = !1, se = !1, at, Se, Be;
|
|
1686
|
+
function fa() {
|
|
1688
1687
|
function o(n) {
|
|
1689
1688
|
for (var r in this)
|
|
1690
1689
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1691
|
-
n.options.supportPointer ?
|
|
1690
|
+
n.options.supportPointer ? q(document, "pointerup", this._deselectMultiDrag) : (q(document, "mouseup", this._deselectMultiDrag), q(document, "touchend", this._deselectMultiDrag)), q(document, "keydown", this._checkKeyDown), q(document, "keyup", this._checkKeyUp), this.defaults = {
|
|
1692
1691
|
selectedClass: "sortable-selected",
|
|
1693
1692
|
multiDragKey: null,
|
|
1694
1693
|
setData: function(e, f) {
|
|
1695
1694
|
var t = "";
|
|
1696
|
-
|
|
1695
|
+
z.length && Bt === n ? z.forEach(function(a, s) {
|
|
1697
1696
|
t += (s ? ", " : "") + a.textContent;
|
|
1698
1697
|
}) : t = f.textContent, e.setData("Text", t);
|
|
1699
1698
|
}
|
|
@@ -1707,90 +1706,90 @@ function la() {
|
|
|
1707
1706
|
at = i;
|
|
1708
1707
|
},
|
|
1709
1708
|
delayEnded: function() {
|
|
1710
|
-
this.isMultiDrag = ~
|
|
1709
|
+
this.isMultiDrag = ~z.indexOf(at);
|
|
1711
1710
|
},
|
|
1712
1711
|
setupClone: function(r) {
|
|
1713
1712
|
var i = r.sortable, e = r.cancel;
|
|
1714
1713
|
if (this.isMultiDrag) {
|
|
1715
|
-
for (var f = 0; f <
|
|
1716
|
-
|
|
1714
|
+
for (var f = 0; f < z.length; f++)
|
|
1715
|
+
Ft.push(xn(z[f])), Ft[f].sortableIndex = z[f].sortableIndex, Ft[f].draggable = !1, Ft[f].style["will-change"] = "", dt(Ft[f], this.options.selectedClass, !1), z[f] === at && dt(Ft[f], this.options.chosenClass, !1);
|
|
1717
1716
|
i._hideClone(), e();
|
|
1718
1717
|
}
|
|
1719
1718
|
},
|
|
1720
1719
|
clone: function(r) {
|
|
1721
1720
|
var i = r.sortable, e = r.rootEl, f = r.dispatchSortableEvent, t = r.cancel;
|
|
1722
|
-
this.isMultiDrag && (this.options.removeCloneOnHide ||
|
|
1721
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || z.length && Bt === i && (Wn(!0, e), f("clone"), t()));
|
|
1723
1722
|
},
|
|
1724
1723
|
showClone: function(r) {
|
|
1725
1724
|
var i = r.cloneNowShown, e = r.rootEl, f = r.cancel;
|
|
1726
|
-
this.isMultiDrag && (Wn(!1, e),
|
|
1725
|
+
this.isMultiDrag && (Wn(!1, e), Ft.forEach(function(t) {
|
|
1727
1726
|
U(t, "display", "");
|
|
1728
|
-
}), i(),
|
|
1727
|
+
}), i(), Be = !1, f());
|
|
1729
1728
|
},
|
|
1730
1729
|
hideClone: function(r) {
|
|
1731
1730
|
var i = this;
|
|
1732
1731
|
r.sortable;
|
|
1733
1732
|
var e = r.cloneNowHidden, f = r.cancel;
|
|
1734
|
-
this.isMultiDrag && (
|
|
1733
|
+
this.isMultiDrag && (Ft.forEach(function(t) {
|
|
1735
1734
|
U(t, "display", "none"), i.options.removeCloneOnHide && t.parentNode && t.parentNode.removeChild(t);
|
|
1736
|
-
}), e(),
|
|
1735
|
+
}), e(), Be = !0, f());
|
|
1737
1736
|
},
|
|
1738
1737
|
dragStartGlobal: function(r) {
|
|
1739
|
-
r.sortable, !this.isMultiDrag &&
|
|
1740
|
-
i.sortableIndex =
|
|
1741
|
-
}),
|
|
1738
|
+
r.sortable, !this.isMultiDrag && Bt && Bt.multiDrag._deselectMultiDrag(), z.forEach(function(i) {
|
|
1739
|
+
i.sortableIndex = pt(i);
|
|
1740
|
+
}), z = z.sort(function(i, e) {
|
|
1742
1741
|
return i.sortableIndex - e.sortableIndex;
|
|
1743
|
-
}),
|
|
1742
|
+
}), se = !0;
|
|
1744
1743
|
},
|
|
1745
1744
|
dragStarted: function(r) {
|
|
1746
1745
|
var i = this, e = r.sortable;
|
|
1747
1746
|
if (this.isMultiDrag) {
|
|
1748
1747
|
if (this.options.sort && (e.captureAnimationState(), this.options.animation)) {
|
|
1749
|
-
|
|
1748
|
+
z.forEach(function(t) {
|
|
1750
1749
|
t !== at && U(t, "position", "absolute");
|
|
1751
1750
|
});
|
|
1752
|
-
var f =
|
|
1753
|
-
|
|
1751
|
+
var f = ut(at, !1, !0, !0);
|
|
1752
|
+
z.forEach(function(t) {
|
|
1754
1753
|
t !== at && Un(t, f);
|
|
1755
|
-
}),
|
|
1754
|
+
}), Rt = !0, ye = !0;
|
|
1756
1755
|
}
|
|
1757
1756
|
e.animateAll(function() {
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
}), i.options.sort &&
|
|
1757
|
+
Rt = !1, ye = !1, i.options.animation && z.forEach(function(t) {
|
|
1758
|
+
an(t);
|
|
1759
|
+
}), i.options.sort && We();
|
|
1761
1760
|
});
|
|
1762
1761
|
}
|
|
1763
1762
|
},
|
|
1764
1763
|
dragOver: function(r) {
|
|
1765
1764
|
var i = r.target, e = r.completed, f = r.cancel;
|
|
1766
|
-
|
|
1765
|
+
Rt && ~z.indexOf(i) && (e(!1), f());
|
|
1767
1766
|
},
|
|
1768
1767
|
revert: function(r) {
|
|
1769
1768
|
var i = r.fromSortable, e = r.rootEl, f = r.sortable, t = r.dragRect;
|
|
1770
|
-
|
|
1769
|
+
z.length > 1 && (z.forEach(function(a) {
|
|
1771
1770
|
f.addAnimationState({
|
|
1772
1771
|
target: a,
|
|
1773
|
-
rect:
|
|
1774
|
-
}),
|
|
1775
|
-
}),
|
|
1772
|
+
rect: Rt ? ut(a) : t
|
|
1773
|
+
}), an(a), a.fromRect = t, i.removeAnimationState(a);
|
|
1774
|
+
}), Rt = !1, ua(!this.options.removeCloneOnHide, e));
|
|
1776
1775
|
},
|
|
1777
1776
|
dragOverCompleted: function(r) {
|
|
1778
1777
|
var i = r.sortable, e = r.isOwner, f = r.insertion, t = r.activeSortable, a = r.parentEl, s = r.putSortable, l = this.options;
|
|
1779
1778
|
if (f) {
|
|
1780
|
-
if (e && t._hideClone(),
|
|
1781
|
-
var u =
|
|
1782
|
-
|
|
1779
|
+
if (e && t._hideClone(), ye = !1, l.animation && z.length > 1 && (Rt || !e && !t.options.sort && !s)) {
|
|
1780
|
+
var u = ut(at, !1, !0, !0);
|
|
1781
|
+
z.forEach(function(d) {
|
|
1783
1782
|
d !== at && (Un(d, u), a.appendChild(d));
|
|
1784
|
-
}),
|
|
1783
|
+
}), Rt = !0;
|
|
1785
1784
|
}
|
|
1786
1785
|
if (!e)
|
|
1787
|
-
if (
|
|
1788
|
-
var c =
|
|
1789
|
-
t._showClone(i), t.options.animation && !
|
|
1786
|
+
if (Rt || We(), z.length > 1) {
|
|
1787
|
+
var c = Be;
|
|
1788
|
+
t._showClone(i), t.options.animation && !Be && c && Ft.forEach(function(d) {
|
|
1790
1789
|
t.addAnimationState({
|
|
1791
1790
|
target: d,
|
|
1792
|
-
rect:
|
|
1793
|
-
}), d.fromRect =
|
|
1791
|
+
rect: Se
|
|
1792
|
+
}), d.fromRect = Se, d.thisAnimationDuration = null;
|
|
1794
1793
|
});
|
|
1795
1794
|
} else
|
|
1796
1795
|
t._showClone(i);
|
|
@@ -1798,24 +1797,24 @@ function la() {
|
|
|
1798
1797
|
},
|
|
1799
1798
|
dragOverAnimationCapture: function(r) {
|
|
1800
1799
|
var i = r.dragRect, e = r.isOwner, f = r.activeSortable;
|
|
1801
|
-
if (
|
|
1800
|
+
if (z.forEach(function(a) {
|
|
1802
1801
|
a.thisAnimationDuration = null;
|
|
1803
1802
|
}), f.options.animation && !e && f.multiDrag.isMultiDrag) {
|
|
1804
|
-
|
|
1803
|
+
Se = Lt({}, i);
|
|
1805
1804
|
var t = ee(at, !0);
|
|
1806
|
-
|
|
1805
|
+
Se.top -= t.f, Se.left -= t.e;
|
|
1807
1806
|
}
|
|
1808
1807
|
},
|
|
1809
1808
|
dragOverAnimationComplete: function() {
|
|
1810
|
-
|
|
1809
|
+
Rt && (Rt = !1, We());
|
|
1811
1810
|
},
|
|
1812
1811
|
drop: function(r) {
|
|
1813
1812
|
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;
|
|
1814
1813
|
if (i) {
|
|
1815
1814
|
var c = this.options, d = f.children;
|
|
1816
|
-
if (!
|
|
1817
|
-
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(),
|
|
1818
|
-
|
|
1815
|
+
if (!se)
|
|
1816
|
+
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), dt(at, c.selectedClass, !~z.indexOf(at)), ~z.indexOf(at))
|
|
1817
|
+
z.splice(z.indexOf(at), 1), me = null, be({
|
|
1819
1818
|
sortable: t,
|
|
1820
1819
|
rootEl: e,
|
|
1821
1820
|
name: "deselect",
|
|
@@ -1823,18 +1822,18 @@ function la() {
|
|
|
1823
1822
|
originalEvt: i
|
|
1824
1823
|
});
|
|
1825
1824
|
else {
|
|
1826
|
-
if (
|
|
1825
|
+
if (z.push(at), be({
|
|
1827
1826
|
sortable: t,
|
|
1828
1827
|
rootEl: e,
|
|
1829
1828
|
name: "select",
|
|
1830
1829
|
targetEl: at,
|
|
1831
1830
|
originalEvt: i
|
|
1832
|
-
}), i.shiftKey &&
|
|
1833
|
-
var v =
|
|
1831
|
+
}), i.shiftKey && me && t.el.contains(me)) {
|
|
1832
|
+
var v = pt(me), h = pt(at);
|
|
1834
1833
|
if (~v && ~h && v !== h) {
|
|
1835
1834
|
var g, p;
|
|
1836
1835
|
for (h > v ? (p = v, g = h) : (p = h, g = v + 1); p < g; p++)
|
|
1837
|
-
~
|
|
1836
|
+
~z.indexOf(d[p]) || (dt(d[p], c.selectedClass, !0), z.push(d[p]), be({
|
|
1838
1837
|
sortable: t,
|
|
1839
1838
|
rootEl: e,
|
|
1840
1839
|
name: "select",
|
|
@@ -1843,53 +1842,53 @@ function la() {
|
|
|
1843
1842
|
}));
|
|
1844
1843
|
}
|
|
1845
1844
|
} else
|
|
1846
|
-
|
|
1847
|
-
|
|
1845
|
+
me = at;
|
|
1846
|
+
Bt = u;
|
|
1848
1847
|
}
|
|
1849
|
-
if (
|
|
1850
|
-
if (
|
|
1851
|
-
var m =
|
|
1852
|
-
if (!
|
|
1848
|
+
if (se && this.isMultiDrag) {
|
|
1849
|
+
if (Rt = !1, (f[It].options.sort || f !== e) && z.length > 1) {
|
|
1850
|
+
var m = ut(at), S = pt(at, ":not(." + this.options.selectedClass + ")");
|
|
1851
|
+
if (!ye && c.animation && (at.thisAnimationDuration = null), u.captureAnimationState(), !ye && (c.animation && (at.fromRect = m, z.forEach(function(x) {
|
|
1853
1852
|
if (x.thisAnimationDuration = null, x !== at) {
|
|
1854
|
-
var P =
|
|
1853
|
+
var P = Rt ? ut(x) : m;
|
|
1855
1854
|
x.fromRect = P, u.addAnimationState({
|
|
1856
1855
|
target: x,
|
|
1857
1856
|
rect: P
|
|
1858
1857
|
});
|
|
1859
1858
|
}
|
|
1860
|
-
})),
|
|
1859
|
+
})), We(), z.forEach(function(x) {
|
|
1861
1860
|
d[S] ? f.insertBefore(x, d[S]) : f.appendChild(x), S++;
|
|
1862
|
-
}), s ===
|
|
1861
|
+
}), s === pt(at))) {
|
|
1863
1862
|
var T = !1;
|
|
1864
|
-
|
|
1865
|
-
if (x.sortableIndex !==
|
|
1863
|
+
z.forEach(function(x) {
|
|
1864
|
+
if (x.sortableIndex !== pt(x)) {
|
|
1866
1865
|
T = !0;
|
|
1867
1866
|
return;
|
|
1868
1867
|
}
|
|
1869
1868
|
}), T && a("update");
|
|
1870
1869
|
}
|
|
1871
|
-
|
|
1872
|
-
|
|
1870
|
+
z.forEach(function(x) {
|
|
1871
|
+
an(x);
|
|
1873
1872
|
}), u.animateAll();
|
|
1874
1873
|
}
|
|
1875
|
-
|
|
1874
|
+
Bt = u;
|
|
1876
1875
|
}
|
|
1877
|
-
(e === f || l && l.lastPutMode !== "clone") &&
|
|
1876
|
+
(e === f || l && l.lastPutMode !== "clone") && Ft.forEach(function(x) {
|
|
1878
1877
|
x.parentNode && x.parentNode.removeChild(x);
|
|
1879
1878
|
});
|
|
1880
1879
|
}
|
|
1881
1880
|
},
|
|
1882
1881
|
nullingGlobal: function() {
|
|
1883
|
-
this.isMultiDrag =
|
|
1882
|
+
this.isMultiDrag = se = !1, Ft.length = 0;
|
|
1884
1883
|
},
|
|
1885
1884
|
destroyGlobal: function() {
|
|
1886
1885
|
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);
|
|
1887
1886
|
},
|
|
1888
1887
|
_deselectMultiDrag: function(r) {
|
|
1889
|
-
if (!(typeof
|
|
1890
|
-
for (;
|
|
1891
|
-
var i =
|
|
1892
|
-
|
|
1888
|
+
if (!(typeof se < "u" && se) && Bt === this.sortable && !(r && Wt(r.target, this.options.draggable, this.sortable.el, !1)) && !(r && r.button !== 0))
|
|
1889
|
+
for (; z.length; ) {
|
|
1890
|
+
var i = z[0];
|
|
1891
|
+
dt(i, this.options.selectedClass, !1), z.shift(), be({
|
|
1893
1892
|
sortable: this.sortable,
|
|
1894
1893
|
rootEl: this.sortable.el,
|
|
1895
1894
|
name: "deselect",
|
|
@@ -1913,33 +1912,33 @@ function la() {
|
|
|
1913
1912
|
* @param {HTMLElement} el The element to be selected
|
|
1914
1913
|
*/
|
|
1915
1914
|
select: function(r) {
|
|
1916
|
-
var i = r.parentNode[
|
|
1917
|
-
!i || !i.options.multiDrag || ~
|
|
1915
|
+
var i = r.parentNode[It];
|
|
1916
|
+
!i || !i.options.multiDrag || ~z.indexOf(r) || (Bt && Bt !== i && (Bt.multiDrag._deselectMultiDrag(), Bt = i), dt(r, i.options.selectedClass, !0), z.push(r));
|
|
1918
1917
|
},
|
|
1919
1918
|
/**
|
|
1920
1919
|
* Deselects the provided multi-drag item
|
|
1921
1920
|
* @param {HTMLElement} el The element to be deselected
|
|
1922
1921
|
*/
|
|
1923
1922
|
deselect: function(r) {
|
|
1924
|
-
var i = r.parentNode[
|
|
1925
|
-
!i || !i.options.multiDrag || !~e || (
|
|
1923
|
+
var i = r.parentNode[It], e = z.indexOf(r);
|
|
1924
|
+
!i || !i.options.multiDrag || !~e || (dt(r, i.options.selectedClass, !1), z.splice(e, 1));
|
|
1926
1925
|
}
|
|
1927
1926
|
},
|
|
1928
1927
|
eventProperties: function() {
|
|
1929
1928
|
var r = this, i = [], e = [];
|
|
1930
|
-
return
|
|
1929
|
+
return z.forEach(function(f) {
|
|
1931
1930
|
i.push({
|
|
1932
1931
|
multiDragElement: f,
|
|
1933
1932
|
index: f.sortableIndex
|
|
1934
1933
|
});
|
|
1935
1934
|
var t;
|
|
1936
|
-
|
|
1935
|
+
Rt && f !== at ? t = -1 : Rt ? t = pt(f, ":not(." + r.options.selectedClass + ")") : t = pt(f), e.push({
|
|
1937
1936
|
multiDragElement: f,
|
|
1938
1937
|
index: t
|
|
1939
1938
|
});
|
|
1940
1939
|
}), {
|
|
1941
|
-
items:
|
|
1942
|
-
clones: [].concat(
|
|
1940
|
+
items: Fo(z),
|
|
1941
|
+
clones: [].concat(Ft),
|
|
1943
1942
|
oldIndicies: i,
|
|
1944
1943
|
newIndicies: e
|
|
1945
1944
|
};
|
|
@@ -1951,36 +1950,36 @@ function la() {
|
|
|
1951
1950
|
}
|
|
1952
1951
|
});
|
|
1953
1952
|
}
|
|
1954
|
-
function
|
|
1955
|
-
|
|
1953
|
+
function ua(o, n) {
|
|
1954
|
+
z.forEach(function(r, i) {
|
|
1956
1955
|
var e = n.children[r.sortableIndex + (o ? Number(i) : 0)];
|
|
1957
1956
|
e ? n.insertBefore(r, e) : n.appendChild(r);
|
|
1958
1957
|
});
|
|
1959
1958
|
}
|
|
1960
1959
|
function Wn(o, n) {
|
|
1961
|
-
|
|
1960
|
+
Ft.forEach(function(r, i) {
|
|
1962
1961
|
var e = n.children[r.sortableIndex + (o ? Number(i) : 0)];
|
|
1963
1962
|
e ? n.insertBefore(r, e) : n.appendChild(r);
|
|
1964
1963
|
});
|
|
1965
1964
|
}
|
|
1966
|
-
function
|
|
1967
|
-
|
|
1965
|
+
function We() {
|
|
1966
|
+
z.forEach(function(o) {
|
|
1968
1967
|
o !== at && o.parentNode && o.parentNode.removeChild(o);
|
|
1969
1968
|
});
|
|
1970
1969
|
}
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
const
|
|
1970
|
+
H.mount(new ia());
|
|
1971
|
+
H.mount(In, On);
|
|
1972
|
+
const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1974
1973
|
__proto__: null,
|
|
1975
|
-
MultiDrag:
|
|
1976
|
-
Sortable:
|
|
1977
|
-
Swap:
|
|
1978
|
-
default:
|
|
1979
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1974
|
+
MultiDrag: fa,
|
|
1975
|
+
Sortable: H,
|
|
1976
|
+
Swap: sa,
|
|
1977
|
+
default: H
|
|
1978
|
+
}, Symbol.toStringTag, { value: "Module" })), da = /* @__PURE__ */ ao(ca);
|
|
1980
1979
|
(function(o, n) {
|
|
1981
1980
|
(function(i, e) {
|
|
1982
|
-
o.exports = e(br,
|
|
1983
|
-
})(typeof self < "u" ? self :
|
|
1981
|
+
o.exports = e(br, da);
|
|
1982
|
+
})(typeof self < "u" ? self : io, function(r, i) {
|
|
1984
1983
|
return function(e) {
|
|
1985
1984
|
var f = {};
|
|
1986
1985
|
function t(a) {
|
|
@@ -2409,13 +2408,13 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2409
2408
|
"4df4": function(e, f, t) {
|
|
2410
2409
|
var a = t("0366"), s = t("7b0b"), l = t("9bdd"), u = t("e95a"), c = t("50c4"), d = t("8418"), v = t("35a1");
|
|
2411
2410
|
e.exports = function(g) {
|
|
2412
|
-
var p = s(g), m = typeof this == "function" ? this : Array, S = arguments.length, T = S > 1 ? arguments[1] : void 0, x = T !== void 0, P = v(p), O = 0, w, L, I, N, F,
|
|
2411
|
+
var p = s(g), m = typeof this == "function" ? this : Array, S = arguments.length, T = S > 1 ? arguments[1] : void 0, x = T !== void 0, P = v(p), O = 0, w, L, I, N, F, X;
|
|
2413
2412
|
if (x && (T = a(T, S > 2 ? arguments[2] : void 0, 2)), P != null && !(m == Array && u(P)))
|
|
2414
2413
|
for (N = P.call(p), F = N.next, L = new m(); !(I = F.call(N)).done; O++)
|
|
2415
|
-
|
|
2414
|
+
X = x ? l(N, T, [I.value, O], !0) : I.value, d(L, O, X);
|
|
2416
2415
|
else
|
|
2417
2416
|
for (w = c(p.length), L = new m(w); w > O; O++)
|
|
2418
|
-
|
|
2417
|
+
X = x ? T(p[O], O) : p[O], d(L, O, X);
|
|
2419
2418
|
return L.length = O, L;
|
|
2420
2419
|
};
|
|
2421
2420
|
},
|
|
@@ -2452,75 +2451,75 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2452
2451
|
return [
|
|
2453
2452
|
// `String.prototype.replace` method
|
|
2454
2453
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2455
|
-
function(R,
|
|
2454
|
+
function(R, B) {
|
|
2456
2455
|
var M = d(this), G = R == null ? void 0 : R[P];
|
|
2457
|
-
return G !== void 0 ? G.call(R, M,
|
|
2456
|
+
return G !== void 0 ? G.call(R, M, B) : O.call(String(M), R, B);
|
|
2458
2457
|
},
|
|
2459
2458
|
// `RegExp.prototype[@@replace]` method
|
|
2460
2459
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2461
2460
|
function(D, R) {
|
|
2462
2461
|
if (!I && N || typeof R == "string" && R.indexOf(F) === -1) {
|
|
2463
|
-
var
|
|
2464
|
-
if (
|
|
2465
|
-
return
|
|
2462
|
+
var B = w(O, D, this, R);
|
|
2463
|
+
if (B.done)
|
|
2464
|
+
return B.value;
|
|
2466
2465
|
}
|
|
2467
|
-
var M = s(D), G = String(this),
|
|
2468
|
-
|
|
2466
|
+
var M = s(D), G = String(this), _ = typeof R == "function";
|
|
2467
|
+
_ || (R = String(R));
|
|
2469
2468
|
var rt = M.global;
|
|
2470
2469
|
if (rt) {
|
|
2471
|
-
var
|
|
2470
|
+
var bt = M.unicode;
|
|
2472
2471
|
M.lastIndex = 0;
|
|
2473
2472
|
}
|
|
2474
2473
|
for (var st = []; ; ) {
|
|
2475
2474
|
var lt = h(M, G);
|
|
2476
2475
|
if (lt === null || (st.push(lt), !rt))
|
|
2477
2476
|
break;
|
|
2478
|
-
var
|
|
2479
|
-
|
|
2477
|
+
var vt = String(lt[0]);
|
|
2478
|
+
vt === "" && (M.lastIndex = v(G, u(M.lastIndex), bt));
|
|
2480
2479
|
}
|
|
2481
|
-
for (var
|
|
2480
|
+
for (var yt = "", ct = 0, ot = 0; ot < st.length; ot++) {
|
|
2482
2481
|
lt = st[ot];
|
|
2483
|
-
for (var it = String(lt[0]),
|
|
2484
|
-
|
|
2485
|
-
var
|
|
2486
|
-
if (
|
|
2487
|
-
var
|
|
2488
|
-
|
|
2489
|
-
var
|
|
2482
|
+
for (var it = String(lt[0]), Tt = g(p(c(lt.index), G.length), 0), Et = [], Ut = 1; Ut < lt.length; Ut++)
|
|
2483
|
+
Et.push(x(lt[Ut]));
|
|
2484
|
+
var Ht = lt.groups;
|
|
2485
|
+
if (_) {
|
|
2486
|
+
var $t = [it].concat(Et, Tt, G);
|
|
2487
|
+
Ht !== void 0 && $t.push(Ht);
|
|
2488
|
+
var K = String(R.apply(void 0, $t));
|
|
2490
2489
|
} else
|
|
2491
|
-
|
|
2492
|
-
|
|
2490
|
+
K = X(it, G, Tt, Et, Ht, R);
|
|
2491
|
+
Tt >= ct && (yt += G.slice(ct, Tt) + K, ct = Tt + it.length);
|
|
2493
2492
|
}
|
|
2494
|
-
return
|
|
2493
|
+
return yt + G.slice(ct);
|
|
2495
2494
|
}
|
|
2496
2495
|
];
|
|
2497
|
-
function
|
|
2498
|
-
var rt =
|
|
2499
|
-
return G !== void 0 && (G = l(G), st = S), O.call(
|
|
2500
|
-
var
|
|
2501
|
-
switch (
|
|
2496
|
+
function X(D, R, B, M, G, _) {
|
|
2497
|
+
var rt = B + D.length, bt = M.length, st = T;
|
|
2498
|
+
return G !== void 0 && (G = l(G), st = S), O.call(_, st, function(lt, vt) {
|
|
2499
|
+
var yt;
|
|
2500
|
+
switch (vt.charAt(0)) {
|
|
2502
2501
|
case "$":
|
|
2503
2502
|
return "$";
|
|
2504
2503
|
case "&":
|
|
2505
2504
|
return D;
|
|
2506
2505
|
case "`":
|
|
2507
|
-
return R.slice(0,
|
|
2506
|
+
return R.slice(0, B);
|
|
2508
2507
|
case "'":
|
|
2509
2508
|
return R.slice(rt);
|
|
2510
2509
|
case "<":
|
|
2511
|
-
|
|
2510
|
+
yt = G[vt.slice(1, -1)];
|
|
2512
2511
|
break;
|
|
2513
2512
|
default:
|
|
2514
|
-
var
|
|
2515
|
-
if (
|
|
2513
|
+
var ct = +vt;
|
|
2514
|
+
if (ct === 0)
|
|
2516
2515
|
return lt;
|
|
2517
|
-
if (
|
|
2518
|
-
var ot = m(
|
|
2519
|
-
return ot === 0 ? lt : ot <=
|
|
2516
|
+
if (ct > bt) {
|
|
2517
|
+
var ot = m(ct / 10);
|
|
2518
|
+
return ot === 0 ? lt : ot <= bt ? M[ot - 1] === void 0 ? vt.charAt(1) : M[ot - 1] + vt.charAt(1) : lt;
|
|
2520
2519
|
}
|
|
2521
|
-
|
|
2520
|
+
yt = M[ct - 1];
|
|
2522
2521
|
}
|
|
2523
|
-
return
|
|
2522
|
+
return yt === void 0 ? "" : yt;
|
|
2524
2523
|
});
|
|
2525
2524
|
}
|
|
2526
2525
|
});
|
|
@@ -2732,8 +2731,8 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2732
2731
|
return L();
|
|
2733
2732
|
};
|
|
2734
2733
|
u[S] = !0, e.exports = Object.create || function(N, F) {
|
|
2735
|
-
var
|
|
2736
|
-
return N !== null ? (T[p] = a(N),
|
|
2734
|
+
var X;
|
|
2735
|
+
return N !== null ? (T[p] = a(N), X = new T(), T[p] = null, X[S] = N) : X = L(), F === void 0 ? X : s(X, F);
|
|
2737
2736
|
};
|
|
2738
2737
|
},
|
|
2739
2738
|
/***/
|
|
@@ -2741,8 +2740,8 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2741
2740
|
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"), P = "keys", O = "values", w = "entries", L = function() {
|
|
2742
2741
|
return this;
|
|
2743
2742
|
};
|
|
2744
|
-
e.exports = function(I, N, F,
|
|
2745
|
-
s(F, N,
|
|
2743
|
+
e.exports = function(I, N, F, X, D, R, B) {
|
|
2744
|
+
s(F, N, X);
|
|
2746
2745
|
var M = function(ot) {
|
|
2747
2746
|
if (ot === D && st)
|
|
2748
2747
|
return st;
|
|
@@ -2765,20 +2764,20 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2765
2764
|
return function() {
|
|
2766
2765
|
return new F(this);
|
|
2767
2766
|
};
|
|
2768
|
-
}, G = N + " Iterator",
|
|
2769
|
-
if (lt && (
|
|
2770
|
-
return
|
|
2771
|
-
}), (!g ||
|
|
2772
|
-
if (
|
|
2767
|
+
}, G = N + " Iterator", _ = !1, rt = I.prototype, bt = rt[x] || rt["@@iterator"] || D && rt[D], st = !T && bt || M(D), lt = N == "Array" && rt.entries || bt, vt, yt, ct;
|
|
2768
|
+
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 && bt && bt.name !== O && (_ = !0, st = function() {
|
|
2769
|
+
return bt.call(this);
|
|
2770
|
+
}), (!g || B) && rt[x] !== st && d(rt, x, st), p[N] = st, D)
|
|
2771
|
+
if (yt = {
|
|
2773
2772
|
values: M(O),
|
|
2774
2773
|
keys: R ? st : M(P),
|
|
2775
2774
|
entries: M(w)
|
|
2776
|
-
},
|
|
2777
|
-
for (
|
|
2778
|
-
(T ||
|
|
2775
|
+
}, B)
|
|
2776
|
+
for (ct in yt)
|
|
2777
|
+
(T || _ || !(ct in rt)) && v(rt, ct, yt[ct]);
|
|
2779
2778
|
else
|
|
2780
|
-
a({ target: N, proto: !0, forced: T ||
|
|
2781
|
-
return
|
|
2779
|
+
a({ target: N, proto: !0, forced: T || _ }, yt);
|
|
2780
|
+
return yt;
|
|
2782
2781
|
};
|
|
2783
2782
|
},
|
|
2784
2783
|
/***/
|
|
@@ -2914,19 +2913,19 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2914
2913
|
}, L = !P || !O;
|
|
2915
2914
|
a({ target: "Array", proto: !0, forced: L }, {
|
|
2916
2915
|
concat: function(N) {
|
|
2917
|
-
var F = c(this),
|
|
2916
|
+
var F = c(this), X = h(F, 0), D = 0, R, B, M, G, _;
|
|
2918
2917
|
for (R = -1, M = arguments.length; R < M; R++)
|
|
2919
|
-
if (
|
|
2920
|
-
if (G = d(
|
|
2918
|
+
if (_ = R === -1 ? F : arguments[R], w(_)) {
|
|
2919
|
+
if (G = d(_.length), D + G > T)
|
|
2921
2920
|
throw TypeError(x);
|
|
2922
|
-
for (
|
|
2923
|
-
|
|
2921
|
+
for (B = 0; B < G; B++, D++)
|
|
2922
|
+
B in _ && v(X, D, _[B]);
|
|
2924
2923
|
} else {
|
|
2925
2924
|
if (D >= T)
|
|
2926
2925
|
throw TypeError(x);
|
|
2927
|
-
v(
|
|
2926
|
+
v(X, D++, _);
|
|
2928
2927
|
}
|
|
2929
|
-
return
|
|
2928
|
+
return X.length = D, X;
|
|
2930
2929
|
}
|
|
2931
2930
|
});
|
|
2932
2931
|
},
|
|
@@ -3009,124 +3008,124 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3009
3008
|
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, P = "Maximum allowed length exceeded";
|
|
3010
3009
|
a({ target: "Array", proto: !0, forced: !p || !m }, {
|
|
3011
3010
|
splice: function(w, L) {
|
|
3012
|
-
var I = c(this), N = u(I.length), F = s(w, N),
|
|
3013
|
-
if (
|
|
3011
|
+
var I = c(this), N = u(I.length), F = s(w, N), X = arguments.length, D, R, B, M, G, _;
|
|
3012
|
+
if (X === 0 ? D = R = 0 : X === 1 ? (D = 0, R = N - F) : (D = X - 2, R = T(S(l(L), 0), N - F)), N + D - R > x)
|
|
3014
3013
|
throw TypeError(P);
|
|
3015
|
-
for (
|
|
3016
|
-
G = F + M, G in I && v(
|
|
3017
|
-
if (
|
|
3014
|
+
for (B = d(I, R), M = 0; M < R; M++)
|
|
3015
|
+
G = F + M, G in I && v(B, M, I[G]);
|
|
3016
|
+
if (B.length = R, D < R) {
|
|
3018
3017
|
for (M = F; M < N - R; M++)
|
|
3019
|
-
G = M + R,
|
|
3018
|
+
G = M + R, _ = M + D, G in I ? I[_] = I[G] : delete I[_];
|
|
3020
3019
|
for (M = N; M > N - R + D; M--)
|
|
3021
3020
|
delete I[M - 1];
|
|
3022
3021
|
} else if (D > R)
|
|
3023
3022
|
for (M = N - R; M > F; M--)
|
|
3024
|
-
G = M + R - 1,
|
|
3023
|
+
G = M + R - 1, _ = M + D - 1, G in I ? I[_] = I[G] : delete I[_];
|
|
3025
3024
|
for (M = 0; M < D; M++)
|
|
3026
3025
|
I[M + F] = arguments[M + 2];
|
|
3027
|
-
return I.length = N - R + D,
|
|
3026
|
+
return I.length = N - R + D, B;
|
|
3028
3027
|
}
|
|
3029
3028
|
});
|
|
3030
3029
|
},
|
|
3031
3030
|
/***/
|
|
3032
3031
|
a4d3: function(e, f, t) {
|
|
3033
|
-
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"), P = t("c04e"), O = t("5c6c"), w = t("7c73"), L = t("df75"), I = t("241c"), N = t("057f"), F = t("7418"),
|
|
3034
|
-
return w(
|
|
3032
|
+
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"), P = t("c04e"), O = t("5c6c"), w = t("7c73"), L = t("df75"), I = t("241c"), N = t("057f"), F = t("7418"), X = t("06cf"), D = t("9bf2"), R = t("d1e7"), B = t("9112"), M = t("6eeb"), G = t("5692"), _ = t("f772"), rt = t("d012"), bt = t("90e3"), st = t("b622"), lt = t("e538"), vt = t("746f"), yt = t("d44e"), ct = t("69f3"), ot = t("b727").forEach, it = _("hidden"), Tt = "Symbol", Et = "prototype", Ut = st("toPrimitive"), Ht = ct.set, $t = ct.getterFor(Tt), K = Object[Et], k = s.Symbol, Mt = l("JSON", "stringify"), Pt = X.f, Nt = D.f, ne = N.f, en = R.f, Gt = G("symbols"), Jt = G("op-symbols"), re = G("string-to-symbol-registry"), ce = G("symbol-to-string-registry"), de = G("wks"), ve = s.QObject, he = !ve || !ve[Et] || !ve[Et].findChild, ge = c && h(function() {
|
|
3033
|
+
return w(Nt({}, "a", {
|
|
3035
3034
|
get: function() {
|
|
3036
|
-
return
|
|
3035
|
+
return Nt(this, "a", { value: 7 }).a;
|
|
3037
3036
|
}
|
|
3038
3037
|
})).a != 7;
|
|
3039
|
-
}) ? function(
|
|
3040
|
-
var
|
|
3041
|
-
|
|
3042
|
-
} :
|
|
3043
|
-
var
|
|
3044
|
-
return
|
|
3045
|
-
type:
|
|
3046
|
-
tag:
|
|
3038
|
+
}) ? function(Y, $, W) {
|
|
3039
|
+
var tt = Pt(K, $);
|
|
3040
|
+
tt && delete K[$], Nt(Y, $, W), tt && Y !== K && Nt(K, $, tt);
|
|
3041
|
+
} : Nt, pe = function(Y, $) {
|
|
3042
|
+
var W = Gt[Y] = w(k[Et]);
|
|
3043
|
+
return Ht(W, {
|
|
3044
|
+
type: Tt,
|
|
3045
|
+
tag: Y,
|
|
3047
3046
|
description: $
|
|
3048
|
-
}), c || (
|
|
3049
|
-
}, b = v ? function(
|
|
3050
|
-
return typeof
|
|
3051
|
-
} : function(
|
|
3052
|
-
return Object(
|
|
3053
|
-
}, y = function($,
|
|
3054
|
-
$ ===
|
|
3055
|
-
var
|
|
3056
|
-
return S(
|
|
3057
|
-
}, E = function($,
|
|
3047
|
+
}), c || (W.description = $), W;
|
|
3048
|
+
}, b = v ? function(Y) {
|
|
3049
|
+
return typeof Y == "symbol";
|
|
3050
|
+
} : function(Y) {
|
|
3051
|
+
return Object(Y) instanceof k;
|
|
3052
|
+
}, y = function($, W, tt) {
|
|
3053
|
+
$ === K && y(Jt, W, tt), S($);
|
|
3054
|
+
var et = P(W, !0);
|
|
3055
|
+
return S(tt), g(Gt, et) ? (tt.enumerable ? (g($, it) && $[it][et] && ($[it][et] = !1), tt = w(tt, { enumerable: O(0, !1) })) : (g($, it) || Nt($, it, O(1, {})), $[it][et] = !0), ge($, et, tt)) : Nt($, et, tt);
|
|
3056
|
+
}, E = function($, W) {
|
|
3058
3057
|
S($);
|
|
3059
|
-
var
|
|
3060
|
-
return ot(
|
|
3061
|
-
(!c || j.call(
|
|
3058
|
+
var tt = x(W), et = L(tt).concat(nt(tt));
|
|
3059
|
+
return ot(et, function(Dt) {
|
|
3060
|
+
(!c || j.call(tt, Dt)) && y($, Dt, tt[Dt]);
|
|
3062
3061
|
}), $;
|
|
3063
|
-
}, C = function($,
|
|
3064
|
-
return
|
|
3062
|
+
}, C = function($, W) {
|
|
3063
|
+
return W === void 0 ? w($) : E(w($), W);
|
|
3065
3064
|
}, j = function($) {
|
|
3066
|
-
var
|
|
3067
|
-
return this ===
|
|
3068
|
-
},
|
|
3069
|
-
var
|
|
3070
|
-
if (!(
|
|
3071
|
-
var
|
|
3072
|
-
return
|
|
3065
|
+
var W = P($, !0), tt = en.call(this, W);
|
|
3066
|
+
return this === K && g(Gt, W) && !g(Jt, W) ? !1 : tt || !g(this, W) || !g(Gt, W) || g(this, it) && this[it][W] ? tt : !0;
|
|
3067
|
+
}, V = function($, W) {
|
|
3068
|
+
var tt = x($), et = P(W, !0);
|
|
3069
|
+
if (!(tt === K && g(Gt, et) && !g(Jt, et))) {
|
|
3070
|
+
var Dt = Pt(tt, et);
|
|
3071
|
+
return Dt && g(Gt, et) && !(g(tt, it) && tt[it][et]) && (Dt.enumerable = !0), Dt;
|
|
3073
3072
|
}
|
|
3074
3073
|
}, Q = function($) {
|
|
3075
|
-
var
|
|
3076
|
-
return ot(
|
|
3077
|
-
!g(
|
|
3078
|
-
}), _;
|
|
3079
|
-
}, et = function($) {
|
|
3080
|
-
var B = $ === ft, _ = Ne(B ? Jt : x($)), tt = [];
|
|
3081
|
-
return ot(_, function(At) {
|
|
3082
|
-
g($t, At) && (!B || g(ft, At)) && tt.push($t[At]);
|
|
3074
|
+
var W = ne(x($)), tt = [];
|
|
3075
|
+
return ot(W, function(et) {
|
|
3076
|
+
!g(Gt, et) && !g(rt, et) && tt.push(et);
|
|
3083
3077
|
}), tt;
|
|
3078
|
+
}, nt = function($) {
|
|
3079
|
+
var W = $ === K, tt = ne(W ? Jt : x($)), et = [];
|
|
3080
|
+
return ot(tt, function(Dt) {
|
|
3081
|
+
g(Gt, Dt) && (!W || g(K, Dt)) && et.push(Gt[Dt]);
|
|
3082
|
+
}), et;
|
|
3084
3083
|
};
|
|
3085
|
-
if (d || (
|
|
3086
|
-
if (this instanceof
|
|
3084
|
+
if (d || (k = function() {
|
|
3085
|
+
if (this instanceof k)
|
|
3087
3086
|
throw TypeError("Symbol is not a constructor");
|
|
3088
|
-
var $ = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]),
|
|
3089
|
-
this ===
|
|
3087
|
+
var $ = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), W = bt($), tt = function(et) {
|
|
3088
|
+
this === K && tt.call(Jt, et), g(this, it) && g(this[it], W) && (this[it][W] = !1), ge(this, W, O(1, et));
|
|
3090
3089
|
};
|
|
3091
|
-
return c &&
|
|
3092
|
-
}, M(
|
|
3093
|
-
return
|
|
3094
|
-
}), M(
|
|
3095
|
-
return
|
|
3096
|
-
}), R.f = j, D.f = y,
|
|
3097
|
-
return
|
|
3098
|
-
}, c && (
|
|
3090
|
+
return c && he && ge(K, W, { configurable: !0, set: tt }), pe(W, $);
|
|
3091
|
+
}, M(k[Et], "toString", function() {
|
|
3092
|
+
return $t(this).tag;
|
|
3093
|
+
}), M(k, "withoutSetter", function(Y) {
|
|
3094
|
+
return pe(bt(Y), Y);
|
|
3095
|
+
}), R.f = j, D.f = y, X.f = V, I.f = N.f = Q, F.f = nt, lt.f = function(Y) {
|
|
3096
|
+
return pe(st(Y), Y);
|
|
3097
|
+
}, c && (Nt(k[Et], "description", {
|
|
3099
3098
|
configurable: !0,
|
|
3100
3099
|
get: function() {
|
|
3101
|
-
return
|
|
3100
|
+
return $t(this).description;
|
|
3102
3101
|
}
|
|
3103
|
-
}), u || M(
|
|
3104
|
-
Symbol:
|
|
3105
|
-
}), ot(L(
|
|
3106
|
-
|
|
3107
|
-
}), a({ target:
|
|
3102
|
+
}), u || M(K, "propertyIsEnumerable", j, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !d, sham: !d }, {
|
|
3103
|
+
Symbol: k
|
|
3104
|
+
}), ot(L(de), function(Y) {
|
|
3105
|
+
vt(Y);
|
|
3106
|
+
}), a({ target: Tt, stat: !0, forced: !d }, {
|
|
3108
3107
|
// `Symbol.for` method
|
|
3109
3108
|
// https://tc39.github.io/ecma262/#sec-symbol.for
|
|
3110
|
-
for: function(
|
|
3111
|
-
var $ = String(
|
|
3112
|
-
if (g(
|
|
3113
|
-
return
|
|
3114
|
-
var
|
|
3115
|
-
return
|
|
3109
|
+
for: function(Y) {
|
|
3110
|
+
var $ = String(Y);
|
|
3111
|
+
if (g(re, $))
|
|
3112
|
+
return re[$];
|
|
3113
|
+
var W = k($);
|
|
3114
|
+
return re[$] = W, ce[W] = $, W;
|
|
3116
3115
|
},
|
|
3117
3116
|
// `Symbol.keyFor` method
|
|
3118
3117
|
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
3119
3118
|
keyFor: function($) {
|
|
3120
3119
|
if (!b($))
|
|
3121
3120
|
throw TypeError($ + " is not a symbol");
|
|
3122
|
-
if (g(
|
|
3123
|
-
return
|
|
3121
|
+
if (g(ce, $))
|
|
3122
|
+
return ce[$];
|
|
3124
3123
|
},
|
|
3125
3124
|
useSetter: function() {
|
|
3126
|
-
|
|
3125
|
+
he = !0;
|
|
3127
3126
|
},
|
|
3128
3127
|
useSimple: function() {
|
|
3129
|
-
|
|
3128
|
+
he = !1;
|
|
3130
3129
|
}
|
|
3131
3130
|
}), a({ target: "Object", stat: !0, forced: !d, sham: !c }, {
|
|
3132
3131
|
// `Object.create` method
|
|
@@ -3140,39 +3139,39 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3140
3139
|
defineProperties: E,
|
|
3141
3140
|
// `Object.getOwnPropertyDescriptor` method
|
|
3142
3141
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
3143
|
-
getOwnPropertyDescriptor:
|
|
3142
|
+
getOwnPropertyDescriptor: V
|
|
3144
3143
|
}), a({ target: "Object", stat: !0, forced: !d }, {
|
|
3145
3144
|
// `Object.getOwnPropertyNames` method
|
|
3146
3145
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
3147
3146
|
getOwnPropertyNames: Q,
|
|
3148
3147
|
// `Object.getOwnPropertySymbols` method
|
|
3149
3148
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
|
|
3150
|
-
getOwnPropertySymbols:
|
|
3149
|
+
getOwnPropertySymbols: nt
|
|
3151
3150
|
}), a({ target: "Object", stat: !0, forced: h(function() {
|
|
3152
3151
|
F.f(1);
|
|
3153
3152
|
}) }, {
|
|
3154
3153
|
getOwnPropertySymbols: function($) {
|
|
3155
3154
|
return F.f(T($));
|
|
3156
3155
|
}
|
|
3157
|
-
}),
|
|
3158
|
-
var
|
|
3159
|
-
var
|
|
3160
|
-
return
|
|
3156
|
+
}), Mt) {
|
|
3157
|
+
var mt = !d || h(function() {
|
|
3158
|
+
var Y = k();
|
|
3159
|
+
return Mt([Y]) != "[null]" || Mt({ a: Y }) != "{}" || Mt(Object(Y)) != "{}";
|
|
3161
3160
|
});
|
|
3162
|
-
a({ target: "JSON", stat: !0, forced:
|
|
3161
|
+
a({ target: "JSON", stat: !0, forced: mt }, {
|
|
3163
3162
|
// eslint-disable-next-line no-unused-vars
|
|
3164
|
-
stringify: function($,
|
|
3165
|
-
for (var
|
|
3166
|
-
|
|
3167
|
-
if (
|
|
3168
|
-
return p(
|
|
3169
|
-
if (typeof
|
|
3170
|
-
return
|
|
3171
|
-
}),
|
|
3163
|
+
stringify: function($, W, tt) {
|
|
3164
|
+
for (var et = [$], Dt = 1, nn; arguments.length > Dt; )
|
|
3165
|
+
et.push(arguments[Dt++]);
|
|
3166
|
+
if (nn = W, !(!m(W) && $ === void 0 || b($)))
|
|
3167
|
+
return p(W) || (W = function(ir, we) {
|
|
3168
|
+
if (typeof nn == "function" && (we = nn.call(this, ir, we)), !b(we))
|
|
3169
|
+
return we;
|
|
3170
|
+
}), et[1] = W, Mt.apply(null, et);
|
|
3172
3171
|
}
|
|
3173
3172
|
});
|
|
3174
3173
|
}
|
|
3175
|
-
|
|
3174
|
+
k[Et][Ut] || B(k[Et], Ut, k[Et].valueOf), yt(k, Tt), rt[it] = !0;
|
|
3176
3175
|
},
|
|
3177
3176
|
/***/
|
|
3178
3177
|
a630: function(e, f, t) {
|
|
@@ -3305,10 +3304,10 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3305
3304
|
var a = t("0366"), s = t("44ad"), l = t("7b0b"), u = t("50c4"), c = t("65f0"), d = [].push, v = function(h) {
|
|
3306
3305
|
var g = h == 1, p = h == 2, m = h == 3, S = h == 4, T = h == 6, x = h == 5 || T;
|
|
3307
3306
|
return function(P, O, w, L) {
|
|
3308
|
-
for (var I = l(P), N = s(I), F = a(O, w, 3),
|
|
3307
|
+
for (var I = l(P), N = s(I), F = a(O, w, 3), X = u(N.length), D = 0, R = L || c, B = g ? R(P, X) : p ? R(P, 0) : void 0, M, G; X > D; D++)
|
|
3309
3308
|
if ((x || D in N) && (M = N[D], G = F(M, D, I), h)) {
|
|
3310
3309
|
if (g)
|
|
3311
|
-
|
|
3310
|
+
B[D] = G;
|
|
3312
3311
|
else if (G)
|
|
3313
3312
|
switch (h) {
|
|
3314
3313
|
case 3:
|
|
@@ -3318,12 +3317,12 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3318
3317
|
case 6:
|
|
3319
3318
|
return D;
|
|
3320
3319
|
case 2:
|
|
3321
|
-
d.call(
|
|
3320
|
+
d.call(B, M);
|
|
3322
3321
|
}
|
|
3323
3322
|
else if (S)
|
|
3324
3323
|
return !1;
|
|
3325
3324
|
}
|
|
3326
|
-
return T ? -1 : m || S ? S :
|
|
3325
|
+
return T ? -1 : m || S ? S : B;
|
|
3327
3326
|
};
|
|
3328
3327
|
};
|
|
3329
3328
|
e.exports = {
|
|
@@ -3578,19 +3577,19 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3578
3577
|
}, R[O](""), !D;
|
|
3579
3578
|
});
|
|
3580
3579
|
if (!w || !L || S === "replace" && !(v && h && !p) || S === "split" && !m) {
|
|
3581
|
-
var I = /./[O], N = x(O, ""[S], function(D, R,
|
|
3582
|
-
return R.exec === u ? w && !G ? { done: !0, value: I.call(R,
|
|
3580
|
+
var I = /./[O], N = x(O, ""[S], function(D, R, B, M, G) {
|
|
3581
|
+
return R.exec === u ? w && !G ? { done: !0, value: I.call(R, B, M) } : { done: !0, value: D.call(B, R, M) } : { done: !1 };
|
|
3583
3582
|
}, {
|
|
3584
3583
|
REPLACE_KEEPS_$0: h,
|
|
3585
3584
|
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: p
|
|
3586
|
-
}), F = N[0],
|
|
3585
|
+
}), F = N[0], X = N[1];
|
|
3587
3586
|
a(String.prototype, S, F), a(
|
|
3588
3587
|
RegExp.prototype,
|
|
3589
3588
|
O,
|
|
3590
3589
|
T == 2 ? function(D, R) {
|
|
3591
|
-
return
|
|
3590
|
+
return X.call(D, this, R);
|
|
3592
3591
|
} : function(D) {
|
|
3593
|
-
return
|
|
3592
|
+
return X.call(D, this);
|
|
3594
3593
|
}
|
|
3595
3594
|
);
|
|
3596
3595
|
}
|
|
@@ -3842,18 +3841,18 @@ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3842
3841
|
t("e01a"), t("d28b"), t("e260"), t("d3b7"), t("3ca3"), t("ddb0");
|
|
3843
3842
|
function h(b, y) {
|
|
3844
3843
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(b)))) {
|
|
3845
|
-
var E = [], C = !0, j = !1,
|
|
3844
|
+
var E = [], C = !0, j = !1, V = void 0;
|
|
3846
3845
|
try {
|
|
3847
|
-
for (var Q = b[Symbol.iterator](),
|
|
3846
|
+
for (var Q = b[Symbol.iterator](), nt; !(C = (nt = Q.next()).done) && (E.push(nt.value), !(y && E.length === y)); C = !0)
|
|
3848
3847
|
;
|
|
3849
|
-
} catch (
|
|
3850
|
-
j = !0,
|
|
3848
|
+
} catch (mt) {
|
|
3849
|
+
j = !0, V = mt;
|
|
3851
3850
|
} finally {
|
|
3852
3851
|
try {
|
|
3853
3852
|
!C && Q.return != null && Q.return();
|
|
3854
3853
|
} finally {
|
|
3855
3854
|
if (j)
|
|
3856
|
-
throw
|
|
3855
|
+
throw V;
|
|
3857
3856
|
}
|
|
3858
3857
|
}
|
|
3859
3858
|
return E;
|
|
@@ -3909,61 +3908,61 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3909
3908
|
}
|
|
3910
3909
|
var F = t("dbf1");
|
|
3911
3910
|
t("13d5"), t("4fad"), t("ac1f"), t("5319");
|
|
3912
|
-
function
|
|
3911
|
+
function X(b) {
|
|
3913
3912
|
var y = /* @__PURE__ */ Object.create(null);
|
|
3914
3913
|
return function(C) {
|
|
3915
3914
|
var j = y[C];
|
|
3916
3915
|
return j || (y[C] = b(C));
|
|
3917
3916
|
};
|
|
3918
3917
|
}
|
|
3919
|
-
var D = /-(\w)/g, R =
|
|
3918
|
+
var D = /-(\w)/g, R = X(function(b) {
|
|
3920
3919
|
return b.replace(D, function(y, E) {
|
|
3921
3920
|
return E.toUpperCase();
|
|
3922
3921
|
});
|
|
3923
3922
|
});
|
|
3924
3923
|
t("5db7"), t("73d9");
|
|
3925
|
-
var
|
|
3924
|
+
var B = ["Start", "Add", "Remove", "Update", "End"], M = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], G = ["Move"], _ = [G, B, M].flatMap(function(b) {
|
|
3926
3925
|
return b;
|
|
3927
3926
|
}).map(function(b) {
|
|
3928
3927
|
return "on".concat(b);
|
|
3929
3928
|
}), rt = {
|
|
3930
3929
|
manage: G,
|
|
3931
|
-
manageAndEmit:
|
|
3930
|
+
manageAndEmit: B,
|
|
3932
3931
|
emit: M
|
|
3933
3932
|
};
|
|
3934
|
-
function
|
|
3935
|
-
return
|
|
3933
|
+
function bt(b) {
|
|
3934
|
+
return _.indexOf(b) !== -1;
|
|
3936
3935
|
}
|
|
3937
3936
|
t("caad"), t("2ca0");
|
|
3938
3937
|
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"];
|
|
3939
3938
|
function lt(b) {
|
|
3940
3939
|
return st.includes(b);
|
|
3941
3940
|
}
|
|
3942
|
-
function
|
|
3941
|
+
function vt(b) {
|
|
3943
3942
|
return ["transition-group", "TransitionGroup"].includes(b);
|
|
3944
3943
|
}
|
|
3945
|
-
function
|
|
3944
|
+
function yt(b) {
|
|
3946
3945
|
return ["id", "class", "role", "style"].includes(b) || b.startsWith("data-") || b.startsWith("aria-") || b.startsWith("on");
|
|
3947
3946
|
}
|
|
3948
|
-
function
|
|
3947
|
+
function ct(b) {
|
|
3949
3948
|
return b.reduce(function(y, E) {
|
|
3950
|
-
var C = S(E, 2), j = C[0],
|
|
3951
|
-
return y[j] =
|
|
3949
|
+
var C = S(E, 2), j = C[0], V = C[1];
|
|
3950
|
+
return y[j] = V, y;
|
|
3952
3951
|
}, {});
|
|
3953
3952
|
}
|
|
3954
3953
|
function ot(b) {
|
|
3955
|
-
var y = b.$attrs, E = b.componentData, C = E === void 0 ? {} : E, j =
|
|
3956
|
-
var Q = S(
|
|
3957
|
-
return Q[1],
|
|
3954
|
+
var y = b.$attrs, E = b.componentData, C = E === void 0 ? {} : E, j = ct(Object.entries(y).filter(function(V) {
|
|
3955
|
+
var Q = S(V, 2), nt = Q[0];
|
|
3956
|
+
return Q[1], yt(nt);
|
|
3958
3957
|
}));
|
|
3959
3958
|
return d(d({}, j), C);
|
|
3960
3959
|
}
|
|
3961
3960
|
function it(b) {
|
|
3962
|
-
var y = b.$attrs, E = b.callBackBuilder, C =
|
|
3963
|
-
Object.entries(E).forEach(function(
|
|
3964
|
-
var Q = S(
|
|
3965
|
-
rt[
|
|
3966
|
-
C["on".concat(
|
|
3961
|
+
var y = b.$attrs, E = b.callBackBuilder, C = ct(Tt(y));
|
|
3962
|
+
Object.entries(E).forEach(function(V) {
|
|
3963
|
+
var Q = S(V, 2), nt = Q[0], mt = Q[1];
|
|
3964
|
+
rt[nt].forEach(function(Y) {
|
|
3965
|
+
C["on".concat(Y)] = mt(Y);
|
|
3967
3966
|
});
|
|
3968
3967
|
});
|
|
3969
3968
|
var j = "[data-draggable]".concat(C.draggable || "");
|
|
@@ -3971,20 +3970,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3971
3970
|
draggable: j
|
|
3972
3971
|
});
|
|
3973
3972
|
}
|
|
3974
|
-
function
|
|
3973
|
+
function Tt(b) {
|
|
3975
3974
|
return Object.entries(b).filter(function(y) {
|
|
3976
3975
|
var E = S(y, 2), C = E[0];
|
|
3977
|
-
return E[1], !
|
|
3976
|
+
return E[1], !yt(C);
|
|
3978
3977
|
}).map(function(y) {
|
|
3979
3978
|
var E = S(y, 2), C = E[0], j = E[1];
|
|
3980
3979
|
return [R(C), j];
|
|
3981
3980
|
}).filter(function(y) {
|
|
3982
3981
|
var E = S(y, 2), C = E[0];
|
|
3983
|
-
return E[1], !
|
|
3982
|
+
return E[1], !bt(C);
|
|
3984
3983
|
});
|
|
3985
3984
|
}
|
|
3986
3985
|
t("c740");
|
|
3987
|
-
function
|
|
3986
|
+
function Et(b, y) {
|
|
3988
3987
|
if (!(b instanceof y))
|
|
3989
3988
|
throw new TypeError("Cannot call a class as a function");
|
|
3990
3989
|
}
|
|
@@ -3994,62 +3993,62 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3994
3993
|
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(b, C.key, C);
|
|
3995
3994
|
}
|
|
3996
3995
|
}
|
|
3997
|
-
function
|
|
3996
|
+
function Ht(b, y, E) {
|
|
3998
3997
|
return y && Ut(b.prototype, y), E && Ut(b, E), b;
|
|
3999
3998
|
}
|
|
4000
|
-
var
|
|
3999
|
+
var $t = function(y) {
|
|
4001
4000
|
var E = y.el;
|
|
4002
4001
|
return E;
|
|
4003
|
-
},
|
|
4002
|
+
}, K = function(y, E) {
|
|
4004
4003
|
return y.__draggable_context = E;
|
|
4005
|
-
},
|
|
4004
|
+
}, k = function(y) {
|
|
4006
4005
|
return y.__draggable_context;
|
|
4007
|
-
},
|
|
4006
|
+
}, Mt = /* @__PURE__ */ function() {
|
|
4008
4007
|
function b(y) {
|
|
4009
|
-
var E = y.nodes, C = E.header, j = E.default,
|
|
4010
|
-
|
|
4008
|
+
var E = y.nodes, C = E.header, j = E.default, V = E.footer, Q = y.root, nt = y.realList;
|
|
4009
|
+
Et(this, b), this.defaultNodes = j, this.children = [].concat(O(C), O(j), O(V)), this.externalComponent = Q.externalComponent, this.rootTransition = Q.transition, this.tag = Q.tag, this.realList = nt;
|
|
4011
4010
|
}
|
|
4012
|
-
return
|
|
4011
|
+
return Ht(b, [{
|
|
4013
4012
|
key: "render",
|
|
4014
4013
|
value: function(E, C) {
|
|
4015
|
-
var j = this.tag,
|
|
4014
|
+
var j = this.tag, V = this.children, Q = this._isRootComponent, nt = Q ? {
|
|
4016
4015
|
default: function() {
|
|
4017
|
-
return
|
|
4016
|
+
return V;
|
|
4018
4017
|
}
|
|
4019
|
-
} :
|
|
4020
|
-
return E(j, C,
|
|
4018
|
+
} : V;
|
|
4019
|
+
return E(j, C, nt);
|
|
4021
4020
|
}
|
|
4022
4021
|
}, {
|
|
4023
4022
|
key: "updated",
|
|
4024
4023
|
value: function() {
|
|
4025
4024
|
var E = this.defaultNodes, C = this.realList;
|
|
4026
|
-
E.forEach(function(j,
|
|
4027
|
-
|
|
4028
|
-
element: C[
|
|
4029
|
-
index:
|
|
4025
|
+
E.forEach(function(j, V) {
|
|
4026
|
+
K($t(j), {
|
|
4027
|
+
element: C[V],
|
|
4028
|
+
index: V
|
|
4030
4029
|
});
|
|
4031
4030
|
});
|
|
4032
4031
|
}
|
|
4033
4032
|
}, {
|
|
4034
4033
|
key: "getUnderlyingVm",
|
|
4035
4034
|
value: function(E) {
|
|
4036
|
-
return
|
|
4035
|
+
return k(E);
|
|
4037
4036
|
}
|
|
4038
4037
|
}, {
|
|
4039
4038
|
key: "getVmIndexFromDomIndex",
|
|
4040
4039
|
value: function(E, C) {
|
|
4041
|
-
var j = this.defaultNodes,
|
|
4042
|
-
if (
|
|
4043
|
-
return
|
|
4044
|
-
var
|
|
4045
|
-
if (
|
|
4046
|
-
return
|
|
4047
|
-
if (
|
|
4040
|
+
var j = this.defaultNodes, V = j.length, Q = C.children, nt = Q.item(E);
|
|
4041
|
+
if (nt === null)
|
|
4042
|
+
return V;
|
|
4043
|
+
var mt = k(nt);
|
|
4044
|
+
if (mt)
|
|
4045
|
+
return mt.index;
|
|
4046
|
+
if (V === 0)
|
|
4048
4047
|
return 0;
|
|
4049
|
-
var
|
|
4050
|
-
return
|
|
4048
|
+
var Y = $t(j[0]), $ = O(Q).findIndex(function(W) {
|
|
4049
|
+
return W === Y;
|
|
4051
4050
|
});
|
|
4052
|
-
return E < $ ? 0 :
|
|
4051
|
+
return E < $ ? 0 : V;
|
|
4053
4052
|
}
|
|
4054
4053
|
}, {
|
|
4055
4054
|
key: "_isRootComponent",
|
|
@@ -4057,75 +4056,75 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4057
4056
|
return this.externalComponent || this.rootTransition;
|
|
4058
4057
|
}
|
|
4059
4058
|
}]), b;
|
|
4060
|
-
}(),
|
|
4061
|
-
function
|
|
4059
|
+
}(), Pt = t("8bbf");
|
|
4060
|
+
function Nt(b, y) {
|
|
4062
4061
|
var E = b[y];
|
|
4063
4062
|
return E ? E() : [];
|
|
4064
4063
|
}
|
|
4065
|
-
function
|
|
4066
|
-
var y = b.$slots, E = b.realList, C = b.getKey, j = E || [],
|
|
4067
|
-
return
|
|
4068
|
-
}), Q = S(
|
|
4069
|
-
if (!
|
|
4064
|
+
function ne(b) {
|
|
4065
|
+
var y = b.$slots, E = b.realList, C = b.getKey, j = E || [], V = ["header", "footer"].map(function(W) {
|
|
4066
|
+
return Nt(y, W);
|
|
4067
|
+
}), Q = S(V, 2), nt = Q[0], mt = Q[1], Y = y.item;
|
|
4068
|
+
if (!Y)
|
|
4070
4069
|
throw new Error("draggable element must have an item slot");
|
|
4071
|
-
var $ = j.flatMap(function(
|
|
4072
|
-
return
|
|
4073
|
-
element:
|
|
4074
|
-
index:
|
|
4075
|
-
}).map(function(
|
|
4076
|
-
return
|
|
4070
|
+
var $ = j.flatMap(function(W, tt) {
|
|
4071
|
+
return Y({
|
|
4072
|
+
element: W,
|
|
4073
|
+
index: tt
|
|
4074
|
+
}).map(function(et) {
|
|
4075
|
+
return et.key = C(W), et.props = d(d({}, et.props || {}), {}, {
|
|
4077
4076
|
"data-draggable": !0
|
|
4078
|
-
}),
|
|
4077
|
+
}), et;
|
|
4079
4078
|
});
|
|
4080
4079
|
});
|
|
4081
4080
|
if ($.length !== j.length)
|
|
4082
4081
|
throw new Error("Item slot must have only one child");
|
|
4083
4082
|
return {
|
|
4084
|
-
header:
|
|
4085
|
-
footer:
|
|
4083
|
+
header: nt,
|
|
4084
|
+
footer: mt,
|
|
4086
4085
|
default: $
|
|
4087
4086
|
};
|
|
4088
4087
|
}
|
|
4089
|
-
function
|
|
4090
|
-
var y =
|
|
4088
|
+
function en(b) {
|
|
4089
|
+
var y = vt(b), E = !lt(b) && !y;
|
|
4091
4090
|
return {
|
|
4092
4091
|
transition: y,
|
|
4093
4092
|
externalComponent: E,
|
|
4094
|
-
tag: E ? Object(
|
|
4093
|
+
tag: E ? Object(Pt.resolveComponent)(b) : y ? Pt.TransitionGroup : b
|
|
4095
4094
|
};
|
|
4096
4095
|
}
|
|
4097
|
-
function
|
|
4098
|
-
var y = b.$slots, E = b.tag, C = b.realList, j = b.getKey,
|
|
4096
|
+
function Gt(b) {
|
|
4097
|
+
var y = b.$slots, E = b.tag, C = b.realList, j = b.getKey, V = ne({
|
|
4099
4098
|
$slots: y,
|
|
4100
4099
|
realList: C,
|
|
4101
4100
|
getKey: j
|
|
4102
|
-
}), Q =
|
|
4103
|
-
return new
|
|
4104
|
-
nodes:
|
|
4101
|
+
}), Q = en(E);
|
|
4102
|
+
return new Mt({
|
|
4103
|
+
nodes: V,
|
|
4105
4104
|
root: Q,
|
|
4106
4105
|
realList: C
|
|
4107
4106
|
});
|
|
4108
4107
|
}
|
|
4109
4108
|
function Jt(b, y) {
|
|
4110
4109
|
var E = this;
|
|
4111
|
-
Object(
|
|
4110
|
+
Object(Pt.nextTick)(function() {
|
|
4112
4111
|
return E.$emit(b.toLowerCase(), y);
|
|
4113
4112
|
});
|
|
4114
4113
|
}
|
|
4115
|
-
function
|
|
4114
|
+
function re(b) {
|
|
4116
4115
|
var y = this;
|
|
4117
4116
|
return function(E, C) {
|
|
4118
4117
|
if (y.realList !== null)
|
|
4119
4118
|
return y["onDrag".concat(b)](E, C);
|
|
4120
4119
|
};
|
|
4121
4120
|
}
|
|
4122
|
-
function
|
|
4123
|
-
var y = this, E =
|
|
4121
|
+
function ce(b) {
|
|
4122
|
+
var y = this, E = re.call(this, b);
|
|
4124
4123
|
return function(C, j) {
|
|
4125
4124
|
E.call(y, C, j), Jt.call(y, b, C);
|
|
4126
4125
|
};
|
|
4127
4126
|
}
|
|
4128
|
-
var
|
|
4127
|
+
var de = null, ve = {
|
|
4129
4128
|
list: {
|
|
4130
4129
|
type: Array,
|
|
4131
4130
|
required: !1,
|
|
@@ -4159,13 +4158,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4159
4158
|
required: !1,
|
|
4160
4159
|
default: null
|
|
4161
4160
|
}
|
|
4162
|
-
},
|
|
4161
|
+
}, he = ["update:modelValue", "change"].concat(O([].concat(O(rt.manageAndEmit), O(rt.emit)).map(function(b) {
|
|
4163
4162
|
return b.toLowerCase();
|
|
4164
|
-
}))),
|
|
4163
|
+
}))), ge = Object(Pt.defineComponent)({
|
|
4165
4164
|
name: "draggable",
|
|
4166
4165
|
inheritAttrs: !1,
|
|
4167
|
-
props:
|
|
4168
|
-
emits:
|
|
4166
|
+
props: ve,
|
|
4167
|
+
emits: he,
|
|
4169
4168
|
data: function() {
|
|
4170
4169
|
return {
|
|
4171
4170
|
error: !1
|
|
@@ -4174,24 +4173,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4174
4173
|
render: function() {
|
|
4175
4174
|
try {
|
|
4176
4175
|
this.error = !1;
|
|
4177
|
-
var y = this.$slots, E = this.$attrs, C = this.tag, j = this.componentData,
|
|
4176
|
+
var y = this.$slots, E = this.$attrs, C = this.tag, j = this.componentData, V = this.realList, Q = this.getKey, nt = Gt({
|
|
4178
4177
|
$slots: y,
|
|
4179
4178
|
tag: C,
|
|
4180
|
-
realList:
|
|
4179
|
+
realList: V,
|
|
4181
4180
|
getKey: Q
|
|
4182
4181
|
});
|
|
4183
|
-
this.componentStructure =
|
|
4184
|
-
var
|
|
4182
|
+
this.componentStructure = nt;
|
|
4183
|
+
var mt = ot({
|
|
4185
4184
|
$attrs: E,
|
|
4186
4185
|
componentData: j
|
|
4187
4186
|
});
|
|
4188
|
-
return
|
|
4189
|
-
} catch (
|
|
4190
|
-
return this.error = !0, Object(
|
|
4187
|
+
return nt.render(Pt.h, mt);
|
|
4188
|
+
} catch (Y) {
|
|
4189
|
+
return this.error = !0, Object(Pt.h)("pre", {
|
|
4191
4190
|
style: {
|
|
4192
4191
|
color: "red"
|
|
4193
4192
|
}
|
|
4194
|
-
},
|
|
4193
|
+
}, Y.stack);
|
|
4195
4194
|
}
|
|
4196
4195
|
},
|
|
4197
4196
|
created: function() {
|
|
@@ -4202,21 +4201,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4202
4201
|
if (!this.error) {
|
|
4203
4202
|
var E = this.$attrs, C = this.$el, j = this.componentStructure;
|
|
4204
4203
|
j.updated();
|
|
4205
|
-
var
|
|
4204
|
+
var V = it({
|
|
4206
4205
|
$attrs: E,
|
|
4207
4206
|
callBackBuilder: {
|
|
4208
|
-
manageAndEmit: function(
|
|
4209
|
-
return
|
|
4207
|
+
manageAndEmit: function(mt) {
|
|
4208
|
+
return ce.call(y, mt);
|
|
4210
4209
|
},
|
|
4211
|
-
emit: function(
|
|
4212
|
-
return Jt.bind(y,
|
|
4210
|
+
emit: function(mt) {
|
|
4211
|
+
return Jt.bind(y, mt);
|
|
4213
4212
|
},
|
|
4214
|
-
manage: function(
|
|
4215
|
-
return
|
|
4213
|
+
manage: function(mt) {
|
|
4214
|
+
return re.call(y, mt);
|
|
4216
4215
|
}
|
|
4217
4216
|
}
|
|
4218
4217
|
}), Q = C.nodeType === 1 ? C : C.parentElement;
|
|
4219
|
-
this._sortable = new L.a(Q,
|
|
4218
|
+
this._sortable = new L.a(Q, V), this.targetDomElement = Q, Q.__draggable_component__ = this;
|
|
4220
4219
|
}
|
|
4221
4220
|
},
|
|
4222
4221
|
updated: function() {
|
|
@@ -4241,9 +4240,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4241
4240
|
$attrs: {
|
|
4242
4241
|
handler: function(y) {
|
|
4243
4242
|
var E = this._sortable;
|
|
4244
|
-
E &&
|
|
4245
|
-
var j = S(C, 2),
|
|
4246
|
-
E.option(
|
|
4243
|
+
E && Tt(y).forEach(function(C) {
|
|
4244
|
+
var j = S(C, 2), V = j[0], Q = j[1];
|
|
4245
|
+
E.option(V, Q);
|
|
4247
4246
|
});
|
|
4248
4247
|
},
|
|
4249
4248
|
deep: !0
|
|
@@ -4258,7 +4257,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4258
4257
|
},
|
|
4259
4258
|
emitChanges: function(y) {
|
|
4260
4259
|
var E = this;
|
|
4261
|
-
Object(
|
|
4260
|
+
Object(Pt.nextTick)(function() {
|
|
4262
4261
|
return E.$emit("change", y);
|
|
4263
4262
|
});
|
|
4264
4263
|
},
|
|
@@ -4277,8 +4276,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4277
4276
|
this.alterList(E);
|
|
4278
4277
|
},
|
|
4279
4278
|
updatePosition: function(y, E) {
|
|
4280
|
-
var C = function(
|
|
4281
|
-
return
|
|
4279
|
+
var C = function(V) {
|
|
4280
|
+
return V.splice(E, 0, V.splice(y, 1)[0]);
|
|
4282
4281
|
};
|
|
4283
4282
|
this.alterList(C);
|
|
4284
4283
|
},
|
|
@@ -4288,13 +4287,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4288
4287
|
return {
|
|
4289
4288
|
component: j
|
|
4290
4289
|
};
|
|
4291
|
-
var
|
|
4292
|
-
list:
|
|
4290
|
+
var V = j.realList, Q = {
|
|
4291
|
+
list: V,
|
|
4293
4292
|
component: j
|
|
4294
4293
|
};
|
|
4295
|
-
if (E !== C &&
|
|
4296
|
-
var
|
|
4297
|
-
return d(d({},
|
|
4294
|
+
if (E !== C && V) {
|
|
4295
|
+
var nt = j.getUnderlyingVm(C) || {};
|
|
4296
|
+
return d(d({}, nt), Q);
|
|
4298
4297
|
}
|
|
4299
4298
|
return Q;
|
|
4300
4299
|
},
|
|
@@ -4302,7 +4301,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4302
4301
|
return this.componentStructure.getVmIndexFromDomIndex(y, this.targetDomElement);
|
|
4303
4302
|
},
|
|
4304
4303
|
onDragStart: function(y) {
|
|
4305
|
-
this.context = this.getUnderlyingVm(y.item), y.item._underlying_vm_ = this.clone(this.context.element),
|
|
4304
|
+
this.context = this.getUnderlyingVm(y.item), y.item._underlying_vm_ = this.clone(this.context.element), de = y.item;
|
|
4306
4305
|
},
|
|
4307
4306
|
onDragAdd: function(y) {
|
|
4308
4307
|
var E = y.item._underlying_vm_;
|
|
@@ -4326,12 +4325,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4326
4325
|
}
|
|
4327
4326
|
var E = this.context, C = E.index, j = E.element;
|
|
4328
4327
|
this.spliceList(C, 1);
|
|
4329
|
-
var
|
|
4328
|
+
var V = {
|
|
4330
4329
|
element: j,
|
|
4331
4330
|
oldIndex: C
|
|
4332
4331
|
};
|
|
4333
4332
|
this.emitChanges({
|
|
4334
|
-
removed:
|
|
4333
|
+
removed: V
|
|
4335
4334
|
});
|
|
4336
4335
|
},
|
|
4337
4336
|
onDragUpdate: function(y) {
|
|
@@ -4350,41 +4349,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4350
4349
|
computeFutureIndex: function(y, E) {
|
|
4351
4350
|
if (!y.element)
|
|
4352
4351
|
return 0;
|
|
4353
|
-
var C = O(E.to.children).filter(function(
|
|
4354
|
-
return
|
|
4355
|
-
}), j = C.indexOf(E.related),
|
|
4356
|
-
return Q || !E.willInsertAfter ?
|
|
4352
|
+
var C = O(E.to.children).filter(function(nt) {
|
|
4353
|
+
return nt.style.display !== "none";
|
|
4354
|
+
}), j = C.indexOf(E.related), V = y.component.getVmIndexFromDomIndex(j), Q = C.indexOf(de) !== -1;
|
|
4355
|
+
return Q || !E.willInsertAfter ? V : V + 1;
|
|
4357
4356
|
},
|
|
4358
4357
|
onDragMove: function(y, E) {
|
|
4359
4358
|
var C = this.move, j = this.realList;
|
|
4360
4359
|
if (!C || !j)
|
|
4361
4360
|
return !0;
|
|
4362
|
-
var
|
|
4361
|
+
var V = this.getRelatedContextFromMoveEvent(y), Q = this.computeFutureIndex(V, y), nt = d(d({}, this.context), {}, {
|
|
4363
4362
|
futureIndex: Q
|
|
4364
|
-
}),
|
|
4365
|
-
relatedContext:
|
|
4366
|
-
draggedContext:
|
|
4363
|
+
}), mt = d(d({}, y), {}, {
|
|
4364
|
+
relatedContext: V,
|
|
4365
|
+
draggedContext: nt
|
|
4367
4366
|
});
|
|
4368
|
-
return C(
|
|
4367
|
+
return C(mt, E);
|
|
4369
4368
|
},
|
|
4370
4369
|
onDragEnd: function() {
|
|
4371
|
-
|
|
4370
|
+
de = null;
|
|
4372
4371
|
}
|
|
4373
4372
|
}
|
|
4374
|
-
}),
|
|
4375
|
-
f.default =
|
|
4373
|
+
}), pe = ge;
|
|
4374
|
+
f.default = pe;
|
|
4376
4375
|
},
|
|
4377
4376
|
/***/
|
|
4378
4377
|
fb6a: function(e, f, t) {
|
|
4379
4378
|
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, P = Math.max;
|
|
4380
4379
|
a({ target: "Array", proto: !0, forced: !m || !S }, {
|
|
4381
4380
|
slice: function(w, L) {
|
|
4382
|
-
var I = d(this), N = c(I.length), F = u(w, N),
|
|
4381
|
+
var I = d(this), N = c(I.length), F = u(w, N), X = u(L === void 0 ? N : L, N), D, R, B;
|
|
4383
4382
|
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))
|
|
4384
|
-
return x.call(I, F,
|
|
4385
|
-
for (R = new (D === void 0 ? Array : D)(P(
|
|
4386
|
-
F in I && v(R,
|
|
4387
|
-
return R.length =
|
|
4383
|
+
return x.call(I, F, X);
|
|
4384
|
+
for (R = new (D === void 0 ? Array : D)(P(X - F, 0)), B = 0; F < X; F++, B++)
|
|
4385
|
+
F in I && v(R, B, I[F]);
|
|
4386
|
+
return R.length = B, R;
|
|
4388
4387
|
}
|
|
4389
4388
|
});
|
|
4390
4389
|
},
|
|
@@ -4439,44 +4438,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4439
4438
|
/******/
|
|
4440
4439
|
}).default;
|
|
4441
4440
|
});
|
|
4442
|
-
})(
|
|
4443
|
-
const
|
|
4444
|
-
function
|
|
4441
|
+
})(Ao);
|
|
4442
|
+
const va = /* @__PURE__ */ so(gn);
|
|
4443
|
+
function qa(o) {
|
|
4445
4444
|
return {
|
|
4446
4445
|
getSFCCode: () => new Promise((e, f) => {
|
|
4447
|
-
import("./sfc-
|
|
4446
|
+
import("./sfc-906b2ece.js").then((t) => {
|
|
4448
4447
|
const { genSFC: a } = t, s = a(o == null ? void 0 : o.pageConfig, o == null ? void 0 : o.widgetList, !1);
|
|
4449
4448
|
e == null || e(s);
|
|
4450
4449
|
});
|
|
4451
4450
|
}),
|
|
4452
4451
|
getFieldItems: () => new Promise((e, f) => {
|
|
4453
|
-
import("./sfcview-
|
|
4452
|
+
import("./sfcview-44b09d06.js").then((t) => {
|
|
4454
4453
|
const { useGenFieldItemList: a } = t, { filterFieldItems: s } = a(o == null ? void 0 : o.widgetList), l = s();
|
|
4455
4454
|
e == null || e(l);
|
|
4456
4455
|
});
|
|
4457
4456
|
}),
|
|
4458
4457
|
getCtx: (e) => {
|
|
4459
4458
|
const { instance: f } = Xn(e);
|
|
4460
|
-
return
|
|
4459
|
+
return $r({ instance: f });
|
|
4461
4460
|
}
|
|
4462
4461
|
};
|
|
4463
4462
|
}
|
|
4464
|
-
const
|
|
4465
|
-
o.use(
|
|
4463
|
+
const ha = (o) => {
|
|
4464
|
+
o.use(co), o.use(fo);
|
|
4466
4465
|
};
|
|
4467
|
-
Jn.install =
|
|
4468
|
-
const
|
|
4466
|
+
Jn.install = ha;
|
|
4467
|
+
const _a = {
|
|
4469
4468
|
install(o) {
|
|
4470
|
-
o.use(
|
|
4469
|
+
o.use(go);
|
|
4471
4470
|
try {
|
|
4472
|
-
o.component("draggable",
|
|
4471
|
+
o.component("draggable", va);
|
|
4473
4472
|
} catch {
|
|
4474
4473
|
}
|
|
4475
4474
|
o.component("VFormRender", Jn);
|
|
4476
4475
|
}
|
|
4477
4476
|
};
|
|
4478
4477
|
export {
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4478
|
+
_a as default,
|
|
4479
|
+
ni as loadSfc,
|
|
4480
|
+
qa as useGenerator
|
|
4482
4481
|
};
|