@das-fed/ui 6.4.0-dev.52 → 6.4.0-dev.54

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 (199) hide show
  1. package/esm-map.json +3 -1
  2. package/i18n-collection/en.js +407 -406
  3. package/i18n-collection/zh-CN.js +437 -437
  4. package/package.json +5 -5
  5. package/packages/business-components/app-container/index.d.ts +1 -0
  6. package/packages/business-components/app-container/index.js +152 -120
  7. package/packages/business-components/app-container/index.js.gz +0 -0
  8. package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
  9. package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
  10. package/packages/business-components/app-container/src/type.d.ts +1 -0
  11. package/packages/business-components/app-container/style.css +1 -1
  12. package/packages/business-components/app-container/style.css.gz +0 -0
  13. package/packages/business-components/app-container/theme/index.d.ts +1 -0
  14. package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
  15. package/packages/business-components/change-enterprises/index.js +51 -45
  16. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  17. package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
  18. package/packages/business-components/change-pwd/index.js +118 -99
  19. package/packages/business-components/change-pwd/index.js.gz +0 -0
  20. package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
  21. package/packages/business-components/currency-page/index.js +27 -20
  22. package/packages/business-components/currency-page/index.js.gz +0 -0
  23. package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
  24. package/packages/business-components/device-panel/index.js +4961 -4767
  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/i18n/index.d.ts +51 -0
  29. package/packages/business-components/export-button/index.js +117 -102
  30. package/packages/business-components/export-button/index.js.gz +0 -0
  31. package/packages/business-components/import-button/i18n/index.d.ts +103 -0
  32. package/packages/business-components/import-button/index.js +220 -192
  33. package/packages/business-components/import-button/index.js.gz +0 -0
  34. package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
  35. package/packages/business-components/model-table-dialog/index.js +663 -660
  36. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  37. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
  38. package/packages/business-components/model-table-dialog/style.css +1 -1
  39. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  40. package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
  41. package/packages/business-components/process-configuration/index.js +158 -130
  42. package/packages/business-components/process-configuration/index.js.gz +0 -0
  43. package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
  44. package/packages/business-components/process-form/apis.d.ts +1 -0
  45. package/packages/business-components/process-form/i18n/index.d.ts +279 -0
  46. package/packages/business-components/process-form/index.js +1170 -1071
  47. package/packages/business-components/process-form/index.js.gz +0 -0
  48. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  49. package/packages/business-components/process-form/style.css +1 -1
  50. package/packages/business-components/process-log/i18n/index.d.ts +33 -1
  51. package/packages/business-components/process-log/index.js +151 -146
  52. package/packages/business-components/process-log/index.js.gz +0 -0
  53. package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
  54. package/packages/business-components/process-search-form/index.d.ts +2 -2
  55. package/packages/business-components/process-search-form/index.js +420 -389
  56. package/packages/business-components/process-search-form/index.js.gz +0 -0
  57. package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
  58. package/packages/business-components/process-search-form/src/type.d.ts +1 -1
  59. package/packages/business-components/process-table/i18n/index.d.ts +35 -0
  60. package/packages/business-components/process-table/index.js +265 -254
  61. package/packages/business-components/process-table/index.js.gz +0 -0
  62. package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
  63. package/packages/business-components/upload-file/index.js +26 -22
  64. package/packages/business-components/upload-file/index.js.gz +0 -0
  65. package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
  66. package/packages/business-components/urgent-panel/index.js +900 -814
  67. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  68. package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
  69. package/packages/business-components/user-org-dialog/index.js +196 -186
  70. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  71. package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
  72. package/packages/business-components/video-dialog/index.js +199 -179
  73. package/packages/business-components/video-dialog/index.js.gz +0 -0
  74. package/packages/components/button/i18n/index.d.ts +1 -6
  75. package/packages/components/button/index.js +16 -21
  76. package/packages/components/button/index.js.gz +0 -0
  77. package/packages/components/calendar/i18n/index.d.ts +52 -44
  78. package/packages/components/calendar/index.js +77 -75
  79. package/packages/components/calendar/index.js.gz +0 -0
  80. package/packages/components/cascader/i18n/index.d.ts +7 -0
  81. package/packages/components/cascader/index.js +38 -35
  82. package/packages/components/cascader/index.js.gz +0 -0
  83. package/packages/components/color-picker/i18n/index.d.ts +7 -0
  84. package/packages/components/color-picker/index.js +37 -34
  85. package/packages/components/color-picker/index.js.gz +0 -0
  86. package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
  87. package/packages/components/custom-search-item/index.js +27 -24
  88. package/packages/components/custom-search-item/index.js.gz +0 -0
  89. package/packages/components/date-picker/i18n/index.d.ts +15 -0
  90. package/packages/components/date-picker/index.js +81 -76
  91. package/packages/components/date-picker/index.js.gz +0 -0
  92. package/packages/components/dialog/i18n/index.d.ts +6 -6
  93. package/packages/components/dialog/index.js +58 -58
  94. package/packages/components/dialog/index.js.gz +0 -0
  95. package/packages/components/dimple-layout/i18n/index.d.ts +43 -0
  96. package/packages/components/dimple-layout/index.js +1077 -1064
  97. package/packages/components/dimple-layout/index.js.gz +0 -0
  98. package/packages/components/dropdown/i18n/index.d.ts +7 -0
  99. package/packages/components/dropdown/index.js +32 -29
  100. package/packages/components/dropdown/index.js.gz +0 -0
  101. package/packages/components/empty/index.js +14 -16
  102. package/packages/components/empty/index.js.gz +0 -0
  103. package/packages/components/image-upload/i18n/index.d.ts +27 -3
  104. package/packages/components/image-upload/index.js +84 -78
  105. package/packages/components/image-upload/index.js.gz +0 -0
  106. package/packages/components/image-viewer/i18n/index.d.ts +31 -0
  107. package/packages/components/image-viewer/index.js +246 -237
  108. package/packages/components/image-viewer/index.js.gz +0 -0
  109. package/packages/components/input/i18n/index.d.ts +15 -0
  110. package/packages/components/input/index.js +50 -45
  111. package/packages/components/input/index.js.gz +0 -0
  112. package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
  113. package/packages/components/input-dialog-select/index.js +20 -23
  114. package/packages/components/input-dialog-select/index.js.gz +0 -0
  115. package/packages/components/live-player/i18n/index.d.ts +15 -0
  116. package/packages/components/live-player/index.js +15 -9
  117. package/packages/components/live-player/index.js.gz +0 -0
  118. package/packages/components/loading/i18n/index.d.ts +7 -0
  119. package/packages/components/loading/index.js +93 -90
  120. package/packages/components/loading/index.js.gz +0 -0
  121. package/packages/components/map/i18n/index.d.ts +23 -0
  122. package/packages/components/map/index.js +355 -347
  123. package/packages/components/map/index.js.gz +0 -0
  124. package/packages/components/menu-aside/i18n/index.d.ts +7 -0
  125. package/packages/components/menu-aside/index.js +221 -212
  126. package/packages/components/menu-aside/index.js.gz +0 -0
  127. package/packages/components/menu-aside/src/style-theme.d.ts +5 -0
  128. package/packages/components/menu-aside/style.css +1 -1
  129. package/packages/components/menu-aside/style.css.gz +0 -0
  130. package/packages/components/menu-aside/theme/base.d.ts +1 -0
  131. package/packages/components/menu-header/index.js +32 -26
  132. package/packages/components/menu-header/index.js.gz +0 -0
  133. package/packages/components/menu-header/src/style-theme.d.ts +5 -0
  134. package/packages/components/menu-header/theme/base.d.ts +1 -0
  135. package/packages/components/message/i18n/index.d.ts +7 -0
  136. package/packages/components/message/index.js +17 -14
  137. package/packages/components/message/index.js.gz +0 -0
  138. package/packages/components/notification/i18n/index.d.ts +7 -0
  139. package/packages/components/notification/index.js +10 -7
  140. package/packages/components/notification/index.js.gz +0 -0
  141. package/packages/components/pagination/i18n/index.d.ts +19 -0
  142. package/packages/components/pagination/index.js +81 -75
  143. package/packages/components/pagination/index.js.gz +0 -0
  144. package/packages/components/popover/i18n/index.d.ts +2 -2
  145. package/packages/components/preview/i18n/index.d.ts +1 -1
  146. package/packages/components/preview/index.js +1 -1
  147. package/packages/components/preview/index.js.gz +0 -0
  148. package/packages/components/rich-editor/i18n/index.d.ts +10 -3
  149. package/packages/components/rich-editor/index.js +4 -3
  150. package/packages/components/rich-editor/index.js.gz +0 -0
  151. package/packages/components/search/i18n/index.d.ts +25 -1
  152. package/packages/components/search/index.js +31 -28
  153. package/packages/components/search/index.js.gz +0 -0
  154. package/packages/components/select/i18n/index.d.ts +23 -0
  155. package/packages/components/select/index.js +204 -197
  156. package/packages/components/select/index.js.gz +0 -0
  157. package/packages/components/select-list/i18n/index.d.ts +4 -4
  158. package/packages/components/select-list/index.js +4 -4
  159. package/packages/components/select-list/index.js.gz +0 -0
  160. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
  161. package/packages/components/special-range-picker-month/index.js +15 -15
  162. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  163. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
  164. package/packages/components/special-range-picker-year/index.js +81 -81
  165. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  166. package/packages/components/spin/i18n/index.d.ts +7 -0
  167. package/packages/components/spin/index.js +35 -32
  168. package/packages/components/spin/index.js.gz +0 -0
  169. package/packages/components/table/i18n/index.d.ts +72 -2
  170. package/packages/components/table/index.js +1245 -1225
  171. package/packages/components/table/index.js.gz +0 -0
  172. package/packages/components/tabs/i18n/index.d.ts +15 -0
  173. package/packages/components/tabs/index.js +70 -65
  174. package/packages/components/tabs/index.js.gz +0 -0
  175. package/packages/components/time-line/i18n/index.d.ts +1 -1
  176. package/packages/components/time-line/index.js +6 -9
  177. package/packages/components/time-line/index.js.gz +0 -0
  178. package/packages/components/tooltip/i18n/index.d.ts +7 -0
  179. package/packages/components/tooltip/index.js +38 -35
  180. package/packages/components/tooltip/index.js.gz +0 -0
  181. package/packages/components/tree/i18n/index.d.ts +35 -0
  182. package/packages/components/tree/index.js +692 -682
  183. package/packages/components/tree/index.js.gz +0 -0
  184. package/packages/components/upload/i18n/index.d.ts +5 -5
  185. package/packages/components/upload/index.js +50 -50
  186. package/packages/components/upload/index.js.gz +0 -0
  187. package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
  188. package/packages/components/virtual-tree/index.js +35 -31
  189. package/packages/components/virtual-tree/index.js.gz +0 -0
  190. package/packages/icons/edit-3/index.d.ts +1 -0
  191. package/packages/icons/edit-3/index.js +17 -0
  192. package/packages/icons/edit-3/index.js.gz +0 -0
  193. package/packages/icons/edit-3/index.vue.d.ts +16 -0
  194. package/packages/icons/index.d.ts +2 -0
  195. package/packages/icons/index.js +2 -0
  196. package/packages/icons/right-3/index.d.ts +1 -0
  197. package/packages/icons/right-3/index.js +17 -0
  198. package/packages/icons/right-3/index.js.gz +0 -0
  199. package/packages/icons/right-3/index.vue.d.ts +16 -0
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ 导出表: {
3
+ "zh-CN": string;
4
+ en: string;
5
+ };
6
+ 正在导出中: {
7
+ "zh-CN": string;
8
+ en: string;
9
+ };
10
+ 导出失败: {
11
+ "zh-CN": string;
12
+ en: string;
13
+ };
14
+ 导出成功: {
15
+ "zh-CN": string;
16
+ en: string;
17
+ };
18
+ 导出进度: {
19
+ "zh-CN": string;
20
+ en: string;
21
+ };
22
+ 导出: {
23
+ "zh-CN": string;
24
+ en: string;
25
+ };
26
+ 导入: {
27
+ "zh-CN": string;
28
+ en: string;
29
+ };
30
+ 失败: {
31
+ "zh-CN": string;
32
+ en: string;
33
+ };
34
+ 部分数据校验不通过: {
35
+ "zh-CN": string;
36
+ en: string;
37
+ };
38
+ 请下载附件并修改: {
39
+ "zh-CN": string;
40
+ en: string;
41
+ };
42
+ 重新导入: {
43
+ "zh-CN": string;
44
+ en: string;
45
+ };
46
+ 部分: {
47
+ "zh-CN": string;
48
+ en: string;
49
+ };
50
+ };
51
+ export default _default;
@@ -1,15 +1,15 @@
1
1
  import '@das-fed/ui/packages/business-components/export-button/style.css';
