agilebuilder-ui 1.2.8-cdnTmp2 → 1.2.8-cdnTmp3
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/es/src/utils/workflow-util.mjs +29 -30
- package/es/style.css +1 -1
- package/es/super-grid/src/dynamic-input.vue.mjs +2 -2
- package/es/super-grid/src/super-grid.vue.mjs +29 -21
- package/package.json +1 -1
- package/es/src/utils/workflow-operation-label.mjs +0 -7
- package/es/super-grid/src/selected-summary.mjs +0 -19
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import { getI18n as t } from "./util.mjs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let T = O.toLowerCase();
|
|
2
|
+
function o(o2, n, s, e) {
|
|
3
|
+
let r = o2.transactionResult;
|
|
4
|
+
const i = o2.historyType;
|
|
5
|
+
if (!o2.current && i)
|
|
6
|
+
if (o2.transactionParams) {
|
|
7
|
+
const O = JSON.parse(o2.transactionParams);
|
|
8
|
+
let T = i.toLowerCase();
|
|
10
9
|
const _ = function(t2) {
|
|
11
10
|
return "HISTORY_SUBMIT" === t2 || "HISTORY_AGREE" === t2 || "HISTORY_DISAGREE" === t2 || "HISTORY_AGREEMENT" === t2 || "HISTORY_OPPOSE" === t2 || "HISTORY_KIKEN" === t2 || "HISTORY_SIGNOFF" === t2 || "HISTORY_SEND" === t2 || "HISTORY_DISTRIBUTE" === t2 || "HISTORY_READED" === t2 || "HISTORY_RETRIEVE" === t2;
|
|
12
|
-
}(
|
|
13
|
-
if (_ ? T = "commonButtonOperation" : "process_end" === T && (T = "processEnd"), _ || "HISTORY_COMPLETE_TRANSFER" ===
|
|
14
|
-
const
|
|
15
|
-
|
|
11
|
+
}(i);
|
|
12
|
+
if (_ ? T = "commonButtonOperation" : "process_end" === T && (T = "processEnd"), _ || "HISTORY_COMPLETE_TRANSFER" === i || "CANCEL_TRUST_TASK_COMPLETE_TASK" === i) {
|
|
13
|
+
const o3 = O[2];
|
|
14
|
+
O.key_2 = t().t("workflowButton." + o3), 0 === O[2].indexOf("workflowButton.") && (O[2] = o3);
|
|
16
15
|
}
|
|
17
|
-
if ("process_start" === T &&
|
|
18
|
-
|
|
16
|
+
if ("process_start" === T && n && null !== n)
|
|
17
|
+
O.key_1 = n, r = t().t("workflowHistoryList." + T, O);
|
|
19
18
|
else {
|
|
20
|
-
const
|
|
21
|
-
for (const t2 in
|
|
22
|
-
let
|
|
23
|
-
(t2 + "").indexOf("key_") < 0 && (
|
|
19
|
+
const o3 = {};
|
|
20
|
+
for (const t2 in O) {
|
|
21
|
+
let n2 = t2 + "";
|
|
22
|
+
(t2 + "").indexOf("key_") < 0 && (n2 = "key_" + n2), o3[n2] = O[t2];
|
|
24
23
|
}
|
|
25
|
-
if (
|
|
26
|
-
for (const t2 in
|
|
27
|
-
let
|
|
28
|
-
(t2 + "").indexOf("key_") < 0 && (
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const t3 =
|
|
32
|
-
O2 && O2[
|
|
24
|
+
if (s && e)
|
|
25
|
+
for (const t2 in O) {
|
|
26
|
+
let n2 = t2 + "";
|
|
27
|
+
(t2 + "").indexOf("key_") < 0 && (n2 = "key_" + n2), o3[n2] = O[t2];
|
|
28
|
+
const r2 = O[t2];
|
|
29
|
+
if (r2.indexOf("${taskNodeId:") >= 0) {
|
|
30
|
+
const t3 = r2.substring(r2.indexOf(":") + 1, r2.indexOf("##")), i2 = r2.substring(r2.indexOf("##") + 2, r2.lastIndexOf("}")), O2 = s[t3];
|
|
31
|
+
O2 && O2[e] && "" !== O2[e] ? o3[n2] = O2[e] : o3[n2] = i2;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
r = t().t("workflowHistoryList." + T, o3);
|
|
36
35
|
}
|
|
37
36
|
} else
|
|
38
|
-
|
|
39
|
-
return
|
|
37
|
+
r = t().t("workflowHistoryList." + i.toLowerCase());
|
|
38
|
+
return r;
|
|
40
39
|
}
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
o as i18nOperation
|
|
43
42
|
};
|