@jt-home/mfe-components 1.0.44 → 1.0.46
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/dist/index.cjs +2 -2
- package/dist/index.mjs +163 -166
- package/dist/style.css +1 -1
- package/package.json +100 -99
- package/readme.md +694 -694
package/dist/index.mjs
CHANGED
|
@@ -94,7 +94,7 @@ const vo = /* @__PURE__ */ pe({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-
|
|
97
|
+
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-7b0e90ba"]]), ho = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
clearable: !0,
|
|
@@ -287,7 +287,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
287
287
|
}), null, 16);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-
|
|
290
|
+
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-014934ea"]]), _o = /* @__PURE__ */ pe({
|
|
291
291
|
name: "JtInput",
|
|
292
292
|
__name: "index",
|
|
293
293
|
props: {
|
|
@@ -353,7 +353,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
353
353
|
}), null, 16);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-
|
|
356
|
+
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-14966118"]]), wo = /* @__PURE__ */ pe({
|
|
357
357
|
name: "JtSelect",
|
|
358
358
|
__name: "index",
|
|
359
359
|
props: {
|
|
@@ -439,7 +439,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
439
439
|
}, 16);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-
|
|
442
|
+
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-cb498ab1"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
|
|
443
443
|
name: "JTFormItems",
|
|
444
444
|
__name: "JtFormItems",
|
|
445
445
|
props: {
|
|
@@ -472,7 +472,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
472
472
|
return g.itemType === "select" || g.itemType === "remote-select" || g.itemType === "cascader" ? {
|
|
473
473
|
...v,
|
|
474
474
|
options: g.options
|
|
475
|
-
} :
|
|
475
|
+
} : N(g.itemType) ? {
|
|
476
476
|
...v,
|
|
477
477
|
type: "daterange"
|
|
478
478
|
} : v;
|
|
@@ -510,7 +510,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
510
510
|
}), T = (g) => ({
|
|
511
511
|
gridColumn: `span ${f(t.span || g.span)}`
|
|
512
512
|
});
|
|
513
|
-
function
|
|
513
|
+
function N(g) {
|
|
514
514
|
return g === "daterange" || g === "date-range" || g === "dateRange";
|
|
515
515
|
}
|
|
516
516
|
return (g, v) => {
|
|
@@ -551,7 +551,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
551
551
|
]);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-
|
|
554
|
+
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-2120c9df"]]);
|
|
555
555
|
function To() {
|
|
556
556
|
const e = ge(!1);
|
|
557
557
|
function t() {
|
|
@@ -584,7 +584,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
584
584
|
() => Math.max(1, w.value.searchCollapsedRows ?? 1)
|
|
585
585
|
), S = O(() => V.value), T = O(
|
|
586
586
|
() => Math.max(1, S.value * f.value)
|
|
587
|
-
),
|
|
587
|
+
), N = O(() => V.value), g = O(
|
|
588
588
|
() => j.value ? "264px" : "174px"
|
|
589
589
|
), v = O(
|
|
590
590
|
() => K(w.value.searchLabelWidth ?? 84)
|
|
@@ -603,7 +603,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
603
603
|
const ue = P(X);
|
|
604
604
|
return M + ue > T.value ? !1 : (M += ue, !0);
|
|
605
605
|
});
|
|
606
|
-
}),
|
|
606
|
+
}), z = O(
|
|
607
607
|
() => C.value.filter((M) => !!s[`${M.prop}-search`])
|
|
608
608
|
), re = O(() => {
|
|
609
609
|
const M = x(C.value);
|
|
@@ -717,7 +717,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
717
717
|
]]),
|
|
718
718
|
style: Yt({
|
|
719
719
|
"--jt-filter-columns": V.value,
|
|
720
|
-
"--jt-filter-field-columns":
|
|
720
|
+
"--jt-filter-field-columns": N.value,
|
|
721
721
|
"--jt-filter-btns-width": g.value,
|
|
722
722
|
"--jt-filter-actions-start": le.value,
|
|
723
723
|
"--jt-filter-label-width": v.value,
|
|
@@ -755,7 +755,6 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
755
755
|
j.value ? (I(), H(W(rt), {
|
|
756
756
|
key: 0,
|
|
757
757
|
class: "jt-filter-bar__btn-collapse",
|
|
758
|
-
size: "small",
|
|
759
758
|
onClick: D
|
|
760
759
|
}, {
|
|
761
760
|
icon: U(() => [
|
|
@@ -772,7 +771,6 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
772
771
|
})) : fe("", !0),
|
|
773
772
|
Ie(W(rt), {
|
|
774
773
|
class: "jt-filter-bar__btn-reset",
|
|
775
|
-
size: "small",
|
|
776
774
|
disabled: W(a),
|
|
777
775
|
onClick: _
|
|
778
776
|
}, {
|
|
@@ -790,7 +788,6 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
790
788
|
Ie(W(rt), {
|
|
791
789
|
class: "jt-filter-bar__btn-query",
|
|
792
790
|
type: "primary",
|
|
793
|
-
size: "small",
|
|
794
791
|
disabled: W(a),
|
|
795
792
|
onClick: u
|
|
796
793
|
}, {
|
|
@@ -810,7 +807,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
810
807
|
]),
|
|
811
808
|
_: 2
|
|
812
809
|
}, [
|
|
813
|
-
ye(
|
|
810
|
+
ye(z.value, (de) => ({
|
|
814
811
|
name: de.prop,
|
|
815
812
|
fn: U(() => [
|
|
816
813
|
te(M.$slots, `${de.prop}-search`, {
|
|
@@ -830,7 +827,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
830
827
|
], 6);
|
|
831
828
|
};
|
|
832
829
|
}
|
|
833
|
-
}), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-
|
|
830
|
+
}), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-ef45c5c6"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, No = /* @__PURE__ */ pe({
|
|
834
831
|
name: "JtTable",
|
|
835
832
|
__name: "JtTable",
|
|
836
833
|
props: {
|
|
@@ -871,8 +868,8 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
871
868
|
return f.find((T) => T.value === S)?.label ?? String(S ?? "");
|
|
872
869
|
}
|
|
873
870
|
return t({ tableRef: r }), (f, S) => {
|
|
874
|
-
const T = on,
|
|
875
|
-
return I(), H(
|
|
871
|
+
const T = on, N = nn;
|
|
872
|
+
return I(), H(N, ae({
|
|
876
873
|
ref_key: "tableRef",
|
|
877
874
|
ref: r,
|
|
878
875
|
data: f.data,
|
|
@@ -942,7 +939,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
942
939
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
943
940
|
};
|
|
944
941
|
}
|
|
945
|
-
}),
|
|
942
|
+
}), zo = /* @__PURE__ */ be(No, [["__scopeId", "data-v-cc0e0da1"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
|
|
946
943
|
name: "JtPagination",
|
|
947
944
|
__name: "JtPagination",
|
|
948
945
|
props: {
|
|
@@ -975,7 +972,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
975
972
|
]);
|
|
976
973
|
};
|
|
977
974
|
}
|
|
978
|
-
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-
|
|
975
|
+
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-64bc788b"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
|
|
979
976
|
key: 0,
|
|
980
977
|
class: "jt-crud-table__toolbar"
|
|
981
978
|
}, Zo = /* @__PURE__ */ pe({
|
|
@@ -1014,7 +1011,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1014
1011
|
A.search && (y[A.prop] = void 0);
|
|
1015
1012
|
}), y;
|
|
1016
1013
|
}
|
|
1017
|
-
function
|
|
1014
|
+
function N() {
|
|
1018
1015
|
r("search", { ...i.value });
|
|
1019
1016
|
}
|
|
1020
1017
|
function g() {
|
|
@@ -1048,7 +1045,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1048
1045
|
"onUpdate:modelValue": A[0] || (A[0] = (j) => i.value = j),
|
|
1049
1046
|
columns: y.columns,
|
|
1050
1047
|
option: w.value,
|
|
1051
|
-
onSearch:
|
|
1048
|
+
onSearch: N,
|
|
1052
1049
|
onReset: g
|
|
1053
1050
|
}, Re({ _: 2 }, [
|
|
1054
1051
|
ye(V.value, (j) => ({
|
|
@@ -1064,7 +1061,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1064
1061
|
W(a).toolbar ? (I(), G("div", Wo, [
|
|
1065
1062
|
te(y.$slots, "toolbar", {}, void 0, !0)
|
|
1066
1063
|
])) : fe("", !0),
|
|
1067
|
-
Qn((I(), H(
|
|
1064
|
+
Qn((I(), H(zo, {
|
|
1068
1065
|
ref_key: "jtTableRef",
|
|
1069
1066
|
ref: l,
|
|
1070
1067
|
data: y.data,
|
|
@@ -1110,14 +1107,14 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1110
1107
|
]);
|
|
1111
1108
|
};
|
|
1112
1109
|
}
|
|
1113
|
-
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-
|
|
1110
|
+
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-3454628a"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
|
|
1114
1111
|
key: 0,
|
|
1115
1112
|
class: "jt-page-header__operates"
|
|
1116
1113
|
}, tr = /* @__PURE__ */ pe({
|
|
1117
1114
|
name: "JtPageHeader",
|
|
1118
1115
|
__name: "index",
|
|
1119
1116
|
props: {
|
|
1120
|
-
type: { default: "
|
|
1117
|
+
type: { default: "section" },
|
|
1121
1118
|
title: {},
|
|
1122
1119
|
operates: { default: () => [] }
|
|
1123
1120
|
},
|
|
@@ -1159,7 +1156,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1159
1156
|
])) : fe("", !0)
|
|
1160
1157
|
], 16));
|
|
1161
1158
|
}
|
|
1162
|
-
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-
|
|
1159
|
+
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-35d233a6"]]);
|
|
1163
1160
|
function nr(e, t) {
|
|
1164
1161
|
t = t || (() => "default-use-once-sync");
|
|
1165
1162
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -1202,7 +1199,7 @@ var cn = { exports: {} };
|
|
|
1202
1199
|
(function(n, o) {
|
|
1203
1200
|
e.exports = o();
|
|
1204
1201
|
})(it, function() {
|
|
1205
|
-
var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", s = "second", i = "minute", a = "hour", l = "day", h = "week", w = "month", $ = "quarter", L = "year", V = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
1202
|
+
var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", s = "second", i = "minute", a = "hour", l = "day", h = "week", w = "month", $ = "quarter", L = "year", V = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
1206
1203
|
var B = ["th", "st", "nd", "rd"], E = R % 100;
|
|
1207
1204
|
return "[" + R + (B[(E - 20) % 10] || B[E] || B[0]) + "]";
|
|
1208
1205
|
} }, g = function(R, B, E) {
|
|
@@ -1222,7 +1219,7 @@ var cn = { exports: {} };
|
|
|
1222
1219
|
}, u: function(R) {
|
|
1223
1220
|
return R === void 0;
|
|
1224
1221
|
} }, F = "en", y = {};
|
|
1225
|
-
y[F] =
|
|
1222
|
+
y[F] = N;
|
|
1226
1223
|
var A = "$isDayjsObject", b = function(R) {
|
|
1227
1224
|
return R instanceof re || !(!R || !R[A]);
|
|
1228
1225
|
}, j = function R(B, E, d) {
|
|
@@ -1242,8 +1239,8 @@ var cn = { exports: {} };
|
|
|
1242
1239
|
if (b(R)) return R.clone();
|
|
1243
1240
|
var E = typeof B == "object" ? B : {};
|
|
1244
1241
|
return E.date = R, E.args = arguments, new re(E);
|
|
1245
|
-
},
|
|
1246
|
-
|
|
1242
|
+
}, z = v;
|
|
1243
|
+
z.l = j, z.i = b, z.w = function(R, B) {
|
|
1247
1244
|
return C(R, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
|
|
1248
1245
|
};
|
|
1249
1246
|
var re = function() {
|
|
@@ -1255,7 +1252,7 @@ var cn = { exports: {} };
|
|
|
1255
1252
|
this.$d = function(d) {
|
|
1256
1253
|
var u = d.date, _ = d.utc;
|
|
1257
1254
|
if (u === null) return /* @__PURE__ */ new Date(NaN);
|
|
1258
|
-
if (
|
|
1255
|
+
if (z.u(u)) return /* @__PURE__ */ new Date();
|
|
1259
1256
|
if (u instanceof Date) return new Date(u);
|
|
1260
1257
|
if (typeof u == "string" && !/Z$/i.test(u)) {
|
|
1261
1258
|
var D = u.match(S);
|
|
@@ -1270,7 +1267,7 @@ var cn = { exports: {} };
|
|
|
1270
1267
|
var E = this.$d;
|
|
1271
1268
|
this.$y = E.getFullYear(), this.$M = E.getMonth(), this.$D = E.getDate(), this.$W = E.getDay(), this.$H = E.getHours(), this.$m = E.getMinutes(), this.$s = E.getSeconds(), this.$ms = E.getMilliseconds();
|
|
1272
1269
|
}, B.$utils = function() {
|
|
1273
|
-
return
|
|
1270
|
+
return z;
|
|
1274
1271
|
}, B.isValid = function() {
|
|
1275
1272
|
return this.$d.toString() !== f;
|
|
1276
1273
|
}, B.isSame = function(E, d) {
|
|
@@ -1281,17 +1278,17 @@ var cn = { exports: {} };
|
|
|
1281
1278
|
}, B.isBefore = function(E, d) {
|
|
1282
1279
|
return this.endOf(d) < C(E);
|
|
1283
1280
|
}, B.$g = function(E, d, u) {
|
|
1284
|
-
return
|
|
1281
|
+
return z.u(E) ? this[d] : this.set(u, E);
|
|
1285
1282
|
}, B.unix = function() {
|
|
1286
1283
|
return Math.floor(this.valueOf() / 1e3);
|
|
1287
1284
|
}, B.valueOf = function() {
|
|
1288
1285
|
return this.$d.getTime();
|
|
1289
1286
|
}, B.startOf = function(E, d) {
|
|
1290
|
-
var u = this, _ = !!
|
|
1291
|
-
var we =
|
|
1287
|
+
var u = this, _ = !!z.u(d) || d, D = z.p(E), P = function(de, me) {
|
|
1288
|
+
var we = z.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
|
|
1292
1289
|
return _ ? we : we.endOf(l);
|
|
1293
1290
|
}, x = function(de, me) {
|
|
1294
|
-
return
|
|
1291
|
+
return z.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
|
|
1295
1292
|
}, K = this.$W, q = this.$M, Q = this.$D, M = "set" + (this.$u ? "UTC" : "");
|
|
1296
1293
|
switch (D) {
|
|
1297
1294
|
case L:
|
|
@@ -1316,7 +1313,7 @@ var cn = { exports: {} };
|
|
|
1316
1313
|
}, B.endOf = function(E) {
|
|
1317
1314
|
return this.startOf(E, !1);
|
|
1318
1315
|
}, B.$set = function(E, d) {
|
|
1319
|
-
var u, _ =
|
|
1316
|
+
var u, _ = z.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[l] = D + "Date", u[V] = D + "Date", u[w] = D + "Month", u[L] = D + "FullYear", u[a] = D + "Hours", u[i] = D + "Minutes", u[s] = D + "Seconds", u[c] = D + "Milliseconds", u)[_], x = _ === l ? this.$D + (d - this.$W) : d;
|
|
1320
1317
|
if (_ === w || _ === L) {
|
|
1321
1318
|
var K = this.clone().set(V, 1);
|
|
1322
1319
|
K.$d[P](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
|
|
@@ -1325,29 +1322,29 @@ var cn = { exports: {} };
|
|
|
1325
1322
|
}, B.set = function(E, d) {
|
|
1326
1323
|
return this.clone().$set(E, d);
|
|
1327
1324
|
}, B.get = function(E) {
|
|
1328
|
-
return this[
|
|
1325
|
+
return this[z.p(E)]();
|
|
1329
1326
|
}, B.add = function(E, d) {
|
|
1330
1327
|
var u, _ = this;
|
|
1331
1328
|
E = Number(E);
|
|
1332
|
-
var D =
|
|
1329
|
+
var D = z.p(d), P = function(q) {
|
|
1333
1330
|
var Q = C(_);
|
|
1334
|
-
return
|
|
1331
|
+
return z.w(Q.date(Q.date() + Math.round(q * E)), _);
|
|
1335
1332
|
};
|
|
1336
1333
|
if (D === w) return this.set(w, this.$M + E);
|
|
1337
1334
|
if (D === L) return this.set(L, this.$y + E);
|
|
1338
1335
|
if (D === l) return P(1);
|
|
1339
1336
|
if (D === h) return P(7);
|
|
1340
1337
|
var x = (u = {}, u[i] = o, u[a] = r, u[s] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
|
|
1341
|
-
return
|
|
1338
|
+
return z.w(K, this);
|
|
1342
1339
|
}, B.subtract = function(E, d) {
|
|
1343
1340
|
return this.add(-1 * E, d);
|
|
1344
1341
|
}, B.format = function(E) {
|
|
1345
1342
|
var d = this, u = this.$locale();
|
|
1346
1343
|
if (!this.isValid()) return u.invalidDate || f;
|
|
1347
|
-
var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D =
|
|
1344
|
+
var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D = z.z(this), P = this.$H, x = this.$m, K = this.$M, q = u.weekdays, Q = u.months, M = u.meridiem, X = function(me, we, De, $e) {
|
|
1348
1345
|
return me && (me[we] || me(d, _)) || De[we].slice(0, $e);
|
|
1349
1346
|
}, ue = function(me) {
|
|
1350
|
-
return
|
|
1347
|
+
return z.s(P % 12 || 12, me, "0");
|
|
1351
1348
|
}, de = M || function(me, we, De) {
|
|
1352
1349
|
var $e = me < 12 ? "AM" : "PM";
|
|
1353
1350
|
return De ? $e.toLowerCase() : $e;
|
|
@@ -1358,11 +1355,11 @@ var cn = { exports: {} };
|
|
|
1358
1355
|
case "YY":
|
|
1359
1356
|
return String(d.$y).slice(-2);
|
|
1360
1357
|
case "YYYY":
|
|
1361
|
-
return
|
|
1358
|
+
return z.s(d.$y, 4, "0");
|
|
1362
1359
|
case "M":
|
|
1363
1360
|
return K + 1;
|
|
1364
1361
|
case "MM":
|
|
1365
|
-
return
|
|
1362
|
+
return z.s(K + 1, 2, "0");
|
|
1366
1363
|
case "MMM":
|
|
1367
1364
|
return X(u.monthsShort, K, Q, 3);
|
|
1368
1365
|
case "MMMM":
|
|
@@ -1370,7 +1367,7 @@ var cn = { exports: {} };
|
|
|
1370
1367
|
case "D":
|
|
1371
1368
|
return d.$D;
|
|
1372
1369
|
case "DD":
|
|
1373
|
-
return
|
|
1370
|
+
return z.s(d.$D, 2, "0");
|
|
1374
1371
|
case "d":
|
|
1375
1372
|
return String(d.$W);
|
|
1376
1373
|
case "dd":
|
|
@@ -1382,7 +1379,7 @@ var cn = { exports: {} };
|
|
|
1382
1379
|
case "H":
|
|
1383
1380
|
return String(P);
|
|
1384
1381
|
case "HH":
|
|
1385
|
-
return
|
|
1382
|
+
return z.s(P, 2, "0");
|
|
1386
1383
|
case "h":
|
|
1387
1384
|
return ue(1);
|
|
1388
1385
|
case "hh":
|
|
@@ -1394,13 +1391,13 @@ var cn = { exports: {} };
|
|
|
1394
1391
|
case "m":
|
|
1395
1392
|
return String(x);
|
|
1396
1393
|
case "mm":
|
|
1397
|
-
return
|
|
1394
|
+
return z.s(x, 2, "0");
|
|
1398
1395
|
case "s":
|
|
1399
1396
|
return String(d.$s);
|
|
1400
1397
|
case "ss":
|
|
1401
|
-
return
|
|
1398
|
+
return z.s(d.$s, 2, "0");
|
|
1402
1399
|
case "SSS":
|
|
1403
|
-
return
|
|
1400
|
+
return z.s(d.$ms, 3, "0");
|
|
1404
1401
|
case "Z":
|
|
1405
1402
|
return D;
|
|
1406
1403
|
}
|
|
@@ -1410,8 +1407,8 @@ var cn = { exports: {} };
|
|
|
1410
1407
|
}, B.utcOffset = function() {
|
|
1411
1408
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1412
1409
|
}, B.diff = function(E, d, u) {
|
|
1413
|
-
var _, D = this, P =
|
|
1414
|
-
return
|
|
1410
|
+
var _, D = this, P = z.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
|
|
1411
|
+
return z.m(D, x);
|
|
1415
1412
|
};
|
|
1416
1413
|
switch (P) {
|
|
1417
1414
|
case L:
|
|
@@ -1441,7 +1438,7 @@ var cn = { exports: {} };
|
|
|
1441
1438
|
default:
|
|
1442
1439
|
_ = q;
|
|
1443
1440
|
}
|
|
1444
|
-
return u ? _ :
|
|
1441
|
+
return u ? _ : z.a(_);
|
|
1445
1442
|
}, B.daysInMonth = function() {
|
|
1446
1443
|
return this.endOf(w).$D;
|
|
1447
1444
|
}, B.$locale = function() {
|
|
@@ -1451,7 +1448,7 @@ var cn = { exports: {} };
|
|
|
1451
1448
|
var u = this.clone(), _ = j(E, d, !0);
|
|
1452
1449
|
return _ && (u.$L = _), u;
|
|
1453
1450
|
}, B.clone = function() {
|
|
1454
|
-
return
|
|
1451
|
+
return z.w(this.$d, this);
|
|
1455
1452
|
}, B.toDate = function() {
|
|
1456
1453
|
return new Date(this.valueOf());
|
|
1457
1454
|
}, B.toJSON = function() {
|
|
@@ -1489,21 +1486,21 @@ var un = { exports: {} };
|
|
|
1489
1486
|
}, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
|
|
1490
1487
|
(this.zone || (this.zone = {})).offset = function(T) {
|
|
1491
1488
|
if (!T || T === "Z") return 0;
|
|
1492
|
-
var
|
|
1493
|
-
return g === 0 ? 0 :
|
|
1489
|
+
var N = T.match(/([+-]|\d\d)/g), g = 60 * N[1] + (+N[2] || 0);
|
|
1490
|
+
return g === 0 ? 0 : N[0] === "+" ? -g : g;
|
|
1494
1491
|
}(S);
|
|
1495
1492
|
}], $ = function(S) {
|
|
1496
1493
|
var T = a[S];
|
|
1497
1494
|
return T && (T.indexOf ? T : T.s.concat(T.f));
|
|
1498
1495
|
}, L = function(S, T) {
|
|
1499
|
-
var
|
|
1496
|
+
var N, g = a.meridiem;
|
|
1500
1497
|
if (g) {
|
|
1501
1498
|
for (var v = 1; v <= 24; v += 1) if (S.indexOf(g(v, 0, T)) > -1) {
|
|
1502
|
-
|
|
1499
|
+
N = v > 12;
|
|
1503
1500
|
break;
|
|
1504
1501
|
}
|
|
1505
|
-
} else
|
|
1506
|
-
return
|
|
1502
|
+
} else N = S === (T ? "pm" : "PM");
|
|
1503
|
+
return N;
|
|
1507
1504
|
}, V = { A: [i, function(S) {
|
|
1508
1505
|
this.afternoon = L(S, !1);
|
|
1509
1506
|
}], a: [i, function(S) {
|
|
@@ -1517,14 +1514,14 @@ var un = { exports: {} };
|
|
|
1517
1514
|
}], SSS: [/\d{3}/, function(S) {
|
|
1518
1515
|
this.milliseconds = +S;
|
|
1519
1516
|
}], s: [s, h("seconds")], ss: [s, h("seconds")], m: [s, h("minutes")], mm: [s, h("minutes")], H: [s, h("hours")], h: [s, h("hours")], HH: [s, h("hours")], hh: [s, h("hours")], D: [s, h("day")], DD: [c, h("day")], Do: [i, function(S) {
|
|
1520
|
-
var T = a.ordinal,
|
|
1521
|
-
if (this.day =
|
|
1517
|
+
var T = a.ordinal, N = S.match(/\d+/);
|
|
1518
|
+
if (this.day = N[0], T) for (var g = 1; g <= 31; g += 1) T(g).replace(/\[|\]/g, "") === S && (this.day = g);
|
|
1522
1519
|
}], w: [s, h("week")], ww: [c, h("week")], M: [s, h("month")], MM: [c, h("month")], MMM: [i, function(S) {
|
|
1523
|
-
var T = $("months"),
|
|
1520
|
+
var T = $("months"), N = ($("monthsShort") || T.map(function(g) {
|
|
1524
1521
|
return g.slice(0, 3);
|
|
1525
1522
|
})).indexOf(S) + 1;
|
|
1526
|
-
if (
|
|
1527
|
-
this.month =
|
|
1523
|
+
if (N < 1) throw new Error();
|
|
1524
|
+
this.month = N % 12 || N;
|
|
1528
1525
|
}], MMMM: [i, function(S) {
|
|
1529
1526
|
var T = $("months").indexOf(S) + 1;
|
|
1530
1527
|
if (T < 1) throw new Error();
|
|
@@ -1533,11 +1530,11 @@ var un = { exports: {} };
|
|
|
1533
1530
|
this.year = l(S);
|
|
1534
1531
|
}], YYYY: [/\d{4}/, h("year")], Z: w, ZZ: w };
|
|
1535
1532
|
function f(S) {
|
|
1536
|
-
var T,
|
|
1537
|
-
T = S,
|
|
1538
|
-
for (var g = (S = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C,
|
|
1533
|
+
var T, N;
|
|
1534
|
+
T = S, N = a && a.formats;
|
|
1535
|
+
for (var g = (S = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, z, re) {
|
|
1539
1536
|
var le = re && re.toUpperCase();
|
|
1540
|
-
return
|
|
1537
|
+
return z || N[re] || n[re] || N[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
|
|
1541
1538
|
return B || E.slice(1);
|
|
1542
1539
|
});
|
|
1543
1540
|
})).match(o), v = g.length, F = 0; F < v; F += 1) {
|
|
@@ -1545,12 +1542,12 @@ var un = { exports: {} };
|
|
|
1545
1542
|
g[F] = j ? { regex: b, parser: j } : y.replace(/^\[|\]$/g, "");
|
|
1546
1543
|
}
|
|
1547
1544
|
return function(C) {
|
|
1548
|
-
for (var
|
|
1545
|
+
for (var z = {}, re = 0, le = 0; re < v; re += 1) {
|
|
1549
1546
|
var R = g[re];
|
|
1550
1547
|
if (typeof R == "string") le += R.length;
|
|
1551
1548
|
else {
|
|
1552
1549
|
var B = R.regex, E = R.parser, d = C.slice(le), u = B.exec(d)[0];
|
|
1553
|
-
E.call(
|
|
1550
|
+
E.call(z, u), C = C.replace(u, "");
|
|
1554
1551
|
}
|
|
1555
1552
|
}
|
|
1556
1553
|
return function(_) {
|
|
@@ -1559,19 +1556,19 @@ var un = { exports: {} };
|
|
|
1559
1556
|
var P = _.hours;
|
|
1560
1557
|
D ? P < 12 && (_.hours += 12) : P === 12 && (_.hours = 0), delete _.afternoon;
|
|
1561
1558
|
}
|
|
1562
|
-
}(
|
|
1559
|
+
}(z), z;
|
|
1563
1560
|
};
|
|
1564
1561
|
}
|
|
1565
|
-
return function(S, T,
|
|
1566
|
-
|
|
1562
|
+
return function(S, T, N) {
|
|
1563
|
+
N.p.customParseFormat = !0, S && S.parseTwoDigitYear && (l = S.parseTwoDigitYear);
|
|
1567
1564
|
var g = T.prototype, v = g.parse;
|
|
1568
1565
|
g.parse = function(F) {
|
|
1569
1566
|
var y = F.date, A = F.utc, b = F.args;
|
|
1570
1567
|
this.$u = A;
|
|
1571
1568
|
var j = b[1];
|
|
1572
1569
|
if (typeof j == "string") {
|
|
1573
|
-
var C = b[2] === !0,
|
|
1574
|
-
|
|
1570
|
+
var C = b[2] === !0, z = b[3] === !0, re = C || z, le = b[2];
|
|
1571
|
+
z && (le = b[2]), a = this.$locale(), !C && le && (a = N.Ls[le]), this.$d = function(d, u, _, D) {
|
|
1575
1572
|
try {
|
|
1576
1573
|
if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
|
|
1577
1574
|
var P = f(u)(d), x = P.year, K = P.month, q = P.day, Q = P.hours, M = P.minutes, X = P.seconds, ue = P.milliseconds, de = P.zone, me = P.week, we = /* @__PURE__ */ new Date(), De = q || (x || K ? 1 : we.getDate()), $e = x || we.getFullYear(), xe = 0;
|
|
@@ -1581,10 +1578,10 @@ var un = { exports: {} };
|
|
|
1581
1578
|
} catch {
|
|
1582
1579
|
return /* @__PURE__ */ new Date("");
|
|
1583
1580
|
}
|
|
1584
|
-
}(y, j, A,
|
|
1581
|
+
}(y, j, A, N), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && y != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1585
1582
|
} else if (j instanceof Array) for (var R = j.length, B = 1; B <= R; B += 1) {
|
|
1586
1583
|
b[1] = j[B - 1];
|
|
1587
|
-
var E =
|
|
1584
|
+
var E = N.apply(this, b);
|
|
1588
1585
|
if (E.isValid()) {
|
|
1589
1586
|
this.$d = E.$d, this.$L = E.$L, this.init();
|
|
1590
1587
|
break;
|
|
@@ -1607,15 +1604,15 @@ var dn = { exports: {} };
|
|
|
1607
1604
|
return function(r, c, s) {
|
|
1608
1605
|
var i, a = function($, L, V) {
|
|
1609
1606
|
V === void 0 && (V = {});
|
|
1610
|
-
var f = new Date($), S = function(T,
|
|
1611
|
-
|
|
1612
|
-
var g =
|
|
1607
|
+
var f = new Date($), S = function(T, N) {
|
|
1608
|
+
N === void 0 && (N = {});
|
|
1609
|
+
var g = N.timeZoneName || "short", v = T + "|" + g, F = o[v];
|
|
1613
1610
|
return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: T, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: g }), o[v] = F), F;
|
|
1614
1611
|
}(L, V);
|
|
1615
1612
|
return S.formatToParts(f);
|
|
1616
1613
|
}, l = function($, L) {
|
|
1617
1614
|
for (var V = a($, L), f = [], S = 0; S < V.length; S += 1) {
|
|
1618
|
-
var T = V[S],
|
|
1615
|
+
var T = V[S], N = T.type, g = T.value, v = n[N];
|
|
1619
1616
|
v >= 0 && (f[v] = parseInt(g, 10));
|
|
1620
1617
|
}
|
|
1621
1618
|
var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +$;
|
|
@@ -1623,7 +1620,7 @@ var dn = { exports: {} };
|
|
|
1623
1620
|
}, h = c.prototype;
|
|
1624
1621
|
h.tz = function($, L) {
|
|
1625
1622
|
$ === void 0 && ($ = i);
|
|
1626
|
-
var V, f = this.utcOffset(), S = this.toDate(), T = S.toLocaleString("en-US", { timeZone: $ }),
|
|
1623
|
+
var V, f = this.utcOffset(), S = this.toDate(), T = S.toLocaleString("en-US", { timeZone: $ }), N = Math.round((S - new Date(T)) / 1e3 / 60), g = 15 * -Math.round(S.getTimezoneOffset() / 15) - N;
|
|
1627
1624
|
if (!Number(g)) V = this.utcOffset(0, L);
|
|
1628
1625
|
else if (V = s(T, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), L) {
|
|
1629
1626
|
var v = V.utcOffset();
|
|
@@ -1644,12 +1641,12 @@ var dn = { exports: {} };
|
|
|
1644
1641
|
}, s.tz = function($, L, V) {
|
|
1645
1642
|
var f = V && L, S = V || L || i, T = l(+s(), S);
|
|
1646
1643
|
if (typeof $ != "string") return s($).tz(S);
|
|
1647
|
-
var
|
|
1644
|
+
var N = function(y, A, b) {
|
|
1648
1645
|
var j = y - 60 * A * 1e3, C = l(j, b);
|
|
1649
1646
|
if (A === C) return [j, A];
|
|
1650
|
-
var
|
|
1651
|
-
return C ===
|
|
1652
|
-
}(s.utc($, f).valueOf(), T, S), g =
|
|
1647
|
+
var z = l(j -= 60 * (C - A) * 1e3, b);
|
|
1648
|
+
return C === z ? [j, C] : [y - 60 * Math.min(C, z) * 1e3, Math.max(C, z)];
|
|
1649
|
+
}(s.utc($, f).valueOf(), T, S), g = N[0], v = N[1], F = s(g).utcOffset(v);
|
|
1653
1650
|
return F.$x.$timezone = S, F;
|
|
1654
1651
|
}, s.tz.guess = function() {
|
|
1655
1652
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1700,12 +1697,12 @@ var fn = { exports: {} };
|
|
|
1700
1697
|
var A = ("" + y[0]).match(r) || ["-", 0, 0], b = A[0], j = 60 * +A[1] + +A[2];
|
|
1701
1698
|
return j === 0 ? 0 : b === "+" ? j : -j;
|
|
1702
1699
|
}(f), f === null)) return this;
|
|
1703
|
-
var
|
|
1704
|
-
if (
|
|
1700
|
+
var N = Math.abs(f) <= 16 ? 60 * f : f;
|
|
1701
|
+
if (N === 0) return this.utc(S);
|
|
1705
1702
|
var g = this.clone();
|
|
1706
|
-
if (S) return g.$offset =
|
|
1703
|
+
if (S) return g.$offset = N, g.$u = !1, g;
|
|
1707
1704
|
var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1708
|
-
return (g = this.local().add(
|
|
1705
|
+
return (g = this.local().add(N + v, n)).$offset = N, g.$x.$localOffset = v, g;
|
|
1709
1706
|
};
|
|
1710
1707
|
var $ = a.format;
|
|
1711
1708
|
a.format = function(f) {
|
|
@@ -1728,8 +1725,8 @@ var fn = { exports: {} };
|
|
|
1728
1725
|
var V = a.diff;
|
|
1729
1726
|
a.diff = function(f, S, T) {
|
|
1730
1727
|
if (f && this.$u === f.$u) return V.call(this, f, S, T);
|
|
1731
|
-
var
|
|
1732
|
-
return V.call(
|
|
1728
|
+
var N = this.local(), g = i(f).local();
|
|
1729
|
+
return V.call(N, g, S, T);
|
|
1733
1730
|
};
|
|
1734
1731
|
};
|
|
1735
1732
|
});
|
|
@@ -1740,7 +1737,7 @@ Ct.extend(cr);
|
|
|
1740
1737
|
Ct.extend(lr);
|
|
1741
1738
|
Ct.extend(ar);
|
|
1742
1739
|
const yt = /\$\{([^}]+)\}/g;
|
|
1743
|
-
function
|
|
1740
|
+
function ze(e) {
|
|
1744
1741
|
if (!e)
|
|
1745
1742
|
return [];
|
|
1746
1743
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -2032,12 +2029,12 @@ function bn(e) {
|
|
|
2032
2029
|
}
|
|
2033
2030
|
function _r(e, t) {
|
|
2034
2031
|
if (Array.isArray(e)) {
|
|
2035
|
-
const n = e.map((o) =>
|
|
2032
|
+
const n = e.map((o) => Nt(o)).filter(Boolean);
|
|
2036
2033
|
return n.length > 0 ? n.join("、") : t;
|
|
2037
2034
|
}
|
|
2038
|
-
return
|
|
2035
|
+
return Nt(e) || t;
|
|
2039
2036
|
}
|
|
2040
|
-
function
|
|
2037
|
+
function Nt(e) {
|
|
2041
2038
|
if (typeof File < "u" && e instanceof File) return e.name;
|
|
2042
2039
|
if (e && typeof e == "object") {
|
|
2043
2040
|
const t = e;
|
|
@@ -2064,7 +2061,7 @@ function Ir(e = null) {
|
|
|
2064
2061
|
raw: e
|
|
2065
2062
|
};
|
|
2066
2063
|
}
|
|
2067
|
-
function
|
|
2064
|
+
function zt(e) {
|
|
2068
2065
|
const t = kn(e), n = Cn(t), o = Lr(t).flatMap(
|
|
2069
2066
|
(r) => $n(r, n)
|
|
2070
2067
|
);
|
|
@@ -2165,7 +2162,7 @@ function xt(e, t, n, o) {
|
|
|
2165
2162
|
i
|
|
2166
2163
|
), l = a[0] ? wt(a[0]) : In(s), h = ce(r.tag), w = ee(
|
|
2167
2164
|
r.tagId ?? r.infTagId ?? h.tagId ?? h.infTagId ?? c.raw.tagId ?? c.raw.infTagId
|
|
2168
|
-
), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, T = c.setId || ee(r.setId),
|
|
2165
|
+
), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, T = c.setId || ee(r.setId), N = ee(r.infSetId) || T || ee(V), g = T || ee(f ?? N), v = c.code || ee(r.code ?? S ?? g), F = g || v || N || w, y = {
|
|
2169
2166
|
key: F,
|
|
2170
2167
|
id: F,
|
|
2171
2168
|
setId: g,
|
|
@@ -2173,7 +2170,7 @@ function xt(e, t, n, o) {
|
|
|
2173
2170
|
tagId: w,
|
|
2174
2171
|
requestTagId: $ || void 0,
|
|
2175
2172
|
ownerNodeKey: L || void 0,
|
|
2176
|
-
infSetId:
|
|
2173
|
+
infSetId: N,
|
|
2177
2174
|
title: c.name || ee(r.name ?? n?.tagName ?? F),
|
|
2178
2175
|
renderType: i,
|
|
2179
2176
|
mark: c,
|
|
@@ -2235,7 +2232,7 @@ function Dr(e, t) {
|
|
|
2235
2232
|
options: wn(n.options),
|
|
2236
2233
|
interface: c,
|
|
2237
2234
|
cascadeClearFields: qt(n.cascadeClearFields),
|
|
2238
|
-
cascadeDependFields:
|
|
2235
|
+
cascadeDependFields: ze({
|
|
2239
2236
|
cascadeDependFields: s,
|
|
2240
2237
|
interface: c
|
|
2241
2238
|
}),
|
|
@@ -2468,7 +2465,7 @@ const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
|
|
|
2468
2465
|
e?.code,
|
|
2469
2466
|
...(e?.infSetList ?? []).map((t) => t.infSetId),
|
|
2470
2467
|
...(e?.infSetList ?? []).map((t) => t.setId)
|
|
2471
|
-
]),
|
|
2468
|
+
]), Nr = (e) => tt([
|
|
2472
2469
|
e.key,
|
|
2473
2470
|
e.id,
|
|
2474
2471
|
e.setId,
|
|
@@ -2477,14 +2474,14 @@ const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
|
|
|
2477
2474
|
e.code
|
|
2478
2475
|
]);
|
|
2479
2476
|
function Bn(e, t, n) {
|
|
2480
|
-
const o =
|
|
2477
|
+
const o = Nr(e), r = tt([n, ...Xe(t)]);
|
|
2481
2478
|
return r.length === 0 ? !1 : r.some((c) => o.includes(c));
|
|
2482
2479
|
}
|
|
2483
|
-
function
|
|
2480
|
+
function zr(e, t, n) {
|
|
2484
2481
|
return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((r) => Bn(r, t, n));
|
|
2485
2482
|
}
|
|
2486
2483
|
function xr(e, t, n = {}) {
|
|
2487
|
-
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, i =
|
|
2484
|
+
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, i = ze(c).some((a) => {
|
|
2488
2485
|
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Gr(e, a))
|
|
2489
2486
|
return !1;
|
|
2490
2487
|
const l = o[a];
|
|
@@ -2499,7 +2496,7 @@ function xr(e, t, n = {}) {
|
|
|
2499
2496
|
};
|
|
2500
2497
|
}
|
|
2501
2498
|
function qr(e) {
|
|
2502
|
-
return !!(e && !ut(e) &&
|
|
2499
|
+
return !!(e && !ut(e) && ze(e).length === 0 && (e.options ?? []).length > 0);
|
|
2503
2500
|
}
|
|
2504
2501
|
function Gr(e, t) {
|
|
2505
2502
|
return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
|
|
@@ -2605,7 +2602,7 @@ function Je(e = {}) {
|
|
|
2605
2602
|
};
|
|
2606
2603
|
}
|
|
2607
2604
|
function Qr(e) {
|
|
2608
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c =
|
|
2605
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = zr(e.nextViewModel.sections, e.node, e.targetKey), s = tt([e.targetKey, ...Xe(e.node)]).length > 0, i = c.find((a) => Bn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
|
|
2609
2606
|
return c.forEach((a) => {
|
|
2610
2607
|
const l = Me(a);
|
|
2611
2608
|
t[l] = a, o.includes(l) || o.push(l), r[l] = Je({
|
|
@@ -2642,7 +2639,7 @@ function Xr(e, t = [], n = {}) {
|
|
|
2642
2639
|
function ea(e, t) {
|
|
2643
2640
|
return typeof e == "function" ? e(t) : typeof e == "string" ? e : Ln;
|
|
2644
2641
|
}
|
|
2645
|
-
const
|
|
2642
|
+
const Ne = (e) => new Error(`[GlobalInfo] ${e}`), ta = (e) => [
|
|
2646
2643
|
String(e.method ?? "").toLowerCase(),
|
|
2647
2644
|
String(e.url ?? ""),
|
|
2648
2645
|
It(Te(e.params))
|
|
@@ -2699,7 +2696,7 @@ const na = (e) => {
|
|
|
2699
2696
|
tagLevel: m.tagLevel,
|
|
2700
2697
|
// parentTagId 保留父子关系上下文。
|
|
2701
2698
|
parentTagId: m.parentTagId
|
|
2702
|
-
}),
|
|
2699
|
+
}), N = (m = i.value, p = a.value) => ({
|
|
2703
2700
|
// 详情接口同样需要基础人员和场景参数。
|
|
2704
2701
|
...S(),
|
|
2705
2702
|
// 当前节点所属模板方案。
|
|
@@ -2722,7 +2719,7 @@ const na = (e) => {
|
|
|
2722
2719
|
}), v = nr(
|
|
2723
2720
|
async (m, p) => {
|
|
2724
2721
|
if (!e.service.requestOperation)
|
|
2725
|
-
throw
|
|
2722
|
+
throw Ne("service.requestOperation is required");
|
|
2726
2723
|
return e.service.requestOperation(m, p);
|
|
2727
2724
|
},
|
|
2728
2725
|
(m) => ta(m)
|
|
@@ -2773,7 +2770,7 @@ const na = (e) => {
|
|
|
2773
2770
|
}, C = (m = a.value) => {
|
|
2774
2771
|
if (m)
|
|
2775
2772
|
return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Me(m);
|
|
2776
|
-
},
|
|
2773
|
+
}, z = (m = a.value) => {
|
|
2777
2774
|
if (Ue(m))
|
|
2778
2775
|
return m;
|
|
2779
2776
|
if (typeof m == "string") {
|
|
@@ -2865,19 +2862,19 @@ const na = (e) => {
|
|
|
2865
2862
|
[k]: J
|
|
2866
2863
|
}, a.value = Me(a.value ?? J) === k ? J : a.value, B();
|
|
2867
2864
|
}, u = async (m = a.value ?? i.value) => {
|
|
2868
|
-
const p = re(m), k =
|
|
2865
|
+
const p = re(m), k = z(m) ?? i.value, Y = C(m);
|
|
2869
2866
|
if (!k)
|
|
2870
2867
|
return null;
|
|
2871
2868
|
if (!e.service.requestOperation)
|
|
2872
|
-
throw
|
|
2869
|
+
throw Ne("service.requestOperation is required");
|
|
2873
2870
|
n.value = !0, r.value = null, R(Y ?? k, { loading: !0, error: null });
|
|
2874
2871
|
try {
|
|
2875
2872
|
const J = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : k.infSetList;
|
|
2876
2873
|
if (J.length === 0)
|
|
2877
|
-
throw
|
|
2874
|
+
throw Ne("node.infSetList is required");
|
|
2878
2875
|
const Ce = await Promise.all(J.map(async (ie) => {
|
|
2879
2876
|
const he = Ur(p, k, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? k.tagId, ot = {
|
|
2880
|
-
...
|
|
2877
|
+
...N(k, p),
|
|
2881
2878
|
tagId: Ae,
|
|
2882
2879
|
infSetId: ie.infSetId,
|
|
2883
2880
|
setId: ie.setId,
|
|
@@ -2894,7 +2891,7 @@ const na = (e) => {
|
|
|
2894
2891
|
});
|
|
2895
2892
|
return $r(Ke, ot, k);
|
|
2896
2893
|
}
|
|
2897
|
-
throw
|
|
2894
|
+
throw Ne("infoSet.operationInfo.queryInfoSet is required");
|
|
2898
2895
|
})), ve = {
|
|
2899
2896
|
...Ce[0],
|
|
2900
2897
|
sections: Ce.flatMap((ie) => ie.sections),
|
|
@@ -2924,7 +2921,7 @@ const na = (e) => {
|
|
|
2924
2921
|
node: m,
|
|
2925
2922
|
params: k
|
|
2926
2923
|
});
|
|
2927
|
-
return
|
|
2924
|
+
return zt(Y).treeNodes;
|
|
2928
2925
|
}, K = async (m) => {
|
|
2929
2926
|
if (m.loaded)
|
|
2930
2927
|
return m.children;
|
|
@@ -2936,10 +2933,10 @@ const na = (e) => {
|
|
|
2936
2933
|
}, Q = async () => {
|
|
2937
2934
|
const m = e.service.templateTree;
|
|
2938
2935
|
if (!m)
|
|
2939
|
-
throw
|
|
2936
|
+
throw Ne("service.templateTree is required");
|
|
2940
2937
|
t.value = !0, r.value = null;
|
|
2941
2938
|
try {
|
|
2942
|
-
const p = await m(S()), k =
|
|
2939
|
+
const p = await m(S()), k = zt(p), Y = await Promise.all(
|
|
2943
2940
|
k.treeNodes.map(async (Ce) => {
|
|
2944
2941
|
const ve = await x(Ce);
|
|
2945
2942
|
return {
|
|
@@ -3037,7 +3034,7 @@ const na = (e) => {
|
|
|
3037
3034
|
type: "fieldOptions",
|
|
3038
3035
|
requestSource: "inner",
|
|
3039
3036
|
tagId: J.requestTagId ?? J.tagId,
|
|
3040
|
-
node:
|
|
3037
|
+
node: z(J),
|
|
3041
3038
|
section: J,
|
|
3042
3039
|
field: ie,
|
|
3043
3040
|
params: Te(Ke.params),
|
|
@@ -3124,13 +3121,13 @@ const na = (e) => {
|
|
|
3124
3121
|
return null;
|
|
3125
3122
|
const Y = Hr(k);
|
|
3126
3123
|
if (!Y)
|
|
3127
|
-
throw
|
|
3124
|
+
throw Ne("section.operationInfo.editInfoSet is required");
|
|
3128
3125
|
o.value = !0, r.value = null, p && p !== Me(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
|
|
3129
3126
|
try {
|
|
3130
3127
|
const {
|
|
3131
3128
|
tagId: J,
|
|
3132
3129
|
...Ce
|
|
3133
|
-
} =
|
|
3130
|
+
} = N(i.value, k), ve = kr(k, Ce), ie = Xr(
|
|
3134
3131
|
k,
|
|
3135
3132
|
ve.infSetValues ?? [],
|
|
3136
3133
|
{
|
|
@@ -3293,7 +3290,7 @@ const oa = {
|
|
|
3293
3290
|
// select_remote_descr 的浮层样式受业务沙箱前缀约束,默认留在当前应用容器内,避免 teleport 到 body 后样式失效。
|
|
3294
3291
|
a.value ? !1 : n.field.props?.teleported
|
|
3295
3292
|
)
|
|
3296
|
-
),
|
|
3293
|
+
), N = O(() => {
|
|
3297
3294
|
const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], _ = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3298
3295
|
return u !== void 0 || _ !== void 0 ? n.modelValue ?? _ ?? !1 : vn(n.modelValue);
|
|
3299
3296
|
}), g = O(() => s.value === "code" ? 5 : 1), v = O(
|
|
@@ -3324,7 +3321,7 @@ const oa = {
|
|
|
3324
3321
|
function C(u) {
|
|
3325
3322
|
o("update:modelValue", re(u));
|
|
3326
3323
|
}
|
|
3327
|
-
function
|
|
3324
|
+
function z(u) {
|
|
3328
3325
|
o("change", re(u));
|
|
3329
3326
|
}
|
|
3330
3327
|
function re(u) {
|
|
@@ -3349,7 +3346,7 @@ const oa = {
|
|
|
3349
3346
|
});
|
|
3350
3347
|
function d(u) {
|
|
3351
3348
|
const _ = u.target, D = Array.from(_.files ?? []), P = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3352
|
-
C(P),
|
|
3349
|
+
C(P), z(P);
|
|
3353
3350
|
}
|
|
3354
3351
|
return (u, _) => {
|
|
3355
3352
|
const D = Xt, P = Qt, x = Wt, K = ao, q = so, Q = Zt;
|
|
@@ -3371,7 +3368,7 @@ const oa = {
|
|
|
3371
3368
|
clearable: "",
|
|
3372
3369
|
onVisibleChange: le,
|
|
3373
3370
|
"onUpdate:modelValue": C,
|
|
3374
|
-
onChange:
|
|
3371
|
+
onChange: z
|
|
3375
3372
|
}), {
|
|
3376
3373
|
default: U(() => [
|
|
3377
3374
|
(I(!0), G(Se, null, ye(f.value, (M) => (I(), H(D, {
|
|
@@ -3399,7 +3396,7 @@ const oa = {
|
|
|
3399
3396
|
type: "date",
|
|
3400
3397
|
"value-format": "YYYY-MM-DD",
|
|
3401
3398
|
"onUpdate:modelValue": C,
|
|
3402
|
-
onChange:
|
|
3399
|
+
onChange: z
|
|
3403
3400
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(), H(K, ae({
|
|
3404
3401
|
key: 2,
|
|
3405
3402
|
class: "global-info-field-control"
|
|
@@ -3409,15 +3406,15 @@ const oa = {
|
|
|
3409
3406
|
disabled: l.value,
|
|
3410
3407
|
"controls-position": "right",
|
|
3411
3408
|
"onUpdate:modelValue": C,
|
|
3412
|
-
onChange:
|
|
3409
|
+
onChange: z
|
|
3413
3410
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (I(), H(q, ae({
|
|
3414
3411
|
key: 3,
|
|
3415
3412
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3416
3413
|
}, u.field.props, {
|
|
3417
|
-
"model-value":
|
|
3414
|
+
"model-value": N.value,
|
|
3418
3415
|
disabled: l.value,
|
|
3419
3416
|
"onUpdate:modelValue": C,
|
|
3420
|
-
onChange:
|
|
3417
|
+
onChange: z
|
|
3421
3418
|
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (I(), G("div", {
|
|
3422
3419
|
key: 4,
|
|
3423
3420
|
class: We(["global-info-field-control global-info-field-control--file", {
|
|
@@ -3470,11 +3467,11 @@ const oa = {
|
|
|
3470
3467
|
rows: r.includes(s.value) ? g.value : void 0,
|
|
3471
3468
|
resize: $.value,
|
|
3472
3469
|
"onUpdate:modelValue": C,
|
|
3473
|
-
onChange:
|
|
3470
|
+
onChange: z
|
|
3474
3471
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3475
3472
|
};
|
|
3476
3473
|
}
|
|
3477
|
-
}), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-
|
|
3474
|
+
}), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-6f0e8003"]]), ma = ["innerHTML"], va = {
|
|
3478
3475
|
key: 1,
|
|
3479
3476
|
class: "global-info-field-value global-info-field-value--code"
|
|
3480
3477
|
}, ha = {
|
|
@@ -3517,17 +3514,17 @@ const oa = {
|
|
|
3517
3514
|
}])
|
|
3518
3515
|
}, oe(r.value), 3));
|
|
3519
3516
|
}
|
|
3520
|
-
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-
|
|
3517
|
+
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-ee821983"]]);
|
|
3521
3518
|
function _a(e) {
|
|
3522
3519
|
const t = kt(e);
|
|
3523
3520
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3524
3521
|
}
|
|
3525
3522
|
function st(e, t, n = {}, o = "") {
|
|
3526
|
-
const r = t.key || t.id || t.code, s =
|
|
3523
|
+
const r = t.key || t.id || t.code, s = ze(t).map((i) => `${i}:${String(n[i] ?? "")}`).join("|");
|
|
3527
3524
|
return [e, o, r, s].join("::");
|
|
3528
3525
|
}
|
|
3529
3526
|
function lt(e, t, n) {
|
|
3530
|
-
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t &&
|
|
3527
|
+
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && ze(e).length === 0 : !1;
|
|
3531
3528
|
}
|
|
3532
3529
|
function An(e = {}) {
|
|
3533
3530
|
return Object.prototype.hasOwnProperty.call(e, "searchText");
|
|
@@ -3536,12 +3533,12 @@ function Rn(e, t) {
|
|
|
3536
3533
|
const n = new Set(
|
|
3537
3534
|
[t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
|
|
3538
3535
|
);
|
|
3539
|
-
return n.size === 0 ? !1 :
|
|
3536
|
+
return n.size === 0 ? !1 : ze(e).some((o) => n.has(o));
|
|
3540
3537
|
}
|
|
3541
|
-
function
|
|
3538
|
+
function Nn(e, t, n) {
|
|
3542
3539
|
return _a(e) ? n ? !0 : (ut(e), !_e(t)) : !1;
|
|
3543
3540
|
}
|
|
3544
|
-
function
|
|
3541
|
+
function zn(e, t) {
|
|
3545
3542
|
return [e.code, e.key, e.id].map((o) => t[o]).filter((o) => !_e(o))[0] ?? e.value;
|
|
3546
3543
|
}
|
|
3547
3544
|
function xn(e, t) {
|
|
@@ -3639,8 +3636,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3639
3636
|
async function L(v = o.value, F) {
|
|
3640
3637
|
for (const y of c.value) {
|
|
3641
3638
|
if (F && !Rn(y, F)) continue;
|
|
3642
|
-
const A =
|
|
3643
|
-
if (!
|
|
3639
|
+
const A = zn(y, v);
|
|
3640
|
+
if (!N(y, A)) continue;
|
|
3644
3641
|
const b = st(t.section.key, y, v), j = T(y), C = r.get(j);
|
|
3645
3642
|
if (lt(y, C, b)) {
|
|
3646
3643
|
r.set(j, b);
|
|
@@ -3688,8 +3685,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3688
3685
|
function T(v) {
|
|
3689
3686
|
return v.key || v.id || v.code;
|
|
3690
3687
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return
|
|
3688
|
+
function N(v, F) {
|
|
3689
|
+
return Nn(v, F, t.editing);
|
|
3693
3690
|
}
|
|
3694
3691
|
function g(v) {
|
|
3695
3692
|
return v.required || v.isRequired;
|
|
@@ -3702,7 +3699,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3702
3699
|
"label-position": "top"
|
|
3703
3700
|
}, {
|
|
3704
3701
|
default: U(() => [
|
|
3705
|
-
Ie(b, { gutter:
|
|
3702
|
+
Ie(b, { gutter: 5 }, {
|
|
3706
3703
|
default: U(() => [
|
|
3707
3704
|
(I(!0), G(Se, null, ye(c.value, (C) => (I(), H(A, {
|
|
3708
3705
|
key: T(C),
|
|
@@ -3728,8 +3725,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3728
3725
|
field: C,
|
|
3729
3726
|
"model-value": o.value[C.code],
|
|
3730
3727
|
section: v.section,
|
|
3731
|
-
onLoadOptions: (
|
|
3732
|
-
"onUpdate:modelValue": (
|
|
3728
|
+
onLoadOptions: (z) => $(C, z),
|
|
3729
|
+
"onUpdate:modelValue": (z) => i(C, z)
|
|
3733
3730
|
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
3734
3731
|
key: 2,
|
|
3735
3732
|
field: C,
|
|
@@ -3750,7 +3747,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3750
3747
|
}, 8, ["model"]);
|
|
3751
3748
|
};
|
|
3752
3749
|
}
|
|
3753
|
-
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-
|
|
3750
|
+
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-cbbe506b"]]), ka = /* @__PURE__ */ pe({
|
|
3754
3751
|
name: "GlobalInfoDeleteConfirm",
|
|
3755
3752
|
__name: "GlobalInfoDeleteConfirm",
|
|
3756
3753
|
props: {
|
|
@@ -3898,7 +3895,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3898
3895
|
});
|
|
3899
3896
|
return Object.fromEntries(D);
|
|
3900
3897
|
}
|
|
3901
|
-
async function
|
|
3898
|
+
async function N(d, u, _ = {}, D = u) {
|
|
3902
3899
|
const P = B(D), x = `${P}:${C(d)}`, K = st(
|
|
3903
3900
|
t.section.key,
|
|
3904
3901
|
d,
|
|
@@ -3931,7 +3928,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3931
3928
|
for (const x of a.value) {
|
|
3932
3929
|
if (d && !Rn(x, d))
|
|
3933
3930
|
continue;
|
|
3934
|
-
const K =
|
|
3931
|
+
const K = zn(x, D);
|
|
3935
3932
|
if (!A(x, K)) continue;
|
|
3936
3933
|
const q = st(
|
|
3937
3934
|
t.section.key,
|
|
@@ -3943,7 +3940,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3943
3940
|
l.set(Q, q);
|
|
3944
3941
|
continue;
|
|
3945
3942
|
}
|
|
3946
|
-
M !== q && await
|
|
3943
|
+
M !== q && await N(
|
|
3947
3944
|
x,
|
|
3948
3945
|
D,
|
|
3949
3946
|
xn(x, K)
|
|
@@ -3978,7 +3975,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3978
3975
|
return !d.readonly && !d.disabled;
|
|
3979
3976
|
}
|
|
3980
3977
|
function A(d, u) {
|
|
3981
|
-
return
|
|
3978
|
+
return Nn(d, u, t.editing);
|
|
3982
3979
|
}
|
|
3983
3980
|
function b(d) {
|
|
3984
3981
|
return d.width ?? (Pt(d) ? 56 : void 0);
|
|
@@ -3990,7 +3987,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3990
3987
|
function C(d) {
|
|
3991
3988
|
return d.key || d.id || d.code;
|
|
3992
3989
|
}
|
|
3993
|
-
function
|
|
3990
|
+
function z(d) {
|
|
3994
3991
|
return i.value + d;
|
|
3995
3992
|
}
|
|
3996
3993
|
function re(d) {
|
|
@@ -4041,7 +4038,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4041
4038
|
type: "index",
|
|
4042
4039
|
label: c.value,
|
|
4043
4040
|
width: s.value,
|
|
4044
|
-
index:
|
|
4041
|
+
index: z
|
|
4045
4042
|
}, null, 8, ["label", "width"])) : fe("", !0),
|
|
4046
4043
|
(I(!0), G(Se, null, ye(a.value, (q) => (I(), H(_, {
|
|
4047
4044
|
key: C(q),
|
|
@@ -4067,7 +4064,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4067
4064
|
section: d.section,
|
|
4068
4065
|
row: Q,
|
|
4069
4066
|
"row-index": M,
|
|
4070
|
-
onLoadOptions: (X) =>
|
|
4067
|
+
onLoadOptions: (X) => N(q, Q, X),
|
|
4071
4068
|
"onUpdate:modelValue": (X) => L(Q, M, q, X)
|
|
4072
4069
|
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
4073
4070
|
key: 2,
|
|
@@ -4121,7 +4118,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4121
4118
|
], 2);
|
|
4122
4119
|
};
|
|
4123
4120
|
}
|
|
4124
|
-
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-
|
|
4121
|
+
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-93cabdf4"]]), Ba = /* @__PURE__ */ pe({
|
|
4125
4122
|
name: "GlobalInfoAutoRenderer",
|
|
4126
4123
|
__name: "GlobalInfoAutoRenderer",
|
|
4127
4124
|
props: {
|
|
@@ -4267,7 +4264,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4267
4264
|
}, ja = { class: "global-info-section-block__title-wrap" }, Aa = { class: "global-info-section-block__title" }, Ra = {
|
|
4268
4265
|
key: 0,
|
|
4269
4266
|
class: "global-info-section-block__actions"
|
|
4270
|
-
},
|
|
4267
|
+
}, Na = { class: "global-info-section-block__body" }, za = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = { class: "global-info-section-block__status" }, Ga = /* @__PURE__ */ pe({
|
|
4271
4268
|
name: "GlobalInfoSectionBlock",
|
|
4272
4269
|
__name: "GlobalInfoSectionBlock",
|
|
4273
4270
|
props: {
|
|
@@ -4322,7 +4319,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4322
4319
|
state: t.state,
|
|
4323
4320
|
actions: t.actions,
|
|
4324
4321
|
reload: A,
|
|
4325
|
-
handleEdit:
|
|
4322
|
+
handleEdit: N,
|
|
4326
4323
|
handleCancel: g,
|
|
4327
4324
|
handleAddTableRow: v,
|
|
4328
4325
|
handleSave: F
|
|
@@ -4330,7 +4327,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4330
4327
|
function T(b) {
|
|
4331
4328
|
return b ? b instanceof Error ? b.message : String(b) : "";
|
|
4332
4329
|
}
|
|
4333
|
-
async function
|
|
4330
|
+
async function N() {
|
|
4334
4331
|
const b = a.value;
|
|
4335
4332
|
b && (await t.onEdit?.(b, t.node), t.onEdit || t.actions.startEdit(b));
|
|
4336
4333
|
}
|
|
@@ -4342,7 +4339,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4342
4339
|
const b = a.value;
|
|
4343
4340
|
if (!b) return;
|
|
4344
4341
|
const j = b.fields.reduce(
|
|
4345
|
-
(C,
|
|
4342
|
+
(C, z) => (C[z.code] = z.value ?? "", C),
|
|
4346
4343
|
{ __rowKey: `new-${Date.now()}` }
|
|
4347
4344
|
);
|
|
4348
4345
|
t.actions.saveRow(b, j, -1);
|
|
@@ -4427,7 +4424,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4427
4424
|
key: 0,
|
|
4428
4425
|
class: "global-info-section-block__edit",
|
|
4429
4426
|
disabled: i.value.saving || L.value,
|
|
4430
|
-
onClick:
|
|
4427
|
+
onClick: N
|
|
4431
4428
|
}, {
|
|
4432
4429
|
default: U(() => [
|
|
4433
4430
|
j[1] || (j[1] = ne("svg", {
|
|
@@ -4449,9 +4446,9 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4449
4446
|
], !0)
|
|
4450
4447
|
], !0)
|
|
4451
4448
|
])),
|
|
4452
|
-
ne("div",
|
|
4449
|
+
ne("div", Na, [
|
|
4453
4450
|
L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
|
|
4454
|
-
ne("div",
|
|
4451
|
+
ne("div", za, oe(W(Z)("common.加载中___")), 1)
|
|
4455
4452
|
], !0) : !a.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
|
|
4456
4453
|
ne("div", xa, oe(W(Z)("common.暂无数据")), 1)
|
|
4457
4454
|
], !0) : (I(), H(La, {
|
|
@@ -4474,7 +4471,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4474
4471
|
actions: b.actions,
|
|
4475
4472
|
"render-config": b.renderConfig
|
|
4476
4473
|
}, Re({ _: 2 }, [
|
|
4477
|
-
ye(W(n), (
|
|
4474
|
+
ye(W(n), (z, re) => ({
|
|
4478
4475
|
name: re,
|
|
4479
4476
|
fn: U((le) => [
|
|
4480
4477
|
te(b.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
|
|
@@ -4488,7 +4485,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4488
4485
|
]);
|
|
4489
4486
|
};
|
|
4490
4487
|
}
|
|
4491
|
-
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-
|
|
4488
|
+
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-01e68445"]]), Ya = { class: "global-info-group" }, Ua = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ja = { class: "global-info-group__body" }, Wa = ["id"], Za = { class: "global-info-group__empty" }, Qa = /* @__PURE__ */ pe({
|
|
4492
4489
|
name: "GlobalInfoGroup",
|
|
4493
4490
|
__name: "GlobalInfoGroup",
|
|
4494
4491
|
props: {
|
|
@@ -4607,7 +4604,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4607
4604
|
])
|
|
4608
4605
|
]));
|
|
4609
4606
|
}
|
|
4610
|
-
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-
|
|
4607
|
+
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e86a3d32"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
|
|
4611
4608
|
name: "GlobalInfoSections",
|
|
4612
4609
|
__name: "GlobalInfoSections",
|
|
4613
4610
|
props: {
|
|
@@ -4715,7 +4712,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4715
4712
|
], 64))), 128))
|
|
4716
4713
|
]));
|
|
4717
4714
|
}
|
|
4718
|
-
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-
|
|
4715
|
+
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-d4ed3f80"]]);
|
|
4719
4716
|
function ds(e, t = {}) {
|
|
4720
4717
|
Un(e, t);
|
|
4721
4718
|
}
|
|
@@ -4744,7 +4741,7 @@ export {
|
|
|
4744
4741
|
ls as JtPageHeader,
|
|
4745
4742
|
Ko as JtPagination,
|
|
4746
4743
|
Io as JtSelect,
|
|
4747
|
-
|
|
4744
|
+
zo as JtTable,
|
|
4748
4745
|
kr as buildGlobalInfoUpdatePayload,
|
|
4749
4746
|
Ir as createEmptyGlobalInfoViewModel,
|
|
4750
4747
|
vs as getJtLocale,
|
|
@@ -4753,7 +4750,7 @@ export {
|
|
|
4753
4750
|
is as isGlobalInfoNode,
|
|
4754
4751
|
Sn as mergeGlobalInfoChildren,
|
|
4755
4752
|
$r as normalizeGlobalInfoDetail,
|
|
4756
|
-
|
|
4753
|
+
zt as normalizeGlobalInfoTree,
|
|
4757
4754
|
hs as normalizeLocale,
|
|
4758
4755
|
gs as resetJtLocale,
|
|
4759
4756
|
Cr as resolveGlobalInfoRenderType,
|