@jt-home/mfe-components 1.0.60-beta.1 → 1.0.62-beta.0
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 +555 -553
- package/dist/types/components/globalInfo/model/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { t as ne, J as Kt, i as
|
|
2
|
+
import { t as ne, J as Kt, i as ro } from "./index-BdgCXrMw.js";
|
|
3
3
|
import { a as As, g as qs, n as Gs, r as zs, s as Ys, b as Hs } from "./index-BdgCXrMw.js";
|
|
4
|
-
import { defineComponent as ve, useAttrs as
|
|
5
|
-
import { ElButton as Dt, ElIcon as
|
|
6
|
-
import { cascaderEmits as
|
|
7
|
-
const $t = 2,
|
|
8
|
-
function
|
|
4
|
+
import { defineComponent as ve, useAttrs as ao, computed as F, openBlock as w, createBlock as W, mergeProps as ue, toHandlers as lt, withCtx as x, renderSlot as te, resolveDynamicComponent as on, createCommentVNode as de, ref as Se, watch as Ke, mergeDefaults as so, withKeys as lo, createElementBlock as G, Fragment as Ce, renderList as me, normalizeStyle as Ft, nextTick as io, useSlots as je, normalizeClass as He, createVNode as Me, withModifiers as rn, unref as J, createSlots as Re, createElementVNode as se, toDisplayString as ae, normalizeProps as Te, guardReactiveProps as Oe, useModel as St, withDirectives as co, mergeModels as At, shallowRef as ze, onMounted as an, onBeforeUnmount as sn, createTextVNode as et, resolveComponent as uo, onErrorCaptured as fo } from "vue";
|
|
5
|
+
import { ElButton as Dt, ElIcon as ln, ElCascader as po, ElDatePicker as cn, ElInput as un, ElSelect as dn, ElOption as fn, ElFormItem as pn, ElForm as mn, ElTable as vn, ElTableColumn as hn, ElPagination as mo, ElLoadingDirective as vo, ElInputNumber as ho, ElSwitch as go, ElPopconfirm as yo, ElSkeleton as bo } from "element-plus/es";
|
|
6
|
+
import { cascaderEmits as So, inputEmits as qt, selectEmits as Gt } from "element-plus";
|
|
7
|
+
const $t = 2, wo = 3;
|
|
8
|
+
function _o(e) {
|
|
9
9
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function gn(e) {
|
|
12
12
|
if (!e.startsWith("on") || e.length <= $t)
|
|
13
13
|
return !1;
|
|
14
14
|
const t = e.charCodeAt($t);
|
|
15
15
|
return t < 97 || t > 122;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Io(e) {
|
|
18
18
|
if (e.startsWith("on-"))
|
|
19
|
-
return e.slice(
|
|
20
|
-
const [t, n] = e.slice($t).split(":"), o =
|
|
19
|
+
return e.slice(wo);
|
|
20
|
+
const [t, n] = e.slice($t).split(":"), o = _o(t);
|
|
21
21
|
return n ? `${o}:${n}` : o;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function yn(e, t = /* @__PURE__ */ new Set()) {
|
|
24
24
|
return Object.fromEntries(
|
|
25
|
-
Object.entries(e).filter(([n, o]) => !t.has(n) &&
|
|
25
|
+
Object.entries(e).filter(([n, o]) => !t.has(n) && gn(n) && typeof o == "function").map(([n, o]) => [Io(n), o])
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function bn(e, t = /* @__PURE__ */ new Set()) {
|
|
29
29
|
return Object.fromEntries(
|
|
30
|
-
Object.entries(e).filter(([n]) => !t.has(n) && !
|
|
30
|
+
Object.entries(e).filter(([n]) => !t.has(n) && !gn(n))
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const $o = /* @__PURE__ */ ve({
|
|
34
34
|
name: "JtButton",
|
|
35
35
|
__name: "index",
|
|
36
36
|
props: {
|
|
@@ -55,15 +55,15 @@ const Io = /* @__PURE__ */ ve({
|
|
|
55
55
|
tag: {}
|
|
56
56
|
},
|
|
57
57
|
setup(e) {
|
|
58
|
-
const t = e, n =
|
|
58
|
+
const t = e, n = ao(), o = F(() => {
|
|
59
59
|
const { icon: a, ...r } = t;
|
|
60
60
|
return {
|
|
61
|
-
...
|
|
61
|
+
...bn(n),
|
|
62
62
|
...r
|
|
63
63
|
};
|
|
64
|
-
}), s = F(() =>
|
|
64
|
+
}), s = F(() => yn(n));
|
|
65
65
|
return (a, r) => {
|
|
66
|
-
const c =
|
|
66
|
+
const c = ln, i = Dt;
|
|
67
67
|
return w(), W(i, ue({ class: "jt-button" }, o.value, lt(s.value)), {
|
|
68
68
|
default: x(() => [
|
|
69
69
|
a.$slots.icon ? (w(), W(c, {
|
|
@@ -79,7 +79,7 @@ const Io = /* @__PURE__ */ ve({
|
|
|
79
79
|
class: "jt-button__icon"
|
|
80
80
|
}, {
|
|
81
81
|
default: x(() => [
|
|
82
|
-
(w(), W(
|
|
82
|
+
(w(), W(on(t.icon)))
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
})) : de("", !0),
|
|
@@ -94,7 +94,7 @@ const Io = /* @__PURE__ */ ve({
|
|
|
94
94
|
for (const [o, s] of t)
|
|
95
95
|
n[o] = s;
|
|
96
96
|
return n;
|
|
97
|
-
}, ut = /* @__PURE__ */ Ie(
|
|
97
|
+
}, ut = /* @__PURE__ */ Ie($o, [["__scopeId", "data-v-407e719d"]]), Co = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
clearable: !0,
|
|
@@ -105,16 +105,16 @@ function zt(e) {
|
|
|
105
105
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ko(e) {
|
|
109
109
|
const t = zt(e);
|
|
110
110
|
return t.props && (t.props = zt(
|
|
111
111
|
t.props
|
|
112
112
|
)), t;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const To = /* @__PURE__ */ ve({
|
|
115
115
|
name: "JtCascader",
|
|
116
116
|
__name: "index",
|
|
117
|
-
props: /* @__PURE__ */
|
|
117
|
+
props: /* @__PURE__ */ so({
|
|
118
118
|
size: {},
|
|
119
119
|
placeholder: {},
|
|
120
120
|
disabled: { type: Boolean },
|
|
@@ -152,11 +152,11 @@ const ko = /* @__PURE__ */ ve({
|
|
|
152
152
|
emptyValues: {},
|
|
153
153
|
valueOnClear: { type: [String, Number, Boolean, Function, null] },
|
|
154
154
|
options: {}
|
|
155
|
-
},
|
|
156
|
-
emits:
|
|
155
|
+
}, Co),
|
|
156
|
+
emits: So,
|
|
157
157
|
setup(e, { emit: t }) {
|
|
158
158
|
const n = e, o = F(() => {
|
|
159
|
-
const f =
|
|
159
|
+
const f = ko(n);
|
|
160
160
|
if (!f.disabled) return f;
|
|
161
161
|
const { placeholder: I, ...M } = f;
|
|
162
162
|
return M;
|
|
@@ -190,14 +190,14 @@ const ko = /* @__PURE__ */ ve({
|
|
|
190
190
|
function S(f) {
|
|
191
191
|
r("visibleChange", f);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function E(f) {
|
|
194
194
|
r("expandChange", f);
|
|
195
195
|
}
|
|
196
196
|
function D(f) {
|
|
197
197
|
r("removeTag", f);
|
|
198
198
|
}
|
|
199
199
|
return (f, I) => {
|
|
200
|
-
const M =
|
|
200
|
+
const M = po;
|
|
201
201
|
return w(), W(M, ue({ class: "jt-cascader" }, o.value, {
|
|
202
202
|
"model-value": s.value,
|
|
203
203
|
"onUpdate:modelValue": c,
|
|
@@ -206,12 +206,12 @@ const ko = /* @__PURE__ */ ve({
|
|
|
206
206
|
onBlur: u,
|
|
207
207
|
onClear: y,
|
|
208
208
|
onVisibleChange: S,
|
|
209
|
-
onExpandChange:
|
|
209
|
+
onExpandChange: E,
|
|
210
210
|
onRemoveTag: D
|
|
211
211
|
}), null, 16, ["model-value"]);
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Mo = /* @__PURE__ */ ve({
|
|
215
215
|
name: "JtDatePicker",
|
|
216
216
|
__name: "index",
|
|
217
217
|
props: {
|
|
@@ -281,13 +281,13 @@ const ko = /* @__PURE__ */ ve({
|
|
|
281
281
|
return s?.includes("range") ?? !1;
|
|
282
282
|
}
|
|
283
283
|
return (s, a) => {
|
|
284
|
-
const r =
|
|
284
|
+
const r = cn;
|
|
285
285
|
return w(), W(r, ue({ class: "jt-date-picker" }, n.value, {
|
|
286
286
|
"onUpdate:modelValue": a[0] || (a[0] = (c) => s.$emit("update:modelValue", c))
|
|
287
287
|
}), null, 16);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
}),
|
|
290
|
+
}), Oo = /* @__PURE__ */ Ie(Mo, [["__scopeId", "data-v-34482973"]]), Fo = /* @__PURE__ */ ve({
|
|
291
291
|
name: "JtInput",
|
|
292
292
|
__name: "index",
|
|
293
293
|
props: {
|
|
@@ -347,13 +347,13 @@ const ko = /* @__PURE__ */ ve({
|
|
|
347
347
|
])
|
|
348
348
|
));
|
|
349
349
|
return (r, c) => {
|
|
350
|
-
const i =
|
|
350
|
+
const i = un;
|
|
351
351
|
return w(), W(i, ue({ class: "jt-input" }, o.value, lt(a.value), {
|
|
352
|
-
onKeyup: c[0] || (c[0] =
|
|
352
|
+
onKeyup: c[0] || (c[0] = lo((l) => s("enter"), ["enter"]))
|
|
353
353
|
}), null, 16);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
}), wt = /* @__PURE__ */ Ie(
|
|
356
|
+
}), wt = /* @__PURE__ */ Ie(Fo, [["__scopeId", "data-v-b323beeb"]]), Do = /* @__PURE__ */ ve({
|
|
357
357
|
name: "JtSelect",
|
|
358
358
|
__name: "index",
|
|
359
359
|
props: {
|
|
@@ -427,7 +427,7 @@ const ko = /* @__PURE__ */ ve({
|
|
|
427
427
|
])
|
|
428
428
|
));
|
|
429
429
|
return (r, c) => {
|
|
430
|
-
const i =
|
|
430
|
+
const i = fn, l = dn;
|
|
431
431
|
return w(), W(l, ue({ class: "jt-select" }, o.value, lt(a.value)), {
|
|
432
432
|
default: x(() => [
|
|
433
433
|
(w(!0), G(Ce, null, me(r.options ?? [], (u) => (w(), W(i, ue({
|
|
@@ -439,7 +439,7 @@ const ko = /* @__PURE__ */ ve({
|
|
|
439
439
|
}, 16);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}),
|
|
442
|
+
}), Lo = /* @__PURE__ */ Ie(Do, [["__scopeId", "data-v-bbfe7769"]]), Bo = { class: "jt-form-items" }, _t = 4, Eo = /* @__PURE__ */ ve({
|
|
443
443
|
name: "JTFormItems",
|
|
444
444
|
__name: "JtFormItems",
|
|
445
445
|
props: {
|
|
@@ -450,9 +450,9 @@ const ko = /* @__PURE__ */ ve({
|
|
|
450
450
|
setup(e) {
|
|
451
451
|
const t = e, n = {
|
|
452
452
|
input: wt,
|
|
453
|
-
select:
|
|
454
|
-
cascader:
|
|
455
|
-
"date-picker":
|
|
453
|
+
select: Lo,
|
|
454
|
+
cascader: To,
|
|
455
|
+
"date-picker": Oo
|
|
456
456
|
}, o = {
|
|
457
457
|
"remote-select": "select",
|
|
458
458
|
date: "date-picker",
|
|
@@ -468,7 +468,7 @@ const ko = /* @__PURE__ */ ve({
|
|
|
468
468
|
`[JtFormItems] 不支持的 itemType: "${V}",支持的类型: ${a.join(", ")}`
|
|
469
469
|
), wt);
|
|
470
470
|
}, l = (b) => {
|
|
471
|
-
const V =
|
|
471
|
+
const V = bn(b, s);
|
|
472
472
|
return b.itemType === "select" || b.itemType === "remote-select" || b.itemType === "cascader" ? {
|
|
473
473
|
...V,
|
|
474
474
|
options: b.options
|
|
@@ -476,13 +476,13 @@ const ko = /* @__PURE__ */ ve({
|
|
|
476
476
|
...V,
|
|
477
477
|
type: "daterange"
|
|
478
478
|
} : V;
|
|
479
|
-
}, u = (b) =>
|
|
479
|
+
}, u = (b) => yn(b, s), y = (b) => ({
|
|
480
480
|
rules: b.rules,
|
|
481
481
|
...b.formItemProps
|
|
482
482
|
}), S = (b, V) => {
|
|
483
483
|
t.formData[b] = V;
|
|
484
484
|
};
|
|
485
|
-
function
|
|
485
|
+
function E(b) {
|
|
486
486
|
return (V) => {
|
|
487
487
|
if (V) {
|
|
488
488
|
r.set(b, V);
|
|
@@ -492,7 +492,7 @@ const ko = /* @__PURE__ */ ve({
|
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
function D(b, V) {
|
|
495
|
-
|
|
495
|
+
io(() => {
|
|
496
496
|
r.get(b)?.validate(V).catch(() => {
|
|
497
497
|
});
|
|
498
498
|
});
|
|
@@ -514,19 +514,19 @@ const ko = /* @__PURE__ */ ve({
|
|
|
514
514
|
return b === "daterange" || b === "date-range" || b === "dateRange";
|
|
515
515
|
}
|
|
516
516
|
return (b, V) => {
|
|
517
|
-
const Y =
|
|
518
|
-
return w(), G("div",
|
|
517
|
+
const Y = pn;
|
|
518
|
+
return w(), G("div", Bo, [
|
|
519
519
|
(w(!0), G(Ce, null, me(c.value, (p) => (w(), W(Y, ue({
|
|
520
520
|
key: p.prop,
|
|
521
521
|
ref_for: !0,
|
|
522
|
-
ref:
|
|
522
|
+
ref: E(p.prop),
|
|
523
523
|
class: "jt-form-items__item",
|
|
524
524
|
style: M(p),
|
|
525
525
|
label: p.label,
|
|
526
526
|
prop: p.prop
|
|
527
527
|
}, y(p)), {
|
|
528
528
|
default: x(() => [
|
|
529
|
-
p.showSlot ? te(b.$slots, p.prop, { key: 0 }, void 0, !0) : (w(), W(
|
|
529
|
+
p.showSlot ? te(b.$slots, p.prop, { key: 0 }, void 0, !0) : (w(), W(on(i(p)), ue({
|
|
530
530
|
key: 1,
|
|
531
531
|
"model-value": b.formData[p.prop],
|
|
532
532
|
ref_for: !0
|
|
@@ -551,8 +551,8 @@ const ko = /* @__PURE__ */ ve({
|
|
|
551
551
|
]);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}),
|
|
555
|
-
function
|
|
554
|
+
}), Po = /* @__PURE__ */ Ie(Eo, [["__scopeId", "data-v-2b3030a2"]]);
|
|
555
|
+
function Vo() {
|
|
556
556
|
const e = Se(!1);
|
|
557
557
|
function t() {
|
|
558
558
|
e.value = !0;
|
|
@@ -566,7 +566,7 @@ function Po() {
|
|
|
566
566
|
searchDone: n
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
const
|
|
569
|
+
const Ro = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", jo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", No = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Ko = { class: "jt-filter-bar__btns" }, Ao = ["src"], qo = ["src"], Go = ["src"], zo = /* @__PURE__ */ ve({
|
|
570
570
|
name: "JtFilterBar",
|
|
571
571
|
__name: "JtFilterBar",
|
|
572
572
|
props: {
|
|
@@ -576,7 +576,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
576
576
|
},
|
|
577
577
|
emits: ["update:modelValue", "search", "reset"],
|
|
578
578
|
setup(e, { expose: t, emit: n }) {
|
|
579
|
-
const o = e, s = n, a = Se(), r = je(), c = Se({}), { searchDisabled: i, searchLoading: l, searchDone: u } =
|
|
579
|
+
const o = e, s = n, a = Se(), r = je(), c = Se({}), { searchDisabled: i, searchLoading: l, searchDone: u } = Vo(), y = Se({}), S = Se({}), E = /* @__PURE__ */ new Map(), D = F(() => o.option), f = Se(D.value.searchCollapsed ?? !0), I = F(
|
|
580
580
|
() => o.columns.filter((T) => T.search === !0)
|
|
581
581
|
), M = F(
|
|
582
582
|
() => Math.max(1, D.value.searchSpan ?? 4)
|
|
@@ -590,7 +590,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
590
590
|
() => Fe(D.value.searchLabelWidth ?? 84)
|
|
591
591
|
), N = F(
|
|
592
592
|
() => D.value.searchLabelPosition ?? "top"
|
|
593
|
-
),
|
|
593
|
+
), B = F(
|
|
594
594
|
() => De(D.value.searchGutter, 16)
|
|
595
595
|
), _ = F(
|
|
596
596
|
() => De(D.value.searchRowGap, 10)
|
|
@@ -605,7 +605,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
605
605
|
});
|
|
606
606
|
}), R = F(
|
|
607
607
|
() => oe.value.filter((T) => !!r[`${T.prop}-search`])
|
|
608
|
-
),
|
|
608
|
+
), L = F(() => {
|
|
609
609
|
const T = $e(oe.value);
|
|
610
610
|
return oe.value.length > 0 && oe.value.length <= 2 && T < M.value;
|
|
611
611
|
}), m = F(() => {
|
|
@@ -653,12 +653,12 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
653
653
|
class: ["jt-filter-bar__item", { "is-required": T.searchRequired }]
|
|
654
654
|
},
|
|
655
655
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
656
|
-
onEnter: (...
|
|
657
|
-
z(Q.onEnter, ...
|
|
656
|
+
onEnter: (...Le) => {
|
|
657
|
+
z(Q.onEnter, ...Le), re();
|
|
658
658
|
},
|
|
659
659
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
660
|
-
"onUpdate:modelValue": (
|
|
661
|
-
z(Q["onUpdate:modelValue"],
|
|
660
|
+
"onUpdate:modelValue": (Le) => {
|
|
661
|
+
z(Q["onUpdate:modelValue"], Le), v(T.prop, Le);
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
664
|
}
|
|
@@ -680,11 +680,11 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
680
680
|
}
|
|
681
681
|
async function q(T, Q) {
|
|
682
682
|
if (!T.searchRemoteMethod) return;
|
|
683
|
-
const ce = (
|
|
684
|
-
|
|
683
|
+
const ce = (E.get(T.prop) ?? 0) + 1;
|
|
684
|
+
E.set(T.prop, ce), T.searchLoading === void 0 && (S.value = { ...S.value, [T.prop]: !0 });
|
|
685
685
|
try {
|
|
686
686
|
const ye = await T.searchRemoteMethod(Q, T);
|
|
687
|
-
if (
|
|
687
|
+
if (E.get(T.prop) !== ce || ye === void 0) return;
|
|
688
688
|
if (!Z(ye)) {
|
|
689
689
|
console.warn(
|
|
690
690
|
`[JtFilterBar] ${T.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`
|
|
@@ -695,7 +695,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
695
695
|
} catch (ye) {
|
|
696
696
|
console.error("[JtFilterBar] searchRemoteMethod 执行失败", ye);
|
|
697
697
|
} finally {
|
|
698
|
-
|
|
698
|
+
E.get(T.prop) === ce && T.searchLoading === void 0 && (S.value = { ...S.value, [T.prop]: !1 });
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
function Z(T) {
|
|
@@ -755,11 +755,11 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
755
755
|
/** 关闭筛选表单禁用。 */
|
|
756
756
|
searchDone: u
|
|
757
757
|
}), (T, Q) => {
|
|
758
|
-
const ce =
|
|
758
|
+
const ce = mn;
|
|
759
759
|
return w(), G("div", {
|
|
760
760
|
class: He(["jt-filter-bar", [
|
|
761
761
|
`is-label-${N.value}`,
|
|
762
|
-
{ "is-single-filter":
|
|
762
|
+
{ "is-single-filter": L.value }
|
|
763
763
|
]]),
|
|
764
764
|
style: Ft({
|
|
765
765
|
"--jt-filter-columns": M.value,
|
|
@@ -767,7 +767,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
767
767
|
"--jt-filter-btns-width": p.value,
|
|
768
768
|
"--jt-filter-actions-start": m.value,
|
|
769
769
|
"--jt-filter-label-width": O.value,
|
|
770
|
-
"--jt-filter-column-gap": `${
|
|
770
|
+
"--jt-filter-column-gap": `${B.value}px`,
|
|
771
771
|
"--jt-filter-row-gap": `${_.value}px`,
|
|
772
772
|
"--jt-filter-padding": j.value
|
|
773
773
|
})
|
|
@@ -780,17 +780,17 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
780
780
|
"label-position": N.value,
|
|
781
781
|
"label-width": O.value,
|
|
782
782
|
disabled: J(i),
|
|
783
|
-
onSubmit: Q[0] || (Q[0] =
|
|
783
|
+
onSubmit: Q[0] || (Q[0] = rn(() => {
|
|
784
784
|
}, ["prevent"]))
|
|
785
785
|
}, {
|
|
786
786
|
default: x(() => [
|
|
787
|
-
Me(J(
|
|
787
|
+
Me(J(Po), {
|
|
788
788
|
configs: P.value,
|
|
789
789
|
"form-data": c.value,
|
|
790
790
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
791
791
|
}, Re({
|
|
792
792
|
actions: x(() => [
|
|
793
|
-
se("div",
|
|
793
|
+
se("div", Ko, [
|
|
794
794
|
te(T.$slots, "search-menu", {
|
|
795
795
|
search: re,
|
|
796
796
|
reset: ie,
|
|
@@ -806,9 +806,9 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
806
806
|
icon: x(() => [
|
|
807
807
|
se("img", {
|
|
808
808
|
class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": f.value }]),
|
|
809
|
-
src: J(
|
|
809
|
+
src: J(Ro),
|
|
810
810
|
alt: ""
|
|
811
|
-
}, null, 10,
|
|
811
|
+
}, null, 10, Ao)
|
|
812
812
|
]),
|
|
813
813
|
default: x(() => [
|
|
814
814
|
se("span", null, ae(f.value ? J(ne)("common.展开") : J(ne)("common.收起")), 1)
|
|
@@ -822,9 +822,9 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
822
822
|
}, {
|
|
823
823
|
icon: x(() => [
|
|
824
824
|
se("img", {
|
|
825
|
-
src: J(
|
|
825
|
+
src: J(jo),
|
|
826
826
|
alt: ""
|
|
827
|
-
}, null, 8,
|
|
827
|
+
}, null, 8, qo)
|
|
828
828
|
]),
|
|
829
829
|
default: x(() => [
|
|
830
830
|
se("span", null, ae(D.value.resetBtnText ?? J(ne)("common.重置")), 1)
|
|
@@ -839,9 +839,9 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
839
839
|
}, {
|
|
840
840
|
icon: x(() => [
|
|
841
841
|
se("img", {
|
|
842
|
-
src: J(
|
|
842
|
+
src: J(No),
|
|
843
843
|
alt: ""
|
|
844
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, Go)
|
|
845
845
|
]),
|
|
846
846
|
default: x(() => [
|
|
847
847
|
se("span", null, ae(D.value.searchBtnText ?? J(ne)("common.查询")), 1)
|
|
@@ -859,7 +859,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
859
859
|
te(T.$slots, `${ye.prop}-search`, {
|
|
860
860
|
value: c.value[ye.prop],
|
|
861
861
|
column: ye,
|
|
862
|
-
setValue: (
|
|
862
|
+
setValue: (Le) => v(ye.prop, Le),
|
|
863
863
|
search: re,
|
|
864
864
|
reset: ie,
|
|
865
865
|
disabled: J(i)
|
|
@@ -873,7 +873,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
873
873
|
], 6);
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
|
-
}),
|
|
876
|
+
}), Yo = /* @__PURE__ */ Ie(zo, [["__scopeId", "data-v-30be59cf"]]), Ho = { key: 1 }, xo = { key: 2 }, Uo = { key: 3 }, Jo = /* @__PURE__ */ ve({
|
|
877
877
|
name: "JtTable",
|
|
878
878
|
__name: "JtTable",
|
|
879
879
|
props: {
|
|
@@ -902,19 +902,19 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
function y(f) {
|
|
905
|
-
return !l(f.prop) && !
|
|
905
|
+
return !l(f.prop) && !E(f.columnOptions?.type);
|
|
906
906
|
}
|
|
907
907
|
function S(f) {
|
|
908
|
-
return !
|
|
908
|
+
return !E(f.columnOptions?.type);
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function E(f) {
|
|
911
911
|
return f === "selection" || f === "index" || f === "expand";
|
|
912
912
|
}
|
|
913
913
|
function D(f, I) {
|
|
914
914
|
return f.find((M) => M.value === I)?.label ?? String(I ?? "");
|
|
915
915
|
}
|
|
916
916
|
return t({ tableRef: s }), (f, I) => {
|
|
917
|
-
const M =
|
|
917
|
+
const M = hn, K = vn;
|
|
918
918
|
return w(), W(K, ue({
|
|
919
919
|
ref_key: "tableRef",
|
|
920
920
|
ref: s,
|
|
@@ -957,12 +957,12 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
957
957
|
l(b.prop) ? te(f.$slots, `${b.prop}-data`, ue({
|
|
958
958
|
key: 0,
|
|
959
959
|
ref_for: !0
|
|
960
|
-
}, V), void 0, !0) : b.dicData ? (w(), G("span",
|
|
960
|
+
}, V), void 0, !0) : b.dicData ? (w(), G("span", Ho, ae(D(b.dicData, V.row[b.prop])), 1)) : b.formatter ? (w(), G("span", xo, ae(b.formatter(
|
|
961
961
|
V.row,
|
|
962
962
|
V.column,
|
|
963
963
|
V.row[b.prop],
|
|
964
964
|
V.$index
|
|
965
|
-
)), 1)) : (w(), G("span",
|
|
965
|
+
)), 1)) : (w(), G("span", Uo, ae(V.row[b.prop]), 1))
|
|
966
966
|
]),
|
|
967
967
|
key: "1"
|
|
968
968
|
} : void 0
|
|
@@ -985,7 +985,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
985
985
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
}),
|
|
988
|
+
}), Wo = /* @__PURE__ */ Ie(Jo, [["__scopeId", "data-v-5d076ddd"]]), Zo = { class: "jt-pagination" }, Qo = { class: "jt-pagination__count" }, Xo = /* @__PURE__ */ ve({
|
|
989
989
|
name: "JtPagination",
|
|
990
990
|
__name: "JtPagination",
|
|
991
991
|
props: {
|
|
@@ -1001,8 +1001,8 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1001
1001
|
s("current-change", r), s("page-change", r);
|
|
1002
1002
|
}
|
|
1003
1003
|
return (r, c) => {
|
|
1004
|
-
const i =
|
|
1005
|
-
return w(), G("div",
|
|
1004
|
+
const i = mo;
|
|
1005
|
+
return w(), G("div", Zo, [
|
|
1006
1006
|
Me(i, {
|
|
1007
1007
|
"current-page": r.currentPage,
|
|
1008
1008
|
"page-size": r.pageSize,
|
|
@@ -1014,14 +1014,14 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1014
1014
|
onCurrentChange: a,
|
|
1015
1015
|
onSizeChange: c[2] || (c[2] = (l) => r.$emit("size-change", l))
|
|
1016
1016
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
1017
|
-
se("span",
|
|
1017
|
+
se("span", Qo, ae(J(ne)("common.共{total}条记录", "共 {total} 条记录", { total: r.total })), 1)
|
|
1018
1018
|
]);
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
}),
|
|
1021
|
+
}), er = /* @__PURE__ */ Ie(Xo, [["__scopeId", "data-v-03d564ec"]]), tr = { class: "jt-crud-table" }, nr = { class: "filter-bar-box" }, or = { class: "jt-crud-table__result" }, rr = { class: "jt-crud-table__table-group" }, ar = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: "jt-crud-table__toolbar"
|
|
1024
|
-
},
|
|
1024
|
+
}, sr = /* @__PURE__ */ ve({
|
|
1025
1025
|
name: "JtCrudTable",
|
|
1026
1026
|
__name: "JtCrudTable",
|
|
1027
1027
|
props: /* @__PURE__ */ At({
|
|
@@ -1042,7 +1042,7 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1042
1042
|
}),
|
|
1043
1043
|
emits: /* @__PURE__ */ At(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
1044
1044
|
setup(e, { expose: t, emit: n }) {
|
|
1045
|
-
const o = e, s = n, a = St(e, "currentPage"), r = St(e, "pageSize"), c = St(e, "searchModel"), i = je(), l = Se(), u = Se(), y = F(() => o.option), S = F(() => y.value.searchShow !== !1),
|
|
1045
|
+
const o = e, s = n, a = St(e, "currentPage"), r = St(e, "pageSize"), c = St(e, "searchModel"), i = je(), l = Se(), u = Se(), y = F(() => o.option), S = F(() => y.value.searchShow !== !1), E = F(
|
|
1046
1046
|
() => y.value.paginationShow !== !1
|
|
1047
1047
|
), D = F(
|
|
1048
1048
|
() => o.columns.filter((p) => p.search && !!i[`${p.prop}-search`])
|
|
@@ -1079,35 +1079,35 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1079
1079
|
/** 关闭筛选表单禁用。 */
|
|
1080
1080
|
searchDone: Y
|
|
1081
1081
|
}), (p, O) => {
|
|
1082
|
-
const N =
|
|
1083
|
-
return w(), G("div",
|
|
1082
|
+
const N = vo;
|
|
1083
|
+
return w(), G("div", tr, [
|
|
1084
1084
|
te(p.$slots, "header", {}, void 0, !0),
|
|
1085
|
-
se("div",
|
|
1086
|
-
S.value ? (w(), W(
|
|
1085
|
+
se("div", nr, [
|
|
1086
|
+
S.value ? (w(), W(Yo, {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
ref_key: "filterBarRef",
|
|
1089
1089
|
ref: u,
|
|
1090
1090
|
modelValue: c.value,
|
|
1091
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
1091
|
+
"onUpdate:modelValue": O[0] || (O[0] = (B) => c.value = B),
|
|
1092
1092
|
columns: p.columns,
|
|
1093
1093
|
option: y.value,
|
|
1094
1094
|
onSearch: K,
|
|
1095
1095
|
onReset: b
|
|
1096
1096
|
}, Re({ _: 2 }, [
|
|
1097
|
-
me(D.value, (
|
|
1098
|
-
name: `${
|
|
1097
|
+
me(D.value, (B) => ({
|
|
1098
|
+
name: `${B.prop}-search`,
|
|
1099
1099
|
fn: x((_) => [
|
|
1100
|
-
te(p.$slots, `${
|
|
1100
|
+
te(p.$slots, `${B.prop}-search`, Te(Oe(_)), void 0, !0)
|
|
1101
1101
|
])
|
|
1102
1102
|
}))
|
|
1103
1103
|
]), 1032, ["modelValue", "columns", "option"])) : de("", !0)
|
|
1104
1104
|
]),
|
|
1105
|
-
se("div",
|
|
1106
|
-
se("div",
|
|
1107
|
-
J(i).toolbar ? (w(), G("div",
|
|
1105
|
+
se("div", or, [
|
|
1106
|
+
se("div", rr, [
|
|
1107
|
+
J(i).toolbar ? (w(), G("div", ar, [
|
|
1108
1108
|
te(p.$slots, "toolbar", {}, void 0, !0)
|
|
1109
1109
|
])) : de("", !0),
|
|
1110
|
-
|
|
1110
|
+
co((w(), W(Wo, {
|
|
1111
1111
|
ref_key: "jtTableRef",
|
|
1112
1112
|
ref: l,
|
|
1113
1113
|
data: p.data,
|
|
@@ -1115,22 +1115,22 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1115
1115
|
option: y.value,
|
|
1116
1116
|
"table-events": p.tableEvents
|
|
1117
1117
|
}, Re({ _: 2 }, [
|
|
1118
|
-
me(f.value, (
|
|
1119
|
-
name: `${
|
|
1118
|
+
me(f.value, (B) => ({
|
|
1119
|
+
name: `${B.prop}-header`,
|
|
1120
1120
|
fn: x((_) => [
|
|
1121
|
-
te(p.$slots, `${
|
|
1121
|
+
te(p.$slots, `${B.prop}-header`, Te(Oe(_)), void 0, !0)
|
|
1122
1122
|
])
|
|
1123
1123
|
})),
|
|
1124
|
-
me(I.value, (
|
|
1125
|
-
name: `${
|
|
1124
|
+
me(I.value, (B) => ({
|
|
1125
|
+
name: `${B.prop}-data`,
|
|
1126
1126
|
fn: x((_) => [
|
|
1127
|
-
te(p.$slots, `${
|
|
1127
|
+
te(p.$slots, `${B.prop}-data`, Te(Oe(_)), void 0, !0)
|
|
1128
1128
|
])
|
|
1129
1129
|
})),
|
|
1130
1130
|
y.value.menu ? {
|
|
1131
1131
|
name: "menu",
|
|
1132
|
-
fn: x((
|
|
1133
|
-
te(p.$slots, "menu", Te(Oe(
|
|
1132
|
+
fn: x((B) => [
|
|
1133
|
+
te(p.$slots, "menu", Te(Oe(B)), void 0, !0)
|
|
1134
1134
|
]),
|
|
1135
1135
|
key: "0"
|
|
1136
1136
|
} : void 0
|
|
@@ -1138,25 +1138,25 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1138
1138
|
[N, y.value.loading]
|
|
1139
1139
|
])
|
|
1140
1140
|
]),
|
|
1141
|
-
|
|
1141
|
+
E.value ? (w(), W(er, {
|
|
1142
1142
|
key: 0,
|
|
1143
1143
|
"current-page": a.value,
|
|
1144
|
-
"onUpdate:currentPage": O[1] || (O[1] = (
|
|
1144
|
+
"onUpdate:currentPage": O[1] || (O[1] = (B) => a.value = B),
|
|
1145
1145
|
"page-size": r.value,
|
|
1146
|
-
"onUpdate:pageSize": O[2] || (O[2] = (
|
|
1146
|
+
"onUpdate:pageSize": O[2] || (O[2] = (B) => r.value = B),
|
|
1147
1147
|
total: p.total,
|
|
1148
1148
|
option: y.value,
|
|
1149
|
-
onPageChange: O[3] || (O[3] = (
|
|
1150
|
-
onSizeChange: O[4] || (O[4] = (
|
|
1149
|
+
onPageChange: O[3] || (O[3] = (B) => p.$emit("page-change", B)),
|
|
1150
|
+
onSizeChange: O[4] || (O[4] = (B) => p.$emit("size-change", B))
|
|
1151
1151
|
}, null, 8, ["current-page", "page-size", "total", "option"])) : de("", !0)
|
|
1152
1152
|
])
|
|
1153
1153
|
]);
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
|
-
}),
|
|
1156
|
+
}), Ls = /* @__PURE__ */ Ie(sr, [["__scopeId", "data-v-335c2682"]]), lr = { class: "jt-page-header__title" }, ir = { key: 0 }, cr = {
|
|
1157
1157
|
key: 0,
|
|
1158
1158
|
class: "jt-page-header__operates"
|
|
1159
|
-
},
|
|
1159
|
+
}, ur = /* @__PURE__ */ ve({
|
|
1160
1160
|
name: "JtPageHeader",
|
|
1161
1161
|
__name: "index",
|
|
1162
1162
|
props: {
|
|
@@ -1173,12 +1173,12 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1173
1173
|
return (c, i) => (w(), G("div", ue({
|
|
1174
1174
|
class: ["jt-page-header", `jt-page-header--${c.type}`]
|
|
1175
1175
|
}, c.$attrs), [
|
|
1176
|
-
se("div",
|
|
1176
|
+
se("div", lr, [
|
|
1177
1177
|
te(c.$slots, "title", {}, () => [
|
|
1178
|
-
c.title ? (w(), G("span",
|
|
1178
|
+
c.title ? (w(), G("span", ir, ae(c.title), 1)) : de("", !0)
|
|
1179
1179
|
], !0)
|
|
1180
1180
|
]),
|
|
1181
|
-
a.value ? (w(), G("div",
|
|
1181
|
+
a.value ? (w(), G("div", cr, [
|
|
1182
1182
|
te(c.$slots, "operates", { operates: c.operates }, () => [
|
|
1183
1183
|
(w(!0), G(Ce, null, me(c.operates, (l) => (w(), W(J(ut), ue({
|
|
1184
1184
|
key: l.key ?? l.label,
|
|
@@ -1202,8 +1202,8 @@ const Vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1202
1202
|
])) : de("", !0)
|
|
1203
1203
|
], 16));
|
|
1204
1204
|
}
|
|
1205
|
-
}),
|
|
1206
|
-
function
|
|
1205
|
+
}), Bs = /* @__PURE__ */ Ie(ur, [["__scopeId", "data-v-b6738d5d"]]);
|
|
1206
|
+
function dr(e, t) {
|
|
1207
1207
|
t = t || (() => "default-use-once-sync");
|
|
1208
1208
|
const n = /* @__PURE__ */ new Map();
|
|
1209
1209
|
async function o(...s) {
|
|
@@ -1221,7 +1221,7 @@ function ur(e, t) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
return o.bind(e);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Sn(e, t) {
|
|
1225
1225
|
t = t || (() => "default-use-queue-sync");
|
|
1226
1226
|
const n = /* @__PURE__ */ new Map();
|
|
1227
1227
|
async function o(...s) {
|
|
@@ -1240,61 +1240,61 @@ var mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1240
1240
|
function vt(e) {
|
|
1241
1241
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1243
|
+
var wn = { exports: {} };
|
|
1244
1244
|
(function(e, t) {
|
|
1245
1245
|
(function(n, o) {
|
|
1246
1246
|
e.exports = o();
|
|
1247
1247
|
})(mt, function() {
|
|
1248
|
-
var n = 1e3, o = 6e4, s = 36e5, a = "millisecond", r = "second", c = "minute", i = "hour", l = "day", u = "week", y = "month", S = "quarter",
|
|
1249
|
-
var
|
|
1250
|
-
return "[" + R + (
|
|
1251
|
-
} }, b = function(R,
|
|
1248
|
+
var n = 1e3, o = 6e4, s = 36e5, a = "millisecond", r = "second", c = "minute", i = "hour", l = "day", u = "week", y = "month", S = "quarter", E = "year", D = "date", f = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|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, K = { 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) {
|
|
1249
|
+
var L = ["th", "st", "nd", "rd"], m = R % 100;
|
|
1250
|
+
return "[" + R + (L[(m - 20) % 10] || L[m] || L[0]) + "]";
|
|
1251
|
+
} }, b = function(R, L, m) {
|
|
1252
1252
|
var P = String(R);
|
|
1253
|
-
return !P || P.length >=
|
|
1253
|
+
return !P || P.length >= L ? R : "" + Array(L + 1 - P.length).join(m) + R;
|
|
1254
1254
|
}, V = { s: b, z: function(R) {
|
|
1255
|
-
var
|
|
1256
|
-
return (
|
|
1257
|
-
}, m: function R(
|
|
1258
|
-
if (
|
|
1259
|
-
var P = 12 * (m.year() -
|
|
1255
|
+
var L = -R.utcOffset(), m = Math.abs(L), P = Math.floor(m / 60), v = m % 60;
|
|
1256
|
+
return (L <= 0 ? "+" : "-") + b(P, 2, "0") + ":" + b(v, 2, "0");
|
|
1257
|
+
}, m: function R(L, m) {
|
|
1258
|
+
if (L.date() < m.date()) return -R(m, L);
|
|
1259
|
+
var P = 12 * (m.year() - L.year()) + (m.month() - L.month()), v = L.clone().add(P, y), d = m - v < 0, $ = L.clone().add(P + (d ? -1 : 1), y);
|
|
1260
1260
|
return +(-(P + (m - v) / (d ? v - $ : $ - v)) || 0);
|
|
1261
1261
|
}, a: function(R) {
|
|
1262
1262
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1263
1263
|
}, p: function(R) {
|
|
1264
|
-
return { M: y, y:
|
|
1264
|
+
return { M: y, y: E, w: u, d: l, D, h: i, m: c, s: r, ms: a, Q: S }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1265
1265
|
}, u: function(R) {
|
|
1266
1266
|
return R === void 0;
|
|
1267
1267
|
} }, Y = "en", p = {};
|
|
1268
1268
|
p[Y] = K;
|
|
1269
1269
|
var O = "$isDayjsObject", N = function(R) {
|
|
1270
1270
|
return R instanceof X || !(!R || !R[O]);
|
|
1271
|
-
},
|
|
1271
|
+
}, B = function R(L, m, P) {
|
|
1272
1272
|
var v;
|
|
1273
|
-
if (!
|
|
1274
|
-
if (typeof
|
|
1275
|
-
var d =
|
|
1273
|
+
if (!L) return Y;
|
|
1274
|
+
if (typeof L == "string") {
|
|
1275
|
+
var d = L.toLowerCase();
|
|
1276
1276
|
p[d] && (v = d), m && (p[d] = m, v = d);
|
|
1277
|
-
var $ =
|
|
1277
|
+
var $ = L.split("-");
|
|
1278
1278
|
if (!v && $.length > 1) return R($[0]);
|
|
1279
1279
|
} else {
|
|
1280
|
-
var C =
|
|
1281
|
-
p[C] =
|
|
1280
|
+
var C = L.name;
|
|
1281
|
+
p[C] = L, v = C;
|
|
1282
1282
|
}
|
|
1283
1283
|
return !P && v && (Y = v), v || !P && Y;
|
|
1284
|
-
}, _ = function(R,
|
|
1284
|
+
}, _ = function(R, L) {
|
|
1285
1285
|
if (N(R)) return R.clone();
|
|
1286
|
-
var m = typeof
|
|
1286
|
+
var m = typeof L == "object" ? L : {};
|
|
1287
1287
|
return m.date = R, m.args = arguments, new X(m);
|
|
1288
1288
|
}, j = V;
|
|
1289
|
-
j.l =
|
|
1290
|
-
return _(R, { locale:
|
|
1289
|
+
j.l = B, j.i = N, j.w = function(R, L) {
|
|
1290
|
+
return _(R, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
|
|
1291
1291
|
};
|
|
1292
1292
|
var X = function() {
|
|
1293
1293
|
function R(m) {
|
|
1294
|
-
this.$L =
|
|
1294
|
+
this.$L = B(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[O] = !0;
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1297
|
-
return
|
|
1296
|
+
var L = R.prototype;
|
|
1297
|
+
return L.parse = function(m) {
|
|
1298
1298
|
this.$d = function(P) {
|
|
1299
1299
|
var v = P.date, d = P.utc;
|
|
1300
1300
|
if (v === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -1309,27 +1309,27 @@ var Sn = { exports: {} };
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return new Date(v);
|
|
1311
1311
|
}(m), this.init();
|
|
1312
|
-
},
|
|
1312
|
+
}, L.init = function() {
|
|
1313
1313
|
var m = this.$d;
|
|
1314
1314
|
this.$y = m.getFullYear(), this.$M = m.getMonth(), this.$D = m.getDate(), this.$W = m.getDay(), this.$H = m.getHours(), this.$m = m.getMinutes(), this.$s = m.getSeconds(), this.$ms = m.getMilliseconds();
|
|
1315
|
-
},
|
|
1315
|
+
}, L.$utils = function() {
|
|
1316
1316
|
return j;
|
|
1317
|
-
},
|
|
1317
|
+
}, L.isValid = function() {
|
|
1318
1318
|
return this.$d.toString() !== f;
|
|
1319
|
-
},
|
|
1319
|
+
}, L.isSame = function(m, P) {
|
|
1320
1320
|
var v = _(m);
|
|
1321
1321
|
return this.startOf(P) <= v && v <= this.endOf(P);
|
|
1322
|
-
},
|
|
1322
|
+
}, L.isAfter = function(m, P) {
|
|
1323
1323
|
return _(m) < this.startOf(P);
|
|
1324
|
-
},
|
|
1324
|
+
}, L.isBefore = function(m, P) {
|
|
1325
1325
|
return this.endOf(P) < _(m);
|
|
1326
|
-
},
|
|
1326
|
+
}, L.$g = function(m, P, v) {
|
|
1327
1327
|
return j.u(m) ? this[P] : this.set(v, m);
|
|
1328
|
-
},
|
|
1328
|
+
}, L.unix = function() {
|
|
1329
1329
|
return Math.floor(this.valueOf() / 1e3);
|
|
1330
|
-
},
|
|
1330
|
+
}, L.valueOf = function() {
|
|
1331
1331
|
return this.$d.getTime();
|
|
1332
|
-
},
|
|
1332
|
+
}, L.startOf = function(m, P) {
|
|
1333
1333
|
var v = this, d = !!j.u(P) || P, $ = j.p(m), C = function(be, he) {
|
|
1334
1334
|
var $e = j.w(v.$u ? Date.UTC(v.$y, he, be) : new Date(v.$y, he, be), v);
|
|
1335
1335
|
return d ? $e : $e.endOf(l);
|
|
@@ -1337,7 +1337,7 @@ var Sn = { exports: {} };
|
|
|
1337
1337
|
return j.w(v.toDate()[be].apply(v.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(he)), v);
|
|
1338
1338
|
}, q = this.$W, Z = this.$M, U = this.$D, z = "set" + (this.$u ? "UTC" : "");
|
|
1339
1339
|
switch ($) {
|
|
1340
|
-
case
|
|
1340
|
+
case E:
|
|
1341
1341
|
return d ? C(1, 0) : C(31, 11);
|
|
1342
1342
|
case y:
|
|
1343
1343
|
return d ? C(1, Z) : C(0, Z + 1);
|
|
@@ -1356,20 +1356,20 @@ var Sn = { exports: {} };
|
|
|
1356
1356
|
default:
|
|
1357
1357
|
return this.clone();
|
|
1358
1358
|
}
|
|
1359
|
-
},
|
|
1359
|
+
}, L.endOf = function(m) {
|
|
1360
1360
|
return this.startOf(m, !1);
|
|
1361
|
-
},
|
|
1362
|
-
var v, d = j.p(m), $ = "set" + (this.$u ? "UTC" : ""), C = (v = {}, v[l] = $ + "Date", v[D] = $ + "Date", v[y] = $ + "Month", v[
|
|
1363
|
-
if (d === y || d ===
|
|
1361
|
+
}, L.$set = function(m, P) {
|
|
1362
|
+
var v, d = j.p(m), $ = "set" + (this.$u ? "UTC" : ""), C = (v = {}, v[l] = $ + "Date", v[D] = $ + "Date", v[y] = $ + "Month", v[E] = $ + "FullYear", v[i] = $ + "Hours", v[c] = $ + "Minutes", v[r] = $ + "Seconds", v[a] = $ + "Milliseconds", v)[d], A = d === l ? this.$D + (P - this.$W) : P;
|
|
1363
|
+
if (d === y || d === E) {
|
|
1364
1364
|
var q = this.clone().set(D, 1);
|
|
1365
1365
|
q.$d[C](A), q.init(), this.$d = q.set(D, Math.min(this.$D, q.daysInMonth())).$d;
|
|
1366
1366
|
} else C && this.$d[C](A);
|
|
1367
1367
|
return this.init(), this;
|
|
1368
|
-
},
|
|
1368
|
+
}, L.set = function(m, P) {
|
|
1369
1369
|
return this.clone().$set(m, P);
|
|
1370
|
-
},
|
|
1370
|
+
}, L.get = function(m) {
|
|
1371
1371
|
return this[j.p(m)]();
|
|
1372
|
-
},
|
|
1372
|
+
}, L.add = function(m, P) {
|
|
1373
1373
|
var v, d = this;
|
|
1374
1374
|
m = Number(m);
|
|
1375
1375
|
var $ = j.p(P), C = function(Z) {
|
|
@@ -1377,14 +1377,14 @@ var Sn = { exports: {} };
|
|
|
1377
1377
|
return j.w(U.date(U.date() + Math.round(Z * m)), d);
|
|
1378
1378
|
};
|
|
1379
1379
|
if ($ === y) return this.set(y, this.$M + m);
|
|
1380
|
-
if ($ ===
|
|
1380
|
+
if ($ === E) return this.set(E, this.$y + m);
|
|
1381
1381
|
if ($ === l) return C(1);
|
|
1382
1382
|
if ($ === u) return C(7);
|
|
1383
1383
|
var A = (v = {}, v[c] = o, v[i] = s, v[r] = n, v)[$] || 1, q = this.$d.getTime() + m * A;
|
|
1384
1384
|
return j.w(q, this);
|
|
1385
|
-
},
|
|
1385
|
+
}, L.subtract = function(m, P) {
|
|
1386
1386
|
return this.add(-1 * m, P);
|
|
1387
|
-
},
|
|
1387
|
+
}, L.format = function(m) {
|
|
1388
1388
|
var P = this, v = this.$locale();
|
|
1389
1389
|
if (!this.isValid()) return v.invalidDate || f;
|
|
1390
1390
|
var d = m || "YYYY-MM-DDTHH:mm:ssZ", $ = j.z(this), C = this.$H, A = this.$m, q = this.$M, Z = v.weekdays, U = v.months, z = v.meridiem, re = function(he, $e, Fe, De) {
|
|
@@ -1450,14 +1450,14 @@ var Sn = { exports: {} };
|
|
|
1450
1450
|
return null;
|
|
1451
1451
|
}(he) || $.replace(":", "");
|
|
1452
1452
|
});
|
|
1453
|
-
},
|
|
1453
|
+
}, L.utcOffset = function() {
|
|
1454
1454
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1455
|
-
},
|
|
1455
|
+
}, L.diff = function(m, P, v) {
|
|
1456
1456
|
var d, $ = this, C = j.p(P), A = _(m), q = (A.utcOffset() - this.utcOffset()) * o, Z = this - A, U = function() {
|
|
1457
1457
|
return j.m($, A);
|
|
1458
1458
|
};
|
|
1459
1459
|
switch (C) {
|
|
1460
|
-
case
|
|
1460
|
+
case E:
|
|
1461
1461
|
d = U() / 12;
|
|
1462
1462
|
break;
|
|
1463
1463
|
case y:
|
|
@@ -1485,40 +1485,40 @@ var Sn = { exports: {} };
|
|
|
1485
1485
|
d = Z;
|
|
1486
1486
|
}
|
|
1487
1487
|
return v ? d : j.a(d);
|
|
1488
|
-
},
|
|
1488
|
+
}, L.daysInMonth = function() {
|
|
1489
1489
|
return this.endOf(y).$D;
|
|
1490
|
-
},
|
|
1490
|
+
}, L.$locale = function() {
|
|
1491
1491
|
return p[this.$L];
|
|
1492
|
-
},
|
|
1492
|
+
}, L.locale = function(m, P) {
|
|
1493
1493
|
if (!m) return this.$L;
|
|
1494
|
-
var v = this.clone(), d =
|
|
1494
|
+
var v = this.clone(), d = B(m, P, !0);
|
|
1495
1495
|
return d && (v.$L = d), v;
|
|
1496
|
-
},
|
|
1496
|
+
}, L.clone = function() {
|
|
1497
1497
|
return j.w(this.$d, this);
|
|
1498
|
-
},
|
|
1498
|
+
}, L.toDate = function() {
|
|
1499
1499
|
return new Date(this.valueOf());
|
|
1500
|
-
},
|
|
1500
|
+
}, L.toJSON = function() {
|
|
1501
1501
|
return this.isValid() ? this.toISOString() : null;
|
|
1502
|
-
},
|
|
1502
|
+
}, L.toISOString = function() {
|
|
1503
1503
|
return this.$d.toISOString();
|
|
1504
|
-
},
|
|
1504
|
+
}, L.toString = function() {
|
|
1505
1505
|
return this.$d.toUTCString();
|
|
1506
1506
|
}, R;
|
|
1507
1507
|
}(), oe = X.prototype;
|
|
1508
|
-
return _.prototype = oe, [["$ms", a], ["$s", r], ["$m", c], ["$H", i], ["$W", l], ["$M", y], ["$y",
|
|
1509
|
-
oe[R[1]] = function(
|
|
1510
|
-
return this.$g(
|
|
1508
|
+
return _.prototype = oe, [["$ms", a], ["$s", r], ["$m", c], ["$H", i], ["$W", l], ["$M", y], ["$y", E], ["$D", D]].forEach(function(R) {
|
|
1509
|
+
oe[R[1]] = function(L) {
|
|
1510
|
+
return this.$g(L, R[0], R[1]);
|
|
1511
1511
|
};
|
|
1512
|
-
}), _.extend = function(R,
|
|
1513
|
-
return R.$i || (R(
|
|
1514
|
-
}, _.locale =
|
|
1512
|
+
}), _.extend = function(R, L) {
|
|
1513
|
+
return R.$i || (R(L, X, _), R.$i = !0), _;
|
|
1514
|
+
}, _.locale = B, _.isDayjs = N, _.unix = function(R) {
|
|
1515
1515
|
return _(1e3 * R);
|
|
1516
1516
|
}, _.en = p[Y], _.Ls = p, _.p = {}, _;
|
|
1517
1517
|
});
|
|
1518
|
-
})(
|
|
1519
|
-
var
|
|
1520
|
-
const
|
|
1521
|
-
var
|
|
1518
|
+
})(wn);
|
|
1519
|
+
var fr = wn.exports;
|
|
1520
|
+
const Lt = /* @__PURE__ */ vt(fr);
|
|
1521
|
+
var _n = { exports: {} };
|
|
1522
1522
|
(function(e, t) {
|
|
1523
1523
|
(function(n, o) {
|
|
1524
1524
|
e.exports = o();
|
|
@@ -1538,7 +1538,7 @@ var wn = { exports: {} };
|
|
|
1538
1538
|
}], S = function(I) {
|
|
1539
1539
|
var M = i[I];
|
|
1540
1540
|
return M && (M.indexOf ? M : M.s.concat(M.f));
|
|
1541
|
-
},
|
|
1541
|
+
}, E = function(I, M) {
|
|
1542
1542
|
var K, b = i.meridiem;
|
|
1543
1543
|
if (b) {
|
|
1544
1544
|
for (var V = 1; V <= 24; V += 1) if (I.indexOf(b(V, 0, M)) > -1) {
|
|
@@ -1548,9 +1548,9 @@ var wn = { exports: {} };
|
|
|
1548
1548
|
} else K = I === (M ? "pm" : "PM");
|
|
1549
1549
|
return K;
|
|
1550
1550
|
}, D = { A: [c, function(I) {
|
|
1551
|
-
this.afternoon =
|
|
1551
|
+
this.afternoon = E(I, !1);
|
|
1552
1552
|
}], a: [c, function(I) {
|
|
1553
|
-
this.afternoon =
|
|
1553
|
+
this.afternoon = E(I, !0);
|
|
1554
1554
|
}], Q: [s, function(I) {
|
|
1555
1555
|
this.month = 3 * (I - 1) + 1;
|
|
1556
1556
|
}], S: [s, function(I) {
|
|
@@ -1580,19 +1580,19 @@ var wn = { exports: {} };
|
|
|
1580
1580
|
M = I, K = i && i.formats;
|
|
1581
1581
|
for (var b = (I = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(_, j, X) {
|
|
1582
1582
|
var oe = X && X.toUpperCase();
|
|
1583
|
-
return j || K[X] || n[X] || K[oe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R,
|
|
1584
|
-
return
|
|
1583
|
+
return j || K[X] || n[X] || K[oe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, L, m) {
|
|
1584
|
+
return L || m.slice(1);
|
|
1585
1585
|
});
|
|
1586
1586
|
})).match(o), V = b.length, Y = 0; Y < V; Y += 1) {
|
|
1587
|
-
var p = b[Y], O = D[p], N = O && O[0],
|
|
1588
|
-
b[Y] =
|
|
1587
|
+
var p = b[Y], O = D[p], N = O && O[0], B = O && O[1];
|
|
1588
|
+
b[Y] = B ? { regex: N, parser: B } : p.replace(/^\[|\]$/g, "");
|
|
1589
1589
|
}
|
|
1590
1590
|
return function(_) {
|
|
1591
1591
|
for (var j = {}, X = 0, oe = 0; X < V; X += 1) {
|
|
1592
1592
|
var R = b[X];
|
|
1593
1593
|
if (typeof R == "string") oe += R.length;
|
|
1594
1594
|
else {
|
|
1595
|
-
var
|
|
1595
|
+
var L = R.regex, m = R.parser, P = _.slice(oe), v = L.exec(P)[0];
|
|
1596
1596
|
m.call(j, v), _ = _.replace(v, "");
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
@@ -1611,87 +1611,87 @@ var wn = { exports: {} };
|
|
|
1611
1611
|
b.parse = function(Y) {
|
|
1612
1612
|
var p = Y.date, O = Y.utc, N = Y.args;
|
|
1613
1613
|
this.$u = O;
|
|
1614
|
-
var
|
|
1615
|
-
if (typeof
|
|
1614
|
+
var B = N[1];
|
|
1615
|
+
if (typeof B == "string") {
|
|
1616
1616
|
var _ = N[2] === !0, j = N[3] === !0, X = _ || j, oe = N[2];
|
|
1617
1617
|
j && (oe = N[2]), i = this.$locale(), !_ && oe && (i = K.Ls[oe]), this.$d = function(P, v, d, $) {
|
|
1618
1618
|
try {
|
|
1619
1619
|
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * P);
|
|
1620
1620
|
var C = f(v)(P), A = C.year, q = C.month, Z = C.day, U = C.hours, z = C.minutes, re = C.seconds, ie = C.milliseconds, be = C.zone, he = C.week, $e = /* @__PURE__ */ new Date(), Fe = Z || (A || q ? 1 : $e.getDate()), De = A || $e.getFullYear(), Ne = 0;
|
|
1621
1621
|
A && !q || (Ne = q > 0 ? q - 1 : $e.getMonth());
|
|
1622
|
-
var T, Q = U || 0, ce = z || 0, ye = re || 0,
|
|
1623
|
-
return be ? new Date(Date.UTC(De, Ne, Fe, Q, ce, ye,
|
|
1622
|
+
var T, Q = U || 0, ce = z || 0, ye = re || 0, Le = ie || 0;
|
|
1623
|
+
return be ? new Date(Date.UTC(De, Ne, Fe, Q, ce, ye, Le + 60 * be.offset * 1e3)) : d ? new Date(Date.UTC(De, Ne, Fe, Q, ce, ye, Le)) : (T = new Date(De, Ne, Fe, Q, ce, ye, Le), he && (T = $(T).week(he).toDate()), T);
|
|
1624
1624
|
} catch {
|
|
1625
1625
|
return /* @__PURE__ */ new Date("");
|
|
1626
1626
|
}
|
|
1627
|
-
}(p,
|
|
1628
|
-
} else if (
|
|
1629
|
-
N[1] = L
|
|
1627
|
+
}(p, B, O, K), this.init(), oe && oe !== !0 && (this.$L = this.locale(oe).$L), X && p != this.format(B) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
|
|
1628
|
+
} else if (B instanceof Array) for (var R = B.length, L = 1; L <= R; L += 1) {
|
|
1629
|
+
N[1] = B[L - 1];
|
|
1630
1630
|
var m = K.apply(this, N);
|
|
1631
1631
|
if (m.isValid()) {
|
|
1632
1632
|
this.$d = m.$d, this.$L = m.$L, this.init();
|
|
1633
1633
|
break;
|
|
1634
1634
|
}
|
|
1635
|
-
|
|
1635
|
+
L === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1636
1636
|
}
|
|
1637
1637
|
else V.call(this, Y);
|
|
1638
1638
|
};
|
|
1639
1639
|
};
|
|
1640
1640
|
});
|
|
1641
|
-
})(
|
|
1642
|
-
var
|
|
1643
|
-
const
|
|
1644
|
-
var
|
|
1641
|
+
})(_n);
|
|
1642
|
+
var pr = _n.exports;
|
|
1643
|
+
const mr = /* @__PURE__ */ vt(pr);
|
|
1644
|
+
var In = { exports: {} };
|
|
1645
1645
|
(function(e, t) {
|
|
1646
1646
|
(function(n, o) {
|
|
1647
1647
|
e.exports = o();
|
|
1648
1648
|
})(mt, function() {
|
|
1649
1649
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1650
1650
|
return function(s, a, r) {
|
|
1651
|
-
var c, i = function(S,
|
|
1651
|
+
var c, i = function(S, E, D) {
|
|
1652
1652
|
D === void 0 && (D = {});
|
|
1653
1653
|
var f = new Date(S), I = function(M, K) {
|
|
1654
1654
|
K === void 0 && (K = {});
|
|
1655
1655
|
var b = K.timeZoneName || "short", V = M + "|" + b, Y = o[V];
|
|
1656
1656
|
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: b }), o[V] = Y), Y;
|
|
1657
|
-
}(
|
|
1657
|
+
}(E, D);
|
|
1658
1658
|
return I.formatToParts(f);
|
|
1659
|
-
}, l = function(S,
|
|
1660
|
-
for (var D = i(S,
|
|
1659
|
+
}, l = function(S, E) {
|
|
1660
|
+
for (var D = i(S, E), f = [], I = 0; I < D.length; I += 1) {
|
|
1661
1661
|
var M = D[I], K = M.type, b = M.value, V = n[K];
|
|
1662
1662
|
V >= 0 && (f[V] = parseInt(b, 10));
|
|
1663
1663
|
}
|
|
1664
1664
|
var Y = f[3], p = Y === 24 ? 0 : Y, O = f[0] + "-" + f[1] + "-" + f[2] + " " + p + ":" + f[4] + ":" + f[5] + ":000", N = +S;
|
|
1665
1665
|
return (r.utc(O).valueOf() - (N -= N % 1e3)) / 6e4;
|
|
1666
1666
|
}, u = a.prototype;
|
|
1667
|
-
u.tz = function(S,
|
|
1667
|
+
u.tz = function(S, E) {
|
|
1668
1668
|
S === void 0 && (S = c);
|
|
1669
1669
|
var D, f = this.utcOffset(), I = this.toDate(), M = I.toLocaleString("en-US", { timeZone: S }), K = Math.round((I - new Date(M)) / 1e3 / 60), b = 15 * -Math.round(I.getTimezoneOffset() / 15) - K;
|
|
1670
|
-
if (!Number(b)) D = this.utcOffset(0,
|
|
1671
|
-
else if (D = r(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(b, !0),
|
|
1670
|
+
if (!Number(b)) D = this.utcOffset(0, E);
|
|
1671
|
+
else if (D = r(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(b, !0), E) {
|
|
1672
1672
|
var V = D.utcOffset();
|
|
1673
1673
|
D = D.add(f - V, "minute");
|
|
1674
1674
|
}
|
|
1675
1675
|
return D.$x.$timezone = S, D;
|
|
1676
1676
|
}, u.offsetName = function(S) {
|
|
1677
|
-
var
|
|
1677
|
+
var E = this.$x.$timezone || r.tz.guess(), D = i(this.valueOf(), E, { timeZoneName: S }).find(function(f) {
|
|
1678
1678
|
return f.type.toLowerCase() === "timezonename";
|
|
1679
1679
|
});
|
|
1680
1680
|
return D && D.value;
|
|
1681
1681
|
};
|
|
1682
1682
|
var y = u.startOf;
|
|
1683
|
-
u.startOf = function(S,
|
|
1684
|
-
if (!this.$x || !this.$x.$timezone) return y.call(this, S,
|
|
1683
|
+
u.startOf = function(S, E) {
|
|
1684
|
+
if (!this.$x || !this.$x.$timezone) return y.call(this, S, E);
|
|
1685
1685
|
var D = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1686
|
-
return y.call(D, S,
|
|
1687
|
-
}, r.tz = function(S,
|
|
1688
|
-
var f = D &&
|
|
1686
|
+
return y.call(D, S, E).tz(this.$x.$timezone, !0);
|
|
1687
|
+
}, r.tz = function(S, E, D) {
|
|
1688
|
+
var f = D && E, I = D || E || c, M = l(+r(), I);
|
|
1689
1689
|
if (typeof S != "string") return r(S).tz(I);
|
|
1690
1690
|
var K = function(p, O, N) {
|
|
1691
|
-
var
|
|
1692
|
-
if (O === _) return [
|
|
1693
|
-
var j = l(
|
|
1694
|
-
return _ === j ? [
|
|
1691
|
+
var B = p - 60 * O * 1e3, _ = l(B, N);
|
|
1692
|
+
if (O === _) return [B, O];
|
|
1693
|
+
var j = l(B -= 60 * (_ - O) * 1e3, N);
|
|
1694
|
+
return _ === j ? [B, _] : [p - 60 * Math.min(_, j) * 1e3, Math.max(_, j)];
|
|
1695
1695
|
}(r.utc(S, f).valueOf(), M, I), b = K[0], V = K[1], Y = r(b).utcOffset(V);
|
|
1696
1696
|
return Y.$x.$timezone = I, Y;
|
|
1697
1697
|
}, r.tz.guess = function() {
|
|
@@ -1701,10 +1701,10 @@ var _n = { exports: {} };
|
|
|
1701
1701
|
};
|
|
1702
1702
|
};
|
|
1703
1703
|
});
|
|
1704
|
-
})(
|
|
1705
|
-
var
|
|
1706
|
-
const
|
|
1707
|
-
var
|
|
1704
|
+
})(In);
|
|
1705
|
+
var vr = In.exports;
|
|
1706
|
+
const hr = /* @__PURE__ */ vt(vr);
|
|
1707
|
+
var $n = { exports: {} };
|
|
1708
1708
|
(function(e, t) {
|
|
1709
1709
|
(function(n, o) {
|
|
1710
1710
|
e.exports = o();
|
|
@@ -1740,8 +1740,8 @@ var In = { exports: {} };
|
|
|
1740
1740
|
Y === void 0 && (Y = "");
|
|
1741
1741
|
var p = Y.match(o);
|
|
1742
1742
|
if (!p) return null;
|
|
1743
|
-
var O = ("" + p[0]).match(s) || ["-", 0, 0], N = O[0],
|
|
1744
|
-
return
|
|
1743
|
+
var O = ("" + p[0]).match(s) || ["-", 0, 0], N = O[0], B = 60 * +O[1] + +O[2];
|
|
1744
|
+
return B === 0 ? 0 : N === "+" ? B : -B;
|
|
1745
1745
|
}(f), f === null)) return this;
|
|
1746
1746
|
var K = Math.abs(f) <= 16 ? 60 * f : f;
|
|
1747
1747
|
if (K === 0) return this.utc(I);
|
|
@@ -1764,9 +1764,9 @@ var In = { exports: {} };
|
|
|
1764
1764
|
}, i.toString = function() {
|
|
1765
1765
|
return this.toDate().toUTCString();
|
|
1766
1766
|
};
|
|
1767
|
-
var
|
|
1767
|
+
var E = i.toDate;
|
|
1768
1768
|
i.toDate = function(f) {
|
|
1769
|
-
return f === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
1769
|
+
return f === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
|
|
1770
1770
|
};
|
|
1771
1771
|
var D = i.diff;
|
|
1772
1772
|
i.diff = function(f, I, M) {
|
|
@@ -1776,12 +1776,12 @@ var In = { exports: {} };
|
|
|
1776
1776
|
};
|
|
1777
1777
|
};
|
|
1778
1778
|
});
|
|
1779
|
-
})(
|
|
1780
|
-
var
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1779
|
+
})($n);
|
|
1780
|
+
var gr = $n.exports;
|
|
1781
|
+
const yr = /* @__PURE__ */ vt(gr);
|
|
1782
|
+
Lt.extend(yr);
|
|
1783
|
+
Lt.extend(hr);
|
|
1784
|
+
Lt.extend(mr);
|
|
1785
1785
|
const It = /\$\{([^}]+)\}/g;
|
|
1786
1786
|
function We(e) {
|
|
1787
1787
|
if (!e)
|
|
@@ -1790,11 +1790,11 @@ function We(e) {
|
|
|
1790
1790
|
return (e.cascadeDependFields ?? []).forEach((n) => {
|
|
1791
1791
|
const o = String(n ?? "").trim();
|
|
1792
1792
|
o && t.add(o);
|
|
1793
|
-
}),
|
|
1793
|
+
}), br(e.interface).forEach(
|
|
1794
1794
|
(n) => t.add(n)
|
|
1795
1795
|
), [...t];
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function br(e) {
|
|
1798
1798
|
if (!e || typeof e != "object")
|
|
1799
1799
|
return [];
|
|
1800
1800
|
const t = e.params;
|
|
@@ -1821,23 +1821,23 @@ function Ct(e, t) {
|
|
|
1821
1821
|
(n) => Ct(n, t)
|
|
1822
1822
|
);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function Bt(e) {
|
|
1825
1825
|
return xt(
|
|
1826
1826
|
e.type || e.fieldType || e.frontInputType
|
|
1827
1827
|
) || xt(e.renderType) || "text";
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function Et(e) {
|
|
1830
1830
|
return Ut(
|
|
1831
1831
|
e.type || e.fieldType || e.frontInputType
|
|
1832
1832
|
) || Ut(e.renderType) || "text";
|
|
1833
1833
|
}
|
|
1834
1834
|
function ht(e) {
|
|
1835
|
-
return
|
|
1835
|
+
return Dn(e).some(
|
|
1836
1836
|
(t) => t === "select_remote" || t === "select_remote_descr"
|
|
1837
1837
|
);
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return
|
|
1839
|
+
function Sr(e) {
|
|
1840
|
+
return Dn(e).some(
|
|
1841
1841
|
(t) => t === "select_remote_descr"
|
|
1842
1842
|
);
|
|
1843
1843
|
}
|
|
@@ -1857,26 +1857,26 @@ function ke(e) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
return !1;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Cn(e) {
|
|
1861
1861
|
if (e instanceof Error) return !0;
|
|
1862
1862
|
if (!e || typeof e != "object") return !1;
|
|
1863
1863
|
const t = e;
|
|
1864
1864
|
return typeof t.message == "string" && (typeof t.stack == "string" || t.name === "Error");
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const o =
|
|
1868
|
-
return o === "empty" || ke(t) ? n :
|
|
1866
|
+
function kn(e, t, n = "-") {
|
|
1867
|
+
const o = Et(e);
|
|
1868
|
+
return o === "empty" || ke(t) ? n : Cn(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? Or(e, t, n) : o === "switch" ? Tn(t) ? ne("common.是") : ne("common.否") : o === "file" ? Fr(t, n) : o === "multi-row" ? Dr(t, n) : String(t);
|
|
1869
1869
|
}
|
|
1870
1870
|
function gt(e, t) {
|
|
1871
1871
|
return Array.isArray(t) ? t : yt(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : ke(t) ? [] : [t] : [t];
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function wr(e, t) {
|
|
1874
1874
|
return yt(e) ? gt(e, t) : t;
|
|
1875
1875
|
}
|
|
1876
|
-
function
|
|
1876
|
+
function _r(e, t) {
|
|
1877
1877
|
return !yt(e) || !Array.isArray(t) ? ke(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Tn(e) {
|
|
1880
1880
|
if (typeof e == "boolean") return e;
|
|
1881
1881
|
if (typeof e == "number") return e !== 0;
|
|
1882
1882
|
const t = String(e ?? "").trim().toLowerCase();
|
|
@@ -1897,8 +1897,8 @@ function nt(e, t) {
|
|
|
1897
1897
|
);
|
|
1898
1898
|
}
|
|
1899
1899
|
function Je(e, t, n, o = {}) {
|
|
1900
|
-
const s =
|
|
1901
|
-
return e.filter((a) => a.visible ? !
|
|
1900
|
+
const s = kr(o);
|
|
1901
|
+
return e.filter((a) => a.visible ? !Tr(
|
|
1902
1902
|
a,
|
|
1903
1903
|
t,
|
|
1904
1904
|
n,
|
|
@@ -1907,7 +1907,7 @@ function Je(e, t, n, o = {}) {
|
|
|
1907
1907
|
) : !1);
|
|
1908
1908
|
}
|
|
1909
1909
|
function Yt(e) {
|
|
1910
|
-
return
|
|
1910
|
+
return On(e).some(
|
|
1911
1911
|
(n) => [
|
|
1912
1912
|
ne("common.序号"),
|
|
1913
1913
|
"index",
|
|
@@ -1922,9 +1922,9 @@ function Yt(e) {
|
|
|
1922
1922
|
);
|
|
1923
1923
|
}
|
|
1924
1924
|
function Ht(e) {
|
|
1925
|
-
return
|
|
1925
|
+
return On(e).includes("seqno");
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function Ir(e) {
|
|
1928
1928
|
return [
|
|
1929
1929
|
e.type,
|
|
1930
1930
|
e.fieldType,
|
|
@@ -1932,14 +1932,14 @@ function _r(e) {
|
|
|
1932
1932
|
e.raw?.type,
|
|
1933
1933
|
e.raw?.fieldType,
|
|
1934
1934
|
e.raw?.frontInputType
|
|
1935
|
-
].some((t) =>
|
|
1935
|
+
].some((t) => Fn(t) === "attach");
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1938
|
-
return !
|
|
1939
|
-
(s, a) =>
|
|
1937
|
+
function Mn(e, t, n = "-") {
|
|
1938
|
+
return !Ir(e) || ke(t) ? [] : (Array.isArray(t) ? t : [t]).map(
|
|
1939
|
+
(s, a) => $r(s, a, n)
|
|
1940
1940
|
).filter((s) => !!s);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function $r(e, t, n) {
|
|
1943
1943
|
if (ke(e)) return null;
|
|
1944
1944
|
if (typeof e == "string") {
|
|
1945
1945
|
const o = e.trim();
|
|
@@ -1958,7 +1958,7 @@ function Ir(e, t, n) {
|
|
|
1958
1958
|
text: e.name || n
|
|
1959
1959
|
};
|
|
1960
1960
|
if (e && typeof e == "object") {
|
|
1961
|
-
const o = e, s =
|
|
1961
|
+
const o = e, s = Cr(o, n), a = Ae(o.url);
|
|
1962
1962
|
if (a) {
|
|
1963
1963
|
const c = { url: a }, i = Ae(o.name), l = Ae(o.mimeType), u = Ae(o.extension);
|
|
1964
1964
|
return i && (c.name = i), l && (c.mimeType = l), u && (c.extension = u), {
|
|
@@ -1990,7 +1990,7 @@ function Ir(e, t, n) {
|
|
|
1990
1990
|
text: String(e).trim() || n
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Cr(e, t) {
|
|
1994
1994
|
return Ae(e.name) || Ae(e.fileName) || Ae(e.filename) || Ae(e.url) || Ae(e.fileId) || t;
|
|
1995
1995
|
}
|
|
1996
1996
|
function Ae(e) {
|
|
@@ -2004,10 +2004,10 @@ function Ut(e) {
|
|
|
2004
2004
|
const t = String(e ?? "").toLowerCase();
|
|
2005
2005
|
return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" || t === "select_remote" || t === "select_remote_descr" ? "select" : t === "select" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : t === "textarea" || t === "date" || t === "number" || t === "text" ? "text" : "";
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function kr(e) {
|
|
2008
2008
|
return e.rows?.length ? e.rows : [e.values ?? {}];
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function Tr(e, t, n, o, s) {
|
|
2011
2011
|
const a = n?.hiddenRule;
|
|
2012
2012
|
return a ? o.some((r) => {
|
|
2013
2013
|
try {
|
|
@@ -2026,18 +2026,18 @@ function kr(e, t, n, o, s) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}) : !1;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2030
|
-
return
|
|
2029
|
+
function On(e) {
|
|
2030
|
+
return Mr([e.code]);
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Mr(e) {
|
|
2033
2033
|
return Array.from(
|
|
2034
|
-
new Set(e.map((t) =>
|
|
2034
|
+
new Set(e.map((t) => Fn(t)).filter(Boolean))
|
|
2035
2035
|
);
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Fn(e) {
|
|
2038
2038
|
return String(e ?? "").trim().toLowerCase();
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Or(e, t, n) {
|
|
2041
2041
|
const o = yt(e);
|
|
2042
2042
|
if (Array.isArray(t) || o) {
|
|
2043
2043
|
const s = gt(e, t).map((r) => Jt(e, r) || String(r ?? "").trim()).filter(Boolean), a = o ? "," : "、";
|
|
@@ -2046,14 +2046,14 @@ function Mr(e, t, n) {
|
|
|
2046
2046
|
return Jt(e, t) || String(t).trim() || n;
|
|
2047
2047
|
}
|
|
2048
2048
|
function yt(e) {
|
|
2049
|
-
return !!e.props?.multiple && (
|
|
2049
|
+
return !!e.props?.multiple && (Bt(e) === "select" || Et(e) === "select");
|
|
2050
2050
|
}
|
|
2051
2051
|
function Jt(e, t) {
|
|
2052
2052
|
return e.options?.find(
|
|
2053
2053
|
(o) => nt(o, t)
|
|
2054
2054
|
)?.label ?? "";
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function Dn(e) {
|
|
2057
2057
|
const t = e.raw && typeof e.raw == "object" ? e.raw : {};
|
|
2058
2058
|
return [
|
|
2059
2059
|
e.type,
|
|
@@ -2066,7 +2066,7 @@ function Fn(e) {
|
|
|
2066
2066
|
(n) => String(n ?? "").trim().toLowerCase()
|
|
2067
2067
|
).filter(Boolean);
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function Fr(e, t) {
|
|
2070
2070
|
if (Array.isArray(e)) {
|
|
2071
2071
|
const n = e.map((o) => Wt(o)).filter(Boolean);
|
|
2072
2072
|
return n.length > 0 ? n.join("、") : t;
|
|
@@ -2083,47 +2083,49 @@ function Wt(e) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
return String(e ?? "").trim();
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return Array.isArray(e) ? e.map((o) =>
|
|
2086
|
+
function Dr(e, t) {
|
|
2087
|
+
return Array.isArray(e) ? e.map((o) => Cn(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : ke(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
|
|
2088
2088
|
`) || t : String(e).trim() || t;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const s =
|
|
2092
|
-
|
|
2093
|
-
const
|
|
2094
|
-
|
|
2090
|
+
function Lr(e, t, n, o) {
|
|
2091
|
+
const s = Zt(n.valueListType), a = Vr(n.enumValues);
|
|
2092
|
+
return e.map((r) => {
|
|
2093
|
+
const c = Zt(
|
|
2094
|
+
r.valueListType,
|
|
2095
|
+
s
|
|
2096
|
+
);
|
|
2097
|
+
return c === "ENUMS" ? {
|
|
2095
2098
|
...r,
|
|
2096
|
-
valueListType:
|
|
2097
|
-
// ENUMS
|
|
2099
|
+
valueListType: c,
|
|
2100
|
+
// ENUMS 的候选项在 data.enumValues 根级,key 只按字段 code 匹配。
|
|
2098
2101
|
options: o(
|
|
2099
|
-
|
|
2102
|
+
Br(r, a) ?? r.options
|
|
2100
2103
|
)
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
return s !== "REST" ? e : e.map((a) => ({ ...a, valueListType: s }));
|
|
2104
|
+
} : { ...r, valueListType: c };
|
|
2105
|
+
});
|
|
2104
2106
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const
|
|
2107
|
-
return
|
|
2107
|
+
function Zt(e, t = "REST") {
|
|
2108
|
+
const n = Ln(e).toUpperCase();
|
|
2109
|
+
return !n || n === "NULL" ? t : n;
|
|
2108
2110
|
}
|
|
2109
|
-
function
|
|
2110
|
-
for (const n of
|
|
2111
|
+
function Br(e, t) {
|
|
2112
|
+
for (const n of Er(e)) {
|
|
2111
2113
|
const o = t[n];
|
|
2112
2114
|
if (Array.isArray(o))
|
|
2113
2115
|
return o;
|
|
2114
2116
|
}
|
|
2115
2117
|
return null;
|
|
2116
2118
|
}
|
|
2117
|
-
function
|
|
2119
|
+
function Er(e) {
|
|
2118
2120
|
return Pr([e.code]);
|
|
2119
2121
|
}
|
|
2120
2122
|
function Pr(e) {
|
|
2121
|
-
return Array.from(new Set(e.map(
|
|
2123
|
+
return Array.from(new Set(e.map(Ln).filter(Boolean)));
|
|
2122
2124
|
}
|
|
2123
2125
|
function Vr(e) {
|
|
2124
2126
|
return e && typeof e == "object" ? e : {};
|
|
2125
2127
|
}
|
|
2126
|
-
function
|
|
2128
|
+
function Ln(e) {
|
|
2127
2129
|
return e == null ? "" : String(e);
|
|
2128
2130
|
}
|
|
2129
2131
|
function Rr(e = null) {
|
|
@@ -2139,9 +2141,9 @@ function Rr(e = null) {
|
|
|
2139
2141
|
raw: e
|
|
2140
2142
|
};
|
|
2141
2143
|
}
|
|
2142
|
-
function
|
|
2143
|
-
const t =
|
|
2144
|
-
(s) =>
|
|
2144
|
+
function Qt(e) {
|
|
2145
|
+
const t = jn(e), n = Rn(t), o = Ur(t).flatMap(
|
|
2146
|
+
(s) => Vn(s, n)
|
|
2145
2147
|
);
|
|
2146
2148
|
return {
|
|
2147
2149
|
...Rr(e),
|
|
@@ -2150,14 +2152,14 @@ function Zt(e) {
|
|
|
2150
2152
|
treeNodes: o
|
|
2151
2153
|
};
|
|
2152
2154
|
}
|
|
2153
|
-
function
|
|
2155
|
+
function Bn(e, t, n) {
|
|
2154
2156
|
return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
|
|
2155
2157
|
...o,
|
|
2156
|
-
children:
|
|
2158
|
+
children: Bn(o.children, t, n)
|
|
2157
2159
|
});
|
|
2158
2160
|
}
|
|
2159
2161
|
function jr(e, t = {}, n = null) {
|
|
2160
|
-
const o =
|
|
2162
|
+
const o = jn(e), s = Rn(o, t), a = Ar(o, t, n), r = Object.fromEntries(
|
|
2161
2163
|
a.map((c) => [c.key, c])
|
|
2162
2164
|
);
|
|
2163
2165
|
return {
|
|
@@ -2198,19 +2200,19 @@ function kt(e) {
|
|
|
2198
2200
|
return Object.fromEntries(
|
|
2199
2201
|
Object.entries(e).map(([t, n]) => [
|
|
2200
2202
|
t,
|
|
2201
|
-
|
|
2203
|
+
En(n)
|
|
2202
2204
|
])
|
|
2203
2205
|
);
|
|
2204
2206
|
}
|
|
2205
|
-
function
|
|
2206
|
-
return e === "" ? null : Array.isArray(e) ? e.map(
|
|
2207
|
+
function En(e) {
|
|
2208
|
+
return e === "" ? null : Array.isArray(e) ? e.map(En) : e && typeof e == "object" ? kt(e) : e;
|
|
2207
2209
|
}
|
|
2208
|
-
function
|
|
2210
|
+
function Es(e) {
|
|
2209
2211
|
const t = e;
|
|
2210
2212
|
return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
|
|
2211
2213
|
}
|
|
2212
2214
|
function Pt(e) {
|
|
2213
|
-
const t =
|
|
2215
|
+
const t = Nn(e);
|
|
2214
2216
|
return (Array.isArray(t) ? t : ot(ge(t), ["options", "list", "records", "data"])).map((o) => {
|
|
2215
2217
|
const s = ge(o), a = s.fieldvalue, r = a ?? s.value ?? s.code ?? s.emplid;
|
|
2216
2218
|
return {
|
|
@@ -2230,11 +2232,11 @@ function Pt(e) {
|
|
|
2230
2232
|
function Ar(e, t, n) {
|
|
2231
2233
|
const o = ot(e, ["sections"]);
|
|
2232
2234
|
return o.length > 0 ? o.map(
|
|
2233
|
-
(s) =>
|
|
2234
|
-
) : e.infSetMark || e.infSetFields ? [
|
|
2235
|
+
(s) => Xt(s, t, n)
|
|
2236
|
+
) : e.infSetMark || e.infSetFields ? [Xt(e, t, n)] : [];
|
|
2235
2237
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const o = ge(e), s = qr(o.infSetMark ?? o), a = o.infSetValues, r =
|
|
2238
|
+
function Xt(e, t, n) {
|
|
2239
|
+
const o = ge(e), s = qr(o.infSetMark ?? o), a = o.infSetValues, r = Lr(
|
|
2238
2240
|
Gr(o.infSetFields ?? []),
|
|
2239
2241
|
a,
|
|
2240
2242
|
o,
|
|
@@ -2243,13 +2245,13 @@ function Qt(e, t, n) {
|
|
|
2243
2245
|
a,
|
|
2244
2246
|
r,
|
|
2245
2247
|
c
|
|
2246
|
-
), l = c === "form" && i.length > 1 ? "multi-form" : c, u = i[0] ? Tt(i[0]) :
|
|
2248
|
+
), l = c === "form" && i.length > 1 ? "multi-form" : c, u = i[0] ? Tt(i[0]) : Pn(r), y = ge(o.tag), S = le(o.tagId ?? o.infTagId ?? y.tagId ?? y.infTagId), E = le(t.tagId ?? n?.tagId), D = le(n?.key), f = s.setId || le(o.setId), I = le(o.infSetId) || f, M = f || I, K = s.code || le(o.code), b = M || K || I || S, V = {
|
|
2247
2249
|
key: b,
|
|
2248
2250
|
id: b,
|
|
2249
2251
|
setId: M,
|
|
2250
2252
|
code: K,
|
|
2251
2253
|
tagId: S,
|
|
2252
|
-
requestTagId:
|
|
2254
|
+
requestTagId: E || void 0,
|
|
2253
2255
|
ownerNodeKey: D || void 0,
|
|
2254
2256
|
infSetId: I,
|
|
2255
2257
|
title: s.name || le(o.name ?? b),
|
|
@@ -2284,9 +2286,9 @@ function Gr(e) {
|
|
|
2284
2286
|
return (Array.isArray(e) ? e : []).map((n, o) => zr(n, o));
|
|
2285
2287
|
}
|
|
2286
2288
|
function zr(e, t) {
|
|
2287
|
-
const n = ge(e), o = le(n.code), s = le(n.name ?? n.label ?? o), a =
|
|
2289
|
+
const n = ge(e), o = le(n.code), s = le(n.name ?? n.label ?? o), a = Kn(
|
|
2288
2290
|
n.interfaceField ?? n.interface
|
|
2289
|
-
), r =
|
|
2291
|
+
), r = en(n.cascadeDependFields);
|
|
2290
2292
|
return {
|
|
2291
2293
|
id: o || `field_${t}`,
|
|
2292
2294
|
key: o || `field_${t}`,
|
|
@@ -2304,20 +2306,20 @@ function zr(e, t) {
|
|
|
2304
2306
|
multRow: Ve(n.multRow),
|
|
2305
2307
|
isRequired: Ve(n.isRequired),
|
|
2306
2308
|
disabled: n.disabled === void 0 ? void 0 : Ve(n.disabled),
|
|
2307
|
-
span:
|
|
2308
|
-
width:
|
|
2309
|
-
minWidth:
|
|
2309
|
+
span: Gn(n.span),
|
|
2310
|
+
width: tn(n.width),
|
|
2311
|
+
minWidth: tn(n.minWidth),
|
|
2310
2312
|
placeholder: pe(n.placeholder),
|
|
2311
2313
|
options: Pt(n.options),
|
|
2312
2314
|
valueListType: pe(n.valueListType),
|
|
2313
2315
|
interface: a,
|
|
2314
|
-
cascadeClearFields:
|
|
2316
|
+
cascadeClearFields: en(n.cascadeClearFields),
|
|
2315
2317
|
cascadeDependFields: We({
|
|
2316
2318
|
cascadeDependFields: r,
|
|
2317
2319
|
interface: a
|
|
2318
2320
|
}),
|
|
2319
2321
|
props: Qr(n),
|
|
2320
|
-
formItemProps:
|
|
2322
|
+
formItemProps: An(n.formItemProps),
|
|
2321
2323
|
raw: n
|
|
2322
2324
|
};
|
|
2323
2325
|
}
|
|
@@ -2333,15 +2335,15 @@ function Yr(e, t, n) {
|
|
|
2333
2335
|
// 行身份只接受前端固化的 __rowKey;后端未声明行主键时退回当前索引。
|
|
2334
2336
|
__rowKey: le(ge(a).__rowKey) || String(r)
|
|
2335
2337
|
}));
|
|
2336
|
-
const o =
|
|
2338
|
+
const o = Pn(t);
|
|
2337
2339
|
return n === "form" && Object.keys(o).length ? [{ ...o, __rowKey: "0" }] : [];
|
|
2338
2340
|
}
|
|
2339
|
-
function
|
|
2341
|
+
function Pn(e) {
|
|
2340
2342
|
return e.reduce((t, n) => (n.code && (t[n.code] = n.value), t), {});
|
|
2341
2343
|
}
|
|
2342
|
-
function
|
|
2344
|
+
function Vn(e, t, n = "") {
|
|
2343
2345
|
const o = ge(e), s = ot(o, ["children", "list", "tags"]).flatMap(
|
|
2344
|
-
(r) =>
|
|
2346
|
+
(r) => Vn(
|
|
2345
2347
|
r,
|
|
2346
2348
|
t,
|
|
2347
2349
|
le(o.tagId)
|
|
@@ -2360,7 +2362,7 @@ function Hr(e, t, n, o) {
|
|
|
2360
2362
|
tagName: a,
|
|
2361
2363
|
label: a,
|
|
2362
2364
|
tagLevel: pe(e.tagLevel ?? e.level) ?? null,
|
|
2363
|
-
level:
|
|
2365
|
+
level: qn(e.tagLevel ?? e.level),
|
|
2364
2366
|
parentTagId: pe(
|
|
2365
2367
|
e.parentTagId ?? e.parentId ?? n
|
|
2366
2368
|
),
|
|
@@ -2386,7 +2388,7 @@ function xr(e, t, n, o, s) {
|
|
|
2386
2388
|
tagName: r,
|
|
2387
2389
|
label: r,
|
|
2388
2390
|
tagLevel: pe(e.tagLevel ?? e.level) ?? null,
|
|
2389
|
-
level:
|
|
2391
|
+
level: qn(e.tagLevel ?? e.level),
|
|
2390
2392
|
parentTagId: pe(
|
|
2391
2393
|
e.parentTagId ?? e.parentId ?? o
|
|
2392
2394
|
),
|
|
@@ -2408,7 +2410,7 @@ function xr(e, t, n, o, s) {
|
|
|
2408
2410
|
}
|
|
2409
2411
|
};
|
|
2410
2412
|
}
|
|
2411
|
-
function
|
|
2413
|
+
function Rn(e, t = {}) {
|
|
2412
2414
|
const n = ge(
|
|
2413
2415
|
e.globalInfoSchmMark ?? e.scheme ?? e
|
|
2414
2416
|
), o = le(n.infSchmId ?? t.infSchmId), s = le(n.emplid ?? t.emplid);
|
|
@@ -2443,10 +2445,10 @@ function Jr(e) {
|
|
|
2443
2445
|
};
|
|
2444
2446
|
}) : [];
|
|
2445
2447
|
}
|
|
2446
|
-
function Rn(e) {
|
|
2447
|
-
return ge(jn(e));
|
|
2448
|
-
}
|
|
2449
2448
|
function jn(e) {
|
|
2449
|
+
return ge(Nn(e));
|
|
2450
|
+
}
|
|
2451
|
+
function Nn(e) {
|
|
2450
2452
|
const t = ge(e);
|
|
2451
2453
|
return t.data ?? t.result ?? e;
|
|
2452
2454
|
}
|
|
@@ -2462,14 +2464,14 @@ function Tt(e) {
|
|
|
2462
2464
|
const t = { ...e };
|
|
2463
2465
|
return delete t.__rowKey, delete t.fields, t;
|
|
2464
2466
|
}
|
|
2465
|
-
function
|
|
2467
|
+
function Kn(e) {
|
|
2466
2468
|
const t = ge(e);
|
|
2467
2469
|
if (!(!t.method && !t.url && !t.params))
|
|
2468
2470
|
return {
|
|
2469
2471
|
...t,
|
|
2470
2472
|
method: pe(t.method),
|
|
2471
2473
|
url: pe(t.url),
|
|
2472
|
-
params:
|
|
2474
|
+
params: An(t.params)
|
|
2473
2475
|
};
|
|
2474
2476
|
}
|
|
2475
2477
|
function bt(e) {
|
|
@@ -2478,11 +2480,11 @@ function bt(e) {
|
|
|
2478
2480
|
return Object.fromEntries(
|
|
2479
2481
|
Object.entries(t).map(([n, o]) => [
|
|
2480
2482
|
n,
|
|
2481
|
-
|
|
2483
|
+
Kn(o) ?? o
|
|
2482
2484
|
])
|
|
2483
2485
|
);
|
|
2484
2486
|
}
|
|
2485
|
-
function
|
|
2487
|
+
function en(e) {
|
|
2486
2488
|
if (!Array.isArray(e))
|
|
2487
2489
|
return;
|
|
2488
2490
|
const t = e.map((n) => le(n)).filter(Boolean);
|
|
@@ -2500,7 +2502,7 @@ function Zr(e) {
|
|
|
2500
2502
|
).toLowerCase();
|
|
2501
2503
|
return ["dtpicker", "date"].includes(t) ? "date" : t === "select_remote" || t === "select_remote_descr" ? "select_remote" : ["select", "enum", "radio", "checkbox"].includes(t) ? "select" : ["number", "int", "integer"].includes(t) ? "number" : ["bool", "boolean", "switch"].includes(t) ? "switch" : ["file", "upload", "attachment", "attach"].includes(t) ? "file" : ["textarea", "text_area"].includes(t) ? "textarea" : "text";
|
|
2502
2504
|
}
|
|
2503
|
-
function
|
|
2505
|
+
function An(e) {
|
|
2504
2506
|
const t = ge(e);
|
|
2505
2507
|
return Object.keys(t).length ? t : void 0;
|
|
2506
2508
|
}
|
|
@@ -2510,7 +2512,7 @@ function Qr(e) {
|
|
|
2510
2512
|
};
|
|
2511
2513
|
return e.multiple !== void 0 && (t.multiple = Ve(e.multiple)), Object.keys(t).length ? t : void 0;
|
|
2512
2514
|
}
|
|
2513
|
-
function
|
|
2515
|
+
function tn(e) {
|
|
2514
2516
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
2515
2517
|
}
|
|
2516
2518
|
function ge(e) {
|
|
@@ -2522,11 +2524,11 @@ function le(e) {
|
|
|
2522
2524
|
function pe(e) {
|
|
2523
2525
|
return le(e) || void 0;
|
|
2524
2526
|
}
|
|
2525
|
-
function
|
|
2526
|
-
const t =
|
|
2527
|
+
function qn(e) {
|
|
2528
|
+
const t = Gn(e);
|
|
2527
2529
|
return t === void 0 ? null : t;
|
|
2528
2530
|
}
|
|
2529
|
-
function
|
|
2531
|
+
function Gn(e) {
|
|
2530
2532
|
if (e == null || e === "") return;
|
|
2531
2533
|
const t = Number(e);
|
|
2532
2534
|
return Number.isFinite(t) ? t : void 0;
|
|
@@ -2553,12 +2555,12 @@ const Ye = (e) => e.code, Pe = (e) => e.key || e.setId, Xr = (e) => String(e ??
|
|
|
2553
2555
|
e.tagId,
|
|
2554
2556
|
e.code
|
|
2555
2557
|
]);
|
|
2556
|
-
function
|
|
2558
|
+
function zn(e, t, n) {
|
|
2557
2559
|
const o = ea(e), s = it([n, ...rt(t)]);
|
|
2558
2560
|
return s.length === 0 ? !1 : s.some((a) => o.includes(a));
|
|
2559
2561
|
}
|
|
2560
2562
|
function ta(e, t, n) {
|
|
2561
|
-
return it([n, ...rt(t)]).length === 0 ? e : e.filter((s) =>
|
|
2563
|
+
return it([n, ...rt(t)]).length === 0 ? e : e.filter((s) => zn(s, t, n));
|
|
2562
2564
|
}
|
|
2563
2565
|
function na(e, t, n = {}) {
|
|
2564
2566
|
const o = Object.keys(n).length > 0 ? n : e.model, s = typeof t == "string" ? t : Ye(t), a = typeof t == "string" ? e.fields.find((i) => Ye(i) === s || i.code === s) : t, c = We(a).some((i) => {
|
|
@@ -2584,27 +2586,27 @@ function ra(e, t) {
|
|
|
2584
2586
|
function aa(e) {
|
|
2585
2587
|
return Pt(e);
|
|
2586
2588
|
}
|
|
2587
|
-
const
|
|
2588
|
-
const t =
|
|
2589
|
+
const Ee = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, dt = (e) => {
|
|
2590
|
+
const t = Ee(e);
|
|
2589
2591
|
return !!(t.url || t.method || t.params);
|
|
2590
2592
|
};
|
|
2591
2593
|
function sa(e) {
|
|
2592
|
-
const t =
|
|
2594
|
+
const t = Ee(e.operationInfo).openTag;
|
|
2593
2595
|
return dt(t) ? t : void 0;
|
|
2594
2596
|
}
|
|
2595
2597
|
function la(e, t, n) {
|
|
2596
|
-
const o =
|
|
2598
|
+
const o = Ee(e?.operationInfo).queryInfoSet;
|
|
2597
2599
|
if (dt(o))
|
|
2598
2600
|
return o;
|
|
2599
|
-
const s = t?.infSetList.find((r) => r.infSetId === n), a =
|
|
2601
|
+
const s = t?.infSetList.find((r) => r.infSetId === n), a = Ee(s?.operationInfo).queryInfoSet;
|
|
2600
2602
|
return dt(a) ? a : void 0;
|
|
2601
2603
|
}
|
|
2602
2604
|
function ia(e) {
|
|
2603
|
-
const t =
|
|
2605
|
+
const t = Ee(e.operationInfo).editInfoSet;
|
|
2604
2606
|
return dt(t) ? t : void 0;
|
|
2605
2607
|
}
|
|
2606
|
-
async function
|
|
2607
|
-
const t = e.params === void 0 ? void 0 :
|
|
2608
|
+
async function Yn(e) {
|
|
2609
|
+
const t = e.params === void 0 ? void 0 : Ee(e.params);
|
|
2608
2610
|
return !e.formatter || !ca(e) ? t : e.formatter({
|
|
2609
2611
|
operation: e.operation,
|
|
2610
2612
|
interfaceOperation: e.field?.interface,
|
|
@@ -2612,8 +2614,8 @@ async function zn(e) {
|
|
|
2612
2614
|
requestSource: e.requestSource,
|
|
2613
2615
|
tagId: e.tagId,
|
|
2614
2616
|
model: {
|
|
2615
|
-
...
|
|
2616
|
-
...
|
|
2617
|
+
...Ee(e.section?.model),
|
|
2618
|
+
...Ee(e.model)
|
|
2617
2619
|
},
|
|
2618
2620
|
row: e.row,
|
|
2619
2621
|
section: e.section,
|
|
@@ -2633,7 +2635,7 @@ function ca(e) {
|
|
|
2633
2635
|
async function ua(e) {
|
|
2634
2636
|
if (!e.service.requestOperation)
|
|
2635
2637
|
throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
|
|
2636
|
-
const t = e.operation.params === void 0 ? void 0 :
|
|
2638
|
+
const t = e.operation.params === void 0 ? void 0 : Ee(e.operation.params), n = da(t, e.context), o = await Yn({
|
|
2637
2639
|
formatter: e.formatter,
|
|
2638
2640
|
params: n,
|
|
2639
2641
|
operation: e.operation,
|
|
@@ -2659,10 +2661,10 @@ async function ua(e) {
|
|
|
2659
2661
|
function da(e, t) {
|
|
2660
2662
|
if (t?.params === void 0)
|
|
2661
2663
|
return e;
|
|
2662
|
-
const n =
|
|
2664
|
+
const n = Ee(t.params);
|
|
2663
2665
|
return t.type === "openTag" && t.requestSource === "sidebar" ? {
|
|
2664
2666
|
...n,
|
|
2665
|
-
...
|
|
2667
|
+
...Ee(e)
|
|
2666
2668
|
} : n;
|
|
2667
2669
|
}
|
|
2668
2670
|
function tt(e = {}) {
|
|
@@ -2682,7 +2684,7 @@ function tt(e = {}) {
|
|
|
2682
2684
|
};
|
|
2683
2685
|
}
|
|
2684
2686
|
function fa(e) {
|
|
2685
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], s = { ...e.currentStatusMap }, a = ta(e.nextViewModel.sections, e.node, e.targetKey), r = it([e.targetKey, ...rt(e.node)]).length > 0, c = a.find((i) =>
|
|
2687
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], s = { ...e.currentStatusMap }, a = ta(e.nextViewModel.sections, e.node, e.targetKey), r = it([e.targetKey, ...rt(e.node)]).length > 0, c = a.find((i) => zn(i, e.node, e.targetKey)) ?? (r ? null : e.nextViewModel.activeSection ?? a[0] ?? e.activeSection ?? null);
|
|
2686
2688
|
return a.forEach((i) => {
|
|
2687
2689
|
const l = Pe(i);
|
|
2688
2690
|
t[l] = i, o.includes(l) || o.push(l), s[l] = tt({
|
|
@@ -2707,23 +2709,23 @@ function fa(e) {
|
|
|
2707
2709
|
targetSections: a
|
|
2708
2710
|
};
|
|
2709
2711
|
}
|
|
2710
|
-
const
|
|
2712
|
+
const Hn = ne(
|
|
2711
2713
|
"common.信息集不能为空,最后一条数据不可删除"
|
|
2712
2714
|
);
|
|
2713
2715
|
function pa(e, t = [], n = {}) {
|
|
2714
2716
|
return !e.mark.isRequired || t.length > 0 ? null : ma(n.emptyMessage, {
|
|
2715
2717
|
section: e,
|
|
2716
2718
|
infSetValues: t
|
|
2717
|
-
}) ||
|
|
2719
|
+
}) || Hn;
|
|
2718
2720
|
}
|
|
2719
2721
|
function ma(e, t) {
|
|
2720
|
-
return typeof e == "function" ? e(t) : typeof e == "string" ? e :
|
|
2722
|
+
return typeof e == "function" ? e(t) : typeof e == "string" ? e : Hn;
|
|
2721
2723
|
}
|
|
2722
2724
|
function ft(e, t) {
|
|
2723
2725
|
const n = ha(e);
|
|
2724
2726
|
return typeof t == "number" ? `${t}:${n}` : n;
|
|
2725
2727
|
}
|
|
2726
|
-
function
|
|
2728
|
+
function xn(e, t, n, o, s = {}) {
|
|
2727
2729
|
return Mt(
|
|
2728
2730
|
e,
|
|
2729
2731
|
t,
|
|
@@ -2733,7 +2735,7 @@ function Hn(e, t, n, o, s = {}) {
|
|
|
2733
2735
|
) !== null;
|
|
2734
2736
|
}
|
|
2735
2737
|
function Mt(e, t, n, o, s = {}) {
|
|
2736
|
-
if (e.required || e.isRequired) return
|
|
2738
|
+
if (e.required || e.isRequired) return nn(e);
|
|
2737
2739
|
const a = n?.requiredRule?.({
|
|
2738
2740
|
field: e,
|
|
2739
2741
|
section: t,
|
|
@@ -2743,7 +2745,7 @@ function Mt(e, t, n, o, s = {}) {
|
|
|
2743
2745
|
rowIndex: s.rowIndex,
|
|
2744
2746
|
rows: s.rows
|
|
2745
2747
|
});
|
|
2746
|
-
return typeof a == "string" ? a : a ?
|
|
2748
|
+
return typeof a == "string" ? a : a ? nn(e) : null;
|
|
2747
2749
|
}
|
|
2748
2750
|
function va(e, t) {
|
|
2749
2751
|
const n = {};
|
|
@@ -2787,7 +2789,7 @@ function va(e, t) {
|
|
|
2787
2789
|
firstMessage: Object.values(n)[0] ?? null
|
|
2788
2790
|
};
|
|
2789
2791
|
}
|
|
2790
|
-
function
|
|
2792
|
+
function nn(e) {
|
|
2791
2793
|
const t = e.raw?.requiredMessage ?? e.raw?.emptyMessage;
|
|
2792
2794
|
return typeof t == "string" && t.trim() ? t : `${e.label || e.name || e.code || "字段"}不能为空`;
|
|
2793
2795
|
}
|
|
@@ -2797,13 +2799,13 @@ function ha(e) {
|
|
|
2797
2799
|
const xe = (e) => new Error(`[GlobalInfo] ${e}`), ga = (e) => [
|
|
2798
2800
|
String(e.method ?? "").toLowerCase(),
|
|
2799
2801
|
String(e.url ?? ""),
|
|
2800
|
-
Ot(
|
|
2802
|
+
Ot(Ee(e.params))
|
|
2801
2803
|
].join("::");
|
|
2802
2804
|
function Ot(e) {
|
|
2803
2805
|
return Array.isArray(e) ? `[${e.map((t) => Ot(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${Ot(o)}`).join(",")}}` : JSON.stringify(e);
|
|
2804
2806
|
}
|
|
2805
2807
|
const ya = (e) => {
|
|
2806
|
-
const t = Se(!1), n = Se(!1), o = Se(!1), s = ze(null), a = ze([]), r = ze(null), c = ze(null), i = ze(null), l = ze({}), u = ze({}), y = Se([]), S = ze({}),
|
|
2808
|
+
const t = Se(!1), n = Se(!1), o = Se(!1), s = ze(null), a = ze([]), r = ze(null), c = ze(null), i = ze(null), l = ze({}), u = ze({}), y = Se([]), S = ze({}), E = Se([]), D = F(
|
|
2807
2809
|
() => {
|
|
2808
2810
|
const h = y.value.map((k) => l.value[k]).filter((k) => !!k), g = Object.entries(l.value).filter(([k]) => !y.value.includes(k)).map(([, k]) => k);
|
|
2809
2811
|
return [...h, ...g];
|
|
@@ -2816,7 +2818,7 @@ const ya = (e) => {
|
|
|
2816
2818
|
// 当前是否正在保存。
|
|
2817
2819
|
saving: o.value,
|
|
2818
2820
|
// 当前所有编辑中的 section key。
|
|
2819
|
-
editingSectionKeys:
|
|
2821
|
+
editingSectionKeys: E.value,
|
|
2820
2822
|
// 已加载 section 映射。
|
|
2821
2823
|
sectionMap: l.value,
|
|
2822
2824
|
// section 状态映射;这里把 alias 后的编辑态也同步进去。
|
|
@@ -2827,7 +2829,7 @@ const ya = (e) => {
|
|
|
2827
2829
|
// 保留原状态字段。
|
|
2828
2830
|
...g,
|
|
2829
2831
|
// 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
|
|
2830
|
-
editing:
|
|
2832
|
+
editing: E.value.includes(
|
|
2831
2833
|
u.value[h] ?? h
|
|
2832
2834
|
)
|
|
2833
2835
|
}
|
|
@@ -2871,7 +2873,7 @@ const ya = (e) => {
|
|
|
2871
2873
|
sections: D.value,
|
|
2872
2874
|
activeNode: c.value,
|
|
2873
2875
|
activeSection: i.value
|
|
2874
|
-
}), V =
|
|
2876
|
+
}), V = dr(
|
|
2875
2877
|
async (h, g) => {
|
|
2876
2878
|
if (!e.service.requestOperation)
|
|
2877
2879
|
throw xe("service.requestOperation is required");
|
|
@@ -2879,7 +2881,7 @@ const ya = (e) => {
|
|
|
2879
2881
|
},
|
|
2880
2882
|
(h) => ga(h)
|
|
2881
2883
|
), Y = async (h, g) => {
|
|
2882
|
-
const k = await
|
|
2884
|
+
const k = await Yn({
|
|
2883
2885
|
formatter: e.formatOperationParams,
|
|
2884
2886
|
params: g?.params,
|
|
2885
2887
|
operation: h,
|
|
@@ -2918,7 +2920,7 @@ const ya = (e) => {
|
|
|
2918
2920
|
return null;
|
|
2919
2921
|
const k = u.value[g] ?? g;
|
|
2920
2922
|
return l.value[k] ?? null;
|
|
2921
|
-
},
|
|
2923
|
+
}, B = (h = i.value) => {
|
|
2922
2924
|
const g = O(h);
|
|
2923
2925
|
if (g)
|
|
2924
2926
|
return u.value[g] ?? g;
|
|
@@ -2945,7 +2947,7 @@ const ya = (e) => {
|
|
|
2945
2947
|
...S.value[g],
|
|
2946
2948
|
...S.value[k],
|
|
2947
2949
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
2948
|
-
editing:
|
|
2950
|
+
editing: E.value.includes(
|
|
2949
2951
|
k
|
|
2950
2952
|
)
|
|
2951
2953
|
});
|
|
@@ -2959,11 +2961,11 @@ const ya = (e) => {
|
|
|
2959
2961
|
// 合并本次状态补丁。
|
|
2960
2962
|
...g,
|
|
2961
2963
|
// 编辑态仍以 editingSectionKeys 为准。
|
|
2962
|
-
editing:
|
|
2964
|
+
editing: E.value.includes(k)
|
|
2963
2965
|
})
|
|
2964
2966
|
});
|
|
2965
|
-
},
|
|
2966
|
-
const g =
|
|
2967
|
+
}, L = (h = i.value) => {
|
|
2968
|
+
const g = B(h);
|
|
2967
2969
|
g && R(g, { fieldErrors: {} });
|
|
2968
2970
|
}, m = (h = r.value?.raw ?? null, g = c.value) => {
|
|
2969
2971
|
const k = D.value, H = i.value && k.find(
|
|
@@ -2994,7 +2996,7 @@ const ya = (e) => {
|
|
|
2994
2996
|
currentAliasMap: u.value,
|
|
2995
2997
|
currentOrder: y.value,
|
|
2996
2998
|
currentStatusMap: S.value,
|
|
2997
|
-
editingSectionKeys:
|
|
2999
|
+
editingSectionKeys: E.value,
|
|
2998
3000
|
nextViewModel: h,
|
|
2999
3001
|
node: g,
|
|
3000
3002
|
targetKey: k,
|
|
@@ -3011,7 +3013,7 @@ const ya = (e) => {
|
|
|
3011
3013
|
sectionMap: l.value
|
|
3012
3014
|
}, i.value = H.matchedSection, H.matchedSection;
|
|
3013
3015
|
}, v = (h, g) => {
|
|
3014
|
-
const k =
|
|
3016
|
+
const k = B(h), H = k ? l.value[k] : null;
|
|
3015
3017
|
if (!k || !H)
|
|
3016
3018
|
return;
|
|
3017
3019
|
const ee = g(H);
|
|
@@ -3030,7 +3032,7 @@ const ya = (e) => {
|
|
|
3030
3032
|
const ee = g ? [{ infSetId: g.infSetId, setId: g.setId, operationInfo: g.operationInfo, raw: g.raw }] : k.infSetList;
|
|
3031
3033
|
if (ee.length === 0)
|
|
3032
3034
|
throw xe("node.infSetList is required");
|
|
3033
|
-
const
|
|
3035
|
+
const Be = await Promise.all(ee.map(async (fe) => {
|
|
3034
3036
|
const we = la(g, k, fe.infSetId), qe = g?.requestTagId ?? g?.tagId ?? k.tagId, ct = {
|
|
3035
3037
|
...K(k, g),
|
|
3036
3038
|
tagId: qe,
|
|
@@ -3051,9 +3053,9 @@ const ya = (e) => {
|
|
|
3051
3053
|
}
|
|
3052
3054
|
throw xe("infoSet.operationInfo.queryInfoSet is required");
|
|
3053
3055
|
})), _e = {
|
|
3054
|
-
...
|
|
3055
|
-
sections:
|
|
3056
|
-
sectionMap: Object.fromEntries(
|
|
3056
|
+
...Be[0],
|
|
3057
|
+
sections: Be.flatMap((fe) => fe.sections),
|
|
3058
|
+
sectionMap: Object.fromEntries(Be.flatMap((fe) => fe.sections).map((fe) => [fe.key, fe]))
|
|
3057
3059
|
};
|
|
3058
3060
|
return P(_e, k, H);
|
|
3059
3061
|
} catch (ee) {
|
|
@@ -3079,32 +3081,32 @@ const ya = (e) => {
|
|
|
3079
3081
|
node: h,
|
|
3080
3082
|
params: k
|
|
3081
3083
|
});
|
|
3082
|
-
return
|
|
3084
|
+
return Qt(H).treeNodes;
|
|
3083
3085
|
}, Z = async (h) => {
|
|
3084
3086
|
if (h.loaded)
|
|
3085
3087
|
return h.children;
|
|
3086
3088
|
const g = await q(h);
|
|
3087
|
-
return g.length > 0 && (a.value =
|
|
3089
|
+
return g.length > 0 && (a.value = Bn(a.value, h.key, g)), g;
|
|
3088
3090
|
}, U = async (h) => {
|
|
3089
3091
|
const g = typeof h == "string" ? p(a.value, h) : h;
|
|
3090
|
-
return g ? (c.value = g, i.value = null,
|
|
3092
|
+
return g ? (c.value = g, i.value = null, E.value = [], await Z(g), m(r.value?.raw, g), g) : null;
|
|
3091
3093
|
}, z = async () => {
|
|
3092
3094
|
const h = e.service.templateTree;
|
|
3093
3095
|
if (!h)
|
|
3094
3096
|
throw xe("service.templateTree is required");
|
|
3095
3097
|
t.value = !0, s.value = null;
|
|
3096
3098
|
try {
|
|
3097
|
-
const g = await h(I()), k =
|
|
3098
|
-
k.treeNodes.map(async (
|
|
3099
|
-
const _e = await q(
|
|
3099
|
+
const g = await h(I()), k = Qt(g), H = await Promise.all(
|
|
3100
|
+
k.treeNodes.map(async (Be) => {
|
|
3101
|
+
const _e = await q(Be);
|
|
3100
3102
|
return {
|
|
3101
|
-
...
|
|
3103
|
+
...Be,
|
|
3102
3104
|
children: _e,
|
|
3103
|
-
loaded: _e.length > 0 ||
|
|
3105
|
+
loaded: _e.length > 0 || Be.loaded
|
|
3104
3106
|
};
|
|
3105
3107
|
})
|
|
3106
3108
|
);
|
|
3107
|
-
a.value = H, i.value = null, l.value = {}, u.value = {}, y.value = [], S.value = {},
|
|
3109
|
+
a.value = H, i.value = null, l.value = {}, u.value = {}, y.value = [], S.value = {}, E.value = [];
|
|
3108
3110
|
const ee = p(H, e.initialActiveNodeKey) ?? p(H);
|
|
3109
3111
|
return c.value = ee, r.value = {
|
|
3110
3112
|
...k,
|
|
@@ -3126,14 +3128,14 @@ const ya = (e) => {
|
|
|
3126
3128
|
);
|
|
3127
3129
|
return g && (i.value = g), m(), r.value;
|
|
3128
3130
|
}, ie = (h = i.value) => {
|
|
3129
|
-
const g =
|
|
3130
|
-
return !!(g &&
|
|
3131
|
+
const g = B(h);
|
|
3132
|
+
return !!(g && E.value.includes(g));
|
|
3131
3133
|
}, be = (h = i.value) => {
|
|
3132
|
-
const g =
|
|
3133
|
-
!g || ie(g) || (
|
|
3134
|
+
const g = B(h);
|
|
3135
|
+
!g || ie(g) || (E.value = [...E.value, g], R(g, { editing: !0 }));
|
|
3134
3136
|
}, he = (h = i.value) => {
|
|
3135
|
-
const g =
|
|
3136
|
-
g && (
|
|
3137
|
+
const g = B(h);
|
|
3138
|
+
g && (E.value = E.value.filter(
|
|
3137
3139
|
(k) => k !== g
|
|
3138
3140
|
), R(g, { editing: !1 }));
|
|
3139
3141
|
}, $e = (h, g, k) => {
|
|
@@ -3158,12 +3160,12 @@ const ya = (e) => {
|
|
|
3158
3160
|
return qe === H || we.code === H ? { ...we, value: k } : _e.includes(qe) || _e.includes(we.code) ? { ...we, value: "" } : we;
|
|
3159
3161
|
})
|
|
3160
3162
|
};
|
|
3161
|
-
}),
|
|
3163
|
+
}), L(h);
|
|
3162
3164
|
}, Fe = async (h, g, k = {}, H = {}) => {
|
|
3163
3165
|
const ee = N(h);
|
|
3164
3166
|
if (!ee)
|
|
3165
3167
|
return [];
|
|
3166
|
-
const
|
|
3168
|
+
const Be = {
|
|
3167
3169
|
...k,
|
|
3168
3170
|
...H.searchText !== void 0 ? { searchText: H.searchText } : {}
|
|
3169
3171
|
}, {
|
|
@@ -3172,7 +3174,7 @@ const ya = (e) => {
|
|
|
3172
3174
|
sourceModel: we,
|
|
3173
3175
|
sourceRow: qe,
|
|
3174
3176
|
missingDependField: ct
|
|
3175
|
-
} = na(ee, g,
|
|
3177
|
+
} = na(ee, g, Be), Ze = fe?.interface;
|
|
3176
3178
|
if (!fe || !Ze)
|
|
3177
3179
|
return fe?.options ?? [];
|
|
3178
3180
|
if (String(fe.valueListType ?? "").toUpperCase() === "ENUMS")
|
|
@@ -3186,7 +3188,7 @@ const ya = (e) => {
|
|
|
3186
3188
|
(Ge) => Ye(Ge) === _e || Ge.code === _e ? { ...Ge, options: [] } : Ge
|
|
3187
3189
|
)
|
|
3188
3190
|
})), [];
|
|
3189
|
-
const
|
|
3191
|
+
const oo = await Y(
|
|
3190
3192
|
{
|
|
3191
3193
|
...Ze
|
|
3192
3194
|
},
|
|
@@ -3197,13 +3199,13 @@ const ya = (e) => {
|
|
|
3197
3199
|
node: j(ee),
|
|
3198
3200
|
section: ee,
|
|
3199
3201
|
field: fe,
|
|
3200
|
-
params:
|
|
3202
|
+
params: Ee(Ze.params),
|
|
3201
3203
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
3202
3204
|
model: we,
|
|
3203
3205
|
row: qe,
|
|
3204
3206
|
searchText: H.searchText
|
|
3205
3207
|
}
|
|
3206
|
-
), Nt = aa(
|
|
3208
|
+
), Nt = aa(oo);
|
|
3207
3209
|
return v(ee, (Qe) => ({
|
|
3208
3210
|
...Qe,
|
|
3209
3211
|
fields: Qe.fields.map(
|
|
@@ -3226,19 +3228,19 @@ const ya = (e) => {
|
|
|
3226
3228
|
...H,
|
|
3227
3229
|
value: g[Ye(H)]
|
|
3228
3230
|
}))
|
|
3229
|
-
})),
|
|
3231
|
+
})), L(h);
|
|
3230
3232
|
}, Ne = (h, g) => {
|
|
3231
3233
|
v(h, (k) => ({
|
|
3232
3234
|
...k,
|
|
3233
3235
|
rows: g,
|
|
3234
3236
|
data: g
|
|
3235
|
-
})),
|
|
3237
|
+
})), L(h);
|
|
3236
3238
|
}, T = (h, g = {}, k = -1) => {
|
|
3237
3239
|
const ee = [...N(h)?.rows ?? []];
|
|
3238
3240
|
ee.splice(k >= 0 ? k : ee.length, k >= 0 ? 1 : 0, g), Ne(h, ee);
|
|
3239
3241
|
}, Q = (h, g) => {
|
|
3240
3242
|
const k = N(h), H = typeof g == "string" ? Number(g) : g, ee = (k?.rows ?? []).filter(
|
|
3241
|
-
(
|
|
3243
|
+
(Be, _e) => _e !== H
|
|
3242
3244
|
);
|
|
3243
3245
|
Ne(h, ee);
|
|
3244
3246
|
}, ce = async (h, g) => {
|
|
@@ -3251,12 +3253,12 @@ const ya = (e) => {
|
|
|
3251
3253
|
rows: h.rows,
|
|
3252
3254
|
payload: g,
|
|
3253
3255
|
state: f.value,
|
|
3254
|
-
actions:
|
|
3256
|
+
actions: Le
|
|
3255
3257
|
});
|
|
3256
3258
|
if (H instanceof Error) throw H;
|
|
3257
3259
|
if (typeof H == "string" && H.trim()) throw new Error(H);
|
|
3258
3260
|
if (H === !1) throw xe("save cancelled by onBeforeSave");
|
|
3259
|
-
},
|
|
3261
|
+
}, Le = {
|
|
3260
3262
|
// 加载模板树。
|
|
3261
3263
|
loadTree: z,
|
|
3262
3264
|
// 选中树节点。
|
|
@@ -3301,8 +3303,8 @@ const ya = (e) => {
|
|
|
3301
3303
|
try {
|
|
3302
3304
|
const {
|
|
3303
3305
|
tagId: ee,
|
|
3304
|
-
...
|
|
3305
|
-
} = K(c.value, k), _e = Kr(k,
|
|
3306
|
+
...Be
|
|
3307
|
+
} = K(c.value, k), _e = Kr(k, Be), fe = pa(
|
|
3306
3308
|
k,
|
|
3307
3309
|
_e.infSetValues ?? [],
|
|
3308
3310
|
{
|
|
@@ -3349,7 +3351,7 @@ const ya = (e) => {
|
|
|
3349
3351
|
() => {
|
|
3350
3352
|
(e.autoLoad ?? !0) && z();
|
|
3351
3353
|
}
|
|
3352
|
-
),
|
|
3354
|
+
), an(() => {
|
|
3353
3355
|
(e.autoLoad ?? !0) && z();
|
|
3354
3356
|
}), {
|
|
3355
3357
|
// 当前 viewModel。
|
|
@@ -3369,7 +3371,7 @@ const ya = (e) => {
|
|
|
3369
3371
|
// 给页面消费的状态快照。
|
|
3370
3372
|
state: f,
|
|
3371
3373
|
// 给页面消费的操作集合。
|
|
3372
|
-
actions:
|
|
3374
|
+
actions: Le
|
|
3373
3375
|
};
|
|
3374
3376
|
}, Ps = /* @__PURE__ */ ve({
|
|
3375
3377
|
name: "GlobalInfoProvider",
|
|
@@ -3397,7 +3399,7 @@ const ya = (e) => {
|
|
|
3397
3399
|
})));
|
|
3398
3400
|
}
|
|
3399
3401
|
});
|
|
3400
|
-
function
|
|
3402
|
+
function Un(e) {
|
|
3401
3403
|
if (e.action) {
|
|
3402
3404
|
if (e.action.type === "direct") {
|
|
3403
3405
|
Kt(e.action.options);
|
|
@@ -3443,28 +3445,28 @@ const ba = {
|
|
|
3443
3445
|
"code",
|
|
3444
3446
|
"multi-row"
|
|
3445
3447
|
], a = Se(null), r = F(
|
|
3446
|
-
() =>
|
|
3448
|
+
() => Bt(n.field)
|
|
3447
3449
|
), c = F(
|
|
3448
3450
|
() => ht(n.field)
|
|
3449
3451
|
), i = F(
|
|
3450
|
-
() =>
|
|
3452
|
+
() => Sr(n.field)
|
|
3451
3453
|
), l = F(
|
|
3452
3454
|
() => n.disabled || n.field.disabled || n.field.readonly
|
|
3453
3455
|
), u = F(() => !!n.field.props?.multiple), y = F(
|
|
3454
3456
|
() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
|
|
3455
3457
|
), S = F(
|
|
3456
3458
|
() => s.includes(r.value) ? n.field.props?.resize ?? "vertical" : void 0
|
|
3457
|
-
),
|
|
3459
|
+
), E = F(() => {
|
|
3458
3460
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "")
|
|
3459
3461
|
return;
|
|
3460
3462
|
const v = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3461
3463
|
return Number.isFinite(v) ? v : void 0;
|
|
3462
3464
|
}), D = F(
|
|
3463
|
-
() =>
|
|
3465
|
+
() => wr(n.field, n.modelValue)
|
|
3464
3466
|
), f = F(
|
|
3465
3467
|
() => (n.field.options ?? []).map((v) => ({
|
|
3466
3468
|
...v,
|
|
3467
|
-
value:
|
|
3469
|
+
value: B(v)
|
|
3468
3470
|
}))
|
|
3469
3471
|
), I = F(() => {
|
|
3470
3472
|
const v = n.field.props?.popperClass ?? n.field.props?.["popper-class"];
|
|
@@ -3474,24 +3476,24 @@ const ba = {
|
|
|
3474
3476
|
return v === void 0 ? !0 : v;
|
|
3475
3477
|
}), K = F(() => {
|
|
3476
3478
|
const v = n.field.props?.activeValue ?? n.field.props?.["active-value"], d = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3477
|
-
return v !== void 0 || d !== void 0 ? n.modelValue ?? d ?? !1 :
|
|
3479
|
+
return v !== void 0 || d !== void 0 ? n.modelValue ?? d ?? !1 : Tn(n.modelValue);
|
|
3478
3480
|
}), b = F(() => r.value === "code" ? 5 : 1), V = F(
|
|
3479
3481
|
() => r.value === "file" && !ke(n.modelValue)
|
|
3480
3482
|
), Y = F(
|
|
3481
|
-
() =>
|
|
3483
|
+
() => kn(
|
|
3482
3484
|
n.field,
|
|
3483
3485
|
n.modelValue,
|
|
3484
3486
|
ne("common.请选择文件")
|
|
3485
3487
|
)
|
|
3486
3488
|
), p = F(
|
|
3487
|
-
() =>
|
|
3489
|
+
() => Mn(
|
|
3488
3490
|
n.field,
|
|
3489
3491
|
n.modelValue,
|
|
3490
3492
|
ne("common.请选择文件")
|
|
3491
3493
|
)
|
|
3492
3494
|
), O = F(() => n.field.placeholder ? n.field.placeholder : c.value ? ne("common.请输入关键词") : r.value === "select" ? ne("common.请选择") : r.value === "date" ? ne("common.请选择日期") : r.value === "file" ? ne("common.请选择文件") : ne("common.请输入"));
|
|
3493
3495
|
let N;
|
|
3494
|
-
function
|
|
3496
|
+
function B(v) {
|
|
3495
3497
|
if (Array.isArray(D.value)) {
|
|
3496
3498
|
const d = D.value.find(
|
|
3497
3499
|
($) => nt(v, $)
|
|
@@ -3507,7 +3509,7 @@ const ba = {
|
|
|
3507
3509
|
o("change", X(v));
|
|
3508
3510
|
}
|
|
3509
3511
|
function X(v) {
|
|
3510
|
-
return r.value === "select" || r.value === "select_remote" ?
|
|
3512
|
+
return r.value === "select" || r.value === "select_remote" ? _r(n.field, v) : v;
|
|
3511
3513
|
}
|
|
3512
3514
|
function oe(v) {
|
|
3513
3515
|
v && o("loadOptions", c.value ? { searchText: "" } : void 0);
|
|
@@ -3517,13 +3519,13 @@ const ba = {
|
|
|
3517
3519
|
o("loadOptions", { searchText: v });
|
|
3518
3520
|
}, 300));
|
|
3519
3521
|
}
|
|
3520
|
-
function
|
|
3522
|
+
function L() {
|
|
3521
3523
|
l.value || a.value?.click();
|
|
3522
3524
|
}
|
|
3523
3525
|
function m(v) {
|
|
3524
|
-
|
|
3526
|
+
Un(v);
|
|
3525
3527
|
}
|
|
3526
|
-
|
|
3528
|
+
sn(() => {
|
|
3527
3529
|
N && clearTimeout(N);
|
|
3528
3530
|
});
|
|
3529
3531
|
function P(v) {
|
|
@@ -3531,7 +3533,7 @@ const ba = {
|
|
|
3531
3533
|
_(C), j(C);
|
|
3532
3534
|
}
|
|
3533
3535
|
return (v, d) => {
|
|
3534
|
-
const $ =
|
|
3536
|
+
const $ = fn, C = dn, A = cn, q = ho, Z = go, U = un;
|
|
3535
3537
|
return r.value === "select" || r.value === "select_remote" ? (w(), W(C, ue({
|
|
3536
3538
|
key: 0,
|
|
3537
3539
|
class: ["global-info-field-control", { "global-info-field-control--select-descr": i.value }]
|
|
@@ -3583,7 +3585,7 @@ const ba = {
|
|
|
3583
3585
|
key: 2,
|
|
3584
3586
|
class: "global-info-field-control"
|
|
3585
3587
|
}, v.field.props, {
|
|
3586
|
-
"model-value":
|
|
3588
|
+
"model-value": E.value,
|
|
3587
3589
|
placeholder: O.value,
|
|
3588
3590
|
disabled: l.value,
|
|
3589
3591
|
"controls-position": "right",
|
|
@@ -3604,7 +3606,7 @@ const ba = {
|
|
|
3604
3606
|
"is-empty": !V.value,
|
|
3605
3607
|
"is-filled": V.value
|
|
3606
3608
|
}]),
|
|
3607
|
-
onClick:
|
|
3609
|
+
onClick: L
|
|
3608
3610
|
}, [
|
|
3609
3611
|
se("input", {
|
|
3610
3612
|
ref_key: "fileInputRef",
|
|
@@ -3624,7 +3626,7 @@ const ba = {
|
|
|
3624
3626
|
key: 0,
|
|
3625
3627
|
class: "global-info-field-control__file-preview",
|
|
3626
3628
|
type: "button",
|
|
3627
|
-
onClick:
|
|
3629
|
+
onClick: rn((ie) => m(z), ["stop", "prevent"])
|
|
3628
3630
|
}, ae(z.text), 9, $a)) : (w(), G("span", Ca, ae(z.text), 1)),
|
|
3629
3631
|
re < p.value.length - 1 ? (w(), G("span", ka, "、")) : de("", !0)
|
|
3630
3632
|
], 64))), 128))
|
|
@@ -3653,13 +3655,13 @@ const ba = {
|
|
|
3653
3655
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3654
3656
|
};
|
|
3655
3657
|
}
|
|
3656
|
-
}),
|
|
3658
|
+
}), Jn = /* @__PURE__ */ Ie(Oa, [["__scopeId", "data-v-0cf322fd"]]), Fa = ["innerHTML"], Da = {
|
|
3657
3659
|
key: 1,
|
|
3658
3660
|
class: "global-info-field-value global-info-field-value--code"
|
|
3659
|
-
},
|
|
3661
|
+
}, La = {
|
|
3660
3662
|
key: 2,
|
|
3661
3663
|
class: "global-info-field-value global-info-field-value--file"
|
|
3662
|
-
},
|
|
3664
|
+
}, Ba = ["onClick"], Ea = { key: 1 }, Pa = { key: 2 }, Va = /* @__PURE__ */ ve({
|
|
3663
3665
|
name: "GlobalInfoFieldValue",
|
|
3664
3666
|
__name: "GlobalInfoFieldValue",
|
|
3665
3667
|
props: {
|
|
@@ -3668,15 +3670,15 @@ const ba = {
|
|
|
3668
3670
|
emptyText: { default: "-" }
|
|
3669
3671
|
},
|
|
3670
3672
|
setup(e) {
|
|
3671
|
-
const t = e, n = F(() =>
|
|
3673
|
+
const t = e, n = F(() => Et(t.field)), o = F(() => n.value === "empty" || ke(t.value)), s = F(() => kn(t.field, t.value, t.emptyText)), a = F(() => Mn(t.field, t.value, t.emptyText));
|
|
3672
3674
|
function r(c) {
|
|
3673
|
-
|
|
3675
|
+
Un(c);
|
|
3674
3676
|
}
|
|
3675
3677
|
return (c, i) => n.value === "html" && !o.value ? (w(), G("span", {
|
|
3676
3678
|
key: 0,
|
|
3677
3679
|
class: "global-info-field-value global-info-field-value--html",
|
|
3678
3680
|
innerHTML: s.value
|
|
3679
|
-
}, null, 8, Fa)) : n.value === "code" && !o.value ? (w(), G("pre", Da, ae(s.value), 1)) : a.value.length ? (w(), G("span",
|
|
3681
|
+
}, null, 8, Fa)) : n.value === "code" && !o.value ? (w(), G("pre", Da, ae(s.value), 1)) : a.value.length ? (w(), G("span", La, [
|
|
3680
3682
|
(w(!0), G(Ce, null, me(a.value, (l, u) => (w(), G(Ce, {
|
|
3681
3683
|
key: l.key
|
|
3682
3684
|
}, [
|
|
@@ -3685,7 +3687,7 @@ const ba = {
|
|
|
3685
3687
|
class: "global-info-field-value__attachment-preview",
|
|
3686
3688
|
type: "button",
|
|
3687
3689
|
onClick: (y) => r(l)
|
|
3688
|
-
}, ae(l.text), 9,
|
|
3690
|
+
}, ae(l.text), 9, Ba)) : (w(), G("span", Ea, ae(l.text), 1)),
|
|
3689
3691
|
u < a.value.length - 1 ? (w(), G("span", Pa, "、")) : de("", !0)
|
|
3690
3692
|
], 64))), 128))
|
|
3691
3693
|
])) : (w(), G("span", {
|
|
@@ -3696,9 +3698,9 @@ const ba = {
|
|
|
3696
3698
|
}])
|
|
3697
3699
|
}, ae(s.value), 3));
|
|
3698
3700
|
}
|
|
3699
|
-
}),
|
|
3701
|
+
}), Wn = /* @__PURE__ */ Ie(Va, [["__scopeId", "data-v-6134bbbd"]]);
|
|
3700
3702
|
function Ra(e) {
|
|
3701
|
-
const t =
|
|
3703
|
+
const t = Bt(e);
|
|
3702
3704
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3703
3705
|
}
|
|
3704
3706
|
function Ue(e, t, n = {}, o = "") {
|
|
@@ -3708,10 +3710,10 @@ function Ue(e, t, n = {}, o = "") {
|
|
|
3708
3710
|
function at(e, t, n) {
|
|
3709
3711
|
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && We(e).length === 0 : !1;
|
|
3710
3712
|
}
|
|
3711
|
-
function
|
|
3713
|
+
function Zn(e = {}) {
|
|
3712
3714
|
return Object.prototype.hasOwnProperty.call(e, "searchText");
|
|
3713
3715
|
}
|
|
3714
|
-
function
|
|
3716
|
+
function Qn(e, t) {
|
|
3715
3717
|
const n = new Set(
|
|
3716
3718
|
[t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
|
|
3717
3719
|
);
|
|
@@ -3729,7 +3731,7 @@ function Rt(e, t) {
|
|
|
3729
3731
|
searchText: t == null ? "" : String(t)
|
|
3730
3732
|
} : {};
|
|
3731
3733
|
}
|
|
3732
|
-
async function
|
|
3734
|
+
async function Xn(e) {
|
|
3733
3735
|
const t = [];
|
|
3734
3736
|
e.fields.forEach((n) => {
|
|
3735
3737
|
const o = st(n, e.model);
|
|
@@ -3777,19 +3779,19 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3777
3779
|
t.section,
|
|
3778
3780
|
t.renderConfig,
|
|
3779
3781
|
{ values: o.value }
|
|
3780
|
-
)), r =
|
|
3782
|
+
)), r = Sn(
|
|
3781
3783
|
async (p, O, N) => t.actions.loadFieldOptions(t.section, p, O, N),
|
|
3782
3784
|
(p) => `${t.section.key}:${K(p)}`
|
|
3783
3785
|
);
|
|
3784
3786
|
function c(p, O) {
|
|
3785
3787
|
const N = { ...o.value, [p.code]: O };
|
|
3786
|
-
(p.cascadeClearFields ?? []).forEach((
|
|
3787
|
-
N[
|
|
3788
|
-
}), t.onUpdateModel?.(N), t.onUpdateModel || t.actions.updateField(t.section, p, O), i(p, O, N),
|
|
3788
|
+
(p.cascadeClearFields ?? []).forEach((B) => {
|
|
3789
|
+
N[B] = "";
|
|
3790
|
+
}), t.onUpdateModel?.(N), t.onUpdateModel || t.actions.updateField(t.section, p, O), i(p, O, N), E(N, p);
|
|
3789
3791
|
}
|
|
3790
3792
|
function i(p, O, N) {
|
|
3791
|
-
const
|
|
3792
|
-
if (
|
|
3793
|
+
const B = t.renderConfig?.onFieldBusinessChange;
|
|
3794
|
+
if (B)
|
|
3793
3795
|
try {
|
|
3794
3796
|
const _ = l(p, O), j = {
|
|
3795
3797
|
field: p,
|
|
@@ -3808,7 +3810,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3808
3810
|
selectedOption: _[0],
|
|
3809
3811
|
selectedOptions: _
|
|
3810
3812
|
};
|
|
3811
|
-
Promise.resolve(
|
|
3813
|
+
Promise.resolve(B(j)).catch((X) => {
|
|
3812
3814
|
console.error("[GlobalInfoFormRenderer] field business change failed", X);
|
|
3813
3815
|
});
|
|
3814
3816
|
} catch (_) {
|
|
@@ -3817,46 +3819,46 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3817
3819
|
}
|
|
3818
3820
|
function l(p, O) {
|
|
3819
3821
|
const N = gt(p, O);
|
|
3820
|
-
return (p.options ?? []).filter((
|
|
3822
|
+
return (p.options ?? []).filter((B) => N.some((_) => nt(B, _)));
|
|
3821
3823
|
}
|
|
3822
3824
|
function u() {
|
|
3823
3825
|
return Object.values(t.state.sectionMap);
|
|
3824
3826
|
}
|
|
3825
3827
|
function y(p, O) {
|
|
3826
|
-
const
|
|
3828
|
+
const B = u().flatMap((_) => {
|
|
3827
3829
|
const j = _.key === p.key ? t.rows ?? O : _.renderType === "table" || _.renderType === "multi-form" ? _.rows : _.model;
|
|
3828
3830
|
return [_.key, _.id, _.setId, _.infSetId, _.code].filter(Boolean).map((X) => [String(X), j]);
|
|
3829
3831
|
});
|
|
3830
|
-
return Object.fromEntries(
|
|
3832
|
+
return Object.fromEntries(B);
|
|
3831
3833
|
}
|
|
3832
3834
|
async function S(p, O = {}, N = o.value) {
|
|
3833
|
-
const
|
|
3834
|
-
if (!
|
|
3835
|
+
const B = N, _ = K(p), j = Ue(t.section.key, p, B), X = s.get(_);
|
|
3836
|
+
if (!Zn(O) && at(p, X, j)) {
|
|
3835
3837
|
s.set(_, j);
|
|
3836
3838
|
return;
|
|
3837
3839
|
}
|
|
3838
3840
|
try {
|
|
3839
3841
|
if (O.searchText !== void 0) {
|
|
3840
|
-
await r(p,
|
|
3842
|
+
await r(p, B, O);
|
|
3841
3843
|
return;
|
|
3842
3844
|
}
|
|
3843
|
-
await t.actions.loadFieldOptions(t.section, p,
|
|
3845
|
+
await t.actions.loadFieldOptions(t.section, p, B, O), s.set(_, j);
|
|
3844
3846
|
} catch (R) {
|
|
3845
3847
|
console.error("[GlobalInfoFormRenderer] load field options failed", R);
|
|
3846
3848
|
}
|
|
3847
3849
|
}
|
|
3848
|
-
async function
|
|
3850
|
+
async function E(p = o.value, O) {
|
|
3849
3851
|
const N = [];
|
|
3850
|
-
for (const
|
|
3851
|
-
if (O && !
|
|
3852
|
-
const _ = st(
|
|
3853
|
-
if (!b(
|
|
3854
|
-
const j = Ue(t.section.key,
|
|
3855
|
-
if (at(
|
|
3852
|
+
for (const B of a.value) {
|
|
3853
|
+
if (O && !Qn(B, O)) continue;
|
|
3854
|
+
const _ = st(B, p);
|
|
3855
|
+
if (!b(B, _)) continue;
|
|
3856
|
+
const j = Ue(t.section.key, B, p), X = K(B), oe = s.get(X);
|
|
3857
|
+
if (at(B, oe, j)) {
|
|
3856
3858
|
s.set(X, j);
|
|
3857
3859
|
continue;
|
|
3858
3860
|
}
|
|
3859
|
-
oe !== j && N.push(S(
|
|
3861
|
+
oe !== j && N.push(S(B, Rt(B, _), p));
|
|
3860
3862
|
}
|
|
3861
3863
|
await Promise.allSettled(N);
|
|
3862
3864
|
}
|
|
@@ -3868,7 +3870,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3868
3870
|
), Ke(
|
|
3869
3871
|
() => I(),
|
|
3870
3872
|
() => {
|
|
3871
|
-
|
|
3873
|
+
Xn({
|
|
3872
3874
|
sectionKey: t.section.key,
|
|
3873
3875
|
fields: a.value,
|
|
3874
3876
|
model: o.value,
|
|
@@ -3903,8 +3905,8 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3903
3905
|
function f(p) {
|
|
3904
3906
|
const O = String(p.code || "").trim(), N = O ? `field-${O}` : "";
|
|
3905
3907
|
if (N && n[N]) return N;
|
|
3906
|
-
const
|
|
3907
|
-
if (
|
|
3908
|
+
const B = N.toLowerCase();
|
|
3909
|
+
if (B !== N && n[B]) return B;
|
|
3908
3910
|
const _ = String(p.raw?.type || p.fieldType || p.type || "").trim(), j = _ ? `field-type-${_}` : "";
|
|
3909
3911
|
if (j && n[j]) return j;
|
|
3910
3912
|
const X = j.toLowerCase();
|
|
@@ -3927,7 +3929,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3927
3929
|
return Vt(p, O, t.editing);
|
|
3928
3930
|
}
|
|
3929
3931
|
function V(p) {
|
|
3930
|
-
return
|
|
3932
|
+
return xn(
|
|
3931
3933
|
p,
|
|
3932
3934
|
t.section,
|
|
3933
3935
|
t.renderConfig,
|
|
@@ -3944,8 +3946,8 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3944
3946
|
return t.actions.getSectionStatus(t.section).fieldErrors?.[O] ?? "";
|
|
3945
3947
|
}
|
|
3946
3948
|
return (p, O) => {
|
|
3947
|
-
const N =
|
|
3948
|
-
return w(), W(
|
|
3949
|
+
const N = pn, B = mn;
|
|
3950
|
+
return w(), W(B, {
|
|
3949
3951
|
class: "global-info-form-renderer",
|
|
3950
3952
|
model: o.value,
|
|
3951
3953
|
"label-position": "top"
|
|
@@ -3972,14 +3974,14 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3972
3974
|
f(_) ? te(p.$slots, f(_), ue({
|
|
3973
3975
|
key: 0,
|
|
3974
3976
|
ref_for: !0
|
|
3975
|
-
}, D(_)), void 0, !0) : p.editing && !_.readonly ? (w(), W(
|
|
3977
|
+
}, D(_)), void 0, !0) : p.editing && !_.readonly ? (w(), W(Jn, {
|
|
3976
3978
|
key: 1,
|
|
3977
3979
|
field: _,
|
|
3978
3980
|
"model-value": o.value[_.code],
|
|
3979
3981
|
section: p.section,
|
|
3980
3982
|
onLoadOptions: (j) => S(_, j),
|
|
3981
3983
|
"onUpdate:modelValue": (j) => c(_, j)
|
|
3982
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (w(), W(
|
|
3984
|
+
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (w(), W(Wn, {
|
|
3983
3985
|
key: 2,
|
|
3984
3986
|
field: _,
|
|
3985
3987
|
value: o.value[_.code],
|
|
@@ -3995,7 +3997,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
3995
3997
|
}, 8, ["model"]);
|
|
3996
3998
|
};
|
|
3997
3999
|
}
|
|
3998
|
-
}),
|
|
4000
|
+
}), eo = /* @__PURE__ */ Ie(qa, [["__scopeId", "data-v-2b00ccac"]]), Ga = { class: "global-info-multi-form-renderer" }, za = /* @__PURE__ */ ve({
|
|
3999
4001
|
name: "GlobalInfoMultiFormRenderer",
|
|
4000
4002
|
__name: "GlobalInfoMultiFormRenderer",
|
|
4001
4003
|
props: {
|
|
@@ -4041,7 +4043,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4041
4043
|
state: r.state,
|
|
4042
4044
|
actions: r.actions
|
|
4043
4045
|
}, void 0, !0),
|
|
4044
|
-
Me(
|
|
4046
|
+
Me(eo, {
|
|
4045
4047
|
section: s(i, l),
|
|
4046
4048
|
node: r.node,
|
|
4047
4049
|
editing: r.editing,
|
|
@@ -4074,7 +4076,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4074
4076
|
emits: ["confirm", "cancel"],
|
|
4075
4077
|
setup(e) {
|
|
4076
4078
|
return (t, n) => {
|
|
4077
|
-
const o =
|
|
4079
|
+
const o = yo;
|
|
4078
4080
|
return w(), W(o, {
|
|
4079
4081
|
title: t.title,
|
|
4080
4082
|
"confirm-button-text": t.confirmText,
|
|
@@ -4128,9 +4130,9 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4128
4130
|
{ rows: t.section.rows, values: t.section.model }
|
|
4129
4131
|
);
|
|
4130
4132
|
return s.value ? d.filter(($) => !X($)) : d;
|
|
4131
|
-
}), l = /* @__PURE__ */ new Map(), u =
|
|
4133
|
+
}), l = /* @__PURE__ */ new Map(), u = Sn(
|
|
4132
4134
|
async (d, $, C) => t.actions.loadFieldOptions(t.section, d, $, C),
|
|
4133
|
-
(d, $) => `${t.section.key}:${
|
|
4135
|
+
(d, $) => `${t.section.key}:${L($)}:${_(d)}`
|
|
4134
4136
|
);
|
|
4135
4137
|
function y(d) {
|
|
4136
4138
|
t.actions.deleteRow(t.section, d);
|
|
@@ -4146,10 +4148,10 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4146
4148
|
actions: t.actions
|
|
4147
4149
|
}) : d.allowDelete !== !1);
|
|
4148
4150
|
}
|
|
4149
|
-
function
|
|
4151
|
+
function E(d, $, C, A) {
|
|
4150
4152
|
const q = t.section.rows.slice(), Z = C.cascadeClearFields ?? [], U = {
|
|
4151
4153
|
...d,
|
|
4152
|
-
__rowKey:
|
|
4154
|
+
__rowKey: L(d),
|
|
4153
4155
|
[C.code]: A
|
|
4154
4156
|
};
|
|
4155
4157
|
Z.forEach((z) => {
|
|
@@ -4215,13 +4217,13 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4215
4217
|
return Object.fromEntries(A);
|
|
4216
4218
|
}
|
|
4217
4219
|
async function K(d, $, C = {}, A = $) {
|
|
4218
|
-
const q =
|
|
4220
|
+
const q = L(A), Z = `${q}:${_(d)}`, U = Ue(
|
|
4219
4221
|
t.section.key,
|
|
4220
4222
|
d,
|
|
4221
4223
|
A,
|
|
4222
4224
|
q
|
|
4223
4225
|
), z = l.get(Z);
|
|
4224
|
-
if (!
|
|
4226
|
+
if (!Zn(C) && at(d, z, U)) {
|
|
4225
4227
|
l.set(Z, U);
|
|
4226
4228
|
return;
|
|
4227
4229
|
}
|
|
@@ -4243,9 +4245,9 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4243
4245
|
async function b(d, $) {
|
|
4244
4246
|
const C = $ ? [$] : t.section.rows, A = [];
|
|
4245
4247
|
for (const q of C) {
|
|
4246
|
-
const Z =
|
|
4248
|
+
const Z = L(q);
|
|
4247
4249
|
for (const U of i.value) {
|
|
4248
|
-
if (d && !
|
|
4250
|
+
if (d && !Qn(U, d))
|
|
4249
4251
|
continue;
|
|
4250
4252
|
const z = st(U, q);
|
|
4251
4253
|
if (!O(U, z)) continue;
|
|
@@ -4282,7 +4284,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4282
4284
|
value: A,
|
|
4283
4285
|
state: t.state,
|
|
4284
4286
|
actions: t.actions,
|
|
4285
|
-
updateModelValue: (q) =>
|
|
4287
|
+
updateModelValue: (q) => E($, C, d, q)
|
|
4286
4288
|
};
|
|
4287
4289
|
}
|
|
4288
4290
|
function Y(d) {
|
|
@@ -4304,7 +4306,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4304
4306
|
function N(d) {
|
|
4305
4307
|
return d.width ?? (Yt(d) ? 56 : void 0);
|
|
4306
4308
|
}
|
|
4307
|
-
function
|
|
4309
|
+
function B(d) {
|
|
4308
4310
|
if (!d.width)
|
|
4309
4311
|
return d.minWidth ?? (Yt(d) ? 56 : void 0);
|
|
4310
4312
|
}
|
|
@@ -4319,7 +4321,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4319
4321
|
}
|
|
4320
4322
|
let oe = 0;
|
|
4321
4323
|
const R = /* @__PURE__ */ new WeakMap();
|
|
4322
|
-
function
|
|
4324
|
+
function L(d) {
|
|
4323
4325
|
const $ = d.__rowKey;
|
|
4324
4326
|
if ($ != null && $ !== "")
|
|
4325
4327
|
return String($);
|
|
@@ -4331,7 +4333,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4331
4333
|
}
|
|
4332
4334
|
function m(d) {
|
|
4333
4335
|
return t.section.rows.some(
|
|
4334
|
-
($, C) =>
|
|
4336
|
+
($, C) => xn(d, t.section, t.renderConfig, $, {
|
|
4335
4337
|
row: $,
|
|
4336
4338
|
rowIndex: C,
|
|
4337
4339
|
rows: t.section.rows
|
|
@@ -4351,8 +4353,8 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4351
4353
|
() => v(),
|
|
4352
4354
|
() => {
|
|
4353
4355
|
t.section.rows.forEach((d) => {
|
|
4354
|
-
const $ =
|
|
4355
|
-
|
|
4356
|
+
const $ = L(d);
|
|
4357
|
+
Xn({
|
|
4356
4358
|
sectionKey: t.section.key,
|
|
4357
4359
|
fields: i.value,
|
|
4358
4360
|
model: d,
|
|
@@ -4373,7 +4375,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4373
4375
|
);
|
|
4374
4376
|
function v() {
|
|
4375
4377
|
return t.section.rows.map((d) => {
|
|
4376
|
-
const $ =
|
|
4378
|
+
const $ = L(d);
|
|
4377
4379
|
return i.value.map((C) => [
|
|
4378
4380
|
$,
|
|
4379
4381
|
_(C),
|
|
@@ -4383,7 +4385,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4383
4385
|
}).join("||");
|
|
4384
4386
|
}
|
|
4385
4387
|
return (d, $) => {
|
|
4386
|
-
const C =
|
|
4388
|
+
const C = hn, A = uo("Delete"), q = ln, Z = Dt, U = vn;
|
|
4387
4389
|
return w(), G("div", {
|
|
4388
4390
|
class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
|
|
4389
4391
|
}, [
|
|
@@ -4393,7 +4395,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4393
4395
|
data: d.section.rows,
|
|
4394
4396
|
fit: !0,
|
|
4395
4397
|
"table-layout": "auto",
|
|
4396
|
-
"row-key":
|
|
4398
|
+
"row-key": L
|
|
4397
4399
|
}, {
|
|
4398
4400
|
default: x(() => [
|
|
4399
4401
|
s.value ? (w(), W(C, {
|
|
@@ -4408,7 +4410,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4408
4410
|
prop: z.code,
|
|
4409
4411
|
label: z.label,
|
|
4410
4412
|
width: N(z),
|
|
4411
|
-
"min-width":
|
|
4413
|
+
"min-width": B(z)
|
|
4412
4414
|
}, {
|
|
4413
4415
|
header: x(() => [
|
|
4414
4416
|
se("span", Ua, [
|
|
@@ -4423,7 +4425,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4423
4425
|
Y(z) ? te(d.$slots, Y(z), ue({
|
|
4424
4426
|
key: 0,
|
|
4425
4427
|
ref_for: !0
|
|
4426
|
-
}, V(z, re, ie)), void 0, !0) : d.editing && p(z) ? (w(), W(
|
|
4428
|
+
}, V(z, re, ie)), void 0, !0) : d.editing && p(z) ? (w(), W(Jn, {
|
|
4427
4429
|
key: 1,
|
|
4428
4430
|
field: z,
|
|
4429
4431
|
"model-value": re[z.code],
|
|
@@ -4431,8 +4433,8 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4431
4433
|
row: re,
|
|
4432
4434
|
"row-index": ie,
|
|
4433
4435
|
onLoadOptions: (be) => K(z, re, be),
|
|
4434
|
-
"onUpdate:modelValue": (be) =>
|
|
4435
|
-
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (w(), W(
|
|
4436
|
+
"onUpdate:modelValue": (be) => E(re, ie, z, be)
|
|
4437
|
+
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (w(), W(Wn, {
|
|
4436
4438
|
key: 2,
|
|
4437
4439
|
field: z,
|
|
4438
4440
|
value: re[z.code],
|
|
@@ -4529,7 +4531,7 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4529
4531
|
te(n.$slots, a, Te(Oe(r)))
|
|
4530
4532
|
])
|
|
4531
4533
|
}))
|
|
4532
|
-
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])) : (w(), W(
|
|
4534
|
+
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])) : (w(), W(eo, {
|
|
4533
4535
|
key: 2,
|
|
4534
4536
|
section: n.section,
|
|
4535
4537
|
node: n.node,
|
|
@@ -4547,11 +4549,11 @@ const Na = { class: "global-info-form-renderer__grid" }, Ka = { class: "global-i
|
|
|
4547
4549
|
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
4548
4550
|
}
|
|
4549
4551
|
});
|
|
4550
|
-
function
|
|
4552
|
+
function to(e) {
|
|
4551
4553
|
return pt(e.code);
|
|
4552
4554
|
}
|
|
4553
|
-
function
|
|
4554
|
-
const n =
|
|
4555
|
+
function no(e, t) {
|
|
4556
|
+
const n = to(e);
|
|
4555
4557
|
return es(n, e) ? pt(t?.code) : n || pt(t?.code);
|
|
4556
4558
|
}
|
|
4557
4559
|
function jt(e, t, n) {
|
|
@@ -4591,7 +4593,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4591
4593
|
const u = jt(
|
|
4592
4594
|
n,
|
|
4593
4595
|
"section",
|
|
4594
|
-
|
|
4596
|
+
no(t.node ?? {}, t.section)
|
|
4595
4597
|
), y = i(t.section.renderType);
|
|
4596
4598
|
return [
|
|
4597
4599
|
u,
|
|
@@ -4628,10 +4630,10 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4628
4630
|
actions: u.actions,
|
|
4629
4631
|
"render-config": u.renderConfig
|
|
4630
4632
|
}, Re({ _: 2 }, [
|
|
4631
|
-
me(c.value, (S,
|
|
4632
|
-
name:
|
|
4633
|
+
me(c.value, (S, E) => ({
|
|
4634
|
+
name: E,
|
|
4633
4635
|
fn: x((D) => [
|
|
4634
|
-
te(u.$slots,
|
|
4636
|
+
te(u.$slots, E, Te(Oe(D)))
|
|
4635
4637
|
])
|
|
4636
4638
|
}))
|
|
4637
4639
|
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
@@ -4658,7 +4660,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4658
4660
|
() => {
|
|
4659
4661
|
o.value = !1;
|
|
4660
4662
|
}
|
|
4661
|
-
),
|
|
4663
|
+
), fo((a) => (s(a), !1));
|
|
4662
4664
|
function s(a) {
|
|
4663
4665
|
o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, a), t("error", a);
|
|
4664
4666
|
}
|
|
@@ -4700,7 +4702,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4700
4702
|
let i = null, l = null;
|
|
4701
4703
|
const u = F(() => !!t.hideHeader), y = F(() => t.actions.getSectionStatus(t.node)), S = F(
|
|
4702
4704
|
() => t.actions.getSection(t.node) ?? r.value
|
|
4703
|
-
),
|
|
4705
|
+
), E = F(() => {
|
|
4704
4706
|
const m = S.value;
|
|
4705
4707
|
return m ? Je(
|
|
4706
4708
|
m.fields,
|
|
@@ -4723,12 +4725,12 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4723
4725
|
() => p(a.value || y.value.error)
|
|
4724
4726
|
), V = F(() => {
|
|
4725
4727
|
const m = S.value;
|
|
4726
|
-
return m ? m.renderType === "table" && m.rows.length === 0 ||
|
|
4728
|
+
return m ? m.renderType === "table" && m.rows.length === 0 || E.value.length === 0 : !0;
|
|
4727
4729
|
}), Y = F(() => ({
|
|
4728
4730
|
node: t.node,
|
|
4729
4731
|
section: S.value,
|
|
4730
4732
|
sectionView: S.value,
|
|
4731
|
-
fields:
|
|
4733
|
+
fields: E.value,
|
|
4732
4734
|
renderConfig: t.renderConfig,
|
|
4733
4735
|
title: D.value,
|
|
4734
4736
|
editing: f.value,
|
|
@@ -4743,7 +4745,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4743
4745
|
reload: X,
|
|
4744
4746
|
handleEdit: O,
|
|
4745
4747
|
handleCancel: N,
|
|
4746
|
-
handleAddTableRow:
|
|
4748
|
+
handleAddTableRow: B,
|
|
4747
4749
|
handleSave: _
|
|
4748
4750
|
}));
|
|
4749
4751
|
function p(m) {
|
|
@@ -4757,7 +4759,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4757
4759
|
const m = S.value;
|
|
4758
4760
|
m && (await t.onCancel?.(m, t.node), t.onCancel || t.actions.cancelEdit(m));
|
|
4759
4761
|
}
|
|
4760
|
-
function
|
|
4762
|
+
function B() {
|
|
4761
4763
|
const m = S.value;
|
|
4762
4764
|
if (!m) return;
|
|
4763
4765
|
const P = m.fields.reduce(
|
|
@@ -4802,7 +4804,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4802
4804
|
X();
|
|
4803
4805
|
return;
|
|
4804
4806
|
}
|
|
4805
|
-
if (
|
|
4807
|
+
if (L(m)) {
|
|
4806
4808
|
X();
|
|
4807
4809
|
return;
|
|
4808
4810
|
}
|
|
@@ -4819,13 +4821,13 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4819
4821
|
function R() {
|
|
4820
4822
|
i?.disconnect(), i = null, l && (clearTimeout(l), l = null);
|
|
4821
4823
|
}
|
|
4822
|
-
function
|
|
4824
|
+
function L(m) {
|
|
4823
4825
|
const P = m.getBoundingClientRect(), v = window.innerHeight || document.documentElement.clientHeight;
|
|
4824
4826
|
return P.top <= v + 160 && P.bottom >= -160;
|
|
4825
4827
|
}
|
|
4826
|
-
return
|
|
4828
|
+
return an(() => {
|
|
4827
4829
|
oe();
|
|
4828
|
-
}),
|
|
4830
|
+
}), sn(() => {
|
|
4829
4831
|
R();
|
|
4830
4832
|
}), Ke(
|
|
4831
4833
|
() => t.node.key,
|
|
@@ -4838,7 +4840,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4838
4840
|
c.value || oe();
|
|
4839
4841
|
}
|
|
4840
4842
|
), (m, P) => {
|
|
4841
|
-
const v = Dt, d =
|
|
4843
|
+
const v = Dt, d = bo;
|
|
4842
4844
|
return w(), G("section", {
|
|
4843
4845
|
ref_key: "sectionRef",
|
|
4844
4846
|
ref: o,
|
|
@@ -4867,7 +4869,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4867
4869
|
key: 0,
|
|
4868
4870
|
class: "global-info-section-block__add",
|
|
4869
4871
|
disabled: y.value.saving,
|
|
4870
|
-
onClick:
|
|
4872
|
+
onClick: B
|
|
4871
4873
|
}, {
|
|
4872
4874
|
default: x(() => [
|
|
4873
4875
|
et(ae(J(ne)("common.新增")), 1)
|
|
@@ -4998,7 +5000,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
4998
5000
|
return jt(
|
|
4999
5001
|
n,
|
|
5000
5002
|
"section",
|
|
5001
|
-
|
|
5003
|
+
no(l, u)
|
|
5002
5004
|
);
|
|
5003
5005
|
}
|
|
5004
5006
|
function c(l, u) {
|
|
@@ -5054,7 +5056,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5054
5056
|
"load-on-visible": l.loadOnVisible,
|
|
5055
5057
|
"render-config": l.renderConfig
|
|
5056
5058
|
}, Re({ _: 2 }, [
|
|
5057
|
-
me(J(n), (
|
|
5059
|
+
me(J(n), (E, D) => ({
|
|
5058
5060
|
name: D,
|
|
5059
5061
|
fn: x((f) => [
|
|
5060
5062
|
te(l.$slots, D, ue({ ref_for: !0 }, f), void 0, !0)
|
|
@@ -5092,7 +5094,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5092
5094
|
const t = e, n = je(), o = F(() => {
|
|
5093
5095
|
const u = t.nodes.filter(
|
|
5094
5096
|
(M) => s(M).length > 0
|
|
5095
|
-
), y = t.nodes.filter((M) => s(M).length === 0), S = y.filter((M) => a(M)),
|
|
5097
|
+
), y = t.nodes.filter((M) => s(M).length === 0), S = y.filter((M) => a(M)), E = y.filter((M) => !a(M)), D = u.map((M) => ({
|
|
5096
5098
|
group: M,
|
|
5097
5099
|
children: s(M)
|
|
5098
5100
|
})), f = S.map((M) => ({
|
|
@@ -5100,8 +5102,8 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5100
5102
|
children: [M]
|
|
5101
5103
|
}));
|
|
5102
5104
|
if (D.length === 0)
|
|
5103
|
-
return S.length > 0 ? f : l(
|
|
5104
|
-
const I = l(
|
|
5105
|
+
return S.length > 0 ? f : l(E);
|
|
5106
|
+
const I = l(E);
|
|
5105
5107
|
return [...D, ...f, ...I];
|
|
5106
5108
|
});
|
|
5107
5109
|
function s(u) {
|
|
@@ -5111,13 +5113,13 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5111
5113
|
return !String(u.parentId || u.parentTagId || "").trim();
|
|
5112
5114
|
}
|
|
5113
5115
|
function r(u) {
|
|
5114
|
-
return jt(n, "group",
|
|
5116
|
+
return jt(n, "group", to(u));
|
|
5115
5117
|
}
|
|
5116
5118
|
function c(u, y) {
|
|
5117
5119
|
return u.key || u.id || u.tagId || `${y}`;
|
|
5118
5120
|
}
|
|
5119
5121
|
function i(u) {
|
|
5120
|
-
const y = u[0], S = y?.raw ?? {},
|
|
5122
|
+
const y = u[0], S = y?.raw ?? {}, E = String(
|
|
5121
5123
|
S.parentTagName || S.parentName || S.parentLabel || y?.parentId || ne("common.信息")
|
|
5122
5124
|
);
|
|
5123
5125
|
return {
|
|
@@ -5129,26 +5131,26 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5129
5131
|
tagId: String(
|
|
5130
5132
|
y?.parentTagId || y?.parentId || y?.tagId || "global-info-group"
|
|
5131
5133
|
),
|
|
5132
|
-
tagName:
|
|
5133
|
-
label:
|
|
5134
|
+
tagName: E,
|
|
5135
|
+
label: E,
|
|
5134
5136
|
children: u
|
|
5135
5137
|
};
|
|
5136
5138
|
}
|
|
5137
5139
|
function l(u) {
|
|
5138
5140
|
const y = /* @__PURE__ */ new Map();
|
|
5139
5141
|
return u.forEach((S) => {
|
|
5140
|
-
const
|
|
5142
|
+
const E = String(
|
|
5141
5143
|
S.parentId || S.parentTagId || "global-info-flat"
|
|
5142
|
-
), D = y.get(
|
|
5143
|
-
D.push(S), y.set(
|
|
5144
|
+
), D = y.get(E) ?? [];
|
|
5145
|
+
D.push(S), y.set(E, D);
|
|
5144
5146
|
}), Array.from(y.values()).map((S) => ({
|
|
5145
5147
|
group: i(S),
|
|
5146
5148
|
children: S
|
|
5147
5149
|
}));
|
|
5148
5150
|
}
|
|
5149
5151
|
return (u, y) => (w(), G("div", Ss, [
|
|
5150
|
-
(w(!0), G(Ce, null, me(o.value, (S,
|
|
5151
|
-
key: c(S.group,
|
|
5152
|
+
(w(!0), G(Ce, null, me(o.value, (S, E) => (w(), G(Ce, {
|
|
5153
|
+
key: c(S.group, E)
|
|
5152
5154
|
}, [
|
|
5153
5155
|
r(S.group) ? te(u.$slots, r(S.group), {
|
|
5154
5156
|
key: 0,
|
|
@@ -5157,7 +5159,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5157
5159
|
state: u.state,
|
|
5158
5160
|
actions: u.actions,
|
|
5159
5161
|
renderConfig: u.renderConfig,
|
|
5160
|
-
index:
|
|
5162
|
+
index: E,
|
|
5161
5163
|
isEmpty: S.children.length === 0
|
|
5162
5164
|
}, void 0, !0) : J(n).group ? te(u.$slots, "group", {
|
|
5163
5165
|
key: 1,
|
|
@@ -5166,7 +5168,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5166
5168
|
state: u.state,
|
|
5167
5169
|
actions: u.actions,
|
|
5168
5170
|
renderConfig: u.renderConfig,
|
|
5169
|
-
index:
|
|
5171
|
+
index: E,
|
|
5170
5172
|
isEmpty: S.children.length === 0
|
|
5171
5173
|
}, void 0, !0) : (w(), W(bs, {
|
|
5172
5174
|
key: 2,
|
|
@@ -5176,7 +5178,7 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5176
5178
|
actions: u.actions,
|
|
5177
5179
|
"render-config": u.renderConfig,
|
|
5178
5180
|
"load-on-visible": u.loadOnVisible,
|
|
5179
|
-
index:
|
|
5181
|
+
index: E
|
|
5180
5182
|
}, Re({ _: 2 }, [
|
|
5181
5183
|
me(J(n), (D, f) => ({
|
|
5182
5184
|
name: f,
|
|
@@ -5259,15 +5261,15 @@ const ts = /* @__PURE__ */ ve({
|
|
|
5259
5261
|
}
|
|
5260
5262
|
}), Rs = /* @__PURE__ */ Ie(Ts, [["__scopeId", "data-v-308bf3d4"]]);
|
|
5261
5263
|
function js(e, t = {}) {
|
|
5262
|
-
|
|
5264
|
+
ro(e, t);
|
|
5263
5265
|
}
|
|
5264
5266
|
export {
|
|
5265
|
-
|
|
5267
|
+
Hn as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
5266
5268
|
Xa as GlobalInfoAutoRenderer,
|
|
5267
5269
|
Ha as GlobalInfoDeleteConfirm,
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5270
|
+
Jn as GlobalInfoFieldControl,
|
|
5271
|
+
Wn as GlobalInfoFieldValue,
|
|
5272
|
+
eo as GlobalInfoFormRenderer,
|
|
5271
5273
|
bs as GlobalInfoGroup,
|
|
5272
5274
|
Rs as GlobalInfoLeftNav,
|
|
5273
5275
|
Ya as GlobalInfoMultiFormRenderer,
|
|
@@ -5279,26 +5281,26 @@ export {
|
|
|
5279
5281
|
Kt as JtAttachmentPreview,
|
|
5280
5282
|
As as JtAttachmentPreviewByParams,
|
|
5281
5283
|
ut as JtButton,
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5284
|
+
To as JtCascader,
|
|
5285
|
+
Ls as JtCrudTable,
|
|
5286
|
+
Oo as JtDatePicker,
|
|
5287
|
+
Yo as JtFilterBar,
|
|
5288
|
+
Po as JtFormItems,
|
|
5287
5289
|
wt as JtInput,
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5290
|
+
Bs as JtPageHeader,
|
|
5291
|
+
er as JtPagination,
|
|
5292
|
+
Lo as JtSelect,
|
|
5293
|
+
Wo as JtTable,
|
|
5292
5294
|
Kr as buildGlobalInfoUpdatePayload,
|
|
5293
5295
|
Rr as createEmptyGlobalInfoViewModel,
|
|
5294
5296
|
qs as getJtLocale,
|
|
5295
5297
|
js as install,
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5298
|
+
ro as installLocale,
|
|
5299
|
+
Es as isGlobalInfoNode,
|
|
5300
|
+
Bn as mergeGlobalInfoChildren,
|
|
5299
5301
|
jr as normalizeGlobalInfoDetail,
|
|
5300
5302
|
Pt as normalizeGlobalInfoOptions,
|
|
5301
|
-
|
|
5303
|
+
Qt as normalizeGlobalInfoTree,
|
|
5302
5304
|
Gs as normalizeLocale,
|
|
5303
5305
|
zs as resetJtLocale,
|
|
5304
5306
|
Nr as resolveGlobalInfoRenderType,
|