@das-fed/ui 6.4.0-dev.54.8 → 6.4.0-dev.55

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 (127) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -3
  3. package/packages/business-components/change-pwd/i18n/index.d.ts +26 -34
  4. package/packages/business-components/change-pwd/index.js +66 -65
  5. package/packages/business-components/change-pwd/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/i18n/index.d.ts +172 -0
  7. package/packages/business-components/device-panel/index.js +331 -261
  8. package/packages/business-components/device-panel/index.js.gz +0 -0
  9. package/packages/business-components/export-button/i18n/index.d.ts +16 -20
  10. package/packages/business-components/export-button/index.js +88 -86
  11. package/packages/business-components/export-button/index.js.gz +0 -0
  12. package/packages/business-components/import-button/i18n/index.d.ts +34 -30
  13. package/packages/business-components/import-button/index.js +148 -144
  14. package/packages/business-components/import-button/index.js.gz +0 -0
  15. package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -6
  16. package/packages/business-components/model-table-dialog/index.js +82 -83
  17. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  18. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +17 -49
  19. package/packages/business-components/model-table-dialog/style.css +1 -1
  20. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  21. package/packages/business-components/process-configuration/i18n/index.d.ts +37 -29
  22. package/packages/business-components/process-configuration/index.js +103 -92
  23. package/packages/business-components/process-configuration/index.js.gz +0 -0
  24. package/packages/business-components/process-form/i18n/index.d.ts +109 -69
  25. package/packages/business-components/process-form/index.js +621 -580
  26. package/packages/business-components/process-form/index.js.gz +0 -0
  27. package/packages/business-components/process-form/style.css +1 -1
  28. package/packages/business-components/process-log/i18n/index.d.ts +4 -0
  29. package/packages/business-components/process-log/index.js +29 -28
  30. package/packages/business-components/process-log/index.js.gz +0 -0
  31. package/packages/business-components/process-search-form/i18n/index.d.ts +9 -9
  32. package/packages/business-components/process-search-form/index.js +77 -80
  33. package/packages/business-components/process-search-form/index.js.gz +0 -0
  34. package/packages/business-components/process-table/i18n/index.d.ts +8 -8
  35. package/packages/business-components/process-table/index.js +36 -36
  36. package/packages/business-components/process-table/index.js.gz +0 -0
  37. package/packages/business-components/upload-file/i18n/index.d.ts +2 -2
  38. package/packages/business-components/upload-file/index.js +45 -42
  39. package/packages/business-components/upload-file/index.js.gz +0 -0
  40. package/packages/business-components/urgent-panel/i18n/index.d.ts +28 -0
  41. package/packages/business-components/urgent-panel/index.js +595 -576
  42. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  43. package/packages/business-components/user-org-dialog/i18n/index.d.ts +7 -3
  44. package/packages/business-components/user-org-dialog/index.js +92 -91
  45. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  46. package/packages/business-components/video-dialog/i18n/index.d.ts +29 -17
  47. package/packages/business-components/video-dialog/index.js +116 -113
  48. package/packages/business-components/video-dialog/index.js.gz +0 -0
  49. package/packages/components/button/index.js +54 -56
  50. package/packages/components/button/index.js.gz +0 -0
  51. package/packages/components/image-upload/i18n/index.d.ts +9 -21
  52. package/packages/components/image-upload/index.js +92 -92
  53. package/packages/components/image-upload/index.js.gz +0 -0
  54. package/packages/components/image-viewer/i18n/index.d.ts +1 -30
  55. package/packages/components/image-viewer/index.js +213 -219
  56. package/packages/components/image-viewer/index.js.gz +0 -0
  57. package/packages/components/input/i18n/index.d.ts +3 -3
  58. package/packages/components/input/index.js +1 -1
  59. package/packages/components/input/index.js.gz +0 -0
  60. package/packages/components/input-dialog-select/i18n/index.d.ts +1 -6
  61. package/packages/components/input-dialog-select/index.js +49 -51
  62. package/packages/components/input-dialog-select/index.js.gz +0 -0
  63. package/packages/components/live-player/i18n/index.d.ts +3 -7
  64. package/packages/components/live-player/index.js +7 -5
  65. package/packages/components/live-player/index.js.gz +0 -0
  66. package/packages/components/live-player/style.css +1 -1
  67. package/packages/components/loading/i18n/index.d.ts +1 -1
  68. package/packages/components/loading/index.js +1 -3
  69. package/packages/components/loading/index.js.gz +0 -0
  70. package/packages/components/map/i18n/index.d.ts +7 -11
  71. package/packages/components/map/index.js +168 -167
  72. package/packages/components/map/index.js.gz +0 -0
  73. package/packages/components/menu-aside/i18n/index.d.ts +1 -1
  74. package/packages/components/menu-aside/index.js +1 -3
  75. package/packages/components/menu-aside/index.js.gz +0 -0
  76. package/packages/components/message/i18n/index.d.ts +1 -1
  77. package/packages/components/message/index.js +1 -3
  78. package/packages/components/message/index.js.gz +0 -0
  79. package/packages/components/notification/i18n/index.d.ts +1 -1
  80. package/packages/components/notification/index.js +1 -3
  81. package/packages/components/notification/index.js.gz +0 -0
  82. package/packages/components/pagination/index.js +1 -1
  83. package/packages/components/pagination/index.js.gz +0 -0
  84. package/packages/components/popover/i18n/index.d.ts +2 -2
  85. package/packages/components/preview/i18n/index.d.ts +1 -1
  86. package/packages/components/preview/index.js +6 -7
  87. package/packages/components/preview/index.js.gz +0 -0
  88. package/packages/components/preview/style.css +1 -1
  89. package/packages/components/scrollbar/index.js +2 -2
  90. package/packages/components/scrollbar/index.js.gz +0 -0
  91. package/packages/components/scrollbar/style.css +1 -1
  92. package/packages/components/scrollbar/style.css.gz +0 -0
  93. package/packages/components/search/index.js +26 -36
  94. package/packages/components/search/index.js.gz +0 -0
  95. package/packages/components/search/style.css +1 -1
  96. package/packages/components/search/style.css.gz +0 -0
  97. package/packages/components/{search → search-form}/i18n/index.d.ts +6 -10
  98. package/packages/components/search-form/index.js +426 -418
  99. package/packages/components/search-form/index.js.gz +0 -0
  100. package/packages/components/search-form/style.css +1 -1
  101. package/packages/components/search-form/style.css.gz +0 -0
  102. package/packages/components/spin/i18n/index.d.ts +1 -1
  103. package/packages/components/spin/index.js +1 -3
  104. package/packages/components/spin/index.js.gz +0 -0
  105. package/packages/components/table/i18n/index.d.ts +19 -19
  106. package/packages/components/table/index.js +7 -7
  107. package/packages/components/table/index.js.gz +0 -0
  108. package/packages/components/table/style.css +1 -1
  109. package/packages/components/table/style.css.gz +0 -0
  110. package/packages/components/tabs/i18n/index.d.ts +3 -3
  111. package/packages/components/time-line/index.js +36 -40
  112. package/packages/components/time-line/index.js.gz +0 -0
  113. package/packages/components/tooltip/i18n/index.d.ts +1 -1
  114. package/packages/components/tooltip/index.js +1 -3
  115. package/packages/components/tooltip/index.js.gz +0 -0
  116. package/packages/components/tree/i18n/index.d.ts +8 -12
  117. package/packages/components/tree/index.js +141 -137
  118. package/packages/components/tree/index.js.gz +0 -0
  119. package/packages/components/tree/src/App.vue.d.ts +26 -36
  120. package/packages/components/upload/i18n/index.d.ts +5 -5
  121. package/packages/components/upload/index.js +1 -1
  122. package/packages/components/upload/index.js.gz +0 -0
  123. package/packages/components/virtual-tree/i18n/index.d.ts +1 -1
  124. package/packages/components/virtual-tree/index.js +1 -3
  125. package/packages/components/virtual-tree/index.js.gz +0 -0
  126. package/packages/components/button/i18n/index.d.ts +0 -2
  127. package/packages/components/time-line/i18n/index.d.ts +0 -7
