@jt-home/mfe-components 1.0.20 → 1.0.21
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 +503 -503
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -177,7 +177,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
177
177
|
function c(g) {
|
|
178
178
|
s("focus", g);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function m(g) {
|
|
181
181
|
s("blur", g);
|
|
182
182
|
}
|
|
183
183
|
function _() {
|
|
@@ -186,23 +186,23 @@ const fo = /* @__PURE__ */ ce({
|
|
|
186
186
|
function $(g) {
|
|
187
187
|
s("visibleChange", g);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function b(g) {
|
|
190
190
|
s("expandChange", g);
|
|
191
191
|
}
|
|
192
192
|
function A(g) {
|
|
193
193
|
s("removeTag", g);
|
|
194
194
|
}
|
|
195
195
|
return (g, w) => {
|
|
196
|
-
const
|
|
197
|
-
return k(), H(
|
|
196
|
+
const S = Wn;
|
|
197
|
+
return k(), H(S, oe({ class: "jt-cascader" }, o.value, {
|
|
198
198
|
"model-value": r.value,
|
|
199
199
|
"onUpdate:modelValue": l,
|
|
200
200
|
onChange: a,
|
|
201
201
|
onFocus: c,
|
|
202
|
-
onBlur:
|
|
202
|
+
onBlur: m,
|
|
203
203
|
onClear: _,
|
|
204
204
|
onVisibleChange: $,
|
|
205
|
-
onExpandChange:
|
|
205
|
+
onExpandChange: b,
|
|
206
206
|
onRemoveTag: A
|
|
207
207
|
}), null, 16, ["model-value"]);
|
|
208
208
|
};
|
|
@@ -403,10 +403,10 @@ const fo = /* @__PURE__ */ ce({
|
|
|
403
403
|
const a = Wt, c = Jt;
|
|
404
404
|
return k(), H(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
|
|
405
405
|
default: J(() => [
|
|
406
|
-
(k(!0), Y(be, null, ge(s.options ?? [], (
|
|
407
|
-
key:
|
|
406
|
+
(k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), H(a, oe({
|
|
407
|
+
key: m.value,
|
|
408
408
|
ref_for: !0
|
|
409
|
-
},
|
|
409
|
+
}, m), null, 16))), 128))
|
|
410
410
|
]),
|
|
411
411
|
_: 1
|
|
412
412
|
}, 16);
|
|
@@ -433,80 +433,80 @@ const fo = /* @__PURE__ */ ce({
|
|
|
433
433
|
"date-range": "date-picker",
|
|
434
434
|
dateRange: "date-picker"
|
|
435
435
|
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = V(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
|
|
436
|
-
const { itemType:
|
|
437
|
-
if (!
|
|
438
|
-
if (typeof
|
|
439
|
-
const T = o[
|
|
436
|
+
const { itemType: h } = I;
|
|
437
|
+
if (!h) return mt;
|
|
438
|
+
if (typeof h != "string") return h;
|
|
439
|
+
const T = o[h] ?? h;
|
|
440
440
|
return i.includes(T) ? n[T] : (console.error(
|
|
441
|
-
`[JtFormItems] 不支持的 itemType: "${
|
|
441
|
+
`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
|
|
442
442
|
), mt);
|
|
443
443
|
}, c = (I) => {
|
|
444
|
-
const
|
|
444
|
+
const h = on(I, r);
|
|
445
445
|
return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
|
|
446
|
-
...
|
|
446
|
+
...h,
|
|
447
447
|
options: I.options
|
|
448
448
|
} : j(I.itemType) ? {
|
|
449
|
-
...
|
|
449
|
+
...h,
|
|
450
450
|
type: "daterange"
|
|
451
|
-
} :
|
|
452
|
-
},
|
|
451
|
+
} : h;
|
|
452
|
+
}, m = (I) => nn(I, r), _ = (I) => ({
|
|
453
453
|
rules: I.rules,
|
|
454
454
|
...I.formItemProps
|
|
455
|
-
}), $ = (I,
|
|
456
|
-
t.formData[I] =
|
|
455
|
+
}), $ = (I, h) => {
|
|
456
|
+
t.formData[I] = h;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
return (
|
|
460
|
-
if (
|
|
461
|
-
s.set(I,
|
|
458
|
+
function b(I) {
|
|
459
|
+
return (h) => {
|
|
460
|
+
if (h) {
|
|
461
|
+
s.set(I, h);
|
|
462
462
|
return;
|
|
463
463
|
}
|
|
464
464
|
s.delete(I);
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function A(I,
|
|
467
|
+
function A(I, h) {
|
|
468
468
|
Kn(() => {
|
|
469
|
-
s.get(I)?.validate(
|
|
469
|
+
s.get(I)?.validate(h).catch(() => {
|
|
470
470
|
});
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = V(() => {
|
|
474
|
-
const
|
|
475
|
-
(T,
|
|
474
|
+
const h = l.value.reduce(
|
|
475
|
+
(T, p) => T + g(t.span || p.span),
|
|
476
476
|
0
|
|
477
477
|
) % vt;
|
|
478
|
-
return
|
|
478
|
+
return h === 0 ? {
|
|
479
479
|
gridColumn: `1 / span ${vt}`
|
|
480
480
|
} : {
|
|
481
|
-
gridColumn: `${
|
|
481
|
+
gridColumn: `${h + 1} / span ${vt - h}`
|
|
482
482
|
};
|
|
483
|
-
}),
|
|
483
|
+
}), S = (I) => ({
|
|
484
484
|
gridColumn: `span ${g(t.span || I.span)}`
|
|
485
485
|
});
|
|
486
486
|
function j(I) {
|
|
487
487
|
return I === "daterange" || I === "date-range" || I === "dateRange";
|
|
488
488
|
}
|
|
489
|
-
return (I,
|
|
489
|
+
return (I, h) => {
|
|
490
490
|
const T = Zt;
|
|
491
491
|
return k(), Y("div", yo, [
|
|
492
|
-
(k(!0), Y(be, null, ge(l.value, (
|
|
493
|
-
key:
|
|
492
|
+
(k(!0), Y(be, null, ge(l.value, (p) => (k(), H(T, oe({
|
|
493
|
+
key: p.prop,
|
|
494
494
|
ref_for: !0,
|
|
495
|
-
ref:
|
|
495
|
+
ref: b(p.prop),
|
|
496
496
|
class: "jt-form-items__item",
|
|
497
|
-
style:
|
|
498
|
-
label:
|
|
499
|
-
prop:
|
|
500
|
-
}, _(
|
|
497
|
+
style: S(p),
|
|
498
|
+
label: p.label,
|
|
499
|
+
prop: p.prop
|
|
500
|
+
}, _(p)), {
|
|
501
501
|
default: J(() => [
|
|
502
|
-
|
|
502
|
+
p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(p)), oe({
|
|
503
503
|
key: 1,
|
|
504
|
-
"model-value": I.formData[
|
|
504
|
+
"model-value": I.formData[p.prop],
|
|
505
505
|
ref_for: !0
|
|
506
|
-
}, c(
|
|
507
|
-
"onUpdate:modelValue": (N) => $(
|
|
508
|
-
onChange: () => A(
|
|
509
|
-
onBlur: () => A(
|
|
506
|
+
}, c(p), Ze(m(p)), {
|
|
507
|
+
"onUpdate:modelValue": (N) => $(p.prop, N),
|
|
508
|
+
onChange: () => A(p.prop, "change"),
|
|
509
|
+
onBlur: () => A(p.prop, "blur")
|
|
510
510
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
511
511
|
]),
|
|
512
512
|
_: 2
|
|
@@ -552,17 +552,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
552
552
|
const o = e, r = n, i = he(), s = Ee(), l = he({}), {
|
|
553
553
|
searchDisabled: a,
|
|
554
554
|
searchLoading: c,
|
|
555
|
-
searchDone:
|
|
556
|
-
} = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0),
|
|
555
|
+
searchDone: m
|
|
556
|
+
} = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = V(() => o.columns.filter((P) => P.search === !0)), A = V(
|
|
557
557
|
() => Math.max(1, _.value.searchSpan ?? 4)
|
|
558
|
-
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value),
|
|
558
|
+
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), S = V(
|
|
559
559
|
() => Math.max(1, w.value * g.value)
|
|
560
|
-
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"),
|
|
561
|
-
if (!F.value || !$.value) return
|
|
560
|
+
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), h = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), p = V(() => G(_.value.searchGutter, 14)), N = V(() => G(_.value.searchRowGap, 14)), y = V(() => X(_.value.searchPadding ?? "18px 4px 0")), F = V(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = V(() => {
|
|
561
|
+
if (!F.value || !$.value) return b.value;
|
|
562
562
|
let P = 0;
|
|
563
|
-
return
|
|
563
|
+
return b.value.filter((Z) => {
|
|
564
564
|
const ae = E(Z);
|
|
565
|
-
return P + ae >
|
|
565
|
+
return P + ae > S.value ? !1 : (P += ae, !0);
|
|
566
566
|
});
|
|
567
567
|
}), z = V(
|
|
568
568
|
() => O.value.filter((P) => !!s[`${P.prop}-search`])
|
|
@@ -612,7 +612,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
612
612
|
},
|
|
613
613
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
614
614
|
onEnter: (...ae) => {
|
|
615
|
-
u(Z.onEnter, ...ae),
|
|
615
|
+
u(Z.onEnter, ...ae), v();
|
|
616
616
|
},
|
|
617
617
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
618
618
|
"onUpdate:modelValue": (ae) => {
|
|
@@ -627,7 +627,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
627
627
|
}
|
|
628
628
|
typeof P == "function" && P(...Z);
|
|
629
629
|
}
|
|
630
|
-
async function
|
|
630
|
+
async function v() {
|
|
631
631
|
if (!a.value) {
|
|
632
632
|
if (i.value)
|
|
633
633
|
try {
|
|
@@ -667,7 +667,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
667
667
|
/** 开启筛选表单禁用。 */
|
|
668
668
|
searchLoading: c,
|
|
669
669
|
/** 关闭筛选表单禁用。 */
|
|
670
|
-
searchDone:
|
|
670
|
+
searchDone: m
|
|
671
671
|
}), (P, Z) => {
|
|
672
672
|
const ae = Qt;
|
|
673
673
|
return k(), Y("div", {
|
|
@@ -677,8 +677,8 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
677
677
|
"--jt-filter-field-columns": j.value,
|
|
678
678
|
"--jt-filter-btns-width": I.value,
|
|
679
679
|
"--jt-filter-actions-start": x.value,
|
|
680
|
-
"--jt-filter-label-width":
|
|
681
|
-
"--jt-filter-column-gap": `${
|
|
680
|
+
"--jt-filter-label-width": h.value,
|
|
681
|
+
"--jt-filter-column-gap": `${p.value}px`,
|
|
682
682
|
"--jt-filter-row-gap": `${N.value}px`,
|
|
683
683
|
"--jt-filter-padding": y.value
|
|
684
684
|
})
|
|
@@ -689,7 +689,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
689
689
|
class: "jt-filter-bar__form",
|
|
690
690
|
model: l.value,
|
|
691
691
|
"label-position": T.value,
|
|
692
|
-
"label-width":
|
|
692
|
+
"label-width": h.value,
|
|
693
693
|
disabled: re(a),
|
|
694
694
|
onSubmit: Z[0] || (Z[0] = Gt(() => {
|
|
695
695
|
}, ["prevent"]))
|
|
@@ -702,7 +702,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
702
702
|
actions: J(() => [
|
|
703
703
|
te("div", Co, [
|
|
704
704
|
ee(P.$slots, "search-menu", {
|
|
705
|
-
search:
|
|
705
|
+
search: v,
|
|
706
706
|
reset: C,
|
|
707
707
|
disabled: re(a),
|
|
708
708
|
collapsed: $.value,
|
|
@@ -745,7 +745,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
745
745
|
class: "jt-filter-bar__btn-query",
|
|
746
746
|
type: "primary",
|
|
747
747
|
disabled: re(a),
|
|
748
|
-
onClick:
|
|
748
|
+
onClick: v
|
|
749
749
|
}, {
|
|
750
750
|
icon: J(() => [
|
|
751
751
|
te("img", {
|
|
@@ -770,7 +770,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
770
770
|
value: l.value[pe.prop],
|
|
771
771
|
column: pe,
|
|
772
772
|
setValue: (de) => D(pe.prop, de),
|
|
773
|
-
search:
|
|
773
|
+
search: v,
|
|
774
774
|
reset: C,
|
|
775
775
|
disabled: re(a)
|
|
776
776
|
}, void 0, !0)
|
|
@@ -793,45 +793,45 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
793
793
|
tableEvents: {}
|
|
794
794
|
},
|
|
795
795
|
setup(e, { expose: t }) {
|
|
796
|
-
const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((
|
|
797
|
-
function l(
|
|
798
|
-
return !!o[`${
|
|
796
|
+
const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((b) => !b.hide));
|
|
797
|
+
function l(b) {
|
|
798
|
+
return !!o[`${b}-header`];
|
|
799
799
|
}
|
|
800
|
-
function a(
|
|
801
|
-
return !!o[`${
|
|
800
|
+
function a(b) {
|
|
801
|
+
return !!o[`${b}-data`];
|
|
802
802
|
}
|
|
803
|
-
function c(
|
|
803
|
+
function c(b) {
|
|
804
804
|
return {
|
|
805
|
-
width:
|
|
806
|
-
minWidth:
|
|
807
|
-
align:
|
|
808
|
-
fixed:
|
|
809
|
-
sortable:
|
|
810
|
-
showOverflowTooltip:
|
|
811
|
-
...
|
|
805
|
+
width: b.width,
|
|
806
|
+
minWidth: b.minWidth,
|
|
807
|
+
align: b.align,
|
|
808
|
+
fixed: b.fixed,
|
|
809
|
+
sortable: b.sortable,
|
|
810
|
+
showOverflowTooltip: b.showOverflowTooltip,
|
|
811
|
+
...b.columnOptions
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
return !_(
|
|
814
|
+
function m(b) {
|
|
815
|
+
return !_(b.columnOptions?.type);
|
|
816
816
|
}
|
|
817
|
-
function _(
|
|
818
|
-
return
|
|
817
|
+
function _(b) {
|
|
818
|
+
return b === "selection" || b === "index" || b === "expand";
|
|
819
819
|
}
|
|
820
|
-
function $(
|
|
821
|
-
return
|
|
820
|
+
function $(b, A) {
|
|
821
|
+
return b.find((g) => g.value === A)?.label ?? String(A ?? "");
|
|
822
822
|
}
|
|
823
|
-
return t({ tableRef: r }), (
|
|
823
|
+
return t({ tableRef: r }), (b, A) => {
|
|
824
824
|
const g = en, w = Xt;
|
|
825
825
|
return k(), H(w, oe({
|
|
826
826
|
ref_key: "tableRef",
|
|
827
827
|
ref: r,
|
|
828
|
-
data:
|
|
828
|
+
data: b.data,
|
|
829
829
|
"row-key": i.value.rowKey ?? "id",
|
|
830
830
|
height: i.value.height,
|
|
831
831
|
"max-height": i.value.maxHeight,
|
|
832
832
|
"empty-text": i.value.emptyText,
|
|
833
833
|
class: "jt-table"
|
|
834
|
-
}, i.value.tableProps, Ze(
|
|
834
|
+
}, i.value.tableProps, Ze(b.tableEvents)), {
|
|
835
835
|
default: J(() => [
|
|
836
836
|
i.value.selection ? (k(), H(g, {
|
|
837
837
|
key: 0,
|
|
@@ -846,27 +846,27 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
846
846
|
width: "60",
|
|
847
847
|
align: "center"
|
|
848
848
|
}, null, 8, ["label"])) : ue("", !0),
|
|
849
|
-
(k(!0), Y(be, null, ge(s.value, (
|
|
850
|
-
key:
|
|
851
|
-
prop:
|
|
852
|
-
label:
|
|
853
|
-
formatter: !a(
|
|
849
|
+
(k(!0), Y(be, null, ge(s.value, (S) => (k(), H(g, oe({
|
|
850
|
+
key: S.prop,
|
|
851
|
+
prop: S.prop,
|
|
852
|
+
label: S.label,
|
|
853
|
+
formatter: !a(S.prop) && !S.dicData ? S.formatter : void 0,
|
|
854
854
|
ref_for: !0
|
|
855
|
-
}, c(
|
|
856
|
-
l(
|
|
855
|
+
}, c(S)), je({ _: 2 }, [
|
|
856
|
+
l(S.prop) ? {
|
|
857
857
|
name: "header",
|
|
858
858
|
fn: J((j) => [
|
|
859
|
-
ee(
|
|
859
|
+
ee(b.$slots, `${S.prop}-header`, oe({ ref_for: !0 }, j), void 0, !0)
|
|
860
860
|
]),
|
|
861
861
|
key: "0"
|
|
862
862
|
} : void 0,
|
|
863
|
-
|
|
863
|
+
m(S) ? {
|
|
864
864
|
name: "default",
|
|
865
865
|
fn: J((j) => [
|
|
866
|
-
a(
|
|
866
|
+
a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
|
|
867
867
|
key: 0,
|
|
868
868
|
ref_for: !0
|
|
869
|
-
}, j), void 0, !0) :
|
|
869
|
+
}, j), void 0, !0) : S.dicData ? (k(), Y("span", Fo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Bo, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[S.prop]), 1))
|
|
870
870
|
]),
|
|
871
871
|
key: "1"
|
|
872
872
|
} : void 0
|
|
@@ -879,8 +879,8 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
879
879
|
align: i.value.menuAlign ?? "center",
|
|
880
880
|
fixed: i.value.menuFixed
|
|
881
881
|
}, {
|
|
882
|
-
default: J((
|
|
883
|
-
ee(
|
|
882
|
+
default: J((S) => [
|
|
883
|
+
ee(b.$slots, "menu", Me(Fe(S)), void 0, !0)
|
|
884
884
|
]),
|
|
885
885
|
_: 3
|
|
886
886
|
}, 8, ["label", "width", "min-width", "align", "fixed"])) : ue("", !0)
|
|
@@ -944,51 +944,51 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
944
944
|
}),
|
|
945
945
|
emits: /* @__PURE__ */ Mt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
946
946
|
setup(e, { expose: t, emit: n }) {
|
|
947
|
-
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(),
|
|
948
|
-
() => o.columns.filter((
|
|
947
|
+
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), b = V(() => _.value.paginationShow !== !1), A = V(
|
|
948
|
+
() => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
|
|
949
949
|
), g = V(
|
|
950
|
-
() => o.columns.filter((
|
|
950
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
|
|
951
951
|
), w = V(
|
|
952
|
-
() => o.columns.filter((
|
|
952
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
|
|
953
953
|
);
|
|
954
|
-
function
|
|
955
|
-
const
|
|
954
|
+
function S() {
|
|
955
|
+
const p = {};
|
|
956
956
|
return o.columns.forEach((N) => {
|
|
957
|
-
N.search && (
|
|
958
|
-
}),
|
|
957
|
+
N.search && (p[N.prop] = void 0);
|
|
958
|
+
}), p;
|
|
959
959
|
}
|
|
960
960
|
function j() {
|
|
961
961
|
r("search", { ...l.value });
|
|
962
962
|
}
|
|
963
963
|
function I() {
|
|
964
|
-
l.value =
|
|
964
|
+
l.value = S(), r("reset");
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
|
|
966
|
+
function h() {
|
|
967
|
+
m.value?.searchLoading();
|
|
968
968
|
}
|
|
969
969
|
function T() {
|
|
970
|
-
|
|
970
|
+
m.value?.searchDone();
|
|
971
971
|
}
|
|
972
972
|
return t({
|
|
973
973
|
/** 获取内部 el-table 实例 */
|
|
974
974
|
tableRef: V(() => c.value?.tableRef),
|
|
975
975
|
/** 获取内部筛选条实例 */
|
|
976
|
-
filterBarRef:
|
|
976
|
+
filterBarRef: m,
|
|
977
977
|
/** 开启筛选表单禁用。 */
|
|
978
|
-
searchLoading:
|
|
978
|
+
searchLoading: h,
|
|
979
979
|
/** 关闭筛选表单禁用。 */
|
|
980
980
|
searchDone: T
|
|
981
|
-
}), (
|
|
981
|
+
}), (p, N) => {
|
|
982
982
|
const y = Qn;
|
|
983
983
|
return k(), Y("div", Ro, [
|
|
984
|
-
ee(
|
|
984
|
+
ee(p.$slots, "header", {}, void 0, !0),
|
|
985
985
|
$.value ? (k(), H(Do, {
|
|
986
986
|
key: 0,
|
|
987
987
|
ref_key: "filterBarRef",
|
|
988
|
-
ref:
|
|
988
|
+
ref: m,
|
|
989
989
|
modelValue: l.value,
|
|
990
990
|
"onUpdate:modelValue": N[0] || (N[0] = (F) => l.value = F),
|
|
991
|
-
columns:
|
|
991
|
+
columns: p.columns,
|
|
992
992
|
option: _.value,
|
|
993
993
|
onSearch: j,
|
|
994
994
|
onReset: I
|
|
@@ -996,53 +996,53 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
996
996
|
ge(A.value, (F) => ({
|
|
997
997
|
name: `${F.prop}-search`,
|
|
998
998
|
fn: J((O) => [
|
|
999
|
-
ee(
|
|
999
|
+
ee(p.$slots, `${F.prop}-search`, Me(Fe(O)), void 0, !0)
|
|
1000
1000
|
])
|
|
1001
1001
|
}))
|
|
1002
1002
|
]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
|
|
1003
1003
|
re(a).toolbar ? (k(), Y("div", zo, [
|
|
1004
|
-
ee(
|
|
1004
|
+
ee(p.$slots, "toolbar", {}, void 0, !0)
|
|
1005
1005
|
])) : ue("", !0),
|
|
1006
1006
|
Yn((k(), H(Vo, {
|
|
1007
1007
|
ref_key: "jtTableRef",
|
|
1008
1008
|
ref: c,
|
|
1009
|
-
data:
|
|
1010
|
-
columns:
|
|
1009
|
+
data: p.data,
|
|
1010
|
+
columns: p.columns,
|
|
1011
1011
|
option: _.value,
|
|
1012
|
-
"table-events":
|
|
1012
|
+
"table-events": p.tableEvents
|
|
1013
1013
|
}, je({ _: 2 }, [
|
|
1014
1014
|
ge(g.value, (F) => ({
|
|
1015
1015
|
name: `${F.prop}-header`,
|
|
1016
1016
|
fn: J((O) => [
|
|
1017
|
-
ee(
|
|
1017
|
+
ee(p.$slots, `${F.prop}-header`, Me(Fe(O)), void 0, !0)
|
|
1018
1018
|
])
|
|
1019
1019
|
})),
|
|
1020
1020
|
ge(w.value, (F) => ({
|
|
1021
1021
|
name: `${F.prop}-data`,
|
|
1022
1022
|
fn: J((O) => [
|
|
1023
|
-
ee(
|
|
1023
|
+
ee(p.$slots, `${F.prop}-data`, Me(Fe(O)), void 0, !0)
|
|
1024
1024
|
])
|
|
1025
1025
|
})),
|
|
1026
1026
|
_.value.menu ? {
|
|
1027
1027
|
name: "menu",
|
|
1028
1028
|
fn: J((F) => [
|
|
1029
|
-
ee(
|
|
1029
|
+
ee(p.$slots, "menu", Me(Fe(F)), void 0, !0)
|
|
1030
1030
|
]),
|
|
1031
1031
|
key: "0"
|
|
1032
1032
|
} : void 0
|
|
1033
1033
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1034
1034
|
[y, _.value.loading]
|
|
1035
1035
|
]),
|
|
1036
|
-
|
|
1036
|
+
b.value ? (k(), H(No, {
|
|
1037
1037
|
key: 2,
|
|
1038
1038
|
"current-page": i.value,
|
|
1039
1039
|
"onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
|
|
1040
1040
|
"page-size": s.value,
|
|
1041
1041
|
"onUpdate:pageSize": N[2] || (N[2] = (F) => s.value = F),
|
|
1042
|
-
total:
|
|
1042
|
+
total: p.total,
|
|
1043
1043
|
option: _.value,
|
|
1044
|
-
onPageChange: N[3] || (N[3] = (F) =>
|
|
1045
|
-
onSizeChange: N[4] || (N[4] = (F) =>
|
|
1044
|
+
onPageChange: N[3] || (N[3] = (F) => p.$emit("page-change", F)),
|
|
1045
|
+
onSizeChange: N[4] || (N[4] = (F) => p.$emit("size-change", F))
|
|
1046
1046
|
}, null, 8, ["current-page", "page-size", "total", "option"])) : ue("", !0)
|
|
1047
1047
|
]);
|
|
1048
1048
|
};
|
|
@@ -1085,7 +1085,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1085
1085
|
text: c.text,
|
|
1086
1086
|
link: c.link,
|
|
1087
1087
|
icon: c.icon,
|
|
1088
|
-
onClick: (
|
|
1088
|
+
onClick: (m) => s(c, m)
|
|
1089
1089
|
}), {
|
|
1090
1090
|
default: J(() => [
|
|
1091
1091
|
te("span", null, fe(c.label), 1)
|
|
@@ -1139,47 +1139,47 @@ var an = { exports: {} };
|
|
|
1139
1139
|
(function(n, o) {
|
|
1140
1140
|
e.exports = o();
|
|
1141
1141
|
})(at, function() {
|
|
1142
|
-
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day",
|
|
1142
|
+
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", m = "week", _ = "month", $ = "quarter", b = "year", A = "date", g = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|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, j = { 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) {
|
|
1143
1143
|
var D = ["th", "st", "nd", "rd"], B = R % 100;
|
|
1144
1144
|
return "[" + R + (D[(B - 20) % 10] || D[B] || D[0]) + "]";
|
|
1145
1145
|
} }, I = function(R, D, B) {
|
|
1146
1146
|
var u = String(R);
|
|
1147
1147
|
return !u || u.length >= D ? R : "" + Array(D + 1 - u.length).join(B) + R;
|
|
1148
|
-
},
|
|
1149
|
-
var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60),
|
|
1150
|
-
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(
|
|
1148
|
+
}, h = { s: I, z: function(R) {
|
|
1149
|
+
var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60), v = B % 60;
|
|
1150
|
+
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(v, 2, "0");
|
|
1151
1151
|
}, m: function R(D, B) {
|
|
1152
1152
|
if (D.date() < B.date()) return -R(B, D);
|
|
1153
|
-
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()),
|
|
1154
|
-
return +(-(u + (B -
|
|
1153
|
+
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()), v = D.clone().add(u, _), C = B - v < 0, L = D.clone().add(u + (C ? -1 : 1), _);
|
|
1154
|
+
return +(-(u + (B - v) / (C ? v - L : L - v)) || 0);
|
|
1155
1155
|
}, a: function(R) {
|
|
1156
1156
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1157
1157
|
}, p: function(R) {
|
|
1158
|
-
return { M: _, y:
|
|
1158
|
+
return { M: _, y: b, w: m, d: c, D: A, h: a, m: l, s, ms: i, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1159
1159
|
}, u: function(R) {
|
|
1160
1160
|
return R === void 0;
|
|
1161
|
-
} }, T = "en",
|
|
1162
|
-
|
|
1161
|
+
} }, T = "en", p = {};
|
|
1162
|
+
p[T] = j;
|
|
1163
1163
|
var N = "$isDayjsObject", y = function(R) {
|
|
1164
1164
|
return R instanceof ne || !(!R || !R[N]);
|
|
1165
1165
|
}, F = function R(D, B, u) {
|
|
1166
|
-
var
|
|
1166
|
+
var v;
|
|
1167
1167
|
if (!D) return T;
|
|
1168
1168
|
if (typeof D == "string") {
|
|
1169
1169
|
var C = D.toLowerCase();
|
|
1170
|
-
|
|
1170
|
+
p[C] && (v = C), B && (p[C] = B, v = C);
|
|
1171
1171
|
var L = D.split("-");
|
|
1172
|
-
if (!
|
|
1172
|
+
if (!v && L.length > 1) return R(L[0]);
|
|
1173
1173
|
} else {
|
|
1174
1174
|
var E = D.name;
|
|
1175
|
-
|
|
1175
|
+
p[E] = D, v = E;
|
|
1176
1176
|
}
|
|
1177
|
-
return !u &&
|
|
1177
|
+
return !u && v && (T = v), v || !u && T;
|
|
1178
1178
|
}, O = function(R, D) {
|
|
1179
1179
|
if (y(R)) return R.clone();
|
|
1180
1180
|
var B = typeof D == "object" ? D : {};
|
|
1181
1181
|
return B.date = R, B.args = arguments, new ne(B);
|
|
1182
|
-
}, z =
|
|
1182
|
+
}, z = h;
|
|
1183
1183
|
z.l = F, z.i = y, z.w = function(R, D) {
|
|
1184
1184
|
return O(R, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
1185
1185
|
};
|
|
@@ -1190,18 +1190,18 @@ var an = { exports: {} };
|
|
|
1190
1190
|
var D = R.prototype;
|
|
1191
1191
|
return D.parse = function(B) {
|
|
1192
1192
|
this.$d = function(u) {
|
|
1193
|
-
var
|
|
1194
|
-
if (
|
|
1195
|
-
if (z.u(
|
|
1196
|
-
if (
|
|
1197
|
-
if (typeof
|
|
1198
|
-
var L =
|
|
1193
|
+
var v = u.date, C = u.utc;
|
|
1194
|
+
if (v === null) return /* @__PURE__ */ new Date(NaN);
|
|
1195
|
+
if (z.u(v)) return /* @__PURE__ */ new Date();
|
|
1196
|
+
if (v instanceof Date) return new Date(v);
|
|
1197
|
+
if (typeof v == "string" && !/Z$/i.test(v)) {
|
|
1198
|
+
var L = v.match(w);
|
|
1199
1199
|
if (L) {
|
|
1200
1200
|
var E = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
|
|
1201
1201
|
return C ? new Date(Date.UTC(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
return new Date(
|
|
1204
|
+
return new Date(v);
|
|
1205
1205
|
}(B), this.init();
|
|
1206
1206
|
}, D.init = function() {
|
|
1207
1207
|
var B = this.$d;
|
|
@@ -1211,31 +1211,31 @@ var an = { exports: {} };
|
|
|
1211
1211
|
}, D.isValid = function() {
|
|
1212
1212
|
return this.$d.toString() !== g;
|
|
1213
1213
|
}, D.isSame = function(B, u) {
|
|
1214
|
-
var
|
|
1215
|
-
return this.startOf(u) <=
|
|
1214
|
+
var v = O(B);
|
|
1215
|
+
return this.startOf(u) <= v && v <= this.endOf(u);
|
|
1216
1216
|
}, D.isAfter = function(B, u) {
|
|
1217
1217
|
return O(B) < this.startOf(u);
|
|
1218
1218
|
}, D.isBefore = function(B, u) {
|
|
1219
1219
|
return this.endOf(u) < O(B);
|
|
1220
|
-
}, D.$g = function(B, u,
|
|
1221
|
-
return z.u(B) ? this[u] : this.set(
|
|
1220
|
+
}, D.$g = function(B, u, v) {
|
|
1221
|
+
return z.u(B) ? this[u] : this.set(v, B);
|
|
1222
1222
|
}, D.unix = function() {
|
|
1223
1223
|
return Math.floor(this.valueOf() / 1e3);
|
|
1224
1224
|
}, D.valueOf = function() {
|
|
1225
1225
|
return this.$d.getTime();
|
|
1226
1226
|
}, D.startOf = function(B, u) {
|
|
1227
|
-
var
|
|
1228
|
-
var Se = z.w(
|
|
1227
|
+
var v = this, C = !!z.u(u) || u, L = z.p(B), E = function(pe, de) {
|
|
1228
|
+
var Se = z.w(v.$u ? Date.UTC(v.$y, de, pe) : new Date(v.$y, de, pe), v);
|
|
1229
1229
|
return C ? Se : Se.endOf(c);
|
|
1230
1230
|
}, q = function(pe, de) {
|
|
1231
|
-
return z.w(
|
|
1231
|
+
return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
|
|
1232
1232
|
}, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
|
1233
1233
|
switch (L) {
|
|
1234
|
-
case
|
|
1234
|
+
case b:
|
|
1235
1235
|
return C ? E(1, 0) : E(31, 11);
|
|
1236
1236
|
case _:
|
|
1237
1237
|
return C ? E(1, G) : E(0, G + 1);
|
|
1238
|
-
case
|
|
1238
|
+
case m:
|
|
1239
1239
|
var Z = this.$locale().weekStart || 0, ae = (U < Z ? U + 7 : U) - Z;
|
|
1240
1240
|
return E(C ? X - ae : X + (6 - ae), G);
|
|
1241
1241
|
case c:
|
|
@@ -1253,8 +1253,8 @@ var an = { exports: {} };
|
|
|
1253
1253
|
}, D.endOf = function(B) {
|
|
1254
1254
|
return this.startOf(B, !1);
|
|
1255
1255
|
}, D.$set = function(B, u) {
|
|
1256
|
-
var
|
|
1257
|
-
if (C === _ || C ===
|
|
1256
|
+
var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
|
|
1257
|
+
if (C === _ || C === b) {
|
|
1258
1258
|
var U = this.clone().set(A, 1);
|
|
1259
1259
|
U.$d[E](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1260
1260
|
} else E && this.$d[E](q);
|
|
@@ -1264,24 +1264,24 @@ var an = { exports: {} };
|
|
|
1264
1264
|
}, D.get = function(B) {
|
|
1265
1265
|
return this[z.p(B)]();
|
|
1266
1266
|
}, D.add = function(B, u) {
|
|
1267
|
-
var
|
|
1267
|
+
var v, C = this;
|
|
1268
1268
|
B = Number(B);
|
|
1269
1269
|
var L = z.p(u), E = function(G) {
|
|
1270
1270
|
var X = O(C);
|
|
1271
1271
|
return z.w(X.date(X.date() + Math.round(G * B)), C);
|
|
1272
1272
|
};
|
|
1273
1273
|
if (L === _) return this.set(_, this.$M + B);
|
|
1274
|
-
if (L ===
|
|
1274
|
+
if (L === b) return this.set(b, this.$y + B);
|
|
1275
1275
|
if (L === c) return E(1);
|
|
1276
|
-
if (L ===
|
|
1277
|
-
var q = (
|
|
1276
|
+
if (L === m) return E(7);
|
|
1277
|
+
var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, U = this.$d.getTime() + B * q;
|
|
1278
1278
|
return z.w(U, this);
|
|
1279
1279
|
}, D.subtract = function(B, u) {
|
|
1280
1280
|
return this.add(-1 * B, u);
|
|
1281
1281
|
}, D.format = function(B) {
|
|
1282
|
-
var u = this,
|
|
1283
|
-
if (!this.isValid()) return
|
|
1284
|
-
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G =
|
|
1282
|
+
var u = this, v = this.$locale();
|
|
1283
|
+
if (!this.isValid()) return v.invalidDate || g;
|
|
1284
|
+
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = v.weekdays, X = v.months, P = v.meridiem, Z = function(de, Se, Oe, Ie) {
|
|
1285
1285
|
return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
|
|
1286
1286
|
}, ae = function(de) {
|
|
1287
1287
|
return z.s(E % 12 || 12, de, "0");
|
|
@@ -1289,7 +1289,7 @@ var an = { exports: {} };
|
|
|
1289
1289
|
var Ie = de < 12 ? "AM" : "PM";
|
|
1290
1290
|
return Oe ? Ie.toLowerCase() : Ie;
|
|
1291
1291
|
};
|
|
1292
|
-
return C.replace(
|
|
1292
|
+
return C.replace(S, function(de, Se) {
|
|
1293
1293
|
return Se || function(Oe) {
|
|
1294
1294
|
switch (Oe) {
|
|
1295
1295
|
case "YY":
|
|
@@ -1301,7 +1301,7 @@ var an = { exports: {} };
|
|
|
1301
1301
|
case "MM":
|
|
1302
1302
|
return z.s(U + 1, 2, "0");
|
|
1303
1303
|
case "MMM":
|
|
1304
|
-
return Z(
|
|
1304
|
+
return Z(v.monthsShort, U, X, 3);
|
|
1305
1305
|
case "MMMM":
|
|
1306
1306
|
return Z(X, U);
|
|
1307
1307
|
case "D":
|
|
@@ -1311,9 +1311,9 @@ var an = { exports: {} };
|
|
|
1311
1311
|
case "d":
|
|
1312
1312
|
return String(u.$W);
|
|
1313
1313
|
case "dd":
|
|
1314
|
-
return Z(
|
|
1314
|
+
return Z(v.weekdaysMin, u.$W, G, 2);
|
|
1315
1315
|
case "ddd":
|
|
1316
|
-
return Z(
|
|
1316
|
+
return Z(v.weekdaysShort, u.$W, G, 3);
|
|
1317
1317
|
case "dddd":
|
|
1318
1318
|
return G[u.$W];
|
|
1319
1319
|
case "H":
|
|
@@ -1346,12 +1346,12 @@ var an = { exports: {} };
|
|
|
1346
1346
|
});
|
|
1347
1347
|
}, D.utcOffset = function() {
|
|
1348
1348
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1349
|
-
}, D.diff = function(B, u,
|
|
1349
|
+
}, D.diff = function(B, u, v) {
|
|
1350
1350
|
var C, L = this, E = z.p(u), q = O(B), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
|
|
1351
1351
|
return z.m(L, q);
|
|
1352
1352
|
};
|
|
1353
1353
|
switch (E) {
|
|
1354
|
-
case
|
|
1354
|
+
case b:
|
|
1355
1355
|
C = X() / 12;
|
|
1356
1356
|
break;
|
|
1357
1357
|
case _:
|
|
@@ -1360,7 +1360,7 @@ var an = { exports: {} };
|
|
|
1360
1360
|
case $:
|
|
1361
1361
|
C = X() / 3;
|
|
1362
1362
|
break;
|
|
1363
|
-
case
|
|
1363
|
+
case m:
|
|
1364
1364
|
C = (G - U) / 6048e5;
|
|
1365
1365
|
break;
|
|
1366
1366
|
case c:
|
|
@@ -1378,15 +1378,15 @@ var an = { exports: {} };
|
|
|
1378
1378
|
default:
|
|
1379
1379
|
C = G;
|
|
1380
1380
|
}
|
|
1381
|
-
return
|
|
1381
|
+
return v ? C : z.a(C);
|
|
1382
1382
|
}, D.daysInMonth = function() {
|
|
1383
1383
|
return this.endOf(_).$D;
|
|
1384
1384
|
}, D.$locale = function() {
|
|
1385
|
-
return
|
|
1385
|
+
return p[this.$L];
|
|
1386
1386
|
}, D.locale = function(B, u) {
|
|
1387
1387
|
if (!B) return this.$L;
|
|
1388
|
-
var
|
|
1389
|
-
return C && (
|
|
1388
|
+
var v = this.clone(), C = F(B, u, !0);
|
|
1389
|
+
return C && (v.$L = C), v;
|
|
1390
1390
|
}, D.clone = function() {
|
|
1391
1391
|
return z.w(this.$d, this);
|
|
1392
1392
|
}, D.toDate = function() {
|
|
@@ -1399,7 +1399,7 @@ var an = { exports: {} };
|
|
|
1399
1399
|
return this.$d.toUTCString();
|
|
1400
1400
|
}, R;
|
|
1401
1401
|
}(), x = ne.prototype;
|
|
1402
|
-
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y",
|
|
1402
|
+
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y", b], ["$D", A]].forEach(function(R) {
|
|
1403
1403
|
x[R[1]] = function(D) {
|
|
1404
1404
|
return this.$g(D, R[0], R[1]);
|
|
1405
1405
|
};
|
|
@@ -1407,7 +1407,7 @@ var an = { exports: {} };
|
|
|
1407
1407
|
return R.$i || (R(D, ne, O), R.$i = !0), O;
|
|
1408
1408
|
}, O.locale = F, O.isDayjs = y, O.unix = function(R) {
|
|
1409
1409
|
return O(1e3 * R);
|
|
1410
|
-
}, O.en =
|
|
1410
|
+
}, O.en = p[T], O.Ls = p, O.p = {}, O;
|
|
1411
1411
|
});
|
|
1412
1412
|
})(an);
|
|
1413
1413
|
var Ho = an.exports;
|
|
@@ -1419,32 +1419,32 @@ var sn = { exports: {} };
|
|
|
1419
1419
|
})(at, function() {
|
|
1420
1420
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(w) {
|
|
1421
1421
|
return (w = +w) + (w > 68 ? 1900 : 2e3);
|
|
1422
|
-
},
|
|
1423
|
-
return function(
|
|
1424
|
-
this[w] = +
|
|
1422
|
+
}, m = function(w) {
|
|
1423
|
+
return function(S) {
|
|
1424
|
+
this[w] = +S;
|
|
1425
1425
|
};
|
|
1426
1426
|
}, _ = [/[+-]\d\d:?(\d\d)?|Z/, function(w) {
|
|
1427
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1428
|
-
if (!
|
|
1429
|
-
var j =
|
|
1427
|
+
(this.zone || (this.zone = {})).offset = function(S) {
|
|
1428
|
+
if (!S || S === "Z") return 0;
|
|
1429
|
+
var j = S.match(/([+-]|\d\d)/g), I = 60 * j[1] + (+j[2] || 0);
|
|
1430
1430
|
return I === 0 ? 0 : j[0] === "+" ? -I : I;
|
|
1431
1431
|
}(w);
|
|
1432
1432
|
}], $ = function(w) {
|
|
1433
|
-
var
|
|
1434
|
-
return
|
|
1435
|
-
},
|
|
1433
|
+
var S = a[w];
|
|
1434
|
+
return S && (S.indexOf ? S : S.s.concat(S.f));
|
|
1435
|
+
}, b = function(w, S) {
|
|
1436
1436
|
var j, I = a.meridiem;
|
|
1437
1437
|
if (I) {
|
|
1438
|
-
for (var
|
|
1439
|
-
j =
|
|
1438
|
+
for (var h = 1; h <= 24; h += 1) if (w.indexOf(I(h, 0, S)) > -1) {
|
|
1439
|
+
j = h > 12;
|
|
1440
1440
|
break;
|
|
1441
1441
|
}
|
|
1442
|
-
} else j = w === (
|
|
1442
|
+
} else j = w === (S ? "pm" : "PM");
|
|
1443
1443
|
return j;
|
|
1444
1444
|
}, A = { A: [l, function(w) {
|
|
1445
|
-
this.afternoon =
|
|
1445
|
+
this.afternoon = b(w, !1);
|
|
1446
1446
|
}], a: [l, function(w) {
|
|
1447
|
-
this.afternoon =
|
|
1447
|
+
this.afternoon = b(w, !0);
|
|
1448
1448
|
}], Q: [r, function(w) {
|
|
1449
1449
|
this.month = 3 * (w - 1) + 1;
|
|
1450
1450
|
}], S: [r, function(w) {
|
|
@@ -1453,41 +1453,41 @@ var sn = { exports: {} };
|
|
|
1453
1453
|
this.milliseconds = 10 * +w;
|
|
1454
1454
|
}], SSS: [/\d{3}/, function(w) {
|
|
1455
1455
|
this.milliseconds = +w;
|
|
1456
|
-
}], s: [s,
|
|
1457
|
-
var
|
|
1458
|
-
if (this.day = j[0],
|
|
1459
|
-
}], w: [s,
|
|
1460
|
-
var
|
|
1456
|
+
}], s: [s, m("seconds")], ss: [s, m("seconds")], m: [s, m("minutes")], mm: [s, m("minutes")], H: [s, m("hours")], h: [s, m("hours")], HH: [s, m("hours")], hh: [s, m("hours")], D: [s, m("day")], DD: [i, m("day")], Do: [l, function(w) {
|
|
1457
|
+
var S = a.ordinal, j = w.match(/\d+/);
|
|
1458
|
+
if (this.day = j[0], S) for (var I = 1; I <= 31; I += 1) S(I).replace(/\[|\]/g, "") === w && (this.day = I);
|
|
1459
|
+
}], w: [s, m("week")], ww: [i, m("week")], M: [s, m("month")], MM: [i, m("month")], MMM: [l, function(w) {
|
|
1460
|
+
var S = $("months"), j = ($("monthsShort") || S.map(function(I) {
|
|
1461
1461
|
return I.slice(0, 3);
|
|
1462
1462
|
})).indexOf(w) + 1;
|
|
1463
1463
|
if (j < 1) throw new Error();
|
|
1464
1464
|
this.month = j % 12 || j;
|
|
1465
1465
|
}], MMMM: [l, function(w) {
|
|
1466
|
-
var
|
|
1467
|
-
if (
|
|
1468
|
-
this.month =
|
|
1469
|
-
}], Y: [/[+-]?\d+/,
|
|
1466
|
+
var S = $("months").indexOf(w) + 1;
|
|
1467
|
+
if (S < 1) throw new Error();
|
|
1468
|
+
this.month = S % 12 || S;
|
|
1469
|
+
}], Y: [/[+-]?\d+/, m("year")], YY: [i, function(w) {
|
|
1470
1470
|
this.year = c(w);
|
|
1471
|
-
}], YYYY: [/\d{4}/,
|
|
1471
|
+
}], YYYY: [/\d{4}/, m("year")], Z: _, ZZ: _ };
|
|
1472
1472
|
function g(w) {
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
for (var I = (w =
|
|
1473
|
+
var S, j;
|
|
1474
|
+
S = w, j = a && a.formats;
|
|
1475
|
+
for (var I = (w = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, z, ne) {
|
|
1476
1476
|
var x = ne && ne.toUpperCase();
|
|
1477
1477
|
return z || j[ne] || n[ne] || j[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, D, B) {
|
|
1478
1478
|
return D || B.slice(1);
|
|
1479
1479
|
});
|
|
1480
|
-
})).match(o),
|
|
1481
|
-
var
|
|
1482
|
-
I[T] = F ? { regex: y, parser: F } :
|
|
1480
|
+
})).match(o), h = I.length, T = 0; T < h; T += 1) {
|
|
1481
|
+
var p = I[T], N = A[p], y = N && N[0], F = N && N[1];
|
|
1482
|
+
I[T] = F ? { regex: y, parser: F } : p.replace(/^\[|\]$/g, "");
|
|
1483
1483
|
}
|
|
1484
1484
|
return function(O) {
|
|
1485
|
-
for (var z = {}, ne = 0, x = 0; ne <
|
|
1485
|
+
for (var z = {}, ne = 0, x = 0; ne < h; ne += 1) {
|
|
1486
1486
|
var R = I[ne];
|
|
1487
1487
|
if (typeof R == "string") x += R.length;
|
|
1488
1488
|
else {
|
|
1489
|
-
var D = R.regex, B = R.parser, u = O.slice(x),
|
|
1490
|
-
B.call(z,
|
|
1489
|
+
var D = R.regex, B = R.parser, u = O.slice(x), v = D.exec(u)[0];
|
|
1490
|
+
B.call(z, v), O = O.replace(v, "");
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
return function(C) {
|
|
@@ -1499,26 +1499,26 @@ var sn = { exports: {} };
|
|
|
1499
1499
|
}(z), z;
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
|
-
return function(w,
|
|
1502
|
+
return function(w, S, j) {
|
|
1503
1503
|
j.p.customParseFormat = !0, w && w.parseTwoDigitYear && (c = w.parseTwoDigitYear);
|
|
1504
|
-
var I =
|
|
1504
|
+
var I = S.prototype, h = I.parse;
|
|
1505
1505
|
I.parse = function(T) {
|
|
1506
|
-
var
|
|
1506
|
+
var p = T.date, N = T.utc, y = T.args;
|
|
1507
1507
|
this.$u = N;
|
|
1508
1508
|
var F = y[1];
|
|
1509
1509
|
if (typeof F == "string") {
|
|
1510
1510
|
var O = y[2] === !0, z = y[3] === !0, ne = O || z, x = y[2];
|
|
1511
|
-
z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u,
|
|
1511
|
+
z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
|
|
1512
1512
|
try {
|
|
1513
|
-
if (["x", "X"].indexOf(
|
|
1514
|
-
var E = g(
|
|
1513
|
+
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
|
|
1514
|
+
var E = g(v)(u), q = E.year, U = E.month, G = E.day, X = E.hours, P = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
|
|
1515
1515
|
q && !U || (ze = U > 0 ? U - 1 : Se.getMonth());
|
|
1516
1516
|
var xe, et = X || 0, qe = P || 0, f = Z || 0, d = ae || 0;
|
|
1517
1517
|
return pe ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d + 60 * pe.offset * 1e3)) : C ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d)) : (xe = new Date(Ie, ze, Oe, et, qe, f, d), de && (xe = L(xe).week(de).toDate()), xe);
|
|
1518
1518
|
} catch {
|
|
1519
1519
|
return /* @__PURE__ */ new Date("");
|
|
1520
1520
|
}
|
|
1521
|
-
}(
|
|
1521
|
+
}(p, F, N, j), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && p != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1522
1522
|
} else if (F instanceof Array) for (var R = F.length, D = 1; D <= R; D += 1) {
|
|
1523
1523
|
y[1] = F[D - 1];
|
|
1524
1524
|
var B = j.apply(this, y);
|
|
@@ -1528,7 +1528,7 @@ var sn = { exports: {} };
|
|
|
1528
1528
|
}
|
|
1529
1529
|
D === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1530
1530
|
}
|
|
1531
|
-
else
|
|
1531
|
+
else h.call(this, T);
|
|
1532
1532
|
};
|
|
1533
1533
|
};
|
|
1534
1534
|
});
|
|
@@ -1542,51 +1542,51 @@ var ln = { exports: {} };
|
|
|
1542
1542
|
})(at, function() {
|
|
1543
1543
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1544
1544
|
return function(r, i, s) {
|
|
1545
|
-
var l, a = function($,
|
|
1545
|
+
var l, a = function($, b, A) {
|
|
1546
1546
|
A === void 0 && (A = {});
|
|
1547
|
-
var g = new Date($), w = function(
|
|
1547
|
+
var g = new Date($), w = function(S, j) {
|
|
1548
1548
|
j === void 0 && (j = {});
|
|
1549
|
-
var I = j.timeZoneName || "short",
|
|
1550
|
-
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
1551
|
-
}(
|
|
1549
|
+
var I = j.timeZoneName || "short", h = S + "|" + I, T = o[h];
|
|
1550
|
+
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: S, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: I }), o[h] = T), T;
|
|
1551
|
+
}(b, A);
|
|
1552
1552
|
return w.formatToParts(g);
|
|
1553
|
-
}, c = function($,
|
|
1554
|
-
for (var A = a($,
|
|
1555
|
-
var
|
|
1556
|
-
|
|
1553
|
+
}, c = function($, b) {
|
|
1554
|
+
for (var A = a($, b), g = [], w = 0; w < A.length; w += 1) {
|
|
1555
|
+
var S = A[w], j = S.type, I = S.value, h = n[j];
|
|
1556
|
+
h >= 0 && (g[h] = parseInt(I, 10));
|
|
1557
1557
|
}
|
|
1558
|
-
var T = g[3],
|
|
1558
|
+
var T = g[3], p = T === 24 ? 0 : T, N = g[0] + "-" + g[1] + "-" + g[2] + " " + p + ":" + g[4] + ":" + g[5] + ":000", y = +$;
|
|
1559
1559
|
return (s.utc(N).valueOf() - (y -= y % 1e3)) / 6e4;
|
|
1560
|
-
},
|
|
1561
|
-
|
|
1560
|
+
}, m = i.prototype;
|
|
1561
|
+
m.tz = function($, b) {
|
|
1562
1562
|
$ === void 0 && ($ = l);
|
|
1563
|
-
var A, g = this.utcOffset(), w = this.toDate(),
|
|
1564
|
-
if (!Number(I)) A = this.utcOffset(0,
|
|
1565
|
-
else if (A = s(
|
|
1566
|
-
var
|
|
1567
|
-
A = A.add(g -
|
|
1563
|
+
var A, g = this.utcOffset(), w = this.toDate(), S = w.toLocaleString("en-US", { timeZone: $ }), j = Math.round((w - new Date(S)) / 1e3 / 60), I = 15 * -Math.round(w.getTimezoneOffset() / 15) - j;
|
|
1564
|
+
if (!Number(I)) A = this.utcOffset(0, b);
|
|
1565
|
+
else if (A = s(S, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(I, !0), b) {
|
|
1566
|
+
var h = A.utcOffset();
|
|
1567
|
+
A = A.add(g - h, "minute");
|
|
1568
1568
|
}
|
|
1569
1569
|
return A.$x.$timezone = $, A;
|
|
1570
|
-
},
|
|
1571
|
-
var
|
|
1570
|
+
}, m.offsetName = function($) {
|
|
1571
|
+
var b = this.$x.$timezone || s.tz.guess(), A = a(this.valueOf(), b, { timeZoneName: $ }).find(function(g) {
|
|
1572
1572
|
return g.type.toLowerCase() === "timezonename";
|
|
1573
1573
|
});
|
|
1574
1574
|
return A && A.value;
|
|
1575
1575
|
};
|
|
1576
|
-
var _ =
|
|
1577
|
-
|
|
1578
|
-
if (!this.$x || !this.$x.$timezone) return _.call(this, $,
|
|
1576
|
+
var _ = m.startOf;
|
|
1577
|
+
m.startOf = function($, b) {
|
|
1578
|
+
if (!this.$x || !this.$x.$timezone) return _.call(this, $, b);
|
|
1579
1579
|
var A = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1580
|
-
return _.call(A, $,
|
|
1581
|
-
}, s.tz = function($,
|
|
1582
|
-
var g = A &&
|
|
1580
|
+
return _.call(A, $, b).tz(this.$x.$timezone, !0);
|
|
1581
|
+
}, s.tz = function($, b, A) {
|
|
1582
|
+
var g = A && b, w = A || b || l, S = c(+s(), w);
|
|
1583
1583
|
if (typeof $ != "string") return s($).tz(w);
|
|
1584
|
-
var j = function(
|
|
1585
|
-
var F =
|
|
1584
|
+
var j = function(p, N, y) {
|
|
1585
|
+
var F = p - 60 * N * 1e3, O = c(F, y);
|
|
1586
1586
|
if (N === O) return [F, N];
|
|
1587
1587
|
var z = c(F -= 60 * (O - N) * 1e3, y);
|
|
1588
|
-
return O === z ? [F, O] : [
|
|
1589
|
-
}(s.utc($, g).valueOf(),
|
|
1588
|
+
return O === z ? [F, O] : [p - 60 * Math.min(O, z) * 1e3, Math.max(O, z)];
|
|
1589
|
+
}(s.utc($, g).valueOf(), S, w), I = j[0], h = j[1], T = s(I).utcOffset(h);
|
|
1590
1590
|
return T.$x.$timezone = w, T;
|
|
1591
1591
|
}, s.tz.guess = function() {
|
|
1592
1592
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1619,30 +1619,30 @@ var cn = { exports: {} };
|
|
|
1619
1619
|
a.parse = function(g) {
|
|
1620
1620
|
g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), c.call(this, g);
|
|
1621
1621
|
};
|
|
1622
|
-
var
|
|
1622
|
+
var m = a.init;
|
|
1623
1623
|
a.init = function() {
|
|
1624
1624
|
if (this.$u) {
|
|
1625
1625
|
var g = this.$d;
|
|
1626
1626
|
this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
|
|
1627
|
-
} else
|
|
1627
|
+
} else m.call(this);
|
|
1628
1628
|
};
|
|
1629
1629
|
var _ = a.utcOffset;
|
|
1630
1630
|
a.utcOffset = function(g, w) {
|
|
1631
|
-
var
|
|
1632
|
-
if (
|
|
1631
|
+
var S = this.$utils().u;
|
|
1632
|
+
if (S(g)) return this.$u ? 0 : S(this.$offset) ? _.call(this) : this.$offset;
|
|
1633
1633
|
if (typeof g == "string" && (g = function(T) {
|
|
1634
1634
|
T === void 0 && (T = "");
|
|
1635
|
-
var
|
|
1636
|
-
if (!
|
|
1637
|
-
var N = ("" +
|
|
1635
|
+
var p = T.match(o);
|
|
1636
|
+
if (!p) return null;
|
|
1637
|
+
var N = ("" + p[0]).match(r) || ["-", 0, 0], y = N[0], F = 60 * +N[1] + +N[2];
|
|
1638
1638
|
return F === 0 ? 0 : y === "+" ? F : -F;
|
|
1639
1639
|
}(g), g === null)) return this;
|
|
1640
1640
|
var j = Math.abs(g) <= 16 ? 60 * g : g;
|
|
1641
1641
|
if (j === 0) return this.utc(w);
|
|
1642
1642
|
var I = this.clone();
|
|
1643
1643
|
if (w) return I.$offset = j, I.$u = !1, I;
|
|
1644
|
-
var
|
|
1645
|
-
return (I = this.local().add(j +
|
|
1644
|
+
var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1645
|
+
return (I = this.local().add(j + h, n)).$offset = j, I.$x.$localOffset = h, I;
|
|
1646
1646
|
};
|
|
1647
1647
|
var $ = a.format;
|
|
1648
1648
|
a.format = function(g) {
|
|
@@ -1658,15 +1658,15 @@ var cn = { exports: {} };
|
|
|
1658
1658
|
}, a.toString = function() {
|
|
1659
1659
|
return this.toDate().toUTCString();
|
|
1660
1660
|
};
|
|
1661
|
-
var
|
|
1661
|
+
var b = a.toDate;
|
|
1662
1662
|
a.toDate = function(g) {
|
|
1663
|
-
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
1663
|
+
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
1664
1664
|
};
|
|
1665
1665
|
var A = a.diff;
|
|
1666
|
-
a.diff = function(g, w,
|
|
1667
|
-
if (g && this.$u === g.$u) return A.call(this, g, w,
|
|
1666
|
+
a.diff = function(g, w, S) {
|
|
1667
|
+
if (g && this.$u === g.$u) return A.call(this, g, w, S);
|
|
1668
1668
|
var j = this.local(), I = l(g).local();
|
|
1669
|
-
return A.call(j, I, w,
|
|
1669
|
+
return A.call(j, I, w, S);
|
|
1670
1670
|
};
|
|
1671
1671
|
};
|
|
1672
1672
|
});
|
|
@@ -1798,8 +1798,8 @@ function ar(e, t, n) {
|
|
|
1798
1798
|
if (e && typeof e == "object") {
|
|
1799
1799
|
const o = e, r = sr(o, n), i = De(o.url);
|
|
1800
1800
|
if (i) {
|
|
1801
|
-
const l = { url: i }, a = De(o.name), c = De(o.mimeType),
|
|
1802
|
-
return a && (l.name = a), c && (l.mimeType = c),
|
|
1801
|
+
const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
|
|
1802
|
+
return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
|
|
1803
1803
|
key: String(t),
|
|
1804
1804
|
text: r,
|
|
1805
1805
|
action: {
|
|
@@ -2006,27 +2006,27 @@ function gr(e, t, n) {
|
|
|
2006
2006
|
return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
|
|
2007
2007
|
}
|
|
2008
2008
|
function Nt(e, t, n, o) {
|
|
2009
|
-
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = wr(r.infSetValues ?? r.rows ?? r.data, s),
|
|
2010
|
-
r.tagId ?? r.infTagId ??
|
|
2011
|
-
),
|
|
2012
|
-
key:
|
|
2013
|
-
id:
|
|
2014
|
-
setId:
|
|
2015
|
-
code:
|
|
2016
|
-
tagId:
|
|
2017
|
-
requestTagId:
|
|
2018
|
-
ownerNodeKey:
|
|
2019
|
-
infSetId:
|
|
2020
|
-
title: i.name || Q(r.name ?? n?.tagName ??
|
|
2021
|
-
renderType:
|
|
2009
|
+
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = vr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), m = le(r.tag), _ = Q(
|
|
2010
|
+
r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
|
|
2011
|
+
), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
|
|
2012
|
+
key: T,
|
|
2013
|
+
id: T,
|
|
2014
|
+
setId: I,
|
|
2015
|
+
code: h,
|
|
2016
|
+
tagId: _,
|
|
2017
|
+
requestTagId: $ || void 0,
|
|
2018
|
+
ownerNodeKey: b || void 0,
|
|
2019
|
+
infSetId: j,
|
|
2020
|
+
title: i.name || Q(r.name ?? n?.tagName ?? T),
|
|
2021
|
+
renderType: l,
|
|
2022
2022
|
mark: i,
|
|
2023
2023
|
fields: s,
|
|
2024
|
-
model:
|
|
2025
|
-
rows:
|
|
2024
|
+
model: c,
|
|
2025
|
+
rows: a,
|
|
2026
2026
|
operationInfo: ut(t.operationInfo ?? r.operationInfo),
|
|
2027
2027
|
raw: r
|
|
2028
2028
|
};
|
|
2029
|
-
return
|
|
2029
|
+
return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
|
|
2030
2030
|
}
|
|
2031
2031
|
function yr(e) {
|
|
2032
2032
|
const t = le(e), n = Q(t.htmlDisplay || "F");
|
|
@@ -2081,14 +2081,14 @@ function Sr(e, t) {
|
|
|
2081
2081
|
raw: n
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
|
-
function wr(e, t) {
|
|
2085
|
-
if (Array.isArray(e) && e.some((
|
|
2086
|
-
const
|
|
2087
|
-
return t.some((
|
|
2084
|
+
function wr(e, t, n) {
|
|
2085
|
+
if (Array.isArray(e) && e.some((i) => {
|
|
2086
|
+
const s = le(i);
|
|
2087
|
+
return t.some((l) => s[l.code] !== void 0 || s[l.key] !== void 0);
|
|
2088
2088
|
}))
|
|
2089
|
-
return e.map((
|
|
2090
|
-
const
|
|
2091
|
-
return Object.keys(
|
|
2089
|
+
return e.map((i, s) => ({ ...le(i), __rowKey: Q(le(i).__rowKey ?? le(i).key ?? s) }));
|
|
2090
|
+
const o = bn(t);
|
|
2091
|
+
return n === "form" && Object.keys(o).length ? [{ ...o, __rowKey: "0" }] : [];
|
|
2092
2092
|
}
|
|
2093
2093
|
function bn(e) {
|
|
2094
2094
|
return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
|
|
@@ -2122,7 +2122,7 @@ function Ir(e, t, n, o) {
|
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
2124
|
function _r(e, t, n, o, r) {
|
|
2125
|
-
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`,
|
|
2125
|
+
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
|
|
2126
2126
|
return {
|
|
2127
2127
|
key: c,
|
|
2128
2128
|
id: c,
|
|
@@ -2137,7 +2137,7 @@ function _r(e, t, n, o, r) {
|
|
|
2137
2137
|
schemeId: Q(e.infSchmId ?? n?.infSchmId),
|
|
2138
2138
|
infSetId: l,
|
|
2139
2139
|
setId: a,
|
|
2140
|
-
code:
|
|
2140
|
+
code: m,
|
|
2141
2141
|
children: [],
|
|
2142
2142
|
infSetList: [t],
|
|
2143
2143
|
operationInfo: ut(e.operationInfo),
|
|
@@ -2444,7 +2444,7 @@ function wt(e) {
|
|
|
2444
2444
|
return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
|
|
2445
2445
|
}
|
|
2446
2446
|
const Gr = (e) => {
|
|
2447
|
-
const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}),
|
|
2447
|
+
const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), m = Pe({}), _ = he([]), $ = Pe({}), b = he([]), A = V(
|
|
2448
2448
|
() => {
|
|
2449
2449
|
const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
|
|
2450
2450
|
return [...f, ...d];
|
|
@@ -2457,7 +2457,7 @@ const Gr = (e) => {
|
|
|
2457
2457
|
// 当前是否正在保存。
|
|
2458
2458
|
saving: o.value,
|
|
2459
2459
|
// 当前所有编辑中的 section key。
|
|
2460
|
-
editingSectionKeys:
|
|
2460
|
+
editingSectionKeys: b.value,
|
|
2461
2461
|
// 已加载 section 映射。
|
|
2462
2462
|
sectionMap: c.value,
|
|
2463
2463
|
// section 状态映射;这里把 alias 后的编辑态也同步进去。
|
|
@@ -2468,8 +2468,8 @@ const Gr = (e) => {
|
|
|
2468
2468
|
// 保留原状态字段。
|
|
2469
2469
|
...d,
|
|
2470
2470
|
// 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
|
|
2471
|
-
editing:
|
|
2472
|
-
|
|
2471
|
+
editing: b.value.includes(
|
|
2472
|
+
m.value[f] ?? f
|
|
2473
2473
|
)
|
|
2474
2474
|
}
|
|
2475
2475
|
])
|
|
@@ -2481,7 +2481,7 @@ const Gr = (e) => {
|
|
|
2481
2481
|
adaptScene: e.adaptScene,
|
|
2482
2482
|
// emplid 是当前人员标识,树和详情接口都需要它。
|
|
2483
2483
|
emplid: e.emplid
|
|
2484
|
-
}),
|
|
2484
|
+
}), S = (f) => ({
|
|
2485
2485
|
// 复用基础参数,保证人员和场景一致。
|
|
2486
2486
|
...w(),
|
|
2487
2487
|
// infSchmId 指定当前模板方案。
|
|
@@ -2512,7 +2512,7 @@ const Gr = (e) => {
|
|
|
2512
2512
|
sections: A.value,
|
|
2513
2513
|
activeNode: l.value,
|
|
2514
2514
|
activeSection: a.value
|
|
2515
|
-
}),
|
|
2515
|
+
}), h = Uo(
|
|
2516
2516
|
async (f, d) => {
|
|
2517
2517
|
if (!e.service.requestOperation)
|
|
2518
2518
|
throw Ne("service.requestOperation is required");
|
|
@@ -2538,14 +2538,14 @@ const Gr = (e) => {
|
|
|
2538
2538
|
activeSection: a.value,
|
|
2539
2539
|
searchText: d?.searchText
|
|
2540
2540
|
}), K = { ...f, params: M }, W = d && { ...d, params: M };
|
|
2541
|
-
return
|
|
2542
|
-
},
|
|
2541
|
+
return h(K, W);
|
|
2542
|
+
}, p = (f, d) => {
|
|
2543
2543
|
if (!d)
|
|
2544
2544
|
return f[0] ?? null;
|
|
2545
2545
|
for (const M of f) {
|
|
2546
2546
|
if (We(M).includes(d))
|
|
2547
2547
|
return M;
|
|
2548
|
-
const K =
|
|
2548
|
+
const K = p(M.children, d);
|
|
2549
2549
|
if (K)
|
|
2550
2550
|
return K;
|
|
2551
2551
|
}
|
|
@@ -2557,12 +2557,12 @@ const Gr = (e) => {
|
|
|
2557
2557
|
const d = N(f);
|
|
2558
2558
|
if (!d)
|
|
2559
2559
|
return null;
|
|
2560
|
-
const M =
|
|
2560
|
+
const M = m.value[d] ?? d;
|
|
2561
2561
|
return c.value[M] ?? null;
|
|
2562
2562
|
}, F = (f = a.value) => {
|
|
2563
2563
|
const d = N(f);
|
|
2564
2564
|
if (d)
|
|
2565
|
-
return
|
|
2565
|
+
return m.value[d] ?? d;
|
|
2566
2566
|
}, O = (f = a.value) => {
|
|
2567
2567
|
if (f)
|
|
2568
2568
|
return typeof f == "string" ? f : Ke(f) ? f.setId ?? f.infSetId ?? f.key : ke(f);
|
|
@@ -2570,23 +2570,23 @@ const Gr = (e) => {
|
|
|
2570
2570
|
if (Ke(f))
|
|
2571
2571
|
return f;
|
|
2572
2572
|
if (typeof f == "string") {
|
|
2573
|
-
const d =
|
|
2573
|
+
const d = p(i.value, f);
|
|
2574
2574
|
if (d)
|
|
2575
2575
|
return d;
|
|
2576
2576
|
const M = y(f);
|
|
2577
|
-
return M?.ownerNodeKey ?
|
|
2577
|
+
return M?.ownerNodeKey ? p(i.value, M.ownerNodeKey) ?? l.value : M || l.value && We(l.value).includes(f) ? l.value : null;
|
|
2578
2578
|
}
|
|
2579
|
-
return f?.ownerNodeKey ?
|
|
2579
|
+
return f?.ownerNodeKey ? p(i.value, f.ownerNodeKey) ?? l.value : l.value;
|
|
2580
2580
|
}, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
|
|
2581
2581
|
const d = O(f);
|
|
2582
2582
|
if (!d)
|
|
2583
2583
|
return Ue();
|
|
2584
|
-
const M =
|
|
2584
|
+
const M = m.value[d] ?? d;
|
|
2585
2585
|
return Ue({
|
|
2586
2586
|
...$.value[d],
|
|
2587
2587
|
...$.value[M],
|
|
2588
2588
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
2589
|
-
editing:
|
|
2589
|
+
editing: b.value.includes(
|
|
2590
2590
|
M
|
|
2591
2591
|
)
|
|
2592
2592
|
});
|
|
@@ -2600,7 +2600,7 @@ const Gr = (e) => {
|
|
|
2600
2600
|
// 合并本次状态补丁。
|
|
2601
2601
|
...d,
|
|
2602
2602
|
// 编辑态仍以 editingSectionKeys 为准。
|
|
2603
|
-
editing:
|
|
2603
|
+
editing: b.value.includes(M)
|
|
2604
2604
|
})
|
|
2605
2605
|
});
|
|
2606
2606
|
}, D = (f = s.value?.raw ?? null, d = l.value) => {
|
|
@@ -2629,16 +2629,16 @@ const Gr = (e) => {
|
|
|
2629
2629
|
}, B = (f, d = l.value, M) => {
|
|
2630
2630
|
const K = Rr({
|
|
2631
2631
|
currentMap: c.value,
|
|
2632
|
-
currentAliasMap:
|
|
2632
|
+
currentAliasMap: m.value,
|
|
2633
2633
|
currentOrder: _.value,
|
|
2634
2634
|
currentStatusMap: $.value,
|
|
2635
|
-
editingSectionKeys:
|
|
2635
|
+
editingSectionKeys: b.value,
|
|
2636
2636
|
nextViewModel: f,
|
|
2637
2637
|
node: d,
|
|
2638
2638
|
targetKey: M,
|
|
2639
2639
|
activeSection: a.value
|
|
2640
2640
|
});
|
|
2641
|
-
return c.value = K.sectionMap,
|
|
2641
|
+
return c.value = K.sectionMap, m.value = K.sectionAliasMap, _.value = K.sectionOrder, $.value = K.sectionStatusMap, s.value = {
|
|
2642
2642
|
...f,
|
|
2643
2643
|
scheme: f.scheme ?? s.value?.scheme ?? null,
|
|
2644
2644
|
topNodes: i.value,
|
|
@@ -2657,7 +2657,7 @@ const Gr = (e) => {
|
|
|
2657
2657
|
...c.value,
|
|
2658
2658
|
[M]: W
|
|
2659
2659
|
}, a.value = ke(a.value ?? W) === M ? W : a.value, D();
|
|
2660
|
-
},
|
|
2660
|
+
}, v = async (f = a.value ?? l.value) => {
|
|
2661
2661
|
const d = ne(f), M = z(f) ?? l.value, K = O(f);
|
|
2662
2662
|
if (!M)
|
|
2663
2663
|
return null;
|
|
@@ -2698,18 +2698,18 @@ const Gr = (e) => {
|
|
|
2698
2698
|
} finally {
|
|
2699
2699
|
n.value = !1, R(K ?? M, { loading: !1 });
|
|
2700
2700
|
}
|
|
2701
|
-
}, C = (f = a.value) =>
|
|
2701
|
+
}, C = (f = a.value) => v(f), L = (f = a.value) => {
|
|
2702
2702
|
if (!f)
|
|
2703
2703
|
return null;
|
|
2704
2704
|
if (!Ke(f) && typeof f != "string")
|
|
2705
2705
|
return y(f);
|
|
2706
2706
|
const d = O(f);
|
|
2707
|
-
return d ? c.value[
|
|
2708
|
-
}, E = async (f = l.value) => f ? (await
|
|
2707
|
+
return d ? c.value[m.value[d] ?? d] ?? null : null;
|
|
2708
|
+
}, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
|
|
2709
2709
|
const d = Pr(f);
|
|
2710
2710
|
if (!d)
|
|
2711
2711
|
return f.children;
|
|
2712
|
-
const M =
|
|
2712
|
+
const M = S(f), K = await I(d, {
|
|
2713
2713
|
type: "openTag",
|
|
2714
2714
|
requestSource: "sidebar",
|
|
2715
2715
|
tagId: f.tagId,
|
|
@@ -2723,8 +2723,8 @@ const Gr = (e) => {
|
|
|
2723
2723
|
const d = await q(f);
|
|
2724
2724
|
return d.length > 0 && (i.value = hn(i.value, f.key, d)), d;
|
|
2725
2725
|
}, G = async (f) => {
|
|
2726
|
-
const d = typeof f == "string" ?
|
|
2727
|
-
return d ? (l.value = d, a.value = null,
|
|
2726
|
+
const d = typeof f == "string" ? p(i.value, f) : f;
|
|
2727
|
+
return d ? (l.value = d, a.value = null, b.value = [], await U(d), D(s.value?.raw, d), d) : null;
|
|
2728
2728
|
}, X = async () => {
|
|
2729
2729
|
const f = e.service.templateTree;
|
|
2730
2730
|
if (!f)
|
|
@@ -2741,8 +2741,8 @@ const Gr = (e) => {
|
|
|
2741
2741
|
};
|
|
2742
2742
|
})
|
|
2743
2743
|
);
|
|
2744
|
-
i.value = K, a.value = null, c.value = {},
|
|
2745
|
-
const W =
|
|
2744
|
+
i.value = K, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, b.value = [];
|
|
2745
|
+
const W = p(K, e.initialActiveNodeKey) ?? p(K);
|
|
2746
2746
|
return l.value = W, s.value = {
|
|
2747
2747
|
...M,
|
|
2748
2748
|
treeNodes: K,
|
|
@@ -2764,13 +2764,13 @@ const Gr = (e) => {
|
|
|
2764
2764
|
return d && (a.value = d), D(), s.value;
|
|
2765
2765
|
}, Z = (f = a.value) => {
|
|
2766
2766
|
const d = F(f);
|
|
2767
|
-
return !!(d &&
|
|
2767
|
+
return !!(d && b.value.includes(d));
|
|
2768
2768
|
}, ae = (f = a.value) => {
|
|
2769
2769
|
const d = F(f);
|
|
2770
|
-
!d || Z(d) || (
|
|
2770
|
+
!d || Z(d) || (b.value = [...b.value, d], R(d, { editing: !0 }));
|
|
2771
2771
|
}, pe = (f = a.value) => {
|
|
2772
2772
|
const d = F(f);
|
|
2773
|
-
d && (
|
|
2773
|
+
d && (b.value = b.value.filter(
|
|
2774
2774
|
(M) => M !== d
|
|
2775
2775
|
), R(d, { editing: !1 }));
|
|
2776
2776
|
}, de = (f, d, M) => {
|
|
@@ -2878,7 +2878,7 @@ const Gr = (e) => {
|
|
|
2878
2878
|
// 刷新当前详情。
|
|
2879
2879
|
reloadActiveSection: P,
|
|
2880
2880
|
// 加载指定节点或 section。
|
|
2881
|
-
loadSection:
|
|
2881
|
+
loadSection: v,
|
|
2882
2882
|
// 重新加载指定节点或 section。
|
|
2883
2883
|
reloadSection: C,
|
|
2884
2884
|
// 获取指定节点或 section 的缓存数据。
|
|
@@ -2996,7 +2996,7 @@ const Gr = (e) => {
|
|
|
2996
2996
|
},
|
|
2997
2997
|
setup(e) {
|
|
2998
2998
|
const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
|
|
2999
|
-
return (
|
|
2999
|
+
return (m, _) => ee(m.$slots, "default", Me(Fe({
|
|
3000
3000
|
viewModel: re(o),
|
|
3001
3001
|
nodes: re(r),
|
|
3002
3002
|
sections: re(i),
|
|
@@ -3042,19 +3042,19 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3042
3042
|
},
|
|
3043
3043
|
emits: ["update:modelValue", "change", "loadOptions"],
|
|
3044
3044
|
setup(e, { emit: t }) {
|
|
3045
|
-
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple),
|
|
3045
|
+
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple), m = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = V(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = V(() => {
|
|
3046
3046
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
3047
3047
|
const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3048
3048
|
return Number.isFinite(x) ? x : void 0;
|
|
3049
|
-
}),
|
|
3049
|
+
}), b = V(() => nr(n.field, n.modelValue)), A = V(() => {
|
|
3050
3050
|
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], R = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3051
3051
|
return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : fn(n.modelValue);
|
|
3052
|
-
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)),
|
|
3053
|
-
let
|
|
3052
|
+
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), S = V(() => dn(n.field, n.modelValue, "请选择文件")), j = V(() => pn(n.field, n.modelValue, "请选择文件")), I = V(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
|
|
3053
|
+
let h;
|
|
3054
3054
|
function T(x) {
|
|
3055
3055
|
o("update:modelValue", N(x));
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function p(x) {
|
|
3058
3058
|
o("change", N(x));
|
|
3059
3059
|
}
|
|
3060
3060
|
function N(x) {
|
|
@@ -3064,7 +3064,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3064
3064
|
x && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
3065
3065
|
}
|
|
3066
3066
|
function F(x) {
|
|
3067
|
-
l.value && (
|
|
3067
|
+
l.value && (h && clearTimeout(h), h = setTimeout(() => {
|
|
3068
3068
|
o("loadOptions", { searchText: x });
|
|
3069
3069
|
}, 300));
|
|
3070
3070
|
}
|
|
@@ -3075,19 +3075,19 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3075
3075
|
Fn(x);
|
|
3076
3076
|
}
|
|
3077
3077
|
Un(() => {
|
|
3078
|
-
|
|
3078
|
+
h && clearTimeout(h);
|
|
3079
3079
|
});
|
|
3080
3080
|
function ne(x) {
|
|
3081
3081
|
const R = x.target, D = Array.from(R.files ?? []), B = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3082
|
-
T(B),
|
|
3082
|
+
T(B), p(B);
|
|
3083
3083
|
}
|
|
3084
3084
|
return (x, R) => {
|
|
3085
|
-
const D = Wt, B = Jt, u = Ut,
|
|
3085
|
+
const D = Wt, B = Jt, u = Ut, v = Xn, C = eo, L = Ht;
|
|
3086
3086
|
return s.value === "select" || s.value === "select_remote" ? (k(), H(B, oe({
|
|
3087
3087
|
key: 0,
|
|
3088
3088
|
class: "global-info-field-control"
|
|
3089
3089
|
}, x.field.props, {
|
|
3090
|
-
"model-value":
|
|
3090
|
+
"model-value": b.value,
|
|
3091
3091
|
placeholder: I.value,
|
|
3092
3092
|
disabled: a.value,
|
|
3093
3093
|
"collapse-tags": c.value,
|
|
@@ -3099,7 +3099,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3099
3099
|
clearable: "",
|
|
3100
3100
|
onVisibleChange: y,
|
|
3101
3101
|
"onUpdate:modelValue": T,
|
|
3102
|
-
onChange:
|
|
3102
|
+
onChange: p
|
|
3103
3103
|
}), {
|
|
3104
3104
|
default: J(() => [
|
|
3105
3105
|
(k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), H(D, {
|
|
@@ -3119,8 +3119,8 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3119
3119
|
type: "date",
|
|
3120
3120
|
"value-format": "YYYY-MM-DD",
|
|
3121
3121
|
"onUpdate:modelValue": T,
|
|
3122
|
-
onChange:
|
|
3123
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(
|
|
3122
|
+
onChange: p
|
|
3123
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(v, oe({
|
|
3124
3124
|
key: 2,
|
|
3125
3125
|
class: "global-info-field-control"
|
|
3126
3126
|
}, x.field.props, {
|
|
@@ -3129,7 +3129,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3129
3129
|
disabled: a.value,
|
|
3130
3130
|
"controls-position": "right",
|
|
3131
3131
|
"onUpdate:modelValue": T,
|
|
3132
|
-
onChange:
|
|
3132
|
+
onChange: p
|
|
3133
3133
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), H(C, oe({
|
|
3134
3134
|
key: 3,
|
|
3135
3135
|
class: "global-info-field-control global-info-field-control--switch"
|
|
@@ -3137,7 +3137,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3137
3137
|
"model-value": A.value,
|
|
3138
3138
|
disabled: a.value,
|
|
3139
3139
|
"onUpdate:modelValue": T,
|
|
3140
|
-
onChange:
|
|
3140
|
+
onChange: p
|
|
3141
3141
|
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
|
|
3142
3142
|
key: 4,
|
|
3143
3143
|
class: He(["global-info-field-control global-info-field-control--file", {
|
|
@@ -3169,7 +3169,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3169
3169
|
}, fe(E.text), 9, Ur)) : (k(), Y("span", Hr, fe(E.text), 1)),
|
|
3170
3170
|
q < j.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
|
|
3171
3171
|
], 64))), 128))
|
|
3172
|
-
])) : w.value ? (k(), Y("span", Wr, fe(
|
|
3172
|
+
])) : w.value ? (k(), Y("span", Wr, fe(S.value), 1)) : (k(), Y("span", Zr, "上 传"))
|
|
3173
3173
|
], 2)) : s.value === "empty" ? (k(), H(L, {
|
|
3174
3174
|
key: 5,
|
|
3175
3175
|
class: "global-info-field-control",
|
|
@@ -3183,14 +3183,14 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3183
3183
|
"global-info-field-control--code": s.value === "code"
|
|
3184
3184
|
}]
|
|
3185
3185
|
}, x.field.props, {
|
|
3186
|
-
"model-value":
|
|
3186
|
+
"model-value": m.value,
|
|
3187
3187
|
placeholder: I.value,
|
|
3188
3188
|
disabled: a.value,
|
|
3189
3189
|
type: r.includes(s.value) ? "textarea" : "text",
|
|
3190
3190
|
rows: r.includes(s.value) ? g.value : void 0,
|
|
3191
3191
|
resize: _.value,
|
|
3192
3192
|
"onUpdate:modelValue": T,
|
|
3193
|
-
onChange:
|
|
3193
|
+
onChange: p
|
|
3194
3194
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3195
3195
|
};
|
|
3196
3196
|
}
|
|
@@ -3218,7 +3218,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3218
3218
|
class: "global-info-field-value global-info-field-value--html",
|
|
3219
3219
|
innerHTML: r.value
|
|
3220
3220
|
}, null, 8, Xr)) : n.value === "code" && !o.value ? (k(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ta, [
|
|
3221
|
-
(k(!0), Y(be, null, ge(i.value, (c,
|
|
3221
|
+
(k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
|
|
3222
3222
|
key: c.key
|
|
3223
3223
|
}, [
|
|
3224
3224
|
c.action ? (k(), Y("button", {
|
|
@@ -3227,7 +3227,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3227
3227
|
type: "button",
|
|
3228
3228
|
onClick: (_) => s(c)
|
|
3229
3229
|
}, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
|
|
3230
|
-
|
|
3230
|
+
m < i.value.length - 1 ? (k(), Y("span", ra, "、")) : ue("", !0)
|
|
3231
3231
|
], 64))), 128))
|
|
3232
3232
|
])) : (k(), Y("span", {
|
|
3233
3233
|
key: 3,
|
|
@@ -3290,29 +3290,29 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3290
3290
|
t.renderConfig,
|
|
3291
3291
|
{ values: o.value }
|
|
3292
3292
|
)), s = rn(
|
|
3293
|
-
async (
|
|
3294
|
-
(
|
|
3293
|
+
async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
|
|
3294
|
+
(h) => `${t.section.key}:${S(h)}`
|
|
3295
3295
|
);
|
|
3296
|
-
function l(
|
|
3297
|
-
const
|
|
3298
|
-
(
|
|
3299
|
-
|
|
3300
|
-
}), t.onUpdateModel?.(
|
|
3296
|
+
function l(h, T) {
|
|
3297
|
+
const p = { ...o.value, [h.code]: T };
|
|
3298
|
+
(h.cascadeClearFields ?? []).forEach((N) => {
|
|
3299
|
+
p[N] = "";
|
|
3300
|
+
}), t.onUpdateModel?.(p), t.onUpdateModel || t.actions.updateField(t.section, h, T), a(h, T, p), b(p, h);
|
|
3301
3301
|
}
|
|
3302
|
-
function a(
|
|
3302
|
+
function a(h, T, p) {
|
|
3303
3303
|
const N = t.renderConfig?.onFieldBusinessChange;
|
|
3304
3304
|
if (N)
|
|
3305
3305
|
try {
|
|
3306
|
-
const y = c(
|
|
3307
|
-
field:
|
|
3306
|
+
const y = c(h, T), F = {
|
|
3307
|
+
field: h,
|
|
3308
3308
|
value: T,
|
|
3309
3309
|
section: t.section,
|
|
3310
|
-
model:
|
|
3311
|
-
values:
|
|
3310
|
+
model: p,
|
|
3311
|
+
values: p,
|
|
3312
3312
|
node: t.node,
|
|
3313
3313
|
activeNode: t.node,
|
|
3314
|
-
sections:
|
|
3315
|
-
sectionValues: _(t.section,
|
|
3314
|
+
sections: m(),
|
|
3315
|
+
sectionValues: _(t.section, p),
|
|
3316
3316
|
actions: t.actions,
|
|
3317
3317
|
selectedOption: y[0],
|
|
3318
3318
|
selectedOptions: y
|
|
@@ -3324,47 +3324,47 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3324
3324
|
console.error("[GlobalInfoFormRenderer] field business change failed", y);
|
|
3325
3325
|
}
|
|
3326
3326
|
}
|
|
3327
|
-
function c(
|
|
3328
|
-
const
|
|
3329
|
-
return (
|
|
3327
|
+
function c(h, T) {
|
|
3328
|
+
const p = it(h, T);
|
|
3329
|
+
return (h.options ?? []).filter((N) => p.some((y) => N.value === y || String(N.value) === String(y)));
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function m() {
|
|
3332
3332
|
return Object.values(t.state.sectionMap);
|
|
3333
3333
|
}
|
|
3334
|
-
function _(
|
|
3335
|
-
const N =
|
|
3336
|
-
const F = y.key ===
|
|
3334
|
+
function _(h, T) {
|
|
3335
|
+
const N = m().flatMap((y) => {
|
|
3336
|
+
const F = y.key === h.key ? T : y.renderType === "table" ? y.rows : y.model;
|
|
3337
3337
|
return [y.key, y.id, y.setId, y.infSetId, y.code].filter(Boolean).map((O) => [String(O), F]);
|
|
3338
3338
|
});
|
|
3339
3339
|
return Object.fromEntries(N);
|
|
3340
3340
|
}
|
|
3341
|
-
async function $(
|
|
3342
|
-
const N =
|
|
3343
|
-
if (!Ln(T) && rt(
|
|
3341
|
+
async function $(h, T = {}, p = o.value) {
|
|
3342
|
+
const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
|
|
3343
|
+
if (!Ln(T) && rt(h, O, F)) {
|
|
3344
3344
|
r.set(y, F);
|
|
3345
3345
|
return;
|
|
3346
3346
|
}
|
|
3347
3347
|
try {
|
|
3348
3348
|
if (T.searchText !== void 0) {
|
|
3349
|
-
await s(
|
|
3349
|
+
await s(h, N, T);
|
|
3350
3350
|
return;
|
|
3351
3351
|
}
|
|
3352
|
-
await t.actions.loadFieldOptions(t.section,
|
|
3352
|
+
await t.actions.loadFieldOptions(t.section, h, N, T), r.set(y, F);
|
|
3353
3353
|
} catch (ne) {
|
|
3354
3354
|
console.error("[GlobalInfoFormRenderer] load field options failed", ne);
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
|
-
async function
|
|
3358
|
-
for (const
|
|
3359
|
-
if (T && !Vn(
|
|
3360
|
-
const N =
|
|
3361
|
-
if (!j(
|
|
3362
|
-
const y = ot(t.section.key,
|
|
3363
|
-
if (rt(
|
|
3357
|
+
async function b(h = o.value, T) {
|
|
3358
|
+
for (const p of i.value) {
|
|
3359
|
+
if (T && !Vn(p, T)) continue;
|
|
3360
|
+
const N = h[p.code];
|
|
3361
|
+
if (!j(p, N)) continue;
|
|
3362
|
+
const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
|
|
3363
|
+
if (rt(p, O, y)) {
|
|
3364
3364
|
r.set(F, y);
|
|
3365
3365
|
continue;
|
|
3366
3366
|
}
|
|
3367
|
-
O !== y && await $(
|
|
3367
|
+
O !== y && await $(p, An(p, N), h);
|
|
3368
3368
|
}
|
|
3369
3369
|
}
|
|
3370
3370
|
Be(
|
|
@@ -3375,14 +3375,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3375
3375
|
), Be(
|
|
3376
3376
|
() => t.editing,
|
|
3377
3377
|
() => {
|
|
3378
|
-
|
|
3378
|
+
b();
|
|
3379
3379
|
},
|
|
3380
3380
|
{ immediate: !0 }
|
|
3381
3381
|
);
|
|
3382
|
-
function A(
|
|
3383
|
-
const T = o.value[
|
|
3382
|
+
function A(h) {
|
|
3383
|
+
const T = o.value[h.code];
|
|
3384
3384
|
return {
|
|
3385
|
-
field:
|
|
3385
|
+
field: h,
|
|
3386
3386
|
section: t.section,
|
|
3387
3387
|
sectionView: t.section,
|
|
3388
3388
|
node: t.node,
|
|
@@ -3391,29 +3391,29 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3391
3391
|
value: T,
|
|
3392
3392
|
state: t.state,
|
|
3393
3393
|
actions: t.actions,
|
|
3394
|
-
updateModelValue: (
|
|
3394
|
+
updateModelValue: (p) => l(h, p)
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
|
-
function g(
|
|
3398
|
-
const T = String(
|
|
3399
|
-
if (
|
|
3400
|
-
const N =
|
|
3401
|
-
return N !==
|
|
3397
|
+
function g(h) {
|
|
3398
|
+
const T = String(h.code || "").trim(), p = T ? `field-${T}` : "";
|
|
3399
|
+
if (p && n[p]) return p;
|
|
3400
|
+
const N = p.toLowerCase();
|
|
3401
|
+
return N !== p && n[N] ? N : "";
|
|
3402
3402
|
}
|
|
3403
|
-
function w(
|
|
3404
|
-
return
|
|
3403
|
+
function w(h) {
|
|
3404
|
+
return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3407
|
-
return
|
|
3406
|
+
function S(h) {
|
|
3407
|
+
return h.key || h.id || h.code;
|
|
3408
3408
|
}
|
|
3409
|
-
function j(
|
|
3410
|
-
return Pn(
|
|
3409
|
+
function j(h, T) {
|
|
3410
|
+
return Pn(h, T, t.editing);
|
|
3411
3411
|
}
|
|
3412
|
-
function I(
|
|
3413
|
-
return
|
|
3412
|
+
function I(h) {
|
|
3413
|
+
return h.required || h.isRequired;
|
|
3414
3414
|
}
|
|
3415
|
-
return (
|
|
3416
|
-
const
|
|
3415
|
+
return (h, T) => {
|
|
3416
|
+
const p = Zt, N = no, y = to, F = Qt;
|
|
3417
3417
|
return k(), H(F, {
|
|
3418
3418
|
class: "global-info-form-renderer",
|
|
3419
3419
|
model: o.value,
|
|
@@ -3423,11 +3423,11 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3423
3423
|
we(y, { gutter: 24 }, {
|
|
3424
3424
|
default: J(() => [
|
|
3425
3425
|
(k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
|
|
3426
|
-
key:
|
|
3426
|
+
key: S(O),
|
|
3427
3427
|
span: w(O)
|
|
3428
3428
|
}, {
|
|
3429
3429
|
default: J(() => [
|
|
3430
|
-
we(
|
|
3430
|
+
we(p, oe({
|
|
3431
3431
|
prop: O.code,
|
|
3432
3432
|
ref_for: !0
|
|
3433
3433
|
}, O.formItemProps), {
|
|
@@ -3438,21 +3438,21 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3438
3438
|
])
|
|
3439
3439
|
]),
|
|
3440
3440
|
default: J(() => [
|
|
3441
|
-
g(O) ? ee(
|
|
3441
|
+
g(O) ? ee(h.$slots, g(O), oe({
|
|
3442
3442
|
key: 0,
|
|
3443
3443
|
ref_for: !0
|
|
3444
|
-
}, A(O)), void 0, !0) :
|
|
3444
|
+
}, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), H(Bn, {
|
|
3445
3445
|
key: 1,
|
|
3446
3446
|
field: O,
|
|
3447
3447
|
"model-value": o.value[O.code],
|
|
3448
|
-
section:
|
|
3448
|
+
section: h.section,
|
|
3449
3449
|
onLoadOptions: (z) => $(O, z),
|
|
3450
3450
|
"onUpdate:modelValue": (z) => l(O, z)
|
|
3451
3451
|
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3452
3452
|
key: 2,
|
|
3453
3453
|
field: O,
|
|
3454
3454
|
value: o.value[O.code],
|
|
3455
|
-
section:
|
|
3455
|
+
section: h.section
|
|
3456
3456
|
}, null, 8, ["field", "value", "section"]))
|
|
3457
3457
|
]),
|
|
3458
3458
|
_: 2
|
|
@@ -3523,26 +3523,26 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3523
3523
|
t.renderConfig,
|
|
3524
3524
|
{ rows: t.section.rows, values: t.section.model }
|
|
3525
3525
|
);
|
|
3526
|
-
return r.value ? u.filter((
|
|
3527
|
-
}), c = /* @__PURE__ */ new Map(),
|
|
3528
|
-
async (u,
|
|
3529
|
-
(u,
|
|
3526
|
+
return r.value ? u.filter((v) => !ne(v)) : u;
|
|
3527
|
+
}), c = /* @__PURE__ */ new Map(), m = rn(
|
|
3528
|
+
async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
|
|
3529
|
+
(u, v) => `${t.section.key}:${D(v)}:${O(u)}`
|
|
3530
3530
|
);
|
|
3531
3531
|
function _(u) {
|
|
3532
3532
|
t.actions.deleteRow(t.section, u);
|
|
3533
3533
|
}
|
|
3534
|
-
function $(u,
|
|
3534
|
+
function $(u, v) {
|
|
3535
3535
|
const C = t.renderConfig?.rowDeleteVisibleRule;
|
|
3536
3536
|
return t.showDelete && (typeof C == "function" ? C({
|
|
3537
3537
|
section: t.section,
|
|
3538
3538
|
row: u,
|
|
3539
|
-
rowIndex:
|
|
3539
|
+
rowIndex: v,
|
|
3540
3540
|
node: t.node,
|
|
3541
3541
|
state: t.state,
|
|
3542
3542
|
actions: t.actions
|
|
3543
3543
|
}) : u.allowDelete !== !1);
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3545
|
+
function b(u, v, C, L) {
|
|
3546
3546
|
const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], U = {
|
|
3547
3547
|
...u,
|
|
3548
3548
|
__rowKey: D(u),
|
|
@@ -3550,17 +3550,17 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3550
3550
|
};
|
|
3551
3551
|
q.forEach((G) => {
|
|
3552
3552
|
U[G] = "";
|
|
3553
|
-
}), E[
|
|
3553
|
+
}), E[v] = {
|
|
3554
3554
|
...U
|
|
3555
|
-
}, t.actions.updateTableRows(t.section, E), A(C, L, U,
|
|
3555
|
+
}, t.actions.updateTableRows(t.section, E), A(C, L, U, v, E), I(C, U);
|
|
3556
3556
|
}
|
|
3557
|
-
function A(u,
|
|
3557
|
+
function A(u, v, C, L, E) {
|
|
3558
3558
|
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3559
3559
|
if (q)
|
|
3560
3560
|
try {
|
|
3561
|
-
const U = g(u,
|
|
3561
|
+
const U = g(u, v), G = { ...t.section.model, ...C }, X = {
|
|
3562
3562
|
field: u,
|
|
3563
|
-
value:
|
|
3563
|
+
value: v,
|
|
3564
3564
|
section: t.section,
|
|
3565
3565
|
model: G,
|
|
3566
3566
|
values: G,
|
|
@@ -3570,7 +3570,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3570
3570
|
node: t.node,
|
|
3571
3571
|
activeNode: t.node,
|
|
3572
3572
|
sections: w(),
|
|
3573
|
-
sectionValues:
|
|
3573
|
+
sectionValues: S(t.section, E),
|
|
3574
3574
|
actions: t.actions,
|
|
3575
3575
|
selectedOption: U[0],
|
|
3576
3576
|
selectedOptions: U
|
|
@@ -3582,21 +3582,21 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3582
3582
|
console.error("[GlobalInfoTableRenderer] field business change failed", U);
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
|
-
function g(u,
|
|
3586
|
-
const C = it(u,
|
|
3585
|
+
function g(u, v) {
|
|
3586
|
+
const C = it(u, v);
|
|
3587
3587
|
return (u.options ?? []).filter((L) => C.some((E) => L.value === E || String(L.value) === String(E)));
|
|
3588
3588
|
}
|
|
3589
3589
|
function w() {
|
|
3590
3590
|
return Object.values(t.state.sectionMap);
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3592
|
+
function S(u, v) {
|
|
3593
3593
|
const L = w().flatMap((E) => {
|
|
3594
|
-
const q = E.key === u.key ?
|
|
3594
|
+
const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
|
|
3595
3595
|
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), q]);
|
|
3596
3596
|
});
|
|
3597
3597
|
return Object.fromEntries(L);
|
|
3598
3598
|
}
|
|
3599
|
-
async function j(u,
|
|
3599
|
+
async function j(u, v, C = {}, L = v) {
|
|
3600
3600
|
const E = D(L), q = `${E}:${O(u)}`, U = ot(t.section.key, u, L, E), G = c.get(q);
|
|
3601
3601
|
if (!Ln(C) && rt(u, G, U)) {
|
|
3602
3602
|
c.set(q, U);
|
|
@@ -3604,7 +3604,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
try {
|
|
3606
3606
|
if (C.searchText !== void 0) {
|
|
3607
|
-
await
|
|
3607
|
+
await m(u, L, C);
|
|
3608
3608
|
return;
|
|
3609
3609
|
}
|
|
3610
3610
|
await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, U);
|
|
@@ -3612,8 +3612,8 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3612
3612
|
console.error("[GlobalInfoTableRenderer] load field options failed", P);
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
|
-
async function I(u,
|
|
3616
|
-
const C =
|
|
3615
|
+
async function I(u, v) {
|
|
3616
|
+
const C = v ? [v] : t.section.rows;
|
|
3617
3617
|
for (const L of C) {
|
|
3618
3618
|
const E = D(L);
|
|
3619
3619
|
for (const q of a.value) {
|
|
@@ -3629,34 +3629,34 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
}
|
|
3631
3631
|
}
|
|
3632
|
-
function
|
|
3633
|
-
const L =
|
|
3632
|
+
function h(u, v, C) {
|
|
3633
|
+
const L = v[u.code];
|
|
3634
3634
|
return {
|
|
3635
3635
|
field: u,
|
|
3636
3636
|
section: t.section,
|
|
3637
3637
|
sectionView: t.section,
|
|
3638
3638
|
node: t.node,
|
|
3639
|
-
row:
|
|
3639
|
+
row: v,
|
|
3640
3640
|
rowIndex: C,
|
|
3641
3641
|
editing: t.editing,
|
|
3642
3642
|
modelValue: L,
|
|
3643
3643
|
value: L,
|
|
3644
3644
|
state: t.state,
|
|
3645
3645
|
actions: t.actions,
|
|
3646
|
-
updateModelValue: (E) =>
|
|
3646
|
+
updateModelValue: (E) => b(v, C, u, E)
|
|
3647
3647
|
};
|
|
3648
3648
|
}
|
|
3649
3649
|
function T(u) {
|
|
3650
|
-
const
|
|
3650
|
+
const v = String(u.code || "").trim(), C = v ? `field-${v}` : "";
|
|
3651
3651
|
if (C && n[C]) return C;
|
|
3652
3652
|
const L = C.toLowerCase();
|
|
3653
3653
|
return L !== C && n[L] ? L : "";
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function p(u) {
|
|
3656
3656
|
return !u.readonly && !u.disabled;
|
|
3657
3657
|
}
|
|
3658
|
-
function N(u,
|
|
3659
|
-
return Pn(u,
|
|
3658
|
+
function N(u, v) {
|
|
3659
|
+
return Pn(u, v, t.editing);
|
|
3660
3660
|
}
|
|
3661
3661
|
function y(u) {
|
|
3662
3662
|
return u.width ?? (Bt(u) ? 56 : void 0);
|
|
@@ -3677,8 +3677,8 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3677
3677
|
let x = 0;
|
|
3678
3678
|
const R = /* @__PURE__ */ new WeakMap();
|
|
3679
3679
|
function D(u) {
|
|
3680
|
-
const
|
|
3681
|
-
if (
|
|
3680
|
+
const v = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
|
|
3681
|
+
if (v != null && v !== "") return String(v);
|
|
3682
3682
|
const C = u, L = R.get(C);
|
|
3683
3683
|
if (L) return L;
|
|
3684
3684
|
x += 1;
|
|
@@ -3699,7 +3699,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3699
3699
|
I();
|
|
3700
3700
|
},
|
|
3701
3701
|
{ immediate: !0 }
|
|
3702
|
-
), (u,
|
|
3702
|
+
), (u, v) => {
|
|
3703
3703
|
const C = en, L = Hn("Delete"), E = Yt, q = It, U = Xt;
|
|
3704
3704
|
return k(), Y("div", {
|
|
3705
3705
|
class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
|
|
@@ -3737,7 +3737,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3737
3737
|
T(G) ? ee(u.$slots, T(G), oe({
|
|
3738
3738
|
key: 0,
|
|
3739
3739
|
ref_for: !0
|
|
3740
|
-
},
|
|
3740
|
+
}, h(G, X, P)), void 0, !0) : u.editing && p(G) ? (k(), H(Bn, {
|
|
3741
3741
|
key: 1,
|
|
3742
3742
|
field: G,
|
|
3743
3743
|
"model-value": X[G.code],
|
|
@@ -3745,7 +3745,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3745
3745
|
row: X,
|
|
3746
3746
|
"row-index": P,
|
|
3747
3747
|
onLoadOptions: (Z) => j(G, X, Z),
|
|
3748
|
-
"onUpdate:modelValue": (Z) =>
|
|
3748
|
+
"onUpdate:modelValue": (Z) => b(X, P, G, Z)
|
|
3749
3749
|
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3750
3750
|
key: 2,
|
|
3751
3751
|
field: G,
|
|
@@ -3781,7 +3781,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3781
3781
|
]),
|
|
3782
3782
|
_: 1
|
|
3783
3783
|
}),
|
|
3784
|
-
|
|
3784
|
+
v[0] || (v[0] = Ye(" 删除 "))
|
|
3785
3785
|
]),
|
|
3786
3786
|
_: 1
|
|
3787
3787
|
})
|
|
@@ -3875,7 +3875,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3875
3875
|
a,
|
|
3876
3876
|
c,
|
|
3877
3877
|
"default"
|
|
3878
|
-
].find((
|
|
3878
|
+
].find((m) => !!(m && n[m])) ?? "";
|
|
3879
3879
|
});
|
|
3880
3880
|
function l(a) {
|
|
3881
3881
|
return a === "form" || a === "table" ? a : "";
|
|
@@ -3964,7 +3964,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3964
3964
|
values: y.model,
|
|
3965
3965
|
rows: y.renderType === "table" ? y.rows : void 0
|
|
3966
3966
|
}) : [];
|
|
3967
|
-
}),
|
|
3967
|
+
}), m = V(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = V(() => !!(a.value && t.actions.isEditing(a.value))), $ = V(() => a.value?.renderType === "table"), b = V(() => o.value || l.value.loading), A = V(() => S(r.value || l.value.error)), g = V(() => {
|
|
3968
3968
|
const y = a.value;
|
|
3969
3969
|
return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
|
|
3970
3970
|
}), w = V(() => ({
|
|
@@ -3973,9 +3973,9 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3973
3973
|
sectionView: a.value,
|
|
3974
3974
|
fields: c.value,
|
|
3975
3975
|
renderConfig: t.renderConfig,
|
|
3976
|
-
title:
|
|
3976
|
+
title: m.value,
|
|
3977
3977
|
editing: _.value,
|
|
3978
|
-
loading:
|
|
3978
|
+
loading: b.value,
|
|
3979
3979
|
error: r.value || l.value.error,
|
|
3980
3980
|
errorMessage: A.value,
|
|
3981
3981
|
isEmpty: g.value,
|
|
@@ -3986,10 +3986,10 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3986
3986
|
reload: N,
|
|
3987
3987
|
handleEdit: j,
|
|
3988
3988
|
handleCancel: I,
|
|
3989
|
-
handleAddTableRow:
|
|
3989
|
+
handleAddTableRow: h,
|
|
3990
3990
|
handleSave: T
|
|
3991
3991
|
}));
|
|
3992
|
-
function
|
|
3992
|
+
function S(y) {
|
|
3993
3993
|
return y ? y instanceof Error ? y.message : String(y) : "";
|
|
3994
3994
|
}
|
|
3995
3995
|
async function j() {
|
|
@@ -4000,7 +4000,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4000
4000
|
const y = a.value;
|
|
4001
4001
|
y && (await t.onCancel?.(y, t.node), t.onCancel || t.actions.cancelEdit(y));
|
|
4002
4002
|
}
|
|
4003
|
-
function
|
|
4003
|
+
function h() {
|
|
4004
4004
|
const y = a.value;
|
|
4005
4005
|
if (!y) return;
|
|
4006
4006
|
const F = y.fields.reduce((O, z) => (O[z.code] = z.value ?? "", O), { __rowKey: `new-${Date.now()}` });
|
|
@@ -4019,7 +4019,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4019
4019
|
r.value = F, console.error("[GlobalInfoSectionBlock] save section failed", F);
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function p(y) {
|
|
4023
4023
|
r.value = y;
|
|
4024
4024
|
}
|
|
4025
4025
|
async function N() {
|
|
@@ -4046,7 +4046,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4046
4046
|
ee(y.$slots, "header", Me(Fe(w.value)), () => [
|
|
4047
4047
|
te("div", Ia, [
|
|
4048
4048
|
F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
4049
|
-
te("h3", _a, fe(
|
|
4049
|
+
te("h3", _a, fe(m.value), 1)
|
|
4050
4050
|
]),
|
|
4051
4051
|
ee(y.$slots, "actions", Me(Fe(w.value)), () => [
|
|
4052
4052
|
a.value ? (k(), Y("div", $a, [
|
|
@@ -4065,7 +4065,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4065
4065
|
key: 0,
|
|
4066
4066
|
class: "global-info-section-block__add",
|
|
4067
4067
|
disabled: l.value.saving,
|
|
4068
|
-
onClick:
|
|
4068
|
+
onClick: h
|
|
4069
4069
|
}, {
|
|
4070
4070
|
default: J(() => F[3] || (F[3] = [
|
|
4071
4071
|
Ye(" 新增 ")
|
|
@@ -4085,7 +4085,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4085
4085
|
], 64)) : (k(), H(O, {
|
|
4086
4086
|
key: 0,
|
|
4087
4087
|
class: "global-info-section-block__edit",
|
|
4088
|
-
disabled: l.value.saving ||
|
|
4088
|
+
disabled: l.value.saving || b.value,
|
|
4089
4089
|
onClick: j
|
|
4090
4090
|
}, {
|
|
4091
4091
|
default: J(() => F[1] || (F[1] = [
|
|
@@ -4109,15 +4109,15 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4109
4109
|
], !0)
|
|
4110
4110
|
])),
|
|
4111
4111
|
te("div", Ca, [
|
|
4112
|
-
|
|
4112
|
+
b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
|
|
4113
4113
|
F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
|
|
4114
4114
|
], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
|
|
4115
4115
|
F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
4116
4116
|
], !0) : (k(), H(ba, {
|
|
4117
4117
|
key: 2,
|
|
4118
4118
|
"boundary-key": y.node.key,
|
|
4119
|
-
label:
|
|
4120
|
-
onError:
|
|
4119
|
+
label: m.value,
|
|
4120
|
+
onError: p
|
|
4121
4121
|
}, {
|
|
4122
4122
|
fallback: J(() => [
|
|
4123
4123
|
ee(y.$slots, "empty", Me(Fe(w.value)), () => [
|
|
@@ -4160,7 +4160,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4160
4160
|
},
|
|
4161
4161
|
setup(e) {
|
|
4162
4162
|
const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
|
|
4163
|
-
function i(c,
|
|
4163
|
+
function i(c, m) {
|
|
4164
4164
|
const _ = t.actions.getSection(c);
|
|
4165
4165
|
return {
|
|
4166
4166
|
node: c,
|
|
@@ -4171,7 +4171,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4171
4171
|
state: t.state,
|
|
4172
4172
|
actions: t.actions,
|
|
4173
4173
|
renderConfig: t.renderConfig,
|
|
4174
|
-
index:
|
|
4174
|
+
index: m,
|
|
4175
4175
|
editing: !!(_ && t.actions.isEditing(_)),
|
|
4176
4176
|
sectionStatus: t.actions.getSectionStatus(c),
|
|
4177
4177
|
isSelfSection: l(c, 0) === l(t.group, 0),
|
|
@@ -4181,16 +4181,16 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4181
4181
|
};
|
|
4182
4182
|
}
|
|
4183
4183
|
function s(c) {
|
|
4184
|
-
const
|
|
4185
|
-
return Ct(n, "section", Nn(c,
|
|
4184
|
+
const m = t.actions.getSection(c);
|
|
4185
|
+
return Ct(n, "section", Nn(c, m));
|
|
4186
4186
|
}
|
|
4187
|
-
function l(c,
|
|
4188
|
-
return c.key || c.id || c.infSetId || c.tagId || `${
|
|
4187
|
+
function l(c, m) {
|
|
4188
|
+
return c.key || c.id || c.infSetId || c.tagId || `${m}`;
|
|
4189
4189
|
}
|
|
4190
4190
|
function a(c) {
|
|
4191
4191
|
return `global-info-section-${l(c, 0)}`;
|
|
4192
4192
|
}
|
|
4193
|
-
return (c,
|
|
4193
|
+
return (c, m) => (k(), Y("section", Ta, [
|
|
4194
4194
|
ee(c.$slots, "header", {
|
|
4195
4195
|
group: c.group,
|
|
4196
4196
|
children: c.children,
|
|
@@ -4202,7 +4202,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4202
4202
|
isEmpty: c.children.length === 0
|
|
4203
4203
|
}, () => [
|
|
4204
4204
|
te("header", Oa, [
|
|
4205
|
-
|
|
4205
|
+
m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4206
4206
|
te("h2", Da, fe(o.value), 1)
|
|
4207
4207
|
])
|
|
4208
4208
|
], !0),
|
|
@@ -4236,7 +4236,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4236
4236
|
"hide-header": r.value,
|
|
4237
4237
|
"render-config": c.renderConfig
|
|
4238
4238
|
}, je({ _: 2 }, [
|
|
4239
|
-
ge(re(n), (
|
|
4239
|
+
ge(re(n), (b, A) => ({
|
|
4240
4240
|
name: A,
|
|
4241
4241
|
fn: J((g) => [
|
|
4242
4242
|
ee(c.$slots, A, oe({ ref_for: !0 }, g), void 0, !0)
|
|
@@ -4254,7 +4254,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4254
4254
|
index: -1,
|
|
4255
4255
|
renderConfig: c.renderConfig
|
|
4256
4256
|
}, () => [
|
|
4257
|
-
|
|
4257
|
+
m[1] || (m[1] = te("div", { class: "global-info-group__empty" }, "暂无数据", -1))
|
|
4258
4258
|
], !0) : ue("", !0)
|
|
4259
4259
|
], 64))
|
|
4260
4260
|
])
|
|
@@ -4271,81 +4271,81 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4271
4271
|
},
|
|
4272
4272
|
setup(e) {
|
|
4273
4273
|
const t = e, n = Ee(), o = V(() => {
|
|
4274
|
-
const
|
|
4274
|
+
const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
|
|
4275
4275
|
if (A.length === 0)
|
|
4276
|
-
return $.length > 0 ? g : c(
|
|
4277
|
-
const w = c(
|
|
4276
|
+
return $.length > 0 ? g : c(b);
|
|
4277
|
+
const w = c(b);
|
|
4278
4278
|
return [...A, ...g, ...w];
|
|
4279
4279
|
});
|
|
4280
|
-
function r(
|
|
4281
|
-
return
|
|
4280
|
+
function r(m) {
|
|
4281
|
+
return m.children ?? [];
|
|
4282
4282
|
}
|
|
4283
|
-
function i(
|
|
4284
|
-
return !String(
|
|
4283
|
+
function i(m) {
|
|
4284
|
+
return !String(m.parentId || m.parentTagId || "").trim();
|
|
4285
4285
|
}
|
|
4286
|
-
function s(
|
|
4287
|
-
return Ct(n, "group", jn(
|
|
4286
|
+
function s(m) {
|
|
4287
|
+
return Ct(n, "group", jn(m));
|
|
4288
4288
|
}
|
|
4289
|
-
function l(
|
|
4290
|
-
return
|
|
4289
|
+
function l(m, _) {
|
|
4290
|
+
return m.key || m.id || m.tagId || `${_}`;
|
|
4291
4291
|
}
|
|
4292
|
-
function a(
|
|
4293
|
-
const _ =
|
|
4292
|
+
function a(m) {
|
|
4293
|
+
const _ = m[0], $ = _?.raw ?? {}, b = String($.parentTagName || $.parentName || $.parentLabel || _?.parentId || "信息");
|
|
4294
4294
|
return {
|
|
4295
4295
|
..._,
|
|
4296
4296
|
key: `${_?.parentId || _?.parentTagId || _?.key || "global-info"}-group`,
|
|
4297
4297
|
id: String(_?.parentId || _?.parentTagId || _?.id || "global-info-group"),
|
|
4298
4298
|
tagId: String(_?.parentTagId || _?.parentId || _?.tagId || "global-info-group"),
|
|
4299
|
-
tagName:
|
|
4300
|
-
label:
|
|
4301
|
-
children:
|
|
4299
|
+
tagName: b,
|
|
4300
|
+
label: b,
|
|
4301
|
+
children: m
|
|
4302
4302
|
};
|
|
4303
4303
|
}
|
|
4304
|
-
function c(
|
|
4304
|
+
function c(m) {
|
|
4305
4305
|
const _ = /* @__PURE__ */ new Map();
|
|
4306
|
-
return
|
|
4307
|
-
const
|
|
4308
|
-
A.push($), _.set(
|
|
4306
|
+
return m.forEach(($) => {
|
|
4307
|
+
const b = String($.parentId || $.parentTagId || "global-info-flat"), A = _.get(b) ?? [];
|
|
4308
|
+
A.push($), _.set(b, A);
|
|
4309
4309
|
}), Array.from(_.values()).map(($) => ({
|
|
4310
4310
|
group: a($),
|
|
4311
4311
|
children: $
|
|
4312
4312
|
}));
|
|
4313
4313
|
}
|
|
4314
|
-
return (
|
|
4315
|
-
(k(!0), Y(be, null, ge(o.value, ($,
|
|
4316
|
-
key: l($.group,
|
|
4314
|
+
return (m, _) => (k(), Y("div", Va, [
|
|
4315
|
+
(k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
|
|
4316
|
+
key: l($.group, b)
|
|
4317
4317
|
}, [
|
|
4318
|
-
s($.group) ? ee(
|
|
4318
|
+
s($.group) ? ee(m.$slots, s($.group), {
|
|
4319
4319
|
key: 0,
|
|
4320
4320
|
group: $.group,
|
|
4321
4321
|
children: $.children,
|
|
4322
|
-
state:
|
|
4323
|
-
actions:
|
|
4324
|
-
renderConfig:
|
|
4325
|
-
index:
|
|
4322
|
+
state: m.state,
|
|
4323
|
+
actions: m.actions,
|
|
4324
|
+
renderConfig: m.renderConfig,
|
|
4325
|
+
index: b,
|
|
4326
4326
|
isEmpty: $.children.length === 0
|
|
4327
|
-
}, void 0, !0) : re(n).group ? ee(
|
|
4327
|
+
}, void 0, !0) : re(n).group ? ee(m.$slots, "group", {
|
|
4328
4328
|
key: 1,
|
|
4329
4329
|
group: $.group,
|
|
4330
4330
|
children: $.children,
|
|
4331
|
-
state:
|
|
4332
|
-
actions:
|
|
4333
|
-
renderConfig:
|
|
4334
|
-
index:
|
|
4331
|
+
state: m.state,
|
|
4332
|
+
actions: m.actions,
|
|
4333
|
+
renderConfig: m.renderConfig,
|
|
4334
|
+
index: b,
|
|
4335
4335
|
isEmpty: $.children.length === 0
|
|
4336
4336
|
}, void 0, !0) : (k(), H(La, {
|
|
4337
4337
|
key: 2,
|
|
4338
4338
|
group: $.group,
|
|
4339
4339
|
children: $.children,
|
|
4340
|
-
state:
|
|
4341
|
-
actions:
|
|
4342
|
-
"render-config":
|
|
4343
|
-
index:
|
|
4340
|
+
state: m.state,
|
|
4341
|
+
actions: m.actions,
|
|
4342
|
+
"render-config": m.renderConfig,
|
|
4343
|
+
index: b
|
|
4344
4344
|
}, je({ _: 2 }, [
|
|
4345
4345
|
ge(re(n), (A, g) => ({
|
|
4346
4346
|
name: g,
|
|
4347
4347
|
fn: J((w) => [
|
|
4348
|
-
ee(
|
|
4348
|
+
ee(m.$slots, g, oe({ ref_for: !0 }, w), void 0, !0)
|
|
4349
4349
|
])
|
|
4350
4350
|
}))
|
|
4351
4351
|
]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
|