@das-fed/upf-ui 6.4.0-dev.214 → 6.4.0-dev.216

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 (105) hide show
  1. package/front-end/i18n/front-end-page/dasui_en-US.js +4 -4
  2. package/front-end/i18n/front-end-page/dasui_zh-CN.js +4 -4
  3. package/front-end/i18n/front-end-page/dasui_zh-MO.js +4 -4
  4. package/package.json +5 -5
  5. package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
  6. package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
  8. package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
  9. package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
  10. package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
  11. package/packages/business-components/ai-panel/index.js +1 -1
  12. package/packages/business-components/change-enterprises/index.d.ts +5 -5
  13. package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -1
  14. package/packages/business-components/device-panel/index.js +8873 -8773
  15. package/packages/business-components/device-panel/index.js.gz +0 -0
  16. package/packages/business-components/echarts/index.js +2056 -2049
  17. package/packages/business-components/echarts/index.js.gz +0 -0
  18. package/packages/business-components/process-configuration/index.js +50 -50
  19. package/packages/business-components/process-configuration/index.js.gz +0 -0
  20. package/packages/business-components/process-form/index.js +149 -149
  21. package/packages/business-components/process-form/index.js.gz +0 -0
  22. package/packages/business-components/process-search-form/index.js +60 -60
  23. package/packages/business-components/process-search-form/index.js.gz +0 -0
  24. package/packages/business-components/process-table/index.js +130 -128
  25. package/packages/business-components/process-table/index.js.gz +0 -0
  26. package/packages/business-components/urgent-panel/index.js +904 -896
  27. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  28. package/packages/business-components/user-org-dialog/index.js +249 -246
  29. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  30. package/packages/business-components/video-dialog/index.js +1 -0
  31. package/packages/business-components/video-dialog/index.js.gz +0 -0
  32. package/packages/components/autocomplete/index.js +12 -6
  33. package/packages/components/autocomplete/index.js.gz +0 -0
  34. package/packages/components/calendar/index.js +104 -104
  35. package/packages/components/calendar/index.js.gz +0 -0
  36. package/packages/components/cascader/index.js +27 -27
  37. package/packages/components/cascader/index.js.gz +0 -0
  38. package/packages/components/checkbox/index.js +54 -54
  39. package/packages/components/checkbox/index.js.gz +0 -0
  40. package/packages/components/date-picker/index.js +459 -459
  41. package/packages/components/date-picker/index.js.gz +0 -0
  42. package/packages/components/dimple-layout/index.js +63 -61
  43. package/packages/components/dimple-layout/index.js.gz +0 -0
  44. package/packages/components/dropdown/index.js +23 -22
  45. package/packages/components/dropdown/index.js.gz +0 -0
  46. package/packages/components/edit-table/index.js +224 -223
  47. package/packages/components/edit-table/index.js.gz +0 -0
  48. package/packages/components/error-overlay-model/index.js +44 -42
  49. package/packages/components/error-overlay-model/index.js.gz +0 -0
  50. package/packages/components/form-item/index.js +67 -63
  51. package/packages/components/form-item/index.js.gz +0 -0
  52. package/packages/components/image-viewer/index.js +32 -32
  53. package/packages/components/image-viewer/index.js.gz +0 -0
  54. package/packages/components/input/index.js +51 -51
  55. package/packages/components/input/index.js.gz +0 -0
  56. package/packages/components/input-number/index.js +44 -44
  57. package/packages/components/input-number/index.js.gz +0 -0
  58. package/packages/components/live-player/index.js +834 -832
  59. package/packages/components/live-player/index.js.gz +0 -0
  60. package/packages/components/map/index.js +437 -431
  61. package/packages/components/map/index.js.gz +0 -0
  62. package/packages/components/menu-aside/index.js +1 -1
  63. package/packages/components/menu-aside/index.js.gz +0 -0
  64. package/packages/components/message/index.js +6 -6
  65. package/packages/components/message/index.js.gz +0 -0
  66. package/packages/components/radio-tabs/index.js +33 -33
  67. package/packages/components/radio-tabs/index.js.gz +0 -0
  68. package/packages/components/rich-editor/index.js +4586 -4556
  69. package/packages/components/rich-editor/index.js.gz +0 -0
  70. package/packages/components/scrollbar/index.js +135 -135
  71. package/packages/components/scrollbar/index.js.gz +0 -0
  72. package/packages/components/search/index.js +2 -2
  73. package/packages/components/search/index.js.gz +0 -0
  74. package/packages/components/select/index.js +92 -92
  75. package/packages/components/select/index.js.gz +0 -0
  76. package/packages/components/select-list/index.js +10 -6
  77. package/packages/components/select-list/index.js.gz +0 -0
  78. package/packages/components/special-range-picker-month/index.js +16 -14
  79. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  80. package/packages/components/special-range-picker-year/index.js +53 -51
  81. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  82. package/packages/components/spin/index.js +35 -35
  83. package/packages/components/spin/index.js.gz +0 -0
  84. package/packages/components/split-panel/index.js +102 -101
  85. package/packages/components/split-panel/index.js.gz +0 -0
  86. package/packages/components/table/index.js +604 -599
  87. package/packages/components/table/index.js.gz +0 -0
  88. package/packages/components/time-line/index.js +1 -1
  89. package/packages/components/time-line/index.js.gz +0 -0
  90. package/packages/components/tree/index.js +182 -173
  91. package/packages/components/tree/index.js.gz +0 -0
  92. package/packages/components/tree-select/index.js +81 -81
  93. package/packages/components/tree-select/index.js.gz +0 -0
  94. package/packages/components/tree-table/index.js +2 -2
  95. package/packages/components/tree-table/index.js.gz +0 -0
  96. package/packages/components/tree-v2/index.js +1240 -1208
  97. package/packages/components/tree-v2/index.js.gz +0 -0
  98. package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
  99. package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
  100. package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
  101. package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
  102. package/packages/components/input/index.d.ts +0 -4264
  103. package/packages/components/input/src/index.vue.d.ts +0 -1432
  104. package/packages/components/virtual-tree/src/App.vue.d.ts +0 -3974
  105. package/packages/components/virtual-tree/src/type.d.ts +0 -43