@@ -118,7 +118,7 @@ function Ur(e, t) {
118
118
  return e;
119
119
  }
120
120
  var Rr = 9007199254740991, Hr = /^(?:0|[1-9]\d*)$/;
121
- function Gr(e, t) {
121
+ function Vr(e, t) {
122
122
  var r = typeof e;
123
123
  return t = t ?? Rr, !!t && (r == "number" || r != "symbol" && Hr.test(e)) && e > -1 && e % 1 == 0 && e < t;
124
124
  }
@@ -133,7 +133,7 @@ function Pt(e, t, r) {
133
133
  function Dt(e, t) {
134
134
  return e === t || e !== e && t !== t;
135
135
  }
136
- var Vr = Object.prototype, Kr = Vr.hasOwnProperty;
136
+ var Gr = Object.prototype, Kr = Gr.hasOwnProperty;
137
137
  function Et(e, t, r) {
138
138
  var n = e[t];
139
139
  (!(Kr.call(e, t) && Dt(n, r)) || r === void 0 && !(t in e)) && Pt(e, t, r);
@@ -201,7 +201,7 @@ function Lt(e, t) {
201
201
  (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
202
202
  s && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
203
203
  l && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
204
- Gr(h, c))) && g.push(h);
204
+ Vr(h, c))) && g.push(h);
205
205
  return g;
206
206
  }
