super-pages 0.0.23-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/README.md +7 -7
- package/index.html +13 -13
- package/lib/super-pages.css +1 -1
- package/lib/super-pages.js +302 -298
- package/lib/super-pages.umd.cjs +1 -1
- package/package.json +2 -2
- package/packages/index.js +30 -30
- package/packages/super-page/index.js +9 -9
- package/packages/super-page/src/chart-page.vue +1 -1
- package/packages/super-page/src/form-head.vue +74 -74
- package/packages/super-page/src/group-tag.vue +21 -21
- package/packages/super-page/src/remove-signer-dialog.vue +103 -103
- package/packages/super-page/src/sub-tab-page.vue +79 -79
- package/packages/super-page/src/task-informition-dialog.vue +82 -82
- package/packages/super-page/src/util/api.js +37 -37
- package/packages/super-page/src/util/callEvents.js +62 -62
- package/packages/super-page/src/util/commonButtonEvent.js +70 -70
- package/packages/super-page/src/util/store.js +3 -3
- package/packages/super-page/src/util/super-page.js +29 -29
- package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
- package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
- package/packages/super-page-dialog/index.js +9 -9
- package/packages/utils/gogocodeTransfer.js +59 -59
- package/src/utils/common-util.js +9 -9
- package/vite.config.js +36 -36
package/lib/super-pages.js
CHANGED
|
@@ -989,7 +989,7 @@ function createScanner(e) {
|
|
|
989
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() {
|
|
@@ -1013,7 +1013,7 @@ function createScanner(e) {
|
|
|
1013
1013
|
currentChar: C,
|
|
1014
1014
|
currentPeek: y,
|
|
1015
1015
|
next: S,
|
|
1016
|
-
peek:
|
|
1016
|
+
peek: w,
|
|
1017
1017
|
reset: E,
|
|
1018
1018
|
resetPeek: I,
|
|
1019
1019
|
skipToPeek: N
|
|
@@ -1034,9 +1034,9 @@ function createTokenizer(e, t = {}) {
|
|
|
1034
1034
|
inLinked: !1,
|
|
1035
1035
|
text: ""
|
|
1036
1036
|
}, c = () => l, { onError: u } = t;
|
|
1037
|
-
function d(b, g,
|
|
1037
|
+
function d(b, g, v, ...O) {
|
|
1038
1038
|
const R = c();
|
|
1039
|
-
if (g.column +=
|
|
1039
|
+
if (g.column += v, g.offset += v, u) {
|
|
1040
1040
|
const L = o ? createLocation(R.startLoc, g) : null, G = createCompileError(b, L, {
|
|
1041
1041
|
domain: ERROR_DOMAIN$3,
|
|
1042
1042
|
args: O
|
|
@@ -1044,10 +1044,10 @@ function createTokenizer(e, t = {}) {
|
|
|
1044
1044
|
u(G);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function m(b, g,
|
|
1047
|
+
function m(b, g, v) {
|
|
1048
1048
|
b.endLoc = i(), b.currentType = g;
|
|
1049
1049
|
const O = { type: g };
|
|
1050
|
-
return o && (O.loc = createLocation(b.startLoc, b.endLoc)),
|
|
1050
|
+
return o && (O.loc = createLocation(b.startLoc, b.endLoc)), v != null && (O.value = v), O;
|
|
1051
1051
|
}
|
|
1052
1052
|
const p = (b) => m(
|
|
1053
1053
|
b,
|
|
@@ -1081,57 +1081,57 @@ function createTokenizer(e, t = {}) {
|
|
|
1081
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
1088
|
_(b);
|
|
1089
1089
|
const O = y(b.currentPeek());
|
|
1090
1090
|
return b.resetPeek(), O;
|
|
1091
1091
|
}
|
|
1092
1092
|
function E(b, g) {
|
|
1093
|
-
const { currentType:
|
|
1094
|
-
if (
|
|
1093
|
+
const { currentType: v } = g;
|
|
1094
|
+
if (v !== 2)
|
|
1095
1095
|
return !1;
|
|
1096
1096
|
_(b);
|
|
1097
1097
|
const O = b.currentPeek() === "-" ? b.peek() : b.currentPeek(), R = S(O);
|
|
1098
1098
|
return b.resetPeek(), R;
|
|
1099
1099
|
}
|
|
1100
1100
|
function I(b, g) {
|
|
1101
|
-
const { currentType:
|
|
1102
|
-
if (
|
|
1101
|
+
const { currentType: v } = g;
|
|
1102
|
+
if (v !== 2)
|
|
1103
1103
|
return !1;
|
|
1104
1104
|
_(b);
|
|
1105
1105
|
const O = b.currentPeek() === LITERAL_DELIMITER;
|
|
1106
1106
|
return b.resetPeek(), O;
|
|
1107
1107
|
}
|
|
1108
1108
|
function N(b, g) {
|
|
1109
|
-
const { currentType:
|
|
1110
|
-
if (
|
|
1109
|
+
const { currentType: v } = g;
|
|
1110
|
+
if (v !== 8)
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
_(b);
|
|
1113
1113
|
const O = b.currentPeek() === ".";
|
|
1114
1114
|
return b.resetPeek(), O;
|
|
1115
1115
|
}
|
|
1116
1116
|
function k(b, g) {
|
|
1117
|
-
const { currentType:
|
|
1118
|
-
if (
|
|
1117
|
+
const { currentType: v } = g;
|
|
1118
|
+
if (v !== 9)
|
|
1119
1119
|
return !1;
|
|
1120
1120
|
_(b);
|
|
1121
1121
|
const O = y(b.currentPeek());
|
|
1122
1122
|
return b.resetPeek(), O;
|
|
1123
1123
|
}
|
|
1124
1124
|
function D(b, g) {
|
|
1125
|
-
const { currentType:
|
|
1126
|
-
if (!(
|
|
1125
|
+
const { currentType: v } = g;
|
|
1126
|
+
if (!(v === 8 || v === 12))
|
|
1127
1127
|
return !1;
|
|
1128
1128
|
_(b);
|
|
1129
1129
|
const O = b.currentPeek() === ":";
|
|
1130
1130
|
return b.resetPeek(), O;
|
|
1131
1131
|
}
|
|
1132
1132
|
function F(b, g) {
|
|
1133
|
-
const { currentType:
|
|
1134
|
-
if (
|
|
1133
|
+
const { currentType: v } = g;
|
|
1134
|
+
if (v !== 10)
|
|
1135
1135
|
return !1;
|
|
1136
1136
|
const O = () => {
|
|
1137
1137
|
const L = b.currentPeek();
|
|
@@ -1145,26 +1145,26 @@ function createTokenizer(e, t = {}) {
|
|
|
1145
1145
|
return b.resetPeek(), g;
|
|
1146
1146
|
}
|
|
1147
1147
|
function $(b) {
|
|
1148
|
-
const g = _(b),
|
|
1148
|
+
const g = _(b), v = b.currentPeek() === "%" && b.peek() === "{";
|
|
1149
1149
|
return b.resetPeek(), {
|
|
1150
|
-
isModulo:
|
|
1150
|
+
isModulo: v,
|
|
1151
1151
|
hasSpace: g.length > 0
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
1154
|
function B(b, g = !0) {
|
|
1155
|
-
const
|
|
1155
|
+
const v = (R = !1, L = "", G = !1) => {
|
|
1156
1156
|
const H = b.currentPeek();
|
|
1157
|
-
return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (b.peek(),
|
|
1158
|
-
}, O =
|
|
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
1159
|
return g && b.resetPeek(), O;
|
|
1160
1160
|
}
|
|
1161
1161
|
function U(b, g) {
|
|
1162
|
-
const
|
|
1163
|
-
return
|
|
1162
|
+
const v = b.currentChar();
|
|
1163
|
+
return v === EOF ? EOF : g(v) ? (b.next(), v) : null;
|
|
1164
1164
|
}
|
|
1165
1165
|
function X(b) {
|
|
1166
|
-
return U(b, (
|
|
1167
|
-
const O =
|
|
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
|
|
@@ -1173,24 +1173,24 @@ function createTokenizer(e, t = {}) {
|
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
function ne(b) {
|
|
1176
|
-
return U(b, (
|
|
1177
|
-
const O =
|
|
1176
|
+
return U(b, (v) => {
|
|
1177
|
+
const O = v.charCodeAt(0);
|
|
1178
1178
|
return O >= 48 && O <= 57;
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
1181
|
function W(b) {
|
|
1182
|
-
return U(b, (
|
|
1183
|
-
const O =
|
|
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
1189
|
function Z(b) {
|
|
1190
|
-
let g = "",
|
|
1190
|
+
let g = "", v = "";
|
|
1191
1191
|
for (; g = ne(b); )
|
|
1192
|
-
|
|
1193
|
-
return
|
|
1192
|
+
v += g;
|
|
1193
|
+
return v;
|
|
1194
1194
|
}
|
|
1195
1195
|
function ie(b) {
|
|
1196
1196
|
C(b);
|
|
@@ -1200,33 +1200,33 @@ function createTokenizer(e, t = {}) {
|
|
|
1200
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 (
|
|
1206
|
+
if (v === "%")
|
|
1207
1207
|
if (B(b))
|
|
1208
|
-
g +=
|
|
1208
|
+
g += v, b.next();
|
|
1209
1209
|
else
|
|
1210
1210
|
break;
|
|
1211
|
-
else if (
|
|
1211
|
+
else if (v === CHAR_SP || v === CHAR_LF)
|
|
1212
1212
|
if (B(b))
|
|
1213
|
-
g +=
|
|
1213
|
+
g += v, b.next();
|
|
1214
1214
|
else {
|
|
1215
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
1224
|
function j(b) {
|
|
1225
1225
|
C(b);
|
|
1226
|
-
let g = "",
|
|
1226
|
+
let g = "", v = "";
|
|
1227
1227
|
for (; g = X(b); )
|
|
1228
|
-
|
|
1229
|
-
return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0),
|
|
1228
|
+
v += g;
|
|
1229
|
+
return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), v;
|
|
1230
1230
|
}
|
|
1231
1231
|
function te(b) {
|
|
1232
1232
|
C(b);
|
|
@@ -1235,12 +1235,12 @@ function createTokenizer(e, t = {}) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
function ae(b) {
|
|
1237
1237
|
C(b), f(b, "'");
|
|
1238
|
-
let g = "",
|
|
1238
|
+
let g = "", v = "";
|
|
1239
1239
|
const O = (L) => L !== LITERAL_DELIMITER && L !== CHAR_LF;
|
|
1240
1240
|
for (; g = U(b, O); )
|
|
1241
|
-
g === "\\" ?
|
|
1241
|
+
g === "\\" ? v += re(b) : v += g;
|
|
1242
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, "'")),
|
|
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
1245
|
function re(b) {
|
|
1246
1246
|
const g = b.currentChar();
|
|
@@ -1256,10 +1256,10 @@ function createTokenizer(e, t = {}) {
|
|
|
1256
1256
|
return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, g), "";
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
function oe(b, g,
|
|
1259
|
+
function oe(b, g, v) {
|
|
1260
1260
|
f(b, g);
|
|
1261
1261
|
let O = "";
|
|
1262
|
-
for (let R = 0; R <
|
|
1262
|
+
for (let R = 0; R < v; R++) {
|
|
1263
1263
|
const L = W(b);
|
|
1264
1264
|
if (!L) {
|
|
1265
1265
|
d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${g}${O}${b.currentChar()}`);
|
|
@@ -1271,22 +1271,22 @@ function createTokenizer(e, t = {}) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
function le(b) {
|
|
1273
1273
|
C(b);
|
|
1274
|
-
let g = "",
|
|
1274
|
+
let g = "", v = "";
|
|
1275
1275
|
const O = (R) => R !== "{" && R !== "}" && R !== CHAR_SP && R !== CHAR_LF;
|
|
1276
1276
|
for (; g = U(b, O); )
|
|
1277
|
-
|
|
1278
|
-
return
|
|
1277
|
+
v += g;
|
|
1278
|
+
return v;
|
|
1279
1279
|
}
|
|
1280
1280
|
function de(b) {
|
|
1281
|
-
let g = "",
|
|
1281
|
+
let g = "", v = "";
|
|
1282
1282
|
for (; g = X(b); )
|
|
1283
|
-
|
|
1284
|
-
return
|
|
1283
|
+
v += g;
|
|
1284
|
+
return v;
|
|
1285
1285
|
}
|
|
1286
1286
|
function ce(b) {
|
|
1287
|
-
const g = (
|
|
1287
|
+
const g = (v = !1, O) => {
|
|
1288
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(
|
|
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
|
}
|
|
@@ -1300,47 +1300,47 @@ function createTokenizer(e, t = {}) {
|
|
|
1300
1300
|
return C(b), g;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Q(b, g) {
|
|
1303
|
-
let
|
|
1303
|
+
let v = null;
|
|
1304
1304
|
switch (b.currentChar()) {
|
|
1305
1305
|
case "{":
|
|
1306
|
-
return g.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), b.next(),
|
|
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
|
-
), C(b), g.braceNest++,
|
|
1311
|
+
), C(b), g.braceNest++, v;
|
|
1312
1312
|
case "}":
|
|
1313
|
-
return g.braceNest > 0 && g.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0), b.next(),
|
|
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 && C(b), g.inLinked && g.braceNest === 0 && (g.inLinked = !1),
|
|
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
1323
|
if (M(b))
|
|
1324
|
-
return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0),
|
|
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
1326
|
return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, z(b, g);
|
|
1327
|
-
if (R =
|
|
1328
|
-
return
|
|
1327
|
+
if (R = w(b, g))
|
|
1328
|
+
return v = m(g, 5, j(b)), C(b), v;
|
|
1329
1329
|
if (L = E(b, g))
|
|
1330
|
-
return
|
|
1330
|
+
return v = m(g, 6, te(b)), C(b), v;
|
|
1331
1331
|
if (G = I(b, g))
|
|
1332
|
-
return
|
|
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
1339
|
function q(b, g) {
|
|
1340
|
-
const { currentType:
|
|
1340
|
+
const { currentType: v } = g;
|
|
1341
1341
|
let O = null;
|
|
1342
1342
|
const R = b.currentChar();
|
|
1343
|
-
switch ((
|
|
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
1345
|
return b.next(), O = m(
|
|
1346
1346
|
g,
|
|
@@ -1363,11 +1363,11 @@ function createTokenizer(e, t = {}) {
|
|
|
1363
1363
|
/* TokenChars.LinkedDelimiter */
|
|
1364
1364
|
);
|
|
1365
1365
|
default:
|
|
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))) : (
|
|
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
1369
|
function z(b, g) {
|
|
1370
|
-
let
|
|
1370
|
+
let v = {
|
|
1371
1371
|
type: 14
|
|
1372
1372
|
/* TokenTypes.EOF */
|
|
1373
1373
|
};
|
|
@@ -1389,7 +1389,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1389
1389
|
return q(b, g) || p(g);
|
|
1390
1390
|
default:
|
|
1391
1391
|
if (M(b))
|
|
1392
|
-
return
|
|
1392
|
+
return v = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, v;
|
|
1393
1393
|
const { isModulo: R, hasSpace: L } = $(b);
|
|
1394
1394
|
if (R)
|
|
1395
1395
|
return L ? m(g, 0, ee(b)) : m(g, 4, ie(b));
|
|
@@ -1397,11 +1397,11 @@ function createTokenizer(e, t = {}) {
|
|
|
1397
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: b, offset: g, startLoc:
|
|
1404
|
-
return l.lastType = b, l.lastOffset = g, l.lastStartLoc =
|
|
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,86 +1429,86 @@ 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, S,
|
|
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, S,
|
|
1442
|
+
function n(y, S, w) {
|
|
1443
1443
|
const E = { type: y };
|
|
1444
|
-
return t && (E.start = S, E.end = S, E.loc = { start:
|
|
1444
|
+
return t && (E.start = S, E.end = S, E.loc = { start: w, end: w }), E;
|
|
1445
1445
|
}
|
|
1446
|
-
function i(y, S,
|
|
1447
|
-
E && (y.type = E), t && (y.end = S, y.loc && (y.loc.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
1449
|
function a(y, S) {
|
|
1450
|
-
const
|
|
1450
|
+
const w = y.context(), E = n(3, w.offset, w.startLoc);
|
|
1451
1451
|
return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
|
|
1452
1452
|
}
|
|
1453
1453
|
function r(y, S) {
|
|
1454
|
-
const
|
|
1454
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(5, E, I);
|
|
1455
1455
|
return N.index = parseInt(S, 10), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1456
1456
|
}
|
|
1457
1457
|
function l(y, S) {
|
|
1458
|
-
const
|
|
1458
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(4, E, I);
|
|
1459
1459
|
return N.key = S, y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
|
|
1460
1460
|
}
|
|
1461
1461
|
function c(y, S) {
|
|
1462
|
-
const
|
|
1462
|
+
const w = y.context(), { lastOffset: E, lastStartLoc: I } = w, N = n(9, E, I);
|
|
1463
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 S = y.nextToken(),
|
|
1467
|
-
return S.type !== 12 ? (s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
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
1468
|
nextConsumeToken: S,
|
|
1469
1469
|
node: N
|
|
1470
|
-
}) : (S.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
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
1474
|
function d(y, S) {
|
|
1475
|
-
const
|
|
1475
|
+
const w = y.context(), E = n(7, w.offset, w.startLoc);
|
|
1476
1476
|
return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
|
|
1477
1477
|
}
|
|
1478
1478
|
function m(y) {
|
|
1479
|
-
const S = y.context(),
|
|
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
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, S.lastStartLoc, 0, getTokenCaption(E)),
|
|
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, S.lastStartLoc, 0, getTokenCaption(E)),
|
|
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, S.lastStartLoc, 0, getTokenCaption(E)),
|
|
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, S.lastStartLoc, 0, getTokenCaption(E)),
|
|
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
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 S = y.context(),
|
|
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 {
|
|
@@ -1535,24 +1535,24 @@ function createParser(e = {}) {
|
|
|
1535
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, S,
|
|
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, S,
|
|
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
1549
|
function _(y) {
|
|
1550
|
-
const S = y.context(), { offset:
|
|
1551
|
-
return S.currentType === 14 ? I : f(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
1553
|
function C(y) {
|
|
1554
|
-
const S = createTokenizer(y, assign$1({}, e)),
|
|
1555
|
-
return t && E.loc && (E.loc.source = y), E.body = _(S), e.onCacheKey && (E.cacheKey = e.onCacheKey(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
1557
|
return { parse: C };
|
|
1558
1558
|
}
|
|
@@ -2150,9 +2150,9 @@ function createMessageContext(e = {}) {
|
|
|
2150
2150
|
named: c,
|
|
2151
2151
|
plural: i,
|
|
2152
2152
|
linked: (y, ...S) => {
|
|
2153
|
-
const [
|
|
2153
|
+
const [w, E] = S;
|
|
2154
2154
|
let I = "text", N = "";
|
|
2155
|
-
S.length === 1 ? isObject$2(
|
|
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
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
|
|
@@ -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, _ = !!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,
|
|
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++;
|
|
@@ -2346,7 +2346,7 @@ function createCoreContext(e = {}) {
|
|
|
2346
2346
|
postTranslation: C,
|
|
2347
2347
|
processor: y,
|
|
2348
2348
|
warnHtmlMessage: S,
|
|
2349
|
-
escapeParameter:
|
|
2349
|
+
escapeParameter: w,
|
|
2350
2350
|
messageCompiler: E,
|
|
2351
2351
|
messageResolver: I,
|
|
2352
2352
|
localeFallbacker: N,
|
|
@@ -2489,7 +2489,7 @@ const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(
|
|
|
2489
2489
|
function translate(e, ...t) {
|
|
2490
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, S,
|
|
2492
|
+
let [y, S, w] = p ? [
|
|
2493
2493
|
l,
|
|
2494
2494
|
C,
|
|
2495
2495
|
r[C] || {}
|
|
@@ -2504,7 +2504,7 @@ function translate(e, ...t) {
|
|
|
2504
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, S,
|
|
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(),
|
|
@@ -2541,8 +2541,8 @@ function resolveMessageFormat(e, t, o, s, n, i) {
|
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
2543
2543
|
d = a[m] || {};
|
|
2544
|
-
let S = null,
|
|
2545
|
-
if (process.env.NODE_ENV !== "production" && inBrowser && (S = window.performance.now(),
|
|
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
2547
|
k && S && p && k.emit("message-resolve", {
|
|
2548
2548
|
type: "message-resolve",
|
|
@@ -2550,7 +2550,7 @@ function resolveMessageFormat(e, t, o, s, n, i) {
|
|
|
2550
2550
|
message: p,
|
|
2551
2551
|
time: N - S,
|
|
2552
2552
|
groupId: `${C}:${t}`
|
|
2553
|
-
}),
|
|
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;
|
|
@@ -2679,7 +2679,7 @@ function datetime(e, ...t) {
|
|
|
2679
2679
|
);
|
|
2680
2680
|
if (!isString$2(l) || l === "")
|
|
2681
2681
|
return new Intl.DateTimeFormat(_, d).format(c);
|
|
2682
|
-
let y = {}, S,
|
|
2682
|
+
let y = {}, S, w = null, E = _, I = null;
|
|
2683
2683
|
const N = "datetime format";
|
|
2684
2684
|
for (let F = 0; F < C.length; F++) {
|
|
2685
2685
|
if (S = I = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -2695,16 +2695,16 @@ function datetime(e, ...t) {
|
|
|
2695
2695
|
groupId: `${N}:${l}`
|
|
2696
2696
|
});
|
|
2697
2697
|
}
|
|
2698
|
-
if (y = o[S] || {},
|
|
2698
|
+
if (y = o[S] || {}, w = y[l], isPlainObject$1(w))
|
|
2699
2699
|
break;
|
|
2700
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
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(S, assign$2({},
|
|
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",
|
|
@@ -2773,7 +2773,7 @@ function number(e, ...t) {
|
|
|
2773
2773
|
);
|
|
2774
2774
|
if (!isString$2(l) || l === "")
|
|
2775
2775
|
return new Intl.NumberFormat(_, d).format(c);
|
|
2776
|
-
let y = {}, S,
|
|
2776
|
+
let y = {}, S, w = null, E = _, I = null;
|
|
2777
2777
|
const N = "number format";
|
|
2778
2778
|
for (let F = 0; F < C.length; F++) {
|
|
2779
2779
|
if (S = I = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -2789,16 +2789,16 @@ function number(e, ...t) {
|
|
|
2789
2789
|
groupId: `${N}:${l}`
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
if (y = o[S] || {},
|
|
2792
|
+
if (y = o[S] || {}, w = y[l], isPlainObject$1(w))
|
|
2793
2793
|
break;
|
|
2794
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
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(S, assign$2({},
|
|
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, _ = !!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,
|
|
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,
|
|
@@ -3027,14 +3027,14 @@ function createComposer(e = {}, t) {
|
|
|
3027
3027
|
fallbackFormat: _,
|
|
3028
3028
|
unresolving: !0,
|
|
3029
3029
|
postTranslation: S === null ? void 0 : S,
|
|
3030
|
-
warnHtmlMessage:
|
|
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
3061
|
return isFunction$1(S) ? S : null;
|
|
3062
3062
|
}
|
|
3063
|
-
function W(
|
|
3064
|
-
S =
|
|
3063
|
+
function W(P) {
|
|
3064
|
+
S = P, k.postTranslation = P;
|
|
3065
3065
|
}
|
|
3066
3066
|
function Z() {
|
|
3067
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 b(
|
|
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 = b(
|
|
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
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: _, __root: C, __injectWithOption: y } = e, S = e.datetimeFormats,
|
|
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
3331
|
datetimeFormats: S,
|
|
3332
|
-
numberFormats:
|
|
3332
|
+
numberFormats: w,
|
|
3333
3333
|
missing: s,
|
|
3334
3334
|
missingWarn: n,
|
|
3335
3335
|
fallbackWarn: i,
|
|
@@ -4128,11 +4128,11 @@ function createI18n(e = {}, t) {
|
|
|
4128
4128
|
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
4129
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
|
}
|
|
@@ -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, _ = !!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,
|
|
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,
|
|
@@ -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() {
|
|
@@ -4390,7 +4390,7 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
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);
|
|
@@ -4416,13 +4416,13 @@ function useI18nForLegacy(e, t, o, s = {}) {
|
|
|
4416
4416
|
mergeNumberFormat: z
|
|
4417
4417
|
};
|
|
4418
4418
|
function b(g) {
|
|
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 =
|
|
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)
|
|
@@ -4954,11 +4954,11 @@ function toFormData(e, t, o) {
|
|
|
4954
4954
|
if (utils$1.endsWith(_, "{}"))
|
|
4955
4955
|
_ = s ? _ : _.slice(0, -2), f = JSON.stringify(f);
|
|
4956
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(
|
|
4958
|
-
!(utils$1.isUndefined(
|
|
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
4960
|
a === !0 ? renderKey([_], E, i) : a === null ? _ : _ + "[]",
|
|
4961
|
-
c(
|
|
4961
|
+
c(w)
|
|
4962
4962
|
);
|
|
4963
4963
|
}), !1;
|
|
4964
4964
|
}
|
|
@@ -5571,10 +5571,10 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
|
|
|
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() {
|
|
@@ -6879,7 +6879,7 @@ function init(e, t) {
|
|
|
6879
6879
|
);
|
|
6880
6880
|
}
|
|
6881
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";
|
|
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";
|
|
6883
6883
|
function getToken$1() {
|
|
6884
6884
|
let e = getCookieCache(jwtKey);
|
|
6885
6885
|
const t = window.$vueApp.config.globalProperties.projectModel;
|
|
@@ -6981,6 +6981,9 @@ function setAllLanguages(e) {
|
|
|
6981
6981
|
function removeAllLanguages() {
|
|
6982
6982
|
removeCookieCache(allLangKey), removeSessionCache(allLangKey);
|
|
6983
6983
|
}
|
|
6984
|
+
function removePublishControl() {
|
|
6985
|
+
removeCookieCache(versionEnv), removeCookieCache(userVersion);
|
|
6986
|
+
}
|
|
6984
6987
|
const authApi = {
|
|
6985
6988
|
getToken: getToken$1,
|
|
6986
6989
|
setToken,
|
|
@@ -7006,7 +7009,8 @@ const authApi = {
|
|
|
7006
7009
|
removeLanguage,
|
|
7007
7010
|
getAllLanguages: getAllLanguages$1,
|
|
7008
7011
|
setAllLanguages,
|
|
7009
|
-
removeAllLanguages
|
|
7012
|
+
removeAllLanguages,
|
|
7013
|
+
removePublishControl
|
|
7010
7014
|
};
|
|
7011
7015
|
function getToken() {
|
|
7012
7016
|
return authApi.getToken();
|
|
@@ -7198,7 +7202,7 @@ function setEntityFieldValue(e, t, o) {
|
|
|
7198
7202
|
s[n] === void 0 ? s[t.substring(t.lastIndexOf(".") + 1)] = o : s[n] = o;
|
|
7199
7203
|
}
|
|
7200
7204
|
} else
|
|
7201
|
-
e[t], e[t] = o;
|
|
7205
|
+
e[t] === void 0 || e[t], e[t] = o;
|
|
7202
7206
|
}
|
|
7203
7207
|
function getEntityFieldValue(e, t, o) {
|
|
7204
7208
|
let s = getEntityFieldValueWithCase(e, t);
|
|
@@ -7827,7 +7831,7 @@ const Util = {
|
|
|
7827
7831
|
return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
|
|
7828
7832
|
},
|
|
7829
7833
|
// 获得普通表单保存时的request请求,表单页面和行编辑保存时使用了
|
|
7830
|
-
getSaveFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S,
|
|
7834
|
+
getSaveFormRequest(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, w, E, I, N) {
|
|
7831
7835
|
N = N === void 0 || N === "true" || N;
|
|
7832
7836
|
const k = {
|
|
7833
7837
|
entity: i,
|
|
@@ -7835,7 +7839,7 @@ const Util = {
|
|
|
7835
7839
|
formViewVersion: s,
|
|
7836
7840
|
tableName: n,
|
|
7837
7841
|
formNoRuleCode: l,
|
|
7838
|
-
isWorkflowEntity:
|
|
7842
|
+
isWorkflowEntity: w,
|
|
7839
7843
|
functionCode: E,
|
|
7840
7844
|
isPermission: N + ""
|
|
7841
7845
|
};
|
|
@@ -10556,7 +10560,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10556
10560
|
i,
|
|
10557
10561
|
y
|
|
10558
10562
|
);
|
|
10559
|
-
S && (a.loading = !0, S.then((
|
|
10563
|
+
S && (a.loading = !0, S.then((w) => {
|
|
10560
10564
|
this.refreshMyList(a.successOperation), this.$message({
|
|
10561
10565
|
showClose: !0,
|
|
10562
10566
|
type: "success",
|
|
@@ -10569,7 +10573,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10569
10573
|
additionalParamMap: this.additionalParamMap
|
|
10570
10574
|
}
|
|
10571
10575
|
), a.loading = !1;
|
|
10572
|
-
}).catch((
|
|
10576
|
+
}).catch((w) => {
|
|
10573
10577
|
this.refreshMyList(a.successOperation), a.loading = !1;
|
|
10574
10578
|
}));
|
|
10575
10579
|
}).catch((_) => {
|
|
@@ -10772,8 +10776,8 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10772
10776
|
y == null && (y = !1), f.pageDevMode = y;
|
|
10773
10777
|
let S = "";
|
|
10774
10778
|
this.colSetting.options && this.colSetting.options.formNoRuleCode && (S = this.colSetting.options.formNoRuleCode);
|
|
10775
|
-
let
|
|
10776
|
-
this.colSetting.options && this.colSetting.options.listToolbarList && (
|
|
10779
|
+
let w;
|
|
10780
|
+
this.colSetting.options && this.colSetting.options.listToolbarList && (w = this.colSetting.options.listToolbarList);
|
|
10777
10781
|
const E = this.colSetting.baseSetting.modelCode;
|
|
10778
10782
|
let I = "";
|
|
10779
10783
|
this.colSetting.options && this.colSetting.options.importRuleCode && (I = this.colSetting.options.importRuleCode), f.isWorkflowEntity = o;
|
|
@@ -10785,7 +10789,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
|
|
|
10785
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]));
|
|
10786
10790
|
}
|
|
10787
10791
|
return {
|
|
10788
|
-
listToolbarList:
|
|
10792
|
+
listToolbarList: w,
|
|
10789
10793
|
urlToListData: a,
|
|
10790
10794
|
// 列表组件配置属性
|
|
10791
10795
|
options: f,
|
|
@@ -11592,7 +11596,7 @@ function _sfc_render$i(e, t, o, s, n, i) {
|
|
|
11592
11596
|
}, null, 8, ["preview", "dev-mode", "jump-page-setting", "onUpdateValue", "onClose"])) : createCommentVNode("", !0)
|
|
11593
11597
|
])) : createCommentVNode("", !0);
|
|
11594
11598
|
}
|
|
11595
|
-
const ListPage = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]),
|
|
11599
|
+
const ListPage = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]), formHead_vue_vue_type_style_index_0_scoped_d079cab0_lang = "", _sfc_main$h = {
|
|
11596
11600
|
name: "FormHead",
|
|
11597
11601
|
components: {},
|
|
11598
11602
|
props: {
|
|
@@ -11631,7 +11635,7 @@ function _sfc_render$h(e, t, o, s, n, i) {
|
|
|
11631
11635
|
o.formNo ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString$1(o.formNoLabel && o.formNoLabel !== null && o.formNoLabel.trim() !== "" ? o.formNoLabel + ":" : e.$t("superPage.formNo")) + toDisplayString$1(o.formNo), 1)) : createCommentVNode("", !0)
|
|
11632
11636
|
], 4);
|
|
11633
11637
|
}
|
|
11634
|
-
const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
11638
|
+
const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-d079cab0"]]), buttonEvents$3 = {
|
|
11635
11639
|
// 按钮组中各按钮的操作
|
|
11636
11640
|
clickFormButton(button, system, formCode, formVersion, tableName, formData, entityName, myJsContent, formNoRuleCode, ids, isBatchProcessing, needDeleteFileUuidS, additionalParamMap, beanName) {
|
|
11637
11641
|
if (typeof button.isExtension < "u" && button.isExtension === !0) {
|
|
@@ -11808,14 +11812,14 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11808
11812
|
isPermission: y + ""
|
|
11809
11813
|
};
|
|
11810
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;
|
|
11811
|
-
const
|
|
11815
|
+
const w = this.getSaveFormRequestByParam(
|
|
11812
11816
|
t,
|
|
11813
11817
|
o,
|
|
11814
11818
|
S,
|
|
11815
11819
|
i,
|
|
11816
11820
|
l
|
|
11817
11821
|
);
|
|
11818
|
-
return
|
|
11822
|
+
return w && w.then((E) => {
|
|
11819
11823
|
this.dealAfterSaveForm(
|
|
11820
11824
|
E,
|
|
11821
11825
|
t.standard,
|
|
@@ -11826,7 +11830,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11826
11830
|
);
|
|
11827
11831
|
}).catch((E) => {
|
|
11828
11832
|
console.log("getSubmitFormRequest error", E);
|
|
11829
|
-
}),
|
|
11833
|
+
}), w;
|
|
11830
11834
|
}).catch(() => {
|
|
11831
11835
|
});
|
|
11832
11836
|
},
|
|
@@ -11950,11 +11954,11 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
11950
11954
|
let y = [];
|
|
11951
11955
|
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
11952
11956
|
S && (y = S.formEvents), p.events = this.packageFormEvents(C);
|
|
11953
|
-
let
|
|
11957
|
+
let w = getStoreInfo(
|
|
11954
11958
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
11955
11959
|
"_formButtonPosition"
|
|
11956
11960
|
);
|
|
11957
|
-
return
|
|
11961
|
+
return w || (w = "topLeft"), {
|
|
11958
11962
|
formViewCode: C,
|
|
11959
11963
|
formViewVersion: _,
|
|
11960
11964
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
@@ -12008,7 +12012,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
|
|
|
12008
12012
|
// 弹框页面的设置信息
|
|
12009
12013
|
customEvents: S ? S.customEvents : null,
|
|
12010
12014
|
isShowBuuton: !0,
|
|
12011
|
-
formButtonPosition:
|
|
12015
|
+
formButtonPosition: w,
|
|
12012
12016
|
pageType: "form",
|
|
12013
12017
|
// 页面类型
|
|
12014
12018
|
subTablePageInfo: {}
|
|
@@ -12347,7 +12351,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12347
12351
|
}
|
|
12348
12352
|
},
|
|
12349
12353
|
// 按钮组中各按钮的操作
|
|
12350
|
-
clickWorflowButton(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S,
|
|
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) {
|
|
12351
12355
|
if (e === "startInstance" || e === "update")
|
|
12352
12356
|
this.startInstance(
|
|
12353
12357
|
t,
|
|
@@ -12365,7 +12369,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12365
12369
|
_,
|
|
12366
12370
|
C,
|
|
12367
12371
|
e,
|
|
12368
|
-
|
|
12372
|
+
w,
|
|
12369
12373
|
E,
|
|
12370
12374
|
I,
|
|
12371
12375
|
N
|
|
@@ -12388,7 +12392,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12388
12392
|
_,
|
|
12389
12393
|
C,
|
|
12390
12394
|
e,
|
|
12391
|
-
|
|
12395
|
+
w,
|
|
12392
12396
|
E,
|
|
12393
12397
|
I,
|
|
12394
12398
|
N
|
|
@@ -12409,7 +12413,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12409
12413
|
_,
|
|
12410
12414
|
C,
|
|
12411
12415
|
e,
|
|
12412
|
-
|
|
12416
|
+
w,
|
|
12413
12417
|
E,
|
|
12414
12418
|
I,
|
|
12415
12419
|
N
|
|
@@ -12426,7 +12430,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12426
12430
|
m,
|
|
12427
12431
|
C,
|
|
12428
12432
|
e,
|
|
12429
|
-
|
|
12433
|
+
w,
|
|
12430
12434
|
E,
|
|
12431
12435
|
N
|
|
12432
12436
|
);
|
|
@@ -12442,7 +12446,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12442
12446
|
m,
|
|
12443
12447
|
C,
|
|
12444
12448
|
e,
|
|
12445
|
-
|
|
12449
|
+
w,
|
|
12446
12450
|
E,
|
|
12447
12451
|
N
|
|
12448
12452
|
);
|
|
@@ -12458,7 +12462,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12458
12462
|
m,
|
|
12459
12463
|
C,
|
|
12460
12464
|
e,
|
|
12461
|
-
|
|
12465
|
+
w,
|
|
12462
12466
|
E,
|
|
12463
12467
|
N
|
|
12464
12468
|
);
|
|
@@ -12486,7 +12490,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12486
12490
|
F,
|
|
12487
12491
|
y,
|
|
12488
12492
|
S,
|
|
12489
|
-
|
|
12493
|
+
w,
|
|
12490
12494
|
E,
|
|
12491
12495
|
I,
|
|
12492
12496
|
N,
|
|
@@ -12993,7 +12997,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
12993
12997
|
);
|
|
12994
12998
|
},
|
|
12995
12999
|
// 流程表单页面(非流程处理的)-提交/同意/不同意
|
|
12996
|
-
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S,
|
|
13000
|
+
submitForm(e, t, o, s, n, i, a, r, l, c, u, d, m, p, f, _, C, y, S, w, E) {
|
|
12997
13001
|
let I;
|
|
12998
13002
|
e.standard === !1 && (I = this.getBaseUrl(e) + d), this.transactTask(
|
|
12999
13003
|
e,
|
|
@@ -13019,7 +13023,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
|
|
|
13019
13023
|
C,
|
|
13020
13024
|
y,
|
|
13021
13025
|
S,
|
|
13022
|
-
|
|
13026
|
+
w,
|
|
13023
13027
|
E
|
|
13024
13028
|
);
|
|
13025
13029
|
},
|
|
@@ -13529,11 +13533,11 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13529
13533
|
let y = [];
|
|
13530
13534
|
const S = getStoreInfo(this.pageCode, "_pageEvents");
|
|
13531
13535
|
S && (y = S.formEvents), d.events = this.packageFormEvents(C);
|
|
13532
|
-
let
|
|
13536
|
+
let w = getStoreInfo(
|
|
13533
13537
|
getStoreInfo(this.pageCode, "_pageCode"),
|
|
13534
13538
|
"_formButtonPosition"
|
|
13535
13539
|
);
|
|
13536
|
-
return
|
|
13540
|
+
return w || (w = "topLeft"), {
|
|
13537
13541
|
formViewCode: C,
|
|
13538
13542
|
formViewVersion: _,
|
|
13539
13543
|
tableName: this.colSetting.baseSetting.modelDataTableCode,
|
|
@@ -13634,7 +13638,7 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
|
|
|
13634
13638
|
// 第一节点的信息
|
|
13635
13639
|
customEvents: S ? S.customEvents : null,
|
|
13636
13640
|
isShowBuuton: !1,
|
|
13637
|
-
formButtonPosition:
|
|
13641
|
+
formButtonPosition: w,
|
|
13638
13642
|
// 表单按钮显示位置,
|
|
13639
13643
|
pageType: "form",
|
|
13640
13644
|
// 页面类型
|
|
@@ -14538,7 +14542,7 @@ const FormPage = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
|
|
|
14538
14542
|
t.chartQueryCode = e, bus.$on(
|
|
14539
14543
|
t.chartQueryCode + "-clickChartSearchButton",
|
|
14540
14544
|
function({ searchParam: o, isInitSearch: s }) {
|
|
14541
|
-
if (console.log("准备传递数据", o), !t.isPreview && !(s &&
|
|
14545
|
+
if (console.log("准备传递数据", o), !t.isPreview && !(s && t.isInitialQuery === !1)) {
|
|
14542
14546
|
if (!o) {
|
|
14543
14547
|
t.query = null;
|
|
14544
14548
|
return;
|
|
@@ -15035,7 +15039,7 @@ function _sfc_render$8(e, t, o, s, n, i) {
|
|
|
15035
15039
|
}, null, 8, ["label"])) : createCommentVNode("", !0)
|
|
15036
15040
|
], 4);
|
|
15037
15041
|
}
|
|
15038
|
-
const WidgetColPage = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]),
|
|
15042
|
+
const WidgetColPage = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]), widgetSubTabPanePage_vue_vue_type_style_index_0_scoped_492aa244_lang = "", _sfc_main$7 = {
|
|
15039
15043
|
name: "WidgetSubTabPage",
|
|
15040
15044
|
components: {
|
|
15041
15045
|
WidgetColPage
|
|
@@ -15130,7 +15134,7 @@ function _sfc_render$7(e, t, o, s, n, i) {
|
|
|
15130
15134
|
}, 1024))), 128)) : createCommentVNode("", !0)
|
|
15131
15135
|
]);
|
|
15132
15136
|
}
|
|
15133
|
-
const WidgetSubTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-
|
|
15137
|
+
const WidgetSubTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-492aa244"]]), _sfc_main$6 = {
|
|
15134
15138
|
name: "SubTabPage",
|
|
15135
15139
|
components: {
|
|
15136
15140
|
WidgetSubTabPanePage
|
|
@@ -15211,7 +15215,7 @@ function _sfc_render$6(e, t, o, s, n, i) {
|
|
|
15211
15215
|
}, 8, ["modelValue", "onTabClick"])
|
|
15212
15216
|
]);
|
|
15213
15217
|
}
|
|
15214
|
-
const SubTabPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]),
|
|
15218
|
+
const SubTabPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]), widgetTabPanePage_vue_vue_type_style_index_0_scoped_ba1867e2_lang = "", _sfc_main$5 = {
|
|
15215
15219
|
name: "WidgetTabPage",
|
|
15216
15220
|
components: {
|
|
15217
15221
|
SubTabPage,
|
|
@@ -15324,7 +15328,7 @@ function _sfc_render$5(e, t, o, s, n, i) {
|
|
|
15324
15328
|
}, 1024))), 128)) : createCommentVNode("", !0)
|
|
15325
15329
|
]);
|
|
15326
15330
|
}
|
|
15327
|
-
const WidgetTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
15331
|
+
const WidgetTabPanePage = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-ba1867e2"]]), _sfc_main$4 = {
|
|
15328
15332
|
name: "TabPage",
|
|
15329
15333
|
components: {
|
|
15330
15334
|
WidgetTabPanePage
|