@das-fed/upf-ui 6.4.0-dev.165 → 6.4.0-dev.167
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/index.d.ts +7 -0
- package/index.js +18 -0
- package/package.json +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +60 -0
- package/packages/business-components/ai-panel/{index-CViVnNHG.js → index-Bg_src1J.js} +440 -432
- package/packages/business-components/ai-panel/index-Bg_src1J.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-14NcMHNj.js → index-CoN6WqdZ.js} +1 -1
- package/packages/business-components/ai-panel/index-CoN6WqdZ.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
- package/packages/business-components/area-phone-select/index.js +17 -17
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +18 -18
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +9 -7
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +244 -0
- package/packages/business-components/device-panel/index.js +3506 -3482
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +83 -81
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +29 -0
- package/packages/business-components/import-button/index.js +237 -233
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +166 -166
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +13 -0
- package/packages/business-components/payment/index.js +55 -55
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
- package/packages/business-components/process-configuration/index.js +148 -146
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +84 -0
- package/packages/business-components/process-form/index.js +472 -463
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +9 -0
- package/packages/business-components/process-log/index.js +69 -69
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +125 -125
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +99 -99
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +9 -8
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
- package/packages/business-components/urgent-panel/index.js +951 -943
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
- package/packages/business-components/user-org-dialog/index.js +180 -179
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +175 -175
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +163 -163
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +15 -15
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +10 -10
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +10 -10
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -0
- package/packages/components/date-picker/index.js +127 -127
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +46 -46
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +10 -9
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +12 -12
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +7 -0
- package/packages/components/image-upload/index.js +47 -43
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +27 -27
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
- package/packages/components/input-dialog-select/index.js +23 -23
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +2 -1
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +20 -20
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +6 -0
- package/packages/components/map/index.js +159 -155
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +34 -34
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +7 -7
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +42 -42
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +20 -20
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +4 -4
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +1596 -1592
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +7 -0
- package/packages/components/search-form/index.js +117 -117
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +4 -0
- package/packages/components/select/index.js +93 -92
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +110 -110
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +60 -60
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +41 -41
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +14 -14
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +20 -0
- package/packages/components/table/index.js +546 -544
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +42 -42
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +15 -15
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +9 -0
- package/packages/components/tree/index.js +310 -309
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +8 -0
- package/packages/components/tree-v2/index.js +9 -8
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +6 -0
- package/packages/components/upload/index.js +57 -56
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +12 -12
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/web-front-end/i18n/dasui_en-US.js +482 -478
- package/web-front-end/i18n/dasui_zh-CN.js +2 -2
- package/web-front-end/i18n/dasui_zh-MO.js +757 -0
- package/packages/business-components/ai-panel/index-14NcMHNj.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CViVnNHG.js.gz +0 -0
|
@@ -5,7 +5,7 @@ import { getVar as ut, setThemeRule as _i } from "@das-fed/upf-web/packages/them
|
|
|
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, withScopeId as Ti, createBlock as le, openBlock as k, markRaw as
|
|
8
|
+
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, withScopeId as Ti, createBlock as le, openBlock as k, markRaw as Oi, shallowReactive as Ci, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as W, normalizeClass as oe, createCommentVNode as Q, createVNode as ki, renderSlot as he, resolveDynamicComponent as Rt, normalizeStyle as Jt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as Pi, toHandlers as Ni, ref as Pe, computed as Ne, onMounted as Zt, onBeforeUnmount as $i, watch as Ft, defineComponent as Mi, useCssVars as xi, createElementVNode as Oe, toDisplayString as Ce, unref as w, createTextVNode as Le } from "vue";
|
|
9
9
|
import { vDasTooltip as dt } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasButton as Vi } from "@das-fed/upf-ui/packages/components/button/index";
|
|
11
11
|
import { vOverlay as Ri } from "@das-fed/upf-ui/packages/components/overlay/index";
|
|
@@ -301,13 +301,13 @@ var sn = {
|
|
|
301
301
|
function un() {
|
|
302
302
|
return this.items.length && Tt(this.items[0]) !== "object";
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var Ot = !1;
|
|
305
305
|
if (typeof window < "u") {
|
|
306
|
-
|
|
306
|
+
Ot = !1;
|
|
307
307
|
try {
|
|
308
308
|
var dn = Object.defineProperty({}, "passive", {
|
|
309
309
|
get: function() {
|
|
310
|
-
|
|
310
|
+
Ot = !0;
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
window.addEventListener("test", null, dn);
|
|
@@ -466,13 +466,13 @@ var Pt = {
|
|
|
466
466
|
},
|
|
467
467
|
methods: {
|
|
468
468
|
addView(t, e, i, n, r) {
|
|
469
|
-
const o =
|
|
469
|
+
const o = Oi({
|
|
470
470
|
id: cn++,
|
|
471
471
|
index: e,
|
|
472
472
|
used: !0,
|
|
473
473
|
key: n,
|
|
474
474
|
type: r
|
|
475
|
-
}), l =
|
|
475
|
+
}), l = Ci({
|
|
476
476
|
item: i,
|
|
477
477
|
position: 0,
|
|
478
478
|
nr: o
|
|
@@ -507,16 +507,16 @@ var Pt = {
|
|
|
507
507
|
},
|
|
508
508
|
updateVisibleItems(t, e = !1) {
|
|
509
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, _ = this.itemIndexByKey;
|
|
510
|
-
let g, D, V,
|
|
510
|
+
let g, D, V, C, p;
|
|
511
511
|
if (!u)
|
|
512
|
-
g = D =
|
|
512
|
+
g = D = C = p = V = 0;
|
|
513
513
|
else if (this.$_prerender)
|
|
514
|
-
g =
|
|
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
|
};
|
|
@@ -526,30 +526,30 @@ var Pt = {
|
|
|
526
526
|
I.start -= R, I.end += R;
|
|
527
527
|
let N = 0;
|
|
528
528
|
if (this.$refs.before && (N = this.$refs.before.scrollHeight, I.start -= N), this.$refs.after) {
|
|
529
|
-
const
|
|
530
|
-
I.end +=
|
|
529
|
+
const A = this.$refs.after.scrollHeight;
|
|
530
|
+
I.end += A;
|
|
531
531
|
}
|
|
532
532
|
if (i === null) {
|
|
533
|
-
let
|
|
533
|
+
let A, q = 0, de = u - 1, F = ~~(u / 2), me;
|
|
534
534
|
do
|
|
535
|
-
me = F,
|
|
535
|
+
me = F, A = c[F].accumulator, A < I.start ? q = F : F < u - 1 && c[F + 1].accumulator > I.start && (de = F), F = ~~((q + de) / 2);
|
|
536
536
|
while (F !== me);
|
|
537
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)),
|
|
539
|
-
for (p =
|
|
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
546
|
D - g > rn.itemsLimit && this.itemsLimitError(), this.totalSize = V;
|
|
547
547
|
let d;
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
548
|
+
const z = g <= this.$_endIndex && D >= this.$_startIndex;
|
|
549
|
+
if (z)
|
|
550
550
|
for (let I = 0, R = E.length; I < R; I++)
|
|
551
551
|
d = E[I], d.nr.used && (t && (d.nr.index = _[d.item[a]]), (d.nr.index == null || d.nr.index < g || d.nr.index >= D) && this.unuseView(d));
|
|
552
|
-
const Y =
|
|
552
|
+
const Y = z ? null : /* @__PURE__ */ new Map();
|
|
553
553
|
let v, B, M;
|
|
554
554
|
for (let I = g; I < D; I++) {
|
|
555
555
|
v = s[I];
|
|
@@ -561,17 +561,17 @@ var Pt = {
|
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
563
|
B = v[l];
|
|
564
|
-
let N = m.get(B),
|
|
564
|
+
let N = m.get(B), A = !1;
|
|
565
565
|
if (!d)
|
|
566
|
-
|
|
567
|
-
else if (!d.nr.used && (d.nr.used = !0,
|
|
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
568
|
const q = N.indexOf(d);
|
|
569
569
|
q !== -1 && N.splice(q, 1);
|
|
570
570
|
}
|
|
571
|
-
d.item = v,
|
|
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 = D, this.emitUpdate && this.$emit("update", g, D,
|
|
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() {
|
|
@@ -601,7 +601,7 @@ var Pt = {
|
|
|
601
601
|
this.pageMode ? this.addListeners() : this.removeListeners();
|
|
602
602
|
},
|
|
603
603
|
addListeners() {
|
|
604
|
-
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll,
|
|
604
|
+
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, Ot ? {
|
|
605
605
|
passive: !0
|
|
606
606
|
} : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
|
|
607
607
|
},
|
|
@@ -642,7 +642,7 @@ const fn = {
|
|
|
642
642
|
class: "vue-recycle-scroller__slot"
|
|
643
643
|
};
|
|
644
644
|
function pn(t, e, i, n, r, o) {
|
|
645
|
-
const l =
|
|
645
|
+
const l = zi("ResizeObserver"), a = Ai("observe-visibility");
|
|
646
646
|
return Se((k(), W(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
@@ -753,10 +753,10 @@ const mn = (t, e) => {
|
|
|
753
753
|
}), m = (p) => {
|
|
754
754
|
t.isView || s(p) || (f.value = p[o], e("select-item", p));
|
|
755
755
|
}, E = (p) => {
|
|
756
|
-
const d = r.value.filter((
|
|
756
|
+
const d = r.value.filter((z) => z[o] !== p[o]);
|
|
757
757
|
e("item-remove", p), e("update:modelValue", d);
|
|
758
758
|
}, _ = () => {
|
|
759
|
-
const p = r.value.filter((
|
|
759
|
+
const p = r.value.filter((z) => !s(z)), d = r.value.filter((z) => s(z));
|
|
760
760
|
e("remove-all", p), e("update:modelValue", d);
|
|
761
761
|
}, g = () => {
|
|
762
762
|
t.infiniteScroll && t.infiniteScroll().then((p) => {
|
|
@@ -765,27 +765,27 @@ const mn = (t, e) => {
|
|
|
765
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
773
|
let D = 0;
|
|
774
774
|
const V = (p) => {
|
|
775
|
-
var
|
|
776
|
-
const d = ((
|
|
775
|
+
var z;
|
|
776
|
+
const d = ((z = n.value) == null ? void 0 : z.offsetHeight) || 0;
|
|
777
777
|
D !== 0 && p === 0 && g(), D = p, p !== 0 && p - d < 10 && g();
|
|
778
|
-
},
|
|
778
|
+
}, C = Pe();
|
|
779
779
|
return Zt(() => {
|
|
780
780
|
var d;
|
|
781
781
|
if (t.infiniteDisabled) return;
|
|
782
782
|
const p = (d = n.value) == null ? void 0 : d.querySelector(".selected-group");
|
|
783
|
-
|
|
784
|
-
V(
|
|
783
|
+
C.value = Hi((z) => {
|
|
784
|
+
V(z.height);
|
|
785
785
|
}, p);
|
|
786
786
|
}), $i(() => {
|
|
787
787
|
var p;
|
|
788
|
-
(p =
|
|
788
|
+
(p = C.value) == null || p.disconnect();
|
|
789
789
|
}), {
|
|
790
790
|
selectListRef: i,
|
|
791
791
|
$list: n,
|
|
@@ -880,7 +880,7 @@ var ue = ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = ae(/E
|
|
|
880
880
|
capture: !1,
|
|
881
881
|
passive: !1
|
|
882
882
|
};
|
|
883
|
-
function
|
|
883
|
+
function O(t, e, i) {
|
|
884
884
|
t.addEventListener(e, i, !ue && oi);
|
|
885
885
|
}
|
|
886
886
|
function T(t, e, i) {
|
|
@@ -1215,14 +1215,14 @@ function Tn(t) {
|
|
|
1215
1215
|
bubbles: !0,
|
|
1216
1216
|
cancelable: !0
|
|
1217
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
|
-
var
|
|
1219
|
-
for (var p in
|
|
1220
|
-
g[p] =
|
|
1218
|
+
var C = re(re({}, _), He.getEventProperties(n, e));
|
|
1219
|
+
for (var p in C)
|
|
1220
|
+
g[p] = C[p];
|
|
1221
1221
|
i && i.dispatchEvent(g), D[V] && D[V].call(e, g);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
var
|
|
1225
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n,
|
|
1224
|
+
var On = ["evt"], G = function(e, i) {
|
|
1225
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n, On);
|
|
1226
1226
|
He.pluginEvent.bind(y)(e, i, re({
|
|
1227
1227
|
dragEl: h,
|
|
1228
1228
|
parentEl: x,
|
|
@@ -1232,7 +1232,7 @@ var Cn = ["evt"], G = function(e, i) {
|
|
|
1232
1232
|
lastDownEl: qe,
|
|
1233
1233
|
cloneEl: $,
|
|
1234
1234
|
cloneHidden: fe,
|
|
1235
|
-
dragStarted:
|
|
1235
|
+
dragStarted: ze,
|
|
1236
1236
|
putSortable: X,
|
|
1237
1237
|
activeSortable: y.active,
|
|
1238
1238
|
originalEvent: r,
|
|
@@ -1269,7 +1269,7 @@ function K(t) {
|
|
|
1269
1269
|
newDraggableIndex: ce
|
|
1270
1270
|
}, t));
|
|
1271
1271
|
}
|
|
1272
|
-
var h, x, S, P, be, qe, $, fe, Ee, Z, xe, ce, Be, X, _e = !1, nt = !1, rt = [], ge, te, mt, gt, Kt, Gt,
|
|
1272
|
+
var h, x, S, P, be, qe, $, fe, Ee, Z, xe, ce, Be, X, _e = !1, nt = !1, rt = [], ge, te, mt, gt, Kt, Gt, ze, we, Ve, Re = !1, Ye = !1, Je, j, vt = [], Ct = !1, ot = [], st = typeof document < "u", Xe = Nt, Ut = Fe || ue ? "cssFloat" : "float", Cn = st && !ri && !Nt && "draggable" in document.createElement("div"), fi = function() {
|
|
1273
1273
|
if (st) {
|
|
1274
1274
|
if (ue)
|
|
1275
1275
|
return !1;
|
|
@@ -1287,10 +1287,10 @@ var h, x, S, P, be, qe, $, fe, Ee, Z, xe, ce, Be, X, _e = !1, nt = !1, rt = [],
|
|
|
1287
1287
|
return l && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
1288
1288
|
}
|
|
1289
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
|
+
}, zn = 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
|
+
}, An = function(e, i) {
|
|
1294
1294
|
var n;
|
|
1295
1295
|
return rt.some(function(r) {
|
|
1296
1296
|
var o = r[U].options.emptyInsertThreshold;
|
|
@@ -1332,7 +1332,7 @@ st && !ri && document.addEventListener("click", function(t) {
|
|
|
1332
1332
|
var ve = function(e) {
|
|
1333
1333
|
if (h) {
|
|
1334
1334
|
e = e.touches ? e.touches[0] : e;
|
|
1335
|
-
var i =
|
|
1335
|
+
var i = An(e.clientX, e.clientY);
|
|
1336
1336
|
if (i) {
|
|
1337
1337
|
var n = {};
|
|
1338
1338
|
for (var r in e)
|
|
@@ -1399,7 +1399,7 @@ function y(t, e) {
|
|
|
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 :
|
|
1402
|
+
this.nativeDraggable = e.forceFallback ? !1 : Cn, 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, En());
|
|
1403
1403
|
}
|
|
1404
1404
|
y.prototype = /** @lends Sortable.prototype */
|
|
1405
1405
|
{
|
|
@@ -1470,14 +1470,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1470
1470
|
}), J(h, l.chosenClass, !0);
|
|
1471
1471
|
}, l.ignore.split(",").forEach(function(c) {
|
|
1472
1472
|
ai(h, c.trim(), bt);
|
|
1473
|
-
}),
|
|
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), G("delayStart", this, {
|
|
1474
1474
|
evt: e
|
|
1475
1475
|
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || ue))) {
|
|
1476
1476
|
if (y.eventCanceled) {
|
|
1477
1477
|
this._onDrop();
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
|
-
l.supportPointer ? (
|
|
1480
|
+
l.supportPointer ? (O(a, "pointerup", r._disableDelayedDrag), O(a, "pointercancel", r._disableDelayedDrag)) : (O(a, "mouseup", r._disableDelayedDrag), O(a, "touchend", r._disableDelayedDrag), O(a, "touchcancel", r._disableDelayedDrag)), O(a, "mousemove", r._delayedDragTouchMoveHandler), O(a, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && O(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, l.delay);
|
|
1481
1481
|
} else
|
|
1482
1482
|
s();
|
|
1483
1483
|
}
|
|
@@ -1494,7 +1494,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
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 ?
|
|
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();
|
|
@@ -1506,7 +1506,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1506
1506
|
if (_e = !1, P && h) {
|
|
1507
1507
|
G("dragStarted", this, {
|
|
1508
1508
|
evt: i
|
|
1509
|
-
}), this.nativeDraggable &&
|
|
1509
|
+
}), this.nativeDraggable && O(document, "dragover", kn);
|
|
1510
1510
|
var n = this.options;
|
|
1511
1511
|
!e && J(h, n.dragClass, !1), J(h, n.ghostClass, !0), y.active = this, e && this._appendGhost(), K({
|
|
1512
1512
|
sortable: this,
|
|
@@ -1585,12 +1585,12 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1585
1585
|
sortable: n,
|
|
1586
1586
|
name: "clone"
|
|
1587
1587
|
}));
|
|
1588
|
-
}), !i && J(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)),
|
|
1588
|
+
}), !i && J(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
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, _ = this, g = !1;
|
|
1593
|
-
if (
|
|
1593
|
+
if (Ct) return;
|
|
1594
1594
|
function D(Te, bi) {
|
|
1595
1595
|
G(Te, _, re({
|
|
1596
1596
|
evt: e,
|
|
@@ -1602,7 +1602,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1602
1602
|
canSort: f,
|
|
1603
1603
|
fromSortable: m,
|
|
1604
1604
|
target: n,
|
|
1605
|
-
completed:
|
|
1605
|
+
completed: C,
|
|
1606
1606
|
onMove: function(Vt, yi) {
|
|
1607
1607
|
return We(P, i, h, r, Vt, L(Vt), e, yi);
|
|
1608
1608
|
},
|
|
@@ -1612,7 +1612,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1612
1612
|
function V() {
|
|
1613
1613
|
D("dragOverAnimationCapture"), _.captureAnimationState(), _ !== m && m.captureAnimationState();
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function C(Te) {
|
|
1616
1616
|
return D("dragOverCompleted", {
|
|
1617
1617
|
insertion: Te
|
|
1618
1618
|
}), Te && (c ? u._hideClone() : u._showClone(_), _ !== m && (J(h, X ? X.options.ghostClass : u.options.ghostClass, !1), J(h, a.ghostClass, !0)), X !== _ && _ !== y.active ? X = _ : _ === y.active && X && (X = null), m === _ && (_._ignoreWhileAnimating = n), _.animateAll(function() {
|
|
@@ -1631,45 +1631,45 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1631
1631
|
}
|
|
1632
1632
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, a.draggable, i, !0), D("dragOver"), y.eventCanceled) return g;
|
|
1633
1633
|
if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || _._ignoreWhileAnimating === n)
|
|
1634
|
-
return
|
|
1634
|
+
return C(!1);
|
|
1635
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
1636
|
if (E = this._getDirection(e, n) === "vertical", r = L(h), D("dragOverValid"), y.eventCanceled) return g;
|
|
1637
1637
|
if (l)
|
|
1638
|
-
return x = P, V(), this._hideClone(), D("revert"), y.eventCanceled || (be ? P.insertBefore(h, be) : P.appendChild(h)),
|
|
1638
|
+
return x = P, V(), this._hideClone(), D("revert"), y.eventCanceled || (be ? P.insertBefore(h, be) : P.appendChild(h)), C(!0);
|
|
1639
1639
|
var d = $t(i, a.draggable);
|
|
1640
1640
|
if (!d || Mn(e, E, this) && !d.animated) {
|
|
1641
1641
|
if (d === h)
|
|
1642
|
-
return
|
|
1642
|
+
return C(!1);
|
|
1643
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(),
|
|
1644
|
+
return V(), d && d.nextSibling ? i.insertBefore(h, d.nextSibling) : i.appendChild(h), x = i, p(), C(!0);
|
|
1645
1645
|
} else if (d && $n(e, E, this)) {
|
|
1646
|
-
var
|
|
1647
|
-
if (
|
|
1648
|
-
return
|
|
1649
|
-
if (n =
|
|
1650
|
-
return V(), i.insertBefore(h,
|
|
1646
|
+
var z = Ie(i, 0, a, !0);
|
|
1647
|
+
if (z === h)
|
|
1648
|
+
return C(!1);
|
|
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 = h.parentNode !== i, M = !
|
|
1653
|
+
var Y = 0, v, B = h.parentNode !== i, M = !zn(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
1654
|
we !== n && (v = o[I], Re = !1, Ye = !M && a.invertSwap || B), Y = xn(e, n, o, E, M ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ye, we === n);
|
|
1655
|
-
var
|
|
1655
|
+
var A;
|
|
1656
1656
|
if (Y !== 0) {
|
|
1657
1657
|
var q = ee(h);
|
|
1658
1658
|
do
|
|
1659
|
-
q -= Y,
|
|
1660
|
-
while (
|
|
1659
|
+
q -= Y, A = x.children[q];
|
|
1660
|
+
while (A && (b(A, "display") === "none" || A === S));
|
|
1661
1661
|
}
|
|
1662
|
-
if (Y === 0 ||
|
|
1663
|
-
return
|
|
1662
|
+
if (Y === 0 || A === n)
|
|
1663
|
+
return C(!1);
|
|
1664
1664
|
we = n, Ve = Y;
|
|
1665
1665
|
var de = n.nextElementSibling, F = !1;
|
|
1666
1666
|
F = Y === 1;
|
|
1667
1667
|
var me = We(P, i, h, r, n, o, e, F);
|
|
1668
1668
|
if (me !== !1)
|
|
1669
|
-
return (me === 1 || me === -1) && (F = me === 1),
|
|
1669
|
+
return (me === 1 || me === -1) && (F = me === 1), Ct = !0, setTimeout(Nn, 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
1671
|
if (i.contains(h))
|
|
1672
|
-
return
|
|
1672
|
+
return C(!1);
|
|
1673
1673
|
}
|
|
1674
1674
|
return !1;
|
|
1675
1675
|
},
|
|
@@ -1689,7 +1689,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1689
1689
|
this._nulling();
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
_e = !1, Ye = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
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()), S && S.parentNode && S.parentNode.removeChild(S), (P === x || X && X.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), h && (this.nativeDraggable && T(h, "dragend", this), bt(h), h.style["will-change"] = "", ze && !_e && J(h, X ? X.options.ghostClass : this.options.ghostClass, !1), J(h, this.options.chosenClass, !1), K({
|
|
1693
1693
|
sortable: this,
|
|
1694
1694
|
name: "unchoose",
|
|
1695
1695
|
toEl: x,
|
|
@@ -1736,7 +1736,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1736
1736
|
}), this.save()))), this._nulling();
|
|
1737
1737
|
},
|
|
1738
1738
|
_nulling: function() {
|
|
1739
|
-
G("nulling", this), P = h = x = S = be = $ = qe = fe = ge = te =
|
|
1739
|
+
G("nulling", this), P = h = x = S = be = $ = qe = fe = ge = te = ze = Z = 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
1741
|
}), ot.length = mt = gt = 0;
|
|
1742
1742
|
},
|
|
@@ -1847,7 +1847,7 @@ function bt(t) {
|
|
|
1847
1847
|
t.draggable = !1;
|
|
1848
1848
|
}
|
|
1849
1849
|
function Nn() {
|
|
1850
|
-
|
|
1850
|
+
Ct = !1;
|
|
1851
1851
|
}
|
|
1852
1852
|
function $n(t, e, i) {
|
|
1853
1853
|
var n = L(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, S), o = 10;
|
|
@@ -1888,14 +1888,14 @@ function Fn(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
|
-
st &&
|
|
1894
|
+
st && O(document, "touchmove", function(t) {
|
|
1895
1895
|
(y.active || _e) && t.cancelable && t.preventDefault();
|
|
1896
1896
|
});
|
|
1897
1897
|
y.utils = {
|
|
1898
|
-
on:
|
|
1898
|
+
on: O,
|
|
1899
1899
|
off: T,
|
|
1900
1900
|
css: b,
|
|
1901
1901
|
find: ai,
|
|
@@ -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: U
|
|
@@ -1930,7 +1930,7 @@ y.create = function(t, e) {
|
|
|
1930
1930
|
return new y(t, e);
|
|
1931
1931
|
};
|
|
1932
1932
|
y.version = yn;
|
|
1933
|
-
var H = [],
|
|
1933
|
+
var H = [], Ae, At, kt = !1, yt, wt, lt, ke;
|
|
1934
1934
|
function Hn() {
|
|
1935
1935
|
function t() {
|
|
1936
1936
|
this.defaults = {
|
|
@@ -1946,7 +1946,7 @@ function Hn() {
|
|
|
1946
1946
|
return t.prototype = {
|
|
1947
1947
|
dragStarted: function(i) {
|
|
1948
1948
|
var n = i.originalEvent;
|
|
1949
|
-
this.sortable.nativeDraggable ?
|
|
1949
|
+
this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? O(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? O(document, "touchmove", this._handleFallbackAutoScroll) : O(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1950
1950
|
},
|
|
1951
1951
|
dragOverCompleted: function(i) {
|
|
1952
1952
|
var n = i.originalEvent;
|
|
@@ -1956,7 +1956,7 @@ function Hn() {
|
|
|
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(), _n();
|
|
1957
1957
|
},
|
|
1958
1958
|
nulling: function() {
|
|
1959
|
-
lt =
|
|
1959
|
+
lt = At = Ae = kt = ke = yt = wt = null, H.length = 0;
|
|
1960
1960
|
},
|
|
1961
1961
|
_handleFallbackAutoScroll: function(i) {
|
|
1962
1962
|
this._handleAutoScroll(i, !0);
|
|
@@ -1994,16 +1994,16 @@ function qt() {
|
|
|
1994
1994
|
var St = si(function(t, e, i, n) {
|
|
1995
1995
|
if (e.scroll) {
|
|
1996
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
|
-
|
|
1998
|
-
var f = 0, m =
|
|
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 E = m, _ = L(E), g = _.top, D = _.bottom, V = _.left,
|
|
2001
|
-
E === s ? (
|
|
2002
|
-
var N =
|
|
2000
|
+
var E = m, _ = L(E), g = _.top, D = _.bottom, V = _.left, C = _.right, p = _.width, d = _.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
2003
|
if (!H[f])
|
|
2004
2004
|
for (var q = 0; q <= f; q++)
|
|
2005
2005
|
H[q] || (H[q] = {});
|
|
2006
|
-
(H[f].vx != N || H[f].vy !=
|
|
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
2009
|
typeof c == "function" && c.call(y.dragged.parentNode[U], F, de, t, lt, H[this.layer].el) !== "continue" || ui(H[this.layer].el, F, de);
|
|
@@ -2142,7 +2142,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2142
2142
|
removeAll: g,
|
|
2143
2143
|
innerSelectdValue: D,
|
|
2144
2144
|
selectItem: V,
|
|
2145
|
-
infiniteLoad:
|
|
2145
|
+
infiniteLoad: C
|
|
2146
2146
|
} = mn(n, r);
|
|
2147
2147
|
Ln(n, r, s, m);
|
|
2148
2148
|
const p = Pe(!0);
|
|
@@ -2151,8 +2151,8 @@ const Ln = (t, e, i, n) => {
|
|
|
2151
2151
|
p.value = !0;
|
|
2152
2152
|
}, 300);
|
|
2153
2153
|
}), e({
|
|
2154
|
-
infiniteLoad:
|
|
2155
|
-
}), (d,
|
|
2154
|
+
infiniteLoad: C
|
|
2155
|
+
}), (d, z) => {
|
|
2156
2156
|
const Y = Ei;
|
|
2157
2157
|
return k(), W("div", {
|
|
2158
2158
|
ref_key: "selectListRef",
|
|
@@ -2162,7 +2162,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2162
2162
|
}, [
|
|
2163
2163
|
he(d.$slots, "header", {}, () => [
|
|
2164
2164
|
d.hideHeader ? Q("", !0) : (k(), W("div", Bn, [
|
|
2165
|
-
|
|
2165
|
+
Oe("div", Yn, Ce(w(E)), 1),
|
|
2166
2166
|
!d.isView && d.clearable ? (k(), le(w(Vi), {
|
|
2167
2167
|
key: 0,
|
|
2168
2168
|
"btn-type": "primary-text",
|
|
@@ -2171,7 +2171,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2171
2171
|
disabled: !w(m) || !w(m).length
|
|
2172
2172
|
}, {
|
|
2173
2173
|
default: tt(() => [
|
|
2174
|
-
Le(
|
|
2174
|
+
Le(Ce(w(je)("das-select-list-removeAll").value), 1)
|
|
2175
2175
|
]),
|
|
2176
2176
|
_: 1
|
|
2177
2177
|
}, 8, ["onClick", "disabled"])) : Q("", !0)
|
|
@@ -2200,10 +2200,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2200
2200
|
size: "medium",
|
|
2201
2201
|
style: { "margin-right": "8px" }
|
|
2202
2202
|
}, null, 8, ["class"])) : Q("", !0),
|
|
2203
|
-
|
|
2203
|
+
Oe("div", Wn, [
|
|
2204
2204
|
he(d.$slots, "default", { item: v }, () => [
|
|
2205
2205
|
Se((k(), W("div", null, [
|
|
2206
|
-
Le(
|
|
2206
|
+
Le(Ce(v[d.labelKey]), 1)
|
|
2207
2207
|
])), [
|
|
2208
2208
|
[w(dt)]
|
|
2209
2209
|
])
|
|
@@ -2244,10 +2244,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2244
2244
|
key: v[d.valueKey],
|
|
2245
2245
|
onClick: (M) => w(V)(v)
|
|
2246
2246
|
}, [
|
|
2247
|
-
|
|
2247
|
+
Oe("div", Kn, [
|
|
2248
2248
|
he(d.$slots, "default", { item: v }, () => [
|
|
2249
2249
|
Se((k(), W("div", null, [
|
|
2250
|
-
Le(
|
|
2250
|
+
Le(Ce(v[d.labelKey]), 1)
|
|
2251
2251
|
])), [
|
|
2252
2252
|
[w(dt)]
|
|
2253
2253
|
])
|
|
@@ -2273,7 +2273,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2273
2273
|
"infinite-scroll-disabled": d.infiniteDisabled,
|
|
2274
2274
|
style: { overflow: "overlay" }
|
|
2275
2275
|
}, [
|
|
2276
|
-
|
|
2276
|
+
Oe("div", Un, [
|
|
2277
2277
|
(k(!0), W(_t, null, Et(w(m), (v) => (k(), W("div", {
|
|
2278
2278
|
class: oe({
|
|
2279
2279
|
"selected-item": !0,
|
|
@@ -2284,10 +2284,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2284
2284
|
key: v[d.valueKey],
|
|
2285
2285
|
onClick: (B) => w(V)(v)
|
|
2286
2286
|
}, [
|
|
2287
|
-
|
|
2287
|
+
Oe("div", Jn, [
|
|
2288
2288
|
he(d.$slots, "default", { item: v }, () => [
|
|
2289
2289
|
Se((k(), W("div", null, [
|
|
2290
|
-
Le(
|
|
2290
|
+
Le(Ce(v[d.labelKey]), 1)
|
|
2291
2291
|
])), [
|
|
2292
2292
|
[w(dt)]
|
|
2293
2293
|
])
|
|
@@ -2303,7 +2303,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2303
2303
|
], 10, qn))), 128))
|
|
2304
2304
|
])
|
|
2305
2305
|
], 10, Gn)), [
|
|
2306
|
-
[Y, w(
|
|
2306
|
+
[Y, w(C)]
|
|
2307
2307
|
]) : Q("", !0)
|
|
2308
2308
|
], 4);
|
|
2309
2309
|
};
|
|
@@ -2314,10 +2314,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2314
2314
|
i[n] = r;
|
|
2315
2315
|
return i;
|
|
2316
2316
|
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-b9342d8b"]]), tr = {
|
|
2317
|
-
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
|
|
2318
|
-
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
2319
|
-
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
|
|
2320
|
-
"das-select-list-parentheses-right": { "zh-CN": ")", en: ")", _appCode: "framework" }
|
|
2317
|
+
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", "zh-MO": "清空", _appCode: "framework" },
|
|
2318
|
+
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", "zh-MO": "已選", _appCode: "framework" },
|
|
2319
|
+
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", "zh-MO": "(", _appCode: "framework" },
|
|
2320
|
+
"das-select-list-parentheses-right": { "zh-CN": ")", en: ")", "zh-MO": ")", _appCode: "framework" }
|
|
2321
2321
|
}, ir = {
|
|
2322
2322
|
"--das-ui-select-list-hover-bg": { light: "#F2F2F2" },
|
|
2323
2323
|
"--das-ui-select-list-close-btn-hover": { light: "#5582F3" },
|
|
Binary file
|