super-pages 0.0.22-up → 0.0.23-up
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/README.md +7 -7
- package/index.html +13 -13
- package/lib/super-pages.css +1 -1
- package/lib/super-pages.js +679 -580
- package/lib/super-pages.umd.cjs +12 -6
- package/package.json +5 -5
- package/packages/index.js +30 -30
- package/packages/super-page/index.js +9 -9
- package/packages/super-page/src/common-form-page.vue +3 -2
- package/packages/super-page/src/form-head.vue +74 -74
- package/packages/super-page/src/group-tag.vue +21 -21
- package/packages/super-page/src/list-toolbar-dynamic-source.vue +9 -3
- package/packages/super-page/src/list-toolbar-page.vue +2 -0
- package/packages/super-page/src/my-button-base.vue +3 -2
- package/packages/super-page/src/remove-signer-dialog.vue +103 -103
- package/packages/super-page/src/sub-tab-page.vue +79 -79
- package/packages/super-page/src/task-informition-dialog.vue +82 -82
- package/packages/super-page/src/util/ListButtonEvent.js +6 -6
- package/packages/super-page/src/util/api.js +37 -37
- package/packages/super-page/src/util/callEvents.js +62 -62
- package/packages/super-page/src/util/commonButtonEvent.js +70 -70
- package/packages/super-page/src/util/formButtonEvent.js +3 -3
- package/packages/super-page/src/util/store.js +3 -3
- package/packages/super-page/src/util/super-page.js +29 -29
- package/packages/super-page/src/util/util.js +6 -6
- package/packages/super-page/src/util/workflowButtonEvent.js +2 -2
- package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
- package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
- package/packages/super-page-dialog/index.js +9 -9
- package/packages/utils/gogocodeTransfer.js +59 -59
- package/src/utils/common-util.js +9 -9
- package/vite.config.js +36 -36
package/lib/super-pages.js
CHANGED
|
@@ -985,8 +985,8 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
985
985
|
function createScanner(e) {
|
|
986
986
|
const t = e;
|
|
987
987
|
let o = 0, s = 1, n = 1, i = 0;
|
|
988
|
-
const a = (k) => t[k] === CHAR_CR && t[k + 1] === CHAR_LF, r = (k) => t[k] === CHAR_LF, l = (k) => t[k] === CHAR_PS, c = (k) => t[k] === CHAR_LS, u = (k) => a(k) || r(k) || l(k) || c(k), d = () => o, m = () => s, p = () => n, f = () => i,
|
|
989
|
-
function
|
|
988
|
+
const a = (k) => t[k] === CHAR_CR && t[k + 1] === CHAR_LF, r = (k) => t[k] === CHAR_LF, l = (k) => t[k] === CHAR_PS, c = (k) => t[k] === CHAR_LS, u = (k) => a(k) || r(k) || l(k) || c(k), d = () => o, m = () => s, p = () => n, f = () => i, _ = (k) => a(k) || l(k) || c(k) ? CHAR_LF : t[k], C = () => _(o), y = () => _(o + i);
|
|
989
|
+
function S() {
|
|
990
990
|
return i = 0, u(o) && (s++, n = 0), a(o) && o++, o++, n++, t[o];
|
|
991
991
|
}
|
|
992
992
|
function P() {
|
|
@@ -1001,7 +1001,7 @@ function createScanner(e) {
|
|
|
1001
1001
|
function N() {
|
|
1002
1002
|
const k = o + i;
|
|
1003
1003
|
for (; k !== o; )
|
|
1004
|
-
|
|
1004
|
+
S();
|
|
1005
1005
|
i = 0;
|
|
1006
1006
|
}
|
|
1007
1007
|
return {
|
|
@@ -1009,10 +1009,10 @@ function createScanner(e) {
|
|
|
1009
1009
|
line: m,
|
|
1010
1010
|
column: p,
|
|
1011
1011
|
peekOffset: f,
|
|
1012
|
-
charAt:
|
|
1013
|
-
currentChar:
|
|
1012
|
+
charAt: _,
|
|
1013
|
+
currentChar: C,
|
|
1014
1014
|
currentPeek: y,
|
|
1015
|
-
next:
|
|
1015
|
+
next: S,
|
|
1016
1016
|
peek: P,
|
|
1017
1017
|
reset: E,
|
|
1018
1018
|
resetPeek: I,
|
|
@@ -1034,136 +1034,136 @@ function createTokenizer(e, t = {}) {
|
|
|
1034
1034
|
inLinked: !1,
|
|
1035
1035
|
text: ""
|
|
1036
1036
|
}, c = () => l, { onError: u } = t;
|
|
1037
|
-
function d(
|
|
1037
|
+
function d(b, g, w, ...O) {
|
|
1038
1038
|
const R = c();
|
|
1039
1039
|
if (g.column += w, g.offset += w, u) {
|
|
1040
|
-
const L = o ? createLocation(R.startLoc, g) : null, G = createCompileError(
|
|
1040
|
+
const L = o ? createLocation(R.startLoc, g) : null, G = createCompileError(b, L, {
|
|
1041
1041
|
domain: ERROR_DOMAIN$3,
|
|
1042
1042
|
args: O
|
|
1043
1043
|
});
|
|
1044
1044
|
u(G);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function m(
|
|
1048
|
-
|
|
1047
|
+
function m(b, g, w) {
|
|
1048
|
+
b.endLoc = i(), b.currentType = g;
|
|
1049
1049
|
const O = { type: g };
|
|
1050
|
-
return o && (O.loc = createLocation(
|
|
1050
|
+
return o && (O.loc = createLocation(b.startLoc, b.endLoc)), w != null && (O.value = w), O;
|
|
1051
1051
|
}
|
|
1052
|
-
const p = (
|
|
1053
|
-
|
|
1052
|
+
const p = (b) => m(
|
|
1053
|
+
b,
|
|
1054
1054
|
14
|
|
1055
1055
|
/* TokenTypes.EOF */
|
|
1056
1056
|
);
|
|
1057
|
-
function f(
|
|
1058
|
-
return
|
|
1057
|
+
function f(b, g) {
|
|
1058
|
+
return b.currentChar() === g ? (b.next(), g) : (d(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, g), "");
|
|
1059
1059
|
}
|
|
1060
|
-
function b
|
|
1060
|
+
function _(b) {
|
|
1061
1061
|
let g = "";
|
|
1062
|
-
for (;
|
|
1063
|
-
g +=
|
|
1062
|
+
for (; b.currentPeek() === CHAR_SP || b.currentPeek() === CHAR_LF; )
|
|
1063
|
+
g += b.currentPeek(), b.peek();
|
|
1064
1064
|
return g;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
const g = b
|
|
1068
|
-
return
|
|
1066
|
+
function C(b) {
|
|
1067
|
+
const g = _(b);
|
|
1068
|
+
return b.skipToPeek(), g;
|
|
1069
1069
|
}
|
|
1070
|
-
function y(
|
|
1071
|
-
if (
|
|
1070
|
+
function y(b) {
|
|
1071
|
+
if (b === EOF)
|
|
1072
1072
|
return !1;
|
|
1073
|
-
const g =
|
|
1073
|
+
const g = b.charCodeAt(0);
|
|
1074
1074
|
return g >= 97 && g <= 122 || // a-z
|
|
1075
1075
|
g >= 65 && g <= 90 || // A-Z
|
|
1076
1076
|
g === 95;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
if (
|
|
1078
|
+
function S(b) {
|
|
1079
|
+
if (b === EOF)
|
|
1080
1080
|
return !1;
|
|
1081
|
-
const g =
|
|
1081
|
+
const g = b.charCodeAt(0);
|
|
1082
1082
|
return g >= 48 && g <= 57;
|
|
1083
1083
|
}
|
|
1084
|
-
function P(
|
|
1084
|
+
function P(b, g) {
|
|
1085
1085
|
const { currentType: w } = g;
|
|
1086
1086
|
if (w !== 2)
|
|
1087
1087
|
return !1;
|
|
1088
|
-
b
|
|
1089
|
-
const O = y(
|
|
1090
|
-
return
|
|
1088
|
+
_(b);
|
|
1089
|
+
const O = y(b.currentPeek());
|
|
1090
|
+
return b.resetPeek(), O;
|
|
1091
1091
|
}
|
|
1092
|
-
function E(
|
|
1092
|
+
function E(b, g) {
|
|
1093
1093
|
const { currentType: w } = g;
|
|
1094
1094
|
if (w !== 2)
|
|
1095
1095
|
return !1;
|
|
1096
|
-
b
|
|
1097
|
-
const O =
|
|
1098
|
-
return
|
|
1096
|
+
_(b);
|
|
1097
|
+
const O = b.currentPeek() === "-" ? b.peek() : b.currentPeek(), R = S(O);
|
|
1098
|
+
return b.resetPeek(), R;
|
|
1099
1099
|
}
|
|
1100
|
-
function I(
|
|
1100
|
+
function I(b, g) {
|
|
1101
1101
|
const { currentType: w } = g;
|
|
1102
1102
|
if (w !== 2)
|
|
1103
1103
|
return !1;
|
|
1104
|
-
b
|
|
1105
|
-
const O =
|
|
1106
|
-
return
|
|
1104
|
+
_(b);
|
|
1105
|
+
const O = b.currentPeek() === LITERAL_DELIMITER;
|
|
1106
|
+
return b.resetPeek(), O;
|
|
1107
1107
|
}
|
|
1108
|
-
function N(
|
|
1108
|
+
function N(b, g) {
|
|
1109
1109
|
const { currentType: w } = g;
|
|
1110
1110
|
if (w !== 8)
|
|
1111
1111
|
return !1;
|
|
1112
|
-
b
|
|
1113
|
-
const O =
|
|
1114
|
-
return
|
|
1112
|
+
_(b);
|
|
1113
|
+
const O = b.currentPeek() === ".";
|
|
1114
|
+
return b.resetPeek(), O;
|
|
1115
1115
|
}
|
|
1116
|
-
function k(
|
|
1116
|
+
function k(b, g) {
|
|
1117
1117
|
const { currentType: w } = g;
|
|
1118
1118
|
if (w !== 9)
|
|
1119
1119
|
return !1;
|
|
1120
|
-
b
|
|
1121
|
-
const O = y(
|
|
1122
|
-
return
|
|
1120
|
+
_(b);
|
|
1121
|
+
const O = y(b.currentPeek());
|
|
1122
|
+
return b.resetPeek(), O;
|
|
1123
1123
|
}
|
|
1124
|
-
function D(
|
|
1124
|
+
function D(b, g) {
|
|
1125
1125
|
const { currentType: w } = g;
|
|
1126
1126
|
if (!(w === 8 || w === 12))
|
|
1127
1127
|
return !1;
|
|
1128
|
-
b
|
|
1129
|
-
const O =
|
|
1130
|
-
return
|
|
1128
|
+
_(b);
|
|
1129
|
+
const O = b.currentPeek() === ":";
|
|
1130
|
+
return b.resetPeek(), O;
|
|
1131
1131
|
}
|
|
1132
|
-
function F(
|
|
1132
|
+
function F(b, g) {
|
|
1133
1133
|
const { currentType: w } = g;
|
|
1134
1134
|
if (w !== 10)
|
|
1135
1135
|
return !1;
|
|
1136
1136
|
const O = () => {
|
|
1137
|
-
const L =
|
|
1138
|
-
return L === "{" ? y(
|
|
1137
|
+
const L = b.currentPeek();
|
|
1138
|
+
return L === "{" ? y(b.peek()) : L === "@" || L === "%" || L === "|" || L === ":" || L === "." || L === CHAR_SP || !L ? !1 : L === CHAR_LF ? (b.peek(), O()) : y(L);
|
|
1139
1139
|
}, R = O();
|
|
1140
|
-
return
|
|
1140
|
+
return b.resetPeek(), R;
|
|
1141
1141
|
}
|
|
1142
|
-
function M(
|
|
1143
|
-
b
|
|
1144
|
-
const g =
|
|
1145
|
-
return
|
|
1142
|
+
function M(b) {
|
|
1143
|
+
_(b);
|
|
1144
|
+
const g = b.currentPeek() === "|";
|
|
1145
|
+
return b.resetPeek(), g;
|
|
1146
1146
|
}
|
|
1147
|
-
function $(
|
|
1148
|
-
const g = b
|
|
1149
|
-
return
|
|
1147
|
+
function $(b) {
|
|
1148
|
+
const g = _(b), w = b.currentPeek() === "%" && b.peek() === "{";
|
|
1149
|
+
return b.resetPeek(), {
|
|
1150
1150
|
isModulo: w,
|
|
1151
1151
|
hasSpace: g.length > 0
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
function B(
|
|
1154
|
+
function B(b, g = !0) {
|
|
1155
1155
|
const w = (R = !1, L = "", G = !1) => {
|
|
1156
|
-
const H =
|
|
1157
|
-
return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (
|
|
1156
|
+
const H = b.currentPeek();
|
|
1157
|
+
return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (b.peek(), w(R, "%", !0)) : H === "|" ? L === "%" || G ? !0 : !(L === CHAR_SP || L === CHAR_LF) : H === CHAR_SP ? (b.peek(), w(!0, CHAR_SP, G)) : H === CHAR_LF ? (b.peek(), w(!0, CHAR_LF, G)) : !0;
|
|
1158
1158
|
}, O = w();
|
|
1159
|
-
return g &&
|
|
1159
|
+
return g && b.resetPeek(), O;
|
|
1160
1160
|
}
|
|
1161
|
-
function U(
|
|
1162
|
-
const w =
|
|
1163
|
-
return w === EOF ? EOF : g(w) ? (
|
|
1161
|
+
function U(b, g) {
|
|
1162
|
+
const w = b.currentChar();
|
|
1163
|
+
return w === EOF ? EOF : g(w) ? (b.next(), w) : null;
|
|
1164
1164
|
}
|
|
1165
|
-
function X(
|
|
1166
|
-
return U(
|
|
1165
|
+
function X(b) {
|
|
1166
|
+
return U(b, (w) => {
|
|
1167
1167
|
const O = w.charCodeAt(0);
|
|
1168
1168
|
return O >= 97 && O <= 122 || // a-z
|
|
1169
1169
|
O >= 65 && O <= 90 || // A-Z
|
|
@@ -1172,236 +1172,236 @@ function createTokenizer(e, t = {}) {
|
|
|
1172
1172
|
O === 36;
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
function ne(
|
|
1176
|
-
return U(
|
|
1175
|
+
function ne(b) {
|
|
1176
|
+
return U(b, (w) => {
|
|
1177
1177
|
const O = w.charCodeAt(0);
|
|
1178
1178
|
return O >= 48 && O <= 57;
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
function W(
|
|
1182
|
-
return U(
|
|
1181
|
+
function W(b) {
|
|
1182
|
+
return U(b, (w) => {
|
|
1183
1183
|
const O = w.charCodeAt(0);
|
|
1184
1184
|
return O >= 48 && O <= 57 || // 0-9
|
|
1185
1185
|
O >= 65 && O <= 70 || // A-F
|
|
1186
1186
|
O >= 97 && O <= 102;
|
|
1187
1187
|
});
|
|
1188
1188
|
}
|
|
1189
|
-
function Z(
|
|
1189
|
+
function Z(b) {
|
|
1190
1190
|
let g = "", w = "";
|
|
1191
|
-
for (; g = ne(
|
|
1191
|
+
for (; g = ne(b); )
|
|
1192
1192
|
w += g;
|
|
1193
1193
|
return w;
|
|
1194
1194
|
}
|
|
1195
|
-
function ie(
|
|
1196
|
-
|
|
1197
|
-
const g =
|
|
1198
|
-
return g !== "%" && d(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, g),
|
|
1195
|
+
function ie(b) {
|
|
1196
|
+
C(b);
|
|
1197
|
+
const g = b.currentChar();
|
|
1198
|
+
return g !== "%" && d(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, g), b.next(), "%";
|
|
1199
1199
|
}
|
|
1200
|
-
function ee(
|
|
1200
|
+
function ee(b) {
|
|
1201
1201
|
let g = "";
|
|
1202
1202
|
for (; ; ) {
|
|
1203
|
-
const w =
|
|
1203
|
+
const w = b.currentChar();
|
|
1204
1204
|
if (w === "{" || w === "}" || w === "@" || w === "|" || !w)
|
|
1205
1205
|
break;
|
|
1206
1206
|
if (w === "%")
|
|
1207
|
-
if (B(
|
|
1208
|
-
g += w,
|
|
1207
|
+
if (B(b))
|
|
1208
|
+
g += w, b.next();
|
|
1209
1209
|
else
|
|
1210
1210
|
break;
|
|
1211
1211
|
else if (w === CHAR_SP || w === CHAR_LF)
|
|
1212
|
-
if (B(
|
|
1213
|
-
g += w,
|
|
1212
|
+
if (B(b))
|
|
1213
|
+
g += w, b.next();
|
|
1214
1214
|
else {
|
|
1215
|
-
if (M(
|
|
1215
|
+
if (M(b))
|
|
1216
1216
|
break;
|
|
1217
|
-
g += w,
|
|
1217
|
+
g += w, b.next();
|
|
1218
1218
|
}
|
|
1219
1219
|
else
|
|
1220
|
-
g += w,
|
|
1220
|
+
g += w, b.next();
|
|
1221
1221
|
}
|
|
1222
1222
|
return g;
|
|
1223
1223
|
}
|
|
1224
|
-
function j(
|
|
1225
|
-
|
|
1224
|
+
function j(b) {
|
|
1225
|
+
C(b);
|
|
1226
1226
|
let g = "", w = "";
|
|
1227
|
-
for (; g = X(
|
|
1227
|
+
for (; g = X(b); )
|
|
1228
1228
|
w += g;
|
|
1229
|
-
return
|
|
1229
|
+
return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w;
|
|
1230
1230
|
}
|
|
1231
|
-
function te(
|
|
1232
|
-
|
|
1231
|
+
function te(b) {
|
|
1232
|
+
C(b);
|
|
1233
1233
|
let g = "";
|
|
1234
|
-
return
|
|
1234
|
+
return b.currentChar() === "-" ? (b.next(), g += `-${Z(b)}`) : g += Z(b), b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g;
|
|
1235
1235
|
}
|
|
1236
|
-
function ae(
|
|
1237
|
-
|
|
1236
|
+
function ae(b) {
|
|
1237
|
+
C(b), f(b, "'");
|
|
1238
1238
|
let g = "", w = "";
|
|
1239
1239
|
const O = (L) => L !== LITERAL_DELIMITER && L !== CHAR_LF;
|
|
1240
|
-
for (; g = U(
|
|
1241
|
-
g === "\\" ? w += re(
|
|
1242
|
-
const R =
|
|
1243
|
-
return R === CHAR_LF || R === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), R === CHAR_LF && (
|
|
1240
|
+
for (; g = U(b, O); )
|
|
1241
|
+
g === "\\" ? w += re(b) : w += g;
|
|
1242
|
+
const R = b.currentChar();
|
|
1243
|
+
return R === CHAR_LF || R === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), R === CHAR_LF && (b.next(), f(b, "'")), w) : (f(b, "'"), w);
|
|
1244
1244
|
}
|
|
1245
|
-
function re(
|
|
1246
|
-
const g =
|
|
1245
|
+
function re(b) {
|
|
1246
|
+
const g = b.currentChar();
|
|
1247
1247
|
switch (g) {
|
|
1248
1248
|
case "\\":
|
|
1249
1249
|
case "'":
|
|
1250
|
-
return
|
|
1250
|
+
return b.next(), `\\${g}`;
|
|
1251
1251
|
case "u":
|
|
1252
|
-
return oe(
|
|
1252
|
+
return oe(b, g, 4);
|
|
1253
1253
|
case "U":
|
|
1254
|
-
return oe(
|
|
1254
|
+
return oe(b, g, 6);
|
|
1255
1255
|
default:
|
|
1256
1256
|
return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, g), "";
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
function oe(
|
|
1260
|
-
f(
|
|
1259
|
+
function oe(b, g, w) {
|
|
1260
|
+
f(b, g);
|
|
1261
1261
|
let O = "";
|
|
1262
1262
|
for (let R = 0; R < w; R++) {
|
|
1263
|
-
const L = W(
|
|
1263
|
+
const L = W(b);
|
|
1264
1264
|
if (!L) {
|
|
1265
|
-
d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${g}${O}${
|
|
1265
|
+
d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${g}${O}${b.currentChar()}`);
|
|
1266
1266
|
break;
|
|
1267
1267
|
}
|
|
1268
1268
|
O += L;
|
|
1269
1269
|
}
|
|
1270
1270
|
return `\\${g}${O}`;
|
|
1271
1271
|
}
|
|
1272
|
-
function le(
|
|
1273
|
-
|
|
1272
|
+
function le(b) {
|
|
1273
|
+
C(b);
|
|
1274
1274
|
let g = "", w = "";
|
|
1275
1275
|
const O = (R) => R !== "{" && R !== "}" && R !== CHAR_SP && R !== CHAR_LF;
|
|
1276
|
-
for (; g = U(
|
|
1276
|
+
for (; g = U(b, O); )
|
|
1277
1277
|
w += g;
|
|
1278
1278
|
return w;
|
|
1279
1279
|
}
|
|
1280
|
-
function de(
|
|
1280
|
+
function de(b) {
|
|
1281
1281
|
let g = "", w = "";
|
|
1282
|
-
for (; g = X(
|
|
1282
|
+
for (; g = X(b); )
|
|
1283
1283
|
w += g;
|
|
1284
1284
|
return w;
|
|
1285
1285
|
}
|
|
1286
|
-
function ce(
|
|
1286
|
+
function ce(b) {
|
|
1287
1287
|
const g = (w = !1, O) => {
|
|
1288
|
-
const R =
|
|
1289
|
-
return R === "{" || R === "%" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === CHAR_SP ? O : R === CHAR_LF || R === DOT ? (O += R,
|
|
1288
|
+
const R = b.currentChar();
|
|
1289
|
+
return R === "{" || R === "%" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === CHAR_SP ? O : R === CHAR_LF || R === DOT ? (O += R, b.next(), g(w, O)) : (O += R, b.next(), g(!0, O));
|
|
1290
1290
|
};
|
|
1291
1291
|
return g(!1, "");
|
|
1292
1292
|
}
|
|
1293
|
-
function J(
|
|
1294
|
-
|
|
1293
|
+
function J(b) {
|
|
1294
|
+
C(b);
|
|
1295
1295
|
const g = f(
|
|
1296
|
-
|
|
1296
|
+
b,
|
|
1297
1297
|
"|"
|
|
1298
1298
|
/* TokenChars.Pipe */
|
|
1299
1299
|
);
|
|
1300
|
-
return
|
|
1300
|
+
return C(b), g;
|
|
1301
1301
|
}
|
|
1302
|
-
function Q(
|
|
1302
|
+
function Q(b, g) {
|
|
1303
1303
|
let w = null;
|
|
1304
|
-
switch (
|
|
1304
|
+
switch (b.currentChar()) {
|
|
1305
1305
|
case "{":
|
|
1306
|
-
return g.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0),
|
|
1306
|
+
return g.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), b.next(), w = m(
|
|
1307
1307
|
g,
|
|
1308
1308
|
2,
|
|
1309
1309
|
"{"
|
|
1310
1310
|
/* TokenChars.BraceLeft */
|
|
1311
|
-
),
|
|
1311
|
+
), C(b), g.braceNest++, w;
|
|
1312
1312
|
case "}":
|
|
1313
|
-
return g.braceNest > 0 && g.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0),
|
|
1313
|
+
return g.braceNest > 0 && g.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0), b.next(), w = m(
|
|
1314
1314
|
g,
|
|
1315
1315
|
3,
|
|
1316
1316
|
"}"
|
|
1317
1317
|
/* TokenChars.BraceRight */
|
|
1318
|
-
), g.braceNest--, g.braceNest > 0 &&
|
|
1318
|
+
), g.braceNest--, g.braceNest > 0 && C(b), g.inLinked && g.braceNest === 0 && (g.inLinked = !1), w;
|
|
1319
1319
|
case "@":
|
|
1320
|
-
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = q(
|
|
1320
|
+
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = q(b, g) || p(g), g.braceNest = 0, w;
|
|
1321
1321
|
default:
|
|
1322
1322
|
let R = !0, L = !0, G = !0;
|
|
1323
|
-
if (M(
|
|
1324
|
-
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = m(g, 1, J(
|
|
1323
|
+
if (M(b))
|
|
1324
|
+
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, w;
|
|
1325
1325
|
if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7))
|
|
1326
|
-
return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, z(
|
|
1327
|
-
if (R = P(
|
|
1328
|
-
return w = m(g, 5, j(
|
|
1329
|
-
if (L = E(
|
|
1330
|
-
return w = m(g, 6, te(
|
|
1331
|
-
if (G = I(
|
|
1332
|
-
return w = m(g, 7, ae(
|
|
1326
|
+
return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, z(b, g);
|
|
1327
|
+
if (R = P(b, g))
|
|
1328
|
+
return w = m(g, 5, j(b)), C(b), w;
|
|
1329
|
+
if (L = E(b, g))
|
|
1330
|
+
return w = m(g, 6, te(b)), C(b), w;
|
|
1331
|
+
if (G = I(b, g))
|
|
1332
|
+
return w = m(g, 7, ae(b)), C(b), w;
|
|
1333
1333
|
if (!R && !L && !G)
|
|
1334
|
-
return w = m(g, 13, le(
|
|
1334
|
+
return w = m(g, 13, le(b)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, w.value), C(b), w;
|
|
1335
1335
|
break;
|
|
1336
1336
|
}
|
|
1337
1337
|
return w;
|
|
1338
1338
|
}
|
|
1339
|
-
function q(
|
|
1339
|
+
function q(b, g) {
|
|
1340
1340
|
const { currentType: w } = g;
|
|
1341
1341
|
let O = null;
|
|
1342
|
-
const R =
|
|
1342
|
+
const R = b.currentChar();
|
|
1343
1343
|
switch ((w === 8 || w === 9 || w === 12 || w === 10) && (R === CHAR_LF || R === CHAR_SP) && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), R) {
|
|
1344
1344
|
case "@":
|
|
1345
|
-
return
|
|
1345
|
+
return b.next(), O = m(
|
|
1346
1346
|
g,
|
|
1347
1347
|
8,
|
|
1348
1348
|
"@"
|
|
1349
1349
|
/* TokenChars.LinkedAlias */
|
|
1350
1350
|
), g.inLinked = !0, O;
|
|
1351
1351
|
case ".":
|
|
1352
|
-
return
|
|
1352
|
+
return C(b), b.next(), m(
|
|
1353
1353
|
g,
|
|
1354
1354
|
9,
|
|
1355
1355
|
"."
|
|
1356
1356
|
/* TokenChars.LinkedDot */
|
|
1357
1357
|
);
|
|
1358
1358
|
case ":":
|
|
1359
|
-
return
|
|
1359
|
+
return C(b), b.next(), m(
|
|
1360
1360
|
g,
|
|
1361
1361
|
10,
|
|
1362
1362
|
":"
|
|
1363
1363
|
/* TokenChars.LinkedDelimiter */
|
|
1364
1364
|
);
|
|
1365
1365
|
default:
|
|
1366
|
-
return M(
|
|
1366
|
+
return M(b) ? (O = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, O) : N(b, g) || D(b, g) ? (C(b), q(b, g)) : k(b, g) ? (C(b), m(g, 12, de(b))) : F(b, g) ? (C(b), R === "{" ? Q(b, g) || O : m(g, 11, ce(b))) : (w === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), g.braceNest = 0, g.inLinked = !1, z(b, g));
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
function z(
|
|
1369
|
+
function z(b, g) {
|
|
1370
1370
|
let w = {
|
|
1371
1371
|
type: 14
|
|
1372
1372
|
/* TokenTypes.EOF */
|
|
1373
1373
|
};
|
|
1374
1374
|
if (g.braceNest > 0)
|
|
1375
|
-
return Q(
|
|
1375
|
+
return Q(b, g) || p(g);
|
|
1376
1376
|
if (g.inLinked)
|
|
1377
|
-
return q(
|
|
1378
|
-
switch (
|
|
1377
|
+
return q(b, g) || p(g);
|
|
1378
|
+
switch (b.currentChar()) {
|
|
1379
1379
|
case "{":
|
|
1380
|
-
return Q(
|
|
1380
|
+
return Q(b, g) || p(g);
|
|
1381
1381
|
case "}":
|
|
1382
|
-
return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, i(), 0),
|
|
1382
|
+
return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, i(), 0), b.next(), m(
|
|
1383
1383
|
g,
|
|
1384
1384
|
3,
|
|
1385
1385
|
"}"
|
|
1386
1386
|
/* TokenChars.BraceRight */
|
|
1387
1387
|
);
|
|
1388
1388
|
case "@":
|
|
1389
|
-
return q(
|
|
1389
|
+
return q(b, g) || p(g);
|
|
1390
1390
|
default:
|
|
1391
|
-
if (M(
|
|
1392
|
-
return w = m(g, 1, J(
|
|
1393
|
-
const { isModulo: R, hasSpace: L } = $(
|
|
1391
|
+
if (M(b))
|
|
1392
|
+
return w = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, w;
|
|
1393
|
+
const { isModulo: R, hasSpace: L } = $(b);
|
|
1394
1394
|
if (R)
|
|
1395
|
-
return L ? m(g, 0, ee(
|
|
1396
|
-
if (B(
|
|
1397
|
-
return m(g, 0, ee(
|
|
1395
|
+
return L ? m(g, 0, ee(b)) : m(g, 4, ie(b));
|
|
1396
|
+
if (B(b))
|
|
1397
|
+
return m(g, 0, ee(b));
|
|
1398
1398
|
break;
|
|
1399
1399
|
}
|
|
1400
1400
|
return w;
|
|
1401
1401
|
}
|
|
1402
1402
|
function ue() {
|
|
1403
|
-
const { currentType:
|
|
1404
|
-
return l.lastType =
|
|
1403
|
+
const { currentType: b, offset: g, startLoc: w, endLoc: O } = l;
|
|
1404
|
+
return l.lastType = b, l.lastOffset = g, l.lastStartLoc = w, l.lastEndLoc = O, l.offset = n(), l.startLoc = i(), s.currentChar() === EOF ? m(
|
|
1405
1405
|
l,
|
|
1406
1406
|
14
|
|
1407
1407
|
/* TokenTypes.EOF */
|
|
@@ -1429,74 +1429,74 @@ function fromEscapeSequence(e, t, o) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
function createParser(e = {}) {
|
|
1431
1431
|
const t = e.location !== !1, { onError: o } = e;
|
|
1432
|
-
function s(y,
|
|
1432
|
+
function s(y, S, P, E, ...I) {
|
|
1433
1433
|
const N = y.currentPosition();
|
|
1434
1434
|
if (N.offset += E, N.column += E, o) {
|
|
1435
|
-
const k = t ? createLocation(P, N) : null, D = createCompileError(
|
|
1435
|
+
const k = t ? createLocation(P, N) : null, D = createCompileError(S, k, {
|
|
1436
1436
|
domain: ERROR_DOMAIN$2,
|
|
1437
1437
|
args: I
|
|
1438
1438
|
});
|
|
1439
1439
|
o(D);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
function n(y,
|
|
1442
|
+
function n(y, S, P) {
|
|
1443
1443
|
const E = { type: y };
|
|
1444
|
-
return t && (E.start =
|
|
1444
|
+
return t && (E.start = S, E.end = S, E.loc = { start: P, end: P }), E;
|
|
1445
1445
|
}
|
|
1446
|
-
function i(y,
|
|
1447
|
-
E && (y.type = E), t && (y.end =
|
|
1446
|
+
function i(y, S, P, E) {
|
|
1447
|
+
E && (y.type = E), t && (y.end = S, y.loc && (y.loc.end = P));
|
|
1448
1448
|
}
|
|
1449
|
-
function a(y,
|
|
1449
|
+
function a(y, S) {
|
|
1450
1450
|
const P = y.context(), E = n(3, P.offset, P.startLoc);
|
|
1451
|
-
return E.value =
|
|
1451
|
+
return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
|
|
1452
1452
|
}
|
|
1453
|
-
function r(y,
|
|
1453
|
+
function r(y, S) {
|
|
1454
1454
|
const P = y.context(), { lastOffset: E, lastStartLoc: I } = P, N = n(5, E, I);
|
|
1455
|
-
return N.index = parseInt(
|
|
1455
|
+
return N.index = parseInt(S, 10), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1456
1456
|
}
|
|
1457
|
-
function l(y,
|
|
1457
|
+
function l(y, S) {
|
|
1458
1458
|
const P = y.context(), { lastOffset: E, lastStartLoc: I } = P, N = n(4, E, I);
|
|
1459
|
-
return N.key =
|
|
1459
|
+
return N.key = S, y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1460
1460
|
}
|
|
1461
|
-
function c(y,
|
|
1461
|
+
function c(y, S) {
|
|
1462
1462
|
const P = y.context(), { lastOffset: E, lastStartLoc: I } = P, N = n(9, E, I);
|
|
1463
|
-
return N.value =
|
|
1463
|
+
return N.value = S.replace(KNOWN_ESCAPES, fromEscapeSequence), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1464
1464
|
}
|
|
1465
1465
|
function u(y) {
|
|
1466
|
-
const
|
|
1467
|
-
return
|
|
1468
|
-
nextConsumeToken:
|
|
1466
|
+
const S = y.nextToken(), P = y.context(), { lastOffset: E, lastStartLoc: I } = P, N = n(8, E, I);
|
|
1467
|
+
return S.type !== 12 ? (s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, P.lastStartLoc, 0), N.value = "", i(N, E, I), {
|
|
1468
|
+
nextConsumeToken: S,
|
|
1469
1469
|
node: N
|
|
1470
|
-
}) : (
|
|
1470
|
+
}) : (S.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, P.lastStartLoc, 0, getTokenCaption(S)), N.value = S.value || "", i(N, y.currentOffset(), y.currentPosition()), {
|
|
1471
1471
|
node: N
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
|
-
function d(y,
|
|
1474
|
+
function d(y, S) {
|
|
1475
1475
|
const P = y.context(), E = n(7, P.offset, P.startLoc);
|
|
1476
|
-
return E.value =
|
|
1476
|
+
return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
|
|
1477
1477
|
}
|
|
1478
1478
|
function m(y) {
|
|
1479
|
-
const
|
|
1479
|
+
const S = y.context(), P = n(6, S.offset, S.startLoc);
|
|
1480
1480
|
let E = y.nextToken();
|
|
1481
1481
|
if (E.type === 9) {
|
|
1482
1482
|
const I = u(y);
|
|
1483
1483
|
P.modifier = I.node, E = I.nextConsumeToken || y.nextToken();
|
|
1484
1484
|
}
|
|
1485
|
-
switch (E.type !== 10 && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1485
|
+
switch (E.type !== 10 && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), E = y.nextToken(), E.type === 2 && (E = y.nextToken()), E.type) {
|
|
1486
1486
|
case 11:
|
|
1487
|
-
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1487
|
+
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), P.key = d(y, E.value || "");
|
|
1488
1488
|
break;
|
|
1489
1489
|
case 5:
|
|
1490
|
-
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1490
|
+
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), P.key = l(y, E.value || "");
|
|
1491
1491
|
break;
|
|
1492
1492
|
case 6:
|
|
1493
|
-
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1493
|
+
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), P.key = r(y, E.value || "");
|
|
1494
1494
|
break;
|
|
1495
1495
|
case 7:
|
|
1496
|
-
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1496
|
+
E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), P.key = c(y, E.value || "");
|
|
1497
1497
|
break;
|
|
1498
1498
|
default:
|
|
1499
|
-
s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
1499
|
+
s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, S.lastStartLoc, 0);
|
|
1500
1500
|
const I = y.context(), N = n(7, I.offset, I.startLoc);
|
|
1501
1501
|
return N.value = "", i(N, I.offset, I.startLoc), P.key = N, i(P, I.offset, I.startLoc), {
|
|
1502
1502
|
nextConsumeToken: E,
|
|
@@ -1508,37 +1508,37 @@ function createParser(e = {}) {
|
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
function p(y) {
|
|
1511
|
-
const
|
|
1511
|
+
const S = y.context(), P = S.currentType === 1 ? y.currentOffset() : S.offset, E = S.currentType === 1 ? S.endLoc : S.startLoc, I = n(2, P, E);
|
|
1512
1512
|
I.items = [];
|
|
1513
1513
|
let N = null;
|
|
1514
1514
|
do {
|
|
1515
1515
|
const F = N || y.nextToken();
|
|
1516
1516
|
switch (N = null, F.type) {
|
|
1517
1517
|
case 0:
|
|
1518
|
-
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1518
|
+
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), I.items.push(a(y, F.value || ""));
|
|
1519
1519
|
break;
|
|
1520
1520
|
case 6:
|
|
1521
|
-
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1521
|
+
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), I.items.push(r(y, F.value || ""));
|
|
1522
1522
|
break;
|
|
1523
1523
|
case 5:
|
|
1524
|
-
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1524
|
+
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), I.items.push(l(y, F.value || ""));
|
|
1525
1525
|
break;
|
|
1526
1526
|
case 7:
|
|
1527
|
-
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1527
|
+
F.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), I.items.push(c(y, F.value || ""));
|
|
1528
1528
|
break;
|
|
1529
1529
|
case 8:
|
|
1530
1530
|
const M = m(y);
|
|
1531
1531
|
I.items.push(M.node), N = M.nextConsumeToken || null;
|
|
1532
1532
|
break;
|
|
1533
1533
|
}
|
|
1534
|
-
} while (
|
|
1535
|
-
const k =
|
|
1534
|
+
} while (S.currentType !== 14 && S.currentType !== 1);
|
|
1535
|
+
const k = S.currentType === 1 ? S.lastOffset : y.currentOffset(), D = S.currentType === 1 ? S.lastEndLoc : y.currentPosition();
|
|
1536
1536
|
return i(I, k, D), I;
|
|
1537
1537
|
}
|
|
1538
|
-
function f(y,
|
|
1538
|
+
function f(y, S, P, E) {
|
|
1539
1539
|
const I = y.context();
|
|
1540
1540
|
let N = E.items.length === 0;
|
|
1541
|
-
const k = n(1,
|
|
1541
|
+
const k = n(1, S, P);
|
|
1542
1542
|
k.cases = [], k.cases.push(E);
|
|
1543
1543
|
do {
|
|
1544
1544
|
const D = p(y);
|
|
@@ -1546,15 +1546,15 @@ function createParser(e = {}) {
|
|
|
1546
1546
|
} while (I.currentType !== 14);
|
|
1547
1547
|
return N && s(y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, P, 0), i(k, y.currentOffset(), y.currentPosition()), k;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1550
|
-
const
|
|
1551
|
-
return
|
|
1549
|
+
function _(y) {
|
|
1550
|
+
const S = y.context(), { offset: P, startLoc: E } = S, I = p(y);
|
|
1551
|
+
return S.currentType === 14 ? I : f(y, P, E, I);
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1554
|
-
const
|
|
1555
|
-
return t && E.loc && (E.loc.source = y), E.body =
|
|
1553
|
+
function C(y) {
|
|
1554
|
+
const S = createTokenizer(y, assign$1({}, e)), P = S.context(), E = n(0, P.offset, P.startLoc);
|
|
1555
|
+
return t && E.loc && (E.loc.source = y), E.body = _(S), e.onCacheKey && (E.cacheKey = e.onCacheKey(y)), P.currentType !== 14 && s(S, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, P.lastStartLoc, 0, y[P.offset] || ""), i(E, S.currentOffset(), S.currentPosition()), E;
|
|
1556
1556
|
}
|
|
1557
|
-
return { parse:
|
|
1557
|
+
return { parse: C };
|
|
1558
1558
|
}
|
|
1559
1559
|
function getTokenCaption(e) {
|
|
1560
1560
|
if (e.type === 14)
|
|
@@ -1708,20 +1708,20 @@ function createCodeGenerator(e, t) {
|
|
|
1708
1708
|
};
|
|
1709
1709
|
a && e.loc && (r.source = e.loc.source);
|
|
1710
1710
|
const l = () => r;
|
|
1711
|
-
function c(
|
|
1712
|
-
r.code +=
|
|
1711
|
+
function c(C, y) {
|
|
1712
|
+
r.code += C;
|
|
1713
1713
|
}
|
|
1714
|
-
function u(
|
|
1715
|
-
const
|
|
1716
|
-
c(i ?
|
|
1714
|
+
function u(C, y = !0) {
|
|
1715
|
+
const S = y ? n : "";
|
|
1716
|
+
c(i ? S + " ".repeat(C) : S);
|
|
1717
1717
|
}
|
|
1718
|
-
function d(
|
|
1718
|
+
function d(C = !0) {
|
|
1719
1719
|
const y = ++r.indentLevel;
|
|
1720
|
-
|
|
1720
|
+
C && u(y);
|
|
1721
1721
|
}
|
|
1722
|
-
function m(
|
|
1722
|
+
function m(C = !0) {
|
|
1723
1723
|
const y = --r.indentLevel;
|
|
1724
|
-
|
|
1724
|
+
C && u(y);
|
|
1725
1725
|
}
|
|
1726
1726
|
function p() {
|
|
1727
1727
|
u(r.indentLevel);
|
|
@@ -1732,7 +1732,7 @@ function createCodeGenerator(e, t) {
|
|
|
1732
1732
|
indent: d,
|
|
1733
1733
|
deindent: m,
|
|
1734
1734
|
newline: p,
|
|
1735
|
-
helper: (
|
|
1735
|
+
helper: (C) => `_${C}`,
|
|
1736
1736
|
needIndent: () => r.needIndent
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
@@ -2142,18 +2142,18 @@ function createMessageContext(e = {}) {
|
|
|
2142
2142
|
isNumber$1(e.pluralIndex) && normalizeNamed(o, l);
|
|
2143
2143
|
const c = (y) => l[y];
|
|
2144
2144
|
function u(y) {
|
|
2145
|
-
const
|
|
2146
|
-
return
|
|
2145
|
+
const S = isFunction$1(e.messages) ? e.messages(y) : isObject$2(e.messages) ? e.messages[y] : !1;
|
|
2146
|
+
return S || (e.parent ? e.parent.message(y) : DEFAULT_MESSAGE);
|
|
2147
2147
|
}
|
|
2148
|
-
const d = (y) => e.modifiers ? e.modifiers[y] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, p = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, f = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE,
|
|
2148
|
+
const d = (y) => e.modifiers ? e.modifiers[y] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, p = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, f = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, C = {
|
|
2149
2149
|
list: r,
|
|
2150
2150
|
named: c,
|
|
2151
2151
|
plural: i,
|
|
2152
|
-
linked: (y, ...
|
|
2153
|
-
const [P, E] =
|
|
2152
|
+
linked: (y, ...S) => {
|
|
2153
|
+
const [P, E] = S;
|
|
2154
2154
|
let I = "text", N = "";
|
|
2155
|
-
|
|
2156
|
-
const k = u(y)(
|
|
2155
|
+
S.length === 1 ? isObject$2(P) ? (N = P.modifier || N, I = P.type || I) : isString$2(P) && (N = P || N) : S.length === 2 && (isString$2(P) && (N = P || N), isString$2(E) && (I = E || I));
|
|
2156
|
+
const k = u(y)(C), D = (
|
|
2157
2157
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2158
2158
|
I === "vnode" && isArray$1(k) && N ? k[0] : k
|
|
2159
2159
|
);
|
|
@@ -2165,7 +2165,7 @@ function createMessageContext(e = {}) {
|
|
|
2165
2165
|
normalize: m,
|
|
2166
2166
|
values: assign$2({}, a, l)
|
|
2167
2167
|
};
|
|
2168
|
-
return
|
|
2168
|
+
return C;
|
|
2169
2169
|
}
|
|
2170
2170
|
let devtools = null;
|
|
2171
2171
|
function setDevToolsHook(e) {
|
|
@@ -2326,7 +2326,7 @@ const setFallbackContext = (e) => {
|
|
|
2326
2326
|
}, getFallbackContext = () => _fallbackContext;
|
|
2327
2327
|
let _cid = 0;
|
|
2328
2328
|
function createCoreContext(e = {}) {
|
|
2329
|
-
const t = isFunction$1(e.onWarn) ? e.onWarn : warn, o = isString$2(e.version) ? e.version : VERSION$2, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, n = isFunction$1(s) ? DEFAULT_LOCALE : s, i = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, a = isPlainObject$1(e.messages) ? e.messages : { [n]: {} }, r = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [n]: {} }, c = assign$2({}, e.modifiers || {}, getDefaultLinkedModifiers()), u = e.pluralRules || {}, d = isFunction$1(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat,
|
|
2329
|
+
const t = isFunction$1(e.onWarn) ? e.onWarn : warn, o = isString$2(e.version) ? e.version : VERSION$2, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, n = isFunction$1(s) ? DEFAULT_LOCALE : s, i = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, a = isPlainObject$1(e.messages) ? e.messages : { [n]: {} }, r = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [n]: {} }, c = assign$2({}, e.modifiers || {}, getDefaultLinkedModifiers()), u = e.pluralRules || {}, d = isFunction$1(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, _ = !!e.unresolving, C = isFunction$1(e.postTranslation) ? e.postTranslation : null, y = isPlainObject$1(e.processor) ? e.processor : null, S = isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, P = !!e.escapeParameter, E = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2330
2330
|
process.env.NODE_ENV !== "production" && isFunction$1(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2331
2331
|
const I = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, N = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, k = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, D = e, F = isObject$2(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), M = isObject$2(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), $ = isObject$2(D.__meta) ? D.__meta : {};
|
|
2332
2332
|
_cid++;
|
|
@@ -2342,10 +2342,10 @@ function createCoreContext(e = {}) {
|
|
|
2342
2342
|
missingWarn: m,
|
|
2343
2343
|
fallbackWarn: p,
|
|
2344
2344
|
fallbackFormat: f,
|
|
2345
|
-
unresolving:
|
|
2346
|
-
postTranslation:
|
|
2345
|
+
unresolving: _,
|
|
2346
|
+
postTranslation: C,
|
|
2347
2347
|
processor: y,
|
|
2348
|
-
warnHtmlMessage:
|
|
2348
|
+
warnHtmlMessage: S,
|
|
2349
2349
|
escapeParameter: P,
|
|
2350
2350
|
messageCompiler: E,
|
|
2351
2351
|
messageResolver: I,
|
|
@@ -2487,29 +2487,29 @@ function compile(e, t) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(e);
|
|
2489
2489
|
function translate(e, ...t) {
|
|
2490
|
-
const { fallbackFormat: o, postTranslation: s, unresolving: n, messageCompiler: i, fallbackLocale: a, messages: r } = e, [l, c] = parseTranslateArgs(...t), u = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn, d = isBoolean$1(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = isBoolean$1(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, f = isString$2(c.default) || isBoolean$1(c.default) ? isBoolean$1(c.default) ? i ? l : () => l : c.default : o ? i ? l : () => l : "",
|
|
2490
|
+
const { fallbackFormat: o, postTranslation: s, unresolving: n, messageCompiler: i, fallbackLocale: a, messages: r } = e, [l, c] = parseTranslateArgs(...t), u = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn, d = isBoolean$1(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = isBoolean$1(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, f = isString$2(c.default) || isBoolean$1(c.default) ? isBoolean$1(c.default) ? i ? l : () => l : c.default : o ? i ? l : () => l : "", _ = o || f !== "", C = getLocale(e, c);
|
|
2491
2491
|
m && escapeParams(c);
|
|
2492
|
-
let [y,
|
|
2492
|
+
let [y, S, P] = p ? [
|
|
2493
2493
|
l,
|
|
2494
|
-
|
|
2495
|
-
r[
|
|
2496
|
-
] : resolveMessageFormat(e, l,
|
|
2497
|
-
if (!p && !(isString$2(E) || isMessageAST(E) || isMessageFunction(E)) &&
|
|
2494
|
+
C,
|
|
2495
|
+
r[C] || {}
|
|
2496
|
+
] : resolveMessageFormat(e, l, C, a, d, u), E = y, I = l;
|
|
2497
|
+
if (!p && !(isString$2(E) || isMessageAST(E) || isMessageFunction(E)) && _ && (E = f, I = E), !p && (!(isString$2(E) || isMessageAST(E) || isMessageFunction(E)) || !isString$2(S)))
|
|
2498
2498
|
return n ? NOT_REOSLVED : l;
|
|
2499
2499
|
if (process.env.NODE_ENV !== "production" && isString$2(E) && e.messageCompiler == null)
|
|
2500
2500
|
return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
|
2501
2501
|
let N = !1;
|
|
2502
2502
|
const k = () => {
|
|
2503
2503
|
N = !0;
|
|
2504
|
-
}, D = isMessageFunction(E) ? E : compileMessageFormat(e, l,
|
|
2504
|
+
}, D = isMessageFunction(E) ? E : compileMessageFormat(e, l, S, E, I, k);
|
|
2505
2505
|
if (N)
|
|
2506
2506
|
return E;
|
|
2507
|
-
const F = getMessageContextOptions(e,
|
|
2507
|
+
const F = getMessageContextOptions(e, S, P, c), M = createMessageContext(F), $ = evaluateMessage(e, D, M), B = s ? s($, l) : $;
|
|
2508
2508
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2509
2509
|
const U = {
|
|
2510
2510
|
timestamp: Date.now(),
|
|
2511
2511
|
key: isString$2(l) ? l : isMessageFunction(E) ? E.key : "",
|
|
2512
|
-
locale:
|
|
2512
|
+
locale: S || (isMessageFunction(E) ? E.locale : ""),
|
|
2513
2513
|
format: isString$2(E) ? E : isMessageFunction(E) ? E.source : "",
|
|
2514
2514
|
message: B
|
|
2515
2515
|
};
|
|
@@ -2524,32 +2524,32 @@ function escapeParams(e) {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
function resolveMessageFormat(e, t, o, s, n, i) {
|
|
2526
2526
|
const { messages: a, onWarn: r, messageResolver: l, localeFallbacker: c } = e, u = c(e, s, o);
|
|
2527
|
-
let d = {}, m, p = null, f = o,
|
|
2528
|
-
const
|
|
2527
|
+
let d = {}, m, p = null, f = o, _ = null;
|
|
2528
|
+
const C = "translate";
|
|
2529
2529
|
for (let y = 0; y < u.length; y++) {
|
|
2530
|
-
if (m =
|
|
2530
|
+
if (m = _ = u[y], process.env.NODE_ENV !== "production" && o !== m && isTranslateFallbackWarn(n, t) && r(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
2531
2531
|
key: t,
|
|
2532
2532
|
target: m
|
|
2533
2533
|
})), process.env.NODE_ENV !== "production" && o !== m) {
|
|
2534
2534
|
const N = e.__v_emitter;
|
|
2535
2535
|
N && N.emit("fallback", {
|
|
2536
|
-
type:
|
|
2536
|
+
type: C,
|
|
2537
2537
|
key: t,
|
|
2538
2538
|
from: f,
|
|
2539
|
-
to:
|
|
2540
|
-
groupId: `${
|
|
2539
|
+
to: _,
|
|
2540
|
+
groupId: `${C}:${t}`
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
2543
2543
|
d = a[m] || {};
|
|
2544
|
-
let
|
|
2545
|
-
if (process.env.NODE_ENV !== "production" && inBrowser && (
|
|
2544
|
+
let S = null, P, E;
|
|
2545
|
+
if (process.env.NODE_ENV !== "production" && inBrowser && (S = window.performance.now(), P = "intlify-message-resolve-start", E = "intlify-message-resolve-end", mark && mark(P)), (p = l(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2546
2546
|
const N = window.performance.now(), k = e.__v_emitter;
|
|
2547
|
-
k &&
|
|
2547
|
+
k && S && p && k.emit("message-resolve", {
|
|
2548
2548
|
type: "message-resolve",
|
|
2549
2549
|
key: t,
|
|
2550
2550
|
message: p,
|
|
2551
|
-
time: N -
|
|
2552
|
-
groupId: `${
|
|
2551
|
+
time: N - S,
|
|
2552
|
+
groupId: `${C}:${t}`
|
|
2553
2553
|
}), P && E && mark && measure && (mark(E), measure("intlify message resolve", P, E));
|
|
2554
2554
|
}
|
|
2555
2555
|
if (isString$2(p) || isMessageAST(p) || isMessageFunction(p))
|
|
@@ -2560,9 +2560,9 @@ function resolveMessageFormat(e, t, o, s, n, i) {
|
|
|
2560
2560
|
t,
|
|
2561
2561
|
m,
|
|
2562
2562
|
i,
|
|
2563
|
-
|
|
2563
|
+
C
|
|
2564
2564
|
);
|
|
2565
|
-
I !== t && (p = I), f =
|
|
2565
|
+
I !== t && (p = I), f = _;
|
|
2566
2566
|
}
|
|
2567
2567
|
return [p, m, d];
|
|
2568
2568
|
}
|
|
@@ -2648,15 +2648,15 @@ function getMessageContextOptions(e, t, o, s) {
|
|
|
2648
2648
|
messages: (p) => {
|
|
2649
2649
|
let f = a(o, p);
|
|
2650
2650
|
if (f == null && u) {
|
|
2651
|
-
const [, ,
|
|
2652
|
-
f = a(
|
|
2651
|
+
const [, , _] = resolveMessageFormat(u, p, t, r, l, c);
|
|
2652
|
+
f = a(_, p);
|
|
2653
2653
|
}
|
|
2654
2654
|
if (isString$2(f) || isMessageAST(f)) {
|
|
2655
|
-
let
|
|
2655
|
+
let _ = !1;
|
|
2656
2656
|
const y = compileMessageFormat(e, p, t, f, p, () => {
|
|
2657
|
-
|
|
2657
|
+
_ = !0;
|
|
2658
2658
|
});
|
|
2659
|
-
return
|
|
2659
|
+
return _ ? NOOP_MESSAGE_FUNCTION : y;
|
|
2660
2660
|
} else
|
|
2661
2661
|
return isMessageFunction(f) ? f : NOOP_MESSAGE_FUNCTION;
|
|
2662
2662
|
}
|
|
@@ -2671,21 +2671,21 @@ function datetime(e, ...t) {
|
|
|
2671
2671
|
const { datetimeFormats: o, unresolving: s, fallbackLocale: n, onWarn: i, localeFallbacker: a } = e, { __datetimeFormatters: r } = e;
|
|
2672
2672
|
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat)
|
|
2673
2673
|
return i(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), MISSING_RESOLVE_VALUE;
|
|
2674
|
-
const [l, c, u, d] = parseDateTimeArgs(...t), m = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, f = !!u.part,
|
|
2674
|
+
const [l, c, u, d] = parseDateTimeArgs(...t), m = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, f = !!u.part, _ = getLocale(e, u), C = a(
|
|
2675
2675
|
e,
|
|
2676
2676
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2677
2677
|
n,
|
|
2678
|
-
|
|
2678
|
+
_
|
|
2679
2679
|
);
|
|
2680
2680
|
if (!isString$2(l) || l === "")
|
|
2681
|
-
return new Intl.DateTimeFormat(
|
|
2682
|
-
let y = {},
|
|
2681
|
+
return new Intl.DateTimeFormat(_, d).format(c);
|
|
2682
|
+
let y = {}, S, P = null, E = _, I = null;
|
|
2683
2683
|
const N = "datetime format";
|
|
2684
|
-
for (let F = 0; F <
|
|
2685
|
-
if (
|
|
2684
|
+
for (let F = 0; F < C.length; F++) {
|
|
2685
|
+
if (S = I = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
2686
2686
|
key: l,
|
|
2687
|
-
target:
|
|
2688
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2687
|
+
target: S
|
|
2688
|
+
})), process.env.NODE_ENV !== "production" && _ !== S) {
|
|
2689
2689
|
const M = e.__v_emitter;
|
|
2690
2690
|
M && M.emit("fallback", {
|
|
2691
2691
|
type: N,
|
|
@@ -2695,16 +2695,16 @@ function datetime(e, ...t) {
|
|
|
2695
2695
|
groupId: `${N}:${l}`
|
|
2696
2696
|
});
|
|
2697
2697
|
}
|
|
2698
|
-
if (y = o[
|
|
2698
|
+
if (y = o[S] || {}, P = y[l], isPlainObject$1(P))
|
|
2699
2699
|
break;
|
|
2700
|
-
handleMissing(e, l,
|
|
2700
|
+
handleMissing(e, l, S, m, N), E = I;
|
|
2701
2701
|
}
|
|
2702
|
-
if (!isPlainObject$1(P) || !isString$2(
|
|
2702
|
+
if (!isPlainObject$1(P) || !isString$2(S))
|
|
2703
2703
|
return s ? NOT_REOSLVED : l;
|
|
2704
|
-
let k = `${
|
|
2704
|
+
let k = `${S}__${l}`;
|
|
2705
2705
|
isEmptyObject(d) || (k = `${k}__${JSON.stringify(d)}`);
|
|
2706
2706
|
let D = r.get(k);
|
|
2707
|
-
return D || (D = new Intl.DateTimeFormat(
|
|
2707
|
+
return D || (D = new Intl.DateTimeFormat(S, assign$2({}, P, d)), r.set(k, D)), f ? D.formatToParts(c) : D.format(c);
|
|
2708
2708
|
}
|
|
2709
2709
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2710
2710
|
"localeMatcher",
|
|
@@ -2765,21 +2765,21 @@ function number(e, ...t) {
|
|
|
2765
2765
|
const { numberFormats: o, unresolving: s, fallbackLocale: n, onWarn: i, localeFallbacker: a } = e, { __numberFormatters: r } = e;
|
|
2766
2766
|
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat)
|
|
2767
2767
|
return i(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), MISSING_RESOLVE_VALUE;
|
|
2768
|
-
const [l, c, u, d] = parseNumberArgs(...t), m = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, f = !!u.part,
|
|
2768
|
+
const [l, c, u, d] = parseNumberArgs(...t), m = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, f = !!u.part, _ = getLocale(e, u), C = a(
|
|
2769
2769
|
e,
|
|
2770
2770
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2771
2771
|
n,
|
|
2772
|
-
|
|
2772
|
+
_
|
|
2773
2773
|
);
|
|
2774
2774
|
if (!isString$2(l) || l === "")
|
|
2775
|
-
return new Intl.NumberFormat(
|
|
2776
|
-
let y = {},
|
|
2775
|
+
return new Intl.NumberFormat(_, d).format(c);
|
|
2776
|
+
let y = {}, S, P = null, E = _, I = null;
|
|
2777
2777
|
const N = "number format";
|
|
2778
|
-
for (let F = 0; F <
|
|
2779
|
-
if (
|
|
2778
|
+
for (let F = 0; F < C.length; F++) {
|
|
2779
|
+
if (S = I = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2780
2780
|
key: l,
|
|
2781
|
-
target:
|
|
2782
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2781
|
+
target: S
|
|
2782
|
+
})), process.env.NODE_ENV !== "production" && _ !== S) {
|
|
2783
2783
|
const M = e.__v_emitter;
|
|
2784
2784
|
M && M.emit("fallback", {
|
|
2785
2785
|
type: N,
|
|
@@ -2789,16 +2789,16 @@ function number(e, ...t) {
|
|
|
2789
2789
|
groupId: `${N}:${l}`
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
if (y = o[
|
|
2792
|
+
if (y = o[S] || {}, P = y[l], isPlainObject$1(P))
|
|
2793
2793
|
break;
|
|
2794
|
-
handleMissing(e, l,
|
|
2794
|
+
handleMissing(e, l, S, m, N), E = I;
|
|
2795
2795
|
}
|
|
2796
|
-
if (!isPlainObject$1(P) || !isString$2(
|
|
2796
|
+
if (!isPlainObject$1(P) || !isString$2(S))
|
|
2797
2797
|
return s ? NOT_REOSLVED : l;
|
|
2798
|
-
let k = `${
|
|
2798
|
+
let k = `${S}__${l}`;
|
|
2799
2799
|
isEmptyObject(d) || (k = `${k}__${JSON.stringify(d)}`);
|
|
2800
2800
|
let D = r.get(k);
|
|
2801
|
-
return D || (D = new Intl.NumberFormat(
|
|
2801
|
+
return D || (D = new Intl.NumberFormat(S, assign$2({}, P, d)), r.set(k, D)), f ? D.formatToParts(c) : D.format(c);
|
|
2802
2802
|
}
|
|
2803
2803
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2804
2804
|
"localeMatcher",
|
|
@@ -3009,7 +3009,7 @@ function createComposer(e = {}, t) {
|
|
|
3009
3009
|
// prettier-ignore
|
|
3010
3010
|
o && a ? o.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
|
3011
3011
|
), c = ref(getLocaleMessages(r.value, e)), u = ref(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
|
3012
|
-
let m = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = o ? o.fallbackWarn : isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
3012
|
+
let m = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = o ? o.fallbackWarn : isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, C = isFunction$1(e.missing) ? e.missing : null, y = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, S = isFunction$1(e.postTranslation) ? e.postTranslation : null, P = o ? o.warnHtmlMessage : isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
3013
3013
|
const I = o ? o.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
3014
3014
|
let N = e.pluralRules || o && o.pluralRules, k;
|
|
3015
3015
|
k = (() => {
|
|
@@ -3024,9 +3024,9 @@ function createComposer(e = {}, t) {
|
|
|
3024
3024
|
missing: y === null ? void 0 : y,
|
|
3025
3025
|
missingWarn: m,
|
|
3026
3026
|
fallbackWarn: p,
|
|
3027
|
-
fallbackFormat:
|
|
3027
|
+
fallbackFormat: _,
|
|
3028
3028
|
unresolving: !0,
|
|
3029
|
-
postTranslation:
|
|
3029
|
+
postTranslation: S === null ? void 0 : S,
|
|
3030
3030
|
warnHtmlMessage: P,
|
|
3031
3031
|
escapeParameter: E,
|
|
3032
3032
|
messageResolver: e.messageResolver,
|
|
@@ -3058,16 +3058,16 @@ function createComposer(e = {}, t) {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}), B = computed(() => c.value), U = /* @__PURE__ */ computed(() => u.value), X = /* @__PURE__ */ computed(() => d.value);
|
|
3060
3060
|
function ne() {
|
|
3061
|
-
return isFunction$1(
|
|
3061
|
+
return isFunction$1(S) ? S : null;
|
|
3062
3062
|
}
|
|
3063
3063
|
function W(v) {
|
|
3064
|
-
|
|
3064
|
+
S = v, k.postTranslation = v;
|
|
3065
3065
|
}
|
|
3066
3066
|
function Z() {
|
|
3067
|
-
return
|
|
3067
|
+
return C;
|
|
3068
3068
|
}
|
|
3069
3069
|
function ie(v) {
|
|
3070
|
-
v !== null && (y = defineCoreMissingHandler(v)),
|
|
3070
|
+
v !== null && (y = defineCoreMissingHandler(v)), C = v, k.missing = y;
|
|
3071
3071
|
}
|
|
3072
3072
|
function ee(v, T) {
|
|
3073
3073
|
return v !== "translate" || !T.resolvedMessage;
|
|
@@ -3178,7 +3178,7 @@ function createComposer(e = {}, t) {
|
|
|
3178
3178
|
return isMessageAST(K) || isMessageFunction(K) || isString$2(K);
|
|
3179
3179
|
}, () => [v], "translate exists", (A) => Reflect.apply(A.te, A, [v, T]), NOOP_RETURN_FALSE, (A) => isBoolean$1(A));
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function b(v) {
|
|
3182
3182
|
let T = null;
|
|
3183
3183
|
const A = fallbackWithLocaleChain(k, l.value, r.value);
|
|
3184
3184
|
for (let x = 0; x < A.length; x++) {
|
|
@@ -3191,7 +3191,7 @@ function createComposer(e = {}, t) {
|
|
|
3191
3191
|
return T;
|
|
3192
3192
|
}
|
|
3193
3193
|
function g(v) {
|
|
3194
|
-
const T =
|
|
3194
|
+
const T = b(v);
|
|
3195
3195
|
return T ?? (o ? o.tm(v) || {} : {});
|
|
3196
3196
|
}
|
|
3197
3197
|
function w(v) {
|
|
@@ -3278,10 +3278,10 @@ function createComposer(e = {}, t) {
|
|
|
3278
3278
|
f = v;
|
|
3279
3279
|
},
|
|
3280
3280
|
get fallbackFormat() {
|
|
3281
|
-
return
|
|
3281
|
+
return _;
|
|
3282
3282
|
},
|
|
3283
3283
|
set fallbackFormat(v) {
|
|
3284
|
-
|
|
3284
|
+
_ = v, k.fallbackFormat = _;
|
|
3285
3285
|
},
|
|
3286
3286
|
get warnHtmlMessage() {
|
|
3287
3287
|
return P;
|
|
@@ -3322,13 +3322,13 @@ function convertComposerOptions(e) {
|
|
|
3322
3322
|
return assign$2(F, I[D]), k;
|
|
3323
3323
|
}, f || {});
|
|
3324
3324
|
}
|
|
3325
|
-
const { __i18n:
|
|
3325
|
+
const { __i18n: _, __root: C, __injectWithOption: y } = e, S = e.datetimeFormats, P = e.numberFormats, E = e.flatJson;
|
|
3326
3326
|
return {
|
|
3327
3327
|
locale: t,
|
|
3328
3328
|
fallbackLocale: o,
|
|
3329
3329
|
messages: f,
|
|
3330
3330
|
flatJson: E,
|
|
3331
|
-
datetimeFormats:
|
|
3331
|
+
datetimeFormats: S,
|
|
3332
3332
|
numberFormats: P,
|
|
3333
3333
|
missing: s,
|
|
3334
3334
|
missingWarn: n,
|
|
@@ -3342,8 +3342,8 @@ function convertComposerOptions(e) {
|
|
|
3342
3342
|
escapeParameter: m,
|
|
3343
3343
|
messageResolver: e.messageResolver,
|
|
3344
3344
|
inheritLocale: p,
|
|
3345
|
-
__i18n:
|
|
3346
|
-
__root:
|
|
3345
|
+
__i18n: _,
|
|
3346
|
+
__root: C,
|
|
3347
3347
|
__injectWithOption: y
|
|
3348
3348
|
};
|
|
3349
3349
|
}
|
|
@@ -3634,8 +3634,8 @@ function renderFormatter(e, t, o, s) {
|
|
|
3634
3634
|
const l = s(e.value, a, r);
|
|
3635
3635
|
let c = [a.key];
|
|
3636
3636
|
isArray$1(l) ? c = l.map((m, p) => {
|
|
3637
|
-
const f = n[m.type],
|
|
3638
|
-
return isVNode(
|
|
3637
|
+
const f = n[m.type], _ = f ? f({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3638
|
+
return isVNode(_) && (_[0].key = `${m.type}-${p}`), _;
|
|
3639
3639
|
}) : isString$2(l) && (c = [l]);
|
|
3640
3640
|
const u = assign$2({}, i), d = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
3641
3641
|
return h(d, u, c);
|
|
@@ -4118,23 +4118,23 @@ function createI18n(e = {}, t) {
|
|
|
4118
4118
|
const y = f[0];
|
|
4119
4119
|
m.__composerExtend = y.__composerExtend, m.__vueI18nExtend = y.__vueI18nExtend;
|
|
4120
4120
|
}
|
|
4121
|
-
let
|
|
4122
|
-
!o && s && (
|
|
4123
|
-
const
|
|
4121
|
+
let _ = null;
|
|
4122
|
+
!o && s && (_ = injectGlobalFields(p, m.global)), __VUE_I18N_FULL_INSTALL__ && apply(p, m, ...f), __VUE_I18N_LEGACY_API__ && o && p.mixin(defineMixin(r, r.__composer, m));
|
|
4123
|
+
const C = p.unmount;
|
|
4124
4124
|
if (p.unmount = () => {
|
|
4125
|
-
|
|
4125
|
+
_ && _(), m.dispose(), C();
|
|
4126
4126
|
}, process.env.NODE_ENV !== "production") {
|
|
4127
4127
|
if (!await enableDevTools(p, m))
|
|
4128
4128
|
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
4129
|
-
const
|
|
4129
|
+
const S = createEmitter();
|
|
4130
4130
|
if (o) {
|
|
4131
4131
|
const P = r;
|
|
4132
|
-
P.__enableEmitter && P.__enableEmitter(
|
|
4132
|
+
P.__enableEmitter && P.__enableEmitter(S);
|
|
4133
4133
|
} else {
|
|
4134
4134
|
const P = r;
|
|
4135
|
-
P[EnableEmitter] && P[EnableEmitter](
|
|
4135
|
+
P[EnableEmitter] && P[EnableEmitter](S);
|
|
4136
4136
|
}
|
|
4137
|
-
|
|
4137
|
+
S.on("*", addTimelineEvent);
|
|
4138
4138
|
}
|
|
4139
4139
|
},
|
|
4140
4140
|
// global accessor
|
|
@@ -4251,7 +4251,7 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4251
4251
|
), l = ref(
|
|
4252
4252
|
// prettier-ignore
|
|
4253
4253
|
!n || a ? o.fallbackLocale.value : isString$2(s.fallbackLocale) || isArray$1(s.fallbackLocale) || isPlainObject$1(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : r.value
|
|
4254
|
-
), c = ref(getLocaleMessages(r.value, s)), u = ref(isPlainObject$1(s.datetimeFormats) ? s.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(s.numberFormats) ? s.numberFormats : { [r.value]: {} }), m = n ? o.missingWarn : isBoolean$1(s.missingWarn) || isRegExp$1(s.missingWarn) ? s.missingWarn : !0, p = n ? o.fallbackWarn : isBoolean$1(s.fallbackWarn) || isRegExp$1(s.fallbackWarn) ? s.fallbackWarn : !0, f = n ? o.fallbackRoot : isBoolean$1(s.fallbackRoot) ? s.fallbackRoot : !0,
|
|
4254
|
+
), c = ref(getLocaleMessages(r.value, s)), u = ref(isPlainObject$1(s.datetimeFormats) ? s.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(s.numberFormats) ? s.numberFormats : { [r.value]: {} }), m = n ? o.missingWarn : isBoolean$1(s.missingWarn) || isRegExp$1(s.missingWarn) ? s.missingWarn : !0, p = n ? o.fallbackWarn : isBoolean$1(s.fallbackWarn) || isRegExp$1(s.fallbackWarn) ? s.fallbackWarn : !0, f = n ? o.fallbackRoot : isBoolean$1(s.fallbackRoot) ? s.fallbackRoot : !0, _ = !!s.fallbackFormat, C = isFunction$1(s.missing) ? s.missing : null, y = isFunction$1(s.postTranslation) ? s.postTranslation : null, S = n ? o.warnHtmlMessage : isBoolean$1(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, P = !!s.escapeParameter, E = n ? o.modifiers : isPlainObject$1(s.modifiers) ? s.modifiers : {}, I = s.pluralRules || n && o.pluralRules;
|
|
4255
4255
|
function N() {
|
|
4256
4256
|
return [
|
|
4257
4257
|
r.value,
|
|
@@ -4279,7 +4279,7 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4279
4279
|
i.value && i.value.setPostTranslationHandler(g);
|
|
4280
4280
|
}
|
|
4281
4281
|
function X() {
|
|
4282
|
-
return i.value ? i.value.getMissingHandler() :
|
|
4282
|
+
return i.value ? i.value.getMissingHandler() : C;
|
|
4283
4283
|
}
|
|
4284
4284
|
function ne(g) {
|
|
4285
4285
|
i.value && i.value.setMissingHandler(g);
|
|
@@ -4378,13 +4378,13 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4378
4378
|
i.value && (i.value.fallbackRoot = g);
|
|
4379
4379
|
},
|
|
4380
4380
|
get fallbackFormat() {
|
|
4381
|
-
return i.value ? i.value.fallbackFormat :
|
|
4381
|
+
return i.value ? i.value.fallbackFormat : _;
|
|
4382
4382
|
},
|
|
4383
4383
|
set fallbackFormat(g) {
|
|
4384
4384
|
i.value && (i.value.fallbackFormat = g);
|
|
4385
4385
|
},
|
|
4386
4386
|
get warnHtmlMessage() {
|
|
4387
|
-
return i.value ? i.value.warnHtmlMessage :
|
|
4387
|
+
return i.value ? i.value.warnHtmlMessage : S;
|
|
4388
4388
|
},
|
|
4389
4389
|
set warnHtmlMessage(g) {
|
|
4390
4390
|
i.value && (i.value.warnHtmlMessage = g);
|
|
@@ -4415,20 +4415,20 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4415
4415
|
setNumberFormat: q,
|
|
4416
4416
|
mergeNumberFormat: z
|
|
4417
4417
|
};
|
|
4418
|
-
function
|
|
4418
|
+
function b(g) {
|
|
4419
4419
|
g.locale.value = r.value, g.fallbackLocale.value = l.value, Object.keys(c.value).forEach((w) => {
|
|
4420
4420
|
g.mergeLocaleMessage(w, c.value[w]);
|
|
4421
4421
|
}), Object.keys(u.value).forEach((w) => {
|
|
4422
4422
|
g.mergeDateTimeFormat(w, u.value[w]);
|
|
4423
4423
|
}), Object.keys(d.value).forEach((w) => {
|
|
4424
4424
|
g.mergeNumberFormat(w, d.value[w]);
|
|
4425
|
-
}), g.escapeParameter = P, g.fallbackFormat =
|
|
4425
|
+
}), g.escapeParameter = P, g.fallbackFormat = _, g.fallbackRoot = f, g.fallbackWarn = p, g.missingWarn = m, g.warnHtmlMessage = S;
|
|
4426
4426
|
}
|
|
4427
4427
|
return onBeforeMount(() => {
|
|
4428
4428
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
4429
4429
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
4430
4430
|
const g = i.value = e.proxy.$i18n.__composer;
|
|
4431
|
-
t === "global" ? (r.value = g.locale.value, l.value = g.fallbackLocale.value, c.value = g.messages.value, u.value = g.datetimeFormats.value, d.value = g.numberFormats.value) : n &&
|
|
4431
|
+
t === "global" ? (r.value = g.locale.value, l.value = g.fallbackLocale.value, c.value = g.messages.value, u.value = g.datetimeFormats.value, d.value = g.numberFormats.value) : n && b(g);
|
|
4432
4432
|
}), ue;
|
|
4433
4433
|
}
|
|
4434
4434
|
const globalExportProps = [
|
|
@@ -4933,8 +4933,8 @@ function toFormData(e, t, o) {
|
|
|
4933
4933
|
metaTokens: !0,
|
|
4934
4934
|
dots: !1,
|
|
4935
4935
|
indexes: !1
|
|
4936
|
-
}, !1, function(
|
|
4937
|
-
return !utils$1.isUndefined(
|
|
4936
|
+
}, !1, function(_, C) {
|
|
4937
|
+
return !utils$1.isUndefined(C[_]);
|
|
4938
4938
|
});
|
|
4939
4939
|
const s = o.metaTokens, n = o.visitor || u, i = o.dots, a = o.indexes, l = (o.Blob || typeof Blob < "u" && Blob) && utils$1.isSpecCompliantForm(t);
|
|
4940
4940
|
if (!utils$1.isFunction(n))
|
|
@@ -4948,39 +4948,39 @@ function toFormData(e, t, o) {
|
|
|
4948
4948
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
4949
4949
|
return utils$1.isArrayBuffer(f) || utils$1.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
4950
4950
|
}
|
|
4951
|
-
function u(f,
|
|
4951
|
+
function u(f, _, C) {
|
|
4952
4952
|
let y = f;
|
|
4953
|
-
if (f && !
|
|
4954
|
-
if (utils$1.endsWith(
|
|
4955
|
-
|
|
4956
|
-
else if (utils$1.isArray(f) && isFlatArray(f) || (utils$1.isFileList(f) || utils$1.endsWith(
|
|
4957
|
-
return
|
|
4953
|
+
if (f && !C && typeof f == "object") {
|
|
4954
|
+
if (utils$1.endsWith(_, "{}"))
|
|
4955
|
+
_ = s ? _ : _.slice(0, -2), f = JSON.stringify(f);
|
|
4956
|
+
else if (utils$1.isArray(f) && isFlatArray(f) || (utils$1.isFileList(f) || utils$1.endsWith(_, "[]")) && (y = utils$1.toArray(f)))
|
|
4957
|
+
return _ = removeBrackets(_), y.forEach(function(P, E) {
|
|
4958
4958
|
!(utils$1.isUndefined(P) || P === null) && t.append(
|
|
4959
4959
|
// eslint-disable-next-line no-nested-ternary
|
|
4960
|
-
a === !0 ? renderKey([
|
|
4960
|
+
a === !0 ? renderKey([_], E, i) : a === null ? _ : _ + "[]",
|
|
4961
4961
|
c(P)
|
|
4962
4962
|
);
|
|
4963
4963
|
}), !1;
|
|
4964
4964
|
}
|
|
4965
|
-
return isVisitable(f) ? !0 : (t.append(renderKey(
|
|
4965
|
+
return isVisitable(f) ? !0 : (t.append(renderKey(C, _, i), c(f)), !1);
|
|
4966
4966
|
}
|
|
4967
4967
|
const d = [], m = Object.assign(predicates, {
|
|
4968
4968
|
defaultVisitor: u,
|
|
4969
4969
|
convertValue: c,
|
|
4970
4970
|
isVisitable
|
|
4971
4971
|
});
|
|
4972
|
-
function p(f,
|
|
4972
|
+
function p(f, _) {
|
|
4973
4973
|
if (!utils$1.isUndefined(f)) {
|
|
4974
4974
|
if (d.indexOf(f) !== -1)
|
|
4975
|
-
throw Error("Circular reference detected in " +
|
|
4976
|
-
d.push(f), utils$1.forEach(f, function(y,
|
|
4975
|
+
throw Error("Circular reference detected in " + _.join("."));
|
|
4976
|
+
d.push(f), utils$1.forEach(f, function(y, S) {
|
|
4977
4977
|
(!(utils$1.isUndefined(y) || y === null) && n.call(
|
|
4978
4978
|
t,
|
|
4979
4979
|
y,
|
|
4980
|
-
utils$1.isString(
|
|
4981
|
-
|
|
4980
|
+
utils$1.isString(S) ? S.trim() : S,
|
|
4981
|
+
_,
|
|
4982
4982
|
m
|
|
4983
|
-
)) === !0 && p(y,
|
|
4983
|
+
)) === !0 && p(y, _ ? _.concat(S) : [S]);
|
|
4984
4984
|
}), d.pop();
|
|
4985
4985
|
}
|
|
4986
4986
|
}
|
|
@@ -5547,27 +5547,27 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
|
|
|
5547
5547
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv)
|
|
5548
5548
|
i.setContentType(!1);
|
|
5549
5549
|
else if ((u = i.getContentType()) !== !1) {
|
|
5550
|
-
const [
|
|
5551
|
-
i.setContentType([
|
|
5550
|
+
const [_, ...C] = u ? u.split(";").map((y) => y.trim()).filter(Boolean) : [];
|
|
5551
|
+
i.setContentType([_ || "multipart/form-data", ...C].join("; "));
|
|
5552
5552
|
}
|
|
5553
5553
|
}
|
|
5554
5554
|
let d = new XMLHttpRequest();
|
|
5555
5555
|
if (e.auth) {
|
|
5556
|
-
const
|
|
5557
|
-
i.set("Authorization", "Basic " + btoa(
|
|
5556
|
+
const _ = e.auth.username || "", C = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
5557
|
+
i.set("Authorization", "Basic " + btoa(_ + ":" + C));
|
|
5558
5558
|
}
|
|
5559
5559
|
const m = buildFullPath(e.baseURL, e.url);
|
|
5560
5560
|
d.open(e.method.toUpperCase(), buildURL(m, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
|
|
5561
5561
|
function p() {
|
|
5562
5562
|
if (!d)
|
|
5563
5563
|
return;
|
|
5564
|
-
const
|
|
5564
|
+
const _ = AxiosHeaders$1.from(
|
|
5565
5565
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
5566
5566
|
), y = {
|
|
5567
5567
|
data: !a || a === "text" || a === "json" ? d.responseText : d.response,
|
|
5568
5568
|
status: d.status,
|
|
5569
5569
|
statusText: d.statusText,
|
|
5570
|
-
headers:
|
|
5570
|
+
headers: _,
|
|
5571
5571
|
config: e,
|
|
5572
5572
|
request: d
|
|
5573
5573
|
};
|
|
@@ -5584,22 +5584,22 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
|
|
|
5584
5584
|
}, d.onerror = function() {
|
|
5585
5585
|
s(new AxiosError("Network Error", AxiosError.ERR_NETWORK, e, d)), d = null;
|
|
5586
5586
|
}, d.ontimeout = function() {
|
|
5587
|
-
let
|
|
5587
|
+
let C = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
5588
5588
|
const y = e.transitional || transitionalDefaults;
|
|
5589
|
-
e.timeoutErrorMessage && (
|
|
5590
|
-
|
|
5589
|
+
e.timeoutErrorMessage && (C = e.timeoutErrorMessage), s(new AxiosError(
|
|
5590
|
+
C,
|
|
5591
5591
|
y.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
5592
5592
|
e,
|
|
5593
5593
|
d
|
|
5594
5594
|
)), d = null;
|
|
5595
5595
|
}, platform.hasStandardBrowserEnv && (r && utils$1.isFunction(r) && (r = r(e)), r || r !== !1 && isURLSameOrigin(m))) {
|
|
5596
|
-
const
|
|
5597
|
-
|
|
5596
|
+
const _ = e.xsrfHeaderName && e.xsrfCookieName && cookies.read(e.xsrfCookieName);
|
|
5597
|
+
_ && i.set(e.xsrfHeaderName, _);
|
|
5598
5598
|
}
|
|
5599
|
-
n === void 0 && i.setContentType(null), "setRequestHeader" in d && utils$1.forEach(i.toJSON(), function(
|
|
5600
|
-
d.setRequestHeader(y,
|
|
5601
|
-
}), utils$1.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", progressEventReducer(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", progressEventReducer(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (
|
|
5602
|
-
d && (s(!
|
|
5599
|
+
n === void 0 && i.setContentType(null), "setRequestHeader" in d && utils$1.forEach(i.toJSON(), function(C, y) {
|
|
5600
|
+
d.setRequestHeader(y, C);
|
|
5601
|
+
}), utils$1.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", progressEventReducer(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", progressEventReducer(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (_) => {
|
|
5602
|
+
d && (s(!_ || _.type ? new CanceledError(null, e, d) : _), d.abort(), d = null);
|
|
5603
5603
|
}, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
|
|
5604
5604
|
const f = parseProtocol(m);
|
|
5605
5605
|
if (f && platform.protocols.indexOf(f) === -1) {
|
|
@@ -5827,12 +5827,12 @@ class Axios {
|
|
|
5827
5827
|
), o.headers = AxiosHeaders$1.concat(a, i);
|
|
5828
5828
|
const r = [];
|
|
5829
5829
|
let l = !0;
|
|
5830
|
-
this.interceptors.request.forEach(function(
|
|
5831
|
-
typeof
|
|
5830
|
+
this.interceptors.request.forEach(function(_) {
|
|
5831
|
+
typeof _.runWhen == "function" && _.runWhen(o) === !1 || (l = l && _.synchronous, r.unshift(_.fulfilled, _.rejected));
|
|
5832
5832
|
});
|
|
5833
5833
|
const c = [];
|
|
5834
|
-
this.interceptors.response.forEach(function(
|
|
5835
|
-
c.push(
|
|
5834
|
+
this.interceptors.response.forEach(function(_) {
|
|
5835
|
+
c.push(_.fulfilled, _.rejected);
|
|
5836
5836
|
});
|
|
5837
5837
|
let u, d = 0, m;
|
|
5838
5838
|
if (!l) {
|
|
@@ -5844,11 +5844,11 @@ class Axios {
|
|
|
5844
5844
|
m = r.length;
|
|
5845
5845
|
let p = o;
|
|
5846
5846
|
for (d = 0; d < m; ) {
|
|
5847
|
-
const f = r[d++],
|
|
5847
|
+
const f = r[d++], _ = r[d++];
|
|
5848
5848
|
try {
|
|
5849
5849
|
p = f(p);
|
|
5850
|
-
} catch (
|
|
5851
|
-
|
|
5850
|
+
} catch (C) {
|
|
5851
|
+
_.call(this, C);
|
|
5852
5852
|
break;
|
|
5853
5853
|
}
|
|
5854
5854
|
}
|
|
@@ -6065,78 +6065,102 @@ axios.getAdapter = adapters.getAdapter;
|
|
|
6065
6065
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
6066
6066
|
axios.default = axios;
|
|
6067
6067
|
const axios$1 = axios;
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
6071
|
-
var o = arguments[t];
|
|
6072
|
-
for (var s in o)
|
|
6073
|
-
e[s] = o[s];
|
|
6074
|
-
}
|
|
6075
|
-
return e;
|
|
6068
|
+
function getDefaultExportFromCjs(e) {
|
|
6069
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6076
6070
|
}
|
|
6077
|
-
var
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
for (var l in a)
|
|
6094
|
-
a[l] && (r += "; " + l, a[l] !== !0 && (r += "=" + a[l].split(";")[0]));
|
|
6095
|
-
return document.cookie = n + "=" + e.write(i, n) + r;
|
|
6071
|
+
var js_cookie = { exports: {} };
|
|
6072
|
+
/*!
|
|
6073
|
+
* JavaScript Cookie v2.2.1
|
|
6074
|
+
* https://github.com/js-cookie/js-cookie
|
|
6075
|
+
*
|
|
6076
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
6077
|
+
* Released under the MIT license
|
|
6078
|
+
*/
|
|
6079
|
+
(function(e, t) {
|
|
6080
|
+
(function(o) {
|
|
6081
|
+
var s;
|
|
6082
|
+
if (e.exports = o(), s = !0, !s) {
|
|
6083
|
+
var n = window.Cookies, i = window.Cookies = o();
|
|
6084
|
+
i.noConflict = function() {
|
|
6085
|
+
return window.Cookies = n, i;
|
|
6086
|
+
};
|
|
6096
6087
|
}
|
|
6097
|
-
}
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
var l
|
|
6102
|
-
|
|
6103
|
-
var u = decodeURIComponent(l[0]);
|
|
6104
|
-
if (a[u] = e.read(c, u), n === u)
|
|
6105
|
-
break;
|
|
6106
|
-
} catch {
|
|
6107
|
-
}
|
|
6088
|
+
})(function() {
|
|
6089
|
+
function o() {
|
|
6090
|
+
for (var i = 0, a = {}; i < arguments.length; i++) {
|
|
6091
|
+
var r = arguments[i];
|
|
6092
|
+
for (var l in r)
|
|
6093
|
+
a[l] = r[l];
|
|
6108
6094
|
}
|
|
6109
|
-
return
|
|
6095
|
+
return a;
|
|
6110
6096
|
}
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6097
|
+
function s(i) {
|
|
6098
|
+
return i.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
6099
|
+
}
|
|
6100
|
+
function n(i) {
|
|
6101
|
+
function a() {
|
|
6102
|
+
}
|
|
6103
|
+
function r(c, u, d) {
|
|
6104
|
+
if (!(typeof document > "u")) {
|
|
6105
|
+
d = o({
|
|
6106
|
+
path: "/"
|
|
6107
|
+
}, a.defaults, d), typeof d.expires == "number" && (d.expires = new Date(/* @__PURE__ */ new Date() * 1 + d.expires * 864e5)), d.expires = d.expires ? d.expires.toUTCString() : "";
|
|
6108
|
+
try {
|
|
6109
|
+
var m = JSON.stringify(u);
|
|
6110
|
+
/^[\{\[]/.test(m) && (u = m);
|
|
6111
|
+
} catch {
|
|
6112
|
+
}
|
|
6113
|
+
u = i.write ? i.write(u, c) : encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), c = encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
6114
|
+
var p = "";
|
|
6115
|
+
for (var f in d)
|
|
6116
|
+
d[f] && (p += "; " + f, d[f] !== !0 && (p += "=" + d[f].split(";")[0]));
|
|
6117
|
+
return document.cookie = c + "=" + u + p;
|
|
6118
|
+
}
|
|
6130
6119
|
}
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6120
|
+
function l(c, u) {
|
|
6121
|
+
if (!(typeof document > "u")) {
|
|
6122
|
+
for (var d = {}, m = document.cookie ? document.cookie.split("; ") : [], p = 0; p < m.length; p++) {
|
|
6123
|
+
var f = m[p].split("="), _ = f.slice(1).join("=");
|
|
6124
|
+
!u && _.charAt(0) === '"' && (_ = _.slice(1, -1));
|
|
6125
|
+
try {
|
|
6126
|
+
var C = s(f[0]);
|
|
6127
|
+
if (_ = (i.read || i)(_, C) || s(_), u)
|
|
6128
|
+
try {
|
|
6129
|
+
_ = JSON.parse(_);
|
|
6130
|
+
} catch {
|
|
6131
|
+
}
|
|
6132
|
+
if (d[C] = _, c === C)
|
|
6133
|
+
break;
|
|
6134
|
+
} catch {
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
return c ? d[c] : d;
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
return a.set = r, a.get = function(c) {
|
|
6141
|
+
return l(
|
|
6142
|
+
c,
|
|
6143
|
+
!1
|
|
6144
|
+
/* read as raw */
|
|
6145
|
+
);
|
|
6146
|
+
}, a.getJSON = function(c) {
|
|
6147
|
+
return l(
|
|
6148
|
+
c,
|
|
6149
|
+
!0
|
|
6150
|
+
/* read as json */
|
|
6151
|
+
);
|
|
6152
|
+
}, a.remove = function(c, u) {
|
|
6153
|
+
r(c, "", o(u, {
|
|
6154
|
+
expires: -1
|
|
6155
|
+
}));
|
|
6156
|
+
}, a.defaults = {}, a.withConverter = n, a;
|
|
6135
6157
|
}
|
|
6136
|
-
|
|
6137
|
-
}
|
|
6138
|
-
|
|
6139
|
-
|
|
6158
|
+
return n(function() {
|
|
6159
|
+
});
|
|
6160
|
+
});
|
|
6161
|
+
})(js_cookie);
|
|
6162
|
+
var js_cookieExports = js_cookie.exports;
|
|
6163
|
+
const Cookies = /* @__PURE__ */ getDefaultExportFromCjs(js_cookieExports), store = /* @__PURE__ */ new Map(), en = {
|
|
6140
6164
|
imatrixUIPublicModel: {
|
|
6141
6165
|
sure: "Sure",
|
|
6142
6166
|
cancel: "Cancel",
|
|
@@ -6784,6 +6808,77 @@ function executeExpression(e, t, o, s) {
|
|
|
6784
6808
|
const n = getAbstractUserFactory(s);
|
|
6785
6809
|
return new n(e, t, o).result;
|
|
6786
6810
|
}
|
|
6811
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
6812
|
+
function assign(e) {
|
|
6813
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
6814
|
+
var o = arguments[t];
|
|
6815
|
+
for (var s in o)
|
|
6816
|
+
e[s] = o[s];
|
|
6817
|
+
}
|
|
6818
|
+
return e;
|
|
6819
|
+
}
|
|
6820
|
+
var defaultConverter = {
|
|
6821
|
+
read: function(e) {
|
|
6822
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
6823
|
+
},
|
|
6824
|
+
write: function(e) {
|
|
6825
|
+
return encodeURIComponent(e).replace(
|
|
6826
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
6827
|
+
decodeURIComponent
|
|
6828
|
+
);
|
|
6829
|
+
}
|
|
6830
|
+
};
|
|
6831
|
+
function init(e, t) {
|
|
6832
|
+
function o(n, i, a) {
|
|
6833
|
+
if (!(typeof document > "u")) {
|
|
6834
|
+
a = assign({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
6835
|
+
var r = "";
|
|
6836
|
+
for (var l in a)
|
|
6837
|
+
a[l] && (r += "; " + l, a[l] !== !0 && (r += "=" + a[l].split(";")[0]));
|
|
6838
|
+
return document.cookie = n + "=" + e.write(i, n) + r;
|
|
6839
|
+
}
|
|
6840
|
+
}
|
|
6841
|
+
function s(n) {
|
|
6842
|
+
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
6843
|
+
for (var i = document.cookie ? document.cookie.split("; ") : [], a = {}, r = 0; r < i.length; r++) {
|
|
6844
|
+
var l = i[r].split("="), c = l.slice(1).join("=");
|
|
6845
|
+
try {
|
|
6846
|
+
var u = decodeURIComponent(l[0]);
|
|
6847
|
+
if (a[u] = e.read(c, u), n === u)
|
|
6848
|
+
break;
|
|
6849
|
+
} catch {
|
|
6850
|
+
}
|
|
6851
|
+
}
|
|
6852
|
+
return n ? a[n] : a;
|
|
6853
|
+
}
|
|
6854
|
+
}
|
|
6855
|
+
return Object.create(
|
|
6856
|
+
{
|
|
6857
|
+
set: o,
|
|
6858
|
+
get: s,
|
|
6859
|
+
remove: function(n, i) {
|
|
6860
|
+
o(
|
|
6861
|
+
n,
|
|
6862
|
+
"",
|
|
6863
|
+
assign({}, i, {
|
|
6864
|
+
expires: -1
|
|
6865
|
+
})
|
|
6866
|
+
);
|
|
6867
|
+
},
|
|
6868
|
+
withAttributes: function(n) {
|
|
6869
|
+
return init(this.converter, assign({}, this.attributes, n));
|
|
6870
|
+
},
|
|
6871
|
+
withConverter: function(n) {
|
|
6872
|
+
return init(assign({}, this.converter, n), this.attributes);
|
|
6873
|
+
}
|
|
6874
|
+
},
|
|
6875
|
+
{
|
|
6876
|
+
attributes: { value: Object.freeze(t) },
|
|
6877
|
+
converter: { value: Object.freeze(e) }
|
|
6878
|
+
}
|
|
6879
|
+
);
|
|
6880
|
+
}
|
|
6881
|
+
var api$1 = init(defaultConverter, { path: "/" });
|
|
6787
6882
|
const jwtKey = "JWT", currentUserNameKey = "USERNAME", currentUserInfoKey = "CURRENT_USER", currentSystemUrlKey = "CURRENT_SYSTEM_URL_", langKey = "CURRENT_LANGUAGE", allLangKey = "AMB_LANG_INFO";
|
|
6788
6883
|
function getToken$1() {
|
|
6789
6884
|
let e = getCookieCache(jwtKey);
|
|
@@ -7208,19 +7303,19 @@ function jumpToPage(e, t, o, s, n, i, a, r) {
|
|
|
7208
7303
|
e.jumpPageAdditional
|
|
7209
7304
|
);
|
|
7210
7305
|
window.$vueApp.config.globalProperties.$http.post(d, m).then((f) => {
|
|
7211
|
-
let
|
|
7212
|
-
f && f.uuid && (
|
|
7213
|
-
|
|
7306
|
+
let _ = "";
|
|
7307
|
+
f && f.uuid && (_ = f.uuid + "_additionalParamMap", window.sessionStorage.setItem(
|
|
7308
|
+
_,
|
|
7214
7309
|
JSON.stringify(f.paramMap)
|
|
7215
|
-
)), e.paramStoreId =
|
|
7310
|
+
)), e.paramStoreId = _, jumpToPageTwo(
|
|
7216
7311
|
e,
|
|
7217
7312
|
u,
|
|
7218
7313
|
o,
|
|
7219
7314
|
i,
|
|
7220
7315
|
a,
|
|
7221
7316
|
p
|
|
7222
|
-
).then((
|
|
7223
|
-
l(
|
|
7317
|
+
).then((C) => {
|
|
7318
|
+
l(C);
|
|
7224
7319
|
});
|
|
7225
7320
|
});
|
|
7226
7321
|
} else
|
|
@@ -7598,9 +7693,9 @@ const Util = {
|
|
|
7598
7693
|
for (let d = 0; d < t.length; d++) {
|
|
7599
7694
|
const m = t[d];
|
|
7600
7695
|
for (let p = 0; p < e.length; p++) {
|
|
7601
|
-
const f = e[p],
|
|
7696
|
+
const f = e[p], _ = f.toolTips, C = f.conditionList;
|
|
7602
7697
|
if (!analysisCondition(
|
|
7603
|
-
|
|
7698
|
+
C,
|
|
7604
7699
|
m,
|
|
7605
7700
|
n,
|
|
7606
7701
|
r,
|
|
@@ -7608,7 +7703,7 @@ const Util = {
|
|
|
7608
7703
|
s,
|
|
7609
7704
|
null
|
|
7610
7705
|
)) {
|
|
7611
|
-
l = !1, c =
|
|
7706
|
+
l = !1, c = _, u = m;
|
|
7612
7707
|
break;
|
|
7613
7708
|
}
|
|
7614
7709
|
}
|
|
@@ -7732,8 +7827,8 @@ const Util = {
|
|
|
7732
7827
|
return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
|
|
7733
7828
|
},
|
|
7734
7829
|
// 获得普通表单保存时的request请求,表单页面和行编辑保存时使用了
|
|
7735
|
-
getSaveFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
7736
|
-
N = N === void 0 || N === "true";
|
|
7830
|
+
getSaveFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, P, E, I, N) {
|
|
7831
|
+
N = N === void 0 || N === "true" || N;
|
|
7737
7832
|
const k = {
|
|
7738
7833
|
entity: i,
|
|
7739
7834
|
formViewCode: o,
|
|
@@ -7744,7 +7839,7 @@ const Util = {
|
|
|
7744
7839
|
functionCode: E,
|
|
7745
7840
|
isPermission: N + ""
|
|
7746
7841
|
};
|
|
7747
|
-
return this.judgeHeavyList && (k.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), c && (this.isArrayFn(c) ? k.dataConversionRule = c.join(",") : typeof c == "string" && (k.dataConversionRule = c)), u && (k.autoSetValueData = JSON.stringify(u)), m && (k.logSettingText = m), k.systemCode || (k.systemCode = e.code), a && (k.entityName = a),
|
|
7842
|
+
return this.judgeHeavyList && (k.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), c && (this.isArrayFn(c) ? k.dataConversionRule = c.join(",") : typeof c == "string" && (k.dataConversionRule = c)), u && (k.autoSetValueData = JSON.stringify(u)), m && (k.logSettingText = m), k.systemCode || (k.systemCode = e.code), a && (k.entityName = a), S && (k.beanName = S), _ && (k.taskMap = _), C && (k.needDeleteFileUuidS = C), this.dataTypeMap && (k.dataTypeMap = this.dataTypeMap), p && (k.dynamicColumnInfo = p), f && (k.mainDefaultValueColumns = f), y && (k.additionalParamMap = y), I !== void 0 && (k.unControlVersion = I), this.getSaveFormRequestByParam(
|
|
7748
7843
|
e,
|
|
7749
7844
|
t,
|
|
7750
7845
|
k,
|
|
@@ -7768,7 +7863,7 @@ const Util = {
|
|
|
7768
7863
|
// 导出报告按钮实现
|
|
7769
7864
|
exportFormReport(e, t, o, s, n, i, a, r, l, c, u, d) {
|
|
7770
7865
|
this.$refs.superForm && this.$refs.superForm.getViewModels().then(async (m) => {
|
|
7771
|
-
const p = u.isPermission === void 0 || u.isPermission === "true", f = {
|
|
7866
|
+
const p = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, f = {
|
|
7772
7867
|
entity: m,
|
|
7773
7868
|
fileName: e,
|
|
7774
7869
|
// uuid
|
|
@@ -7784,7 +7879,7 @@ const Util = {
|
|
|
7784
7879
|
isPermission: p + ""
|
|
7785
7880
|
};
|
|
7786
7881
|
i && (f.logSettingText = i), f.systemCode || (f.systemCode = n.code), a && (f.taskMap = a), r && (f.additionalParamMap = r);
|
|
7787
|
-
let
|
|
7882
|
+
let _ = this.callBeforeClickButton(
|
|
7788
7883
|
this.formEvents,
|
|
7789
7884
|
this.formViewCode + "__exportForm",
|
|
7790
7885
|
{
|
|
@@ -7793,10 +7888,10 @@ const Util = {
|
|
|
7793
7888
|
exportParam: f
|
|
7794
7889
|
}
|
|
7795
7890
|
);
|
|
7796
|
-
isPromise(
|
|
7797
|
-
console.log("点击前事件返回结果--Promise--resolve---",
|
|
7798
|
-
}),
|
|
7799
|
-
|
|
7891
|
+
isPromise(_) && await _.then((C) => {
|
|
7892
|
+
console.log("点击前事件返回结果--Promise--resolve---", C), _ = C;
|
|
7893
|
+
}), _ && (isPromise(_) ? _.then((C) => {
|
|
7894
|
+
C && (u.code === "exportPDF" ? this.exportFormPdf(t, o, n, f) : this.exportFormReportSuccess(
|
|
7800
7895
|
e,
|
|
7801
7896
|
t,
|
|
7802
7897
|
o,
|
|
@@ -8267,10 +8362,10 @@ const Util = {
|
|
|
8267
8362
|
exportParam: p
|
|
8268
8363
|
}
|
|
8269
8364
|
);
|
|
8270
|
-
isPromise(f) && await f.then((
|
|
8271
|
-
console.log("点击前事件返回结果--Promise--resolve---",
|
|
8272
|
-
}), f && (isPromise(f) ? f.then((
|
|
8273
|
-
|
|
8365
|
+
isPromise(f) && await f.then((_) => {
|
|
8366
|
+
console.log("点击前事件返回结果--Promise--resolve---", _), f = _;
|
|
8367
|
+
}), f && (isPromise(f) ? f.then((_) => {
|
|
8368
|
+
_ && this.previewFormReportSuccess(
|
|
8274
8369
|
e,
|
|
8275
8370
|
t,
|
|
8276
8371
|
o,
|
|
@@ -8309,7 +8404,7 @@ const Util = {
|
|
|
8309
8404
|
request = buttonFun(this, param);
|
|
8310
8405
|
} else {
|
|
8311
8406
|
const t = this.getBaseUrl(system) + "/dsc/commons/create-preview-file";
|
|
8312
|
-
axios$1.defaults.headers.common.Authorization =
|
|
8407
|
+
axios$1.defaults.headers.common.Authorization = Cookies.get("JWT"), request = axios$1.post(
|
|
8313
8408
|
t,
|
|
8314
8409
|
param,
|
|
8315
8410
|
{},
|
|
@@ -8544,7 +8639,7 @@ const ExportFormReportDialog = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["rende
|
|
|
8544
8639
|
},
|
|
8545
8640
|
data() {
|
|
8546
8641
|
let e = "true";
|
|
8547
|
-
(this.button.isPermission === void 0 || this.button.isPermission === "true") && (e = this.permissionPrefix + "." + this.button.code, this.button.functionCode && (e = this.button.functionCode)), console.log("my-button-base1111------permission=", e);
|
|
8642
|
+
(this.button.isPermission === void 0 || this.button.isPermission === "true" || this.button.isPermission) && (e = this.permissionPrefix + "." + this.button.code, this.button.functionCode && (e = this.button.functionCode)), console.log("my-button-base1111------permission=", e);
|
|
8548
8643
|
const t = getStoreInfo(this.pageCode, "_pageDevMode"), o = getStoreInfo(this.pageCode, "_pagePreview");
|
|
8549
8644
|
console.log("my-button-base222------isDevMode=", t), console.log("my-button-base333------isPreview=", o), (t && t === !0 || o && o === !0 || this.button && this.button.code === "back") && (e = "true"), console.log("my-button-base444------permission=", e);
|
|
8550
8645
|
const s = this.button.buttonDisplayConditionsList;
|
|
@@ -8703,7 +8798,7 @@ const ExportFormReportDialog = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["rende
|
|
|
8703
8798
|
}
|
|
8704
8799
|
},
|
|
8705
8800
|
emits: ["click", "prohibi-edit", "workflowClick", "getPageParam"]
|
|
8706
|
-
}, _hoisted_1$
|
|
8801
|
+
}, _hoisted_1$b = ["id"], _hoisted_2$6 = {
|
|
8707
8802
|
key: 0,
|
|
8708
8803
|
style: { "margin-right": "10px" }
|
|
8709
8804
|
}, _hoisted_3$2 = { key: 0 }, _hoisted_4$1 = { key: 1 };
|
|
@@ -8786,7 +8881,7 @@ function _sfc_render$p(e, t, o, s, n, i) {
|
|
|
8786
8881
|
onPreviewExportFormReport: i.previewExportFormReport,
|
|
8787
8882
|
onBeforeExportFormReport: i.beforeExportFormReport
|
|
8788
8883
|
}, null, 8, ["button", "entity", "onClose", "onPreviewExportFormReport", "onBeforeExportFormReport"])) : createCommentVNode("", !0)
|
|
8789
|
-
], 8, _hoisted_1$
|
|
8884
|
+
], 8, _hoisted_1$b)) : createCommentVNode("", !0);
|
|
8790
8885
|
}
|
|
8791
8886
|
const myButtonBase = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]), _sfc_main$o = {
|
|
8792
8887
|
name: "MyWorkflowButtonGroup",
|
|
@@ -9067,7 +9162,7 @@ const myButtonBase = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
9067
9162
|
}
|
|
9068
9163
|
},
|
|
9069
9164
|
emits: ["workflowClick", "prohibi-edit", "click", "workflowClick", "getPageParam"]
|
|
9070
|
-
}, _hoisted_1$
|
|
9165
|
+
}, _hoisted_1$a = {
|
|
9071
9166
|
key: 1,
|
|
9072
9167
|
style: { "margin-left": "10px" }
|
|
9073
9168
|
}, _hoisted_2$5 = { key: 0 }, _hoisted_3$1 = { key: 1 };
|
|
@@ -9145,7 +9240,7 @@ function _sfc_render$o(e, t, o, s, n, i) {
|
|
|
9145
9240
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
9146
9241
|
[m, p.permission]
|
|
9147
9242
|
])), 128)),
|
|
9148
|
-
o.buttonGroups ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9243
|
+
o.buttonGroups ? (openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
9149
9244
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.myButtonGroups, (p, f) => (openBlock(), createElementBlock(Fragment, { key: f }, [
|
|
9150
9245
|
p.isGroup ? (openBlock(), createElementBlock("span", _hoisted_2$5, [
|
|
9151
9246
|
createVNode(c, {
|
|
@@ -9157,22 +9252,22 @@ function _sfc_render$o(e, t, o, s, n, i) {
|
|
|
9157
9252
|
dropdown: withCtx(() => [
|
|
9158
9253
|
createVNode(l, null, {
|
|
9159
9254
|
default: withCtx(() => [
|
|
9160
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (
|
|
9161
|
-
key:
|
|
9162
|
-
class: normalizeClass(
|
|
9255
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (_, C) => (openBlock(), createElementBlock("span", {
|
|
9256
|
+
key: _.code + C,
|
|
9257
|
+
class: normalizeClass(_.code)
|
|
9163
9258
|
}, [
|
|
9164
9259
|
withDirectives((openBlock(), createBlock(r, {
|
|
9165
|
-
command:
|
|
9260
|
+
command: _.code,
|
|
9166
9261
|
disabled: e.preventReclick
|
|
9167
9262
|
}, {
|
|
9168
9263
|
default: withCtx(() => [
|
|
9169
|
-
createTextVNode(toDisplayString$1(
|
|
9264
|
+
createTextVNode(toDisplayString$1(_.label ? _.label : _.code === "search" ? e.$t("superPageMessage.searchButtonLabel") : ""), 1)
|
|
9170
9265
|
]),
|
|
9171
9266
|
_: 2
|
|
9172
9267
|
}, 1032, ["command", "disabled"])), [
|
|
9173
9268
|
[
|
|
9174
9269
|
m,
|
|
9175
|
-
n.myPermissionPrefix && n.myPermissionPrefix !== "" ? n.myPermissionPrefix +
|
|
9270
|
+
n.myPermissionPrefix && n.myPermissionPrefix !== "" ? n.myPermissionPrefix + _.code : ""
|
|
9176
9271
|
]
|
|
9177
9272
|
])
|
|
9178
9273
|
], 2))), 128))
|
|
@@ -9373,10 +9468,10 @@ const workflowButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render",
|
|
|
9373
9468
|
}
|
|
9374
9469
|
},
|
|
9375
9470
|
emits: ["prohibi-edit", "click", "workflowClick", "getPageParam"]
|
|
9376
|
-
}, _hoisted_1$
|
|
9471
|
+
}, _hoisted_1$9 = { key: 0 };
|
|
9377
9472
|
function _sfc_render$n(e, t, o, s, n, i) {
|
|
9378
9473
|
const a = resolveComponent("workflow-button-group"), r = resolveComponent("my-button-base");
|
|
9379
|
-
return n.isVisible ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9474
|
+
return n.isVisible ? (openBlock(), createElementBlock("span", _hoisted_1$9, [
|
|
9380
9475
|
o.button.code === "workflowButton" ? (openBlock(), createBlock(a, {
|
|
9381
9476
|
key: 0,
|
|
9382
9477
|
ref: "workflowButtonGroup",
|
|
@@ -9450,11 +9545,13 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rende
|
|
|
9450
9545
|
beforeUnmount() {
|
|
9451
9546
|
},
|
|
9452
9547
|
methods: {
|
|
9453
|
-
multiselectChange() {
|
|
9454
|
-
|
|
9548
|
+
multiselectChange(e, t) {
|
|
9549
|
+
this.valueSetOptions.forEach((o) => {
|
|
9550
|
+
this.modelObj[o.valueField] = t[o.columnName];
|
|
9551
|
+
}), console.log("multiselectChange", e, t), $emit$1(this, "search-grid-data", this.toolbar.controlType);
|
|
9455
9552
|
},
|
|
9456
9553
|
setDynamicSourceSelectValue(e) {
|
|
9457
|
-
this.valueSetOptions.forEach((t) => {
|
|
9554
|
+
console.log(e, "------------"), this.valueSetOptions.forEach((t) => {
|
|
9458
9555
|
this.modelObj[t.valueField] = e.selectedItem[t.columnName];
|
|
9459
9556
|
}), console.log(this.modelObj, "------------");
|
|
9460
9557
|
},
|
|
@@ -9638,13 +9735,14 @@ const ListToolbarDynamicSource = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["ren
|
|
|
9638
9735
|
}
|
|
9639
9736
|
},
|
|
9640
9737
|
emits: ["searchGridData"]
|
|
9641
|
-
};
|
|
9738
|
+
}, _hoisted_1$8 = ["id"];
|
|
9642
9739
|
function _sfc_render$l(e, t, o, s, n, i) {
|
|
9643
9740
|
const a = resolveComponent("list-toolbar-dynamic-source"), r = resolveComponent("el-option"), l = resolveComponent("el-select"), c = resolveComponent("el-radio"), u = resolveComponent("el-radio-group"), d = resolveComponent("el-checkbox"), m = resolveComponent("el-checkbox-group"), p = resolveComponent("el-date-picker");
|
|
9644
9741
|
return openBlock(), createElementBlock("span", null, [
|
|
9645
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.listToolbarList, (f,
|
|
9646
|
-
key:
|
|
9647
|
-
|
|
9742
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.listToolbarList, (f, _) => (openBlock(), createElementBlock("span", {
|
|
9743
|
+
key: _,
|
|
9744
|
+
id: "tb-" + f.propDbName,
|
|
9745
|
+
style: normalizeStyle([{ width: f.width ? f.width + "px" : "150px" }, { display: "inline-block", "margin-bottom": "10px" }])
|
|
9648
9746
|
}, [
|
|
9649
9747
|
createTextVNode(toDisplayString$1(f.label) + " ", 1),
|
|
9650
9748
|
(f.controlType === "select" || f.controlType === "multipleSelect") && f.dynamicDataSourceCode ? (openBlock(), createBlock(a, {
|
|
@@ -9658,17 +9756,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9658
9756
|
f.controlType === "select" ? (openBlock(), createBlock(l, {
|
|
9659
9757
|
key: 0,
|
|
9660
9758
|
modelValue: n.modelObj[f.propDbName],
|
|
9661
|
-
"onUpdate:modelValue": (
|
|
9759
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9662
9760
|
placeholder: f.nullLabel,
|
|
9663
9761
|
size: f.size ? f.size : e.small,
|
|
9664
9762
|
clearable: "",
|
|
9665
9763
|
onChange: i.searchGridData
|
|
9666
9764
|
}, {
|
|
9667
9765
|
default: withCtx(() => [
|
|
9668
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (
|
|
9669
|
-
key:
|
|
9670
|
-
label:
|
|
9671
|
-
value:
|
|
9766
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(r, {
|
|
9767
|
+
key: C.value,
|
|
9768
|
+
label: C.label,
|
|
9769
|
+
value: C.value
|
|
9672
9770
|
}, null, 8, ["label", "value"]))), 128))
|
|
9673
9771
|
]),
|
|
9674
9772
|
_: 2
|
|
@@ -9676,7 +9774,7 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9676
9774
|
f.controlType === "multipleSelect" ? (openBlock(), createBlock(l, {
|
|
9677
9775
|
key: 1,
|
|
9678
9776
|
modelValue: n.modelObj[f.propDbName],
|
|
9679
|
-
"onUpdate:modelValue": (
|
|
9777
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9680
9778
|
placeholder: f.nullLabel,
|
|
9681
9779
|
size: f.size ? f.size : e.small,
|
|
9682
9780
|
"collapse-tags": "",
|
|
@@ -9685,10 +9783,10 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9685
9783
|
onChange: i.searchGridData
|
|
9686
9784
|
}, {
|
|
9687
9785
|
default: withCtx(() => [
|
|
9688
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (
|
|
9689
|
-
key:
|
|
9690
|
-
label:
|
|
9691
|
-
value:
|
|
9786
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(r, {
|
|
9787
|
+
key: C.value,
|
|
9788
|
+
label: C.label,
|
|
9789
|
+
value: C.value
|
|
9692
9790
|
}, null, 8, ["label", "value"]))), 128))
|
|
9693
9791
|
]),
|
|
9694
9792
|
_: 2
|
|
@@ -9696,17 +9794,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9696
9794
|
f.controlType === "radio" ? (openBlock(), createBlock(u, {
|
|
9697
9795
|
key: 2,
|
|
9698
9796
|
modelValue: n.modelObj[f.propDbName],
|
|
9699
|
-
"onUpdate:modelValue": (
|
|
9797
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9700
9798
|
size: f.size ? f.size : e.small,
|
|
9701
9799
|
onChange: i.searchGridData
|
|
9702
9800
|
}, {
|
|
9703
9801
|
default: withCtx(() => [
|
|
9704
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (
|
|
9705
|
-
key:
|
|
9706
|
-
label:
|
|
9802
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(c, {
|
|
9803
|
+
key: C.value,
|
|
9804
|
+
label: C.value
|
|
9707
9805
|
}, {
|
|
9708
9806
|
default: withCtx(() => [
|
|
9709
|
-
createTextVNode(toDisplayString$1(
|
|
9807
|
+
createTextVNode(toDisplayString$1(C.name == null ? C.label : C.name), 1)
|
|
9710
9808
|
]),
|
|
9711
9809
|
_: 2
|
|
9712
9810
|
}, 1032, ["label"]))), 128))
|
|
@@ -9716,17 +9814,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9716
9814
|
f.controlType === "checkbox" ? (openBlock(), createBlock(m, {
|
|
9717
9815
|
key: 3,
|
|
9718
9816
|
modelValue: n.modelObj[f.propDbName],
|
|
9719
|
-
"onUpdate:modelValue": (
|
|
9817
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9720
9818
|
size: f.size ? f.size : e.small,
|
|
9721
9819
|
onChange: i.searchGridData
|
|
9722
9820
|
}, {
|
|
9723
9821
|
default: withCtx(() => [
|
|
9724
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (
|
|
9725
|
-
key:
|
|
9726
|
-
label:
|
|
9822
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(d, {
|
|
9823
|
+
key: C.value,
|
|
9824
|
+
label: C.value
|
|
9727
9825
|
}, {
|
|
9728
9826
|
default: withCtx(() => [
|
|
9729
|
-
createTextVNode(toDisplayString$1(
|
|
9827
|
+
createTextVNode(toDisplayString$1(C.name == null ? C.label : C.name), 1)
|
|
9730
9828
|
]),
|
|
9731
9829
|
_: 2
|
|
9732
9830
|
}, 1032, ["label"]))), 128))
|
|
@@ -9736,25 +9834,25 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9736
9834
|
f.controlType === "year" ? (openBlock(), createBlock(p, {
|
|
9737
9835
|
key: 4,
|
|
9738
9836
|
modelValue: n.modelObj[f.propDbName],
|
|
9739
|
-
"onUpdate:modelValue": (
|
|
9837
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9740
9838
|
size: f.size ? f.size : e.small,
|
|
9741
9839
|
placeholder: f.nullLabel,
|
|
9742
9840
|
type: "year",
|
|
9743
9841
|
"value-format": "yyyy",
|
|
9744
|
-
onChange: (
|
|
9842
|
+
onChange: (C) => i.searchGridData(f.controlType)
|
|
9745
9843
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "onChange"])) : createCommentVNode("", !0),
|
|
9746
9844
|
f.controlType === "month" ? (openBlock(), createBlock(p, {
|
|
9747
9845
|
key: 5,
|
|
9748
9846
|
modelValue: n.modelObj[f.propDbName],
|
|
9749
|
-
"onUpdate:modelValue": (
|
|
9847
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9750
9848
|
size: f.size ? f.size : e.small,
|
|
9751
9849
|
placeholder: f.nullLabel,
|
|
9752
9850
|
type: "month",
|
|
9753
9851
|
"value-format": "yyyy-MM",
|
|
9754
|
-
onChange: (
|
|
9852
|
+
onChange: (C) => i.searchGridData(f.controlType)
|
|
9755
9853
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "onChange"])) : createCommentVNode("", !0)
|
|
9756
9854
|
], 64))
|
|
9757
|
-
]))), 128))
|
|
9855
|
+
], 12, _hoisted_1$8))), 128))
|
|
9758
9856
|
]);
|
|
9759
9857
|
}
|
|
9760
9858
|
const listToolbarPage = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l]]), _sfc_main$k = {
|
|
@@ -9991,21 +10089,21 @@ function _sfc_render$j(e, t, o, s, n, i) {
|
|
|
9991
10089
|
dropdown: withCtx(() => [
|
|
9992
10090
|
createVNode(r, null, {
|
|
9993
10091
|
default: withCtx(() => [
|
|
9994
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (
|
|
9995
|
-
key:
|
|
10092
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (_, C) => (openBlock(), createElementBlock("span", {
|
|
10093
|
+
key: _.code + C
|
|
9996
10094
|
}, [
|
|
9997
10095
|
withDirectives((openBlock(), createBlock(a, {
|
|
9998
|
-
command:
|
|
10096
|
+
command: _.code,
|
|
9999
10097
|
disabled: e.preventReclick
|
|
10000
10098
|
}, {
|
|
10001
10099
|
default: withCtx(() => [
|
|
10002
|
-
createTextVNode(toDisplayString$1(
|
|
10100
|
+
createTextVNode(toDisplayString$1(_.label ? _.label : _.code === "search" ? e.$t("superPageMessage.searchButtonLabel") : ""), 1)
|
|
10003
10101
|
]),
|
|
10004
10102
|
_: 2
|
|
10005
10103
|
}, 1032, ["command", "disabled"])), [
|
|
10006
10104
|
[
|
|
10007
10105
|
m,
|
|
10008
|
-
o.permissionPrefix && o.permissionPrefix !== "" ? o.permissionPrefix +
|
|
10106
|
+
o.permissionPrefix && o.permissionPrefix !== "" ? o.permissionPrefix + _.code : ""
|
|
10009
10107
|
]
|
|
10010
10108
|
])
|
|
10011
10109
|
]))), 128))
|
|
@@ -10075,7 +10173,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10075
10173
|
}, judgeFlag = this.judgeDataNumber(button, ids, !1);
|
|
10076
10174
|
if (!judgeFlag)
|
|
10077
10175
|
return;
|
|
10078
|
-
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), button.autoSetValueData && (param.autoSetValueData = JSON.stringify(button.autoSetValueData)), button.logSetting && (param.logSettingText = button.logSetting), button.taskMap && (param.taskMap = button.taskMap), param.systemCode || (param.systemCode = system.code), formNoRuleCode && (param.formNoRuleCode = formNoRuleCode), importRuleCode && (param.importRuleCode = importRuleCode), this.additionalParamMap && (param.additionalParamMap = this.additionalParamMap), button.jumpPage) {
|
|
10176
|
+
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), button.autoSetValueData && (param.autoSetValueData = JSON.stringify(button.autoSetValueData)), button.logSetting && (param.logSettingText = button.logSetting), button.taskMap && (param.taskMap = button.taskMap), param.systemCode || (param.systemCode = system.code), formNoRuleCode && (param.formNoRuleCode = formNoRuleCode), importRuleCode && (param.importRuleCode = importRuleCode), this.additionalParamMap && (param.additionalParamMap = this.additionalParamMap), button.jumpPage && button.jumpPage.jumpPageUrl) {
|
|
10079
10177
|
let e, t;
|
|
10080
10178
|
ids && ids.length > 0 && (t = ids[0]), entities && entities.length > 0 && (e = entities[0]), this.jumpToPage(
|
|
10081
10179
|
button.jumpPage,
|
|
@@ -10304,7 +10402,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10304
10402
|
).then(() => {
|
|
10305
10403
|
let path = restfulApiPath;
|
|
10306
10404
|
system.standard === !1 && !path && (path = this.getBaseUrl(system) + "/dsc/commons/" + tableName), path = this.getRealRestApiPath(path, system);
|
|
10307
|
-
const isPermission = button.isPermission === void 0 || button.isPermission === "true", param = {
|
|
10405
|
+
const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission, param = {
|
|
10308
10406
|
ids,
|
|
10309
10407
|
functionCode: button.functionCode,
|
|
10310
10408
|
isPermission: isPermission + ""
|
|
@@ -10342,7 +10440,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10342
10440
|
!t && c.templateI18nLable && (t = c.templateI18nLable);
|
|
10343
10441
|
let u = "?1=1";
|
|
10344
10442
|
if (e && t && e !== "undefined" && t !== "undefined" && e !== "null" && t !== "null" ? u += "&fileName=" + encodeURI(e) + "&showName=" + encodeURI(t) : t && (u += "&showName=" + encodeURI(t)), i && i !== "" && (u += "&logSettingText=" + i), n && n.code && (u += "&systemCode=" + n.code), s && (u += "&importCode=" + s), a && (u += "&listCode=" + a), r && (u += "&entityName=" + r), l && (u += "&beanName=" + l), c && c.functionCode && (u += "&functionCode=" + c.functionCode), o && (u += "&tableName=" + o), c) {
|
|
10345
|
-
const m = c.isPermission === void 0 || c.isPermission === "true";
|
|
10443
|
+
const m = c.isPermission === void 0 || c.isPermission === "true" || c.isPermission;
|
|
10346
10444
|
u += "&isPermission=" + m;
|
|
10347
10445
|
}
|
|
10348
10446
|
const d = this.getBaseUrl(n);
|
|
@@ -10366,8 +10464,8 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10366
10464
|
JSON.stringify(this.additionalParamMap)
|
|
10367
10465
|
);
|
|
10368
10466
|
}
|
|
10369
|
-
const isPermission = button.isPermission === void 0 || button.isPermission === "true";
|
|
10370
|
-
param.append("isPermission", isPermission);
|
|
10467
|
+
const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission;
|
|
10468
|
+
param.append("isPermission", isPermission + "");
|
|
10371
10469
|
let path = restfulApiPath;
|
|
10372
10470
|
system.standard === !1 && !path && (path = this.getBaseUrl(system) + "/dsc/commons/import-data"), path = this.getRealRestApiPath(path, system);
|
|
10373
10471
|
let request;
|
|
@@ -10441,24 +10539,24 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10441
10539
|
type: "warning"
|
|
10442
10540
|
}
|
|
10443
10541
|
).then(() => {
|
|
10444
|
-
const
|
|
10542
|
+
const _ = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, C = {
|
|
10445
10543
|
ids: e,
|
|
10446
10544
|
formNoRuleCode: r,
|
|
10447
10545
|
tableName: s,
|
|
10448
10546
|
functionCode: a.functionCode,
|
|
10449
|
-
isPermission:
|
|
10547
|
+
isPermission: _ + ""
|
|
10450
10548
|
};
|
|
10451
|
-
this.judgeHeavyList && (
|
|
10549
|
+
this.judgeHeavyList && (C.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), a.dataConversionRule && (C.dataConversionRule = a.dataConversionRule.join(",")), a.autoSetValueData && (C.autoSetValueData = JSON.stringify(a.autoSetValueData)), a.logSetting && (C.logSettingText = a.logSetting), C.systemCode || (C.systemCode = t.code), a.taskMap && (C.taskMap = a.taskMap), n && (C.entityName = n), m && (C.beanName = m), u && (C.additionalParamMap = u), C.isWorkflowEntity = p;
|
|
10452
10550
|
let y;
|
|
10453
10551
|
a.code === "submit" ? y = "/dsc/commons/batch-submits" : a.code === "agree" ? y = "/dsc/commons/batch-approves" : a.code === "disagree" && (y = "/dsc/commons/batch-refuses");
|
|
10454
|
-
const
|
|
10552
|
+
const S = this.getSaveFormRequestByParam(
|
|
10455
10553
|
t,
|
|
10456
10554
|
o,
|
|
10457
|
-
|
|
10555
|
+
C,
|
|
10458
10556
|
i,
|
|
10459
10557
|
y
|
|
10460
10558
|
);
|
|
10461
|
-
|
|
10559
|
+
S && (a.loading = !0, S.then((P) => {
|
|
10462
10560
|
this.refreshMyList(a.successOperation), this.$message({
|
|
10463
10561
|
showClose: !0,
|
|
10464
10562
|
type: "success",
|
|
@@ -10474,8 +10572,8 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10474
10572
|
}).catch((P) => {
|
|
10475
10573
|
this.refreshMyList(a.successOperation), a.loading = !1;
|
|
10476
10574
|
}));
|
|
10477
|
-
}).catch((
|
|
10478
|
-
console.log(
|
|
10575
|
+
}).catch((_) => {
|
|
10576
|
+
console.log(_);
|
|
10479
10577
|
});
|
|
10480
10578
|
},
|
|
10481
10579
|
// 获得字段类型集合
|
|
@@ -10650,30 +10748,30 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10650
10748
|
})) : this.colSetting.options.listViewOrderProp && this.colSetting.options.listViewOrderMode && (f.initSortInfo = {
|
|
10651
10749
|
order: this.colSetting.options.listViewOrderMode
|
|
10652
10750
|
}, n ? f.initSortInfo.prop = this.colSetting.options.listViewOrderPropDbName : f.initSortInfo.prop = this.colSetting.options.listViewOrderProp), this.colSetting.options.isWithDataPermission && (f.isWithDataPermission = this.colSetting.options.isWithDataPermission);
|
|
10653
|
-
const
|
|
10654
|
-
if (
|
|
10655
|
-
const D =
|
|
10751
|
+
const _ = this.colSetting.options.listViewTreeTableSetting;
|
|
10752
|
+
if (_) {
|
|
10753
|
+
const D = _.parentProp;
|
|
10656
10754
|
let F, M;
|
|
10657
10755
|
if (D && D.indexOf("~~") > 0 && (F = D.substring(0, D.indexOf("~~")), M = D.substring(
|
|
10658
10756
|
D.indexOf("~~") + 2
|
|
10659
10757
|
)), n ? f.parentProp = M : f.parentProp = F, f.parentProp) {
|
|
10660
10758
|
f.extraParam.listViewTreeSetting = JSON.stringify(
|
|
10661
|
-
|
|
10759
|
+
_
|
|
10662
10760
|
);
|
|
10663
|
-
const $ =
|
|
10761
|
+
const $ = _.lazy;
|
|
10664
10762
|
$ == null ? f.lazy = !0 : f.lazy = $;
|
|
10665
|
-
const B =
|
|
10763
|
+
const B = _.defaultExpandAll;
|
|
10666
10764
|
B == null ? f.defaultExpandAll = !1 : f.defaultExpandAll = B, n && (f.subRowUrl = e + "/dsc/commons/list-subs");
|
|
10667
10765
|
}
|
|
10668
10766
|
}
|
|
10669
|
-
const
|
|
10670
|
-
|
|
10767
|
+
const C = getStoreInfo(this.pageCode, "_pagePreview");
|
|
10768
|
+
C !== void 0 && C === !0 && (f.loadBeforeSend = function() {
|
|
10671
10769
|
return !1;
|
|
10672
10770
|
});
|
|
10673
10771
|
let y = getStoreInfo(this.pageCode, "_pageDevMode");
|
|
10674
10772
|
y == null && (y = !1), f.pageDevMode = y;
|
|
10675
|
-
let
|
|
10676
|
-
this.colSetting.options && this.colSetting.options.formNoRuleCode && (
|
|
10773
|
+
let S = "";
|
|
10774
|
+
this.colSetting.options && this.colSetting.options.formNoRuleCode && (S = this.colSetting.options.formNoRuleCode);
|
|
10677
10775
|
let P;
|
|
10678
10776
|
this.colSetting.options && this.colSetting.options.listToolbarList && (P = this.colSetting.options.listToolbarList);
|
|
10679
10777
|
const E = this.colSetting.baseSetting.modelCode;
|
|
@@ -10718,11 +10816,11 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10718
10816
|
// 按钮的“自动设值”配置
|
|
10719
10817
|
dataConversionRule: null,
|
|
10720
10818
|
// 数据转换规则编码
|
|
10721
|
-
formNoRuleCode:
|
|
10819
|
+
formNoRuleCode: S,
|
|
10722
10820
|
// 表单编号规则
|
|
10723
10821
|
importRuleCode: I,
|
|
10724
10822
|
// 导入编码
|
|
10725
|
-
isPreview:
|
|
10823
|
+
isPreview: C,
|
|
10726
10824
|
// 是否是预览
|
|
10727
10825
|
button: null,
|
|
10728
10826
|
// 点击的当前按钮
|
|
@@ -11494,7 +11592,7 @@ function _sfc_render$i(e, t, o, s, n, i) {
|
|
|
11494
11592
|
}, null, 8, ["preview", "dev-mode", "jump-page-setting", "onUpdateValue", "onClose"])) : createCommentVNode("", !0)
|
|
11495
11593
|
])) : createCommentVNode("", !0);
|
|
11496
11594
|
}
|
|
11497
|
-
const ListPage = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]),
|
|
11595
|
+
const ListPage = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]), formHead_vue_vue_type_style_index_0_scoped_37191daf_lang = "", _sfc_main$h = {
|
|
11498
11596
|
name: "FormHead",
|
|
11499
11597
|
components: {},
|
|
11500
11598
|
props: {
|
|
@@ -11533,7 +11631,7 @@ function _sfc_render$h(e, t, o, s, n, i) {
|
|
|
11533
11631
|
o.formNo ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString$1(o.formNoLabel && o.formNoLabel !== null && o.formNoLabel.trim() !== "" ? o.formNoLabel + ":" : e.$t("superPage.formNo")) + toDisplayString$1(o.formNo), 1)) : createCommentVNode("", !0)
|
|
11534
11632
|
], 4);
|
|
11535
11633
|
}
|
|
11536
|
-
const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
11634
|
+
const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-37191daf"]]), buttonEvents$3 = {
|
|
11537
11635
|
// 按钮组中各按钮的操作
|
|
11538
11636
|
clickFormButton(button, system, formCode, formVersion, tableName, formData, entityName, myJsContent, formNoRuleCode, ids, isBatchProcessing, needDeleteFileUuidS, additionalParamMap, beanName) {
|
|
11539
11637
|
if (typeof button.isExtension < "u" && button.isExtension === !0) {
|
|
@@ -11546,7 +11644,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11546
11644
|
entityName,
|
|
11547
11645
|
beanName
|
|
11548
11646
|
};
|
|
11549
|
-
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), button.logSetting && (param.logSettingText = button.logSetting), button && button.taskMap && (param.button = button.taskMap), param.systemCode || (param.systemCode = system.code), additionalParamMap && (param.additionalParamMap = additionalParamMap), button.dataConversionRule && (param.dataConversionRule = button.dataConversionRule.join(",")), button.autoSetValueData && (param.autoSetValueData = JSON.stringify(button.autoSetValueData)), needDeleteFileUuidS && (param.needDeleteFileUuid = needDeleteFileUuidS), button.jumpPage) {
|
|
11647
|
+
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), button.logSetting && (param.logSettingText = button.logSetting), button && button.taskMap && (param.button = button.taskMap), param.systemCode || (param.systemCode = system.code), additionalParamMap && (param.additionalParamMap = additionalParamMap), button.dataConversionRule && (param.dataConversionRule = button.dataConversionRule.join(",")), button.autoSetValueData && (param.autoSetValueData = JSON.stringify(button.autoSetValueData)), needDeleteFileUuidS && (param.needDeleteFileUuid = needDeleteFileUuidS), button.jumpPage && button.jumpPage.jumpPageUrl) {
|
|
11550
11648
|
let e;
|
|
11551
11649
|
formData && (e = formData.id || formData.ID), this.jumpToPage(button.jumpPage, system, e, formData, additionalParamMap, null, button.code, this.pageCode);
|
|
11552
11650
|
return;
|
|
@@ -11691,10 +11789,10 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11691
11789
|
this.reviewButton(), this.$message.success(this.$t(o));
|
|
11692
11790
|
},
|
|
11693
11791
|
// 表单页面(非流程)-提交/同意/不同意
|
|
11694
|
-
getSubmitFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
11695
|
-
const
|
|
11792
|
+
getSubmitFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _) {
|
|
11793
|
+
const C = "superPageMessage.whetherToConfirm" + this.upperFirstCase(c);
|
|
11696
11794
|
this.$confirm(
|
|
11697
|
-
this.$t(
|
|
11795
|
+
this.$t(C, { name: a.label }),
|
|
11698
11796
|
this.$t("superPageMessage.tips"),
|
|
11699
11797
|
{
|
|
11700
11798
|
confirmButtonText: this.$t("superPageMessage.sure"),
|
|
@@ -11702,18 +11800,18 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11702
11800
|
type: "warning"
|
|
11703
11801
|
}
|
|
11704
11802
|
).then(() => {
|
|
11705
|
-
const y = a.isPermission === void 0 || a.isPermission === "true",
|
|
11803
|
+
const y = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, S = {
|
|
11706
11804
|
entity: e,
|
|
11707
11805
|
tableName: s,
|
|
11708
11806
|
formNoRuleCode: r,
|
|
11709
11807
|
functionCode: a.functionCode,
|
|
11710
11808
|
isPermission: y + ""
|
|
11711
11809
|
};
|
|
11712
|
-
this.judgeHeavyList && (
|
|
11810
|
+
this.judgeHeavyList && (S.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), a.dataConversionRule && (S.dataConversionRule = a.dataConversionRule.join(",")), a.autoSetValueData && (S.autoSetValueData = JSON.stringify(a.autoSetValueData)), a.logSetting && (S.logSettingText = a.logSetting), a.taskMap && (S.taskMap = a.taskMap), S.systemCode || (S.systemCode = t.code), n && (S.entityName = n), f && (S.beanName = f), u && u.length > 0 && (S.ids = u), m && (S.needDeleteFileUuidS = m), p && (S.additionalParamMap = p), _ != null && (S.isWorkflowEntity = _), a.successOperation && a.successOperation === "noOperation" && (S.unControlVersion = !0), S.isBatchProcessing = d;
|
|
11713
11811
|
const P = this.getSaveFormRequestByParam(
|
|
11714
11812
|
t,
|
|
11715
11813
|
o,
|
|
11716
|
-
|
|
11814
|
+
S,
|
|
11717
11815
|
i,
|
|
11718
11816
|
l
|
|
11719
11817
|
);
|
|
@@ -11791,7 +11889,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11791
11889
|
s = t.templateUUID, n = t.templateShowPath;
|
|
11792
11890
|
let i = "?1=1";
|
|
11793
11891
|
if (t && t.functionCode && (i += "&functionCode=" + t.functionCode), o && (i += "&tableName=" + o), t) {
|
|
11794
|
-
const r = t.isPermission === void 0 || t.isPermission === "true";
|
|
11892
|
+
const r = t.isPermission === void 0 || t.isPermission === "true" || t.isPermission;
|
|
11795
11893
|
i += "&isPermission=" + r;
|
|
11796
11894
|
}
|
|
11797
11895
|
s && n && s !== "undefined" && n !== "undefined" && s !== "null" && n !== "null" && (i += "&fileName=" + encodeURI(s) + "&showName=" + encodeURI(n));
|
|
@@ -11846,19 +11944,19 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11846
11944
|
pageHeight: m
|
|
11847
11945
|
};
|
|
11848
11946
|
this.isViewDetail() && (p.fieldPermissions = [{ name: "all_fields", canEdit: !1 }]), p.devMode = r;
|
|
11849
|
-
let
|
|
11850
|
-
this.colSetting.baseSetting.modelVersion && (
|
|
11851
|
-
const
|
|
11947
|
+
let _ = null;
|
|
11948
|
+
this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
|
|
11949
|
+
const C = this.colSetting.baseSetting.modelCode;
|
|
11852
11950
|
let y = [];
|
|
11853
|
-
const
|
|
11854
|
-
|
|
11951
|
+
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
11952
|
+
S && (y = S.formEvents), p.events = this.packageFormEvents(C);
|
|
11855
11953
|
let P = getStoreInfo(
|
|
11856
11954
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
11857
11955
|
"_formButtonPosition"
|
|
11858
11956
|
);
|
|
11859
11957
|
return P || (P = "topLeft"), {
|
|
11860
|
-
formViewCode:
|
|
11861
|
-
formViewVersion:
|
|
11958
|
+
formViewCode: C,
|
|
11959
|
+
formViewVersion: _,
|
|
11862
11960
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
11863
11961
|
entityName: e,
|
|
11864
11962
|
beanName: t,
|
|
@@ -11908,7 +12006,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11908
12006
|
// 是否是表单内部控件(超链接、按钮等)显示弹框
|
|
11909
12007
|
jumpPageSetting: null,
|
|
11910
12008
|
// 弹框页面的设置信息
|
|
11911
|
-
customEvents:
|
|
12009
|
+
customEvents: S ? S.customEvents : null,
|
|
11912
12010
|
isShowBuuton: !0,
|
|
11913
12011
|
formButtonPosition: P,
|
|
11914
12012
|
pageType: "form",
|
|
@@ -12167,6 +12265,7 @@ function _sfc_render$g(e, t, o, s, n, i) {
|
|
|
12167
12265
|
ref: "superForm",
|
|
12168
12266
|
"form-view-code": n.formViewCode,
|
|
12169
12267
|
"form-view-version": n.formViewVersion,
|
|
12268
|
+
"path-query": n.pathQuery,
|
|
12170
12269
|
"is-page-info": n.isPreview ? n.isPreview : n.pageDevMode ? n.pageDevMode : !1,
|
|
12171
12270
|
"tab-code": o.tabCode,
|
|
12172
12271
|
"form-button-position": n.formButtonPosition,
|
|
@@ -12176,7 +12275,7 @@ function _sfc_render$g(e, t, o, s, n, i) {
|
|
|
12176
12275
|
onShouButton: e.reviewButton,
|
|
12177
12276
|
onChangeGridRowsPerPage: e.changeSubTablePageSize,
|
|
12178
12277
|
onOpenFormDialog: e.popupToPage
|
|
12179
|
-
}, null, 8, ["form-view-code", "form-view-version", "is-page-info", "tab-code", "form-button-position", "value", "options", "onUpdateValue", "onShouButton", "onChangeGridRowsPerPage", "onOpenFormDialog"]))
|
|
12278
|
+
}, null, 8, ["form-view-code", "form-view-version", "path-query", "is-page-info", "tab-code", "form-button-position", "value", "options", "onUpdateValue", "onShouButton", "onChangeGridRowsPerPage", "onOpenFormDialog"]))
|
|
12180
12279
|
], 64)) : createCommentVNode("", !0),
|
|
12181
12280
|
n.isShowPageDialog || n.isShowContentPageDialog ? (openBlock(), createBlock(c, {
|
|
12182
12281
|
key: 1,
|
|
@@ -12208,7 +12307,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12208
12307
|
beanName,
|
|
12209
12308
|
isWorkflowEntity: !0
|
|
12210
12309
|
};
|
|
12211
|
-
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), dataConversionRule && (param.dataConversionRule = dataConversionRule.join(",")), autoSetValueData && (param.autoSetValueData = JSON.stringify(autoSetValueData)), button && button.taskMap && (param.taskMap = button.taskMap), needDeleteFileUuid && (param.needDeleteFileUuid = needDeleteFileUuid), button.jumpPage) {
|
|
12310
|
+
if (this.judgeHeavyList && (param.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), dataConversionRule && (param.dataConversionRule = dataConversionRule.join(",")), autoSetValueData && (param.autoSetValueData = JSON.stringify(autoSetValueData)), button && button.taskMap && (param.taskMap = button.taskMap), needDeleteFileUuid && (param.needDeleteFileUuid = needDeleteFileUuid), button.jumpPage && button.jumpPage.jumpPageUrl) {
|
|
12212
12311
|
let e;
|
|
12213
12312
|
model && (e = model.id || model.ID), this.jumpToPage(
|
|
12214
12313
|
button.jumpPage,
|
|
@@ -12248,7 +12347,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12248
12347
|
}
|
|
12249
12348
|
},
|
|
12250
12349
|
// 按钮组中各按钮的操作
|
|
12251
|
-
clickWorflowButton(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
12350
|
+
clickWorflowButton(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, P, E, I, N, k) {
|
|
12252
12351
|
if (e === "startInstance" || e === "update")
|
|
12253
12352
|
this.startInstance(
|
|
12254
12353
|
t,
|
|
@@ -12263,8 +12362,8 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12263
12362
|
d,
|
|
12264
12363
|
m,
|
|
12265
12364
|
p,
|
|
12266
|
-
|
|
12267
|
-
|
|
12365
|
+
_,
|
|
12366
|
+
C,
|
|
12268
12367
|
e,
|
|
12269
12368
|
P,
|
|
12270
12369
|
E,
|
|
@@ -12286,8 +12385,8 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12286
12385
|
m,
|
|
12287
12386
|
p,
|
|
12288
12387
|
f,
|
|
12289
|
-
|
|
12290
|
-
|
|
12388
|
+
_,
|
|
12389
|
+
C,
|
|
12291
12390
|
e,
|
|
12292
12391
|
P,
|
|
12293
12392
|
E,
|
|
@@ -12307,8 +12406,8 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12307
12406
|
m,
|
|
12308
12407
|
p,
|
|
12309
12408
|
f,
|
|
12310
|
-
|
|
12311
|
-
|
|
12409
|
+
_,
|
|
12410
|
+
C,
|
|
12312
12411
|
e,
|
|
12313
12412
|
P,
|
|
12314
12413
|
E,
|
|
@@ -12325,7 +12424,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12325
12424
|
c,
|
|
12326
12425
|
u,
|
|
12327
12426
|
m,
|
|
12328
|
-
|
|
12427
|
+
C,
|
|
12329
12428
|
e,
|
|
12330
12429
|
P,
|
|
12331
12430
|
E,
|
|
@@ -12341,7 +12440,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12341
12440
|
c,
|
|
12342
12441
|
u,
|
|
12343
12442
|
m,
|
|
12344
|
-
|
|
12443
|
+
C,
|
|
12345
12444
|
e,
|
|
12346
12445
|
P,
|
|
12347
12446
|
E,
|
|
@@ -12357,7 +12456,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12357
12456
|
c,
|
|
12358
12457
|
u,
|
|
12359
12458
|
m,
|
|
12360
|
-
|
|
12459
|
+
C,
|
|
12361
12460
|
e,
|
|
12362
12461
|
P,
|
|
12363
12462
|
E,
|
|
@@ -12381,12 +12480,12 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12381
12480
|
d,
|
|
12382
12481
|
m,
|
|
12383
12482
|
p,
|
|
12384
|
-
|
|
12483
|
+
_,
|
|
12385
12484
|
D,
|
|
12386
|
-
|
|
12485
|
+
C,
|
|
12387
12486
|
F,
|
|
12388
12487
|
y,
|
|
12389
|
-
|
|
12488
|
+
S,
|
|
12390
12489
|
P,
|
|
12391
12490
|
E,
|
|
12392
12491
|
I,
|
|
@@ -12395,7 +12494,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12395
12494
|
);
|
|
12396
12495
|
}
|
|
12397
12496
|
} else
|
|
12398
|
-
e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, s,
|
|
12497
|
+
e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, s, C, N);
|
|
12399
12498
|
},
|
|
12400
12499
|
// 发起流程。保存按钮的操作
|
|
12401
12500
|
startInstance(system, tableName, model, definitionId, emailTemplateCode, formViewCode, formViewVersion, myEntityName, myJsContent, formNoRuleCode, successOperation, dataConversionRule, autoSetValueData, logSettingText, buttonType, isNeedValueMapping, taskMap, needDeleteFileUuid, beanName) {
|
|
@@ -12894,7 +12993,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12894
12993
|
);
|
|
12895
12994
|
},
|
|
12896
12995
|
// 流程表单页面(非流程处理的)-提交/同意/不同意
|
|
12897
|
-
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
12996
|
+
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, P, E) {
|
|
12898
12997
|
let I;
|
|
12899
12998
|
e.standard === !1 && (I = this.getBaseUrl(e) + d), this.transactTask(
|
|
12900
12999
|
e,
|
|
@@ -12916,10 +13015,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12916
13015
|
m,
|
|
12917
13016
|
p,
|
|
12918
13017
|
f,
|
|
12919
|
-
|
|
12920
|
-
S,
|
|
12921
|
-
y,
|
|
13018
|
+
_,
|
|
12922
13019
|
C,
|
|
13020
|
+
y,
|
|
13021
|
+
S,
|
|
12923
13022
|
P,
|
|
12924
13023
|
E
|
|
12925
13024
|
);
|
|
@@ -13141,7 +13240,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
13141
13240
|
s = t.templateUUID, n = t.templateShowPath;
|
|
13142
13241
|
let i = "?1=1";
|
|
13143
13242
|
if (t && t.functionCode && (i += "&functionCode=" + t.functionCode), o && (i += "&tableName=" + o), s && n && s !== "undefined" && n !== "undefined" && s !== "null" && n !== "null" && (i += "&fileName=" + encodeURI(s) + "&showName=" + encodeURI(n)), t) {
|
|
13144
|
-
const r = t.isPermission === void 0 || t.isPermission === "true";
|
|
13243
|
+
const r = t.isPermission === void 0 || t.isPermission === "true" || t.isPermission;
|
|
13145
13244
|
i += "&isPermission=" + r;
|
|
13146
13245
|
}
|
|
13147
13246
|
const a = this.getBaseUrl(e);
|
|
@@ -13424,19 +13523,19 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13424
13523
|
p === void 0 && (p = !1);
|
|
13425
13524
|
let f = getStoreInfo(this.pageCode, "_pageDevMode");
|
|
13426
13525
|
f == null && (f = !1), d.devMode = f;
|
|
13427
|
-
let
|
|
13428
|
-
this.colSetting.baseSetting.modelVersion && (
|
|
13429
|
-
const
|
|
13526
|
+
let _ = null;
|
|
13527
|
+
this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
|
|
13528
|
+
const C = this.colSetting.baseSetting.modelCode;
|
|
13430
13529
|
let y = [];
|
|
13431
|
-
const
|
|
13432
|
-
|
|
13530
|
+
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
13531
|
+
S && (y = S.formEvents), d.events = this.packageFormEvents(C);
|
|
13433
13532
|
let P = getStoreInfo(
|
|
13434
13533
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
13435
13534
|
"_formButtonPosition"
|
|
13436
13535
|
);
|
|
13437
13536
|
return P || (P = "topLeft"), {
|
|
13438
|
-
formViewCode:
|
|
13439
|
-
formViewVersion:
|
|
13537
|
+
formViewCode: C,
|
|
13538
|
+
formViewVersion: _,
|
|
13440
13539
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
13441
13540
|
entityName: o,
|
|
13442
13541
|
beanName: s,
|
|
@@ -13533,7 +13632,7 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13533
13632
|
// 关闭弹框时是否需要字段映射
|
|
13534
13633
|
firstNodeInfo: null,
|
|
13535
13634
|
// 第一节点的信息
|
|
13536
|
-
customEvents:
|
|
13635
|
+
customEvents: S ? S.customEvents : null,
|
|
13537
13636
|
isShowBuuton: !1,
|
|
13538
13637
|
formButtonPosition: P,
|
|
13539
13638
|
// 表单按钮显示位置,
|
|
@@ -13962,11 +14061,11 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13962
14061
|
u.forEach((m) => {
|
|
13963
14062
|
if (m === "__subRules") {
|
|
13964
14063
|
const p = d.__subRules;
|
|
13965
|
-
Object.keys(p).forEach((
|
|
13966
|
-
l.subRules || (l.subRules = {}), l.subRules[
|
|
13967
|
-
l.subRules[
|
|
13968
|
-
p[
|
|
13969
|
-
) : l.subRules[
|
|
14064
|
+
Object.keys(p).forEach((_) => {
|
|
14065
|
+
l.subRules || (l.subRules = {}), l.subRules[_] ? Object.assign(
|
|
14066
|
+
l.subRules[_],
|
|
14067
|
+
p[_]
|
|
14068
|
+
) : l.subRules[_] = p[_];
|
|
13970
14069
|
});
|
|
13971
14070
|
} else
|
|
13972
14071
|
l[m] = d[m];
|
|
@@ -14861,7 +14960,7 @@ function _sfc_render$8(e, t, o, s, n, i) {
|
|
|
14861
14960
|
plain: o.col.options.buttonPlain ? o.col.options.buttonPlain : !1,
|
|
14862
14961
|
round: o.col.options.buttonRound ? o.col.options.buttonRound : !1,
|
|
14863
14962
|
circle: o.col.options.buttonCircle ? o.col.options.buttonCircle : !1,
|
|
14864
|
-
onClick: t[0] || (t[0] = (
|
|
14963
|
+
onClick: t[0] || (t[0] = (_) => e.clickButtonEvent(o.col, n.system))
|
|
14865
14964
|
}, {
|
|
14866
14965
|
default: withCtx(() => [
|
|
14867
14966
|
createTextVNode(toDisplayString$1(e.$t(o.col.baseSetting.label)), 1)
|
|
@@ -14936,7 +15035,7 @@ function _sfc_render$8(e, t, o, s, n, i) {
|
|
|
14936
15035
|
}, null, 8, ["label"])) : createCommentVNode("", !0)
|
|
14937
15036
|
], 4);
|
|
14938
15037
|
}
|
|
14939
|
-
const WidgetColPage = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]),
|
|
15038
|
+
const WidgetColPage = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]), widgetSubTabPanePage_vue_vue_type_style_index_0_scoped_1218094b_lang = "", _sfc_main$7 = {
|
|
14940
15039
|
name: "WidgetSubTabPage",
|
|
14941
15040
|
components: {
|
|
14942
15041
|
WidgetColPage
|
|
@@ -15031,7 +15130,7 @@ function _sfc_render$7(e, t, o, s, n, i) {
|
|
|
15031
15130
|
}, 1024))), 128)) : createCommentVNode("", !0)
|
|
15032
15131
|
]);
|
|
15033
15132
|
}
|
|
15034
|
-
const WidgetSubTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-
|
|
15133
|
+
const WidgetSubTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-1218094b"]]), _sfc_main$6 = {
|
|
15035
15134
|
name: "SubTabPage",
|
|
15036
15135
|
components: {
|
|
15037
15136
|
WidgetSubTabPanePage
|
|
@@ -15112,7 +15211,7 @@ function _sfc_render$6(e, t, o, s, n, i) {
|
|
|
15112
15211
|
}, 8, ["modelValue", "onTabClick"])
|
|
15113
15212
|
]);
|
|
15114
15213
|
}
|
|
15115
|
-
const SubTabPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]),
|
|
15214
|
+
const SubTabPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]), widgetTabPanePage_vue_vue_type_style_index_0_scoped_ffc42267_lang = "", _sfc_main$5 = {
|
|
15116
15215
|
name: "WidgetTabPage",
|
|
15117
15216
|
components: {
|
|
15118
15217
|
SubTabPage,
|
|
@@ -15225,7 +15324,7 @@ function _sfc_render$5(e, t, o, s, n, i) {
|
|
|
15225
15324
|
}, 1024))), 128)) : createCommentVNode("", !0)
|
|
15226
15325
|
]);
|
|
15227
15326
|
}
|
|
15228
|
-
const WidgetTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
15327
|
+
const WidgetTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-ffc42267"]]), _sfc_main$4 = {
|
|
15229
15328
|
name: "TabPage",
|
|
15230
15329
|
components: {
|
|
15231
15330
|
WidgetTabPanePage
|
|
@@ -15638,7 +15737,7 @@ const TabPage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render
|
|
|
15638
15737
|
};
|
|
15639
15738
|
let a;
|
|
15640
15739
|
const r = window.$vueApp.config.globalProperties.baseURL + "/dsc/commons/exportChart";
|
|
15641
|
-
axios$1.defaults.headers.common.Authorization =
|
|
15740
|
+
axios$1.defaults.headers.common.Authorization = Cookies.get("JWT"), a = axios$1.post(r, i, { responseType: "blob" }), a.then((l) => {
|
|
15642
15741
|
const c = document.createElement("a");
|
|
15643
15742
|
c.style.display = "none", c.href = URL.createObjectURL(l.data), c.setAttribute("download", s + ".xlsx"), document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
15644
15743
|
});
|
|
@@ -15721,9 +15820,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15721
15820
|
n.isTabChartView ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
15722
15821
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15723
15822
|
default: withCtx(() => [
|
|
15724
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15823
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15725
15824
|
!n.chartQuerySetting || n.isTabView || n.chartQuerySetting && n.chartQuerySetting.baseSetting.modelCode !== f.baseSetting.modelCode ? (openBlock(), createBlock(r, {
|
|
15726
|
-
key:
|
|
15825
|
+
key: _,
|
|
15727
15826
|
span: f.options && f.options.colWidth ? f.options.colWidth : 24,
|
|
15728
15827
|
class: normalizeClass({
|
|
15729
15828
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter",
|
|
@@ -15755,9 +15854,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15755
15854
|
}, [
|
|
15756
15855
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15757
15856
|
default: withCtx(() => [
|
|
15758
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15857
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15759
15858
|
n.isListView ? (openBlock(), createBlock(r, {
|
|
15760
|
-
key:
|
|
15859
|
+
key: _,
|
|
15761
15860
|
span: i.getMyColWidth(f),
|
|
15762
15861
|
class: normalizeClass({
|
|
15763
15862
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|
|
@@ -15792,9 +15891,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15792
15891
|
gutter: 16
|
|
15793
15892
|
}, {
|
|
15794
15893
|
default: withCtx(() => [
|
|
15795
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15894
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15796
15895
|
n.isChartView && f.baseSetting.type !== "chartQuery" ? (openBlock(), createBlock(r, {
|
|
15797
|
-
key:
|
|
15896
|
+
key: _,
|
|
15798
15897
|
span: i.getMyColWidth(f),
|
|
15799
15898
|
class: normalizeClass({
|
|
15800
15899
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|
|
@@ -15823,9 +15922,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15823
15922
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
15824
15923
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15825
15924
|
default: withCtx(() => [
|
|
15826
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15925
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15827
15926
|
!n.chartQuerySetting || n.isTabView || n.chartQuerySetting && n.chartQuerySetting.baseSetting.modelCode !== f.baseSetting.modelCode ? (openBlock(), createBlock(r, {
|
|
15828
|
-
key:
|
|
15927
|
+
key: _,
|
|
15829
15928
|
span: f.options && f.options.colWidth ? f.options.colWidth : 24,
|
|
15830
15929
|
class: normalizeClass({
|
|
15831
15930
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|