@das-fed/ui 6.4.0-hot.23 → 6.4.0-hot.24
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/package.json +6 -6
- package/packages/business-components/device-panel/index.js +37397 -37395
- package/packages/business-components/device-panel/index.js.gz +0 -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 +60 -60
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/export-button/style.css +1 -1
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +1 -0
- package/packages/business-components/import-button/index.js +239 -235
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/model-table-dialog/index.js +37 -37
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/index.js +176 -176
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-log/index.js +252 -252
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1319 -1322
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/urgentMonitorPanel.vue.d.ts +8 -3
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +3 -3
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/style.css +1 -1
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
- package/packages/business-components/video-dialog/index.js +301 -273
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/calendar/index.js +56 -56
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +41 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +444 -444
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2299 -2293
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +26 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/input/index.js +73 -73
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/loading/index.js +66 -65
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/index.js +358 -355
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/src/hooks/use-map.d.ts +1 -2
- package/packages/components/map/style.css +1 -1
- package/packages/components/message/index.js +20 -19
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +22 -21
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/progress/index.js +80 -80
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/select/index.js +102 -102
- 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/spin/index.js +31 -30
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/index.js +2419 -2418
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tooltip/index.js +23 -22
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +1428 -1427
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +9 -11
- package/packages/components/tree-select/index.js +274 -274
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +64 -64
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +4 -12
|
Binary file
|
|
@@ -1,51 +1,51 @@
|
|
|
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, watch as H, openBlock as
|
|
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
4
|
import { t as g, i18n as h } from "@das-fed/web/packages/i18n/index";
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasProgress as
|
|
7
|
-
import { DasButton as
|
|
8
|
-
import { iotProgress as
|
|
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
9
|
import U from "dayjs";
|
|
10
10
|
import { DasMessage as T } from "@das-fed/ui/packages/components/message/index";
|
|
11
11
|
import { getConfig as E } from "@das-fed/utils/config";
|
|
12
12
|
let _ = (a = 21) => {
|
|
13
|
-
let l = "",
|
|
13
|
+
let l = "", e = crypto.getRandomValues(new Uint8Array(a));
|
|
14
14
|
for (; a--; ) {
|
|
15
|
-
let s =
|
|
15
|
+
let s = e[a] & 63;
|
|
16
16
|
s < 36 ? l += s.toString(36) : s < 62 ? l += (s - 26).toString(36).toUpperCase() : s < 63 ? l += "_" : l += "-";
|
|
17
17
|
}
|
|
18
18
|
return l;
|
|
19
19
|
};
|
|
20
|
-
const
|
|
21
|
-
let l = p(!1),
|
|
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
22
|
const j = () => {
|
|
23
23
|
u.value = "", d.value = "", f.value = "", v.value = !1, P.value = "";
|
|
24
|
-
}, q = async (
|
|
25
|
-
o.value = "normal", i.value = 0, s.value = $ || g("导出进度"),
|
|
26
|
-
const b = await (
|
|
24
|
+
}, q = async (t, n = "", $ = "") => {
|
|
25
|
+
o.value = "normal", i.value = 0, s.value = $ || g("导出进度"), e.value = !0;
|
|
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
31
|
D(b.taskId, "action", "");
|
|
32
|
-
}, z = async (
|
|
33
|
-
o.value = "normal", i.value = 0, s.value = g("导出进度"),
|
|
34
|
-
const b = await (
|
|
32
|
+
}, z = async (t, n = "", $ = "") => {
|
|
33
|
+
o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
|
|
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
39
|
U().format("YYYYMMDDHHmmss") + "", D(b.taskId, "export", n || "", $);
|
|
40
|
-
}, D = async (
|
|
41
|
-
m.value = !0, B(
|
|
40
|
+
}, D = async (t, n, $, b = "") => {
|
|
41
|
+
m.value = !0, B(t, n, $, b), c = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
43
|
}, R = () => {
|
|
44
|
-
clearTimeout(c), c = null,
|
|
45
|
-
}, B = async (
|
|
44
|
+
clearTimeout(c), c = null, e.value = !1;
|
|
45
|
+
}, B = async (t, n = "export", $, b = "") => {
|
|
46
46
|
var L, M, S;
|
|
47
|
-
const [A, r] = await
|
|
48
|
-
url: `progress/${
|
|
47
|
+
const [A, r] = await le("", {
|
|
48
|
+
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
50
50
|
if (A) {
|
|
51
51
|
m.value = !1;
|
|
@@ -72,18 +72,18 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
72
72
|
} else n == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
74
|
c && r.status != 2 ? c = setTimeout(() => {
|
|
75
|
-
B(
|
|
75
|
+
B(t, n, $, b);
|
|
76
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 = (
|
|
78
|
-
|
|
77
|
+
}, I = (t, n) => {
|
|
78
|
+
t == 1 ? (o.value = "success", T.success({
|
|
79
79
|
message: `${n}成功`,
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
|
-
}), u.value = "", d.value = "", f.value = "") :
|
|
82
|
+
}), u.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", T.error({
|
|
83
83
|
message: `${n}${g("失败")}`,
|
|
84
84
|
grouping: !0,
|
|
85
85
|
repeatNum: 1
|
|
86
|
-
})) :
|
|
86
|
+
})) : t == 3 && (o.value = "error", T.error({
|
|
87
87
|
message: `${g("部分")}${n}${g("失败")}`,
|
|
88
88
|
grouping: !0,
|
|
89
89
|
repeatNum: 1
|
|
@@ -91,7 +91,7 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
91
91
|
};
|
|
92
92
|
return {
|
|
93
93
|
importDialog: l,
|
|
94
|
-
showProgressDialog:
|
|
94
|
+
showProgressDialog: e,
|
|
95
95
|
progressTitle: s,
|
|
96
96
|
percent: i,
|
|
97
97
|
progressStatus: o,
|
|
@@ -104,19 +104,19 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
104
104
|
errorFilePath: P,
|
|
105
105
|
fileExport: z,
|
|
106
106
|
fileAction: q,
|
|
107
|
-
generateUniqueName: (
|
|
108
|
-
const n =
|
|
109
|
-
return `${
|
|
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}`;
|
|
110
110
|
},
|
|
111
111
|
downloadFile: O,
|
|
112
112
|
resetStataus: j,
|
|
113
113
|
checkProgress: D
|
|
114
114
|
};
|
|
115
|
-
}, O = (a, l,
|
|
115
|
+
}, O = (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], {
|
|
119
|
-
type:
|
|
119
|
+
type: e === "zip" ? "application/zip" : e === "xlsx" ? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : "application/pdf"
|
|
120
120
|
}), m = URL.createObjectURL(o);
|
|
121
121
|
if (window.navigator.msSaveOrOpenBlob)
|
|
122
122
|
navigator.msSaveBlob(o, l);
|
|
@@ -125,8 +125,8 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
125
125
|
c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
|
-
},
|
|
129
|
-
const { showProgressDialog:
|
|
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
130
|
y.value = {
|
|
131
131
|
...v
|
|
132
132
|
}, u.value = {
|
|
@@ -141,20 +141,20 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
141
141
|
return P ? { status: !1 } : { status: !0, taskId: v };
|
|
142
142
|
};
|
|
143
143
|
return {
|
|
144
|
-
showProgressDialog:
|
|
144
|
+
showProgressDialog: e,
|
|
145
145
|
progressTitle: s,
|
|
146
146
|
percent: i,
|
|
147
147
|
progressStatus: o,
|
|
148
148
|
progressLoading: m,
|
|
149
149
|
exportList: d
|
|
150
150
|
};
|
|
151
|
-
},
|
|
151
|
+
}, ie = { class: "das-export-button" }, pe = /* @__PURE__ */ G({
|
|
152
152
|
__name: "App",
|
|
153
153
|
props: {
|
|
154
154
|
modelValue: {},
|
|
155
155
|
bodyParams: {},
|
|
156
156
|
exportFun: {},
|
|
157
|
-
exportFileName: { default:
|
|
157
|
+
exportFileName: { default: "" },
|
|
158
158
|
fileType: { default: "xlsx" },
|
|
159
159
|
taskIdPosition: { default: "params" },
|
|
160
160
|
block: { type: Boolean, default: !1 },
|
|
@@ -164,26 +164,26 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
164
164
|
},
|
|
165
165
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
166
166
|
setup(a, { emit: l }) {
|
|
167
|
-
const
|
|
168
|
-
H(
|
|
167
|
+
const e = a, s = l;
|
|
168
|
+
J(() => e.exportFileName || g("导出表")), H(e.modelValue, (u) => {
|
|
169
169
|
s("update:modelValue", u);
|
|
170
|
-
}), H(
|
|
170
|
+
}), H(e.bodyParams, (u) => {
|
|
171
171
|
s("update:bodyParams", u);
|
|
172
172
|
});
|
|
173
|
-
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } =
|
|
174
|
-
return (u, d) => (
|
|
175
|
-
V(x(
|
|
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
176
|
block: u.block,
|
|
177
177
|
size: "middle",
|
|
178
178
|
disabled: u.disabled,
|
|
179
|
-
"btn-type":
|
|
179
|
+
"btn-type": e.btnType,
|
|
180
180
|
ghost: u.ghost,
|
|
181
|
-
onClick: d[0] || (d[0] = (f) => x(c)(
|
|
181
|
+
onClick: d[0] || (d[0] = (f) => x(c)(e.modelValue, e.bodyParams))
|
|
182
182
|
}, {
|
|
183
183
|
default: Y(() => [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
W(u.$slots, "default", {}, () => [
|
|
185
|
+
Z(
|
|
186
|
+
ee(x(h)("导出").value),
|
|
187
187
|
1
|
|
188
188
|
/* TEXT */
|
|
189
189
|
)
|
|
@@ -192,8 +192,8 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
192
192
|
_: 3
|
|
193
193
|
/* FORWARDED */
|
|
194
194
|
}, 8, ["block", "disabled", "btn-type", "ghost"]),
|
|
195
|
-
|
|
196
|
-
V(x(
|
|
195
|
+
te(" 进度弹窗 "),
|
|
196
|
+
V(x(se), {
|
|
197
197
|
size: "mini",
|
|
198
198
|
title: x(h)("导出进度").value,
|
|
199
199
|
"is-feedback-img": !1,
|
|
@@ -203,7 +203,7 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
203
203
|
type: "feedback"
|
|
204
204
|
}, {
|
|
205
205
|
default: Y(() => [
|
|
206
|
-
V(x(
|
|
206
|
+
V(x(ae), {
|
|
207
207
|
modelValue: x(o),
|
|
208
208
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => C(o) ? o.value = f : null),
|
|
209
209
|
style: { "margin-top": "35px" },
|
|
@@ -217,13 +217,13 @@ const re = oe.get("progress"), le = (a) => {
|
|
|
217
217
|
}, 8, ["title", "modelValue"])
|
|
218
218
|
]));
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
221
|
-
const
|
|
220
|
+
}), me = (a, l) => {
|
|
221
|
+
const e = a.__vccOpts || a;
|
|
222
222
|
for (const [s, i] of l)
|
|
223
|
-
|
|
224
|
-
return
|
|
225
|
-
},
|
|
223
|
+
e[s] = i;
|
|
224
|
+
return e;
|
|
225
|
+
}, ce = /* @__PURE__ */ me(pe, [["__scopeId", "data-v-be58460e"]]), we = X(ce);
|
|
226
226
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
we as DasExportButton,
|
|
228
|
+
we as default
|
|
229
229
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-export-button[data-v-
|
|
1
|
+
.das-export-button[data-v-be58460e]{display:inline-block}
|
|
@@ -20,6 +20,7 @@ export declare const useFile: (emits: any) => {
|
|
|
20
20
|
errorMessage: import("vue").Ref<string, string>;
|
|
21
21
|
errorImport: import("vue").Ref<boolean, boolean>;
|
|
22
22
|
errorFilePath: import("vue").Ref<string, string>;
|
|
23
|
+
fileHandleType: import("vue").Ref<string, string>;
|
|
23
24
|
fileImport: (importFunc: (n?: any) => Promise<ImExportFuncRelated>, file: any, options: optionsRalated, isBatch?: boolean, needProgress?: boolean, errPathName?: string) => Promise<void>;
|
|
24
25
|
fileExport: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, fileSuffix?: string) => Promise<void>;
|
|
25
26
|
fileAction: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, actionTitle?: string) => Promise<void>;
|
|
@@ -11,6 +11,7 @@ export declare const useImport: (props: any, emits: any) => {
|
|
|
11
11
|
errorImport: Ref<boolean, boolean>;
|
|
12
12
|
importDialog: Ref<boolean, boolean>;
|
|
13
13
|
fileList: Ref<any, any>;
|
|
14
|
+
fileHandleType: Ref<string, string>;
|
|
14
15
|
showImportHandle: () => void;
|
|
15
16
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
16
17
|
fileUpload: (file: any) => void;
|