@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.
Files changed (225) hide show
  1. package/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
  2. package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
  3. package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
  4. package/package.json +7 -7
  5. package/packages/business-components/ai-panel/{index-BdLFU3HT.js → index-C1XseEkL.js} +1 -1
  6. package/packages/business-components/ai-panel/index-C1XseEkL.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-Cc1_Wpca.js → index-_XzaXcle.js} +1136 -1154
  8. package/packages/business-components/ai-panel/index-_XzaXcle.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
  11. package/packages/business-components/app-container/index.js +56 -56
  12. package/packages/business-components/app-container/index.js.gz +0 -0
  13. package/packages/business-components/area-phone-select/index.d.ts +30 -30
  14. package/packages/business-components/area-phone-select/index.js +87 -87
  15. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  16. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +4 -4
  17. package/packages/business-components/change-enterprises/index.js +20 -20
  18. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  19. package/packages/business-components/change-pwd/index.js +15 -15
  20. package/packages/business-components/change-pwd/index.js.gz +0 -0
  21. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +14 -14
  22. package/packages/business-components/currency-page/index.js +39 -39
  23. package/packages/business-components/currency-page/index.js.gz +0 -0
  24. package/packages/business-components/device-panel/index.js +46 -46
  25. package/packages/business-components/device-panel/index.js.gz +0 -0
  26. package/packages/business-components/device-panel/style.css +1 -1
  27. package/packages/business-components/device-panel/style.css.gz +0 -0
  28. package/packages/business-components/export-button/index.js +92 -92
  29. package/packages/business-components/export-button/index.js.gz +0 -0
  30. package/packages/business-components/import-button/index.js +171 -171
  31. package/packages/business-components/import-button/index.js.gz +0 -0
  32. package/packages/business-components/layout-breadcrumb/index.js +42 -42
  33. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  34. package/packages/business-components/model-table-dialog/index.d.ts +4 -4
  35. package/packages/business-components/model-table-dialog/index.js +233 -233
  36. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  37. package/packages/business-components/payment/index.js +44 -44
  38. package/packages/business-components/payment/index.js.gz +0 -0
  39. package/packages/business-components/process-form/index.js +939 -939
  40. package/packages/business-components/process-form/index.js.gz +0 -0
  41. package/packages/business-components/process-form/src/hooks/useForm.d.ts +14 -14
  42. package/packages/business-components/process-log/index.js +331 -331
  43. package/packages/business-components/process-log/index.js.gz +0 -0
  44. package/packages/business-components/process-log/style.css +1 -1
  45. package/packages/business-components/process-log/style.css.gz +0 -0
  46. package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +4 -4
  47. package/packages/business-components/process-table/index.d.ts +14 -14
  48. package/packages/business-components/upload-file/index.js +43 -43
  49. package/packages/business-components/upload-file/index.js.gz +0 -0
  50. package/packages/business-components/upload-file/style.css +1 -1
  51. package/packages/business-components/urgent-panel/index.js +340 -340
  52. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  53. package/packages/business-components/video-dialog/index.js +17 -17
  54. package/packages/business-components/video-dialog/index.js.gz +0 -0
  55. package/packages/business-components/video-dialog/style.css +1 -1
  56. package/packages/business-components/video-dialog/style.css.gz +0 -0
  57. package/packages/components/alert/index.d.ts +4 -4
  58. package/packages/components/alert/index.js +5 -5
  59. package/packages/components/alert/index.js.gz +0 -0
  60. package/packages/components/audio-video/index.js +141 -141
  61. package/packages/components/audio-video/index.js.gz +0 -0
  62. package/packages/components/autocomplete/index.d.ts +6 -6
  63. package/packages/components/autocomplete/index.js +162 -162
  64. package/packages/components/autocomplete/index.js.gz +0 -0
  65. package/packages/components/autocomplete/style.css +1 -1
  66. package/packages/components/autocomplete/style.css.gz +0 -0
  67. package/packages/components/breadcrumb/index.js +37 -37
  68. package/packages/components/breadcrumb/index.js.gz +0 -0
  69. package/packages/components/button/index.js +223 -223
  70. package/packages/components/button/index.js.gz +0 -0
  71. package/packages/components/calendar/index.js +164 -164
  72. package/packages/components/calendar/index.js.gz +0 -0
  73. package/packages/components/cascader/index.d.ts +8 -8
  74. package/packages/components/cascader/index.js +89 -89
  75. package/packages/components/cascader/index.js.gz +0 -0
  76. package/packages/components/cascader/style.css +1 -1
  77. package/packages/components/cascader/style.css.gz +0 -0
  78. package/packages/components/checkbox/index.d.ts +12 -12
  79. package/packages/components/checkbox/index.js +180 -180
  80. package/packages/components/checkbox/index.js.gz +0 -0
  81. package/packages/components/checkbox/style.css +1 -1
  82. package/packages/components/checkbox/style.css.gz +0 -0
  83. package/packages/components/collapse-panel/index.js +12 -12
  84. package/packages/components/collapse-panel/index.js.gz +0 -0
  85. package/packages/components/collaspe/index.d.ts +4 -4
  86. package/packages/components/collaspe/index.js +22 -22
  87. package/packages/components/collaspe/index.js.gz +0 -0
  88. package/packages/components/custom-search-item/index.d.ts +4 -4
  89. package/packages/components/custom-search-item/index.js +36 -36
  90. package/packages/components/custom-search-item/index.js.gz +0 -0
  91. package/packages/components/date-picker/index.js +658 -658
  92. package/packages/components/date-picker/index.js.gz +0 -0
  93. package/packages/components/date-picker/style.css +1 -1
  94. package/packages/components/date-picker/style.css.gz +0 -0
  95. package/packages/components/dimple-layout/index.js +31 -73
  96. package/packages/components/dimple-layout/index.js.gz +0 -0
  97. package/packages/components/dropdown/index.js +33 -33
  98. package/packages/components/dropdown/index.js.gz +0 -0
  99. package/packages/components/edit-table/index.d.ts +4 -4
  100. package/packages/components/edit-table/index.js +190 -190
  101. package/packages/components/edit-table/index.js.gz +0 -0
  102. package/packages/components/empty/index.js +29 -29
  103. package/packages/components/empty/index.js.gz +0 -0
  104. package/packages/components/error-overlay-model/index.js +31 -31
  105. package/packages/components/error-overlay-model/index.js.gz +0 -0
  106. package/packages/components/form/index.d.ts +14 -14
  107. package/packages/components/form/index.js +23 -23
  108. package/packages/components/form/index.js.gz +0 -0
  109. package/packages/components/form-item/index.js +771 -771
  110. package/packages/components/form-item/index.js.gz +0 -0
  111. package/packages/components/form-item/style.css +1 -1
  112. package/packages/components/form-item/style.css.gz +0 -0
  113. package/packages/components/image-upload/index.js +90 -90
  114. package/packages/components/image-upload/index.js.gz +0 -0
  115. package/packages/components/image-viewer/index.js +418 -418
  116. package/packages/components/image-viewer/index.js.gz +0 -0
  117. package/packages/components/infinite-scroll/index.d.ts +1 -3
  118. package/packages/components/infinite-scroll/index.js +509 -509
  119. package/packages/components/infinite-scroll/index.js.gz +0 -0
  120. package/packages/components/infinite-scroll/src/index.vue.d.ts +1 -3
  121. package/packages/components/input/index.js +544 -544
  122. package/packages/components/input/index.js.gz +0 -0
  123. package/packages/components/input/src/index.vue.d.ts +2 -2
  124. package/packages/components/input/style.css +1 -1
  125. package/packages/components/input/style.css.gz +0 -0
  126. package/packages/components/input-dialog-select/index.js +82 -82
  127. package/packages/components/input-dialog-select/index.js.gz +0 -0
  128. package/packages/components/input-number/index.js +103 -103
  129. package/packages/components/input-number/index.js.gz +0 -0
  130. package/packages/components/input-number/style.css +1 -1
  131. package/packages/components/input-number/style.css.gz +0 -0
  132. package/packages/components/live-player/index.d.ts +4 -4
  133. package/packages/components/loading/index.js +1 -1
  134. package/packages/components/loading/index.js.gz +0 -0
  135. package/packages/components/menu-aside/index.js +600 -600
  136. package/packages/components/menu-aside/index.js.gz +0 -0
  137. package/packages/components/menu-header/index.js +17 -17
  138. package/packages/components/menu-header/index.js.gz +0 -0
  139. package/packages/components/pagination/index.js +91 -91
  140. package/packages/components/pagination/index.js.gz +0 -0
  141. package/packages/components/pagination/style.css +1 -1
  142. package/packages/components/pagination/style.css.gz +0 -0
  143. package/packages/components/popover/index.d.ts +4 -4
  144. package/packages/components/popover/index.js +33 -33
  145. package/packages/components/popover/index.js.gz +0 -0
  146. package/packages/components/popup-mask/index.js +13 -13
  147. package/packages/components/popup-mask/index.js.gz +0 -0
  148. package/packages/components/progress/index.js +93 -93
  149. package/packages/components/progress/index.js.gz +0 -0
  150. package/packages/components/progress/style.css +1 -1
  151. package/packages/components/progress/style.css.gz +0 -0
  152. package/packages/components/radio/index.d.ts +10 -10
  153. package/packages/components/radio/index.js +175 -175
  154. package/packages/components/radio/index.js.gz +0 -0
  155. package/packages/components/rich-editor/index.js +234 -234
  156. package/packages/components/rich-editor/index.js.gz +0 -0
  157. package/packages/components/scrollbar/index.js +2 -2
  158. package/packages/components/scrollbar/index.js.gz +0 -0
  159. package/packages/components/search/index.js +68 -68
  160. package/packages/components/search/index.js.gz +0 -0
  161. package/packages/components/search-form/index.js +933 -933
  162. package/packages/components/search-form/index.js.gz +0 -0
  163. package/packages/components/search-form/skills/DasSearchForm/345/215/207/347/272/247/346/214/207/345/215/227.md +111 -113
  164. package/packages/components/search-form/skills/das-search-form-toolbar-migration/SKILL.md +40 -31
  165. 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
  166. package/packages/components/search-form/style.css +1 -1
  167. package/packages/components/search-form/style.css.gz +0 -0
  168. package/packages/components/select/index.js +225 -225
  169. package/packages/components/select/index.js.gz +0 -0
  170. package/packages/components/select-input/index.js +78 -78
  171. package/packages/components/select-input/index.js.gz +0 -0
  172. package/packages/components/select-list/index.js +430 -430
  173. package/packages/components/select-list/index.js.gz +0 -0
  174. package/packages/components/select-list/style.css +1 -1
  175. package/packages/components/select-list/style.css.gz +0 -0
  176. package/packages/components/special-range-picker-month/index.js +140 -140
  177. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  178. package/packages/components/special-range-picker-month/style.css +1 -1
  179. package/packages/components/special-range-picker-month/style.css.gz +0 -0
  180. package/packages/components/special-range-picker-year/index.js +169 -169
  181. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  182. package/packages/components/special-range-picker-year/style.css +1 -1
  183. package/packages/components/special-range-picker-year/style.css.gz +0 -0
  184. package/packages/components/spin/index.js +37 -37
  185. package/packages/components/spin/index.js.gz +0 -0
  186. package/packages/components/split-panel/index.d.ts +8 -8
  187. package/packages/components/split-panel/index.js +27 -27
  188. package/packages/components/split-panel/index.js.gz +0 -0
  189. package/packages/components/switch/style.css +1 -1
  190. package/packages/components/switch/style.css.gz +0 -0
  191. package/packages/components/table/index.d.ts +103 -103
  192. package/packages/components/table/index.js +1869 -1869
  193. package/packages/components/table/index.js.gz +0 -0
  194. package/packages/components/table/src/Table.vue.d.ts +9 -9
  195. package/packages/components/tabs/index.js +101 -101
  196. package/packages/components/tabs/index.js.gz +0 -0
  197. package/packages/components/time-line/index.js +35 -35
  198. package/packages/components/time-line/index.js.gz +0 -0
  199. package/packages/components/tooltip/index.d.ts +6 -6
  200. package/packages/components/tooltip/index.js +62 -62
  201. package/packages/components/tooltip/index.js.gz +0 -0
  202. package/packages/components/tooltip/style.css +1 -1
  203. package/packages/components/tooltip/style.css.gz +0 -0
  204. package/packages/components/tree/index.js +426 -426
  205. package/packages/components/tree/index.js.gz +0 -0
  206. package/packages/components/tree-select/index.js +220 -220
  207. package/packages/components/tree-select/index.js.gz +0 -0
  208. package/packages/components/tree-select/src/App.vue.d.ts +12 -12
  209. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +12 -12
  210. package/packages/components/tree-table/index.d.ts +2 -2
  211. package/packages/components/tree-table/index.js +181 -181
  212. package/packages/components/tree-table/index.js.gz +0 -0
  213. package/packages/components/tree-v2/index.js +1308 -1308
  214. package/packages/components/tree-v2/index.js.gz +0 -0
  215. package/packages/components/tree-v2/src/App.vue.d.ts +141 -143
  216. package/packages/components/tree-v2/style.css +1 -1
  217. package/packages/components/tree-v2/style.css.gz +0 -0
  218. package/packages/components/upload/index.js +98 -98
  219. package/packages/components/upload/index.js.gz +0 -0
  220. package/packages/components/virtual-tree/index.js +62 -62
  221. package/packages/components/virtual-tree/index.js.gz +0 -0
  222. package/packages/components/virtual-tree/src/App.vue.d.ts +140 -140
  223. package/release-meta.json +4 -4
  224. package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
  225. 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 w, resolveComponent as nt, openBlock as v, createElementBlock as b, normalizeClass as at, normalizeStyle as j, withModifiers as se, createBlock as K, unref as d, createCommentVNode as L, withDirectives as Te, mergeProps as Le, createSlots as rt, withCtx as m, renderSlot as x, normalizeProps as ue, guardReactiveProps as ie, Fragment as ke, createTextVNode as Ie, toDisplayString as Z, createElementVNode as S, createVNode as I, withKeys as st } from "vue";
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 ct } from "@das-fed/upf-ui/packages/components/tooltip/index";
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 dt } from "@das-fed/upf-ui/packages/components/input/index";
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 O, currentLang as mt, setI18nRule as gt } from "@das-fed/upf-web/packages/i18n/index";
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" } }, Lt = ["innerHTML"], Mt = ["innerHTML"], Ot = {
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
- }, zt = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Pt = { class: "ant-select-selection-item" }, _t = { class: "ant-select-selection-item-content" }, Et = ["innerHTML"], Nt = ol({
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: (p, { attrs: N }) => N.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(p, { expose: N, emit: D }) {
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 = p, A = D, X = tt(), al = s(() => {
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 O("das-ui-select-selectedItemsCountWithPlaceholder", e);
91
- }), B = i(null), Me = i(null), y = i(!1), Q = s(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || O("请选择")), ce = s(() => B.value ? B.value.querySelector(".ant-select-selector") : null), $ = i(0), W = i(0), sl = s(() => ce.value ? t.isTooltip && z.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), Oe = () => {
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
- }, ze = () => {
95
- var k, G, h;
96
- const e = (k = B.value) == null ? void 0 : k.querySelector(".ant-select-selection-placeholder"), l = (h = (G = T.value) == null ? void 0 : G.$el) == null ? void 0 : h.querySelectorAll(".ant-select-selection-item");
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
- }, z = i(!1);
102
+ }, O = i(!1);
103
103
  U(() => [Q.value, a.value], () => {
104
- w(() => {
105
- W.value = ze(), $.value = Oe(), ((Array.isArray(a.value) ? a.value.length : a.value) || W.value === $.value || $.value - W.value < 1) && (z.value = !1);
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 = Me.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
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
- z.value = !0, q.value && clearTimeout(q.value);
114
+ O.value = !0, q.value && clearTimeout(q.value);
115
115
  }), e.addEventListener("mouseleave", function() {
116
116
  q.value = setTimeout(() => {
117
- z.value = !1;
117
+ O.value = !1;
118
118
  }, 200);
119
119
  }));
120
120
  }
121
121
  );
122
- const Pe = i(null), _e = s(() => t.dropdownMode ?? t.mode ?? ""), F = i(null), il = i(null), R = i(""), cl = () => {
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
- }, dl = () => {
124
+ }, cl = () => {
125
125
  F.value = null;
126
126
  }, Ee = () => {
127
- R.value && (A("addCustomItem", R.value), w(() => {
128
- T.value.focus(), R.value = "";
127
+ R.value && (x("addCustomItem", R.value), C(() => {
128
+ A.value.focus(), R.value = "";
129
129
  }));
130
- }, Ne = ot(), de = () => {
131
- t.dropdownMode === "custom" && !Ne.dropdownRender && (F.value = !1, w(() => {
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", de);
136
+ document.addEventListener("click", ce);
137
137
  }), Qe(() => {
138
- document.removeEventListener("click", de);
138
+ document.removeEventListener("click", ce);
139
139
  });
140
- const T = i(), H = i(""), Y = i(0), De = `__DAS_SELECT_COLLAPSED_${Math.random().toString(36).slice(2)}__`, V = s(() => {
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
- }), g = s(() => {
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[g.value]) == l) return 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[g.value] != null && l[V.value] != null && fe.value.set(l[g.value], l[V.value]);
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[V.value] != null) return l[V.value];
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
- [g.value]: o,
190
- [V.value]: r,
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[V.value]) ?? (l == null ? void 0 : l[g.value]);
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
- }), P = (e) => {
218
- t.optionPagingDebug && w(() => {
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
- }), C = s(() => t.mode !== "combobox" && te.value.length > Sl.value), Cl = s(() => C.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[g.value])), he = s(() => oe.value.reduce((e, l) => Ze.value.has(l) ? e + 1 : e, 0)), wl = (e, l) => {
224
- if (H.value || C.value || !te.value.length) return e;
225
- const n = new Set(e.map((u) => u == null ? void 0 : u[g.value])), o = [];
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, P();
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
- ), P());
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
- V.value,
250
- g.value
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
- }), _ = 1e6, c = i(100), f = i(100), Tl = s(() => C.value ? 0 : c.value), E = i(!1), ye = i(!0), be = i(!1);
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 = T.value) == null ? void 0 : l.$el.querySelectorAll(".ant-select-selection-item");
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
- c.value = 100, await M(), c.value = f.value, y.value = !0;
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, c.value = f.value, y.value = !0);
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), Ll = s(() => ({
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 (C.value)
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
- }), Ml = s(() => t.mode === "combobox" ? !1 : oe.value.length > 0 && he.value === oe.value.length), Ol = s(() => t.mode === "combobox" ? !1 : he.value > 0 && he.value < oe.value.length), Xe = s(() => {
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
- }), zl = s(() => ({
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), Pl = i({
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(), _l = () => {
306
+ }), q = i(), Pl = () => {
307
307
  var n;
308
- W.value = ze(), $.value = Oe();
309
- let e = (n = T.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 ? z.value = !1 : (z.value = !0, q.value && clearTimeout(q.value)), Se.value = !0;
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
- z.value = !1;
313
+ O.value = !1;
314
314
  }, 200), Se.value = !1;
315
315
  }, Nl = (e, l) => {
316
- e ? _l() : El();
316
+ e ? Pl() : El();
317
317
  }, Dl = (e) => {
318
- e ? (Ue.value = yt().nextZIndex(), R.value = "", Ge(), P()) : (H.value = "", P()), ne.value = e, t.mode == "combobox" && (e || setTimeout(() => {
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 = T.value) == null ? void 0 : l.blur) == null || n.call(l);
321
- })), A("dropdownVisibleChange", e);
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 ?? "", P(), Re("onSearch", 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[g.value];
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[g.value])), o = new Set(
341
- l.filter((r) => r == null ? void 0 : r.disabled).map((r) => r == null ? void 0 : r[g.value])
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
- C.value && (e.preventDefault(), e.stopPropagation());
349
+ S.value && (e.preventDefault(), e.stopPropagation());
350
350
  }, Ul = (e, l) => {
351
- if (!C.value || e != null && e.disabled) return;
351
+ if (!S.value || e != null && e.disabled) return;
352
352
  l.preventDefault(), l.stopPropagation();
353
- const n = e == null ? void 0 : e[g.value];
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
- A("focus", e);
362
+ x("focus", e);
363
363
  return;
364
364
  }
365
- me.value = !0, t.focusOpen && !t.isExterControlCount && (c.value = _, t.mode === "multiple" ? w(() => {
366
- M(), c.value = f.value, y.value = !0;
367
- }) : y.value = !1), A("focus", e);
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 = T.value) == null ? void 0 : e.blur) == null || l.call(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 (w(() => {
374
+ if (C(() => {
375
375
  ne.value = !1;
376
376
  }), t.mode == "combobox") {
377
- A("blur", e);
377
+ x("blur", e);
378
378
  return;
379
379
  }
380
- me.value = !1, t.focusOpen && !t.isExterControlCount && (M(), c.value = f.value, y.value = !0), A("blur", e);
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(), c.value = 100, w(() => {
383
- t.mode !== "combobox" && ge.value || t.focusOpen && (M(), c.value = f.value, y.value = !0);
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, w(() => {
398
+ Ce.value = e, E.value = !0, C(() => {
399
399
  if (E.value = !1, t.focusOpen) {
400
- M();
400
+ _();
401
401
  const l = e && t.mode !== "multiple";
402
- c.value = l ? _ : f.value, y.value = !l;
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 && c.value === 0 && (c.value = 100, w(() => {
410
- M(), c.value = f.value, y.value = !0;
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 M = () => {
416
+ const _ = () => {
417
417
  var G;
418
- if (C.value) {
418
+ if (S.value) {
419
419
  f.value = 0;
420
420
  return;
421
421
  }
422
- let e = (G = T.value) == null ? void 0 : G.$el;
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(Pe.value.querySelector(".ant-tag").offsetWidth) + 4;
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
- c.value = _;
432
- let k = 0;
433
- for (let h = 0; h < r.length - 1 && (r[h].classList.remove("ellipsis"), !r[h].classList.contains("ant-select-selection-overflow-item-rest")); h++)
434
- if (k += Math.ceil(r[h].offsetWidth), k <= n - u)
435
- h >= a.value.length - 1 && k < n ? f.value = a.value.length : f.value = h + 1;
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
- h >= a.value.length - 1 && k < n ? f.value = a.value.length : f.value = h;
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 h = r[0], xe = h.querySelector(".anticon-close") ? 86 : 69;
442
- h && !h.classList.contains("ant-select-selection-overflow-item-rest") && xe <= n - u && !Ne.tagRender && (f.value = 1, h.classList.add("ellipsis"));
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, c.value = _, await w(), await M(), E.value = !1, t.isExterControlCount && t.focusOpen) {
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
- c.value = e ? _ : f.value, y.value = !e;
455
+ d.value = e ? P : f.value, g.value = !e;
456
456
  } else
457
- c.value = f.value, y.value = !0;
457
+ d.value = f.value, g.value = !0;
458
458
  }
459
459
  );
460
460
  const et = (e) => {
461
- if (!C.value || t.mode === "combobox") return e;
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((k) => k === u);
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" && de();
472
+ ne.value = !1, t.mode === "combobox" && ce();
473
473
  let o = n === "antdv" ? et(e) : e;
474
474
  if (o === void 0) {
475
- P();
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" && C.value && (a.value = o), E.value = !0, A("update:model-value", o), A("change", o, l), P(), c.value = _, await w(), await M(), E.value = !1, t.isExterControlCount && t.focusOpen) {
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
- c.value = u ? _ : f.value, y.value = !u;
481
- } else t.mode === "multiple" && t.focusOpen && (c.value = f.value, y.value = !0);
482
- t.focusOpen || (c.value = f.value);
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: T,
485
+ $select: A,
486
486
  toChangeMaxCount: Yl
487
487
  }), (e, l) => {
488
488
  const n = nt("v-nodes");
489
- return v(), b(
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
- y.value ? "show-ellipsis" : ""
496
+ g.value ? "show-ellipsis" : ""
497
497
  ]]),
498
498
  ref_key: "$selectBox",
499
499
  ref: B,
500
- style: j(zl.value),
500
+ style: j(Ol.value),
501
501
  onClick: se(Jl, ["stop"])
502
502
  },
503
503
  [
504
- ce.value ? (v(), K(d(ct), {
504
+ de.value ? (v(), K(c(dt), {
505
505
  key: 0,
506
506
  ref_key: "inputTooltipRef",
507
- ref: Me,
507
+ ref: Le,
508
508
  placement: "top",
509
509
  "virtual-triggering": "",
510
- "virtual-ref": ce.value,
510
+ "virtual-ref": de.value,
511
511
  disabled: sl.value,
512
512
  content: ul.value
513
- }, null, 8, ["virtual-ref", "disabled", "content"])) : L("v-if", !0),
514
- Te((v(), K(d(ut), Le({ mode: fl.value }, Fl.value, {
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: T,
517
+ ref: A,
518
518
  options: xl.value,
519
- fieldNames: p.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 " + p.dropdownClassName,
530
+ dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
531
531
  maxTagCount: Tl.value,
532
532
  getPopupContainer: ql,
533
- dropdownStyle: Ll.value,
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: m((o) => [
541
- x(e.$slots, "option", ue(ie(o)), () => [
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(), b(
545
+ }, null, 8, ["vnodes"])) : (v(), y(
546
546
  ke,
547
547
  { key: 1 },
548
548
  [
549
- L(' :option="{value, label, [disabled, key, title]}" '),
550
- p.mode === "combobox" ? Te((v(), b("div", wt, [
549
+ V(' :option="{value, label, [disabled, key, title]}" '),
550
+ e.mode === "combobox" ? Te((v(), y("div", wt, [
551
551
  Ie(
552
- Z(o[V.value]),
552
+ Z(o[I.value]),
553
553
  1
554
554
  /* TEXT */
555
555
  )
556
556
  ])), [
557
- [d(ll)]
558
- ]) : (v(), b(
557
+ [c(ll)]
558
+ ]) : (v(), y(
559
559
  ke,
560
560
  { key: 1 },
561
561
  [
562
- L(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
563
- S("div", {
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(d(el), {
568
+ (v(), K(c(el), {
569
569
  class: "das-select-checkbox",
570
- modelValue: Ze.value.has(o[g.value]),
571
- key: o[g.value],
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(), b("div", At, [
574
+ Te((v(), y("div", At, [
575
575
  Ie(
576
- Z(o[V.value]),
576
+ Z(o[I.value]),
577
577
  1
578
578
  /* TEXT */
579
579
  )
580
580
  ])), [
581
- [d(ll)]
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: m((o) => [
595
- x(e.$slots, "tagRender", ue(ie(o)), () => [
596
- I(d(Ve), {
597
- closable: !C.value && o.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: m(() => [
602
- C.value ? (v(), b("span", {
601
+ default: h(() => [
602
+ S.value ? (v(), y("span", {
603
603
  key: 0,
604
- innerHTML: d(O)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
605
- }, null, 8, Tt)) : (v(), b(
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: m(({ menuNode: o }) => [
623
- x(e.$slots, "dropdownRender", ue(ie({ menuNode: o })), () => {
622
+ dropdownRender: h(({ menuNode: o }) => [
623
+ w(e.$slots, "dropdownRender", ue(ie({ menuNode: o })), () => {
624
624
  var u;
625
625
  return [
626
- _e.value === "combobox" ? (v(), b("div", kt, [
627
- I(n, { vnodes: o }, null, 8, ["vnodes"])
628
- ])) : _e.value === "custom" ? (v(), b("div", {
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
- I(n, { vnodes: o }, null, 8, ["vnodes"]),
634
- S(
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
- I(d(dt), Le({
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(cl, ["stop"]),
648
- onBlur: se(dl, ["stop"]),
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
- S(
652
+ b(
653
653
  "div",
654
654
  {
655
655
  class: "addBtn",
656
656
  onClick: Ee
657
657
  },
658
- Z(d(O)("添加")),
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(), b("div", It, [
667
- I(n, { vnodes: o }, null, 8, ["vnodes"]),
668
- (u = t.options) != null && u.length && t.showSelectAll ? (v(), b(
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
- S("div", Vt, [
677
- I(d(el), {
678
- modelValue: Ml.value,
679
- indeterminate: Ol.value,
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: m(() => [
683
+ default: h(() => [
684
684
  Ie(
685
- Z(d(O)("全选")),
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
- S("span", {
694
+ b("span", {
695
695
  class: "das-ui-dropdown-has-checked",
696
- innerHTML: d(O)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
697
- }, null, 8, Lt)
696
+ innerHTML: c(L)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
697
+ }, null, 8, _t)
698
698
  ],
699
699
  32
700
700
  /* NEED_HYDRATION */
701
- )) : L("v-if", !0)
701
+ )) : V("v-if", !0)
702
702
  ]))
703
703
  ];
704
704
  }, !0)
705
705
  ]),
706
- clearIcon: m(() => [
707
- x(e.$slots, "clearIcon", {}, () => [
708
- I(d(vt), { size: "medium" })
706
+ clearIcon: h(() => [
707
+ w(e.$slots, "clearIcon", {}, () => [
708
+ k(c(vt), { size: "medium" })
709
709
  ], !0)
710
710
  ]),
711
- maxTagPlaceholder: m((o) => [
712
- x(e.$slots, "maxTagPlaceholder", ue(ie(o)), () => [
713
- L(" 隐藏tag时显示的内容 "),
714
- I(d(Ve), {
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: m(() => [
718
- S("span", {
719
- innerHTML: d(O)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
720
- }, null, 8, Mt)
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
- L(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
725
+ V(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
726
726
  ], !0)
727
727
  ]),
728
- notFoundContent: m(() => [
729
- x(e.$slots, "notFoundContent", {}, () => [
730
- l[5] || (l[5] = S(
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: m(() => [
740
- x(e.$slots, "suffixIcon", {}, () => [
741
- I(d(ft), {
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: m(() => [
749
- x(e.$slots, "default", {}, void 0, !0)
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: m(() => [
757
- x(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
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: m(() => [
764
- x(e.$slots, "placeholder", {}, void 0, !0)
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: m(() => [
771
- x(e.$slots, "removeIcon", {}, void 0, !0)
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
- [d(it), { target: jl, x: !1 }],
777
- [d(ht), Nl]
776
+ [c(it), { target: jl, x: !1 }],
777
+ [c(ht), Nl]
778
778
  ]),
779
- p.error && p.errorLabel ? (v(), b(
779
+ e.error && e.errorLabel ? (v(), y(
780
780
  ke,
781
781
  { key: 1 },
782
782
  [
783
- p.errorMode === "default" ? (v(), b("div", Ot, [
784
- S(
783
+ e.errorMode === "default" ? (v(), y("div", Mt, [
784
+ b(
785
785
  "span",
786
786
  {
787
- style: j(Pl.value)
787
+ style: j(zl.value)
788
788
  },
789
- Z(p.errorLabel),
789
+ Z(e.errorLabel),
790
790
  5
791
791
  /* TEXT, STYLE */
792
792
  )
793
- ])) : L("v-if", !0),
794
- p.errorMode === "overlay" && Se.value ? (v(), K(d(pt), {
793
+ ])) : V("v-if", !0),
794
+ e.errorMode === "overlay" && Se.value ? (v(), K(c(pt), {
795
795
  key: 1,
796
- errorLabel: p.errorLabel,
797
- getEl: () => T.value.$el,
798
- errorModelZIndex: p.errorModelZIndex
799
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : L("v-if", !0)
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
- )) : L("v-if", !0),
804
- S(
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: Pe,
809
+ ref: ze,
810
810
  style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
811
811
  },
812
812
  [
813
- S("div", zt, [
814
- S("div", Pt, [
815
- S("span", _t, [
816
- I(d(Ve), {
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: m(() => [
820
- S("span", {
821
- innerHTML: d(O)("das-ui-select-selectedItemsCountWithPlaceholder", J.value)
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 = (p, N) => {
841
- const D = p.__vccOpts || p;
842
- for (const [t, A] of N)
843
- D[t] = A;
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(p, N) {
846
+ function Wt(M, N) {
847
847
  const D = Ct;
848
848
  return v(), K(
849
849
  D,
850
- Le({ class: "das-ui-select-option" }, p.$attrs),
850
+ _e({ class: "das-ui-select-option" }, M.$attrs),
851
851
  null,
852
852
  16
853
853
  /* FULL_PROPS */