@das-fed/ui 6.4.0-test.6.1 → 6.4.0-test.7.1
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/esm-map.json +8 -1
- package/package.json +6 -5
- package/packages/business-components/app-container/index.js +96 -73
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +0 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +0 -1
- package/packages/business-components/device-panel/index.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +2 -2
- package/packages/business-components/export-button/hooks/useExport.d.ts +5 -6
- package/packages/business-components/export-button/index.js +89 -87
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +13 -13
- package/packages/business-components/import-button/index.js +284 -275
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/model-table-dialog/index.d.ts +65 -65
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -12
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +2 -2
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +52 -0
- package/packages/business-components/payment/index.js +1818 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +41 -0
- package/packages/business-components/process-form/i18n/index.d.ts +10 -0
- package/packages/business-components/process-form/index.js +149 -145
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/index.js +289 -289
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.d.ts +2 -0
- package/packages/business-components/process-table/index.js +2 -1
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +3 -3
- package/packages/business-components/process-table/src/type.d.ts +2 -0
- package/packages/components/autocomplete/index.d.ts +9 -9
- package/packages/components/autocomplete/index.js +1 -1
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/src/type.d.ts +5 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/calendar/index.d.ts +5 -5
- package/packages/components/calendar/src/Index.vue.d.ts +2 -2
- package/packages/components/calendar/src/old-Index.vue.d.ts +2 -2
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/index.js +4 -4
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/type.d.ts +6 -3
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +30 -25
- package/packages/components/date-picker/index.js +543 -525
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +4 -2
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2 -2
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +27 -7
- package/packages/components/edit-table/index.js +1637 -1499
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/components/index.d.ts +1 -0
- package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
- package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
- package/packages/components/edit-table/src/index.vue.d.ts +8 -4
- package/packages/components/edit-table/src/type.d.ts +15 -3
- package/packages/components/edit-table/src/utils.d.ts +1 -1
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -3
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/map/index.js +82 -85
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/index.js +154 -153
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.js +24 -23
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.d.ts +23 -23
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/src/Pagination.vue.d.ts +3 -3
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popup-mask/index.d.ts +9 -9
- package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
- package/packages/components/preview/index.d.ts +3 -3
- package/packages/components/preview/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/index.js +241 -240
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +3 -1
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/type.d.ts +3 -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.js +17 -17
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.d.ts +2 -2
- package/packages/components/select-input/src/Index.vue.d.ts +2 -2
- package/packages/components/select-list/index.js +176 -174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/select-list/theme/index.d.ts +2 -0
- package/packages/components/table/index.d.ts +18 -18
- package/packages/components/table/index.js +82 -81
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +1 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -1
- package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +61 -60
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +702 -695
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +43 -42
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +290 -294
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +6 -3
- package/packages/components/tree-select/index.js +50 -49
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-v2/i18n/index.d.ts +31 -0
- package/packages/components/tree-v2/index.d.ts +585 -0
- package/packages/components/tree-v2/index.js +3371 -0
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
- package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
- package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree-v2/src/type.d.ts +283 -0
- package/packages/components/tree-v2/src/utils.d.ts +18 -0
- package/packages/components/tree-v2/style.css +1 -0
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +16 -0
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
- package/packages/icons/input-select/index.d.ts +1 -0
- package/packages/icons/input-select/index.js +17 -0
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/input-select/index.vue.d.ts +16 -0
|
@@ -5,11 +5,11 @@ import { getVar as ut, setThemeRule as _i } from "@das-fed/web/packages/theme/in
|
|
|
5
5
|
import { ElInfiniteScroll as Ei } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import "element-plus/es/components/infinite-scroll/style/css";
|
|
8
|
-
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, openBlock as k, createBlock as oe, withScopeId as Ti, markRaw as Ci, shallowReactive as Oi, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as X, normalizeClass as
|
|
9
|
-
import { vDasTooltip as
|
|
8
|
+
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, openBlock as k, createBlock as oe, withScopeId as Ti, markRaw as Ci, shallowReactive as Oi, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as X, normalizeClass as ce, renderSlot as he, createCommentVNode as K, resolveDynamicComponent as Vt, normalizeStyle as qt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as ki, toHandlers as Ni, createVNode as Pi, ref as Ne, computed as Pe, onMounted as Jt, onBeforeUnmount as $i, watch as Rt, defineComponent as Mi, useCssVars as xi, createElementVNode as Ce, toDisplayString as Oe, unref as D, createTextVNode as Le } from "vue";
|
|
9
|
+
import { vDasTooltip as ct } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasButton as Vi } from "@das-fed/ui/packages/components/button/index";
|
|
11
11
|
import { vOverlay as Ri } from "@das-fed/ui/packages/components/overlay/index";
|
|
12
|
-
import { DasIconClose2 as
|
|
12
|
+
import { DasIconClose2 as dt } from "@das-fed/ui/packages/icons/close-2/index";
|
|
13
13
|
import { DasIconDrag as Fi } from "@das-fed/ui/packages/icons/drag/index";
|
|
14
14
|
import { useModelValue as Zt } from "@das-fed/utils/vue";
|
|
15
15
|
import { SizeWatcher as Hi } from "@das-fed/utils/size-watcher";
|
|
@@ -144,9 +144,9 @@ function Zi(t) {
|
|
|
144
144
|
}
|
|
145
145
|
function Qi(t, e) {
|
|
146
146
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, r, o, l = function(a) {
|
|
147
|
-
for (var u = arguments.length,
|
|
148
|
-
|
|
149
|
-
if (o =
|
|
147
|
+
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
148
|
+
c[h - 1] = arguments[h];
|
|
149
|
+
if (o = c, !(n && a === r)) {
|
|
150
150
|
var p = i.leading;
|
|
151
151
|
typeof p == "function" && (p = p(a, r)), (!n || a !== r) && p && t.apply(void 0, [a].concat(Ft(o))), r = a, clearTimeout(n), n = setTimeout(function() {
|
|
152
152
|
t.apply(void 0, [a].concat(Ft(o))), n = 0;
|
|
@@ -195,9 +195,9 @@ var en = /* @__PURE__ */ function() {
|
|
|
195
195
|
u && (a = u);
|
|
196
196
|
}
|
|
197
197
|
if (r.callback) {
|
|
198
|
-
var
|
|
199
|
-
if (
|
|
200
|
-
r.oldResult =
|
|
198
|
+
var c = a.isIntersecting && a.intersectionRatio >= r.threshold;
|
|
199
|
+
if (c === r.oldResult) return;
|
|
200
|
+
r.oldResult = c, r.callback(c, a);
|
|
201
201
|
}
|
|
202
202
|
}, this.options.intersection), et(function() {
|
|
203
203
|
r.observer && r.observer.observe(r.el);
|
|
@@ -305,16 +305,16 @@ var Ct = !1;
|
|
|
305
305
|
if (typeof window < "u") {
|
|
306
306
|
Ct = !1;
|
|
307
307
|
try {
|
|
308
|
-
var
|
|
308
|
+
var cn = Object.defineProperty({}, "passive", {
|
|
309
309
|
get: function() {
|
|
310
310
|
Ct = !0;
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
|
-
window.addEventListener("test", null,
|
|
313
|
+
window.addEventListener("test", null, cn);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
let
|
|
317
|
+
let dn = 0;
|
|
318
318
|
var Nt = {
|
|
319
319
|
name: "RecycleScroller",
|
|
320
320
|
components: {
|
|
@@ -467,7 +467,7 @@ var Nt = {
|
|
|
467
467
|
methods: {
|
|
468
468
|
addView(t, e, i, n, r) {
|
|
469
469
|
const o = Ci({
|
|
470
|
-
id:
|
|
470
|
+
id: dn++,
|
|
471
471
|
index: e,
|
|
472
472
|
used: !0,
|
|
473
473
|
key: n,
|
|
@@ -506,12 +506,12 @@ var Nt = {
|
|
|
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, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length,
|
|
510
|
-
let m, I, y,
|
|
509
|
+
const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length, c = this.sizes, h = this.$_views, p = this.$_unusedViews, _ = this.pool, S = this.itemIndexByKey;
|
|
510
|
+
let m, I, y, d, C;
|
|
511
511
|
if (!u)
|
|
512
|
-
m = I =
|
|
512
|
+
m = I = d = C = y = 0;
|
|
513
513
|
else if (this.$_prerender)
|
|
514
|
-
m =
|
|
514
|
+
m = d = 0, I = C = Math.min(this.prerender, a.length), y = null;
|
|
515
515
|
else {
|
|
516
516
|
const T = this.getScroll();
|
|
517
517
|
if (e) {
|
|
@@ -532,15 +532,15 @@ var Nt = {
|
|
|
532
532
|
if (i === null) {
|
|
533
533
|
let A, J = 0, ue = u - 1, V = ~~(u / 2), me;
|
|
534
534
|
do
|
|
535
|
-
me = V, A =
|
|
535
|
+
me = V, A = c[V].accumulator, A < T.start ? J = V : V < u - 1 && c[V + 1].accumulator > T.start && (ue = V), V = ~~((J + ue) / 2);
|
|
536
536
|
while (V !== me);
|
|
537
|
-
for (V < 0 && (V = 0), m = V, y =
|
|
538
|
-
for (I === -1 ? I = a.length - 1 : (I++, I > u && (I = u)),
|
|
539
|
-
for (C =
|
|
537
|
+
for (V < 0 && (V = 0), m = V, y = c[u - 1].accumulator, I = V; I < u && c[I].accumulator < T.end; I++) ;
|
|
538
|
+
for (I === -1 ? I = a.length - 1 : (I++, I > u && (I = u)), d = m; d < u && P + c[d].accumulator < T.start; d++) ;
|
|
539
|
+
for (C = d; C < u && P + c[C].accumulator < T.end; C++) ;
|
|
540
540
|
} else {
|
|
541
541
|
m = ~~(T.start / i * n);
|
|
542
542
|
const A = m % n;
|
|
543
|
-
m -= A, I = Math.ceil(T.end / i * n),
|
|
543
|
+
m -= A, I = Math.ceil(T.end / i * n), d = Math.max(0, Math.floor((T.start - P) / i * n)), C = Math.floor((T.end - P) / i * n), m < 0 && (m = 0), I > u && (I = u), d < 0 && (d = 0), C > u && (C = u), y = Math.ceil(u / n) * i;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
I - m > rn.itemsLimit && this.itemsLimitError(), this.totalSize = y;
|
|
@@ -556,7 +556,7 @@ var Nt = {
|
|
|
556
556
|
const x = s ? H[s] : H;
|
|
557
557
|
if (x == null)
|
|
558
558
|
throw new Error(`Key is ${x} on item (keyField is '${s}')`);
|
|
559
|
-
if (g = h.get(x), !i && !
|
|
559
|
+
if (g = h.get(x), !i && !c[T].size) {
|
|
560
560
|
g && this.unuseView(g);
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
@@ -568,9 +568,9 @@ var Nt = {
|
|
|
568
568
|
const J = P.indexOf(g);
|
|
569
569
|
J !== -1 && P.splice(J, 1);
|
|
570
570
|
}
|
|
571
|
-
g.item = H, A && (T === a.length - 1 && this.$emit("scroll-end"), T === 0 && this.$emit("scroll-start")), i === null ? (g.position =
|
|
571
|
+
g.item = H, A && (T === a.length - 1 && this.$emit("scroll-end"), T === 0 && this.$emit("scroll-start")), i === null ? (g.position = c[T - 1].accumulator, g.offset = 0) : (g.position = Math.floor(T / n) * i, g.offset = T % n * r);
|
|
572
572
|
}
|
|
573
|
-
return this.$_startIndex = m, this.$_endIndex = I, this.emitUpdate && this.$emit("update", m, I,
|
|
573
|
+
return this.$_startIndex = m, this.$_endIndex = I, this.emitUpdate && this.$emit("update", m, I, d, C), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
574
574
|
continuous: E
|
|
575
575
|
};
|
|
576
576
|
},
|
|
@@ -646,7 +646,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
646
646
|
return Se((k(), X(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
|
-
class:
|
|
649
|
+
class: ce(["vue-recycle-scroller", {
|
|
650
650
|
ready: r.ready,
|
|
651
651
|
"page-mode": i.pageMode,
|
|
652
652
|
[`direction-${t.direction}`]: !0
|
|
@@ -666,7 +666,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
666
666
|
(k(), oe(Vt(i.listTag), {
|
|
667
667
|
ref: "wrapper",
|
|
668
668
|
style: qt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
669
|
-
class:
|
|
669
|
+
class: ce(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
670
670
|
}, {
|
|
671
671
|
default: tt(() => [
|
|
672
672
|
(k(!0), X(
|
|
@@ -732,29 +732,29 @@ Nt.render = pn;
|
|
|
732
732
|
Nt.__file = "src/components/RecycleScroller.vue";
|
|
733
733
|
const mn = (t, e) => {
|
|
734
734
|
const i = Ne(), n = Ne(), r = Zt(t, "modelValue"), o = t.valueKey, l = Pe(() => 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}`), s = Pe(() => ({ disabled: "disabled", ...t.props })), a = (y) => {
|
|
735
|
-
let
|
|
736
|
-
return typeof s.value.disabled == "string" ?
|
|
735
|
+
let d = !1;
|
|
736
|
+
return typeof s.value.disabled == "string" ? d = y[s.value.disabled] : d = s.value.disabled(y) ?? !1, d;
|
|
737
737
|
}, u = Pe({
|
|
738
738
|
get: () => t.selectdValue,
|
|
739
739
|
set: (y) => {
|
|
740
740
|
e("update:selectdValue", y);
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
743
|
-
u.value = y[o], e("select-item", y);
|
|
742
|
+
}), c = (y) => {
|
|
743
|
+
t.isView || a(y) || (u.value = y[o], e("select-item", y));
|
|
744
744
|
}, h = (y) => {
|
|
745
|
-
const
|
|
746
|
-
e("item-remove", y), e("update:modelValue",
|
|
745
|
+
const d = r.value.filter((C) => C[o] !== y[o]);
|
|
746
|
+
e("item-remove", y), e("update:modelValue", d);
|
|
747
747
|
}, p = () => {
|
|
748
|
-
const y = r.value.filter((C) => !a(C)),
|
|
749
|
-
e("remove-all", y), e("update:modelValue",
|
|
748
|
+
const y = r.value.filter((C) => !a(C)), d = r.value.filter((C) => a(C));
|
|
749
|
+
e("remove-all", y), e("update:modelValue", d);
|
|
750
750
|
}, _ = () => {
|
|
751
751
|
t.infiniteScroll && t.infiniteScroll().then((y) => {
|
|
752
752
|
if (y && y.length) {
|
|
753
|
-
let
|
|
754
|
-
|
|
753
|
+
let d = [];
|
|
754
|
+
d = y, d = d.filter(
|
|
755
755
|
(g) => !r.value.map((E) => E[t.valueKey]).includes(g[t.valueKey])
|
|
756
756
|
);
|
|
757
|
-
const C = r.value.concat(
|
|
757
|
+
const C = r.value.concat(d);
|
|
758
758
|
e("update:modelValue", C);
|
|
759
759
|
}
|
|
760
760
|
});
|
|
@@ -762,13 +762,13 @@ const mn = (t, e) => {
|
|
|
762
762
|
let S = 0;
|
|
763
763
|
const m = (y) => {
|
|
764
764
|
var C;
|
|
765
|
-
const
|
|
766
|
-
S !== 0 && y === 0 && _(), S = y, y !== 0 && y -
|
|
765
|
+
const d = ((C = n.value) == null ? void 0 : C.offsetHeight) || 0;
|
|
766
|
+
S !== 0 && y === 0 && _(), S = y, y !== 0 && y - d < 10 && _();
|
|
767
767
|
}, I = Ne();
|
|
768
768
|
return Jt(() => {
|
|
769
|
-
var
|
|
769
|
+
var d;
|
|
770
770
|
if (t.infiniteDisabled) return;
|
|
771
|
-
const y = (
|
|
771
|
+
const y = (d = n.value) == null ? void 0 : d.querySelector(".selected-group");
|
|
772
772
|
I.value = Hi((C) => {
|
|
773
773
|
m(C.height);
|
|
774
774
|
}, y);
|
|
@@ -784,7 +784,7 @@ const mn = (t, e) => {
|
|
|
784
784
|
itemRemove: h,
|
|
785
785
|
removeAll: p,
|
|
786
786
|
innerSelectdValue: u,
|
|
787
|
-
selectItem:
|
|
787
|
+
selectItem: c,
|
|
788
788
|
infiniteLoad: _
|
|
789
789
|
};
|
|
790
790
|
};
|
|
@@ -949,8 +949,8 @@ function ne() {
|
|
|
949
949
|
}
|
|
950
950
|
function F(t, e, i, n, r) {
|
|
951
951
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
952
|
-
var o, l, s, a, u,
|
|
953
|
-
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right,
|
|
952
|
+
var o, l, s, a, u, c, h;
|
|
953
|
+
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, c = o.height, h = o.width) : (l = 0, s = 0, a = window.innerHeight, u = window.innerWidth, c = window.innerHeight, h = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !se))
|
|
954
954
|
do
|
|
955
955
|
if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || i && v(r, "position") !== "static")) {
|
|
956
956
|
var p = r.getBoundingClientRect();
|
|
@@ -960,7 +960,7 @@ function F(t, e, i, n, r) {
|
|
|
960
960
|
while (r = r.parentNode);
|
|
961
961
|
if (n && t !== window) {
|
|
962
962
|
var _ = De(r || t), S = _ && _.a, m = _ && _.d;
|
|
963
|
-
_ && (l /= m, s /= S, h /= S,
|
|
963
|
+
_ && (l /= m, s /= S, h /= S, c /= m, a = l + c, u = s + h);
|
|
964
964
|
}
|
|
965
965
|
return {
|
|
966
966
|
top: l,
|
|
@@ -968,7 +968,7 @@ function F(t, e, i, n, r) {
|
|
|
968
968
|
bottom: a,
|
|
969
969
|
right: u,
|
|
970
970
|
width: h,
|
|
971
|
-
height:
|
|
971
|
+
height: c
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -1063,11 +1063,11 @@ function _n() {
|
|
|
1063
1063
|
function ui(t, e, i) {
|
|
1064
1064
|
t.scrollLeft += e, t.scrollTop += i;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function ci(t) {
|
|
1067
1067
|
var e = window.Polymer, i = window.jQuery || window.Zepto;
|
|
1068
1068
|
return e && e.dom ? e.dom(t).cloneNode(!0) : i ? i(t).clone(!0)[0] : t.cloneNode(!0);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function di(t, e, i) {
|
|
1071
1071
|
var n = {};
|
|
1072
1072
|
return Array.from(t.children).forEach(function(r) {
|
|
1073
1073
|
var o, l, s, a;
|
|
@@ -1116,9 +1116,9 @@ function En() {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
var o = !1, l = 0;
|
|
1118
1118
|
t.forEach(function(s) {
|
|
1119
|
-
var a = 0, u = s.target,
|
|
1120
|
-
m && (h.top -= m.f, h.left -= m.e), u.toRect = h, u.thisAnimationDuration && ht(p, h) && !ht(
|
|
1121
|
-
(S.top - h.top) / (S.left - h.left) === (
|
|
1119
|
+
var a = 0, u = s.target, c = u.fromRect, h = F(u), p = u.prevFromRect, _ = u.prevToRect, S = s.rect, m = De(u, !0);
|
|
1120
|
+
m && (h.top -= m.f, h.left -= m.e), u.toRect = h, u.thisAnimationDuration && ht(p, h) && !ht(c, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1121
|
+
(S.top - h.top) / (S.left - h.left) === (c.top - h.top) / (c.left - h.left) && (a = In(S, p, _, r.options)), ht(h, c) || (u.prevFromRect = c, u.prevToRect = h, a || (a = r.options.animation), r.animate(u, S, h, a)), a && (o = !0, l = Math.max(l, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1122
1122
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1123
1123
|
}, a), u.thisAnimationDuration = a);
|
|
1124
1124
|
}), clearTimeout(e), o ? e = setTimeout(function() {
|
|
@@ -1128,8 +1128,8 @@ function En() {
|
|
|
1128
1128
|
animate: function(n, r, o, l) {
|
|
1129
1129
|
if (l) {
|
|
1130
1130
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1131
|
-
var s = De(this.el), a = s && s.a, u = s && s.d,
|
|
1132
|
-
n.animatingX = !!
|
|
1131
|
+
var s = De(this.el), a = s && s.a, u = s && s.d, c = (r.left - o.left) / (a || 1), h = (r.top - o.top) / (u || 1);
|
|
1132
|
+
n.animatingX = !!c, n.animatingY = !!h, v(n, "transform", "translate3d(" + c + "px," + h + "px,0)"), this.forRepaintDummy = Dn(n), v(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1133
1133
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1134
1134
|
}, l);
|
|
1135
1135
|
}
|
|
@@ -1195,16 +1195,16 @@ var ye = [], pt = {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
};
|
|
1197
1197
|
function Tn(t) {
|
|
1198
|
-
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex,
|
|
1198
|
+
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, h = t.newDraggableIndex, p = t.originalEvent, _ = t.putSortable, S = t.extraEventProperties;
|
|
1199
1199
|
if (e = e || i && i[q], !!e) {
|
|
1200
1200
|
var m, I = e.options, y = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1201
1201
|
window.CustomEvent && !se && !Fe ? m = new CustomEvent(n, {
|
|
1202
1202
|
bubbles: !0,
|
|
1203
1203
|
cancelable: !0
|
|
1204
|
-
}) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = l || i, m.from = s || i, m.item = r || i, m.clone = o, m.oldIndex = a, m.newIndex = u, m.oldDraggableIndex =
|
|
1205
|
-
var
|
|
1206
|
-
for (var C in
|
|
1207
|
-
m[C] =
|
|
1204
|
+
}) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = l || i, m.from = s || i, m.item = r || i, m.clone = o, m.oldIndex = a, m.newIndex = u, m.oldDraggableIndex = c, m.newDraggableIndex = h, m.originalEvent = p, m.pullMode = _ ? _.lastPutMode : void 0;
|
|
1205
|
+
var d = re(re({}, S), He.getEventProperties(n, e));
|
|
1206
|
+
for (var C in d)
|
|
1207
|
+
m[C] = d[C];
|
|
1208
1208
|
i && i.dispatchEvent(m), I[y] && I[y].call(e, m);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
@@ -1226,7 +1226,7 @@ var Cn = ["evt"], U = function(e, i) {
|
|
|
1226
1226
|
oldIndex: Ee,
|
|
1227
1227
|
oldDraggableIndex: xe,
|
|
1228
1228
|
newIndex: Q,
|
|
1229
|
-
newDraggableIndex:
|
|
1229
|
+
newDraggableIndex: de,
|
|
1230
1230
|
hideGhostForTarget: mi,
|
|
1231
1231
|
unhideGhostForTarget: gi,
|
|
1232
1232
|
cloneNowHidden: function() {
|
|
@@ -1253,10 +1253,10 @@ function j(t) {
|
|
|
1253
1253
|
oldIndex: Ee,
|
|
1254
1254
|
oldDraggableIndex: xe,
|
|
1255
1255
|
newIndex: Q,
|
|
1256
|
-
newDraggableIndex:
|
|
1256
|
+
newDraggableIndex: de
|
|
1257
1257
|
}, t));
|
|
1258
1258
|
}
|
|
1259
|
-
var f, M, w, N, be, qe, $, fe, Ee, Q, xe,
|
|
1259
|
+
var f, M, w, N, be, qe, $, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [], ge, te, mt, gt, jt, Kt, ze, we, Ve, Re = !1, Ye = !1, Je, W, vt = [], Ot = !1, ot = [], st = typeof document < "u", Xe = ni, Gt = Fe || se ? "cssFloat" : "float", On = st && !ri && !ni && "draggable" in document.createElement("div"), fi = function() {
|
|
1260
1260
|
if (st) {
|
|
1261
1261
|
if (se)
|
|
1262
1262
|
return !1;
|
|
@@ -1264,7 +1264,7 @@ var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1264
1264
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1265
1265
|
}
|
|
1266
1266
|
}(), hi = function(e, i) {
|
|
1267
|
-
var n = v(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), s = o && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + F(o).width,
|
|
1267
|
+
var n = v(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), s = o && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + F(o).width, c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + F(l).width;
|
|
1268
1268
|
if (n.display === "flex")
|
|
1269
1269
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1270
1270
|
if (n.display === "grid")
|
|
@@ -1273,7 +1273,7 @@ var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1273
1273
|
var h = s.float === "left" ? "left" : "right";
|
|
1274
1274
|
return l && (a.clear === "both" || a.clear === h) ? "vertical" : "horizontal";
|
|
1275
1275
|
}
|
|
1276
|
-
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[Gt] === "none" || l && n[Gt] === "none" && u +
|
|
1276
|
+
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[Gt] === "none" || l && n[Gt] === "none" && u + c > r) ? "vertical" : "horizontal";
|
|
1277
1277
|
}, zn = function(e, i, n) {
|
|
1278
1278
|
var r = n ? e.left : e.top, o = n ? e.right : e.bottom, l = n ? e.width : e.height, s = n ? i.left : i.top, a = n ? i.right : i.bottom, u = n ? i.width : i.height;
|
|
1279
1279
|
return r === s || o === a || r + l / 2 === s + u / 2;
|
|
@@ -1289,7 +1289,7 @@ var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1289
1289
|
}), n;
|
|
1290
1290
|
}, pi = function(e) {
|
|
1291
1291
|
function i(o, l) {
|
|
1292
|
-
return function(s, a, u,
|
|
1292
|
+
return function(s, a, u, c) {
|
|
1293
1293
|
var h = s.options.group.name && a.options.group.name && s.options.group.name === a.options.group.name;
|
|
1294
1294
|
if (o == null && (l || h))
|
|
1295
1295
|
return !0;
|
|
@@ -1298,7 +1298,7 @@ var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1298
1298
|
if (l && o === "clone")
|
|
1299
1299
|
return o;
|
|
1300
1300
|
if (typeof o == "function")
|
|
1301
|
-
return i(o(s, a, u,
|
|
1301
|
+
return i(o(s, a, u, c), l)(s, a, u, c);
|
|
1302
1302
|
var p = (l ? s : a).options.group.name;
|
|
1303
1303
|
return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
|
|
1304
1304
|
};
|
|
@@ -1398,10 +1398,10 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1398
1398
|
},
|
|
1399
1399
|
_onTapStart: function(e) {
|
|
1400
1400
|
if (e.cancelable) {
|
|
1401
|
-
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, a = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || a,
|
|
1401
|
+
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, a = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || a, c = r.filter;
|
|
1402
1402
|
if (Fn(n), !f && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && $e && a && a.tagName.toUpperCase() === "SELECT") && (a = ie(a, r.draggable, n, !1), !(a && a.animated) && qe !== a)) {
|
|
1403
|
-
if (Ee = ee(a), xe = ee(a, r.draggable), typeof
|
|
1404
|
-
if (
|
|
1403
|
+
if (Ee = ee(a), xe = ee(a, r.draggable), typeof c == "function") {
|
|
1404
|
+
if (c.call(this, e, a, this)) {
|
|
1405
1405
|
j({
|
|
1406
1406
|
sortable: i,
|
|
1407
1407
|
rootEl: u,
|
|
@@ -1414,7 +1414,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1414
1414
|
}), o && e.cancelable && e.preventDefault();
|
|
1415
1415
|
return;
|
|
1416
1416
|
}
|
|
1417
|
-
} else if (
|
|
1417
|
+
} else if (c && (c = c.split(",").some(function(h) {
|
|
1418
1418
|
if (h = ie(u, h.trim(), n, !1), h)
|
|
1419
1419
|
return j({
|
|
1420
1420
|
sortable: i,
|
|
@@ -1426,7 +1426,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1426
1426
|
}), U("filter", i, {
|
|
1427
1427
|
evt: e
|
|
1428
1428
|
}), !0;
|
|
1429
|
-
}),
|
|
1429
|
+
}), c)) {
|
|
1430
1430
|
o && e.cancelable && e.preventDefault();
|
|
1431
1431
|
return;
|
|
1432
1432
|
}
|
|
@@ -1454,8 +1454,8 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1454
1454
|
name: "choose",
|
|
1455
1455
|
originalEvent: e
|
|
1456
1456
|
}), Z(f, l.chosenClass, !0);
|
|
1457
|
-
}, l.ignore.split(",").forEach(function(
|
|
1458
|
-
ai(f,
|
|
1457
|
+
}, l.ignore.split(",").forEach(function(c) {
|
|
1458
|
+
ai(f, c.trim(), bt);
|
|
1459
1459
|
}), z(s, "dragover", ve), z(s, "mousemove", ve), z(s, "touchmove", ve), z(s, "mouseup", r._onDrop), z(s, "touchend", r._onDrop), z(s, "touchcancel", r._onDrop), Bt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), U("delayStart", this, {
|
|
1460
1460
|
evt: e
|
|
1461
1461
|
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || se))) {
|
|
@@ -1526,23 +1526,23 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1526
1526
|
},
|
|
1527
1527
|
_onTouchMove: function(e) {
|
|
1528
1528
|
if (ge) {
|
|
1529
|
-
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u = Xe && W && Wt(W),
|
|
1529
|
+
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u = Xe && W && Wt(W), c = (o.clientX - ge.clientX + r.x) / (s || 1) + (u ? u[0] - vt[0] : 0) / (s || 1), h = (o.clientY - ge.clientY + r.y) / (a || 1) + (u ? u[1] - vt[1] : 0) / (a || 1);
|
|
1530
1530
|
if (!b.active && !_e) {
|
|
1531
1531
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1532
1532
|
return;
|
|
1533
1533
|
this._onDragStart(e, !0);
|
|
1534
1534
|
}
|
|
1535
1535
|
if (w) {
|
|
1536
|
-
l ? (l.e +=
|
|
1536
|
+
l ? (l.e += c - (mt || 0), l.f += h - (gt || 0)) : l = {
|
|
1537
1537
|
a: 1,
|
|
1538
1538
|
b: 0,
|
|
1539
1539
|
c: 0,
|
|
1540
1540
|
d: 1,
|
|
1541
|
-
e:
|
|
1541
|
+
e: c,
|
|
1542
1542
|
f: h
|
|
1543
1543
|
};
|
|
1544
1544
|
var p = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1545
|
-
v(w, "webkitTransform", p), v(w, "mozTransform", p), v(w, "msTransform", p), v(w, "transform", p), mt =
|
|
1545
|
+
v(w, "webkitTransform", p), v(w, "mozTransform", p), v(w, "msTransform", p), v(w, "transform", p), mt = c, gt = h, te = o;
|
|
1546
1546
|
}
|
|
1547
1547
|
e.cancelable && e.preventDefault();
|
|
1548
1548
|
}
|
|
@@ -1566,7 +1566,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1566
1566
|
this._onDrop();
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
|
-
U("setupClone", this), b.eventCanceled || ($ =
|
|
1569
|
+
U("setupClone", this), b.eventCanceled || ($ = ci(f), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), Z($, this.options.chosenClass, !1), b.clone = $), n.cloneId = Ze(function() {
|
|
1570
1570
|
U("clone", n), !b.eventCanceled && (n.options.removeCloneOnHide || N.insertBefore($, f), n._hideClone(), j({
|
|
1571
1571
|
sortable: n,
|
|
1572
1572
|
name: "clone"
|
|
@@ -1575,12 +1575,12 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1575
1575
|
},
|
|
1576
1576
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1577
1577
|
_onDragOver: function(e) {
|
|
1578
|
-
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active,
|
|
1578
|
+
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active, c = Be === a, h = s.sort, p = Y || u, _, S = this, m = !1;
|
|
1579
1579
|
if (Ot) return;
|
|
1580
1580
|
function I(Te, bi) {
|
|
1581
1581
|
U(Te, S, re({
|
|
1582
1582
|
evt: e,
|
|
1583
|
-
isOwner:
|
|
1583
|
+
isOwner: c,
|
|
1584
1584
|
axis: _ ? "vertical" : "horizontal",
|
|
1585
1585
|
revert: l,
|
|
1586
1586
|
dragRect: r,
|
|
@@ -1588,7 +1588,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1588
1588
|
canSort: h,
|
|
1589
1589
|
fromSortable: p,
|
|
1590
1590
|
target: n,
|
|
1591
|
-
completed:
|
|
1591
|
+
completed: d,
|
|
1592
1592
|
onMove: function(xt, yi) {
|
|
1593
1593
|
return We(N, i, f, r, xt, F(xt), e, yi);
|
|
1594
1594
|
},
|
|
@@ -1598,42 +1598,42 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1598
1598
|
function y() {
|
|
1599
1599
|
I("dragOverAnimationCapture"), S.captureAnimationState(), S !== p && p.captureAnimationState();
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function d(Te) {
|
|
1602
1602
|
return I("dragOverCompleted", {
|
|
1603
1603
|
insertion: Te
|
|
1604
|
-
}), Te && (
|
|
1604
|
+
}), Te && (c ? u._hideClone() : u._showClone(S), S !== p && (Z(f, Y ? Y.options.ghostClass : u.options.ghostClass, !1), Z(f, s.ghostClass, !0)), Y !== S && S !== b.active ? Y = S : S === b.active && Y && (Y = null), p === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
|
|
1605
1605
|
I("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
|
|
1606
1606
|
}), S !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === f && !f.animated || n === i && !n.animated) && (we = null), !s.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[q]._isOutsideThisEl(e.target), !Te && ve(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
1607
1607
|
}
|
|
1608
1608
|
function C() {
|
|
1609
|
-
Q = ee(f),
|
|
1609
|
+
Q = ee(f), de = ee(f, s.draggable), j({
|
|
1610
1610
|
sortable: S,
|
|
1611
1611
|
name: "change",
|
|
1612
1612
|
toEl: i,
|
|
1613
1613
|
newIndex: Q,
|
|
1614
|
-
newDraggableIndex:
|
|
1614
|
+
newDraggableIndex: de,
|
|
1615
1615
|
originalEvent: e
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
1618
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0), I("dragOver"), b.eventCanceled) return m;
|
|
1619
1619
|
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
|
|
1620
|
-
return
|
|
1621
|
-
if (nt = !1, u && !s.disabled && (
|
|
1620
|
+
return d(!1);
|
|
1621
|
+
if (nt = !1, u && !s.disabled && (c ? h || (l = M !== N) : Y === this || (this.lastPutMode = Be.checkPull(this, u, f, e)) && a.checkPut(this, u, f, e))) {
|
|
1622
1622
|
if (_ = this._getDirection(e, n) === "vertical", r = F(f), I("dragOverValid"), b.eventCanceled) return m;
|
|
1623
1623
|
if (l)
|
|
1624
|
-
return M = N, y(), this._hideClone(), I("revert"), b.eventCanceled || (be ? N.insertBefore(f, be) : N.appendChild(f)),
|
|
1624
|
+
return M = N, y(), this._hideClone(), I("revert"), b.eventCanceled || (be ? N.insertBefore(f, be) : N.appendChild(f)), d(!0);
|
|
1625
1625
|
var g = Pt(i, s.draggable);
|
|
1626
1626
|
if (!g || Mn(e, _, this) && !g.animated) {
|
|
1627
1627
|
if (g === f)
|
|
1628
|
-
return
|
|
1628
|
+
return d(!1);
|
|
1629
1629
|
if (g && i === e.target && (n = g), n && (o = F(n)), We(N, i, f, r, n, o, e, !!n) !== !1)
|
|
1630
|
-
return y(), g && g.nextSibling ? i.insertBefore(f, g.nextSibling) : i.appendChild(f), M = i, C(),
|
|
1630
|
+
return y(), g && g.nextSibling ? i.insertBefore(f, g.nextSibling) : i.appendChild(f), M = i, C(), d(!0);
|
|
1631
1631
|
} else if (g && $n(e, _, this)) {
|
|
1632
1632
|
var E = Ie(i, 0, s, !0);
|
|
1633
1633
|
if (E === f)
|
|
1634
|
-
return
|
|
1634
|
+
return d(!1);
|
|
1635
1635
|
if (n = E, o = F(n), We(N, i, f, r, n, o, e, !1) !== !1)
|
|
1636
|
-
return y(), i.insertBefore(f, E), M = i, C(),
|
|
1636
|
+
return y(), i.insertBefore(f, E), M = i, C(), d(!0);
|
|
1637
1637
|
} else if (n.parentNode === i) {
|
|
1638
1638
|
o = F(n);
|
|
1639
1639
|
var L = 0, H, G = f.parentNode !== i, B = !zn(f.animated && f.toRect || r, n.animated && n.toRect || o, _), T = _ ? "top" : "left", x = Xt(n, "top", "top") || Xt(f, "top", "top"), P = x ? x.scrollTop : void 0;
|
|
@@ -1646,16 +1646,16 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1646
1646
|
while (A && (v(A, "display") === "none" || A === w));
|
|
1647
1647
|
}
|
|
1648
1648
|
if (L === 0 || A === n)
|
|
1649
|
-
return
|
|
1649
|
+
return d(!1);
|
|
1650
1650
|
we = n, Ve = L;
|
|
1651
1651
|
var ue = n.nextElementSibling, V = !1;
|
|
1652
1652
|
V = L === 1;
|
|
1653
1653
|
var me = We(N, i, f, r, n, o, e, V);
|
|
1654
1654
|
if (me !== !1)
|
|
1655
|
-
return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Pn, 30), y(), V && !ue ? i.appendChild(f) : n.parentNode.insertBefore(f, V ? ue : n), x && ui(x, 0, P - x.scrollTop), M = f.parentNode, H !== void 0 && !Ye && (Je = Math.abs(H - F(n)[T])), C(),
|
|
1655
|
+
return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Pn, 30), y(), V && !ue ? i.appendChild(f) : n.parentNode.insertBefore(f, V ? ue : n), x && ui(x, 0, P - x.scrollTop), M = f.parentNode, H !== void 0 && !Ye && (Je = Math.abs(H - F(n)[T])), C(), d(!0);
|
|
1656
1656
|
}
|
|
1657
1657
|
if (i.contains(f))
|
|
1658
|
-
return
|
|
1658
|
+
return d(!1);
|
|
1659
1659
|
}
|
|
1660
1660
|
return !1;
|
|
1661
1661
|
},
|
|
@@ -1669,9 +1669,9 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1669
1669
|
},
|
|
1670
1670
|
_onDrop: function(e) {
|
|
1671
1671
|
var i = this.el, n = this.options;
|
|
1672
|
-
if (Q = ee(f),
|
|
1672
|
+
if (Q = ee(f), de = ee(f, n.draggable), U("drop", this, {
|
|
1673
1673
|
evt: e
|
|
1674
|
-
}), M = f && f.parentNode, Q = ee(f),
|
|
1674
|
+
}), M = f && f.parentNode, Q = ee(f), de = ee(f, n.draggable), b.eventCanceled) {
|
|
1675
1675
|
this._nulling();
|
|
1676
1676
|
return;
|
|
1677
1677
|
}
|
|
@@ -1714,7 +1714,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1714
1714
|
name: "sort",
|
|
1715
1715
|
toEl: M,
|
|
1716
1716
|
originalEvent: e
|
|
1717
|
-
})), b.active && ((Q == null || Q === -1) && (Q = Ee,
|
|
1717
|
+
})), b.active && ((Q == null || Q === -1) && (Q = Ee, de = xe), j({
|
|
1718
1718
|
sortable: this,
|
|
1719
1719
|
name: "end",
|
|
1720
1720
|
toEl: M,
|
|
@@ -1722,7 +1722,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1722
1722
|
}), this.save()))), this._nulling();
|
|
1723
1723
|
},
|
|
1724
1724
|
_nulling: function() {
|
|
1725
|
-
U("nulling", this), N = f = M = w = be = $ = qe = fe = ge = te = ze = Q =
|
|
1725
|
+
U("nulling", this), N = f = M = w = be = $ = qe = fe = ge = te = ze = Q = de = Ee = xe = we = Ve = Y = Be = b.dragged = b.ghost = b.clone = b.active = null, ot.forEach(function(e) {
|
|
1726
1726
|
e.checked = !0;
|
|
1727
1727
|
}), ot.length = mt = gt = 0;
|
|
1728
1728
|
},
|
|
@@ -1823,11 +1823,11 @@ function Nn(t) {
|
|
|
1823
1823
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1824
1824
|
}
|
|
1825
1825
|
function We(t, e, i, n, r, o, l, s) {
|
|
1826
|
-
var a, u = t[q],
|
|
1826
|
+
var a, u = t[q], c = u.options.onMove, h;
|
|
1827
1827
|
return window.CustomEvent && !se && !Fe ? a = new CustomEvent("move", {
|
|
1828
1828
|
bubbles: !0,
|
|
1829
1829
|
cancelable: !0
|
|
1830
|
-
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o || F(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a),
|
|
1830
|
+
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o || F(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a), c && (h = c.call(u, a, l)), h;
|
|
1831
1831
|
}
|
|
1832
1832
|
function bt(t) {
|
|
1833
1833
|
t.draggable = !1;
|
|
@@ -1836,25 +1836,25 @@ function Pn() {
|
|
|
1836
1836
|
Ot = !1;
|
|
1837
1837
|
}
|
|
1838
1838
|
function $n(t, e, i) {
|
|
1839
|
-
var n = F(Ie(i.el, 0, i.options, !0)), r =
|
|
1839
|
+
var n = F(Ie(i.el, 0, i.options, !0)), r = di(i.el, i.options, w), o = 10;
|
|
1840
1840
|
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;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Mn(t, e, i) {
|
|
1843
|
-
var n = F(Pt(i.el, i.options.draggable)), r =
|
|
1843
|
+
var n = F(Pt(i.el, i.options.draggable)), r = di(i.el, i.options, w), o = 10;
|
|
1844
1844
|
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;
|
|
1845
1845
|
}
|
|
1846
1846
|
function xn(t, e, i, n, r, o, l, s) {
|
|
1847
|
-
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width,
|
|
1847
|
+
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, c = n ? i.top : i.left, h = n ? i.bottom : i.right, p = !1;
|
|
1848
1848
|
if (!l) {
|
|
1849
1849
|
if (s && Je < u * r) {
|
|
1850
|
-
if (!Re && (Ve === 1 ? a >
|
|
1850
|
+
if (!Re && (Ve === 1 ? a > c + u * o / 2 : a < h - u * o / 2) && (Re = !0), Re)
|
|
1851
1851
|
p = !0;
|
|
1852
|
-
else if (Ve === 1 ? a <
|
|
1852
|
+
else if (Ve === 1 ? a < c + Je : a > h - Je)
|
|
1853
1853
|
return -Ve;
|
|
1854
|
-
} else if (a >
|
|
1854
|
+
} else if (a > c + u * (1 - r) / 2 && a < h - u * (1 - r) / 2)
|
|
1855
1855
|
return Vn(e);
|
|
1856
1856
|
}
|
|
1857
|
-
return p = p || l, p && (a <
|
|
1857
|
+
return p = p || l, p && (a < c + u * o / 2 || a > h - u * o / 2) ? a > c + u / 2 ? 1 : -1 : 0;
|
|
1858
1858
|
}
|
|
1859
1859
|
function Vn(t) {
|
|
1860
1860
|
return ee(f) < ee(t) ? 1 : -1;
|
|
@@ -1892,7 +1892,7 @@ b.utils = {
|
|
|
1892
1892
|
throttle: si,
|
|
1893
1893
|
closest: ie,
|
|
1894
1894
|
toggleClass: Z,
|
|
1895
|
-
clone:
|
|
1895
|
+
clone: ci,
|
|
1896
1896
|
index: ee,
|
|
1897
1897
|
nextTick: Ze,
|
|
1898
1898
|
cancelNextTick: zt,
|
|
@@ -1979,20 +1979,20 @@ function Ut() {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
var St = si(function(t, e, i, n) {
|
|
1981
1981
|
if (e.scroll) {
|
|
1982
|
-
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, s = e.scrollSpeed, a = ne(), u = !1,
|
|
1983
|
-
At !== i && (At = i, Qe(), Ae = e.scroll,
|
|
1982
|
+
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, s = e.scrollSpeed, a = ne(), u = !1, c;
|
|
1983
|
+
At !== i && (At = i, Qe(), Ae = e.scroll, c = e.scrollFn, Ae === !0 && (Ae = pe(i, !0)));
|
|
1984
1984
|
var h = 0, p = Ae;
|
|
1985
1985
|
do {
|
|
1986
|
-
var _ = p, S = F(_), m = S.top, I = S.bottom, y = S.left,
|
|
1986
|
+
var _ = p, S = F(_), m = S.top, I = S.bottom, y = S.left, d = S.right, C = S.width, g = S.height, E = void 0, L = void 0, H = _.scrollWidth, G = _.scrollHeight, B = v(_), T = _.scrollLeft, x = _.scrollTop;
|
|
1987
1987
|
_ === a ? (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1988
|
-
var P = E && (Math.abs(
|
|
1988
|
+
var P = E && (Math.abs(d - r) <= l && T + C < H) - (Math.abs(y - r) <= l && !!T), A = L && (Math.abs(I - o) <= l && x + g < G) - (Math.abs(m - o) <= l && !!x);
|
|
1989
1989
|
if (!R[h])
|
|
1990
1990
|
for (var J = 0; J <= h; J++)
|
|
1991
1991
|
R[J] || (R[J] = {});
|
|
1992
1992
|
(R[h].vx != P || R[h].vy != A || R[h].el !== _) && (R[h].el = _, R[h].vx = P, R[h].vy = A, clearInterval(R[h].pid), (P != 0 || A != 0) && (u = !0, R[h].pid = setInterval((function() {
|
|
1993
1993
|
n && this.layer === 0 && b.active._onTouchMove(lt);
|
|
1994
1994
|
var ue = R[this.layer].vy ? R[this.layer].vy * s : 0, V = R[this.layer].vx ? R[this.layer].vx * s : 0;
|
|
1995
|
-
typeof
|
|
1995
|
+
typeof c == "function" && c.call(b.dragged.parentNode[q], V, ue, t, lt, R[this.layer].el) !== "continue" || ui(R[this.layer].el, V, ue);
|
|
1996
1996
|
}).bind({
|
|
1997
1997
|
layer: h
|
|
1998
1998
|
}), 24))), h++;
|
|
@@ -2004,7 +2004,7 @@ var St = si(function(t, e, i, n) {
|
|
|
2004
2004
|
if (i) {
|
|
2005
2005
|
var u = n || o;
|
|
2006
2006
|
s();
|
|
2007
|
-
var
|
|
2007
|
+
var c = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, h = document.elementFromPoint(c.clientX, c.clientY);
|
|
2008
2008
|
a(), u && !u.el.contains(h) && (l("spill"), this.onSpill({
|
|
2009
2009
|
dragEl: r,
|
|
2010
2010
|
putSortable: n
|
|
@@ -2057,7 +2057,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2057
2057
|
{
|
|
2058
2058
|
immediate: !0
|
|
2059
2059
|
}
|
|
2060
|
-
), Rt(n, (u,
|
|
2060
|
+
), Rt(n, (u, c) => {
|
|
2061
2061
|
et(() => {
|
|
2062
2062
|
r.value ? s() : a();
|
|
2063
2063
|
});
|
|
@@ -2070,11 +2070,11 @@ const Ln = (t, e, i, n) => {
|
|
|
2070
2070
|
animation: 300,
|
|
2071
2071
|
//过渡动画时间
|
|
2072
2072
|
//拖拽结束时事件
|
|
2073
|
-
onEnd: (
|
|
2073
|
+
onEnd: (c) => {
|
|
2074
2074
|
const h = JSON.parse(JSON.stringify(n.value)), p = JSON.parse(JSON.stringify(n.value));
|
|
2075
|
-
p.splice(
|
|
2076
|
-
const _ = h[
|
|
2077
|
-
p.splice(
|
|
2075
|
+
p.splice(c.oldIndex, 1)[0];
|
|
2076
|
+
const _ = h[c.oldIndex];
|
|
2077
|
+
p.splice(c.newIndex, 0, _), e("update:modelValue", p), l.value = Date.now(), e("sortEnd", h, p, c.oldIndex, c.newIndex);
|
|
2078
2078
|
}
|
|
2079
2079
|
});
|
|
2080
2080
|
}, a = () => {
|
|
@@ -2110,14 +2110,14 @@ const Ln = (t, e, i, n) => {
|
|
|
2110
2110
|
},
|
|
2111
2111
|
emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2112
2112
|
setup(t, { expose: e, emit: i }) {
|
|
2113
|
-
xi((
|
|
2114
|
-
"
|
|
2113
|
+
xi((d) => ({
|
|
2114
|
+
"24c7fbc6": o.value
|
|
2115
2115
|
}));
|
|
2116
2116
|
const n = t, r = i, o = Pe(() => n.itemHeight + "px"), l = Pe(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
|
|
2117
2117
|
selectListRef: s,
|
|
2118
2118
|
$list: a,
|
|
2119
2119
|
disabledFlag: u,
|
|
2120
|
-
itemGroups:
|
|
2120
|
+
itemGroups: c,
|
|
2121
2121
|
selectedLabel: h,
|
|
2122
2122
|
itemRemove: p,
|
|
2123
2123
|
removeAll: _,
|
|
@@ -2125,7 +2125,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2125
2125
|
selectItem: m,
|
|
2126
2126
|
infiniteLoad: I
|
|
2127
2127
|
} = mn(n, r);
|
|
2128
|
-
Ln(n, r, a,
|
|
2128
|
+
Ln(n, r, a, c);
|
|
2129
2129
|
const y = Ne(!0);
|
|
2130
2130
|
return Jt(() => {
|
|
2131
2131
|
y.value = !1, setTimeout(() => {
|
|
@@ -2133,7 +2133,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2133
2133
|
}, 300);
|
|
2134
2134
|
}), e({
|
|
2135
2135
|
infiniteLoad: I
|
|
2136
|
-
}), (
|
|
2136
|
+
}), (d, C) => {
|
|
2137
2137
|
const g = Ei;
|
|
2138
2138
|
return k(), X(
|
|
2139
2139
|
"div",
|
|
@@ -2141,11 +2141,11 @@ const Ln = (t, e, i, n) => {
|
|
|
2141
2141
|
ref_key: "selectListRef",
|
|
2142
2142
|
ref: s,
|
|
2143
2143
|
class: "das-ui-select-list",
|
|
2144
|
-
style: qt({ width:
|
|
2144
|
+
style: qt({ width: d.width, height: d.height, ...d.customStyle })
|
|
2145
2145
|
},
|
|
2146
2146
|
[
|
|
2147
|
-
he(
|
|
2148
|
-
|
|
2147
|
+
he(d.$slots, "header", {}, () => [
|
|
2148
|
+
d.hideHeader ? K("v-if", !0) : (k(), X("div", Bn, [
|
|
2149
2149
|
Ce(
|
|
2150
2150
|
"div",
|
|
2151
2151
|
Yn,
|
|
@@ -2153,12 +2153,12 @@ const Ln = (t, e, i, n) => {
|
|
|
2153
2153
|
1
|
|
2154
2154
|
/* TEXT */
|
|
2155
2155
|
),
|
|
2156
|
-
!
|
|
2156
|
+
!d.isView && d.clearable ? (k(), oe(D(Vi), {
|
|
2157
2157
|
key: 0,
|
|
2158
2158
|
"btn-type": "primary-text",
|
|
2159
2159
|
block: "",
|
|
2160
2160
|
onClick: D(_),
|
|
2161
|
-
disabled: !D(
|
|
2161
|
+
disabled: !D(c) || !D(c).length
|
|
2162
2162
|
}, {
|
|
2163
2163
|
default: tt(() => [
|
|
2164
2164
|
Le(
|
|
@@ -2173,48 +2173,48 @@ const Ln = (t, e, i, n) => {
|
|
|
2173
2173
|
]))
|
|
2174
2174
|
], !0),
|
|
2175
2175
|
K(" 普通 "),
|
|
2176
|
-
!
|
|
2176
|
+
!d.infiniteScroll && !l.value ? Se((k(), X(
|
|
2177
2177
|
"div",
|
|
2178
2178
|
{
|
|
2179
2179
|
key: 0,
|
|
2180
2180
|
ref_key: "$list",
|
|
2181
2181
|
ref: a,
|
|
2182
|
-
class:
|
|
2182
|
+
class: ce(["selected-container", { "hide-header": d.hideHeader }])
|
|
2183
2183
|
},
|
|
2184
2184
|
[
|
|
2185
2185
|
(k(!0), X(
|
|
2186
2186
|
_t,
|
|
2187
2187
|
null,
|
|
2188
|
-
Et(D(
|
|
2189
|
-
class:
|
|
2188
|
+
Et(D(c), (E, L) => (k(), X("div", {
|
|
2189
|
+
class: ce({
|
|
2190
2190
|
"selected-item": !0,
|
|
2191
|
-
disabled: !
|
|
2192
|
-
enable: !
|
|
2193
|
-
active: D(S) === E[
|
|
2191
|
+
disabled: !d.isView && D(u)(E),
|
|
2192
|
+
enable: !d.isView && !D(u)(E),
|
|
2193
|
+
active: D(S) === E[d.valueKey]
|
|
2194
2194
|
}),
|
|
2195
|
-
key: E[
|
|
2195
|
+
key: E[d.valueKey] + L,
|
|
2196
2196
|
onClick: (H) => D(m)(E)
|
|
2197
2197
|
}, [
|
|
2198
|
-
|
|
2198
|
+
d.dragSort ? (k(), oe(D(Fi), {
|
|
2199
2199
|
key: 0,
|
|
2200
2200
|
class: "drag-icon",
|
|
2201
2201
|
size: "medium",
|
|
2202
2202
|
style: { "margin-right": "8px" }
|
|
2203
2203
|
})) : K("v-if", !0),
|
|
2204
2204
|
Ce("div", Wn, [
|
|
2205
|
-
he(
|
|
2205
|
+
he(d.$slots, "default", { item: E }, () => [
|
|
2206
2206
|
Se((k(), X("div", null, [
|
|
2207
2207
|
Le(
|
|
2208
|
-
Oe(E[
|
|
2208
|
+
Oe(E[d.labelKey]),
|
|
2209
2209
|
1
|
|
2210
2210
|
/* TEXT */
|
|
2211
2211
|
)
|
|
2212
2212
|
])), [
|
|
2213
|
-
[D(
|
|
2213
|
+
[D(ct)]
|
|
2214
2214
|
])
|
|
2215
2215
|
], !0)
|
|
2216
2216
|
]),
|
|
2217
|
-
!
|
|
2217
|
+
!d.isView && d.closeable ? (k(), oe(D(dt), {
|
|
2218
2218
|
key: 1,
|
|
2219
2219
|
size: "small",
|
|
2220
2220
|
class: "close-icon",
|
|
@@ -2232,47 +2232,47 @@ const Ln = (t, e, i, n) => {
|
|
|
2232
2232
|
[D(Ri), { usePrevOverlay: !0 }]
|
|
2233
2233
|
]) : K("v-if", !0),
|
|
2234
2234
|
K(" 虚拟滚动 "),
|
|
2235
|
-
!
|
|
2235
|
+
!d.dragSort && l.value ? (k(), X(
|
|
2236
2236
|
"div",
|
|
2237
2237
|
{
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
ref_key: "$list",
|
|
2240
2240
|
ref: a,
|
|
2241
|
-
class:
|
|
2241
|
+
class: ce(["selected-container", { "hide-header": d.hideHeader }])
|
|
2242
2242
|
},
|
|
2243
2243
|
[
|
|
2244
|
-
y.value && D(
|
|
2245
|
-
key: D(
|
|
2246
|
-
items: D(
|
|
2247
|
-
"item-size":
|
|
2248
|
-
"key-field":
|
|
2244
|
+
y.value && D(c).length > 0 ? (k(), oe(D(Nt), {
|
|
2245
|
+
key: D(c).length,
|
|
2246
|
+
items: D(c),
|
|
2247
|
+
"item-size": d.itemHeight,
|
|
2248
|
+
"key-field": d.valueKey,
|
|
2249
2249
|
class: "virtual-list"
|
|
2250
2250
|
}, {
|
|
2251
2251
|
default: tt(({ item: E, index: L }) => [
|
|
2252
2252
|
(k(), X("div", {
|
|
2253
|
-
class:
|
|
2253
|
+
class: ce({
|
|
2254
2254
|
"selected-item": !0,
|
|
2255
|
-
disabled: !
|
|
2256
|
-
enable: !
|
|
2257
|
-
active: D(S) === E[
|
|
2255
|
+
disabled: !d.isView && D(u)(E),
|
|
2256
|
+
enable: !d.isView && !D(u)(E),
|
|
2257
|
+
active: D(S) === E[d.valueKey]
|
|
2258
2258
|
}),
|
|
2259
|
-
key: E[
|
|
2259
|
+
key: E[d.valueKey],
|
|
2260
2260
|
onClick: (H) => D(m)(E)
|
|
2261
2261
|
}, [
|
|
2262
2262
|
Ce("div", Kn, [
|
|
2263
|
-
he(
|
|
2263
|
+
he(d.$slots, "default", { item: E }, () => [
|
|
2264
2264
|
Se((k(), X("div", null, [
|
|
2265
2265
|
Le(
|
|
2266
|
-
Oe(E[
|
|
2266
|
+
Oe(E[d.labelKey]),
|
|
2267
2267
|
1
|
|
2268
2268
|
/* TEXT */
|
|
2269
2269
|
)
|
|
2270
2270
|
])), [
|
|
2271
|
-
[D(
|
|
2271
|
+
[D(ct)]
|
|
2272
2272
|
])
|
|
2273
2273
|
], !0)
|
|
2274
2274
|
]),
|
|
2275
|
-
!
|
|
2275
|
+
!d.isView && d.closeable ? (k(), oe(D(dt), {
|
|
2276
2276
|
key: 0,
|
|
2277
2277
|
size: "small",
|
|
2278
2278
|
class: "close-icon",
|
|
@@ -2289,42 +2289,42 @@ const Ln = (t, e, i, n) => {
|
|
|
2289
2289
|
/* CLASS */
|
|
2290
2290
|
)) : K("v-if", !0),
|
|
2291
2291
|
K(" 分页加载 "),
|
|
2292
|
-
!
|
|
2292
|
+
!d.dragSort && d.infiniteScroll ? Se((k(), X("div", {
|
|
2293
2293
|
key: 2,
|
|
2294
2294
|
ref_key: "$list",
|
|
2295
2295
|
ref: a,
|
|
2296
|
-
class:
|
|
2297
|
-
"infinite-scroll-disabled":
|
|
2296
|
+
class: ce(["selected-container selected-page-container", { "hide-header": d.hideHeader }]),
|
|
2297
|
+
"infinite-scroll-disabled": d.infiniteDisabled,
|
|
2298
2298
|
style: { overflow: "overlay" }
|
|
2299
2299
|
}, [
|
|
2300
2300
|
Ce("div", Un, [
|
|
2301
2301
|
(k(!0), X(
|
|
2302
2302
|
_t,
|
|
2303
2303
|
null,
|
|
2304
|
-
Et(D(
|
|
2305
|
-
class:
|
|
2304
|
+
Et(D(c), (E) => (k(), X("div", {
|
|
2305
|
+
class: ce({
|
|
2306
2306
|
"selected-item": !0,
|
|
2307
|
-
disabled: !
|
|
2308
|
-
enable: !
|
|
2309
|
-
active: D(S) === E[
|
|
2307
|
+
disabled: !d.isView && D(u)(E),
|
|
2308
|
+
enable: !d.isView && !D(u)(E),
|
|
2309
|
+
active: D(S) === E[d.valueKey]
|
|
2310
2310
|
}),
|
|
2311
|
-
key: E[
|
|
2311
|
+
key: E[d.valueKey],
|
|
2312
2312
|
onClick: (L) => D(m)(E)
|
|
2313
2313
|
}, [
|
|
2314
2314
|
Ce("div", Jn, [
|
|
2315
|
-
he(
|
|
2315
|
+
he(d.$slots, "default", { item: E }, () => [
|
|
2316
2316
|
Se((k(), X("div", null, [
|
|
2317
2317
|
Le(
|
|
2318
|
-
Oe(E[
|
|
2318
|
+
Oe(E[d.labelKey]),
|
|
2319
2319
|
1
|
|
2320
2320
|
/* TEXT */
|
|
2321
2321
|
)
|
|
2322
2322
|
])), [
|
|
2323
|
-
[D(
|
|
2323
|
+
[D(ct)]
|
|
2324
2324
|
])
|
|
2325
2325
|
], !0)
|
|
2326
2326
|
]),
|
|
2327
|
-
!
|
|
2327
|
+
!d.isView && d.closeable ? (k(), oe(D(dt), {
|
|
2328
2328
|
key: 0,
|
|
2329
2329
|
size: "small",
|
|
2330
2330
|
class: "close-icon",
|
|
@@ -2350,14 +2350,16 @@ const Ln = (t, e, i, n) => {
|
|
|
2350
2350
|
for (const [n, r] of e)
|
|
2351
2351
|
i[n] = r;
|
|
2352
2352
|
return i;
|
|
2353
|
-
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-
|
|
2353
|
+
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-59299368"]]), tr = {
|
|
2354
2354
|
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
|
|
2355
2355
|
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
2356
2356
|
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
|
|
2357
2357
|
"das-select-list-parentheses-right": { "zh-CN": ")", en: ")", _appCode: "framework" }
|
|
2358
2358
|
}, ir = {
|
|
2359
2359
|
"--das-ui-select-list-hover-bg": { light: "#F2F2F2" },
|
|
2360
|
-
"--das-ui-select-list-close-btn-hover": { light: "#5582F3" }
|
|
2360
|
+
"--das-ui-select-list-close-btn-hover": { light: "#5582F3" },
|
|
2361
|
+
"--das-ui-select-list-active-bg-color": "#E3EBFF",
|
|
2362
|
+
"--das-ui-select-list-active-font-color": "#5582F3"
|
|
2361
2363
|
}, wr = wi(er);
|
|
2362
2364
|
Si(tr);
|
|
2363
2365
|
_i(ir);
|