@das-fed/ui 6.4.0-dev.89 → 6.4.0-dev.90

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 (65) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +66 -66
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/change-enterprises/index.js +1 -1
  5. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/index.js +4 -4
  7. package/packages/business-components/device-panel/index.js.gz +0 -0
  8. package/packages/business-components/process-form/index.js +1 -1
  9. package/packages/business-components/process-form/index.js.gz +0 -0
  10. package/packages/business-components/process-log/i18n/index.d.ts +0 -5
  11. package/packages/business-components/process-log/index.js +22 -23
  12. package/packages/business-components/process-log/index.js.gz +0 -0
  13. package/packages/business-components/process-search-form/index.js +1 -1
  14. package/packages/business-components/process-search-form/index.js.gz +0 -0
  15. package/packages/business-components/urgent-panel/index.js +2 -2
  16. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  17. package/packages/business-components/user-org-dialog/index.js +1 -1
  18. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  19. package/packages/components/calendar/index.js +98 -100
  20. package/packages/components/calendar/index.js.gz +0 -0
  21. package/packages/components/cascader/index.js +12 -12
  22. package/packages/components/cascader/index.js.gz +0 -0
  23. package/packages/components/color-picker/index.js +6 -6
  24. package/packages/components/color-picker/index.js.gz +0 -0
  25. package/packages/components/date-picker/index.js +121 -115
  26. package/packages/components/date-picker/index.js.gz +0 -0
  27. package/packages/components/date-picker/style.css +1 -1
  28. package/packages/components/date-picker/style.css.gz +0 -0
  29. package/packages/components/image-upload/i18n/index.d.ts +5 -0
  30. package/packages/components/image-upload/index.js +81 -76
  31. package/packages/components/image-upload/index.js.gz +0 -0
  32. package/packages/components/image-viewer/index.js +127 -127
  33. package/packages/components/image-viewer/index.js.gz +0 -0
  34. package/packages/components/input/index.js +11 -11
  35. package/packages/components/input/index.js.gz +0 -0
  36. package/packages/components/input-dialog-select/index.js +1 -1
  37. package/packages/components/input-dialog-select/index.js.gz +0 -0
  38. package/packages/components/input-number/index.js +161 -144
  39. package/packages/components/input-number/index.js.gz +0 -0
  40. package/packages/components/input-number/style.css +1 -1
  41. package/packages/components/input-number/style.css.gz +0 -0
  42. package/packages/components/search/index.js +70 -79
  43. package/packages/components/search/index.js.gz +0 -0
  44. package/packages/components/search/style.css +1 -1
  45. package/packages/components/search/style.css.gz +0 -0
  46. package/packages/components/search-form/index.js +718 -705
  47. package/packages/components/search-form/index.js.gz +0 -0
  48. package/packages/components/search-form/style.css +1 -1
  49. package/packages/components/search-form/style.css.gz +0 -0
  50. package/packages/components/select/index.js +86 -86
  51. package/packages/components/select/index.js.gz +0 -0
  52. package/packages/components/select/style.css +1 -1
  53. package/packages/components/select/style.css.gz +0 -0
  54. package/packages/components/table/index.js +2817 -2817
  55. package/packages/components/table/index.js.gz +0 -0
  56. package/packages/components/table/style.css +1 -1
  57. package/packages/components/table/style.css.gz +0 -0
  58. package/packages/components/tree/index.js +1 -1
  59. package/packages/components/tree/index.js.gz +0 -0
  60. package/packages/components/tree-select/index.js +344 -344
  61. package/packages/components/tree-select/index.js.gz +0 -0
  62. package/packages/components/tree-v2/index.js +1 -1
  63. package/packages/components/tree-v2/index.js.gz +0 -0
  64. package/packages/components/upload/index.js +47 -47
  65. package/packages/components/upload/index.js.gz +0 -0
