@das-fed/ui 6.4.0-dev.55.13 → 6.4.0-dev.55.15
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.
- package/esm-map.json +4 -1
- package/package.json +5 -5
- package/packages/business-components/change-enterprises/index.js +8 -8
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +37 -37
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/index.js +16 -16
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +12414 -12707
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
- package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +30 -30
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +1 -1
- package/packages/business-components/import-button/index.js +57 -57
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +1 -1
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +58 -58
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +209 -214
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +25 -25
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/upload-file/index.js +13 -13
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +245 -245
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +67 -67
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +61 -61
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +7 -7
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +57 -57
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +12 -1
- package/packages/components/input-dialog-select/index.d.ts +1 -0
- package/packages/components/input-dialog-select/index.js +108 -101
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/live-player/index.js +142 -142
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +3 -3
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/select/index.js +41 -41
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/table/index.js +460 -460
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tree/index.js +1 -1
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/index.js +7 -7
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/icons/exit/index.d.ts +1 -0
- package/packages/icons/exit/index.js +17 -0
- package/packages/icons/exit/index.js.gz +0 -0
- package/packages/icons/exit/index.vue.d.ts +16 -0
- package/packages/icons/global/index.d.ts +1 -0
- package/packages/icons/global/index.js +17 -0
- package/packages/icons/global/index.js.gz +0 -0
- package/packages/icons/global/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +3 -0
- package/packages/icons/index.js +3 -0
- package/packages/icons/system/index.d.ts +1 -0
- package/packages/icons/system/index.js +17 -0
- package/packages/icons/system/index.js.gz +0 -0
- package/packages/icons/system/index.vue.d.ts +16 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/image-upload/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { i18n as b, t as w, setI18nRule as
|
|
4
|
-
import { getVar as k, setThemeRule as
|
|
5
|
-
import { computed as N, defineComponent as
|
|
6
|
-
import { UploadDragger as
|
|
2
|
+
import { withInstall as M } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { i18n as b, t as w, setI18nRule as U } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { getVar as k, setThemeRule as B } from "@das-fed/web/packages/theme/index";
|
|
5
|
+
import { computed as N, defineComponent as D, openBlock as j, createElementBlock as E, createCommentVNode as I, withDirectives as z, createVNode as v, unref as a, normalizeClass as F, withCtx as y, createElementVNode as h, toDisplayString as T, vShow as S, createTextVNode as R } from "vue";
|
|
6
|
+
import { UploadDragger as G, Upload as P } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/upload/style/css";
|
|
8
|
-
import { DasSpin as
|
|
9
|
-
import { DasButton as
|
|
10
|
-
import { DasIconAddto as
|
|
11
|
-
import { DasIconWarning as
|
|
12
|
-
import { DasMessage as
|
|
8
|
+
import { DasSpin as J } from "@das-fed/ui/packages/components/spin/index";
|
|
9
|
+
import { DasButton as H } from "@das-fed/ui/packages/components/button/index";
|
|
10
|
+
import { DasIconAddto as K } from "@das-fed/ui/packages/icons/addto/index";
|
|
11
|
+
import { DasIconWarning as O } from "@das-fed/ui/packages/icons/warning/index";
|
|
12
|
+
import { DasMessage as V } from "@das-fed/ui/packages/components/message/index";
|
|
13
13
|
import { useModelValue as W } from "@das-fed/utils/vue";
|
|
14
14
|
import "@das-fed/ui/packages/global/theme";
|
|
15
15
|
const q = () => ({ size2B: (o) => {
|
|
@@ -28,58 +28,58 @@ const q = () => ({ size2B: (o) => {
|
|
|
28
28
|
return e.acceptVideo && (n = [...n, ...l]), e.acceptAudio && (n = [...n, ...g]), n.join(",");
|
|
29
29
|
} else
|
|
30
30
|
return e.accept;
|
|
31
|
-
}),
|
|
32
|
-
return { isAccept: s, uploadStatus: t, loading:
|
|
33
|
-
var x,
|
|
31
|
+
}), C = N(() => t.value === "uploading"), _ = N(() => t.value === "error");
|
|
32
|
+
return { isAccept: s, uploadStatus: t, loading: C, errored: _, beforeupload: (r) => {
|
|
33
|
+
var x, $;
|
|
34
34
|
if (e.maxSize) {
|
|
35
|
-
const { finalSize: i, sizeText:
|
|
35
|
+
const { finalSize: i, sizeText: u } = p(e.maxSize);
|
|
36
36
|
if (r.size > i) {
|
|
37
|
-
const
|
|
37
|
+
const d = !e.acceptAudio && !e.acceptVideo ? b("das-ui-import-upload-key3", u, "JPG、JPEG、PNG、GIF、SVG").value : b(
|
|
38
38
|
"das-ui-import-upload-key3",
|
|
39
|
-
|
|
39
|
+
u,
|
|
40
40
|
(x = s.value) == null ? void 0 : x.toUpperCase().replaceAll(".", "").replaceAll(",", "、")
|
|
41
|
-
).value, m = e.errorMessage ||
|
|
42
|
-
return
|
|
41
|
+
).value, m = e.errorMessage || d;
|
|
42
|
+
return V.warning(m), o("update:status", "normal"), t.value = "normal", !1;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const n = () => (t.value = "uploading", o("update:status", "uploading"), o("image-upload", r), !1);
|
|
46
46
|
if (e.customCheck) {
|
|
47
47
|
const i = e.customCheck(r);
|
|
48
48
|
if (i instanceof Promise)
|
|
49
|
-
return new Promise(async (
|
|
49
|
+
return new Promise(async (u, d) => {
|
|
50
50
|
let m;
|
|
51
51
|
try {
|
|
52
52
|
m = await i.then();
|
|
53
53
|
} catch {
|
|
54
54
|
m = !1;
|
|
55
55
|
}
|
|
56
|
-
m ? n() :
|
|
56
|
+
m ? n() : d(!1);
|
|
57
57
|
});
|
|
58
58
|
if (!i)
|
|
59
59
|
return o("update:status", "normal"), t.value = "normal", !1;
|
|
60
60
|
} else if (s.value)
|
|
61
61
|
if (!e.acceptAudio && !e.acceptVideo) {
|
|
62
|
-
const i = s.value.split(",").map((
|
|
63
|
-
let
|
|
64
|
-
return
|
|
62
|
+
const i = s.value.split(",").map((u) => {
|
|
63
|
+
let d = u.trim().slice(1);
|
|
64
|
+
return d === "svg" && (d = "svg+xml"), `image/${d}`;
|
|
65
65
|
}) ?? [];
|
|
66
66
|
if (i.includes("image/jpg") && !i.includes("image/jpeg") && i.push("image/jpeg"), !i.includes(r.type)) {
|
|
67
|
-
const
|
|
68
|
-
return
|
|
67
|
+
const u = e.errorMessage || b("das-ui-import-upload-key1", s.value.toUpperCase().replaceAll(".", "").replaceAll(",", "、")).value;
|
|
68
|
+
return V.warning(u), !1;
|
|
69
69
|
}
|
|
70
70
|
} else {
|
|
71
71
|
const i = s.value.split(",").map((c) => {
|
|
72
72
|
let f = c.trim().slice(1);
|
|
73
73
|
return f === "svg" && (f = "svg+xml"), `image/${f}`;
|
|
74
|
-
}) ?? [],
|
|
75
|
-
if (![...i, ...
|
|
76
|
-
const c = e.errorMessage || b("das-ui-import-upload-key2", (
|
|
77
|
-
return
|
|
74
|
+
}) ?? [], u = l.map((c) => `video/${c.split(".")[1]}`) ?? [], d = g.map((c) => `audio/${c.split(".")[1]}`) ?? [], m = l.map((c) => `audio/${c.split(".")[1]}`) ?? [];
|
|
75
|
+
if (![...i, ...u, ...d, ...m].includes(r.type)) {
|
|
76
|
+
const c = e.errorMessage || b("das-ui-import-upload-key2", ($ = s.value) == null ? void 0 : $.toUpperCase()).value;
|
|
77
|
+
return V.warning(c), !1;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return n();
|
|
81
81
|
} };
|
|
82
|
-
}, Q = { class: "das-ui-image-upload" }, X = { class: "das-ui-image-upload-dragger-context" }, Y = { class: "text" }, Z = { class: "das-ui-image-upload-error-container" }, ee = { class: "tips-container" }, ae = { class: "text" }, oe = /* @__PURE__ */
|
|
82
|
+
}, Q = { class: "das-ui-image-upload" }, X = { class: "das-ui-image-upload-dragger-context" }, Y = { class: "text" }, Z = { class: "das-ui-image-upload-error-container" }, ee = { class: "tips-container" }, ae = { class: "text" }, oe = /* @__PURE__ */ D({
|
|
83
83
|
__name: "Index",
|
|
84
84
|
props: {
|
|
85
85
|
maxCount: { default: 1 },
|
|
@@ -95,16 +95,16 @@ const q = () => ({ size2B: (o) => {
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["update:status", "image-upload"],
|
|
97
97
|
setup(e, { emit: o }) {
|
|
98
|
-
const t = e, p = o, { isAccept: l, uploadStatus: g, loading: s, errored:
|
|
99
|
-
return (A, r) => (
|
|
100
|
-
|
|
101
|
-
z(v(a(
|
|
102
|
-
class:
|
|
98
|
+
const t = e, p = o, { isAccept: l, uploadStatus: g, loading: s, errored: C, beforeupload: _ } = L(t, p);
|
|
99
|
+
return (A, r) => (j(), E("div", Q, [
|
|
100
|
+
I(" 图片上传组件 "),
|
|
101
|
+
z(v(a(J), {
|
|
102
|
+
class: F([{ "loading-border": a(s) }]),
|
|
103
103
|
type: "component",
|
|
104
104
|
spinning: a(s)
|
|
105
105
|
}, {
|
|
106
106
|
default: y(() => [
|
|
107
|
-
v(a(
|
|
107
|
+
v(a(G), {
|
|
108
108
|
class: "das-ui-image-upload-dragger",
|
|
109
109
|
accept: a(l),
|
|
110
110
|
"max-count": A.maxCount,
|
|
@@ -112,14 +112,14 @@ const q = () => ({ size2B: (o) => {
|
|
|
112
112
|
}, {
|
|
113
113
|
itemRender: y(({ file: n, actions: x }) => r[0] || (r[0] = [])),
|
|
114
114
|
default: y(() => [
|
|
115
|
-
z(
|
|
115
|
+
z(h(
|
|
116
116
|
"div",
|
|
117
117
|
X,
|
|
118
118
|
[
|
|
119
|
-
v(a(
|
|
119
|
+
v(a(K), {
|
|
120
120
|
iconColor: a(k)("--das-ui-color-secondary")
|
|
121
121
|
}, null, 8, ["iconColor"]),
|
|
122
|
-
|
|
122
|
+
h(
|
|
123
123
|
"div",
|
|
124
124
|
Y,
|
|
125
125
|
T(A.message || a(w)("das-image-upload-text")),
|
|
@@ -130,7 +130,7 @@ const q = () => ({ size2B: (o) => {
|
|
|
130
130
|
512
|
|
131
131
|
/* NEED_PATCH */
|
|
132
132
|
), [
|
|
133
|
-
[
|
|
133
|
+
[S, a(g) === "normal"]
|
|
134
134
|
])
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
@@ -140,19 +140,19 @@ const q = () => ({ size2B: (o) => {
|
|
|
140
140
|
_: 1
|
|
141
141
|
/* STABLE */
|
|
142
142
|
}, 8, ["class", "spinning"]), [
|
|
143
|
-
[
|
|
143
|
+
[S, !a(C)]
|
|
144
144
|
]),
|
|
145
|
-
|
|
146
|
-
z(
|
|
145
|
+
I(" 错误状态 "),
|
|
146
|
+
z(h(
|
|
147
147
|
"div",
|
|
148
148
|
Z,
|
|
149
149
|
[
|
|
150
|
-
|
|
151
|
-
v(a(
|
|
150
|
+
h("div", ee, [
|
|
151
|
+
v(a(O), {
|
|
152
152
|
iconColor: a(k)("--das-ui-color-danger"),
|
|
153
153
|
size: "small"
|
|
154
154
|
}, null, 8, ["iconColor"]),
|
|
155
|
-
|
|
155
|
+
h(
|
|
156
156
|
"div",
|
|
157
157
|
ae,
|
|
158
158
|
T(a(w)("das-image-upload-fail")),
|
|
@@ -160,19 +160,19 @@ const q = () => ({ size2B: (o) => {
|
|
|
160
160
|
/* TEXT */
|
|
161
161
|
)
|
|
162
162
|
]),
|
|
163
|
-
v(a(
|
|
163
|
+
v(a(P), {
|
|
164
164
|
accept: a(l),
|
|
165
165
|
"before-upload": a(_),
|
|
166
166
|
"max-count": A.maxCount
|
|
167
167
|
}, {
|
|
168
168
|
itemRender: y(({ file: n, actions: x }) => r[1] || (r[1] = [])),
|
|
169
169
|
default: y(() => [
|
|
170
|
-
v(a(
|
|
170
|
+
v(a(H), {
|
|
171
171
|
"btn-type": "primary-text",
|
|
172
172
|
block: ""
|
|
173
173
|
}, {
|
|
174
174
|
default: y(() => [
|
|
175
|
-
|
|
175
|
+
R(
|
|
176
176
|
T(a(w)("das-image-upload-reupload")),
|
|
177
177
|
1
|
|
178
178
|
/* TEXT */
|
|
@@ -189,7 +189,7 @@ const q = () => ({ size2B: (o) => {
|
|
|
189
189
|
512
|
|
190
190
|
/* NEED_PATCH */
|
|
191
191
|
), [
|
|
192
|
-
[
|
|
192
|
+
[S, a(C)]
|
|
193
193
|
])
|
|
194
194
|
]));
|
|
195
195
|
}
|
|
@@ -201,21 +201,21 @@ const q = () => ({ size2B: (o) => {
|
|
|
201
201
|
}, re = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-5821ad3e"]]), le = {
|
|
202
202
|
"das-ui-import-upload-key1": {
|
|
203
203
|
"zh-CN": "上传的图片格式只能是$0",
|
|
204
|
-
en: "The
|
|
204
|
+
en: "The uploaded picture format can only be $0",
|
|
205
205
|
_appCode: "framework"
|
|
206
206
|
},
|
|
207
207
|
"das-ui-import-upload-key2": {
|
|
208
208
|
"zh-CN": "上传的文件格式只能是$0",
|
|
209
|
-
en: "The
|
|
209
|
+
en: "The uploaded file format can only be $0",
|
|
210
210
|
_appCode: "framework"
|
|
211
211
|
},
|
|
212
212
|
"das-ui-import-upload-key3": {
|
|
213
213
|
"zh-CN": "上传的图片大小不能超过$0的$1文件",
|
|
214
|
-
en: "The
|
|
214
|
+
en: "The uploaded file format can only be $0",
|
|
215
215
|
_appCode: "framework"
|
|
216
216
|
},
|
|
217
217
|
"das-image-upload-text": { "zh-CN": "上传图片", en: "Upload Image", _appCode: "framework" },
|
|
218
|
-
"das-image-upload-reupload": { "zh-CN": "重新上传", en: "Re-
|
|
218
|
+
"das-image-upload-reupload": { "zh-CN": "重新上传", en: "Re-upload", _appCode: "framework" },
|
|
219
219
|
"das-image-upload-fail": { "zh-CN": "上传失败", en: "Upload Failed", _appCode: "framework" }
|
|
220
220
|
}, ie = {
|
|
221
221
|
"--das-ui-image-upload-bgcolor": { light: "#FAFAFA" },
|
|
@@ -223,9 +223,9 @@ const q = () => ({ size2B: (o) => {
|
|
|
223
223
|
"--das-ui-image-upload-bgcolor-hover": { light: k("--das-ui-color-primary-level1") },
|
|
224
224
|
"--das-ui-image-upload-border-color-hover": { light: "#5582F3" },
|
|
225
225
|
"--das-ui-image-upload-border-color-error": { light: k("--das-ui-color-danger-level2") }
|
|
226
|
-
}, Ae =
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
}, Ae = M(re);
|
|
227
|
+
U(le);
|
|
228
|
+
B(ie);
|
|
229
229
|
export {
|
|
230
230
|
Ae as DasImageUpload,
|
|
231
231
|
Ae as default
|
|
Binary file
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: {
|
|
2
|
+
请选择: {
|
|
3
|
+
'zh-CN': string;
|
|
4
|
+
en: string;
|
|
5
|
+
_appCode: string;
|
|
6
|
+
};
|
|
7
|
+
'das-framework-input-dialog-select-total-items': {
|
|
8
|
+
'zh-CN': string;
|
|
9
|
+
en: string;
|
|
10
|
+
_appCode: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
2
13
|
export default _default;
|