@farris/ui-vue 1.6.0-beta.7 → 1.6.0-beta.8
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/components/data-view/index.esm.js +544 -538
- package/components/data-view/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -0
- package/components/list-view/index.esm.js +11593 -0
- package/components/list-view/index.umd.cjs +20 -0
- package/components/list-view/package.json +8 -0
- package/components/list-view/style.js +2 -0
- package/components/response-layout/index.css +1 -0
- package/components/response-layout/index.esm.js +11551 -0
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout/package.json +8 -0
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +11122 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +250 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +377 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +17851 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +2228 -0
- package/designer/drawer/index.umd.cjs +6 -0
- package/designer/farris-designer.all.esm.js +26343 -0
- package/designer/farris-designer.all.umd.cjs +32 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1035 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +12472 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/farris.all.esm.js +2254 -2248
- package/farris.all.umd.cjs +13 -13
- package/package.json +1 -1
- package/types/chs.d.ts +0 -494
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var yo = Object.defineProperty;
|
|
2
2
|
var bo = (e, t, n) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => bo(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { createVNode as V, resolveComponent as
|
|
5
|
-
import { useI18n as
|
|
4
|
+
import { createVNode as V, resolveComponent as pt, isVNode as Xt, ref as B, nextTick as Pt, computed as L, inject as wt, Fragment as It, watch as Se, createTextVNode as vt, withDirectives as xn, vModelCheckbox as Co, defineComponent as st, reactive as Ct, createApp as Fn, onUnmounted as Jt, onMounted as Rt, Transition as Tn, mergeProps as Et, onBeforeUnmount as kn, resolveDirective as wo, provide as _o, triggerRef as So, onBeforeMount as xo, Teleport as Fo, shallowRef as To, render as Zt, h as ko, cloneVNode as Eo } from "vue";
|
|
5
|
+
import { useI18n as nt } from "vue-i18n";
|
|
6
6
|
import Oo, { F_MODAL_SERVICE_TOKEN as Mo } from "../modal/index.esm.js";
|
|
7
|
-
import { cloneDeep as _t, isUndefined as
|
|
7
|
+
import { cloneDeep as _t, isUndefined as mt, isPlainObject as vn, throttle as Io } from "lodash-es";
|
|
8
8
|
import En from "../transfer/index.esm.js";
|
|
9
9
|
import On, { FTabPage as Vo } from "../tabs/index.esm.js";
|
|
10
10
|
import { FCheckbox as nn } from "../checkbox/index.esm.js";
|
|
11
|
-
import { useArrayProcessor as sn, useCommonUtils as Lt, useGuid as Bo, useNumberFormat as Mn, resolveField as
|
|
11
|
+
import { useArrayProcessor as sn, useCommonUtils as Lt, useGuid as Bo, useNumberFormat as Mn, resolveField as tt, useDateFormat as un, FormSchemaEntityField$Type as hn, FormSchemaEntityFieldTypeName as gn, getCustomClass as Kt, withInstall as No, setFieldValue as on } from "../common/index.esm.js";
|
|
12
12
|
import Po, { FFilterBar as Ro } from "../filter-bar/index.esm.js";
|
|
13
13
|
import "../tooltip/index.esm.js";
|
|
14
14
|
import In from "../pagination/index.esm.js";
|
|
@@ -129,7 +129,7 @@ function en(e) {
|
|
|
129
129
|
function Pi(e, t, n, o, i, a, r) {
|
|
130
130
|
const {
|
|
131
131
|
t: s
|
|
132
|
-
} =
|
|
132
|
+
} = nt(), l = [{
|
|
133
133
|
name: s("datagrid.settings.asc"),
|
|
134
134
|
value: "asc",
|
|
135
135
|
icon: "f-icon f-icon-col-ascendingorder"
|
|
@@ -184,7 +184,7 @@ function Pi(e, t, n, o, i, a, r) {
|
|
|
184
184
|
class: "fv-column-sort-filter-container"
|
|
185
185
|
}, [V("div", {
|
|
186
186
|
class: "fv-column-sort-section"
|
|
187
|
-
}, [V(
|
|
187
|
+
}, [V(pt("f-capsule"), {
|
|
188
188
|
items: l,
|
|
189
189
|
modelValue: y.sortType,
|
|
190
190
|
"onUpdate:modelValue": (S) => y.sortType = S,
|
|
@@ -199,7 +199,7 @@ function Pi(e, t, n, o, i, a, r) {
|
|
|
199
199
|
class: "fv-column-sort-filter-footer"
|
|
200
200
|
}, [V("div", {
|
|
201
201
|
class: "fv-column-clear-section"
|
|
202
|
-
}, [V(
|
|
202
|
+
}, [V(pt("f-button"), {
|
|
203
203
|
style: "margin: 5px 0;padding-left: 0;",
|
|
204
204
|
type: "link",
|
|
205
205
|
onClick: (S) => u(S, y)
|
|
@@ -207,7 +207,7 @@ function Pi(e, t, n, o, i, a, r) {
|
|
|
207
207
|
default: () => [c]
|
|
208
208
|
})]), V("div", {
|
|
209
209
|
class: "fv-column-confirm-section"
|
|
210
|
-
}, [V(
|
|
210
|
+
}, [V(pt("f-button"), {
|
|
211
211
|
customClass: {
|
|
212
212
|
"f-btn-ml": !0
|
|
213
213
|
},
|
|
@@ -215,7 +215,7 @@ function Pi(e, t, n, o, i, a, r) {
|
|
|
215
215
|
onClick: (S) => f(S, y)
|
|
216
216
|
}, en(F = s("datagrid.filter.ok")) ? F : {
|
|
217
217
|
default: () => [F]
|
|
218
|
-
}), V(
|
|
218
|
+
}), V(pt("f-button"), {
|
|
219
219
|
size: "small",
|
|
220
220
|
type: "secondary",
|
|
221
221
|
onClick: (S) => C(S, y)
|
|
@@ -280,7 +280,7 @@ function Di(e, t, n, o, i, a, r, s, l, m, v) {
|
|
|
280
280
|
}
|
|
281
281
|
function g(T) {
|
|
282
282
|
let O;
|
|
283
|
-
return V(
|
|
283
|
+
return V(pt("f-popover"), {
|
|
284
284
|
ref: S,
|
|
285
285
|
class: "fv-column-handler-popover",
|
|
286
286
|
"z-index": 10,
|
|
@@ -481,7 +481,7 @@ function Wi(e, t, n, o, i, a, r, s, l, m, v) {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function Hi(e, t, n, o, i, a, r, s, l) {
|
|
484
|
-
const m = wt(Mo), v =
|
|
484
|
+
const m = wt(Mo), v = nt();
|
|
485
485
|
function u(h) {
|
|
486
486
|
const {
|
|
487
487
|
openSettingPanel: f
|
|
@@ -571,14 +571,14 @@ function Md(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C, b, y) {
|
|
|
571
571
|
dragover: $,
|
|
572
572
|
dragend: A
|
|
573
573
|
} = s, K = L(() => x.value || O.value || T.value), fe = U.value.defaultColumnWidth, xe = 32, we = /* @__PURE__ */ new Map([[0, 0]]), be = L(() => e.showHeader);
|
|
574
|
-
function Me(ye,
|
|
575
|
-
const
|
|
574
|
+
function Me(ye, Ae) {
|
|
575
|
+
const Le = we.get(Ae) || 0, je = {
|
|
576
576
|
height: `${ye.depth * xe}px`,
|
|
577
577
|
left: `${ye.left}px`,
|
|
578
578
|
top: `${(ye.layer - 1) * xe}px`,
|
|
579
579
|
width: `${ye.actualWidth}px`
|
|
580
580
|
};
|
|
581
|
-
return U.value.headerDepth > 1 && (
|
|
581
|
+
return U.value.headerDepth > 1 && (je["line-height"] = `${ye.depth * xe}px`), e.showBorder && (je.border = "1px solid #e6e9f0"), we.set(Ae + 1, Le + (ye.actualWidth || fe)), je;
|
|
582
582
|
}
|
|
583
583
|
const Q = L(() => ({
|
|
584
584
|
"fv-grid-header": !0,
|
|
@@ -600,78 +600,84 @@ function Md(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C, b, y) {
|
|
|
600
600
|
} = Di(e, n, o, i, a, r, l, m, v, _, C), Ge = function(ye) {
|
|
601
601
|
return e.showSetting && !!ye.showSetting;
|
|
602
602
|
}, {
|
|
603
|
-
renderGridSettingsIcon:
|
|
603
|
+
renderGridSettingsIcon: Je
|
|
604
604
|
} = Hi(e, n, b, a, r, m, u, _, C);
|
|
605
605
|
function re(ye) {
|
|
606
|
-
var
|
|
607
|
-
const
|
|
606
|
+
var Le;
|
|
607
|
+
const Ae = {
|
|
608
608
|
"fv-grid-header-cell": !0,
|
|
609
609
|
"fv-grid-header-cell-border": e.showBorder
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return Ae["text-" + (((Le = ye.column) == null ? void 0 : Le.halign) || "left")] = !0, Ae;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function he(ye) {
|
|
614
614
|
I.value = !1;
|
|
615
|
-
const
|
|
616
|
-
ye ? (g(),
|
|
617
|
-
S(
|
|
618
|
-
})) : (p(),
|
|
619
|
-
w(
|
|
615
|
+
const Ae = y.value.map((je) => je.raw), Le = c(F.value, Ae);
|
|
616
|
+
ye ? (g(), Le.forEach((je) => {
|
|
617
|
+
S(je);
|
|
618
|
+
})) : (p(), Le.forEach((je) => {
|
|
619
|
+
w(je);
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
|
|
622
|
+
function Re(ye) {
|
|
623
|
+
return V("span", {
|
|
624
|
+
class: "fv-column-title",
|
|
625
|
+
title: ye.title
|
|
626
|
+
}, [ye.title]);
|
|
627
|
+
}
|
|
628
|
+
function ze(ye, Ae, Le) {
|
|
629
|
+
var je, ut, ct, ae;
|
|
624
630
|
return V("div", {
|
|
625
631
|
class: re(ye),
|
|
626
|
-
style: Me(ye,
|
|
632
|
+
style: Me(ye, Le),
|
|
627
633
|
draggable: ye.draggable,
|
|
628
|
-
onDragstart: (
|
|
629
|
-
onDragenter: (
|
|
630
|
-
onDragend: (
|
|
631
|
-
onDragover: (
|
|
634
|
+
onDragstart: (pe) => te(pe, ye, Le),
|
|
635
|
+
onDragenter: (pe) => Y(pe, Le),
|
|
636
|
+
onDragend: (pe) => A(pe, ye),
|
|
637
|
+
onDragover: (pe) => $(pe, Le)
|
|
632
638
|
}, [t.slots.headerCellTemplate ? t.slots.headerCellTemplate({
|
|
633
639
|
headerCell: ye,
|
|
634
|
-
headerCells:
|
|
635
|
-
columnIndex:
|
|
636
|
-
}) : (
|
|
640
|
+
headerCells: Ae,
|
|
641
|
+
columnIndex: Le
|
|
642
|
+
}) : (je = ye.column) != null && je.headerFormatter ? (ct = (ut = ye.column).headerFormatter) == null ? void 0 : ct.call(ut, {
|
|
637
643
|
headerCell: ye,
|
|
638
|
-
headerCells:
|
|
639
|
-
columnIndex:
|
|
640
|
-
}) : V("span", {
|
|
644
|
+
headerCells: Ae,
|
|
645
|
+
columnIndex: Le
|
|
646
|
+
}) : (ae = ye.column) != null && ae.showTips ? Re(ye) : V("span", {
|
|
641
647
|
class: "fv-column-title"
|
|
642
|
-
}, [ye.title]), Fe(ye) && Te(ye,
|
|
648
|
+
}, [ye.title]), Fe(ye) && Te(ye, Le, Ae), Ge(ye) && Je(), ye.resizable && V("span", {
|
|
643
649
|
class: "fv-column-resize-bar",
|
|
644
|
-
onMousedown: (
|
|
650
|
+
onMousedown: (pe) => R(pe, ye.field)
|
|
645
651
|
}, null)]);
|
|
646
652
|
}
|
|
647
|
-
function
|
|
648
|
-
return ye.map((
|
|
649
|
-
const
|
|
650
|
-
if (
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
+
function Ne(ye) {
|
|
654
|
+
return ye.map((Ae, Le) => {
|
|
655
|
+
const je = [];
|
|
656
|
+
if (je.push(ze(Ae, ye, Le)), Ae.children && Ae.children.length) {
|
|
657
|
+
const ut = Ne(Ae.children);
|
|
658
|
+
je.push(...ut);
|
|
653
659
|
}
|
|
654
|
-
return
|
|
660
|
+
return je;
|
|
655
661
|
});
|
|
656
662
|
}
|
|
657
|
-
function
|
|
663
|
+
function ee() {
|
|
658
664
|
return V("div", {
|
|
659
665
|
class: "fv-grid-header-left-fixed"
|
|
660
666
|
}, [V("div", {
|
|
661
667
|
class: "fv-grid-header-columns",
|
|
662
668
|
style: G.value
|
|
663
|
-
}, [
|
|
669
|
+
}, [Ne(U.value.leftHeaderColumns)])]);
|
|
664
670
|
}
|
|
665
|
-
function
|
|
671
|
+
function _e() {
|
|
666
672
|
return V("div", {
|
|
667
673
|
class: "fv-grid-header-right-fixed"
|
|
668
674
|
}, [V("div", {
|
|
669
675
|
class: "fv-grid-header-columns",
|
|
670
676
|
style: q.value
|
|
671
|
-
}, [
|
|
677
|
+
}, [Ne(U.value.rightHeaderColumns)])]);
|
|
672
678
|
}
|
|
673
679
|
L(() => E.value.length > 0 && y.value.length !== E.value.length);
|
|
674
|
-
function
|
|
680
|
+
function He() {
|
|
675
681
|
return V("div", {
|
|
676
682
|
class: "fv-grid-header-corner d-flex",
|
|
677
683
|
style: W.value
|
|
@@ -682,7 +688,7 @@ function Md(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C, b, y) {
|
|
|
682
688
|
checked: k.value,
|
|
683
689
|
"onUpdate:checked": (ye) => k.value = ye,
|
|
684
690
|
indeterminate: I.value,
|
|
685
|
-
onChangeValue:
|
|
691
|
+
onChangeValue: he
|
|
686
692
|
}, null)]), O.value && !x.value && !e.hierarchy && V("div", {
|
|
687
693
|
class: "d-inline-flex align-items-center",
|
|
688
694
|
style: {
|
|
@@ -702,18 +708,18 @@ function Md(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C, b, y) {
|
|
|
702
708
|
}
|
|
703
709
|
}, [M.value])])]);
|
|
704
710
|
}
|
|
705
|
-
function
|
|
711
|
+
function Be() {
|
|
706
712
|
return V("div", {
|
|
707
713
|
class: Q.value,
|
|
708
714
|
style: ie.value
|
|
709
|
-
}, [K.value &&
|
|
715
|
+
}, [K.value && He(), H.value && ee(), V("div", {
|
|
710
716
|
class: "fv-grid-header-primary"
|
|
711
717
|
}, [V("div", {
|
|
712
718
|
class: "fv-grid-header-columns",
|
|
713
719
|
style: z.value
|
|
714
|
-
}, [
|
|
720
|
+
}, [Ne(U.value.primaryHeaderColumns)])]), D.value && _e()]);
|
|
715
721
|
}
|
|
716
|
-
function
|
|
722
|
+
function ot() {
|
|
717
723
|
return V(It, null, [V("div", {
|
|
718
724
|
class: "fv-datagrid-resize-overlay",
|
|
719
725
|
style: j.value
|
|
@@ -723,8 +729,8 @@ function Md(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C, b, y) {
|
|
|
723
729
|
}, null)]);
|
|
724
730
|
}
|
|
725
731
|
return {
|
|
726
|
-
renderGridHeader:
|
|
727
|
-
renderGridColumnResizeOverlay:
|
|
732
|
+
renderGridHeader: Be,
|
|
733
|
+
renderGridColumnResizeOverlay: ot,
|
|
728
734
|
shouldShowHeader: be
|
|
729
735
|
};
|
|
730
736
|
}
|
|
@@ -814,7 +820,7 @@ function Bd(e, t, n, o, i) {
|
|
|
814
820
|
class: "fv-grid-group-panel",
|
|
815
821
|
onDrop: a,
|
|
816
822
|
onDragover: d
|
|
817
|
-
}, [r.value && V(
|
|
823
|
+
}, [r.value && V(pt("f-tags"), {
|
|
818
824
|
ref: v,
|
|
819
825
|
style: "margin:0.375rem",
|
|
820
826
|
"tag-type": "default",
|
|
@@ -928,7 +934,7 @@ function $i(e, t, n) {
|
|
|
928
934
|
}), u;
|
|
929
935
|
}
|
|
930
936
|
function m(v) {
|
|
931
|
-
const u = v.raw.__fv_parent_index__ === void 0 || v.raw.__fv_parent_index__ === -1, h = u ? 0 : 8, f = 0, _ = v.raw[o.value], C = `${v.layer * 10 + v.layer * h + f}px`, b = v.visible ||
|
|
937
|
+
const u = v.raw.__fv_parent_index__ === void 0 || v.raw.__fv_parent_index__ === -1, h = u ? 0 : 8, f = 0, _ = v.raw[o.value], C = `${v.layer * 10 + v.layer * h + f}px`, b = v.visible || mt(v.visible) ? {
|
|
932
938
|
paddingLeft: `calc(${C})`,
|
|
933
939
|
// paddingLeft,
|
|
934
940
|
background: s(v.index),
|
|
@@ -1033,139 +1039,139 @@ function Ui(e, t, n, o, i, a, r, s, l, m, v, u, d) {
|
|
|
1033
1039
|
} = $i(e, o, r), {
|
|
1034
1040
|
treeNodeIconsClass: z
|
|
1035
1041
|
} = Ai(e, p, E);
|
|
1036
|
-
function G(re,
|
|
1037
|
-
const
|
|
1042
|
+
function G(re, he) {
|
|
1043
|
+
const Re = re.raw[E.value];
|
|
1038
1044
|
return {
|
|
1039
|
-
"fv-tree-node-toggle":
|
|
1040
|
-
"fv-tree-node-toggle-minus":
|
|
1045
|
+
"fv-tree-node-toggle": Re && re.collapse,
|
|
1046
|
+
"fv-tree-node-toggle-minus": Re && !re.collapse
|
|
1041
1047
|
};
|
|
1042
1048
|
}
|
|
1043
1049
|
function q(re) {
|
|
1044
1050
|
return re.collapse && e.loadData ? e.loadData(re) : Promise.resolve();
|
|
1045
1051
|
}
|
|
1046
1052
|
function te(re) {
|
|
1047
|
-
return (re || []).some((
|
|
1053
|
+
return (re || []).some((he) => Xt(he) ? !(he.type === Comment || he.type === It && !te(he.children)) : !0) ? re : null;
|
|
1048
1054
|
}
|
|
1049
|
-
function Y(re,
|
|
1050
|
-
re.stopPropagation(), q(
|
|
1051
|
-
T(
|
|
1055
|
+
function Y(re, he) {
|
|
1056
|
+
re.stopPropagation(), q(he).then(() => {
|
|
1057
|
+
T(he);
|
|
1052
1058
|
});
|
|
1053
1059
|
}
|
|
1054
1060
|
function $(re) {
|
|
1055
1061
|
re.stopPropagation();
|
|
1056
1062
|
}
|
|
1057
|
-
function A(re,
|
|
1063
|
+
function A(re, he) {
|
|
1058
1064
|
return V("div", {
|
|
1059
1065
|
class: G(re),
|
|
1060
|
-
onClick: (
|
|
1066
|
+
onClick: (Re) => Y(Re, re),
|
|
1061
1067
|
onDblclick: $
|
|
1062
1068
|
}, null);
|
|
1063
1069
|
}
|
|
1064
|
-
function K(re,
|
|
1070
|
+
function K(re, he) {
|
|
1065
1071
|
return I.value && V("div", {
|
|
1066
1072
|
id: "treeNodeIcons",
|
|
1067
|
-
class: z(re,
|
|
1073
|
+
class: z(re, he)
|
|
1068
1074
|
}, null);
|
|
1069
1075
|
}
|
|
1070
1076
|
function fe(re) {
|
|
1071
1077
|
F.value ? (re.checked ? x(re) : S(re), O(re)) : w(re), g();
|
|
1072
1078
|
}
|
|
1073
|
-
function xe(re,
|
|
1079
|
+
function xe(re, he) {
|
|
1074
1080
|
return k.value && V(nn, {
|
|
1075
|
-
id: "checkbox_for_" + M(re,
|
|
1081
|
+
id: "checkbox_for_" + M(re, he.index),
|
|
1076
1082
|
indeterminate: re.indeterminate,
|
|
1077
1083
|
disabled: re.disabled,
|
|
1078
1084
|
checked: re.checked,
|
|
1079
|
-
"onUpdate:checked": (
|
|
1085
|
+
"onUpdate:checked": (Re) => re.checked = Re,
|
|
1080
1086
|
onChange: () => fe(re)
|
|
1081
1087
|
}, null);
|
|
1082
1088
|
}
|
|
1083
|
-
function we(re,
|
|
1084
|
-
var
|
|
1089
|
+
function we(re, he) {
|
|
1090
|
+
var Re, ze;
|
|
1085
1091
|
return V("div", {
|
|
1086
1092
|
class: N(re)
|
|
1087
1093
|
}, [V("span", {
|
|
1088
1094
|
style: "user-select:none"
|
|
1089
|
-
}, [(
|
|
1095
|
+
}, [(ze = (Re = t.slots).cellTemplate) == null ? void 0 : ze.call(Re, {
|
|
1090
1096
|
cell: re,
|
|
1091
|
-
row:
|
|
1097
|
+
row: he
|
|
1092
1098
|
})])]);
|
|
1093
1099
|
}
|
|
1094
|
-
function be(re,
|
|
1100
|
+
function be(re, he) {
|
|
1095
1101
|
return V("div", {
|
|
1096
1102
|
class: N(re)
|
|
1097
1103
|
}, [V("span", {
|
|
1098
1104
|
style: "user-select:none"
|
|
1099
|
-
}, [re.formatter(re,
|
|
1105
|
+
}, [re.formatter(re, he)])]);
|
|
1100
1106
|
}
|
|
1101
1107
|
function Me(re) {
|
|
1102
|
-
const
|
|
1108
|
+
const he = re.data !== null && re.data !== void 0 ? re.data.toString() : re.data;
|
|
1103
1109
|
return re.showTips ? V("div", {
|
|
1104
1110
|
class: N(re)
|
|
1105
1111
|
}, [V("span", {
|
|
1106
1112
|
style: "user-select:none",
|
|
1107
|
-
title:
|
|
1108
|
-
}, [
|
|
1113
|
+
title: he
|
|
1114
|
+
}, [he])]) : V("div", {
|
|
1109
1115
|
class: N(re)
|
|
1110
|
-
}, [
|
|
1116
|
+
}, [vt(" "), V("span", {
|
|
1111
1117
|
style: "user-select:none"
|
|
1112
|
-
}, [
|
|
1118
|
+
}, [he])]);
|
|
1113
1119
|
}
|
|
1114
1120
|
function Q(re) {
|
|
1115
1121
|
return re.getEditor(re);
|
|
1116
1122
|
}
|
|
1117
|
-
function ie(re,
|
|
1123
|
+
function ie(re, he) {
|
|
1118
1124
|
return t.slots.cellTemplate && te(t.slots.cellTemplate({
|
|
1119
|
-
cell:
|
|
1125
|
+
cell: he,
|
|
1120
1126
|
row: re
|
|
1121
|
-
})) ? we(
|
|
1127
|
+
})) ? we(he, re) : he.mode === Ye.editing ? Q(he) : he.formatter ? be(he, re) : Me(he);
|
|
1122
1128
|
}
|
|
1123
|
-
function ce(re,
|
|
1124
|
-
const
|
|
1129
|
+
function ce(re, he, Re) {
|
|
1130
|
+
const ze = j(re);
|
|
1125
1131
|
return V("div", {
|
|
1126
|
-
ref:
|
|
1127
|
-
key: M(re,
|
|
1132
|
+
ref: he.setRef,
|
|
1133
|
+
key: M(re, he.index),
|
|
1128
1134
|
class: "fv-grid-hierarchy-cell",
|
|
1129
|
-
style: W(
|
|
1135
|
+
style: W(he, Re)
|
|
1130
1136
|
}, [V("div", {
|
|
1131
|
-
class: D(
|
|
1132
|
-
style:
|
|
1133
|
-
}, [A(re), K(re,
|
|
1137
|
+
class: D(he),
|
|
1138
|
+
style: ze
|
|
1139
|
+
}, [A(re), K(re, he), xe(re, he), ie(re, he)])]);
|
|
1134
1140
|
}
|
|
1135
|
-
function Fe(re,
|
|
1141
|
+
function Fe(re, he, Re) {
|
|
1136
1142
|
return V("div", {
|
|
1137
|
-
ref:
|
|
1138
|
-
key: M(re,
|
|
1139
|
-
class: f(
|
|
1140
|
-
style: W(
|
|
1141
|
-
onClick: (
|
|
1143
|
+
ref: he.setRef,
|
|
1144
|
+
key: M(re, he.index),
|
|
1145
|
+
class: f(he),
|
|
1146
|
+
style: W(he, Re),
|
|
1147
|
+
onClick: (ze) => h(ze, he, re, he.column)
|
|
1142
1148
|
}, [V("div", {
|
|
1143
|
-
class: D(
|
|
1144
|
-
}, [ie(re,
|
|
1149
|
+
class: D(he)
|
|
1150
|
+
}, [ie(re, he)])]);
|
|
1145
1151
|
}
|
|
1146
|
-
function Te(re,
|
|
1147
|
-
return
|
|
1152
|
+
function Te(re, he) {
|
|
1153
|
+
return he === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === re.field || he === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === re.field;
|
|
1148
1154
|
}
|
|
1149
|
-
function Ge(re,
|
|
1155
|
+
function Ge(re, he) {
|
|
1150
1156
|
t.emit("dblclickNode", {
|
|
1151
1157
|
$event: re,
|
|
1152
|
-
node:
|
|
1158
|
+
node: he.raw
|
|
1153
1159
|
});
|
|
1154
1160
|
}
|
|
1155
|
-
function
|
|
1161
|
+
function Je(re, he, Re = "primary", ze) {
|
|
1156
1162
|
return V("div", {
|
|
1157
1163
|
ref: re.setRef,
|
|
1158
1164
|
key: U(re),
|
|
1159
|
-
class: C(re,
|
|
1165
|
+
class: C(re, ze),
|
|
1160
1166
|
style: H(re),
|
|
1161
|
-
onMouseover: (
|
|
1162
|
-
onMouseout: (
|
|
1163
|
-
onClick: (
|
|
1164
|
-
onDblclick: (
|
|
1165
|
-
}, [Object.values(re.data).filter((
|
|
1167
|
+
onMouseover: (Ne) => y(Ne, re),
|
|
1168
|
+
onMouseout: (Ne) => c(Ne, re),
|
|
1169
|
+
onClick: (Ne) => b(Ne, re),
|
|
1170
|
+
onDblclick: (Ne) => Ge(Ne, re)
|
|
1171
|
+
}, [Object.values(re.data).filter((Ne) => he[Ne.field] && Ne.rowSpan === 1).map((Ne) => Te(Ne, Re) ? ce(re, Ne, he) : Fe(re, Ne, he))]);
|
|
1166
1172
|
}
|
|
1167
1173
|
return {
|
|
1168
|
-
renderDataRow:
|
|
1174
|
+
renderDataRow: Je
|
|
1169
1175
|
};
|
|
1170
1176
|
}
|
|
1171
1177
|
function qi(e, t, n) {
|
|
@@ -1353,7 +1359,7 @@ function Pd(e, t, n, o, i) {
|
|
|
1353
1359
|
function Rd(e, t, n) {
|
|
1354
1360
|
const {
|
|
1355
1361
|
t: o
|
|
1356
|
-
} =
|
|
1362
|
+
} = nt(), {
|
|
1357
1363
|
columnContext: i
|
|
1358
1364
|
} = n, a = B(e.summary), r = L(() => {
|
|
1359
1365
|
const l = a.value;
|
|
@@ -1402,7 +1408,7 @@ function Dd(e, t, n) {
|
|
|
1402
1408
|
function Yi(e) {
|
|
1403
1409
|
const {
|
|
1404
1410
|
t
|
|
1405
|
-
} =
|
|
1411
|
+
} = nt();
|
|
1406
1412
|
function n(r, s) {
|
|
1407
1413
|
switch (r.command) {
|
|
1408
1414
|
case "edit":
|
|
@@ -1446,7 +1452,7 @@ function Yi(e) {
|
|
|
1446
1452
|
"margin-bottom": "3px"
|
|
1447
1453
|
}
|
|
1448
1454
|
}, {
|
|
1449
|
-
default: () => [
|
|
1455
|
+
default: () => [vt(" "), i(m.text), vt(" ")]
|
|
1450
1456
|
}) : n(m, s) && V(yn, {
|
|
1451
1457
|
type: m.type,
|
|
1452
1458
|
size: m.size || "small",
|
|
@@ -1455,7 +1461,7 @@ function Yi(e) {
|
|
|
1455
1461
|
"margin-bottom": "3px"
|
|
1456
1462
|
}
|
|
1457
1463
|
}, {
|
|
1458
|
-
default: () => [
|
|
1464
|
+
default: () => [vt(" "), i(m.text), vt(" ")]
|
|
1459
1465
|
}));
|
|
1460
1466
|
}
|
|
1461
1467
|
return {
|
|
@@ -1465,14 +1471,14 @@ function Yi(e) {
|
|
|
1465
1471
|
function Wd(e) {
|
|
1466
1472
|
const {
|
|
1467
1473
|
t
|
|
1468
|
-
} =
|
|
1474
|
+
} = nt();
|
|
1469
1475
|
function n() {
|
|
1470
1476
|
return V("div", {
|
|
1471
1477
|
class: "f-datagrid-norecords"
|
|
1472
1478
|
}, [V("div", {
|
|
1473
1479
|
class: "f-datagrid-norecords-content",
|
|
1474
1480
|
style: "margin: 0;width: 100%;position: absolute; top: 50%; transform:translateY(-50%);user-select:none"
|
|
1475
|
-
}, [
|
|
1481
|
+
}, [vt(" "), t("datagrid.emptyMessage")])]);
|
|
1476
1482
|
}
|
|
1477
1483
|
return {
|
|
1478
1484
|
renderEmpty: n
|
|
@@ -1629,7 +1635,7 @@ function Zi(e) {
|
|
|
1629
1635
|
function a(l) {
|
|
1630
1636
|
e.column && (e.column.filter = i(l));
|
|
1631
1637
|
}
|
|
1632
|
-
return V(
|
|
1638
|
+
return V(pt("f-list-view"), {
|
|
1633
1639
|
data: Qi,
|
|
1634
1640
|
"multi-select": !0,
|
|
1635
1641
|
"id-field": "value",
|
|
@@ -1640,7 +1646,7 @@ function Zi(e) {
|
|
|
1640
1646
|
"selection-values": o(((s = e.column) == null ? void 0 : s.filter) || ""),
|
|
1641
1647
|
onSelectionChange: (l) => a(l)
|
|
1642
1648
|
}, {
|
|
1643
|
-
default: () => [
|
|
1649
|
+
default: () => [vt(" ")]
|
|
1644
1650
|
});
|
|
1645
1651
|
}
|
|
1646
1652
|
function Ki(e) {
|
|
@@ -1657,7 +1663,7 @@ function Ki(e) {
|
|
|
1657
1663
|
}
|
|
1658
1664
|
return V("div", {
|
|
1659
1665
|
style: "display:flex;flex-direction:column;"
|
|
1660
|
-
}, [V(
|
|
1666
|
+
}, [V(pt("f-date-picker"), {
|
|
1661
1667
|
modelValue: t.value,
|
|
1662
1668
|
"onUpdate:modelValue": (i) => t.value = i,
|
|
1663
1669
|
onDatePicked: n
|
|
@@ -1673,7 +1679,7 @@ function ea(e) {
|
|
|
1673
1679
|
function n(i) {
|
|
1674
1680
|
e.column && (e.column.filter = i), t.value = i;
|
|
1675
1681
|
}
|
|
1676
|
-
return V("div", null, [V(
|
|
1682
|
+
return V("div", null, [V(pt("f-number-spinner"), {
|
|
1677
1683
|
modelValue: t.value,
|
|
1678
1684
|
"onUpdate:modelValue": (i) => t.value = i,
|
|
1679
1685
|
"can-null": !0,
|
|
@@ -1748,7 +1754,7 @@ function na(e, t, n, o, i, a) {
|
|
|
1748
1754
|
function h(_) {
|
|
1749
1755
|
e.column && (e.column.filter = d(_));
|
|
1750
1756
|
}
|
|
1751
|
-
return V(
|
|
1757
|
+
return V(pt("f-list-view"), {
|
|
1752
1758
|
data: v,
|
|
1753
1759
|
"multi-select": !0,
|
|
1754
1760
|
"id-field": "value",
|
|
@@ -1760,7 +1766,7 @@ function na(e, t, n, o, i, a) {
|
|
|
1760
1766
|
"selection-values": u(((f = e.column) == null ? void 0 : f.filter) || ""),
|
|
1761
1767
|
onSelectionChange: (_) => h(_)
|
|
1762
1768
|
}, {
|
|
1763
|
-
default: () => [
|
|
1769
|
+
default: () => [vt(" ")]
|
|
1764
1770
|
});
|
|
1765
1771
|
}
|
|
1766
1772
|
function oa(e) {
|
|
@@ -1796,13 +1802,13 @@ function oa(e) {
|
|
|
1796
1802
|
name: "所属单位",
|
|
1797
1803
|
checked: !1
|
|
1798
1804
|
}];
|
|
1799
|
-
return V(
|
|
1805
|
+
return V(pt("f-list-view"), {
|
|
1800
1806
|
data: t,
|
|
1801
1807
|
"multi-select": !0,
|
|
1802
1808
|
view: "SingleView",
|
|
1803
1809
|
size: "Small"
|
|
1804
1810
|
}, {
|
|
1805
|
-
default: () => [
|
|
1811
|
+
default: () => [vt(" ")]
|
|
1806
1812
|
});
|
|
1807
1813
|
}
|
|
1808
1814
|
function Ld(e, t, n, o, i) {
|
|
@@ -1840,7 +1846,7 @@ function Ld(e, t, n, o, i) {
|
|
|
1840
1846
|
}
|
|
1841
1847
|
function ra(e) {
|
|
1842
1848
|
var r, s;
|
|
1843
|
-
const { t } =
|
|
1849
|
+
const { t } = nt(), n = 150, o = B(((r = e.commandOption) == null ? void 0 : r.enable) || !1), i = B(((s = e.commandOption) == null ? void 0 : s.commands) || []);
|
|
1844
1850
|
function a(l) {
|
|
1845
1851
|
var m;
|
|
1846
1852
|
if (o.value && !(l.value.findIndex((u) => u.dataType === "commands") > -1)) {
|
|
@@ -2477,7 +2483,7 @@ const sa = {
|
|
|
2477
2483
|
showCloseButton: { type: Boolean, default: !0 },
|
|
2478
2484
|
animate: { type: String, default: "fadeIn" },
|
|
2479
2485
|
options: { type: Object }
|
|
2480
|
-
}, an = /* @__PURE__ */
|
|
2486
|
+
}, an = /* @__PURE__ */ st({
|
|
2481
2487
|
name: "Toast",
|
|
2482
2488
|
props: ua,
|
|
2483
2489
|
emits: ["close", "click"],
|
|
@@ -2485,7 +2491,7 @@ const sa = {
|
|
|
2485
2491
|
const {
|
|
2486
2492
|
locale: n,
|
|
2487
2493
|
t: o
|
|
2488
|
-
} =
|
|
2494
|
+
} = nt(), i = B(e.animate), a = "fadeOut", r = L(() => e.options), s = B(!1), l = L(() => {
|
|
2489
2495
|
const F = {
|
|
2490
2496
|
animated: s.value,
|
|
2491
2497
|
toast: !0
|
|
@@ -2560,7 +2566,7 @@ const sa = {
|
|
|
2560
2566
|
innerHTML: r.value.message
|
|
2561
2567
|
}, null))])])]);
|
|
2562
2568
|
}
|
|
2563
|
-
}), At = /* @__PURE__ */
|
|
2569
|
+
}), At = /* @__PURE__ */ st({
|
|
2564
2570
|
name: "Notify",
|
|
2565
2571
|
props: sa,
|
|
2566
2572
|
emits: ["close", "empty"],
|
|
@@ -2764,44 +2770,44 @@ function da(e, t, n, o, i) {
|
|
|
2764
2770
|
function xe(Z, P) {
|
|
2765
2771
|
const X = Math.ceil(Z.length / P);
|
|
2766
2772
|
let oe = 0;
|
|
2767
|
-
const
|
|
2773
|
+
const ve = [], ke = [], Ee = [];
|
|
2768
2774
|
for (; oe < X; ) {
|
|
2769
2775
|
const Oe = Z.slice(oe * P, (oe + 1) * P), De = f(_.value, Oe, t);
|
|
2770
|
-
ke[oe] = De.filter((
|
|
2776
|
+
ke[oe] = De.filter((Pe) => Pe.__fv_data_grid_group_row__).length, ve.push(...De), oe++;
|
|
2771
2777
|
}
|
|
2772
|
-
return ke.reduce((Oe, De,
|
|
2773
|
-
groupData:
|
|
2778
|
+
return ke.reduce((Oe, De, Pe) => (Oe = Oe + De, Ee.push(Oe), Oe), 0), {
|
|
2779
|
+
groupData: ve,
|
|
2774
2780
|
groupRowSizeList: ke,
|
|
2775
2781
|
accumulateGroupRowSize: Ee
|
|
2776
2782
|
};
|
|
2777
2783
|
}
|
|
2778
2784
|
function we() {
|
|
2779
2785
|
var De;
|
|
2780
|
-
H.value = b.value, A.value && (q.value = H.value.length), C.value && !A.value && (H.value = f(_.value, b.value, t)), G = z.value.reduce((
|
|
2786
|
+
H.value = b.value, A.value && (q.value = H.value.length), C.value && !A.value && (H.value = f(_.value, b.value, t)), G = z.value.reduce((Pe, We) => (Pe.set(We, 0), Pe), G);
|
|
2781
2787
|
const Z = 0, P = Y(), X = ($.value - 1) * P;
|
|
2782
|
-
let
|
|
2788
|
+
let ve = X > H.value.length - 1 || K.value ? Z : X, ke = K.value ? H.value.length : Math.min(ve + P, H.value.length);
|
|
2783
2789
|
if (C.value && A.value) {
|
|
2784
|
-
const { accumulateGroupRowSize:
|
|
2785
|
-
H.value =
|
|
2790
|
+
const { accumulateGroupRowSize: Pe, groupData: We, groupRowSizeList: Ve } = xe(b.value, P);
|
|
2791
|
+
H.value = We;
|
|
2786
2792
|
const qe = Ve[$.value - 1];
|
|
2787
|
-
|
|
2793
|
+
ve += $.value - 2 < 0 ? 0 : Pe[$.value - 2], ke = ve + P + qe;
|
|
2788
2794
|
}
|
|
2789
2795
|
let Ee = 0;
|
|
2790
2796
|
const Oe = [];
|
|
2791
2797
|
if (H.value.length) {
|
|
2792
2798
|
W(H.value);
|
|
2793
|
-
const
|
|
2794
|
-
for (let
|
|
2795
|
-
const Ve = H.value[
|
|
2796
|
-
Ve.__fv_data_grid_group_row__ ? (Ee = 0, Ve.__fv_data_index__ = "") : Ve.__fv_data_grid_group_summary__ ? Ve.__fv_data_index__ = "" : (Ee++, Ve.__fv_data_index__ = Ee + ($.value - 1) * P), Ve.__fv_index__ =
|
|
2797
|
-
const
|
|
2798
|
-
G.set(qe,
|
|
2799
|
+
const Pe = M.value !== e.idField;
|
|
2800
|
+
for (let We = ve; We < ke; We++) {
|
|
2801
|
+
const Ve = H.value[We];
|
|
2802
|
+
Ve.__fv_data_grid_group_row__ ? (Ee = 0, Ve.__fv_data_index__ = "") : Ve.__fv_data_grid_group_summary__ ? Ve.__fv_data_index__ = "" : (Ee++, Ve.__fv_data_index__ = Ee + ($.value - 1) * P), Ve.__fv_index__ = We, Ve.__fv_visible_index__ = We, e.rowOption && e.rowOption.disabledField && (Ve.__fv_disabled__ = Ve[(De = e.rowOption) == null ? void 0 : De.disabledField]), Pe && (Ve[M.value] = We), z.value.forEach((qe) => {
|
|
2803
|
+
const et = G.get(qe) || 0;
|
|
2804
|
+
G.set(qe, et + tt(Ve, qe));
|
|
2799
2805
|
}), Oe.push(Ve);
|
|
2800
2806
|
}
|
|
2801
2807
|
}
|
|
2802
|
-
return k.value && x(Oe), z.value.forEach((
|
|
2803
|
-
const
|
|
2804
|
-
G.set(
|
|
2808
|
+
return k.value && x(Oe), z.value.forEach((Pe) => {
|
|
2809
|
+
const We = G.get(Pe) || 0;
|
|
2810
|
+
G.set(Pe, a(We.toFixed(2)));
|
|
2805
2811
|
}), D.value = [...Oe], Oe;
|
|
2806
2812
|
}
|
|
2807
2813
|
const be = B(we()), Me = L(() => (O.value, be.value.filter((Z) => k.value ? Z.__fv_visible__ !== !1 && E(Z) : Z.__fv_visible__ !== !1)));
|
|
@@ -2809,19 +2815,19 @@ function da(e, t, n, o, i) {
|
|
|
2809
2815
|
Me.value.forEach((Z, P) => (Z.__fv_visible_index__ = P, Z));
|
|
2810
2816
|
}
|
|
2811
2817
|
function ie(Z, P, X = !1) {
|
|
2812
|
-
const
|
|
2813
|
-
const
|
|
2814
|
-
let Ve =
|
|
2815
|
-
for (; Ve === 0 &&
|
|
2816
|
-
const qe =
|
|
2818
|
+
const ve = (X ? we() : [...D.value]).filter((Oe) => n.apply(Oe)), ke = Z && Z.length ? ve.filter((Oe) => Z.reduce((De, Pe) => De && Pe.filter(Oe), !0)) : ve, Ee = P && P.length ? ke.sort((Oe, De) => {
|
|
2819
|
+
const Pe = [...P], We = Pe.shift();
|
|
2820
|
+
let Ve = We.compare(Oe[We.field], De[We.field]);
|
|
2821
|
+
for (; Ve === 0 && Pe.length !== 0; ) {
|
|
2822
|
+
const qe = Pe.shift();
|
|
2817
2823
|
qe && (Ve = qe.compare(Oe[qe.field], De[qe.field]));
|
|
2818
2824
|
}
|
|
2819
2825
|
return Ve;
|
|
2820
2826
|
}) : ke;
|
|
2821
2827
|
return be.value = Ee.map((Oe, De) => {
|
|
2822
2828
|
if (Oe.__fv_data_grid_group_row__) {
|
|
2823
|
-
const
|
|
2824
|
-
Oe.__fv_data_grid_group_collapse__ = !!r.get(
|
|
2829
|
+
const Pe = `group_of_${Oe.__fv_data_grid_group_field__}_${Oe.__fv_data_grid_group_value__}`;
|
|
2830
|
+
Oe.__fv_data_grid_group_collapse__ = !!r.get(Pe);
|
|
2825
2831
|
}
|
|
2826
2832
|
return Oe.__fv_index__ = De, Oe.__fv_visible_index__ = De, Oe;
|
|
2827
2833
|
}), be.value;
|
|
@@ -2838,16 +2844,16 @@ function da(e, t, n, o, i) {
|
|
|
2838
2844
|
function Ge(Z, P) {
|
|
2839
2845
|
return s.set(Z, P), u.value = Array.from(s.values()), ie([], Array.from(v.values()));
|
|
2840
2846
|
}
|
|
2841
|
-
function
|
|
2847
|
+
function Je(Z) {
|
|
2842
2848
|
return s.delete(Z), u.value = Array.from(s.values()), ie([], Array.from(v.values()), !0);
|
|
2843
2849
|
}
|
|
2844
2850
|
function re() {
|
|
2845
2851
|
return s.clear(), u.value = [], ie([], Array.from(v.values()), !0);
|
|
2846
2852
|
}
|
|
2847
|
-
function
|
|
2853
|
+
function he(Z, P) {
|
|
2848
2854
|
const X = `group_of_${Z}_${P}`;
|
|
2849
2855
|
r.set(X, !0);
|
|
2850
|
-
const oe = (
|
|
2856
|
+
const oe = (ve) => ve[Z] !== P;
|
|
2851
2857
|
return l.set(`collapse_${Z}_${P}`, {
|
|
2852
2858
|
field: Z,
|
|
2853
2859
|
fieldName: Z,
|
|
@@ -2856,13 +2862,13 @@ function da(e, t, n, o, i) {
|
|
|
2856
2862
|
filter: oe
|
|
2857
2863
|
}), ie(Array.from(l.values()), Array.from(v.values()));
|
|
2858
2864
|
}
|
|
2859
|
-
function
|
|
2865
|
+
function Re(Z) {
|
|
2860
2866
|
c(be.value, Z);
|
|
2861
2867
|
}
|
|
2862
|
-
function
|
|
2868
|
+
function ze(Z) {
|
|
2863
2869
|
F(be.value, Z);
|
|
2864
2870
|
}
|
|
2865
|
-
function
|
|
2871
|
+
function Ne(Z, P) {
|
|
2866
2872
|
const X = `group_of_${Z}_${P}`;
|
|
2867
2873
|
return r.set(X, !1), l.delete(`collapse_${Z}_${P}`), ie(Array.from(l.values()), Array.from(v.values()), !0);
|
|
2868
2874
|
}
|
|
@@ -2880,50 +2886,50 @@ function da(e, t, n, o, i) {
|
|
|
2880
2886
|
const P = Z[M.value];
|
|
2881
2887
|
m.delete(`fold_${P}`);
|
|
2882
2888
|
}
|
|
2883
|
-
function
|
|
2889
|
+
function He(Z) {
|
|
2884
2890
|
_e(Z.raw), ie(Array.from(m.values()), Array.from(v.values()), !0), x(be.value);
|
|
2885
2891
|
}
|
|
2886
2892
|
function Be() {
|
|
2887
2893
|
const Z = we();
|
|
2888
2894
|
be.value = Z, e.hierarchy && (ie(Array.from(m.values()), Array.from(v.values())), x(be.value));
|
|
2889
2895
|
}
|
|
2890
|
-
function
|
|
2896
|
+
function ot(Z) {
|
|
2891
2897
|
const X = e.hierarchy && N(Z) ? R(Z) : Z;
|
|
2892
2898
|
b.value = X, Be();
|
|
2893
2899
|
}
|
|
2894
|
-
function
|
|
2895
|
-
return (Z && Z.length ? be.value.filter((
|
|
2900
|
+
function ye(Z, P, X) {
|
|
2901
|
+
return (Z && Z.length ? be.value.filter((ve, ke) => Z.reduce((Ee, Oe) => Ee && Oe.filter(ve), !0)) : be.value).slice(P, X);
|
|
2896
2902
|
}
|
|
2897
2903
|
function Ae(Z) {
|
|
2898
2904
|
const P = Y(), X = Math.ceil(q.value / P);
|
|
2899
2905
|
0 <= Z && Z <= X && ($.value = Z, Be());
|
|
2900
2906
|
}
|
|
2901
|
-
function
|
|
2907
|
+
function Le(Z) {
|
|
2902
2908
|
b.value.push(_t(Z)), be.value = we();
|
|
2903
2909
|
}
|
|
2904
|
-
function
|
|
2910
|
+
function je(Z = 0) {
|
|
2905
2911
|
if (!(Z > -1))
|
|
2906
2912
|
return !1;
|
|
2907
2913
|
const X = U.value();
|
|
2908
2914
|
e.hierarchy ? w(Z, X, b) : b.value.splice(Z, 0, X), Be();
|
|
2909
2915
|
}
|
|
2910
|
-
function
|
|
2916
|
+
function ut(Z = 0) {
|
|
2911
2917
|
if (!(Z > -1 && e.hierarchy))
|
|
2912
2918
|
return !1;
|
|
2913
2919
|
const X = U.value(), oe = b.value[Z];
|
|
2914
2920
|
_e(oe), g(Z, X, b), Be();
|
|
2915
2921
|
}
|
|
2916
|
-
function
|
|
2922
|
+
function ct(Z, P = 0) {
|
|
2917
2923
|
if (!(P > -1 && e.hierarchy))
|
|
2918
2924
|
return !1;
|
|
2919
2925
|
const oe = b.value[P];
|
|
2920
2926
|
_e(oe), p(P, Z, b), Be();
|
|
2921
2927
|
}
|
|
2922
|
-
function
|
|
2928
|
+
function ae(Z) {
|
|
2923
2929
|
const P = Z ? Z - 1 : 0;
|
|
2924
2930
|
b.value.splice(P, 1), Be();
|
|
2925
2931
|
}
|
|
2926
|
-
function
|
|
2932
|
+
function pe(Z) {
|
|
2927
2933
|
const P = b.value.findIndex((X) => X[M.value] === Z);
|
|
2928
2934
|
P !== -1 && (b.value.splice(P, 1), Be());
|
|
2929
2935
|
}
|
|
@@ -2940,10 +2946,10 @@ function da(e, t, n, o, i) {
|
|
|
2940
2946
|
function Ue(Z) {
|
|
2941
2947
|
te.value.size = Z;
|
|
2942
2948
|
}
|
|
2943
|
-
function
|
|
2949
|
+
function Ke(Z) {
|
|
2944
2950
|
te.value && (Ue(Z), Be());
|
|
2945
2951
|
}
|
|
2946
|
-
function
|
|
2952
|
+
function at(Z, P) {
|
|
2947
2953
|
const X = b.value[Number(Z) - 1];
|
|
2948
2954
|
X.editable !== !1 ? (X.name = P, Be()) : fe.show({
|
|
2949
2955
|
showCloseButton: !1,
|
|
@@ -2954,17 +2960,17 @@ function da(e, t, n, o, i) {
|
|
|
2954
2960
|
}
|
|
2955
2961
|
function bt(Z) {
|
|
2956
2962
|
return Z.map((X) => {
|
|
2957
|
-
const oe = D.value.findIndex((
|
|
2963
|
+
const oe = D.value.findIndex((ve) => "" + ve[M.value] == "" + X);
|
|
2958
2964
|
return oe > -1 ? D.value[oe] : null;
|
|
2959
2965
|
}).filter((X) => X != null);
|
|
2960
2966
|
}
|
|
2961
|
-
function
|
|
2967
|
+
function dt() {
|
|
2962
2968
|
const Z = e.summary.groupFields;
|
|
2963
2969
|
G = Z.reduce((P, X) => (P.set(X, 0), P), G);
|
|
2964
2970
|
for (const P of H.value)
|
|
2965
2971
|
Z.forEach((X) => {
|
|
2966
2972
|
const oe = G.get(X) || 0;
|
|
2967
|
-
G.set(X, oe +
|
|
2973
|
+
G.set(X, oe + tt(P, X));
|
|
2968
2974
|
});
|
|
2969
2975
|
Z.forEach((P) => {
|
|
2970
2976
|
const X = G.get(P) || 0;
|
|
@@ -2973,44 +2979,44 @@ function da(e, t, n, o, i) {
|
|
|
2973
2979
|
}
|
|
2974
2980
|
return {
|
|
2975
2981
|
addFilter: Ge,
|
|
2976
|
-
addNewDataItem:
|
|
2982
|
+
addNewDataItem: Le,
|
|
2977
2983
|
addSorter: Fe,
|
|
2978
2984
|
updatePageSize: Ue,
|
|
2979
|
-
changePageSizeTo:
|
|
2980
|
-
collapse:
|
|
2981
|
-
collapseTo:
|
|
2985
|
+
changePageSizeTo: Ke,
|
|
2986
|
+
collapse: he,
|
|
2987
|
+
collapseTo: Re,
|
|
2982
2988
|
dataView: be,
|
|
2983
|
-
editDataItem:
|
|
2984
|
-
expand:
|
|
2985
|
-
expandTo:
|
|
2989
|
+
editDataItem: at,
|
|
2990
|
+
expand: Ne,
|
|
2991
|
+
expandTo: ze,
|
|
2986
2992
|
filters: u,
|
|
2987
2993
|
fold: ee,
|
|
2988
|
-
getRange:
|
|
2994
|
+
getRange: ye,
|
|
2989
2995
|
getSelectionItems: bt,
|
|
2990
2996
|
hasRealChildren: S,
|
|
2991
|
-
insertNewChildDataItem:
|
|
2992
|
-
insertNewChildDataItems:
|
|
2993
|
-
insertNewDataItem:
|
|
2997
|
+
insertNewChildDataItem: ut,
|
|
2998
|
+
insertNewChildDataItems: ct,
|
|
2999
|
+
insertNewDataItem: je,
|
|
2994
3000
|
isVisibleInTree: E,
|
|
2995
|
-
load:
|
|
3001
|
+
load: ot,
|
|
2996
3002
|
navigatePageTo: Ae,
|
|
2997
3003
|
pageIndex: $,
|
|
2998
3004
|
rawView: D,
|
|
2999
3005
|
refresh: $e,
|
|
3000
3006
|
removeAllFilter: re,
|
|
3001
|
-
removeDataItem:
|
|
3002
|
-
removeDataItemById:
|
|
3003
|
-
removeFilter:
|
|
3007
|
+
removeDataItem: ae,
|
|
3008
|
+
removeDataItemById: pe,
|
|
3009
|
+
removeFilter: Je,
|
|
3004
3010
|
removeHierarchyDataItem: Ce,
|
|
3005
3011
|
removeSorter: Te,
|
|
3006
3012
|
reOrderVisibleIndex: Q,
|
|
3007
3013
|
setSorters: ce,
|
|
3008
3014
|
sorters: d,
|
|
3009
3015
|
summaries: G,
|
|
3010
|
-
updateSummary:
|
|
3016
|
+
updateSummary: dt,
|
|
3011
3017
|
toggleChildrenVisibiltyByCollapseStatus: I,
|
|
3012
3018
|
totalItems: q,
|
|
3013
|
-
unFold:
|
|
3019
|
+
unFold: He,
|
|
3014
3020
|
updateDataView: Be,
|
|
3015
3021
|
visibleDataItems: Me,
|
|
3016
3022
|
shouldGroupingData: C,
|
|
@@ -3285,7 +3291,7 @@ class Ln {
|
|
|
3285
3291
|
this.value = "", this.mapFields = [];
|
|
3286
3292
|
}
|
|
3287
3293
|
getValue() {
|
|
3288
|
-
return this.mapFields.map((t) =>
|
|
3294
|
+
return this.mapFields.map((t) => tt(t, this.valueField || "id")).join(",");
|
|
3289
3295
|
}
|
|
3290
3296
|
getDisplayText() {
|
|
3291
3297
|
return this.value;
|
|
@@ -3545,14 +3551,14 @@ function va(e, t, n) {
|
|
|
3545
3551
|
resizeObserver: o
|
|
3546
3552
|
};
|
|
3547
3553
|
}
|
|
3548
|
-
const wn = /* @__PURE__ */
|
|
3554
|
+
const wn = /* @__PURE__ */ st({
|
|
3549
3555
|
name: "FConditionFields",
|
|
3550
3556
|
props: Rn,
|
|
3551
3557
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
3552
3558
|
setup(e, t) {
|
|
3553
3559
|
const n = B(), {
|
|
3554
3560
|
locale: o
|
|
3555
|
-
} =
|
|
3561
|
+
} = nt(), i = B(e.key), a = B(e.conditions), r = Yn(e), {
|
|
3556
3562
|
initialConditionValue: s,
|
|
3557
3563
|
fieldMap: l,
|
|
3558
3564
|
loadFieldConfigs: m
|
|
@@ -3777,7 +3783,7 @@ const Ca = {
|
|
|
3777
3783
|
e.editor && (e.editor[t] = n);
|
|
3778
3784
|
},
|
|
3779
3785
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
3780
|
-
},
|
|
3786
|
+
}, le = {
|
|
3781
3787
|
button: { type: "button", name: "按钮" },
|
|
3782
3788
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
3783
3789
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -3827,7 +3833,7 @@ const Ca = {
|
|
|
3827
3833
|
convertFrom: (e, t, n) => {
|
|
3828
3834
|
var i;
|
|
3829
3835
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
3830
|
-
return ((i =
|
|
3836
|
+
return ((i = le[o]) == null ? void 0 : i.name) || o;
|
|
3831
3837
|
}
|
|
3832
3838
|
}, xa = {
|
|
3833
3839
|
convertTo: (e, t, n, o) => {
|
|
@@ -4536,7 +4542,7 @@ function sl(e, t, n) {
|
|
|
4536
4542
|
T = n.getComponentTitle();
|
|
4537
4543
|
else {
|
|
4538
4544
|
const { text: W, title: U, label: H, mainTitle: D, name: R, type: N } = t.schema;
|
|
4539
|
-
T = W || U || H || D || R || ((M =
|
|
4545
|
+
T = W || U || H || D || R || ((M = le[N]) == null ? void 0 : M.name);
|
|
4540
4546
|
}
|
|
4541
4547
|
T && r.getControlBasicInfoMap().set(t.schema.id, {
|
|
4542
4548
|
componentTitle: T,
|
|
@@ -5005,7 +5011,7 @@ class gl {
|
|
|
5005
5011
|
valueField: "value",
|
|
5006
5012
|
idField: "value",
|
|
5007
5013
|
editable: !1,
|
|
5008
|
-
data: [{ value: t.type, name:
|
|
5014
|
+
data: [{ value: t.type, name: le[t.type] && le[t.type].name }]
|
|
5009
5015
|
}
|
|
5010
5016
|
}
|
|
5011
5017
|
}
|
|
@@ -5232,7 +5238,7 @@ const yl = {
|
|
|
5232
5238
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
5233
5239
|
*/
|
|
5234
5240
|
showType: { type: String, default: "visible" }
|
|
5235
|
-
}, bl = /* @__PURE__ */
|
|
5241
|
+
}, bl = /* @__PURE__ */ st({
|
|
5236
5242
|
name: "FDynamicFormLabel",
|
|
5237
5243
|
props: yl,
|
|
5238
5244
|
emits: [],
|
|
@@ -5263,7 +5269,7 @@ const yl = {
|
|
|
5263
5269
|
class: "farris-label-text"
|
|
5264
5270
|
}, [n.value && V("span", {
|
|
5265
5271
|
class: "farris-label-info text-danger"
|
|
5266
|
-
}, [
|
|
5272
|
+
}, [vt("*")]), e.showType === "visible" && o.value])]);
|
|
5267
5273
|
}
|
|
5268
5274
|
}), se = {}, ue = {}, de = {}, me = {};
|
|
5269
5275
|
let _n = !1;
|
|
@@ -5384,7 +5390,7 @@ const _l = {
|
|
|
5384
5390
|
type: Object,
|
|
5385
5391
|
default: null
|
|
5386
5392
|
}
|
|
5387
|
-
}, Sl = /* @__PURE__ */
|
|
5393
|
+
}, Sl = /* @__PURE__ */ st({
|
|
5388
5394
|
name: "FValidationMessage",
|
|
5389
5395
|
props: _l,
|
|
5390
5396
|
emits: [],
|
|
@@ -5412,7 +5418,7 @@ const _l = {
|
|
|
5412
5418
|
class: "f-feedback-message"
|
|
5413
5419
|
}, [i.value])]);
|
|
5414
5420
|
}
|
|
5415
|
-
}), xl = /* @__PURE__ */
|
|
5421
|
+
}), xl = /* @__PURE__ */ st({
|
|
5416
5422
|
name: "FDynamicFormGroup",
|
|
5417
5423
|
props: ao,
|
|
5418
5424
|
emits: ["change", "update:modelValue"],
|
|
@@ -5485,10 +5491,10 @@ const _l = {
|
|
|
5485
5491
|
*/
|
|
5486
5492
|
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
5487
5493
|
if (n)
|
|
5488
|
-
return [{ key:
|
|
5494
|
+
return [{ key: le["language-textbox"].type, value: le["language-textbox"].name }];
|
|
5489
5495
|
let i = Nt.fieldControlTypeMapping[t];
|
|
5490
5496
|
if (o === "data-grid-column" && (i != null && i.length)) {
|
|
5491
|
-
const a = [
|
|
5497
|
+
const a = [le["check-group"].type, le["radio-group"].type];
|
|
5492
5498
|
i = i.filter((r) => !a.includes(r.key));
|
|
5493
5499
|
}
|
|
5494
5500
|
return i;
|
|
@@ -5511,7 +5517,7 @@ const _l = {
|
|
|
5511
5517
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
5512
5518
|
var a;
|
|
5513
5519
|
const o = (a = t.editor) == null ? void 0 : a.type, i = [];
|
|
5514
|
-
return (t.type ===
|
|
5520
|
+
return (t.type === le["data-grid-column"].type || t.type === le["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === le["input-group"].type || o === le.textarea.type || o === le["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === le["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === le["data-grid-column"].type || t.type === le["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === le["combo-list"].type || o === le["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === le["data-grid-column"].type || t.type === le["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === le["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === le["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === le.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === le["data-grid-column"].type || t.type === le["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
|
|
5515
5521
|
}
|
|
5516
5522
|
};
|
|
5517
5523
|
/**
|
|
@@ -5519,53 +5525,53 @@ const _l = {
|
|
|
5519
5525
|
*/
|
|
5520
5526
|
ne(Nt, "fieldControlTypeMapping", {
|
|
5521
5527
|
String: [
|
|
5522
|
-
{ key:
|
|
5523
|
-
{ key:
|
|
5524
|
-
{ key:
|
|
5525
|
-
{ key:
|
|
5526
|
-
{ key:
|
|
5527
|
-
{ key:
|
|
5528
|
-
{ key:
|
|
5529
|
-
{ key:
|
|
5530
|
-
{ key:
|
|
5531
|
-
{ key:
|
|
5528
|
+
{ key: le["input-group"].type, value: le["input-group"].name },
|
|
5529
|
+
{ key: le.lookup.type, value: le.lookup.name },
|
|
5530
|
+
{ key: le["date-picker"].type, value: le["date-picker"].name },
|
|
5531
|
+
{ key: le.switch.type, value: le.switch.name },
|
|
5532
|
+
{ key: le["check-box"].type, value: le["check-box"].name },
|
|
5533
|
+
{ key: le["check-group"].type, value: le["check-group"].name },
|
|
5534
|
+
{ key: le["radio-group"].type, value: le["radio-group"].name },
|
|
5535
|
+
{ key: le["combo-list"].type, value: le["combo-list"].name },
|
|
5536
|
+
{ key: le.textarea.type, value: le.textarea.name },
|
|
5537
|
+
{ key: le["time-picker"].type, value: le["time-picker"].name }
|
|
5532
5538
|
],
|
|
5533
5539
|
Text: [
|
|
5534
|
-
{ key:
|
|
5535
|
-
{ key:
|
|
5540
|
+
{ key: le.textarea.type, value: le.textarea.name },
|
|
5541
|
+
{ key: le.lookup.type, value: le.lookup.name }
|
|
5536
5542
|
],
|
|
5537
5543
|
Decimal: [
|
|
5538
|
-
{ key:
|
|
5544
|
+
{ key: le["number-spinner"].type, value: le["number-spinner"].name }
|
|
5539
5545
|
],
|
|
5540
5546
|
Integer: [
|
|
5541
|
-
{ key:
|
|
5547
|
+
{ key: le["number-spinner"].type, value: le["number-spinner"].name }
|
|
5542
5548
|
],
|
|
5543
5549
|
Number: [
|
|
5544
|
-
{ key:
|
|
5545
|
-
{ key:
|
|
5546
|
-
{ key:
|
|
5550
|
+
{ key: le["number-spinner"].type, value: le["number-spinner"].name },
|
|
5551
|
+
{ key: le.switch.type, value: le.switch.name },
|
|
5552
|
+
{ key: le["check-box"].type, value: le["check-box"].name }
|
|
5547
5553
|
],
|
|
5548
5554
|
BigNumber: [
|
|
5549
|
-
{ key:
|
|
5555
|
+
{ key: le["number-spinner"].type, value: le["number-spinner"].name }
|
|
5550
5556
|
],
|
|
5551
5557
|
Date: [
|
|
5552
|
-
{ key:
|
|
5558
|
+
{ key: le["date-picker"].type, value: le["date-picker"].name }
|
|
5553
5559
|
],
|
|
5554
5560
|
DateTime: [
|
|
5555
|
-
{ key:
|
|
5561
|
+
{ key: le["date-picker"].type, value: le["date-picker"].name }
|
|
5556
5562
|
],
|
|
5557
5563
|
Boolean: [
|
|
5558
|
-
{ key:
|
|
5559
|
-
{ key:
|
|
5564
|
+
{ key: le.switch.type, value: le.switch.name },
|
|
5565
|
+
{ key: le["check-box"].type, value: le["check-box"].name }
|
|
5560
5566
|
],
|
|
5561
5567
|
Enum: [
|
|
5562
|
-
{ key:
|
|
5563
|
-
{ key:
|
|
5568
|
+
{ key: le["combo-list"].type, value: le["combo-list"].name },
|
|
5569
|
+
{ key: le["radio-group"].type, value: le["radio-group"].name }
|
|
5564
5570
|
],
|
|
5565
5571
|
Object: [
|
|
5566
|
-
{ key:
|
|
5567
|
-
{ key:
|
|
5568
|
-
{ key:
|
|
5572
|
+
{ key: le.lookup.type, value: le.lookup.name },
|
|
5573
|
+
{ key: le["combo-list"].type, value: le["combo-list"].name },
|
|
5574
|
+
{ key: le["radio-group"].type, value: le["radio-group"].name }
|
|
5569
5575
|
]
|
|
5570
5576
|
});
|
|
5571
5577
|
let Sn = Nt;
|
|
@@ -5631,20 +5637,20 @@ var kl = { exports: {} };
|
|
|
5631
5637
|
var K = r({
|
|
5632
5638
|
containers: A.containers,
|
|
5633
5639
|
start: Ge,
|
|
5634
|
-
end:
|
|
5640
|
+
end: he,
|
|
5635
5641
|
cancel: _e,
|
|
5636
5642
|
remove: ee,
|
|
5637
5643
|
destroy: Me,
|
|
5638
5644
|
canMove: Te,
|
|
5639
5645
|
dragging: !1
|
|
5640
5646
|
});
|
|
5641
|
-
return A.removeOnSpill === !0 && K.on("over",
|
|
5647
|
+
return A.removeOnSpill === !0 && K.on("over", Le).on("out", je), xe(), K;
|
|
5642
5648
|
function fe(P) {
|
|
5643
5649
|
return K.containers.indexOf(P) !== -1 || A.isContainer(P);
|
|
5644
5650
|
}
|
|
5645
5651
|
function xe(P) {
|
|
5646
5652
|
var X = P ? "remove" : "add";
|
|
5647
|
-
f(v, X, "mousedown", ie), f(v, X, "mouseup",
|
|
5653
|
+
f(v, X, "mousedown", ie), f(v, X, "mouseup", ze);
|
|
5648
5654
|
}
|
|
5649
5655
|
function we(P) {
|
|
5650
5656
|
var X = P ? "remove" : "add";
|
|
@@ -5655,7 +5661,7 @@ var kl = { exports: {} };
|
|
|
5655
5661
|
s[X](v, "selectstart", Q), s[X](v, "click", Q);
|
|
5656
5662
|
}
|
|
5657
5663
|
function Me() {
|
|
5658
|
-
xe(!0),
|
|
5664
|
+
xe(!0), ze({});
|
|
5659
5665
|
}
|
|
5660
5666
|
function Q(P) {
|
|
5661
5667
|
G && P.preventDefault();
|
|
@@ -5664,24 +5670,24 @@ var kl = { exports: {} };
|
|
|
5664
5670
|
U = P.clientX, H = P.clientY;
|
|
5665
5671
|
var X = _(P) !== 1 || P.metaKey || P.ctrlKey;
|
|
5666
5672
|
if (!X) {
|
|
5667
|
-
var oe = P.target,
|
|
5668
|
-
|
|
5673
|
+
var oe = P.target, ve = Fe(oe);
|
|
5674
|
+
ve && (G = ve, we(), P.type === "mousedown" && (S(oe) ? oe.focus() : P.preventDefault()));
|
|
5669
5675
|
}
|
|
5670
5676
|
}
|
|
5671
5677
|
function ce(P) {
|
|
5672
5678
|
if (G) {
|
|
5673
5679
|
if (_(P) === 0) {
|
|
5674
|
-
|
|
5680
|
+
ze({});
|
|
5675
5681
|
return;
|
|
5676
5682
|
}
|
|
5677
5683
|
if (!(P.clientX !== void 0 && Math.abs(P.clientX - U) <= (A.slideFactorX || 0) && P.clientY !== void 0 && Math.abs(P.clientY - H) <= (A.slideFactorY || 0))) {
|
|
5678
5684
|
if (A.ignoreInputTextSelection) {
|
|
5679
|
-
var X = E("clientX", P) || 0, oe = E("clientY", P) || 0,
|
|
5680
|
-
if (S(
|
|
5685
|
+
var X = E("clientX", P) || 0, oe = E("clientY", P) || 0, ve = m.elementFromPoint(X, oe);
|
|
5686
|
+
if (S(ve))
|
|
5681
5687
|
return;
|
|
5682
5688
|
}
|
|
5683
5689
|
var ke = G;
|
|
5684
|
-
we(!0), be(),
|
|
5690
|
+
we(!0), be(), he(), Je(ke), l.add(N || W, "gu-transit"), ct(), ut(), Y = 0, ye(P);
|
|
5685
5691
|
}
|
|
5686
5692
|
}
|
|
5687
5693
|
}
|
|
@@ -5692,8 +5698,8 @@ var kl = { exports: {} };
|
|
|
5692
5698
|
return;
|
|
5693
5699
|
var oe = x(P);
|
|
5694
5700
|
if (oe && !A.invalid(P, X)) {
|
|
5695
|
-
var
|
|
5696
|
-
if (
|
|
5701
|
+
var ve = A.moves(P, oe, X, g(P));
|
|
5702
|
+
if (ve)
|
|
5697
5703
|
return {
|
|
5698
5704
|
item: P,
|
|
5699
5705
|
source: oe
|
|
@@ -5706,121 +5712,121 @@ var kl = { exports: {} };
|
|
|
5706
5712
|
}
|
|
5707
5713
|
function Ge(P) {
|
|
5708
5714
|
var X = Fe(P);
|
|
5709
|
-
X &&
|
|
5715
|
+
X && Je(X);
|
|
5710
5716
|
}
|
|
5711
|
-
function
|
|
5717
|
+
function Je(P) {
|
|
5712
5718
|
Z(P.item, P.source) && (N = P.item.cloneNode(!0), K.emit("cloned", N, P.item, "copy")), M = P.source, W = P.item, D = R = g(P.item), K.dragging = !0, K.emit("drag", W, M);
|
|
5713
5719
|
}
|
|
5714
5720
|
function re() {
|
|
5715
5721
|
return !1;
|
|
5716
5722
|
}
|
|
5717
|
-
function
|
|
5723
|
+
function he() {
|
|
5718
5724
|
if (K.dragging) {
|
|
5719
5725
|
var P = N || W;
|
|
5720
|
-
|
|
5726
|
+
Ne(P, x(P));
|
|
5721
5727
|
}
|
|
5722
5728
|
}
|
|
5723
|
-
function
|
|
5729
|
+
function Re() {
|
|
5724
5730
|
G = !1, we(!0), be(!0);
|
|
5725
5731
|
}
|
|
5726
|
-
function
|
|
5727
|
-
if (
|
|
5728
|
-
var X = N || W, oe = E("clientX", P) || 0,
|
|
5729
|
-
Ee && (N && A.copySortSource || !N || Ee !== M) ?
|
|
5732
|
+
function ze(P) {
|
|
5733
|
+
if (Re(), !!K.dragging) {
|
|
5734
|
+
var X = N || W, oe = E("clientX", P) || 0, ve = E("clientY", P) || 0, ke = C(O, oe, ve), Ee = ot(ke, oe, ve);
|
|
5735
|
+
Ee && (N && A.copySortSource || !N || Ee !== M) ? Ne(X, Ee) : A.removeOnSpill ? ee() : _e();
|
|
5730
5736
|
}
|
|
5731
5737
|
}
|
|
5732
|
-
function
|
|
5738
|
+
function Ne(P, X) {
|
|
5733
5739
|
var oe = x(P);
|
|
5734
|
-
N && A.copySortSource && X === M && oe.removeChild(W), Be(X) ? K.emit("cancel", P, M) : K.emit("drop", P, X, M, R),
|
|
5740
|
+
N && A.copySortSource && X === M && oe.removeChild(W), Be(X) ? K.emit("cancel", P, M) : K.emit("drop", P, X, M, R), He();
|
|
5735
5741
|
}
|
|
5736
5742
|
function ee() {
|
|
5737
5743
|
if (K.dragging) {
|
|
5738
5744
|
var P = N || W, X = x(P);
|
|
5739
|
-
X && X.removeChild(P), K.emit(N ? "cancel" : "remove", P, X, M),
|
|
5745
|
+
X && X.removeChild(P), K.emit(N ? "cancel" : "remove", P, X, M), He();
|
|
5740
5746
|
}
|
|
5741
5747
|
}
|
|
5742
5748
|
function _e(P) {
|
|
5743
5749
|
if (K.dragging) {
|
|
5744
|
-
var X = arguments.length > 0 ? P : A.revertOnSpill, oe = N || W,
|
|
5745
|
-
ke === !1 && X && (N ?
|
|
5750
|
+
var X = arguments.length > 0 ? P : A.revertOnSpill, oe = N || W, ve = x(oe), ke = Be(ve);
|
|
5751
|
+
ke === !1 && X && (N ? ve && ve.removeChild(N) : M.insertBefore(oe, D)), ke || X ? K.emit("cancel", oe, M, M) : K.emit("drop", oe, ve, M, R), He();
|
|
5746
5752
|
}
|
|
5747
5753
|
}
|
|
5748
|
-
function
|
|
5754
|
+
function He() {
|
|
5749
5755
|
var P = N || W;
|
|
5750
|
-
|
|
5756
|
+
Re(), ae(), pe(), P && l.rm(P, "gu-transit"), j && clearTimeout(j), K.dragging = !1, z && K.emit("out", P, z, M), K.emit("dragend", P, Y), M = W = N = D = R = j = z = null;
|
|
5751
5757
|
}
|
|
5752
5758
|
function Be(P, X) {
|
|
5753
5759
|
var oe;
|
|
5754
5760
|
return X !== void 0 ? oe = X : O ? oe = R : oe = g(N || W), P === M && oe === D;
|
|
5755
5761
|
}
|
|
5756
|
-
function
|
|
5757
|
-
for (var
|
|
5758
|
-
|
|
5759
|
-
return
|
|
5762
|
+
function ot(P, X, oe) {
|
|
5763
|
+
for (var ve = P; ve && !ke(); )
|
|
5764
|
+
ve = x(ve);
|
|
5765
|
+
return ve;
|
|
5760
5766
|
function ke() {
|
|
5761
|
-
var Ee = fe(
|
|
5767
|
+
var Ee = fe(ve);
|
|
5762
5768
|
if (Ee === !1)
|
|
5763
5769
|
return !1;
|
|
5764
|
-
var Oe = Ce(
|
|
5765
|
-
return
|
|
5770
|
+
var Oe = Ce(ve, P), De = dt(ve, Oe, X, oe), Pe = Be(ve, De);
|
|
5771
|
+
return Pe ? !0 : A.accepts(W, ve, M, De);
|
|
5766
5772
|
}
|
|
5767
5773
|
}
|
|
5768
|
-
function
|
|
5774
|
+
function ye(P) {
|
|
5769
5775
|
if (!O)
|
|
5770
5776
|
return;
|
|
5771
5777
|
P.preventDefault();
|
|
5772
5778
|
var X = E("clientX", P) || 0, oe = E("clientY", P) || 0;
|
|
5773
5779
|
O.style.left = X - 2 + "px", O.style.top = oe - 2 + "px";
|
|
5774
|
-
var
|
|
5775
|
-
(Oe || Ee === null) && (
|
|
5776
|
-
var De = x(
|
|
5780
|
+
var ve = N || W, ke = C(O, X, oe), Ee = ot(ke, X, oe), Oe = Ee !== null && Ee !== z;
|
|
5781
|
+
(Oe || Ee === null) && (et(), z = Ee, qe()), bt(ke, oe);
|
|
5782
|
+
var De = x(ve);
|
|
5777
5783
|
if (Ee === M && N && !A.copySortSource) {
|
|
5778
|
-
De && De.removeChild(
|
|
5784
|
+
De && De.removeChild(ve);
|
|
5779
5785
|
return;
|
|
5780
5786
|
}
|
|
5781
|
-
var
|
|
5782
|
-
if (te = $e(
|
|
5783
|
-
|
|
5787
|
+
var Pe, We = Ce(Ee, ke);
|
|
5788
|
+
if (te = $e(We, Ee), We !== null)
|
|
5789
|
+
Pe = dt(Ee, We, X, oe);
|
|
5784
5790
|
else if (A.revertOnSpill === !0 && !N)
|
|
5785
|
-
|
|
5791
|
+
Pe = D, Ee = M;
|
|
5786
5792
|
else {
|
|
5787
|
-
N && De && De.removeChild(
|
|
5793
|
+
N && De && De.removeChild(ve), N && q && (q.style.display = "none");
|
|
5788
5794
|
return;
|
|
5789
5795
|
}
|
|
5790
|
-
q.style.display = "block", Ae(
|
|
5791
|
-
function Ve(
|
|
5792
|
-
K.emit(
|
|
5796
|
+
q.style.display = "block", Ae(Pe, ve, Oe), Pe ? Ke(We, Pe) : at(Ee);
|
|
5797
|
+
function Ve(Ze) {
|
|
5798
|
+
K.emit(Ze, ve, z, M);
|
|
5793
5799
|
}
|
|
5794
5800
|
function qe() {
|
|
5795
5801
|
Oe && Ve("over");
|
|
5796
5802
|
}
|
|
5797
|
-
function
|
|
5803
|
+
function et() {
|
|
5798
5804
|
z && Ve("out");
|
|
5799
5805
|
}
|
|
5800
5806
|
}
|
|
5801
5807
|
function Ae(P, X, oe) {
|
|
5802
5808
|
(P === X || P === g(X)) && (R = g(X)), (P === null && oe || P !== X && P !== g(X)) && (R = P);
|
|
5803
5809
|
}
|
|
5804
|
-
function
|
|
5810
|
+
function Le(P) {
|
|
5805
5811
|
l.rm(P, "gu-hide");
|
|
5806
5812
|
}
|
|
5807
|
-
function
|
|
5813
|
+
function je(P) {
|
|
5808
5814
|
K.dragging && l.add(P, "gu-hide");
|
|
5809
5815
|
}
|
|
5810
|
-
function
|
|
5811
|
-
O || (O = document.createElement("div"), O.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", O.innerHTML = A.getMirrorText && A.getMirrorText(W) || "控件", l.add(O, "gu-mirror"), A.mirrorContainer.appendChild(O), f(v, "add", "mousemove",
|
|
5816
|
+
function ut() {
|
|
5817
|
+
O || (O = document.createElement("div"), O.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", O.innerHTML = A.getMirrorText && A.getMirrorText(W) || "控件", l.add(O, "gu-mirror"), A.mirrorContainer.appendChild(O), f(v, "add", "mousemove", ye), l.add(A.mirrorContainer, "gu-unselectable"), K.emit("cloned", O, W, "mirror"));
|
|
5812
5818
|
}
|
|
5813
|
-
function
|
|
5819
|
+
function ct() {
|
|
5814
5820
|
if (q = document.createElement("div"), l.add(q, "gu-insertion"), W) {
|
|
5815
5821
|
var P = W.getBoundingClientRect();
|
|
5816
5822
|
q.style.left = P.left + "px", q.style.top = P.top + "px";
|
|
5817
5823
|
}
|
|
5818
5824
|
te = !1, A.mirrorContainer.appendChild(q);
|
|
5819
5825
|
}
|
|
5820
|
-
function
|
|
5821
|
-
O && (l.rm(A.mirrorContainer, "gu-unselectable"), f(v, "remove", "mousemove",
|
|
5826
|
+
function ae() {
|
|
5827
|
+
O && (l.rm(A.mirrorContainer, "gu-unselectable"), f(v, "remove", "mousemove", ye), x(O).removeChild(O), O = null);
|
|
5822
5828
|
}
|
|
5823
|
-
function
|
|
5829
|
+
function pe() {
|
|
5824
5830
|
q && (x(q).removeChild(q), q = null);
|
|
5825
5831
|
}
|
|
5826
5832
|
function Ce(P, X) {
|
|
@@ -5834,7 +5840,7 @@ var kl = { exports: {} };
|
|
|
5834
5840
|
var oe = P || X && X.lastElementChild;
|
|
5835
5841
|
if (!oe)
|
|
5836
5842
|
return !0;
|
|
5837
|
-
var
|
|
5843
|
+
var ve = getComputedStyle(P), ke = /^inline/.test(ve.getPropertyValue("display")) || /^(left|right)$/.test(ve.getPropertyValue("float"));
|
|
5838
5844
|
if (ke)
|
|
5839
5845
|
return !0;
|
|
5840
5846
|
if (X) {
|
|
@@ -5852,10 +5858,10 @@ var kl = { exports: {} };
|
|
|
5852
5858
|
if (!P.children || !P.children.length)
|
|
5853
5859
|
return !1;
|
|
5854
5860
|
for (const X of Array.from(P.children)) {
|
|
5855
|
-
const
|
|
5856
|
-
if (!
|
|
5861
|
+
const ve = (X.className && X.className.split(" ") || []).filter((ke) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ke));
|
|
5862
|
+
if (!ve.length)
|
|
5857
5863
|
return !1;
|
|
5858
|
-
for (const ke of
|
|
5864
|
+
for (const ke of ve) {
|
|
5859
5865
|
const Ee = ke.slice(ke.lastIndexOf("-") + 1);
|
|
5860
5866
|
if (parseInt(Ee, 10) !== 12)
|
|
5861
5867
|
return !1;
|
|
@@ -5863,20 +5869,20 @@ var kl = { exports: {} };
|
|
|
5863
5869
|
}
|
|
5864
5870
|
return !0;
|
|
5865
5871
|
}
|
|
5866
|
-
function
|
|
5872
|
+
function Ke(P, X) {
|
|
5867
5873
|
const oe = X.getBoundingClientRect();
|
|
5868
5874
|
if (q.style.left = oe.left + "px", q.style.top = oe.top + "px", te) {
|
|
5869
5875
|
if (q.style.height = oe.height + "px", q.style.width = "4px", P) {
|
|
5870
|
-
const
|
|
5871
|
-
|
|
5876
|
+
const ve = P.getBoundingClientRect();
|
|
5877
|
+
ve.top !== oe.top && (q.style.left = ve.right + "px", q.style.top = ve.top + "px", q.style.height = ve.height + "px");
|
|
5872
5878
|
}
|
|
5873
5879
|
} else if (q.style.height = "4px", q.style.width = oe.width + "px", $) {
|
|
5874
|
-
const
|
|
5875
|
-
oe.top <
|
|
5880
|
+
const ve = $.getBoundingClientRect();
|
|
5881
|
+
oe.top < ve.top && (q.style.display = "none");
|
|
5876
5882
|
}
|
|
5877
5883
|
X === W && W && (q.style.display = "none");
|
|
5878
5884
|
}
|
|
5879
|
-
function
|
|
5885
|
+
function at(P) {
|
|
5880
5886
|
R = null;
|
|
5881
5887
|
var X = P.lastElementChild;
|
|
5882
5888
|
if (X) {
|
|
@@ -5888,36 +5894,36 @@ var kl = { exports: {} };
|
|
|
5888
5894
|
function bt(P, X) {
|
|
5889
5895
|
if (!A.mirrorContainer.contains(P) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || ($ = d(P), !$ || !$.contains(P)))
|
|
5890
5896
|
return;
|
|
5891
|
-
const oe = document.querySelector(".dgComponentSelected"),
|
|
5892
|
-
if (X - 30 <
|
|
5897
|
+
const oe = document.querySelector(".dgComponentSelected"), ve = $.getBoundingClientRect();
|
|
5898
|
+
if (X - 30 < ve.top && $.scrollTop > 0) {
|
|
5893
5899
|
let ke = $.scrollTop < 10 ? $.scrollTop : 10;
|
|
5894
5900
|
$.scrollBy(0, -1 * ke), oe && $.contains(oe) && (Y = Y + -1 * ke);
|
|
5895
5901
|
}
|
|
5896
|
-
if (X + 30 >
|
|
5902
|
+
if (X + 30 > ve.bottom && $.scrollTop < $.scrollHeight - $.clientHeight) {
|
|
5897
5903
|
const ke = $.scrollHeight - $.clientHeight - $.scrollTop;
|
|
5898
5904
|
let Ee = ke < 10 ? ke : 10;
|
|
5899
5905
|
$.scrollBy(0, Ee), oe && $.contains(oe) && (Y = Y + Ee);
|
|
5900
5906
|
}
|
|
5901
5907
|
}
|
|
5902
|
-
function
|
|
5903
|
-
var ke = A.direction === "horizontal", Ee = A.direction === "mixed", Oe = X !== P ?
|
|
5908
|
+
function dt(P, X, oe, ve) {
|
|
5909
|
+
var ke = A.direction === "horizontal", Ee = A.direction === "mixed", Oe = X !== P ? Pe() : De();
|
|
5904
5910
|
return Oe;
|
|
5905
5911
|
function De() {
|
|
5906
|
-
var Ve = P.children.length, qe,
|
|
5912
|
+
var Ve = P.children.length, qe, et, Ze;
|
|
5907
5913
|
for (qe = 0; qe < Ve; qe++)
|
|
5908
|
-
if (
|
|
5909
|
-
return
|
|
5914
|
+
if (et = P.children[qe], Ze = et.getBoundingClientRect(), ke && Ze.left + Ze.width / 2 > oe || !Ee && !ke && Ze.top + Ze.height / 2 > ve || Ee && Ze.left + Ze.width > oe && Ze.top + Ze.height > ve)
|
|
5915
|
+
return et;
|
|
5910
5916
|
return null;
|
|
5911
5917
|
}
|
|
5912
|
-
function
|
|
5918
|
+
function Pe() {
|
|
5913
5919
|
var Ve = X.getBoundingClientRect();
|
|
5914
5920
|
if (Ee) {
|
|
5915
|
-
var qe =
|
|
5916
|
-
return te ? ge = Vt <
|
|
5921
|
+
var qe = ve - Ve.top, et = oe - Ve.left, Ze = Ve.bottom - ve, Vt = Ve.right - oe, Bt = Math.min(et, Vt, qe, Ze), ge;
|
|
5922
|
+
return te ? ge = Vt < et : ge = Ze === Bt || Vt === Bt || et === Bt, We(ge);
|
|
5917
5923
|
}
|
|
5918
|
-
return
|
|
5924
|
+
return We(ke ? oe > Ve.left + c(Ve) / 2 : ve > Ve.top + F(Ve) / 2);
|
|
5919
5925
|
}
|
|
5920
|
-
function
|
|
5926
|
+
function We(Ve) {
|
|
5921
5927
|
return Ve ? g(X) : X;
|
|
5922
5928
|
}
|
|
5923
5929
|
}
|
|
@@ -7320,7 +7326,7 @@ function zl(e, t, n, o, i, a, r, s, l, m, v, u, d, h, f, _, C) {
|
|
|
7320
7326
|
renderDataArea: O
|
|
7321
7327
|
};
|
|
7322
7328
|
}
|
|
7323
|
-
const qt = /* @__PURE__ */
|
|
7329
|
+
const qt = /* @__PURE__ */ st({
|
|
7324
7330
|
name: "FTreeGrid",
|
|
7325
7331
|
props: fn,
|
|
7326
7332
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "unSelectItem", "selectItem"],
|
|
@@ -7360,39 +7366,39 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7360
7366
|
updateVisibleRowsOnLatestVisibleScope: ie
|
|
7361
7367
|
} = fe, ce = xi(e, H, m, Me, R), {
|
|
7362
7368
|
calculateColumnsSize: Fe
|
|
7363
|
-
} = ce, Te = Fi(), Ge = Ti(m, d, S, Te, fe),
|
|
7369
|
+
} = ce, Te = Fi(), Ge = Ti(m, d, S, Te, fe), Je = ki(e, t, M, S, R, C, fe), re = L(() => ({
|
|
7364
7370
|
"fv-grid": !0,
|
|
7365
7371
|
"fv-grid-bordered": e.showBorder,
|
|
7366
7372
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
7367
7373
|
"fv-datagrid-strip": e.showStripe
|
|
7368
|
-
})),
|
|
7374
|
+
})), he = L(() => ({
|
|
7369
7375
|
"fv-grid-content": !0,
|
|
7370
7376
|
"fv-grid-content-hover": f.value,
|
|
7371
7377
|
"fv-grid-wrap-content": _.value
|
|
7372
7378
|
})), {
|
|
7373
|
-
renderDataArea:
|
|
7379
|
+
renderDataArea: Re
|
|
7374
7380
|
} = zl(e, t, v, u, d, $, M, S, j, y, N, g, p, fe, te, z, h), {
|
|
7375
|
-
renderGridHeader:
|
|
7376
|
-
renderGridColumnResizeOverlay:
|
|
7381
|
+
renderGridHeader: ze,
|
|
7382
|
+
renderGridColumnResizeOverlay: Ne,
|
|
7377
7383
|
shouldShowHeader: ee
|
|
7378
|
-
} = Ei(e, t, m, u, d, M, S,
|
|
7384
|
+
} = Ei(e, t, m, u, d, M, S, Je, Ge, b, Te, ce, R, g, A, W, fe, Me, h), {
|
|
7379
7385
|
renderDataGridSidebar: _e
|
|
7380
7386
|
} = Oi(e, N, g, A, fe), {
|
|
7381
|
-
renderDisableMask:
|
|
7387
|
+
renderDisableMask: He
|
|
7382
7388
|
} = Mi(), {
|
|
7383
7389
|
renderHorizontalScrollbar: Be
|
|
7384
7390
|
} = Ii(e, m, fe), {
|
|
7385
|
-
renderVerticalScrollbar:
|
|
7391
|
+
renderVerticalScrollbar: ot
|
|
7386
7392
|
} = Vi(e, m, fe);
|
|
7387
|
-
function
|
|
7388
|
-
var ge, Ie,
|
|
7393
|
+
function ye() {
|
|
7394
|
+
var ge, Ie, rt;
|
|
7389
7395
|
if (m.value && m.value.clientHeight > 0 && ((ge = m.value) == null ? void 0 : ge.clientWidth) > 0) {
|
|
7390
|
-
const
|
|
7391
|
-
|
|
7396
|
+
const it = Math.ceil(m.value.clientHeight / o);
|
|
7397
|
+
it > i.value && (i.value = it, ie()), be.value = ((Ie = v.value) == null ? void 0 : Ie.clientHeight) || 0, we.value = ((rt = m.value) == null ? void 0 : rt.clientWidth) || 0, Fe();
|
|
7392
7398
|
}
|
|
7393
7399
|
}
|
|
7394
7400
|
Rt(() => {
|
|
7395
|
-
m.value && (i.value = Math.max(Math.ceil(m.value.clientHeight / o), i.value), h.value = Y(0, k.value + 0 - 1), Bn(m.value,
|
|
7401
|
+
m.value && (i.value = Math.max(Math.ceil(m.value.clientHeight / o), i.value), h.value = Y(0, k.value + 0 - 1), Bn(m.value, ye), Fe(), Pt(() => {
|
|
7396
7402
|
m.value && (we.value = m.value.clientWidth), v.value && (Me.value = v.value.clientWidth, be.value = v.value.clientHeight);
|
|
7397
7403
|
})), F.value && x();
|
|
7398
7404
|
}), Jt(() => {
|
|
@@ -7402,27 +7408,27 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7402
7408
|
function Ae(ge) {
|
|
7403
7409
|
S.collapseTo(ge), S.reOrderVisibleIndex(), Q();
|
|
7404
7410
|
}
|
|
7405
|
-
function
|
|
7411
|
+
function Le(ge) {
|
|
7406
7412
|
S.expandTo(ge), S.reOrderVisibleIndex(), Q();
|
|
7407
7413
|
}
|
|
7408
|
-
function
|
|
7414
|
+
function je() {
|
|
7409
7415
|
const ge = g.getSelectionRow();
|
|
7410
7416
|
return ge ? ge.dataIndex - 1 : -1;
|
|
7411
7417
|
}
|
|
7412
|
-
function
|
|
7413
|
-
const ge =
|
|
7418
|
+
function ut() {
|
|
7419
|
+
const ge = je();
|
|
7414
7420
|
S.insertNewDataItem(ge), h.value = Y(0, k.value + 0 - 1);
|
|
7415
7421
|
}
|
|
7416
|
-
function
|
|
7417
|
-
const ge =
|
|
7422
|
+
function ct() {
|
|
7423
|
+
const ge = je();
|
|
7418
7424
|
S.insertNewChildDataItem(ge), h.value = Y(0, k.value + 0 - 1);
|
|
7419
7425
|
}
|
|
7420
|
-
function
|
|
7421
|
-
const
|
|
7422
|
-
S.insertNewChildDataItems(ge,
|
|
7426
|
+
function ae(ge, Ie) {
|
|
7427
|
+
const rt = h.value.find((lt) => lt.raw[s.value] === Ie), it = rt ? rt.dataIndex - 1 : -1;
|
|
7428
|
+
S.insertNewChildDataItems(ge, it);
|
|
7423
7429
|
}
|
|
7424
|
-
function
|
|
7425
|
-
const ge =
|
|
7430
|
+
function pe() {
|
|
7431
|
+
const ge = je(), Ie = p.getNextSelectableHierarchyItemId(ge);
|
|
7426
7432
|
S.removeHierarchyDataItem(ge), h.value = Y(0, k.value + 0 - 1), Ie && g.selectItemById(Ie);
|
|
7427
7433
|
}
|
|
7428
7434
|
function Ce(ge) {
|
|
@@ -7434,20 +7440,20 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7434
7440
|
function Ue(ge) {
|
|
7435
7441
|
j.cancelEditingRow(ge);
|
|
7436
7442
|
}
|
|
7437
|
-
function
|
|
7443
|
+
function Ke(ge) {
|
|
7438
7444
|
ge && (a.value = ge, O(a), D(a.value), U(S, W), Fe());
|
|
7439
7445
|
}
|
|
7440
7446
|
Se(() => e.columns, (ge) => {
|
|
7441
|
-
|
|
7447
|
+
Ke(ge);
|
|
7442
7448
|
});
|
|
7443
|
-
function
|
|
7449
|
+
function at(ge, Ie) {
|
|
7444
7450
|
ge && (S.load(ge), S.reOrderVisibleIndex(), Ie != null && Ie.keepScrollPosition ? fe.scrollTo(fe.offsetY.value) : Q());
|
|
7445
7451
|
}
|
|
7446
7452
|
function bt(ge) {
|
|
7447
7453
|
g.selectItemById(ge);
|
|
7448
7454
|
}
|
|
7449
|
-
function
|
|
7450
|
-
const Ie = h.value.find((
|
|
7455
|
+
function dt(ge) {
|
|
7456
|
+
const Ie = h.value.find((rt) => rt.raw[r.idField.value] === ge);
|
|
7451
7457
|
Ie && N.clickRowItem(Ie);
|
|
7452
7458
|
}
|
|
7453
7459
|
function Z(ge) {
|
|
@@ -7462,7 +7468,7 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7462
7468
|
function oe() {
|
|
7463
7469
|
g.clearSelection();
|
|
7464
7470
|
}
|
|
7465
|
-
const
|
|
7471
|
+
const ve = L(() => !h.value || !h.value.length), {
|
|
7466
7472
|
renderEmpty: ke
|
|
7467
7473
|
} = Bi(t);
|
|
7468
7474
|
function Ee() {
|
|
@@ -7474,42 +7480,42 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7474
7480
|
function De() {
|
|
7475
7481
|
return g.currentSelectedDataId.value;
|
|
7476
7482
|
}
|
|
7477
|
-
function
|
|
7478
|
-
const
|
|
7479
|
-
if (
|
|
7480
|
-
if (Object.keys(
|
|
7481
|
-
Object.prototype.hasOwnProperty.call(Ie,
|
|
7482
|
-
}),
|
|
7483
|
+
function Pe(ge, Ie, rt) {
|
|
7484
|
+
const it = w.value.find((lt) => lt[s.value] === ge);
|
|
7485
|
+
if (it) {
|
|
7486
|
+
if (Object.keys(it).forEach((Qe) => {
|
|
7487
|
+
Object.prototype.hasOwnProperty.call(Ie, Qe) && (it[Qe] = Ie[Qe]);
|
|
7488
|
+
}), rt) {
|
|
7483
7489
|
const {
|
|
7484
|
-
collapseField:
|
|
7490
|
+
collapseField: Qe,
|
|
7485
7491
|
disabledField: xt,
|
|
7486
7492
|
checkedField: Ft,
|
|
7487
7493
|
visibleField: Tt
|
|
7488
|
-
} =
|
|
7489
|
-
|
|
7494
|
+
} = rt;
|
|
7495
|
+
Qe && !mt(Ie[Qe]) && (it.__fv_collapse__ = Ie[Qe]), Ft && !mt(Ie[Ft]) && (it.__fv_checked__ = Ie[Ft]), xt && !mt(Ie[xt]) && (it.__fv_disabled__ = Ie[xt]), Tt && !mt(Ie[Tt]) && (it.__fv_visible__ = Ie[Tt]);
|
|
7490
7496
|
}
|
|
7491
|
-
const
|
|
7492
|
-
if (
|
|
7493
|
-
if (
|
|
7494
|
-
|
|
7495
|
-
}),
|
|
7497
|
+
const lt = h.value.find((Qe) => Qe.raw[s.value] === ge), pn = h.value.findIndex((Qe) => Qe.raw[s.value] === ge);
|
|
7498
|
+
if (lt) {
|
|
7499
|
+
if (lt.raw = it, Object.keys(lt.data).forEach((Qe) => {
|
|
7500
|
+
lt.data[Qe].updateData(it);
|
|
7501
|
+
}), rt) {
|
|
7496
7502
|
const {
|
|
7497
|
-
collapseField:
|
|
7503
|
+
collapseField: Qe,
|
|
7498
7504
|
disabledField: xt,
|
|
7499
7505
|
checkedField: Ft,
|
|
7500
7506
|
visibleField: Tt
|
|
7501
|
-
} =
|
|
7502
|
-
|
|
7507
|
+
} = rt;
|
|
7508
|
+
Qe && !mt(Ie[Qe]) && (lt.collapse = Ie[Qe]), Ft && !mt(Ie[Ft]) && (lt.checked = Ie[Ft]), xt && !mt(Ie[xt]) && (lt.disabled = Ie[xt]), Tt && !mt(Ie[Tt]) && (lt.visible = Ie[Tt]);
|
|
7503
7509
|
}
|
|
7504
|
-
h.value = [...h.value.slice(0, pn),
|
|
7510
|
+
h.value = [...h.value.slice(0, pn), lt, ...h.value.slice(pn + 1)];
|
|
7505
7511
|
}
|
|
7506
7512
|
}
|
|
7507
7513
|
}
|
|
7508
|
-
function
|
|
7514
|
+
function We(ge) {
|
|
7509
7515
|
return Object.prototype.hasOwnProperty.call(ge, "raw") ? S.hasRealChildren(ge.raw) : S.hasRealChildren(ge);
|
|
7510
7516
|
}
|
|
7511
7517
|
function Ve(ge) {
|
|
7512
|
-
const Ie = S.dataView.value.find((
|
|
7518
|
+
const Ie = S.dataView.value.find((rt) => rt[s.value] === ge);
|
|
7513
7519
|
return Ie ? Ie[c.value] : "";
|
|
7514
7520
|
}
|
|
7515
7521
|
function qe() {
|
|
@@ -7517,49 +7523,49 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7517
7523
|
}
|
|
7518
7524
|
t.expose({
|
|
7519
7525
|
activeRowById: Z,
|
|
7520
|
-
addNewDataItem:
|
|
7521
|
-
addNewChildDataItem:
|
|
7522
|
-
addChildrenToNode:
|
|
7526
|
+
addNewDataItem: ut,
|
|
7527
|
+
addNewChildDataItem: ct,
|
|
7528
|
+
addChildrenToNode: ae,
|
|
7523
7529
|
collapseTo: Ae,
|
|
7524
|
-
expandTo:
|
|
7525
|
-
removeDataItem:
|
|
7530
|
+
expandTo: Le,
|
|
7531
|
+
removeDataItem: pe,
|
|
7526
7532
|
editDataItem: Ce,
|
|
7527
7533
|
acceptDataItem: $e,
|
|
7528
7534
|
cancelDataItem: Ue,
|
|
7529
|
-
updateColumns:
|
|
7530
|
-
updateDataSource:
|
|
7535
|
+
updateColumns: Ke,
|
|
7536
|
+
updateDataSource: at,
|
|
7531
7537
|
selectItemById: bt,
|
|
7532
7538
|
selectItemByIds: P,
|
|
7533
7539
|
getSelectedItems: X,
|
|
7534
7540
|
clearSelection: oe,
|
|
7535
7541
|
getSelectionRow: Ee,
|
|
7536
|
-
clickRowItemById:
|
|
7542
|
+
clickRowItemById: dt,
|
|
7537
7543
|
unSelectItemByIds: Oe,
|
|
7538
7544
|
getCurrentRowId: De,
|
|
7539
|
-
reassignRowData:
|
|
7540
|
-
hasChildren:
|
|
7545
|
+
reassignRowData: Pe,
|
|
7546
|
+
hasChildren: We,
|
|
7541
7547
|
getCollapseField: qe,
|
|
7542
7548
|
getCollapseStatusById: Ve
|
|
7543
7549
|
});
|
|
7544
|
-
const
|
|
7550
|
+
const et = L(() => {
|
|
7545
7551
|
const ge = {};
|
|
7546
7552
|
return fe.shouldShowHorizontalScrollbar.value && (ge.paddingBottom = "10px"), fe.shouldShowVirticalScrollbar.value && (ge.paddingRight = "10px"), ge;
|
|
7547
|
-
}),
|
|
7553
|
+
}), Ze = L(() => ({
|
|
7548
7554
|
...I.value,
|
|
7549
7555
|
borderRadius: "5px"
|
|
7550
7556
|
}));
|
|
7551
7557
|
return () => V("div", {
|
|
7552
7558
|
ref: l,
|
|
7553
7559
|
class: re.value,
|
|
7554
|
-
style:
|
|
7560
|
+
style: Ze.value,
|
|
7555
7561
|
onWheel: xe
|
|
7556
|
-
}, [m.value && ee.value &&
|
|
7562
|
+
}, [m.value && ee.value && ze(), V("div", {
|
|
7557
7563
|
ref: m,
|
|
7558
|
-
class:
|
|
7564
|
+
class: he.value,
|
|
7559
7565
|
onMouseover: () => f.value = !0,
|
|
7560
7566
|
onMouseleave: () => f.value = !1,
|
|
7561
|
-
style:
|
|
7562
|
-
}, [m.value && _e(h), m.value &&
|
|
7567
|
+
style: et.value
|
|
7568
|
+
}, [m.value && _e(h), m.value && Re(), m.value && ve.value && ke(), m.value && Be(), m.value && ot()]), Ne(), E.value && He()]);
|
|
7563
7569
|
}
|
|
7564
7570
|
}), Gl = {
|
|
7565
7571
|
id: { type: String, default: "" },
|
|
@@ -7578,7 +7584,7 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7578
7584
|
ignore: { type: Boolean, default: !1 }
|
|
7579
7585
|
}, Ul = {
|
|
7580
7586
|
id: { type: String }
|
|
7581
|
-
}, ql = /* @__PURE__ */
|
|
7587
|
+
}, ql = /* @__PURE__ */ st({
|
|
7582
7588
|
name: "FDesignerPlaceholder",
|
|
7583
7589
|
props: Ul,
|
|
7584
7590
|
emits: [],
|
|
@@ -7606,13 +7612,13 @@ const qt = /* @__PURE__ */ ut({
|
|
|
7606
7612
|
role: "alert",
|
|
7607
7613
|
"data-noattach": "true",
|
|
7608
7614
|
"data-position": "0"
|
|
7609
|
-
}, [
|
|
7615
|
+
}, [vt("拖拽组件到这里")]);
|
|
7610
7616
|
}
|
|
7611
7617
|
});
|
|
7612
7618
|
function Yl(e) {
|
|
7613
7619
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Xt(e);
|
|
7614
7620
|
}
|
|
7615
|
-
const ln = /* @__PURE__ */
|
|
7621
|
+
const ln = /* @__PURE__ */ st({
|
|
7616
7622
|
name: "FDesignerItem",
|
|
7617
7623
|
props: Gl,
|
|
7618
7624
|
emits: ["selectionChange", "dragEnd"],
|
|
@@ -8125,9 +8131,9 @@ function Ql(e, t) {
|
|
|
8125
8131
|
const { formSchemaUtils: y } = t;
|
|
8126
8132
|
if (_) {
|
|
8127
8133
|
const F = y.getRootViewModelId(), x = y.getComponentByViewModelId(F), S = y.selectNode(x, (w) => w.contents && w.contents.find((g) => g.component === _));
|
|
8128
|
-
(S == null ? void 0 : S.type) === ((d =
|
|
8134
|
+
(S == null ? void 0 : S.type) === ((d = le["tab-page"]) == null ? void 0 : d.type) && ((h = S == null ? void 0 : S.contents) != null && h.length) && (C = S.title || ""), (S == null ? void 0 : S.type) === ((f = le.section) == null ? void 0 : f.type) && (S == null ? void 0 : S.showHeader) !== !1 && (C = S.mainTitle || ""), C = C ? `${C} > ` : "", b = C ? S.id : "";
|
|
8129
8135
|
}
|
|
8130
|
-
const c =
|
|
8136
|
+
const c = le["tree-grid"].name;
|
|
8131
8137
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
8132
8138
|
componentTitle: c,
|
|
8133
8139
|
parentPathName: `${C}${c}`,
|
|
@@ -8411,7 +8417,7 @@ function ts(e, t, n, o, i, a, r, s) {
|
|
|
8411
8417
|
}
|
|
8412
8418
|
return { getVisualData: f, maxVisibleRowIndex: l, minVisibleRowIndex: m, toggleGroupRow: _ };
|
|
8413
8419
|
}
|
|
8414
|
-
const ns = /* @__PURE__ */
|
|
8420
|
+
const ns = /* @__PURE__ */ st({
|
|
8415
8421
|
name: "FTreeGridDesign",
|
|
8416
8422
|
props: fo,
|
|
8417
8423
|
emits: [],
|
|
@@ -8458,9 +8464,9 @@ const ns = /* @__PURE__ */ ut({
|
|
|
8458
8464
|
renderHorizontalScrollbar: Me
|
|
8459
8465
|
} = qi(e, l, G);
|
|
8460
8466
|
function Q() {
|
|
8461
|
-
var Ge,
|
|
8467
|
+
var Ge, Je;
|
|
8462
8468
|
const Te = Math.ceil(l.value.clientHeight / i);
|
|
8463
|
-
Te > a.value && (a.value = Te, A()), Y.value = ((Ge = m.value) == null ? void 0 : Ge.clientHeight) || 0, te.value = ((
|
|
8469
|
+
Te > a.value && (a.value = Te, A()), Y.value = ((Ge = m.value) == null ? void 0 : Ge.clientHeight) || 0, te.value = ((Je = l.value) == null ? void 0 : Je.clientWidth) || 0, fe();
|
|
8464
8470
|
}
|
|
8465
8471
|
Rt(() => {
|
|
8466
8472
|
n.value.componentInstance = C, l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / i), a.value), v.value = N(0, x.value + o - 1), Bn(l.value, Q), fe(), Pt(() => {
|
|
@@ -9229,22 +9235,22 @@ function Ps(e, t) {
|
|
|
9229
9235
|
remove: o
|
|
9230
9236
|
}) : null;
|
|
9231
9237
|
}
|
|
9232
|
-
const Mt = /* @__PURE__ */
|
|
9238
|
+
const Mt = /* @__PURE__ */ st({
|
|
9233
9239
|
name: "FModal",
|
|
9234
9240
|
props: mo,
|
|
9235
9241
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
9236
9242
|
setup(e, t) {
|
|
9237
9243
|
const n = B(e.width || 300), o = B(e.height || 200), i = B(e.modelValue), a = B(""), r = B(e.class), s = B(e.fitContent), l = B(e.showHeader), m = B(""), v = B(e.showCloseButton), u = B(e.showMaxButton), d = B(!1), h = B(e.dialogType), f = B(e.src), _ = B(""), C = B(e.showButtons), b = B(e.title), y = B(e.containment || null), c = B(), {
|
|
9238
9244
|
t: F
|
|
9239
|
-
} =
|
|
9245
|
+
} = nt();
|
|
9240
9246
|
b.value === "错误提示" && (b.value = F("messageBox.errorTitle"));
|
|
9241
9247
|
const x = B(!1);
|
|
9242
9248
|
function S(ee, _e) {
|
|
9243
|
-
const
|
|
9249
|
+
const He = _e ? "accept" : "cancel";
|
|
9244
9250
|
Promise.resolve().then(() => {
|
|
9245
9251
|
var Be;
|
|
9246
9252
|
return (Be = e.beforeClose) == null ? void 0 : Be.call(e, {
|
|
9247
|
-
closeType:
|
|
9253
|
+
closeType: He
|
|
9248
9254
|
});
|
|
9249
9255
|
}).then((Be) => {
|
|
9250
9256
|
Be && (i.value = !1, t.emit("update:modelValue", !1), _e != null && t.emit(_e ? "accept" : "cancel"), t.emit("closed", ee));
|
|
@@ -9294,29 +9300,29 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9294
9300
|
}), Se(() => e.showButtons, (ee, _e) => {
|
|
9295
9301
|
ee !== _e && (C.value = ee);
|
|
9296
9302
|
}), Se(() => H.value, (ee, _e) => {
|
|
9297
|
-
const
|
|
9298
|
-
JSON.stringify(
|
|
9303
|
+
const He = ee || {}, Be = _e || {};
|
|
9304
|
+
JSON.stringify(He) !== JSON.stringify(Be) && t.emit("resize", {
|
|
9299
9305
|
newSize: ee,
|
|
9300
9306
|
oldSize: _e,
|
|
9301
9307
|
isMaximized: T.value
|
|
9302
9308
|
});
|
|
9303
9309
|
});
|
|
9304
9310
|
const q = L(() => (i.value && document.body.classList.add("modal-open"), i.value)), te = L(() => {
|
|
9305
|
-
var
|
|
9311
|
+
var He;
|
|
9306
9312
|
const ee = {
|
|
9307
9313
|
modal: !0,
|
|
9308
9314
|
"farris-modal": !0,
|
|
9309
9315
|
fade: !0
|
|
9310
9316
|
};
|
|
9311
9317
|
ee["f-modal-fitContent"] = !!s.value, ee.show = !!q.value;
|
|
9312
|
-
const _e = (
|
|
9313
|
-
return _e == null || _e.reduce((Be,
|
|
9318
|
+
const _e = (He = e.maskClass) == null ? void 0 : He.split(" ");
|
|
9319
|
+
return _e == null || _e.reduce((Be, ot) => (Be[ot] = !0, Be), ee), ee;
|
|
9314
9320
|
}), Y = L(() => {
|
|
9315
|
-
var
|
|
9321
|
+
var He;
|
|
9316
9322
|
const ee = {
|
|
9317
9323
|
"modal-dialog": !0
|
|
9318
|
-
}, _e = (
|
|
9319
|
-
return _e == null || _e.reduce((Be,
|
|
9324
|
+
}, _e = (He = r.value) == null ? void 0 : He.split(" ");
|
|
9325
|
+
return _e == null || _e.reduce((Be, ot) => (Be[ot] = !0, Be), ee), ee;
|
|
9320
9326
|
}), $ = L(() => {
|
|
9321
9327
|
const ee = {
|
|
9322
9328
|
position: "absolute",
|
|
@@ -9405,7 +9411,7 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9405
9411
|
class: "f-icon modal_close"
|
|
9406
9412
|
}, null)])]);
|
|
9407
9413
|
}
|
|
9408
|
-
function
|
|
9414
|
+
function Je() {
|
|
9409
9415
|
return V("div", {
|
|
9410
9416
|
class: "modal-footer",
|
|
9411
9417
|
style: Me.value
|
|
@@ -9416,8 +9422,8 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9416
9422
|
type: "button",
|
|
9417
9423
|
disabled: _e.value,
|
|
9418
9424
|
class: ee.class + (ee.iconClass ? " btn-icontext" : ""),
|
|
9419
|
-
onClick: (
|
|
9420
|
-
ie(ee,
|
|
9425
|
+
onClick: (He) => {
|
|
9426
|
+
ie(ee, He);
|
|
9421
9427
|
}
|
|
9422
9428
|
}, [!!ee.iconClass && V("i", {
|
|
9423
9429
|
class: ee.iconClass
|
|
@@ -9440,17 +9446,17 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9440
9446
|
class: "actions"
|
|
9441
9447
|
}, [Ge()])]);
|
|
9442
9448
|
}
|
|
9443
|
-
function
|
|
9444
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() : E.value &&
|
|
9449
|
+
function he() {
|
|
9450
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : E.value && Je();
|
|
9445
9451
|
}
|
|
9446
|
-
function
|
|
9452
|
+
function Re(ee) {
|
|
9447
9453
|
if (ee.stopPropagation(), e.allowClickMaskToClose) {
|
|
9448
9454
|
if (ee.target !== c.value)
|
|
9449
9455
|
return;
|
|
9450
9456
|
S(ee, !1);
|
|
9451
9457
|
}
|
|
9452
9458
|
}
|
|
9453
|
-
function
|
|
9459
|
+
function ze() {
|
|
9454
9460
|
var ee, _e;
|
|
9455
9461
|
return V("div", {
|
|
9456
9462
|
id: a.value,
|
|
@@ -9467,13 +9473,13 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9467
9473
|
width: "100%",
|
|
9468
9474
|
frameborder: "0",
|
|
9469
9475
|
src: f.value
|
|
9470
|
-
}, null)]),
|
|
9476
|
+
}, null)]), he()]), !s.value && I.value && !T.value && O(I.value)]);
|
|
9471
9477
|
}
|
|
9472
|
-
function
|
|
9478
|
+
function Ne(ee) {
|
|
9473
9479
|
return ee || "body";
|
|
9474
9480
|
}
|
|
9475
9481
|
return () => V(Fo, {
|
|
9476
|
-
to:
|
|
9482
|
+
to: Ne(e.host)
|
|
9477
9483
|
}, {
|
|
9478
9484
|
default: () => [q.value && V(Tn, {
|
|
9479
9485
|
name: "fade",
|
|
@@ -9483,8 +9489,8 @@ const Mt = /* @__PURE__ */ ut({
|
|
|
9483
9489
|
ref: c,
|
|
9484
9490
|
class: te.value,
|
|
9485
9491
|
style: A.value,
|
|
9486
|
-
onClick:
|
|
9487
|
-
}, [
|
|
9492
|
+
onClick: Re
|
|
9493
|
+
}, [ze()])]
|
|
9488
9494
|
})]
|
|
9489
9495
|
});
|
|
9490
9496
|
}
|
|
@@ -9970,7 +9976,7 @@ function lu(e, t, n, o, i) {
|
|
|
9970
9976
|
}, null), y.text]))]);
|
|
9971
9977
|
}
|
|
9972
9978
|
function su(e) {
|
|
9973
|
-
const { t, locale: n } =
|
|
9979
|
+
const { t, locale: n } = nt();
|
|
9974
9980
|
function o(i, a, r) {
|
|
9975
9981
|
return a === r ? t(i) : a;
|
|
9976
9982
|
}
|
|
@@ -9995,7 +10001,7 @@ function su(e) {
|
|
|
9995
10001
|
locale: n.value
|
|
9996
10002
|
};
|
|
9997
10003
|
}
|
|
9998
|
-
const Gt = /* @__PURE__ */
|
|
10004
|
+
const Gt = /* @__PURE__ */ st({
|
|
9999
10005
|
name: "FMessageBox",
|
|
10000
10006
|
props: Ys,
|
|
10001
10007
|
emits: ["accept", "reject", "close"],
|
|
@@ -10143,7 +10149,7 @@ Gt.install = (e) => {
|
|
|
10143
10149
|
};
|
|
10144
10150
|
var Wt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Wt || {});
|
|
10145
10151
|
function uu() {
|
|
10146
|
-
const { t: e } =
|
|
10152
|
+
const { t: e } = nt();
|
|
10147
10153
|
return { conditionListLocale: {
|
|
10148
10154
|
// 添加条件
|
|
10149
10155
|
add: e("condition.add"),
|
|
@@ -10156,7 +10162,7 @@ function uu() {
|
|
|
10156
10162
|
} };
|
|
10157
10163
|
}
|
|
10158
10164
|
function cu() {
|
|
10159
|
-
const { t: e } =
|
|
10165
|
+
const { t: e } = nt();
|
|
10160
10166
|
return { operatorsLocale: {
|
|
10161
10167
|
equal: e("operators.equal"),
|
|
10162
10168
|
notEqual: e("operators.notEqual"),
|
|
@@ -10169,7 +10175,7 @@ function cu() {
|
|
|
10169
10175
|
endWith: e("operators.endWith")
|
|
10170
10176
|
} };
|
|
10171
10177
|
}
|
|
10172
|
-
var
|
|
10178
|
+
var ft = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e.In = "9", e.NotIn = "10", e))(ft || {});
|
|
10173
10179
|
function du() {
|
|
10174
10180
|
const { operatorsLocale: e } = cu();
|
|
10175
10181
|
return [
|
|
@@ -10259,7 +10265,7 @@ function go() {
|
|
|
10259
10265
|
id: "",
|
|
10260
10266
|
fieldCode: "",
|
|
10261
10267
|
fieldName: "",
|
|
10262
|
-
compareType:
|
|
10268
|
+
compareType: ft.Equal,
|
|
10263
10269
|
valueType: Wt.Value,
|
|
10264
10270
|
value: new Ut(),
|
|
10265
10271
|
relation: 0,
|
|
@@ -10464,7 +10470,7 @@ function pu(e, t, n) {
|
|
|
10464
10470
|
}
|
|
10465
10471
|
return { clear: C, getSelectedGroupItem: _, selectedItems: o, toggleSelect: f };
|
|
10466
10472
|
}
|
|
10467
|
-
const tn = /* @__PURE__ */
|
|
10473
|
+
const tn = /* @__PURE__ */ st({
|
|
10468
10474
|
name: "FConditionList",
|
|
10469
10475
|
props: Rn,
|
|
10470
10476
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
@@ -10812,14 +10818,14 @@ function _u() {
|
|
|
10812
10818
|
["enum", "combo-list"],
|
|
10813
10819
|
["reference", "lookup"]
|
|
10814
10820
|
]), a = /* @__PURE__ */ new Map([
|
|
10815
|
-
["boolean",
|
|
10816
|
-
["date",
|
|
10817
|
-
["datetime",
|
|
10818
|
-
["number",
|
|
10819
|
-
["string",
|
|
10820
|
-
["text",
|
|
10821
|
-
["enum",
|
|
10822
|
-
["reference",
|
|
10821
|
+
["boolean", ft.In],
|
|
10822
|
+
["date", ft.Equal],
|
|
10823
|
+
["datetime", ft.Equal],
|
|
10824
|
+
["number", ft.Equal],
|
|
10825
|
+
["string", ft.Equal],
|
|
10826
|
+
["text", ft.Equal],
|
|
10827
|
+
["enum", ft.In],
|
|
10828
|
+
["reference", ft.Equal]
|
|
10823
10829
|
]);
|
|
10824
10830
|
function r(C) {
|
|
10825
10831
|
var y;
|
|
@@ -10828,7 +10834,7 @@ function _u() {
|
|
|
10828
10834
|
}
|
|
10829
10835
|
function s(C) {
|
|
10830
10836
|
var E, k, I, T, O;
|
|
10831
|
-
const b = `field_filter_${C.field}`, y = Date.now(), c = C.field, F = ((E = C.column) == null ? void 0 : E.title) || "", x = ((k = C.column) == null ? void 0 : k.dataType) || "string", S = a.get(x) ||
|
|
10837
|
+
const b = `field_filter_${C.field}`, y = Date.now(), c = C.field, F = ((E = C.column) == null ? void 0 : E.title) || "", x = ((k = C.column) == null ? void 0 : k.dataType) || "string", S = a.get(x) || ft.Equal, w = ((T = (I = C.column) == null ? void 0 : I.editor) == null ? void 0 : T.type) || i.get(x) || "text", g = o(w, (O = C.column) == null ? void 0 : O.filter), p = w === "lookup" || w === "combo-lookup" ? Wt.SmartHelp : w === "combo-list" ? Wt.Enum : Wt.Value;
|
|
10832
10838
|
t.set(b, { id: b, fieldCode: c, fieldName: F, compareType: S, valueType: p, value: g, conditionId: y }), e.value = Array.from(t.values());
|
|
10833
10839
|
}
|
|
10834
10840
|
function l(C) {
|
|
@@ -11024,78 +11030,78 @@ function Jd(e, t, n, o, i, a) {
|
|
|
11024
11030
|
return { getNextSelectableHierarchyItemId: H, toggleSelectHierarchyItem: M };
|
|
11025
11031
|
}
|
|
11026
11032
|
function Fu(e, t, n, o, i, a, r, s, l) {
|
|
11027
|
-
var
|
|
11028
|
-
const { dataView: m, visibleDataItems: v } = t, { getVisualData: u, maxVisibleRowIndex: d, minVisibleRowIndex: h } = i, f = L(() => o.value.primaryColumnsWidth), _ = L(() => o.value.leftColumnsWidth), C = L(() => o.value.rightColumnsWidth), b = ((
|
|
11033
|
+
var ct;
|
|
11034
|
+
const { dataView: m, visibleDataItems: v } = t, { getVisualData: u, maxVisibleRowIndex: d, minVisibleRowIndex: h } = i, f = L(() => o.value.primaryColumnsWidth), _ = L(() => o.value.leftColumnsWidth), C = L(() => o.value.rightColumnsWidth), b = ((ct = e.rowOption) == null ? void 0 : ct.height) || 28, y = B(0), c = B(0);
|
|
11029
11035
|
let F = 0, x = a.value - 1;
|
|
11030
11036
|
const S = B(0), w = B(0), g = B(0), p = B(e.virtualized), E = 24, k = 1.5;
|
|
11031
11037
|
let I = null;
|
|
11032
11038
|
function T() {
|
|
11033
|
-
const
|
|
11034
|
-
if (
|
|
11039
|
+
const ae = v.value;
|
|
11040
|
+
if (ae.length <= 0)
|
|
11035
11041
|
return 0;
|
|
11036
|
-
const
|
|
11037
|
-
return
|
|
11042
|
+
const pe = d.value < ae.length ? ae[d.value] : ae[ae.length - 1];
|
|
11043
|
+
return pe.__fv_data_position__ > ae.length * b ? ae.length * b : (pe.__fv_data_position__ || 0) + (pe.__fv_data_height__ || 0) + Math.max(ae.length - 1 - d.value, 0) * b;
|
|
11038
11044
|
}
|
|
11039
11045
|
const O = L(() => {
|
|
11040
|
-
const
|
|
11046
|
+
const ae = T();
|
|
11041
11047
|
v.value;
|
|
11042
|
-
let
|
|
11048
|
+
let pe = w.value / Math.max(ae, w.value), Ce = Math.floor(pe * w.value);
|
|
11043
11049
|
for (; w.value > 0 && Ce < E; )
|
|
11044
|
-
|
|
11050
|
+
pe *= k, Ce = Math.floor(pe * w.value);
|
|
11045
11051
|
return Ce;
|
|
11046
11052
|
}), M = L(() => Math.floor(g.value / Math.max(f.value, g.value) * S.value)), W = 0, U = 0, H = L(() => S.value - (_.value + f.value + C.value + s.value));
|
|
11047
|
-
function D(
|
|
11048
|
-
const Ce = Math.floor(
|
|
11053
|
+
function D(ae) {
|
|
11054
|
+
const Ce = Math.floor(ae / b) + 1, $e = v.value;
|
|
11049
11055
|
return $e.length > Ce ? $e[Ce].__fv_visible_index__ - 1 : 0;
|
|
11050
11056
|
}
|
|
11051
|
-
function R(
|
|
11052
|
-
let $e =
|
|
11053
|
-
const
|
|
11054
|
-
if (
|
|
11055
|
-
const
|
|
11057
|
+
function R(ae, pe, Ce) {
|
|
11058
|
+
let $e = ae, Ue = pe;
|
|
11059
|
+
const Ke = pe - ae + 1;
|
|
11060
|
+
if (Ke < r + a.value + r) {
|
|
11061
|
+
const at = r + a.value + r - Ke, bt = pe + at <= Ce, dt = 0 + at <= ae;
|
|
11056
11062
|
if (bt)
|
|
11057
|
-
Ue +=
|
|
11058
|
-
else if (
|
|
11059
|
-
$e -=
|
|
11063
|
+
Ue += at, x = Ue;
|
|
11064
|
+
else if (dt)
|
|
11065
|
+
$e -= at, F = $e;
|
|
11060
11066
|
else {
|
|
11061
|
-
const Z = Ce -
|
|
11062
|
-
Ue = Math.min(
|
|
11067
|
+
const Z = Ce - pe, P = at - Z;
|
|
11068
|
+
Ue = Math.min(pe + Z, Ce), $e = Math.max(ae - P, 0);
|
|
11063
11069
|
}
|
|
11064
11070
|
}
|
|
11065
11071
|
return { actualStart: $e, actualEnd: Ue };
|
|
11066
11072
|
}
|
|
11067
|
-
function N(
|
|
11073
|
+
function N(ae) {
|
|
11068
11074
|
var Z, P;
|
|
11069
|
-
const
|
|
11070
|
-
if (!
|
|
11075
|
+
const pe = v.value;
|
|
11076
|
+
if (!pe.length) {
|
|
11071
11077
|
n.value = [];
|
|
11072
11078
|
return;
|
|
11073
11079
|
}
|
|
11074
|
-
const Ce = (Z = e.pagination) != null && Z.enable ? 0 : Math.max(F - r, 0), $e =
|
|
11075
|
-
|
|
11080
|
+
const Ce = (Z = e.pagination) != null && Z.enable ? 0 : Math.max(F - r, 0), $e = pe[pe.length - 1].__fv_visible_index__, Ue = (P = e.pagination) != null && P.enable ? pe.length - 1 : Math.min(x + r, $e), { actualStart: Ke, actualEnd: at } = R(Ce, Ue, $e), bt = pe[Ke - 1], dt = u(Ke, at, bt, ae);
|
|
11081
|
+
dt.length && (n.value = [...dt]);
|
|
11076
11082
|
}
|
|
11077
11083
|
const j = L(() => T() > w.value), z = L(() => Math.floor(f.value) > g.value);
|
|
11078
|
-
function G(
|
|
11079
|
-
let Ce =
|
|
11084
|
+
function G(ae, pe) {
|
|
11085
|
+
let Ce = ae;
|
|
11080
11086
|
const $e = Ce > W, Ue = j.value;
|
|
11081
|
-
Ue && Ce < w.value -
|
|
11087
|
+
Ue && Ce < w.value - pe && (Ce = w.value - pe), (!Ue || $e) && (Ce = W), y.value !== Ce && (y.value = Ce);
|
|
11082
11088
|
}
|
|
11083
11089
|
function q() {
|
|
11084
11090
|
p.value && (F = D(Math.abs(y.value)), x = F + a.value - 1, (F < h.value || x > d.value - r / 2) && N());
|
|
11085
11091
|
}
|
|
11086
|
-
function te(
|
|
11087
|
-
let
|
|
11088
|
-
|
|
11092
|
+
function te(ae) {
|
|
11093
|
+
let pe = y.value + ae;
|
|
11094
|
+
pe > W && (pe = W);
|
|
11089
11095
|
const Ce = T();
|
|
11090
|
-
G(
|
|
11096
|
+
G(pe, Ce), q();
|
|
11091
11097
|
}
|
|
11092
|
-
function Y(
|
|
11098
|
+
function Y(ae) {
|
|
11093
11099
|
if (!z.value) {
|
|
11094
11100
|
c.value = 0;
|
|
11095
11101
|
return;
|
|
11096
11102
|
}
|
|
11097
|
-
let
|
|
11098
|
-
|
|
11103
|
+
let pe = c.value + ae;
|
|
11104
|
+
pe > U && (pe = U), pe < H.value && (pe = H.value), c.value !== pe && (c.value = pe);
|
|
11099
11105
|
}
|
|
11100
11106
|
function $() {
|
|
11101
11107
|
Math.abs(c.value) + g.value > f.value && (c.value = Math.min(g.value - f.value, 0));
|
|
@@ -11104,24 +11110,24 @@ function Fu(e, t, n, o, i, a, r, s, l) {
|
|
|
11104
11110
|
y.value = 0, F = 0, x = a.value - 1, N();
|
|
11105
11111
|
}
|
|
11106
11112
|
function K() {
|
|
11107
|
-
const
|
|
11108
|
-
G(y.value,
|
|
11113
|
+
const ae = T();
|
|
11114
|
+
G(y.value, ae);
|
|
11109
11115
|
}
|
|
11110
11116
|
Se([g, f], () => {
|
|
11111
11117
|
Y(0);
|
|
11112
|
-
}), Se(w, (
|
|
11113
|
-
|
|
11118
|
+
}), Se(w, (ae, pe) => {
|
|
11119
|
+
ae !== pe && ae >= m.value.length * b && te(0);
|
|
11114
11120
|
});
|
|
11115
|
-
function fe(
|
|
11116
|
-
let { deltaX:
|
|
11117
|
-
return typeof
|
|
11121
|
+
function fe(ae) {
|
|
11122
|
+
let { deltaX: pe } = ae, Ce = -1 * ae.deltaY;
|
|
11123
|
+
return typeof pe > "u" && (pe = -1 * ae.wheelDeltaX / 6), typeof Ce > "u" && (Ce = ae.wheelDeltaY / 6), ae.deltaMode && ae.deltaMode === 1 && (pe *= 10, Ce *= 10), ae.shiftKey ? { deltaY: -Ce, deltaX: -pe } : { deltaX: pe, deltaY: Ce };
|
|
11118
11124
|
}
|
|
11119
|
-
function xe(
|
|
11120
|
-
if (e.disabled || !j.value ||
|
|
11125
|
+
function xe(ae) {
|
|
11126
|
+
if (e.disabled || !j.value || ae.target.tagName === "TEXTAREA")
|
|
11121
11127
|
return;
|
|
11122
|
-
|
|
11123
|
-
const { deltaX:
|
|
11124
|
-
te(Ce), Y(
|
|
11128
|
+
ae.preventDefault(), ae.stopPropagation();
|
|
11129
|
+
const { deltaX: pe, deltaY: Ce } = fe(ae);
|
|
11130
|
+
te(Ce), Y(pe);
|
|
11125
11131
|
}
|
|
11126
11132
|
const we = L(() => ({
|
|
11127
11133
|
height: `${m.value.length * b}px`,
|
|
@@ -11149,61 +11155,61 @@ function Fu(e, t, n, o, i, a, r, s, l) {
|
|
|
11149
11155
|
width: `${_.value}px`
|
|
11150
11156
|
})), Ge = L(() => ({
|
|
11151
11157
|
transform: `translateX(${c.value}px)`
|
|
11152
|
-
})),
|
|
11158
|
+
})), Je = L(() => ({
|
|
11153
11159
|
width: `${C.value}px`
|
|
11154
11160
|
})), re = L(() => {
|
|
11155
|
-
const
|
|
11156
|
-
return G(y.value,
|
|
11157
|
-
}),
|
|
11161
|
+
const ae = T();
|
|
11162
|
+
return G(y.value, ae), y.value / (w.value - ae) * (w.value - O.value);
|
|
11163
|
+
}), he = L(() => ({
|
|
11158
11164
|
width: "8px",
|
|
11159
11165
|
height: `${O.value}px`,
|
|
11160
11166
|
top: `${re.value}px`,
|
|
11161
11167
|
backgroundColor: "#cccccc !important"
|
|
11162
|
-
})),
|
|
11168
|
+
})), Re = L(() => c.value / H.value * (S.value - M.value)), ze = L(() => ({
|
|
11163
11169
|
height: "8px",
|
|
11164
11170
|
width: `${M.value}px`,
|
|
11165
|
-
left: `${
|
|
11171
|
+
left: `${Re.value}px`,
|
|
11166
11172
|
backgroundColor: "#cccccc !important"
|
|
11167
|
-
})),
|
|
11168
|
-
function Be(
|
|
11169
|
-
if (
|
|
11170
|
-
const
|
|
11171
|
-
if (Math.abs(
|
|
11172
|
-
const $e =
|
|
11173
|
-
Y($e), _e.value =
|
|
11173
|
+
})), Ne = B(!1), ee = B(-1), _e = B(-1), He = B();
|
|
11174
|
+
function Be(ae) {
|
|
11175
|
+
if (Ne.value && _e.value !== -1) {
|
|
11176
|
+
const pe = _e.value - ae.pageX, Ce = S.value - M.value;
|
|
11177
|
+
if (Math.abs(pe) <= Ce) {
|
|
11178
|
+
const $e = pe / (g.value - M.value) * (f.value - g.value);
|
|
11179
|
+
Y($e), _e.value = ae.pageX;
|
|
11174
11180
|
}
|
|
11175
11181
|
}
|
|
11176
11182
|
}
|
|
11177
|
-
function
|
|
11178
|
-
if (
|
|
11179
|
-
const
|
|
11180
|
-
if (Math.abs(
|
|
11181
|
-
const Ue =
|
|
11182
|
-
te(Ue), ee.value =
|
|
11183
|
+
function ot(ae) {
|
|
11184
|
+
if (Ne.value && ee.value !== -1) {
|
|
11185
|
+
const pe = ee.value - ae.pageY, Ce = T(), $e = Ce - O.value;
|
|
11186
|
+
if (Math.abs(pe) <= $e) {
|
|
11187
|
+
const Ue = pe / (w.value - O.value) * (Ce - w.value);
|
|
11188
|
+
te(Ue), ee.value = ae.pageY;
|
|
11183
11189
|
}
|
|
11184
11190
|
}
|
|
11185
11191
|
}
|
|
11186
|
-
function
|
|
11187
|
-
|
|
11192
|
+
function ye(ae) {
|
|
11193
|
+
Ne.value = !1, ee.value = -1, _e.value = -1, document.removeEventListener("mouseup", ye), I && (document.removeEventListener("mousemove", I), I = null), document.body.style.userSelect = "", He.value && (He.value.style.opacity = null);
|
|
11188
11194
|
}
|
|
11189
|
-
function Ae(
|
|
11190
|
-
var
|
|
11191
|
-
l == null || l.onClickOutOfCell(
|
|
11192
|
-
const $e = (
|
|
11193
|
-
$e && ($e.style.opacity = "1",
|
|
11194
|
-
const Ue = Ce === "horizontal" ? Be : Io(
|
|
11195
|
-
I || (I = Ue), Ce === "vertical" && (ee.value =
|
|
11195
|
+
function Ae(ae, pe, Ce) {
|
|
11196
|
+
var Ke;
|
|
11197
|
+
l == null || l.onClickOutOfCell(ae), Ne.value = !0;
|
|
11198
|
+
const $e = (Ke = ae.target) == null ? void 0 : Ke.parentElement;
|
|
11199
|
+
$e && ($e.style.opacity = "1", He.value = $e);
|
|
11200
|
+
const Ue = Ce === "horizontal" ? Be : Io(ot, 50);
|
|
11201
|
+
I || (I = Ue), Ce === "vertical" && (ee.value = ae.pageY), Ce === "horizontal" && (_e.value = ae.pageX), pe.value && (pe.value, document.addEventListener("mousemove", I), document.addEventListener("mouseup", ye), document.body.style.userSelect = "none");
|
|
11196
11202
|
}
|
|
11197
|
-
function
|
|
11198
|
-
const
|
|
11199
|
-
let Ce =
|
|
11200
|
-
Ce >=
|
|
11203
|
+
function Le(ae) {
|
|
11204
|
+
const pe = m.value.length * b - w.value;
|
|
11205
|
+
let Ce = ae * b;
|
|
11206
|
+
Ce >= pe && (Ce = pe), te(-Ce - y.value);
|
|
11201
11207
|
}
|
|
11202
|
-
function
|
|
11203
|
-
|
|
11208
|
+
function je() {
|
|
11209
|
+
Le(m.value.length);
|
|
11204
11210
|
}
|
|
11205
|
-
function
|
|
11206
|
-
te(
|
|
11211
|
+
function ut(ae) {
|
|
11212
|
+
te(ae - y.value);
|
|
11207
11213
|
}
|
|
11208
11214
|
return {
|
|
11209
11215
|
dataGridWidth: S,
|
|
@@ -11212,7 +11218,7 @@ function Fu(e, t, n, o, i, a, r, s, l) {
|
|
|
11212
11218
|
gridHeaderColumnsStyle: Ge,
|
|
11213
11219
|
gridMergedDataStyle: Q,
|
|
11214
11220
|
gridSideStyle: Fe,
|
|
11215
|
-
horizontalScrollThumbStyle:
|
|
11221
|
+
horizontalScrollThumbStyle: ze,
|
|
11216
11222
|
leftFixedGridDataStyle: we,
|
|
11217
11223
|
leftFixedGridHeaderColumnsStyle: Te,
|
|
11218
11224
|
leftFixedGridMergedDataStyle: be,
|
|
@@ -11223,18 +11229,18 @@ function Fu(e, t, n, o, i, a, r, s, l) {
|
|
|
11223
11229
|
reCalculateVisualDataRows: N,
|
|
11224
11230
|
resetScroll: A,
|
|
11225
11231
|
rightFixedGridDataStyle: ie,
|
|
11226
|
-
rightFixedGridHeaderColumnsStyle:
|
|
11232
|
+
rightFixedGridHeaderColumnsStyle: Je,
|
|
11227
11233
|
rightFixedGridMergedDataStyle: ce,
|
|
11228
11234
|
shouldShowHorizontalScrollbar: z,
|
|
11229
11235
|
shouldShowVirticalScrollbar: j,
|
|
11230
11236
|
updateVirticalScroll: K,
|
|
11231
11237
|
updateVisibleRowsOnLatestVisibleScope: q,
|
|
11232
|
-
verticalScrollThumbStyle:
|
|
11238
|
+
verticalScrollThumbStyle: he,
|
|
11233
11239
|
viewPortWidth: g,
|
|
11234
11240
|
viewPortHeight: w,
|
|
11235
|
-
scrollToBottom:
|
|
11236
|
-
scrollToRowByIndex:
|
|
11237
|
-
scrollTo:
|
|
11241
|
+
scrollToBottom: je,
|
|
11242
|
+
scrollToRowByIndex: Le,
|
|
11243
|
+
scrollTo: ut
|
|
11238
11244
|
};
|
|
11239
11245
|
}
|
|
11240
11246
|
function Qd(e, t, n, o, i, a, r, s) {
|
|
@@ -11380,7 +11386,7 @@ function Iu() {
|
|
|
11380
11386
|
function Vu() {
|
|
11381
11387
|
const {
|
|
11382
11388
|
locale: e
|
|
11383
|
-
} =
|
|
11389
|
+
} = nt();
|
|
11384
11390
|
function t(n, o) {
|
|
11385
11391
|
return (n == null ? void 0 : n[e.value || "zh-CHS"]) || "";
|
|
11386
11392
|
}
|
|
@@ -11415,7 +11421,7 @@ function Bu() {
|
|
|
11415
11421
|
function m(v, u, d) {
|
|
11416
11422
|
const {
|
|
11417
11423
|
column: h
|
|
11418
|
-
} = v, f =
|
|
11424
|
+
} = v, f = tt(u.raw, h.field), _ = d.options || d;
|
|
11419
11425
|
return d.type === ht.NONE ? s(f) : d.type === ht.CUSTOM ? l(f, d, u) : d.type === ht.ENUM ? t(f, _) : d.type === ht.NUMBER ? n(f, _) : d.type === ht.BOOLEAN ? e(f, _) : d.type === ht.DATE ? o(f, _) : d.type === ht.DATE_TIME ? i(f, d) : d.type === ht.IMAGE ? a(f, _) : d.type === ht.MULTI_LINGUAL ? r(f, _) : s(f);
|
|
11420
11426
|
}
|
|
11421
11427
|
return {
|
|
@@ -11433,8 +11439,8 @@ function Nu(e, t, n) {
|
|
|
11433
11439
|
rowSpan: 1,
|
|
11434
11440
|
index: F,
|
|
11435
11441
|
field: y,
|
|
11436
|
-
data:
|
|
11437
|
-
editingData:
|
|
11442
|
+
data: tt(x, y),
|
|
11443
|
+
editingData: tt(x, y),
|
|
11438
11444
|
parent: S,
|
|
11439
11445
|
mode: c,
|
|
11440
11446
|
align: "left",
|
|
@@ -11457,11 +11463,11 @@ function Nu(e, t, n) {
|
|
|
11457
11463
|
return y.getEditor = (x) => t.getEditor(x, c, x.parent), y.setRef = (x) => r(x, y, F), y.update = (x) => {
|
|
11458
11464
|
x !== void 0 && (y.editingData = x);
|
|
11459
11465
|
}, y.accept = () => {
|
|
11460
|
-
on(y.editingData, F, c.field), y.data =
|
|
11466
|
+
on(y.editingData, F, c.field), y.data = tt(F, c.field);
|
|
11461
11467
|
}, y.cancel = () => {
|
|
11462
11468
|
y.editingData = y.data;
|
|
11463
11469
|
}, y.updateData = (x) => {
|
|
11464
|
-
on(
|
|
11470
|
+
on(tt(x, c.field), F, c.field), y.data = tt(F, c.field), y.editingData = tt(F, c.field);
|
|
11465
11471
|
}, y;
|
|
11466
11472
|
}
|
|
11467
11473
|
function u(y, c) {
|
|
@@ -11492,7 +11498,7 @@ function Nu(e, t, n) {
|
|
|
11492
11498
|
function Pu(e, t, n, o, i, a, r) {
|
|
11493
11499
|
var c, F;
|
|
11494
11500
|
const s = B(e.rowOption), l = ((c = s.value) == null ? void 0 : c.height) || 28, m = ((F = s.value) == null ? void 0 : F.wrapContent) || !1, { idField: v } = i, { collapseField: u } = o, { updateRowPosition: d } = a, { createCellByColumn: h } = r, f = (x, S, w, g) => {
|
|
11495
|
-
on(
|
|
11501
|
+
on(tt(x, g), S, g), w.data[g].data = tt(S, g), w.data[g].editingData = tt(S, g);
|
|
11496
11502
|
};
|
|
11497
11503
|
function _(x, S, w, g, p, E) {
|
|
11498
11504
|
var z, G, q;
|
|
@@ -11604,7 +11610,7 @@ function Ru(e, t, n, o, i) {
|
|
|
11604
11610
|
}
|
|
11605
11611
|
const y = Ct({});
|
|
11606
11612
|
function c(N, j, z = {}) {
|
|
11607
|
-
N.mode = Ye.editing, d = N, h = j, f =
|
|
11613
|
+
N.mode = Ye.editing, d = N, h = j, f = tt(j == null ? void 0 : j.raw, N.field), _ = z;
|
|
11608
11614
|
for (const G in y)
|
|
11609
11615
|
delete y[G];
|
|
11610
11616
|
}
|
|
@@ -11616,7 +11622,7 @@ function Ru(e, t, n, o, i) {
|
|
|
11616
11622
|
}), h = null), t.emit("endEditCell", {
|
|
11617
11623
|
cell: N,
|
|
11618
11624
|
row: j,
|
|
11619
|
-
newValue:
|
|
11625
|
+
newValue: tt(j == null ? void 0 : j.raw, N.field),
|
|
11620
11626
|
oldValue: f,
|
|
11621
11627
|
column: _,
|
|
11622
11628
|
editor: y
|
|
@@ -11624,7 +11630,7 @@ function Ru(e, t, n, o, i) {
|
|
|
11624
11630
|
}
|
|
11625
11631
|
function x(N) {
|
|
11626
11632
|
const j = Promise.resolve(!0);
|
|
11627
|
-
return N ? j.then(() =>
|
|
11633
|
+
return N ? j.then(() => mt(e.beforeEndEditCell) ? !0 : typeof e.beforeEndEditCell == "function" ? e.beforeEndEditCell({
|
|
11628
11634
|
cell: N,
|
|
11629
11635
|
row: h,
|
|
11630
11636
|
newValue: N.editingData,
|
|
@@ -11654,7 +11660,7 @@ function Ru(e, t, n, o, i) {
|
|
|
11654
11660
|
return Promise.resolve().then(() => {
|
|
11655
11661
|
var q;
|
|
11656
11662
|
const G = (q = z.editor) == null ? void 0 : q.readonly;
|
|
11657
|
-
return !
|
|
11663
|
+
return !mt(e.beforeEditCell) && typeof e.beforeEditCell == "function" ? e.beforeEditCell({
|
|
11658
11664
|
row: N,
|
|
11659
11665
|
cell: j,
|
|
11660
11666
|
rawData: N.raw,
|
|
@@ -12129,7 +12135,7 @@ function Hu(e, t, n, o, i) {
|
|
|
12129
12135
|
}
|
|
12130
12136
|
function Lu(e, t) {
|
|
12131
12137
|
var b, y;
|
|
12132
|
-
const { t: n } =
|
|
12138
|
+
const { t: n } = nt(), o = String(Date.now()), i = 50, { showCheckBox: a, showSelectAll: r } = t, s = B(((b = e.rowNumber) == null ? void 0 : b.enable) ?? !1), l = L(() => e.hierarchy && a.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : a.value), m = B(s.value ? ((y = e.rowNumber) == null ? void 0 : y.width) ?? 32 : 0), v = B(l.value ? i : 0), u = L(() => {
|
|
12133
12139
|
var c, F;
|
|
12134
12140
|
return s.value ? ((c = e.rowNumber) == null ? void 0 : c.heading) === "序号" ? n("datagrid.lineNumberTitle") : (F = e.rowNumber) == null ? void 0 : F.heading : "";
|
|
12135
12141
|
}), d = L(() => (l.value && !e.hierarchy ? Number(v.value) : 0) + (s.value ? Number(m.value) : 0));
|
|
@@ -12207,7 +12213,7 @@ function Gu(e) {
|
|
|
12207
12213
|
return { getSorterByColumn: o, updateSorter: a };
|
|
12208
12214
|
}
|
|
12209
12215
|
function tf(e, t) {
|
|
12210
|
-
const { t: n } =
|
|
12216
|
+
const { t: n } = nt(), o = wt("FLoadingService"), i = L(() => typeof e.loading == "object" ? e.loading.show : e.loading), a = L(() => typeof e.loading == "object" ? e.loading.message : `${n("datagrid.loadingMessage")}...`);
|
|
12211
12217
|
let r;
|
|
12212
12218
|
function s() {
|
|
12213
12219
|
const l = {
|