@@ -573,7 +573,7 @@ const kt = (e, t) => {
573
573
  return { upload: async (d, b = {}) => {
574
574
  const B = await f();
575
575
  if (!B.status) return;
576
- const E = d.name, U = B.data, F = r || ba(), $ = E.substring(E.lastIndexOf(".")).toLowerCase(), L = e.randomName ? `${p("")}${$}` : E, H = n ? `${F}/${n}/${L}` : `${F}/${L}`, q = {
576
+ const E = d.name, U = B.data, F = r || ba(), $ = E.substring(E.lastIndexOf(".")).toLowerCase(), J = e.randomName ? `${p("")}${$}` : E, H = n ? `${F}/${n}/${J}` : `${F}/${J}`, q = {
577
577
  accessKeyId: U.accessKeyId,
578
578
  secretAccessKey: U.secretAccessKey,
579
579
  sessionToken: U.sessionToken,
@@ -583,8 +583,8 @@ const kt = (e, t) => {
583
583
  isThumbnail: !0,
584
584
  autoContentType: c === !0 ? !0 : void 0,
585
585
  ...b
586
- }, [G, J] = await Ca({ baseUrl: t, requestConfig: s })(q).run();
587
- return G ? "error" : J.value;
586
+ }, [G, N] = await Ca({ baseUrl: t, requestConfig: s })(q).run();
587
+ return G ? "error" : N.value;
588
588
  } };
589
589
  }, Ia = () => ({ size2B: (t) => {
590
590
  isNaN(Number(t)) ? t = t.toString() : t = t + "M";
@@ -621,7 +621,7 @@ const kt = (e, t) => {
621
621
  var g;
622
622
  let o = e.accept ? (g = e.accept) == null ? void 0 : g.split(",") : [];
623
623
  return o.includes("image/jpg") && !o.includes("image/jpeg") && o.push("image/jpeg"), o.includes(".jpg") && !o.includes(".jpeg") && o.push(".jpeg"), e.acceptVideo && (o = [...o, ...h]), e.acceptAudio && (o = [...o, ...d]), o.join(",");
624
- }), U = P(() => i.value === "uploading"), F = Ce(0), $ = (o) => U.value ? F.value === o : !1, L = P(() => r.value ? [s(b.value, r.value)] : []), H = P(() => r.value ? r.value.map((o) => [s(b.value, o)]) : []), q = P(() => e.status !== "info" && (e.needDeleteBtn || e.needChangeBtn) || e.needDownloadBtn), G = P(() => e.status !== "info" && e.needDeleteBtn || e.needDownloadBtn), J = P(() => {
624
+ }), U = P(() => i.value === "uploading"), F = Ce(0), $ = (o) => U.value ? F.value === o : !1, J = P(() => r.value ? [s(b.value, r.value)] : []), H = P(() => r.value ? r.value.map((o) => [s(b.value, o)]) : []), q = P(() => e.status !== "info" && (e.needDeleteBtn || e.needChangeBtn) || e.needDownloadBtn), G = P(() => e.status !== "info" && e.needDeleteBtn || e.needDownloadBtn), N = P(() => {
625
625
  const o = [], g = e.previewBtnConfig;
626
626
  if (typeof g == "boolean")
627
627
  return g ? ["zoom_in", "zoom_out", "turn_left", "turn_right", "full_screen"] : [];
@@ -631,11 +631,11 @@ const kt = (e, t) => {
631
631
  }), we = () => {
632
632
  setTimeout(() => {
633
633
  const o = document.querySelector(".el-image-viewer__wrapper");
634
- o == null || o.classList.add("das-image-viewer-preview-btn-groups"), o == null || o.classList.add(...J.value);
634
+ console.log(N.value), o == null || o.classList.add("das-image-viewer-preview-btn-groups"), o == null || o.classList.add(...N.value);
635
635
  }, 0);
636
- }, N = (o) => {
636
+ }, M = (o) => {
637
637
  t("clickChangeIcon", o);
638
- }, M = (o, g) => {
638
+ }, L = (o, g) => {
639
639
  e.limitNum === 1 ? (r.value = "", t("update:modelValue", ""), t("deleteImage", o)) : (r.value.splice(g, 1), t("update:modelValue", r.value), t("deleteImage", o));
640
640
  }, ie = (o, g = 0) => {
641
641
  var ee;
@@ -697,7 +697,7 @@ const kt = (e, t) => {
697
697
  t("update:status", "error");
698
698
  return;
699
699
  }
700
- r.value.push(o), t("update:modelValue", r.value), t("update:status", "normal");
700
+ console.log(r, "========url"), r.value.push(o), t("update:modelValue", r.value), t("update:status", "normal");
701
701
  };
702
702
  return Mt(r, async () => {
703
703
  const o = e.limitNum ?? 1;
@@ -707,19 +707,19 @@ const kt = (e, t) => {
707
707
  immediate: !0
708
708
  }), {
709
709
  url: r,
710
- singlePreviewList: L,
710
+ singlePreviewList: J,
711
711
  multiPreviewList: H,
712
712
  isAccept: E,
713
713
  loading: U,
714
714
  uploadStatus: i,
715
- previewBtns: J,
715
+ previewBtns: N,
716
716
  operateShow: q,
717
717
  operateShow_Multi: G,
718
718
  singlePreviewName: f,
719
719
  multiPreviewName: p,
720
720
  getFileType: B,
721
- changeImg: N,
722
- delImg: M,
721
+ changeImg: M,
722
+ delImg: L,
723
723
  beforeupload: se,
724
724
  uploadImg: l,
725
725
  onDownload: ie,
@@ -848,14 +848,14 @@ const Da = (e) => {
848
848
  operateShow_Multi: U,
849
849
  singlePreviewName: F,
850
850
  multiPreviewName: $,
851
- changeImg: L,
851
+ changeImg: J,
852
852
  delImg: H,
853
853
  beforeupload: q,
854
854
  uploadImg: G,
855
- onDownload: J,
855
+ onDownload: N,
856
856
  handleImageClick: we,
857
- getFileType: N,
858
- isLoadingMulti: M
857
+ getFileType: M,
858
+ isLoadingMulti: L
859
859
  } = Ta(n, r), { needPreviewImage: ie, handleImageClick: se } = Da({
860
860
  needPreview: n.needPreview,
861
861
  handleImageClickProxy: we,
@@ -872,7 +872,7 @@ const Da = (e) => {
872
872
  spinning: a(b)
873
873
  }, {
874
874
  default: x(() => [
875
- a(N)(a(p)[0]) === "isImg" ? T((m(), S(a(Je), {
875
+ a(M)(a(p)[0]) === "isImg" ? T((m(), S(a(Je), {
876
876
  key: 0,
877
877
  class: ue(["image-context", [a(B)]]),
878
878
  "preview-teleported": !0,
@@ -884,7 +884,7 @@ const Da = (e) => {
884
884
  }, null, 8, ["class", "src", "preview-src-list", "fit"])), [
885
885
  [k, !a(b)]
886
886
  ]) : C("", !0),
887
- a(N)(a(p)[0]) === "isVideo" ? T((m(), S(a(ce), {
887
+ a(M)(a(p)[0]) === "isVideo" ? T((m(), S(a(ce), {
888
888
  key: 1,
889
889
  mode: a(d) === "info" || l.mode === "view" ? "view" : "normal",
890
890
  src: a(p)[0],
@@ -896,7 +896,7 @@ const Da = (e) => {
896
896
  }, null, 8, ["mode", "src", "needPreview", "player-props"])), [
897
897
  [k, !a(b)]
898
898
  ]) : C("", !0),
899
- a(N)(a(p)[0]) === "isAudio" ? T((m(), S(a(ce), {
899
+ a(M)(a(p)[0]) === "isAudio" ? T((m(), S(a(ce), {
900
900
  key: 2,
901
901
  mode: a(d) === "info" || l.mode === "view" ? "view" : "normal",
902
902
  src: a(p)[0],
@@ -919,12 +919,12 @@ const Da = (e) => {
919
919
  class: "operate-btn",
920
920
  size: "medium",
921
921
  "icon-color": "#fff",
922
- onClick: v[1] || (v[1] = (y) => a(J)(a(s)))
922
+ onClick: v[1] || (v[1] = (y) => a(N)(a(s)))
923
923
  })) : C("", !0),
924
924
  a(d) !== "info" && l.needChangeBtn ? (m(), I("div", {
925
925
  key: 1,
926
926
  class: "change-icon-box",
927
- onClick: v[2] || (v[2] = (y) => a(L)(a(s)))
927
+ onClick: v[2] || (v[2] = (y) => a(J)(a(s)))
928
928
  }, [
929
929
  l.openFileDialogOnClick ? (m(), S(a(Ve), {
930
930
  key: 0,
@@ -1000,12 +1000,12 @@ const Da = (e) => {
1000
1000
  style: le(l.style)
1001
1001
  }, [
1002
1002
  T(Y(a(ze), {
1003
- class: ue([{ "loading-border": a(M)(A) }]),
1003
+ class: ue([{ "loading-border": a(L)(A) }]),
1004
1004
  type: "component",
1005
- spinning: a(M)(A)
1005
+ spinning: a(L)(A)
1006
1006
  }, {
1007
1007
  default: x(() => [
1008
- a(N)(a(h)[A][0]) === "isImg" ? T((m(), S(a(Je), {
1008
+ a(M)(a(h)[A][0]) === "isImg" ? T((m(), S(a(Je), {
1009
1009
  key: 0,
1010
1010
  class: ue(["image-context", [a(B)]]),
1011
1011
  src: a(h)[A][0],
@@ -1015,9 +1015,9 @@ const Da = (e) => {
1015
1015
  onClick: (g) => a(se)(a(h)[A]),
1016
1016
  fit: "cover"
1017
1017
  }, null, 8, ["class", "src", "preview-src-list", "initial-index", "onClick"])), [
1018
- [k, !a(M)(A)]
1018
+ [k, !a(L)(A)]
1019
1019
  ]) : C("", !0),
1020
- a(N)(a(h)[A][0]) === "isVideo" ? T((m(), S(a(ce), {
1020
+ a(M)(a(h)[A][0]) === "isVideo" ? T((m(), S(a(ce), {
1021
1021
  key: 1,
1022
1022
  mode: a(d) === "info" || l.mode === "view" ? "view" : "normal",
1023
1023
  src: a(h)[A][0],
@@ -1027,9 +1027,9 @@ const Da = (e) => {
1027
1027
  fullPath: "",
1028
1028
  "player-props": { videoWidth: l.videoWidth, videoHeight: l.videoHeight }
1029
1029
  }, null, 8, ["mode", "src", "needPreview", "player-props"])), [
1030
- [k, !a(M)(A)]
1030
+ [k, !a(L)(A)]
1031
1031
  ]) : C("", !0),
1032
- a(N)(a(h)[A][0]) === "isAudio" ? T((m(), S(a(ce), {
1032
+ a(M)(a(h)[A][0]) === "isAudio" ? T((m(), S(a(ce), {
1033
1033
  key: 2,
1034
1034
  mode: a(d) === "info" || l.mode === "view" ? "view" : "normal",
1035
1035
  src: a(h)[A][0],
@@ -1039,7 +1039,7 @@ const Da = (e) => {
1039
1039
  type: "audio",
1040
1040
  fullPath: ""
1041
1041
  }, null, 8, ["mode", "src", "needPreview"])), [
1042
- [k, !a(M)(A)]
1042
+ [k, !a(L)(A)]
1043
1043
  ]) : C("", !0),
1044
1044
  !a(b) && a(U) ? (m(), I("div", {
1045
1045
  key: 3,
@@ -1051,12 +1051,12 @@ const Da = (e) => {
1051
1051
  class: "operate-btn",
1052
1052
  size: "medium",
1053
1053
  "icon-color": "#fff",
1054
- onClick: (g) => a(J)(y, A)
1054
+ onClick: (g) => a(N)(y, A)
1055
1055
  }, null, 8, ["onClick"])) : C("", !0),
1056
1056
  a(d) !== "info" && l.needChangeBtn ? (m(), I("div", {
1057
1057
  key: 1,
1058
1058
  class: "change-icon-box",
1059
- onClick: v[5] || (v[5] = (g) => a(L)(a(s)))
1059
+ onClick: v[5] || (v[5] = (g) => a(J)(a(s)))
1060
1060
  }, [
1061
1061
  l.openFileDialogOnClick ? (m(), S(a(Ve), {
1062
1062
  key: 0,
@@ -1098,7 +1098,7 @@ const Da = (e) => {
1098
1098
  T((m(), I("div", Ua, [
1099
1099
  Fe(Ne(((o = n.imageName) == null ? void 0 : o[A]) || a($)[A]), 1)
1100
1100
  ])), [
1101
- [k, y && l.showImageName && !a(M)(A)],
1101
+ [k, y && l.showImageName && !a(L)(A)],
1102
1102
  [a(_e)]
1103
1103
  ])
1104
1104
  ]);
@@ -70,12 +70,12 @@ function x(...e) {
70
70
  if (_e(e[0]) || Array.isArray(e[0]) ? ([n, t, s] = e, o = C) : [o, n, t, s] = e, !o)
71
71
  return Ee;
72
72
  Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
73
- const c = [], u = () => {
74
- c.forEach((a) => a()), c.length = 0;
75
- }, d = (a, i, m, b) => (a.addEventListener(i, m, b), () => a.removeEventListener(i, m, b)), r = I(() => [E(o), q(s)], ([a, i]) => {
76
- u(), a && c.push(...n.flatMap((m) => t.map((b) => d(a, m, b, i))));
73
+ const u = [], d = () => {
74
+ u.forEach((a) => a()), u.length = 0;
75
+ }, c = (a, i, m, b) => (a.addEventListener(i, m, b), () => a.removeEventListener(i, m, b)), r = I(() => [E(o), q(s)], ([a, i]) => {
76
+ d(), a && u.push(...n.flatMap((m) => t.map((b) => c(a, m, b, i))));
77
77
  }, { immediate: !0, flush: "post" }), f = () => {
78
- r(), u();
78
+ r(), d();
79
79
  };
80
80
  return J(f), f;
81
81
  }
@@ -95,58 +95,58 @@ var U = Object.getOwnPropertySymbols, Te = Object.prototype.hasOwnProperty, ze =
95
95
  return n;
96
96
  };
97
97
  function We(e, o, n = {}) {
98
- const t = n, { window: s = C } = t, c = Ce(t, ["window"]);
99
- let u;
100
- const d = Be(() => s && "ResizeObserver" in s), r = () => {
101
- u && (u.disconnect(), u = void 0);
98
+ const t = n, { window: s = C } = t, u = Ce(t, ["window"]);
99
+ let d;
100
+ const c = Be(() => s && "ResizeObserver" in s), r = () => {
101
+ d && (d.disconnect(), d = void 0);
102
102
  }, f = I(() => E(e), (i) => {
103
- r(), d.value && s && i && (u = new ResizeObserver(o), u.observe(i, c));
103
+ r(), c.value && s && i && (d = new ResizeObserver(o), d.observe(i, u));
104
104
  }, { immediate: !0, flush: "post" }), a = () => {
105
105
  r(), f();
106
106
  };
107
107
  return J(a), {
108
- isSupported: d,
108
+ isSupported: c,
109
109
  stop: a
110
110
  };
111
111
  }
112
112
  function Pe(e, o = { width: 0, height: 0 }, n = {}) {
113
- const { window: t = C, box: s = "content-box" } = n, c = h(() => {
113
+ const { window: t = C, box: s = "content-box" } = n, u = h(() => {
114
114
  var r, f;
115
115
  return (f = (r = E(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : f.includes("svg");
116
- }), u = v(o.width), d = v(o.height);
116
+ }), d = v(o.width), c = v(o.height);
117
117
  return We(e, ([r]) => {
118
118
  const f = s === "border-box" ? r.borderBoxSize : s === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
119
- if (t && c.value) {
119
+ if (t && u.value) {
120
120
  const a = E(e);
121
121
  if (a) {
122
122
  const i = t.getComputedStyle(a);
123
- u.value = parseFloat(i.width), d.value = parseFloat(i.height);
123
+ d.value = parseFloat(i.width), c.value = parseFloat(i.height);
124
124
  }
125
125
  } else if (f) {
126
126
  const a = Array.isArray(f) ? f : [f];
127
- u.value = a.reduce((i, { inlineSize: m }) => i + m, 0), d.value = a.reduce((i, { blockSize: m }) => i + m, 0);
127
+ d.value = a.reduce((i, { inlineSize: m }) => i + m, 0), c.value = a.reduce((i, { blockSize: m }) => i + m, 0);
128
128
  } else
129
- u.value = r.contentRect.width, d.value = r.contentRect.height;
129
+ d.value = r.contentRect.width, c.value = r.contentRect.height;
130
130
  }, n), I(() => E(e), (r) => {
131
- u.value = r ? o.width : 0, d.value = r ? o.height : 0;
131
+ d.value = r ? o.width : 0, c.value = r ? o.height : 0;
132
132
  }), {
133
- width: u,
134
- height: d
133
+ width: d,
134
+ height: c
135
135
  };
136
136
  }
137
137
  function ke(e, o = {}) {
138
138
  const { initialValue: n = !1 } = o, t = v(!1), s = h(() => E(e));
139
139
  x(s, "focus", () => t.value = !0), x(s, "blur", () => t.value = !1);
140
- const c = h({
140
+ const u = h({
141
141
  get: () => t.value,
142
- set(u) {
143
- var d, r;
144
- !u && t.value ? (d = s.value) == null || d.blur() : u && !t.value && ((r = s.value) == null || r.focus());
142
+ set(d) {
143
+ var c, r;
144
+ !d && t.value ? (c = s.value) == null || c.blur() : d && !t.value && ((r = s.value) == null || r.focus());
145
145
  }
146
146
  });
147
147
  return I(s, () => {
148
- c.value = n;
149
- }, { immediate: !0, flush: "post" }), { focused: c };
148
+ u.value = n;
149
+ }, { immediate: !0, flush: "post" }), { focused: u };
150
150
  }
151
151
  function $e(e = {}) {
152
152
  const {
@@ -154,20 +154,20 @@ function $e(e = {}) {
154
154
  touch: n = !0,
155
155
  resetOnTouchEnds: t = !1,
156
156
  initialValue: s = { x: 0, y: 0 },
157
- window: c = C,
158
- eventFilter: u
159
- } = e, d = v(s.x), r = v(s.y), f = v(null), a = (p) => {
160
- o === "page" ? (d.value = p.pageX, r.value = p.pageY) : o === "client" ? (d.value = p.clientX, r.value = p.clientY) : o === "movement" && (d.value = p.movementX, r.value = p.movementY), f.value = "mouse";
157
+ window: u = C,
158
+ eventFilter: d
159
+ } = e, c = v(s.x), r = v(s.y), f = v(null), a = (p) => {
160
+ o === "page" ? (c.value = p.pageX, r.value = p.pageY) : o === "client" ? (c.value = p.clientX, r.value = p.clientY) : o === "movement" && (c.value = p.movementX, r.value = p.movementY), f.value = "mouse";
161
161
  }, i = () => {
162
- d.value = s.x, r.value = s.y;
162
+ c.value = s.x, r.value = s.y;
163
163
  }, m = (p) => {
164
164
  if (p.touches.length > 0) {
165
165
  const g = p.touches[0];
166
- o === "page" ? (d.value = g.pageX, r.value = g.pageY) : o === "client" && (d.value = g.clientX, r.value = g.clientY), f.value = "touch";
166
+ o === "page" ? (c.value = g.pageX, r.value = g.pageY) : o === "client" && (c.value = g.clientX, r.value = g.clientY), f.value = "touch";
167
167
  }
168
- }, b = (p) => u === void 0 ? a(p) : u(() => a(p), {}), w = (p) => u === void 0 ? m(p) : u(() => m(p), {});
169
- return c && (x(c, "mousemove", b, { passive: !0 }), x(c, "dragover", b, { passive: !0 }), n && o !== "movement" && (x(c, "touchstart", w, { passive: !0 }), x(c, "touchmove", w, { passive: !0 }), t && x(c, "touchend", i, { passive: !0 }))), {
170
- x: d,
168
+ }, b = (p) => d === void 0 ? a(p) : d(() => a(p), {}), w = (p) => d === void 0 ? m(p) : d(() => m(p), {});
169
+ return u && (x(u, "mousemove", b, { passive: !0 }), x(u, "dragover", b, { passive: !0 }), n && o !== "movement" && (x(u, "touchstart", w, { passive: !0 }), x(u, "touchmove", w, { passive: !0 }), t && x(u, "touchend", i, { passive: !0 }))), {
170
+ x: c,
171
171
  y: r,
172
172
  sourceType: f
173
173
  };
@@ -176,11 +176,11 @@ function Le(e, o = {}) {
176
176
  const {
177
177
  handleOutside: n = !0,
178
178
  window: t = C
179
- } = o, { x: s, y: c, sourceType: u } = $e(o), d = v(e ?? (t == null ? void 0 : t.document.body)), r = v(0), f = v(0), a = v(0), i = v(0), m = v(0), b = v(0), w = v(!0);
179
+ } = o, { x: s, y: u, sourceType: d } = $e(o), c = v(e ?? (t == null ? void 0 : t.document.body)), r = v(0), f = v(0), a = v(0), i = v(0), m = v(0), b = v(0), w = v(!0);
180
180
  let p = () => {
181
181
  };
182
- return t && (p = I([d, s, c], () => {
183
- const g = E(d);
182
+ return t && (p = I([c, s, u], () => {
183
+ const g = E(c);
184
184
  if (!g)
185
185
  return;
186
186
  const {
@@ -190,14 +190,14 @@ function Le(e, o = {}) {
190
190
  height: B
191
191
  } = g.getBoundingClientRect();
192
192
  a.value = $ + t.pageXOffset, i.value = L + t.pageYOffset, m.value = B, b.value = S;
193
- const l = s.value - a.value, y = c.value - i.value;
193
+ const l = s.value - a.value, y = u.value - i.value;
194
194
  w.value = S === 0 || B === 0 || l < 0 || y < 0 || l > S || y > B, (n || !w.value) && (r.value = l, f.value = y);
195
195
  }, { immediate: !0 }), x(document, "mouseleave", () => {
196
196
  w.value = !0;
197
197
  })), {
198
198
  x: s,
199
- y: c,
200
- sourceType: u,
199
+ y: u,
200
+ sourceType: d,
201
201
  elementX: r,
202
202
  elementY: f,
203
203
  elementPositionX: a,
@@ -258,10 +258,10 @@ function Ne({
258
258
  const t = (f = G()) == null ? void 0 : f.props, { focused: s } = ke(h(() => {
259
259
  var a;
260
260
  return (a = e.value) == null ? void 0 : a.ref;
261
- })), c = v(!1), u = h(() => c.value && !s.value && t.isTitle), d = h(() => o.value ? o.value : n.value), r = async () => {
261
+ })), u = v(!1), d = h(() => u.value && !s.value && t.isTitle), c = h(() => o.value ? o.value : n.value), r = async () => {
262
262
  var i;
263
263
  const a = (i = e.value) == null ? void 0 : i.ref;
264
- a && (o.value || (a.value = n.value, await M()), c.value = a.scrollWidth > a.clientWidth, a.value = o.value);
264
+ a && (o.value || (a.value = n.value, await M()), u.value = a.scrollWidth > a.clientWidth, console.log("isOverflow", u.value), a.value = o.value);
265
265
  };
266
266
  return I(e, () => {
267
267
  e.value && r();
@@ -271,8 +271,8 @@ function Ne({
271
271
  M(r);
272
272
  }
273
273
  ), {
274
- showToolTip: u,
275
- tooltipContent: d
274
+ showToolTip: d,
275
+ tooltipContent: c
276
276
  };
277
277
  }
278
278
  const Fe = {
@@ -308,16 +308,16 @@ const Fe = {
308
308
  },
309
309
  emits: ["update:modelValue", "change"],
310
310
  setup(e, { expose: o, emit: n }) {
311
- const t = e, s = h(() => t.placeholder || me("请输入")), c = h(() => t.disabled ? "disabled" : t.isView ? "view" : t.error ? "error" : "default"), u = h(() => {
311
+ const t = e, s = h(() => t.placeholder || me("请输入")), u = h(() => t.disabled ? "disabled" : t.isView ? "view" : t.error ? "error" : "default"), d = h(() => {
312
312
  var l, y, _, R, A;
313
313
  return {
314
314
  "--das-input-width": xe(t.width ?? ((l = V[t.size]) == null ? void 0 : l.defaultWidth)),
315
315
  "--das-input-height": (y = V[t.size]) == null ? void 0 : y.height,
316
316
  "--das-input-font-size": (_ = V[t.size]) == null ? void 0 : _.fontSize,
317
- "--das-input-border-color": (R = F[c.value]) == null ? void 0 : R.color,
318
- "--das-input-message-color": (A = F[c.value]) == null ? void 0 : A.color
317
+ "--das-input-border-color": (R = F[u.value]) == null ? void 0 : R.color,
318
+ "--das-input-message-color": (A = F[u.value]) == null ? void 0 : A.color
319
319
  };
320
- }), d = h(() => [
320
+ }), c = h(() => [
321
321
  "das-ui-input",
322
322
  `das-ui-input--border-type-${t.borderType}`,
323
323
  {
@@ -344,8 +344,8 @@ const Fe = {
344
344
  }), (l, y) => (T(), W("div", {
345
345
  ref_key: "containerRef",
346
346
  ref: a,
347
- style: le(u.value),
348
- class: D(d.value)
347
+ style: le(d.value),
348
+ class: D(c.value)
349
349
  }, [
350
350
  N(O(ye), {
351
351
  effect: "light",
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/upf-ui/packages/components/input-number/style.css';
2
- import { defineComponent as re, mergeModels as F, useCssVars as oe, ref as u, computed as v, useModel as ne, watch as M, onMounted as le, onBeforeUnmount as ue, openBlock as g, createElementBlock as T, normalizeClass as ae, createVNode as H, unref as _, withCtx as se, mergeProps as ie, Fragment as de, createElementVNode as ce, normalizeStyle as ve, toDisplayString as fe, createCommentVNode as k, createBlock as pe, nextTick as K } from "vue";
2
+ import { defineComponent as oe, mergeModels as F, useCssVars as re, ref as u, computed as v, useModel as ne, watch as g, onMounted as le, onBeforeUnmount as ue, openBlock as M, createElementBlock as T, normalizeClass as ae, createVNode as H, unref as _, withCtx as se, mergeProps as ie, Fragment as de, createElementVNode as ce, normalizeStyle as ve, toDisplayString as fe, createCommentVNode as k, createBlock as pe, nextTick as K } from "vue";
3
3
  import { withInstall as me } from "@das-fed/upf-utils/with-install/index";
4
4
  import { getVarValue as be, setThemeRule as he } from "@das-fed/upf-web/packages/theme/index";
5
5
  import { ElInputNumber as Le } from "element-plus";
@@ -7,13 +7,13 @@ import "element-plus/es/components/input-number/style/css";
7
7
  import { DasTooltip as ye } from "@das-fed/upf-ui/packages/components/tooltip/index";
8
8
  import { DasErrorOverlayModel as Ee } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
9
9
  import { calcTextWidth as Be } from "@das-fed/upf-utils/common-tools";
10
- const Me = {
10
+ const ge = {
11
11
  key: 0,
12
12
  class: "das-input-number-error-label-content"
13
- }, ge = {
13
+ }, Me = {
14
14
  inheritAttrs: !1
15
- }, Ie = /* @__PURE__ */ re({
16
- ...ge,
15
+ }, Ie = /* @__PURE__ */ oe({
16
+ ...Me,
17
17
  __name: "App",
18
18
  props: /* @__PURE__ */ F({
19
19
  modelValue: { default: 0 },
@@ -36,30 +36,30 @@ const Me = {
36
36
  }),
37
37
  emits: /* @__PURE__ */ F(["update:modelValue", "input", "change"], ["update:modelValue"]),
38
38
  setup(f, { expose: I, emit: L }) {
39
- oe((e) => ({
39
+ re((e) => ({
40
40
  "3d2a86ca": O.value,
41
41
  "321ddcf2": U.value
42
42
  }));
43
- const r = f, p = L, o = u(null), a = u(null), w = u(null), y = v(() => r.isView || r.disabled), n = ne(f, "modelValue"), E = v(() => y.value ? r.noSetDefaultVal ? "" : "-" : r.placeholder ?? ""), O = v(() => r.width ? r.width : r.controlsPosition ? r.baseLine ? "230px" : "80px" : "100px"), U = v(() => {
44
- if (r.formSize)
45
- return r.formSize && {
43
+ const o = f, p = L, r = u(null), a = u(null), w = u(null), y = v(() => o.isView || o.disabled), n = ne(f, "modelValue"), E = v(() => y.value ? o.noSetDefaultVal ? "" : "-" : o.placeholder ?? ""), O = v(() => o.width ? o.width : o.controlsPosition ? o.baseLine ? "230px" : "80px" : "100px"), U = v(() => {
44
+ if (o.formSize)
45
+ return o.formSize && {
46
46
  small: "24px",
47
47
  default: "32px",
48
48
  large: "40px"
49
- }[r.formSize];
50
- if (r.size === "default")
51
- return r.controlsPosition === "right" && r.baseLine ? "25px" : "28px";
52
- if (r.size === "table") return "30px";
49
+ }[o.formSize];
50
+ if (o.size === "default")
51
+ return o.controlsPosition === "right" && o.baseLine ? "25px" : "28px";
52
+ if (o.size === "table") return "30px";
53
53
  }), s = u(!1), j = v(
54
54
  () => !n.value && typeof n.value != "number" ? E.value : n.value
55
55
  ), B = v(() => {
56
56
  var e;
57
57
  return a.value ? (e = a.value.$el) == null ? void 0 : e.querySelector(".el-input__inner") : null;
58
58
  }), $ = () => {
59
- const e = r.size === "table" ? 12 : 14;
59
+ const e = o.size === "table" ? 12 : 14;
60
60
  return Be(E.value, e);
61
61
  }, i = u(0), d = u(0);
62
- M(
62
+ g(
63
63
  () => B.value,
64
64
  (e) => {
65
65
  setTimeout(() => {
@@ -74,16 +74,16 @@ const Me = {
74
74
  B.value && (i.value = ((e = B.value) == null ? void 0 : e.offsetWidth) ?? 0, d.value = !n.value && typeof n.value != "number" ? $() : (t = B.value) == null ? void 0 : t.scrollWidth, (i.value === d.value || d.value - i.value < 1) && (s.value = !1));
75
75
  });
76
76
  };
77
- M(() => [n.value, E.value], z), M(
77
+ g(() => [n.value, E.value], z), g(
78
78
  () => {
79
79
  var e;
80
80
  return (e = w.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
81
81
  },
82
82
  (e) => {
83
83
  e && (e.addEventListener("mouseenter", function() {
84
- s.value = !0, c.value && clearTimeout(c.value);
84
+ console.log("进入tooltip"), s.value = !0, c.value && clearTimeout(c.value);
85
85
  }), e.addEventListener("mouseleave", function() {
86
- c.value = setTimeout(() => {
86
+ console.log("离开toolTip"), c.value = setTimeout(() => {
87
87
  s.value = !1;
88
88
  }, 200);
89
89
  }));
@@ -99,26 +99,26 @@ const Me = {
99
99
  }, S = u(n.value), X = () => {
100
100
  S.value !== n.value && (p("change", n.value, S.value), S.value = n.value);
101
101
  }, N = () => {
102
- r.error || o.value.classList.add("input-inner-hover");
102
+ o.error || r.value.classList.add("input-inner-hover");
103
103
  }, P = () => {
104
- o.value.classList.contains("input-inner-hover") && o.value.classList.remove("input-inner-hover");
104
+ r.value.classList.contains("input-inner-hover") && r.value.classList.remove("input-inner-hover");
105
105
  }, D = () => {
106
- r.error || o.value.classList.add("decrease-btn-hover");
106
+ o.error || r.value.classList.add("decrease-btn-hover");
107
107
  }, q = () => {
108
- o.value.classList.contains("decrease-btn-hover") && o.value.classList.remove("decrease-btn-hover");
108
+ r.value.classList.contains("decrease-btn-hover") && r.value.classList.remove("decrease-btn-hover");
109
109
  }, W = () => {
110
- r.error || o.value.classList.add("increase-btn-hover");
110
+ o.error || r.value.classList.add("increase-btn-hover");
111
111
  }, C = () => {
112
- o.value.classList.contains("increase-btn-hover") && o.value.classList.remove("increase-btn-hover");
112
+ r.value.classList.contains("increase-btn-hover") && r.value.classList.remove("increase-btn-hover");
113
113
  }, V = u(!1), Y = u({
114
114
  display: "block",
115
115
  color: be("--das-ui-input-error-color").value,
116
116
  "white-space": "break-spaces"
117
117
  }), c = u(), x = () => {
118
- z(), i.value === d.value || d.value - i.value < 1 ? s.value = !1 : (s.value = !0, c.value && clearTimeout(c.value)), r.errorMode === "overlay" && (V.value = !0);
118
+ z(), i.value === d.value || d.value - i.value < 1 ? s.value = !1 : (s.value = !0, c.value && clearTimeout(c.value)), o.errorMode === "overlay" && (V.value = !0);
119
119
  }, R = () => {
120
120
  c.value = setTimeout(() => {
121
- r.errorMode === "overlay" ? V.value = !1 : s.value = !1;
121
+ o.errorMode === "overlay" ? V.value = !1 : s.value = !1;
122
122
  }, 200);
123
123
  }, ee = () => {
124
124
  var e, t;
@@ -129,42 +129,42 @@ const Me = {
129
129
  }, A = () => {
130
130
  y.value || K(() => {
131
131
  var m, b, h;
132
- const e = (m = o.value) == null ? void 0 : m.querySelector(".el-input__inner");
132
+ const e = (m = r.value) == null ? void 0 : m.querySelector(".el-input__inner");
133
133
  e && (e.addEventListener("mouseenter", N), e.addEventListener("mouseleave", P));
134
- const t = (b = o.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
134
+ const t = (b = r.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
135
135
  t && (t.addEventListener("mouseenter", D), t.addEventListener("mouseleave", q));
136
- const l = (h = o.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
136
+ const l = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
137
137
  l && (l.addEventListener("mouseenter", W), l.addEventListener("mouseleave", C));
138
138
  });
139
139
  }, Z = () => {
140
140
  var m, b, h;
141
- const e = (m = o.value) == null ? void 0 : m.querySelector(".el-input__inner");
141
+ const e = (m = r.value) == null ? void 0 : m.querySelector(".el-input__inner");
142
142
  e && (e.removeEventListener("mouseenter", N), e.removeEventListener("mouseleave", P));
143
- const t = (b = o.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
143
+ const t = (b = r.value) == null ? void 0 : b.querySelector(".el-input-number__decrease");
144
144
  t && (t.removeEventListener("mouseenter", D), t.removeEventListener("mouseleave", q));
145
- const l = (h = o.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
145
+ const l = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
146
146
  l && (l.removeEventListener("mouseenter", W), l.removeEventListener("mouseleave", C));
147
147
  };
148
- return M(
148
+ return g(
149
149
  () => y.value,
150
150
  (e) => {
151
151
  if (e) {
152
- if (r.controlsPosition === "right") return;
152
+ if (o.controlsPosition === "right") return;
153
153
  Z();
154
154
  } else {
155
- if (r.controlsPosition === "right") return;
155
+ if (o.controlsPosition === "right") return;
156
156
  A();
157
157
  }
158
158
  }
159
159
  ), le(() => {
160
- ee(), r.controlsPosition !== "right" && A();
160
+ ee(), o.controlsPosition !== "right" && A();
161
161
  }), ue(() => {
162
- te(), r.controlsPosition !== "right" && Z();
162
+ te(), o.controlsPosition !== "right" && Z();
163
163
  }), I({
164
164
  $elInputNumber: a
165
- }), (e, t) => (g(), T("div", {
165
+ }), (e, t) => (M(), T("div", {
166
166
  ref_key: "$inputNumber",
167
- ref: o,
167
+ ref: r,
168
168
  class: ae([
169
169
  "das-ui-input-number",
170
170
  e.controlsPosition === "" ? "default" : e.baseLine ? "base-line" : "controls-right",
@@ -203,13 +203,13 @@ const Me = {
203
203
  ]),
204
204
  _: 1
205
205
  }, 8, ["visible", "disabled", "content"]),
206
- e.error && e.errorLabel ? (g(), T(de, { key: 0 }, [
207
- e.errorMode === "default" ? (g(), T("div", Me, [
206
+ e.error && e.errorLabel ? (M(), T(de, { key: 0 }, [
207
+ e.errorMode === "default" ? (M(), T("div", ge, [
208
208
  ce("span", {
209
209
  style: ve(Y.value)
210
210
  }, fe(e.errorLabel), 5)
211
211
  ])) : k("", !0),
212
- e.errorMode === "overlay" && V.value ? (g(), pe(_(Ee), {
212
+ e.errorMode === "overlay" && V.value ? (M(), pe(_(Ee), {
213
213
  key: 1,
214
214
  errorLabel: e.errorLabel,
215
215
  getEl: () => {
@@ -223,8 +223,8 @@ const Me = {
223
223
  }
224
224
  }), Se = (f, I) => {
225
225
  const L = f.__vccOpts || f;
226
- for (const [r, p] of I)
227
- L[r] = p;
226
+ for (const [o, p] of I)
227
+ L[o] = p;
228
228
  return L;
229
229
  }, Ve = /* @__PURE__ */ Se(Ie, [["__scopeId", "data-v-d059c64f"]]), Te = {
230
230
  "--das-ui-input-number-border-view-color": "#E5E5E5",