super-pages 0.0.22-up → 0.0.24-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/lib/super-pages.js +883 -780
- package/lib/super-pages.umd.cjs +12 -6
- package/package.json +5 -5
- package/packages/super-page/src/chart-page.vue +1 -1
- package/packages/super-page/src/common-form-page.vue +3 -2
- 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/util/ListButtonEvent.js +6 -6
- package/packages/super-page/src/util/formButtonEvent.js +3 -3
- package/packages/super-page/src/util/util.js +6 -6
- package/packages/super-page/src/util/workflowButtonEvent.js +2 -2
package/lib/super-pages.js
CHANGED
|
@@ -985,11 +985,11 @@ 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
|
-
function
|
|
992
|
+
function w() {
|
|
993
993
|
return a(o + i) && i++, i++, t[o + i];
|
|
994
994
|
}
|
|
995
995
|
function E() {
|
|
@@ -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,11 +1009,11 @@ 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:
|
|
1016
|
-
peek:
|
|
1015
|
+
next: S,
|
|
1016
|
+
peek: w,
|
|
1017
1017
|
reset: E,
|
|
1018
1018
|
resetPeek: I,
|
|
1019
1019
|
skipToPeek: N
|
|
@@ -1034,137 +1034,137 @@ 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, v, ...O) {
|
|
1038
1038
|
const R = c();
|
|
1039
|
-
if (g.column +=
|
|
1040
|
-
const L = o ? createLocation(R.startLoc, g) : null, G = createCompileError(
|
|
1039
|
+
if (g.column += v, g.offset += v, u) {
|
|
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, v) {
|
|
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)), v != null && (O.value = v), 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
|
|
1085
|
-
const { currentType:
|
|
1086
|
-
if (
|
|
1084
|
+
function w(b, g) {
|
|
1085
|
+
const { currentType: v } = g;
|
|
1086
|
+
if (v !== 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(
|
|
1093
|
-
const { currentType:
|
|
1094
|
-
if (
|
|
1092
|
+
function E(b, g) {
|
|
1093
|
+
const { currentType: v } = g;
|
|
1094
|
+
if (v !== 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(
|
|
1101
|
-
const { currentType:
|
|
1102
|
-
if (
|
|
1100
|
+
function I(b, g) {
|
|
1101
|
+
const { currentType: v } = g;
|
|
1102
|
+
if (v !== 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(
|
|
1109
|
-
const { currentType:
|
|
1110
|
-
if (
|
|
1108
|
+
function N(b, g) {
|
|
1109
|
+
const { currentType: v } = g;
|
|
1110
|
+
if (v !== 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(
|
|
1117
|
-
const { currentType:
|
|
1118
|
-
if (
|
|
1116
|
+
function k(b, g) {
|
|
1117
|
+
const { currentType: v } = g;
|
|
1118
|
+
if (v !== 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(
|
|
1125
|
-
const { currentType:
|
|
1126
|
-
if (!(
|
|
1124
|
+
function D(b, g) {
|
|
1125
|
+
const { currentType: v } = g;
|
|
1126
|
+
if (!(v === 8 || v === 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(
|
|
1133
|
-
const { currentType:
|
|
1134
|
-
if (
|
|
1132
|
+
function F(b, g) {
|
|
1133
|
+
const { currentType: v } = g;
|
|
1134
|
+
if (v !== 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
|
|
1150
|
-
isModulo:
|
|
1147
|
+
function $(b) {
|
|
1148
|
+
const g = _(b), v = b.currentPeek() === "%" && b.peek() === "{";
|
|
1149
|
+
return b.resetPeek(), {
|
|
1150
|
+
isModulo: v,
|
|
1151
1151
|
hasSpace: g.length > 0
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
function B(
|
|
1155
|
-
const
|
|
1156
|
-
const H =
|
|
1157
|
-
return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (
|
|
1158
|
-
}, O =
|
|
1159
|
-
return g &&
|
|
1154
|
+
function B(b, g = !0) {
|
|
1155
|
+
const v = (R = !1, L = "", G = !1) => {
|
|
1156
|
+
const H = b.currentPeek();
|
|
1157
|
+
return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (b.peek(), v(R, "%", !0)) : H === "|" ? L === "%" || G ? !0 : !(L === CHAR_SP || L === CHAR_LF) : H === CHAR_SP ? (b.peek(), v(!0, CHAR_SP, G)) : H === CHAR_LF ? (b.peek(), v(!0, CHAR_LF, G)) : !0;
|
|
1158
|
+
}, O = v();
|
|
1159
|
+
return g && b.resetPeek(), O;
|
|
1160
1160
|
}
|
|
1161
|
-
function U(
|
|
1162
|
-
const
|
|
1163
|
-
return
|
|
1161
|
+
function U(b, g) {
|
|
1162
|
+
const v = b.currentChar();
|
|
1163
|
+
return v === EOF ? EOF : g(v) ? (b.next(), v) : null;
|
|
1164
1164
|
}
|
|
1165
|
-
function X(
|
|
1166
|
-
return U(
|
|
1167
|
-
const O =
|
|
1165
|
+
function X(b) {
|
|
1166
|
+
return U(b, (v) => {
|
|
1167
|
+
const O = v.charCodeAt(0);
|
|
1168
1168
|
return O >= 97 && O <= 122 || // a-z
|
|
1169
1169
|
O >= 65 && O <= 90 || // A-Z
|
|
1170
1170
|
O >= 48 && O <= 57 || // 0-9
|
|
@@ -1172,236 +1172,236 @@ function createTokenizer(e, t = {}) {
|
|
|
1172
1172
|
O === 36;
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
function ne(
|
|
1176
|
-
return U(
|
|
1177
|
-
const O =
|
|
1175
|
+
function ne(b) {
|
|
1176
|
+
return U(b, (v) => {
|
|
1177
|
+
const O = v.charCodeAt(0);
|
|
1178
1178
|
return O >= 48 && O <= 57;
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
function W(
|
|
1182
|
-
return U(
|
|
1183
|
-
const O =
|
|
1181
|
+
function W(b) {
|
|
1182
|
+
return U(b, (v) => {
|
|
1183
|
+
const O = v.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(
|
|
1190
|
-
let g = "",
|
|
1191
|
-
for (; g = ne(
|
|
1192
|
-
|
|
1193
|
-
return
|
|
1189
|
+
function Z(b) {
|
|
1190
|
+
let g = "", v = "";
|
|
1191
|
+
for (; g = ne(b); )
|
|
1192
|
+
v += g;
|
|
1193
|
+
return v;
|
|
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
|
|
1204
|
-
if (
|
|
1203
|
+
const v = b.currentChar();
|
|
1204
|
+
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
1205
1205
|
break;
|
|
1206
|
-
if (
|
|
1207
|
-
if (B(
|
|
1208
|
-
g +=
|
|
1206
|
+
if (v === "%")
|
|
1207
|
+
if (B(b))
|
|
1208
|
+
g += v, b.next();
|
|
1209
1209
|
else
|
|
1210
1210
|
break;
|
|
1211
|
-
else if (
|
|
1212
|
-
if (B(
|
|
1213
|
-
g +=
|
|
1211
|
+
else if (v === CHAR_SP || v === CHAR_LF)
|
|
1212
|
+
if (B(b))
|
|
1213
|
+
g += v, b.next();
|
|
1214
1214
|
else {
|
|
1215
|
-
if (M(
|
|
1215
|
+
if (M(b))
|
|
1216
1216
|
break;
|
|
1217
|
-
g +=
|
|
1217
|
+
g += v, b.next();
|
|
1218
1218
|
}
|
|
1219
1219
|
else
|
|
1220
|
-
g +=
|
|
1220
|
+
g += v, b.next();
|
|
1221
1221
|
}
|
|
1222
1222
|
return g;
|
|
1223
1223
|
}
|
|
1224
|
-
function j(
|
|
1225
|
-
|
|
1226
|
-
let g = "",
|
|
1227
|
-
for (; g = X(
|
|
1228
|
-
|
|
1229
|
-
return
|
|
1224
|
+
function j(b) {
|
|
1225
|
+
C(b);
|
|
1226
|
+
let g = "", v = "";
|
|
1227
|
+
for (; g = X(b); )
|
|
1228
|
+
v += g;
|
|
1229
|
+
return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), v;
|
|
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
|
-
|
|
1238
|
-
let g = "",
|
|
1236
|
+
function ae(b) {
|
|
1237
|
+
C(b), f(b, "'");
|
|
1238
|
+
let g = "", v = "";
|
|
1239
1239
|
const O = (L) => L !== LITERAL_DELIMITER && L !== CHAR_LF;
|
|
1240
|
-
for (; g = U(
|
|
1241
|
-
g === "\\" ?
|
|
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 === "\\" ? v += re(b) : v += 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, "'")), v) : (f(b, "'"), v);
|
|
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, v) {
|
|
1260
|
+
f(b, g);
|
|
1261
1261
|
let O = "";
|
|
1262
|
-
for (let R = 0; R <
|
|
1263
|
-
const L = W(
|
|
1262
|
+
for (let R = 0; R < v; R++) {
|
|
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
|
-
|
|
1274
|
-
let g = "",
|
|
1272
|
+
function le(b) {
|
|
1273
|
+
C(b);
|
|
1274
|
+
let g = "", v = "";
|
|
1275
1275
|
const O = (R) => R !== "{" && R !== "}" && R !== CHAR_SP && R !== CHAR_LF;
|
|
1276
|
-
for (; g = U(
|
|
1277
|
-
|
|
1278
|
-
return
|
|
1279
|
-
}
|
|
1280
|
-
function de(
|
|
1281
|
-
let g = "",
|
|
1282
|
-
for (; g = X(
|
|
1283
|
-
|
|
1284
|
-
return
|
|
1285
|
-
}
|
|
1286
|
-
function ce(
|
|
1287
|
-
const g = (
|
|
1288
|
-
const R =
|
|
1289
|
-
return R === "{" || R === "%" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === CHAR_SP ? O : R === CHAR_LF || R === DOT ? (O += R,
|
|
1276
|
+
for (; g = U(b, O); )
|
|
1277
|
+
v += g;
|
|
1278
|
+
return v;
|
|
1279
|
+
}
|
|
1280
|
+
function de(b) {
|
|
1281
|
+
let g = "", v = "";
|
|
1282
|
+
for (; g = X(b); )
|
|
1283
|
+
v += g;
|
|
1284
|
+
return v;
|
|
1285
|
+
}
|
|
1286
|
+
function ce(b) {
|
|
1287
|
+
const g = (v = !1, O) => {
|
|
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(v, 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(
|
|
1303
|
-
let
|
|
1304
|
-
switch (
|
|
1302
|
+
function Q(b, g) {
|
|
1303
|
+
let v = null;
|
|
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(), v = m(
|
|
1307
1307
|
g,
|
|
1308
1308
|
2,
|
|
1309
1309
|
"{"
|
|
1310
1310
|
/* TokenChars.BraceLeft */
|
|
1311
|
-
),
|
|
1311
|
+
), C(b), g.braceNest++, v;
|
|
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(), v = 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), v;
|
|
1319
1319
|
case "@":
|
|
1320
|
-
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0),
|
|
1320
|
+
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), v = q(b, g) || p(g), g.braceNest = 0, v;
|
|
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),
|
|
1323
|
+
if (M(b))
|
|
1324
|
+
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), v = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, v;
|
|
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 =
|
|
1328
|
-
return
|
|
1329
|
-
if (L = E(
|
|
1330
|
-
return
|
|
1331
|
-
if (G = I(
|
|
1332
|
-
return
|
|
1326
|
+
return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, z(b, g);
|
|
1327
|
+
if (R = w(b, g))
|
|
1328
|
+
return v = m(g, 5, j(b)), C(b), v;
|
|
1329
|
+
if (L = E(b, g))
|
|
1330
|
+
return v = m(g, 6, te(b)), C(b), v;
|
|
1331
|
+
if (G = I(b, g))
|
|
1332
|
+
return v = m(g, 7, ae(b)), C(b), v;
|
|
1333
1333
|
if (!R && !L && !G)
|
|
1334
|
-
return
|
|
1334
|
+
return v = m(g, 13, le(b)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, v.value), C(b), v;
|
|
1335
1335
|
break;
|
|
1336
1336
|
}
|
|
1337
|
-
return
|
|
1337
|
+
return v;
|
|
1338
1338
|
}
|
|
1339
|
-
function q(
|
|
1340
|
-
const { currentType:
|
|
1339
|
+
function q(b, g) {
|
|
1340
|
+
const { currentType: v } = g;
|
|
1341
1341
|
let O = null;
|
|
1342
|
-
const R =
|
|
1343
|
-
switch ((
|
|
1342
|
+
const R = b.currentChar();
|
|
1343
|
+
switch ((v === 8 || v === 9 || v === 12 || v === 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))) : (v === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), g.braceNest = 0, g.inLinked = !1, z(b, g));
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
function z(
|
|
1370
|
-
let
|
|
1369
|
+
function z(b, g) {
|
|
1370
|
+
let v = {
|
|
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
|
|
1393
|
-
const { isModulo: R, hasSpace: L } = $(
|
|
1391
|
+
if (M(b))
|
|
1392
|
+
return v = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, v;
|
|
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
|
-
return
|
|
1400
|
+
return v;
|
|
1401
1401
|
}
|
|
1402
1402
|
function ue() {
|
|
1403
|
-
const { currentType:
|
|
1404
|
-
return l.lastType =
|
|
1403
|
+
const { currentType: b, offset: g, startLoc: v, endLoc: O } = l;
|
|
1404
|
+
return l.lastType = b, l.lastOffset = g, l.lastStartLoc = v, l.lastEndLoc = O, l.offset = n(), l.startLoc = i(), s.currentChar() === EOF ? m(
|
|
1405
1405
|
l,
|
|
1406
1406
|
14
|
|
1407
1407
|
/* TokenTypes.EOF */
|
|
@@ -1429,132 +1429,132 @@ 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, w, E, ...I) {
|
|
1433
1433
|
const N = y.currentPosition();
|
|
1434
1434
|
if (N.offset += E, N.column += E, o) {
|
|
1435
|
-
const k = t ? createLocation(
|
|
1435
|
+
const k = t ? createLocation(w, 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, w) {
|
|
1443
1443
|
const E = { type: y };
|
|
1444
|
-
return t && (E.start =
|
|
1444
|
+
return t && (E.start = S, E.end = S, E.loc = { start: w, end: w }), E;
|
|
1445
1445
|
}
|
|
1446
|
-
function i(y,
|
|
1447
|
-
E && (y.type = E), t && (y.end =
|
|
1446
|
+
function i(y, S, w, E) {
|
|
1447
|
+
E && (y.type = E), t && (y.end = S, y.loc && (y.loc.end = w));
|
|
1448
1448
|
}
|
|
1449
|
-
function a(y,
|
|
1450
|
-
const
|
|
1451
|
-
return E.value =
|
|
1449
|
+
function a(y, S) {
|
|
1450
|
+
const w = y.context(), E = n(3, w.offset, w.startLoc);
|
|
1451
|
+
return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
|
|
1452
1452
|
}
|
|
1453
|
-
function r(y,
|
|
1454
|
-
const
|
|
1455
|
-
return N.index = parseInt(
|
|
1453
|
+
function r(y, S) {
|
|
1454
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(5, E, I);
|
|
1455
|
+
return N.index = parseInt(S, 10), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1456
1456
|
}
|
|
1457
|
-
function l(y,
|
|
1458
|
-
const
|
|
1459
|
-
return N.key =
|
|
1457
|
+
function l(y, S) {
|
|
1458
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(4, E, I);
|
|
1459
|
+
return N.key = S, y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1460
1460
|
}
|
|
1461
|
-
function c(y,
|
|
1462
|
-
const
|
|
1463
|
-
return N.value =
|
|
1461
|
+
function c(y, S) {
|
|
1462
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(9, E, I);
|
|
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(), w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(8, E, I);
|
|
1467
|
+
return S.type !== 12 ? (s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, w.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, w.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,
|
|
1475
|
-
const
|
|
1476
|
-
return E.value =
|
|
1474
|
+
function d(y, S) {
|
|
1475
|
+
const w = y.context(), E = n(7, w.offset, w.startLoc);
|
|
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(), w = 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
|
+
w.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)), w.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)), w.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)), w.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)), w.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
|
-
return N.value = "", i(N, I.offset, I.startLoc),
|
|
1501
|
+
return N.value = "", i(N, I.offset, I.startLoc), w.key = N, i(w, I.offset, I.startLoc), {
|
|
1502
1502
|
nextConsumeToken: E,
|
|
1503
|
-
node:
|
|
1503
|
+
node: w
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
return i(
|
|
1507
|
-
node:
|
|
1506
|
+
return i(w, y.currentOffset(), y.currentPosition()), {
|
|
1507
|
+
node: w
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
function p(y) {
|
|
1511
|
-
const
|
|
1511
|
+
const S = y.context(), w = S.currentType === 1 ? y.currentOffset() : S.offset, E = S.currentType === 1 ? S.endLoc : S.startLoc, I = n(2, w, 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, w, 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, w);
|
|
1542
1542
|
k.cases = [], k.cases.push(E);
|
|
1543
1543
|
do {
|
|
1544
1544
|
const D = p(y);
|
|
1545
1545
|
N || (N = D.items.length === 0), k.cases.push(D);
|
|
1546
1546
|
} while (I.currentType !== 14);
|
|
1547
|
-
return N && s(y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
1547
|
+
return N && s(y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, w, 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: w, startLoc: E } = S, I = p(y);
|
|
1551
|
+
return S.currentType === 14 ? I : f(y, w, 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)), w = S.context(), E = n(0, w.offset, w.startLoc);
|
|
1555
|
+
return t && E.loc && (E.loc.source = y), E.body = _(S), e.onCacheKey && (E.cacheKey = e.onCacheKey(y)), w.currentType !== 14 && s(S, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, y[w.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 [
|
|
2152
|
+
linked: (y, ...S) => {
|
|
2153
|
+
const [w, E] = S;
|
|
2154
2154
|
let I = "text", N = "";
|
|
2155
|
-
|
|
2156
|
-
const k = u(y)(
|
|
2155
|
+
S.length === 1 ? isObject$2(w) ? (N = w.modifier || N, I = w.type || I) : isString$2(w) && (N = w || N) : S.length === 2 && (isString$2(w) && (N = w || 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, w = !!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,11 +2342,11 @@ 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:
|
|
2349
|
-
escapeParameter:
|
|
2348
|
+
warnHtmlMessage: S,
|
|
2349
|
+
escapeParameter: w,
|
|
2350
2350
|
messageCompiler: E,
|
|
2351
2351
|
messageResolver: I,
|
|
2352
2352
|
localeFallbacker: N,
|
|
@@ -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, w] = 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, w, 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,33 +2524,33 @@ 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, w, E;
|
|
2545
|
+
if (process.env.NODE_ENV !== "production" && inBrowser && (S = window.performance.now(), w = "intlify-message-resolve-start", E = "intlify-message-resolve-end", mark && mark(w)), (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: `${
|
|
2553
|
-
}),
|
|
2551
|
+
time: N - S,
|
|
2552
|
+
groupId: `${C}:${t}`
|
|
2553
|
+
}), w && E && mark && measure && (mark(E), measure("intlify message resolve", w, E));
|
|
2554
2554
|
}
|
|
2555
2555
|
if (isString$2(p) || isMessageAST(p) || isMessageFunction(p))
|
|
2556
2556
|
break;
|
|
@@ -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, w = 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] || {}, w = y[l], isPlainObject$1(w))
|
|
2699
2699
|
break;
|
|
2700
|
-
handleMissing(e, l,
|
|
2700
|
+
handleMissing(e, l, S, m, N), E = I;
|
|
2701
2701
|
}
|
|
2702
|
-
if (!isPlainObject$1(
|
|
2702
|
+
if (!isPlainObject$1(w) || !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({}, w, 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, w = 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] || {}, w = y[l], isPlainObject$1(w))
|
|
2793
2793
|
break;
|
|
2794
|
-
handleMissing(e, l,
|
|
2794
|
+
handleMissing(e, l, S, m, N), E = I;
|
|
2795
2795
|
}
|
|
2796
|
-
if (!isPlainObject$1(
|
|
2796
|
+
if (!isPlainObject$1(w) || !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({}, w, 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,12 +3009,12 @@ 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, w = 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 = (() => {
|
|
3016
3016
|
n && setFallbackContext(null);
|
|
3017
|
-
const
|
|
3017
|
+
const P = {
|
|
3018
3018
|
version: VERSION$1,
|
|
3019
3019
|
locale: r.value,
|
|
3020
3020
|
fallbackLocale: l.value,
|
|
@@ -3024,17 +3024,17 @@ 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:
|
|
3030
|
-
warnHtmlMessage:
|
|
3029
|
+
postTranslation: S === null ? void 0 : S,
|
|
3030
|
+
warnHtmlMessage: w,
|
|
3031
3031
|
escapeParameter: E,
|
|
3032
3032
|
messageResolver: e.messageResolver,
|
|
3033
3033
|
messageCompiler: e.messageCompiler,
|
|
3034
3034
|
__meta: { framework: "vue" }
|
|
3035
3035
|
};
|
|
3036
|
-
|
|
3037
|
-
const T = createCoreContext(
|
|
3036
|
+
P.datetimeFormats = u.value, P.numberFormats = d.value, P.__datetimeFormatters = isPlainObject$1(k) ? k.__datetimeFormatters : void 0, P.__numberFormatters = isPlainObject$1(k) ? k.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (P.__v_emitter = isPlainObject$1(k) ? k.__v_emitter : void 0);
|
|
3037
|
+
const T = createCoreContext(P);
|
|
3038
3038
|
return n && setFallbackContext(T), T;
|
|
3039
3039
|
})(), updateFallbackLocale(k, r.value, l.value);
|
|
3040
3040
|
function F() {
|
|
@@ -3048,35 +3048,35 @@ function createComposer(e = {}, t) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
const M = computed({
|
|
3050
3050
|
get: () => r.value,
|
|
3051
|
-
set: (
|
|
3052
|
-
r.value =
|
|
3051
|
+
set: (P) => {
|
|
3052
|
+
r.value = P, k.locale = r.value;
|
|
3053
3053
|
}
|
|
3054
3054
|
}), $ = computed({
|
|
3055
3055
|
get: () => l.value,
|
|
3056
|
-
set: (
|
|
3057
|
-
l.value =
|
|
3056
|
+
set: (P) => {
|
|
3057
|
+
l.value = P, k.fallbackLocale = l.value, updateFallbackLocale(k, r.value, P);
|
|
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
|
-
function W(
|
|
3064
|
-
|
|
3063
|
+
function W(P) {
|
|
3064
|
+
S = P, k.postTranslation = P;
|
|
3065
3065
|
}
|
|
3066
3066
|
function Z() {
|
|
3067
|
-
return
|
|
3067
|
+
return C;
|
|
3068
3068
|
}
|
|
3069
|
-
function ie(
|
|
3070
|
-
|
|
3069
|
+
function ie(P) {
|
|
3070
|
+
P !== null && (y = defineCoreMissingHandler(P)), C = P, k.missing = y;
|
|
3071
3071
|
}
|
|
3072
|
-
function ee(
|
|
3073
|
-
return
|
|
3072
|
+
function ee(P, T) {
|
|
3073
|
+
return P !== "translate" || !T.resolvedMessage;
|
|
3074
3074
|
}
|
|
3075
|
-
const j = (
|
|
3075
|
+
const j = (P, T, A, x, K, fe) => {
|
|
3076
3076
|
F();
|
|
3077
3077
|
let se;
|
|
3078
3078
|
try {
|
|
3079
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (k.fallbackContext = o ? getFallbackContext() : void 0), se =
|
|
3079
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (k.fallbackContext = o ? getFallbackContext() : void 0), se = P(k);
|
|
3080
3080
|
} finally {
|
|
3081
3081
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (k.fallbackContext = void 0);
|
|
3082
3082
|
}
|
|
@@ -3102,87 +3102,87 @@ function createComposer(e = {}, t) {
|
|
|
3102
3102
|
throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
|
|
3103
3103
|
}
|
|
3104
3104
|
};
|
|
3105
|
-
function te(...
|
|
3106
|
-
return j((T) => Reflect.apply(translate, null, [T, ...
|
|
3105
|
+
function te(...P) {
|
|
3106
|
+
return j((T) => Reflect.apply(translate, null, [T, ...P]), () => parseTranslateArgs(...P), "translate", (T) => Reflect.apply(T.t, T, [...P]), (T) => T, (T) => isString$2(T));
|
|
3107
3107
|
}
|
|
3108
|
-
function ae(...
|
|
3109
|
-
const [T, A, x] =
|
|
3108
|
+
function ae(...P) {
|
|
3109
|
+
const [T, A, x] = P;
|
|
3110
3110
|
if (x && !isObject$2(x))
|
|
3111
3111
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
3112
3112
|
return te(T, A, assign$2({ resolvedMessage: !0 }, x || {}));
|
|
3113
3113
|
}
|
|
3114
|
-
function re(...
|
|
3115
|
-
return j((T) => Reflect.apply(datetime, null, [T, ...
|
|
3114
|
+
function re(...P) {
|
|
3115
|
+
return j((T) => Reflect.apply(datetime, null, [T, ...P]), () => parseDateTimeArgs(...P), "datetime format", (T) => Reflect.apply(T.d, T, [...P]), () => MISSING_RESOLVE_VALUE, (T) => isString$2(T));
|
|
3116
3116
|
}
|
|
3117
|
-
function oe(...
|
|
3118
|
-
return j((T) => Reflect.apply(number, null, [T, ...
|
|
3117
|
+
function oe(...P) {
|
|
3118
|
+
return j((T) => Reflect.apply(number, null, [T, ...P]), () => parseNumberArgs(...P), "number format", (T) => Reflect.apply(T.n, T, [...P]), () => MISSING_RESOLVE_VALUE, (T) => isString$2(T));
|
|
3119
3119
|
}
|
|
3120
|
-
function le(
|
|
3121
|
-
return
|
|
3120
|
+
function le(P) {
|
|
3121
|
+
return P.map((T) => isString$2(T) || isNumber$1(T) || isBoolean$1(T) ? createTextNode(String(T)) : T);
|
|
3122
3122
|
}
|
|
3123
3123
|
const ce = {
|
|
3124
3124
|
normalize: le,
|
|
3125
|
-
interpolate: (
|
|
3125
|
+
interpolate: (P) => P,
|
|
3126
3126
|
type: "vnode"
|
|
3127
3127
|
};
|
|
3128
|
-
function J(...
|
|
3128
|
+
function J(...P) {
|
|
3129
3129
|
return j(
|
|
3130
3130
|
(T) => {
|
|
3131
3131
|
let A;
|
|
3132
3132
|
const x = T;
|
|
3133
3133
|
try {
|
|
3134
|
-
x.processor = ce, A = Reflect.apply(translate, null, [x, ...
|
|
3134
|
+
x.processor = ce, A = Reflect.apply(translate, null, [x, ...P]);
|
|
3135
3135
|
} finally {
|
|
3136
3136
|
x.processor = null;
|
|
3137
3137
|
}
|
|
3138
3138
|
return A;
|
|
3139
3139
|
},
|
|
3140
|
-
() => parseTranslateArgs(...
|
|
3140
|
+
() => parseTranslateArgs(...P),
|
|
3141
3141
|
"translate",
|
|
3142
3142
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3143
|
-
(T) => T[TranslateVNodeSymbol](...
|
|
3143
|
+
(T) => T[TranslateVNodeSymbol](...P),
|
|
3144
3144
|
(T) => [createTextNode(T)],
|
|
3145
3145
|
(T) => isArray$1(T)
|
|
3146
3146
|
);
|
|
3147
3147
|
}
|
|
3148
|
-
function Q(...
|
|
3148
|
+
function Q(...P) {
|
|
3149
3149
|
return j(
|
|
3150
|
-
(T) => Reflect.apply(number, null, [T, ...
|
|
3151
|
-
() => parseNumberArgs(...
|
|
3150
|
+
(T) => Reflect.apply(number, null, [T, ...P]),
|
|
3151
|
+
() => parseNumberArgs(...P),
|
|
3152
3152
|
"number format",
|
|
3153
3153
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3154
|
-
(T) => T[NumberPartsSymbol](...
|
|
3154
|
+
(T) => T[NumberPartsSymbol](...P),
|
|
3155
3155
|
NOOP_RETURN_ARRAY,
|
|
3156
3156
|
(T) => isString$2(T) || isArray$1(T)
|
|
3157
3157
|
);
|
|
3158
3158
|
}
|
|
3159
|
-
function q(...
|
|
3159
|
+
function q(...P) {
|
|
3160
3160
|
return j(
|
|
3161
|
-
(T) => Reflect.apply(datetime, null, [T, ...
|
|
3162
|
-
() => parseDateTimeArgs(...
|
|
3161
|
+
(T) => Reflect.apply(datetime, null, [T, ...P]),
|
|
3162
|
+
() => parseDateTimeArgs(...P),
|
|
3163
3163
|
"datetime format",
|
|
3164
3164
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3165
|
-
(T) => T[DatetimePartsSymbol](...
|
|
3165
|
+
(T) => T[DatetimePartsSymbol](...P),
|
|
3166
3166
|
NOOP_RETURN_ARRAY,
|
|
3167
3167
|
(T) => isString$2(T) || isArray$1(T)
|
|
3168
3168
|
);
|
|
3169
3169
|
}
|
|
3170
|
-
function z(
|
|
3171
|
-
N =
|
|
3170
|
+
function z(P) {
|
|
3171
|
+
N = P, k.pluralRules = N;
|
|
3172
3172
|
}
|
|
3173
|
-
function ue(
|
|
3173
|
+
function ue(P, T) {
|
|
3174
3174
|
return j(() => {
|
|
3175
|
-
if (!
|
|
3175
|
+
if (!P)
|
|
3176
3176
|
return !1;
|
|
3177
|
-
const A = isString$2(T) ? T : r.value, x =
|
|
3177
|
+
const A = isString$2(T) ? T : r.value, x = v(A), K = k.messageResolver(x, P);
|
|
3178
3178
|
return isMessageAST(K) || isMessageFunction(K) || isString$2(K);
|
|
3179
|
-
}, () => [
|
|
3179
|
+
}, () => [P], "translate exists", (A) => Reflect.apply(A.te, A, [P, T]), NOOP_RETURN_FALSE, (A) => isBoolean$1(A));
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function b(P) {
|
|
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++) {
|
|
3185
|
-
const K = c.value[A[x]] || {}, fe = k.messageResolver(K,
|
|
3185
|
+
const K = c.value[A[x]] || {}, fe = k.messageResolver(K, P);
|
|
3186
3186
|
if (fe != null) {
|
|
3187
3187
|
T = fe;
|
|
3188
3188
|
break;
|
|
@@ -3190,51 +3190,51 @@ function createComposer(e = {}, t) {
|
|
|
3190
3190
|
}
|
|
3191
3191
|
return T;
|
|
3192
3192
|
}
|
|
3193
|
-
function g(
|
|
3194
|
-
const T =
|
|
3195
|
-
return T ?? (o ? o.tm(
|
|
3193
|
+
function g(P) {
|
|
3194
|
+
const T = b(P);
|
|
3195
|
+
return T ?? (o ? o.tm(P) || {} : {});
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3198
|
-
return c.value[
|
|
3197
|
+
function v(P) {
|
|
3198
|
+
return c.value[P] || {};
|
|
3199
3199
|
}
|
|
3200
|
-
function O(
|
|
3200
|
+
function O(P, T) {
|
|
3201
3201
|
if (i) {
|
|
3202
|
-
const A = { [
|
|
3202
|
+
const A = { [P]: T };
|
|
3203
3203
|
for (const x in A)
|
|
3204
3204
|
hasOwn(A, x) && handleFlatJson(A[x]);
|
|
3205
|
-
T = A[
|
|
3205
|
+
T = A[P];
|
|
3206
3206
|
}
|
|
3207
|
-
c.value[
|
|
3207
|
+
c.value[P] = T, k.messages = c.value;
|
|
3208
3208
|
}
|
|
3209
|
-
function R(
|
|
3210
|
-
c.value[
|
|
3211
|
-
const A = { [
|
|
3209
|
+
function R(P, T) {
|
|
3210
|
+
c.value[P] = c.value[P] || {};
|
|
3211
|
+
const A = { [P]: T };
|
|
3212
3212
|
for (const x in A)
|
|
3213
3213
|
hasOwn(A, x) && handleFlatJson(A[x]);
|
|
3214
|
-
T = A[
|
|
3214
|
+
T = A[P], deepCopy(T, c.value[P]), k.messages = c.value;
|
|
3215
3215
|
}
|
|
3216
|
-
function L(
|
|
3217
|
-
return u.value[
|
|
3216
|
+
function L(P) {
|
|
3217
|
+
return u.value[P] || {};
|
|
3218
3218
|
}
|
|
3219
|
-
function G(
|
|
3220
|
-
u.value[
|
|
3219
|
+
function G(P, T) {
|
|
3220
|
+
u.value[P] = T, k.datetimeFormats = u.value, clearDateTimeFormat(k, P, T);
|
|
3221
3221
|
}
|
|
3222
|
-
function H(
|
|
3223
|
-
u.value[
|
|
3222
|
+
function H(P, T) {
|
|
3223
|
+
u.value[P] = assign$2(u.value[P] || {}, T), k.datetimeFormats = u.value, clearDateTimeFormat(k, P, T);
|
|
3224
3224
|
}
|
|
3225
|
-
function pe(
|
|
3226
|
-
return d.value[
|
|
3225
|
+
function pe(P) {
|
|
3226
|
+
return d.value[P] || {};
|
|
3227
3227
|
}
|
|
3228
|
-
function he(
|
|
3229
|
-
d.value[
|
|
3228
|
+
function he(P, T) {
|
|
3229
|
+
d.value[P] = T, k.numberFormats = d.value, clearNumberFormat(k, P, T);
|
|
3230
3230
|
}
|
|
3231
|
-
function ge(
|
|
3232
|
-
d.value[
|
|
3231
|
+
function ge(P, T) {
|
|
3232
|
+
d.value[P] = assign$2(d.value[P] || {}, T), k.numberFormats = d.value, clearNumberFormat(k, P, T);
|
|
3233
3233
|
}
|
|
3234
|
-
composerID++, o && inBrowser && (watch(o.locale, (
|
|
3235
|
-
a && (r.value =
|
|
3236
|
-
}), watch(o.fallbackLocale, (
|
|
3237
|
-
a && (l.value =
|
|
3234
|
+
composerID++, o && inBrowser && (watch(o.locale, (P) => {
|
|
3235
|
+
a && (r.value = P, k.locale = P, updateFallbackLocale(k, r.value, l.value));
|
|
3236
|
+
}), watch(o.fallbackLocale, (P) => {
|
|
3237
|
+
a && (l.value = P, k.fallbackLocale = P, updateFallbackLocale(k, r.value, l.value));
|
|
3238
3238
|
}));
|
|
3239
3239
|
const V = {
|
|
3240
3240
|
id: composerID,
|
|
@@ -3243,8 +3243,8 @@ function createComposer(e = {}, t) {
|
|
|
3243
3243
|
get inheritLocale() {
|
|
3244
3244
|
return a;
|
|
3245
3245
|
},
|
|
3246
|
-
set inheritLocale(
|
|
3247
|
-
a =
|
|
3246
|
+
set inheritLocale(P) {
|
|
3247
|
+
a = P, P && o && (r.value = o.locale.value, l.value = o.fallbackLocale.value, updateFallbackLocale(k, r.value, l.value));
|
|
3248
3248
|
},
|
|
3249
3249
|
get availableLocales() {
|
|
3250
3250
|
return Object.keys(c.value).sort();
|
|
@@ -3262,41 +3262,41 @@ function createComposer(e = {}, t) {
|
|
|
3262
3262
|
get missingWarn() {
|
|
3263
3263
|
return m;
|
|
3264
3264
|
},
|
|
3265
|
-
set missingWarn(
|
|
3266
|
-
m =
|
|
3265
|
+
set missingWarn(P) {
|
|
3266
|
+
m = P, k.missingWarn = m;
|
|
3267
3267
|
},
|
|
3268
3268
|
get fallbackWarn() {
|
|
3269
3269
|
return p;
|
|
3270
3270
|
},
|
|
3271
|
-
set fallbackWarn(
|
|
3272
|
-
p =
|
|
3271
|
+
set fallbackWarn(P) {
|
|
3272
|
+
p = P, k.fallbackWarn = p;
|
|
3273
3273
|
},
|
|
3274
3274
|
get fallbackRoot() {
|
|
3275
3275
|
return f;
|
|
3276
3276
|
},
|
|
3277
|
-
set fallbackRoot(
|
|
3278
|
-
f =
|
|
3277
|
+
set fallbackRoot(P) {
|
|
3278
|
+
f = P;
|
|
3279
3279
|
},
|
|
3280
3280
|
get fallbackFormat() {
|
|
3281
|
-
return
|
|
3281
|
+
return _;
|
|
3282
3282
|
},
|
|
3283
|
-
set fallbackFormat(
|
|
3284
|
-
|
|
3283
|
+
set fallbackFormat(P) {
|
|
3284
|
+
_ = P, k.fallbackFormat = _;
|
|
3285
3285
|
},
|
|
3286
3286
|
get warnHtmlMessage() {
|
|
3287
|
-
return
|
|
3287
|
+
return w;
|
|
3288
3288
|
},
|
|
3289
|
-
set warnHtmlMessage(
|
|
3290
|
-
|
|
3289
|
+
set warnHtmlMessage(P) {
|
|
3290
|
+
w = P, k.warnHtmlMessage = P;
|
|
3291
3291
|
},
|
|
3292
3292
|
get escapeParameter() {
|
|
3293
3293
|
return E;
|
|
3294
3294
|
},
|
|
3295
|
-
set escapeParameter(
|
|
3296
|
-
E =
|
|
3295
|
+
set escapeParameter(P) {
|
|
3296
|
+
E = P, k.escapeParameter = P;
|
|
3297
3297
|
},
|
|
3298
3298
|
t: te,
|
|
3299
|
-
getLocaleMessage:
|
|
3299
|
+
getLocaleMessage: v,
|
|
3300
3300
|
setLocaleMessage: O,
|
|
3301
3301
|
mergeLocaleMessage: R,
|
|
3302
3302
|
getPostTranslationHandler: ne,
|
|
@@ -3305,8 +3305,8 @@ function createComposer(e = {}, t) {
|
|
|
3305
3305
|
setMissingHandler: ie,
|
|
3306
3306
|
[SetPluralRulesSymbol]: z
|
|
3307
3307
|
};
|
|
3308
|
-
return V.datetimeFormats = U, V.numberFormats = X, V.rt = ae, V.te = ue, V.tm = g, V.d = re, V.n = oe, V.getDateTimeFormat = L, V.setDateTimeFormat = G, V.mergeDateTimeFormat = H, V.getNumberFormat = pe, V.setNumberFormat = he, V.mergeNumberFormat = ge, V[InejctWithOptionSymbol] = s, V[TranslateVNodeSymbol] = J, V[DatetimePartsSymbol] = q, V[NumberPartsSymbol] = Q, process.env.NODE_ENV !== "production" && (V[EnableEmitter] = (
|
|
3309
|
-
k.__v_emitter =
|
|
3308
|
+
return V.datetimeFormats = U, V.numberFormats = X, V.rt = ae, V.te = ue, V.tm = g, V.d = re, V.n = oe, V.getDateTimeFormat = L, V.setDateTimeFormat = G, V.mergeDateTimeFormat = H, V.getNumberFormat = pe, V.setNumberFormat = he, V.mergeNumberFormat = ge, V[InejctWithOptionSymbol] = s, V[TranslateVNodeSymbol] = J, V[DatetimePartsSymbol] = q, V[NumberPartsSymbol] = Q, process.env.NODE_ENV !== "production" && (V[EnableEmitter] = (P) => {
|
|
3309
|
+
k.__v_emitter = P;
|
|
3310
3310
|
}, V[DisableEmitter] = () => {
|
|
3311
3311
|
k.__v_emitter = void 0;
|
|
3312
3312
|
}), V;
|
|
@@ -3322,14 +3322,14 @@ 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, w = 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:
|
|
3332
|
-
numberFormats:
|
|
3331
|
+
datetimeFormats: S,
|
|
3332
|
+
numberFormats: w,
|
|
3333
3333
|
missing: s,
|
|
3334
3334
|
missingWarn: n,
|
|
3335
3335
|
fallbackWarn: i,
|
|
@@ -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
|
-
const
|
|
4132
|
-
|
|
4131
|
+
const w = r;
|
|
4132
|
+
w.__enableEmitter && w.__enableEmitter(S);
|
|
4133
4133
|
} else {
|
|
4134
|
-
const
|
|
4135
|
-
|
|
4134
|
+
const w = r;
|
|
4135
|
+
w[EnableEmitter] && w[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, w = !!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);
|
|
@@ -4302,35 +4302,35 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4302
4302
|
function te(g) {
|
|
4303
4303
|
return i.value ? i.value.tm(g) : {};
|
|
4304
4304
|
}
|
|
4305
|
-
function ae(g,
|
|
4306
|
-
return i.value ? i.value.te(g,
|
|
4305
|
+
function ae(g, v) {
|
|
4306
|
+
return i.value ? i.value.te(g, v) : !1;
|
|
4307
4307
|
}
|
|
4308
4308
|
function re(g) {
|
|
4309
4309
|
return i.value ? i.value.getLocaleMessage(g) : {};
|
|
4310
4310
|
}
|
|
4311
|
-
function oe(g,
|
|
4312
|
-
i.value && (i.value.setLocaleMessage(g,
|
|
4311
|
+
function oe(g, v) {
|
|
4312
|
+
i.value && (i.value.setLocaleMessage(g, v), c.value[g] = v);
|
|
4313
4313
|
}
|
|
4314
|
-
function le(g,
|
|
4315
|
-
i.value && i.value.mergeLocaleMessage(g,
|
|
4314
|
+
function le(g, v) {
|
|
4315
|
+
i.value && i.value.mergeLocaleMessage(g, v);
|
|
4316
4316
|
}
|
|
4317
4317
|
function de(g) {
|
|
4318
4318
|
return i.value ? i.value.getDateTimeFormat(g) : {};
|
|
4319
4319
|
}
|
|
4320
|
-
function ce(g,
|
|
4321
|
-
i.value && (i.value.setDateTimeFormat(g,
|
|
4320
|
+
function ce(g, v) {
|
|
4321
|
+
i.value && (i.value.setDateTimeFormat(g, v), u.value[g] = v);
|
|
4322
4322
|
}
|
|
4323
|
-
function J(g,
|
|
4324
|
-
i.value && i.value.mergeDateTimeFormat(g,
|
|
4323
|
+
function J(g, v) {
|
|
4324
|
+
i.value && i.value.mergeDateTimeFormat(g, v);
|
|
4325
4325
|
}
|
|
4326
4326
|
function Q(g) {
|
|
4327
4327
|
return i.value ? i.value.getNumberFormat(g) : {};
|
|
4328
4328
|
}
|
|
4329
|
-
function q(g,
|
|
4330
|
-
i.value && (i.value.setNumberFormat(g,
|
|
4329
|
+
function q(g, v) {
|
|
4330
|
+
i.value && (i.value.setNumberFormat(g, v), d.value[g] = v);
|
|
4331
4331
|
}
|
|
4332
|
-
function z(g,
|
|
4333
|
-
i.value && i.value.mergeNumberFormat(g,
|
|
4332
|
+
function z(g, v) {
|
|
4333
|
+
i.value && i.value.mergeNumberFormat(g, v);
|
|
4334
4334
|
}
|
|
4335
4335
|
const ue = {
|
|
4336
4336
|
get id() {
|
|
@@ -4378,19 +4378,19 @@ 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);
|
|
4391
4391
|
},
|
|
4392
4392
|
get escapeParameter() {
|
|
4393
|
-
return i.value ? i.value.escapeParameter :
|
|
4393
|
+
return i.value ? i.value.escapeParameter : w;
|
|
4394
4394
|
},
|
|
4395
4395
|
set escapeParameter(g) {
|
|
4396
4396
|
i.value && (i.value.escapeParameter = g);
|
|
@@ -4415,20 +4415,20 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4415
4415
|
setNumberFormat: q,
|
|
4416
4416
|
mergeNumberFormat: z
|
|
4417
4417
|
};
|
|
4418
|
-
function
|
|
4419
|
-
g.locale.value = r.value, g.fallbackLocale.value = l.value, Object.keys(c.value).forEach((
|
|
4420
|
-
g.mergeLocaleMessage(
|
|
4421
|
-
}), Object.keys(u.value).forEach((
|
|
4422
|
-
g.mergeDateTimeFormat(
|
|
4423
|
-
}), Object.keys(d.value).forEach((
|
|
4424
|
-
g.mergeNumberFormat(
|
|
4425
|
-
}), g.escapeParameter =
|
|
4418
|
+
function b(g) {
|
|
4419
|
+
g.locale.value = r.value, g.fallbackLocale.value = l.value, Object.keys(c.value).forEach((v) => {
|
|
4420
|
+
g.mergeLocaleMessage(v, c.value[v]);
|
|
4421
|
+
}), Object.keys(u.value).forEach((v) => {
|
|
4422
|
+
g.mergeDateTimeFormat(v, u.value[v]);
|
|
4423
|
+
}), Object.keys(d.value).forEach((v) => {
|
|
4424
|
+
g.mergeNumberFormat(v, d.value[v]);
|
|
4425
|
+
}), g.escapeParameter = w, 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
|
|
4958
|
-
!(utils$1.isUndefined(
|
|
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(w, E) {
|
|
4958
|
+
!(utils$1.isUndefined(w) || w === null) && t.append(
|
|
4959
4959
|
// eslint-disable-next-line no-nested-ternary
|
|
4960
|
-
a === !0 ? renderKey([
|
|
4961
|
-
c(
|
|
4960
|
+
a === !0 ? renderKey([_], E, i) : a === null ? _ : _ + "[]",
|
|
4961
|
+
c(w)
|
|
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,34 +5547,34 @@ 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
|
};
|
|
5574
|
-
settle(function(
|
|
5575
|
-
o(
|
|
5576
|
-
}, function(
|
|
5577
|
-
s(
|
|
5574
|
+
settle(function(w) {
|
|
5575
|
+
o(w), c();
|
|
5576
|
+
}, function(w) {
|
|
5577
|
+
s(w), c();
|
|
5578
5578
|
}, y), d = null;
|
|
5579
5579
|
}
|
|
5580
5580
|
if ("onloadend" in d ? d.onloadend = p : d.onreadystatechange = function() {
|
|
@@ -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,7 +6808,78 @@ function executeExpression(e, t, o, s) {
|
|
|
6784
6808
|
const n = getAbstractUserFactory(s);
|
|
6785
6809
|
return new n(e, t, o).result;
|
|
6786
6810
|
}
|
|
6787
|
-
|
|
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: "/" });
|
|
6882
|
+
const jwtKey = "JWT", currentUserNameKey = "USERNAME", currentUserInfoKey = "CURRENT_USER", currentSystemUrlKey = "CURRENT_SYSTEM_URL_", langKey = "CURRENT_LANGUAGE", allLangKey = "AMB_LANG_INFO", versionEnv = "VERSION_ENVIRONMENT", userVersion = "CURRENT_USER_SYSTEM_VERSION";
|
|
6788
6883
|
function getToken$1() {
|
|
6789
6884
|
let e = getCookieCache(jwtKey);
|
|
6790
6885
|
const t = window.$vueApp.config.globalProperties.projectModel;
|
|
@@ -6886,6 +6981,9 @@ function setAllLanguages(e) {
|
|
|
6886
6981
|
function removeAllLanguages() {
|
|
6887
6982
|
removeCookieCache(allLangKey), removeSessionCache(allLangKey);
|
|
6888
6983
|
}
|
|
6984
|
+
function removePublishControl() {
|
|
6985
|
+
removeCookieCache(versionEnv), removeCookieCache(userVersion);
|
|
6986
|
+
}
|
|
6889
6987
|
const authApi = {
|
|
6890
6988
|
getToken: getToken$1,
|
|
6891
6989
|
setToken,
|
|
@@ -6911,7 +7009,8 @@ const authApi = {
|
|
|
6911
7009
|
removeLanguage,
|
|
6912
7010
|
getAllLanguages: getAllLanguages$1,
|
|
6913
7011
|
setAllLanguages,
|
|
6914
|
-
removeAllLanguages
|
|
7012
|
+
removeAllLanguages,
|
|
7013
|
+
removePublishControl
|
|
6915
7014
|
};
|
|
6916
7015
|
function getToken() {
|
|
6917
7016
|
return authApi.getToken();
|
|
@@ -7103,7 +7202,7 @@ function setEntityFieldValue(e, t, o) {
|
|
|
7103
7202
|
s[n] === void 0 ? s[t.substring(t.lastIndexOf(".") + 1)] = o : s[n] = o;
|
|
7104
7203
|
}
|
|
7105
7204
|
} else
|
|
7106
|
-
e[t], e[t] = o;
|
|
7205
|
+
e[t] === void 0 || e[t], e[t] = o;
|
|
7107
7206
|
}
|
|
7108
7207
|
function getEntityFieldValue(e, t, o) {
|
|
7109
7208
|
let s = getEntityFieldValueWithCase(e, t);
|
|
@@ -7208,19 +7307,19 @@ function jumpToPage(e, t, o, s, n, i, a, r) {
|
|
|
7208
7307
|
e.jumpPageAdditional
|
|
7209
7308
|
);
|
|
7210
7309
|
window.$vueApp.config.globalProperties.$http.post(d, m).then((f) => {
|
|
7211
|
-
let
|
|
7212
|
-
f && f.uuid && (
|
|
7213
|
-
|
|
7310
|
+
let _ = "";
|
|
7311
|
+
f && f.uuid && (_ = f.uuid + "_additionalParamMap", window.sessionStorage.setItem(
|
|
7312
|
+
_,
|
|
7214
7313
|
JSON.stringify(f.paramMap)
|
|
7215
|
-
)), e.paramStoreId =
|
|
7314
|
+
)), e.paramStoreId = _, jumpToPageTwo(
|
|
7216
7315
|
e,
|
|
7217
7316
|
u,
|
|
7218
7317
|
o,
|
|
7219
7318
|
i,
|
|
7220
7319
|
a,
|
|
7221
7320
|
p
|
|
7222
|
-
).then((
|
|
7223
|
-
l(
|
|
7321
|
+
).then((C) => {
|
|
7322
|
+
l(C);
|
|
7224
7323
|
});
|
|
7225
7324
|
});
|
|
7226
7325
|
} else
|
|
@@ -7598,9 +7697,9 @@ const Util = {
|
|
|
7598
7697
|
for (let d = 0; d < t.length; d++) {
|
|
7599
7698
|
const m = t[d];
|
|
7600
7699
|
for (let p = 0; p < e.length; p++) {
|
|
7601
|
-
const f = e[p],
|
|
7700
|
+
const f = e[p], _ = f.toolTips, C = f.conditionList;
|
|
7602
7701
|
if (!analysisCondition(
|
|
7603
|
-
|
|
7702
|
+
C,
|
|
7604
7703
|
m,
|
|
7605
7704
|
n,
|
|
7606
7705
|
r,
|
|
@@ -7608,7 +7707,7 @@ const Util = {
|
|
|
7608
7707
|
s,
|
|
7609
7708
|
null
|
|
7610
7709
|
)) {
|
|
7611
|
-
l = !1, c =
|
|
7710
|
+
l = !1, c = _, u = m;
|
|
7612
7711
|
break;
|
|
7613
7712
|
}
|
|
7614
7713
|
}
|
|
@@ -7732,19 +7831,19 @@ const Util = {
|
|
|
7732
7831
|
return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
|
|
7733
7832
|
},
|
|
7734
7833
|
// 获得普通表单保存时的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";
|
|
7834
|
+
getSaveFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, w, E, I, N) {
|
|
7835
|
+
N = N === void 0 || N === "true" || N;
|
|
7737
7836
|
const k = {
|
|
7738
7837
|
entity: i,
|
|
7739
7838
|
formViewCode: o,
|
|
7740
7839
|
formViewVersion: s,
|
|
7741
7840
|
tableName: n,
|
|
7742
7841
|
formNoRuleCode: l,
|
|
7743
|
-
isWorkflowEntity:
|
|
7842
|
+
isWorkflowEntity: w,
|
|
7744
7843
|
functionCode: E,
|
|
7745
7844
|
isPermission: N + ""
|
|
7746
7845
|
};
|
|
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),
|
|
7846
|
+
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
7847
|
e,
|
|
7749
7848
|
t,
|
|
7750
7849
|
k,
|
|
@@ -7768,7 +7867,7 @@ const Util = {
|
|
|
7768
7867
|
// 导出报告按钮实现
|
|
7769
7868
|
exportFormReport(e, t, o, s, n, i, a, r, l, c, u, d) {
|
|
7770
7869
|
this.$refs.superForm && this.$refs.superForm.getViewModels().then(async (m) => {
|
|
7771
|
-
const p = u.isPermission === void 0 || u.isPermission === "true", f = {
|
|
7870
|
+
const p = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, f = {
|
|
7772
7871
|
entity: m,
|
|
7773
7872
|
fileName: e,
|
|
7774
7873
|
// uuid
|
|
@@ -7784,7 +7883,7 @@ const Util = {
|
|
|
7784
7883
|
isPermission: p + ""
|
|
7785
7884
|
};
|
|
7786
7885
|
i && (f.logSettingText = i), f.systemCode || (f.systemCode = n.code), a && (f.taskMap = a), r && (f.additionalParamMap = r);
|
|
7787
|
-
let
|
|
7886
|
+
let _ = this.callBeforeClickButton(
|
|
7788
7887
|
this.formEvents,
|
|
7789
7888
|
this.formViewCode + "__exportForm",
|
|
7790
7889
|
{
|
|
@@ -7793,10 +7892,10 @@ const Util = {
|
|
|
7793
7892
|
exportParam: f
|
|
7794
7893
|
}
|
|
7795
7894
|
);
|
|
7796
|
-
isPromise(
|
|
7797
|
-
console.log("点击前事件返回结果--Promise--resolve---",
|
|
7798
|
-
}),
|
|
7799
|
-
|
|
7895
|
+
isPromise(_) && await _.then((C) => {
|
|
7896
|
+
console.log("点击前事件返回结果--Promise--resolve---", C), _ = C;
|
|
7897
|
+
}), _ && (isPromise(_) ? _.then((C) => {
|
|
7898
|
+
C && (u.code === "exportPDF" ? this.exportFormPdf(t, o, n, f) : this.exportFormReportSuccess(
|
|
7800
7899
|
e,
|
|
7801
7900
|
t,
|
|
7802
7901
|
o,
|
|
@@ -8267,10 +8366,10 @@ const Util = {
|
|
|
8267
8366
|
exportParam: p
|
|
8268
8367
|
}
|
|
8269
8368
|
);
|
|
8270
|
-
isPromise(f) && await f.then((
|
|
8271
|
-
console.log("点击前事件返回结果--Promise--resolve---",
|
|
8272
|
-
}), f && (isPromise(f) ? f.then((
|
|
8273
|
-
|
|
8369
|
+
isPromise(f) && await f.then((_) => {
|
|
8370
|
+
console.log("点击前事件返回结果--Promise--resolve---", _), f = _;
|
|
8371
|
+
}), f && (isPromise(f) ? f.then((_) => {
|
|
8372
|
+
_ && this.previewFormReportSuccess(
|
|
8274
8373
|
e,
|
|
8275
8374
|
t,
|
|
8276
8375
|
o,
|
|
@@ -8309,7 +8408,7 @@ const Util = {
|
|
|
8309
8408
|
request = buttonFun(this, param);
|
|
8310
8409
|
} else {
|
|
8311
8410
|
const t = this.getBaseUrl(system) + "/dsc/commons/create-preview-file";
|
|
8312
|
-
axios$1.defaults.headers.common.Authorization =
|
|
8411
|
+
axios$1.defaults.headers.common.Authorization = Cookies.get("JWT"), request = axios$1.post(
|
|
8313
8412
|
t,
|
|
8314
8413
|
param,
|
|
8315
8414
|
{},
|
|
@@ -8544,7 +8643,7 @@ const ExportFormReportDialog = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["rende
|
|
|
8544
8643
|
},
|
|
8545
8644
|
data() {
|
|
8546
8645
|
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);
|
|
8646
|
+
(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
8647
|
const t = getStoreInfo(this.pageCode, "_pageDevMode"), o = getStoreInfo(this.pageCode, "_pagePreview");
|
|
8549
8648
|
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
8649
|
const s = this.button.buttonDisplayConditionsList;
|
|
@@ -8703,7 +8802,7 @@ const ExportFormReportDialog = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["rende
|
|
|
8703
8802
|
}
|
|
8704
8803
|
},
|
|
8705
8804
|
emits: ["click", "prohibi-edit", "workflowClick", "getPageParam"]
|
|
8706
|
-
}, _hoisted_1$
|
|
8805
|
+
}, _hoisted_1$b = ["id"], _hoisted_2$6 = {
|
|
8707
8806
|
key: 0,
|
|
8708
8807
|
style: { "margin-right": "10px" }
|
|
8709
8808
|
}, _hoisted_3$2 = { key: 0 }, _hoisted_4$1 = { key: 1 };
|
|
@@ -8786,7 +8885,7 @@ function _sfc_render$p(e, t, o, s, n, i) {
|
|
|
8786
8885
|
onPreviewExportFormReport: i.previewExportFormReport,
|
|
8787
8886
|
onBeforeExportFormReport: i.beforeExportFormReport
|
|
8788
8887
|
}, null, 8, ["button", "entity", "onClose", "onPreviewExportFormReport", "onBeforeExportFormReport"])) : createCommentVNode("", !0)
|
|
8789
|
-
], 8, _hoisted_1$
|
|
8888
|
+
], 8, _hoisted_1$b)) : createCommentVNode("", !0);
|
|
8790
8889
|
}
|
|
8791
8890
|
const myButtonBase = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]), _sfc_main$o = {
|
|
8792
8891
|
name: "MyWorkflowButtonGroup",
|
|
@@ -9067,7 +9166,7 @@ const myButtonBase = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
9067
9166
|
}
|
|
9068
9167
|
},
|
|
9069
9168
|
emits: ["workflowClick", "prohibi-edit", "click", "workflowClick", "getPageParam"]
|
|
9070
|
-
}, _hoisted_1$
|
|
9169
|
+
}, _hoisted_1$a = {
|
|
9071
9170
|
key: 1,
|
|
9072
9171
|
style: { "margin-left": "10px" }
|
|
9073
9172
|
}, _hoisted_2$5 = { key: 0 }, _hoisted_3$1 = { key: 1 };
|
|
@@ -9145,7 +9244,7 @@ function _sfc_render$o(e, t, o, s, n, i) {
|
|
|
9145
9244
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
9146
9245
|
[m, p.permission]
|
|
9147
9246
|
])), 128)),
|
|
9148
|
-
o.buttonGroups ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9247
|
+
o.buttonGroups ? (openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
9149
9248
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.myButtonGroups, (p, f) => (openBlock(), createElementBlock(Fragment, { key: f }, [
|
|
9150
9249
|
p.isGroup ? (openBlock(), createElementBlock("span", _hoisted_2$5, [
|
|
9151
9250
|
createVNode(c, {
|
|
@@ -9157,22 +9256,22 @@ function _sfc_render$o(e, t, o, s, n, i) {
|
|
|
9157
9256
|
dropdown: withCtx(() => [
|
|
9158
9257
|
createVNode(l, null, {
|
|
9159
9258
|
default: withCtx(() => [
|
|
9160
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (
|
|
9161
|
-
key:
|
|
9162
|
-
class: normalizeClass(
|
|
9259
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (_, C) => (openBlock(), createElementBlock("span", {
|
|
9260
|
+
key: _.code + C,
|
|
9261
|
+
class: normalizeClass(_.code)
|
|
9163
9262
|
}, [
|
|
9164
9263
|
withDirectives((openBlock(), createBlock(r, {
|
|
9165
|
-
command:
|
|
9264
|
+
command: _.code,
|
|
9166
9265
|
disabled: e.preventReclick
|
|
9167
9266
|
}, {
|
|
9168
9267
|
default: withCtx(() => [
|
|
9169
|
-
createTextVNode(toDisplayString$1(
|
|
9268
|
+
createTextVNode(toDisplayString$1(_.label ? _.label : _.code === "search" ? e.$t("superPageMessage.searchButtonLabel") : ""), 1)
|
|
9170
9269
|
]),
|
|
9171
9270
|
_: 2
|
|
9172
9271
|
}, 1032, ["command", "disabled"])), [
|
|
9173
9272
|
[
|
|
9174
9273
|
m,
|
|
9175
|
-
n.myPermissionPrefix && n.myPermissionPrefix !== "" ? n.myPermissionPrefix +
|
|
9274
|
+
n.myPermissionPrefix && n.myPermissionPrefix !== "" ? n.myPermissionPrefix + _.code : ""
|
|
9176
9275
|
]
|
|
9177
9276
|
])
|
|
9178
9277
|
], 2))), 128))
|
|
@@ -9373,10 +9472,10 @@ const workflowButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render",
|
|
|
9373
9472
|
}
|
|
9374
9473
|
},
|
|
9375
9474
|
emits: ["prohibi-edit", "click", "workflowClick", "getPageParam"]
|
|
9376
|
-
}, _hoisted_1$
|
|
9475
|
+
}, _hoisted_1$9 = { key: 0 };
|
|
9377
9476
|
function _sfc_render$n(e, t, o, s, n, i) {
|
|
9378
9477
|
const a = resolveComponent("workflow-button-group"), r = resolveComponent("my-button-base");
|
|
9379
|
-
return n.isVisible ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9478
|
+
return n.isVisible ? (openBlock(), createElementBlock("span", _hoisted_1$9, [
|
|
9380
9479
|
o.button.code === "workflowButton" ? (openBlock(), createBlock(a, {
|
|
9381
9480
|
key: 0,
|
|
9382
9481
|
ref: "workflowButtonGroup",
|
|
@@ -9450,11 +9549,13 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rende
|
|
|
9450
9549
|
beforeUnmount() {
|
|
9451
9550
|
},
|
|
9452
9551
|
methods: {
|
|
9453
|
-
multiselectChange() {
|
|
9454
|
-
|
|
9552
|
+
multiselectChange(e, t) {
|
|
9553
|
+
this.valueSetOptions.forEach((o) => {
|
|
9554
|
+
this.modelObj[o.valueField] = t[o.columnName];
|
|
9555
|
+
}), console.log("multiselectChange", e, t), $emit$1(this, "search-grid-data", this.toolbar.controlType);
|
|
9455
9556
|
},
|
|
9456
9557
|
setDynamicSourceSelectValue(e) {
|
|
9457
|
-
this.valueSetOptions.forEach((t) => {
|
|
9558
|
+
console.log(e, "------------"), this.valueSetOptions.forEach((t) => {
|
|
9458
9559
|
this.modelObj[t.valueField] = e.selectedItem[t.columnName];
|
|
9459
9560
|
}), console.log(this.modelObj, "------------");
|
|
9460
9561
|
},
|
|
@@ -9638,13 +9739,14 @@ const ListToolbarDynamicSource = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["ren
|
|
|
9638
9739
|
}
|
|
9639
9740
|
},
|
|
9640
9741
|
emits: ["searchGridData"]
|
|
9641
|
-
};
|
|
9742
|
+
}, _hoisted_1$8 = ["id"];
|
|
9642
9743
|
function _sfc_render$l(e, t, o, s, n, i) {
|
|
9643
9744
|
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
9745
|
return openBlock(), createElementBlock("span", null, [
|
|
9645
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.listToolbarList, (f,
|
|
9646
|
-
key:
|
|
9647
|
-
|
|
9746
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.listToolbarList, (f, _) => (openBlock(), createElementBlock("span", {
|
|
9747
|
+
key: _,
|
|
9748
|
+
id: "tb-" + f.propDbName,
|
|
9749
|
+
style: normalizeStyle([{ width: f.width ? f.width + "px" : "150px" }, { display: "inline-block", "margin-bottom": "10px" }])
|
|
9648
9750
|
}, [
|
|
9649
9751
|
createTextVNode(toDisplayString$1(f.label) + " ", 1),
|
|
9650
9752
|
(f.controlType === "select" || f.controlType === "multipleSelect") && f.dynamicDataSourceCode ? (openBlock(), createBlock(a, {
|
|
@@ -9658,17 +9760,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9658
9760
|
f.controlType === "select" ? (openBlock(), createBlock(l, {
|
|
9659
9761
|
key: 0,
|
|
9660
9762
|
modelValue: n.modelObj[f.propDbName],
|
|
9661
|
-
"onUpdate:modelValue": (
|
|
9763
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9662
9764
|
placeholder: f.nullLabel,
|
|
9663
9765
|
size: f.size ? f.size : e.small,
|
|
9664
9766
|
clearable: "",
|
|
9665
9767
|
onChange: i.searchGridData
|
|
9666
9768
|
}, {
|
|
9667
9769
|
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:
|
|
9770
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(r, {
|
|
9771
|
+
key: C.value,
|
|
9772
|
+
label: C.label,
|
|
9773
|
+
value: C.value
|
|
9672
9774
|
}, null, 8, ["label", "value"]))), 128))
|
|
9673
9775
|
]),
|
|
9674
9776
|
_: 2
|
|
@@ -9676,7 +9778,7 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9676
9778
|
f.controlType === "multipleSelect" ? (openBlock(), createBlock(l, {
|
|
9677
9779
|
key: 1,
|
|
9678
9780
|
modelValue: n.modelObj[f.propDbName],
|
|
9679
|
-
"onUpdate:modelValue": (
|
|
9781
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9680
9782
|
placeholder: f.nullLabel,
|
|
9681
9783
|
size: f.size ? f.size : e.small,
|
|
9682
9784
|
"collapse-tags": "",
|
|
@@ -9685,10 +9787,10 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9685
9787
|
onChange: i.searchGridData
|
|
9686
9788
|
}, {
|
|
9687
9789
|
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:
|
|
9790
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(r, {
|
|
9791
|
+
key: C.value,
|
|
9792
|
+
label: C.label,
|
|
9793
|
+
value: C.value
|
|
9692
9794
|
}, null, 8, ["label", "value"]))), 128))
|
|
9693
9795
|
]),
|
|
9694
9796
|
_: 2
|
|
@@ -9696,17 +9798,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9696
9798
|
f.controlType === "radio" ? (openBlock(), createBlock(u, {
|
|
9697
9799
|
key: 2,
|
|
9698
9800
|
modelValue: n.modelObj[f.propDbName],
|
|
9699
|
-
"onUpdate:modelValue": (
|
|
9801
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9700
9802
|
size: f.size ? f.size : e.small,
|
|
9701
9803
|
onChange: i.searchGridData
|
|
9702
9804
|
}, {
|
|
9703
9805
|
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:
|
|
9806
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(c, {
|
|
9807
|
+
key: C.value,
|
|
9808
|
+
label: C.value
|
|
9707
9809
|
}, {
|
|
9708
9810
|
default: withCtx(() => [
|
|
9709
|
-
createTextVNode(toDisplayString$1(
|
|
9811
|
+
createTextVNode(toDisplayString$1(C.name == null ? C.label : C.name), 1)
|
|
9710
9812
|
]),
|
|
9711
9813
|
_: 2
|
|
9712
9814
|
}, 1032, ["label"]))), 128))
|
|
@@ -9716,17 +9818,17 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9716
9818
|
f.controlType === "checkbox" ? (openBlock(), createBlock(m, {
|
|
9717
9819
|
key: 3,
|
|
9718
9820
|
modelValue: n.modelObj[f.propDbName],
|
|
9719
|
-
"onUpdate:modelValue": (
|
|
9821
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9720
9822
|
size: f.size ? f.size : e.small,
|
|
9721
9823
|
onChange: i.searchGridData
|
|
9722
9824
|
}, {
|
|
9723
9825
|
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:
|
|
9826
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.dynamicDataSourceCode ? n.optionsList[f.dynamicDataSourceCode] : f.optionGroupCode ? n.optionsList[f.optionGroupCode] : null, (C) => (openBlock(), createBlock(d, {
|
|
9827
|
+
key: C.value,
|
|
9828
|
+
label: C.value
|
|
9727
9829
|
}, {
|
|
9728
9830
|
default: withCtx(() => [
|
|
9729
|
-
createTextVNode(toDisplayString$1(
|
|
9831
|
+
createTextVNode(toDisplayString$1(C.name == null ? C.label : C.name), 1)
|
|
9730
9832
|
]),
|
|
9731
9833
|
_: 2
|
|
9732
9834
|
}, 1032, ["label"]))), 128))
|
|
@@ -9736,25 +9838,25 @@ function _sfc_render$l(e, t, o, s, n, i) {
|
|
|
9736
9838
|
f.controlType === "year" ? (openBlock(), createBlock(p, {
|
|
9737
9839
|
key: 4,
|
|
9738
9840
|
modelValue: n.modelObj[f.propDbName],
|
|
9739
|
-
"onUpdate:modelValue": (
|
|
9841
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9740
9842
|
size: f.size ? f.size : e.small,
|
|
9741
9843
|
placeholder: f.nullLabel,
|
|
9742
9844
|
type: "year",
|
|
9743
9845
|
"value-format": "yyyy",
|
|
9744
|
-
onChange: (
|
|
9846
|
+
onChange: (C) => i.searchGridData(f.controlType)
|
|
9745
9847
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "onChange"])) : createCommentVNode("", !0),
|
|
9746
9848
|
f.controlType === "month" ? (openBlock(), createBlock(p, {
|
|
9747
9849
|
key: 5,
|
|
9748
9850
|
modelValue: n.modelObj[f.propDbName],
|
|
9749
|
-
"onUpdate:modelValue": (
|
|
9851
|
+
"onUpdate:modelValue": (C) => n.modelObj[f.propDbName] = C,
|
|
9750
9852
|
size: f.size ? f.size : e.small,
|
|
9751
9853
|
placeholder: f.nullLabel,
|
|
9752
9854
|
type: "month",
|
|
9753
9855
|
"value-format": "yyyy-MM",
|
|
9754
|
-
onChange: (
|
|
9856
|
+
onChange: (C) => i.searchGridData(f.controlType)
|
|
9755
9857
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "onChange"])) : createCommentVNode("", !0)
|
|
9756
9858
|
], 64))
|
|
9757
|
-
]))), 128))
|
|
9859
|
+
], 12, _hoisted_1$8))), 128))
|
|
9758
9860
|
]);
|
|
9759
9861
|
}
|
|
9760
9862
|
const listToolbarPage = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l]]), _sfc_main$k = {
|
|
@@ -9991,21 +10093,21 @@ function _sfc_render$j(e, t, o, s, n, i) {
|
|
|
9991
10093
|
dropdown: withCtx(() => [
|
|
9992
10094
|
createVNode(r, null, {
|
|
9993
10095
|
default: withCtx(() => [
|
|
9994
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (
|
|
9995
|
-
key:
|
|
10096
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.buttons, (_, C) => (openBlock(), createElementBlock("span", {
|
|
10097
|
+
key: _.code + C
|
|
9996
10098
|
}, [
|
|
9997
10099
|
withDirectives((openBlock(), createBlock(a, {
|
|
9998
|
-
command:
|
|
10100
|
+
command: _.code,
|
|
9999
10101
|
disabled: e.preventReclick
|
|
10000
10102
|
}, {
|
|
10001
10103
|
default: withCtx(() => [
|
|
10002
|
-
createTextVNode(toDisplayString$1(
|
|
10104
|
+
createTextVNode(toDisplayString$1(_.label ? _.label : _.code === "search" ? e.$t("superPageMessage.searchButtonLabel") : ""), 1)
|
|
10003
10105
|
]),
|
|
10004
10106
|
_: 2
|
|
10005
10107
|
}, 1032, ["command", "disabled"])), [
|
|
10006
10108
|
[
|
|
10007
10109
|
m,
|
|
10008
|
-
o.permissionPrefix && o.permissionPrefix !== "" ? o.permissionPrefix +
|
|
10110
|
+
o.permissionPrefix && o.permissionPrefix !== "" ? o.permissionPrefix + _.code : ""
|
|
10009
10111
|
]
|
|
10010
10112
|
])
|
|
10011
10113
|
]))), 128))
|
|
@@ -10075,7 +10177,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10075
10177
|
}, judgeFlag = this.judgeDataNumber(button, ids, !1);
|
|
10076
10178
|
if (!judgeFlag)
|
|
10077
10179
|
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) {
|
|
10180
|
+
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
10181
|
let e, t;
|
|
10080
10182
|
ids && ids.length > 0 && (t = ids[0]), entities && entities.length > 0 && (e = entities[0]), this.jumpToPage(
|
|
10081
10183
|
button.jumpPage,
|
|
@@ -10304,7 +10406,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10304
10406
|
).then(() => {
|
|
10305
10407
|
let path = restfulApiPath;
|
|
10306
10408
|
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 = {
|
|
10409
|
+
const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission, param = {
|
|
10308
10410
|
ids,
|
|
10309
10411
|
functionCode: button.functionCode,
|
|
10310
10412
|
isPermission: isPermission + ""
|
|
@@ -10342,7 +10444,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10342
10444
|
!t && c.templateI18nLable && (t = c.templateI18nLable);
|
|
10343
10445
|
let u = "?1=1";
|
|
10344
10446
|
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";
|
|
10447
|
+
const m = c.isPermission === void 0 || c.isPermission === "true" || c.isPermission;
|
|
10346
10448
|
u += "&isPermission=" + m;
|
|
10347
10449
|
}
|
|
10348
10450
|
const d = this.getBaseUrl(n);
|
|
@@ -10366,8 +10468,8 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10366
10468
|
JSON.stringify(this.additionalParamMap)
|
|
10367
10469
|
);
|
|
10368
10470
|
}
|
|
10369
|
-
const isPermission = button.isPermission === void 0 || button.isPermission === "true";
|
|
10370
|
-
param.append("isPermission", isPermission);
|
|
10471
|
+
const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission;
|
|
10472
|
+
param.append("isPermission", isPermission + "");
|
|
10371
10473
|
let path = restfulApiPath;
|
|
10372
10474
|
system.standard === !1 && !path && (path = this.getBaseUrl(system) + "/dsc/commons/import-data"), path = this.getRealRestApiPath(path, system);
|
|
10373
10475
|
let request;
|
|
@@ -10441,24 +10543,24 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10441
10543
|
type: "warning"
|
|
10442
10544
|
}
|
|
10443
10545
|
).then(() => {
|
|
10444
|
-
const
|
|
10546
|
+
const _ = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, C = {
|
|
10445
10547
|
ids: e,
|
|
10446
10548
|
formNoRuleCode: r,
|
|
10447
10549
|
tableName: s,
|
|
10448
10550
|
functionCode: a.functionCode,
|
|
10449
|
-
isPermission:
|
|
10551
|
+
isPermission: _ + ""
|
|
10450
10552
|
};
|
|
10451
|
-
this.judgeHeavyList && (
|
|
10553
|
+
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
10554
|
let y;
|
|
10453
10555
|
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
|
|
10556
|
+
const S = this.getSaveFormRequestByParam(
|
|
10455
10557
|
t,
|
|
10456
10558
|
o,
|
|
10457
|
-
|
|
10559
|
+
C,
|
|
10458
10560
|
i,
|
|
10459
10561
|
y
|
|
10460
10562
|
);
|
|
10461
|
-
|
|
10563
|
+
S && (a.loading = !0, S.then((w) => {
|
|
10462
10564
|
this.refreshMyList(a.successOperation), this.$message({
|
|
10463
10565
|
showClose: !0,
|
|
10464
10566
|
type: "success",
|
|
@@ -10471,11 +10573,11 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10471
10573
|
additionalParamMap: this.additionalParamMap
|
|
10472
10574
|
}
|
|
10473
10575
|
), a.loading = !1;
|
|
10474
|
-
}).catch((
|
|
10576
|
+
}).catch((w) => {
|
|
10475
10577
|
this.refreshMyList(a.successOperation), a.loading = !1;
|
|
10476
10578
|
}));
|
|
10477
|
-
}).catch((
|
|
10478
|
-
console.log(
|
|
10579
|
+
}).catch((_) => {
|
|
10580
|
+
console.log(_);
|
|
10479
10581
|
});
|
|
10480
10582
|
},
|
|
10481
10583
|
// 获得字段类型集合
|
|
@@ -10650,32 +10752,32 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10650
10752
|
})) : this.colSetting.options.listViewOrderProp && this.colSetting.options.listViewOrderMode && (f.initSortInfo = {
|
|
10651
10753
|
order: this.colSetting.options.listViewOrderMode
|
|
10652
10754
|
}, 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 =
|
|
10755
|
+
const _ = this.colSetting.options.listViewTreeTableSetting;
|
|
10756
|
+
if (_) {
|
|
10757
|
+
const D = _.parentProp;
|
|
10656
10758
|
let F, M;
|
|
10657
10759
|
if (D && D.indexOf("~~") > 0 && (F = D.substring(0, D.indexOf("~~")), M = D.substring(
|
|
10658
10760
|
D.indexOf("~~") + 2
|
|
10659
10761
|
)), n ? f.parentProp = M : f.parentProp = F, f.parentProp) {
|
|
10660
10762
|
f.extraParam.listViewTreeSetting = JSON.stringify(
|
|
10661
|
-
|
|
10763
|
+
_
|
|
10662
10764
|
);
|
|
10663
|
-
const $ =
|
|
10765
|
+
const $ = _.lazy;
|
|
10664
10766
|
$ == null ? f.lazy = !0 : f.lazy = $;
|
|
10665
|
-
const B =
|
|
10767
|
+
const B = _.defaultExpandAll;
|
|
10666
10768
|
B == null ? f.defaultExpandAll = !1 : f.defaultExpandAll = B, n && (f.subRowUrl = e + "/dsc/commons/list-subs");
|
|
10667
10769
|
}
|
|
10668
10770
|
}
|
|
10669
|
-
const
|
|
10670
|
-
|
|
10771
|
+
const C = getStoreInfo(this.pageCode, "_pagePreview");
|
|
10772
|
+
C !== void 0 && C === !0 && (f.loadBeforeSend = function() {
|
|
10671
10773
|
return !1;
|
|
10672
10774
|
});
|
|
10673
10775
|
let y = getStoreInfo(this.pageCode, "_pageDevMode");
|
|
10674
10776
|
y == null && (y = !1), f.pageDevMode = y;
|
|
10675
|
-
let
|
|
10676
|
-
this.colSetting.options && this.colSetting.options.formNoRuleCode && (
|
|
10677
|
-
let
|
|
10678
|
-
this.colSetting.options && this.colSetting.options.listToolbarList && (
|
|
10777
|
+
let S = "";
|
|
10778
|
+
this.colSetting.options && this.colSetting.options.formNoRuleCode && (S = this.colSetting.options.formNoRuleCode);
|
|
10779
|
+
let w;
|
|
10780
|
+
this.colSetting.options && this.colSetting.options.listToolbarList && (w = this.colSetting.options.listToolbarList);
|
|
10679
10781
|
const E = this.colSetting.baseSetting.modelCode;
|
|
10680
10782
|
let I = "";
|
|
10681
10783
|
this.colSetting.options && this.colSetting.options.importRuleCode && (I = this.colSetting.options.importRuleCode), f.isWorkflowEntity = o;
|
|
@@ -10687,7 +10789,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10687
10789
|
D && (f.eventCallBack = D, this.colSetting.options.styleCustomMethod && this.colSetting.options.styleCustomMethod !== "" && D && D[this.colSetting.options.styleCustomMethod] && (f.rowStyleRender = D[this.colSetting.options.styleCustomMethod]));
|
|
10688
10790
|
}
|
|
10689
10791
|
return {
|
|
10690
|
-
listToolbarList:
|
|
10792
|
+
listToolbarList: w,
|
|
10691
10793
|
urlToListData: a,
|
|
10692
10794
|
// 列表组件配置属性
|
|
10693
10795
|
options: f,
|
|
@@ -10718,11 +10820,11 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10718
10820
|
// 按钮的“自动设值”配置
|
|
10719
10821
|
dataConversionRule: null,
|
|
10720
10822
|
// 数据转换规则编码
|
|
10721
|
-
formNoRuleCode:
|
|
10823
|
+
formNoRuleCode: S,
|
|
10722
10824
|
// 表单编号规则
|
|
10723
10825
|
importRuleCode: I,
|
|
10724
10826
|
// 导入编码
|
|
10725
|
-
isPreview:
|
|
10827
|
+
isPreview: C,
|
|
10726
10828
|
// 是否是预览
|
|
10727
10829
|
button: null,
|
|
10728
10830
|
// 点击的当前按钮
|
|
@@ -11546,7 +11648,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11546
11648
|
entityName,
|
|
11547
11649
|
beanName
|
|
11548
11650
|
};
|
|
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) {
|
|
11651
|
+
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
11652
|
let e;
|
|
11551
11653
|
formData && (e = formData.id || formData.ID), this.jumpToPage(button.jumpPage, system, e, formData, additionalParamMap, null, button.code, this.pageCode);
|
|
11552
11654
|
return;
|
|
@@ -11691,10 +11793,10 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11691
11793
|
this.reviewButton(), this.$message.success(this.$t(o));
|
|
11692
11794
|
},
|
|
11693
11795
|
// 表单页面(非流程)-提交/同意/不同意
|
|
11694
|
-
getSubmitFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
11695
|
-
const
|
|
11796
|
+
getSubmitFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _) {
|
|
11797
|
+
const C = "superPageMessage.whetherToConfirm" + this.upperFirstCase(c);
|
|
11696
11798
|
this.$confirm(
|
|
11697
|
-
this.$t(
|
|
11799
|
+
this.$t(C, { name: a.label }),
|
|
11698
11800
|
this.$t("superPageMessage.tips"),
|
|
11699
11801
|
{
|
|
11700
11802
|
confirmButtonText: this.$t("superPageMessage.sure"),
|
|
@@ -11702,22 +11804,22 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11702
11804
|
type: "warning"
|
|
11703
11805
|
}
|
|
11704
11806
|
).then(() => {
|
|
11705
|
-
const y = a.isPermission === void 0 || a.isPermission === "true",
|
|
11807
|
+
const y = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, S = {
|
|
11706
11808
|
entity: e,
|
|
11707
11809
|
tableName: s,
|
|
11708
11810
|
formNoRuleCode: r,
|
|
11709
11811
|
functionCode: a.functionCode,
|
|
11710
11812
|
isPermission: y + ""
|
|
11711
11813
|
};
|
|
11712
|
-
this.judgeHeavyList && (
|
|
11713
|
-
const
|
|
11814
|
+
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;
|
|
11815
|
+
const w = this.getSaveFormRequestByParam(
|
|
11714
11816
|
t,
|
|
11715
11817
|
o,
|
|
11716
|
-
|
|
11818
|
+
S,
|
|
11717
11819
|
i,
|
|
11718
11820
|
l
|
|
11719
11821
|
);
|
|
11720
|
-
return
|
|
11822
|
+
return w && w.then((E) => {
|
|
11721
11823
|
this.dealAfterSaveForm(
|
|
11722
11824
|
E,
|
|
11723
11825
|
t.standard,
|
|
@@ -11728,7 +11830,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11728
11830
|
);
|
|
11729
11831
|
}).catch((E) => {
|
|
11730
11832
|
console.log("getSubmitFormRequest error", E);
|
|
11731
|
-
}),
|
|
11833
|
+
}), w;
|
|
11732
11834
|
}).catch(() => {
|
|
11733
11835
|
});
|
|
11734
11836
|
},
|
|
@@ -11791,7 +11893,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11791
11893
|
s = t.templateUUID, n = t.templateShowPath;
|
|
11792
11894
|
let i = "?1=1";
|
|
11793
11895
|
if (t && t.functionCode && (i += "&functionCode=" + t.functionCode), o && (i += "&tableName=" + o), t) {
|
|
11794
|
-
const r = t.isPermission === void 0 || t.isPermission === "true";
|
|
11896
|
+
const r = t.isPermission === void 0 || t.isPermission === "true" || t.isPermission;
|
|
11795
11897
|
i += "&isPermission=" + r;
|
|
11796
11898
|
}
|
|
11797
11899
|
s && n && s !== "undefined" && n !== "undefined" && s !== "null" && n !== "null" && (i += "&fileName=" + encodeURI(s) + "&showName=" + encodeURI(n));
|
|
@@ -11846,19 +11948,19 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11846
11948
|
pageHeight: m
|
|
11847
11949
|
};
|
|
11848
11950
|
this.isViewDetail() && (p.fieldPermissions = [{ name: "all_fields", canEdit: !1 }]), p.devMode = r;
|
|
11849
|
-
let
|
|
11850
|
-
this.colSetting.baseSetting.modelVersion && (
|
|
11851
|
-
const
|
|
11951
|
+
let _ = null;
|
|
11952
|
+
this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
|
|
11953
|
+
const C = this.colSetting.baseSetting.modelCode;
|
|
11852
11954
|
let y = [];
|
|
11853
|
-
const
|
|
11854
|
-
|
|
11855
|
-
let
|
|
11955
|
+
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
11956
|
+
S && (y = S.formEvents), p.events = this.packageFormEvents(C);
|
|
11957
|
+
let w = getStoreInfo(
|
|
11856
11958
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
11857
11959
|
"_formButtonPosition"
|
|
11858
11960
|
);
|
|
11859
|
-
return
|
|
11860
|
-
formViewCode:
|
|
11861
|
-
formViewVersion:
|
|
11961
|
+
return w || (w = "topLeft"), {
|
|
11962
|
+
formViewCode: C,
|
|
11963
|
+
formViewVersion: _,
|
|
11862
11964
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
11863
11965
|
entityName: e,
|
|
11864
11966
|
beanName: t,
|
|
@@ -11908,9 +12010,9 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11908
12010
|
// 是否是表单内部控件(超链接、按钮等)显示弹框
|
|
11909
12011
|
jumpPageSetting: null,
|
|
11910
12012
|
// 弹框页面的设置信息
|
|
11911
|
-
customEvents:
|
|
12013
|
+
customEvents: S ? S.customEvents : null,
|
|
11912
12014
|
isShowBuuton: !0,
|
|
11913
|
-
formButtonPosition:
|
|
12015
|
+
formButtonPosition: w,
|
|
11914
12016
|
pageType: "form",
|
|
11915
12017
|
// 页面类型
|
|
11916
12018
|
subTablePageInfo: {}
|
|
@@ -12167,6 +12269,7 @@ function _sfc_render$g(e, t, o, s, n, i) {
|
|
|
12167
12269
|
ref: "superForm",
|
|
12168
12270
|
"form-view-code": n.formViewCode,
|
|
12169
12271
|
"form-view-version": n.formViewVersion,
|
|
12272
|
+
"path-query": n.pathQuery,
|
|
12170
12273
|
"is-page-info": n.isPreview ? n.isPreview : n.pageDevMode ? n.pageDevMode : !1,
|
|
12171
12274
|
"tab-code": o.tabCode,
|
|
12172
12275
|
"form-button-position": n.formButtonPosition,
|
|
@@ -12176,7 +12279,7 @@ function _sfc_render$g(e, t, o, s, n, i) {
|
|
|
12176
12279
|
onShouButton: e.reviewButton,
|
|
12177
12280
|
onChangeGridRowsPerPage: e.changeSubTablePageSize,
|
|
12178
12281
|
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"]))
|
|
12282
|
+
}, 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
12283
|
], 64)) : createCommentVNode("", !0),
|
|
12181
12284
|
n.isShowPageDialog || n.isShowContentPageDialog ? (openBlock(), createBlock(c, {
|
|
12182
12285
|
key: 1,
|
|
@@ -12208,7 +12311,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12208
12311
|
beanName,
|
|
12209
12312
|
isWorkflowEntity: !0
|
|
12210
12313
|
};
|
|
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) {
|
|
12314
|
+
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
12315
|
let e;
|
|
12213
12316
|
model && (e = model.id || model.ID), this.jumpToPage(
|
|
12214
12317
|
button.jumpPage,
|
|
@@ -12248,7 +12351,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12248
12351
|
}
|
|
12249
12352
|
},
|
|
12250
12353
|
// 按钮组中各按钮的操作
|
|
12251
|
-
clickWorflowButton(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
12354
|
+
clickWorflowButton(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, w, E, I, N, k) {
|
|
12252
12355
|
if (e === "startInstance" || e === "update")
|
|
12253
12356
|
this.startInstance(
|
|
12254
12357
|
t,
|
|
@@ -12263,10 +12366,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12263
12366
|
d,
|
|
12264
12367
|
m,
|
|
12265
12368
|
p,
|
|
12266
|
-
|
|
12267
|
-
|
|
12369
|
+
_,
|
|
12370
|
+
C,
|
|
12268
12371
|
e,
|
|
12269
|
-
|
|
12372
|
+
w,
|
|
12270
12373
|
E,
|
|
12271
12374
|
I,
|
|
12272
12375
|
N
|
|
@@ -12286,10 +12389,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12286
12389
|
m,
|
|
12287
12390
|
p,
|
|
12288
12391
|
f,
|
|
12289
|
-
|
|
12290
|
-
|
|
12392
|
+
_,
|
|
12393
|
+
C,
|
|
12291
12394
|
e,
|
|
12292
|
-
|
|
12395
|
+
w,
|
|
12293
12396
|
E,
|
|
12294
12397
|
I,
|
|
12295
12398
|
N
|
|
@@ -12307,10 +12410,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12307
12410
|
m,
|
|
12308
12411
|
p,
|
|
12309
12412
|
f,
|
|
12310
|
-
|
|
12311
|
-
|
|
12413
|
+
_,
|
|
12414
|
+
C,
|
|
12312
12415
|
e,
|
|
12313
|
-
|
|
12416
|
+
w,
|
|
12314
12417
|
E,
|
|
12315
12418
|
I,
|
|
12316
12419
|
N
|
|
@@ -12325,9 +12428,9 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12325
12428
|
c,
|
|
12326
12429
|
u,
|
|
12327
12430
|
m,
|
|
12328
|
-
|
|
12431
|
+
C,
|
|
12329
12432
|
e,
|
|
12330
|
-
|
|
12433
|
+
w,
|
|
12331
12434
|
E,
|
|
12332
12435
|
N
|
|
12333
12436
|
);
|
|
@@ -12341,9 +12444,9 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12341
12444
|
c,
|
|
12342
12445
|
u,
|
|
12343
12446
|
m,
|
|
12344
|
-
|
|
12447
|
+
C,
|
|
12345
12448
|
e,
|
|
12346
|
-
|
|
12449
|
+
w,
|
|
12347
12450
|
E,
|
|
12348
12451
|
N
|
|
12349
12452
|
);
|
|
@@ -12357,9 +12460,9 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12357
12460
|
c,
|
|
12358
12461
|
u,
|
|
12359
12462
|
m,
|
|
12360
|
-
|
|
12463
|
+
C,
|
|
12361
12464
|
e,
|
|
12362
|
-
|
|
12465
|
+
w,
|
|
12363
12466
|
E,
|
|
12364
12467
|
N
|
|
12365
12468
|
);
|
|
@@ -12381,13 +12484,13 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12381
12484
|
d,
|
|
12382
12485
|
m,
|
|
12383
12486
|
p,
|
|
12384
|
-
|
|
12487
|
+
_,
|
|
12385
12488
|
D,
|
|
12386
|
-
|
|
12489
|
+
C,
|
|
12387
12490
|
F,
|
|
12388
12491
|
y,
|
|
12389
|
-
|
|
12390
|
-
|
|
12492
|
+
S,
|
|
12493
|
+
w,
|
|
12391
12494
|
E,
|
|
12392
12495
|
I,
|
|
12393
12496
|
N,
|
|
@@ -12395,7 +12498,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12395
12498
|
);
|
|
12396
12499
|
}
|
|
12397
12500
|
} else
|
|
12398
|
-
e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, s,
|
|
12501
|
+
e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, s, C, N);
|
|
12399
12502
|
},
|
|
12400
12503
|
// 发起流程。保存按钮的操作
|
|
12401
12504
|
startInstance(system, tableName, model, definitionId, emailTemplateCode, formViewCode, formViewVersion, myEntityName, myJsContent, formNoRuleCode, successOperation, dataConversionRule, autoSetValueData, logSettingText, buttonType, isNeedValueMapping, taskMap, needDeleteFileUuid, beanName) {
|
|
@@ -12894,7 +12997,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12894
12997
|
);
|
|
12895
12998
|
},
|
|
12896
12999
|
// 流程表单页面(非流程处理的)-提交/同意/不同意
|
|
12897
|
-
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f,
|
|
13000
|
+
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, w, E) {
|
|
12898
13001
|
let I;
|
|
12899
13002
|
e.standard === !1 && (I = this.getBaseUrl(e) + d), this.transactTask(
|
|
12900
13003
|
e,
|
|
@@ -12916,11 +13019,11 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12916
13019
|
m,
|
|
12917
13020
|
p,
|
|
12918
13021
|
f,
|
|
12919
|
-
|
|
12920
|
-
S,
|
|
12921
|
-
y,
|
|
13022
|
+
_,
|
|
12922
13023
|
C,
|
|
12923
|
-
|
|
13024
|
+
y,
|
|
13025
|
+
S,
|
|
13026
|
+
w,
|
|
12924
13027
|
E
|
|
12925
13028
|
);
|
|
12926
13029
|
},
|
|
@@ -13141,7 +13244,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
13141
13244
|
s = t.templateUUID, n = t.templateShowPath;
|
|
13142
13245
|
let i = "?1=1";
|
|
13143
13246
|
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";
|
|
13247
|
+
const r = t.isPermission === void 0 || t.isPermission === "true" || t.isPermission;
|
|
13145
13248
|
i += "&isPermission=" + r;
|
|
13146
13249
|
}
|
|
13147
13250
|
const a = this.getBaseUrl(e);
|
|
@@ -13424,19 +13527,19 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13424
13527
|
p === void 0 && (p = !1);
|
|
13425
13528
|
let f = getStoreInfo(this.pageCode, "_pageDevMode");
|
|
13426
13529
|
f == null && (f = !1), d.devMode = f;
|
|
13427
|
-
let
|
|
13428
|
-
this.colSetting.baseSetting.modelVersion && (
|
|
13429
|
-
const
|
|
13530
|
+
let _ = null;
|
|
13531
|
+
this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
|
|
13532
|
+
const C = this.colSetting.baseSetting.modelCode;
|
|
13430
13533
|
let y = [];
|
|
13431
|
-
const
|
|
13432
|
-
|
|
13433
|
-
let
|
|
13534
|
+
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
13535
|
+
S && (y = S.formEvents), d.events = this.packageFormEvents(C);
|
|
13536
|
+
let w = getStoreInfo(
|
|
13434
13537
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
13435
13538
|
"_formButtonPosition"
|
|
13436
13539
|
);
|
|
13437
|
-
return
|
|
13438
|
-
formViewCode:
|
|
13439
|
-
formViewVersion:
|
|
13540
|
+
return w || (w = "topLeft"), {
|
|
13541
|
+
formViewCode: C,
|
|
13542
|
+
formViewVersion: _,
|
|
13440
13543
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
13441
13544
|
entityName: o,
|
|
13442
13545
|
beanName: s,
|
|
@@ -13533,9 +13636,9 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13533
13636
|
// 关闭弹框时是否需要字段映射
|
|
13534
13637
|
firstNodeInfo: null,
|
|
13535
13638
|
// 第一节点的信息
|
|
13536
|
-
customEvents:
|
|
13639
|
+
customEvents: S ? S.customEvents : null,
|
|
13537
13640
|
isShowBuuton: !1,
|
|
13538
|
-
formButtonPosition:
|
|
13641
|
+
formButtonPosition: w,
|
|
13539
13642
|
// 表单按钮显示位置,
|
|
13540
13643
|
pageType: "form",
|
|
13541
13644
|
// 页面类型
|
|
@@ -13962,11 +14065,11 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13962
14065
|
u.forEach((m) => {
|
|
13963
14066
|
if (m === "__subRules") {
|
|
13964
14067
|
const p = d.__subRules;
|
|
13965
|
-
Object.keys(p).forEach((
|
|
13966
|
-
l.subRules || (l.subRules = {}), l.subRules[
|
|
13967
|
-
l.subRules[
|
|
13968
|
-
p[
|
|
13969
|
-
) : l.subRules[
|
|
14068
|
+
Object.keys(p).forEach((_) => {
|
|
14069
|
+
l.subRules || (l.subRules = {}), l.subRules[_] ? Object.assign(
|
|
14070
|
+
l.subRules[_],
|
|
14071
|
+
p[_]
|
|
14072
|
+
) : l.subRules[_] = p[_];
|
|
13970
14073
|
});
|
|
13971
14074
|
} else
|
|
13972
14075
|
l[m] = d[m];
|
|
@@ -14439,7 +14542,7 @@ const FormPage = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
|
|
|
14439
14542
|
t.chartQueryCode = e, bus.$on(
|
|
14440
14543
|
t.chartQueryCode + "-clickChartSearchButton",
|
|
14441
14544
|
function({ searchParam: o, isInitSearch: s }) {
|
|
14442
|
-
if (console.log("准备传递数据", o), !t.isPreview && !(s &&
|
|
14545
|
+
if (console.log("准备传递数据", o), !t.isPreview && !(s && t.isInitialQuery === !1)) {
|
|
14443
14546
|
if (!o) {
|
|
14444
14547
|
t.query = null;
|
|
14445
14548
|
return;
|
|
@@ -14861,7 +14964,7 @@ function _sfc_render$8(e, t, o, s, n, i) {
|
|
|
14861
14964
|
plain: o.col.options.buttonPlain ? o.col.options.buttonPlain : !1,
|
|
14862
14965
|
round: o.col.options.buttonRound ? o.col.options.buttonRound : !1,
|
|
14863
14966
|
circle: o.col.options.buttonCircle ? o.col.options.buttonCircle : !1,
|
|
14864
|
-
onClick: t[0] || (t[0] = (
|
|
14967
|
+
onClick: t[0] || (t[0] = (_) => e.clickButtonEvent(o.col, n.system))
|
|
14865
14968
|
}, {
|
|
14866
14969
|
default: withCtx(() => [
|
|
14867
14970
|
createTextVNode(toDisplayString$1(e.$t(o.col.baseSetting.label)), 1)
|
|
@@ -15638,7 +15741,7 @@ const TabPage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render
|
|
|
15638
15741
|
};
|
|
15639
15742
|
let a;
|
|
15640
15743
|
const r = window.$vueApp.config.globalProperties.baseURL + "/dsc/commons/exportChart";
|
|
15641
|
-
axios$1.defaults.headers.common.Authorization =
|
|
15744
|
+
axios$1.defaults.headers.common.Authorization = Cookies.get("JWT"), a = axios$1.post(r, i, { responseType: "blob" }), a.then((l) => {
|
|
15642
15745
|
const c = document.createElement("a");
|
|
15643
15746
|
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
15747
|
});
|
|
@@ -15721,9 +15824,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15721
15824
|
n.isTabChartView ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
15722
15825
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15723
15826
|
default: withCtx(() => [
|
|
15724
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15827
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15725
15828
|
!n.chartQuerySetting || n.isTabView || n.chartQuerySetting && n.chartQuerySetting.baseSetting.modelCode !== f.baseSetting.modelCode ? (openBlock(), createBlock(r, {
|
|
15726
|
-
key:
|
|
15829
|
+
key: _,
|
|
15727
15830
|
span: f.options && f.options.colWidth ? f.options.colWidth : 24,
|
|
15728
15831
|
class: normalizeClass({
|
|
15729
15832
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter",
|
|
@@ -15755,9 +15858,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15755
15858
|
}, [
|
|
15756
15859
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15757
15860
|
default: withCtx(() => [
|
|
15758
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15861
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15759
15862
|
n.isListView ? (openBlock(), createBlock(r, {
|
|
15760
|
-
key:
|
|
15863
|
+
key: _,
|
|
15761
15864
|
span: i.getMyColWidth(f),
|
|
15762
15865
|
class: normalizeClass({
|
|
15763
15866
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|
|
@@ -15792,9 +15895,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15792
15895
|
gutter: 16
|
|
15793
15896
|
}, {
|
|
15794
15897
|
default: withCtx(() => [
|
|
15795
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15898
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15796
15899
|
n.isChartView && f.baseSetting.type !== "chartQuery" ? (openBlock(), createBlock(r, {
|
|
15797
|
-
key:
|
|
15900
|
+
key: _,
|
|
15798
15901
|
span: i.getMyColWidth(f),
|
|
15799
15902
|
class: normalizeClass({
|
|
15800
15903
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|
|
@@ -15823,9 +15926,9 @@ function _sfc_render$3(e, t, o, s, n, i) {
|
|
|
15823
15926
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
15824
15927
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.pageSettingList, (m, p) => (openBlock(), createBlock(l, { key: p }, {
|
|
15825
15928
|
default: withCtx(() => [
|
|
15826
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f,
|
|
15929
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.colList, (f, _) => (openBlock(), createElementBlock(Fragment, null, [
|
|
15827
15930
|
!n.chartQuerySetting || n.isTabView || n.chartQuerySetting && n.chartQuerySetting.baseSetting.modelCode !== f.baseSetting.modelCode ? (openBlock(), createBlock(r, {
|
|
15828
|
-
key:
|
|
15931
|
+
key: _,
|
|
15829
15932
|
span: f.options && f.options.colWidth ? f.options.colWidth : 24,
|
|
15830
15933
|
class: normalizeClass({
|
|
15831
15934
|
placeholder: f.baseSetting.type === "placeholder" || f.baseSetting.type === "enter"
|