agilebuilder-ui 1.1.65-tmp2 → 1.1.65-tmp4
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/lib/chat-embed/src/chat-embed-message.js +1 -1
- package/lib/chat-embed/src/sidebar-item.vue2.js +9 -9
- package/lib/date-picker-range/index.vue2.js +20 -20
- package/lib/style.css +1368 -1368
- package/lib/super-grid/src/formatter.js +5 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +3 -3
- package/package.json +3 -2
- package/vite.config.js +5 -4
- package/lib/_virtual/_commonjsHelpers.js +0 -8
- package/lib/_virtual/dayjs.min.js +0 -4
- package/lib/_virtual/weekOfYear.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
1
|
+
import e from "dayjs";
|
|
2
|
+
import t from "dayjs/plugin/weekOfYear";
|
|
3
3
|
e.extend(t);
|
|
4
4
|
const n = { number: function(e2, t2) {
|
|
5
5
|
const n2 = t2.precision, r2 = t2.sign, o2 = t2.delimiter, i2 = t2.scientific;
|
|
@@ -27,9 +27,9 @@ const n = { number: function(e2, t2) {
|
|
|
27
27
|
return e(t2).week();
|
|
28
28
|
{
|
|
29
29
|
const e2 = new Date(t2);
|
|
30
|
-
var o2 = e2.getFullYear(), i2 = e2.getMonth() + 1, l = e2.getDate(),
|
|
31
|
-
i2 < 10 && (i2 = "0" + i2), l < 10 && (l = "0" + l),
|
|
32
|
-
const n3 = r2.replace("yyyy", o2).replace("mm", u).replace("M", i2).replace("m", i2).replace("d", l).replace("hh",
|
|
30
|
+
var o2 = e2.getFullYear(), i2 = e2.getMonth() + 1, l = e2.getDate(), a = e2.getHours(), u = e2.getMinutes(), c = e2.getSeconds();
|
|
31
|
+
i2 < 10 && (i2 = "0" + i2), l < 10 && (l = "0" + l), a < 10 && (a = "0" + a), u < 10 && (u = "0" + u), c < 10 && (c = "0" + c);
|
|
32
|
+
const n3 = r2.replace("yyyy", o2).replace("mm", u).replace("M", i2).replace("m", i2).replace("d", l).replace("hh", a).replace("HH", a).replace("ss", c);
|
|
33
33
|
return -1 === n3.indexOf("NaN") ? n3 : t2;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18nOperation as t } from "../../src/utils/workflow-util.js";
|
|
2
2
|
import { getLanguageWithLocale as e } from "../../src/utils/util.js";
|
|
3
3
|
import i from "./api.js";
|
|
4
|
-
import o from "
|
|
4
|
+
import o from "dayjs";
|
|
5
5
|
import { resolveComponent as s, openBlock as r, createBlock as a, withCtx as l, createVNode as n, createTextVNode as h, toDisplayString as y, createElementBlock as w, createCommentVNode as p, createElementVNode as c } from "vue";
|
|
6
6
|
import "./workflow-history-list.vue2.js";
|
|
7
7
|
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -79,10 +79,10 @@ const u = { name: "WorkflowHistoryList", props: { workflowId: { type: Number, de
|
|
|
79
79
|
let p2 = [];
|
|
80
80
|
n2 > 0 && p2.push(n2 + this.$t("IntervalSelection.tian")), y2 > 0 && p2.push(y2 + this.$t("IntervalSelection.hour")), w2 > 0 && p2.push(w2 + this.$t("IntervalSelection.minute")), 0 === p2.length && p2.push("0" + this.$t("IntervalSelection.minute")), i2.stayDuration = p2.join("");
|
|
81
81
|
}
|
|
82
|
-
} } }, f = { key: 0 }, g = { key: 1 }, k = { key: 2, style: { color: "#e6a23c" } }, m = { key: 3 }, b = { key: 4, style: { color: "red" } }, H = { key: 0 }, T = { key: 1 }, $ = { key: 0 }, S = { key: 1 }, D = { key: 0 }, N = { key: 1 }, _ = { key: 0 }, L = { key: 1 }, I = { key: 0 }, x = { key: 1 }, P = { key: 0 }, E = { key: 0 }, v = { key: 1 }, C = { key: 0 }, O = { key: 1 }, R = { key: 0, class: "red-circle" }, M = { key: 1, class: "green-circle" },
|
|
82
|
+
} } }, f = { key: 0 }, g = { key: 1 }, k = { key: 2, style: { color: "#e6a23c" } }, m = { key: 3 }, b = { key: 4, style: { color: "red" } }, H = { key: 0 }, T = { key: 1 }, $ = { key: 0 }, S = { key: 1 }, D = { key: 0 }, N = { key: 1 }, _ = { key: 0 }, L = { key: 1 }, I = { key: 0 }, x = { key: 1 }, P = { key: 0 }, E = { key: 0 }, v = { key: 1 }, C = { key: 0 }, O = { key: 1 }, R = { key: 0, class: "red-circle" }, M = { key: 1, class: "green-circle" }, A = { key: 0 }, j = { key: 1, style: { color: "#e6a23c" } }, z = { key: 2 }, K = { key: 0 }, U = { key: 1 };
|
|
83
83
|
const W = d(u, [["render", function(t2, e2, i2, o2, d2, u2) {
|
|
84
84
|
const W2 = s("el-table-column"), q = s("el-tag"), B = s("el-table");
|
|
85
|
-
return d2.loaded ? (r(), a(B, { key: 0, ref: "historyList", data: d2.histories, height: d2.tableHeight, load: u2.getChildren, "max-height": d2.tableMaxHeight, "tree-props": { children: "children", hasChildren: "hasChildren" }, border: "", "element-loading-text": "Loading", fit: "", "highlight-current-row": "", lazy: "", "row-key": "uuid", style: { width: "100%" } }, { default: l(() => [n(W2, { label: t2.$t("workflowHistoryList.index"), align: "center", width: "60" }, { default: l((t3) => [h(y(t3.$index + 1), 1)]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.taskName"), align: "center" }, { default: l((e3) => [e3.row.historyType && "PROCESS_START" === e3.row.historyType ? (r(), w("span", f, y(t2.$t("workflowHistoryList.processStart")), 1)) : e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span", g, y(t2.$t("workflowHistoryList.processEnd")), 1)) : e3.row.current ? (r(), w("span", k, y(u2.i18nTaskName(e3.row)), 1)) : e3.row.special ? true === e3.row.special ? (r(), w("span", b, y(u2.i18nTaskName(e3.row) + "[" + t2.$t("workflowHistoryList.specailText") + "]"), 1)) : p("", true) : (r(), w("span", m, y(u2.i18nTaskName(e3.row)), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operator"), align: "center", width: "80" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", H)) : (r(), w("span", T, y(t3.row.creatorName), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operatorLg"), align: "center", width: "120" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", $)) : (r(), w("span", S, y(t3.row.creator), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operatorDept"), align: "center" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", D)) : (r(), w("span", N, y(t3.row.departmentName), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operationTime"), align: "center" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", _)) : (r(), w("span", L, y(t3.row.formatCreatedTime), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.stayDuration"), align: "center", width: "90" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", I)) : t3.row.copyTask ? p("", true) : (r(), w("span", x, y(t3.row.stayDuration), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.taskState"), align: "center", width: "90" }, { default: l((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span", P)) : e3.row.current ? (r(), a(q, { key: 1, type: "warning" }, { default: l(() => [h(y(t2.$t("workflowHistoryList.taskStateDoing")), 1)]), _: 1 })) : (r(), a(q, { key: 2, type: "success" }, { default: l(() => [h(y(t2.$t("workflowHistoryList.taskStateDone")), 1)]), _: 1 }))]), _: 1 }, 8, ["label"]), d2.showProcessingDuration ? (r(), a(W2, { key: 0, label: t2.$t("workflowHistoryList.processingDuration"), align: "center", width: "110" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", E)) : t3.row.copyTask ? p("", true) : (r(), w("span", v, y(t3.row.processingDuration), 1))]), _: 1 }, 8, ["label"])) : p("", true), d2.showProcessingDuration ? (r(), a(W2, { key: 1, label: t2.$t("workflowHistoryList.isOverdue"), align: "center", width: "90" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", C)) : (r(), w("span", O, [t3.row.overdueDuration && t3.row.overdueDuration > 0 ? (r(), w("div", R)) : (r(), w("div", M))]))]), _: 1 }, 8, ["label"])) : p("", true), n(W2, { label: t2.$t("workflowHistoryList.operation"), align: "left" }, { default: l((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span",
|
|
85
|
+
return d2.loaded ? (r(), a(B, { key: 0, ref: "historyList", data: d2.histories, height: d2.tableHeight, load: u2.getChildren, "max-height": d2.tableMaxHeight, "tree-props": { children: "children", hasChildren: "hasChildren" }, border: "", "element-loading-text": "Loading", fit: "", "highlight-current-row": "", lazy: "", "row-key": "uuid", style: { width: "100%" } }, { default: l(() => [n(W2, { label: t2.$t("workflowHistoryList.index"), align: "center", width: "60" }, { default: l((t3) => [h(y(t3.$index + 1), 1)]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.taskName"), align: "center" }, { default: l((e3) => [e3.row.historyType && "PROCESS_START" === e3.row.historyType ? (r(), w("span", f, y(t2.$t("workflowHistoryList.processStart")), 1)) : e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span", g, y(t2.$t("workflowHistoryList.processEnd")), 1)) : e3.row.current ? (r(), w("span", k, y(u2.i18nTaskName(e3.row)), 1)) : e3.row.special ? true === e3.row.special ? (r(), w("span", b, y(u2.i18nTaskName(e3.row) + "[" + t2.$t("workflowHistoryList.specailText") + "]"), 1)) : p("", true) : (r(), w("span", m, y(u2.i18nTaskName(e3.row)), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operator"), align: "center", width: "80" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", H)) : (r(), w("span", T, y(t3.row.creatorName), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operatorLg"), align: "center", width: "120" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", $)) : (r(), w("span", S, y(t3.row.creator), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operatorDept"), align: "center" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", D)) : (r(), w("span", N, y(t3.row.departmentName), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.operationTime"), align: "center" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", _)) : (r(), w("span", L, y(t3.row.formatCreatedTime), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.stayDuration"), align: "center", width: "90" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", I)) : t3.row.copyTask ? p("", true) : (r(), w("span", x, y(t3.row.stayDuration), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.taskState"), align: "center", width: "90" }, { default: l((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span", P)) : e3.row.current ? (r(), a(q, { key: 1, type: "warning" }, { default: l(() => [h(y(t2.$t("workflowHistoryList.taskStateDoing")), 1)]), _: 1 })) : (r(), a(q, { key: 2, type: "success" }, { default: l(() => [h(y(t2.$t("workflowHistoryList.taskStateDone")), 1)]), _: 1 }))]), _: 1 }, 8, ["label"]), d2.showProcessingDuration ? (r(), a(W2, { key: 0, label: t2.$t("workflowHistoryList.processingDuration"), align: "center", width: "110" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", E)) : t3.row.copyTask ? p("", true) : (r(), w("span", v, y(t3.row.processingDuration), 1))]), _: 1 }, 8, ["label"])) : p("", true), d2.showProcessingDuration ? (r(), a(W2, { key: 1, label: t2.$t("workflowHistoryList.isOverdue"), align: "center", width: "90" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", C)) : (r(), w("span", O, [t3.row.overdueDuration && t3.row.overdueDuration > 0 ? (r(), w("div", R)) : (r(), w("div", M))]))]), _: 1 }, 8, ["label"])) : p("", true), n(W2, { label: t2.$t("workflowHistoryList.operation"), align: "left" }, { default: l((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r(), w("span", A)) : e3.row.current ? (r(), w("span", j, y(e3.row.transactionResult) + " " + y(t2.$t("workflowHistoryList.toDoText")), 1)) : (r(), w("span", z, y(u2.i18nOperation(e3.row)), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.opinion"), align: "left" }, { default: l((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r(), w("span", K)) : (r(), w("span", U, y(t3.row.opinion), 1))]), _: 1 }, 8, ["label"]), n(W2, { label: t2.$t("workflowHistoryList.remark"), align: "left" }, { default: l((t3) => [c("span", null, y(t3.row.remark), 1)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "height", "load", "max-height"])) : p("", true);
|
|
86
86
|
}], ["__scopeId", "data-v-998f4283"]]);
|
|
87
87
|
export {
|
|
88
88
|
W as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agilebuilder-ui",
|
|
3
|
-
"version": "1.1.65-
|
|
3
|
+
"version": "1.1.65-tmp4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"@zxing/library": "^0.20.0",
|
|
17
17
|
"async-validator": "^4.2.5",
|
|
18
18
|
"clipboard": "^2.0.11",
|
|
19
|
+
"codemirror": "^6.0.1",
|
|
19
20
|
"compressorjs": "1.2.1",
|
|
21
|
+
"dayjs": "1.11.13",
|
|
20
22
|
"echarts": "^5.5.0",
|
|
21
23
|
"font-awesome": "^4.7.0",
|
|
22
24
|
"js-base64": "^3.7.7",
|
|
@@ -36,7 +38,6 @@
|
|
|
36
38
|
"@element-plus/icons-vue": "^2.1.0",
|
|
37
39
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
38
40
|
"axios": "^1.5.1",
|
|
39
|
-
"codemirror": "^6.0.1",
|
|
40
41
|
"element-plus": "^2.4.1",
|
|
41
42
|
"nprogress": "^0.2.0",
|
|
42
43
|
"pinia": "^2.1.7",
|
package/vite.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import vue from "@vitejs/plugin-vue";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { terser } from 'rollup-plugin-terser'
|
|
5
5
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
6
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
6
7
|
|
|
7
8
|
import fs from 'fs'
|
|
8
9
|
// 获取项目根目录下的package.json路径
|
|
@@ -89,10 +90,10 @@ export default defineConfig(({ mode }) => ({
|
|
|
89
90
|
})
|
|
90
91
|
],
|
|
91
92
|
resolve: {
|
|
92
|
-
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
94
|
+
alias: {
|
|
95
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
96
|
+
}
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
// plugins: [
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
2
|
-
function o(e2) {
|
|
3
|
-
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
e as commonjsGlobal,
|
|
7
|
-
o as getDefaultExportFromCjs
|
|
8
|
-
};
|