@das-fed/ui 7.0.7-hot.17 → 7.0.7-hot.19

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 (222) hide show
  1. package/esm-map.json +2 -2
  2. package/package.json +5 -5
  3. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-BeqEuT6Z.js} +1 -1
  4. package/packages/business-components/ai-panel/index-BeqEuT6Z.js.gz +0 -0
  5. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DP1B0qnu.js} +1138 -1120
  6. package/packages/business-components/ai-panel/index-DP1B0qnu.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-d7mK0plW.js} +5 -5
  8. package/packages/business-components/ai-panel/index-d7mK0plW.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/app-container/index.js +75 -75
  11. package/packages/business-components/app-container/index.js.gz +0 -0
  12. package/packages/business-components/area-phone-select/index.js +87 -87
  13. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  14. package/packages/business-components/change-enterprises/index.js +19 -19
  15. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  16. package/packages/business-components/change-pwd/index.js +15 -15
  17. package/packages/business-components/change-pwd/index.js.gz +0 -0
  18. package/packages/business-components/currency-page/index.js +40 -40
  19. package/packages/business-components/currency-page/index.js.gz +0 -0
  20. package/packages/business-components/device-panel/index.js +265 -265
  21. package/packages/business-components/device-panel/index.js.gz +0 -0
  22. package/packages/business-components/device-panel/style.css +1 -1
  23. package/packages/business-components/device-panel/style.css.gz +0 -0
  24. package/packages/business-components/export-button/index.js +92 -92
  25. package/packages/business-components/export-button/index.js.gz +0 -0
  26. package/packages/business-components/import-button/index.js +191 -191
  27. package/packages/business-components/import-button/index.js.gz +0 -0
  28. package/packages/business-components/layout-breadcrumb/index.js +47 -47
  29. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  30. package/packages/business-components/model-table-dialog/index.js +232 -232
  31. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  32. package/packages/business-components/payment/api.d.ts +8 -0
  33. package/packages/business-components/payment/index.d.ts +9 -11
  34. package/packages/business-components/payment/index.js +186 -180
  35. package/packages/business-components/payment/index.js.gz +0 -0
  36. package/packages/business-components/payment/style.css +1 -1
  37. package/packages/business-components/payment/type.d.ts +2 -0
  38. package/packages/business-components/process-configuration/index.js +5 -5
  39. package/packages/business-components/process-configuration/index.js.gz +0 -0
  40. package/packages/business-components/process-configuration/style.css +1 -1
  41. package/packages/business-components/process-configuration/style.css.gz +0 -0
  42. package/packages/business-components/process-form/index.js +1154 -1134
  43. package/packages/business-components/process-form/index.js.gz +0 -0
  44. package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
  45. package/packages/business-components/process-log/index.js +329 -329
  46. package/packages/business-components/process-log/index.js.gz +0 -0
  47. package/packages/business-components/process-log/style.css +1 -1
  48. package/packages/business-components/process-log/style.css.gz +0 -0
  49. package/packages/business-components/process-search-form/index.js +54 -54
  50. package/packages/business-components/process-search-form/index.js.gz +0 -0
  51. package/packages/business-components/upload-file/index.js +46 -46
  52. package/packages/business-components/upload-file/index.js.gz +0 -0
  53. package/packages/business-components/upload-file/style.css +1 -1
  54. package/packages/business-components/urgent-panel/index.js +295 -295
  55. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  56. package/packages/business-components/video-dialog/index.d.ts +10 -0
  57. package/packages/business-components/video-dialog/index.js +396 -377
  58. package/packages/business-components/video-dialog/index.js.gz +0 -0
  59. package/packages/business-components/video-dialog/src/api.d.ts +1 -0
  60. package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
  61. package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
  62. package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
  63. package/packages/business-components/video-dialog/src/type.d.ts +7 -1
  64. package/packages/business-components/video-dialog/style.css +1 -1
  65. package/packages/business-components/video-dialog/style.css.gz +0 -0
  66. package/packages/components/alert/index.js +9 -9
  67. package/packages/components/alert/index.js.gz +0 -0
  68. package/packages/components/audio-video/index.js +141 -141
  69. package/packages/components/audio-video/index.js.gz +0 -0
  70. package/packages/components/autocomplete/index.js +39 -39
  71. package/packages/components/autocomplete/index.js.gz +0 -0
  72. package/packages/components/autocomplete/style.css +1 -1
  73. package/packages/components/autocomplete/style.css.gz +0 -0
  74. package/packages/components/breadcrumb/index.js +39 -39
  75. package/packages/components/breadcrumb/index.js.gz +0 -0
  76. package/packages/components/button/index.js +188 -188
  77. package/packages/components/button/index.js.gz +0 -0
  78. package/packages/components/calendar/index.js +172 -172
  79. package/packages/components/calendar/index.js.gz +0 -0
  80. package/packages/components/cascader/index.js +92 -92
  81. package/packages/components/cascader/index.js.gz +0 -0
  82. package/packages/components/cascader/style.css +1 -1
  83. package/packages/components/cascader/style.css.gz +0 -0
  84. package/packages/components/checkbox/index.js +176 -176
  85. package/packages/components/checkbox/index.js.gz +0 -0
  86. package/packages/components/checkbox/style.css +1 -1
  87. package/packages/components/checkbox/style.css.gz +0 -0
  88. package/packages/components/collapse-panel/index.js +16 -16
  89. package/packages/components/collapse-panel/index.js.gz +0 -0
  90. package/packages/components/collaspe/index.js +22 -22
  91. package/packages/components/collaspe/index.js.gz +0 -0
  92. package/packages/components/custom-search-item/index.js +36 -36
  93. package/packages/components/custom-search-item/index.js.gz +0 -0
  94. package/packages/components/date-picker/index.js +496 -496
  95. package/packages/components/date-picker/index.js.gz +0 -0
  96. package/packages/components/date-picker/style.css +1 -1
  97. package/packages/components/date-picker/style.css.gz +0 -0
  98. package/packages/components/dialog/index.js +89 -89
  99. package/packages/components/dialog/index.js.gz +0 -0
  100. package/packages/components/dimple-layout/index.js +73 -31
  101. package/packages/components/dimple-layout/index.js.gz +0 -0
  102. package/packages/components/dropdown/index.js +30 -30
  103. package/packages/components/dropdown/index.js.gz +0 -0
  104. package/packages/components/edit-table/index.d.ts +2 -2
  105. package/packages/components/edit-table/index.js +150 -150
  106. package/packages/components/edit-table/index.js.gz +0 -0
  107. package/packages/components/empty/index.js +32 -32
  108. package/packages/components/empty/index.js.gz +0 -0
  109. package/packages/components/error-overlay-model/index.js +30 -30
  110. package/packages/components/error-overlay-model/index.js.gz +0 -0
  111. package/packages/components/form/index.js +19 -19
  112. package/packages/components/form/index.js.gz +0 -0
  113. package/packages/components/form-item/index.js +715 -715
  114. package/packages/components/form-item/index.js.gz +0 -0
  115. package/packages/components/form-item/style.css +1 -1
  116. package/packages/components/form-item/style.css.gz +0 -0
  117. package/packages/components/hls-player/index.js +5229 -4588
  118. package/packages/components/hls-player/index.js.gz +0 -0
  119. package/packages/components/hls-player/src/type.d.ts +3 -0
  120. package/packages/components/hls-player/style.css +1 -1
  121. package/packages/components/hls-player/style.css.gz +0 -0
  122. package/packages/components/image-upload/index.js +184 -184
  123. package/packages/components/image-upload/index.js.gz +0 -0
  124. package/packages/components/image-viewer/index.js +566 -566
  125. package/packages/components/image-viewer/index.js.gz +0 -0
  126. package/packages/components/input/index.js +94 -94
  127. package/packages/components/input/index.js.gz +0 -0
  128. package/packages/components/input-dialog-select/index.js +86 -86
  129. package/packages/components/input-dialog-select/index.js.gz +0 -0
  130. package/packages/components/input-number/index.js +93 -93
  131. package/packages/components/input-number/index.js.gz +0 -0
  132. package/packages/components/input-number/style.css +1 -1
  133. package/packages/components/input-number/style.css.gz +0 -0
  134. package/packages/components/live-player/index.d.ts +2 -0
  135. package/packages/components/live-player/index.js +822 -814
  136. package/packages/components/live-player/index.js.gz +0 -0
  137. package/packages/components/live-player/src/type.d.ts +3 -0
  138. package/packages/components/live-player/style.css +1 -1
  139. package/packages/components/loading/index.js +45 -45
  140. package/packages/components/loading/index.js.gz +0 -0
  141. package/packages/components/menu-aside/index.js +558 -558
  142. package/packages/components/menu-aside/index.js.gz +0 -0
  143. package/packages/components/menu-header/index.js +16 -16
  144. package/packages/components/menu-header/index.js.gz +0 -0
  145. package/packages/components/pagination/index.js +100 -100
  146. package/packages/components/pagination/index.js.gz +0 -0
  147. package/packages/components/pagination/style.css +1 -1
  148. package/packages/components/pagination/style.css.gz +0 -0
  149. package/packages/components/popover/index.js +33 -33
  150. package/packages/components/popover/index.js.gz +0 -0
  151. package/packages/components/popup-mask/index.js +13 -13
  152. package/packages/components/popup-mask/index.js.gz +0 -0
  153. package/packages/components/progress/index.js +111 -111
  154. package/packages/components/progress/index.js.gz +0 -0
  155. package/packages/components/progress/style.css +1 -1
  156. package/packages/components/progress/style.css.gz +0 -0
  157. package/packages/components/radio/index.js +162 -162
  158. package/packages/components/radio/index.js.gz +0 -0
  159. package/packages/components/rich-editor/index.js +7906 -7889
  160. package/packages/components/rich-editor/index.js.gz +0 -0
  161. package/packages/components/scrollbar/index.js +2 -2
  162. package/packages/components/scrollbar/index.js.gz +0 -0
  163. package/packages/components/search/index.js +76 -76
  164. package/packages/components/search/index.js.gz +0 -0
  165. package/packages/components/search-form/index.js +598 -597
  166. package/packages/components/search-form/index.js.gz +0 -0
  167. package/packages/components/search-form/style.css +1 -1
  168. package/packages/components/search-form/style.css.gz +0 -0
  169. package/packages/components/select/index.js +284 -284
  170. package/packages/components/select/index.js.gz +0 -0
  171. package/packages/components/select/style.css +1 -1
  172. package/packages/components/select/style.css.gz +0 -0
  173. package/packages/components/select-input/index.js +76 -76
  174. package/packages/components/select-input/index.js.gz +0 -0
  175. package/packages/components/select-list/index.js +406 -406
  176. package/packages/components/select-list/index.js.gz +0 -0
  177. package/packages/components/select-list/style.css +1 -1
  178. package/packages/components/select-list/style.css.gz +0 -0
  179. package/packages/components/special-range-picker-month/index.js +154 -154
  180. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  181. package/packages/components/special-range-picker-month/style.css +1 -1
  182. package/packages/components/special-range-picker-month/style.css.gz +0 -0
  183. package/packages/components/special-range-picker-year/index.js +196 -196
  184. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  185. package/packages/components/special-range-picker-year/style.css +1 -1
  186. package/packages/components/special-range-picker-year/style.css.gz +0 -0
  187. package/packages/components/spin/index.js +30 -30
  188. package/packages/components/spin/index.js.gz +0 -0
  189. package/packages/components/split-panel/index.js +60 -60
  190. package/packages/components/split-panel/index.js.gz +0 -0
  191. package/packages/components/table/index.d.ts +253 -27
  192. package/packages/components/table/index.js +2061 -2061
  193. package/packages/components/table/index.js.gz +0 -0
  194. package/packages/components/table/src/Table.vue.d.ts +39 -5
  195. package/packages/components/tabs/index.js +109 -109
  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.js +52 -52
  200. package/packages/components/tooltip/index.js.gz +0 -0
  201. package/packages/components/tooltip/style.css +1 -1
  202. package/packages/components/tooltip/style.css.gz +0 -0
  203. package/packages/components/tree/index.js +748 -748
  204. package/packages/components/tree/index.js.gz +0 -0
  205. package/packages/components/tree/src/App.vue.d.ts +29 -5
  206. package/packages/components/tree-select/index.js +262 -262
  207. package/packages/components/tree-select/index.js.gz +0 -0
  208. package/packages/components/tree-select/src/App.vue.d.ts +116 -16
  209. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +116 -16
  210. package/packages/components/tree-table/index.js +224 -224
  211. package/packages/components/tree-table/index.js.gz +0 -0
  212. package/packages/components/tree-v2/index.d.ts +175 -27
  213. package/packages/components/tree-v2/index.js +614 -614
  214. package/packages/components/tree-v2/index.js.gz +0 -0
  215. package/packages/components/tree-v2/src/App.vue.d.ts +27 -5
  216. package/packages/components/upload/index.js +80 -80
  217. package/packages/components/upload/index.js.gz +0 -0
  218. package/packages/components/virtual-tree/index.js +61 -61
  219. package/packages/components/virtual-tree/index.js.gz +0 -0
  220. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  221. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  222. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