2
2
  import { withInstall as X } from "@das-fed/utils/with-install/index";
3
- import { ref as p, defineComponent as G, computed as J, watch as H, openBlock as K, createElementBlock as Q, createVNode as V, unref as x, withCtx as Y, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as C } from "vue";
4
- import { t as g, i18n as h } from "@das-fed/web/packages/i18n/index";
5
- import { DasDialog as se } from "@das-fed/ui/packages/components/dialog/index";
6
- import { DasProgress as ae } from "@das-fed/ui/packages/components/progress/index";
7
- import { DasButton as oe } from "@das-fed/ui/packages/components/button/index";
8
- import { iotProgress as re } from "@das-fed/utils/api-services/modules/iot";
9
- import U from "dayjs";
10
- import { DasMessage as T } from "@das-fed/ui/packages/components/message/index";
11
- import { getConfig as E } from "@das-fed/utils/config";
12
- let _ = (a = 21) => {
3
+ import { ref as p, defineComponent as G, computed as J, watch as B, openBlock as K, createElementBlock as Q, createVNode as z, unref as y, withCtx as L, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
4
+ import { t as g, i18n as k, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
5
+ import { DasDialog as ae } from "@das-fed/ui/packages/components/dialog/index";
6
+ import { DasProgress as oe } from "@das-fed/ui/packages/components/progress/index";
7
+ import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
8
+ import { iotProgress as le } from "@das-fed/utils/api-services/modules/iot";
9
+ import D from "dayjs";
10
+ import { DasMessage as C } from "@das-fed/ui/packages/components/message/index";
11
+ import { getConfig as M } from "@das-fed/utils/config";
12
+ let Y = (a = 21) => {
13
13
  let l = "", e = crypto.getRandomValues(new Uint8Array(a));
14
14
  for (; a--; ) {
15
15
  let s = e[a] & 63;
@@ -17,74 +17,74 @@ let _ = (a = 21) => {
17
17
  }
18
18
  return l;
19
19
  };
20
- const le = re.get("progress"), ue = (a) => {
21
- let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), c, y = p(""), u = p(""), d = p(""), f = p(""), v = p(!1), P = p(""), k;
22
- const j = () => {
23
- u.value = "", d.value = "", f.value = "", v.value = !1, P.value = "";
24
- }, q = async (t, n = "", $ = "") => {
25
- o.value = "normal", i.value = 0, s.value = $ || g("导出进度"), e.value = !0;
20
+ const ne = le.get("progress"), ue = (a) => {
21
+ let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, h = p(""), n = p(""), c = p(""), f = p(""), v = p(!1), $ = p(""), P;
22
+ const O = () => {
23
+ n.value = "", c.value = "", f.value = "", v.value = !1, $.value = "";
24
+ }, _ = async (t, u = "", x = "") => {
25
+ o.value = "normal", i.value = 0, s.value = x || g("导出进度"), e.value = !0;
26
26
  const b = await (t == null ? void 0 : t());
27
27
  if (!b.status) {
28
28
  e.value = !1, o.value = "error";
29
29
  return;
30
30
  }
31
- D(b.taskId, "action", "");
32
- }, z = async (t, n = "", $ = "") => {
31
+ T(b.taskId, "action", "");
32
+ }, j = async (t, u = "", x = "") => {
33
33
  o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
34
34
  const b = await (t == null ? void 0 : t());
35
35
  if (!b.status) {
36
36
  e.value = !1, o.value = "error";
37
37
  return;
38
38
  }
39
- U().format("YYYYMMDDHHmmss") + "", D(b.taskId, "export", n || "", $);
40
- }, D = async (t, n, $, b = "") => {
41
- m.value = !0, B(t, n, $, b), c = setTimeout(() => {
39
+ D().format("YYYYMMDDHHmmss") + "", T(b.taskId, "export", u || "", x);
40
+ }, T = async (t, u, x, b = "") => {
41
+ m.value = !0, R(t, u, x, b), d = setTimeout(() => {
42
42
  }, 50);
43
- }, R = () => {
44
- clearTimeout(c), c = null, e.value = !1;
45
- }, B = async (t, n = "export", $, b = "") => {
46
- var L, M, S;
47
- const [A, r] = await le("", {
43
+ }, N = () => {
44
+ clearTimeout(d), d = null, e.value = !1;
45
+ }, R = async (t, u = "export", x, b = "") => {
46
+ var U, E, I;
47
+ const [q, r] = await ne("", {
48
48
  url: `progress/${t}`
49
49
  }).run();
50
- if (A) {
50
+ if (q) {
51
51
  m.value = !1;
52
52
  return;
53
53
  }
54
54
  i.value = r.percentage;
55
- const w = n == "export" ? g("导出") : g("导入");
55
+ const w = u == "export" ? g("导出") : g("导入");
56
56
  if (i.value == 100)
57
- if (y.value = r, m.value = !1, R(), n == "export")
58
- r.status == 1 ? (o.value = "success", O(`${E().baseURL}/oss${r.filePath}`, $, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${w}${g("失败")}`, T.error({
57
+ if (h.value = r, m.value = !1, N(), u == "export")
58
+ r.status == 1 ? (o.value = "success", H(`${M().baseURL}/oss${r.filePath}`, x, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${w}${g("失败")}`, C.error({
59
59
  message: r.message || `${w}${g("失败")}`,
60
60
  grouping: !0,
61
61
  repeatNum: 1
62
62
  }));
63
- else if (n == "import") {
63
+ else if (u == "import") {
64
64
  if (r.filePath) {
65
65
  o.value = "error";
66
- const F = (L = k.name) == null ? void 0 : L.substr(k.name.indexOf("."));
67
- (M = k.name) == null || M.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
- const N = (S = r.filePath) == null ? void 0 : S.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
- u.value = `${N}${F}`, d.value = k.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), P.value = `${E().baseURL}/oss${r.filePath}`;
66
+ const F = (U = P.name) == null ? void 0 : U.substr(P.name.indexOf("."));
67
+ (E = P.name) == null || E.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
+ const A = (I = r.filePath) == null ? void 0 : I.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
+ n.value = `${A}${F}`, c.value = P.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), $.value = `${M().baseURL}/oss${r.filePath}`;
70
70
  }
71
- I(r.status, w), r.status == 1 && (l.value = !1), a("success");
72
- } else n == "action" && (o.value = "success");
71
+ V(r.status, w), r.status == 1 && (l.value = !1), a("success");
72
+ } else u == "action" && (o.value = "success");
73
73
  else
74
- c && r.status != 2 ? c = setTimeout(() => {
75
- B(t, n, $, b);
76
- }, 50) : (y.value = r, m.value = !1, I(r.status, w), R(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
- }, I = (t, n) => {
78
- t == 1 ? (o.value = "success", T.success({
79
- message: `${n}成功`,
74
+ d && r.status != 2 ? d = setTimeout(() => {
75
+ R(t, u, x, b);
76
+ }, 50) : (h.value = r, m.value = !1, V(r.status, w), N(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
+ }, V = (t, u) => {
78
+ t == 1 ? (o.value = "success", C.success({
79
+ message: `${u}成功`,
80
80
  grouping: !0,
81
81
  repeatNum: 1
82
- }), u.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", T.error({
83
- message: `${n}${g("失败")}`,
82
+ }), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error", C.error({
83
+ message: `${u}${g("失败")}`,
84
84
  grouping: !0,
85
85
  repeatNum: 1
86
- })) : t == 3 && (o.value = "error", T.error({
87
- message: `${g("部分")}${n}${g("失败")}`,
86
+ })) : t == 3 && (o.value = "error", C.error({
87
+ message: `${g("部分")}${u}${g("失败")}`,
88
88
  grouping: !0,
89
89
  repeatNum: 1
90
90
  }));
@@ -96,23 +96,23 @@ const le = re.get("progress"), ue = (a) => {
96
96
  percent: i,
97
97
  progressStatus: o,
98
98
  progressLoading: m,
99
- progressResult: y,
100
- errorFileName: u,
101
- errorFileSize: d,
99
+ progressResult: h,
100
+ errorFileName: n,
101
+ errorFileSize: c,
102
102
  errorMessage: f,
103
103
  errorImport: v,
104
- errorFilePath: P,
105
- fileExport: z,
106
- fileAction: q,
104
+ errorFilePath: $,
105
+ fileExport: j,
106
+ fileAction: _,
107
107
  generateUniqueName: (t) => {
108
- const n = t == null ? void 0 : t.substr(t.indexOf("."));
109
- return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${_()}${n}`;
108
+ const u = t == null ? void 0 : t.substr(t.indexOf("."));
109
+ return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${Y()}${u}`;
110
110
  },
111
- downloadFile: O,
112
- resetStataus: j,
113
- checkProgress: D
111
+ downloadFile: H,
112
+ resetStataus: O,
113
+ checkProgress: T
114
114
  };
115
- }, O = (a, l, e = "xlsx") => {
115
+ }, H = (a, l, e = "xlsx") => {
116
116
  const s = new XMLHttpRequest();
117
117
  s.open("get", a), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(i) {
118
118
  const o = new Blob([this.response], {
@@ -121,24 +121,24 @@ const le = re.get("progress"), ue = (a) => {
121
121
  if (window.navigator.msSaveOrOpenBlob)
122
122
  navigator.msSaveBlob(o, l);
123
123
  else {
124
- const c = document.createElement("a");
125
- c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
124
+ const d = document.createElement("a");
125
+ d.href = m, d.download = l, d.click(), window.URL.revokeObjectURL(m);
126
126
  }
127
127
  }, s.send();
128
- }, ne = (a, l) => {
129
- const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: c } = ue(l), y = p({}), u = p({}), d = (v, P) => {
130
- y.value = {
128
+ }, ie = (a, l) => {
129
+ const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ue(l), h = p({}), n = p({}), c = (v, $) => {
130
+ h.value = {
131
131
  ...v
132
- }, u.value = {
133
- ...P
132
+ }, n.value = {
133
+ ...$
134
134
  };
135
- const k = `${a.exportFileName}${U().format("YYYYMMDD")}-${U().format("HHmmss")}.${a.fileType}`;
136
- c(f, k, a.fileType);
135
+ const P = `${a.exportFileName}${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
136
+ d(f, P, a.fileType);
137
137
  }, f = async () => {
138
- let v = _();
139
- a.taskIdPosition === "params" && (y.value.taskId = v), a.taskIdPosition === "body" && (u.value.taskId = v);
140
- const [P, k] = await a.exportFun(u.value, { params: y.value }).run();
141
- return P ? { status: !1 } : { status: !0, taskId: v };
138
+ let v = Y();
139
+ a.taskIdPosition === "params" && (h.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
140
+ const [$, P] = await a.exportFun(n.value, { params: h.value }).run();
141
+ return $ ? { status: !1 } : { status: !0, taskId: v };
142
142
  };
143
143
  return {
144
144
  showProgressDialog: e,
@@ -146,9 +146,9 @@ const le = re.get("progress"), ue = (a) => {
146
146
  percent: i,
147
147
  progressStatus: o,
148
148
  progressLoading: m,
149
- exportList: d
149
+ exportList: c
150
150
  };
151
- }, ie = { class: "das-export-button" }, pe = /* @__PURE__ */ G({
151
+ }, pe = { class: "das-export-button" }, me = /* @__PURE__ */ G({
152
152
  __name: "App",
153
153
  props: {
154
154
  modelValue: {},
@@ -165,25 +165,25 @@ const le = re.get("progress"), ue = (a) => {
165
165
  emits: ["update:modelValue", "update:bodyParams", "success"],
166
166
  setup(a, { emit: l }) {
167
167
  const e = a, s = l;
168
- J(() => e.exportFileName || g("导出表")), H(e.modelValue, (u) => {
169
- s("update:modelValue", u);
170
- }), H(e.bodyParams, (u) => {
171
- s("update:bodyParams", u);
168
+ J(() => e.exportFileName || g("导出表")), B(e.modelValue, (n) => {
169
+ s("update:modelValue", n);
170
+ }), B(e.bodyParams, (n) => {
171
+ s("update:bodyParams", n);
172
172
  });
173
- const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ne(e, s), y = [h("正在导出中...").value, h("导出失败").value, h("导出成功").value];
174
- return (u, d) => (K(), Q("div", ie, [
175
- V(x(oe), {
176
- block: u.block,
173
+ const { showProgressDialog: i, percent: o, progressStatus: m, exportList: d } = ie(e, s), h = [k("正在导出中...").value, k("导出失败").value, k("导出成功").value];
174
+ return (n, c) => (K(), Q("div", pe, [
175
+ z(y(re), {
176
+ block: n.block,
177
177
  size: "middle",
178
- disabled: u.disabled,
178
+ disabled: n.disabled,
179
179
  "btn-type": e.btnType,
180
- ghost: u.ghost,
181
- onClick: d[0] || (d[0] = (f) => x(c)(e.modelValue, e.bodyParams))
180
+ ghost: n.ghost,
181
+ onClick: c[0] || (c[0] = (f) => y(d)(e.modelValue, e.bodyParams))
182
182
  }, {
183
- default: Y(() => [
184
- W(u.$slots, "default", {}, () => [
183
+ default: L(() => [
184
+ W(n.$slots, "default", {}, () => [
185
185
  Z(
186
- ee(x(h)("导出").value),
186
+ ee(y(k)("导出").value),
187
187
  1
188
188
  /* TEXT */
189
189
  )
@@ -193,23 +193,23 @@ const le = re.get("progress"), ue = (a) => {
193
193
  /* FORWARDED */
194
194
  }, 8, ["block", "disabled", "btn-type", "ghost"]),
195
195
  te(" 进度弹窗 "),
196
- V(x(se), {
196
+ z(y(ae), {
197
197
  size: "mini",
198
- title: x(h)("导出进度").value,
198
+ title: y(k)("导出进度").value,
199
199
  "is-feedback-img": !1,
200
- modelValue: x(i),
201
- "onUpdate:modelValue": d[2] || (d[2] = (f) => C(i) ? i.value = f : null),
200
+ modelValue: y(i),
201
+ "onUpdate:modelValue": c[2] || (c[2] = (f) => S(i) ? i.value = f : null),
202
202
  "append-to-body": !0,
203
203
  type: "feedback"
204
204
  }, {
205
- default: Y(() => [
206
- V(x(ae), {
207
- modelValue: x(o),
208
- "onUpdate:modelValue": d[1] || (d[1] = (f) => C(o) ? o.value = f : null),
205
+ default: L(() => [
206
+ z(y(oe), {
207
+ modelValue: y(o),
208
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => S(o) ? o.value = f : null),
209
209
  style: { "margin-top": "35px" },
210
210
  type: "circle",
211
- status: x(m),
212
- textMap: y
211
+ status: y(m),
212
+ textMap: h
213
213
  }, null, 8, ["modelValue", "status"])
214
214
  ]),
215
215
  _: 1
@@ -217,13 +217,28 @@ const le = re.get("progress"), ue = (a) => {
217
217
  }, 8, ["title", "modelValue"])
218
218
  ]));
219
219
  }
220
- }), me = (a, l) => {
220
+ }), de = (a, l) => {
221
221
  const e = a.__vccOpts || a;
222
222
  for (const [s, i] of l)
223
223
  e[s] = i;
224
224
  return e;
225
- }, ce = /* @__PURE__ */ me(pe, [["__scopeId", "data-v-49f0bb05"]]), we = X(ce);
225
+ }, ce = /* @__PURE__ */ de(me, [["__scopeId", "data-v-49f0bb05"]]), fe = {
226
+ 导出表: { "zh-CN": "导出表", en: "Export table" },
227
+ 正在导出中: { "zh-CN": "正在导出中", en: "Exporting" },
228
+ 导出失败: { "zh-CN": "导出失败", en: "Export failed" },
229
+ 导出成功: { "zh-CN": "导出成功", en: "Export successful" },
230
+ 导出进度: { "zh-CN": "导出进度", en: "Export progress" },
231
+ 导出: { "zh-CN": "导出", en: "Export" },
232
+ 导入: { "zh-CN": "导入", en: "Import" },
233
+ 失败: { "zh-CN": "失败", en: "Failure" },
234
+ 部分数据校验不通过: { "zh-CN": "部分数据校验不通过", en: "Some data validation failed" },
235
+ 请下载附件并修改: { "zh-CN": "请下载附件并修改", en: "Please download the attachment and modify it" },
236
+ 重新导入: { "zh-CN": "重新导入", en: "Re-import" },
237
+ 部分: { "zh-CN": "部分", en: "Partial" }
238
+ };
239
+ se(fe);
240
+ const Te = X(ce);
226
241
  export {
227
- we as DasExportButton,
228
- we as default
242
+ Te as DasExportButton,
243
+ Te as default
229
244
  };
@@ -0,0 +1,103 @@
1
+ declare const _default: {
2
+ 点击下载: {
3
+ "zh-CN": string;
4
+ en: string;
5
+ };
6
+ 仅支持上传: {
7
+ "zh-CN": string;
8
+ en: string;
9
+ };
10
+ 文件: {
11
+ "zh-CN": string;
12
+ en: string;
13
+ };
14
+ 重复数据以最后一条为准: {
15
+ "zh-CN": string;
16
+ en: string;
17
+ };
18
+ 取消: {
19
+ "zh-CN": string;
20
+ en: string;
21
+ };
22
+ 正在导入中: {
23
+ "zh-CN": string;
24
+ en: string;
25
+ };
26
+ 导入失败: {
27
+ "zh-CN": string;
28
+ en: string;
29
+ };
30
+ 正在导出中: {
31
+ "zh-CN": string;
32
+ en: string;
33
+ };
34
+ 导出失败: {
35
+ "zh-CN": string;
36
+ en: string;
37
+ };
38
+ 导出成功: {
39
+ "zh-CN": string;
40
+ en: string;
41
+ };
42
+ 文件格式错误: {
43
+ "zh-CN": string;
44
+ en: string;
45
+ };
46
+ 请重新上传: {
47
+ "zh-CN": string;
48
+ en: string;
49
+ };
50
+ 文件大小不超过: {
51
+ "zh-CN": string;
52
+ en: string;
53
+ };
54
+ 请上传文件: {
55
+ "zh-CN": string;
56
+ en: string;
57
+ };
58
+ 导入进度: {
59
+ "zh-CN": string;
60
+ en: string;
61
+ };
62
+ 导入成功: {
63
+ "zh-CN": string;
64
+ en: string;
65
+ };
66
+ 导出进度: {
67
+ "zh-CN": string;
68
+ en: string;
69
+ };
70
+ 导出: {
71
+ "zh-CN": string;
72
+ en: string;
73
+ };
74
+ 导入: {
75
+ "zh-CN": string;
76
+ en: string;
77
+ };
78
+ 失败: {
79
+ "zh-CN": string;
80
+ en: string;
81
+ };
82
+ 部分数据校验不通过: {
83
+ "zh-CN": string;
84
+ en: string;
85
+ };
86
+ 请下载附件并修改: {
87
+ "zh-CN": string;
88
+ en: string;
89
+ };
90
+ 重新导入: {
91
+ "zh-CN": string;
92
+ en: string;
93
+ };
94
+ 成功: {
95
+ "zh-CN": string;
96
+ en: string;
97
+ };
98
+ 部分: {
99
+ "zh-CN": string;
100
+ en: string;
101
+ };
102
+ };
103
+ export default _default;