@das-fed/upf-ui 6.4.0-dev.312 → 6.4.0-dev.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
- package/package.json +7 -7
- package/packages/business-components/ai-panel/{index-BdLFU3HT.js → index-C1XseEkL.js} +1 -1
- package/packages/business-components/ai-panel/index-C1XseEkL.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Cc1_Wpca.js → index-_XzaXcle.js} +1136 -1154
- package/packages/business-components/ai-panel/index-_XzaXcle.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
- package/packages/business-components/app-container/index.js +56 -56
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +30 -30
- package/packages/business-components/area-phone-select/index.js +87 -87
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +4 -4
- package/packages/business-components/change-enterprises/index.js +20 -20
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +15 -15
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +14 -14
- package/packages/business-components/currency-page/index.js +39 -39
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +46 -46
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +92 -92
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +171 -171
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +42 -42
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.d.ts +4 -4
- package/packages/business-components/model-table-dialog/index.js +233 -233
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/index.js +44 -44
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +939 -939
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +14 -14
- package/packages/business-components/process-log/index.js +331 -331
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +4 -4
- package/packages/business-components/process-table/index.d.ts +14 -14
- package/packages/business-components/upload-file/index.js +43 -43
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/style.css +1 -1
- package/packages/business-components/urgent-panel/index.js +340 -340
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +17 -17
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/alert/index.d.ts +4 -4
- package/packages/components/alert/index.js +5 -5
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +141 -141
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +6 -6
- package/packages/components/autocomplete/index.js +162 -162
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/index.js +37 -37
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +223 -223
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +164 -164
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.d.ts +8 -8
- package/packages/components/cascader/index.js +89 -89
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.d.ts +12 -12
- package/packages/components/checkbox/index.js +180 -180
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/collapse-panel/index.js +12 -12
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collaspe/index.d.ts +4 -4
- package/packages/components/collaspe/index.js +22 -22
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.d.ts +4 -4
- package/packages/components/custom-search-item/index.js +36 -36
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +658 -658
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +31 -73
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +33 -33
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.d.ts +4 -4
- package/packages/components/edit-table/index.js +190 -190
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/empty/index.js +29 -29
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +31 -31
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/index.d.ts +14 -14
- package/packages/components/form/index.js +23 -23
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form-item/index.js +771 -771
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/image-upload/index.js +90 -90
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +418 -418
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/infinite-scroll/index.d.ts +1 -3
- package/packages/components/infinite-scroll/index.js +509 -509
- package/packages/components/infinite-scroll/index.js.gz +0 -0
- package/packages/components/infinite-scroll/src/index.vue.d.ts +1 -3
- package/packages/components/input/index.js +544 -544
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -2
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +82 -82
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-number/index.js +103 -103
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/live-player/index.d.ts +4 -4
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +600 -600
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +17 -17
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.js +91 -91
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/index.d.ts +4 -4
- package/packages/components/popover/index.js +33 -33
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +13 -13
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/progress/index.js +93 -93
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +10 -10
- package/packages/components/radio/index.js +175 -175
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +234 -234
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +2 -2
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +68 -68
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +933 -933
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/skills/DasSearchForm/345/215/207/347/272/247/346/214/207/345/215/227.md +111 -113
- package/packages/components/search-form/skills/das-search-form-toolbar-migration/SKILL.md +40 -31
- package/packages/components/search-form/skills/das-search-form-toolbar-migration//350/277/201/347/247/273/350/246/201/347/202/271/344/270/216/345/270/270/350/247/201/351/227/256/351/242/230.md +64 -29
- 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 +225 -225
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.js +78 -78
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-list/index.js +430 -430
- 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/special-range-picker-month/index.js +140 -140
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +169 -169
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/spin/index.js +37 -37
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.d.ts +8 -8
- package/packages/components/split-panel/index.js +27 -27
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.d.ts +103 -103
- package/packages/components/table/index.js +1869 -1869
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +9 -9
- package/packages/components/tabs/index.js +101 -101
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/time-line/index.js +35 -35
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.d.ts +6 -6
- package/packages/components/tooltip/index.js +62 -62
- 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 +426 -426
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +220 -220
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +12 -12
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +12 -12
- package/packages/components/tree-table/index.d.ts +2 -2
- package/packages/components/tree-table/index.js +181 -181
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1308 -1308
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +141 -143
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/upload/index.js +98 -98
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +62 -62
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +140 -140
- package/release-meta.json +4 -4
- package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Cc1_Wpca.js.gz +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { withInstall as tl } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
-
import { defineComponent as ol, useCssVars as lt, useAttrs as tt, computed as s, ref as i, watch as U, useSlots as ot, onMounted as Ae, onUnmounted as Qe, watchEffect as Ye, nextTick as
|
|
2
|
+
import { defineComponent as ol, useCssVars as lt, useAttrs as tt, computed as s, ref as i, watch as U, useSlots as ot, onMounted as Ae, onUnmounted as Qe, watchEffect as Ye, nextTick as C, resolveComponent as nt, openBlock as v, createElementBlock as y, normalizeClass as at, normalizeStyle as j, withModifiers as se, createBlock as K, unref as c, createCommentVNode as V, withDirectives as Te, mergeProps as _e, createSlots as rt, withCtx as h, renderSlot as w, normalizeProps as ue, guardReactiveProps as ie, Fragment as ke, createTextVNode as Ie, toDisplayString as Z, createElementVNode as b, createVNode as k, withKeys as st } from "vue";
|
|
3
3
|
import { Select as ut, Tag as Ve } from "ant-design-vue";
|
|
4
4
|
import { DasCheckbox as el } from "@das-fed/upf-ui/packages/components/checkbox/index";
|
|
5
5
|
import { vScrollbar as it } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
6
|
-
import { DasTooltip as
|
|
6
|
+
import { DasTooltip as dt } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
7
7
|
import { vDasTooltip as ll } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
8
|
-
import { DasInput as
|
|
8
|
+
import { DasInput as ct } from "@das-fed/upf-ui/packages/components/input/index";
|
|
9
9
|
import { DasIconXiala as ft } from "@das-fed/upf-ui/packages/icons/xiala/index";
|
|
10
10
|
import { DasIconEmpty as vt } from "@das-fed/upf-ui/packages/icons/empty/index";
|
|
11
11
|
import { DasErrorOverlayModel as pt } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
|
|
12
12
|
import { vHoverInside as ht } from "@das-fed/upf-utils/directive";
|
|
13
|
-
import { t as
|
|
13
|
+
import { t as L, currentLang as mt, setI18nRule as gt } from "@das-fed/upf-web/packages/i18n/index";
|
|
14
14
|
import { useZIndex as yt } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
|
|
15
15
|
import { useModelValue as bt } from "@das-fed/upf-utils/vue";
|
|
16
16
|
import { calcTextWidth as St } from "@das-fed/upf-utils/common-tools";
|
|
@@ -19,13 +19,13 @@ import "ant-design-vue/es/tag/style/css";
|
|
|
19
19
|
import { SelectOption as Ct } from "ant-design-vue/es"
|
|
20
20
|
import '@das-fed/upf-ui/packages/components/select/style.css';
|
|
21
21
|
;
|
|
22
|
-
const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block" } }, Tt = ["innerHTML"], kt = { key: 0 }, It = { key: 2 }, Vt = { style: { display: "inline-block" } },
|
|
22
|
+
const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block" } }, Tt = ["innerHTML"], kt = { key: 0 }, It = { key: 2 }, Vt = { style: { display: "inline-block" } }, _t = ["innerHTML"], Lt = ["innerHTML"], Mt = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "das-select-error-label-content das-select-label-content"
|
|
25
|
-
},
|
|
25
|
+
}, Ot = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, zt = { class: "ant-select-selection-item" }, Pt = { class: "ant-select-selection-item-content" }, Et = ["innerHTML"], Nt = ol({
|
|
26
26
|
inheritAttrs: !1,
|
|
27
27
|
components: {
|
|
28
|
-
VNodes: (
|
|
28
|
+
VNodes: (M, { attrs: N }) => N.vnodes
|
|
29
29
|
}
|
|
30
30
|
}), Dt = /* @__PURE__ */ ol({
|
|
31
31
|
...Nt,
|
|
@@ -72,12 +72,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
72
72
|
largeSelectionCollapseThreshold: { default: 200 }
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
75
|
-
setup(
|
|
75
|
+
setup(M, { expose: N, emit: D }) {
|
|
76
76
|
lt((e) => ({
|
|
77
77
|
ed7cab80: Il.value,
|
|
78
78
|
f5b6b826: Vl.value
|
|
79
79
|
}));
|
|
80
|
-
const t =
|
|
80
|
+
const t = M, x = D, X = tt(), al = s(() => {
|
|
81
81
|
const e = {};
|
|
82
82
|
for (const l in X)
|
|
83
83
|
l === "size" || l === "formSize" || l === "onClick" || l.startsWith("onClick") || l === "filterOption" || l === "onSearch" || l === "onPopupScroll" || (e[l] = X[l]);
|
|
@@ -87,60 +87,60 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
87
87
|
return `<span class='key'>${((e = a.value) == null ? void 0 : e.length) ?? 0}</span>`;
|
|
88
88
|
}), rl = s(() => {
|
|
89
89
|
const e = Array.isArray(a.value) ? a.value.length : a.value ? 1 : 0;
|
|
90
|
-
return
|
|
91
|
-
}), B = i(null),
|
|
90
|
+
return L("das-ui-select-selectedItemsCountWithPlaceholder", e);
|
|
91
|
+
}), B = i(null), Le = i(null), g = i(!1), Q = s(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || L("请选择")), de = s(() => B.value ? B.value.querySelector(".ant-select-selector") : null), $ = i(0), W = i(0), sl = s(() => de.value ? t.isTooltip && O.value ? !1 : !t.isTooltip || E.value || !je.value || !ye.value : !0), ul = s(() => (Array.isArray(a.value) ? a.value.length : a.value) ? je.value : Q.value), Me = () => {
|
|
92
92
|
const e = t.size === "table" ? 12 : 14;
|
|
93
93
|
return St(Q.value, e);
|
|
94
|
-
},
|
|
95
|
-
var
|
|
96
|
-
const e = (
|
|
94
|
+
}, Oe = () => {
|
|
95
|
+
var T, G, p;
|
|
96
|
+
const e = (T = B.value) == null ? void 0 : T.querySelector(".ant-select-selection-placeholder"), l = (p = (G = A.value) == null ? void 0 : G.$el) == null ? void 0 : p.querySelectorAll(".ant-select-selection-item");
|
|
97
97
|
l && l.length && l.forEach((xe) => xe.removeAttribute("title"));
|
|
98
98
|
let n = (e == null ? void 0 : e.offsetWidth) ?? 0;
|
|
99
99
|
if (n === 0) return n;
|
|
100
100
|
const o = window.getComputedStyle(e, null), u = parseFloat(o.paddingRight), r = parseFloat(o.paddingLeft);
|
|
101
101
|
return n - u - r;
|
|
102
|
-
},
|
|
102
|
+
}, O = i(!1);
|
|
103
103
|
U(() => [Q.value, a.value], () => {
|
|
104
|
-
|
|
105
|
-
W.value =
|
|
104
|
+
C(() => {
|
|
105
|
+
W.value = Oe(), $.value = Me(), ((Array.isArray(a.value) ? a.value.length : a.value) || W.value === $.value || $.value - W.value < 1) && (O.value = !1);
|
|
106
106
|
});
|
|
107
107
|
}), U(
|
|
108
108
|
() => {
|
|
109
109
|
var e;
|
|
110
|
-
return (e =
|
|
110
|
+
return (e = Le.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
111
111
|
},
|
|
112
112
|
(e) => {
|
|
113
113
|
e && (e.addEventListener("mouseenter", function() {
|
|
114
|
-
|
|
114
|
+
O.value = !0, q.value && clearTimeout(q.value);
|
|
115
115
|
}), e.addEventListener("mouseleave", function() {
|
|
116
116
|
q.value = setTimeout(() => {
|
|
117
|
-
|
|
117
|
+
O.value = !1;
|
|
118
118
|
}, 200);
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
const
|
|
122
|
+
const ze = i(null), Pe = s(() => t.dropdownMode ?? t.mode ?? ""), F = i(null), il = i(null), R = i(""), dl = () => {
|
|
123
123
|
F.value = !0;
|
|
124
|
-
},
|
|
124
|
+
}, cl = () => {
|
|
125
125
|
F.value = null;
|
|
126
126
|
}, Ee = () => {
|
|
127
|
-
R.value && (
|
|
128
|
-
|
|
127
|
+
R.value && (x("addCustomItem", R.value), C(() => {
|
|
128
|
+
A.value.focus(), R.value = "";
|
|
129
129
|
}));
|
|
130
|
-
}, Ne = ot(),
|
|
131
|
-
t.dropdownMode === "custom" && !Ne.dropdownRender && (F.value = !1,
|
|
130
|
+
}, Ne = ot(), ce = () => {
|
|
131
|
+
t.dropdownMode === "custom" && !Ne.dropdownRender && (F.value = !1, C(() => {
|
|
132
132
|
F.value = null;
|
|
133
133
|
}));
|
|
134
134
|
};
|
|
135
135
|
Ae(() => {
|
|
136
|
-
document.addEventListener("click",
|
|
136
|
+
document.addEventListener("click", ce);
|
|
137
137
|
}), Qe(() => {
|
|
138
|
-
document.removeEventListener("click",
|
|
138
|
+
document.removeEventListener("click", ce);
|
|
139
139
|
});
|
|
140
|
-
const
|
|
140
|
+
const A = i(), H = i(""), Y = i(0), De = `__DAS_SELECT_COLLAPSED_${Math.random().toString(36).slice(2)}__`, I = s(() => {
|
|
141
141
|
var e;
|
|
142
142
|
return t.fieldNames && t.fieldNames.label ? (e = t.fieldNames) == null ? void 0 : e.label : "label";
|
|
143
|
-
}),
|
|
143
|
+
}), m = s(() => {
|
|
144
144
|
var e;
|
|
145
145
|
return t.fieldNames && t.fieldNames.value ? (e = t.fieldNames) == null ? void 0 : e.value : "value";
|
|
146
146
|
}), fe = i(/* @__PURE__ */ new Map()), fl = s(() => t.mode === "combobox" ? void 0 : t.mode), Be = {
|
|
@@ -164,7 +164,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
164
164
|
}, ee = (e, l) => {
|
|
165
165
|
if (Array.isArray(e))
|
|
166
166
|
for (const n of e) {
|
|
167
|
-
if ((n == null ? void 0 : n[
|
|
167
|
+
if ((n == null ? void 0 : n[m.value]) == l) return n;
|
|
168
168
|
if (Array.isArray(n == null ? void 0 : n.children)) {
|
|
169
169
|
const o = ee(n.children, l);
|
|
170
170
|
if (o) return o;
|
|
@@ -172,12 +172,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
172
172
|
}
|
|
173
173
|
}, gl = (e) => {
|
|
174
174
|
Fe(e, (l) => {
|
|
175
|
-
l && l[
|
|
175
|
+
l && l[m.value] != null && l[I.value] != null && fe.value.set(l[m.value], l[I.value]);
|
|
176
176
|
});
|
|
177
177
|
}, ve = (e) => {
|
|
178
178
|
if (e == null || e === "") return;
|
|
179
179
|
const l = ee(t.options, e);
|
|
180
|
-
if (l && l[
|
|
180
|
+
if (l && l[I.value] != null) return l[I.value];
|
|
181
181
|
if (t.preserveLabelWhenMissing)
|
|
182
182
|
return fe.value.get(e);
|
|
183
183
|
}, yl = (e) => {
|
|
@@ -186,8 +186,8 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
186
186
|
if (ee(l, o)) return;
|
|
187
187
|
const r = fe.value.get(o);
|
|
188
188
|
r != null && l.unshift({
|
|
189
|
-
[
|
|
190
|
-
[
|
|
189
|
+
[m.value]: o,
|
|
190
|
+
[I.value]: r,
|
|
191
191
|
disabled: !0,
|
|
192
192
|
title: "",
|
|
193
193
|
__dasGhostOption: !0
|
|
@@ -205,7 +205,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
205
205
|
return !1;
|
|
206
206
|
}
|
|
207
207
|
if (o === !1) return !0;
|
|
208
|
-
const u = Xe.value, r = (l == null ? void 0 : l[u]) ?? (l == null ? void 0 : l[
|
|
208
|
+
const u = Xe.value, r = (l == null ? void 0 : l[u]) ?? (l == null ? void 0 : l[I.value]) ?? (l == null ? void 0 : l[m.value]);
|
|
209
209
|
return String(r ?? "").toLowerCase().indexOf(n.toLowerCase()) >= 0;
|
|
210
210
|
}, pe = s(() => {
|
|
211
211
|
if (!Array.isArray(t.options)) return;
|
|
@@ -214,15 +214,15 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
214
214
|
}), qe = s(() => {
|
|
215
215
|
const e = pe.value ?? [];
|
|
216
216
|
return !le.value || !H.value ? e : e.filter((l) => He(H.value, l));
|
|
217
|
-
}),
|
|
218
|
-
t.optionPagingDebug &&
|
|
217
|
+
}), z = (e) => {
|
|
218
|
+
t.optionPagingDebug && C(() => {
|
|
219
219
|
});
|
|
220
220
|
}, te = s(() => t.mode !== "combobox" && Array.isArray(a.value) ? a.value : a.value !== null && a.value !== void 0 && a.value !== "" ? [a.value] : []), Ze = s(() => new Set(te.value)), Sl = s(() => {
|
|
221
221
|
const e = Number(t.largeSelectionCollapseThreshold);
|
|
222
222
|
return Number.isFinite(e) && e >= 0 ? Math.floor(e) : 200;
|
|
223
|
-
}),
|
|
224
|
-
if (H.value ||
|
|
225
|
-
const n = new Set(e.map((u) => u == null ? void 0 : u[
|
|
223
|
+
}), S = s(() => t.mode !== "combobox" && te.value.length > Sl.value), Cl = s(() => S.value ? [De] : a.value), Ke = s(() => Array.isArray(t.options) ? t.options.filter((e) => !(e != null && e.disabled)) : []), oe = s(() => Ke.value.map((e) => e == null ? void 0 : e[m.value])), he = s(() => oe.value.reduce((e, l) => Ze.value.has(l) ? e + 1 : e, 0)), wl = (e, l) => {
|
|
224
|
+
if (H.value || S.value || !te.value.length) return e;
|
|
225
|
+
const n = new Set(e.map((u) => u == null ? void 0 : u[m.value])), o = [];
|
|
226
226
|
return te.value.forEach((u) => {
|
|
227
227
|
if (n.has(u)) return;
|
|
228
228
|
const r = ee(l, u);
|
|
@@ -233,12 +233,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
233
233
|
const e = qe.value.slice(0, Y.value);
|
|
234
234
|
return wl(e, pe.value ?? []);
|
|
235
235
|
}), Ge = () => {
|
|
236
|
-
Y.value = We.value,
|
|
236
|
+
Y.value = We.value, z();
|
|
237
237
|
}, Al = () => {
|
|
238
238
|
le.value && (Y.value = Math.min(
|
|
239
239
|
Y.value + We.value,
|
|
240
240
|
qe.value.length
|
|
241
|
-
),
|
|
241
|
+
), z());
|
|
242
242
|
};
|
|
243
243
|
U(
|
|
244
244
|
() => [
|
|
@@ -246,8 +246,8 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
246
246
|
t.optionPaging,
|
|
247
247
|
t.optionPageSize,
|
|
248
248
|
H.value,
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
I.value,
|
|
250
|
+
m.value
|
|
251
251
|
],
|
|
252
252
|
Ge,
|
|
253
253
|
{ immediate: !0 }
|
|
@@ -255,11 +255,11 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
255
255
|
const me = i(!1), ge = s(() => {
|
|
256
256
|
if (F.value !== null) return F.value;
|
|
257
257
|
if (t.open !== void 0) return t.open;
|
|
258
|
-
}),
|
|
258
|
+
}), P = 1e6, d = i(100), f = i(100), Tl = s(() => S.value ? 0 : d.value), E = i(!1), ye = i(!0), be = i(!1);
|
|
259
259
|
Ye(() => {
|
|
260
260
|
a.value && t.mode == "combobox" && (ye.value = !0, setTimeout(() => {
|
|
261
261
|
var l;
|
|
262
|
-
let e = (l =
|
|
262
|
+
let e = (l = A.value) == null ? void 0 : l.$el.querySelectorAll(".ant-select-selection-item");
|
|
263
263
|
if (e && e.length > 0)
|
|
264
264
|
for (let n = 0; n < e.length; n++) {
|
|
265
265
|
let o = e[n];
|
|
@@ -269,18 +269,18 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
269
269
|
});
|
|
270
270
|
const kl = () => {
|
|
271
271
|
setTimeout(async () => {
|
|
272
|
-
|
|
272
|
+
d.value = 100, await _(), d.value = f.value, g.value = !0;
|
|
273
273
|
}, 100);
|
|
274
274
|
};
|
|
275
275
|
Ye(() => {
|
|
276
276
|
be.value === !0 && t.mode != "combobox" && a.value && a.value.length > 0 && t.options.length > 0 && (be.value = !1, kl());
|
|
277
277
|
}), Ae(() => {
|
|
278
|
-
be.value = !0, t.focusOpen || (f.value = 1,
|
|
278
|
+
be.value = !0, t.focusOpen || (f.value = 1, d.value = f.value, g.value = !0);
|
|
279
279
|
});
|
|
280
|
-
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"), Ue = i(3e3),
|
|
280
|
+
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"), Ue = i(3e3), _l = s(() => ({
|
|
281
281
|
"z-index": Ue.value
|
|
282
282
|
})), je = s(() => {
|
|
283
|
-
if (
|
|
283
|
+
if (S.value)
|
|
284
284
|
return rl.value;
|
|
285
285
|
let e = [];
|
|
286
286
|
if (t.mode != "combobox" && Array.isArray(a.value))
|
|
@@ -293,34 +293,34 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
293
293
|
l != null ? e.push(l) : a.value !== null && a.value !== void 0 && a.value !== "" && e.push(String(a.value));
|
|
294
294
|
}
|
|
295
295
|
return mt.value === "zh-CN" ? e.join("、") : e.join(", ");
|
|
296
|
-
}),
|
|
296
|
+
}), Ll = s(() => t.mode === "combobox" ? !1 : oe.value.length > 0 && he.value === oe.value.length), Ml = s(() => t.mode === "combobox" ? !1 : he.value > 0 && he.value < oe.value.length), Xe = s(() => {
|
|
297
297
|
var e, l;
|
|
298
298
|
return t.optionFilterProp ? t.optionFilterProp : (e = t.fieldNames) != null && e.label ? (l = t.fieldNames) == null ? void 0 : l.label : "label";
|
|
299
|
-
}),
|
|
299
|
+
}), Ol = s(() => ({
|
|
300
300
|
width: typeof t.width == "number" ? t.width + "px" : t.width,
|
|
301
301
|
"--das-select-resolved-height": ml.value
|
|
302
|
-
})), Se = i(!1),
|
|
302
|
+
})), Se = i(!1), zl = i({
|
|
303
303
|
display: "block",
|
|
304
304
|
color: "var(--upf-color-error)",
|
|
305
305
|
"white-space": "break-spaces"
|
|
306
|
-
}), q = i(),
|
|
306
|
+
}), q = i(), Pl = () => {
|
|
307
307
|
var n;
|
|
308
|
-
W.value =
|
|
309
|
-
let e = (n =
|
|
310
|
-
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value === $.value || $.value - W.value < 1 ?
|
|
308
|
+
W.value = Oe(), $.value = Me();
|
|
309
|
+
let e = (n = A.value) == null ? void 0 : n.$el.querySelectorAll(".ant-select-selection-item");
|
|
310
|
+
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value === $.value || $.value - W.value < 1 ? O.value = !1 : (O.value = !0, q.value && clearTimeout(q.value)), Se.value = !0;
|
|
311
311
|
}, El = () => {
|
|
312
312
|
q.value = setTimeout(() => {
|
|
313
|
-
|
|
313
|
+
O.value = !1;
|
|
314
314
|
}, 200), Se.value = !1;
|
|
315
315
|
}, Nl = (e, l) => {
|
|
316
|
-
e ?
|
|
316
|
+
e ? Pl() : El();
|
|
317
317
|
}, Dl = (e) => {
|
|
318
|
-
e ? (Ue.value = yt().nextZIndex(), R.value = "", Ge(),
|
|
318
|
+
e ? (Ue.value = yt().nextZIndex(), R.value = "", Ge(), z()) : (H.value = "", z()), ne.value = e, t.mode == "combobox" && (e || setTimeout(() => {
|
|
319
319
|
var l, n;
|
|
320
|
-
(n = (l =
|
|
321
|
-
})),
|
|
320
|
+
(n = (l = A.value) == null ? void 0 : l.blur) == null || n.call(l);
|
|
321
|
+
})), x("dropdownVisibleChange", e);
|
|
322
322
|
}, Bl = (e) => {
|
|
323
|
-
H.value = e ?? "",
|
|
323
|
+
H.value = e ?? "", z(), Re("onSearch", e);
|
|
324
324
|
}, $l = s(() => t.mode === "combobox" ? t.showSearch === !0 : t.mode === "tags" ? !0 : typeof t.showSearch == "boolean" ? t.showSearch : t.mode === "multiple"), Wl = s(() => $l.value ? { onSearch: Bl } : {}), Fl = s(() => ({ ...al.value, ...Wl.value })), Rl = (e) => {
|
|
325
325
|
if (Re("onPopupScroll", e), !le.value) return;
|
|
326
326
|
const l = e.target;
|
|
@@ -333,12 +333,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
333
333
|
if (e) {
|
|
334
334
|
const l = new Set(Array.isArray(a.value) ? a.value : []), n = Array.isArray(a.value) ? a.value.slice() : [], o = [];
|
|
335
335
|
Ke.value.forEach((u) => {
|
|
336
|
-
const r = u[
|
|
336
|
+
const r = u[m.value];
|
|
337
337
|
l.has(r) || (l.add(r), n.push(r), o.push(u));
|
|
338
338
|
}), a.value = n, re(n, o, "inner");
|
|
339
339
|
} else {
|
|
340
|
-
const l = Array.isArray(t.options) ? t.options : [], n = new Set(l.map((r) => r == null ? void 0 : r[
|
|
341
|
-
l.filter((r) => r == null ? void 0 : r.disabled).map((r) => r == null ? void 0 : r[
|
|
340
|
+
const l = Array.isArray(t.options) ? t.options : [], n = new Set(l.map((r) => r == null ? void 0 : r[m.value])), o = new Set(
|
|
341
|
+
l.filter((r) => r == null ? void 0 : r.disabled).map((r) => r == null ? void 0 : r[m.value])
|
|
342
342
|
), u = (Array.isArray(a.value) ? a.value : []).filter((r) => n.has(r) && o.has(r));
|
|
343
343
|
a.value = u, re(u, [], "inner");
|
|
344
344
|
}
|
|
@@ -346,11 +346,11 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
346
346
|
const l = Array.isArray(a.value) ? a.value.slice() : [], n = l.findIndex((o) => o === e);
|
|
347
347
|
return n > -1 ? l.splice(n, 1) : l.push(e), l;
|
|
348
348
|
}, Gl = (e) => {
|
|
349
|
-
|
|
349
|
+
S.value && (e.preventDefault(), e.stopPropagation());
|
|
350
350
|
}, Ul = (e, l) => {
|
|
351
|
-
if (!
|
|
351
|
+
if (!S.value || e != null && e.disabled) return;
|
|
352
352
|
l.preventDefault(), l.stopPropagation();
|
|
353
|
-
const n = e == null ? void 0 : e[
|
|
353
|
+
const n = e == null ? void 0 : e[m.value];
|
|
354
354
|
if (n === void 0) return;
|
|
355
355
|
const o = Kl(n);
|
|
356
356
|
a.value = o, re(o, e, "inner");
|
|
@@ -359,28 +359,28 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
359
359
|
return e.children[0];
|
|
360
360
|
}, Xl = (e) => {
|
|
361
361
|
if (t.mode == "combobox") {
|
|
362
|
-
|
|
362
|
+
x("focus", e);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
me.value = !0, t.focusOpen && !t.isExterControlCount && (
|
|
366
|
-
|
|
367
|
-
}) :
|
|
365
|
+
me.value = !0, t.focusOpen && !t.isExterControlCount && (d.value = P, t.mode === "multiple" ? C(() => {
|
|
366
|
+
_(), d.value = f.value, g.value = !0;
|
|
367
|
+
}) : g.value = !1), x("focus", e);
|
|
368
368
|
}, ne = i(!1), Jl = () => {
|
|
369
369
|
ne.value || setTimeout(() => {
|
|
370
370
|
var e, l;
|
|
371
|
-
(l = (e =
|
|
371
|
+
(l = (e = A.value) == null ? void 0 : e.blur) == null || l.call(e);
|
|
372
372
|
}), t.mode != "combobox";
|
|
373
373
|
}, Je = (e) => {
|
|
374
|
-
if (
|
|
374
|
+
if (C(() => {
|
|
375
375
|
ne.value = !1;
|
|
376
376
|
}), t.mode == "combobox") {
|
|
377
|
-
|
|
377
|
+
x("blur", e);
|
|
378
378
|
return;
|
|
379
379
|
}
|
|
380
|
-
me.value = !1, t.focusOpen && !t.isExterControlCount && (
|
|
380
|
+
me.value = !1, t.focusOpen && !t.isExterControlCount && (_(), d.value = f.value, g.value = !0), x("blur", e);
|
|
381
381
|
}, Ql = (e) => {
|
|
382
|
-
e.onClose(),
|
|
383
|
-
t.mode !== "combobox" && ge.value || t.focusOpen && (
|
|
382
|
+
e.onClose(), d.value = 100, C(() => {
|
|
383
|
+
t.mode !== "combobox" && ge.value || t.focusOpen && (_(), d.value = f.value, g.value = !0);
|
|
384
384
|
});
|
|
385
385
|
};
|
|
386
386
|
U(
|
|
@@ -395,51 +395,51 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
395
395
|
);
|
|
396
396
|
let Ce = i(!1);
|
|
397
397
|
const Yl = (e) => {
|
|
398
|
-
Ce.value = e, E.value = !0,
|
|
398
|
+
Ce.value = e, E.value = !0, C(() => {
|
|
399
399
|
if (E.value = !1, t.focusOpen) {
|
|
400
|
-
|
|
400
|
+
_();
|
|
401
401
|
const l = e && t.mode !== "multiple";
|
|
402
|
-
|
|
402
|
+
d.value = l ? P : f.value, g.value = !l;
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
let ae = null;
|
|
407
407
|
Ae(() => {
|
|
408
408
|
ae = new IntersectionObserver((e) => {
|
|
409
|
-
e && e[0] && e[0].intersectionRatio > 0 && t.focusOpen &&
|
|
410
|
-
|
|
409
|
+
e && e[0] && e[0].intersectionRatio > 0 && t.focusOpen && d.value === 0 && (d.value = 100, C(() => {
|
|
410
|
+
_(), d.value = f.value, g.value = !0;
|
|
411
411
|
}));
|
|
412
412
|
}), ae.observe(B.value);
|
|
413
413
|
}), Qe(() => {
|
|
414
414
|
ae && ae.disconnect();
|
|
415
415
|
});
|
|
416
|
-
const
|
|
416
|
+
const _ = () => {
|
|
417
417
|
var G;
|
|
418
|
-
if (
|
|
418
|
+
if (S.value) {
|
|
419
419
|
f.value = 0;
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
|
-
let e = (G =
|
|
422
|
+
let e = (G = A.value) == null ? void 0 : G.$el;
|
|
423
423
|
if (!e) return;
|
|
424
424
|
let l = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
425
425
|
if (!l) return;
|
|
426
426
|
let n = l.offsetWidth - 5;
|
|
427
427
|
t.borderType === "underline" && (n -= 10);
|
|
428
|
-
const u = Math.ceil(
|
|
428
|
+
const u = Math.ceil(ze.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
429
429
|
let r = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
430
430
|
if (r.length < 1) return;
|
|
431
|
-
|
|
432
|
-
let
|
|
433
|
-
for (let
|
|
434
|
-
if (
|
|
435
|
-
|
|
431
|
+
d.value = P;
|
|
432
|
+
let T = 0;
|
|
433
|
+
for (let p = 0; p < r.length - 1 && (r[p].classList.remove("ellipsis"), !r[p].classList.contains("ant-select-selection-overflow-item-rest")); p++)
|
|
434
|
+
if (T += Math.ceil(r[p].offsetWidth), T <= n - u)
|
|
435
|
+
p >= a.value.length - 1 && T < n ? f.value = a.value.length : f.value = p + 1;
|
|
436
436
|
else {
|
|
437
|
-
|
|
437
|
+
p >= a.value.length - 1 && T < n ? f.value = a.value.length : f.value = p;
|
|
438
438
|
break;
|
|
439
439
|
}
|
|
440
440
|
if (f.value === 0) {
|
|
441
|
-
let
|
|
442
|
-
|
|
441
|
+
let p = r[0], xe = p.querySelector(".anticon-close") ? 86 : 69;
|
|
442
|
+
p && !p.classList.contains("ant-select-selection-overflow-item-rest") && xe <= n - u && !Ne.tagRender && (f.value = 1, p.classList.add("ellipsis"));
|
|
443
443
|
}
|
|
444
444
|
}, we = i(!1);
|
|
445
445
|
U(
|
|
@@ -450,73 +450,73 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
452
452
|
if (!(t.mode !== "combobox" && ge.value))
|
|
453
|
-
if (E.value = !0,
|
|
453
|
+
if (E.value = !0, d.value = P, await C(), await _(), E.value = !1, t.isExterControlCount && t.focusOpen) {
|
|
454
454
|
const e = Ce.value && t.mode !== "multiple";
|
|
455
|
-
|
|
455
|
+
d.value = e ? P : f.value, g.value = !e;
|
|
456
456
|
} else
|
|
457
|
-
|
|
457
|
+
d.value = f.value, g.value = !0;
|
|
458
458
|
}
|
|
459
459
|
);
|
|
460
460
|
const et = (e) => {
|
|
461
|
-
if (!
|
|
461
|
+
if (!S.value || t.mode === "combobox") return e;
|
|
462
462
|
const l = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
463
463
|
if (!l.length) return [];
|
|
464
464
|
const n = Array.from(new Set(l.filter((u) => u !== De)));
|
|
465
465
|
if (!n.length) return;
|
|
466
466
|
let o = Array.isArray(a.value) ? a.value.slice() : [];
|
|
467
467
|
return n.forEach((u) => {
|
|
468
|
-
const r = o.findIndex((
|
|
468
|
+
const r = o.findIndex((T) => T === u);
|
|
469
469
|
r > -1 ? o.splice(r, 1) : o.push(u);
|
|
470
470
|
}), o;
|
|
471
471
|
}, re = async (e, l, n = "antdv") => {
|
|
472
|
-
ne.value = !1, t.mode === "combobox" &&
|
|
472
|
+
ne.value = !1, t.mode === "combobox" && ce();
|
|
473
473
|
let o = n === "antdv" ? et(e) : e;
|
|
474
474
|
if (o === void 0) {
|
|
475
|
-
|
|
475
|
+
z();
|
|
476
476
|
return;
|
|
477
477
|
}
|
|
478
|
-
if (we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" &&
|
|
478
|
+
if (we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" && S.value && (a.value = o), E.value = !0, x("update:model-value", o), x("change", o, l), z(), d.value = P, await C(), await _(), E.value = !1, t.isExterControlCount && t.focusOpen) {
|
|
479
479
|
const u = Ce.value && t.mode !== "multiple";
|
|
480
|
-
|
|
481
|
-
} else t.mode === "multiple" && t.focusOpen && (
|
|
482
|
-
t.focusOpen || (
|
|
480
|
+
d.value = u ? P : f.value, g.value = !u;
|
|
481
|
+
} else t.mode === "multiple" && t.focusOpen && (d.value = f.value, g.value = !0);
|
|
482
|
+
t.focusOpen || (d.value = f.value);
|
|
483
483
|
};
|
|
484
484
|
return N({
|
|
485
|
-
$select:
|
|
485
|
+
$select: A,
|
|
486
486
|
toChangeMaxCount: Yl
|
|
487
487
|
}), (e, l) => {
|
|
488
488
|
const n = nt("v-nodes");
|
|
489
|
-
return v(),
|
|
489
|
+
return v(), y(
|
|
490
490
|
"div",
|
|
491
491
|
{
|
|
492
492
|
class: at(["das-ui-select", [
|
|
493
493
|
t.borderType,
|
|
494
494
|
t.isView ? "readonly" : "",
|
|
495
495
|
t.error ? "is-error" : "",
|
|
496
|
-
|
|
496
|
+
g.value ? "show-ellipsis" : ""
|
|
497
497
|
]]),
|
|
498
498
|
ref_key: "$selectBox",
|
|
499
499
|
ref: B,
|
|
500
|
-
style: j(
|
|
500
|
+
style: j(Ol.value),
|
|
501
501
|
onClick: se(Jl, ["stop"])
|
|
502
502
|
},
|
|
503
503
|
[
|
|
504
|
-
|
|
504
|
+
de.value ? (v(), K(c(dt), {
|
|
505
505
|
key: 0,
|
|
506
506
|
ref_key: "inputTooltipRef",
|
|
507
|
-
ref:
|
|
507
|
+
ref: Le,
|
|
508
508
|
placement: "top",
|
|
509
509
|
"virtual-triggering": "",
|
|
510
|
-
"virtual-ref":
|
|
510
|
+
"virtual-ref": de.value,
|
|
511
511
|
disabled: sl.value,
|
|
512
512
|
content: ul.value
|
|
513
|
-
}, null, 8, ["virtual-ref", "disabled", "content"])) :
|
|
514
|
-
Te((v(), K(
|
|
513
|
+
}, null, 8, ["virtual-ref", "disabled", "content"])) : V("v-if", !0),
|
|
514
|
+
Te((v(), K(c(ut), _e({ mode: fl.value }, Fl.value, {
|
|
515
515
|
value: Cl.value,
|
|
516
516
|
ref_key: "$select",
|
|
517
|
-
ref:
|
|
517
|
+
ref: A,
|
|
518
518
|
options: xl.value,
|
|
519
|
-
fieldNames:
|
|
519
|
+
fieldNames: e.fieldNames,
|
|
520
520
|
bordered: t.borderType === "bordered",
|
|
521
521
|
disabled: t.disabled || t.isView,
|
|
522
522
|
showArrow: !0,
|
|
@@ -527,58 +527,58 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
527
527
|
filterOption: He,
|
|
528
528
|
size: $e.value,
|
|
529
529
|
style: t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {},
|
|
530
|
-
dropdownClassName: "das-ui-select-dorpdown " +
|
|
530
|
+
dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
|
|
531
531
|
maxTagCount: Tl.value,
|
|
532
532
|
getPopupContainer: ql,
|
|
533
|
-
dropdownStyle:
|
|
533
|
+
dropdownStyle: _l.value,
|
|
534
534
|
onDropdownVisibleChange: Dl,
|
|
535
535
|
onChange: l[4] || (l[4] = (o, u) => re(o, u, "antdv")),
|
|
536
536
|
onFocus: Xl,
|
|
537
537
|
onBlur: Je,
|
|
538
538
|
onPopupScroll: Rl
|
|
539
539
|
}), rt({
|
|
540
|
-
option:
|
|
541
|
-
|
|
540
|
+
option: h((o) => [
|
|
541
|
+
w(e.$slots, "option", ue(ie(o)), () => [
|
|
542
542
|
o.children && typeof o.children == "function" ? (v(), K(n, {
|
|
543
543
|
key: 0,
|
|
544
544
|
vnodes: o.children()
|
|
545
|
-
}, null, 8, ["vnodes"])) : (v(),
|
|
545
|
+
}, null, 8, ["vnodes"])) : (v(), y(
|
|
546
546
|
ke,
|
|
547
547
|
{ key: 1 },
|
|
548
548
|
[
|
|
549
|
-
|
|
550
|
-
|
|
549
|
+
V(' :option="{value, label, [disabled, key, title]}" '),
|
|
550
|
+
e.mode === "combobox" ? Te((v(), y("div", wt, [
|
|
551
551
|
Ie(
|
|
552
|
-
Z(o[
|
|
552
|
+
Z(o[I.value]),
|
|
553
553
|
1
|
|
554
554
|
/* TEXT */
|
|
555
555
|
)
|
|
556
556
|
])), [
|
|
557
|
-
[
|
|
558
|
-
]) : (v(),
|
|
557
|
+
[c(ll)]
|
|
558
|
+
]) : (v(), y(
|
|
559
559
|
ke,
|
|
560
560
|
{ key: 1 },
|
|
561
561
|
[
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
V(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
563
|
+
b("div", {
|
|
564
564
|
class: "das-multiple-option-item",
|
|
565
565
|
onMousedown: Gl,
|
|
566
566
|
onClick: (u) => Ul(o, u)
|
|
567
567
|
}, [
|
|
568
|
-
(v(), K(
|
|
568
|
+
(v(), K(c(el), {
|
|
569
569
|
class: "das-select-checkbox",
|
|
570
|
-
modelValue: Ze.value.has(o[
|
|
571
|
-
key: o[
|
|
570
|
+
modelValue: Ze.value.has(o[m.value]),
|
|
571
|
+
key: o[m.value],
|
|
572
572
|
disabled: o.disabled
|
|
573
573
|
}, null, 8, ["modelValue", "disabled"])),
|
|
574
|
-
Te((v(),
|
|
574
|
+
Te((v(), y("div", At, [
|
|
575
575
|
Ie(
|
|
576
|
-
Z(o[
|
|
576
|
+
Z(o[I.value]),
|
|
577
577
|
1
|
|
578
578
|
/* TEXT */
|
|
579
579
|
)
|
|
580
580
|
])), [
|
|
581
|
-
[
|
|
581
|
+
[c(ll)]
|
|
582
582
|
])
|
|
583
583
|
], 40, xt)
|
|
584
584
|
],
|
|
@@ -591,18 +591,18 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
591
591
|
))
|
|
592
592
|
], !0)
|
|
593
593
|
]),
|
|
594
|
-
tagRender:
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
closable: !
|
|
594
|
+
tagRender: h((o) => [
|
|
595
|
+
w(e.$slots, "tagRender", ue(ie(o)), () => [
|
|
596
|
+
k(c(Ve), {
|
|
597
|
+
closable: !S.value && o.closable,
|
|
598
598
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
599
599
|
onClose: (u) => Ql(o)
|
|
600
600
|
}, {
|
|
601
|
-
default:
|
|
602
|
-
|
|
601
|
+
default: h(() => [
|
|
602
|
+
S.value ? (v(), y("span", {
|
|
603
603
|
key: 0,
|
|
604
|
-
innerHTML:
|
|
605
|
-
}, null, 8, Tt)) : (v(),
|
|
604
|
+
innerHTML: c(L)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
|
|
605
|
+
}, null, 8, Tt)) : (v(), y(
|
|
606
606
|
"span",
|
|
607
607
|
{
|
|
608
608
|
key: 1,
|
|
@@ -619,43 +619,43 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
619
619
|
}, 1032, ["closable", "onClose"])
|
|
620
620
|
], !0)
|
|
621
621
|
]),
|
|
622
|
-
dropdownRender:
|
|
623
|
-
|
|
622
|
+
dropdownRender: h(({ menuNode: o }) => [
|
|
623
|
+
w(e.$slots, "dropdownRender", ue(ie({ menuNode: o })), () => {
|
|
624
624
|
var u;
|
|
625
625
|
return [
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
])) :
|
|
626
|
+
Pe.value === "combobox" ? (v(), y("div", kt, [
|
|
627
|
+
k(n, { vnodes: o }, null, 8, ["vnodes"])
|
|
628
|
+
])) : Pe.value === "custom" ? (v(), y("div", {
|
|
629
629
|
key: 1,
|
|
630
630
|
onClick: l[2] || (l[2] = se(() => {
|
|
631
631
|
}, ["stop"]))
|
|
632
632
|
}, [
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
k(n, { vnodes: o }, null, 8, ["vnodes"]),
|
|
634
|
+
b(
|
|
635
635
|
"div",
|
|
636
636
|
{
|
|
637
637
|
class: "customDropdown",
|
|
638
638
|
onMousedown: l[1] || (l[1] = (r) => r.preventDefault())
|
|
639
639
|
},
|
|
640
640
|
[
|
|
641
|
-
|
|
641
|
+
k(c(ct), _e({
|
|
642
642
|
ref_key: "testInput",
|
|
643
643
|
ref: il,
|
|
644
644
|
modelValue: R.value,
|
|
645
645
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => R.value = r),
|
|
646
646
|
onKeyup: st(Ee, ["enter"]),
|
|
647
|
-
onFocus: se(
|
|
648
|
-
onBlur: se(
|
|
647
|
+
onFocus: se(dl, ["stop"]),
|
|
648
|
+
onBlur: se(cl, ["stop"]),
|
|
649
649
|
width: "100%",
|
|
650
650
|
borderType: "bordered"
|
|
651
651
|
}, t.inputAttrs), null, 16, ["modelValue"]),
|
|
652
|
-
|
|
652
|
+
b(
|
|
653
653
|
"div",
|
|
654
654
|
{
|
|
655
655
|
class: "addBtn",
|
|
656
656
|
onClick: Ee
|
|
657
657
|
},
|
|
658
|
-
Z(
|
|
658
|
+
Z(c(L)("添加")),
|
|
659
659
|
1
|
|
660
660
|
/* TEXT */
|
|
661
661
|
)
|
|
@@ -663,9 +663,9 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
663
663
|
32
|
|
664
664
|
/* NEED_HYDRATION */
|
|
665
665
|
)
|
|
666
|
-
])) : (v(),
|
|
667
|
-
|
|
668
|
-
(u = t.options) != null && u.length && t.showSelectAll ? (v(),
|
|
666
|
+
])) : (v(), y("div", It, [
|
|
667
|
+
k(n, { vnodes: o }, null, 8, ["vnodes"]),
|
|
668
|
+
(u = t.options) != null && u.length && t.showSelectAll ? (v(), y(
|
|
669
669
|
"div",
|
|
670
670
|
{
|
|
671
671
|
key: 0,
|
|
@@ -673,16 +673,16 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
673
673
|
onMousedown: l[3] || (l[3] = (r) => r.preventDefault())
|
|
674
674
|
},
|
|
675
675
|
[
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
modelValue:
|
|
679
|
-
indeterminate:
|
|
676
|
+
b("div", Vt, [
|
|
677
|
+
k(c(el), {
|
|
678
|
+
modelValue: Ll.value,
|
|
679
|
+
indeterminate: Ml.value,
|
|
680
680
|
onChange: Zl,
|
|
681
681
|
style: { display: "flex" }
|
|
682
682
|
}, {
|
|
683
|
-
default:
|
|
683
|
+
default: h(() => [
|
|
684
684
|
Ie(
|
|
685
|
-
Z(
|
|
685
|
+
Z(c(L)("全选")),
|
|
686
686
|
1
|
|
687
687
|
/* TEXT */
|
|
688
688
|
)
|
|
@@ -691,43 +691,43 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
691
691
|
/* STABLE */
|
|
692
692
|
}, 8, ["modelValue", "indeterminate"])
|
|
693
693
|
]),
|
|
694
|
-
|
|
694
|
+
b("span", {
|
|
695
695
|
class: "das-ui-dropdown-has-checked",
|
|
696
|
-
innerHTML:
|
|
697
|
-
}, null, 8,
|
|
696
|
+
innerHTML: c(L)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
|
|
697
|
+
}, null, 8, _t)
|
|
698
698
|
],
|
|
699
699
|
32
|
|
700
700
|
/* NEED_HYDRATION */
|
|
701
|
-
)) :
|
|
701
|
+
)) : V("v-if", !0)
|
|
702
702
|
]))
|
|
703
703
|
];
|
|
704
704
|
}, !0)
|
|
705
705
|
]),
|
|
706
|
-
clearIcon:
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
clearIcon: h(() => [
|
|
707
|
+
w(e.$slots, "clearIcon", {}, () => [
|
|
708
|
+
k(c(vt), { size: "medium" })
|
|
709
709
|
], !0)
|
|
710
710
|
]),
|
|
711
|
-
maxTagPlaceholder:
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
711
|
+
maxTagPlaceholder: h((o) => [
|
|
712
|
+
w(e.$slots, "maxTagPlaceholder", ue(ie(o)), () => [
|
|
713
|
+
V(" 隐藏tag时显示的内容 "),
|
|
714
|
+
k(c(Ve), {
|
|
715
715
|
style: j(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
716
716
|
}, {
|
|
717
|
-
default:
|
|
718
|
-
|
|
719
|
-
innerHTML:
|
|
720
|
-
}, null, 8,
|
|
717
|
+
default: h(() => [
|
|
718
|
+
b("span", {
|
|
719
|
+
innerHTML: c(L)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
|
|
720
|
+
}, null, 8, Lt)
|
|
721
721
|
]),
|
|
722
722
|
_: 1
|
|
723
723
|
/* STABLE */
|
|
724
724
|
}, 8, ["style"]),
|
|
725
|
-
|
|
725
|
+
V(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
|
|
726
726
|
], !0)
|
|
727
727
|
]),
|
|
728
|
-
notFoundContent:
|
|
729
|
-
|
|
730
|
-
l[5] || (l[5] =
|
|
728
|
+
notFoundContent: h(() => [
|
|
729
|
+
w(e.$slots, "notFoundContent", {}, () => [
|
|
730
|
+
l[5] || (l[5] = b(
|
|
731
731
|
"div",
|
|
732
732
|
{ class: "hasNoData" },
|
|
733
733
|
"暂无数据",
|
|
@@ -736,89 +736,89 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
736
736
|
))
|
|
737
737
|
], !0)
|
|
738
738
|
]),
|
|
739
|
-
suffixIcon:
|
|
740
|
-
|
|
741
|
-
|
|
739
|
+
suffixIcon: h(() => [
|
|
740
|
+
w(e.$slots, "suffixIcon", {}, () => [
|
|
741
|
+
k(c(ft), {
|
|
742
742
|
class: "das-suffix-icon",
|
|
743
743
|
size: "medium",
|
|
744
744
|
iconColor: "#666666"
|
|
745
745
|
})
|
|
746
746
|
], !0)
|
|
747
747
|
]),
|
|
748
|
-
default:
|
|
749
|
-
|
|
748
|
+
default: h(() => [
|
|
749
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
750
750
|
]),
|
|
751
751
|
_: 2
|
|
752
752
|
/* DYNAMIC */
|
|
753
753
|
}, [
|
|
754
754
|
e.$slots.menuItemSelectedIcon ? {
|
|
755
755
|
name: "menuItemSelectedIcon",
|
|
756
|
-
fn:
|
|
757
|
-
|
|
756
|
+
fn: h(() => [
|
|
757
|
+
w(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
|
|
758
758
|
]),
|
|
759
759
|
key: "0"
|
|
760
760
|
} : void 0,
|
|
761
761
|
e.$slots.placeholder ? {
|
|
762
762
|
name: "placeholder",
|
|
763
|
-
fn:
|
|
764
|
-
|
|
763
|
+
fn: h(() => [
|
|
764
|
+
w(e.$slots, "placeholder", {}, void 0, !0)
|
|
765
765
|
]),
|
|
766
766
|
key: "1"
|
|
767
767
|
} : void 0,
|
|
768
768
|
e.$slots.removeIcon ? {
|
|
769
769
|
name: "removeIcon",
|
|
770
|
-
fn:
|
|
771
|
-
|
|
770
|
+
fn: h(() => [
|
|
771
|
+
w(e.$slots, "removeIcon", {}, void 0, !0)
|
|
772
772
|
]),
|
|
773
773
|
key: "2"
|
|
774
774
|
} : void 0
|
|
775
775
|
]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "showSearch", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
776
|
-
[
|
|
777
|
-
[
|
|
776
|
+
[c(it), { target: jl, x: !1 }],
|
|
777
|
+
[c(ht), Nl]
|
|
778
778
|
]),
|
|
779
|
-
|
|
779
|
+
e.error && e.errorLabel ? (v(), y(
|
|
780
780
|
ke,
|
|
781
781
|
{ key: 1 },
|
|
782
782
|
[
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
e.errorMode === "default" ? (v(), y("div", Mt, [
|
|
784
|
+
b(
|
|
785
785
|
"span",
|
|
786
786
|
{
|
|
787
|
-
style: j(
|
|
787
|
+
style: j(zl.value)
|
|
788
788
|
},
|
|
789
|
-
Z(
|
|
789
|
+
Z(e.errorLabel),
|
|
790
790
|
5
|
|
791
791
|
/* TEXT, STYLE */
|
|
792
792
|
)
|
|
793
|
-
])) :
|
|
794
|
-
|
|
793
|
+
])) : V("v-if", !0),
|
|
794
|
+
e.errorMode === "overlay" && Se.value ? (v(), K(c(pt), {
|
|
795
795
|
key: 1,
|
|
796
|
-
errorLabel:
|
|
797
|
-
getEl: () =>
|
|
798
|
-
errorModelZIndex:
|
|
799
|
-
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) :
|
|
796
|
+
errorLabel: e.errorLabel,
|
|
797
|
+
getEl: () => A.value.$el,
|
|
798
|
+
errorModelZIndex: e.errorModelZIndex
|
|
799
|
+
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : V("v-if", !0)
|
|
800
800
|
],
|
|
801
801
|
64
|
|
802
802
|
/* STABLE_FRAGMENT */
|
|
803
|
-
)) :
|
|
804
|
-
|
|
803
|
+
)) : V("v-if", !0),
|
|
804
|
+
b(
|
|
805
805
|
"div",
|
|
806
806
|
{
|
|
807
807
|
class: "ant-select-selection-overflow",
|
|
808
808
|
ref_key: "virtualTotalCount",
|
|
809
|
-
ref:
|
|
809
|
+
ref: ze,
|
|
810
810
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
811
811
|
},
|
|
812
812
|
[
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
813
|
+
b("div", Ot, [
|
|
814
|
+
b("div", zt, [
|
|
815
|
+
b("span", Pt, [
|
|
816
|
+
k(c(Ve), {
|
|
817
817
|
style: j(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
818
818
|
}, {
|
|
819
|
-
default:
|
|
820
|
-
|
|
821
|
-
innerHTML:
|
|
819
|
+
default: h(() => [
|
|
820
|
+
b("span", {
|
|
821
|
+
innerHTML: c(L)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
|
|
822
822
|
}, null, 8, Et)
|
|
823
823
|
]),
|
|
824
824
|
_: 1
|
|
@@ -837,17 +837,17 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
837
837
|
);
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
}), nl = (
|
|
841
|
-
const D =
|
|
842
|
-
for (const [t,
|
|
843
|
-
D[t] =
|
|
840
|
+
}), nl = (M, N) => {
|
|
841
|
+
const D = M.__vccOpts || M;
|
|
842
|
+
for (const [t, x] of N)
|
|
843
|
+
D[t] = x;
|
|
844
844
|
return D;
|
|
845
845
|
}, Bt = /* @__PURE__ */ nl(Dt, [["__scopeId", "data-v-21a12cc3"]]), $t = {};
|
|
846
|
-
function Wt(
|
|
846
|
+
function Wt(M, N) {
|
|
847
847
|
const D = Ct;
|
|
848
848
|
return v(), K(
|
|
849
849
|
D,
|
|
850
|
-
|
|
850
|
+
_e({ class: "das-ui-select-option" }, M.$attrs),
|
|
851
851
|
null,
|
|
852
852
|
16
|
|
853
853
|
/* FULL_PROPS */
|