@@ -1,22 +1,22 @@
1
1
  import '@das-fed/ui/packages/components/input-dialog-select/style.css';
2
2
  import { withInstall as R } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as W, ref as s, computed as B, watch as j, nextTick as P, createElementBlock as c, openBlock as d, mergeProps as H, createElementVNode as D, createCommentVNode as g, createBlock as q, normalizeClass as G, unref as t, withDirectives as T, toDisplayString as M, Fragment as J, createVNode as Q, withModifiers as U } from "vue";
3
+ import { defineComponent as W, ref as s, computed as L, watch as j, nextTick as P, createElementBlock as f, openBlock as n, mergeProps as H, createElementVNode as D, createCommentVNode as h, createBlock as q, normalizeClass as G, unref as l, withDirectives as S, toDisplayString as M, Fragment as J, createVNode as Q, withModifiers as U } from "vue";
4
4
  import { DasAutoRegisterIcon as X, DasIcon as Y } from "@das-fed/ui/packages/components/icon/index";
5
- import { vDasTooltip as $ } from "@das-fed/ui/packages/components/text-tooltip/index";
6
- import { DasErrorOverlayModel as x } from "@das-fed/ui/packages/components/error-overlay-model/index";
7
- import { getVarValue as ee, setThemeRule as le } from "@das-fed/web/packages/theme/index";
8
- import { t as F, currentLang as te, setI18nRule as oe } from "@das-fed/web/packages/i18n/index";
9
- import { isEmpty as i } from "@das-fed/utils/common-tools";
10
- const ae = {
5
+ import { vDasTooltip as T } from "@das-fed/ui/packages/components/text-tooltip/index";
6
+ import { DasErrorOverlayModel as _ } from "@das-fed/ui/packages/components/error-overlay-model/index";
7
+ import { getVarValue as ee, setThemeRule as te } from "@das-fed/web/packages/theme/index";
8
+ import { t as $, currentLang as le, setI18nRule as ae } from "@das-fed/web/packages/i18n/index";
9
+ import { isEmpty as d } from "@das-fed/utils/common-tools";
10
+ const oe = {
11
11
  key: 0,
12
12
  class: "placeholder-text"
13
13
  }, re = {
14
14
  key: 1,
15
15
  class: "dialog-text"
16
- }, se = {
16
+ }, ie = {
17
17
  key: 2,
18
18
  class: "reset-plus"
19
- }, ie = { class: "das-input-dialog-select-label-content" }, de = ["title"], ne = /* @__PURE__ */ W({
19
+ }, se = { class: "das-input-dialog-select-label-content" }, de = ["title"], ne = /* @__PURE__ */ W({
20
20
  __name: "Index",
21
21
  props: {
22
22
  modelValue: {},
@@ -38,45 +38,45 @@ const ae = {
38
38
  noSetDefaultVal: { type: Boolean }
39
39
  },
40
40
  emits: ["update:modelValue", "open-dialog", "clear-dialog", "update:selectedOptions", "change"],
41
- setup(k, { emit: C }) {
41
+ setup(e, { emit: C }) {
42
42
  X({
43
43
  search: import("@das-fed/ui/packages/icons/search")
44
44
  });
45
- const l = k, a = C, h = s(!1), p = B(() => l.isView), E = B(() => l.placeholder ? l.placeholder : F("请选择")), N = B(() => `width:${l.width === "auto" ? "100%" : l.width}`);
46
- let r = s("");
47
- r.value = l.modelValue;
48
- const n = s(null), u = s(null);
49
- let f = s(""), z = s([]);
45
+ const t = e, r = C, b = s(!1), m = L(() => t.isView), B = L(() => t.placeholder ? t.placeholder : $("请选择")), F = L(() => `width:${t.width === "auto" ? "100%" : t.width}`);
46
+ let i = s("");
47
+ i.value = t.modelValue;
48
+ const u = s(null), c = s(null);
49
+ let v = s(""), x = s([]);
50
50
  j(
51
- () => l.selectedOptions,
52
- (e, m) => {
53
- let b = "", I = [], y = [];
54
- if (i(e) && i(m) && l.modelValue instanceof Array && !l.modelValue.length) {
55
- r.value = "", f.value = "";
51
+ () => t.selectedOptions,
52
+ (a, p) => {
53
+ let y = "", I = [], k = [];
54
+ if (d(a) && d(p) && t.modelValue instanceof Array && !t.modelValue.length) {
55
+ i.value = "", v.value = "";
56
56
  return;
57
57
  }
58
- if (i(e) && i(m)) return;
59
- if (typeof e == "string")
60
- b = e;
61
- else if (e instanceof Array) {
62
- if (!(e != null && e.length) && !(m != null && m.length)) {
63
- r.value = p.value || l.disabled ? "-" : "";
58
+ if (d(a) && d(p)) return;
59
+ if (typeof a == "string")
60
+ y = a;
61
+ else if (a instanceof Array) {
62
+ if (!(a != null && a.length) && !(p != null && p.length)) {
63
+ i.value = m.value || t.disabled ? "-" : "";
64
64
  return;
65
65
  }
66
- y = e.map((v) => {
67
- const o = v[l.optionsLabelKey];
66
+ k = a.map((g) => {
67
+ const o = g[t.optionsLabelKey];
68
68
  if (!(o === null || typeof o > "u" || o === ""))
69
69
  return o;
70
- }), I = e.map((v) => {
71
- const o = v[l.optionsValueKey];
70
+ }), I = a.map((g) => {
71
+ const o = g[t.optionsValueKey];
72
72
  if (!(o === null || typeof o > "u" || o === ""))
73
73
  return o;
74
- }), b = te.value === "zh-CN" ? y.join("、") : y.join(",");
74
+ }), y = le.value === "zh-CN" ? k.join("、") : k.join(",");
75
75
  }
76
- const A = l.noSetDefaultVal ? "" : "-";
77
- r.value = (p.value || l.disabled) && i(b) ? A : b, z.value = I, I.length || (f.value = ""), a("update:modelValue", z.value), a("change", z.value, l.selectedOptions), P(() => {
78
- var v, o, w, S;
79
- ((v = n == null ? void 0 : n.value) == null ? void 0 : v.offsetWidth) > 0 && ((o = u == null ? void 0 : u.value) == null ? void 0 : o.offsetWidth) > 0 && ((w = u == null ? void 0 : u.value) == null ? void 0 : w.offsetWidth) > ((S = n == null ? void 0 : n.value) == null ? void 0 : S.offsetWidth) - 20 && y.length > 1 ? f.value = I.length > 0 ? `${F("das-framework-input-dialog-select-total-items", y.length)}` : "" : f.value = "";
76
+ const A = t.noSetDefaultVal ? "" : "-";
77
+ i.value = (m.value || t.disabled) && d(y) ? A : y, x.value = I, I.length || (v.value = ""), r("update:modelValue", x.value), r("change", x.value, t.selectedOptions), P(() => {
78
+ var g, o, O, w;
79
+ ((g = u == null ? void 0 : u.value) == null ? void 0 : g.offsetWidth) > 0 && ((o = c == null ? void 0 : c.value) == null ? void 0 : o.offsetWidth) > 0 && ((O = c == null ? void 0 : c.value) == null ? void 0 : O.offsetWidth) > ((w = u == null ? void 0 : u.value) == null ? void 0 : w.offsetWidth) - 20 && k.length > 1 ? v.value = I.length > 0 ? `${$("das-framework-input-dialog-select-total-items", k.length)}` : "" : v.value = "";
80
80
  });
81
81
  },
82
82
  {
@@ -84,39 +84,39 @@ const ae = {
84
84
  immediate: !0
85
85
  }
86
86
  );
87
- const O = s();
87
+ const E = s();
88
88
  s({
89
89
  display: "block",
90
90
  color: ee("--das-ui-input-error-color").value,
91
91
  "white-space": "break-spaces"
92
92
  // 'word-break': 'break-all',
93
93
  });
94
- const V = () => {
95
- a("open-dialog");
96
- }, K = () => {
97
- f.value = "", r.value = "", a("update:selectedOptions", []), a("update:modelValue", []), a("clear-dialog"), a("change", [], []);
98
- }, L = s(!1), Z = () => {
99
- h.value = !0, l.errorMode === "overlay" && (L.value = !0);
100
- }, _ = () => {
101
- h.value = !1, l.errorMode === "overlay" && (L.value = !1);
94
+ const N = () => {
95
+ r("open-dialog");
96
+ }, V = () => {
97
+ v.value = "", i.value = "", r("update:selectedOptions", []), r("update:modelValue", []), r("clear-dialog"), r("change", [], []);
98
+ }, z = s(!1), K = () => {
99
+ b.value = !0, t.errorMode === "overlay" && (z.value = !0);
100
+ }, Z = () => {
101
+ b.value = !1, t.errorMode === "overlay" && (z.value = !1);
102
102
  };
103
- return (e, m) => (d(), c(
103
+ return (a, p) => (n(), f(
104
104
  "div",
105
105
  H({
106
106
  class: "das-ui-input-dialog-select",
107
107
  tabindex: "0",
108
- style: N.value
109
- }, e.$attrs, {
108
+ style: F.value
109
+ }, a.$attrs, {
110
110
  ref_key: "$refInputDialogSelect",
111
- ref: O,
112
- onMouseenter: Z,
113
- onMouseleave: _,
111
+ ref: E,
112
+ onMouseenter: K,
113
+ onMouseleave: Z,
114
114
  class: [
115
115
  { "normal-size": e.size === "default" },
116
116
  { "auto-size": e.size === "auto" },
117
117
  { "small-size": e.size === "small" },
118
118
  { "table-size": e.size === "table" },
119
- { isview: p.value },
119
+ { isview: m.value },
120
120
  { disabled: e.disabled }
121
121
  ]
122
122
  }),
@@ -125,96 +125,96 @@ const ae = {
125
125
  "div",
126
126
  {
127
127
  ref_key: "dialogTextWrap",
128
- ref: n,
128
+ ref: u,
129
129
  class: G([
130
130
  "das-ui-input-dialog-select-content",
131
131
  { "only-border-bottom": e.borderType === "bottom" },
132
132
  { "das-input-dialog-select-error": e.error },
133
- { "das-input-dialog-select-clear-mode": !t(i)(t(r)) && e.isClear }
133
+ { "das-input-dialog-select-clear-mode": !l(d)(l(i)) && e.isClear }
134
134
  ])
135
135
  },
136
136
  [
137
- t(i)(t(r)) && !t(i)(E.value) && !p.value && !e.disabled ? T((d(), c("div", ae, [
137
+ l(d)(l(i)) && !l(d)(B.value) && !m.value && !e.disabled ? S((n(), f("div", oe, [
138
138
  D(
139
139
  "span",
140
140
  null,
141
- M(E.value),
141
+ M(B.value),
142
142
  1
143
143
  /* TEXT */
144
144
  )
145
145
  ])), [
146
- [t($)]
147
- ]) : T((d(), c("div", re, [
146
+ [l(T)]
147
+ ]) : S((n(), f("div", re, [
148
148
  D(
149
149
  "span",
150
150
  {
151
151
  ref_key: "dialogText",
152
- ref: u
152
+ ref: c
153
153
  },
154
- M(t(r)),
154
+ M(l(i)),
155
155
  513
156
156
  /* TEXT, NEED_PATCH */
157
157
  )
158
158
  ])), [
159
- [t($)]
159
+ [l(T)]
160
160
  ]),
161
- p.value ? g("v-if", !0) : (d(), c(
161
+ m.value ? h("v-if", !0) : (n(), f(
162
162
  "span",
163
- se,
164
- M(t(f)),
163
+ ie,
164
+ M(l(v)),
165
165
  1
166
166
  /* TEXT */
167
167
  )),
168
- !p.value && !e.disabled ? (d(), c(
168
+ !m.value && !e.disabled ? (n(), f(
169
169
  J,
170
170
  { key: 3 },
171
171
  [
172
- !t(i)(t(r)) && e.isClear ? (d(), c("span", {
172
+ !l(d)(l(i)) && e.isClear ? (n(), f("span", {
173
173
  key: 0,
174
174
  class: "das-ui-input-dialog-select-clear",
175
- onClick: U(K, ["stop"])
176
- })) : g("v-if", !0),
177
- Q(t(Y), {
175
+ onClick: U(V, ["stop"])
176
+ })) : h("v-if", !0),
177
+ Q(l(Y), {
178
178
  class: "das-ui-input-dialog-select-search",
179
179
  icon: e.suffixIcon,
180
- onClick: V
180
+ onClick: N
181
181
  }, null, 8, ["icon"])
182
182
  ],
183
183
  64
184
184
  /* STABLE_FRAGMENT */
185
- )) : g("v-if", !0)
185
+ )) : h("v-if", !0)
186
186
  ],
187
187
  2
188
188
  /* CLASS */
189
189
  ),
190
- D("div", ie, [
191
- e.error && e.errorLabel && e.errorMode === "default" ? (d(), c("span", {
190
+ D("div", se, [
191
+ e.error && e.errorLabel && e.errorMode === "default" ? (n(), f("span", {
192
192
  key: 0,
193
193
  class: "das-input-dialog-select-error-label",
194
194
  title: e.errorLabel
195
- }, M(e.errorLabel), 9, de)) : g("v-if", !0)
195
+ }, M(e.errorLabel), 9, de)) : h("v-if", !0)
196
196
  ]),
197
- g(" 错误状态 "),
198
- e.error && e.errorLabel && h.value && e.errorMode === "overlay" && L.value ? (d(), q(t(x), {
197
+ h(" 错误状态 "),
198
+ e.error && e.errorLabel && b.value && e.errorMode === "overlay" && z.value ? (n(), q(l(_), {
199
199
  key: 0,
200
200
  errorLabel: e.errorLabel,
201
- getEl: () => O.value,
201
+ getEl: () => E.value,
202
202
  errorModelZIndex: e.errorModelZIndex
203
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : g("v-if", !0)
203
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : h("v-if", !0)
204
204
  ],
205
205
  16
206
206
  /* FULL_PROPS */
207
207
  ));
208
208
  }
209
- }), ue = (k, C) => {
210
- const l = k.__vccOpts || k;
211
- for (const [a, h] of C)
212
- l[a] = h;
213
- return l;
214
- }, ce = /* @__PURE__ */ ue(ne, [["__scopeId", "data-v-f6defb6e"]]), pe = {
209
+ }), ue = (e, C) => {
210
+ const t = e.__vccOpts || e;
211
+ for (const [r, b] of C)
212
+ t[r] = b;
213
+ return t;
214
+ }, ce = /* @__PURE__ */ ue(ne, [["__scopeId", "data-v-f6defb6e"]]), fe = {
215
215
  请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" },
216
216
  "das-framework-input-dialog-select-total-items": { "zh-CN": "共$0项", en: "Total $0 Items", _appCode: "framework" }
217
- }, fe = {
217
+ }, me = {
218
218
  "--demo-alert-bg": {
219
219
  light: "#fff",
220
220
  dark: "rgba(255,255,255,.2)"
@@ -230,8 +230,8 @@ const ae = {
230
230
  "--das-ui-color-overlay-error": "#FFDBE0",
231
231
  "--das-ui-input-error-color": "#FB2323"
232
232
  };
233
- oe(pe);
234
- le(fe);
233
+ ae(fe);
234
+ te(me);
235
235
  const De = R(ce);
236
236
  export {
237
237
  De as DasInputDialogSelect,
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/ui/packages/components/input-number/style.css';
2
- import { defineComponent as oe, mergeModels as F, useCssVars as re, computed as c, ref as u, useModel as ne, watch as M, onMounted as le, onBeforeUnmount as ue, createElementBlock as _, openBlock as I, normalizeClass as ae, createCommentVNode as g, createVNode as H, unref as k, withCtx as se, mergeProps as ie, Fragment as ve, createBlock as de, createElementVNode as ce, normalizeStyle as fe, toDisplayString as pe, nextTick as K } from "vue";
3
- import { withInstall as me } from "@das-fed/utils/with-install/index";
2
+ import { defineComponent as ne, mergeModels as H, useCssVars as oe, computed as f, ref as a, useModel as re, watch as M, onMounted as le, onBeforeUnmount as ue, createElementBlock as T, openBlock as I, normalizeClass as ae, createCommentVNode as g, createVNode as K, unref as k, withCtx as ie, mergeProps as se, Fragment as ce, createBlock as ve, createElementVNode as de, normalizeStyle as fe, toDisplayString as me, nextTick as O } from "vue";
3
+ import { withInstall as pe } from "@das-fed/utils/with-install/index";
4
4
  import { getVarValue as be, setThemeRule as he } from "@das-fed/web/packages/theme/index";
5
5
  import { ElInputNumber as Le } from "element-plus";
6
6
  import "element-plus/es/components/input-number/style/css";
@@ -12,10 +12,10 @@ const Me = {
12
12
  class: "das-input-number-error-label-content"
13
13
  }, Ie = {
14
14
  inheritAttrs: !1
15
- }, ge = /* @__PURE__ */ oe({
15
+ }, ge = /* @__PURE__ */ ne({
16
16
  ...Ie,
17
17
  __name: "App",
18
- props: /* @__PURE__ */ F({
18
+ props: /* @__PURE__ */ H({
19
19
  modelValue: { default: 0 },
20
20
  placeholder: {},
21
21
  size: { default: "default" },
@@ -34,41 +34,41 @@ const Me = {
34
34
  modelValue: { type: Number, default: 0 },
35
35
  modelModifiers: {}
36
36
  }),
37
- emits: /* @__PURE__ */ F(["update:modelValue", "input", "change"], ["update:modelValue"]),
38
- setup(f, { expose: V, emit: L }) {
39
- re((e) => ({
40
- "1b8e8582": O.value,
41
- "3c7330eb": U.value
37
+ emits: /* @__PURE__ */ H(["update:modelValue", "input", "change"], ["update:modelValue"]),
38
+ setup(o, { expose: V, emit: L }) {
39
+ oe((e) => ({
40
+ v1b8e8582: U.value,
41
+ v3c7330eb: j.value
42
42
  }));
43
- const o = f, p = L, r = u(null), a = u(null), w = u(null), y = c(() => o.isView || o.disabled), n = ne(f, "modelValue"), E = c(() => y.value ? o.noSetDefaultVal ? "" : "-" : o.placeholder ?? ""), O = c(() => o.width ? o.width : o.controlsPosition ? o.baseLine ? "230px" : "80px" : "100px"), U = c(() => {
44
- if (o.size === "default")
45
- return o.controlsPosition === "right" && o.baseLine ? "25px" : "28px";
46
- if (o.size === "table") return "30px";
47
- }), s = u(!1), j = c(
48
- () => !n.value && typeof n.value != "number" ? E.value : n.value
49
- ), B = c(() => {
43
+ const n = o, m = L, r = a(null), i = a(null), w = a(null), y = f(() => n.isView || n.disabled), l = re(o, "modelValue"), E = f(() => y.value ? n.noSetDefaultVal ? "" : "-" : n.placeholder ?? ""), U = f(() => n.width ? n.width : n.controlsPosition ? n.baseLine ? "230px" : "80px" : "100px"), j = f(() => {
44
+ if (n.size === "default")
45
+ return n.controlsPosition === "right" && n.baseLine ? "25px" : "28px";
46
+ if (n.size === "table") return "30px";
47
+ }), s = a(!1), G = f(
48
+ () => !l.value && typeof l.value != "number" ? E.value : l.value
49
+ ), B = f(() => {
50
50
  var e;
51
- return a.value ? (e = a.value.$el) == null ? void 0 : e.querySelector(".el-input__inner") : null;
51
+ return i.value ? (e = i.value.$el) == null ? void 0 : e.querySelector(".el-input__inner") : null;
52
52
  }), $ = () => {
53
- const e = o.size === "table" ? 12 : 14;
53
+ const e = n.size === "table" ? 12 : 14;
54
54
  return Be(E.value, e);
55
- }, i = u(0), v = u(0);
55
+ }, c = a(0), v = a(0);
56
56
  M(
57
57
  () => B.value,
58
58
  (e) => {
59
59
  setTimeout(() => {
60
60
  const t = e;
61
- t && (i.value = (t == null ? void 0 : t.offsetWidth) ?? 0, v.value = !n.value && typeof n.value != "number" ? $() : t == null ? void 0 : t.scrollWidth);
61
+ t && (c.value = (t == null ? void 0 : t.offsetWidth) ?? 0, v.value = !l.value && typeof l.value != "number" ? $() : t == null ? void 0 : t.scrollWidth);
62
62
  }, 200);
63
63
  }
64
64
  );
65
65
  const N = () => {
66
- K(() => {
66
+ O(() => {
67
67
  var e, t;
68
- B.value && (i.value = ((e = B.value) == null ? void 0 : e.offsetWidth) ?? 0, v.value = !n.value && typeof n.value != "number" ? $() : (t = B.value) == null ? void 0 : t.scrollWidth, (i.value === v.value || v.value - i.value < 1) && (s.value = !1));
68
+ B.value && (c.value = ((e = B.value) == null ? void 0 : e.offsetWidth) ?? 0, v.value = !l.value && typeof l.value != "number" ? $() : (t = B.value) == null ? void 0 : t.scrollWidth, (c.value === v.value || v.value - c.value < 1) && (s.value = !1));
69
69
  });
70
70
  };
71
- M(() => [n.value, E.value], N), M(
71
+ M(() => [l.value, E.value], N), M(
72
72
  () => {
73
73
  var e;
74
74
  return (e = w.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
@@ -83,148 +83,148 @@ const Me = {
83
83
  }));
84
84
  }
85
85
  );
86
- const G = (e) => {
86
+ const J = (e) => {
87
87
  const t = e.code;
88
88
  return ["KeyE", "Equal", "Minus"].includes(t) ? (e.returnValue = !1, !1) : !0;
89
- }, J = (e) => {
90
- !e && e !== 0 && (n.value = e), p("input", e);
91
- }, Q = (e, t) => {
92
- p("change", e, t);
93
- }, S = u(n.value), X = () => {
94
- S.value !== n.value && (p("change", n.value, S.value), S.value = n.value);
89
+ }, Q = (e) => {
90
+ !e && e !== 0 && (l.value = e), m("input", e);
91
+ }, X = (e, t) => {
92
+ m("change", e, t);
93
+ }, x = a(l.value), Y = () => {
94
+ x.value !== l.value && (m("change", l.value, x.value), x.value = l.value);
95
95
  }, P = () => {
96
- o.error || r.value.classList.add("input-inner-hover");
96
+ n.error || r.value.classList.add("input-inner-hover");
97
97
  }, D = () => {
98
98
  r.value.classList.contains("input-inner-hover") && r.value.classList.remove("input-inner-hover");
99
99
  }, z = () => {
100
- o.error || r.value.classList.add("decrease-btn-hover");
100
+ n.error || r.value.classList.add("decrease-btn-hover");
101
101
  }, q = () => {
102
102
  r.value.classList.contains("decrease-btn-hover") && r.value.classList.remove("decrease-btn-hover");
103
103
  }, W = () => {
104
- o.error || r.value.classList.add("increase-btn-hover");
104
+ n.error || r.value.classList.add("increase-btn-hover");
105
105
  }, C = () => {
106
106
  r.value.classList.contains("increase-btn-hover") && r.value.classList.remove("increase-btn-hover");
107
- }, T = u(!1), Y = u({
107
+ }, S = a(!1), _ = a({
108
108
  display: "block",
109
109
  color: be("--das-ui-input-error-color").value,
110
110
  "white-space": "break-spaces"
111
- }), d = u(), R = () => {
112
- N(), i.value === v.value || v.value - i.value < 1 ? s.value = !1 : (s.value = !0, d.value && clearTimeout(d.value)), o.errorMode === "overlay" && (T.value = !0);
111
+ }), d = a(), R = () => {
112
+ N(), c.value === v.value || v.value - c.value < 1 ? s.value = !1 : (s.value = !0, d.value && clearTimeout(d.value)), n.errorMode === "overlay" && (S.value = !0);
113
113
  }, A = () => {
114
114
  d.value = setTimeout(() => {
115
- o.errorMode === "overlay" ? T.value = !1 : s.value = !1;
115
+ n.errorMode === "overlay" ? S.value = !1 : s.value = !1;
116
116
  }, 200);
117
117
  }, ee = () => {
118
118
  var e, t;
119
- (e = a.value) == null || e.$el.addEventListener("mouseenter", R), (t = a.value) == null || t.$el.addEventListener("mouseleave", A);
119
+ (e = i.value) == null || e.$el.addEventListener("mouseenter", R), (t = i.value) == null || t.$el.addEventListener("mouseleave", A);
120
120
  }, te = () => {
121
121
  var e, t;
122
- (e = a.value) == null || e.$el.removeEventListener("mouseenter", R), (t = a.value) == null || t.$el.removeEventListener("mouseleave", A);
122
+ (e = i.value) == null || e.$el.removeEventListener("mouseenter", R), (t = i.value) == null || t.$el.removeEventListener("mouseleave", A);
123
123
  }, Z = () => {
124
- y.value || K(() => {
125
- var m, b, h;
126
- const e = (m = r.value) == null ? void 0 : m.querySelector(".el-input__inner");
124
+ y.value || O(() => {
125
+ var p, b, h;
126
+ const e = (p = r.value) == null ? void 0 : p.querySelector(".el-input__inner");
127
127
  e && (e.addEventListener("mouseenter", P), e.addEventListener("mouseleave", D));
128
128
  const t = (b = r.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
129
129
  t && (t.addEventListener("mouseenter", z), t.addEventListener("mouseleave", q));
130
- const l = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
131
- l && (l.addEventListener("mouseenter", W), l.addEventListener("mouseleave", C));
130
+ const u = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
131
+ u && (u.addEventListener("mouseenter", W), u.addEventListener("mouseleave", C));
132
132
  });
133
- }, x = () => {
134
- var m, b, h;
135
- const e = (m = r.value) == null ? void 0 : m.querySelector(".el-input__inner");
133
+ }, F = () => {
134
+ var p, b, h;
135
+ const e = (p = r.value) == null ? void 0 : p.querySelector(".el-input__inner");
136
136
  e && (e.removeEventListener("mouseenter", P), e.removeEventListener("mouseleave", D));
137
137
  const t = (b = r.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
138
138
  t && (t.removeEventListener("mouseenter", z), t.removeEventListener("mouseleave", q));
139
- const l = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
140
- l && (l.removeEventListener("mouseenter", W), l.removeEventListener("mouseleave", C));
139
+ const u = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
140
+ u && (u.removeEventListener("mouseenter", W), u.removeEventListener("mouseleave", C));
141
141
  };
142
142
  return M(
143
143
  () => y.value,
144
144
  (e) => {
145
145
  if (e) {
146
- if (o.controlsPosition === "right") return;
147
- x();
146
+ if (n.controlsPosition === "right") return;
147
+ F();
148
148
  } else {
149
- if (o.controlsPosition === "right") return;
149
+ if (n.controlsPosition === "right") return;
150
150
  Z();
151
151
  }
152
152
  }
153
153
  ), le(() => {
154
- ee(), o.controlsPosition !== "right" && Z();
154
+ ee(), n.controlsPosition !== "right" && Z();
155
155
  }), ue(() => {
156
- te(), o.controlsPosition !== "right" && x();
156
+ te(), n.controlsPosition !== "right" && F();
157
157
  }), V({
158
- $elInputNumber: a
159
- }), (e, t) => (I(), _(
158
+ $elInputNumber: i
159
+ }), (e, t) => (I(), T(
160
160
  "div",
161
161
  {
162
162
  ref_key: "$inputNumber",
163
163
  ref: r,
164
164
  class: ae([
165
165
  "das-ui-input-number",
166
- e.controlsPosition === "" ? "default" : e.baseLine ? "base-line" : "controls-right",
167
- e.isView ? "is-view" : "",
168
- e.disabled ? "is-disabled" : "",
169
- e.noSetDefaultVal ? "nodefault" : "",
170
- `size-${e.size}`
166
+ o.controlsPosition === "" ? "default" : o.baseLine ? "base-line" : "controls-right",
167
+ o.isView ? "is-view" : "",
168
+ o.disabled ? "is-disabled" : "",
169
+ o.noSetDefaultVal ? "nodefault" : "",
170
+ `size-${o.size}`
171
171
  ])
172
172
  },
173
173
  [
174
174
  g(" 这里tooltip不能使用v-model:visible 有响应问题 "),
175
- H(k(ye), {
175
+ K(k(ye), {
176
176
  ref_key: "inputTooltipRef",
177
177
  ref: w,
178
178
  effect: "light",
179
179
  placement: "top",
180
180
  manual: !0,
181
181
  visible: s.value,
182
- disabled: e.disabledTooltip,
183
- content: j.value
182
+ disabled: o.disabledTooltip,
183
+ content: G.value
184
184
  }, {
185
- default: se(() => [
186
- H(k(Le), ie({
185
+ default: ie(() => [
186
+ K(k(Le), se({
187
187
  ref_key: "$elInputNumber",
188
- ref: a,
189
- class: { "das-input-number-error": e.error },
190
- modelValue: n.value,
191
- "onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
188
+ ref: i,
189
+ class: { "das-input-number-error": o.error },
190
+ modelValue: l.value,
191
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => l.value = u),
192
192
  readonly: y.value,
193
- "controls-position": e.controlsPosition,
193
+ "controls-position": o.controlsPosition,
194
194
  placeholder: E.value
195
195
  }, e.$attrs, {
196
- onKeydown: G,
197
- onInput: J,
198
- onBlur: X,
199
- onChange: Q
196
+ onKeydown: J,
197
+ onInput: Q,
198
+ onBlur: Y,
199
+ onChange: X
200
200
  }), null, 16, ["class", "modelValue", "readonly", "controls-position", "placeholder"])
201
201
  ]),
202
202
  _: 1
203
203
  /* STABLE */
204
204
  }, 8, ["visible", "disabled", "content"]),
205
- e.error && e.errorLabel ? (I(), _(
206
- ve,
205
+ o.error && o.errorLabel ? (I(), T(
206
+ ce,
207
207
  { key: 0 },
208
208
  [
209
- e.errorMode === "default" ? (I(), _("div", Me, [
210
- ce(
209
+ o.errorMode === "default" ? (I(), T("div", Me, [
210
+ de(
211
211
  "span",
212
212
  {
213
- style: fe(Y.value)
213
+ style: fe(_.value)
214
214
  },
215
- pe(e.errorLabel),
215
+ me(o.errorLabel),
216
216
  5
217
217
  /* TEXT, STYLE */
218
218
  )
219
219
  ])) : g("v-if", !0),
220
- e.errorMode === "overlay" && T.value ? (I(), de(k(Ee), {
220
+ o.errorMode === "overlay" && S.value ? (I(), ve(k(Ee), {
221
221
  key: 1,
222
- errorLabel: e.errorLabel,
222
+ errorLabel: o.errorLabel,
223
223
  getEl: () => {
224
- var l;
225
- return (l = a.value) == null ? void 0 : l.$el;
224
+ var u;
225
+ return (u = i.value) == null ? void 0 : u.$el;
226
226
  },
227
- errorModelZIndex: e.errorModelZIndex
227
+ errorModelZIndex: o.errorModelZIndex
228
228
  }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : g("v-if", !0)
229
229
  ],
230
230
  64
@@ -235,12 +235,12 @@ const Me = {
235
235
  /* CLASS */
236
236
  ));
237
237
  }
238
- }), Ve = (f, V) => {
239
- const L = f.__vccOpts || f;
240
- for (const [o, p] of V)
241
- L[o] = p;
238
+ }), Ve = (o, V) => {
239
+ const L = o.__vccOpts || o;
240
+ for (const [n, m] of V)
241
+ L[n] = m;
242
242
  return L;
243
- }, Se = /* @__PURE__ */ Ve(ge, [["__scopeId", "data-v-97241aec"]]), Te = {
243
+ }, xe = /* @__PURE__ */ Ve(ge, [["__scopeId", "data-v-97241aec"]]), Se = {
244
244
  "--das-ui-input-number-border-view-color": "#E5E5E5",
245
245
  "--das-ui-input-number-color": "#212121",
246
246
  "--das-ui-input-number-border-color": "#D9D9D9",
@@ -251,8 +251,8 @@ const Me = {
251
251
  "--das-ui-input-number-overlay-error-color": "#FB2323",
252
252
  "--das-ui-input-number-default-placeholder-color": "#B2B2B2"
253
253
  };
254
- he(Te);
255
- const qe = me(Se), We = () => u(null), Ce = { name: "input-number 步进器" };
254
+ he(Se);
255
+ const qe = pe(xe), We = () => a(null), Ce = { name: "input-number 步进器" };
256
256
  export {
257
257
  qe as DasInputNumber,
258
258
  We as DasInputNumberRef,