@das-fed/upf-ui 6.4.0-dev.305 → 6.4.0-dev.307
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/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
- package/package.json +9 -9
- package/packages/business-components/ai-panel/{index-BdLFU3HT.js → index-C1XseEkL.js} +1 -1
- package/packages/business-components/ai-panel/index-C1XseEkL.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Cc1_Wpca.js → index-_XzaXcle.js} +1136 -1154
- package/packages/business-components/ai-panel/index-_XzaXcle.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/components/referenceContent/index.vue.d.ts +2 -2
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
- package/packages/business-components/app-container/index.js +56 -56
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +39 -39
- package/packages/business-components/area-phone-select/index.js +87 -87
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +5 -5
- package/packages/business-components/change-enterprises/index.js +20 -20
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +15 -15
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +28 -28
- package/packages/business-components/currency-page/index.js +39 -39
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +46 -46
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.d.ts +10 -10
- package/packages/business-components/echarts/src/Index.vue.d.ts +2 -2
- package/packages/business-components/export-button/index.d.ts +3 -3
- package/packages/business-components/export-button/index.js +92 -92
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/export-button/src/App.vue.d.ts +1 -1
- package/packages/business-components/import-button/index.js +171 -171
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +42 -42
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.d.ts +43 -43
- package/packages/business-components/model-table-dialog/index.js +233 -233
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +4 -4
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +1 -1
- package/packages/business-components/payment/index.js +44 -44
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +939 -939
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +28 -28
- package/packages/business-components/process-form/src/widgets/layout/accordion/accordion.d.ts +1 -1
- package/packages/business-components/process-form/src/widgets/layout/grid/grid.d.ts +1 -1
- package/packages/business-components/process-log/index.js +331 -331
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +4 -4
- package/packages/business-components/process-table/index.d.ts +14 -14
- package/packages/business-components/upload-file/index.js +43 -43
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/style.css +1 -1
- package/packages/business-components/urgent-panel/index.js +340 -340
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/business-components/video-dialog/index.js +17 -17
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/alert/index.d.ts +13 -13
- package/packages/components/alert/index.js +5 -5
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/alert/src/index.vue.d.ts +1 -1
- package/packages/components/audio-video/index.d.ts +10 -10
- package/packages/components/audio-video/index.js +141 -141
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/audio-video/src/Index.vue.d.ts +2 -2
- package/packages/components/autocomplete/index.d.ts +15 -15
- package/packages/components/autocomplete/index.js +162 -162
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/index.js +37 -37
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.d.ts +3 -3
- package/packages/components/button/index.js +223 -223
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/src/Index.vue.d.ts +1 -1
- package/packages/components/calendar/index.js +164 -164
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.d.ts +8 -8
- package/packages/components/cascader/index.js +89 -89
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.d.ts +12 -12
- package/packages/components/checkbox/index.js +180 -180
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/collapse-panel/index.js +12 -12
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collaspe/index.d.ts +4 -4
- package/packages/components/collaspe/index.js +22 -22
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.d.ts +4 -4
- package/packages/components/custom-search-item/index.js +36 -36
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/index.d.ts +15 -15
- package/packages/components/date-picker/index.js +658 -658
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.d.ts +3 -3
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +1 -1
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +31 -73
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +33 -33
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.d.ts +4 -4
- package/packages/components/edit-table/index.js +190 -190
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -3
- package/packages/components/empty/index.js +29 -29
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/error-overlay-model/index.js +31 -31
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/index.d.ts +37 -37
- package/packages/components/form/index.js +23 -23
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/src/Index.vue.d.ts +3 -3
- package/packages/components/form-item/index.js +847 -841
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/image-upload/index.js +90 -90
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +418 -418
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/infinite-scroll/index.d.ts +2 -4
- package/packages/components/infinite-scroll/index.js +509 -509
- package/packages/components/infinite-scroll/index.js.gz +0 -0
- package/packages/components/infinite-scroll/src/index.vue.d.ts +3 -5
- package/packages/components/infinite-scroll/src/type.d.ts +78 -78
- package/packages/components/infinite-scroll/style.css +1 -1
- package/packages/components/infinite-scroll/style.css.gz +0 -0
- package/packages/components/input/index.js +544 -544
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -2
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +82 -82
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-number/index.js +103 -103
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/live-player/index.d.ts +4 -4
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +600 -600
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +17 -17
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.js +91 -91
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/index.d.ts +4 -4
- package/packages/components/popover/index.js +33 -33
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +13 -13
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/progress/index.js +93 -93
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +10 -10
- package/packages/components/radio/index.js +175 -175
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +234 -234
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +2 -2
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +68 -68
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +736 -736
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.d.ts +3 -3
- package/packages/components/select/index.js +212 -212
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -1
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.js +77 -77
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-list/index.d.ts +3 -3
- package/packages/components/select-list/index.js +430 -430
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +1 -1
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +140 -140
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +169 -169
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/spin/index.js +37 -37
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.d.ts +8 -8
- package/packages/components/split-panel/index.js +27 -27
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.d.ts +121 -121
- package/packages/components/table/index.js +1869 -1869
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +10 -10
- package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
- package/packages/components/tabs/index.js +101 -101
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.d.ts +3 -3
- package/packages/components/tag/src/Index.vue.d.ts +1 -1
- package/packages/components/text-tooltip/src/type.d.ts +5 -5
- package/packages/components/time-line/index.js +35 -35
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.d.ts +22 -22
- package/packages/components/tooltip/index.js +62 -62
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/src/index.vue.d.ts +2 -2
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +426 -426
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +233 -233
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +20 -20
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +18 -18
- package/packages/components/tree-table/index.d.ts +2 -2
- package/packages/components/tree-table/index.js +181 -181
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1308 -1308
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +145 -155
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/upload/index.js +98 -98
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +62 -62
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +140 -140
- package/release-meta.json +6 -6
- package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Cc1_Wpca.js.gz +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { withInstall as wi } from "@das-fed/upf-utils/with-install/index";
|
|
2
2
|
import { i18n as je, setI18nRule as Si } from "@das-fed/upf-web/packages/i18n/index";
|
|
3
|
-
import { ElInfiniteScroll as
|
|
3
|
+
import { ElInfiniteScroll as _i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import "element-plus/es/components/infinite-scroll/style/css";
|
|
6
|
-
import { pushScopeId as
|
|
6
|
+
import { pushScopeId as Ei, popScopeId as Di, nextTick as et, openBlock as k, createBlock as le, withScopeId as Ii, markRaw as Ti, shallowReactive as Oi, resolveComponent as Ci, resolveDirective as zi, withDirectives as Se, createElementBlock as W, normalizeClass as oe, renderSlot as he, createCommentVNode as G, resolveDynamicComponent as Rt, normalizeStyle as Jt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as Ai, toHandlers as ki, createVNode as Pi, ref as Pe, computed as Ne, onMounted as Zt, onBeforeUnmount as Ni, watch as Ft, defineComponent as $i, useCssVars as Mi, createElementVNode as Oe, toDisplayString as Ce, unref as _, createTextVNode as Le } from "vue";
|
|
7
7
|
import { vDasTooltip as ut } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
8
|
-
import { DasButton as
|
|
8
|
+
import { DasButton as xi } from "@das-fed/upf-ui/packages/components/button/index";
|
|
9
9
|
import { vOverlay as Vi } from "@das-fed/upf-ui/packages/components/overlay/index";
|
|
10
10
|
import { DasIconClose2 as dt } from "@das-fed/upf-ui/packages/icons/close-2/index";
|
|
11
11
|
import { DasIconDrag as Ri } from "@das-fed/upf-ui/packages/icons/drag/index";
|
|
@@ -28,8 +28,8 @@ function Hi() {
|
|
|
28
28
|
return r > 0 ? parseInt(t.substring(r + 5, t.indexOf(".", r)), 10) : -1;
|
|
29
29
|
}
|
|
30
30
|
let Ke;
|
|
31
|
-
function
|
|
32
|
-
|
|
31
|
+
function Dt() {
|
|
32
|
+
Dt.init || (Dt.init = !0, Ke = Hi() !== -1);
|
|
33
33
|
}
|
|
34
34
|
var at = {
|
|
35
35
|
name: "ResizeObserver",
|
|
@@ -51,7 +51,7 @@ var at = {
|
|
|
51
51
|
"notify"
|
|
52
52
|
],
|
|
53
53
|
mounted() {
|
|
54
|
-
|
|
54
|
+
Dt(), et(() => {
|
|
55
55
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
56
56
|
});
|
|
57
57
|
const t = document.createElement("object");
|
|
@@ -79,13 +79,13 @@ var at = {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
const Li = /* @__PURE__ */ Ii("data-v-b329ee4c");
|
|
82
|
-
|
|
82
|
+
Ei("data-v-b329ee4c");
|
|
83
83
|
const Bi = {
|
|
84
84
|
class: "resize-observer",
|
|
85
85
|
tabindex: "-1"
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
const Yi = /* @__PURE__ */ Li((t, e, i, n, r, o) => (
|
|
87
|
+
Di();
|
|
88
|
+
const Yi = /* @__PURE__ */ Li((t, e, i, n, r, o) => (k(), le("div", Bi)));
|
|
89
89
|
at.render = Yi;
|
|
90
90
|
at.__scopeId = "data-v-b329ee4c";
|
|
91
91
|
at.__file = "src/components/ResizeObserver.vue";
|
|
@@ -144,11 +144,11 @@ function Ji(t) {
|
|
|
144
144
|
}
|
|
145
145
|
function Zi(t, e) {
|
|
146
146
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, r, o, l = function(s) {
|
|
147
|
-
for (var u = arguments.length,
|
|
148
|
-
|
|
149
|
-
if (o =
|
|
150
|
-
var
|
|
151
|
-
typeof
|
|
147
|
+
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
|
|
148
|
+
c[f - 1] = arguments[f];
|
|
149
|
+
if (o = c, !(n && s === r)) {
|
|
150
|
+
var m = i.leading;
|
|
151
|
+
typeof m == "function" && (m = m(s, r)), (!n || s !== r) && m && t.apply(void 0, [s].concat(Ht(o))), r = s, clearTimeout(n), n = setTimeout(function() {
|
|
152
152
|
t.apply(void 0, [s].concat(Ht(o))), n = 0;
|
|
153
153
|
}, e);
|
|
154
154
|
}
|
|
@@ -189,15 +189,15 @@ var Qi = /* @__PURE__ */ function() {
|
|
|
189
189
|
this.oldResult = void 0, this.observer = new IntersectionObserver(function(a) {
|
|
190
190
|
var s = a[0];
|
|
191
191
|
if (a.length > 1) {
|
|
192
|
-
var u = a.find(function(
|
|
193
|
-
return
|
|
192
|
+
var u = a.find(function(f) {
|
|
193
|
+
return f.isIntersecting;
|
|
194
194
|
});
|
|
195
195
|
u && (s = u);
|
|
196
196
|
}
|
|
197
197
|
if (r.callback) {
|
|
198
|
-
var
|
|
199
|
-
if (
|
|
200
|
-
r.oldResult =
|
|
198
|
+
var c = s.isIntersecting && s.intersectionRatio >= r.threshold;
|
|
199
|
+
if (c === r.oldResult) return;
|
|
200
|
+
r.oldResult = c, r.callback(c, s);
|
|
201
201
|
}
|
|
202
202
|
}, this.options.intersection), et(function() {
|
|
203
203
|
r.observer && r.observer.observe(r.el);
|
|
@@ -315,7 +315,7 @@ if (typeof window < "u") {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
let dn = 0;
|
|
318
|
-
var
|
|
318
|
+
var Pt = {
|
|
319
319
|
name: "RecycleScroller",
|
|
320
320
|
components: {
|
|
321
321
|
ResizeObserver: at
|
|
@@ -506,17 +506,17 @@ var kt = {
|
|
|
506
506
|
})) : this.$emit("hidden"));
|
|
507
507
|
},
|
|
508
508
|
updateVisibleItems(t, e = !1) {
|
|
509
|
-
const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, a = this.simpleArray ? null : this.keyField, s = this.items, u = s.length,
|
|
510
|
-
let g,
|
|
509
|
+
const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, a = this.simpleArray ? null : this.keyField, s = this.items, u = s.length, c = this.sizes, f = this.$_views, m = this.$_unusedViews, E = this.pool, S = this.itemIndexByKey;
|
|
510
|
+
let g, D, V, C, p;
|
|
511
511
|
if (!u)
|
|
512
|
-
g =
|
|
512
|
+
g = D = C = p = V = 0;
|
|
513
513
|
else if (this.$_prerender)
|
|
514
|
-
g = C = 0,
|
|
514
|
+
g = C = 0, D = p = Math.min(this.prerender, s.length), V = null;
|
|
515
515
|
else {
|
|
516
516
|
const I = this.getScroll();
|
|
517
517
|
if (e) {
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
518
|
+
let A = I.start - this.$_lastUpdateScrollPosition;
|
|
519
|
+
if (A < 0 && (A = -A), i === null && A < o || A < i)
|
|
520
520
|
return {
|
|
521
521
|
continuous: !0
|
|
522
522
|
};
|
|
@@ -524,54 +524,54 @@ var kt = {
|
|
|
524
524
|
this.$_lastUpdateScrollPosition = I.start;
|
|
525
525
|
const R = this.buffer;
|
|
526
526
|
I.start -= R, I.end += R;
|
|
527
|
-
let
|
|
528
|
-
if (this.$refs.before && (
|
|
529
|
-
const
|
|
530
|
-
I.end +=
|
|
527
|
+
let N = 0;
|
|
528
|
+
if (this.$refs.before && (N = this.$refs.before.scrollHeight, I.start -= N), this.$refs.after) {
|
|
529
|
+
const A = this.$refs.after.scrollHeight;
|
|
530
|
+
I.end += A;
|
|
531
531
|
}
|
|
532
532
|
if (i === null) {
|
|
533
|
-
let
|
|
533
|
+
let A, J = 0, de = u - 1, F = ~~(u / 2), me;
|
|
534
534
|
do
|
|
535
|
-
|
|
536
|
-
while (F !==
|
|
537
|
-
for (F < 0 && (F = 0), g = F, V =
|
|
538
|
-
for (
|
|
539
|
-
for (
|
|
535
|
+
me = F, A = c[F].accumulator, A < I.start ? J = F : F < u - 1 && c[F + 1].accumulator > I.start && (de = F), F = ~~((J + de) / 2);
|
|
536
|
+
while (F !== me);
|
|
537
|
+
for (F < 0 && (F = 0), g = F, V = c[u - 1].accumulator, D = F; D < u && c[D].accumulator < I.end; D++) ;
|
|
538
|
+
for (D === -1 ? D = s.length - 1 : (D++, D > u && (D = u)), C = g; C < u && N + c[C].accumulator < I.start; C++) ;
|
|
539
|
+
for (p = C; p < u && N + c[p].accumulator < I.end; p++) ;
|
|
540
540
|
} else {
|
|
541
541
|
g = ~~(I.start / i * n);
|
|
542
|
-
const
|
|
543
|
-
g -=
|
|
542
|
+
const A = g % n;
|
|
543
|
+
g -= A, D = Math.ceil(I.end / i * n), C = Math.max(0, Math.floor((I.start - N) / i * n)), p = Math.floor((I.end - N) / i * n), g < 0 && (g = 0), D > u && (D = u), C < 0 && (C = 0), p > u && (p = u), V = Math.ceil(u / n) * i;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
|
|
547
|
-
let
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
550
|
-
for (let I = 0, R =
|
|
551
|
-
|
|
552
|
-
const Y =
|
|
553
|
-
let v, B,
|
|
554
|
-
for (let I = g; I <
|
|
546
|
+
D - g > nn.itemsLimit && this.itemsLimitError(), this.totalSize = V;
|
|
547
|
+
let d;
|
|
548
|
+
const z = g <= this.$_endIndex && D >= this.$_startIndex;
|
|
549
|
+
if (z)
|
|
550
|
+
for (let I = 0, R = E.length; I < R; I++)
|
|
551
|
+
d = E[I], d.nr.used && (t && (d.nr.index = S[d.item[a]]), (d.nr.index == null || d.nr.index < g || d.nr.index >= D) && this.unuseView(d));
|
|
552
|
+
const Y = z ? null : /* @__PURE__ */ new Map();
|
|
553
|
+
let v, B, M;
|
|
554
|
+
for (let I = g; I < D; I++) {
|
|
555
555
|
v = s[I];
|
|
556
556
|
const R = a ? v[a] : v;
|
|
557
557
|
if (R == null)
|
|
558
558
|
throw new Error(`Key is ${R} on item (keyField is '${a}')`);
|
|
559
|
-
if (
|
|
560
|
-
|
|
559
|
+
if (d = f.get(R), !i && !c[I].size) {
|
|
560
|
+
d && this.unuseView(d);
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
563
|
B = v[l];
|
|
564
|
-
let
|
|
565
|
-
if (!
|
|
566
|
-
|
|
567
|
-
else if (!
|
|
568
|
-
const J =
|
|
569
|
-
J !== -1 &&
|
|
564
|
+
let N = m.get(B), A = !1;
|
|
565
|
+
if (!d)
|
|
566
|
+
z ? N && N.length ? d = N.pop() : d = this.addView(E, I, v, R, B) : (M = Y.get(B) || 0, (!N || M >= N.length) && (d = this.addView(E, I, v, R, B), this.unuseView(d, !0), N = m.get(B)), d = N[M], Y.set(B, M + 1)), f.delete(d.nr.key), d.nr.used = !0, d.nr.index = I, d.nr.key = R, d.nr.type = B, f.set(R, d), A = !0;
|
|
567
|
+
else if (!d.nr.used && (d.nr.used = !0, A = !0, N)) {
|
|
568
|
+
const J = N.indexOf(d);
|
|
569
|
+
J !== -1 && N.splice(J, 1);
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
d.item = v, A && (I === s.length - 1 && this.$emit("scroll-end"), I === 0 && this.$emit("scroll-start")), i === null ? (d.position = c[I - 1].accumulator, d.offset = 0) : (d.position = Math.floor(I / n) * i, d.offset = I % n * r);
|
|
572
572
|
}
|
|
573
|
-
return this.$_startIndex = g, this.$_endIndex =
|
|
574
|
-
continuous:
|
|
573
|
+
return this.$_startIndex = g, this.$_endIndex = D, this.emitUpdate && this.$emit("update", g, D, C, p), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
574
|
+
continuous: z
|
|
575
575
|
};
|
|
576
576
|
},
|
|
577
577
|
getListenerTarget() {
|
|
@@ -642,8 +642,8 @@ const cn = {
|
|
|
642
642
|
class: "vue-recycle-scroller__slot"
|
|
643
643
|
};
|
|
644
644
|
function hn(t, e, i, n, r, o) {
|
|
645
|
-
const l = Ci("ResizeObserver"), a =
|
|
646
|
-
return Se((
|
|
645
|
+
const l = Ci("ResizeObserver"), a = zi("observe-visibility");
|
|
646
|
+
return Se((k(), W(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
649
|
class: oe(["vue-recycle-scroller", {
|
|
@@ -654,7 +654,7 @@ function hn(t, e, i, n, r, o) {
|
|
|
654
654
|
onScrollPassive: e[0] || (e[0] = (...s) => o.handleScroll && o.handleScroll(...s))
|
|
655
655
|
},
|
|
656
656
|
[
|
|
657
|
-
t.$slots.before ? (
|
|
657
|
+
t.$slots.before ? (k(), W(
|
|
658
658
|
"div",
|
|
659
659
|
cn,
|
|
660
660
|
[
|
|
@@ -663,16 +663,16 @@ function hn(t, e, i, n, r, o) {
|
|
|
663
663
|
512
|
|
664
664
|
/* NEED_PATCH */
|
|
665
665
|
)) : G("v-if", !0),
|
|
666
|
-
(
|
|
666
|
+
(k(), le(Rt(i.listTag), {
|
|
667
667
|
ref: "wrapper",
|
|
668
668
|
style: Jt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
669
669
|
class: oe(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
670
670
|
}, {
|
|
671
671
|
default: tt(() => [
|
|
672
|
-
(
|
|
673
|
-
|
|
672
|
+
(k(!0), W(
|
|
673
|
+
_t,
|
|
674
674
|
null,
|
|
675
|
-
|
|
675
|
+
Et(r.pool, (s) => (k(), le(Rt(i.itemTag), Ai({
|
|
676
676
|
key: s.nr.id,
|
|
677
677
|
style: r.ready ? {
|
|
678
678
|
transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${s.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${s.offset}px)`,
|
|
@@ -685,7 +685,7 @@ function hn(t, e, i, n, r, o) {
|
|
|
685
685
|
hover: !i.skipHover && r.hoverKey === s.nr.key
|
|
686
686
|
}
|
|
687
687
|
]]
|
|
688
|
-
},
|
|
688
|
+
}, ki(i.skipHover ? {} : {
|
|
689
689
|
mouseenter: () => {
|
|
690
690
|
r.hoverKey = s.nr.key;
|
|
691
691
|
},
|
|
@@ -711,7 +711,7 @@ function hn(t, e, i, n, r, o) {
|
|
|
711
711
|
_: 3
|
|
712
712
|
/* FORWARDED */
|
|
713
713
|
}, 8, ["style", "class"])),
|
|
714
|
-
t.$slots.after ? (
|
|
714
|
+
t.$slots.after ? (k(), W(
|
|
715
715
|
"div",
|
|
716
716
|
fn,
|
|
717
717
|
[
|
|
@@ -720,7 +720,7 @@ function hn(t, e, i, n, r, o) {
|
|
|
720
720
|
512
|
|
721
721
|
/* NEED_PATCH */
|
|
722
722
|
)) : G("v-if", !0),
|
|
723
|
-
|
|
723
|
+
Pi(l, { onNotify: o.handleResize }, null, 8, ["onNotify"])
|
|
724
724
|
],
|
|
725
725
|
34
|
|
726
726
|
/* CLASS, HYDRATE_EVENTS */
|
|
@@ -728,76 +728,76 @@ function hn(t, e, i, n, r, o) {
|
|
|
728
728
|
[a, o.handleVisibilityChange]
|
|
729
729
|
]);
|
|
730
730
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
const
|
|
734
|
-
const i =
|
|
731
|
+
Pt.render = hn;
|
|
732
|
+
Pt.__file = "src/components/RecycleScroller.vue";
|
|
733
|
+
const pn = (t, e) => {
|
|
734
|
+
const i = Pe(), n = Pe(), r = Qt(t, "modelValue"), o = t.valueKey, l = Ne(() => t.selectedNum ? t.selectedNum : `${t.customTitle || je("das-select-list-selected").value}${je("das-select-list-parentheses-left").value}${r.value.length}${je("das-select-list-parentheses-right").value}`), a = Ne(() => ({
|
|
735
735
|
disabled: "disabled",
|
|
736
736
|
disableDrag: "disableDrag",
|
|
737
737
|
disableDelete: "disableDelete",
|
|
738
738
|
...t.props
|
|
739
|
-
})), s = (
|
|
740
|
-
let
|
|
741
|
-
return typeof a.value.disabled == "string" ?
|
|
742
|
-
}, u = (
|
|
743
|
-
let
|
|
744
|
-
return typeof a.value.disableDrag == "string" ?
|
|
745
|
-
},
|
|
746
|
-
let
|
|
747
|
-
return typeof a.value.disableDelete == "string" ?
|
|
748
|
-
},
|
|
739
|
+
})), s = (p) => {
|
|
740
|
+
let d = !1;
|
|
741
|
+
return typeof a.value.disabled == "string" ? d = p[a.value.disabled] : d = a.value.disabled(p) ?? !1, d;
|
|
742
|
+
}, u = (p) => {
|
|
743
|
+
let d = !1;
|
|
744
|
+
return typeof a.value.disableDrag == "string" ? d = p[a.value.disableDrag] : d = a.value.disableDrag(p) ?? !1, d;
|
|
745
|
+
}, c = (p) => {
|
|
746
|
+
let d = !1;
|
|
747
|
+
return typeof a.value.disableDelete == "string" ? d = p[a.value.disableDelete] : d = a.value.disableDelete(p) ?? !1, d;
|
|
748
|
+
}, f = Ne({
|
|
749
749
|
get: () => t.selectdValue,
|
|
750
|
-
set: (
|
|
751
|
-
e("update:selectdValue",
|
|
750
|
+
set: (p) => {
|
|
751
|
+
e("update:selectdValue", p);
|
|
752
752
|
}
|
|
753
|
-
}),
|
|
754
|
-
t.isView || s(
|
|
755
|
-
},
|
|
756
|
-
const
|
|
757
|
-
e("item-remove",
|
|
753
|
+
}), m = (p) => {
|
|
754
|
+
t.isView || s(p) || (f.value = p[o], e("select-item", p));
|
|
755
|
+
}, E = (p) => {
|
|
756
|
+
const d = r.value.filter((z) => z[o] !== p[o]);
|
|
757
|
+
e("item-remove", p), e("update:modelValue", d);
|
|
758
758
|
}, S = () => {
|
|
759
|
-
const
|
|
760
|
-
e("remove-all",
|
|
759
|
+
const p = r.value.filter((z) => !s(z)), d = r.value.filter((z) => s(z));
|
|
760
|
+
e("remove-all", p), e("update:modelValue", d);
|
|
761
761
|
}, g = () => {
|
|
762
|
-
t.infiniteScroll && t.infiniteScroll().then((
|
|
763
|
-
if (
|
|
764
|
-
let
|
|
765
|
-
|
|
762
|
+
t.infiniteScroll && t.infiniteScroll().then((p) => {
|
|
763
|
+
if (p && p.length) {
|
|
764
|
+
let d = [];
|
|
765
|
+
d = p, d = d.filter(
|
|
766
766
|
(Y) => !r.value.map((v) => v[t.valueKey]).includes(Y[t.valueKey])
|
|
767
767
|
);
|
|
768
|
-
const
|
|
769
|
-
e("update:modelValue",
|
|
768
|
+
const z = r.value.concat(d);
|
|
769
|
+
e("update:modelValue", z);
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
};
|
|
773
|
-
let
|
|
774
|
-
const V = (
|
|
775
|
-
var
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
}, C =
|
|
773
|
+
let D = 0;
|
|
774
|
+
const V = (p) => {
|
|
775
|
+
var z;
|
|
776
|
+
const d = ((z = n.value) == null ? void 0 : z.offsetHeight) || 0;
|
|
777
|
+
D !== 0 && p === 0 && g(), D = p, p !== 0 && p - d < 10 && g();
|
|
778
|
+
}, C = Pe();
|
|
779
779
|
return Zt(() => {
|
|
780
|
-
var
|
|
780
|
+
var d;
|
|
781
781
|
if (t.infiniteDisabled) return;
|
|
782
|
-
const
|
|
783
|
-
C.value = Fi((
|
|
784
|
-
V(
|
|
785
|
-
},
|
|
786
|
-
}),
|
|
787
|
-
var
|
|
788
|
-
(
|
|
782
|
+
const p = (d = n.value) == null ? void 0 : d.querySelector(".selected-group");
|
|
783
|
+
C.value = Fi((z) => {
|
|
784
|
+
V(z.height);
|
|
785
|
+
}, p);
|
|
786
|
+
}), Ni(() => {
|
|
787
|
+
var p;
|
|
788
|
+
(p = C.value) == null || p.disconnect();
|
|
789
789
|
}), {
|
|
790
790
|
selectListRef: i,
|
|
791
791
|
$list: n,
|
|
792
792
|
disabledFlag: s,
|
|
793
793
|
disabledDrag: u,
|
|
794
|
-
disableDelete:
|
|
794
|
+
disableDelete: c,
|
|
795
795
|
itemGroups: r,
|
|
796
796
|
selectedLabel: l,
|
|
797
|
-
itemRemove:
|
|
797
|
+
itemRemove: E,
|
|
798
798
|
removeAll: S,
|
|
799
|
-
innerSelectdValue:
|
|
800
|
-
selectItem:
|
|
799
|
+
innerSelectdValue: f,
|
|
800
|
+
selectItem: m,
|
|
801
801
|
infiniteLoad: g
|
|
802
802
|
};
|
|
803
803
|
};
|
|
@@ -821,7 +821,7 @@ function re(t) {
|
|
|
821
821
|
for (var e = 1; e < arguments.length; e++) {
|
|
822
822
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
823
823
|
e % 2 ? Bt(Object(i), !0).forEach(function(n) {
|
|
824
|
-
|
|
824
|
+
mn(t, n, i[n]);
|
|
825
825
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Bt(Object(i)).forEach(function(n) {
|
|
826
826
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
827
827
|
});
|
|
@@ -836,7 +836,7 @@ function Ue(t) {
|
|
|
836
836
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
837
837
|
}, Ue(t);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function mn(t, e, i) {
|
|
840
840
|
return e in t ? Object.defineProperty(t, e, {
|
|
841
841
|
value: i,
|
|
842
842
|
enumerable: !0,
|
|
@@ -876,7 +876,7 @@ function ae(t) {
|
|
|
876
876
|
if (typeof window < "u" && window.navigator)
|
|
877
877
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
878
878
|
}
|
|
879
|
-
var ue = ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = ae(/Edge/i), Yt = ae(/firefox/i),
|
|
879
|
+
var ue = ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = ae(/Edge/i), Yt = ae(/firefox/i), $e = ae(/safari/i) && !ae(/chrome/i) && !ae(/android/i), Nt = ae(/iP(ad|od|hone)/i), ri = ae(/chrome/i) && ae(/android/i), oi = {
|
|
880
880
|
capture: !1,
|
|
881
881
|
passive: !1
|
|
882
882
|
};
|
|
@@ -934,7 +934,7 @@ function b(t, e, i) {
|
|
|
934
934
|
!(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = i + (typeof i == "string" ? "" : "px");
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function De(t, e) {
|
|
938
938
|
var i = "";
|
|
939
939
|
if (typeof t == "string")
|
|
940
940
|
i = t;
|
|
@@ -962,35 +962,35 @@ function ne() {
|
|
|
962
962
|
}
|
|
963
963
|
function L(t, e, i, n, r) {
|
|
964
964
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
965
|
-
var o, l, a, s, u,
|
|
966
|
-
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, a = o.left, s = o.bottom, u = o.right,
|
|
965
|
+
var o, l, a, s, u, c, f;
|
|
966
|
+
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, a = o.left, s = o.bottom, u = o.right, c = o.height, f = o.width) : (l = 0, a = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !ue))
|
|
967
967
|
do
|
|
968
968
|
if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || i && b(r, "position") !== "static")) {
|
|
969
|
-
var
|
|
970
|
-
l -=
|
|
969
|
+
var m = r.getBoundingClientRect();
|
|
970
|
+
l -= m.top + parseInt(b(r, "border-top-width")), a -= m.left + parseInt(b(r, "border-left-width")), s = l + o.height, u = a + o.width;
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
973
973
|
while (r = r.parentNode);
|
|
974
974
|
if (n && t !== window) {
|
|
975
|
-
var
|
|
976
|
-
|
|
975
|
+
var E = De(r || t), S = E && E.a, g = E && E.d;
|
|
976
|
+
E && (l /= g, a /= S, f /= S, c /= g, s = l + c, u = a + f);
|
|
977
977
|
}
|
|
978
978
|
return {
|
|
979
979
|
top: l,
|
|
980
980
|
left: a,
|
|
981
981
|
bottom: s,
|
|
982
982
|
right: u,
|
|
983
|
-
width:
|
|
984
|
-
height:
|
|
983
|
+
width: f,
|
|
984
|
+
height: c
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
function Wt(t, e, i) {
|
|
989
|
-
for (var n =
|
|
989
|
+
for (var n = pe(t, !0), r = L(t)[e]; n; ) {
|
|
990
990
|
var o = L(n)[i], l = void 0;
|
|
991
991
|
if (l = r >= o, !l) return n;
|
|
992
992
|
if (n === ne()) break;
|
|
993
|
-
n =
|
|
993
|
+
n = pe(n, !1);
|
|
994
994
|
}
|
|
995
995
|
return !1;
|
|
996
996
|
}
|
|
@@ -1005,7 +1005,7 @@ function Ie(t, e, i, n) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return null;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function $t(t, e) {
|
|
1009
1009
|
for (var i = t.lastElementChild; i && (i === y.ghost || b(i, "display") === "none" || e && !it(i, e)); )
|
|
1010
1010
|
i = i.previousElementSibling;
|
|
1011
1011
|
return i || null;
|
|
@@ -1022,7 +1022,7 @@ function jt(t) {
|
|
|
1022
1022
|
var e = 0, i = 0, n = ne();
|
|
1023
1023
|
if (t)
|
|
1024
1024
|
do {
|
|
1025
|
-
var r =
|
|
1025
|
+
var r = De(t), o = r.a, l = r.d;
|
|
1026
1026
|
e += t.scrollLeft * o, i += t.scrollTop * l;
|
|
1027
1027
|
} while (t !== n && (t = t.parentNode));
|
|
1028
1028
|
return [e, i];
|
|
@@ -1035,7 +1035,7 @@ function yn(t, e) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
return -1;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function pe(t, e) {
|
|
1039
1039
|
if (!t || !t.getBoundingClientRect) return ne();
|
|
1040
1040
|
var i = t, n = !1;
|
|
1041
1041
|
do
|
|
@@ -1059,19 +1059,19 @@ function wn(t, e) {
|
|
|
1059
1059
|
function ft(t, e) {
|
|
1060
1060
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
1061
1061
|
}
|
|
1062
|
-
var
|
|
1062
|
+
var Me;
|
|
1063
1063
|
function si(t, e) {
|
|
1064
1064
|
return function() {
|
|
1065
|
-
if (
|
|
1065
|
+
if (!Me) {
|
|
1066
1066
|
var i = arguments, n = this;
|
|
1067
|
-
i.length === 1 ? t.call(n, i[0]) : t.apply(n, i),
|
|
1068
|
-
|
|
1067
|
+
i.length === 1 ? t.call(n, i[0]) : t.apply(n, i), Me = setTimeout(function() {
|
|
1068
|
+
Me = void 0;
|
|
1069
1069
|
}, e);
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
1072
|
}
|
|
1073
1073
|
function Sn() {
|
|
1074
|
-
clearTimeout(
|
|
1074
|
+
clearTimeout(Me), Me = void 0;
|
|
1075
1075
|
}
|
|
1076
1076
|
function ui(t, e, i) {
|
|
1077
1077
|
t.scrollLeft += e, t.scrollTop += i;
|
|
@@ -1091,7 +1091,7 @@ function ci(t, e, i) {
|
|
|
1091
1091
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1092
1092
|
}
|
|
1093
1093
|
var q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1094
|
-
function
|
|
1094
|
+
function _n() {
|
|
1095
1095
|
var t = [], e;
|
|
1096
1096
|
return {
|
|
1097
1097
|
captureAnimationState: function() {
|
|
@@ -1105,7 +1105,7 @@ function En() {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
var o = re({}, t[t.length - 1].rect);
|
|
1107
1107
|
if (r.thisAnimationDuration) {
|
|
1108
|
-
var l =
|
|
1108
|
+
var l = De(r, !0);
|
|
1109
1109
|
l && (o.top -= l.f, o.left -= l.e);
|
|
1110
1110
|
}
|
|
1111
1111
|
r.fromRect = o;
|
|
@@ -1129,9 +1129,9 @@ function En() {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
var o = !1, l = 0;
|
|
1131
1131
|
t.forEach(function(a) {
|
|
1132
|
-
var s = 0, u = a.target,
|
|
1133
|
-
g && (
|
|
1134
|
-
(S.top -
|
|
1132
|
+
var s = 0, u = a.target, c = u.fromRect, f = L(u), m = u.prevFromRect, E = u.prevToRect, S = a.rect, g = De(u, !0);
|
|
1133
|
+
g && (f.top -= g.f, f.left -= g.e), u.toRect = f, u.thisAnimationDuration && ft(m, f) && !ft(c, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1134
|
+
(S.top - f.top) / (S.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = Dn(S, m, E, r.options)), ft(f, c) || (u.prevFromRect = c, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, S, f, s)), s && (o = !0, l = Math.max(l, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1135
1135
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1136
1136
|
}, s), u.thisAnimationDuration = s);
|
|
1137
1137
|
}), clearTimeout(e), o ? e = setTimeout(function() {
|
|
@@ -1141,18 +1141,18 @@ function En() {
|
|
|
1141
1141
|
animate: function(n, r, o, l) {
|
|
1142
1142
|
if (l) {
|
|
1143
1143
|
b(n, "transition", ""), b(n, "transform", "");
|
|
1144
|
-
var a =
|
|
1145
|
-
n.animatingX = !!
|
|
1144
|
+
var a = De(this.el), s = a && a.a, u = a && a.d, c = (r.left - o.left) / (s || 1), f = (r.top - o.top) / (u || 1);
|
|
1145
|
+
n.animatingX = !!c, n.animatingY = !!f, b(n, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = En(n), b(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1146
1146
|
b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1147
1147
|
}, l);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function En(t) {
|
|
1153
1153
|
return t.offsetWidth;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function Dn(t, e, i, n) {
|
|
1156
1156
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - i.top, 2) + Math.pow(e.left - i.left, 2)) * n.animation;
|
|
1157
1157
|
}
|
|
1158
1158
|
var ye = [], ht = {
|
|
@@ -1208,39 +1208,39 @@ var ye = [], ht = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
};
|
|
1210
1210
|
function In(t) {
|
|
1211
|
-
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, a = t.fromEl, s = t.oldIndex, u = t.newIndex,
|
|
1211
|
+
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, a = t.fromEl, s = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, f = t.newDraggableIndex, m = t.originalEvent, E = t.putSortable, S = t.extraEventProperties;
|
|
1212
1212
|
if (e = e || i && i[q], !!e) {
|
|
1213
|
-
var g,
|
|
1213
|
+
var g, D = e.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1214
1214
|
window.CustomEvent && !ue && !Fe ? g = new CustomEvent(n, {
|
|
1215
1215
|
bubbles: !0,
|
|
1216
1216
|
cancelable: !0
|
|
1217
|
-
}) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = l || i, g.from = a || i, g.item = r || i, g.clone = o, g.oldIndex = s, g.newIndex = u, g.oldDraggableIndex =
|
|
1217
|
+
}) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = l || i, g.from = a || i, g.item = r || i, g.clone = o, g.oldIndex = s, g.newIndex = u, g.oldDraggableIndex = c, g.newDraggableIndex = f, g.originalEvent = m, g.pullMode = E ? E.lastPutMode : void 0;
|
|
1218
1218
|
var C = re(re({}, S), He.getEventProperties(n, e));
|
|
1219
|
-
for (var
|
|
1220
|
-
g[
|
|
1221
|
-
i && i.dispatchEvent(g),
|
|
1219
|
+
for (var p in C)
|
|
1220
|
+
g[p] = C[p];
|
|
1221
|
+
i && i.dispatchEvent(g), D[V] && D[V].call(e, g);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
var Tn = ["evt"], U = function(e, i) {
|
|
1225
1225
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = vn(n, Tn);
|
|
1226
1226
|
He.pluginEvent.bind(y)(e, i, re({
|
|
1227
|
-
dragEl:
|
|
1228
|
-
parentEl:
|
|
1227
|
+
dragEl: h,
|
|
1228
|
+
parentEl: x,
|
|
1229
1229
|
ghostEl: w,
|
|
1230
|
-
rootEl:
|
|
1230
|
+
rootEl: P,
|
|
1231
1231
|
nextEl: be,
|
|
1232
1232
|
lastDownEl: qe,
|
|
1233
|
-
cloneEl:
|
|
1233
|
+
cloneEl: $,
|
|
1234
1234
|
cloneHidden: fe,
|
|
1235
|
-
dragStarted:
|
|
1235
|
+
dragStarted: ze,
|
|
1236
1236
|
putSortable: X,
|
|
1237
1237
|
activeSortable: y.active,
|
|
1238
1238
|
originalEvent: r,
|
|
1239
|
-
oldIndex:
|
|
1240
|
-
oldDraggableIndex:
|
|
1239
|
+
oldIndex: Ee,
|
|
1240
|
+
oldDraggableIndex: xe,
|
|
1241
1241
|
newIndex: Q,
|
|
1242
1242
|
newDraggableIndex: ce,
|
|
1243
|
-
hideGhostForTarget:
|
|
1243
|
+
hideGhostForTarget: mi,
|
|
1244
1244
|
unhideGhostForTarget: gi,
|
|
1245
1245
|
cloneNowHidden: function() {
|
|
1246
1246
|
fe = !0;
|
|
@@ -1260,16 +1260,16 @@ var Tn = ["evt"], U = function(e, i) {
|
|
|
1260
1260
|
function K(t) {
|
|
1261
1261
|
In(re({
|
|
1262
1262
|
putSortable: X,
|
|
1263
|
-
cloneEl:
|
|
1264
|
-
targetEl:
|
|
1265
|
-
rootEl:
|
|
1266
|
-
oldIndex:
|
|
1267
|
-
oldDraggableIndex:
|
|
1263
|
+
cloneEl: $,
|
|
1264
|
+
targetEl: h,
|
|
1265
|
+
rootEl: P,
|
|
1266
|
+
oldIndex: Ee,
|
|
1267
|
+
oldDraggableIndex: xe,
|
|
1268
1268
|
newIndex: Q,
|
|
1269
1269
|
newDraggableIndex: ce
|
|
1270
1270
|
}, t));
|
|
1271
1271
|
}
|
|
1272
|
-
var
|
|
1272
|
+
var h, x, w, P, be, qe, $, fe, Ee, Q, xe, ce, Be, X, _e = !1, nt = !1, rt = [], ge, te, pt, mt, Kt, Gt, ze, we, Ve, Re = !1, Ye = !1, Je, j, gt = [], Ct = !1, ot = [], st = typeof document < "u", Xe = Nt, Ut = Fe || ue ? "cssFloat" : "float", On = st && !ri && !Nt && "draggable" in document.createElement("div"), fi = function() {
|
|
1273
1273
|
if (st) {
|
|
1274
1274
|
if (ue)
|
|
1275
1275
|
return !1;
|
|
@@ -1277,50 +1277,50 @@ var f, M, w, k, be, qe, N, fe, De, Q, Me, ce, Be, X, Ee = !1, nt = !1, rt = [],
|
|
|
1277
1277
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1278
1278
|
}
|
|
1279
1279
|
}(), hi = function(e, i) {
|
|
1280
|
-
var n = b(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ie(e, 0, i), l = Ie(e, 1, i), a = o && b(o), s = l && b(l), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + L(o).width,
|
|
1280
|
+
var n = b(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ie(e, 0, i), l = Ie(e, 1, i), a = o && b(o), s = l && b(l), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + L(o).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + L(l).width;
|
|
1281
1281
|
if (n.display === "flex")
|
|
1282
1282
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1283
1283
|
if (n.display === "grid")
|
|
1284
1284
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1285
1285
|
if (o && a.float && a.float !== "none") {
|
|
1286
|
-
var
|
|
1287
|
-
return l && (s.clear === "both" || s.clear ===
|
|
1286
|
+
var f = a.float === "left" ? "left" : "right";
|
|
1287
|
+
return l && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
1288
1288
|
}
|
|
1289
|
-
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= r && n[Ut] === "none" || l && n[Ut] === "none" && u +
|
|
1289
|
+
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= r && n[Ut] === "none" || l && n[Ut] === "none" && u + c > r) ? "vertical" : "horizontal";
|
|
1290
1290
|
}, Cn = function(e, i, n) {
|
|
1291
1291
|
var r = n ? e.left : e.top, o = n ? e.right : e.bottom, l = n ? e.width : e.height, a = n ? i.left : i.top, s = n ? i.right : i.bottom, u = n ? i.width : i.height;
|
|
1292
1292
|
return r === a || o === s || r + l / 2 === a + u / 2;
|
|
1293
|
-
},
|
|
1293
|
+
}, zn = function(e, i) {
|
|
1294
1294
|
var n;
|
|
1295
1295
|
return rt.some(function(r) {
|
|
1296
1296
|
var o = r[q].options.emptyInsertThreshold;
|
|
1297
|
-
if (!(!o ||
|
|
1297
|
+
if (!(!o || $t(r))) {
|
|
1298
1298
|
var l = L(r), a = e >= l.left - o && e <= l.right + o, s = i >= l.top - o && i <= l.bottom + o;
|
|
1299
1299
|
if (a && s)
|
|
1300
1300
|
return n = r;
|
|
1301
1301
|
}
|
|
1302
1302
|
}), n;
|
|
1303
|
-
},
|
|
1303
|
+
}, pi = function(e) {
|
|
1304
1304
|
function i(o, l) {
|
|
1305
|
-
return function(a, s, u,
|
|
1306
|
-
var
|
|
1307
|
-
if (o == null && (l ||
|
|
1305
|
+
return function(a, s, u, c) {
|
|
1306
|
+
var f = a.options.group.name && s.options.group.name && a.options.group.name === s.options.group.name;
|
|
1307
|
+
if (o == null && (l || f))
|
|
1308
1308
|
return !0;
|
|
1309
1309
|
if (o == null || o === !1)
|
|
1310
1310
|
return !1;
|
|
1311
1311
|
if (l && o === "clone")
|
|
1312
1312
|
return o;
|
|
1313
1313
|
if (typeof o == "function")
|
|
1314
|
-
return i(o(a, s, u,
|
|
1315
|
-
var
|
|
1316
|
-
return o === !0 || typeof o == "string" && o ===
|
|
1314
|
+
return i(o(a, s, u, c), l)(a, s, u, c);
|
|
1315
|
+
var m = (l ? a : s).options.group.name;
|
|
1316
|
+
return o === !0 || typeof o == "string" && o === m || o.join && o.indexOf(m) > -1;
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
1319
|
var n = {}, r = e.group;
|
|
1320
1320
|
(!r || Ue(r) != "object") && (r = {
|
|
1321
1321
|
name: r
|
|
1322
1322
|
}), n.name = r.name, n.checkPull = i(r.pull, !0), n.checkPut = i(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
1323
|
-
},
|
|
1323
|
+
}, mi = function() {
|
|
1324
1324
|
!fi && w && b(w, "display", "none");
|
|
1325
1325
|
}, gi = function() {
|
|
1326
1326
|
!fi && w && b(w, "display", "");
|
|
@@ -1330,9 +1330,9 @@ st && !ri && document.addEventListener("click", function(t) {
|
|
|
1330
1330
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), nt = !1, !1;
|
|
1331
1331
|
}, !0);
|
|
1332
1332
|
var ve = function(e) {
|
|
1333
|
-
if (
|
|
1333
|
+
if (h) {
|
|
1334
1334
|
e = e.touches ? e.touches[0] : e;
|
|
1335
|
-
var i =
|
|
1335
|
+
var i = zn(e.clientX, e.clientY);
|
|
1336
1336
|
if (i) {
|
|
1337
1337
|
var n = {};
|
|
1338
1338
|
for (var r in e)
|
|
@@ -1340,8 +1340,8 @@ var ve = function(e) {
|
|
|
1340
1340
|
n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[q]._onDragOver(n);
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
-
},
|
|
1344
|
-
|
|
1343
|
+
}, An = function(e) {
|
|
1344
|
+
h && h.parentNode[q]._isOutsideThisEl(e.target);
|
|
1345
1345
|
};
|
|
1346
1346
|
function y(t, e) {
|
|
1347
1347
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
@@ -1390,16 +1390,16 @@ function y(t, e) {
|
|
|
1390
1390
|
y: 0
|
|
1391
1391
|
},
|
|
1392
1392
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1393
|
-
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (
|
|
1393
|
+
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (!$e || Nt),
|
|
1394
1394
|
emptyInsertThreshold: 5
|
|
1395
1395
|
};
|
|
1396
1396
|
He.initializePlugins(this, t, i);
|
|
1397
1397
|
for (var n in i)
|
|
1398
1398
|
!(n in e) && (e[n] = i[n]);
|
|
1399
|
-
|
|
1399
|
+
pi(e);
|
|
1400
1400
|
for (var r in this)
|
|
1401
1401
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1402
|
-
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? O(t, "pointerdown", this._onTapStart) : (O(t, "mousedown", this._onTapStart), O(t, "touchstart", this._onTapStart)), this.nativeDraggable && (O(t, "dragover", this), O(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), se(this,
|
|
1402
|
+
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? O(t, "pointerdown", this._onTapStart) : (O(t, "mousedown", this._onTapStart), O(t, "touchstart", this._onTapStart)), this.nativeDraggable && (O(t, "dragover", this), O(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), se(this, _n());
|
|
1403
1403
|
}
|
|
1404
1404
|
y.prototype = /** @lends Sortable.prototype */
|
|
1405
1405
|
{
|
|
@@ -1408,14 +1408,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1408
1408
|
!this.el.contains(e) && e !== this.el && (we = null);
|
|
1409
1409
|
},
|
|
1410
1410
|
_getDirection: function(e, i) {
|
|
1411
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i,
|
|
1411
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i, h) : this.options.direction;
|
|
1412
1412
|
},
|
|
1413
1413
|
_onTapStart: function(e) {
|
|
1414
1414
|
if (e.cancelable) {
|
|
1415
|
-
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s,
|
|
1416
|
-
if (Rn(n), !
|
|
1417
|
-
if (
|
|
1418
|
-
if (
|
|
1415
|
+
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = r.filter;
|
|
1416
|
+
if (Rn(n), !h && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && $e && s && s.tagName.toUpperCase() === "SELECT") && (s = ie(s, r.draggable, n, !1), !(s && s.animated) && qe !== s)) {
|
|
1417
|
+
if (Ee = ee(s), xe = ee(s, r.draggable), typeof c == "function") {
|
|
1418
|
+
if (c.call(this, e, s, this)) {
|
|
1419
1419
|
K({
|
|
1420
1420
|
sortable: i,
|
|
1421
1421
|
rootEl: u,
|
|
@@ -1428,11 +1428,11 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1428
1428
|
}), o && e.preventDefault();
|
|
1429
1429
|
return;
|
|
1430
1430
|
}
|
|
1431
|
-
} else if (
|
|
1432
|
-
if (
|
|
1431
|
+
} else if (c && (c = c.split(",").some(function(f) {
|
|
1432
|
+
if (f = ie(u, f.trim(), n, !1), f)
|
|
1433
1433
|
return K({
|
|
1434
1434
|
sortable: i,
|
|
1435
|
-
rootEl:
|
|
1435
|
+
rootEl: f,
|
|
1436
1436
|
name: "filter",
|
|
1437
1437
|
targetEl: s,
|
|
1438
1438
|
fromEl: n,
|
|
@@ -1440,7 +1440,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1440
1440
|
}), U("filter", i, {
|
|
1441
1441
|
evt: e
|
|
1442
1442
|
}), !0;
|
|
1443
|
-
}),
|
|
1443
|
+
}), c)) {
|
|
1444
1444
|
o && e.preventDefault();
|
|
1445
1445
|
return;
|
|
1446
1446
|
}
|
|
@@ -1450,27 +1450,27 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1450
1450
|
},
|
|
1451
1451
|
_prepareDragStart: function(e, i, n) {
|
|
1452
1452
|
var r = this, o = r.el, l = r.options, a = o.ownerDocument, s;
|
|
1453
|
-
if (n && !
|
|
1453
|
+
if (n && !h && n.parentNode === o) {
|
|
1454
1454
|
var u = L(n);
|
|
1455
|
-
if (
|
|
1456
|
-
target:
|
|
1455
|
+
if (P = o, h = n, x = h.parentNode, be = h.nextSibling, qe = n, Be = l.group, y.dragged = h, ge = {
|
|
1456
|
+
target: h,
|
|
1457
1457
|
clientX: (i || e).clientX,
|
|
1458
1458
|
clientY: (i || e).clientY
|
|
1459
|
-
}, Kt = ge.clientX - u.left, Gt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY,
|
|
1459
|
+
}, Kt = ge.clientX - u.left, Gt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, h.style["will-change"] = "all", s = function() {
|
|
1460
1460
|
if (U("delayEnded", r, {
|
|
1461
1461
|
evt: e
|
|
1462
1462
|
}), y.eventCanceled) {
|
|
1463
1463
|
r._onDrop();
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
|
-
r._disableDelayedDragEvents(), !Yt && r.nativeDraggable && (
|
|
1466
|
+
r._disableDelayedDragEvents(), !Yt && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(e, i), K({
|
|
1467
1467
|
sortable: r,
|
|
1468
1468
|
name: "choose",
|
|
1469
1469
|
originalEvent: e
|
|
1470
|
-
}), Z(
|
|
1471
|
-
}, l.ignore.split(",").forEach(function(
|
|
1472
|
-
ai(
|
|
1473
|
-
}), O(a, "dragover", ve), O(a, "mousemove", ve), O(a, "touchmove", ve), l.supportPointer ? (O(a, "pointerup", r._onDrop), !this.nativeDraggable && O(a, "pointercancel", r._onDrop)) : (O(a, "mouseup", r._onDrop), O(a, "touchend", r._onDrop), O(a, "touchcancel", r._onDrop)), Yt && this.nativeDraggable && (this.options.touchStartThreshold = 4,
|
|
1470
|
+
}), Z(h, l.chosenClass, !0);
|
|
1471
|
+
}, l.ignore.split(",").forEach(function(c) {
|
|
1472
|
+
ai(h, c.trim(), vt);
|
|
1473
|
+
}), O(a, "dragover", ve), O(a, "mousemove", ve), O(a, "touchmove", ve), l.supportPointer ? (O(a, "pointerup", r._onDrop), !this.nativeDraggable && O(a, "pointercancel", r._onDrop)) : (O(a, "mouseup", r._onDrop), O(a, "touchend", r._onDrop), O(a, "touchcancel", r._onDrop)), Yt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), U("delayStart", this, {
|
|
1474
1474
|
evt: e
|
|
1475
1475
|
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || ue))) {
|
|
1476
1476
|
if (y.eventCanceled) {
|
|
@@ -1487,14 +1487,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1487
1487
|
Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1488
1488
|
},
|
|
1489
1489
|
_disableDelayedDrag: function() {
|
|
1490
|
-
|
|
1490
|
+
h && vt(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1491
1491
|
},
|
|
1492
1492
|
_disableDelayedDragEvents: function() {
|
|
1493
1493
|
var e = this.el.ownerDocument;
|
|
1494
1494
|
T(e, "mouseup", this._disableDelayedDrag), T(e, "touchend", this._disableDelayedDrag), T(e, "touchcancel", this._disableDelayedDrag), T(e, "pointerup", this._disableDelayedDrag), T(e, "pointercancel", this._disableDelayedDrag), T(e, "mousemove", this._delayedDragTouchMoveHandler), T(e, "touchmove", this._delayedDragTouchMoveHandler), T(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1495
1495
|
},
|
|
1496
1496
|
_triggerDragStart: function(e, i) {
|
|
1497
|
-
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? O(document, "pointermove", this._onTouchMove) : i ? O(document, "touchmove", this._onTouchMove) : O(document, "mousemove", this._onTouchMove) : (O(
|
|
1497
|
+
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? O(document, "pointermove", this._onTouchMove) : i ? O(document, "touchmove", this._onTouchMove) : O(document, "mousemove", this._onTouchMove) : (O(h, "dragend", this), O(P, "dragstart", this._onDragStart));
|
|
1498
1498
|
try {
|
|
1499
1499
|
document.selection ? Ze(function() {
|
|
1500
1500
|
document.selection.empty();
|
|
@@ -1503,12 +1503,12 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1503
1503
|
}
|
|
1504
1504
|
},
|
|
1505
1505
|
_dragStarted: function(e, i) {
|
|
1506
|
-
if (
|
|
1506
|
+
if (_e = !1, P && h) {
|
|
1507
1507
|
U("dragStarted", this, {
|
|
1508
1508
|
evt: i
|
|
1509
|
-
}), this.nativeDraggable && O(document, "dragover",
|
|
1509
|
+
}), this.nativeDraggable && O(document, "dragover", An);
|
|
1510
1510
|
var n = this.options;
|
|
1511
|
-
!e && Z(
|
|
1511
|
+
!e && Z(h, n.dragClass, !1), Z(h, n.ghostClass, !0), y.active = this, e && this._appendGhost(), K({
|
|
1512
1512
|
sortable: this,
|
|
1513
1513
|
name: "start",
|
|
1514
1514
|
originalEvent: i
|
|
@@ -1518,10 +1518,10 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1518
1518
|
},
|
|
1519
1519
|
_emulateDragOver: function() {
|
|
1520
1520
|
if (te) {
|
|
1521
|
-
this._lastX = te.clientX, this._lastY = te.clientY,
|
|
1521
|
+
this._lastX = te.clientX, this._lastY = te.clientY, mi();
|
|
1522
1522
|
for (var e = document.elementFromPoint(te.clientX, te.clientY), i = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(te.clientX, te.clientY), e !== i); )
|
|
1523
1523
|
i = e;
|
|
1524
|
-
if (
|
|
1524
|
+
if (h.parentNode[q]._isOutsideThisEl(e), i)
|
|
1525
1525
|
do {
|
|
1526
1526
|
if (i[q]) {
|
|
1527
1527
|
var n = void 0;
|
|
@@ -1540,36 +1540,36 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1540
1540
|
},
|
|
1541
1541
|
_onTouchMove: function(e) {
|
|
1542
1542
|
if (ge) {
|
|
1543
|
-
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w &&
|
|
1544
|
-
if (!y.active && !
|
|
1543
|
+
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), a = w && l && l.a, s = w && l && l.d, u = Xe && j && jt(j), c = (o.clientX - ge.clientX + r.x) / (a || 1) + (u ? u[0] - gt[0] : 0) / (a || 1), f = (o.clientY - ge.clientY + r.y) / (s || 1) + (u ? u[1] - gt[1] : 0) / (s || 1);
|
|
1544
|
+
if (!y.active && !_e) {
|
|
1545
1545
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1546
1546
|
return;
|
|
1547
1547
|
this._onDragStart(e, !0);
|
|
1548
1548
|
}
|
|
1549
1549
|
if (w) {
|
|
1550
|
-
l ? (l.e +=
|
|
1550
|
+
l ? (l.e += c - (pt || 0), l.f += f - (mt || 0)) : l = {
|
|
1551
1551
|
a: 1,
|
|
1552
1552
|
b: 0,
|
|
1553
1553
|
c: 0,
|
|
1554
1554
|
d: 1,
|
|
1555
|
-
e:
|
|
1556
|
-
f
|
|
1555
|
+
e: c,
|
|
1556
|
+
f
|
|
1557
1557
|
};
|
|
1558
|
-
var
|
|
1559
|
-
b(w, "webkitTransform",
|
|
1558
|
+
var m = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1559
|
+
b(w, "webkitTransform", m), b(w, "mozTransform", m), b(w, "msTransform", m), b(w, "transform", m), pt = c, mt = f, te = o;
|
|
1560
1560
|
}
|
|
1561
1561
|
e.cancelable && e.preventDefault();
|
|
1562
1562
|
}
|
|
1563
1563
|
},
|
|
1564
1564
|
_appendGhost: function() {
|
|
1565
1565
|
if (!w) {
|
|
1566
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
1566
|
+
var e = this.options.fallbackOnBody ? document.body : P, i = L(h, !0, Xe, !0, e), n = this.options;
|
|
1567
1567
|
if (Xe) {
|
|
1568
1568
|
for (j = e; b(j, "position") === "static" && b(j, "transform") === "none" && j !== document; )
|
|
1569
1569
|
j = j.parentNode;
|
|
1570
1570
|
j !== document.body && j !== document.documentElement ? (j === document && (j = ne()), i.top += j.scrollTop, i.left += j.scrollLeft) : j = ne(), gt = jt(j);
|
|
1571
1571
|
}
|
|
1572
|
-
w =
|
|
1572
|
+
w = h.cloneNode(!0), Z(w, n.ghostClass, !1), Z(w, n.fallbackClass, !0), Z(w, n.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", i.top), b(w, "left", i.left), b(w, "width", i.width), b(w, "height", i.height), b(w, "opacity", "0.8"), b(w, "position", Xe ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), y.ghost = w, e.appendChild(w), b(w, "transform-origin", Kt / parseInt(w.style.width) * 100 + "% " + Gt / parseInt(w.style.height) * 100 + "%");
|
|
1573
1573
|
}
|
|
1574
1574
|
},
|
|
1575
1575
|
_onDragStart: function(e, i) {
|
|
@@ -1580,47 +1580,47 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1580
1580
|
this._onDrop();
|
|
1581
1581
|
return;
|
|
1582
1582
|
}
|
|
1583
|
-
U("setupClone", this), y.eventCanceled || (
|
|
1584
|
-
U("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide ||
|
|
1583
|
+
U("setupClone", this), y.eventCanceled || ($ = di(h), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), Z($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Ze(function() {
|
|
1584
|
+
U("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || P.insertBefore($, h), n._hideClone(), K({
|
|
1585
1585
|
sortable: n,
|
|
1586
1586
|
name: "clone"
|
|
1587
1587
|
}));
|
|
1588
|
-
}), !i && Z(
|
|
1588
|
+
}), !i && Z(h, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (T(document, "mouseup", n._onDrop), T(document, "touchend", n._onDrop), T(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), O(document, "drop", n), b(h, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Ze(n._dragStarted.bind(n, i, e)), O(document, "selectstart", n), ze = !0, window.getSelection().removeAllRanges(), $e && b(document.body, "user-select", "none");
|
|
1589
1589
|
},
|
|
1590
1590
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1591
1591
|
_onDragOver: function(e) {
|
|
1592
|
-
var i = this.el, n = e.target, r, o, l, a = this.options, s = a.group, u = y.active,
|
|
1592
|
+
var i = this.el, n = e.target, r, o, l, a = this.options, s = a.group, u = y.active, c = Be === s, f = a.sort, m = X || u, E, S = this, g = !1;
|
|
1593
1593
|
if (Ct) return;
|
|
1594
|
-
function
|
|
1594
|
+
function D(Te, bi) {
|
|
1595
1595
|
U(Te, S, re({
|
|
1596
1596
|
evt: e,
|
|
1597
|
-
isOwner:
|
|
1598
|
-
axis:
|
|
1597
|
+
isOwner: c,
|
|
1598
|
+
axis: E ? "vertical" : "horizontal",
|
|
1599
1599
|
revert: l,
|
|
1600
1600
|
dragRect: r,
|
|
1601
1601
|
targetRect: o,
|
|
1602
|
-
canSort:
|
|
1603
|
-
fromSortable:
|
|
1602
|
+
canSort: f,
|
|
1603
|
+
fromSortable: m,
|
|
1604
1604
|
target: n,
|
|
1605
1605
|
completed: C,
|
|
1606
1606
|
onMove: function(Vt, yi) {
|
|
1607
|
-
return We(
|
|
1607
|
+
return We(P, i, h, r, Vt, L(Vt), e, yi);
|
|
1608
1608
|
},
|
|
1609
|
-
changed:
|
|
1609
|
+
changed: p
|
|
1610
1610
|
}, bi));
|
|
1611
1611
|
}
|
|
1612
1612
|
function V() {
|
|
1613
|
-
|
|
1613
|
+
D("dragOverAnimationCapture"), S.captureAnimationState(), S !== m && m.captureAnimationState();
|
|
1614
1614
|
}
|
|
1615
1615
|
function C(Te) {
|
|
1616
|
-
return
|
|
1616
|
+
return D("dragOverCompleted", {
|
|
1617
1617
|
insertion: Te
|
|
1618
|
-
}), Te && (
|
|
1619
|
-
|
|
1620
|
-
}), S !==
|
|
1618
|
+
}), Te && (c ? u._hideClone() : u._showClone(S), S !== m && (Z(h, X ? X.options.ghostClass : u.options.ghostClass, !1), Z(h, a.ghostClass, !0)), X !== S && S !== y.active ? X = S : S === y.active && X && (X = null), m === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
|
|
1619
|
+
D("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
|
|
1620
|
+
}), S !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (we = null), !a.dragoverBubble && !e.rootEl && n !== document && (h.parentNode[q]._isOutsideThisEl(e.target), !Te && ve(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1623
|
-
Q = ee(
|
|
1622
|
+
function p() {
|
|
1623
|
+
Q = ee(h), ce = ee(h, a.draggable), K({
|
|
1624
1624
|
sortable: S,
|
|
1625
1625
|
name: "change",
|
|
1626
1626
|
toEl: i,
|
|
@@ -1629,46 +1629,46 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1629
1629
|
originalEvent: e
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, a.draggable, i, !0),
|
|
1633
|
-
if (
|
|
1632
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, a.draggable, i, !0), D("dragOver"), y.eventCanceled) return g;
|
|
1633
|
+
if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
|
|
1634
1634
|
return C(!1);
|
|
1635
|
-
if (nt = !1, u && !a.disabled && (
|
|
1636
|
-
if (
|
|
1635
|
+
if (nt = !1, u && !a.disabled && (c ? f || (l = x !== P) : X === this || (this.lastPutMode = Be.checkPull(this, u, h, e)) && s.checkPut(this, u, h, e))) {
|
|
1636
|
+
if (E = this._getDirection(e, n) === "vertical", r = L(h), D("dragOverValid"), y.eventCanceled) return g;
|
|
1637
1637
|
if (l)
|
|
1638
|
-
return
|
|
1639
|
-
var
|
|
1640
|
-
if (!
|
|
1641
|
-
if (
|
|
1638
|
+
return x = P, V(), this._hideClone(), D("revert"), y.eventCanceled || (be ? P.insertBefore(h, be) : P.appendChild(h)), C(!0);
|
|
1639
|
+
var d = $t(i, a.draggable);
|
|
1640
|
+
if (!d || $n(e, E, this) && !d.animated) {
|
|
1641
|
+
if (d === h)
|
|
1642
1642
|
return C(!1);
|
|
1643
|
-
if (
|
|
1644
|
-
return V(),
|
|
1645
|
-
} else if (
|
|
1646
|
-
var
|
|
1647
|
-
if (
|
|
1643
|
+
if (d && i === e.target && (n = d), n && (o = L(n)), We(P, i, h, r, n, o, e, !!n) !== !1)
|
|
1644
|
+
return V(), d && d.nextSibling ? i.insertBefore(h, d.nextSibling) : i.appendChild(h), x = i, p(), C(!0);
|
|
1645
|
+
} else if (d && Nn(e, E, this)) {
|
|
1646
|
+
var z = Ie(i, 0, a, !0);
|
|
1647
|
+
if (z === h)
|
|
1648
1648
|
return C(!1);
|
|
1649
|
-
if (n =
|
|
1650
|
-
return V(), i.insertBefore(
|
|
1649
|
+
if (n = z, o = L(n), We(P, i, h, r, n, o, e, !1) !== !1)
|
|
1650
|
+
return V(), i.insertBefore(h, z), x = i, p(), C(!0);
|
|
1651
1651
|
} else if (n.parentNode === i) {
|
|
1652
1652
|
o = L(n);
|
|
1653
|
-
var Y = 0, v, B =
|
|
1654
|
-
we !== n && (v = o[I], Re = !1, Ye =
|
|
1655
|
-
var
|
|
1653
|
+
var Y = 0, v, B = h.parentNode !== i, M = !Cn(h.animated && h.toRect || r, n.animated && n.toRect || o, E), I = E ? "top" : "left", R = Wt(n, "top", "top") || Wt(h, "top", "top"), N = R ? R.scrollTop : void 0;
|
|
1654
|
+
we !== n && (v = o[I], Re = !1, Ye = !M && a.invertSwap || B), Y = Mn(e, n, o, E, M ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ye, we === n);
|
|
1655
|
+
var A;
|
|
1656
1656
|
if (Y !== 0) {
|
|
1657
|
-
var J = ee(
|
|
1657
|
+
var J = ee(h);
|
|
1658
1658
|
do
|
|
1659
|
-
J -= Y,
|
|
1660
|
-
while (
|
|
1659
|
+
J -= Y, A = x.children[J];
|
|
1660
|
+
while (A && (b(A, "display") === "none" || A === w));
|
|
1661
1661
|
}
|
|
1662
|
-
if (Y === 0 ||
|
|
1662
|
+
if (Y === 0 || A === n)
|
|
1663
1663
|
return C(!1);
|
|
1664
1664
|
we = n, Ve = Y;
|
|
1665
1665
|
var de = n.nextElementSibling, F = !1;
|
|
1666
1666
|
F = Y === 1;
|
|
1667
|
-
var
|
|
1668
|
-
if (
|
|
1669
|
-
return (
|
|
1667
|
+
var me = We(P, i, h, r, n, o, e, F);
|
|
1668
|
+
if (me !== !1)
|
|
1669
|
+
return (me === 1 || me === -1) && (F = me === 1), Ct = !0, setTimeout(Pn, 30), V(), F && !de ? i.appendChild(h) : n.parentNode.insertBefore(h, F ? de : n), R && ui(R, 0, N - R.scrollTop), x = h.parentNode, v !== void 0 && !Ye && (Je = Math.abs(v - L(n)[I])), p(), C(!0);
|
|
1670
1670
|
}
|
|
1671
|
-
if (i.contains(
|
|
1671
|
+
if (i.contains(h))
|
|
1672
1672
|
return C(!1);
|
|
1673
1673
|
}
|
|
1674
1674
|
return !1;
|
|
@@ -1683,62 +1683,62 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1683
1683
|
},
|
|
1684
1684
|
_onDrop: function(e) {
|
|
1685
1685
|
var i = this.el, n = this.options;
|
|
1686
|
-
if (Q = ee(
|
|
1686
|
+
if (Q = ee(h), ce = ee(h, n.draggable), U("drop", this, {
|
|
1687
1687
|
evt: e
|
|
1688
|
-
}),
|
|
1688
|
+
}), x = h && h.parentNode, Q = ee(h), ce = ee(h, n.draggable), y.eventCanceled) {
|
|
1689
1689
|
this._nulling();
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
|
|
1692
|
+
_e = !1, Ye = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zt(this.cloneId), zt(this._dragStartId), this.nativeDraggable && (T(document, "drop", this), T(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && b(document.body, "user-select", ""), b(h, "transform", ""), e && (ze && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (P === x || X && X.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), h && (this.nativeDraggable && T(h, "dragend", this), vt(h), h.style["will-change"] = "", ze && !_e && Z(h, X ? X.options.ghostClass : this.options.ghostClass, !1), Z(h, this.options.chosenClass, !1), K({
|
|
1693
1693
|
sortable: this,
|
|
1694
1694
|
name: "unchoose",
|
|
1695
|
-
toEl:
|
|
1695
|
+
toEl: x,
|
|
1696
1696
|
newIndex: null,
|
|
1697
1697
|
newDraggableIndex: null,
|
|
1698
1698
|
originalEvent: e
|
|
1699
|
-
}),
|
|
1700
|
-
rootEl:
|
|
1699
|
+
}), P !== x ? (Q >= 0 && (K({
|
|
1700
|
+
rootEl: x,
|
|
1701
1701
|
name: "add",
|
|
1702
|
-
toEl:
|
|
1703
|
-
fromEl:
|
|
1702
|
+
toEl: x,
|
|
1703
|
+
fromEl: P,
|
|
1704
1704
|
originalEvent: e
|
|
1705
1705
|
}), K({
|
|
1706
1706
|
sortable: this,
|
|
1707
1707
|
name: "remove",
|
|
1708
|
-
toEl:
|
|
1708
|
+
toEl: x,
|
|
1709
1709
|
originalEvent: e
|
|
1710
1710
|
}), K({
|
|
1711
|
-
rootEl:
|
|
1711
|
+
rootEl: x,
|
|
1712
1712
|
name: "sort",
|
|
1713
|
-
toEl:
|
|
1714
|
-
fromEl:
|
|
1713
|
+
toEl: x,
|
|
1714
|
+
fromEl: P,
|
|
1715
1715
|
originalEvent: e
|
|
1716
1716
|
}), K({
|
|
1717
1717
|
sortable: this,
|
|
1718
1718
|
name: "sort",
|
|
1719
|
-
toEl:
|
|
1719
|
+
toEl: x,
|
|
1720
1720
|
originalEvent: e
|
|
1721
|
-
})), X && X.save()) : Q !==
|
|
1721
|
+
})), X && X.save()) : Q !== Ee && Q >= 0 && (K({
|
|
1722
1722
|
sortable: this,
|
|
1723
1723
|
name: "update",
|
|
1724
|
-
toEl:
|
|
1724
|
+
toEl: x,
|
|
1725
1725
|
originalEvent: e
|
|
1726
1726
|
}), K({
|
|
1727
1727
|
sortable: this,
|
|
1728
1728
|
name: "sort",
|
|
1729
|
-
toEl:
|
|
1729
|
+
toEl: x,
|
|
1730
1730
|
originalEvent: e
|
|
1731
|
-
})), y.active && ((Q == null || Q === -1) && (Q =
|
|
1731
|
+
})), y.active && ((Q == null || Q === -1) && (Q = Ee, ce = xe), K({
|
|
1732
1732
|
sortable: this,
|
|
1733
1733
|
name: "end",
|
|
1734
|
-
toEl:
|
|
1734
|
+
toEl: x,
|
|
1735
1735
|
originalEvent: e
|
|
1736
1736
|
}), this.save()))), this._nulling();
|
|
1737
1737
|
},
|
|
1738
1738
|
_nulling: function() {
|
|
1739
|
-
U("nulling", this),
|
|
1739
|
+
U("nulling", this), P = h = x = w = be = $ = qe = fe = ge = te = ze = Q = ce = Ee = xe = we = Ve = X = Be = y.dragged = y.ghost = y.clone = y.active = null, ot.forEach(function(e) {
|
|
1740
1740
|
e.checked = !0;
|
|
1741
|
-
}), ot.length =
|
|
1741
|
+
}), ot.length = pt = mt = 0;
|
|
1742
1742
|
},
|
|
1743
1743
|
handleEvent: function(e) {
|
|
1744
1744
|
switch (e.type) {
|
|
@@ -1748,7 +1748,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1748
1748
|
break;
|
|
1749
1749
|
case "dragenter":
|
|
1750
1750
|
case "dragover":
|
|
1751
|
-
|
|
1751
|
+
h && (this._onDragOver(e), kn(e));
|
|
1752
1752
|
break;
|
|
1753
1753
|
case "selectstart":
|
|
1754
1754
|
e.preventDefault();
|
|
@@ -1804,7 +1804,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1804
1804
|
if (i === void 0)
|
|
1805
1805
|
return n[e];
|
|
1806
1806
|
var r = He.modifyOption(this, e, i);
|
|
1807
|
-
typeof r < "u" ? n[e] = r : n[e] = i, e === "group" &&
|
|
1807
|
+
typeof r < "u" ? n[e] = r : n[e] = i, e === "group" && pi(n);
|
|
1808
1808
|
},
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Destroy
|
|
@@ -1819,7 +1819,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1819
1819
|
_hideClone: function() {
|
|
1820
1820
|
if (!fe) {
|
|
1821
1821
|
if (U("hideClone", this), y.eventCanceled) return;
|
|
1822
|
-
b(
|
|
1822
|
+
b($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), fe = !0;
|
|
1823
1823
|
}
|
|
1824
1824
|
},
|
|
1825
1825
|
_showClone: function(e) {
|
|
@@ -1829,49 +1829,49 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1829
1829
|
}
|
|
1830
1830
|
if (fe) {
|
|
1831
1831
|
if (U("showClone", this), y.eventCanceled) return;
|
|
1832
|
-
|
|
1832
|
+
h.parentNode == P && !this.options.group.revertClone ? P.insertBefore($, h) : be ? P.insertBefore($, be) : P.appendChild($), this.options.group.revertClone && this.animate(h, $), b($, "display", ""), fe = !1;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
function
|
|
1836
|
+
function kn(t) {
|
|
1837
1837
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1838
1838
|
}
|
|
1839
1839
|
function We(t, e, i, n, r, o, l, a) {
|
|
1840
|
-
var s, u = t[q],
|
|
1840
|
+
var s, u = t[q], c = u.options.onMove, f;
|
|
1841
1841
|
return window.CustomEvent && !ue && !Fe ? s = new CustomEvent("move", {
|
|
1842
1842
|
bubbles: !0,
|
|
1843
1843
|
cancelable: !0
|
|
1844
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = i, s.draggedRect = n, s.related = r || e, s.relatedRect = o || L(e), s.willInsertAfter = a, s.originalEvent = l, t.dispatchEvent(s),
|
|
1844
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = i, s.draggedRect = n, s.related = r || e, s.relatedRect = o || L(e), s.willInsertAfter = a, s.originalEvent = l, t.dispatchEvent(s), c && (f = c.call(u, s, l)), f;
|
|
1845
1845
|
}
|
|
1846
1846
|
function vt(t) {
|
|
1847
1847
|
t.draggable = !1;
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Pn() {
|
|
1850
1850
|
Ct = !1;
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Nn(t, e, i) {
|
|
1853
1853
|
var n = L(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, w), o = 10;
|
|
1854
1854
|
return e ? t.clientX < r.left - o || t.clientY < n.top && t.clientX < n.right : t.clientY < r.top - o || t.clientY < n.bottom && t.clientX < n.left;
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1857
|
-
var n = L(
|
|
1856
|
+
function $n(t, e, i) {
|
|
1857
|
+
var n = L($t(i.el, i.options.draggable)), r = ci(i.el, i.options, w), o = 10;
|
|
1858
1858
|
return e ? t.clientX > r.right + o || t.clientY > n.bottom && t.clientX > n.left : t.clientY > r.bottom + o || t.clientX > n.right && t.clientY > n.top;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1861
|
-
var s = n ? t.clientY : t.clientX, u = n ? i.height : i.width,
|
|
1860
|
+
function Mn(t, e, i, n, r, o, l, a) {
|
|
1861
|
+
var s = n ? t.clientY : t.clientX, u = n ? i.height : i.width, c = n ? i.top : i.left, f = n ? i.bottom : i.right, m = !1;
|
|
1862
1862
|
if (!l) {
|
|
1863
1863
|
if (a && Je < u * r) {
|
|
1864
|
-
if (!Re && (Ve === 1 ? s >
|
|
1865
|
-
|
|
1866
|
-
else if (Ve === 1 ? s <
|
|
1864
|
+
if (!Re && (Ve === 1 ? s > c + u * o / 2 : s < f - u * o / 2) && (Re = !0), Re)
|
|
1865
|
+
m = !0;
|
|
1866
|
+
else if (Ve === 1 ? s < c + Je : s > f - Je)
|
|
1867
1867
|
return -Ve;
|
|
1868
|
-
} else if (s >
|
|
1869
|
-
return
|
|
1868
|
+
} else if (s > c + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1869
|
+
return xn(e);
|
|
1870
1870
|
}
|
|
1871
|
-
return
|
|
1871
|
+
return m = m || l, m && (s < c + u * o / 2 || s > f - u * o / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return ee(
|
|
1873
|
+
function xn(t) {
|
|
1874
|
+
return ee(h) < ee(t) ? 1 : -1;
|
|
1875
1875
|
}
|
|
1876
1876
|
function Vn(t) {
|
|
1877
1877
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, i = e.length, n = 0; i--; )
|
|
@@ -1888,11 +1888,11 @@ function Rn(t) {
|
|
|
1888
1888
|
function Ze(t) {
|
|
1889
1889
|
return setTimeout(t, 0);
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function zt(t) {
|
|
1892
1892
|
return clearTimeout(t);
|
|
1893
1893
|
}
|
|
1894
1894
|
st && O(document, "touchmove", function(t) {
|
|
1895
|
-
(y.active ||
|
|
1895
|
+
(y.active || _e) && t.cancelable && t.preventDefault();
|
|
1896
1896
|
});
|
|
1897
1897
|
y.utils = {
|
|
1898
1898
|
on: O,
|
|
@@ -1909,7 +1909,7 @@ y.utils = {
|
|
|
1909
1909
|
clone: di,
|
|
1910
1910
|
index: ee,
|
|
1911
1911
|
nextTick: Ze,
|
|
1912
|
-
cancelNextTick:
|
|
1912
|
+
cancelNextTick: zt,
|
|
1913
1913
|
detectDirection: hi,
|
|
1914
1914
|
getChild: Ie,
|
|
1915
1915
|
expando: q
|
|
@@ -1930,7 +1930,7 @@ y.create = function(t, e) {
|
|
|
1930
1930
|
return new y(t, e);
|
|
1931
1931
|
};
|
|
1932
1932
|
y.version = bn;
|
|
1933
|
-
var H = [],
|
|
1933
|
+
var H = [], Ae, At, kt = !1, bt, yt, lt, ke;
|
|
1934
1934
|
function Fn() {
|
|
1935
1935
|
function t() {
|
|
1936
1936
|
this.defaults = {
|
|
@@ -1956,26 +1956,26 @@ function Fn() {
|
|
|
1956
1956
|
this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : (T(document, "pointermove", this._handleFallbackAutoScroll), T(document, "touchmove", this._handleFallbackAutoScroll), T(document, "mousemove", this._handleFallbackAutoScroll)), qt(), Qe(), Sn();
|
|
1957
1957
|
},
|
|
1958
1958
|
nulling: function() {
|
|
1959
|
-
lt =
|
|
1959
|
+
lt = At = Ae = kt = ke = bt = yt = null, H.length = 0;
|
|
1960
1960
|
},
|
|
1961
1961
|
_handleFallbackAutoScroll: function(i) {
|
|
1962
1962
|
this._handleAutoScroll(i, !0);
|
|
1963
1963
|
},
|
|
1964
1964
|
_handleAutoScroll: function(i, n) {
|
|
1965
1965
|
var r = this, o = (i.touches ? i.touches[0] : i).clientX, l = (i.touches ? i.touches[0] : i).clientY, a = document.elementFromPoint(o, l);
|
|
1966
|
-
if (lt = i, n || this.options.forceAutoScrollFallback || Fe || ue ||
|
|
1966
|
+
if (lt = i, n || this.options.forceAutoScrollFallback || Fe || ue || $e) {
|
|
1967
1967
|
wt(i, this.options, a, n);
|
|
1968
|
-
var s =
|
|
1969
|
-
|
|
1970
|
-
var u =
|
|
1968
|
+
var s = pe(a, !0);
|
|
1969
|
+
kt && (!ke || o !== bt || l !== yt) && (ke && qt(), ke = setInterval(function() {
|
|
1970
|
+
var u = pe(document.elementFromPoint(o, l), !0);
|
|
1971
1971
|
u !== s && (s = u, Qe()), wt(i, r.options, u, n);
|
|
1972
1972
|
}, 10), bt = o, yt = l);
|
|
1973
1973
|
} else {
|
|
1974
|
-
if (!this.options.bubbleScroll ||
|
|
1974
|
+
if (!this.options.bubbleScroll || pe(a, !0) === ne()) {
|
|
1975
1975
|
Qe();
|
|
1976
1976
|
return;
|
|
1977
1977
|
}
|
|
1978
|
-
wt(i, this.options,
|
|
1978
|
+
wt(i, this.options, pe(a, !1), !1);
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
}, se(t, {
|
|
@@ -1989,45 +1989,45 @@ function Qe() {
|
|
|
1989
1989
|
}), H = [];
|
|
1990
1990
|
}
|
|
1991
1991
|
function qt() {
|
|
1992
|
-
clearInterval(
|
|
1992
|
+
clearInterval(ke);
|
|
1993
1993
|
}
|
|
1994
1994
|
var wt = si(function(t, e, i, n) {
|
|
1995
1995
|
if (e.scroll) {
|
|
1996
|
-
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, a = e.scrollSpeed, s = ne(), u = !1,
|
|
1997
|
-
|
|
1998
|
-
var
|
|
1996
|
+
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, a = e.scrollSpeed, s = ne(), u = !1, c;
|
|
1997
|
+
At !== i && (At = i, Qe(), Ae = e.scroll, c = e.scrollFn, Ae === !0 && (Ae = pe(i, !0)));
|
|
1998
|
+
var f = 0, m = Ae;
|
|
1999
1999
|
do {
|
|
2000
|
-
var
|
|
2001
|
-
|
|
2002
|
-
var
|
|
2003
|
-
if (!H[
|
|
2004
|
-
for (var J = 0; J <=
|
|
2000
|
+
var E = m, S = L(E), g = S.top, D = S.bottom, V = S.left, C = S.right, p = S.width, d = S.height, z = void 0, Y = void 0, v = E.scrollWidth, B = E.scrollHeight, M = b(E), I = E.scrollLeft, R = E.scrollTop;
|
|
2001
|
+
E === s ? (z = p < v && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), Y = d < B && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (z = p < v && (M.overflowX === "auto" || M.overflowX === "scroll"), Y = d < B && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
|
2002
|
+
var N = z && (Math.abs(C - r) <= l && I + p < v) - (Math.abs(V - r) <= l && !!I), A = Y && (Math.abs(D - o) <= l && R + d < B) - (Math.abs(g - o) <= l && !!R);
|
|
2003
|
+
if (!H[f])
|
|
2004
|
+
for (var J = 0; J <= f; J++)
|
|
2005
2005
|
H[J] || (H[J] = {});
|
|
2006
|
-
(H[
|
|
2006
|
+
(H[f].vx != N || H[f].vy != A || H[f].el !== E) && (H[f].el = E, H[f].vx = N, H[f].vy = A, clearInterval(H[f].pid), (N != 0 || A != 0) && (u = !0, H[f].pid = setInterval((function() {
|
|
2007
2007
|
n && this.layer === 0 && y.active._onTouchMove(lt);
|
|
2008
2008
|
var de = H[this.layer].vy ? H[this.layer].vy * a : 0, F = H[this.layer].vx ? H[this.layer].vx * a : 0;
|
|
2009
|
-
typeof
|
|
2009
|
+
typeof c == "function" && c.call(y.dragged.parentNode[q], F, de, t, lt, H[this.layer].el) !== "continue" || ui(H[this.layer].el, F, de);
|
|
2010
2010
|
}).bind({
|
|
2011
|
-
layer:
|
|
2012
|
-
}), 24))),
|
|
2013
|
-
} while (e.bubbleScroll &&
|
|
2014
|
-
|
|
2011
|
+
layer: f
|
|
2012
|
+
}), 24))), f++;
|
|
2013
|
+
} while (e.bubbleScroll && m !== s && (m = pe(m, !1)));
|
|
2014
|
+
kt = u;
|
|
2015
2015
|
}
|
|
2016
2016
|
}, 30), vi = function(e) {
|
|
2017
2017
|
var i = e.originalEvent, n = e.putSortable, r = e.dragEl, o = e.activeSortable, l = e.dispatchSortableEvent, a = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
2018
2018
|
if (i) {
|
|
2019
2019
|
var u = n || o;
|
|
2020
2020
|
a();
|
|
2021
|
-
var
|
|
2022
|
-
s(), u && !u.el.contains(
|
|
2021
|
+
var c = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, f = document.elementFromPoint(c.clientX, c.clientY);
|
|
2022
|
+
s(), u && !u.el.contains(f) && (l("spill"), this.onSpill({
|
|
2023
2023
|
dragEl: r,
|
|
2024
2024
|
putSortable: n
|
|
2025
2025
|
}));
|
|
2026
2026
|
}
|
|
2027
2027
|
};
|
|
2028
|
-
function
|
|
2028
|
+
function Mt() {
|
|
2029
2029
|
}
|
|
2030
|
-
|
|
2030
|
+
Mt.prototype = {
|
|
2031
2031
|
startIndex: null,
|
|
2032
2032
|
dragStart: function(e) {
|
|
2033
2033
|
var i = e.oldDraggableIndex;
|
|
@@ -2041,26 +2041,26 @@ $t.prototype = {
|
|
|
2041
2041
|
},
|
|
2042
2042
|
drop: vi
|
|
2043
2043
|
};
|
|
2044
|
-
se(
|
|
2044
|
+
se(Mt, {
|
|
2045
2045
|
pluginName: "revertOnSpill"
|
|
2046
2046
|
});
|
|
2047
|
-
function
|
|
2047
|
+
function xt() {
|
|
2048
2048
|
}
|
|
2049
|
-
|
|
2049
|
+
xt.prototype = {
|
|
2050
2050
|
onSpill: function(e) {
|
|
2051
2051
|
var i = e.dragEl, n = e.putSortable, r = n || this.sortable;
|
|
2052
2052
|
r.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), r.animateAll();
|
|
2053
2053
|
},
|
|
2054
2054
|
drop: vi
|
|
2055
2055
|
};
|
|
2056
|
-
se(
|
|
2056
|
+
se(xt, {
|
|
2057
2057
|
pluginName: "removeOnSpill"
|
|
2058
2058
|
});
|
|
2059
2059
|
y.mount(new Fn());
|
|
2060
|
-
y.mount(
|
|
2060
|
+
y.mount(xt, Mt);
|
|
2061
2061
|
const Hn = (t, e, i, n) => {
|
|
2062
2062
|
const r = Qt(t, "dragSort");
|
|
2063
|
-
let o = null, l =
|
|
2063
|
+
let o = null, l = Pe(0);
|
|
2064
2064
|
Ft(
|
|
2065
2065
|
r,
|
|
2066
2066
|
(u) => {
|
|
@@ -2071,7 +2071,7 @@ const Hn = (t, e, i, n) => {
|
|
|
2071
2071
|
{
|
|
2072
2072
|
immediate: !0
|
|
2073
2073
|
}
|
|
2074
|
-
), Ft(n, (u,
|
|
2074
|
+
), Ft(n, (u, c) => {
|
|
2075
2075
|
et(() => {
|
|
2076
2076
|
r.value ? a() : s();
|
|
2077
2077
|
});
|
|
@@ -2085,11 +2085,11 @@ const Hn = (t, e, i, n) => {
|
|
|
2085
2085
|
animation: 300,
|
|
2086
2086
|
//过渡动画时间
|
|
2087
2087
|
//拖拽结束时事件
|
|
2088
|
-
onEnd: (
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2088
|
+
onEnd: (c) => {
|
|
2089
|
+
const f = JSON.parse(JSON.stringify(n.value)), m = JSON.parse(JSON.stringify(n.value));
|
|
2090
|
+
m.splice(c.oldIndex, 1)[0];
|
|
2091
|
+
const E = f[c.oldIndex];
|
|
2092
|
+
m.splice(c.newIndex, 0, E), e("update:modelValue", m), l.value = Date.now(), e("sortEnd", f, m, c.oldIndex, c.newIndex);
|
|
2093
2093
|
}
|
|
2094
2094
|
});
|
|
2095
2095
|
}, s = () => {
|
|
@@ -2100,7 +2100,7 @@ const Hn = (t, e, i, n) => {
|
|
|
2100
2100
|
}, Ln = {
|
|
2101
2101
|
key: 0,
|
|
2102
2102
|
class: "selected-number-header"
|
|
2103
|
-
}, Bn = { class: "selected-num" }, Yn = ["onClick"], Xn = { class: "name" }, Wn = ["onClick"], jn = { class: "name" }, Kn = ["infinite-scroll-disabled"], Gn = { class: "selected-group" }, Un = ["onClick"], qn = { class: "name" }, St = "var(--upf-text-secondary, var(--das-ui-color-secondary))", Jn = /* @__PURE__ */
|
|
2103
|
+
}, Bn = { class: "selected-num" }, Yn = ["onClick"], Xn = { class: "name" }, Wn = ["onClick"], jn = { class: "name" }, Kn = ["infinite-scroll-disabled"], Gn = { class: "selected-group" }, Un = ["onClick"], qn = { class: "name" }, St = "var(--upf-text-secondary, var(--das-ui-color-secondary))", Jn = /* @__PURE__ */ $i({
|
|
2104
2104
|
__name: "Index",
|
|
2105
2105
|
props: {
|
|
2106
2106
|
width: { default: "100%" },
|
|
@@ -2127,61 +2127,61 @@ const Hn = (t, e, i, n) => {
|
|
|
2127
2127
|
},
|
|
2128
2128
|
emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2129
2129
|
setup(t, { expose: e, emit: i }) {
|
|
2130
|
-
|
|
2131
|
-
|
|
2130
|
+
Mi((d) => ({
|
|
2131
|
+
"16d1ef20": o.value
|
|
2132
2132
|
}));
|
|
2133
|
-
const n = t, r = i, o =
|
|
2133
|
+
const n = t, r = i, o = Ne(() => n.itemHeight + "px"), l = Ne(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
|
|
2134
2134
|
selectListRef: a,
|
|
2135
2135
|
$list: s,
|
|
2136
2136
|
disabledFlag: u,
|
|
2137
|
-
disabledDrag:
|
|
2138
|
-
disableDelete:
|
|
2139
|
-
itemGroups:
|
|
2140
|
-
selectedLabel:
|
|
2137
|
+
disabledDrag: c,
|
|
2138
|
+
disableDelete: f,
|
|
2139
|
+
itemGroups: m,
|
|
2140
|
+
selectedLabel: E,
|
|
2141
2141
|
itemRemove: S,
|
|
2142
2142
|
removeAll: g,
|
|
2143
|
-
innerSelectdValue:
|
|
2143
|
+
innerSelectdValue: D,
|
|
2144
2144
|
selectItem: V,
|
|
2145
2145
|
infiniteLoad: C
|
|
2146
|
-
} =
|
|
2147
|
-
Hn(n, r, s,
|
|
2148
|
-
const
|
|
2146
|
+
} = pn(n, r);
|
|
2147
|
+
Hn(n, r, s, m);
|
|
2148
|
+
const p = Pe(!0);
|
|
2149
2149
|
return Zt(() => {
|
|
2150
|
-
|
|
2151
|
-
|
|
2150
|
+
p.value = !1, setTimeout(() => {
|
|
2151
|
+
p.value = !0;
|
|
2152
2152
|
}, 300);
|
|
2153
2153
|
}), e({
|
|
2154
2154
|
infiniteLoad: C
|
|
2155
|
-
}), (
|
|
2156
|
-
const Y =
|
|
2157
|
-
return
|
|
2155
|
+
}), (d, z) => {
|
|
2156
|
+
const Y = _i;
|
|
2157
|
+
return k(), W(
|
|
2158
2158
|
"div",
|
|
2159
2159
|
{
|
|
2160
2160
|
ref_key: "selectListRef",
|
|
2161
2161
|
ref: a,
|
|
2162
2162
|
class: "das-ui-select-list",
|
|
2163
|
-
style: Jt({ width:
|
|
2163
|
+
style: Jt({ width: d.width, height: d.height, ...d.customStyle })
|
|
2164
2164
|
},
|
|
2165
2165
|
[
|
|
2166
|
-
he(
|
|
2167
|
-
|
|
2166
|
+
he(d.$slots, "header", {}, () => [
|
|
2167
|
+
d.hideHeader ? G("v-if", !0) : (k(), W("div", Ln, [
|
|
2168
2168
|
Oe(
|
|
2169
2169
|
"div",
|
|
2170
2170
|
Bn,
|
|
2171
|
-
Ce(E
|
|
2171
|
+
Ce(_(E)),
|
|
2172
2172
|
1
|
|
2173
2173
|
/* TEXT */
|
|
2174
2174
|
),
|
|
2175
|
-
!
|
|
2175
|
+
!d.isView && d.clearable ? (k(), le(_(xi), {
|
|
2176
2176
|
key: 0,
|
|
2177
2177
|
"btn-type": "primary-text",
|
|
2178
2178
|
block: "",
|
|
2179
|
-
onClick:
|
|
2180
|
-
disabled: !
|
|
2179
|
+
onClick: _(g),
|
|
2180
|
+
disabled: !_(m) || !_(m).length
|
|
2181
2181
|
}, {
|
|
2182
2182
|
default: tt(() => [
|
|
2183
2183
|
Le(
|
|
2184
|
-
Ce(
|
|
2184
|
+
Ce(_(je)("das-select-list-removeAll").value),
|
|
2185
2185
|
1
|
|
2186
2186
|
/* TEXT */
|
|
2187
2187
|
)
|
|
@@ -2192,54 +2192,54 @@ const Hn = (t, e, i, n) => {
|
|
|
2192
2192
|
]))
|
|
2193
2193
|
], !0),
|
|
2194
2194
|
G(" 普通 "),
|
|
2195
|
-
!
|
|
2195
|
+
!d.infiniteScroll && !l.value ? Se((k(), W(
|
|
2196
2196
|
"div",
|
|
2197
2197
|
{
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
ref_key: "$list",
|
|
2200
2200
|
ref: s,
|
|
2201
|
-
class: oe(["selected-container", { "hide-header":
|
|
2201
|
+
class: oe(["selected-container", { "hide-header": d.hideHeader }])
|
|
2202
2202
|
},
|
|
2203
2203
|
[
|
|
2204
|
-
(
|
|
2205
|
-
|
|
2204
|
+
(k(!0), W(
|
|
2205
|
+
_t,
|
|
2206
2206
|
null,
|
|
2207
|
-
|
|
2207
|
+
Et(_(m), (v, B) => (k(), W("div", {
|
|
2208
2208
|
class: oe({
|
|
2209
2209
|
"selected-item": !0,
|
|
2210
|
-
disabled: !
|
|
2211
|
-
enable: !
|
|
2212
|
-
disableDrag: !
|
|
2213
|
-
active:
|
|
2210
|
+
disabled: !d.isView && _(u)(v),
|
|
2211
|
+
enable: !d.isView && !_(u)(v),
|
|
2212
|
+
disableDrag: !d.isView && _(c)(v),
|
|
2213
|
+
active: _(D) === v[d.valueKey]
|
|
2214
2214
|
}),
|
|
2215
|
-
key: v[
|
|
2216
|
-
onClick: (
|
|
2215
|
+
key: v[d.valueKey] + B,
|
|
2216
|
+
onClick: (M) => _(V)(v)
|
|
2217
2217
|
}, [
|
|
2218
|
-
|
|
2218
|
+
d.dragSort ? (k(), le(_(Ri), {
|
|
2219
2219
|
key: 0,
|
|
2220
|
-
class: oe({ "drag-icon": !0, "hide-drag-icon":
|
|
2220
|
+
class: oe({ "drag-icon": !0, "hide-drag-icon": _(c)(v) }),
|
|
2221
2221
|
size: "medium",
|
|
2222
2222
|
style: { "margin-right": "8px" }
|
|
2223
2223
|
}, null, 8, ["class"])) : G("v-if", !0),
|
|
2224
2224
|
Oe("div", Xn, [
|
|
2225
|
-
he(
|
|
2226
|
-
Se((
|
|
2225
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2226
|
+
Se((k(), W("div", null, [
|
|
2227
2227
|
Le(
|
|
2228
|
-
Ce(v[
|
|
2228
|
+
Ce(v[d.labelKey]),
|
|
2229
2229
|
1
|
|
2230
2230
|
/* TEXT */
|
|
2231
2231
|
)
|
|
2232
2232
|
])), [
|
|
2233
|
-
[
|
|
2233
|
+
[_(ut)]
|
|
2234
2234
|
])
|
|
2235
2235
|
], !0)
|
|
2236
2236
|
]),
|
|
2237
|
-
!
|
|
2237
|
+
!d.isView && d.closeable && !_(f)(v) ? (k(), le(_(dt), {
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
size: "small",
|
|
2240
2240
|
class: "close-icon",
|
|
2241
2241
|
"icon-color": St,
|
|
2242
|
-
onClick: (
|
|
2242
|
+
onClick: (M) => _(S)(v)
|
|
2243
2243
|
}, null, 8, ["onClick"])) : G("v-if", !0)
|
|
2244
2244
|
], 10, Yn))),
|
|
2245
2245
|
128
|
|
@@ -2249,55 +2249,55 @@ const Hn = (t, e, i, n) => {
|
|
|
2249
2249
|
2
|
|
2250
2250
|
/* CLASS */
|
|
2251
2251
|
)), [
|
|
2252
|
-
[
|
|
2252
|
+
[_(Vi), { usePrevOverlay: !0 }]
|
|
2253
2253
|
]) : G("v-if", !0),
|
|
2254
2254
|
G(" 虚拟滚动 "),
|
|
2255
|
-
!
|
|
2255
|
+
!d.dragSort && l.value ? (k(), W(
|
|
2256
2256
|
"div",
|
|
2257
2257
|
{
|
|
2258
2258
|
key: 1,
|
|
2259
2259
|
ref_key: "$list",
|
|
2260
2260
|
ref: s,
|
|
2261
|
-
class: oe(["selected-container", { "hide-header":
|
|
2261
|
+
class: oe(["selected-container", { "hide-header": d.hideHeader }])
|
|
2262
2262
|
},
|
|
2263
2263
|
[
|
|
2264
|
-
|
|
2265
|
-
key:
|
|
2266
|
-
items:
|
|
2267
|
-
"item-size":
|
|
2268
|
-
"key-field":
|
|
2264
|
+
p.value && _(m).length > 0 ? (k(), le(_(Pt), {
|
|
2265
|
+
key: _(m).length,
|
|
2266
|
+
items: _(m),
|
|
2267
|
+
"item-size": d.itemHeight,
|
|
2268
|
+
"key-field": d.valueKey,
|
|
2269
2269
|
class: "virtual-list"
|
|
2270
2270
|
}, {
|
|
2271
2271
|
default: tt(({ item: v, index: B }) => [
|
|
2272
|
-
(
|
|
2272
|
+
(k(), W("div", {
|
|
2273
2273
|
class: oe({
|
|
2274
2274
|
"selected-item": !0,
|
|
2275
|
-
disabled: !
|
|
2276
|
-
enable: !
|
|
2277
|
-
active:
|
|
2275
|
+
disabled: !d.isView && _(u)(v),
|
|
2276
|
+
enable: !d.isView && !_(u)(v),
|
|
2277
|
+
active: _(D) === v[d.valueKey]
|
|
2278
2278
|
}),
|
|
2279
|
-
key: v[
|
|
2280
|
-
onClick: (
|
|
2279
|
+
key: v[d.valueKey],
|
|
2280
|
+
onClick: (M) => _(V)(v)
|
|
2281
2281
|
}, [
|
|
2282
2282
|
Oe("div", jn, [
|
|
2283
|
-
he(
|
|
2284
|
-
Se((
|
|
2283
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2284
|
+
Se((k(), W("div", null, [
|
|
2285
2285
|
Le(
|
|
2286
|
-
Ce(v[
|
|
2286
|
+
Ce(v[d.labelKey]),
|
|
2287
2287
|
1
|
|
2288
2288
|
/* TEXT */
|
|
2289
2289
|
)
|
|
2290
2290
|
])), [
|
|
2291
|
-
[
|
|
2291
|
+
[_(ut)]
|
|
2292
2292
|
])
|
|
2293
2293
|
], !0)
|
|
2294
2294
|
]),
|
|
2295
|
-
!
|
|
2295
|
+
!d.isView && d.closeable && !_(f)(v) ? (k(), le(_(dt), {
|
|
2296
2296
|
key: 0,
|
|
2297
2297
|
size: "small",
|
|
2298
2298
|
class: "close-icon",
|
|
2299
2299
|
"icon-color": St,
|
|
2300
|
-
onClick: (
|
|
2300
|
+
onClick: (M) => _(S)(v)
|
|
2301
2301
|
}, null, 8, ["onClick"])) : G("v-if", !0)
|
|
2302
2302
|
], 10, Wn))
|
|
2303
2303
|
]),
|
|
@@ -2309,47 +2309,47 @@ const Hn = (t, e, i, n) => {
|
|
|
2309
2309
|
/* CLASS */
|
|
2310
2310
|
)) : G("v-if", !0),
|
|
2311
2311
|
G(" 分页加载 "),
|
|
2312
|
-
!
|
|
2312
|
+
!d.dragSort && d.infiniteScroll ? Se((k(), W("div", {
|
|
2313
2313
|
key: 2,
|
|
2314
2314
|
ref_key: "$list",
|
|
2315
2315
|
ref: s,
|
|
2316
|
-
class: oe(["selected-container selected-page-container", { "hide-header":
|
|
2317
|
-
"infinite-scroll-disabled":
|
|
2316
|
+
class: oe(["selected-container selected-page-container", { "hide-header": d.hideHeader }]),
|
|
2317
|
+
"infinite-scroll-disabled": d.infiniteDisabled,
|
|
2318
2318
|
style: { overflow: "overlay" }
|
|
2319
2319
|
}, [
|
|
2320
2320
|
Oe("div", Gn, [
|
|
2321
|
-
(
|
|
2322
|
-
|
|
2321
|
+
(k(!0), W(
|
|
2322
|
+
_t,
|
|
2323
2323
|
null,
|
|
2324
|
-
|
|
2324
|
+
Et(_(m), (v) => (k(), W("div", {
|
|
2325
2325
|
class: oe({
|
|
2326
2326
|
"selected-item": !0,
|
|
2327
|
-
disabled: !
|
|
2328
|
-
enable: !
|
|
2329
|
-
active:
|
|
2327
|
+
disabled: !d.isView && _(u)(v),
|
|
2328
|
+
enable: !d.isView && !_(u)(v),
|
|
2329
|
+
active: _(D) === v[d.valueKey]
|
|
2330
2330
|
}),
|
|
2331
|
-
key: v[
|
|
2332
|
-
onClick: (B) =>
|
|
2331
|
+
key: v[d.valueKey],
|
|
2332
|
+
onClick: (B) => _(V)(v)
|
|
2333
2333
|
}, [
|
|
2334
2334
|
Oe("div", qn, [
|
|
2335
|
-
he(
|
|
2336
|
-
Se((
|
|
2335
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2336
|
+
Se((k(), W("div", null, [
|
|
2337
2337
|
Le(
|
|
2338
|
-
Ce(v[
|
|
2338
|
+
Ce(v[d.labelKey]),
|
|
2339
2339
|
1
|
|
2340
2340
|
/* TEXT */
|
|
2341
2341
|
)
|
|
2342
2342
|
])), [
|
|
2343
|
-
[
|
|
2343
|
+
[_(ut)]
|
|
2344
2344
|
])
|
|
2345
2345
|
], !0)
|
|
2346
2346
|
]),
|
|
2347
|
-
!
|
|
2347
|
+
!d.isView && d.closeable && !_(f)(v) ? (k(), le(_(dt), {
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
size: "small",
|
|
2350
2350
|
class: "close-icon",
|
|
2351
2351
|
"icon-color": St,
|
|
2352
|
-
onClick: (B) =>
|
|
2352
|
+
onClick: (B) => _(S)(v)
|
|
2353
2353
|
}, null, 8, ["onClick"])) : G("v-if", !0)
|
|
2354
2354
|
], 10, Un))),
|
|
2355
2355
|
128
|
|
@@ -2357,7 +2357,7 @@ const Hn = (t, e, i, n) => {
|
|
|
2357
2357
|
))
|
|
2358
2358
|
])
|
|
2359
2359
|
], 10, Kn)), [
|
|
2360
|
-
[Y,
|
|
2360
|
+
[Y, _(C)]
|
|
2361
2361
|
]) : G("v-if", !0)
|
|
2362
2362
|
],
|
|
2363
2363
|
4
|