207
207
  function Ut(e, t) {
@@ -248,14 +248,14 @@ function Rn(e) {
248
248
  var t = this.has(e) && delete this.__data__[e];
249
249
  return this.size -= t ? 1 : 0, t;
250
250
  }
251
- var Hn = "__lodash_hash_undefined__", Gn = Object.prototype, Vn = Gn.hasOwnProperty;
251
+ var Hn = "__lodash_hash_undefined__", Vn = Object.prototype, Gn = Vn.hasOwnProperty;
252
252
  function Kn(e) {
253
253
  var t = this.__data__;
254
254
  if (ie) {
255
255
  var r = t[e];
256
256
  return r === Hn ? void 0 : r;
257
257
  }
258
- return Vn.call(t, e) ? t[e] : void 0;
258
+ return Gn.call(t, e) ? t[e] : void 0;
259
259
  }
260
260
  var qn = Object.prototype, Qn = qn.hasOwnProperty;
261
261
  function Jn(e) {
@@ -406,7 +406,7 @@ function ba(e, t) {
406
406
  function ya(e, t) {
407
407
  return e && Se(t, Re(t), e);
408
408
  }
409
- var Gt = typeof exports == "object" && exports && !exports.nodeType && exports, ut = Gt && typeof module == "object" && module && !module.nodeType && module, va = ut && ut.exports === Gt, pt = va ? x.Buffer : void 0, ft = pt ? pt.allocUnsafe : void 0;
409
+ var Vt = typeof exports == "object" && exports && !exports.nodeType && exports, ut = Vt && typeof module == "object" && module && !module.nodeType && module, va = ut && ut.exports === Vt, pt = va ? x.Buffer : void 0, ft = pt ? pt.allocUnsafe : void 0;
410
410
  function ma(e, t) {
411
411
  if (t)
412
412
  return e.slice();
@@ -420,14 +420,14 @@ function _a(e, t) {
420
420
  }
421
421
  return l;
422
422
  }
423
- function Vt() {
423
+ function Gt() {
424
424
  return [];
425
425
  }
426
426
  var Ta = Object.prototype, Sa = Ta.propertyIsEnumerable, dt = Object.getOwnPropertySymbols, He = dt ? function(e) {
427
427
  return e == null ? [] : (e = Object(e), _a(dt(e), function(t) {
428
428
  return Sa.call(e, t);
429
429
  }));
430
- } : Vt;
430
+ } : Gt;
431
431
  function ja(e, t) {
432
432
  return Se(e, He(e), t);
433
433
  }
@@ -435,7 +435,7 @@ var wa = Object.getOwnPropertySymbols, Kt = wa ? function(e) {
435
435
  for (var t = []; e; )
436
436
  Rt(t, He(e)), e = Ht(e);
437
437
  return t;
438
- } : Vt;
438
+ } : Gt;
439
439
  function Oa(e, t) {
440
440
  return Se(e, Kt(e), t);
441
441
  }
@@ -473,12 +473,12 @@ function Ma(e) {
473
473
  return t && typeof e[0] == "string" && Ia.call(e, "index") && (r.index = e.index, r.input = e.input), r;
474
474
  }
475
475
  var mt = x.Uint8Array;
476
- function Ge(e) {
476
+ function Ve(e) {
477
477
  var t = new e.constructor(e.byteLength);
478
478
  return new mt(t).set(new mt(e)), t;
479
479
  }
480
480
  function za(e, t) {
481
- var r = t ? Ge(e.buffer) : e.buffer;
481
+ var r = t ? Ve(e.buffer) : e.buffer;
482
482
  return new e.constructor(r, e.byteOffset, e.byteLength);
483
483
  }
484
484
  var Ba = /\w*$/;
@@ -491,17 +491,17 @@ function Ua(e) {
491
491
  return Tt ? Object(Tt.call(e)) : {};
492
492
  }
493
493
  function Ra(e, t) {
494
- var r = t ? Ge(e.buffer) : e.buffer;
494
+ var r = t ? Ve(e.buffer) : e.buffer;
495
495
  return new e.constructor(r, e.byteOffset, e.length);
496
496
  }
497
- var Ha = "[object Boolean]", Ga = "[object Date]", Va = "[object Map]", Ka = "[object Number]", qa = "[object RegExp]", Qa = "[object Set]", Ja = "[object String]", ka = "[object Symbol]", Wa = "[object ArrayBuffer]", Ya = "[object DataView]", Xa = "[object Float32Array]", Za = "[object Float64Array]", eo = "[object Int8Array]", to = "[object Int16Array]", ro = "[object Int32Array]", no = "[object Uint8Array]", ao = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", so = "[object Uint32Array]";
497
+ var Ha = "[object Boolean]", Va = "[object Date]", Ga = "[object Map]", Ka = "[object Number]", qa = "[object RegExp]", Qa = "[object Set]", Ja = "[object String]", ka = "[object Symbol]", Wa = "[object ArrayBuffer]", Ya = "[object DataView]", Xa = "[object Float32Array]", Za = "[object Float64Array]", eo = "[object Int8Array]", to = "[object Int16Array]", ro = "[object Int32Array]", no = "[object Uint8Array]", ao = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", so = "[object Uint32Array]";
498
498
  function io(e, t, r) {
499
499
  var n = e.constructor;
500
500
  switch (t) {
501
501
  case Wa:
502
- return Ge(e);
502
+ return Ve(e);
503
503
  case Ha:
504
- case Ga:
504
+ case Va:
505
505
  return new n(+e);
506
506
  case Ya:
507
507
  return za(e, r);
@@ -515,7 +515,7 @@ function io(e, t, r) {
515
515
  case oo:
516
516
  case so:
517
517
  return Ra(e, r);
518
- case Va:
518
+ case Ga:
519
519
  return new n();
520
520
  case Ka:
521
521
  case Ja:
@@ -579,11 +579,11 @@ function me(e, t, r, n, s, l) {
579
579
  D && (_ = m, m = e[_]), Et(o, _, me(m, t, r, _, e, l));
580
580
  }), o;
581
581
  }
582
- var Ho = 1, Go = 4;
582
+ var Ho = 1, Vo = 4;
583
583
  function _e(e) {
584
- return me(e, Ho | Go);
584
+ return me(e, Ho | Vo);
585
585
  }
586
- const Vo = (e, t, r) => {
586
+ const Go = (e, t, r) => {
587
587
  var ge, X, C, u;
588
588
  const n = (ge = et()) != null && ge.id ? (X = et()) == null ? void 0 : X.id : "371344636432453", s = T([]), l = T([]), o = T([]), g = T(), c = $t(), h = ((C = c.prepend) == null ? void 0 : C.call(c)) ?? [], b = ((u = c.append) == null ? void 0 : u.call(c)) ?? [], w = T(!1), { reportTableList: P } = fr(e.apiUrl, e.reqMethod), $ = T([]), L = T([]), D = T([]), m = T(0), _ = T(20), y = T(1), f = T({
589
589
  flowKey: e.flowKey,
@@ -650,12 +650,12 @@ const Vo = (e, t, r) => {
650
650
  order: he
651
651
  };
652
652
  }), ((q = $.value) == null ? void 0 : q.length) > 0 ? f.value.sorter = [$.value[0]] : f.value.sorter = [], t("getSearchQuery", f.value), K = $.value.map((N) => N.property)), O.displayField) {
653
- const N = JSON.parse(O.displayField), he = {}, Oe = /* @__PURE__ */ new Map(), Ve = [], Ke = [];
653
+ const N = JSON.parse(O.displayField), he = {}, Oe = /* @__PURE__ */ new Map(), Ge = [], Ke = [];
654
654
  O.boDef.boEnt.attributeList.forEach((v) => {
655
655
  he[v.name] = v;
656
656
  }), b.forEach((v) => {
657
657
  const S = v.props, F = { desc: S.label, name: S.label };
658
- Oe.set(S.prop, F), Ve.push({ name: S.prop, desc: S.label, switch: !0 });
658
+ Oe.set(S.prop, F), Ge.push({ name: S.prop, desc: S.label, switch: !0 });
659
659
  }), h.forEach((v) => {
660
660
  const S = v.props, F = { desc: S.label, name: S.label };
661
661
  Oe.set(S.prop, F), Ke.push({ name: S.prop, desc: S.label, switch: !0 });
@@ -669,7 +669,7 @@ const Vo = (e, t, r) => {
669
669
  desc: v.desc,
670
670
  switch: !0
671
671
  }));
672
- o.value = [...Ke, ...Wt, ...Ve];
672
+ o.value = [...Ke, ...Wt, ...Ge];
673
673
  const be = window.localStorage.getItem(e.columnSettingName);
674
674
  if (be && be !== "undefined") {
675
675
  const v = o.value.map((F) => F.name).join(","), S = JSON.parse(be).map((F) => F.name).join(",");
@@ -693,7 +693,7 @@ const Vo = (e, t, r) => {
693
693
  return O.direction = U, O;
694
694
  });
695
695
  f.value.sorter = [E], t("getSearchQuery", f.value), j();
696
- }, G = T(!0), de = (i, U, E) => {
696
+ }, V = T(!0), de = (i, U, E) => {
697
697
  const O = i.button_list ? JSON.parse(i.button_list) : [], K = T([]);
698
698
  if (O && O.length > 0 ? K.value = O.map((q) => ({
699
699
  label: q.name,
@@ -703,11 +703,11 @@ const Vo = (e, t, r) => {
703
703
  K.value.unshift(...q);
704
704
  }
705
705
  return K.value;
706
- }, V = T(!0);
706
+ }, G = T(!0);
707
707
  return ve(
708
708
  () => l.value,
709
709
  (i) => {
710
- e.showOperationColumn ? i.length > 0 ? (G.value = !0, V.value = e.selection) : (G.value = !1, V.value = !1) : (G.value = !1, i.length > 0 ? V.value = e.selection : V.value = !1);
710
+ e.showOperationColumn ? i.length > 0 ? (V.value = !0, G.value = e.selection) : (V.value = !1, G.value = !1) : (V.value = !1, i.length > 0 ? G.value = e.selection : G.value = !1);
711
711
  },
712
712
  {
713
713
  immediate: !0,
@@ -730,8 +730,8 @@ const Vo = (e, t, r) => {
730
730
  handleCurrentPageChange: H,
731
731
  handlePageSizeChange: ne,
732
732
  sortChange: fe,
733
- customSelectionOptions: V,
734
- showOperationColumn: G
733
+ customSelectionOptions: G,
734
+ showOperationColumn: V
735
735
  };
736
736
  }, Ko = (e, t, r, n, s, l) => {
737
737
  var m, _;
@@ -885,7 +885,7 @@ const ko = (e, t) => {
885
885
  sortChange: j,
886
886
  customSelectionOptions: A,
887
887
  showOperationColumn: H
888
- } = Vo(n, l, s), { showSettingDialog: ne, cancelTabel: fe, resetDefault: G, showAll: de, setTable: V, tableSetting: ge } = Ko(
888
+ } = Go(n, l, s), { showSettingDialog: ne, cancelTabel: fe, resetDefault: V, showAll: de, setTable: G, tableSetting: ge } = Ko(
889
889
  n,
890
890
  l,
891
891
  w,
@@ -996,7 +996,7 @@ const ko = (e, t) => {
996
996
  I(a(Ze), {
997
997
  btnType: "primary",
998
998
  style: { "margin-left": "12px" },
999
- onClick: a(V)
999
+ onClick: a(G)
1000
1000
  }, {
1001
1001
  default: M(() => [
1002
1002
  Ye(
@@ -1026,7 +1026,7 @@ const ko = (e, t) => {
1026
1026
  {
1027
1027
  class: "text-btn",
1028
1028
  onClick: C[2] || (C[2] = //@ts-ignore
1029
- (...u) => a(G) && a(G)(...u))
1029
+ (...u) => a(V) && a(V)(...u))
1030
1030
  },
1031
1031
  J(a(R)("恢复默认")),
1032
1032
  1
@@ -1092,14 +1092,14 @@ const ko = (e, t) => {
1092
1092
  r[n] = s;
1093
1093
  return r;
1094
1094
  }, os = /* @__PURE__ */ as(ns, [["__scopeId", "data-v-52c0d32b"]]), ss = {
1095
- 列表控制: { "zh-CN": "列表控制", en: "List control" },
1096
- 表格设置: { "zh-CN": "表格设置", en: "Table settings" },
1097
- 恢复默认: { "zh-CN": "恢复默认", en: "Restore default" },
1098
- 全部隐藏: { "zh-CN": "全部隐藏", en: "Hide all" },
1095
+ 列表控制: { "zh-CN": "列表控制", en: "List Control" },
1096
+ 表格设置: { "zh-CN": "表格设置", en: "Table Settings" },
1097
+ 恢复默认: { "zh-CN": "恢复默认", en: "Reset to Default" },
1098
+ 全部隐藏: { "zh-CN": "全部隐藏", en: "Hide All" },
1099
1099
  列名: { "zh-CN": "列名", en: "Column Name" },
1100
- 显示列: { "zh-CN": "显示列", en: "Display Column" },
1100
+ 显示列: { "zh-CN": "显示列", en: "Visible Columns" },
1101
1101
  取消: { "zh-CN": "取消", en: "Cancel" },
1102
- 确定: { "zh-CN": "确定", en: "OK" }
1102
+ 确定: { "zh-CN": "确定", en: "Confirm" }
1103
1103
  };
1104
1104
  or(ss);
1105
1105
  const vs = Yt(os), ms = () => T(null);
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
- 上传的文件大小不能超过: {
3
- "zh-CN": string;
2
+ 'upload-file_uploadFileSizeLimit': {
3
+ 'zh-CN': string;
4
4
  en: string;
5
5
  };
6
6
  };
@@ -1,40 +1,40 @@
1
1
  import '@das-fed/ui/packages/business-components/upload-file/style.css';
2
- import { ref as V, computed as h, defineComponent as z, useCssVars as y, openBlock as f, createElementBlock as c, createVNode as g, unref as d, mergeProps as v, isRef as w, createCommentVNode as U, normalizeClass as k, createElementVNode as B } from "vue";
3
- import { withInstall as F } from "@das-fed/utils/with-install/index";
4
- import { DasInput as b } from "@das-fed/ui/packages/components/input/index";
5
- import { DasUpload as C } from "@das-fed/ui/packages/components/upload/index";
6
- import { useCalculateSize as S, minioUpload as x, DasImageViewer as D } from "@das-fed/ui/packages/components/image-viewer/index";
7
- import { i18n as N, setI18nRule as P } from "@das-fed/web/packages/i18n/index";
2
+ import { ref as V, computed as z, defineComponent as U, useCssVars as y, openBlock as f, createElementBlock as c, createVNode as g, unref as d, mergeProps as v, isRef as w, createCommentVNode as h, normalizeClass as F, createElementVNode as S } from "vue";
3
+ import { withInstall as k } from "@das-fed/utils/with-install/index";
4
+ import { DasInput as B } from "@das-fed/ui/packages/components/input/index";
5
+ import { DasUpload as b } from "@das-fed/ui/packages/components/upload/index";
6
+ import { useCalculateSize as C, minioUpload as x, DasImageViewer as D } from "@das-fed/ui/packages/components/image-viewer/index";
7
+ import { t as N, setI18nRule as P } from "@das-fed/web/packages/i18n/index";
8
8
  import { DasMessage as I } from "@das-fed/ui/packages/components/message/index";
9
- const A = (i, n) => {
10
- const a = V(!1), { size2B: r } = S(), { upload: u } = x(i), m = (t) => {
11
- if (i.maxSize) {
12
- const { finalSize: e, sizeText: o } = r(i.maxSize);
9
+ const T = (a, n) => {
10
+ const i = V(!1), { size2B: r } = C(), { upload: u } = x(a), m = (t) => {
11
+ if (a.maxSize) {
12
+ const { finalSize: e, sizeText: l } = r(a.maxSize);
13
13
  if (t.size > e) {
14
- const l = N(`上传的文件大小不能超过${o}`).value;
15
- return I.warning(l), !1;
14
+ const s = N("upload-file_uploadFileSizeLimit", l);
15
+ return I.warning(s), !1;
16
16
  }
17
17
  }
18
18
  return !0;
19
- }, p = h({
20
- get: () => i.modelValue,
19
+ }, p = z({
20
+ get: () => a.modelValue,
21
21
  set: (t) => n("update:modelValue", t)
22
22
  });
23
23
  return {
24
- loading: a,
24
+ loading: i,
25
25
  imgUrl: p,
26
26
  uploadFile: async (t) => {
27
- if (a.value = !0, m(t)) {
27
+ if (i.value = !0, m(t)) {
28
28
  const e = await u(t);
29
29
  p.value = e, n("upload-success", t, e);
30
30
  }
31
- a.value = !1;
31
+ i.value = !1;
32
32
  }
33
33
  };
34
- }, H = { class: "das-business-file-upload" }, R = {
34
+ }, _ = { class: "das-business-file-upload" }, A = {
35
35
  key: 0,
36
36
  class: "input-box"
37
- }, T = { class: "upload-box" }, W = /* @__PURE__ */ z({
37
+ }, H = { class: "upload-box" }, L = /* @__PURE__ */ U({
38
38
  inheritAttrs: !1,
39
39
  __name: "App",
40
40
  props: {
@@ -55,43 +55,43 @@ const A = (i, n) => {
55
55
  imageProps: { default: () => ({}) }
56
56
  },
57
57
  emits: ["update:modelValue", "upload-success"],
58
- setup(i, { emit: n }) {
58
+ setup(a, { emit: n }) {
59
59
  y((e) => ({
60
60
  "66b28a84": m.value,
61
61
  "52afe674": e.imageHeight
62
62
  }));
63
- const a = i, r = n, u = V([]), m = h(() => (a == null ? void 0 : a.width) ?? "100%"), { loading: p, imgUrl: s, uploadFile: t } = A(a, r);
64
- return (e, o) => (f(), c("div", H, [
65
- e.type === "input" ? (f(), c("div", R, [
66
- g(d(b), v({
63
+ const i = a, r = n, u = V([]), m = z(() => (i == null ? void 0 : i.width) ?? "100%"), { loading: p, imgUrl: o, uploadFile: t } = T(i, r);
64
+ return (e, l) => (f(), c("div", _, [
65
+ e.type === "input" ? (f(), c("div", A, [
66
+ g(d(B), v({
67
67
  width: "100%",
68
- modelValue: d(s),
69
- "onUpdate:modelValue": o[0] || (o[0] = (l) => w(s) ? s.value = l : null),
68
+ modelValue: d(o),
69
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => w(o) ? o.value = s : null),
70
70
  "is-view": e.isView
71
71
  }, e.inputProps), null, 16, ["modelValue", "is-view"])
72
- ])) : U("v-if", !0),
72
+ ])) : h("v-if", !0),
73
73
  e.type === "image" ? (f(), c(
74
74
  "div",
75
75
  {
76
76
  key: 1,
77
- class: k(["image-box", e.isView ? "is-view" : ""])
77
+ class: F(["image-box", e.isView ? "is-view" : ""])
78
78
  },
79
79
  [
80
80
  g(d(D), v({
81
81
  style: { width: e.imageWidth, height: e.imageHeight },
82
- modelValue: d(s),
83
- "onUpdate:modelValue": o[1] || (o[1] = (l) => w(s) ? s.value = l : null),
82
+ modelValue: d(o),
83
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => w(o) ? o.value = s : null),
84
84
  status: "info",
85
85
  "is-view": !0
86
86
  }, e.imageProps), null, 16, ["style", "modelValue"])
87
87
  ],
88
88
  2
89
89
  /* CLASS */
90
- )) : U("v-if", !0),
91
- B("div", T, [
92
- g(d(C), v({
90
+ )) : h("v-if", !0),
91
+ S("div", H, [
92
+ g(d(b), v({
93
93
  modelValue: u.value,
94
- "onUpdate:modelValue": o[2] || (o[2] = (l) => u.value = l),
94
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => u.value = s),
95
95
  draggle: !1,
96
96
  onFileUpload: d(t),
97
97
  "is-view": e.isView
@@ -99,16 +99,19 @@ const A = (i, n) => {
99
99
  ])
100
100
  ]));
101
101
  }
102
- }), $ = (i, n) => {
103
- const a = i.__vccOpts || i;
102
+ }), R = (a, n) => {
103
+ const i = a.__vccOpts || a;
104
104
  for (const [r, u] of n)
105
- a[r] = u;
106
- return a;
107
- }, E = /* @__PURE__ */ $(W, [["__scopeId", "data-v-57c87228"]]), M = {
108
- 上传的文件大小不能超过: { "zh-CN": "上传的文件大小不能超过", en: "Uploaded file size cannot exceed" }
105
+ i[r] = u;
106
+ return i;
107
+ }, W = /* @__PURE__ */ R(L, [["__scopeId", "data-v-57c87228"]]), $ = {
108
+ "upload-file_uploadFileSizeLimit": {
109
+ "zh-CN": "上传的文件大小不能超过$0",
110
+ en: "The size of the uploaded file cannot exceed $0"
111
+ }
109
112
  };
110
- P(M);
111
- const K = F(E), Q = () => V(null), X = { name: "复合型文件上传 upload-file" };
113
+ P($);
114
+ const K = k(W), Q = () => V(null), X = { name: "复合型文件上传 upload-file" };
112
115
  export {
113
116
  K as DasBusinessUploadFile,
114
117
  Q as DasBusinessUploadFileRef,
@@ -331,5 +331,33 @@ declare const _default: {
331
331
  'zh-CN': string;
332
332
  en: string;
333
333
  };
334
+ '\u8BF7\u5148\u5B8C\u5584\u7B2C\u4E09\u65B9\u5730\u56FE\u76F8\u5173\u914D\u7F6E\uFF01': {
335
+ 'zh-CN': string;
336
+ en: string;
337
+ };
338
+ '\u975E\u5FC5\u586B\uFF0C\u652F\u6301\u4E0A\u4F20png/jpg\u683C\u5F0F\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F203\u5F20\uFF0C\u6BCF\u5F20\u56FE\u7247\u6700\u5927\u4E0D\u8D85\u8FC750M': {
339
+ 'zh-CN': string;
340
+ en: string;
341
+ };
342
+ '\u5FC5\u586B\uFF0C\u6B63\u6574\u6570\u578B\uFF0C\u96505\u4F4D': {
343
+ 'zh-CN': string;
344
+ en: string;
345
+ };
346
+ '\u5FC5\u586B\uFF0C\u5355\u9009': {
347
+ 'zh-CN': string;
348
+ en: string;
349
+ };
350
+ '\u5FC5\u586B\uFF0C\u965020\u4E2A\u5B57\u7B26/\u6C49\u5B57\uFF0C\u9996\u5C3E\u4E0D\u5141\u8BB8\u4E3A\u7A7A\u5916\uFF0C\u652F\u6301\u4EFB\u610F\u5B57\u7B26': {
351
+ 'zh-CN': string;
352
+ en: string;
353
+ };
354
+ '\u5FC5\u586B\uFF0C\u652F\u6301\u624B\u52A8\u5F55\u5165\u4E5F\u652F\u6301\u4ECE\u5730\u56FE\u4E0A\u9009\u62E9\u4F4D\u7F6E': {
355
+ 'zh-CN': string;
356
+ en: string;
357
+ };
358
+ '\u641C\u7D22\u59D3\u540D/\u8D26\u53F7': {
359
+ 'zh-CN': string;
360
+ en: string;
361
+ };
334
362
  };
335
363
  export default _default;