hldesigner 0.0.178 → 0.0.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_pdf-9265c464.js → _pdf-b037c509.js} +5 -5
- package/{_share_image-a0af7a0d.js → _share_image-98ee3477.js} +2 -2
- package/{_share_size.vue_vue_type_script_setup_true_lang-67c337cb.js → _share_size.vue_vue_type_script_setup_true_lang-be417a8f.js} +3 -3
- package/{_txt-dd7ca46f.js → _txt-c0df2189.js} +5 -5
- package/{_unsupport-184b69b4.js → _unsupport-9ee34804.js} +1 -1
- package/{affix-widget-eaf27563.js → affix-widget-401ca850.js} +19 -19
- package/{alert-widget-d4302c21.js → alert-widget-2f0a5532.js} +19 -19
- package/{anchor-widget-2496640c.js → anchor-widget-93ae4b13.js} +16 -16
- package/{auto-complete-widget-baf26561.js → auto-complete-widget-79773a06.js} +19 -19
- package/{avatar-widget-9227806b.js → avatar-widget-1143eb63.js} +19 -19
- package/{backtop-widget-f8d44a40.js → backtop-widget-30ae62b5.js} +19 -19
- package/{badge-widget-49b14a18.js → badge-widget-62f0abb4.js} +19 -19
- package/{barcode-widget-5dd20361.js → barcode-widget-fc6682cb.js} +16 -16
- package/{baseImp-c08e2a2a.js → baseImp-3798fc69.js} +5 -5
- package/{breadcrumb-widget-e17ed6da.js → breadcrumb-widget-0b8c56e0.js} +16 -16
- package/{button-widget-e8ef2a71.js → button-widget-3bd4b063.js} +19 -19
- package/{cache-widget-38cf8088.js → cache-widget-74e8ceab.js} +18 -18
- package/{card-widget-df06846a.js → card-widget-2b626e2a.js} +17 -17
- package/{carousel-widget-01288666.js → carousel-widget-62d16e7c.js} +17 -17
- package/{cascader-widget-698b67dc.js → cascader-widget-21784969.js} +18 -18
- package/{chart-widget-e9b4f1e4.js → chart-widget-65a727df.js} +16 -16
- package/{checkbox-widget-ec1cccab.js → checkbox-widget-d32ab8f0.js} +23 -23
- package/{collapse-widget-4cb7c914.js → collapse-widget-50028ce6.js} +17 -17
- package/{color-picker-widget-4ace5db3.js → color-picker-widget-d4b6b8ad.js} +18 -18
- package/common-editor-7106e70a.js +26 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-6bbbee1b.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-dc518006.js} +2 -2
- package/{configItem-52d98b57.js → configItem-684c8c8c.js} +35 -35
- package/{cont-cell-widget-c7521992.js → cont-cell-widget-fe4806e3.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-3d058c0a.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f8df77a7.js} +5 -5
- package/{cont-widget-7e9dc19c.js → cont-widget-3fcb2583.js} +5 -5
- package/{content-wrapper-e76b2f92.js → content-wrapper-b4579f9c.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-ec152cfc.js → content-wrapper.vue_vue_type_script_setup_true_lang-f2d422f8.js} +4 -4
- package/{css-editor-05379b21.js → css-editor-ece5e907.js} +18 -18
- package/{cssIndex-3818126e.js → cssIndex-67937912.js} +3 -3
- package/{customClass-editor-58d8effc.js → customClass-editor-719fdaf9.js} +15 -15
- package/{date-picker-range-widget-a87a002d.js → date-picker-range-widget-684a5354.js} +18 -18
- package/{date-picker-widget-5990b184.js → date-picker-widget-4477f1ae.js} +18 -18
- package/default-slot-widget-349fb354.js +29 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-9cdf5385.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af673e35.js} +7 -7
- package/{descriptions-widget-87f99792.js → descriptions-widget-142bc292.js} +17 -17
- package/designer.es.js +33 -33
- package/designer.style.css +1 -1
- package/designer.umd.js +341 -341
- package/{dialog-cd7b577b.js → dialog-9b3ff583.js} +2 -2
- package/{dialog-widget-84ff99f7.js → dialog-widget-aa0220ee.js} +18 -18
- package/{divider-widget-33e1fd06.js → divider-widget-2b147b81.js} +19 -19
- package/{drag-wrapper-28bd6293.js → drag-wrapper-901b994d.js} +6 -6
- package/{drawer-widget-42452a0e.js → drawer-widget-013678af.js} +18 -18
- package/{dropdown-widget-96b12622.js → dropdown-widget-04d946a9.js} +17 -17
- package/{editor-wrapper-6637bfec.js → editor-wrapper-9e29568c.js} +145 -145
- package/{emitter-6aaaebac.js → emitter-e340ff13.js} +1 -1
- package/{empty-widget-4f51b8d9.js → empty-widget-300d8bb7.js} +19 -19
- package/{enum-type-5bd31241.js → enum-type-509d9030.js} +1 -1
- package/{enum-type-52034024.js → enum-type-8fa01a30.js} +22 -18
- package/{expression-7c55599f.js → expression-eb4bb0b7.js} +1972 -1939
- package/feedback-widget-b4e75762.js +30 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-bfe3f41d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-24855c22.js} +5 -5
- package/{field-editor-e7a03d69.js → field-editor-53984066.js} +14 -14
- package/{fieldobj-f3708356.js → fieldobj-f30e8c28.js} +1 -1
- package/{file-upload-widget-61ba290f.js → file-upload-widget-8a35364b.js} +23 -23
- package/{form-item-wrapper-25ea4e05.js → form-item-wrapper-18f962a5.js} +12 -12
- package/{form-widget-16ff1f04.js → form-widget-1535fa0a.js} +41 -41
- package/{grid-col-widget-9bb36a70.js → grid-col-widget-37decba7.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-a46f97df.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-6ff87c10.js} +5 -5
- package/{grid-widget-6f64bd9a.js → grid-widget-736c17c3.js} +5 -5
- package/{html-text-widget-fdb888c2.js → html-text-widget-128fbf96.js} +17 -17
- package/{icon-widget-9fa4a65e.js → icon-widget-9f584c5c.js} +16 -16
- package/{iframe-widget-e98ecd29.js → iframe-widget-4be2900f.js} +16 -16
- package/{image-editor-62d0b5b4.js → image-editor-75fd3397.js} +15 -15
- package/{image-widget-d33258cf.js → image-widget-0fbe1405.js} +16 -16
- package/{index-3bc6a33d.js → index-121bdff8.js} +10 -10
- package/{index-3b1a19c0.js → index-14bf8ecc.js} +9 -9
- package/{index-b3cce81c.js → index-1a3c97cb.js} +3 -3
- package/{index-b4edf810.js → index-2da6d24a.js} +36 -36
- package/{index-c45ea42b.js → index-3f41ff56.js} +12 -12
- package/{index-557162f7.js → index-486df294.js} +22 -22
- package/{index-e884fda7.js → index-4a28df99.js} +5 -5
- package/{index-1522b451.js → index-4f47d837.js} +179 -178
- package/{index-35dcc4e9.js → index-63357898.js} +38 -38
- package/{index-42438189.js → index-6c0968ab.js} +16 -16
- package/{index-5a576b65.js → index-74b62f59.js} +1 -1
- package/{index-69346bb5.js → index-84c21763.js} +7 -7
- package/{index-12e04aff.js → index-95623688.js} +36 -36
- package/{index-5b31cb4b.js → index-a4d4cd67.js} +14 -14
- package/{index-d1393502.js → index-c4e6ef24.js} +10 -10
- package/{index-d6e7a38e.js → index-da5ed984.js} +1 -1
- package/{index-9513cff3.js → index-df502150.js} +6 -6
- package/{index-7bd48c46.js → index-e1f44d2a.js} +5 -5
- package/{index-8f26c48d.js → index-e3658f3c.js} +8 -8
- package/{index-cee20758.js → index-e7594b3b.js} +5 -5
- package/{index-00822503.js → index-e8576415.js} +1 -1
- package/{index-29a4e253.js → index-e9154966.js} +7 -7
- package/{index-a5948c2b.js → index-ed85d613.js} +8 -8
- package/{index-9293a945.js → index-f0e5e706.js} +5 -5
- package/{index-50b37383.js → index-f8ef4bab.js} +7 -7
- package/{input-number-widget-35d76b90.js → input-number-widget-359db461.js} +18 -18
- package/{input-widget-9da5fb26.js → input-widget-9e9be2fc.js} +19 -19
- package/{install-designer-84d358f4.js → install-designer-8634829a.js} +837 -834
- package/{item-67955749.js → item-03240cd5.js} +2 -2
- package/{itemDetail-5cf11900.js → itemDetail-bad3a040.js} +2 -2
- package/{label-wrapper-34c04511.js → label-wrapper-92894f5d.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-fe44471e.js → label-wrapper.vue_vue_type_style_index_0_lang-8c95d165.js} +3 -3
- package/{link-widget-3f5fc844.js → link-widget-6477e4c8.js} +19 -19
- package/{ltable-col-widget-624e4789.js → ltable-col-widget-6b4547c9.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-75db1d6e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7fcc268f.js} +9 -9
- package/{ltable-widget-16af8767.js → ltable-widget-9960b007.js} +5 -5
- package/{menu-widget-c2c3dd22.js → menu-widget-49ce65a7.js} +17 -17
- package/{model-widget-8735d354.js → model-widget-d88ff381.js} +16 -16
- package/{multirow-b2a07abb.js → multirow-62f33682.js} +6 -6
- package/{multirow-widget-492272bc.js → multirow-widget-e25e21e7.js} +18 -18
- package/{name-editor-28a16467.js → name-editor-c20434ae.js} +14 -14
- package/{optionItem-5ef0057d.js → optionItem-2f1e068f.js} +4 -4
- package/package.json +1 -1
- package/{pagination-widget-bdfa982c.js → pagination-widget-99757a2f.js} +16 -16
- package/{picture-upload-widget-23674ef8.js → picture-upload-widget-ade9e6c2.js} +19 -19
- package/{progress-widget-39009d60.js → progress-widget-4b476dd6.js} +17 -17
- package/{property-base-441761fa.js → property-base-5a17c62f.js} +3 -3
- package/{propresult-4ad53912.js → propresult-0c5d1f2e.js} +1 -1
- package/{qrcode-widget-7139c378.js → qrcode-widget-3b2fbf6f.js} +16 -16
- package/{radio-widget-58375d76.js → radio-widget-fbfe7d1d.js} +18 -18
- package/{range-widget-a088090e.js → range-widget-1859fd43.js} +19 -19
- package/{rate-widget-dea8a984.js → rate-widget-a95279b4.js} +18 -18
- package/{reg-editor.vue_vue_type_script_setup_true_lang-6b02a0af.js → reg-editor.vue_vue_type_script_setup_true_lang-cbf3623a.js} +3 -3
- package/{result-widget-a22f6994.js → result-widget-396a2f02.js} +17 -17
- package/{rich-editor-widget copy-d03bddd0.js → rich-editor-widget copy-8de474f2.js } +18 -18
- package/{rich-editor-widget-e083a384.js → rich-editor-widget-966c1fa6.js} +18 -18
- package/{router-widget-f6062900.js → router-widget-aec7e898.js} +16 -16
- package/{schemaData-cab6cabb.js → schemaData-9b43ee84.js} +4 -4
- package/{select-widget-7bbee2b4.js → select-widget-40690b88.js} +18 -18
- package/{sfc-a307864e.js → sfc-ce4cee65.js} +10 -10
- package/{sfcview-654a8844.js → sfcview-cd8527a1.js} +8 -8
- package/{share-editor-b7ebc29d.js → share-editor-c7f14d4f.js} +4 -4
- package/{share-event-a28ca248.js → share-event-9acf6bcd.js} +2 -2
- package/{share-field-35ec53f0.js → share-field-2f6ca559.js} +8 -8
- package/{share-file-7a456265.js → share-file-9cf993d2.js} +5 -5
- package/{size-editor-cafac863.js → size-editor-8dca8036.js} +17 -17
- package/{slider-widget-88c8a4a9.js → slider-widget-12035fd2.js} +18 -18
- package/{slot-21f42399.js → slot-0864a216.js} +24 -24
- package/{static-text-widget-0f7f556e.js → static-text-widget-e9db19dd.js} +17 -17
- package/{steps-widget-a5cc7c7d.js → steps-widget-320c643c.js} +16 -16
- package/{subMenu-widget-36cba673.js → subMenu-widget-150e223f.js} +7 -7
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-cdc7d057.js → subMenu-widget.vue_vue_type_script_setup_true_lang-8b25438c.js} +3 -3
- package/{switch-widget-3d445aa8.js → switch-widget-f095c545.js} +18 -18
- package/{tab-pane-widget-5b8f894c.js → tab-pane-widget-58007164.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-d37f354c.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ec462d25.js} +5 -5
- package/table-col-widget-efa28d6f.js +26 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8e03b561.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a84fa569.js} +5 -5
- package/{table-widget-4c339e08.js → table-widget-b70fd2a6.js} +67 -64
- package/{tabs-widget-1ab60adc.js → tabs-widget-8b2a530e.js} +7 -7
- package/{tag-widget-0a5ee9dd.js → tag-widget-80e2dd3f.js} +19 -19
- package/{target-code-f8b55644.js → target-code-403da571.js} +7 -7
- package/{target-datasource-6b1e586f.js → target-datasource-e4a7e4eb.js} +37 -37
- package/{target-link-eb8a4ee6.js → target-link-70d89b34.js} +36 -36
- package/{target-saveForm-62b6a659.js → target-saveForm-3501c655.js} +36 -36
- package/{target-widget-ded5e568.js → target-widget-ae890acd.js} +1 -1
- package/{target-window-e08d2901.js → target-window-918f9bff.js} +8 -8
- package/{text-widget-454bf14a.js → text-widget-7ff03dbb.js} +19 -19
- package/{textarea-widget-6345b72a.js → textarea-widget-cb2705c3.js} +18 -18
- package/{time-picker-range-widget-5118ca58.js → time-picker-range-widget-2d2882e2.js} +18 -18
- package/{time-picker-widget-b5fce27e.js → time-picker-widget-44e31e74.js} +18 -18
- package/{time-select-widget-ff4cb9c3.js → time-select-widget-3b89cd2a.js} +18 -18
- package/{tmpl-widget-e124be70.js → tmpl-widget-a4d5feb9.js} +17 -17
- package/{tree-select-widget-69314b1b.js → tree-select-widget-b8dc2220.js} +18 -18
- package/{tree-widget-6476031f.js → tree-widget-0a2caa0b.js} +16 -16
- package/{value-editor-bb6141f6.js → value-editor-750c24d4.js} +14 -14
- package/{verifycode-widget-cab408ec.js → verifycode-widget-d36b2e40.js} +16 -16
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ded2e106.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-f1f828df.js} +7 -7
- package/{wrapper-widget-87a6f8d7.js → wrapper-widget-f7f02d76.js} +6 -6
- package/common-editor-36eb8a4a.js +0 -26
- package/default-slot-widget-6a430a9c.js +0 -29
- package/feedback-widget-d1740952.js +0 -30
- package/table-col-widget-494904f3.js +0 -26
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var N1 = (r, o, e) => (
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { p as
|
|
16
|
-
import
|
|
17
|
-
import { t as
|
|
18
|
-
import { u as
|
|
19
|
-
import { F as
|
|
20
|
-
import { I as
|
|
21
|
-
import { i as
|
|
22
|
-
import { g as
|
|
23
|
-
import { u as
|
|
24
|
-
import { u as
|
|
25
|
-
import { W as Z3 } from "./enum-type-
|
|
26
|
-
import { u as
|
|
27
|
-
import { u as
|
|
28
|
-
import { ElMessage as
|
|
29
|
-
import { D as
|
|
30
|
-
import { u as
|
|
31
|
-
import "./index-
|
|
1
|
+
var w0 = Object.defineProperty;
|
|
2
|
+
var H0 = (r, o, e) => o in r ? w0(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
|
|
3
|
+
var N1 = (r, o, e) => (H0(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
4
|
+
import { _ as V0 } from "./cont-cell-widget-fe4806e3.js";
|
|
5
|
+
import { _ as O0 } from "./cont-widget-3fcb2583.js";
|
|
6
|
+
import { _ as A0 } from "./form-widget-1535fa0a.js";
|
|
7
|
+
import { _ as L0 } from "./grid-col-widget-37decba7.js";
|
|
8
|
+
import { _ as T0 } from "./grid-widget-736c17c3.js";
|
|
9
|
+
import { _ as I0 } from "./ltable-col-widget-6b4547c9.js";
|
|
10
|
+
import { _ as D0 } from "./ltable-widget-9960b007.js";
|
|
11
|
+
import { _ as P0 } from "./tab-pane-widget-58007164.js";
|
|
12
|
+
import { _ as R0 } from "./tabs-widget-8b2a530e.js";
|
|
13
|
+
import { _ as B0 } from "./wrapper-widget-f7f02d76.js";
|
|
14
|
+
import { _ as F0 } from "./index-1a3c97cb.js";
|
|
15
|
+
import { p as N0, o as j0 } from "./dialog-9b3ff583.js";
|
|
16
|
+
import $0, { computed as s3, ref as k2, onMounted as n0, onUnmounted as o0, nextTick as H1, defineComponent as N3, provide as J2, resolveDirective as K0, withDirectives as U0, openBlock as q2, createElementBlock as l1, unref as O2, normalizeClass as G0, withKeys as j1, renderSlot as e1, createBlock as V3, Suspense as W0, withCtx as Z2, createVNode as $2, reactive as X0, watch as Y0, shallowRef as G3, resolveComponent as E3, resolveDynamicComponent as W3, Fragment as Z0, renderList as J0, defineAsyncComponent as X3 } from "vue";
|
|
17
|
+
import { t as r0, r as Q0, p as k0, f as Y3, u as $1, a as a0, w as g3, d as Q2, b as q0 } from "./expression-eb4bb0b7.js";
|
|
18
|
+
import { u as _0, a as tt, P as I3, g as et } from "./baseImp-3798fc69.js";
|
|
19
|
+
import { F as nt } from "./slot-0864a216.js";
|
|
20
|
+
import { I as ot } from "./widget-base-4c2d6265.js";
|
|
21
|
+
import { i as rt, a as at, o as it, b as lt, f as st, d as ct, c as dt, t as ft, e as ut, g as vt, h as g1 } from "./enum-type-8fa01a30.js";
|
|
22
|
+
import { g as ht } from "./uuid-009aae31.js";
|
|
23
|
+
import { u as i0 } from "./icon-6342f929.js";
|
|
24
|
+
import { u as mt } from "./emitter-e340ff13.js";
|
|
25
|
+
import { W as Z3 } from "./enum-type-509d9030.js";
|
|
26
|
+
import { u as gt, a as K1, R as U1, b as pt } from "./share-field-2f6ca559.js";
|
|
27
|
+
import { u as yt } from "./multirow-62f33682.js";
|
|
28
|
+
import { ElMessage as bt, ElMessageBox as xt, ElNotification as zt } from "element-plus";
|
|
29
|
+
import { D as St } from "./drag-wrapper-901b994d.js";
|
|
30
|
+
import { u as l0, D as Mt, c as Et } from "./index-df502150.js";
|
|
31
|
+
import "./index-da5ed984.js";
|
|
32
32
|
import "./esprima-e8d15055.js";
|
|
33
33
|
import { _ as D1 } from "./_plugin-vue_export-helper-dad06003.js";
|
|
34
|
-
import { g as
|
|
35
|
-
import { S as
|
|
36
|
-
import { g as
|
|
34
|
+
import { g as Ct } from "./setView-de8aaf40.js";
|
|
35
|
+
import { S as wt } from "./index-74b62f59.js";
|
|
36
|
+
import { g as Ht, c as Vt, a as Ot } from "./_commonjsHelpers-e7ea1525.js";
|
|
37
37
|
if (typeof window < "u") {
|
|
38
38
|
let r = function() {
|
|
39
39
|
var o = document.body, e = document.getElementById("__svg__icons__dom__");
|
|
@@ -41,7 +41,7 @@ if (typeof window < "u") {
|
|
|
41
41
|
};
|
|
42
42
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", r) : r();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function s0(r) {
|
|
45
45
|
let o = /* @__PURE__ */ new Map();
|
|
46
46
|
for (const e in r) {
|
|
47
47
|
let i = r == null ? void 0 : r[e], n = i == null ? void 0 : i.default, s = (n == null ? void 0 : n.name) || (n == null ? void 0 : n.__name);
|
|
@@ -49,28 +49,28 @@ function l0(r) {
|
|
|
49
49
|
}
|
|
50
50
|
return o;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function c0() {
|
|
53
|
+
return s0(/* @__PURE__ */ Object.assign({ "../cont-cell-widget.vue": V0, "../cont-widget.vue": O0, "../form-widget.vue": A0, "../grid-col-widget.vue": L0, "../grid-widget.vue": T0, "../ltable-col-widget.vue": I0, "../ltable-widget.vue": D0, "../tab-pane-widget.vue": P0, "../tabs-widget.vue": R0, "../wrapper-widget.vue": B0 }));
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
const e =
|
|
55
|
+
const At = (r, o) => {
|
|
56
|
+
const e = c0();
|
|
57
57
|
for (const i in Object.keys(e))
|
|
58
58
|
r.component(i, e[i]);
|
|
59
|
-
},
|
|
60
|
-
const e =
|
|
59
|
+
}, Lt = { install: At }, Tt = (r, o) => {
|
|
60
|
+
const e = c0();
|
|
61
61
|
for (const i in Object.keys(e))
|
|
62
62
|
r.component(i, e[i]);
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
return
|
|
63
|
+
}, It = { install: Tt };
|
|
64
|
+
function Dt() {
|
|
65
|
+
return s0(/* @__PURE__ */ Object.assign({ "./index.vue": F0 }));
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
const e =
|
|
69
|
-
r.use(
|
|
67
|
+
const Pt = (r, o) => {
|
|
68
|
+
const e = Dt();
|
|
69
|
+
r.use(N0);
|
|
70
70
|
for (const i in Object.keys(e))
|
|
71
71
|
r.component(i, e[i]);
|
|
72
|
-
},
|
|
73
|
-
function
|
|
72
|
+
}, Rt = { install: Pt };
|
|
73
|
+
function Bt(r, o, e, i) {
|
|
74
74
|
const n = { r: 255, g: 255, b: 255 };
|
|
75
75
|
return {
|
|
76
76
|
r: Math.round(r * (1 - i) + n.r * i),
|
|
@@ -78,26 +78,26 @@ function Ft(r, o, e, i) {
|
|
|
78
78
|
b: Math.round(e * (1 - i) + n.b * i)
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ft(r, o, e, i = !1, n = 5) {
|
|
82
82
|
const s = [];
|
|
83
83
|
for (let t = 0; t < n; t++) {
|
|
84
|
-
const a =
|
|
84
|
+
const a = Bt(r, o, e, t * 0.1);
|
|
85
85
|
s.push(a);
|
|
86
86
|
}
|
|
87
87
|
return s;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const i =
|
|
91
|
-
return n == null ? void 0 : n.map((s) =>
|
|
89
|
+
function Nt(r, o = !1, e = 5) {
|
|
90
|
+
const i = $t(r), n = Ft(i.r, i.g, i.b, o, e);
|
|
91
|
+
return n == null ? void 0 : n.map((s) => jt(s.r, s.g, s.b));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function jt(r, o, e) {
|
|
94
94
|
const i = (n) => {
|
|
95
95
|
const s = n.toString(16);
|
|
96
96
|
return s.length === 1 ? "0" + s : s;
|
|
97
97
|
};
|
|
98
98
|
return `#${i(r)}${i(o)}${i(e)}`;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function $t(r) {
|
|
101
101
|
r = r.replace(/^#/, ""), r.length === 3 && (r = r[0] + r[0] + r[1] + r[1] + r[2] + r[2]);
|
|
102
102
|
const o = parseInt(r, 16);
|
|
103
103
|
return {
|
|
@@ -106,86 +106,89 @@ function Kt(r) {
|
|
|
106
106
|
b: o & 255
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Kt(r, o) {
|
|
110
110
|
return {
|
|
111
|
-
cssWithPrimaryColor:
|
|
111
|
+
cssWithPrimaryColor: s3(() => {
|
|
112
112
|
var s, t;
|
|
113
|
-
const i = (o == null ? void 0 : o.themeColor) ||
|
|
113
|
+
const i = (o == null ? void 0 : o.themeColor) || r0.color1;
|
|
114
114
|
var n = {
|
|
115
115
|
themeColor: i
|
|
116
116
|
};
|
|
117
|
-
return (s =
|
|
117
|
+
return (s = Nt(i, !1, 10)) == null || s.forEach((a, l) => {
|
|
118
118
|
n["themeColor-" + l] = a;
|
|
119
|
-
}), !
|
|
119
|
+
}), !rt(r) && at(r) && ((t = it(n)) == null || t.forEach((a) => {
|
|
120
120
|
var l = `var\\(--${a}\\)`;
|
|
121
|
-
r =
|
|
121
|
+
r = Q0(r, l, n[a]);
|
|
122
122
|
})), r;
|
|
123
123
|
})
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
var { addWindowName: o, addWindowHook: e } =
|
|
126
|
+
function Ut(r) {
|
|
127
|
+
var { addWindowName: o, addWindowHook: e } = _0();
|
|
128
128
|
o(), e("openModalAsync", (i) => {
|
|
129
|
-
|
|
130
|
-
}), e("ElMessage",
|
|
129
|
+
j0(r == null ? void 0 : r.instance, i);
|
|
130
|
+
}), e("ElMessage", bt), e("ElMessageBox", xt), e("ElNotification", zt);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const o = r.designer, e = o == null ? void 0 : o.pageConfig, i =
|
|
134
|
-
var { instance: u, proxy: v } =
|
|
135
|
-
const h = { instance: u, designState: n, formData: s, pageConfig: e, globalConfig: t }, { handleFunc: m } =
|
|
136
|
-
let
|
|
132
|
+
function Gt(r) {
|
|
133
|
+
const o = r.designer, e = o == null ? void 0 : o.pageConfig, i = k2(o == null ? void 0 : o.widgetList), n = r == null ? void 0 : r.designState, s = r == null ? void 0 : r.pageData, t = r == null ? void 0 : r.renderConfig, a = {}, l = {}, { off$: c, on$: d, emit$: f } = mt();
|
|
134
|
+
var { instance: u, proxy: v } = i0();
|
|
135
|
+
const h = { instance: u, designState: n, formData: s, pageConfig: e, globalConfig: t }, { handleFunc: m } = gt({ options: e }, h), { callWidgetsExposed: g } = K1(l), { formModel: p, setData: y, getData: C, clearData: S } = yt(i.value, h), w = new U1(a), M = new U1(l), { findRefByName: D } = K1(l), { getOneSchemaData: P, getSchemaDataObject: E, getSchemaDatas: T } = tt(h);
|
|
136
|
+
let $ = (() => "vfRender" + ht())();
|
|
137
137
|
const V = () => {
|
|
138
138
|
m(e == null ? void 0 : e.pageCreated);
|
|
139
139
|
}, O = () => {
|
|
140
140
|
m(e == null ? void 0 : e.pageMounted);
|
|
141
|
-
}, $ = () => {
|
|
141
|
+
}, j = s3(() => n ? "" : $), L = () => {
|
|
142
142
|
if (!e)
|
|
143
143
|
return;
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
146
|
-
const { cssWithPrimaryColor:
|
|
147
|
-
|
|
144
|
+
const { insertCustomCssToHead: Z, insertGlobalFunctionsToHtml: i2 } = $1(), h2 = I3.getValue(e.cssCode, !1, !0);
|
|
145
|
+
if (h2) {
|
|
146
|
+
const { cssWithPrimaryColor: Y2 } = Kt(h2, { themeColor: (t == null ? void 0 : t.themeColor) || "" });
|
|
147
|
+
Z(Y2.value, j.value);
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
149
|
+
const x2 = I3.getValue(e.functions, !1, !0);
|
|
150
|
+
x2 && i2(x2, j.value);
|
|
151
|
+
}, N = () => {
|
|
152
|
+
const { removeCustomCssToHead: Z, removeGlobalFunctionsToHtml: i2 } = $1();
|
|
153
|
+
Z(j.value), i2(j.value);
|
|
154
|
+
}, Q = (Z = !0) => {
|
|
155
|
+
Z && L(), S2(), V(), M2(), B2();
|
|
156
|
+
}, n2 = k0.page, S2 = () => {
|
|
157
|
+
w.setWidgetRef(n2, u), M.setWidgetRef(n2, u);
|
|
158
|
+
}, l2 = (Z) => g(Z, Z3.getValue), s2 = (Z, i2) => g(Z, Z3.setValue, i2), v2 = (Z, i2 = !0) => {
|
|
159
|
+
g(Z, Z3.setDisabled, { flag: i2 });
|
|
160
|
+
}, b2 = (Z) => {
|
|
161
|
+
v2(Z, !1);
|
|
162
|
+
}, f2 = (Z, i2 = !0) => {
|
|
163
|
+
g(Z, Z3.setHidden, { flag: i2 });
|
|
164
|
+
}, o2 = (Z) => {
|
|
165
|
+
f2(Z, !1);
|
|
166
|
+
}, a2 = (Z) => {
|
|
167
|
+
if (Z) {
|
|
168
|
+
var i2 = st(Z);
|
|
169
|
+
if (i2) {
|
|
170
|
+
if (!i2.pageConfig || !i2.widgetList)
|
|
168
171
|
return "Invalid pageat of page json.";
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
ct(r.pageConfig, i2), L(), H1(() => {
|
|
173
|
+
Q(!1), O();
|
|
171
174
|
});
|
|
172
175
|
} else
|
|
173
176
|
return "Set page json failed.";
|
|
174
177
|
}
|
|
175
|
-
},
|
|
176
|
-
v == null || v.$emit(
|
|
177
|
-
},
|
|
178
|
-
c(Y3.fieldChange), d(Y3.fieldChange, (
|
|
179
|
-
|
|
178
|
+
}, H2 = (Z, i2, h2) => {
|
|
179
|
+
v == null || v.$emit(a0.formChange, Z, i2, h2, p);
|
|
180
|
+
}, M2 = () => {
|
|
181
|
+
c(Y3.fieldChange), d(Y3.fieldChange, (Z) => {
|
|
182
|
+
H2(Z == null ? void 0 : Z.fieldName, Z == null ? void 0 : Z.newValue, Z == null ? void 0 : Z.oldValue);
|
|
180
183
|
});
|
|
181
|
-
},
|
|
182
|
-
c(Y3.fieldValidation), d(Y3.fieldValidation, (
|
|
184
|
+
}, B2 = () => {
|
|
185
|
+
c(Y3.fieldValidation), d(Y3.fieldValidation, (Z) => {
|
|
183
186
|
});
|
|
184
187
|
};
|
|
185
|
-
return
|
|
186
|
-
S(),
|
|
187
|
-
}),
|
|
188
|
-
S();
|
|
188
|
+
return Q(), n0(() => {
|
|
189
|
+
S(), lt(), O(), Ut({ instance: u });
|
|
190
|
+
}), o0(() => {
|
|
191
|
+
S(), N();
|
|
189
192
|
}), {
|
|
190
193
|
formModel: p,
|
|
191
194
|
pageConfig: e,
|
|
@@ -195,13 +198,13 @@ function Wt(r) {
|
|
|
195
198
|
exposed: {
|
|
196
199
|
// findRefById,
|
|
197
200
|
findRefByName: D,
|
|
198
|
-
setPageJson:
|
|
199
|
-
hideWidgets:
|
|
200
|
-
showWidgets:
|
|
201
|
-
disableWidgets:
|
|
202
|
-
enableWidgets:
|
|
203
|
-
getFieldValue:
|
|
204
|
-
setFieldValue:
|
|
201
|
+
setPageJson: a2,
|
|
202
|
+
hideWidgets: f2,
|
|
203
|
+
showWidgets: o2,
|
|
204
|
+
disableWidgets: v2,
|
|
205
|
+
enableWidgets: b2,
|
|
206
|
+
getFieldValue: l2,
|
|
207
|
+
setFieldValue: s2,
|
|
205
208
|
setData: y,
|
|
206
209
|
getData: C,
|
|
207
210
|
clearData: S,
|
|
@@ -215,7 +218,7 @@ function Wt(r) {
|
|
|
215
218
|
}
|
|
216
219
|
};
|
|
217
220
|
}
|
|
218
|
-
function
|
|
221
|
+
function d0() {
|
|
219
222
|
const r = {}, o = (n, s, t) => {
|
|
220
223
|
r[n] = { opt: s, doEvent: t };
|
|
221
224
|
}, e = (n, s) => {
|
|
@@ -232,8 +235,8 @@ function c0() {
|
|
|
232
235
|
}
|
|
233
236
|
};
|
|
234
237
|
}
|
|
235
|
-
function
|
|
236
|
-
const { bindKey: o, runEvent: e } =
|
|
238
|
+
function Wt(r) {
|
|
239
|
+
const { bindKey: o, runEvent: e } = d0(), { undoHistoryStep: i, cloneSelectedWidget: n, pasteSelectedWidget: s, removeSelectedWidget: t } = l0(r);
|
|
237
240
|
let a = null;
|
|
238
241
|
const l = () => (a = n(), !!a), c = () => a ? s(a) : !1, d = () => (i(), !0), f = () => {
|
|
239
242
|
o("c", { ctrlKey: !0 }, l), o("v", { ctrlKey: !0 }, c), o("z", { ctrlKey: !0 }, d);
|
|
@@ -244,8 +247,8 @@ function Xt(r) {
|
|
|
244
247
|
}
|
|
245
248
|
};
|
|
246
249
|
}
|
|
247
|
-
function
|
|
248
|
-
const { bindKey: o, runEvent: e } =
|
|
250
|
+
function Xt(r) {
|
|
251
|
+
const { bindKey: o, runEvent: e } = d0(), i = () => {
|
|
249
252
|
o("enter", { ctrlKey: !1 }, a), o("arrowleft", { ctrlKey: !0 }, l);
|
|
250
253
|
}, n = (c) => (i(), e(c)), s = "input,select,textarea", t = ["textarea"], a = () => {
|
|
251
254
|
var v, h;
|
|
@@ -277,42 +280,42 @@ function Yt(r) {
|
|
|
277
280
|
addKeyBoardEvent: n
|
|
278
281
|
};
|
|
279
282
|
}
|
|
280
|
-
const
|
|
281
|
-
...
|
|
283
|
+
const Yt = ["element-loading-text", "onKeyup"], Zt = N3({ componentName: g3.VFormRender, name: g3.VFormRender }), Jt = /* @__PURE__ */ N3({
|
|
284
|
+
...Zt,
|
|
282
285
|
props: {
|
|
283
|
-
...
|
|
286
|
+
...ot,
|
|
284
287
|
pageData: { type: Object },
|
|
285
288
|
renderConfig: { type: Object }
|
|
286
289
|
},
|
|
287
290
|
setup(r, { expose: o, emit: e }) {
|
|
288
|
-
const i = r, { formModel: n, exposed: s, widgetList: t, pageConfig: a, allWidgetRefList: l } =
|
|
291
|
+
const i = r, { formModel: n, exposed: s, widgetList: t, pageConfig: a, allWidgetRefList: l } = Gt(i), c = s3(() => {
|
|
289
292
|
var p, y;
|
|
290
293
|
return I3.getValue((y = (p = i.designer) == null ? void 0 : p.pageConfig) == null ? void 0 : y.layoutType);
|
|
291
|
-
}), d =
|
|
294
|
+
}), d = s3(() => dt(ft(I3.getValue(a == null ? void 0 : a.customClass), !0))), f = s3(() => {
|
|
292
295
|
var p;
|
|
293
296
|
return (p = I3.getValue(a == null ? void 0 : a.componentWrapperClass)) == null ? void 0 : p.join(" ");
|
|
294
|
-
}), u =
|
|
295
|
-
|
|
297
|
+
}), u = k2(!1), v = {};
|
|
298
|
+
nt.globalProvide({
|
|
296
299
|
formRefList: v,
|
|
297
300
|
globalRefList: l,
|
|
298
301
|
globalDataModel: n,
|
|
299
302
|
globalFormName: g3.VFormRender
|
|
300
303
|
// globalPageName: widgetVar.VFormRender
|
|
301
|
-
}),
|
|
302
|
-
const h =
|
|
303
|
-
const { addKeyBoardEvent: y } =
|
|
304
|
+
}), J2(Q2.globalConfig, i.renderConfig), J2(Q2.isRenderComplete, u);
|
|
305
|
+
const h = k2(), m = (p) => {
|
|
306
|
+
const { addKeyBoardEvent: y } = Xt(h.value);
|
|
304
307
|
y(p);
|
|
305
308
|
}, g = () => {
|
|
306
|
-
u.value = !0, e(
|
|
309
|
+
u.value = !0, e(a0.renderComplete);
|
|
307
310
|
};
|
|
308
311
|
return o({
|
|
309
312
|
...s,
|
|
310
313
|
componentName: g3.VFormRender
|
|
311
314
|
}), (p, y) => {
|
|
312
|
-
const C =
|
|
313
|
-
return
|
|
314
|
-
"element-loading-text":
|
|
315
|
-
class:
|
|
315
|
+
const C = K0("loading");
|
|
316
|
+
return U0((q2(), l1("div", {
|
|
317
|
+
"element-loading-text": O2(ut).i18nt("designer.hint.loading"),
|
|
318
|
+
class: G0([...O2(d), O2(c) + "-layout", { loadingLayout: !u.value }]),
|
|
316
319
|
tabindex: "0",
|
|
317
320
|
ref_key: "taregtWrapperRef",
|
|
318
321
|
ref: h,
|
|
@@ -323,48 +326,48 @@ const Zt = ["element-loading-text", "onKeyup"], Jt = N3({ componentName: g3.VFor
|
|
|
323
326
|
}, [
|
|
324
327
|
e1(p.$slots, "header", {}, void 0, !0),
|
|
325
328
|
e1(p.$slots, "default", {}, () => [
|
|
326
|
-
(
|
|
327
|
-
default:
|
|
328
|
-
|
|
329
|
+
(q2(), V3(W0, { onResolve: g }, {
|
|
330
|
+
default: Z2(() => [
|
|
331
|
+
$2(St, {
|
|
329
332
|
designer: p.designer,
|
|
330
|
-
"widget-list":
|
|
331
|
-
model:
|
|
333
|
+
"widget-list": O2(t),
|
|
334
|
+
model: O2(n),
|
|
332
335
|
"design-state": !1,
|
|
333
|
-
"component-class":
|
|
336
|
+
"component-class": O2(f)
|
|
334
337
|
}, null, 8, ["designer", "widget-list", "model", "component-class"])
|
|
335
338
|
]),
|
|
336
339
|
_: 1
|
|
337
340
|
}))
|
|
338
341
|
], !0),
|
|
339
342
|
e1(p.$slots, "footer", {}, void 0, !0)
|
|
340
|
-
], 42,
|
|
343
|
+
], 42, Yt)), [
|
|
341
344
|
[C, !u.value]
|
|
342
345
|
]);
|
|
343
346
|
};
|
|
344
347
|
}
|
|
345
348
|
});
|
|
346
|
-
const
|
|
347
|
-
function
|
|
349
|
+
const f0 = /* @__PURE__ */ D1(Jt, [["__scopeId", "data-v-527104aa"]]);
|
|
350
|
+
function Qt(r) {
|
|
348
351
|
return {
|
|
349
352
|
getSFCCode: () => new Promise((n, s) => {
|
|
350
|
-
import("./sfc-
|
|
353
|
+
import("./sfc-ce4cee65.js").then((t) => {
|
|
351
354
|
const { genSFC: a } = t, l = a(r == null ? void 0 : r.pageConfig, r == null ? void 0 : r.widgetList, !1);
|
|
352
355
|
n == null || n(l);
|
|
353
356
|
});
|
|
354
357
|
}),
|
|
355
358
|
getFieldItems: () => new Promise((n, s) => {
|
|
356
|
-
import("./sfcview-
|
|
359
|
+
import("./sfcview-cd8527a1.js").then((t) => {
|
|
357
360
|
const { useGenFieldItemList: a } = t, { filterFieldItems: l } = a(r == null ? void 0 : r.widgetList), c = l();
|
|
358
361
|
n == null || n(c);
|
|
359
362
|
});
|
|
360
363
|
}),
|
|
361
364
|
getCtx: (n) => {
|
|
362
|
-
const { instance: s } =
|
|
363
|
-
return
|
|
365
|
+
const { instance: s } = i0(n);
|
|
366
|
+
return et({ instance: s });
|
|
364
367
|
}
|
|
365
368
|
};
|
|
366
369
|
}
|
|
367
|
-
const
|
|
370
|
+
const kt = /* @__PURE__ */ N3({
|
|
368
371
|
__name: "layoutdivider",
|
|
369
372
|
props: {
|
|
370
373
|
modelValue: null,
|
|
@@ -373,7 +376,7 @@ const qt = /* @__PURE__ */ N3({
|
|
|
373
376
|
},
|
|
374
377
|
emits: ["update:modelValue"],
|
|
375
378
|
setup(r, { emit: o }) {
|
|
376
|
-
const e = r, i =
|
|
379
|
+
const e = r, i = s3({
|
|
377
380
|
get: () => e.modelValue,
|
|
378
381
|
set: (l) => {
|
|
379
382
|
o("update:modelValue", l);
|
|
@@ -385,64 +388,64 @@ const qt = /* @__PURE__ */ N3({
|
|
|
385
388
|
g1(e.maxValue) || i.value > ((e == null ? void 0 : e.maxValue) || 0) && (l = (e == null ? void 0 : e.maxValue) || 0), g1(e.minValue) || i.value < (e.minValue || 0) && (l = (e == null ? void 0 : e.minValue) || 0), g1(l) || (i.value = l), document.removeEventListener("mousemove", t);
|
|
386
389
|
}, t = (l) => {
|
|
387
390
|
i.value = l.screenX;
|
|
388
|
-
}, a =
|
|
389
|
-
return
|
|
391
|
+
}, a = vt(s, 300);
|
|
392
|
+
return n0(() => {
|
|
390
393
|
document.addEventListener("mouseup", a);
|
|
391
|
-
}),
|
|
394
|
+
}), o0(() => {
|
|
392
395
|
document.removeEventListener("mouseup", a);
|
|
393
|
-
}), (l, c) => (
|
|
396
|
+
}), (l, c) => (q2(), l1("div", {
|
|
394
397
|
class: "resize flex bgWhite",
|
|
395
398
|
onMousedown: n
|
|
396
399
|
}, [
|
|
397
|
-
|
|
400
|
+
$2(wt, {
|
|
398
401
|
name: "@custom-resize",
|
|
399
402
|
class: "resizeIcon"
|
|
400
403
|
})
|
|
401
404
|
], 32));
|
|
402
405
|
}
|
|
403
406
|
});
|
|
404
|
-
const
|
|
405
|
-
class
|
|
407
|
+
const G1 = /* @__PURE__ */ D1(kt, [["__scopeId", "data-v-bf6aa713"]]);
|
|
408
|
+
class qt {
|
|
406
409
|
constructor() {
|
|
407
410
|
/**
|
|
408
411
|
* 设计器主题颜色
|
|
409
412
|
*/
|
|
410
|
-
N1(this, "themeColor",
|
|
413
|
+
N1(this, "themeColor", r0.color1);
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
|
-
const
|
|
414
|
-
...
|
|
416
|
+
const _t = { class: "full-height-width noscrollbar" }, t4 = N3({ componentName: g3.VFormDesigner, name: g3.VFormDesigner }), e4 = /* @__PURE__ */ N3({
|
|
417
|
+
...t4,
|
|
415
418
|
props: {
|
|
416
419
|
fieldList: null,
|
|
417
420
|
bannedWidgets: { default: () => [] },
|
|
418
421
|
pageTemplates: null,
|
|
419
422
|
exampleCodes: null,
|
|
420
|
-
designerConfig: { default: () => new
|
|
421
|
-
renderConfig: { default: () => new
|
|
423
|
+
designerConfig: { default: () => new Mt() },
|
|
424
|
+
renderConfig: { default: () => new qt() },
|
|
422
425
|
designerJson: null
|
|
423
426
|
},
|
|
424
427
|
setup(r, { expose: o }) {
|
|
425
428
|
var E, T;
|
|
426
|
-
const e = r, { onMountedOrActivated: i } =
|
|
427
|
-
|
|
428
|
-
const s =
|
|
429
|
-
|
|
429
|
+
const e = r, { onMountedOrActivated: i } = pt(), n = k2(!1);
|
|
430
|
+
J2(Q2.getDesignerConfig, e.designerConfig), J2(Q2.getBannedWidgets, e.bannedWidgets), J2(Q2.getPageTemplates, e.pageTemplates), J2(Q2.getExampleCode, e.exampleCodes), J2(Q2.serverFieldList, e.fieldList), J2(Q2.globalConfig, e.renderConfig), J2(Q2.isRenderComplete, n);
|
|
431
|
+
const s = Et(e.designerJson, !!((E = e.designerConfig) != null && E.resetPageJson), !!((T = e.designerConfig) != null && T.radomKey)), t = X0(s);
|
|
432
|
+
Y0(() => e.designerJson, (I) => {
|
|
430
433
|
C(I);
|
|
431
434
|
});
|
|
432
|
-
const a =
|
|
433
|
-
d.value = X3(() => import("./index-
|
|
434
|
-
}, m =
|
|
435
|
-
const I =
|
|
435
|
+
const a = s3(() => t.version), l = k2(), c = k2(), d = G3(), f = G3(), u = G3(), v = G3(), h = () => {
|
|
436
|
+
d.value = X3(() => import("./index-121bdff8.js")), f.value = X3(() => import("./index-a4d4cd67.js")), u.value = X3(() => import("./index-4f47d837.js").then((I) => I.i)), v.value = X3(() => import("./index-63357898.js"));
|
|
437
|
+
}, m = k2(), g = () => {
|
|
438
|
+
const I = Ct(".page-widget-main .el-scrollbar");
|
|
436
439
|
m.value = I - 80 + "px";
|
|
437
440
|
};
|
|
438
|
-
|
|
441
|
+
q0(() => {
|
|
439
442
|
H1(() => {
|
|
440
443
|
g();
|
|
441
444
|
});
|
|
442
445
|
});
|
|
443
|
-
const { getSFCCode: p } =
|
|
446
|
+
const { getSFCCode: p } = Qt(t), { getPageJson: y, loadPageJson: C } = l0(t), { addKeyBoardEvent: S } = Wt(t), w = (I) => {
|
|
444
447
|
S(I), I.preventDefault();
|
|
445
|
-
}, M = window.innerWidth, D =
|
|
448
|
+
}, M = window.innerWidth, D = k2(250), P = k2(M - 320);
|
|
446
449
|
return i(() => {
|
|
447
450
|
H1(() => {
|
|
448
451
|
h(), g();
|
|
@@ -451,63 +454,63 @@ const t4 = { class: "full-height-width noscrollbar" }, e4 = N3({ componentName:
|
|
|
451
454
|
getPageJson: y,
|
|
452
455
|
loadPageJson: C,
|
|
453
456
|
getSFCCode: p
|
|
454
|
-
}), (I,
|
|
455
|
-
const V = E3("el-aside"), O = E3("el-header"),
|
|
456
|
-
return
|
|
457
|
-
|
|
458
|
-
default:
|
|
459
|
-
|
|
457
|
+
}), (I, $) => {
|
|
458
|
+
const V = E3("el-aside"), O = E3("el-header"), j = E3("el-scrollbar"), L = E3("el-main"), N = E3("el-container");
|
|
459
|
+
return q2(), l1("div", _t, [
|
|
460
|
+
$2(N, { class: "full-height noscrollbar" }, {
|
|
461
|
+
default: Z2(() => [
|
|
462
|
+
$2(V, {
|
|
460
463
|
class: "noscrollbar left-panel",
|
|
461
464
|
width: `${D.value}px`,
|
|
462
465
|
tabindex: "0",
|
|
463
466
|
onKeydown: w
|
|
464
467
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
(
|
|
467
|
-
key: `WidgetPanel${
|
|
468
|
+
default: Z2(() => [
|
|
469
|
+
(q2(), V3(W3(O2(d)), {
|
|
470
|
+
key: `WidgetPanel${O2(a)}`,
|
|
468
471
|
class: "full-height-width bgWhite",
|
|
469
472
|
designer: t
|
|
470
473
|
}, null, 8, ["designer"]))
|
|
471
474
|
]),
|
|
472
475
|
_: 1
|
|
473
476
|
}, 8, ["width"]),
|
|
474
|
-
|
|
477
|
+
$2(G1, {
|
|
475
478
|
modelValue: D.value,
|
|
476
|
-
"onUpdate:modelValue":
|
|
479
|
+
"onUpdate:modelValue": $[0] || ($[0] = (Q) => D.value = Q),
|
|
477
480
|
minValue: 200,
|
|
478
481
|
maxValue: 500
|
|
479
482
|
}, null, 8, ["modelValue"]),
|
|
480
|
-
|
|
481
|
-
default:
|
|
482
|
-
|
|
483
|
-
default:
|
|
484
|
-
(
|
|
483
|
+
$2(L, { class: "noscrollbar nopadding" }, {
|
|
484
|
+
default: Z2(() => [
|
|
485
|
+
$2(O, { class: "toolbar-header nopadding bgWhite" }, {
|
|
486
|
+
default: Z2(() => [
|
|
487
|
+
(q2(), V3(W3(O2(v)), {
|
|
485
488
|
designer: t,
|
|
486
489
|
"designer-config": r.designerConfig,
|
|
487
|
-
key: `ToolbarPanel${
|
|
490
|
+
key: `ToolbarPanel${O2(a)}`,
|
|
488
491
|
"render-config": r.renderConfig,
|
|
489
492
|
ref: l.value
|
|
490
493
|
}, {
|
|
491
|
-
default:
|
|
492
|
-
(
|
|
494
|
+
default: Z2(() => [
|
|
495
|
+
(q2(!0), l1(Z0, null, J0(I.$slots, (Q, n2) => e1(I.$slots, n2, {}, void 0, !0)), 256))
|
|
493
496
|
]),
|
|
494
497
|
_: 3
|
|
495
498
|
}, 8, ["designer", "designer-config", "render-config"]))
|
|
496
499
|
]),
|
|
497
500
|
_: 3
|
|
498
501
|
}),
|
|
499
|
-
|
|
502
|
+
$2(L, {
|
|
500
503
|
class: "page-widget-main full-height-width nopadding",
|
|
501
504
|
tabindex: "0",
|
|
502
505
|
onKeydown: w
|
|
503
506
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
506
|
-
default:
|
|
507
|
-
(
|
|
507
|
+
default: Z2(() => [
|
|
508
|
+
$2(j, null, {
|
|
509
|
+
default: Z2(() => [
|
|
510
|
+
(q2(), V3(W3(O2(f)), {
|
|
508
511
|
panelHeight: m.value,
|
|
509
512
|
designer: t,
|
|
510
|
-
key: `PageWidget${
|
|
513
|
+
key: `PageWidget${O2(a)}`,
|
|
511
514
|
"designer-config": r.designerConfig,
|
|
512
515
|
ref_key: "pageWidgetRef",
|
|
513
516
|
ref: c
|
|
@@ -521,20 +524,20 @@ const t4 = { class: "full-height-width noscrollbar" }, e4 = N3({ componentName:
|
|
|
521
524
|
]),
|
|
522
525
|
_: 3
|
|
523
526
|
}),
|
|
524
|
-
|
|
527
|
+
$2(G1, {
|
|
525
528
|
modelValue: P.value,
|
|
526
|
-
"onUpdate:modelValue":
|
|
529
|
+
"onUpdate:modelValue": $[1] || ($[1] = (Q) => P.value = Q)
|
|
527
530
|
}, null, 8, ["modelValue"]),
|
|
528
|
-
|
|
531
|
+
$2(V, {
|
|
529
532
|
class: "noscrollbar right-panel",
|
|
530
|
-
width: `${
|
|
533
|
+
width: `${O2(M) - P.value}px`
|
|
531
534
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
(
|
|
535
|
+
default: Z2(() => [
|
|
536
|
+
(q2(), V3(W3(O2(u)), {
|
|
534
537
|
class: "bgWhite",
|
|
535
538
|
designer: t,
|
|
536
539
|
"render-config": r.renderConfig,
|
|
537
|
-
key: `SettingPanel${
|
|
540
|
+
key: `SettingPanel${O2(a)}`
|
|
538
541
|
}, null, 8, ["designer", "render-config"]))
|
|
539
542
|
]),
|
|
540
543
|
_: 1
|
|
@@ -546,8 +549,8 @@ const t4 = { class: "full-height-width noscrollbar" }, e4 = N3({ componentName:
|
|
|
546
549
|
};
|
|
547
550
|
}
|
|
548
551
|
});
|
|
549
|
-
const
|
|
550
|
-
var V1 = {},
|
|
552
|
+
const u0 = /* @__PURE__ */ D1(e4, [["__scopeId", "data-v-ebca54f9"]]);
|
|
553
|
+
var V1 = {}, n4 = {
|
|
551
554
|
get exports() {
|
|
552
555
|
return V1;
|
|
553
556
|
},
|
|
@@ -561,7 +564,7 @@ var V1 = {}, o4 = {
|
|
|
561
564
|
* @author owenm <owen23355@gmail.com>
|
|
562
565
|
* @license MIT
|
|
563
566
|
*/
|
|
564
|
-
function
|
|
567
|
+
function W1(r, o) {
|
|
565
568
|
var e = Object.keys(r);
|
|
566
569
|
if (Object.getOwnPropertySymbols) {
|
|
567
570
|
var i = Object.getOwnPropertySymbols(r);
|
|
@@ -571,12 +574,12 @@ function G1(r, o) {
|
|
|
571
574
|
}
|
|
572
575
|
return e;
|
|
573
576
|
}
|
|
574
|
-
function
|
|
577
|
+
function X2(r) {
|
|
575
578
|
for (var o = 1; o < arguments.length; o++) {
|
|
576
579
|
var e = arguments[o] != null ? arguments[o] : {};
|
|
577
|
-
o % 2 ?
|
|
578
|
-
|
|
579
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) :
|
|
580
|
+
o % 2 ? W1(Object(e), !0).forEach(function(i) {
|
|
581
|
+
o4(r, i, e[i]);
|
|
582
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : W1(Object(e)).forEach(function(i) {
|
|
580
583
|
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(e, i));
|
|
581
584
|
});
|
|
582
585
|
}
|
|
@@ -589,7 +592,7 @@ function n1(r) {
|
|
|
589
592
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
590
593
|
}, n1(r);
|
|
591
594
|
}
|
|
592
|
-
function
|
|
595
|
+
function o4(r, o, e) {
|
|
593
596
|
return o in r ? Object.defineProperty(r, o, {
|
|
594
597
|
value: e,
|
|
595
598
|
enumerable: !0,
|
|
@@ -597,17 +600,17 @@ function r4(r, o, e) {
|
|
|
597
600
|
writable: !0
|
|
598
601
|
}) : r[o] = e, r;
|
|
599
602
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
603
|
+
function R2() {
|
|
604
|
+
return R2 = Object.assign || function(r) {
|
|
602
605
|
for (var o = 1; o < arguments.length; o++) {
|
|
603
606
|
var e = arguments[o];
|
|
604
607
|
for (var i in e)
|
|
605
608
|
Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
|
|
606
609
|
}
|
|
607
610
|
return r;
|
|
608
|
-
},
|
|
611
|
+
}, R2.apply(this, arguments);
|
|
609
612
|
}
|
|
610
|
-
function
|
|
613
|
+
function r4(r, o) {
|
|
611
614
|
if (r == null)
|
|
612
615
|
return {};
|
|
613
616
|
var e = {}, i = Object.keys(r), n, s;
|
|
@@ -615,10 +618,10 @@ function a4(r, o) {
|
|
|
615
618
|
n = i[s], !(o.indexOf(n) >= 0) && (e[n] = r[n]);
|
|
616
619
|
return e;
|
|
617
620
|
}
|
|
618
|
-
function
|
|
621
|
+
function a4(r, o) {
|
|
619
622
|
if (r == null)
|
|
620
623
|
return {};
|
|
621
|
-
var e =
|
|
624
|
+
var e = r4(r, o), i, n;
|
|
622
625
|
if (Object.getOwnPropertySymbols) {
|
|
623
626
|
var s = Object.getOwnPropertySymbols(r);
|
|
624
627
|
for (n = 0; n < s.length; n++)
|
|
@@ -626,18 +629,18 @@ function i4(r, o) {
|
|
|
626
629
|
}
|
|
627
630
|
return e;
|
|
628
631
|
}
|
|
629
|
-
function
|
|
630
|
-
return
|
|
632
|
+
function i4(r) {
|
|
633
|
+
return l4(r) || s4(r) || c4(r) || d4();
|
|
631
634
|
}
|
|
632
|
-
function
|
|
635
|
+
function l4(r) {
|
|
633
636
|
if (Array.isArray(r))
|
|
634
637
|
return O1(r);
|
|
635
638
|
}
|
|
636
|
-
function
|
|
639
|
+
function s4(r) {
|
|
637
640
|
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null)
|
|
638
641
|
return Array.from(r);
|
|
639
642
|
}
|
|
640
|
-
function
|
|
643
|
+
function c4(r, o) {
|
|
641
644
|
if (r) {
|
|
642
645
|
if (typeof r == "string")
|
|
643
646
|
return O1(r, o);
|
|
@@ -654,24 +657,24 @@ function O1(r, o) {
|
|
|
654
657
|
i[e] = r[e];
|
|
655
658
|
return i;
|
|
656
659
|
}
|
|
657
|
-
function
|
|
660
|
+
function d4() {
|
|
658
661
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
659
662
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
660
663
|
}
|
|
661
|
-
var
|
|
662
|
-
function
|
|
664
|
+
var f4 = "1.14.0";
|
|
665
|
+
function _2(r) {
|
|
663
666
|
if (typeof window < "u" && window.navigator)
|
|
664
667
|
return !!/* @__PURE__ */ navigator.userAgent.match(r);
|
|
665
668
|
}
|
|
666
|
-
var
|
|
669
|
+
var t3 = _2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), j3 = _2(/Edge/i), X1 = _2(/firefox/i), D3 = _2(/safari/i) && !_2(/chrome/i) && !_2(/android/i), v0 = _2(/iP(ad|od|hone)/i), u4 = _2(/chrome/i) && _2(/android/i), h0 = {
|
|
667
670
|
capture: !1,
|
|
668
671
|
passive: !1
|
|
669
672
|
};
|
|
670
673
|
function q(r, o, e) {
|
|
671
|
-
r.addEventListener(o, e, !
|
|
674
|
+
r.addEventListener(o, e, !t3 && h0);
|
|
672
675
|
}
|
|
673
676
|
function k(r, o, e) {
|
|
674
|
-
r.removeEventListener(o, e, !
|
|
677
|
+
r.removeEventListener(o, e, !t3 && h0);
|
|
675
678
|
}
|
|
676
679
|
function s1(r, o) {
|
|
677
680
|
if (o) {
|
|
@@ -689,10 +692,10 @@ function s1(r, o) {
|
|
|
689
692
|
return !1;
|
|
690
693
|
}
|
|
691
694
|
}
|
|
692
|
-
function
|
|
695
|
+
function v4(r) {
|
|
693
696
|
return r.host && r !== document && r.host.nodeType ? r.host : r.parentNode;
|
|
694
697
|
}
|
|
695
|
-
function
|
|
698
|
+
function K2(r, o, e, i) {
|
|
696
699
|
if (r) {
|
|
697
700
|
e = e || document;
|
|
698
701
|
do {
|
|
@@ -700,18 +703,18 @@ function $2(r, o, e, i) {
|
|
|
700
703
|
return r;
|
|
701
704
|
if (r === e)
|
|
702
705
|
break;
|
|
703
|
-
} while (r =
|
|
706
|
+
} while (r = v4(r));
|
|
704
707
|
}
|
|
705
708
|
return null;
|
|
706
709
|
}
|
|
707
|
-
var
|
|
708
|
-
function
|
|
710
|
+
var Y1 = /\s+/g;
|
|
711
|
+
function u2(r, o, e) {
|
|
709
712
|
if (r && o)
|
|
710
713
|
if (r.classList)
|
|
711
714
|
r.classList[e ? "add" : "remove"](o);
|
|
712
715
|
else {
|
|
713
|
-
var i = (" " + r.className + " ").replace(
|
|
714
|
-
r.className = (i + (e ? " " + o : "")).replace(
|
|
716
|
+
var i = (" " + r.className + " ").replace(Y1, " ").replace(" " + o + " ", " ");
|
|
717
|
+
r.className = (i + (e ? " " + o : "")).replace(Y1, " ");
|
|
715
718
|
}
|
|
716
719
|
}
|
|
717
720
|
function B(r, o, e) {
|
|
@@ -722,7 +725,7 @@ function B(r, o, e) {
|
|
|
722
725
|
!(o in i) && o.indexOf("webkit") === -1 && (o = "-webkit-" + o), i[o] = e + (typeof e == "string" ? "" : "px");
|
|
723
726
|
}
|
|
724
727
|
}
|
|
725
|
-
function
|
|
728
|
+
function c3(r, o) {
|
|
726
729
|
var e = "";
|
|
727
730
|
if (typeof r == "string")
|
|
728
731
|
e = r;
|
|
@@ -734,7 +737,7 @@ function s3(r, o) {
|
|
|
734
737
|
var n = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
735
738
|
return n && new n(e);
|
|
736
739
|
}
|
|
737
|
-
function
|
|
740
|
+
function m0(r, o, e) {
|
|
738
741
|
if (r) {
|
|
739
742
|
var i = r.getElementsByTagName(o), n = 0, s = i.length;
|
|
740
743
|
if (e)
|
|
@@ -744,14 +747,14 @@ function h0(r, o, e) {
|
|
|
744
747
|
}
|
|
745
748
|
return [];
|
|
746
749
|
}
|
|
747
|
-
function
|
|
750
|
+
function W2() {
|
|
748
751
|
var r = document.scrollingElement;
|
|
749
752
|
return r || document.documentElement;
|
|
750
753
|
}
|
|
751
754
|
function d2(r, o, e, i, n) {
|
|
752
755
|
if (!(!r.getBoundingClientRect && r !== window)) {
|
|
753
756
|
var s, t, a, l, c, d, f;
|
|
754
|
-
if (r !== window && r.parentNode && r !==
|
|
757
|
+
if (r !== window && r.parentNode && r !== W2() ? (s = r.getBoundingClientRect(), t = s.top, a = s.left, l = s.bottom, c = s.right, d = s.height, f = s.width) : (t = 0, a = 0, l = window.innerHeight, c = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (o || e) && r !== window && (n = n || r.parentNode, !t3))
|
|
755
758
|
do
|
|
756
759
|
if (n && n.getBoundingClientRect && (B(n, "transform") !== "none" || e && B(n, "position") !== "static")) {
|
|
757
760
|
var u = n.getBoundingClientRect();
|
|
@@ -760,7 +763,7 @@ function d2(r, o, e, i, n) {
|
|
|
760
763
|
}
|
|
761
764
|
while (n = n.parentNode);
|
|
762
765
|
if (i && r !== window) {
|
|
763
|
-
var v =
|
|
766
|
+
var v = c3(n || r), h = v && v.a, m = v && v.d;
|
|
764
767
|
v && (t /= m, a /= h, f /= h, d /= m, l = t + d, c = a + f);
|
|
765
768
|
}
|
|
766
769
|
return {
|
|
@@ -773,20 +776,20 @@ function d2(r, o, e, i, n) {
|
|
|
773
776
|
};
|
|
774
777
|
}
|
|
775
778
|
}
|
|
776
|
-
function
|
|
777
|
-
for (var i =
|
|
779
|
+
function Z1(r, o, e) {
|
|
780
|
+
for (var i = r3(r, !0), n = d2(r)[o]; i; ) {
|
|
778
781
|
var s = d2(i)[e], t = void 0;
|
|
779
782
|
if (e === "top" || e === "left" ? t = n >= s : t = n <= s, !t)
|
|
780
783
|
return i;
|
|
781
|
-
if (i ===
|
|
784
|
+
if (i === W2())
|
|
782
785
|
break;
|
|
783
|
-
i =
|
|
786
|
+
i = r3(i, !1);
|
|
784
787
|
}
|
|
785
788
|
return !1;
|
|
786
789
|
}
|
|
787
790
|
function p3(r, o, e, i) {
|
|
788
791
|
for (var n = 0, s = 0, t = r.children; s < t.length; ) {
|
|
789
|
-
if (t[s].style.display !== "none" && t[s] !== U.ghost && (i || t[s] !== U.dragged) &&
|
|
792
|
+
if (t[s].style.display !== "none" && t[s] !== U.ghost && (i || t[s] !== U.dragged) && K2(t[s], e.draggable, r, !1)) {
|
|
790
793
|
if (n === o)
|
|
791
794
|
return t[s];
|
|
792
795
|
n++;
|
|
@@ -800,7 +803,7 @@ function P1(r, o) {
|
|
|
800
803
|
e = e.previousElementSibling;
|
|
801
804
|
return e || null;
|
|
802
805
|
}
|
|
803
|
-
function
|
|
806
|
+
function p2(r, o) {
|
|
804
807
|
var e = 0;
|
|
805
808
|
if (!r || !r.parentNode)
|
|
806
809
|
return -1;
|
|
@@ -808,16 +811,16 @@ function g2(r, o) {
|
|
|
808
811
|
r.nodeName.toUpperCase() !== "TEMPLATE" && r !== U.clone && (!o || s1(r, o)) && e++;
|
|
809
812
|
return e;
|
|
810
813
|
}
|
|
811
|
-
function
|
|
812
|
-
var o = 0, e = 0, i =
|
|
814
|
+
function J1(r) {
|
|
815
|
+
var o = 0, e = 0, i = W2();
|
|
813
816
|
if (r)
|
|
814
817
|
do {
|
|
815
|
-
var n =
|
|
818
|
+
var n = c3(r), s = n.a, t = n.d;
|
|
816
819
|
o += r.scrollLeft * s, e += r.scrollTop * t;
|
|
817
820
|
} while (r !== i && (r = r.parentNode));
|
|
818
821
|
return [o, e];
|
|
819
822
|
}
|
|
820
|
-
function
|
|
823
|
+
function h4(r, o) {
|
|
821
824
|
for (var e in r)
|
|
822
825
|
if (r.hasOwnProperty(e)) {
|
|
823
826
|
for (var i in o)
|
|
@@ -826,25 +829,25 @@ function m4(r, o) {
|
|
|
826
829
|
}
|
|
827
830
|
return -1;
|
|
828
831
|
}
|
|
829
|
-
function
|
|
832
|
+
function r3(r, o) {
|
|
830
833
|
if (!r || !r.getBoundingClientRect)
|
|
831
|
-
return
|
|
834
|
+
return W2();
|
|
832
835
|
var e = r, i = !1;
|
|
833
836
|
do
|
|
834
837
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
835
838
|
var n = B(e);
|
|
836
839
|
if (e.clientWidth < e.scrollWidth && (n.overflowX == "auto" || n.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (n.overflowY == "auto" || n.overflowY == "scroll")) {
|
|
837
840
|
if (!e.getBoundingClientRect || e === document.body)
|
|
838
|
-
return
|
|
841
|
+
return W2();
|
|
839
842
|
if (i || o)
|
|
840
843
|
return e;
|
|
841
844
|
i = !0;
|
|
842
845
|
}
|
|
843
846
|
}
|
|
844
847
|
while (e = e.parentNode);
|
|
845
|
-
return
|
|
848
|
+
return W2();
|
|
846
849
|
}
|
|
847
|
-
function
|
|
850
|
+
function m4(r, o) {
|
|
848
851
|
if (r && o)
|
|
849
852
|
for (var e in o)
|
|
850
853
|
o.hasOwnProperty(e) && (r[e] = o[e]);
|
|
@@ -854,7 +857,7 @@ function p1(r, o) {
|
|
|
854
857
|
return Math.round(r.top) === Math.round(o.top) && Math.round(r.left) === Math.round(o.left) && Math.round(r.height) === Math.round(o.height) && Math.round(r.width) === Math.round(o.width);
|
|
855
858
|
}
|
|
856
859
|
var P3;
|
|
857
|
-
function
|
|
860
|
+
function g0(r, o) {
|
|
858
861
|
return function() {
|
|
859
862
|
if (!P3) {
|
|
860
863
|
var e = arguments, i = this;
|
|
@@ -864,24 +867,24 @@ function m0(r, o) {
|
|
|
864
867
|
}
|
|
865
868
|
};
|
|
866
869
|
}
|
|
867
|
-
function
|
|
870
|
+
function g4() {
|
|
868
871
|
clearTimeout(P3), P3 = void 0;
|
|
869
872
|
}
|
|
870
|
-
function
|
|
873
|
+
function p0(r, o, e) {
|
|
871
874
|
r.scrollLeft += o, r.scrollTop += e;
|
|
872
875
|
}
|
|
873
876
|
function R1(r) {
|
|
874
877
|
var o = window.Polymer, e = window.jQuery || window.Zepto;
|
|
875
878
|
return o && o.dom ? o.dom(r).cloneNode(!0) : e ? e(r).clone(!0)[0] : r.cloneNode(!0);
|
|
876
879
|
}
|
|
877
|
-
function
|
|
880
|
+
function Q1(r, o) {
|
|
878
881
|
B(r, "position", "absolute"), B(r, "top", o.top), B(r, "left", o.left), B(r, "width", o.width), B(r, "height", o.height);
|
|
879
882
|
}
|
|
880
883
|
function y1(r) {
|
|
881
884
|
B(r, "position", ""), B(r, "top", ""), B(r, "left", ""), B(r, "width", ""), B(r, "height", "");
|
|
882
885
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
886
|
+
var w2 = "Sortable" + new Date().getTime();
|
|
887
|
+
function p4() {
|
|
885
888
|
var r = [], o;
|
|
886
889
|
return {
|
|
887
890
|
captureAnimationState: function() {
|
|
@@ -893,9 +896,9 @@ function y4() {
|
|
|
893
896
|
target: n,
|
|
894
897
|
rect: d2(n)
|
|
895
898
|
});
|
|
896
|
-
var s =
|
|
899
|
+
var s = X2({}, r[r.length - 1].rect);
|
|
897
900
|
if (n.thisAnimationDuration) {
|
|
898
|
-
var t =
|
|
901
|
+
var t = c3(n, !0);
|
|
899
902
|
t && (s.top -= t.f, s.left -= t.e);
|
|
900
903
|
}
|
|
901
904
|
n.fromRect = s;
|
|
@@ -907,7 +910,7 @@ function y4() {
|
|
|
907
910
|
r.push(i);
|
|
908
911
|
},
|
|
909
912
|
removeAnimationState: function(i) {
|
|
910
|
-
r.splice(
|
|
913
|
+
r.splice(h4(r, {
|
|
911
914
|
target: i
|
|
912
915
|
}), 1);
|
|
913
916
|
},
|
|
@@ -919,8 +922,8 @@ function y4() {
|
|
|
919
922
|
}
|
|
920
923
|
var s = !1, t = 0;
|
|
921
924
|
r.forEach(function(a) {
|
|
922
|
-
var l = 0, c = a.target, d = c.fromRect, f = d2(c), u = c.prevFromRect, v = c.prevToRect, h = a.rect, m =
|
|
923
|
-
m && (f.top -= m.f, f.left -= m.e), c.toRect = f, c.thisAnimationDuration && p1(u, f) && !p1(d, f) && (h.top - f.top) / (h.left - f.left) === (d.top - f.top) / (d.left - f.left) && (l =
|
|
925
|
+
var l = 0, c = a.target, d = c.fromRect, f = d2(c), u = c.prevFromRect, v = c.prevToRect, h = a.rect, m = c3(c, !0);
|
|
926
|
+
m && (f.top -= m.f, f.left -= m.e), c.toRect = f, c.thisAnimationDuration && p1(u, f) && !p1(d, f) && (h.top - f.top) / (h.left - f.left) === (d.top - f.top) / (d.left - f.left) && (l = b4(h, u, v, n.options)), p1(f, d) || (c.prevFromRect = d, c.prevToRect = f, l || (l = n.options.animation), n.animate(c, h, f, l)), l && (s = !0, t = Math.max(t, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
924
927
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
925
928
|
}, l), c.thisAnimationDuration = l);
|
|
926
929
|
}), clearTimeout(o), s ? o = setTimeout(function() {
|
|
@@ -930,30 +933,30 @@ function y4() {
|
|
|
930
933
|
animate: function(i, n, s, t) {
|
|
931
934
|
if (t) {
|
|
932
935
|
B(i, "transition", ""), B(i, "transform", "");
|
|
933
|
-
var a =
|
|
934
|
-
i.animatingX = !!d, i.animatingY = !!f, B(i, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy =
|
|
936
|
+
var a = c3(this.el), l = a && a.a, c = a && a.d, d = (n.left - s.left) / (l || 1), f = (n.top - s.top) / (c || 1);
|
|
937
|
+
i.animatingX = !!d, i.animatingY = !!f, B(i, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = y4(i), B(i, "transition", "transform " + t + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
935
938
|
B(i, "transition", ""), B(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
936
939
|
}, t);
|
|
937
940
|
}
|
|
938
941
|
}
|
|
939
942
|
};
|
|
940
943
|
}
|
|
941
|
-
function
|
|
944
|
+
function y4(r) {
|
|
942
945
|
return r.offsetWidth;
|
|
943
946
|
}
|
|
944
|
-
function
|
|
947
|
+
function b4(r, o, e, i) {
|
|
945
948
|
return Math.sqrt(Math.pow(o.top - r.top, 2) + Math.pow(o.left - r.left, 2)) / Math.sqrt(Math.pow(o.top - e.top, 2) + Math.pow(o.left - e.left, 2)) * i.animation;
|
|
946
949
|
}
|
|
947
|
-
var
|
|
950
|
+
var f3 = [], b1 = {
|
|
948
951
|
initializeByDefault: !0
|
|
949
952
|
}, $3 = {
|
|
950
953
|
mount: function(o) {
|
|
951
954
|
for (var e in b1)
|
|
952
955
|
b1.hasOwnProperty(e) && !(e in o) && (o[e] = b1[e]);
|
|
953
|
-
|
|
956
|
+
f3.forEach(function(i) {
|
|
954
957
|
if (i.pluginName === o.pluginName)
|
|
955
958
|
throw "Sortable: Cannot mount plugin ".concat(o.pluginName, " more than once");
|
|
956
|
-
}),
|
|
959
|
+
}), f3.push(o);
|
|
957
960
|
},
|
|
958
961
|
pluginEvent: function(o, e, i) {
|
|
959
962
|
var n = this;
|
|
@@ -961,20 +964,20 @@ var d3 = [], b1 = {
|
|
|
961
964
|
n.eventCanceled = !0;
|
|
962
965
|
};
|
|
963
966
|
var s = o + "Global";
|
|
964
|
-
|
|
965
|
-
e[t.pluginName] && (e[t.pluginName][s] && e[t.pluginName][s](
|
|
967
|
+
f3.forEach(function(t) {
|
|
968
|
+
e[t.pluginName] && (e[t.pluginName][s] && e[t.pluginName][s](X2({
|
|
966
969
|
sortable: e
|
|
967
|
-
}, i)), e.options[t.pluginName] && e[t.pluginName][o] && e[t.pluginName][o](
|
|
970
|
+
}, i)), e.options[t.pluginName] && e[t.pluginName][o] && e[t.pluginName][o](X2({
|
|
968
971
|
sortable: e
|
|
969
972
|
}, i)));
|
|
970
973
|
});
|
|
971
974
|
},
|
|
972
975
|
initializePlugins: function(o, e, i, n) {
|
|
973
|
-
|
|
976
|
+
f3.forEach(function(a) {
|
|
974
977
|
var l = a.pluginName;
|
|
975
978
|
if (!(!o.options[l] && !a.initializeByDefault)) {
|
|
976
979
|
var c = new a(o, e, o.options);
|
|
977
|
-
c.sortable = o, c.options = o.options, o[l] = c,
|
|
980
|
+
c.sortable = o, c.options = o.options, o[l] = c, R2(i, c.defaults);
|
|
978
981
|
}
|
|
979
982
|
});
|
|
980
983
|
for (var s in o.options)
|
|
@@ -985,60 +988,60 @@ var d3 = [], b1 = {
|
|
|
985
988
|
},
|
|
986
989
|
getEventProperties: function(o, e) {
|
|
987
990
|
var i = {};
|
|
988
|
-
return
|
|
989
|
-
typeof n.eventProperties == "function" &&
|
|
991
|
+
return f3.forEach(function(n) {
|
|
992
|
+
typeof n.eventProperties == "function" && R2(i, n.eventProperties.call(e[n.pluginName], o));
|
|
990
993
|
}), i;
|
|
991
994
|
},
|
|
992
995
|
modifyOption: function(o, e, i) {
|
|
993
996
|
var n;
|
|
994
|
-
return
|
|
997
|
+
return f3.forEach(function(s) {
|
|
995
998
|
o[s.pluginName] && s.optionListeners && typeof s.optionListeners[e] == "function" && (n = s.optionListeners[e].call(o[s.pluginName], i));
|
|
996
999
|
}), n;
|
|
997
1000
|
}
|
|
998
1001
|
};
|
|
999
1002
|
function O3(r) {
|
|
1000
1003
|
var o = r.sortable, e = r.rootEl, i = r.name, n = r.targetEl, s = r.cloneEl, t = r.toEl, a = r.fromEl, l = r.oldIndex, c = r.newIndex, d = r.oldDraggableIndex, f = r.newDraggableIndex, u = r.originalEvent, v = r.putSortable, h = r.extraEventProperties;
|
|
1001
|
-
if (o = o || e && e[
|
|
1004
|
+
if (o = o || e && e[w2], !!o) {
|
|
1002
1005
|
var m, g = o.options, p = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1003
|
-
window.CustomEvent && !
|
|
1006
|
+
window.CustomEvent && !t3 && !j3 ? m = new CustomEvent(i, {
|
|
1004
1007
|
bubbles: !0,
|
|
1005
1008
|
cancelable: !0
|
|
1006
1009
|
}) : (m = document.createEvent("Event"), m.initEvent(i, !0, !0)), m.to = t || e, m.from = a || e, m.item = n || e, m.clone = s, m.oldIndex = l, m.newIndex = c, m.oldDraggableIndex = d, m.newDraggableIndex = f, m.originalEvent = u, m.pullMode = v ? v.lastPutMode : void 0;
|
|
1007
|
-
var y =
|
|
1010
|
+
var y = X2(X2({}, h), $3.getEventProperties(i, o));
|
|
1008
1011
|
for (var C in y)
|
|
1009
1012
|
m[C] = y[C];
|
|
1010
1013
|
e && e.dispatchEvent(m), g[p] && g[p].call(o, m);
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
|
-
var
|
|
1014
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = i.evt, s =
|
|
1015
|
-
$3.pluginEvent.bind(U)(o, e,
|
|
1016
|
+
var x4 = ["evt"], L2 = function(o, e) {
|
|
1017
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = i.evt, s = a4(i, x4);
|
|
1018
|
+
$3.pluginEvent.bind(U)(o, e, X2({
|
|
1016
1019
|
dragEl: A,
|
|
1017
|
-
parentEl:
|
|
1018
|
-
ghostEl:
|
|
1020
|
+
parentEl: m2,
|
|
1021
|
+
ghostEl: Y,
|
|
1019
1022
|
rootEl: c2,
|
|
1020
1023
|
nextEl: l3,
|
|
1021
1024
|
lastDownEl: o1,
|
|
1022
|
-
cloneEl:
|
|
1023
|
-
cloneHidden:
|
|
1025
|
+
cloneEl: g2,
|
|
1026
|
+
cloneHidden: o3,
|
|
1024
1027
|
dragStarted: A3,
|
|
1025
|
-
putSortable:
|
|
1028
|
+
putSortable: E2,
|
|
1026
1029
|
activeSortable: U.active,
|
|
1027
1030
|
originalEvent: n,
|
|
1028
|
-
oldIndex:
|
|
1031
|
+
oldIndex: m3,
|
|
1029
1032
|
oldDraggableIndex: R3,
|
|
1030
|
-
newIndex:
|
|
1031
|
-
newDraggableIndex:
|
|
1032
|
-
hideGhostForTarget:
|
|
1033
|
-
unhideGhostForTarget:
|
|
1033
|
+
newIndex: D2,
|
|
1034
|
+
newDraggableIndex: n3,
|
|
1035
|
+
hideGhostForTarget: z0,
|
|
1036
|
+
unhideGhostForTarget: S0,
|
|
1034
1037
|
cloneNowHidden: function() {
|
|
1035
|
-
|
|
1038
|
+
o3 = !0;
|
|
1036
1039
|
},
|
|
1037
1040
|
cloneNowShown: function() {
|
|
1038
|
-
|
|
1041
|
+
o3 = !1;
|
|
1039
1042
|
},
|
|
1040
1043
|
dispatchSortableEvent: function(a) {
|
|
1041
|
-
|
|
1044
|
+
V2({
|
|
1042
1045
|
sortable: e,
|
|
1043
1046
|
name: a,
|
|
1044
1047
|
originalEvent: n
|
|
@@ -1046,26 +1049,26 @@ var z4 = ["evt"], A2 = function(o, e) {
|
|
|
1046
1049
|
}
|
|
1047
1050
|
}, s));
|
|
1048
1051
|
};
|
|
1049
|
-
function
|
|
1050
|
-
O3(
|
|
1051
|
-
putSortable:
|
|
1052
|
-
cloneEl:
|
|
1052
|
+
function V2(r) {
|
|
1053
|
+
O3(X2({
|
|
1054
|
+
putSortable: E2,
|
|
1055
|
+
cloneEl: g2,
|
|
1053
1056
|
targetEl: A,
|
|
1054
1057
|
rootEl: c2,
|
|
1055
|
-
oldIndex:
|
|
1058
|
+
oldIndex: m3,
|
|
1056
1059
|
oldDraggableIndex: R3,
|
|
1057
|
-
newIndex:
|
|
1058
|
-
newDraggableIndex:
|
|
1060
|
+
newIndex: D2,
|
|
1061
|
+
newDraggableIndex: n3
|
|
1059
1062
|
}, r));
|
|
1060
1063
|
}
|
|
1061
|
-
var A,
|
|
1064
|
+
var A, m2, Y, c2, l3, o1, g2, o3, m3, D2, R3, n3, J3, E2, h3 = !1, c1 = !1, d1 = [], a3, N2, x1, z1, k1, q1, A3, u3, B3, F3 = !1, Q3 = !1, r1, C2, S1 = [], A1 = !1, f1 = [], v1 = typeof document < "u", k3 = v0, _1 = j3 || t3 ? "cssFloat" : "float", z4 = v1 && !u4 && !v0 && "draggable" in document.createElement("div"), y0 = function() {
|
|
1062
1065
|
if (v1) {
|
|
1063
|
-
if (
|
|
1066
|
+
if (t3)
|
|
1064
1067
|
return !1;
|
|
1065
1068
|
var r = document.createElement("x");
|
|
1066
1069
|
return r.style.cssText = "pointer-events:auto", r.style.pointerEvents === "auto";
|
|
1067
1070
|
}
|
|
1068
|
-
}(),
|
|
1071
|
+
}(), b0 = function(o, e) {
|
|
1069
1072
|
var i = B(o), n = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), s = p3(o, 0, e), t = p3(o, 1, e), a = s && B(s), l = t && B(t), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + d2(s).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + d2(t).width;
|
|
1070
1073
|
if (i.display === "flex")
|
|
1071
1074
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1075,21 +1078,21 @@ var A, h2, Z, c2, l3, o1, m2, n3, h3, I2, R3, e3, J3, M2, v3 = !1, c1 = !1, d1 =
|
|
|
1075
1078
|
var f = a.float === "left" ? "left" : "right";
|
|
1076
1079
|
return t && (l.clear === "both" || l.clear === f) ? "vertical" : "horizontal";
|
|
1077
1080
|
}
|
|
1078
|
-
return s && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= n && i[
|
|
1079
|
-
},
|
|
1081
|
+
return s && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= n && i[_1] === "none" || t && i[_1] === "none" && c + d > n) ? "vertical" : "horizontal";
|
|
1082
|
+
}, S4 = function(o, e, i) {
|
|
1080
1083
|
var n = i ? o.left : o.top, s = i ? o.right : o.bottom, t = i ? o.width : o.height, a = i ? e.left : e.top, l = i ? e.right : e.bottom, c = i ? e.width : e.height;
|
|
1081
1084
|
return n === a || s === l || n + t / 2 === a + c / 2;
|
|
1082
|
-
},
|
|
1085
|
+
}, M4 = function(o, e) {
|
|
1083
1086
|
var i;
|
|
1084
1087
|
return d1.some(function(n) {
|
|
1085
|
-
var s = n[
|
|
1088
|
+
var s = n[w2].options.emptyInsertThreshold;
|
|
1086
1089
|
if (!(!s || P1(n))) {
|
|
1087
1090
|
var t = d2(n), a = o >= t.left - s && o <= t.right + s, l = e >= t.top - s && e <= t.bottom + s;
|
|
1088
1091
|
if (a && l)
|
|
1089
1092
|
return i = n;
|
|
1090
1093
|
}
|
|
1091
1094
|
}), i;
|
|
1092
|
-
},
|
|
1095
|
+
}, x0 = function(o) {
|
|
1093
1096
|
function e(s, t) {
|
|
1094
1097
|
return function(a, l, c, d) {
|
|
1095
1098
|
var f = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
@@ -1109,10 +1112,10 @@ var A, h2, Z, c2, l3, o1, m2, n3, h3, I2, R3, e3, J3, M2, v3 = !1, c1 = !1, d1 =
|
|
|
1109
1112
|
(!n || n1(n) != "object") && (n = {
|
|
1110
1113
|
name: n
|
|
1111
1114
|
}), i.name = n.name, i.checkPull = e(n.pull, !0), i.checkPut = e(n.put), i.revertClone = n.revertClone, o.group = i;
|
|
1112
|
-
}, x0 = function() {
|
|
1113
|
-
!p0 && Z && B(Z, "display", "none");
|
|
1114
1115
|
}, z0 = function() {
|
|
1115
|
-
!
|
|
1116
|
+
!y0 && Y && B(Y, "display", "none");
|
|
1117
|
+
}, S0 = function() {
|
|
1118
|
+
!y0 && Y && B(Y, "display", "");
|
|
1116
1119
|
};
|
|
1117
1120
|
v1 && document.addEventListener("click", function(r) {
|
|
1118
1121
|
if (c1)
|
|
@@ -1121,21 +1124,21 @@ v1 && document.addEventListener("click", function(r) {
|
|
|
1121
1124
|
var i3 = function(o) {
|
|
1122
1125
|
if (A) {
|
|
1123
1126
|
o = o.touches ? o.touches[0] : o;
|
|
1124
|
-
var e =
|
|
1127
|
+
var e = M4(o.clientX, o.clientY);
|
|
1125
1128
|
if (e) {
|
|
1126
1129
|
var i = {};
|
|
1127
1130
|
for (var n in o)
|
|
1128
1131
|
o.hasOwnProperty(n) && (i[n] = o[n]);
|
|
1129
|
-
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[
|
|
1132
|
+
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[w2]._onDragOver(i);
|
|
1130
1133
|
}
|
|
1131
1134
|
}
|
|
1132
|
-
},
|
|
1133
|
-
A && A.parentNode[
|
|
1135
|
+
}, E4 = function(o) {
|
|
1136
|
+
A && A.parentNode[w2]._isOutsideThisEl(o.target);
|
|
1134
1137
|
};
|
|
1135
1138
|
function U(r, o) {
|
|
1136
1139
|
if (!(r && r.nodeType && r.nodeType === 1))
|
|
1137
1140
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));
|
|
1138
|
-
this.el = r, this.options = o =
|
|
1141
|
+
this.el = r, this.options = o = R2({}, o), r[w2] = this;
|
|
1139
1142
|
var e = {
|
|
1140
1143
|
group: null,
|
|
1141
1144
|
sort: !0,
|
|
@@ -1151,7 +1154,7 @@ function U(r, o) {
|
|
|
1151
1154
|
// will be set to same as swapThreshold if default
|
|
1152
1155
|
removeCloneOnHide: !0,
|
|
1153
1156
|
direction: function() {
|
|
1154
|
-
return
|
|
1157
|
+
return b0(r, this.options);
|
|
1155
1158
|
},
|
|
1156
1159
|
ghostClass: "sortable-ghost",
|
|
1157
1160
|
chosenClass: "sortable-chosen",
|
|
@@ -1184,16 +1187,16 @@ function U(r, o) {
|
|
|
1184
1187
|
$3.initializePlugins(this, r, e);
|
|
1185
1188
|
for (var i in e)
|
|
1186
1189
|
!(i in o) && (o[i] = e[i]);
|
|
1187
|
-
|
|
1190
|
+
x0(o);
|
|
1188
1191
|
for (var n in this)
|
|
1189
1192
|
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
1190
|
-
this.nativeDraggable = o.forceFallback ? !1 :
|
|
1193
|
+
this.nativeDraggable = o.forceFallback ? !1 : z4, this.nativeDraggable && (this.options.touchStartThreshold = 1), o.supportPointer ? q(r, "pointerdown", this._onTapStart) : (q(r, "mousedown", this._onTapStart), q(r, "touchstart", this._onTapStart)), this.nativeDraggable && (q(r, "dragover", this), q(r, "dragenter", this)), d1.push(this.el), o.store && o.store.get && this.sort(o.store.get(this) || []), R2(this, p4());
|
|
1191
1194
|
}
|
|
1192
1195
|
U.prototype = /** @lends Sortable.prototype */
|
|
1193
1196
|
{
|
|
1194
1197
|
constructor: U,
|
|
1195
1198
|
_isOutsideThisEl: function(o) {
|
|
1196
|
-
!this.el.contains(o) && o !== this.el && (
|
|
1199
|
+
!this.el.contains(o) && o !== this.el && (u3 = null);
|
|
1197
1200
|
},
|
|
1198
1201
|
_getDirection: function(o, e) {
|
|
1199
1202
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, o, e, A) : this.options.direction;
|
|
@@ -1201,38 +1204,38 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1201
1204
|
_onTapStart: function(o) {
|
|
1202
1205
|
if (o.cancelable) {
|
|
1203
1206
|
var e = this, i = this.el, n = this.options, s = n.preventOnFilter, t = o.type, a = o.touches && o.touches[0] || o.pointerType && o.pointerType === "touch" && o, l = (a || o).target, c = o.target.shadowRoot && (o.path && o.path[0] || o.composedPath && o.composedPath()[0]) || l, d = n.filter;
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1207
|
+
if (T4(i), !A && !(/mousedown|pointerdown/.test(t) && o.button !== 0 || n.disabled) && !c.isContentEditable && !(!this.nativeDraggable && D3 && l && l.tagName.toUpperCase() === "SELECT") && (l = K2(l, n.draggable, i, !1), !(l && l.animated) && o1 !== l)) {
|
|
1208
|
+
if (m3 = p2(l), R3 = p2(l, n.draggable), typeof d == "function") {
|
|
1206
1209
|
if (d.call(this, o, l, this)) {
|
|
1207
|
-
|
|
1210
|
+
V2({
|
|
1208
1211
|
sortable: e,
|
|
1209
1212
|
rootEl: c,
|
|
1210
1213
|
name: "filter",
|
|
1211
1214
|
targetEl: l,
|
|
1212
1215
|
toEl: i,
|
|
1213
1216
|
fromEl: i
|
|
1214
|
-
}),
|
|
1217
|
+
}), L2("filter", e, {
|
|
1215
1218
|
evt: o
|
|
1216
1219
|
}), s && o.cancelable && o.preventDefault();
|
|
1217
1220
|
return;
|
|
1218
1221
|
}
|
|
1219
1222
|
} else if (d && (d = d.split(",").some(function(f) {
|
|
1220
|
-
if (f =
|
|
1221
|
-
return
|
|
1223
|
+
if (f = K2(c, f.trim(), i, !1), f)
|
|
1224
|
+
return V2({
|
|
1222
1225
|
sortable: e,
|
|
1223
1226
|
rootEl: f,
|
|
1224
1227
|
name: "filter",
|
|
1225
1228
|
targetEl: l,
|
|
1226
1229
|
fromEl: i,
|
|
1227
1230
|
toEl: i
|
|
1228
|
-
}),
|
|
1231
|
+
}), L2("filter", e, {
|
|
1229
1232
|
evt: o
|
|
1230
1233
|
}), !0;
|
|
1231
1234
|
}), d)) {
|
|
1232
1235
|
s && o.cancelable && o.preventDefault();
|
|
1233
1236
|
return;
|
|
1234
1237
|
}
|
|
1235
|
-
n.handle &&
|
|
1238
|
+
n.handle && !K2(c, n.handle, i, !1) || this._prepareDragStart(o, a, l);
|
|
1236
1239
|
}
|
|
1237
1240
|
}
|
|
1238
1241
|
},
|
|
@@ -1240,27 +1243,27 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1240
1243
|
var n = this, s = n.el, t = n.options, a = s.ownerDocument, l;
|
|
1241
1244
|
if (i && !A && i.parentNode === s) {
|
|
1242
1245
|
var c = d2(i);
|
|
1243
|
-
if (c2 = s, A = i,
|
|
1246
|
+
if (c2 = s, A = i, m2 = A.parentNode, l3 = A.nextSibling, o1 = i, J3 = t.group, U.dragged = A, a3 = {
|
|
1244
1247
|
target: A,
|
|
1245
1248
|
clientX: (e || o).clientX,
|
|
1246
1249
|
clientY: (e || o).clientY
|
|
1247
|
-
},
|
|
1248
|
-
if (
|
|
1250
|
+
}, k1 = a3.clientX - c.left, q1 = a3.clientY - c.top, this._lastX = (e || o).clientX, this._lastY = (e || o).clientY, A.style["will-change"] = "all", l = function() {
|
|
1251
|
+
if (L2("delayEnded", n, {
|
|
1249
1252
|
evt: o
|
|
1250
1253
|
}), U.eventCanceled) {
|
|
1251
1254
|
n._onDrop();
|
|
1252
1255
|
return;
|
|
1253
1256
|
}
|
|
1254
|
-
n._disableDelayedDragEvents(), !
|
|
1257
|
+
n._disableDelayedDragEvents(), !X1 && n.nativeDraggable && (A.draggable = !0), n._triggerDragStart(o, e), V2({
|
|
1255
1258
|
sortable: n,
|
|
1256
1259
|
name: "choose",
|
|
1257
1260
|
originalEvent: o
|
|
1258
|
-
}),
|
|
1261
|
+
}), u2(A, t.chosenClass, !0);
|
|
1259
1262
|
}, t.ignore.split(",").forEach(function(d) {
|
|
1260
|
-
|
|
1261
|
-
}), q(a, "dragover", i3), q(a, "mousemove", i3), q(a, "touchmove", i3), q(a, "mouseup", n._onDrop), q(a, "touchend", n._onDrop), q(a, "touchcancel", n._onDrop),
|
|
1263
|
+
m0(A, d.trim(), M1);
|
|
1264
|
+
}), q(a, "dragover", i3), q(a, "mousemove", i3), q(a, "touchmove", i3), q(a, "mouseup", n._onDrop), q(a, "touchend", n._onDrop), q(a, "touchcancel", n._onDrop), X1 && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), L2("delayStart", this, {
|
|
1262
1265
|
evt: o
|
|
1263
|
-
}), t.delay && (!t.delayOnTouchOnly || e) && (!this.nativeDraggable || !(j3 ||
|
|
1266
|
+
}), t.delay && (!t.delayOnTouchOnly || e) && (!this.nativeDraggable || !(j3 || t3))) {
|
|
1264
1267
|
if (U.eventCanceled) {
|
|
1265
1268
|
this._onDrop();
|
|
1266
1269
|
return;
|
|
@@ -1291,12 +1294,12 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1291
1294
|
}
|
|
1292
1295
|
},
|
|
1293
1296
|
_dragStarted: function(o, e) {
|
|
1294
|
-
if (
|
|
1295
|
-
|
|
1297
|
+
if (h3 = !1, c2 && A) {
|
|
1298
|
+
L2("dragStarted", this, {
|
|
1296
1299
|
evt: e
|
|
1297
|
-
}), this.nativeDraggable && q(document, "dragover",
|
|
1300
|
+
}), this.nativeDraggable && q(document, "dragover", E4);
|
|
1298
1301
|
var i = this.options;
|
|
1299
|
-
!o &&
|
|
1302
|
+
!o && u2(A, i.dragClass, !1), u2(A, i.ghostClass, !0), U.active = this, o && this._appendGhost(), V2({
|
|
1300
1303
|
sortable: this,
|
|
1301
1304
|
name: "start",
|
|
1302
1305
|
originalEvent: e
|
|
@@ -1305,17 +1308,17 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1305
1308
|
this._nulling();
|
|
1306
1309
|
},
|
|
1307
1310
|
_emulateDragOver: function() {
|
|
1308
|
-
if (
|
|
1309
|
-
this._lastX =
|
|
1310
|
-
for (var o = document.elementFromPoint(
|
|
1311
|
+
if (N2) {
|
|
1312
|
+
this._lastX = N2.clientX, this._lastY = N2.clientY, z0();
|
|
1313
|
+
for (var o = document.elementFromPoint(N2.clientX, N2.clientY), e = o; o && o.shadowRoot && (o = o.shadowRoot.elementFromPoint(N2.clientX, N2.clientY), o !== e); )
|
|
1311
1314
|
e = o;
|
|
1312
|
-
if (A.parentNode[
|
|
1315
|
+
if (A.parentNode[w2]._isOutsideThisEl(o), e)
|
|
1313
1316
|
do {
|
|
1314
|
-
if (e[
|
|
1317
|
+
if (e[w2]) {
|
|
1315
1318
|
var i = void 0;
|
|
1316
|
-
if (i = e[
|
|
1317
|
-
clientX:
|
|
1318
|
-
clientY:
|
|
1319
|
+
if (i = e[w2]._onDragOver({
|
|
1320
|
+
clientX: N2.clientX,
|
|
1321
|
+
clientY: N2.clientY,
|
|
1319
1322
|
target: o,
|
|
1320
1323
|
rootEl: e
|
|
1321
1324
|
}), i && !this.options.dragoverBubble)
|
|
@@ -1323,18 +1326,18 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1323
1326
|
}
|
|
1324
1327
|
o = e;
|
|
1325
1328
|
} while (e = e.parentNode);
|
|
1326
|
-
|
|
1329
|
+
S0();
|
|
1327
1330
|
}
|
|
1328
1331
|
},
|
|
1329
1332
|
_onTouchMove: function(o) {
|
|
1330
1333
|
if (a3) {
|
|
1331
|
-
var e = this.options, i = e.fallbackTolerance, n = e.fallbackOffset, s = o.touches ? o.touches[0] : o, t =
|
|
1332
|
-
if (!U.active && !
|
|
1334
|
+
var e = this.options, i = e.fallbackTolerance, n = e.fallbackOffset, s = o.touches ? o.touches[0] : o, t = Y && c3(Y, !0), a = Y && t && t.a, l = Y && t && t.d, c = k3 && C2 && J1(C2), d = (s.clientX - a3.clientX + n.x) / (a || 1) + (c ? c[0] - S1[0] : 0) / (a || 1), f = (s.clientY - a3.clientY + n.y) / (l || 1) + (c ? c[1] - S1[1] : 0) / (l || 1);
|
|
1335
|
+
if (!U.active && !h3) {
|
|
1333
1336
|
if (i && Math.max(Math.abs(s.clientX - this._lastX), Math.abs(s.clientY - this._lastY)) < i)
|
|
1334
1337
|
return;
|
|
1335
1338
|
this._onDragStart(o, !0);
|
|
1336
1339
|
}
|
|
1337
|
-
if (
|
|
1340
|
+
if (Y) {
|
|
1338
1341
|
t ? (t.e += d - (x1 || 0), t.f += f - (z1 || 0)) : t = {
|
|
1339
1342
|
a: 1,
|
|
1340
1343
|
b: 0,
|
|
@@ -1344,44 +1347,44 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1344
1347
|
f
|
|
1345
1348
|
};
|
|
1346
1349
|
var u = "matrix(".concat(t.a, ",").concat(t.b, ",").concat(t.c, ",").concat(t.d, ",").concat(t.e, ",").concat(t.f, ")");
|
|
1347
|
-
B(
|
|
1350
|
+
B(Y, "webkitTransform", u), B(Y, "mozTransform", u), B(Y, "msTransform", u), B(Y, "transform", u), x1 = d, z1 = f, N2 = s;
|
|
1348
1351
|
}
|
|
1349
1352
|
o.cancelable && o.preventDefault();
|
|
1350
1353
|
}
|
|
1351
1354
|
},
|
|
1352
1355
|
_appendGhost: function() {
|
|
1353
|
-
if (!
|
|
1356
|
+
if (!Y) {
|
|
1354
1357
|
var o = this.options.fallbackOnBody ? document.body : c2, e = d2(A, !0, k3, !0, o), i = this.options;
|
|
1355
1358
|
if (k3) {
|
|
1356
|
-
for (
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
+
for (C2 = o; B(C2, "position") === "static" && B(C2, "transform") === "none" && C2 !== document; )
|
|
1360
|
+
C2 = C2.parentNode;
|
|
1361
|
+
C2 !== document.body && C2 !== document.documentElement ? (C2 === document && (C2 = W2()), e.top += C2.scrollTop, e.left += C2.scrollLeft) : C2 = W2(), S1 = J1(C2);
|
|
1359
1362
|
}
|
|
1360
|
-
|
|
1363
|
+
Y = A.cloneNode(!0), u2(Y, i.ghostClass, !1), u2(Y, i.fallbackClass, !0), u2(Y, i.dragClass, !0), B(Y, "transition", ""), B(Y, "transform", ""), B(Y, "box-sizing", "border-box"), B(Y, "margin", 0), B(Y, "top", e.top), B(Y, "left", e.left), B(Y, "width", e.width), B(Y, "height", e.height), B(Y, "opacity", "0.8"), B(Y, "position", k3 ? "absolute" : "fixed"), B(Y, "zIndex", "100000"), B(Y, "pointerEvents", "none"), U.ghost = Y, o.appendChild(Y), B(Y, "transform-origin", k1 / parseInt(Y.style.width) * 100 + "% " + q1 / parseInt(Y.style.height) * 100 + "%");
|
|
1361
1364
|
}
|
|
1362
1365
|
},
|
|
1363
1366
|
_onDragStart: function(o, e) {
|
|
1364
1367
|
var i = this, n = o.dataTransfer, s = i.options;
|
|
1365
|
-
if (
|
|
1368
|
+
if (L2("dragStart", this, {
|
|
1366
1369
|
evt: o
|
|
1367
1370
|
}), U.eventCanceled) {
|
|
1368
1371
|
this._onDrop();
|
|
1369
1372
|
return;
|
|
1370
1373
|
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1374
|
+
L2("setupClone", this), U.eventCanceled || (g2 = R1(A), g2.draggable = !1, g2.style["will-change"] = "", this._hideClone(), u2(g2, this.options.chosenClass, !1), U.clone = g2), i.cloneId = a1(function() {
|
|
1375
|
+
L2("clone", i), !U.eventCanceled && (i.options.removeCloneOnHide || c2.insertBefore(g2, A), i._hideClone(), V2({
|
|
1373
1376
|
sortable: i,
|
|
1374
1377
|
name: "clone"
|
|
1375
1378
|
}));
|
|
1376
|
-
}), !e &&
|
|
1379
|
+
}), !e && u2(A, s.dragClass, !0), e ? (c1 = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (k(document, "mouseup", i._onDrop), k(document, "touchend", i._onDrop), k(document, "touchcancel", i._onDrop), n && (n.effectAllowed = "move", s.setData && s.setData.call(i, n, A)), q(document, "drop", i), B(A, "transform", "translateZ(0)")), h3 = !0, i._dragStartId = a1(i._dragStarted.bind(i, e, o)), q(document, "selectstart", i), A3 = !0, D3 && B(document.body, "user-select", "none");
|
|
1377
1380
|
},
|
|
1378
1381
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1379
1382
|
_onDragOver: function(o) {
|
|
1380
|
-
var e = this.el, i = o.target, n, s, t, a = this.options, l = a.group, c = U.active, d = J3 === l, f = a.sort, u =
|
|
1383
|
+
var e = this.el, i = o.target, n, s, t, a = this.options, l = a.group, c = U.active, d = J3 === l, f = a.sort, u = E2 || c, v, h = this, m = !1;
|
|
1381
1384
|
if (A1)
|
|
1382
1385
|
return;
|
|
1383
1386
|
function g(Q, n2) {
|
|
1384
|
-
|
|
1387
|
+
L2(Q, h, X2({
|
|
1385
1388
|
evt: o,
|
|
1386
1389
|
isOwner: d,
|
|
1387
1390
|
axis: v ? "vertical" : "horizontal",
|
|
@@ -1392,8 +1395,8 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1392
1395
|
fromSortable: u,
|
|
1393
1396
|
target: i,
|
|
1394
1397
|
completed: y,
|
|
1395
|
-
onMove: function(
|
|
1396
|
-
return q3(c2, e, A, n,
|
|
1398
|
+
onMove: function(l2, s2) {
|
|
1399
|
+
return q3(c2, e, A, n, l2, d2(l2), o, s2);
|
|
1397
1400
|
},
|
|
1398
1401
|
changed: C
|
|
1399
1402
|
}, n2));
|
|
@@ -1404,60 +1407,60 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1404
1407
|
function y(Q) {
|
|
1405
1408
|
return g("dragOverCompleted", {
|
|
1406
1409
|
insertion: Q
|
|
1407
|
-
}), Q && (d ? c._hideClone() : c._showClone(h), h !== u && (
|
|
1410
|
+
}), Q && (d ? c._hideClone() : c._showClone(h), h !== u && (u2(A, E2 ? E2.options.ghostClass : c.options.ghostClass, !1), u2(A, a.ghostClass, !0)), E2 !== h && h !== U.active ? E2 = h : h === U.active && E2 && (E2 = null), u === h && (h._ignoreWhileAnimating = i), h.animateAll(function() {
|
|
1408
1411
|
g("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
1409
|
-
}), h !== u && (u.animateAll(), u._ignoreWhileAnimating = null)), (i === A && !A.animated || i === e && !i.animated) && (
|
|
1412
|
+
}), h !== u && (u.animateAll(), u._ignoreWhileAnimating = null)), (i === A && !A.animated || i === e && !i.animated) && (u3 = null), !a.dragoverBubble && !o.rootEl && i !== document && (A.parentNode[w2]._isOutsideThisEl(o.target), !Q && i3(o)), !a.dragoverBubble && o.stopPropagation && o.stopPropagation(), m = !0;
|
|
1410
1413
|
}
|
|
1411
1414
|
function C() {
|
|
1412
|
-
|
|
1415
|
+
D2 = p2(A), n3 = p2(A, a.draggable), V2({
|
|
1413
1416
|
sortable: h,
|
|
1414
1417
|
name: "change",
|
|
1415
1418
|
toEl: e,
|
|
1416
|
-
newIndex:
|
|
1417
|
-
newDraggableIndex:
|
|
1419
|
+
newIndex: D2,
|
|
1420
|
+
newDraggableIndex: n3,
|
|
1418
1421
|
originalEvent: o
|
|
1419
1422
|
});
|
|
1420
1423
|
}
|
|
1421
|
-
if (o.preventDefault !== void 0 && o.cancelable && o.preventDefault(), i =
|
|
1424
|
+
if (o.preventDefault !== void 0 && o.cancelable && o.preventDefault(), i = K2(i, a.draggable, e, !0), g("dragOver"), U.eventCanceled)
|
|
1422
1425
|
return m;
|
|
1423
1426
|
if (A.contains(o.target) || i.animated && i.animatingX && i.animatingY || h._ignoreWhileAnimating === i)
|
|
1424
1427
|
return y(!1);
|
|
1425
|
-
if (c1 = !1, c && !a.disabled && (d ? f || (t =
|
|
1428
|
+
if (c1 = !1, c && !a.disabled && (d ? f || (t = m2 !== c2) : E2 === this || (this.lastPutMode = J3.checkPull(this, c, A, o)) && l.checkPut(this, c, A, o))) {
|
|
1426
1429
|
if (v = this._getDirection(o, i) === "vertical", n = d2(A), g("dragOverValid"), U.eventCanceled)
|
|
1427
1430
|
return m;
|
|
1428
1431
|
if (t)
|
|
1429
|
-
return
|
|
1432
|
+
return m2 = c2, p(), this._hideClone(), g("revert"), U.eventCanceled || (l3 ? c2.insertBefore(A, l3) : c2.appendChild(A)), y(!0);
|
|
1430
1433
|
var S = P1(e, a.draggable);
|
|
1431
|
-
if (!S ||
|
|
1434
|
+
if (!S || V4(o, v, this) && !S.animated) {
|
|
1432
1435
|
if (S === A)
|
|
1433
1436
|
return y(!1);
|
|
1434
1437
|
if (S && e === o.target && (i = S), i && (s = d2(i)), q3(c2, e, A, n, i, s, o, !!i) !== !1)
|
|
1435
|
-
return p(), e.appendChild(A),
|
|
1436
|
-
} else if (S &&
|
|
1438
|
+
return p(), e.appendChild(A), m2 = e, C(), y(!0);
|
|
1439
|
+
} else if (S && H4(o, v, this)) {
|
|
1437
1440
|
var w = p3(e, 0, a, !0);
|
|
1438
1441
|
if (w === A)
|
|
1439
1442
|
return y(!1);
|
|
1440
1443
|
if (i = w, s = d2(i), q3(c2, e, A, n, i, s, o, !1) !== !1)
|
|
1441
|
-
return p(), e.insertBefore(A, w),
|
|
1444
|
+
return p(), e.insertBefore(A, w), m2 = e, C(), y(!0);
|
|
1442
1445
|
} else if (i.parentNode === e) {
|
|
1443
1446
|
s = d2(i);
|
|
1444
|
-
var M = 0, D, P = A.parentNode !== e, E = !
|
|
1445
|
-
|
|
1447
|
+
var M = 0, D, P = A.parentNode !== e, E = !S4(A.animated && A.toRect || n, i.animated && i.toRect || s, v), T = v ? "top" : "left", I = Z1(i, "top", "top") || Z1(A, "top", "top"), $ = I ? I.scrollTop : void 0;
|
|
1448
|
+
u3 !== i && (D = s[T], F3 = !1, Q3 = !E && a.invertSwap || P), M = O4(o, i, s, v, E ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Q3, u3 === i);
|
|
1446
1449
|
var V;
|
|
1447
1450
|
if (M !== 0) {
|
|
1448
|
-
var O =
|
|
1451
|
+
var O = p2(A);
|
|
1449
1452
|
do
|
|
1450
|
-
O -= M, V =
|
|
1451
|
-
while (V && (B(V, "display") === "none" || V ===
|
|
1453
|
+
O -= M, V = m2.children[O];
|
|
1454
|
+
while (V && (B(V, "display") === "none" || V === Y));
|
|
1452
1455
|
}
|
|
1453
1456
|
if (M === 0 || V === i)
|
|
1454
1457
|
return y(!1);
|
|
1455
|
-
|
|
1456
|
-
var
|
|
1458
|
+
u3 = i, B3 = M;
|
|
1459
|
+
var j = i.nextElementSibling, L = !1;
|
|
1457
1460
|
L = M === 1;
|
|
1458
1461
|
var N = q3(c2, e, A, n, i, s, o, L);
|
|
1459
1462
|
if (N !== !1)
|
|
1460
|
-
return (N === 1 || N === -1) && (L = N === 1), A1 = !0, setTimeout(
|
|
1463
|
+
return (N === 1 || N === -1) && (L = N === 1), A1 = !0, setTimeout(w4, 30), p(), L && !j ? e.appendChild(A) : i.parentNode.insertBefore(A, L ? j : i), I && p0(I, 0, $ - I.scrollTop), m2 = A.parentNode, D !== void 0 && !Q3 && (r1 = Math.abs(D - d2(i)[T])), C(), y(!0);
|
|
1461
1464
|
}
|
|
1462
1465
|
if (e.contains(A))
|
|
1463
1466
|
return y(!1);
|
|
@@ -1474,60 +1477,60 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1474
1477
|
},
|
|
1475
1478
|
_onDrop: function(o) {
|
|
1476
1479
|
var e = this.el, i = this.options;
|
|
1477
|
-
if (
|
|
1480
|
+
if (D2 = p2(A), n3 = p2(A, i.draggable), L2("drop", this, {
|
|
1478
1481
|
evt: o
|
|
1479
|
-
}),
|
|
1482
|
+
}), m2 = A && A.parentNode, D2 = p2(A), n3 = p2(A, i.draggable), U.eventCanceled) {
|
|
1480
1483
|
this._nulling();
|
|
1481
1484
|
return;
|
|
1482
1485
|
}
|
|
1483
|
-
|
|
1486
|
+
h3 = !1, Q3 = !1, F3 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), L1(this.cloneId), L1(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), D3 && B(document.body, "user-select", ""), B(A, "transform", ""), o && (A3 && (o.cancelable && o.preventDefault(), !i.dropBubble && o.stopPropagation()), Y && Y.parentNode && Y.parentNode.removeChild(Y), (c2 === m2 || E2 && E2.lastPutMode !== "clone") && g2 && g2.parentNode && g2.parentNode.removeChild(g2), A && (this.nativeDraggable && k(A, "dragend", this), M1(A), A.style["will-change"] = "", A3 && !h3 && u2(A, E2 ? E2.options.ghostClass : this.options.ghostClass, !1), u2(A, this.options.chosenClass, !1), V2({
|
|
1484
1487
|
sortable: this,
|
|
1485
1488
|
name: "unchoose",
|
|
1486
|
-
toEl:
|
|
1489
|
+
toEl: m2,
|
|
1487
1490
|
newIndex: null,
|
|
1488
1491
|
newDraggableIndex: null,
|
|
1489
1492
|
originalEvent: o
|
|
1490
|
-
}), c2 !==
|
|
1491
|
-
rootEl:
|
|
1493
|
+
}), c2 !== m2 ? (D2 >= 0 && (V2({
|
|
1494
|
+
rootEl: m2,
|
|
1492
1495
|
name: "add",
|
|
1493
|
-
toEl:
|
|
1496
|
+
toEl: m2,
|
|
1494
1497
|
fromEl: c2,
|
|
1495
1498
|
originalEvent: o
|
|
1496
|
-
}),
|
|
1499
|
+
}), V2({
|
|
1497
1500
|
sortable: this,
|
|
1498
1501
|
name: "remove",
|
|
1499
|
-
toEl:
|
|
1502
|
+
toEl: m2,
|
|
1500
1503
|
originalEvent: o
|
|
1501
|
-
}),
|
|
1502
|
-
rootEl:
|
|
1504
|
+
}), V2({
|
|
1505
|
+
rootEl: m2,
|
|
1503
1506
|
name: "sort",
|
|
1504
|
-
toEl:
|
|
1507
|
+
toEl: m2,
|
|
1505
1508
|
fromEl: c2,
|
|
1506
1509
|
originalEvent: o
|
|
1507
|
-
}),
|
|
1510
|
+
}), V2({
|
|
1508
1511
|
sortable: this,
|
|
1509
1512
|
name: "sort",
|
|
1510
|
-
toEl:
|
|
1513
|
+
toEl: m2,
|
|
1511
1514
|
originalEvent: o
|
|
1512
|
-
})),
|
|
1515
|
+
})), E2 && E2.save()) : D2 !== m3 && D2 >= 0 && (V2({
|
|
1513
1516
|
sortable: this,
|
|
1514
1517
|
name: "update",
|
|
1515
|
-
toEl:
|
|
1518
|
+
toEl: m2,
|
|
1516
1519
|
originalEvent: o
|
|
1517
|
-
}),
|
|
1520
|
+
}), V2({
|
|
1518
1521
|
sortable: this,
|
|
1519
1522
|
name: "sort",
|
|
1520
|
-
toEl:
|
|
1523
|
+
toEl: m2,
|
|
1521
1524
|
originalEvent: o
|
|
1522
|
-
})), U.active && ((
|
|
1525
|
+
})), U.active && ((D2 == null || D2 === -1) && (D2 = m3, n3 = R3), V2({
|
|
1523
1526
|
sortable: this,
|
|
1524
1527
|
name: "end",
|
|
1525
|
-
toEl:
|
|
1528
|
+
toEl: m2,
|
|
1526
1529
|
originalEvent: o
|
|
1527
1530
|
}), this.save()))), this._nulling();
|
|
1528
1531
|
},
|
|
1529
1532
|
_nulling: function() {
|
|
1530
|
-
|
|
1533
|
+
L2("nulling", this), c2 = A = m2 = Y = l3 = g2 = o1 = o3 = a3 = N2 = A3 = D2 = n3 = m3 = R3 = u3 = B3 = E2 = J3 = U.dragged = U.ghost = U.clone = U.active = null, f1.forEach(function(o) {
|
|
1531
1534
|
o.checked = !0;
|
|
1532
1535
|
}), f1.length = x1 = z1 = 0;
|
|
1533
1536
|
},
|
|
@@ -1539,7 +1542,7 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1539
1542
|
break;
|
|
1540
1543
|
case "dragenter":
|
|
1541
1544
|
case "dragover":
|
|
1542
|
-
A && (this._onDragOver(o),
|
|
1545
|
+
A && (this._onDragOver(o), C4(o));
|
|
1543
1546
|
break;
|
|
1544
1547
|
case "selectstart":
|
|
1545
1548
|
o.preventDefault();
|
|
@@ -1552,7 +1555,7 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1552
1555
|
*/
|
|
1553
1556
|
toArray: function() {
|
|
1554
1557
|
for (var o = [], e, i = this.el.children, n = 0, s = i.length, t = this.options; n < s; n++)
|
|
1555
|
-
e = i[n],
|
|
1558
|
+
e = i[n], K2(e, t.draggable, this.el, !1) && o.push(e.getAttribute(t.dataIdAttr) || L4(e));
|
|
1556
1559
|
return o;
|
|
1557
1560
|
},
|
|
1558
1561
|
/**
|
|
@@ -1563,7 +1566,7 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1563
1566
|
var i = {}, n = this.el;
|
|
1564
1567
|
this.toArray().forEach(function(s, t) {
|
|
1565
1568
|
var a = n.children[t];
|
|
1566
|
-
|
|
1569
|
+
K2(a, this.options.draggable, n, !1) && (i[s] = a);
|
|
1567
1570
|
}, this), e && this.captureAnimationState(), o.forEach(function(s) {
|
|
1568
1571
|
i[s] && (n.removeChild(i[s]), n.appendChild(i[s]));
|
|
1569
1572
|
}), e && this.animateAll();
|
|
@@ -1582,7 +1585,7 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1582
1585
|
* @returns {HTMLElement|null}
|
|
1583
1586
|
*/
|
|
1584
1587
|
closest: function(o, e) {
|
|
1585
|
-
return
|
|
1588
|
+
return K2(o, e || this.options.draggable, this.el, !1);
|
|
1586
1589
|
},
|
|
1587
1590
|
/**
|
|
1588
1591
|
* Set/get option
|
|
@@ -1595,23 +1598,23 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1595
1598
|
if (e === void 0)
|
|
1596
1599
|
return i[o];
|
|
1597
1600
|
var n = $3.modifyOption(this, o, e);
|
|
1598
|
-
typeof n < "u" ? i[o] = n : i[o] = e, o === "group" &&
|
|
1601
|
+
typeof n < "u" ? i[o] = n : i[o] = e, o === "group" && x0(i);
|
|
1599
1602
|
},
|
|
1600
1603
|
/**
|
|
1601
1604
|
* Destroy
|
|
1602
1605
|
*/
|
|
1603
1606
|
destroy: function() {
|
|
1604
|
-
|
|
1607
|
+
L2("destroy", this);
|
|
1605
1608
|
var o = this.el;
|
|
1606
|
-
o[
|
|
1609
|
+
o[w2] = null, k(o, "mousedown", this._onTapStart), k(o, "touchstart", this._onTapStart), k(o, "pointerdown", this._onTapStart), this.nativeDraggable && (k(o, "dragover", this), k(o, "dragenter", this)), Array.prototype.forEach.call(o.querySelectorAll("[draggable]"), function(e) {
|
|
1607
1610
|
e.removeAttribute("draggable");
|
|
1608
1611
|
}), this._onDrop(), this._disableDelayedDragEvents(), d1.splice(d1.indexOf(this.el), 1), this.el = o = null;
|
|
1609
1612
|
},
|
|
1610
1613
|
_hideClone: function() {
|
|
1611
|
-
if (!
|
|
1612
|
-
if (
|
|
1614
|
+
if (!o3) {
|
|
1615
|
+
if (L2("hideClone", this), U.eventCanceled)
|
|
1613
1616
|
return;
|
|
1614
|
-
B(
|
|
1617
|
+
B(g2, "display", "none"), this.options.removeCloneOnHide && g2.parentNode && g2.parentNode.removeChild(g2), o3 = !0;
|
|
1615
1618
|
}
|
|
1616
1619
|
},
|
|
1617
1620
|
_showClone: function(o) {
|
|
@@ -1619,19 +1622,19 @@ U.prototype = /** @lends Sortable.prototype */
|
|
|
1619
1622
|
this._hideClone();
|
|
1620
1623
|
return;
|
|
1621
1624
|
}
|
|
1622
|
-
if (
|
|
1623
|
-
if (
|
|
1625
|
+
if (o3) {
|
|
1626
|
+
if (L2("showClone", this), U.eventCanceled)
|
|
1624
1627
|
return;
|
|
1625
|
-
A.parentNode == c2 && !this.options.group.revertClone ? c2.insertBefore(
|
|
1628
|
+
A.parentNode == c2 && !this.options.group.revertClone ? c2.insertBefore(g2, A) : l3 ? c2.insertBefore(g2, l3) : c2.appendChild(g2), this.options.group.revertClone && this.animate(A, g2), B(g2, "display", ""), o3 = !1;
|
|
1626
1629
|
}
|
|
1627
1630
|
}
|
|
1628
1631
|
};
|
|
1629
|
-
function
|
|
1632
|
+
function C4(r) {
|
|
1630
1633
|
r.dataTransfer && (r.dataTransfer.dropEffect = "move"), r.cancelable && r.preventDefault();
|
|
1631
1634
|
}
|
|
1632
1635
|
function q3(r, o, e, i, n, s, t, a) {
|
|
1633
|
-
var l, c = r[
|
|
1634
|
-
return window.CustomEvent && !
|
|
1636
|
+
var l, c = r[w2], d = c.options.onMove, f;
|
|
1637
|
+
return window.CustomEvent && !t3 && !j3 ? l = new CustomEvent("move", {
|
|
1635
1638
|
bubbles: !0,
|
|
1636
1639
|
cancelable: !0
|
|
1637
1640
|
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = o, l.from = r, l.dragged = e, l.draggedRect = i, l.related = n || o, l.relatedRect = s || d2(o), l.willInsertAfter = a, l.originalEvent = t, r.dispatchEvent(l), d && (f = d.call(c, l, t)), f;
|
|
@@ -1639,18 +1642,18 @@ function q3(r, o, e, i, n, s, t, a) {
|
|
|
1639
1642
|
function M1(r) {
|
|
1640
1643
|
r.draggable = !1;
|
|
1641
1644
|
}
|
|
1642
|
-
function
|
|
1645
|
+
function w4() {
|
|
1643
1646
|
A1 = !1;
|
|
1644
1647
|
}
|
|
1645
|
-
function
|
|
1648
|
+
function H4(r, o, e) {
|
|
1646
1649
|
var i = d2(p3(e.el, 0, e.options, !0)), n = 10;
|
|
1647
1650
|
return o ? r.clientX < i.left - n || r.clientY < i.top && r.clientX < i.right : r.clientY < i.top - n || r.clientY < i.bottom && r.clientX < i.left;
|
|
1648
1651
|
}
|
|
1649
|
-
function
|
|
1652
|
+
function V4(r, o, e) {
|
|
1650
1653
|
var i = d2(P1(e.el, e.options.draggable)), n = 10;
|
|
1651
1654
|
return o ? r.clientX > i.right + n || r.clientX <= i.right && r.clientY > i.bottom && r.clientX >= i.left : r.clientX > i.right && r.clientY > i.top || r.clientX <= i.right && r.clientY > i.bottom + n;
|
|
1652
1655
|
}
|
|
1653
|
-
function
|
|
1656
|
+
function O4(r, o, e, i, n, s, t, a) {
|
|
1654
1657
|
var l = i ? r.clientY : r.clientX, c = i ? e.height : e.width, d = i ? e.top : e.left, f = i ? e.bottom : e.right, u = !1;
|
|
1655
1658
|
if (!t) {
|
|
1656
1659
|
if (a && r1 < c * n) {
|
|
@@ -1659,19 +1662,19 @@ function A4(r, o, e, i, n, s, t, a) {
|
|
|
1659
1662
|
else if (B3 === 1 ? l < d + r1 : l > f - r1)
|
|
1660
1663
|
return -B3;
|
|
1661
1664
|
} else if (l > d + c * (1 - n) / 2 && l < f - c * (1 - n) / 2)
|
|
1662
|
-
return
|
|
1665
|
+
return A4(o);
|
|
1663
1666
|
}
|
|
1664
1667
|
return u = u || t, u && (l < d + c * s / 2 || l > f - c * s / 2) ? l > d + c / 2 ? 1 : -1 : 0;
|
|
1665
1668
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return
|
|
1669
|
+
function A4(r) {
|
|
1670
|
+
return p2(A) < p2(r) ? 1 : -1;
|
|
1668
1671
|
}
|
|
1669
|
-
function
|
|
1672
|
+
function L4(r) {
|
|
1670
1673
|
for (var o = r.tagName + r.className + r.src + r.href + r.textContent, e = o.length, i = 0; e--; )
|
|
1671
1674
|
i += o.charCodeAt(e);
|
|
1672
1675
|
return i.toString(36);
|
|
1673
1676
|
}
|
|
1674
|
-
function
|
|
1677
|
+
function T4(r) {
|
|
1675
1678
|
f1.length = 0;
|
|
1676
1679
|
for (var o = r.getElementsByTagName("input"), e = o.length; e--; ) {
|
|
1677
1680
|
var i = o[e];
|
|
@@ -1685,29 +1688,29 @@ function L1(r) {
|
|
|
1685
1688
|
return clearTimeout(r);
|
|
1686
1689
|
}
|
|
1687
1690
|
v1 && q(document, "touchmove", function(r) {
|
|
1688
|
-
(U.active ||
|
|
1691
|
+
(U.active || h3) && r.cancelable && r.preventDefault();
|
|
1689
1692
|
});
|
|
1690
1693
|
U.utils = {
|
|
1691
1694
|
on: q,
|
|
1692
1695
|
off: k,
|
|
1693
1696
|
css: B,
|
|
1694
|
-
find:
|
|
1697
|
+
find: m0,
|
|
1695
1698
|
is: function(o, e) {
|
|
1696
|
-
return
|
|
1699
|
+
return !!K2(o, e, o, !1);
|
|
1697
1700
|
},
|
|
1698
|
-
extend:
|
|
1699
|
-
throttle:
|
|
1700
|
-
closest:
|
|
1701
|
-
toggleClass:
|
|
1701
|
+
extend: m4,
|
|
1702
|
+
throttle: g0,
|
|
1703
|
+
closest: K2,
|
|
1704
|
+
toggleClass: u2,
|
|
1702
1705
|
clone: R1,
|
|
1703
|
-
index:
|
|
1706
|
+
index: p2,
|
|
1704
1707
|
nextTick: a1,
|
|
1705
1708
|
cancelNextTick: L1,
|
|
1706
|
-
detectDirection:
|
|
1709
|
+
detectDirection: b0,
|
|
1707
1710
|
getChild: p3
|
|
1708
1711
|
};
|
|
1709
1712
|
U.get = function(r) {
|
|
1710
|
-
return r[
|
|
1713
|
+
return r[w2];
|
|
1711
1714
|
};
|
|
1712
1715
|
U.mount = function() {
|
|
1713
1716
|
for (var r = arguments.length, o = new Array(r), e = 0; e < r; e++)
|
|
@@ -1715,15 +1718,15 @@ U.mount = function() {
|
|
|
1715
1718
|
o[0].constructor === Array && (o = o[0]), o.forEach(function(i) {
|
|
1716
1719
|
if (!i.prototype || !i.prototype.constructor)
|
|
1717
1720
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
1718
|
-
i.utils && (U.utils =
|
|
1721
|
+
i.utils && (U.utils = X2(X2({}, U.utils), i.utils)), $3.mount(i);
|
|
1719
1722
|
});
|
|
1720
1723
|
};
|
|
1721
1724
|
U.create = function(r, o) {
|
|
1722
1725
|
return new U(r, o);
|
|
1723
1726
|
};
|
|
1724
|
-
U.version =
|
|
1725
|
-
var
|
|
1726
|
-
function
|
|
1727
|
+
U.version = f4;
|
|
1728
|
+
var z2 = [], L3, T1, I1 = !1, E1, C1, u1, T3;
|
|
1729
|
+
function I4() {
|
|
1727
1730
|
function r() {
|
|
1728
1731
|
this.defaults = {
|
|
1729
1732
|
scroll: !0,
|
|
@@ -1745,67 +1748,67 @@ function D4() {
|
|
|
1745
1748
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1746
1749
|
},
|
|
1747
1750
|
drop: function() {
|
|
1748
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1751
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), t0(), i1(), g4();
|
|
1749
1752
|
},
|
|
1750
1753
|
nulling: function() {
|
|
1751
|
-
u1 = T1 = L3 = I1 = T3 = E1 = C1 = null,
|
|
1754
|
+
u1 = T1 = L3 = I1 = T3 = E1 = C1 = null, z2.length = 0;
|
|
1752
1755
|
},
|
|
1753
1756
|
_handleFallbackAutoScroll: function(e) {
|
|
1754
1757
|
this._handleAutoScroll(e, !0);
|
|
1755
1758
|
},
|
|
1756
1759
|
_handleAutoScroll: function(e, i) {
|
|
1757
1760
|
var n = this, s = (e.touches ? e.touches[0] : e).clientX, t = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(s, t);
|
|
1758
|
-
if (u1 = e, i || this.options.forceAutoScrollFallback || j3 ||
|
|
1761
|
+
if (u1 = e, i || this.options.forceAutoScrollFallback || j3 || t3 || D3) {
|
|
1759
1762
|
w1(e, this.options, a, i);
|
|
1760
|
-
var l =
|
|
1761
|
-
I1 && (!T3 || s !== E1 || t !== C1) && (T3 &&
|
|
1762
|
-
var c =
|
|
1763
|
+
var l = r3(a, !0);
|
|
1764
|
+
I1 && (!T3 || s !== E1 || t !== C1) && (T3 && t0(), T3 = setInterval(function() {
|
|
1765
|
+
var c = r3(document.elementFromPoint(s, t), !0);
|
|
1763
1766
|
c !== l && (l = c, i1()), w1(e, n.options, c, i);
|
|
1764
1767
|
}, 10), E1 = s, C1 = t);
|
|
1765
1768
|
} else {
|
|
1766
|
-
if (!this.options.bubbleScroll ||
|
|
1769
|
+
if (!this.options.bubbleScroll || r3(a, !0) === W2()) {
|
|
1767
1770
|
i1();
|
|
1768
1771
|
return;
|
|
1769
1772
|
}
|
|
1770
|
-
w1(e, this.options,
|
|
1773
|
+
w1(e, this.options, r3(a, !1), !1);
|
|
1771
1774
|
}
|
|
1772
1775
|
}
|
|
1773
|
-
},
|
|
1776
|
+
}, R2(r, {
|
|
1774
1777
|
pluginName: "scroll",
|
|
1775
1778
|
initializeByDefault: !0
|
|
1776
1779
|
});
|
|
1777
1780
|
}
|
|
1778
1781
|
function i1() {
|
|
1779
|
-
|
|
1782
|
+
z2.forEach(function(r) {
|
|
1780
1783
|
clearInterval(r.pid);
|
|
1781
|
-
}),
|
|
1784
|
+
}), z2 = [];
|
|
1782
1785
|
}
|
|
1783
|
-
function
|
|
1786
|
+
function t0() {
|
|
1784
1787
|
clearInterval(T3);
|
|
1785
1788
|
}
|
|
1786
|
-
var w1 =
|
|
1789
|
+
var w1 = g0(function(r, o, e, i) {
|
|
1787
1790
|
if (o.scroll) {
|
|
1788
|
-
var n = (r.touches ? r.touches[0] : r).clientX, s = (r.touches ? r.touches[0] : r).clientY, t = o.scrollSensitivity, a = o.scrollSpeed, l =
|
|
1789
|
-
T1 !== e && (T1 = e, i1(), L3 = o.scroll, d = o.scrollFn, L3 === !0 && (L3 =
|
|
1791
|
+
var n = (r.touches ? r.touches[0] : r).clientX, s = (r.touches ? r.touches[0] : r).clientY, t = o.scrollSensitivity, a = o.scrollSpeed, l = W2(), c = !1, d;
|
|
1792
|
+
T1 !== e && (T1 = e, i1(), L3 = o.scroll, d = o.scrollFn, L3 === !0 && (L3 = r3(e, !0)));
|
|
1790
1793
|
var f = 0, u = L3;
|
|
1791
1794
|
do {
|
|
1792
1795
|
var v = u, h = d2(v), m = h.top, g = h.bottom, p = h.left, y = h.right, C = h.width, S = h.height, w = void 0, M = void 0, D = v.scrollWidth, P = v.scrollHeight, E = B(v), T = v.scrollLeft, I = v.scrollTop;
|
|
1793
1796
|
v === l ? (w = C < D && (E.overflowX === "auto" || E.overflowX === "scroll" || E.overflowX === "visible"), M = S < P && (E.overflowY === "auto" || E.overflowY === "scroll" || E.overflowY === "visible")) : (w = C < D && (E.overflowX === "auto" || E.overflowX === "scroll"), M = S < P && (E.overflowY === "auto" || E.overflowY === "scroll"));
|
|
1794
|
-
var
|
|
1795
|
-
if (!
|
|
1797
|
+
var $ = w && (Math.abs(y - n) <= t && T + C < D) - (Math.abs(p - n) <= t && !!T), V = M && (Math.abs(g - s) <= t && I + S < P) - (Math.abs(m - s) <= t && !!I);
|
|
1798
|
+
if (!z2[f])
|
|
1796
1799
|
for (var O = 0; O <= f; O++)
|
|
1797
|
-
|
|
1798
|
-
(
|
|
1800
|
+
z2[O] || (z2[O] = {});
|
|
1801
|
+
(z2[f].vx != $ || z2[f].vy != V || z2[f].el !== v) && (z2[f].el = v, z2[f].vx = $, z2[f].vy = V, clearInterval(z2[f].pid), ($ != 0 || V != 0) && (c = !0, z2[f].pid = setInterval(function() {
|
|
1799
1802
|
i && this.layer === 0 && U.active._onTouchMove(u1);
|
|
1800
|
-
var
|
|
1801
|
-
typeof d == "function" && d.call(U.dragged.parentNode[
|
|
1803
|
+
var j = z2[this.layer].vy ? z2[this.layer].vy * a : 0, L = z2[this.layer].vx ? z2[this.layer].vx * a : 0;
|
|
1804
|
+
typeof d == "function" && d.call(U.dragged.parentNode[w2], L, j, r, u1, z2[this.layer].el) !== "continue" || p0(z2[this.layer].el, L, j);
|
|
1802
1805
|
}.bind({
|
|
1803
1806
|
layer: f
|
|
1804
1807
|
}), 24))), f++;
|
|
1805
|
-
} while (o.bubbleScroll && u !== l && (u =
|
|
1808
|
+
} while (o.bubbleScroll && u !== l && (u = r3(u, !1)));
|
|
1806
1809
|
I1 = c;
|
|
1807
1810
|
}
|
|
1808
|
-
}, 30),
|
|
1811
|
+
}, 30), M0 = function(o) {
|
|
1809
1812
|
var e = o.originalEvent, i = o.putSortable, n = o.dragEl, s = o.activeSortable, t = o.dispatchSortableEvent, a = o.hideGhostForTarget, l = o.unhideGhostForTarget;
|
|
1810
1813
|
if (e) {
|
|
1811
1814
|
var c = i || s;
|
|
@@ -1831,9 +1834,9 @@ B1.prototype = {
|
|
|
1831
1834
|
var n = p3(this.sortable.el, this.startIndex, this.options);
|
|
1832
1835
|
n ? this.sortable.el.insertBefore(e, n) : this.sortable.el.appendChild(e), this.sortable.animateAll(), i && i.animateAll();
|
|
1833
1836
|
},
|
|
1834
|
-
drop:
|
|
1837
|
+
drop: M0
|
|
1835
1838
|
};
|
|
1836
|
-
|
|
1839
|
+
R2(B1, {
|
|
1837
1840
|
pluginName: "revertOnSpill"
|
|
1838
1841
|
});
|
|
1839
1842
|
function F1() {
|
|
@@ -1843,13 +1846,13 @@ F1.prototype = {
|
|
|
1843
1846
|
var e = o.dragEl, i = o.putSortable, n = i || this.sortable;
|
|
1844
1847
|
n.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), n.animateAll();
|
|
1845
1848
|
},
|
|
1846
|
-
drop:
|
|
1849
|
+
drop: M0
|
|
1847
1850
|
};
|
|
1848
|
-
|
|
1851
|
+
R2(F1, {
|
|
1849
1852
|
pluginName: "removeOnSpill"
|
|
1850
1853
|
});
|
|
1851
|
-
var
|
|
1852
|
-
function
|
|
1854
|
+
var P2;
|
|
1855
|
+
function D4() {
|
|
1853
1856
|
function r() {
|
|
1854
1857
|
this.defaults = {
|
|
1855
1858
|
swapClass: "sortable-swap-highlight"
|
|
@@ -1858,41 +1861,41 @@ function P4() {
|
|
|
1858
1861
|
return r.prototype = {
|
|
1859
1862
|
dragStart: function(e) {
|
|
1860
1863
|
var i = e.dragEl;
|
|
1861
|
-
|
|
1864
|
+
P2 = i;
|
|
1862
1865
|
},
|
|
1863
1866
|
dragOverValid: function(e) {
|
|
1864
1867
|
var i = e.completed, n = e.target, s = e.onMove, t = e.activeSortable, a = e.changed, l = e.cancel;
|
|
1865
1868
|
if (t.options.swap) {
|
|
1866
1869
|
var c = this.sortable.el, d = this.options;
|
|
1867
1870
|
if (n && n !== c) {
|
|
1868
|
-
var f =
|
|
1869
|
-
s(n) !== !1 ? (
|
|
1871
|
+
var f = P2;
|
|
1872
|
+
s(n) !== !1 ? (u2(n, d.swapClass, !0), P2 = n) : P2 = null, f && f !== P2 && u2(f, d.swapClass, !1);
|
|
1870
1873
|
}
|
|
1871
1874
|
a(), i(!0), l();
|
|
1872
1875
|
}
|
|
1873
1876
|
},
|
|
1874
1877
|
drop: function(e) {
|
|
1875
1878
|
var i = e.activeSortable, n = e.putSortable, s = e.dragEl, t = n || this.sortable, a = this.options;
|
|
1876
|
-
|
|
1879
|
+
P2 && u2(P2, a.swapClass, !1), P2 && (a.swap || n && n.options.swap) && s !== P2 && (t.captureAnimationState(), t !== i && i.captureAnimationState(), P4(s, P2), t.animateAll(), t !== i && i.animateAll());
|
|
1877
1880
|
},
|
|
1878
1881
|
nulling: function() {
|
|
1879
|
-
|
|
1882
|
+
P2 = null;
|
|
1880
1883
|
}
|
|
1881
|
-
},
|
|
1884
|
+
}, R2(r, {
|
|
1882
1885
|
pluginName: "swap",
|
|
1883
1886
|
eventProperties: function() {
|
|
1884
1887
|
return {
|
|
1885
|
-
swapItem:
|
|
1888
|
+
swapItem: P2
|
|
1886
1889
|
};
|
|
1887
1890
|
}
|
|
1888
1891
|
});
|
|
1889
1892
|
}
|
|
1890
|
-
function
|
|
1893
|
+
function P4(r, o) {
|
|
1891
1894
|
var e = r.parentNode, i = o.parentNode, n, s;
|
|
1892
|
-
!e || !i || e.isEqualNode(o) || i.isEqualNode(r) || (n =
|
|
1895
|
+
!e || !i || e.isEqualNode(o) || i.isEqualNode(r) || (n = p2(r), s = p2(o), e.isEqualNode(i) && n < s && s++, e.insertBefore(o, e.children[n]), i.insertBefore(r, i.children[s]));
|
|
1893
1896
|
}
|
|
1894
|
-
var
|
|
1895
|
-
function
|
|
1897
|
+
var X = [], I2 = [], C3, j2, w3 = !1, T2 = !1, v3 = !1, r2, H3, _3;
|
|
1898
|
+
function R4() {
|
|
1896
1899
|
function r(o) {
|
|
1897
1900
|
for (var e in this)
|
|
1898
1901
|
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
@@ -1901,7 +1904,7 @@ function B4() {
|
|
|
1901
1904
|
multiDragKey: null,
|
|
1902
1905
|
setData: function(n, s) {
|
|
1903
1906
|
var t = "";
|
|
1904
|
-
|
|
1907
|
+
X.length && j2 === o ? X.forEach(function(a, l) {
|
|
1905
1908
|
t += (l ? ", " : "") + a.textContent;
|
|
1906
1909
|
}) : t = s.textContent, n.setData("Text", t);
|
|
1907
1910
|
}
|
|
@@ -1915,23 +1918,23 @@ function B4() {
|
|
|
1915
1918
|
r2 = i;
|
|
1916
1919
|
},
|
|
1917
1920
|
delayEnded: function() {
|
|
1918
|
-
this.isMultiDrag = ~
|
|
1921
|
+
this.isMultiDrag = ~X.indexOf(r2);
|
|
1919
1922
|
},
|
|
1920
1923
|
setupClone: function(e) {
|
|
1921
1924
|
var i = e.sortable, n = e.cancel;
|
|
1922
1925
|
if (this.isMultiDrag) {
|
|
1923
|
-
for (var s = 0; s <
|
|
1924
|
-
|
|
1926
|
+
for (var s = 0; s < X.length; s++)
|
|
1927
|
+
I2.push(R1(X[s])), I2[s].sortableIndex = X[s].sortableIndex, I2[s].draggable = !1, I2[s].style["will-change"] = "", u2(I2[s], this.options.selectedClass, !1), X[s] === r2 && u2(I2[s], this.options.chosenClass, !1);
|
|
1925
1928
|
i._hideClone(), n();
|
|
1926
1929
|
}
|
|
1927
1930
|
},
|
|
1928
1931
|
clone: function(e) {
|
|
1929
1932
|
var i = e.sortable, n = e.rootEl, s = e.dispatchSortableEvent, t = e.cancel;
|
|
1930
|
-
this.isMultiDrag && (this.options.removeCloneOnHide ||
|
|
1933
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || X.length && j2 === i && (e0(!0, n), s("clone"), t()));
|
|
1931
1934
|
},
|
|
1932
1935
|
showClone: function(e) {
|
|
1933
1936
|
var i = e.cloneNowShown, n = e.rootEl, s = e.cancel;
|
|
1934
|
-
this.isMultiDrag && (
|
|
1937
|
+
this.isMultiDrag && (e0(!1, n), I2.forEach(function(t) {
|
|
1935
1938
|
B(t, "display", "");
|
|
1936
1939
|
}), i(), _3 = !1, s());
|
|
1937
1940
|
},
|
|
@@ -1939,31 +1942,31 @@ function B4() {
|
|
|
1939
1942
|
var i = this;
|
|
1940
1943
|
e.sortable;
|
|
1941
1944
|
var n = e.cloneNowHidden, s = e.cancel;
|
|
1942
|
-
this.isMultiDrag && (
|
|
1945
|
+
this.isMultiDrag && (I2.forEach(function(t) {
|
|
1943
1946
|
B(t, "display", "none"), i.options.removeCloneOnHide && t.parentNode && t.parentNode.removeChild(t);
|
|
1944
1947
|
}), n(), _3 = !0, s());
|
|
1945
1948
|
},
|
|
1946
1949
|
dragStartGlobal: function(e) {
|
|
1947
|
-
e.sortable, !this.isMultiDrag &&
|
|
1948
|
-
i.sortableIndex =
|
|
1949
|
-
}),
|
|
1950
|
+
e.sortable, !this.isMultiDrag && j2 && j2.multiDrag._deselectMultiDrag(), X.forEach(function(i) {
|
|
1951
|
+
i.sortableIndex = p2(i);
|
|
1952
|
+
}), X = X.sort(function(i, n) {
|
|
1950
1953
|
return i.sortableIndex - n.sortableIndex;
|
|
1951
|
-
}),
|
|
1954
|
+
}), v3 = !0;
|
|
1952
1955
|
},
|
|
1953
1956
|
dragStarted: function(e) {
|
|
1954
1957
|
var i = this, n = e.sortable;
|
|
1955
1958
|
if (this.isMultiDrag) {
|
|
1956
1959
|
if (this.options.sort && (n.captureAnimationState(), this.options.animation)) {
|
|
1957
|
-
|
|
1960
|
+
X.forEach(function(t) {
|
|
1958
1961
|
t !== r2 && B(t, "position", "absolute");
|
|
1959
1962
|
});
|
|
1960
1963
|
var s = d2(r2, !1, !0, !0);
|
|
1961
|
-
|
|
1962
|
-
t !== r2 &&
|
|
1963
|
-
}),
|
|
1964
|
+
X.forEach(function(t) {
|
|
1965
|
+
t !== r2 && Q1(t, s);
|
|
1966
|
+
}), T2 = !0, w3 = !0;
|
|
1964
1967
|
}
|
|
1965
1968
|
n.animateAll(function() {
|
|
1966
|
-
|
|
1969
|
+
T2 = !1, w3 = !1, i.options.animation && X.forEach(function(t) {
|
|
1967
1970
|
y1(t);
|
|
1968
1971
|
}), i.options.sort && t1();
|
|
1969
1972
|
});
|
|
@@ -1971,30 +1974,30 @@ function B4() {
|
|
|
1971
1974
|
},
|
|
1972
1975
|
dragOver: function(e) {
|
|
1973
1976
|
var i = e.target, n = e.completed, s = e.cancel;
|
|
1974
|
-
|
|
1977
|
+
T2 && ~X.indexOf(i) && (n(!1), s());
|
|
1975
1978
|
},
|
|
1976
1979
|
revert: function(e) {
|
|
1977
1980
|
var i = e.fromSortable, n = e.rootEl, s = e.sortable, t = e.dragRect;
|
|
1978
|
-
|
|
1981
|
+
X.length > 1 && (X.forEach(function(a) {
|
|
1979
1982
|
s.addAnimationState({
|
|
1980
1983
|
target: a,
|
|
1981
|
-
rect:
|
|
1984
|
+
rect: T2 ? d2(a) : t
|
|
1982
1985
|
}), y1(a), a.fromRect = t, i.removeAnimationState(a);
|
|
1983
|
-
}),
|
|
1986
|
+
}), T2 = !1, B4(!this.options.removeCloneOnHide, n));
|
|
1984
1987
|
},
|
|
1985
1988
|
dragOverCompleted: function(e) {
|
|
1986
1989
|
var i = e.sortable, n = e.isOwner, s = e.insertion, t = e.activeSortable, a = e.parentEl, l = e.putSortable, c = this.options;
|
|
1987
1990
|
if (s) {
|
|
1988
|
-
if (n && t._hideClone(), w3 = !1, c.animation &&
|
|
1991
|
+
if (n && t._hideClone(), w3 = !1, c.animation && X.length > 1 && (T2 || !n && !t.options.sort && !l)) {
|
|
1989
1992
|
var d = d2(r2, !1, !0, !0);
|
|
1990
|
-
|
|
1991
|
-
u !== r2 && (
|
|
1992
|
-
}),
|
|
1993
|
+
X.forEach(function(u) {
|
|
1994
|
+
u !== r2 && (Q1(u, d), a.appendChild(u));
|
|
1995
|
+
}), T2 = !0;
|
|
1993
1996
|
}
|
|
1994
1997
|
if (!n)
|
|
1995
|
-
if (
|
|
1998
|
+
if (T2 || t1(), X.length > 1) {
|
|
1996
1999
|
var f = _3;
|
|
1997
|
-
t._showClone(i), t.options.animation && !_3 && f &&
|
|
2000
|
+
t._showClone(i), t.options.animation && !_3 && f && I2.forEach(function(u) {
|
|
1998
2001
|
t.addAnimationState({
|
|
1999
2002
|
target: u,
|
|
2000
2003
|
rect: H3
|
|
@@ -2006,24 +2009,24 @@ function B4() {
|
|
|
2006
2009
|
},
|
|
2007
2010
|
dragOverAnimationCapture: function(e) {
|
|
2008
2011
|
var i = e.dragRect, n = e.isOwner, s = e.activeSortable;
|
|
2009
|
-
if (
|
|
2012
|
+
if (X.forEach(function(a) {
|
|
2010
2013
|
a.thisAnimationDuration = null;
|
|
2011
2014
|
}), s.options.animation && !n && s.multiDrag.isMultiDrag) {
|
|
2012
|
-
H3 =
|
|
2013
|
-
var t =
|
|
2015
|
+
H3 = R2({}, i);
|
|
2016
|
+
var t = c3(r2, !0);
|
|
2014
2017
|
H3.top -= t.f, H3.left -= t.e;
|
|
2015
2018
|
}
|
|
2016
2019
|
},
|
|
2017
2020
|
dragOverAnimationComplete: function() {
|
|
2018
|
-
|
|
2021
|
+
T2 && (T2 = !1, t1());
|
|
2019
2022
|
},
|
|
2020
2023
|
drop: function(e) {
|
|
2021
2024
|
var i = e.originalEvent, n = e.rootEl, s = e.parentEl, t = e.sortable, a = e.dispatchSortableEvent, l = e.oldIndex, c = e.putSortable, d = c || this.sortable;
|
|
2022
2025
|
if (i) {
|
|
2023
2026
|
var f = this.options, u = s.children;
|
|
2024
|
-
if (!
|
|
2025
|
-
if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(),
|
|
2026
|
-
|
|
2027
|
+
if (!v3)
|
|
2028
|
+
if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), u2(r2, f.selectedClass, !~X.indexOf(r2)), ~X.indexOf(r2))
|
|
2029
|
+
X.splice(X.indexOf(r2), 1), C3 = null, O3({
|
|
2027
2030
|
sortable: t,
|
|
2028
2031
|
rootEl: n,
|
|
2029
2032
|
name: "deselect",
|
|
@@ -2031,18 +2034,18 @@ function B4() {
|
|
|
2031
2034
|
originalEvt: i
|
|
2032
2035
|
});
|
|
2033
2036
|
else {
|
|
2034
|
-
if (
|
|
2037
|
+
if (X.push(r2), O3({
|
|
2035
2038
|
sortable: t,
|
|
2036
2039
|
rootEl: n,
|
|
2037
2040
|
name: "select",
|
|
2038
2041
|
targetEl: r2,
|
|
2039
2042
|
originalEvt: i
|
|
2040
2043
|
}), i.shiftKey && C3 && t.el.contains(C3)) {
|
|
2041
|
-
var v =
|
|
2044
|
+
var v = p2(C3), h = p2(r2);
|
|
2042
2045
|
if (~v && ~h && v !== h) {
|
|
2043
2046
|
var m, g;
|
|
2044
2047
|
for (h > v ? (g = v, m = h) : (g = h, m = v + 1); g < m; g++)
|
|
2045
|
-
~
|
|
2048
|
+
~X.indexOf(u[g]) || (u2(u[g], f.selectedClass, !0), X.push(u[g]), O3({
|
|
2046
2049
|
sortable: t,
|
|
2047
2050
|
rootEl: n,
|
|
2048
2051
|
name: "select",
|
|
@@ -2052,52 +2055,52 @@ function B4() {
|
|
|
2052
2055
|
}
|
|
2053
2056
|
} else
|
|
2054
2057
|
C3 = r2;
|
|
2055
|
-
|
|
2058
|
+
j2 = d;
|
|
2056
2059
|
}
|
|
2057
|
-
if (
|
|
2058
|
-
if (
|
|
2059
|
-
var p = d2(r2), y =
|
|
2060
|
-
if (!w3 && f.animation && (r2.thisAnimationDuration = null), d.captureAnimationState(), !w3 && (f.animation && (r2.fromRect = p,
|
|
2060
|
+
if (v3 && this.isMultiDrag) {
|
|
2061
|
+
if (T2 = !1, (s[w2].options.sort || s !== n) && X.length > 1) {
|
|
2062
|
+
var p = d2(r2), y = p2(r2, ":not(." + this.options.selectedClass + ")");
|
|
2063
|
+
if (!w3 && f.animation && (r2.thisAnimationDuration = null), d.captureAnimationState(), !w3 && (f.animation && (r2.fromRect = p, X.forEach(function(S) {
|
|
2061
2064
|
if (S.thisAnimationDuration = null, S !== r2) {
|
|
2062
|
-
var w =
|
|
2065
|
+
var w = T2 ? d2(S) : p;
|
|
2063
2066
|
S.fromRect = w, d.addAnimationState({
|
|
2064
2067
|
target: S,
|
|
2065
2068
|
rect: w
|
|
2066
2069
|
});
|
|
2067
2070
|
}
|
|
2068
|
-
})), t1(),
|
|
2071
|
+
})), t1(), X.forEach(function(S) {
|
|
2069
2072
|
u[y] ? s.insertBefore(S, u[y]) : s.appendChild(S), y++;
|
|
2070
|
-
}), l ===
|
|
2073
|
+
}), l === p2(r2))) {
|
|
2071
2074
|
var C = !1;
|
|
2072
|
-
|
|
2073
|
-
if (S.sortableIndex !==
|
|
2075
|
+
X.forEach(function(S) {
|
|
2076
|
+
if (S.sortableIndex !== p2(S)) {
|
|
2074
2077
|
C = !0;
|
|
2075
2078
|
return;
|
|
2076
2079
|
}
|
|
2077
2080
|
}), C && a("update");
|
|
2078
2081
|
}
|
|
2079
|
-
|
|
2082
|
+
X.forEach(function(S) {
|
|
2080
2083
|
y1(S);
|
|
2081
2084
|
}), d.animateAll();
|
|
2082
2085
|
}
|
|
2083
|
-
|
|
2086
|
+
j2 = d;
|
|
2084
2087
|
}
|
|
2085
|
-
(n === s || c && c.lastPutMode !== "clone") &&
|
|
2088
|
+
(n === s || c && c.lastPutMode !== "clone") && I2.forEach(function(S) {
|
|
2086
2089
|
S.parentNode && S.parentNode.removeChild(S);
|
|
2087
2090
|
});
|
|
2088
2091
|
}
|
|
2089
2092
|
},
|
|
2090
2093
|
nullingGlobal: function() {
|
|
2091
|
-
this.isMultiDrag =
|
|
2094
|
+
this.isMultiDrag = v3 = !1, I2.length = 0;
|
|
2092
2095
|
},
|
|
2093
2096
|
destroyGlobal: function() {
|
|
2094
2097
|
this._deselectMultiDrag(), k(document, "pointerup", this._deselectMultiDrag), k(document, "mouseup", this._deselectMultiDrag), k(document, "touchend", this._deselectMultiDrag), k(document, "keydown", this._checkKeyDown), k(document, "keyup", this._checkKeyUp);
|
|
2095
2098
|
},
|
|
2096
2099
|
_deselectMultiDrag: function(e) {
|
|
2097
|
-
if (!(typeof
|
|
2098
|
-
for (;
|
|
2099
|
-
var i =
|
|
2100
|
-
|
|
2100
|
+
if (!(typeof v3 < "u" && v3) && j2 === this.sortable && !(e && K2(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0))
|
|
2101
|
+
for (; X.length; ) {
|
|
2102
|
+
var i = X[0];
|
|
2103
|
+
u2(i, this.options.selectedClass, !1), X.shift(), O3({
|
|
2101
2104
|
sortable: this.sortable,
|
|
2102
2105
|
rootEl: this.sortable.el,
|
|
2103
2106
|
name: "deselect",
|
|
@@ -2112,7 +2115,7 @@ function B4() {
|
|
|
2112
2115
|
_checkKeyUp: function(e) {
|
|
2113
2116
|
e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
2114
2117
|
}
|
|
2115
|
-
},
|
|
2118
|
+
}, R2(r, {
|
|
2116
2119
|
// Static methods & properties
|
|
2117
2120
|
pluginName: "multiDrag",
|
|
2118
2121
|
utils: {
|
|
@@ -2121,33 +2124,33 @@ function B4() {
|
|
|
2121
2124
|
* @param {HTMLElement} el The element to be selected
|
|
2122
2125
|
*/
|
|
2123
2126
|
select: function(e) {
|
|
2124
|
-
var i = e.parentNode[
|
|
2125
|
-
!i || !i.options.multiDrag || ~
|
|
2127
|
+
var i = e.parentNode[w2];
|
|
2128
|
+
!i || !i.options.multiDrag || ~X.indexOf(e) || (j2 && j2 !== i && (j2.multiDrag._deselectMultiDrag(), j2 = i), u2(e, i.options.selectedClass, !0), X.push(e));
|
|
2126
2129
|
},
|
|
2127
2130
|
/**
|
|
2128
2131
|
* Deselects the provided multi-drag item
|
|
2129
2132
|
* @param {HTMLElement} el The element to be deselected
|
|
2130
2133
|
*/
|
|
2131
2134
|
deselect: function(e) {
|
|
2132
|
-
var i = e.parentNode[
|
|
2133
|
-
!i || !i.options.multiDrag || !~n || (
|
|
2135
|
+
var i = e.parentNode[w2], n = X.indexOf(e);
|
|
2136
|
+
!i || !i.options.multiDrag || !~n || (u2(e, i.options.selectedClass, !1), X.splice(n, 1));
|
|
2134
2137
|
}
|
|
2135
2138
|
},
|
|
2136
2139
|
eventProperties: function() {
|
|
2137
2140
|
var e = this, i = [], n = [];
|
|
2138
|
-
return
|
|
2141
|
+
return X.forEach(function(s) {
|
|
2139
2142
|
i.push({
|
|
2140
2143
|
multiDragElement: s,
|
|
2141
2144
|
index: s.sortableIndex
|
|
2142
2145
|
});
|
|
2143
2146
|
var t;
|
|
2144
|
-
|
|
2147
|
+
T2 && s !== r2 ? t = -1 : T2 ? t = p2(s, ":not(." + e.options.selectedClass + ")") : t = p2(s), n.push({
|
|
2145
2148
|
multiDragElement: s,
|
|
2146
2149
|
index: t
|
|
2147
2150
|
});
|
|
2148
2151
|
}), {
|
|
2149
|
-
items:
|
|
2150
|
-
clones: [].concat(
|
|
2152
|
+
items: i4(X),
|
|
2153
|
+
clones: [].concat(I2),
|
|
2151
2154
|
oldIndicies: i,
|
|
2152
2155
|
newIndicies: n
|
|
2153
2156
|
};
|
|
@@ -2159,36 +2162,36 @@ function B4() {
|
|
|
2159
2162
|
}
|
|
2160
2163
|
});
|
|
2161
2164
|
}
|
|
2162
|
-
function
|
|
2163
|
-
|
|
2165
|
+
function B4(r, o) {
|
|
2166
|
+
X.forEach(function(e, i) {
|
|
2164
2167
|
var n = o.children[e.sortableIndex + (r ? Number(i) : 0)];
|
|
2165
2168
|
n ? o.insertBefore(e, n) : o.appendChild(e);
|
|
2166
2169
|
});
|
|
2167
2170
|
}
|
|
2168
|
-
function
|
|
2169
|
-
|
|
2171
|
+
function e0(r, o) {
|
|
2172
|
+
I2.forEach(function(e, i) {
|
|
2170
2173
|
var n = o.children[e.sortableIndex + (r ? Number(i) : 0)];
|
|
2171
2174
|
n ? o.insertBefore(e, n) : o.appendChild(e);
|
|
2172
2175
|
});
|
|
2173
2176
|
}
|
|
2174
2177
|
function t1() {
|
|
2175
|
-
|
|
2178
|
+
X.forEach(function(r) {
|
|
2176
2179
|
r !== r2 && r.parentNode && r.parentNode.removeChild(r);
|
|
2177
2180
|
});
|
|
2178
2181
|
}
|
|
2179
|
-
U.mount(new
|
|
2182
|
+
U.mount(new I4());
|
|
2180
2183
|
U.mount(F1, B1);
|
|
2181
|
-
const
|
|
2184
|
+
const F4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2182
2185
|
__proto__: null,
|
|
2183
|
-
MultiDrag:
|
|
2186
|
+
MultiDrag: R4,
|
|
2184
2187
|
Sortable: U,
|
|
2185
|
-
Swap:
|
|
2188
|
+
Swap: D4,
|
|
2186
2189
|
default: U
|
|
2187
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2190
|
+
}, Symbol.toStringTag, { value: "Module" })), N4 = /* @__PURE__ */ Ht(F4);
|
|
2188
2191
|
(function(r, o) {
|
|
2189
2192
|
(function(i, n) {
|
|
2190
|
-
r.exports = n(
|
|
2191
|
-
})(typeof self < "u" ? self :
|
|
2193
|
+
r.exports = n($0, N4);
|
|
2194
|
+
})(typeof self < "u" ? self : Vt, function(e, i) {
|
|
2192
2195
|
return function(n) {
|
|
2193
2196
|
var s = {};
|
|
2194
2197
|
function t(a) {
|
|
@@ -2617,13 +2620,13 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2617
2620
|
"4df4": function(n, s, t) {
|
|
2618
2621
|
var a = t("0366"), l = t("7b0b"), c = t("9bdd"), d = t("e95a"), f = t("50c4"), u = t("8418"), v = t("35a1");
|
|
2619
2622
|
n.exports = function(m) {
|
|
2620
|
-
var g = l(m), p = typeof this == "function" ? this : Array, y = arguments.length, C = y > 1 ? arguments[1] : void 0, S = C !== void 0, w = v(g), M = 0, D, P, E, T, I,
|
|
2623
|
+
var g = l(m), p = typeof this == "function" ? this : Array, y = arguments.length, C = y > 1 ? arguments[1] : void 0, S = C !== void 0, w = v(g), M = 0, D, P, E, T, I, $;
|
|
2621
2624
|
if (S && (C = a(C, y > 2 ? arguments[2] : void 0, 2)), w != null && !(p == Array && d(w)))
|
|
2622
2625
|
for (T = w.call(g), I = T.next, P = new p(); !(E = I.call(T)).done; M++)
|
|
2623
|
-
|
|
2626
|
+
$ = S ? c(T, C, [E.value, M], !0) : E.value, u(P, M, $);
|
|
2624
2627
|
else
|
|
2625
2628
|
for (D = f(g.length), P = new p(D); D > M; M++)
|
|
2626
|
-
|
|
2629
|
+
$ = S ? C(g[M], M) : g[M], u(P, M, $);
|
|
2627
2630
|
return P.length = M, P;
|
|
2628
2631
|
};
|
|
2629
2632
|
},
|
|
@@ -2660,75 +2663,75 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2660
2663
|
return [
|
|
2661
2664
|
// `String.prototype.replace` method
|
|
2662
2665
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2663
|
-
function(O,
|
|
2666
|
+
function(O, j) {
|
|
2664
2667
|
var L = u(this), N = O == null ? void 0 : O[w];
|
|
2665
|
-
return N !== void 0 ? N.call(O, L,
|
|
2668
|
+
return N !== void 0 ? N.call(O, L, j) : M.call(String(L), O, j);
|
|
2666
2669
|
},
|
|
2667
2670
|
// `RegExp.prototype[@@replace]` method
|
|
2668
2671
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2669
2672
|
function(V, O) {
|
|
2670
2673
|
if (!E && T || typeof O == "string" && O.indexOf(I) === -1) {
|
|
2671
|
-
var
|
|
2672
|
-
if (
|
|
2673
|
-
return
|
|
2674
|
+
var j = D(M, V, this, O);
|
|
2675
|
+
if (j.done)
|
|
2676
|
+
return j.value;
|
|
2674
2677
|
}
|
|
2675
2678
|
var L = l(V), N = String(this), Q = typeof O == "function";
|
|
2676
2679
|
Q || (O = String(O));
|
|
2677
2680
|
var n2 = L.global;
|
|
2678
2681
|
if (n2) {
|
|
2679
|
-
var
|
|
2682
|
+
var S2 = L.unicode;
|
|
2680
2683
|
L.lastIndex = 0;
|
|
2681
2684
|
}
|
|
2682
|
-
for (var
|
|
2685
|
+
for (var l2 = []; ; ) {
|
|
2683
2686
|
var s2 = h(L, N);
|
|
2684
|
-
if (s2 === null || (
|
|
2687
|
+
if (s2 === null || (l2.push(s2), !n2))
|
|
2685
2688
|
break;
|
|
2686
|
-
var
|
|
2687
|
-
|
|
2689
|
+
var v2 = String(s2[0]);
|
|
2690
|
+
v2 === "" && (L.lastIndex = v(N, d(L.lastIndex), S2));
|
|
2688
2691
|
}
|
|
2689
|
-
for (var
|
|
2690
|
-
s2 =
|
|
2691
|
-
for (var
|
|
2692
|
-
|
|
2693
|
-
var
|
|
2692
|
+
for (var b2 = "", f2 = 0, o2 = 0; o2 < l2.length; o2++) {
|
|
2693
|
+
s2 = l2[o2];
|
|
2694
|
+
for (var a2 = String(s2[0]), H2 = m(g(f(s2.index), N.length), 0), M2 = [], B2 = 1; B2 < s2.length; B2++)
|
|
2695
|
+
M2.push(S(s2[B2]));
|
|
2696
|
+
var Z = s2.groups;
|
|
2694
2697
|
if (Q) {
|
|
2695
|
-
var
|
|
2696
|
-
|
|
2697
|
-
var
|
|
2698
|
+
var i2 = [a2].concat(M2, H2, N);
|
|
2699
|
+
Z !== void 0 && i2.push(Z);
|
|
2700
|
+
var h2 = String(O.apply(void 0, i2));
|
|
2698
2701
|
} else
|
|
2699
|
-
|
|
2700
|
-
|
|
2702
|
+
h2 = $(a2, N, H2, M2, Z, O);
|
|
2703
|
+
H2 >= f2 && (b2 += N.slice(f2, H2) + h2, f2 = H2 + a2.length);
|
|
2701
2704
|
}
|
|
2702
|
-
return
|
|
2705
|
+
return b2 + N.slice(f2);
|
|
2703
2706
|
}
|
|
2704
2707
|
];
|
|
2705
|
-
function
|
|
2706
|
-
var n2 =
|
|
2707
|
-
return N !== void 0 && (N = c(N),
|
|
2708
|
-
var
|
|
2709
|
-
switch (
|
|
2708
|
+
function $(V, O, j, L, N, Q) {
|
|
2709
|
+
var n2 = j + V.length, S2 = L.length, l2 = C;
|
|
2710
|
+
return N !== void 0 && (N = c(N), l2 = y), M.call(Q, l2, function(s2, v2) {
|
|
2711
|
+
var b2;
|
|
2712
|
+
switch (v2.charAt(0)) {
|
|
2710
2713
|
case "$":
|
|
2711
2714
|
return "$";
|
|
2712
2715
|
case "&":
|
|
2713
2716
|
return V;
|
|
2714
2717
|
case "`":
|
|
2715
|
-
return O.slice(0,
|
|
2718
|
+
return O.slice(0, j);
|
|
2716
2719
|
case "'":
|
|
2717
2720
|
return O.slice(n2);
|
|
2718
2721
|
case "<":
|
|
2719
|
-
|
|
2722
|
+
b2 = N[v2.slice(1, -1)];
|
|
2720
2723
|
break;
|
|
2721
2724
|
default:
|
|
2722
|
-
var
|
|
2723
|
-
if (
|
|
2725
|
+
var f2 = +v2;
|
|
2726
|
+
if (f2 === 0)
|
|
2724
2727
|
return s2;
|
|
2725
|
-
if (
|
|
2726
|
-
var o2 = p(
|
|
2727
|
-
return o2 === 0 ? s2 : o2 <=
|
|
2728
|
+
if (f2 > S2) {
|
|
2729
|
+
var o2 = p(f2 / 10);
|
|
2730
|
+
return o2 === 0 ? s2 : o2 <= S2 ? L[o2 - 1] === void 0 ? v2.charAt(1) : L[o2 - 1] + v2.charAt(1) : s2;
|
|
2728
2731
|
}
|
|
2729
|
-
|
|
2732
|
+
b2 = L[f2 - 1];
|
|
2730
2733
|
}
|
|
2731
|
-
return
|
|
2734
|
+
return b2 === void 0 ? "" : b2;
|
|
2732
2735
|
});
|
|
2733
2736
|
}
|
|
2734
2737
|
});
|
|
@@ -2940,8 +2943,8 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2940
2943
|
return P();
|
|
2941
2944
|
};
|
|
2942
2945
|
d[y] = !0, n.exports = Object.create || function(T, I) {
|
|
2943
|
-
var
|
|
2944
|
-
return T !== null ? (C[g] = a(T),
|
|
2946
|
+
var $;
|
|
2947
|
+
return T !== null ? (C[g] = a(T), $ = new C(), C[g] = null, $[y] = T) : $ = P(), I === void 0 ? $ : l($, I);
|
|
2945
2948
|
};
|
|
2946
2949
|
},
|
|
2947
2950
|
/***/
|
|
@@ -2949,11 +2952,11 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2949
2952
|
var a = t("23e7"), l = t("9ed3"), c = t("e163"), d = t("d2bb"), f = t("d44e"), u = t("9112"), v = t("6eeb"), h = t("b622"), m = t("c430"), g = t("3f8c"), p = t("ae93"), y = p.IteratorPrototype, C = p.BUGGY_SAFARI_ITERATORS, S = h("iterator"), w = "keys", M = "values", D = "entries", P = function() {
|
|
2950
2953
|
return this;
|
|
2951
2954
|
};
|
|
2952
|
-
n.exports = function(E, T, I,
|
|
2953
|
-
l(I, T,
|
|
2955
|
+
n.exports = function(E, T, I, $, V, O, j) {
|
|
2956
|
+
l(I, T, $);
|
|
2954
2957
|
var L = function(o2) {
|
|
2955
|
-
if (o2 === V &&
|
|
2956
|
-
return
|
|
2958
|
+
if (o2 === V && l2)
|
|
2959
|
+
return l2;
|
|
2957
2960
|
if (!C && o2 in n2)
|
|
2958
2961
|
return n2[o2];
|
|
2959
2962
|
switch (o2) {
|
|
@@ -2973,20 +2976,20 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2973
2976
|
return function() {
|
|
2974
2977
|
return new I(this);
|
|
2975
2978
|
};
|
|
2976
|
-
}, N = T + " Iterator", Q = !1, n2 = E.prototype,
|
|
2977
|
-
if (s2 && (
|
|
2978
|
-
return
|
|
2979
|
-
}), (!m ||
|
|
2980
|
-
if (
|
|
2979
|
+
}, N = T + " Iterator", Q = !1, n2 = E.prototype, S2 = n2[S] || n2["@@iterator"] || V && n2[V], l2 = !C && S2 || L(V), s2 = T == "Array" && n2.entries || S2, v2, b2, f2;
|
|
2980
|
+
if (s2 && (v2 = c(s2.call(new E())), y !== Object.prototype && v2.next && (!m && c(v2) !== y && (d ? d(v2, y) : typeof v2[S] != "function" && u(v2, S, P)), f(v2, N, !0, !0), m && (g[N] = P))), V == M && S2 && S2.name !== M && (Q = !0, l2 = function() {
|
|
2981
|
+
return S2.call(this);
|
|
2982
|
+
}), (!m || j) && n2[S] !== l2 && u(n2, S, l2), g[T] = l2, V)
|
|
2983
|
+
if (b2 = {
|
|
2981
2984
|
values: L(M),
|
|
2982
|
-
keys: O ?
|
|
2985
|
+
keys: O ? l2 : L(w),
|
|
2983
2986
|
entries: L(D)
|
|
2984
|
-
},
|
|
2985
|
-
for (
|
|
2986
|
-
(C || Q || !(
|
|
2987
|
+
}, j)
|
|
2988
|
+
for (f2 in b2)
|
|
2989
|
+
(C || Q || !(f2 in n2)) && v(n2, f2, b2[f2]);
|
|
2987
2990
|
else
|
|
2988
|
-
a({ target: T, proto: !0, forced: C || Q },
|
|
2989
|
-
return
|
|
2991
|
+
a({ target: T, proto: !0, forced: C || Q }, b2);
|
|
2992
|
+
return b2;
|
|
2990
2993
|
};
|
|
2991
2994
|
},
|
|
2992
2995
|
/***/
|
|
@@ -3122,19 +3125,19 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3122
3125
|
}, P = !w || !M;
|
|
3123
3126
|
a({ target: "Array", proto: !0, forced: P }, {
|
|
3124
3127
|
concat: function(T) {
|
|
3125
|
-
var I = f(this),
|
|
3128
|
+
var I = f(this), $ = h(I, 0), V = 0, O, j, L, N, Q;
|
|
3126
3129
|
for (O = -1, L = arguments.length; O < L; O++)
|
|
3127
3130
|
if (Q = O === -1 ? I : arguments[O], D(Q)) {
|
|
3128
3131
|
if (N = u(Q.length), V + N > C)
|
|
3129
3132
|
throw TypeError(S);
|
|
3130
|
-
for (
|
|
3131
|
-
|
|
3133
|
+
for (j = 0; j < N; j++, V++)
|
|
3134
|
+
j in Q && v($, V, Q[j]);
|
|
3132
3135
|
} else {
|
|
3133
3136
|
if (V >= C)
|
|
3134
3137
|
throw TypeError(S);
|
|
3135
|
-
v(
|
|
3138
|
+
v($, V++, Q);
|
|
3136
3139
|
}
|
|
3137
|
-
return
|
|
3140
|
+
return $.length = V, $;
|
|
3138
3141
|
}
|
|
3139
3142
|
});
|
|
3140
3143
|
},
|
|
@@ -3217,12 +3220,12 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3217
3220
|
var a = t("23e7"), l = t("23cb"), c = t("a691"), d = t("50c4"), f = t("7b0b"), u = t("65f0"), v = t("8418"), h = t("1dde"), m = t("ae40"), g = h("splice"), p = m("splice", { ACCESSORS: !0, 0: 0, 1: 2 }), y = Math.max, C = Math.min, S = 9007199254740991, w = "Maximum allowed length exceeded";
|
|
3218
3221
|
a({ target: "Array", proto: !0, forced: !g || !p }, {
|
|
3219
3222
|
splice: function(D, P) {
|
|
3220
|
-
var E = f(this), T = d(E.length), I = l(D, T),
|
|
3221
|
-
if (
|
|
3223
|
+
var E = f(this), T = d(E.length), I = l(D, T), $ = arguments.length, V, O, j, L, N, Q;
|
|
3224
|
+
if ($ === 0 ? V = O = 0 : $ === 1 ? (V = 0, O = T - I) : (V = $ - 2, O = C(y(c(P), 0), T - I)), T + V - O > S)
|
|
3222
3225
|
throw TypeError(w);
|
|
3223
|
-
for (
|
|
3224
|
-
N = I + L, N in E && v(
|
|
3225
|
-
if (
|
|
3226
|
+
for (j = u(E, O), L = 0; L < O; L++)
|
|
3227
|
+
N = I + L, N in E && v(j, L, E[N]);
|
|
3228
|
+
if (j.length = O, V < O) {
|
|
3226
3229
|
for (L = I; L < T - O; L++)
|
|
3227
3230
|
N = L + O, Q = L + V, N in E ? E[Q] = E[N] : delete E[Q];
|
|
3228
3231
|
for (L = T; L > T - O + V; L--)
|
|
@@ -3232,95 +3235,95 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3232
3235
|
N = L + O - 1, Q = L + V - 1, N in E ? E[Q] = E[N] : delete E[Q];
|
|
3233
3236
|
for (L = 0; L < V; L++)
|
|
3234
3237
|
E[L + I] = arguments[L + 2];
|
|
3235
|
-
return E.length = T - O + V,
|
|
3238
|
+
return E.length = T - O + V, j;
|
|
3236
3239
|
}
|
|
3237
3240
|
});
|
|
3238
3241
|
},
|
|
3239
3242
|
/***/
|
|
3240
3243
|
a4d3: function(n, s, t) {
|
|
3241
|
-
var a = t("23e7"), l = t("da84"), c = t("d066"), d = t("c430"), f = t("83ab"), u = t("4930"), v = t("fdbf"), h = t("d039"), m = t("5135"), g = t("e8b5"), p = t("861d"), y = t("825a"), C = t("7b0b"), S = t("fc6a"), w = t("c04e"), M = t("5c6c"), D = t("7c73"), P = t("df75"), E = t("241c"), T = t("057f"), I = t("7418"),
|
|
3242
|
-
return D(
|
|
3244
|
+
var a = t("23e7"), l = t("da84"), c = t("d066"), d = t("c430"), f = t("83ab"), u = t("4930"), v = t("fdbf"), h = t("d039"), m = t("5135"), g = t("e8b5"), p = t("861d"), y = t("825a"), C = t("7b0b"), S = t("fc6a"), w = t("c04e"), M = t("5c6c"), D = t("7c73"), P = t("df75"), E = t("241c"), T = t("057f"), I = t("7418"), $ = t("06cf"), V = t("9bf2"), O = t("d1e7"), j = t("9112"), L = t("6eeb"), N = t("5692"), Q = t("f772"), n2 = t("d012"), S2 = t("90e3"), l2 = t("b622"), s2 = t("e538"), v2 = t("746f"), b2 = t("d44e"), f2 = t("69f3"), o2 = t("b727").forEach, a2 = Q("hidden"), H2 = "Symbol", M2 = "prototype", B2 = l2("toPrimitive"), Z = f2.set, i2 = f2.getterFor(H2), h2 = Object[M2], x2 = l.Symbol, Y2 = c("JSON", "stringify"), U2 = $.f, G2 = V.f, K3 = T.f, h1 = O.f, F2 = N("symbols"), e3 = N("op-symbols"), d3 = N("string-to-symbol-registry"), y3 = N("symbol-to-string-registry"), b3 = N("wks"), x3 = l.QObject, z3 = !x3 || !x3[M2] || !x3[M2].findChild, S3 = f && h(function() {
|
|
3245
|
+
return D(G2({}, "a", {
|
|
3243
3246
|
get: function() {
|
|
3244
|
-
return
|
|
3247
|
+
return G2(this, "a", { value: 7 }).a;
|
|
3245
3248
|
}
|
|
3246
3249
|
})).a != 7;
|
|
3247
|
-
}) ? function(
|
|
3248
|
-
var _ =
|
|
3249
|
-
_ && delete
|
|
3250
|
-
} :
|
|
3251
|
-
var K =
|
|
3252
|
-
return
|
|
3253
|
-
type:
|
|
3254
|
-
tag:
|
|
3250
|
+
}) ? function(W, F, K) {
|
|
3251
|
+
var _ = U2(h2, F);
|
|
3252
|
+
_ && delete h2[F], G2(W, F, K), _ && W !== h2 && G2(h2, F, _);
|
|
3253
|
+
} : G2, M3 = function(W, F) {
|
|
3254
|
+
var K = F2[W] = D(x2[M2]);
|
|
3255
|
+
return Z(K, {
|
|
3256
|
+
type: H2,
|
|
3257
|
+
tag: W,
|
|
3255
3258
|
description: F
|
|
3256
3259
|
}), f || (K.description = F), K;
|
|
3257
|
-
}, x = v ? function(
|
|
3258
|
-
return typeof
|
|
3259
|
-
} : function(
|
|
3260
|
-
return Object(
|
|
3260
|
+
}, x = v ? function(W) {
|
|
3261
|
+
return typeof W == "symbol";
|
|
3262
|
+
} : function(W) {
|
|
3263
|
+
return Object(W) instanceof x2;
|
|
3261
3264
|
}, b = function(F, K, _) {
|
|
3262
|
-
F ===
|
|
3265
|
+
F === h2 && b(e3, K, _), y(F);
|
|
3263
3266
|
var t2 = w(K, !0);
|
|
3264
|
-
return y(_), m(
|
|
3267
|
+
return y(_), m(F2, t2) ? (_.enumerable ? (m(F, a2) && F[a2][t2] && (F[a2][t2] = !1), _ = D(_, { enumerable: M(0, !1) })) : (m(F, a2) || G2(F, a2, M(1, {})), F[a2][t2] = !0), S3(F, t2, _)) : G2(F, t2, _);
|
|
3265
3268
|
}, z = function(F, K) {
|
|
3266
3269
|
y(F);
|
|
3267
3270
|
var _ = S(K), t2 = P(_).concat(e2(_));
|
|
3268
|
-
return o2(t2, function(
|
|
3269
|
-
(!f || R.call(_,
|
|
3271
|
+
return o2(t2, function(A2) {
|
|
3272
|
+
(!f || R.call(_, A2)) && b(F, A2, _[A2]);
|
|
3270
3273
|
}), F;
|
|
3271
3274
|
}, H = function(F, K) {
|
|
3272
3275
|
return K === void 0 ? D(F) : z(D(F), K);
|
|
3273
3276
|
}, R = function(F) {
|
|
3274
3277
|
var K = w(F, !0), _ = h1.call(this, K);
|
|
3275
|
-
return this ===
|
|
3276
|
-
},
|
|
3278
|
+
return this === h2 && m(F2, K) && !m(e3, K) ? !1 : _ || !m(this, K) || !m(F2, K) || m(this, a2) && this[a2][K] ? _ : !0;
|
|
3279
|
+
}, G = function(F, K) {
|
|
3277
3280
|
var _ = S(F), t2 = w(K, !0);
|
|
3278
|
-
if (!(_ ===
|
|
3279
|
-
var
|
|
3280
|
-
return
|
|
3281
|
+
if (!(_ === h2 && m(F2, t2) && !m(e3, t2))) {
|
|
3282
|
+
var A2 = U2(_, t2);
|
|
3283
|
+
return A2 && m(F2, t2) && !(m(_, a2) && _[a2][t2]) && (A2.enumerable = !0), A2;
|
|
3281
3284
|
}
|
|
3282
3285
|
}, J = function(F) {
|
|
3283
3286
|
var K = K3(S(F)), _ = [];
|
|
3284
3287
|
return o2(K, function(t2) {
|
|
3285
|
-
!m(
|
|
3288
|
+
!m(F2, t2) && !m(n2, t2) && _.push(t2);
|
|
3286
3289
|
}), _;
|
|
3287
3290
|
}, e2 = function(F) {
|
|
3288
|
-
var K = F ===
|
|
3289
|
-
return o2(_, function(
|
|
3290
|
-
m(
|
|
3291
|
+
var K = F === h2, _ = K3(K ? e3 : S(F)), t2 = [];
|
|
3292
|
+
return o2(_, function(A2) {
|
|
3293
|
+
m(F2, A2) && (!K || m(h2, A2)) && t2.push(F2[A2]);
|
|
3291
3294
|
}), t2;
|
|
3292
3295
|
};
|
|
3293
|
-
if (u || (
|
|
3294
|
-
if (this instanceof
|
|
3296
|
+
if (u || (x2 = function() {
|
|
3297
|
+
if (this instanceof x2)
|
|
3295
3298
|
throw TypeError("Symbol is not a constructor");
|
|
3296
|
-
var F = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), K =
|
|
3297
|
-
this ===
|
|
3299
|
+
var F = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), K = S2(F), _ = function(t2) {
|
|
3300
|
+
this === h2 && _.call(e3, t2), m(this, a2) && m(this[a2], K) && (this[a2][K] = !1), S3(this, K, M(1, t2));
|
|
3298
3301
|
};
|
|
3299
|
-
return f && z3 && S3(
|
|
3300
|
-
}, L(
|
|
3301
|
-
return
|
|
3302
|
-
}), L(
|
|
3303
|
-
return M3(
|
|
3304
|
-
}), O.f = R, V.f = b,
|
|
3305
|
-
return M3(
|
|
3306
|
-
}, f && (
|
|
3302
|
+
return f && z3 && S3(h2, K, { configurable: !0, set: _ }), M3(K, F);
|
|
3303
|
+
}, L(x2[M2], "toString", function() {
|
|
3304
|
+
return i2(this).tag;
|
|
3305
|
+
}), L(x2, "withoutSetter", function(W) {
|
|
3306
|
+
return M3(S2(W), W);
|
|
3307
|
+
}), O.f = R, V.f = b, $.f = G, E.f = T.f = J, I.f = e2, s2.f = function(W) {
|
|
3308
|
+
return M3(l2(W), W);
|
|
3309
|
+
}, f && (G2(x2[M2], "description", {
|
|
3307
3310
|
configurable: !0,
|
|
3308
3311
|
get: function() {
|
|
3309
|
-
return
|
|
3312
|
+
return i2(this).description;
|
|
3310
3313
|
}
|
|
3311
|
-
}), d || L(
|
|
3312
|
-
Symbol:
|
|
3313
|
-
}), o2(P(b3), function(
|
|
3314
|
-
|
|
3315
|
-
}), a({ target:
|
|
3314
|
+
}), d || L(h2, "propertyIsEnumerable", R, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !u, sham: !u }, {
|
|
3315
|
+
Symbol: x2
|
|
3316
|
+
}), o2(P(b3), function(W) {
|
|
3317
|
+
v2(W);
|
|
3318
|
+
}), a({ target: H2, stat: !0, forced: !u }, {
|
|
3316
3319
|
// `Symbol.for` method
|
|
3317
3320
|
// https://tc39.github.io/ecma262/#sec-symbol.for
|
|
3318
|
-
for: function(
|
|
3319
|
-
var F = String(
|
|
3320
|
-
if (m(
|
|
3321
|
-
return
|
|
3322
|
-
var K =
|
|
3323
|
-
return
|
|
3321
|
+
for: function(W) {
|
|
3322
|
+
var F = String(W);
|
|
3323
|
+
if (m(d3, F))
|
|
3324
|
+
return d3[F];
|
|
3325
|
+
var K = x2(F);
|
|
3326
|
+
return d3[F] = K, y3[K] = F, K;
|
|
3324
3327
|
},
|
|
3325
3328
|
// `Symbol.keyFor` method
|
|
3326
3329
|
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
@@ -3348,7 +3351,7 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3348
3351
|
defineProperties: z,
|
|
3349
3352
|
// `Object.getOwnPropertyDescriptor` method
|
|
3350
3353
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
3351
|
-
getOwnPropertyDescriptor:
|
|
3354
|
+
getOwnPropertyDescriptor: G
|
|
3352
3355
|
}), a({ target: "Object", stat: !0, forced: !u }, {
|
|
3353
3356
|
// `Object.getOwnPropertyNames` method
|
|
3354
3357
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
@@ -3362,25 +3365,25 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3362
3365
|
getOwnPropertySymbols: function(F) {
|
|
3363
3366
|
return I.f(C(F));
|
|
3364
3367
|
}
|
|
3365
|
-
}),
|
|
3366
|
-
var
|
|
3367
|
-
var
|
|
3368
|
-
return
|
|
3368
|
+
}), Y2) {
|
|
3369
|
+
var y2 = !u || h(function() {
|
|
3370
|
+
var W = x2();
|
|
3371
|
+
return Y2([W]) != "[null]" || Y2({ a: W }) != "{}" || Y2(Object(W)) != "{}";
|
|
3369
3372
|
});
|
|
3370
|
-
a({ target: "JSON", stat: !0, forced:
|
|
3373
|
+
a({ target: "JSON", stat: !0, forced: y2 }, {
|
|
3371
3374
|
// eslint-disable-next-line no-unused-vars
|
|
3372
3375
|
stringify: function(F, K, _) {
|
|
3373
|
-
for (var t2 = [F],
|
|
3374
|
-
t2.push(arguments[
|
|
3376
|
+
for (var t2 = [F], A2 = 1, m1; arguments.length > A2; )
|
|
3377
|
+
t2.push(arguments[A2++]);
|
|
3375
3378
|
if (m1 = K, !(!p(K) && F === void 0 || x(F)))
|
|
3376
|
-
return g(K) || (K = function(
|
|
3377
|
-
if (typeof m1 == "function" && (U3 = m1.call(this,
|
|
3379
|
+
return g(K) || (K = function(C0, U3) {
|
|
3380
|
+
if (typeof m1 == "function" && (U3 = m1.call(this, C0, U3)), !x(U3))
|
|
3378
3381
|
return U3;
|
|
3379
|
-
}), t2[1] = K,
|
|
3382
|
+
}), t2[1] = K, Y2.apply(null, t2);
|
|
3380
3383
|
}
|
|
3381
3384
|
});
|
|
3382
3385
|
}
|
|
3383
|
-
|
|
3386
|
+
x2[M2][B2] || j(x2[M2], B2, x2[M2].valueOf), b2(x2, H2), n2[a2] = !0;
|
|
3384
3387
|
},
|
|
3385
3388
|
/***/
|
|
3386
3389
|
a630: function(n, s, t) {
|
|
@@ -3513,10 +3516,10 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3513
3516
|
var a = t("0366"), l = t("44ad"), c = t("7b0b"), d = t("50c4"), f = t("65f0"), u = [].push, v = function(h) {
|
|
3514
3517
|
var m = h == 1, g = h == 2, p = h == 3, y = h == 4, C = h == 6, S = h == 5 || C;
|
|
3515
3518
|
return function(w, M, D, P) {
|
|
3516
|
-
for (var E = c(w), T = l(E), I = a(M, D, 3),
|
|
3519
|
+
for (var E = c(w), T = l(E), I = a(M, D, 3), $ = d(T.length), V = 0, O = P || f, j = m ? O(w, $) : g ? O(w, 0) : void 0, L, N; $ > V; V++)
|
|
3517
3520
|
if ((S || V in T) && (L = T[V], N = I(L, V, E), h)) {
|
|
3518
3521
|
if (m)
|
|
3519
|
-
|
|
3522
|
+
j[V] = N;
|
|
3520
3523
|
else if (N)
|
|
3521
3524
|
switch (h) {
|
|
3522
3525
|
case 3:
|
|
@@ -3526,12 +3529,12 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3526
3529
|
case 6:
|
|
3527
3530
|
return V;
|
|
3528
3531
|
case 2:
|
|
3529
|
-
u.call(
|
|
3532
|
+
u.call(j, L);
|
|
3530
3533
|
}
|
|
3531
3534
|
else if (y)
|
|
3532
3535
|
return !1;
|
|
3533
3536
|
}
|
|
3534
|
-
return C ? -1 : p || y ? y :
|
|
3537
|
+
return C ? -1 : p || y ? y : j;
|
|
3535
3538
|
};
|
|
3536
3539
|
};
|
|
3537
3540
|
n.exports = {
|
|
@@ -3786,19 +3789,19 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3786
3789
|
}, O[M](""), !V;
|
|
3787
3790
|
});
|
|
3788
3791
|
if (!D || !P || y === "replace" && !(v && h && !g) || y === "split" && !p) {
|
|
3789
|
-
var E = /./[M], T = S(M, ""[y], function(V, O,
|
|
3790
|
-
return O.exec === d ? D && !N ? { done: !0, value: E.call(O,
|
|
3792
|
+
var E = /./[M], T = S(M, ""[y], function(V, O, j, L, N) {
|
|
3793
|
+
return O.exec === d ? D && !N ? { done: !0, value: E.call(O, j, L) } : { done: !0, value: V.call(j, O, L) } : { done: !1 };
|
|
3791
3794
|
}, {
|
|
3792
3795
|
REPLACE_KEEPS_$0: h,
|
|
3793
3796
|
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: g
|
|
3794
|
-
}), I = T[0],
|
|
3797
|
+
}), I = T[0], $ = T[1];
|
|
3795
3798
|
a(String.prototype, y, I), a(
|
|
3796
3799
|
RegExp.prototype,
|
|
3797
3800
|
M,
|
|
3798
3801
|
C == 2 ? function(V, O) {
|
|
3799
|
-
return
|
|
3802
|
+
return $.call(V, this, O);
|
|
3800
3803
|
} : function(V) {
|
|
3801
|
-
return
|
|
3804
|
+
return $.call(V, this);
|
|
3802
3805
|
}
|
|
3803
3806
|
);
|
|
3804
3807
|
}
|
|
@@ -4050,18 +4053,18 @@ const N4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4050
4053
|
t("e01a"), t("d28b"), t("e260"), t("d3b7"), t("3ca3"), t("ddb0");
|
|
4051
4054
|
function h(x, b) {
|
|
4052
4055
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(x)))) {
|
|
4053
|
-
var z = [], H = !0, R = !1,
|
|
4056
|
+
var z = [], H = !0, R = !1, G = void 0;
|
|
4054
4057
|
try {
|
|
4055
4058
|
for (var J = x[Symbol.iterator](), e2; !(H = (e2 = J.next()).done) && (z.push(e2.value), !(b && z.length === b)); H = !0)
|
|
4056
4059
|
;
|
|
4057
|
-
} catch (
|
|
4058
|
-
R = !0,
|
|
4060
|
+
} catch (y2) {
|
|
4061
|
+
R = !0, G = y2;
|
|
4059
4062
|
} finally {
|
|
4060
4063
|
try {
|
|
4061
4064
|
!H && J.return != null && J.return();
|
|
4062
4065
|
} finally {
|
|
4063
4066
|
if (R)
|
|
4064
|
-
throw
|
|
4067
|
+
throw G;
|
|
4065
4068
|
}
|
|
4066
4069
|
}
|
|
4067
4070
|
return z;
|
|
@@ -4117,61 +4120,61 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4117
4120
|
}
|
|
4118
4121
|
var I = t("dbf1");
|
|
4119
4122
|
t("13d5"), t("4fad"), t("ac1f"), t("5319");
|
|
4120
|
-
function
|
|
4123
|
+
function $(x) {
|
|
4121
4124
|
var b = /* @__PURE__ */ Object.create(null);
|
|
4122
4125
|
return function(H) {
|
|
4123
4126
|
var R = b[H];
|
|
4124
4127
|
return R || (b[H] = x(H));
|
|
4125
4128
|
};
|
|
4126
4129
|
}
|
|
4127
|
-
var V = /-(\w)/g, O =
|
|
4130
|
+
var V = /-(\w)/g, O = $(function(x) {
|
|
4128
4131
|
return x.replace(V, function(b, z) {
|
|
4129
4132
|
return z.toUpperCase();
|
|
4130
4133
|
});
|
|
4131
4134
|
});
|
|
4132
4135
|
t("5db7"), t("73d9");
|
|
4133
|
-
var
|
|
4136
|
+
var j = ["Start", "Add", "Remove", "Update", "End"], L = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], N = ["Move"], Q = [N, j, L].flatMap(function(x) {
|
|
4134
4137
|
return x;
|
|
4135
4138
|
}).map(function(x) {
|
|
4136
4139
|
return "on".concat(x);
|
|
4137
4140
|
}), n2 = {
|
|
4138
4141
|
manage: N,
|
|
4139
|
-
manageAndEmit:
|
|
4142
|
+
manageAndEmit: j,
|
|
4140
4143
|
emit: L
|
|
4141
4144
|
};
|
|
4142
|
-
function
|
|
4145
|
+
function S2(x) {
|
|
4143
4146
|
return Q.indexOf(x) !== -1;
|
|
4144
4147
|
}
|
|
4145
4148
|
t("caad"), t("2ca0");
|
|
4146
|
-
var
|
|
4149
|
+
var l2 = ["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"];
|
|
4147
4150
|
function s2(x) {
|
|
4148
|
-
return
|
|
4151
|
+
return l2.includes(x);
|
|
4149
4152
|
}
|
|
4150
|
-
function
|
|
4153
|
+
function v2(x) {
|
|
4151
4154
|
return ["transition-group", "TransitionGroup"].includes(x);
|
|
4152
4155
|
}
|
|
4153
|
-
function
|
|
4156
|
+
function b2(x) {
|
|
4154
4157
|
return ["id", "class", "role", "style"].includes(x) || x.startsWith("data-") || x.startsWith("aria-") || x.startsWith("on");
|
|
4155
4158
|
}
|
|
4156
|
-
function
|
|
4159
|
+
function f2(x) {
|
|
4157
4160
|
return x.reduce(function(b, z) {
|
|
4158
|
-
var H = y(z, 2), R = H[0],
|
|
4159
|
-
return b[R] =
|
|
4161
|
+
var H = y(z, 2), R = H[0], G = H[1];
|
|
4162
|
+
return b[R] = G, b;
|
|
4160
4163
|
}, {});
|
|
4161
4164
|
}
|
|
4162
4165
|
function o2(x) {
|
|
4163
|
-
var b = x.$attrs, z = x.componentData, H = z === void 0 ? {} : z, R =
|
|
4164
|
-
var J = y(
|
|
4165
|
-
return J[1],
|
|
4166
|
+
var b = x.$attrs, z = x.componentData, H = z === void 0 ? {} : z, R = f2(Object.entries(b).filter(function(G) {
|
|
4167
|
+
var J = y(G, 2), e2 = J[0];
|
|
4168
|
+
return J[1], b2(e2);
|
|
4166
4169
|
}));
|
|
4167
4170
|
return u(u({}, R), H);
|
|
4168
4171
|
}
|
|
4169
|
-
function
|
|
4170
|
-
var b = x.$attrs, z = x.callBackBuilder, H =
|
|
4171
|
-
Object.entries(z).forEach(function(
|
|
4172
|
-
var J = y(
|
|
4173
|
-
n2[e2].forEach(function(
|
|
4174
|
-
H["on".concat(
|
|
4172
|
+
function a2(x) {
|
|
4173
|
+
var b = x.$attrs, z = x.callBackBuilder, H = f2(H2(b));
|
|
4174
|
+
Object.entries(z).forEach(function(G) {
|
|
4175
|
+
var J = y(G, 2), e2 = J[0], y2 = J[1];
|
|
4176
|
+
n2[e2].forEach(function(W) {
|
|
4177
|
+
H["on".concat(W)] = y2(W);
|
|
4175
4178
|
});
|
|
4176
4179
|
});
|
|
4177
4180
|
var R = "[data-draggable]".concat(H.draggable || "");
|
|
@@ -4179,85 +4182,85 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4179
4182
|
draggable: R
|
|
4180
4183
|
});
|
|
4181
4184
|
}
|
|
4182
|
-
function
|
|
4185
|
+
function H2(x) {
|
|
4183
4186
|
return Object.entries(x).filter(function(b) {
|
|
4184
4187
|
var z = y(b, 2), H = z[0];
|
|
4185
|
-
return z[1], !
|
|
4188
|
+
return z[1], !b2(H);
|
|
4186
4189
|
}).map(function(b) {
|
|
4187
4190
|
var z = y(b, 2), H = z[0], R = z[1];
|
|
4188
4191
|
return [O(H), R];
|
|
4189
4192
|
}).filter(function(b) {
|
|
4190
4193
|
var z = y(b, 2), H = z[0];
|
|
4191
|
-
return z[1], !
|
|
4194
|
+
return z[1], !S2(H);
|
|
4192
4195
|
});
|
|
4193
4196
|
}
|
|
4194
4197
|
t("c740");
|
|
4195
|
-
function
|
|
4198
|
+
function M2(x, b) {
|
|
4196
4199
|
if (!(x instanceof b))
|
|
4197
4200
|
throw new TypeError("Cannot call a class as a function");
|
|
4198
4201
|
}
|
|
4199
|
-
function
|
|
4202
|
+
function B2(x, b) {
|
|
4200
4203
|
for (var z = 0; z < b.length; z++) {
|
|
4201
4204
|
var H = b[z];
|
|
4202
4205
|
H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(x, H.key, H);
|
|
4203
4206
|
}
|
|
4204
4207
|
}
|
|
4205
|
-
function
|
|
4206
|
-
return b &&
|
|
4208
|
+
function Z(x, b, z) {
|
|
4209
|
+
return b && B2(x.prototype, b), z && B2(x, z), x;
|
|
4207
4210
|
}
|
|
4208
|
-
var
|
|
4211
|
+
var i2 = function(b) {
|
|
4209
4212
|
var z = b.el;
|
|
4210
4213
|
return z;
|
|
4211
|
-
},
|
|
4214
|
+
}, h2 = function(b, z) {
|
|
4212
4215
|
return b.__draggable_context = z;
|
|
4213
|
-
},
|
|
4216
|
+
}, x2 = function(b) {
|
|
4214
4217
|
return b.__draggable_context;
|
|
4215
|
-
},
|
|
4218
|
+
}, Y2 = /* @__PURE__ */ function() {
|
|
4216
4219
|
function x(b) {
|
|
4217
|
-
var z = b.nodes, H = z.header, R = z.default,
|
|
4218
|
-
|
|
4220
|
+
var z = b.nodes, H = z.header, R = z.default, G = z.footer, J = b.root, e2 = b.realList;
|
|
4221
|
+
M2(this, x), this.defaultNodes = R, this.children = [].concat(M(H), M(R), M(G)), this.externalComponent = J.externalComponent, this.rootTransition = J.transition, this.tag = J.tag, this.realList = e2;
|
|
4219
4222
|
}
|
|
4220
|
-
return
|
|
4223
|
+
return Z(x, [{
|
|
4221
4224
|
key: "render",
|
|
4222
4225
|
value: function(z, H) {
|
|
4223
|
-
var R = this.tag,
|
|
4226
|
+
var R = this.tag, G = this.children, J = this._isRootComponent, e2 = J ? {
|
|
4224
4227
|
default: function() {
|
|
4225
|
-
return
|
|
4228
|
+
return G;
|
|
4226
4229
|
}
|
|
4227
|
-
} :
|
|
4230
|
+
} : G;
|
|
4228
4231
|
return z(R, H, e2);
|
|
4229
4232
|
}
|
|
4230
4233
|
}, {
|
|
4231
4234
|
key: "updated",
|
|
4232
4235
|
value: function() {
|
|
4233
4236
|
var z = this.defaultNodes, H = this.realList;
|
|
4234
|
-
z.forEach(function(R,
|
|
4235
|
-
|
|
4236
|
-
element: H[
|
|
4237
|
-
index:
|
|
4237
|
+
z.forEach(function(R, G) {
|
|
4238
|
+
h2(i2(R), {
|
|
4239
|
+
element: H[G],
|
|
4240
|
+
index: G
|
|
4238
4241
|
});
|
|
4239
4242
|
});
|
|
4240
4243
|
}
|
|
4241
4244
|
}, {
|
|
4242
4245
|
key: "getUnderlyingVm",
|
|
4243
4246
|
value: function(z) {
|
|
4244
|
-
return
|
|
4247
|
+
return x2(z);
|
|
4245
4248
|
}
|
|
4246
4249
|
}, {
|
|
4247
4250
|
key: "getVmIndexFromDomIndex",
|
|
4248
4251
|
value: function(z, H) {
|
|
4249
|
-
var R = this.defaultNodes,
|
|
4252
|
+
var R = this.defaultNodes, G = R.length, J = H.children, e2 = J.item(z);
|
|
4250
4253
|
if (e2 === null)
|
|
4251
|
-
return
|
|
4252
|
-
var
|
|
4253
|
-
if (
|
|
4254
|
-
return
|
|
4255
|
-
if (
|
|
4254
|
+
return G;
|
|
4255
|
+
var y2 = x2(e2);
|
|
4256
|
+
if (y2)
|
|
4257
|
+
return y2.index;
|
|
4258
|
+
if (G === 0)
|
|
4256
4259
|
return 0;
|
|
4257
|
-
var
|
|
4258
|
-
return K ===
|
|
4260
|
+
var W = i2(R[0]), F = M(J).findIndex(function(K) {
|
|
4261
|
+
return K === W;
|
|
4259
4262
|
});
|
|
4260
|
-
return z < F ? 0 :
|
|
4263
|
+
return z < F ? 0 : G;
|
|
4261
4264
|
}
|
|
4262
4265
|
}, {
|
|
4263
4266
|
key: "_isRootComponent",
|
|
@@ -4265,19 +4268,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4265
4268
|
return this.externalComponent || this.rootTransition;
|
|
4266
4269
|
}
|
|
4267
4270
|
}]), x;
|
|
4268
|
-
}(),
|
|
4269
|
-
function
|
|
4271
|
+
}(), U2 = t("8bbf");
|
|
4272
|
+
function G2(x, b) {
|
|
4270
4273
|
var z = x[b];
|
|
4271
4274
|
return z ? z() : [];
|
|
4272
4275
|
}
|
|
4273
4276
|
function K3(x) {
|
|
4274
|
-
var b = x.$slots, z = x.realList, H = x.getKey, R = z || [],
|
|
4275
|
-
return
|
|
4276
|
-
}), J = y(
|
|
4277
|
-
if (!
|
|
4277
|
+
var b = x.$slots, z = x.realList, H = x.getKey, R = z || [], G = ["header", "footer"].map(function(K) {
|
|
4278
|
+
return G2(b, K);
|
|
4279
|
+
}), J = y(G, 2), e2 = J[0], y2 = J[1], W = b.item;
|
|
4280
|
+
if (!W)
|
|
4278
4281
|
throw new Error("draggable element must have an item slot");
|
|
4279
4282
|
var F = R.flatMap(function(K, _) {
|
|
4280
|
-
return
|
|
4283
|
+
return W({
|
|
4281
4284
|
element: K,
|
|
4282
4285
|
index: _
|
|
4283
4286
|
}).map(function(t2) {
|
|
@@ -4290,37 +4293,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4290
4293
|
throw new Error("Item slot must have only one child");
|
|
4291
4294
|
return {
|
|
4292
4295
|
header: e2,
|
|
4293
|
-
footer:
|
|
4296
|
+
footer: y2,
|
|
4294
4297
|
default: F
|
|
4295
4298
|
};
|
|
4296
4299
|
}
|
|
4297
4300
|
function h1(x) {
|
|
4298
|
-
var b =
|
|
4301
|
+
var b = v2(x), z = !s2(x) && !b;
|
|
4299
4302
|
return {
|
|
4300
4303
|
transition: b,
|
|
4301
4304
|
externalComponent: z,
|
|
4302
|
-
tag: z ? Object(
|
|
4305
|
+
tag: z ? Object(U2.resolveComponent)(x) : b ? U2.TransitionGroup : x
|
|
4303
4306
|
};
|
|
4304
4307
|
}
|
|
4305
|
-
function
|
|
4306
|
-
var b = x.$slots, z = x.tag, H = x.realList, R = x.getKey,
|
|
4308
|
+
function F2(x) {
|
|
4309
|
+
var b = x.$slots, z = x.tag, H = x.realList, R = x.getKey, G = K3({
|
|
4307
4310
|
$slots: b,
|
|
4308
4311
|
realList: H,
|
|
4309
4312
|
getKey: R
|
|
4310
4313
|
}), J = h1(z);
|
|
4311
|
-
return new
|
|
4312
|
-
nodes:
|
|
4314
|
+
return new Y2({
|
|
4315
|
+
nodes: G,
|
|
4313
4316
|
root: J,
|
|
4314
4317
|
realList: H
|
|
4315
4318
|
});
|
|
4316
4319
|
}
|
|
4317
|
-
function
|
|
4320
|
+
function e3(x, b) {
|
|
4318
4321
|
var z = this;
|
|
4319
|
-
Object(
|
|
4322
|
+
Object(U2.nextTick)(function() {
|
|
4320
4323
|
return z.$emit(x.toLowerCase(), b);
|
|
4321
4324
|
});
|
|
4322
4325
|
}
|
|
4323
|
-
function
|
|
4326
|
+
function d3(x) {
|
|
4324
4327
|
var b = this;
|
|
4325
4328
|
return function(z, H) {
|
|
4326
4329
|
if (b.realList !== null)
|
|
@@ -4328,9 +4331,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4328
4331
|
};
|
|
4329
4332
|
}
|
|
4330
4333
|
function y3(x) {
|
|
4331
|
-
var b = this, z =
|
|
4334
|
+
var b = this, z = d3.call(this, x);
|
|
4332
4335
|
return function(H, R) {
|
|
4333
|
-
z.call(b, H, R),
|
|
4336
|
+
z.call(b, H, R), e3.call(b, x, H);
|
|
4334
4337
|
};
|
|
4335
4338
|
}
|
|
4336
4339
|
var b3 = null, x3 = {
|
|
@@ -4369,7 +4372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4369
4372
|
}
|
|
4370
4373
|
}, z3 = ["update:modelValue", "change"].concat(M([].concat(M(n2.manageAndEmit), M(n2.emit)).map(function(x) {
|
|
4371
4374
|
return x.toLowerCase();
|
|
4372
|
-
}))), S3 = Object(
|
|
4375
|
+
}))), S3 = Object(U2.defineComponent)({
|
|
4373
4376
|
name: "draggable",
|
|
4374
4377
|
inheritAttrs: !1,
|
|
4375
4378
|
props: x3,
|
|
@@ -4382,24 +4385,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4382
4385
|
render: function() {
|
|
4383
4386
|
try {
|
|
4384
4387
|
this.error = !1;
|
|
4385
|
-
var b = this.$slots, z = this.$attrs, H = this.tag, R = this.componentData,
|
|
4388
|
+
var b = this.$slots, z = this.$attrs, H = this.tag, R = this.componentData, G = this.realList, J = this.getKey, e2 = F2({
|
|
4386
4389
|
$slots: b,
|
|
4387
4390
|
tag: H,
|
|
4388
|
-
realList:
|
|
4391
|
+
realList: G,
|
|
4389
4392
|
getKey: J
|
|
4390
4393
|
});
|
|
4391
4394
|
this.componentStructure = e2;
|
|
4392
|
-
var
|
|
4395
|
+
var y2 = o2({
|
|
4393
4396
|
$attrs: z,
|
|
4394
4397
|
componentData: R
|
|
4395
4398
|
});
|
|
4396
|
-
return e2.render(
|
|
4397
|
-
} catch (
|
|
4398
|
-
return this.error = !0, Object(
|
|
4399
|
+
return e2.render(U2.h, y2);
|
|
4400
|
+
} catch (W) {
|
|
4401
|
+
return this.error = !0, Object(U2.h)("pre", {
|
|
4399
4402
|
style: {
|
|
4400
4403
|
color: "red"
|
|
4401
4404
|
}
|
|
4402
|
-
},
|
|
4405
|
+
}, W.stack);
|
|
4403
4406
|
}
|
|
4404
4407
|
},
|
|
4405
4408
|
created: function() {
|
|
@@ -4410,21 +4413,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4410
4413
|
if (!this.error) {
|
|
4411
4414
|
var z = this.$attrs, H = this.$el, R = this.componentStructure;
|
|
4412
4415
|
R.updated();
|
|
4413
|
-
var
|
|
4416
|
+
var G = a2({
|
|
4414
4417
|
$attrs: z,
|
|
4415
4418
|
callBackBuilder: {
|
|
4416
|
-
manageAndEmit: function(
|
|
4417
|
-
return y3.call(b,
|
|
4419
|
+
manageAndEmit: function(y2) {
|
|
4420
|
+
return y3.call(b, y2);
|
|
4418
4421
|
},
|
|
4419
|
-
emit: function(
|
|
4420
|
-
return
|
|
4422
|
+
emit: function(y2) {
|
|
4423
|
+
return e3.bind(b, y2);
|
|
4421
4424
|
},
|
|
4422
|
-
manage: function(
|
|
4423
|
-
return
|
|
4425
|
+
manage: function(y2) {
|
|
4426
|
+
return d3.call(b, y2);
|
|
4424
4427
|
}
|
|
4425
4428
|
}
|
|
4426
4429
|
}), J = H.nodeType === 1 ? H : H.parentElement;
|
|
4427
|
-
this._sortable = new P.a(J,
|
|
4430
|
+
this._sortable = new P.a(J, G), this.targetDomElement = J, J.__draggable_component__ = this;
|
|
4428
4431
|
}
|
|
4429
4432
|
},
|
|
4430
4433
|
updated: function() {
|
|
@@ -4449,9 +4452,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4449
4452
|
$attrs: {
|
|
4450
4453
|
handler: function(b) {
|
|
4451
4454
|
var z = this._sortable;
|
|
4452
|
-
z &&
|
|
4453
|
-
var R = y(H, 2),
|
|
4454
|
-
z.option(
|
|
4455
|
+
z && H2(b).forEach(function(H) {
|
|
4456
|
+
var R = y(H, 2), G = R[0], J = R[1];
|
|
4457
|
+
z.option(G, J);
|
|
4455
4458
|
});
|
|
4456
4459
|
},
|
|
4457
4460
|
deep: !0
|
|
@@ -4466,7 +4469,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4466
4469
|
},
|
|
4467
4470
|
emitChanges: function(b) {
|
|
4468
4471
|
var z = this;
|
|
4469
|
-
Object(
|
|
4472
|
+
Object(U2.nextTick)(function() {
|
|
4470
4473
|
return z.$emit("change", b);
|
|
4471
4474
|
});
|
|
4472
4475
|
},
|
|
@@ -4485,8 +4488,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4485
4488
|
this.alterList(z);
|
|
4486
4489
|
},
|
|
4487
4490
|
updatePosition: function(b, z) {
|
|
4488
|
-
var H = function(
|
|
4489
|
-
return
|
|
4491
|
+
var H = function(G) {
|
|
4492
|
+
return G.splice(z, 0, G.splice(b, 1)[0]);
|
|
4490
4493
|
};
|
|
4491
4494
|
this.alterList(H);
|
|
4492
4495
|
},
|
|
@@ -4496,11 +4499,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4496
4499
|
return {
|
|
4497
4500
|
component: R
|
|
4498
4501
|
};
|
|
4499
|
-
var
|
|
4500
|
-
list:
|
|
4502
|
+
var G = R.realList, J = {
|
|
4503
|
+
list: G,
|
|
4501
4504
|
component: R
|
|
4502
4505
|
};
|
|
4503
|
-
if (z !== H &&
|
|
4506
|
+
if (z !== H && G) {
|
|
4504
4507
|
var e2 = R.getUnderlyingVm(H) || {};
|
|
4505
4508
|
return u(u({}, e2), J);
|
|
4506
4509
|
}
|
|
@@ -4534,12 +4537,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4534
4537
|
}
|
|
4535
4538
|
var z = this.context, H = z.index, R = z.element;
|
|
4536
4539
|
this.spliceList(H, 1);
|
|
4537
|
-
var
|
|
4540
|
+
var G = {
|
|
4538
4541
|
element: R,
|
|
4539
4542
|
oldIndex: H
|
|
4540
4543
|
};
|
|
4541
4544
|
this.emitChanges({
|
|
4542
|
-
removed:
|
|
4545
|
+
removed: G
|
|
4543
4546
|
});
|
|
4544
4547
|
},
|
|
4545
4548
|
onDragUpdate: function(b) {
|
|
@@ -4560,20 +4563,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4560
4563
|
return 0;
|
|
4561
4564
|
var H = M(z.to.children).filter(function(e2) {
|
|
4562
4565
|
return e2.style.display !== "none";
|
|
4563
|
-
}), R = H.indexOf(z.related),
|
|
4564
|
-
return J || !z.willInsertAfter ?
|
|
4566
|
+
}), R = H.indexOf(z.related), G = b.component.getVmIndexFromDomIndex(R), J = H.indexOf(b3) !== -1;
|
|
4567
|
+
return J || !z.willInsertAfter ? G : G + 1;
|
|
4565
4568
|
},
|
|
4566
4569
|
onDragMove: function(b, z) {
|
|
4567
4570
|
var H = this.move, R = this.realList;
|
|
4568
4571
|
if (!H || !R)
|
|
4569
4572
|
return !0;
|
|
4570
|
-
var
|
|
4573
|
+
var G = this.getRelatedContextFromMoveEvent(b), J = this.computeFutureIndex(G, b), e2 = u(u({}, this.context), {}, {
|
|
4571
4574
|
futureIndex: J
|
|
4572
|
-
}),
|
|
4573
|
-
relatedContext:
|
|
4575
|
+
}), y2 = u(u({}, b), {}, {
|
|
4576
|
+
relatedContext: G,
|
|
4574
4577
|
draggedContext: e2
|
|
4575
4578
|
});
|
|
4576
|
-
return H(
|
|
4579
|
+
return H(y2, z);
|
|
4577
4580
|
},
|
|
4578
4581
|
onDragEnd: function() {
|
|
4579
4582
|
b3 = null;
|
|
@@ -4587,12 +4590,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4587
4590
|
var a = t("23e7"), l = t("861d"), c = t("e8b5"), d = t("23cb"), f = t("50c4"), u = t("fc6a"), v = t("8418"), h = t("b622"), m = t("1dde"), g = t("ae40"), p = m("slice"), y = g("slice", { ACCESSORS: !0, 0: 0, 1: 2 }), C = h("species"), S = [].slice, w = Math.max;
|
|
4588
4591
|
a({ target: "Array", proto: !0, forced: !p || !y }, {
|
|
4589
4592
|
slice: function(D, P) {
|
|
4590
|
-
var E = u(this), T = f(E.length), I = d(D, T),
|
|
4593
|
+
var E = u(this), T = f(E.length), I = d(D, T), $ = d(P === void 0 ? T : P, T), V, O, j;
|
|
4591
4594
|
if (c(E) && (V = E.constructor, typeof V == "function" && (V === Array || c(V.prototype)) ? V = void 0 : l(V) && (V = V[C], V === null && (V = void 0)), V === Array || V === void 0))
|
|
4592
|
-
return S.call(E, I,
|
|
4593
|
-
for (O = new (V === void 0 ? Array : V)(w(
|
|
4594
|
-
I in E && v(O,
|
|
4595
|
-
return O.length =
|
|
4595
|
+
return S.call(E, I, $);
|
|
4596
|
+
for (O = new (V === void 0 ? Array : V)(w($ - I, 0)), j = 0; I < $; I++, j++)
|
|
4597
|
+
I in E && v(O, j, E[I]);
|
|
4598
|
+
return O.length = j, O;
|
|
4596
4599
|
}
|
|
4597
4600
|
});
|
|
4598
4601
|
},
|
|
@@ -4647,24 +4650,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4647
4650
|
/******/
|
|
4648
4651
|
}).default;
|
|
4649
4652
|
});
|
|
4650
|
-
})(
|
|
4651
|
-
const
|
|
4652
|
-
r.use(
|
|
4653
|
+
})(n4);
|
|
4654
|
+
const j4 = /* @__PURE__ */ Ot(V1), E0 = (r) => {
|
|
4655
|
+
r.use(It), r.use(Lt);
|
|
4653
4656
|
};
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
const
|
|
4657
|
+
f0.install = E0;
|
|
4658
|
+
u0.install = E0;
|
|
4659
|
+
const z6 = {
|
|
4657
4660
|
install(r) {
|
|
4658
|
-
r.use(
|
|
4661
|
+
r.use(Rt);
|
|
4659
4662
|
try {
|
|
4660
|
-
r.component("draggable",
|
|
4663
|
+
r.component("draggable", j4);
|
|
4661
4664
|
} catch {
|
|
4662
4665
|
}
|
|
4663
|
-
r.component("VFormRender",
|
|
4666
|
+
r.component("VFormRender", f0), r.component("VFormDesigner", u0);
|
|
4664
4667
|
}
|
|
4665
4668
|
};
|
|
4666
4669
|
export {
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
+
f0 as F,
|
|
4671
|
+
z6 as i,
|
|
4672
|
+
Kt as u
|
|
4670
4673
|
};
|