@@ -4562,7 +4562,7 @@ const X$ = { class: "das-tree-box" }, q$ = { class: "das-tree-container das-ce-s
4562
4562
  "--das-ui-tree-node-drop-indicator-color": "#276FF5",
4563
4563
  "--das-ui-tree-empty-text": "#999999"
4564
4564
  }, D_ = {
4565
- 请搜索: { "zh-CN": "请搜索", en: "Please Search", _appCode: "framework" },
4565
+ 请搜索: { "zh-CN": "请搜索", en: "Please search", _appCode: "framework" },
4566
4566
  新增同级: { "zh-CN": "新增同级", en: "Add sibling" },
4567
4567
  新增子级: { "zh-CN": "新增子级", en: "Add child" },
4568
4568
  编辑: { "zh-CN": "编辑", en: "Edit" },
@@ -1,26 +1,26 @@
1
1
  import '@das-fed/ui/packages/components/upload/style.css';
2
- import { withInstall as W } from "@das-fed/utils/with-install/index";
3
- import { t as h, setI18nRule as G } from "@das-fed/web/packages/i18n/index";
4
- import { getVar as _, setThemeRule as K } from "@das-fed/web/packages/theme/index";
5
- import { useAttrs as P, computed as $, defineComponent as q, openBlock as u, createElementBlock as v, Fragment as H, createVNode as g, unref as o, mergeProps as x, isRef as B, withCtx as p, renderSlot as S, createElementVNode as m, withDirectives as y, createTextVNode as C, toDisplayString as s, createCommentVNode as k, createBlock as A, vShow as M, pushScopeId as J, popScopeId as Q } from "vue";
6
- import { UploadDragger as X, Upload as Y } from "ant-design-vue";
2
+ import { withInstall as G } from "@das-fed/utils/with-install/index";
3
+ import { currentLang as K, t as h, setI18nRule as P } from "@das-fed/web/packages/i18n/index";
4
+ import { getVar as _, setThemeRule as q } from "@das-fed/web/packages/theme/index";
5
+ import { useAttrs as H, computed as $, defineComponent as J, openBlock as u, createElementBlock as v, Fragment as Q, createVNode as g, unref as o, mergeProps as x, isRef as B, withCtx as p, renderSlot as S, createElementVNode as m, withDirectives as y, createTextVNode as C, toDisplayString as s, createCommentVNode as k, createBlock as A, vShow as M, pushScopeId as X, popScopeId as Y } from "vue";
6
+ import { UploadDragger as ee, Upload as oe } from "ant-design-vue";
7
7
  import "ant-design-vue/es/upload/style/css";
8
8
  import { DasButton as I } from "@das-fed/ui/packages/components/button/index";
9
9
  import { vDasTooltip as T } from "@das-fed/ui/packages/components/text-tooltip/index";
10
- import { DasIconLink as R } from "@das-fed/ui/packages/icons/link/index";
11
- import { DasIconAddto as ee } from "@das-fed/ui/packages/icons/addto/index";
12
- import { DasAutoRegisterIcon as oe } from "@das-fed/ui/packages/components/icon/index";
13
- import { DasMessage as te } from "@das-fed/ui/packages/components/message/index";
10
+ import { DasIconLink as L } from "@das-fed/ui/packages/icons/link/index";
11
+ import { DasIconAddto as te } from "@das-fed/ui/packages/icons/addto/index";
12
+ import { DasAutoRegisterIcon as ae } from "@das-fed/ui/packages/components/icon/index";
13
+ import { DasMessage as le } from "@das-fed/ui/packages/components/message/index";
14
14
  import { useModelValue as F } from "@das-fed/utils/vue";
15
15
  import "@das-fed/ui/packages/global/theme";
16
- const ae = (t) => {
16
+ const re = (t) => {
17
17
  const a = ["B", "KB", "M", "G"];
18
18
  let c = 0;
19
19
  for (; t > 1024; )
20
20
  c++, t /= 1024;
21
21
  return t = Number(Number(t).toFixed(1)), `${t}${a[c]}`;
22
- }, le = (t, d) => {
23
- const a = F(t, "modelValue"), c = F(t, "error"), i = F(t, "errorMessage"), z = F(t, "errorFileName"), b = P(), w = $(() => !b.multiple && t.maxCount === 1), N = $(() => w.value && a.value.length ? "none" : "block");
22
+ }, ie = (t, d) => {
23
+ const a = F(t, "modelValue"), c = F(t, "error"), i = F(t, "errorMessage"), z = F(t, "errorFileName"), b = H(), w = $(() => !b.multiple && t.maxCount === 1), N = $(() => w.value && a.value.length ? "none" : "block");
24
24
  return {
25
25
  fileList: a,
26
26
  error: c,
@@ -30,13 +30,13 @@ const ae = (t) => {
30
30
  beforeupload: (e) => {
31
31
  if (t.accept) {
32
32
  const r = t.accept.split(",").filter((n) => n.trim().startsWith(".")).map((n) => n.trim()), l = t.accept.split(",").filter((n) => !n.trim().startsWith(".")).map((n) => n.trim()), f = e.name.match(/\.(.+)$/), U = r.includes(f[0]);
33
- let L = l.includes("image/*") && e.type.split("/")[0].trim() === "image", O = l.includes("video/*") && e.type.split("/")[0].trim() === "video", j = l.includes("audio/*") && e.type.split("/")[0].trim() === "audio", Z = l.includes(e.type) || L || O || j;
33
+ let R = l.includes("image/*") && e.type.split("/")[0].trim() === "image", O = l.includes("video/*") && e.type.split("/")[0].trim() === "video", j = l.includes("audio/*") && e.type.split("/")[0].trim() === "audio", Z = l.includes(e.type) || R || O || j;
34
34
  if (!U && !Z) {
35
- const n = t.errorMessage || h("das-ui-upload-accpet", t.accept.toUpperCase().replaceAll(".", "").replaceAll(",", "、"));
36
- return te.warning(n), !1;
35
+ const n = K.value === "zh-CN" ? "、" : ", ", W = t.errorMessage || h("das-ui-upload-accpet", t.accept.toUpperCase().replaceAll(".", "").replaceAll(",", n));
36
+ return le.warning(W), !1;
37
37
  }
38
38
  }
39
- return e.sizeText = ae(e.size), b.multiple ? (a.value = a.value.map((r) => r.originFileObj ? r.originFileObj : r), t.maxCount > a.value.length && a.value.push(e)) : a.value = [e], d("update:modelValue", a.value), d("file-upload", e), !1;
39
+ return e.sizeText = re(e.size), b.multiple ? (a.value = a.value.map((r) => r.originFileObj ? r.originFileObj : r), t.maxCount > a.value.length && a.value.push(e)) : a.value = [e], d("update:modelValue", a.value), d("file-upload", e), !1;
40
40
  },
41
41
  errorFiledownload: () => {
42
42
  d("errorFile-download");
@@ -45,13 +45,13 @@ const ae = (t) => {
45
45
  a.value = a.value.filter((l) => l.uid != r.uid), a.value.length > 0 && (a.value = a.value.map((l) => l.originFileObj ? l.originFileObj : l)), d("update:modelValue", a.value), e.remove();
46
46
  }
47
47
  };
48
- }, re = (t) => (J("data-v-11f92fa2"), t = t(), Q(), t), ie = { class: "das-ui-upload" }, se = { class: "das-ui-upload-dragger-context" }, de = { class: "text" }, ne = { class: "file-list" }, ue = { class: "filename" }, ce = {
48
+ }, se = (t) => (X("data-v-11f92fa2"), t = t(), Y(), t), de = { class: "das-ui-upload" }, ne = { class: "das-ui-upload-dragger-context" }, ue = { class: "text" }, ce = { class: "file-list" }, pe = { class: "filename" }, me = {
49
49
  key: 0,
50
50
  class: "file-size"
51
- }, pe = { class: "error-container" }, me = { class: "file-list" }, fe = { class: "filename error-file-name" }, ve = {
51
+ }, fe = { class: "error-container" }, ve = { class: "file-list" }, he = { class: "filename error-file-name" }, ge = {
52
52
  key: 0,
53
53
  class: "file-size"
54
- }, he = { class: "error-message" }, ge = /* @__PURE__ */ re(() => /* @__PURE__ */ m("div", null, null, -1)), Ce = /* @__PURE__ */ q({
54
+ }, Ce = { class: "error-message" }, be = /* @__PURE__ */ se(() => /* @__PURE__ */ m("div", null, null, -1)), we = /* @__PURE__ */ J({
55
55
  __name: "Index",
56
56
  props: {
57
57
  draggle: { type: Boolean, default: !0 },
@@ -69,7 +69,7 @@ const ae = (t) => {
69
69
  },
70
70
  emits: ["file-upload", "errorFile-download", "update:modelValue"],
71
71
  setup(t, { emit: d }) {
72
- oe({
72
+ ae({
73
73
  shangchuan: import("@das-fed/ui/packages/icons/shangchuan")
74
74
  });
75
75
  const a = t, c = d, {
@@ -81,10 +81,10 @@ const ae = (t) => {
81
81
  beforeupload: V,
82
82
  errorFiledownload: D,
83
83
  removeFileEvent: E
84
- } = le(a, c);
85
- return (e, r) => (u(), v("div", ie, [
86
- e.draggle ? (u(), v(H, { key: 0 }, [
87
- g(o(X), x({
84
+ } = ie(a, c);
85
+ return (e, r) => (u(), v("div", de, [
86
+ e.draggle ? (u(), v(Q, { key: 0 }, [
87
+ g(o(ee), x({
88
88
  class: "das-ui-upload-dragger",
89
89
  fileList: o(i),
90
90
  "onUpdate:fileList": r[0] || (r[0] = (l) => B(i) ? i.value = l : null),
@@ -99,17 +99,17 @@ const ae = (t) => {
99
99
  file: l,
100
100
  actions: f
101
101
  }, () => [
102
- m("div", ne, [
103
- g(o(R), {
102
+ m("div", ce, [
103
+ g(o(L), {
104
104
  iconColor: o(_)("--das-ui-color-secondary"),
105
105
  size: "medium"
106
106
  }, null, 8, ["iconColor"]),
107
- y((u(), v("div", ue, [
107
+ y((u(), v("div", pe, [
108
108
  C(s(l.name), 1)
109
109
  ])), [
110
110
  [o(T)]
111
111
  ]),
112
- e.showSize ? (u(), v("div", ce, "(" + s(l.sizeText) + ")", 1)) : k("", !0),
112
+ e.showSize ? (u(), v("div", me, "(" + s(l.sizeText) + ")", 1)) : k("", !0),
113
113
  e.isView ? k("", !0) : (u(), A(o(I), {
114
114
  key: 1,
115
115
  "btn-type": "primary-text",
@@ -126,27 +126,27 @@ const ae = (t) => {
126
126
  ], !0)
127
127
  ]),
128
128
  default: p(() => [
129
- m("div", se, [
130
- g(o(ee), {
129
+ m("div", ne, [
130
+ g(o(te), {
131
131
  iconColor: o(_)("--das-ui-color-secondary")
132
132
  }, null, 8, ["iconColor"]),
133
- m("div", de, s(o(h)("das-upload-text")), 1)
133
+ m("div", ue, s(o(h)("das-upload-text")), 1)
134
134
  ])
135
135
  ]),
136
136
  _: 3
137
137
  }, 16, ["fileList", "max-count", "accept", "style", "before-upload", "disabled"]),
138
- y(m("div", pe, [
139
- y(m("div", me, [
140
- g(o(R), {
138
+ y(m("div", fe, [
139
+ y(m("div", ve, [
140
+ g(o(L), {
141
141
  iconColor: o(_)("--das-ui-color-secondary"),
142
142
  size: "medium"
143
143
  }, null, 8, ["iconColor"]),
144
- y((u(), v("div", fe, [
144
+ y((u(), v("div", he, [
145
145
  C(s(o(w)), 1)
146
146
  ])), [
147
147
  [o(T)]
148
148
  ]),
149
- e.showSize ? (u(), v("div", ve, "(" + s(e.errorFileSize) + ")", 1)) : k("", !0),
149
+ e.showSize ? (u(), v("div", ge, "(" + s(e.errorFileSize) + ")", 1)) : k("", !0),
150
150
  g(o(I), {
151
151
  "btn-type": "primary-text",
152
152
  block: "",
@@ -161,11 +161,11 @@ const ae = (t) => {
161
161
  ], 512), [
162
162
  [M, o(w)]
163
163
  ]),
164
- m("div", he, s(o(h)("das-upload-tips")) + s(o(b)), 1)
164
+ m("div", Ce, s(o(h)("das-upload-tips")) + s(o(b)), 1)
165
165
  ], 512), [
166
166
  [M, o(z)]
167
167
  ])
168
- ], 64)) : (u(), A(o(Y), x({
168
+ ], 64)) : (u(), A(o(oe), x({
169
169
  key: 1,
170
170
  "file-list": o(i),
171
171
  "onUpdate:fileList": r[1] || (r[1] = (l) => B(i) ? i.value = l : null),
@@ -179,7 +179,7 @@ const ae = (t) => {
179
179
  file: l,
180
180
  actions: f
181
181
  }, () => [
182
- ge
182
+ be
183
183
  ], !0)
184
184
  ]),
185
185
  default: p(() => [
@@ -200,12 +200,12 @@ const ae = (t) => {
200
200
  }, 16, ["file-list", "accept", "before-upload", "max-count", "disabled"]))
201
201
  ]));
202
202
  }
203
- }), be = (t, d) => {
203
+ }), ye = (t, d) => {
204
204
  const a = t.__vccOpts || t;
205
205
  for (const [c, i] of d)
206
206
  a[c] = i;
207
207
  return a;
208
- }, we = /* @__PURE__ */ be(Ce, [["__scopeId", "data-v-11f92fa2"]]), ye = {
208
+ }, ke = /* @__PURE__ */ ye(we, [["__scopeId", "data-v-11f92fa2"]]), Fe = {
209
209
  "das-upload-text": { "zh-CN": "点击或拖拽上传", en: "Click or drag to upload", _appCode: "framework" },
210
210
  "das-upload-btn-text": { "zh-CN": "上传文件", en: "Upload File", _appCode: "framework" },
211
211
  "das-upload-download": { "zh-CN": "下载", en: "Download", _appCode: "framework" },
@@ -216,15 +216,15 @@ const ae = (t) => {
216
216
  en: "The uploaded file format can only be $0",
217
217
  _appCode: "framework"
218
218
  }
219
- }, ke = {
219
+ }, _e = {
220
220
  "--das-ui-upload-bgcolor": { light: "#FAFAFA" },
221
221
  "--das-ui-upload-border-color": { light: "#E5E5E5" },
222
222
  "--das-ui-upload-bgcolor-hover": _("--das-ui-color-primary-level1"),
223
223
  "--das-ui-upload-border-color-hover": { light: "#5582F3" }
224
- }, Me = W(we);
225
- G(ye);
226
- K(ke);
224
+ }, Le = G(ke);
225
+ P(Fe);
226
+ q(_e);
227
227
  export {
228
- Me as DasUpload,
229
- Me as default
228
+ Le as DasUpload,
229
+ Le as default
230
230
  };