@farris/ui-vue 1.5.0-beta.0 → 1.5.0-beta.1
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/avatar/index.esm.js +897 -901
- package/components/avatar/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +483 -487
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +482 -486
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +543 -547
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +619 -623
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +439 -440
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +423 -425
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +529 -533
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +723 -727
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +504 -508
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +679 -683
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +503 -507
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +557 -561
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/flow-canvas/index.esm.js +327 -331
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +502 -506
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +347 -348
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +479 -483
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +1037 -1041
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1238 -1242
- package/components/order/index.umd.cjs +2 -2
- package/components/pagination/index.esm.js +94 -91
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +534 -538
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +785 -789
- package/components/query-solution/index.umd.cjs +5 -5
- package/components/response-layout/index.esm.js +710 -714
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +701 -702
- package/components/schema-selector/index.umd.cjs +3 -3
- package/components/section/index.esm.js +502 -506
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +556 -560
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/textarea/index.esm.js +480 -484
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +594 -598
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +189 -179
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +463 -467
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +629 -633
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +632 -636
- package/components/video/index.umd.cjs +1 -1
- package/farris.all.esm.js +2583 -2569
- package/farris.all.umd.cjs +11 -11
- package/index.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (n, t, e) =>
|
|
4
|
-
import { ref as S, computed as L, createVNode as k, Fragment as Ft, watch as Fe, withModifiers as
|
|
5
|
-
import { isPlainObject as Dn, cloneDeep as Mt, isUndefined as ut, throttle as
|
|
6
|
-
import { getCustomClass as Kt, useGuid as
|
|
7
|
-
import { useFilter as
|
|
1
|
+
var _r = Object.defineProperty;
|
|
2
|
+
var xr = (n, t, e) => t in n ? _r(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var H = (n, t, e) => xr(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as S, computed as L, createVNode as k, Fragment as Ft, watch as Fe, withModifiers as Sr, withDirectives as qn, vModelText as Tr, defineComponent as Ke, createTextVNode as ct, reactive as wt, createApp as zn, onUnmounted as ln, onMounted as Ot, Transition as Yn, mergeProps as $t, onBeforeUnmount as Un, resolveDirective as kr, nextTick as un, inject as kt, provide as Fr, triggerRef as Mr, isVNode as Er, onBeforeMount as Or, Teleport as Ir, shallowRef as Dr, render as mn, h as Vr, cloneVNode as Pr } from "vue";
|
|
5
|
+
import { isPlainObject as Dn, cloneDeep as Mt, isUndefined as ut, throttle as Rr } from "lodash-es";
|
|
6
|
+
import { getCustomClass as Kt, useGuid as Nr, resolveField as rt, FormSchemaEntityFieldTypeName as Vn, withInstall as Br, useCommonUtils as Hr, useDateFormat as $r, useNumberFormat as Lr, setFieldValue as vn } from "../common/index.esm.js";
|
|
7
|
+
import { useFilter as Xn, useIdentify as Qn, useHierarchy as Kn, useGroupData as Jn, useDataView as Zn, useSelection as eo, useRow as to, useEdit as no, useVisualDataBound as oo, useVisualDataCell as ro, useVisualDataRow as ao, useVisualGroupRow as Wr, useVisualSummaryRow as jr, useVisualData as io, useLoading as Ar, useSelectHierarchyItem as Gr, useDataViewContainerStyle as qr, useCommandColumn as zr, useColumn as Yr, useSort as Ur, useGroupColumn as Xr, useCellPosition as Qr, useSidebar as Kr, useVirtualScroll as Jr, useFitColumn as Zr, useFilterHistory as ea, useColumnFilter as ta, useDragColumn as na, getColumnHeader as oa, getSidebar as ra, getDisableMask as aa, getHorizontalScrollbar as ia, getVerticalScrollbar as sa, getEmpty as la } from "../data-view/index.esm.js";
|
|
8
8
|
import { FCheckbox as cn } from "../checkbox/index.esm.js";
|
|
9
9
|
import "../modal/index.esm.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import ua from "../transfer/index.esm.js";
|
|
11
|
+
import ca from "../tabs/index.esm.js";
|
|
12
|
+
import da from "../order/index.esm.js";
|
|
13
13
|
import "../condition/index.esm.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import fa from "../filter-bar/index.esm.js";
|
|
15
|
+
import ma from "../tooltip/index.esm.js";
|
|
16
16
|
import pa from "../pagination/index.esm.js";
|
|
17
17
|
import ha from "../button/index.esm.js";
|
|
18
18
|
import va from "../search-box/index.esm.js";
|
|
@@ -27,8 +27,8 @@ import Sa from "../../designer/button-edit/index.esm.js";
|
|
|
27
27
|
import Ta from "../button-group/index.esm.js";
|
|
28
28
|
import ka from "../calendar/index.esm.js";
|
|
29
29
|
import Fa from "../capsule/index.esm.js";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
30
|
+
import Pn from "../../designer/checkbox/index.esm.js";
|
|
31
|
+
import Rn from "../../designer/checkbox-group/index.esm.js";
|
|
32
32
|
import gn from "../combo-list/index.esm.js";
|
|
33
33
|
import Ma from "../combo-tree/index.esm.js";
|
|
34
34
|
import Ea from "../component/index.esm.js";
|
|
@@ -85,9 +85,9 @@ import Ti from "../expression-editor/index.esm.js";
|
|
|
85
85
|
import ki from "../code-editor/index.esm.js";
|
|
86
86
|
import Fi from "../html-template/index.esm.js";
|
|
87
87
|
import "../external-container/index.esm.js";
|
|
88
|
-
import { useResizeObserver as
|
|
88
|
+
import { useResizeObserver as so } from "@vueuse/core";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
|
-
const
|
|
90
|
+
const lo = {}, uo = {};
|
|
91
91
|
function xn(n) {
|
|
92
92
|
const { properties: t, title: e, ignore: o } = n, r = o && Array.isArray(o), a = Object.keys(t).reduce((i, s) => ((!r || !o.find((l) => l === s)) && (i[s] = t[s].type === "object" && t[s].properties ? xn(t[s]) : Mt(t[s].default)), i), {});
|
|
93
93
|
if (e && (!r || !o.find((i) => i === "id"))) {
|
|
@@ -110,12 +110,12 @@ function Mi(n) {
|
|
|
110
110
|
type: e
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const o =
|
|
113
|
+
function co(n, t = {}, e) {
|
|
114
|
+
const o = lo[n];
|
|
115
115
|
if (o) {
|
|
116
116
|
let r = Mi(o);
|
|
117
|
-
const a =
|
|
118
|
-
return r = a ? a({ getSchemaByType:
|
|
117
|
+
const a = uo[n];
|
|
118
|
+
return r = a ? a({ getSchemaByType: co }, r, t, e) : r, r;
|
|
119
119
|
}
|
|
120
120
|
return null;
|
|
121
121
|
}
|
|
@@ -123,7 +123,7 @@ function Ei(n, t) {
|
|
|
123
123
|
const e = xn(t);
|
|
124
124
|
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(n, r) && (o[r] && Dn(o[r]) && Dn(n[r] || !n[r]) ? Object.assign(o[r], n[r] || {}) : o[r] = n[r]), o), e), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function fo(n, t) {
|
|
127
127
|
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
128
128
|
if (t.has(r)) {
|
|
129
129
|
const a = t.get(r);
|
|
@@ -140,7 +140,7 @@ function mo(n, t) {
|
|
|
140
140
|
}
|
|
141
141
|
function Oi(n, t, e = /* @__PURE__ */ new Map()) {
|
|
142
142
|
const o = Ei(n, t);
|
|
143
|
-
return
|
|
143
|
+
return fo(o, e);
|
|
144
144
|
}
|
|
145
145
|
function Ii(n = {}) {
|
|
146
146
|
function t(u, c, d, f) {
|
|
@@ -244,9 +244,9 @@ const de = {
|
|
|
244
244
|
}, Di = {}, Vi = {};
|
|
245
245
|
Ii();
|
|
246
246
|
function It(n, t, e = /* @__PURE__ */ new Map(), o = (i, s, l, u) => s, r = {}, a = (i) => i) {
|
|
247
|
-
return
|
|
247
|
+
return lo[t.title] = t, uo[t.title] = o, Di[t.title] = r, Vi[t.title] = a, (i = {}, s = !0) => {
|
|
248
248
|
if (!s)
|
|
249
|
-
return
|
|
249
|
+
return fo(i, e);
|
|
250
250
|
const l = Oi(i, t, e), u = Object.keys(n).reduce((c, d) => (c[d] = n[d].default, c), {});
|
|
251
251
|
return Object.assign(u, l);
|
|
252
252
|
};
|
|
@@ -280,10 +280,10 @@ function Ni() {
|
|
|
280
280
|
updateColumns: n
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
const
|
|
283
|
+
const mo = /* @__PURE__ */ new Map([
|
|
284
284
|
["appearance", dn]
|
|
285
285
|
]);
|
|
286
|
-
function
|
|
286
|
+
function po(n, t, e) {
|
|
287
287
|
return t;
|
|
288
288
|
}
|
|
289
289
|
const Bi = "https://json-schema.org/draft/2020-12/schema", Hi = "https://farris-design.gitee.io/list-view.schema.json", $i = "list-view", Li = "A Farris Component", Wi = "object", ji = {
|
|
@@ -431,8 +431,8 @@ const Bi = "https://json-schema.org/draft/2020-12/schema", Hi = "https://farris-
|
|
|
431
431
|
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
432
432
|
/** 虚拟化渲染数据 */
|
|
433
433
|
virtualized: { type: Boolean, default: !0 }
|
|
434
|
-
},
|
|
435
|
-
function
|
|
434
|
+
}, ho = It(fn, Gi, mo, po, Xi);
|
|
435
|
+
function vo(n, t) {
|
|
436
436
|
function e(a) {
|
|
437
437
|
const i = [];
|
|
438
438
|
let s = a.nextNode();
|
|
@@ -465,7 +465,7 @@ function go(n, t) {
|
|
|
465
465
|
}
|
|
466
466
|
return { search: r };
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Nn(n, t, e, o, r, a, i, s, l, u) {
|
|
469
469
|
const c = S(n.size), d = S(n.textField), f = S(n.titleField), p = S(n.disableField), h = L(() => {
|
|
470
470
|
var C, w;
|
|
471
471
|
return ((C = n.selection) == null ? void 0 : C.multiSelect) && ((w = n.selection) == null ? void 0 : w.showCheckbox);
|
|
@@ -689,7 +689,7 @@ function Zi(n, t, e, o) {
|
|
|
689
689
|
}
|
|
690
690
|
return { removeItem: i };
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function go(n, t, e, o, r, a, i, s, l, u) {
|
|
693
693
|
const c = S(n.view), d = S(n.view === "CardView"), f = S({}), p = S("暂无数据"), h = Zi(n, t, o, l), O = L(() => ({
|
|
694
694
|
"f-list-view-group": !0,
|
|
695
695
|
"f-list-view-group-multiselect": n.multiSelect,
|
|
@@ -698,7 +698,7 @@ function yo(n, t, e, o, r, a, i, s, l, u) {
|
|
|
698
698
|
})), x = L(() => !!e.value && e.value.length > 0), v = L(() => e.value.length === 0);
|
|
699
699
|
L(() => v.value && !t.slots.empty);
|
|
700
700
|
function _() {
|
|
701
|
-
return c.value === "SingleView" ?
|
|
701
|
+
return c.value === "SingleView" ? Nn : c.value === "DraggableView" ? Ki : (c.value === "ContentView" || c.value === "CardView") && t.slots.content ? Qi : Nn;
|
|
702
702
|
}
|
|
703
703
|
const g = _(), {
|
|
704
704
|
renderItem: T
|
|
@@ -726,7 +726,7 @@ function yo(n, t, e, o, r, a, i, s, l, u) {
|
|
|
726
726
|
renderListArea: w
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function yo(n, t, e) {
|
|
730
730
|
function o() {
|
|
731
731
|
return t.slots.header && k("div", {
|
|
732
732
|
class: "f-list-view-header"
|
|
@@ -756,7 +756,7 @@ function tn(n, t, e) {
|
|
|
756
756
|
function d() {
|
|
757
757
|
return k("div", {
|
|
758
758
|
class: "f-list-view-header",
|
|
759
|
-
onClick:
|
|
759
|
+
onClick: Sr(() => c, ["prevent", "stop"])
|
|
760
760
|
}, [k("div", {
|
|
761
761
|
class: u.value
|
|
762
762
|
}, [k("div", {
|
|
@@ -765,14 +765,14 @@ function tn(n, t, e) {
|
|
|
765
765
|
class: "f-cmp-inputgroup"
|
|
766
766
|
}, [k("div", {
|
|
767
767
|
class: "input-group f-state-editable"
|
|
768
|
-
}, [
|
|
768
|
+
}, [qn(k("input", {
|
|
769
769
|
class: "form-control f-utils-fill text-left",
|
|
770
770
|
"onUpdate:modelValue": (f) => a.value = f,
|
|
771
771
|
name: "input-group-value",
|
|
772
772
|
type: "text",
|
|
773
773
|
placeholder: r.value,
|
|
774
774
|
autocomplete: "off"
|
|
775
|
-
}, null), [[
|
|
775
|
+
}, null), [[Tr, a.value]]), k("div", {
|
|
776
776
|
class: "input-group-append"
|
|
777
777
|
}, [s.value && k("span", {
|
|
778
778
|
class: "input-group-text input-group-clear",
|
|
@@ -789,7 +789,7 @@ function tn(n, t, e) {
|
|
|
789
789
|
renderHeader: d
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function wo() {
|
|
793
793
|
const n = S(""), t = S(-1), e = S(""), o = S(-1), r = S(!1);
|
|
794
794
|
function a(d, f, p) {
|
|
795
795
|
o.value = p;
|
|
@@ -821,7 +821,7 @@ function bo() {
|
|
|
821
821
|
suspendHover: l
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function bo(n, t, e, o) {
|
|
825
825
|
const r = S(n.idField), { dataView: a } = e, i = S(-1), s = S(!1), { activeIndex: l, focusedItemId: u, hoverIndex: c, resumeHover: d, suspendHover: f } = o;
|
|
826
826
|
let p, h = 0, O = 0;
|
|
827
827
|
function x(b, m) {
|
|
@@ -884,7 +884,7 @@ function Co(n, t, e, o) {
|
|
|
884
884
|
isDragging: s
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Co(n, t, e, o, r, a) {
|
|
888
888
|
const i = S(n.idField), s = S(n.disableField), l = S(n.draggable), u = S(n.itemClass), c = S(n.selection.multiSelect ?? !1), d = S(n.selection.multiSelectMode), { isDragging: f } = o, { activeIndex: p, focusedItemId: h, hoverIndex: O } = r, { clearSelection: x, getSelectedItems: v, toggleSelectItem: _, currentSelectedDataId: g } = a, T = S(v()), F = (E) => T.value.length === 0 ? !1 : T.value.some((I) => {
|
|
889
889
|
let B = "";
|
|
890
890
|
return I.data ? B = I.data[i.value] : B = I[i.value], B === E;
|
|
@@ -937,7 +937,7 @@ const At = /* @__PURE__ */ Ke({
|
|
|
937
937
|
props: fn,
|
|
938
938
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
939
939
|
setup(n, t) {
|
|
940
|
-
const e = S(), o = S(!0), r = S(!1), a = S([]), i = 0, s = S(n.columns), l =
|
|
940
|
+
const e = S(), o = S(!0), r = S(!1), a = S([]), i = 0, s = S(n.columns), l = Xn(), u = Qn(n), c = Kn(n), d = Jn(n, u), f = Zn(n, /* @__PURE__ */ new Map(), l, c, u), p = eo(n, f, u, a, t), h = vo(n, e), O = L(() => f.dataView.value.length), x = to(n, t, p, u), v = no(n, t, u, x, a), _ = oo(n), g = ro(n, {}, _), T = ao(n, f, v, c, u, _, g), F = Wr(n, u, g, T), b = jr(n, u, g, T), m = io(n, s, f, O, i, T, F, b), {
|
|
941
941
|
getVisualData: C
|
|
942
942
|
} = m;
|
|
943
943
|
a.value = C(0, O.value + i - 1);
|
|
@@ -949,13 +949,13 @@ const At = /* @__PURE__ */ Ke({
|
|
|
949
949
|
return n.size !== "default" && (U[`${n.size}-item`] = !0), Kt(U, n.customClass);
|
|
950
950
|
}), M = L(() => !!t.slots.footer || o.value);
|
|
951
951
|
function y() {
|
|
952
|
-
return n.header === "SearchBar" ? tn : n.header === "ContentHeader" ?
|
|
952
|
+
return n.header === "SearchBar" ? tn : n.header === "ContentHeader" ? yo : tn;
|
|
953
953
|
}
|
|
954
954
|
const V = y(), {
|
|
955
955
|
renderHeader: P
|
|
956
|
-
} = V(n, t, h), E =
|
|
956
|
+
} = V(n, t, h), E = wo(), I = bo(n, t, f, E), B = Co(n, t, a, I, E, p), {
|
|
957
957
|
renderListArea: $
|
|
958
|
-
} =
|
|
958
|
+
} = go(n, t, a, f, d, E, p, m, B, I);
|
|
959
959
|
function D(U) {
|
|
960
960
|
h.search(U);
|
|
961
961
|
}
|
|
@@ -1057,7 +1057,7 @@ function Sn(n, t, e) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
function x(C, w) {
|
|
1059
1059
|
const { componentType: M } = C;
|
|
1060
|
-
let y =
|
|
1060
|
+
let y = co(M, C, w);
|
|
1061
1061
|
e && e.onResolveNewComponentSchema && (y = e.onResolveNewComponentSchema(C, y));
|
|
1062
1062
|
const V = M.toLowerCase().replace(/-/g, "_");
|
|
1063
1063
|
return y && !y.id && y.type === M && (y.id = `${V}_${Math.random().toString().slice(2, 6)}`), y;
|
|
@@ -1329,38 +1329,38 @@ function as(n, t, e, o, r, a, i, s, l, u, c, d, f) {
|
|
|
1329
1329
|
} = ts(n, o, i), {
|
|
1330
1330
|
treeNodeIconsClass: R
|
|
1331
1331
|
} = ns(n, C, w);
|
|
1332
|
-
function Q(q,
|
|
1332
|
+
function Q(q, oe) {
|
|
1333
1333
|
const we = q.raw[w.value];
|
|
1334
1334
|
return {
|
|
1335
1335
|
"fv-tree-node-toggle": we && q.collapse,
|
|
1336
1336
|
"fv-tree-node-toggle-minus": we && !q.collapse
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function G(q,
|
|
1340
|
-
q.stopPropagation(), V(
|
|
1339
|
+
function G(q, oe) {
|
|
1340
|
+
q.stopPropagation(), V(oe);
|
|
1341
1341
|
}
|
|
1342
1342
|
function A(q) {
|
|
1343
1343
|
q.stopPropagation();
|
|
1344
1344
|
}
|
|
1345
|
-
function z(q,
|
|
1345
|
+
function z(q, oe) {
|
|
1346
1346
|
return k("div", {
|
|
1347
1347
|
class: Q(q),
|
|
1348
1348
|
onClick: (we) => G(we, q),
|
|
1349
1349
|
onDblclick: A
|
|
1350
1350
|
}, null);
|
|
1351
1351
|
}
|
|
1352
|
-
function U(q,
|
|
1352
|
+
function U(q, oe) {
|
|
1353
1353
|
return y.value && k("div", {
|
|
1354
1354
|
id: "treeNodeIcons",
|
|
1355
|
-
class: R(q,
|
|
1355
|
+
class: R(q, oe)
|
|
1356
1356
|
}, null);
|
|
1357
1357
|
}
|
|
1358
1358
|
function ae(q) {
|
|
1359
1359
|
T.value ? (q.checked ? F(q) : b(q), P(q)) : m(q);
|
|
1360
1360
|
}
|
|
1361
|
-
function Z(q,
|
|
1361
|
+
function Z(q, oe) {
|
|
1362
1362
|
return M.value && k(cn, {
|
|
1363
|
-
id: "checkbox_for_" + E(q,
|
|
1363
|
+
id: "checkbox_for_" + E(q, oe.index),
|
|
1364
1364
|
indeterminate: q.indeterminate,
|
|
1365
1365
|
disabled: q.disabled,
|
|
1366
1366
|
checked: q.checked,
|
|
@@ -1368,61 +1368,57 @@ function as(n, t, e, o, r, a, i, s, l, u, c, d, f) {
|
|
|
1368
1368
|
onChange: () => ae(q)
|
|
1369
1369
|
}, null);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function pe(q, oe) {
|
|
1372
1372
|
return k("span", {
|
|
1373
|
-
title: te.data,
|
|
1374
1373
|
style: "user-select:none"
|
|
1375
1374
|
}, [t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
1376
|
-
cell:
|
|
1375
|
+
cell: oe,
|
|
1377
1376
|
row: q
|
|
1378
|
-
}) :
|
|
1377
|
+
}) : oe.mode === ze.editing ? oe.getEditor(oe) : oe.formatter ? oe.formatter(oe, q) : oe.showTips ? k(ma, null, {
|
|
1378
|
+
default: () => oe.data,
|
|
1379
|
+
contentTemplate: () => oe.data
|
|
1380
|
+
}) : oe.data]);
|
|
1379
1381
|
}
|
|
1380
|
-
function ve(q,
|
|
1382
|
+
function ve(q, oe) {
|
|
1381
1383
|
return k("div", {
|
|
1382
|
-
class: K(
|
|
1383
|
-
}, [
|
|
1384
|
-
default: () => fe(q, te),
|
|
1385
|
-
contentTemplate: () => fe(q, te)
|
|
1386
|
-
}) : fe(q, te)]);
|
|
1384
|
+
class: K(oe)
|
|
1385
|
+
}, [pe(q, oe)]);
|
|
1387
1386
|
}
|
|
1388
|
-
function xe(q,
|
|
1387
|
+
function xe(q, oe, we) {
|
|
1389
1388
|
const ke = N(q);
|
|
1390
1389
|
return k("div", {
|
|
1391
|
-
ref:
|
|
1392
|
-
key: E(q,
|
|
1390
|
+
ref: oe.setRef,
|
|
1391
|
+
key: E(q, oe.index),
|
|
1393
1392
|
class: "fv-grid-hierarchy-cell",
|
|
1394
|
-
style: I(
|
|
1393
|
+
style: I(oe, we)
|
|
1395
1394
|
}, [k("div", {
|
|
1396
|
-
class: D(
|
|
1395
|
+
class: D(oe),
|
|
1397
1396
|
style: ke
|
|
1398
|
-
}, [z(q), U(q,
|
|
1397
|
+
}, [z(q), U(q, oe), Z(q, oe), ve(q, oe)])]);
|
|
1399
1398
|
}
|
|
1400
|
-
function Ve(q,
|
|
1399
|
+
function Ve(q, oe, we) {
|
|
1401
1400
|
return k("div", {
|
|
1402
|
-
ref:
|
|
1403
|
-
key: E(q,
|
|
1404
|
-
class: h(
|
|
1405
|
-
style: I(
|
|
1406
|
-
onClick: (ke) => p(ke,
|
|
1401
|
+
ref: oe.setRef,
|
|
1402
|
+
key: E(q, oe.index),
|
|
1403
|
+
class: h(oe),
|
|
1404
|
+
style: I(oe, we),
|
|
1405
|
+
onClick: (ke) => p(ke, oe, q, oe.column)
|
|
1407
1406
|
}, [k("div", {
|
|
1408
|
-
class: D(
|
|
1407
|
+
class: D(oe)
|
|
1409
1408
|
}, [k("div", {
|
|
1410
|
-
class: K(
|
|
1411
|
-
}, [
|
|
1412
|
-
default: () => fe(q, te),
|
|
1413
|
-
contentTemplate: () => fe(q, te)
|
|
1414
|
-
}) : fe(q, te)])])]);
|
|
1409
|
+
class: K(oe)
|
|
1410
|
+
}, [pe(q, oe)])])]);
|
|
1415
1411
|
}
|
|
1416
|
-
function Be(q,
|
|
1417
|
-
return
|
|
1412
|
+
function Be(q, oe) {
|
|
1413
|
+
return oe === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === q.field || oe === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === q.field;
|
|
1418
1414
|
}
|
|
1419
|
-
function Y(q,
|
|
1415
|
+
function Y(q, oe) {
|
|
1420
1416
|
t.emit("dblclickNode", {
|
|
1421
1417
|
$event: q,
|
|
1422
|
-
node:
|
|
1418
|
+
node: oe.raw
|
|
1423
1419
|
});
|
|
1424
1420
|
}
|
|
1425
|
-
function ce(q,
|
|
1421
|
+
function ce(q, oe, we = "primary", ke) {
|
|
1426
1422
|
return k("div", {
|
|
1427
1423
|
ref: q.setRef,
|
|
1428
1424
|
key: B(q),
|
|
@@ -1432,7 +1428,7 @@ function as(n, t, e, o, r, a, i, s, l, u, c, d, f) {
|
|
|
1432
1428
|
onMouseout: (De) => g(De, q),
|
|
1433
1429
|
onClick: (De) => v(De, q),
|
|
1434
1430
|
onDblclick: (De) => Y(De, q)
|
|
1435
|
-
}, [Object.values(q.data).filter((De) =>
|
|
1431
|
+
}, [Object.values(q.data).filter((De) => oe[De.field] && De.rowSpan === 1).map((De) => Be(De, we) ? xe(q, De, oe) : Ve(q, De, oe))]);
|
|
1436
1432
|
}
|
|
1437
1433
|
return {
|
|
1438
1434
|
renderDataRow: ce
|
|
@@ -1643,9 +1639,9 @@ function cs(n, t) {
|
|
|
1643
1639
|
}
|
|
1644
1640
|
return { getGridHeaderCells: l };
|
|
1645
1641
|
}
|
|
1646
|
-
function
|
|
1642
|
+
function _o(n, t) {
|
|
1647
1643
|
var _;
|
|
1648
|
-
|
|
1644
|
+
Nr();
|
|
1649
1645
|
const { idField: e } = t, o = S(n.summary), r = S(n.group), a = S(((_ = n.group) == null ? void 0 : _.groupFields) || []), i = L(() => {
|
|
1650
1646
|
var g;
|
|
1651
1647
|
return (g = n.group) == null ? void 0 : g.enable;
|
|
@@ -1743,8 +1739,8 @@ function ds(n, t, e, o) {
|
|
|
1743
1739
|
d.clear(), G.reduce((z, U) => {
|
|
1744
1740
|
const ae = U[u.value] !== void 0 ? U[u.value] : "";
|
|
1745
1741
|
if (ae && A.has(ae)) {
|
|
1746
|
-
const
|
|
1747
|
-
U.__fv_layer__ = ve + 1, U.__fv_parent_index__ =
|
|
1742
|
+
const pe = A.get(ae), ve = isNaN(Number(pe.__fv_layer__)) ? 1 : Number(pe.__fv_layer__);
|
|
1743
|
+
U.__fv_layer__ = ve + 1, U.__fv_parent_index__ = pe.__fv_index__, pe.__fv_hasChildren__ = !0;
|
|
1748
1744
|
} else
|
|
1749
1745
|
U.__fv_layer__ = 1;
|
|
1750
1746
|
const Z = z.has(ae) ? z.get(ae) : [];
|
|
@@ -1792,8 +1788,8 @@ function ds(n, t, e, o) {
|
|
|
1792
1788
|
}
|
|
1793
1789
|
function T(G, A, z) {
|
|
1794
1790
|
Array.from(A.keys()).forEach((U) => {
|
|
1795
|
-
A.get(U).reduce((Z,
|
|
1796
|
-
const ve =
|
|
1791
|
+
A.get(U).reduce((Z, pe) => {
|
|
1792
|
+
const ve = pe[i.value], xe = G.get(pe[i.value]), Ve = G.get(U), Be = z.get(U);
|
|
1797
1793
|
return Ve && Be && (Ve.children.set(ve, xe), Ve.children.set(ve, xe), xe.parentId = U, xe.parentIndex = Ve.index, xe.parents.set(U, Ve)), Z;
|
|
1798
1794
|
}, G);
|
|
1799
1795
|
});
|
|
@@ -1857,7 +1853,7 @@ function ds(n, t, e, o) {
|
|
|
1857
1853
|
}
|
|
1858
1854
|
function B(G, A, z = 0) {
|
|
1859
1855
|
G.forEach((U) => {
|
|
1860
|
-
const ae = M(U), Z = U.__fv_layer__ <= z,
|
|
1856
|
+
const ae = M(U), Z = U.__fv_layer__ <= z, pe = A === "ToCollapse" ? U.__fv_layer__ <= z : !(U.__fv_layer__ <= z), ve = Z ? pe : U[s.value];
|
|
1861
1857
|
U[s.value] = ae || ve;
|
|
1862
1858
|
});
|
|
1863
1859
|
for (const [U, ae] of d.entries())
|
|
@@ -1872,8 +1868,8 @@ function ds(n, t, e, o) {
|
|
|
1872
1868
|
}
|
|
1873
1869
|
function j(G) {
|
|
1874
1870
|
G.forEach((A, z) => {
|
|
1875
|
-
var
|
|
1876
|
-
const U = A[i.value], ae = d.has(U) ? (
|
|
1871
|
+
var pe;
|
|
1872
|
+
const U = A[i.value], ae = d.has(U) ? (pe = d.get(U)) == null ? void 0 : pe.map((ve) => ve.__fv_index__) : [], Z = g(U, z);
|
|
1877
1873
|
A.__fv_graph_node__ = Z, A.__fv_children_index__ = ae, A.__fv_descendant_index__ = [...ae], A.__fv_parents__ = /* @__PURE__ */ new Map(), M(A) && (A[s.value] = !0);
|
|
1878
1874
|
});
|
|
1879
1875
|
}
|
|
@@ -1886,18 +1882,18 @@ function ds(n, t, e, o) {
|
|
|
1886
1882
|
function N(G, A, z) {
|
|
1887
1883
|
const ae = z.value[G][i.value], Z = c.get(ae);
|
|
1888
1884
|
if (Z) {
|
|
1889
|
-
const
|
|
1885
|
+
const pe = c.get(Z.parentId);
|
|
1890
1886
|
let ve = z.value.length - 1;
|
|
1891
|
-
if (
|
|
1892
|
-
const xe = Array.from(
|
|
1893
|
-
if (xe ===
|
|
1894
|
-
const Be = Array.from(
|
|
1887
|
+
if (pe) {
|
|
1888
|
+
const xe = Array.from(pe.children.keys()).indexOf(Z.id);
|
|
1889
|
+
if (xe === pe.children.size - 1) {
|
|
1890
|
+
const Be = Array.from(pe.descendant.values())[pe.descendant.size - 1];
|
|
1895
1891
|
ve = z.value.findIndex((ce) => ce[i.value] === Be.id) + 1;
|
|
1896
1892
|
} else {
|
|
1897
|
-
const Be = Array.from(
|
|
1893
|
+
const Be = Array.from(pe.children.values())[xe + 1];
|
|
1898
1894
|
ve = z.value.findIndex((ce) => ce[i.value] === Be.id);
|
|
1899
1895
|
}
|
|
1900
|
-
A[l.value] = !1, A[u.value] =
|
|
1896
|
+
A[l.value] = !1, A[u.value] = pe.id, z.value.splice(ve, 0, A);
|
|
1901
1897
|
}
|
|
1902
1898
|
}
|
|
1903
1899
|
}
|
|
@@ -2070,7 +2066,7 @@ const fs = {
|
|
|
2070
2066
|
}, null)]);
|
|
2071
2067
|
}
|
|
2072
2068
|
});
|
|
2073
|
-
class
|
|
2069
|
+
class xo {
|
|
2074
2070
|
constructor() {
|
|
2075
2071
|
H(this, "notifyRefs", []);
|
|
2076
2072
|
H(this, "globalConfig", wt({}));
|
|
@@ -2091,7 +2087,7 @@ class So {
|
|
|
2091
2087
|
...t
|
|
2092
2088
|
}), a = document.createElement("div");
|
|
2093
2089
|
a.style.display = "contents";
|
|
2094
|
-
const i =
|
|
2090
|
+
const i = zn({
|
|
2095
2091
|
setup() {
|
|
2096
2092
|
var u;
|
|
2097
2093
|
const s = S();
|
|
@@ -2111,7 +2107,7 @@ class So {
|
|
|
2111
2107
|
document.body.removeChild(a);
|
|
2112
2108
|
}), Ot(() => {
|
|
2113
2109
|
e.updateNotifyPositionForCreate(r, s);
|
|
2114
|
-
}), () => k(
|
|
2110
|
+
}), () => k(Yn, {
|
|
2115
2111
|
mode: "out-in",
|
|
2116
2112
|
name: "fade",
|
|
2117
2113
|
appear: !0
|
|
@@ -2192,12 +2188,12 @@ class So {
|
|
|
2192
2188
|
const ps = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
2193
2189
|
Jt.install = (n) => {
|
|
2194
2190
|
n.component(Jt.name, Jt), n.component(yn.name, yn);
|
|
2195
|
-
const t = new
|
|
2191
|
+
const t = new xo();
|
|
2196
2192
|
n.provide(ps, t), n.provide("FNotifyService", t);
|
|
2197
2193
|
};
|
|
2198
|
-
function
|
|
2194
|
+
function So(n, t, e, o, r) {
|
|
2199
2195
|
var Ze;
|
|
2200
|
-
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), c = S([]), d = S([]), f =
|
|
2196
|
+
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), c = S([]), d = S([]), f = _o(n, r), { generateGroupData: p, groupFields: h, shouldGroupingData: O } = f, x = S(n.data), v = ds(n, x, o, r), {
|
|
2201
2197
|
collapseTo: _,
|
|
2202
2198
|
expandTo: g,
|
|
2203
2199
|
generateHierarchyData: T,
|
|
@@ -2226,80 +2222,80 @@ function To(n, t, e, o, r) {
|
|
|
2226
2222
|
function A() {
|
|
2227
2223
|
return G.value && G.value.enable && G.value.size > 0 ? G.value.size : B.value.length;
|
|
2228
2224
|
}
|
|
2229
|
-
const z = S(1), U = L(() => G.value && G.value.enable && G.value.mode !== "server"), ae = L(() => G.value && G.value.enable && G.value.mode === "server"), Z = new
|
|
2230
|
-
function
|
|
2231
|
-
const Ce = Math.ceil(X.length /
|
|
2225
|
+
const z = S(1), U = L(() => G.value && G.value.enable && G.value.mode !== "server"), ae = L(() => G.value && G.value.enable && G.value.mode === "server"), Z = new xo();
|
|
2226
|
+
function pe(X, me) {
|
|
2227
|
+
const Ce = Math.ceil(X.length / me);
|
|
2232
2228
|
let Ee = 0;
|
|
2233
|
-
const W = [], ee = [],
|
|
2229
|
+
const W = [], ee = [], ne = [];
|
|
2234
2230
|
for (; Ee < Ce; ) {
|
|
2235
|
-
const
|
|
2231
|
+
const te = X.slice(Ee * me, (Ee + 1) * me), be = p(h.value, te, t);
|
|
2236
2232
|
ee[Ee] = be.filter((ye) => ye.__fv_data_grid_group_row__).length, W.push(...be), Ee++;
|
|
2237
2233
|
}
|
|
2238
|
-
return ee.reduce((
|
|
2234
|
+
return ee.reduce((te, be, ye) => (te = te + be, ne.push(te), te), 0), {
|
|
2239
2235
|
groupData: W,
|
|
2240
2236
|
groupRowSizeList: ee,
|
|
2241
|
-
accumulateGroupRowSize:
|
|
2237
|
+
accumulateGroupRowSize: ne
|
|
2242
2238
|
};
|
|
2243
2239
|
}
|
|
2244
2240
|
function ve() {
|
|
2245
2241
|
var be;
|
|
2246
2242
|
B.value = x.value, U.value && (Q.value = B.value.length), O.value && !U.value && (B.value = p(h.value, x.value, t)), R = N.value.reduce((ye, Re) => (ye.set(Re, 0), ye), R);
|
|
2247
|
-
const X = 0,
|
|
2248
|
-
let W = Ce > B.value.length - 1 || ae.value ? X : Ce, ee = ae.value ? B.value.length : Math.min(W +
|
|
2243
|
+
const X = 0, me = A(), Ce = (z.value - 1) * me;
|
|
2244
|
+
let W = Ce > B.value.length - 1 || ae.value ? X : Ce, ee = ae.value ? B.value.length : Math.min(W + me, B.value.length);
|
|
2249
2245
|
if (O.value && U.value) {
|
|
2250
|
-
const { accumulateGroupRowSize: ye, groupData: Re, groupRowSizeList: Te } =
|
|
2246
|
+
const { accumulateGroupRowSize: ye, groupData: Re, groupRowSizeList: Te } = pe(x.value, me);
|
|
2251
2247
|
B.value = Re;
|
|
2252
2248
|
const He = Te[z.value - 1];
|
|
2253
|
-
W += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = W +
|
|
2249
|
+
W += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = W + me + He;
|
|
2254
2250
|
}
|
|
2255
|
-
let
|
|
2256
|
-
const
|
|
2251
|
+
let ne = 0;
|
|
2252
|
+
const te = [];
|
|
2257
2253
|
if (B.value.length) {
|
|
2258
2254
|
E(B.value);
|
|
2259
2255
|
const ye = P.value !== n.idField;
|
|
2260
2256
|
for (let Re = W; Re < ee; Re++) {
|
|
2261
2257
|
const Te = B.value[Re];
|
|
2262
|
-
Te.__fv_data_grid_group_row__ ? (
|
|
2258
|
+
Te.__fv_data_grid_group_row__ ? (ne = 0, Te.__fv_data_index__ = "") : Te.__fv_data_grid_group_summary__ ? Te.__fv_data_index__ = "" : (ne++, Te.__fv_data_index__ = ne + (z.value - 1) * me), Te.__fv_index__ = Re, Te.__fv_visible_index__ = Re, n.rowOption && n.rowOption.disabledField && (Te.__fv_disabled__ = Te[(be = n.rowOption) == null ? void 0 : be.disabledField]), ye && (Te[P.value] = Re), N.value.forEach((He) => {
|
|
2263
2259
|
const at = R.get(He) || 0;
|
|
2264
2260
|
R.set(He, at + Te[He]);
|
|
2265
|
-
}),
|
|
2261
|
+
}), te.push(Te);
|
|
2266
2262
|
}
|
|
2267
2263
|
}
|
|
2268
|
-
return w.value && T(
|
|
2264
|
+
return w.value && T(te), $.value = [...te], te;
|
|
2269
2265
|
}
|
|
2270
2266
|
const xe = S(ve()), Ve = L(() => (V.value, xe.value.filter((X) => w.value ? X.__fv_visible__ !== !1 && C(X) : X.__fv_visible__ !== !1)));
|
|
2271
2267
|
function Be() {
|
|
2272
|
-
Ve.value.forEach((X,
|
|
2268
|
+
Ve.value.forEach((X, me) => (X.__fv_visible_index__ = me, X));
|
|
2273
2269
|
}
|
|
2274
|
-
function Y(X,
|
|
2275
|
-
const W = (Ce ? ve() : [...$.value]).filter((
|
|
2276
|
-
const ye = [...
|
|
2277
|
-
let Te = Re.compare(
|
|
2270
|
+
function Y(X, me, Ce = !1) {
|
|
2271
|
+
const W = (Ce ? ve() : [...$.value]).filter((te) => e.apply(te)), ee = X && X.length ? W.filter((te) => X.reduce((be, ye) => be && ye.filter(te), !0)) : W, ne = me && me.length ? ee.sort((te, be) => {
|
|
2272
|
+
const ye = [...me], Re = ye.shift();
|
|
2273
|
+
let Te = Re.compare(te[Re.field], be[Re.field]);
|
|
2278
2274
|
for (; Te === 0 && ye.length !== 0; ) {
|
|
2279
2275
|
const He = ye.shift();
|
|
2280
|
-
He && (Te = He.compare(
|
|
2276
|
+
He && (Te = He.compare(te[He.field], be[He.field]));
|
|
2281
2277
|
}
|
|
2282
2278
|
return Te;
|
|
2283
2279
|
}) : ee;
|
|
2284
|
-
return xe.value =
|
|
2285
|
-
if (
|
|
2286
|
-
const ye = `group_of_${
|
|
2287
|
-
|
|
2280
|
+
return xe.value = ne.map((te, be) => {
|
|
2281
|
+
if (te.__fv_data_grid_group_row__) {
|
|
2282
|
+
const ye = `group_of_${te.__fv_data_grid_group_field__}_${te.__fv_data_grid_group_value__}`;
|
|
2283
|
+
te.__fv_data_grid_group_collapse__ = !!a.get(ye);
|
|
2288
2284
|
}
|
|
2289
|
-
return
|
|
2285
|
+
return te.__fv_index__ = be, te.__fv_visible_index__ = be, te;
|
|
2290
2286
|
}), xe.value;
|
|
2291
2287
|
}
|
|
2292
2288
|
function ce(X) {
|
|
2293
|
-
return u.clear(), d.value = X, d.value.reduce((
|
|
2289
|
+
return u.clear(), d.value = X, d.value.reduce((me, Ce) => (me.set(Ce.field, Ce), me), u), Y([], d.value);
|
|
2294
2290
|
}
|
|
2295
|
-
function q(X,
|
|
2296
|
-
return u.set(X,
|
|
2291
|
+
function q(X, me) {
|
|
2292
|
+
return u.set(X, me), d.value = Array.from(u.values()), Y([], d.value);
|
|
2297
2293
|
}
|
|
2298
|
-
function
|
|
2294
|
+
function oe(X) {
|
|
2299
2295
|
return u.delete(X), d.value = Array.from(u.values()), Y([], d.value);
|
|
2300
2296
|
}
|
|
2301
|
-
function we(X,
|
|
2302
|
-
return i.set(X,
|
|
2297
|
+
function we(X, me) {
|
|
2298
|
+
return i.set(X, me), c.value = Array.from(i.values()), Y([], Array.from(u.values()));
|
|
2303
2299
|
}
|
|
2304
2300
|
function ke(X) {
|
|
2305
2301
|
return i.delete(X), c.value = Array.from(i.values()), Y([], Array.from(u.values()), !0);
|
|
@@ -2307,15 +2303,15 @@ function To(n, t, e, o, r) {
|
|
|
2307
2303
|
function De() {
|
|
2308
2304
|
return i.clear(), c.value = [], Y([], Array.from(u.values()), !0);
|
|
2309
2305
|
}
|
|
2310
|
-
function ot(X,
|
|
2311
|
-
const Ce = `group_of_${X}_${
|
|
2306
|
+
function ot(X, me) {
|
|
2307
|
+
const Ce = `group_of_${X}_${me}`;
|
|
2312
2308
|
a.set(Ce, !0);
|
|
2313
|
-
const Ee = (W) => W[X] !==
|
|
2314
|
-
return s.set(`collapse_${X}_${
|
|
2309
|
+
const Ee = (W) => W[X] !== me;
|
|
2310
|
+
return s.set(`collapse_${X}_${me}`, {
|
|
2315
2311
|
field: X,
|
|
2316
2312
|
fieldName: X,
|
|
2317
2313
|
fieldType: "string",
|
|
2318
|
-
filterValue:
|
|
2314
|
+
filterValue: me,
|
|
2319
2315
|
filter: Ee
|
|
2320
2316
|
}), Y(Array.from(s.values()), Array.from(u.values()));
|
|
2321
2317
|
}
|
|
@@ -2325,23 +2321,23 @@ function To(n, t, e, o, r) {
|
|
|
2325
2321
|
function dt(X) {
|
|
2326
2322
|
g(xe.value, X);
|
|
2327
2323
|
}
|
|
2328
|
-
function J(X,
|
|
2329
|
-
const Ce = `group_of_${X}_${
|
|
2330
|
-
return a.set(Ce, !1), s.delete(`collapse_${X}_${
|
|
2324
|
+
function J(X, me) {
|
|
2325
|
+
const Ce = `group_of_${X}_${me}`;
|
|
2326
|
+
return a.set(Ce, !1), s.delete(`collapse_${X}_${me}`), Y(Array.from(s.values()), Array.from(u.values()), !0);
|
|
2331
2327
|
}
|
|
2332
2328
|
function Se(X) {
|
|
2333
|
-
const
|
|
2334
|
-
l.set(`fold_${
|
|
2329
|
+
const me = X.raw[P.value], Ce = (Ee) => !Ee.__fv_parents__.has(me);
|
|
2330
|
+
l.set(`fold_${me}`, {
|
|
2335
2331
|
field: "id",
|
|
2336
2332
|
fieldName: "id",
|
|
2337
2333
|
fieldType: "string",
|
|
2338
|
-
filterValue: String(
|
|
2334
|
+
filterValue: String(me),
|
|
2339
2335
|
filter: Ce
|
|
2340
2336
|
}), Y(Array.from(l.values()), Array.from(u.values())), T(xe.value);
|
|
2341
2337
|
}
|
|
2342
2338
|
function Ie(X) {
|
|
2343
|
-
const
|
|
2344
|
-
l.delete(`fold_${
|
|
2339
|
+
const me = X[P.value];
|
|
2340
|
+
l.delete(`fold_${me}`);
|
|
2345
2341
|
}
|
|
2346
2342
|
function Ge(X) {
|
|
2347
2343
|
Ie(X.raw), Y(Array.from(l.values()), Array.from(u.values()), !0), T(xe.value);
|
|
@@ -2354,11 +2350,11 @@ function To(n, t, e, o, r) {
|
|
|
2354
2350
|
const Ce = n.hierarchy && X && X.length && X[0].children ? j(X) : X;
|
|
2355
2351
|
x.value = Ce, Ne();
|
|
2356
2352
|
}
|
|
2357
|
-
function gt(X,
|
|
2358
|
-
return (X && X.length ? xe.value.filter((W, ee) => X.reduce((
|
|
2353
|
+
function gt(X, me, Ce) {
|
|
2354
|
+
return (X && X.length ? xe.value.filter((W, ee) => X.reduce((ne, te) => ne && te.filter(W), !0)) : xe.value).slice(me, Ce);
|
|
2359
2355
|
}
|
|
2360
2356
|
function bt(X) {
|
|
2361
|
-
const
|
|
2357
|
+
const me = A(), Ce = Math.ceil(Q.value / me);
|
|
2362
2358
|
0 <= X && X <= Ce && (z.value = X, Ne());
|
|
2363
2359
|
}
|
|
2364
2360
|
function ft(X) {
|
|
@@ -2377,32 +2373,32 @@ function To(n, t, e, o, r) {
|
|
|
2377
2373
|
Ie(Ee), m(X, Ce, x), Ne();
|
|
2378
2374
|
}
|
|
2379
2375
|
function yt(X) {
|
|
2380
|
-
const
|
|
2381
|
-
x.value.splice(
|
|
2376
|
+
const me = X ? X - 1 : 0;
|
|
2377
|
+
x.value.splice(me, 1), Ne();
|
|
2382
2378
|
}
|
|
2383
2379
|
function Vt(X) {
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2380
|
+
const me = x.value.findIndex((Ce) => Ce[P.value] === X);
|
|
2381
|
+
me !== -1 && (x.value.splice(me, 1), Ne());
|
|
2386
2382
|
}
|
|
2387
2383
|
function _t(X) {
|
|
2388
|
-
const
|
|
2389
|
-
if (!(
|
|
2384
|
+
const me = X > -1 ? x.value[X] : null;
|
|
2385
|
+
if (!(me && me.deletable !== !1))
|
|
2390
2386
|
return !1;
|
|
2391
|
-
x.value = y(
|
|
2387
|
+
x.value = y(me, x.value), Ne();
|
|
2392
2388
|
}
|
|
2393
2389
|
function re() {
|
|
2394
2390
|
const X = s.size > 0 ? Array.from(s.values()) : [];
|
|
2395
2391
|
return Y(X, Array.from(u.values()));
|
|
2396
2392
|
}
|
|
2397
|
-
function
|
|
2393
|
+
function fe(X) {
|
|
2398
2394
|
G.value.size = X;
|
|
2399
2395
|
}
|
|
2400
2396
|
function ge(X) {
|
|
2401
|
-
G.value && (
|
|
2397
|
+
G.value && (fe(X), Ne());
|
|
2402
2398
|
}
|
|
2403
|
-
function Pe(X,
|
|
2399
|
+
function Pe(X, me) {
|
|
2404
2400
|
const Ce = x.value[Number(X) - 1];
|
|
2405
|
-
Ce.editable !== !1 ? (Ce.name =
|
|
2401
|
+
Ce.editable !== !1 ? (Ce.name = me, Ne()) : Z.show({
|
|
2406
2402
|
showCloseButton: !1,
|
|
2407
2403
|
timeout: 3e3,
|
|
2408
2404
|
animate: "fadeIn",
|
|
@@ -2419,7 +2415,7 @@ function To(n, t, e, o, r) {
|
|
|
2419
2415
|
addFilter: we,
|
|
2420
2416
|
addNewDataItem: ft,
|
|
2421
2417
|
addSorter: q,
|
|
2422
|
-
updatePageSize:
|
|
2418
|
+
updatePageSize: fe,
|
|
2423
2419
|
changePageSizeTo: ge,
|
|
2424
2420
|
collapse: ot,
|
|
2425
2421
|
collapseTo: vt,
|
|
@@ -2445,7 +2441,7 @@ function To(n, t, e, o, r) {
|
|
|
2445
2441
|
removeDataItemById: Vt,
|
|
2446
2442
|
removeFilter: ke,
|
|
2447
2443
|
removeHierarchyDataItem: _t,
|
|
2448
|
-
removeSorter:
|
|
2444
|
+
removeSorter: oe,
|
|
2449
2445
|
reOrderVisibleIndex: Be,
|
|
2450
2446
|
setSorters: ce,
|
|
2451
2447
|
sorters: d,
|
|
@@ -2457,7 +2453,7 @@ function To(n, t, e, o, r) {
|
|
|
2457
2453
|
visibleDataItems: Ve
|
|
2458
2454
|
};
|
|
2459
2455
|
}
|
|
2460
|
-
const
|
|
2456
|
+
const To = {
|
|
2461
2457
|
conditions: { type: Array, default: [] },
|
|
2462
2458
|
fields: { type: Array, default: [] },
|
|
2463
2459
|
key: { type: String, default: "" },
|
|
@@ -2466,7 +2462,7 @@ const ko = {
|
|
|
2466
2462
|
*/
|
|
2467
2463
|
isControlInline: { type: Boolean, default: !0 }
|
|
2468
2464
|
};
|
|
2469
|
-
class
|
|
2465
|
+
class ko {
|
|
2470
2466
|
constructor(t = { value: [] }) {
|
|
2471
2467
|
H(this, "editorType", "check-box");
|
|
2472
2468
|
H(this, "value");
|
|
@@ -2490,7 +2486,7 @@ class Fo {
|
|
|
2490
2486
|
return this.value.length === 0;
|
|
2491
2487
|
}
|
|
2492
2488
|
}
|
|
2493
|
-
class
|
|
2489
|
+
class Fo {
|
|
2494
2490
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
2495
2491
|
H(this, "editorType", "combo-lookup");
|
|
2496
2492
|
H(this, "textValue");
|
|
@@ -2534,11 +2530,11 @@ function Ue(n) {
|
|
|
2534
2530
|
function Le(n, t) {
|
|
2535
2531
|
return n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
2536
2532
|
}
|
|
2537
|
-
function
|
|
2533
|
+
function Mo(n, t) {
|
|
2538
2534
|
const e = Ue(n);
|
|
2539
2535
|
return isNaN(t) ? Le(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
2540
2536
|
}
|
|
2541
|
-
const
|
|
2537
|
+
const Eo = 6048e5, hs = 864e5, vs = 6e4, gs = 36e5, ys = 1e3;
|
|
2542
2538
|
let ws = {};
|
|
2543
2539
|
function qt() {
|
|
2544
2540
|
return ws;
|
|
@@ -2551,7 +2547,7 @@ function Et(n, t) {
|
|
|
2551
2547
|
function Gt(n) {
|
|
2552
2548
|
return Et(n, { weekStartsOn: 1 });
|
|
2553
2549
|
}
|
|
2554
|
-
function
|
|
2550
|
+
function Oo(n) {
|
|
2555
2551
|
const t = Ue(n), e = t.getFullYear(), o = Le(n, 0);
|
|
2556
2552
|
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2557
2553
|
const r = Gt(o), a = Le(n, 0);
|
|
@@ -2559,7 +2555,7 @@ function Io(n) {
|
|
|
2559
2555
|
const i = Gt(a);
|
|
2560
2556
|
return t.getTime() >= r.getTime() ? e + 1 : t.getTime() >= i.getTime() ? e : e - 1;
|
|
2561
2557
|
}
|
|
2562
|
-
function
|
|
2558
|
+
function Bn(n) {
|
|
2563
2559
|
const t = Ue(n);
|
|
2564
2560
|
return t.setHours(0, 0, 0, 0), t;
|
|
2565
2561
|
}
|
|
@@ -2578,11 +2574,11 @@ function nn(n) {
|
|
|
2578
2574
|
return e.setUTCFullYear(t.getFullYear()), +n - +e;
|
|
2579
2575
|
}
|
|
2580
2576
|
function bs(n, t) {
|
|
2581
|
-
const e =
|
|
2577
|
+
const e = Bn(n), o = Bn(t), r = +e - nn(e), a = +o - nn(o);
|
|
2582
2578
|
return Math.round((r - a) / hs);
|
|
2583
2579
|
}
|
|
2584
2580
|
function Cs(n) {
|
|
2585
|
-
const t =
|
|
2581
|
+
const t = Oo(n), e = Le(n, 0);
|
|
2586
2582
|
return e.setFullYear(t, 0, 4), e.setHours(0, 0, 0, 0), Gt(e);
|
|
2587
2583
|
}
|
|
2588
2584
|
function _s(n) {
|
|
@@ -3017,7 +3013,7 @@ const Gs = /^(\d+)(th|st|nd|rd)?/i, qs = /\d+/i, zs = {
|
|
|
3017
3013
|
parsePatterns: tl,
|
|
3018
3014
|
defaultParseWidth: "any"
|
|
3019
3015
|
})
|
|
3020
|
-
},
|
|
3016
|
+
}, Io = {
|
|
3021
3017
|
code: "en-US",
|
|
3022
3018
|
formatDistance: ks,
|
|
3023
3019
|
formatLong: Os,
|
|
@@ -3033,9 +3029,9 @@ function ol(n) {
|
|
|
3033
3029
|
const t = Ue(n);
|
|
3034
3030
|
return bs(t, Ss(t)) + 1;
|
|
3035
3031
|
}
|
|
3036
|
-
function
|
|
3032
|
+
function Do(n) {
|
|
3037
3033
|
const t = Ue(n), e = +Gt(t) - +Cs(t);
|
|
3038
|
-
return Math.round(e /
|
|
3034
|
+
return Math.round(e / Eo) + 1;
|
|
3039
3035
|
}
|
|
3040
3036
|
function Tn(n, t) {
|
|
3041
3037
|
var c, d, f, p;
|
|
@@ -3051,9 +3047,9 @@ function rl(n, t) {
|
|
|
3051
3047
|
const e = qt(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((c = (u = e.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, r = Tn(n, t), a = Le(n, 0);
|
|
3052
3048
|
return a.setFullYear(r, 0, o), a.setHours(0, 0, 0, 0), Et(a, t);
|
|
3053
3049
|
}
|
|
3054
|
-
function
|
|
3050
|
+
function Vo(n, t) {
|
|
3055
3051
|
const e = Ue(n), o = +Et(e, t) - +rl(e, t);
|
|
3056
|
-
return Math.round(o /
|
|
3052
|
+
return Math.round(o / Eo) + 1;
|
|
3057
3053
|
}
|
|
3058
3054
|
function Oe(n, t) {
|
|
3059
3055
|
const e = n < 0 ? "-" : "", o = Math.abs(n).toString().padStart(t, "0");
|
|
@@ -3122,7 +3118,7 @@ const xt = {
|
|
|
3122
3118
|
afternoon: "afternoon",
|
|
3123
3119
|
evening: "evening",
|
|
3124
3120
|
night: "night"
|
|
3125
|
-
},
|
|
3121
|
+
}, Hn = {
|
|
3126
3122
|
// Era
|
|
3127
3123
|
G: function(n, t, e) {
|
|
3128
3124
|
const o = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -3157,7 +3153,7 @@ const xt = {
|
|
|
3157
3153
|
},
|
|
3158
3154
|
// ISO week-numbering year
|
|
3159
3155
|
R: function(n, t) {
|
|
3160
|
-
const e =
|
|
3156
|
+
const e = Oo(n);
|
|
3161
3157
|
return Oe(e, t.length);
|
|
3162
3158
|
},
|
|
3163
3159
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -3280,12 +3276,12 @@ const xt = {
|
|
|
3280
3276
|
},
|
|
3281
3277
|
// Local week of year
|
|
3282
3278
|
w: function(n, t, e, o) {
|
|
3283
|
-
const r =
|
|
3279
|
+
const r = Vo(n, o);
|
|
3284
3280
|
return t === "wo" ? e.ordinalNumber(r, { unit: "week" }) : Oe(r, t.length);
|
|
3285
3281
|
},
|
|
3286
3282
|
// ISO week of year
|
|
3287
3283
|
I: function(n, t, e) {
|
|
3288
|
-
const o =
|
|
3284
|
+
const o = Do(n);
|
|
3289
3285
|
return t === "Io" ? e.ordinalNumber(o, { unit: "week" }) : Oe(o, t.length);
|
|
3290
3286
|
},
|
|
3291
3287
|
// Day of the month
|
|
@@ -3548,7 +3544,7 @@ const xt = {
|
|
|
3548
3544
|
return "Z";
|
|
3549
3545
|
switch (t) {
|
|
3550
3546
|
case "X":
|
|
3551
|
-
return
|
|
3547
|
+
return Ln(o);
|
|
3552
3548
|
case "XXXX":
|
|
3553
3549
|
case "XX":
|
|
3554
3550
|
return Bt(o);
|
|
@@ -3563,7 +3559,7 @@ const xt = {
|
|
|
3563
3559
|
const o = n.getTimezoneOffset();
|
|
3564
3560
|
switch (t) {
|
|
3565
3561
|
case "x":
|
|
3566
|
-
return
|
|
3562
|
+
return Ln(o);
|
|
3567
3563
|
case "xxxx":
|
|
3568
3564
|
case "xx":
|
|
3569
3565
|
return Bt(o);
|
|
@@ -3580,7 +3576,7 @@ const xt = {
|
|
|
3580
3576
|
case "O":
|
|
3581
3577
|
case "OO":
|
|
3582
3578
|
case "OOO":
|
|
3583
|
-
return "GMT" +
|
|
3579
|
+
return "GMT" + $n(o, ":");
|
|
3584
3580
|
case "OOOO":
|
|
3585
3581
|
default:
|
|
3586
3582
|
return "GMT" + Bt(o, ":");
|
|
@@ -3593,7 +3589,7 @@ const xt = {
|
|
|
3593
3589
|
case "z":
|
|
3594
3590
|
case "zz":
|
|
3595
3591
|
case "zzz":
|
|
3596
|
-
return "GMT" +
|
|
3592
|
+
return "GMT" + $n(o, ":");
|
|
3597
3593
|
case "zzzz":
|
|
3598
3594
|
default:
|
|
3599
3595
|
return "GMT" + Bt(o, ":");
|
|
@@ -3610,18 +3606,18 @@ const xt = {
|
|
|
3610
3606
|
return Oe(o, t.length);
|
|
3611
3607
|
}
|
|
3612
3608
|
};
|
|
3613
|
-
function
|
|
3609
|
+
function $n(n, t = "") {
|
|
3614
3610
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Math.trunc(o / 60), a = o % 60;
|
|
3615
3611
|
return a === 0 ? e + String(r) : e + String(r) + t + Oe(a, 2);
|
|
3616
3612
|
}
|
|
3617
|
-
function
|
|
3613
|
+
function Ln(n, t) {
|
|
3618
3614
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Oe(Math.abs(n) / 60, 2) : Bt(n, t);
|
|
3619
3615
|
}
|
|
3620
3616
|
function Bt(n, t = "") {
|
|
3621
3617
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Oe(Math.trunc(o / 60), 2), a = Oe(o % 60, 2);
|
|
3622
3618
|
return e + r + t + a;
|
|
3623
3619
|
}
|
|
3624
|
-
const
|
|
3620
|
+
const Wn = (n, t) => {
|
|
3625
3621
|
switch (n) {
|
|
3626
3622
|
case "P":
|
|
3627
3623
|
return t.date({ width: "short" });
|
|
@@ -3633,7 +3629,7 @@ const jn = (n, t) => {
|
|
|
3633
3629
|
default:
|
|
3634
3630
|
return t.date({ width: "full" });
|
|
3635
3631
|
}
|
|
3636
|
-
},
|
|
3632
|
+
}, Po = (n, t) => {
|
|
3637
3633
|
switch (n) {
|
|
3638
3634
|
case "p":
|
|
3639
3635
|
return t.time({ width: "short" });
|
|
@@ -3648,7 +3644,7 @@ const jn = (n, t) => {
|
|
|
3648
3644
|
}, al = (n, t) => {
|
|
3649
3645
|
const e = n.match(/(P+)(p+)?/) || [], o = e[1], r = e[2];
|
|
3650
3646
|
if (!r)
|
|
3651
|
-
return
|
|
3647
|
+
return Wn(n, t);
|
|
3652
3648
|
let a;
|
|
3653
3649
|
switch (o) {
|
|
3654
3650
|
case "P":
|
|
@@ -3665,15 +3661,15 @@ const jn = (n, t) => {
|
|
|
3665
3661
|
a = t.dateTime({ width: "full" });
|
|
3666
3662
|
break;
|
|
3667
3663
|
}
|
|
3668
|
-
return a.replace("{{date}}",
|
|
3664
|
+
return a.replace("{{date}}", Wn(o, t)).replace("{{time}}", Po(r, t));
|
|
3669
3665
|
}, wn = {
|
|
3670
|
-
p:
|
|
3666
|
+
p: Po,
|
|
3671
3667
|
P: al
|
|
3672
3668
|
}, il = /^D+$/, sl = /^Y+$/, ll = ["D", "DD", "YY", "YYYY"];
|
|
3673
|
-
function
|
|
3669
|
+
function Ro(n) {
|
|
3674
3670
|
return il.test(n);
|
|
3675
3671
|
}
|
|
3676
|
-
function
|
|
3672
|
+
function No(n) {
|
|
3677
3673
|
return sl.test(n);
|
|
3678
3674
|
}
|
|
3679
3675
|
function bn(n, t, e) {
|
|
@@ -3685,9 +3681,9 @@ function ul(n, t, e) {
|
|
|
3685
3681
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${o} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3686
3682
|
}
|
|
3687
3683
|
const cl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fl = /^'([^]*?)'?$/, ml = /''/g, pl = /[a-zA-Z]/;
|
|
3688
|
-
function
|
|
3684
|
+
function Bo(n, t, e) {
|
|
3689
3685
|
var c, d, f, p;
|
|
3690
|
-
const o = qt(), r = o.locale ??
|
|
3686
|
+
const o = qt(), r = o.locale ?? Io, a = o.firstWeekContainsDate ?? ((d = (c = o.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = o.weekStartsOn ?? ((p = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : p.weekStartsOn) ?? 0, s = Ue(n);
|
|
3691
3687
|
if (!xs(s))
|
|
3692
3688
|
throw new RangeError("Invalid time value");
|
|
3693
3689
|
let l = t.match(dl).map((h) => {
|
|
@@ -3703,7 +3699,7 @@ function Ho(n, t, e) {
|
|
|
3703
3699
|
const O = h[0];
|
|
3704
3700
|
if (O === "'")
|
|
3705
3701
|
return { isToken: !1, value: hl(h) };
|
|
3706
|
-
if (
|
|
3702
|
+
if (Hn[O])
|
|
3707
3703
|
return { isToken: !0, value: h };
|
|
3708
3704
|
if (O.match(pl))
|
|
3709
3705
|
throw new RangeError(
|
|
@@ -3720,8 +3716,8 @@ function Ho(n, t, e) {
|
|
|
3720
3716
|
return l.map((h) => {
|
|
3721
3717
|
if (!h.isToken) return h.value;
|
|
3722
3718
|
const O = h.value;
|
|
3723
|
-
(
|
|
3724
|
-
const x =
|
|
3719
|
+
(No(O) || Ro(O)) && bn(O, t, String(n));
|
|
3720
|
+
const x = Hn[O[0]];
|
|
3725
3721
|
return x(s, O, r.localize, u);
|
|
3726
3722
|
}).join("");
|
|
3727
3723
|
}
|
|
@@ -3750,7 +3746,7 @@ function yl(n, t) {
|
|
|
3750
3746
|
), e;
|
|
3751
3747
|
}
|
|
3752
3748
|
const wl = 10;
|
|
3753
|
-
class
|
|
3749
|
+
class Ho {
|
|
3754
3750
|
constructor() {
|
|
3755
3751
|
H(this, "subPriority", 0);
|
|
3756
3752
|
}
|
|
@@ -3758,7 +3754,7 @@ class $o {
|
|
|
3758
3754
|
return !0;
|
|
3759
3755
|
}
|
|
3760
3756
|
}
|
|
3761
|
-
class bl extends
|
|
3757
|
+
class bl extends Ho {
|
|
3762
3758
|
constructor(t, e, o, r, a) {
|
|
3763
3759
|
super(), this.value = t, this.validateValue = e, this.setValue = o, this.priority = r, a && (this.subPriority = a);
|
|
3764
3760
|
}
|
|
@@ -3769,7 +3765,7 @@ class bl extends $o {
|
|
|
3769
3765
|
return this.setValue(t, e, this.value, o);
|
|
3770
3766
|
}
|
|
3771
3767
|
}
|
|
3772
|
-
class Cl extends
|
|
3768
|
+
class Cl extends Ho {
|
|
3773
3769
|
constructor() {
|
|
3774
3770
|
super(...arguments);
|
|
3775
3771
|
H(this, "priority", wl);
|
|
@@ -3893,7 +3889,7 @@ function pt(n, t) {
|
|
|
3893
3889
|
rest: t.slice(e[0].length)
|
|
3894
3890
|
};
|
|
3895
3891
|
}
|
|
3896
|
-
function
|
|
3892
|
+
function $o(n) {
|
|
3897
3893
|
return $e(je.anyDigitsSigned, n);
|
|
3898
3894
|
}
|
|
3899
3895
|
function We(n, t) {
|
|
@@ -3941,7 +3937,7 @@ function kn(n) {
|
|
|
3941
3937
|
return 0;
|
|
3942
3938
|
}
|
|
3943
3939
|
}
|
|
3944
|
-
function
|
|
3940
|
+
function Lo(n, t) {
|
|
3945
3941
|
const e = t > 0, o = e ? t : 1 - t;
|
|
3946
3942
|
let r;
|
|
3947
3943
|
if (o <= 50)
|
|
@@ -3952,7 +3948,7 @@ function Wo(n, t) {
|
|
|
3952
3948
|
}
|
|
3953
3949
|
return e ? r : 1 - r;
|
|
3954
3950
|
}
|
|
3955
|
-
function
|
|
3951
|
+
function Wo(n) {
|
|
3956
3952
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
3957
3953
|
}
|
|
3958
3954
|
class xl extends Me {
|
|
@@ -3986,7 +3982,7 @@ class xl extends Me {
|
|
|
3986
3982
|
set(e, o, r) {
|
|
3987
3983
|
const a = e.getFullYear();
|
|
3988
3984
|
if (r.isTwoDigitYear) {
|
|
3989
|
-
const s =
|
|
3985
|
+
const s = Lo(
|
|
3990
3986
|
r.year,
|
|
3991
3987
|
a
|
|
3992
3988
|
);
|
|
@@ -4041,7 +4037,7 @@ class Sl extends Me {
|
|
|
4041
4037
|
set(e, o, r, a) {
|
|
4042
4038
|
const i = Tn(e, a);
|
|
4043
4039
|
if (r.isTwoDigitYear) {
|
|
4044
|
-
const l =
|
|
4040
|
+
const l = Lo(
|
|
4045
4041
|
r.year,
|
|
4046
4042
|
i
|
|
4047
4043
|
);
|
|
@@ -4347,7 +4343,7 @@ class Ol extends Me {
|
|
|
4347
4343
|
}
|
|
4348
4344
|
}
|
|
4349
4345
|
function Il(n, t, e) {
|
|
4350
|
-
const o = Ue(n), r =
|
|
4346
|
+
const o = Ue(n), r = Vo(o, e) - t;
|
|
4351
4347
|
return o.setDate(o.getDate() - r * 7), o;
|
|
4352
4348
|
}
|
|
4353
4349
|
class Dl extends Me {
|
|
@@ -4388,7 +4384,7 @@ class Dl extends Me {
|
|
|
4388
4384
|
}
|
|
4389
4385
|
}
|
|
4390
4386
|
function Vl(n, t) {
|
|
4391
|
-
const e = Ue(n), o =
|
|
4387
|
+
const e = Ue(n), o = Do(e) - t;
|
|
4392
4388
|
return e.setDate(e.getDate() - o * 7), e;
|
|
4393
4389
|
}
|
|
4394
4390
|
class Pl extends Me {
|
|
@@ -4474,7 +4470,7 @@ class Bl extends Me {
|
|
|
4474
4470
|
}
|
|
4475
4471
|
}
|
|
4476
4472
|
validate(e, o) {
|
|
4477
|
-
const r = e.getFullYear(), a =
|
|
4473
|
+
const r = e.getFullYear(), a = Wo(r), i = e.getMonth();
|
|
4478
4474
|
return a ? o >= 1 && o <= Nl[i] : o >= 1 && o <= Rl[i];
|
|
4479
4475
|
}
|
|
4480
4476
|
set(e, o, r) {
|
|
@@ -4517,7 +4513,7 @@ class Hl extends Me {
|
|
|
4517
4513
|
}
|
|
4518
4514
|
validate(e, o) {
|
|
4519
4515
|
const r = e.getFullYear();
|
|
4520
|
-
return
|
|
4516
|
+
return Wo(r) ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
4521
4517
|
}
|
|
4522
4518
|
set(e, o, r) {
|
|
4523
4519
|
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
@@ -4526,7 +4522,7 @@ class Hl extends Me {
|
|
|
4526
4522
|
function Fn(n, t, e) {
|
|
4527
4523
|
var d, f, p, h;
|
|
4528
4524
|
const o = qt(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? o.weekStartsOn ?? ((h = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, a = Ue(n), i = a.getDay(), l = (t % 7 + 7) % 7, u = 7 - r, c = t < 0 || t > 6 ? t - (i + u) % 7 : (l + u) % 7 - (i + u) % 7;
|
|
4529
|
-
return
|
|
4525
|
+
return Mo(a, c);
|
|
4530
4526
|
}
|
|
4531
4527
|
class $l extends Me {
|
|
4532
4528
|
constructor() {
|
|
@@ -4697,7 +4693,7 @@ class Wl extends Me {
|
|
|
4697
4693
|
}
|
|
4698
4694
|
function jl(n, t) {
|
|
4699
4695
|
const e = Ue(n), o = gl(e), r = t - o;
|
|
4700
|
-
return
|
|
4696
|
+
return Mo(e, r);
|
|
4701
4697
|
}
|
|
4702
4698
|
class Al extends Me {
|
|
4703
4699
|
constructor() {
|
|
@@ -5147,7 +5143,7 @@ class nu extends Me {
|
|
|
5147
5143
|
H(this, "incompatibleTokens", "*");
|
|
5148
5144
|
}
|
|
5149
5145
|
parse(e) {
|
|
5150
|
-
return
|
|
5146
|
+
return $o(e);
|
|
5151
5147
|
}
|
|
5152
5148
|
set(e, o, r) {
|
|
5153
5149
|
return [Le(e, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -5160,7 +5156,7 @@ class ou extends Me {
|
|
|
5160
5156
|
H(this, "incompatibleTokens", "*");
|
|
5161
5157
|
}
|
|
5162
5158
|
parse(e) {
|
|
5163
|
-
return
|
|
5159
|
+
return $o(e);
|
|
5164
5160
|
}
|
|
5165
5161
|
set(e, o, r) {
|
|
5166
5162
|
return [Le(e, r), { timestampIsSet: !0 }];
|
|
@@ -5199,9 +5195,9 @@ const ru = {
|
|
|
5199
5195
|
t: new nu(),
|
|
5200
5196
|
T: new ou()
|
|
5201
5197
|
}, au = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, iu = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, su = /^'([^]*?)'?$/, lu = /''/g, uu = /\S/, cu = /[a-zA-Z]/;
|
|
5202
|
-
function
|
|
5198
|
+
function jo(n, t, e, o) {
|
|
5203
5199
|
var O, x, v, _;
|
|
5204
|
-
const r = vl(), a = r.locale ??
|
|
5200
|
+
const r = vl(), a = r.locale ?? Io, i = r.firstWeekContainsDate ?? ((x = (O = r.locale) == null ? void 0 : O.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((_ = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : _.weekStartsOn) ?? 0;
|
|
5205
5201
|
if (t === "")
|
|
5206
5202
|
return n === "" ? Ue(e) : Le(e, NaN);
|
|
5207
5203
|
const l = {
|
|
@@ -5217,7 +5213,7 @@ function Ao(n, t, e, o) {
|
|
|
5217
5213
|
return g;
|
|
5218
5214
|
}).join("").match(au), d = [];
|
|
5219
5215
|
for (let g of c) {
|
|
5220
|
-
|
|
5216
|
+
No(g) && bn(g, t, n), Ro(g) && bn(g, t, n);
|
|
5221
5217
|
const T = g[0], F = ru[T];
|
|
5222
5218
|
if (F) {
|
|
5223
5219
|
const { incompatibleTokens: b } = F;
|
|
@@ -5274,7 +5270,7 @@ function Ao(n, t, e, o) {
|
|
|
5274
5270
|
function du(n) {
|
|
5275
5271
|
return n.match(su)[1].replace(lu, "'");
|
|
5276
5272
|
}
|
|
5277
|
-
class
|
|
5273
|
+
class Ao {
|
|
5278
5274
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
5279
5275
|
H(this, "editorType", "date-picker");
|
|
5280
5276
|
H(this, "value");
|
|
@@ -5291,8 +5287,8 @@ class Go {
|
|
|
5291
5287
|
}
|
|
5292
5288
|
getDisplayText() {
|
|
5293
5289
|
if (typeof this.value == "string" && this.value) {
|
|
5294
|
-
const t =
|
|
5295
|
-
return
|
|
5290
|
+
const t = jo(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
5291
|
+
return Bo(t, this.displayFormat);
|
|
5296
5292
|
}
|
|
5297
5293
|
return this.getValue();
|
|
5298
5294
|
}
|
|
@@ -5327,7 +5323,7 @@ class rn {
|
|
|
5327
5323
|
return !this.begin || !this.end;
|
|
5328
5324
|
}
|
|
5329
5325
|
}
|
|
5330
|
-
class
|
|
5326
|
+
class Go {
|
|
5331
5327
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
5332
5328
|
H(this, "editorType", "datetime-picker");
|
|
5333
5329
|
H(this, "value");
|
|
@@ -5344,8 +5340,8 @@ class qo {
|
|
|
5344
5340
|
}
|
|
5345
5341
|
getDisplayText() {
|
|
5346
5342
|
if (typeof this.value == "string" && this.value) {
|
|
5347
|
-
const t =
|
|
5348
|
-
return
|
|
5343
|
+
const t = jo(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
5344
|
+
return Bo(t, this.displayFormat);
|
|
5349
5345
|
}
|
|
5350
5346
|
return this.getValue();
|
|
5351
5347
|
}
|
|
@@ -5356,7 +5352,7 @@ class qo {
|
|
|
5356
5352
|
return !this.value;
|
|
5357
5353
|
}
|
|
5358
5354
|
}
|
|
5359
|
-
class
|
|
5355
|
+
class qo {
|
|
5360
5356
|
constructor(t = { value: "", valueList: [] }) {
|
|
5361
5357
|
H(this, "editorType", "combo-list");
|
|
5362
5358
|
H(this, "value");
|
|
@@ -5441,7 +5437,7 @@ class fu {
|
|
|
5441
5437
|
return !this.displayText && !this.value.length;
|
|
5442
5438
|
}
|
|
5443
5439
|
}
|
|
5444
|
-
class
|
|
5440
|
+
class zo {
|
|
5445
5441
|
constructor(t = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
5446
5442
|
H(this, "editorType", "lookup");
|
|
5447
5443
|
H(this, "helpId");
|
|
@@ -5469,7 +5465,7 @@ class Yo {
|
|
|
5469
5465
|
return !this.mapFields.length;
|
|
5470
5466
|
}
|
|
5471
5467
|
}
|
|
5472
|
-
class
|
|
5468
|
+
class Yo {
|
|
5473
5469
|
constructor(t = { value: "" }) {
|
|
5474
5470
|
H(this, "editorType", "month-picker");
|
|
5475
5471
|
H(this, "value");
|
|
@@ -5492,7 +5488,7 @@ class Uo {
|
|
|
5492
5488
|
return !this.value;
|
|
5493
5489
|
}
|
|
5494
5490
|
}
|
|
5495
|
-
class
|
|
5491
|
+
class Uo {
|
|
5496
5492
|
constructor(t = { begin: "", end: "" }) {
|
|
5497
5493
|
H(this, "editorType", "month-range");
|
|
5498
5494
|
H(this, "begin");
|
|
@@ -5516,7 +5512,7 @@ class Xo {
|
|
|
5516
5512
|
return !this.begin || !this.end;
|
|
5517
5513
|
}
|
|
5518
5514
|
}
|
|
5519
|
-
class
|
|
5515
|
+
class Xo {
|
|
5520
5516
|
constructor(t = { begin: null, end: null }) {
|
|
5521
5517
|
H(this, "editorType", "number-range");
|
|
5522
5518
|
H(this, "begin");
|
|
@@ -5543,7 +5539,7 @@ class Qo {
|
|
|
5543
5539
|
return this.begin == null && this.end == null;
|
|
5544
5540
|
}
|
|
5545
5541
|
}
|
|
5546
|
-
class
|
|
5542
|
+
class Qo {
|
|
5547
5543
|
constructor(t = { value: "" }) {
|
|
5548
5544
|
H(this, "editorType", "number-spinner");
|
|
5549
5545
|
H(this, "value");
|
|
@@ -5567,7 +5563,7 @@ class Ko {
|
|
|
5567
5563
|
return this.value == null || isNaN(this.value);
|
|
5568
5564
|
}
|
|
5569
5565
|
}
|
|
5570
|
-
class
|
|
5566
|
+
class Ko {
|
|
5571
5567
|
constructor(t = { value: null, valueList: [] }) {
|
|
5572
5568
|
H(this, "editorType", "radio-group");
|
|
5573
5569
|
H(this, "value");
|
|
@@ -5615,45 +5611,45 @@ class an {
|
|
|
5615
5611
|
return !this.value;
|
|
5616
5612
|
}
|
|
5617
5613
|
}
|
|
5618
|
-
function
|
|
5614
|
+
function Jo() {
|
|
5619
5615
|
function n(t, e) {
|
|
5620
5616
|
switch (t) {
|
|
5621
5617
|
case "check-box":
|
|
5622
|
-
return new
|
|
5618
|
+
return new ko(e);
|
|
5623
5619
|
case "combo-list":
|
|
5624
|
-
return new
|
|
5620
|
+
return new qo(e);
|
|
5625
5621
|
case "combo-lookup":
|
|
5626
|
-
return new
|
|
5622
|
+
return new Fo(e);
|
|
5627
5623
|
case "input-group":
|
|
5628
5624
|
return new fu(e);
|
|
5629
5625
|
case "date-picker":
|
|
5630
|
-
return new
|
|
5626
|
+
return new Ao(e);
|
|
5631
5627
|
case "date-range":
|
|
5632
5628
|
return new rn(e);
|
|
5633
5629
|
case "datetime-picker":
|
|
5634
|
-
return new
|
|
5630
|
+
return new Go(e);
|
|
5635
5631
|
case "datetime-range":
|
|
5636
5632
|
return new rn(e);
|
|
5637
5633
|
case "lookup":
|
|
5638
|
-
return new
|
|
5634
|
+
return new zo(e);
|
|
5639
5635
|
case "month-picker":
|
|
5640
|
-
return new
|
|
5636
|
+
return new Yo(e);
|
|
5641
5637
|
case "month-range":
|
|
5642
|
-
return new
|
|
5638
|
+
return new Uo(e);
|
|
5643
5639
|
case "number-range":
|
|
5644
|
-
return new
|
|
5640
|
+
return new Xo(e);
|
|
5645
5641
|
case "number-spinner":
|
|
5646
|
-
return new
|
|
5642
|
+
return new Qo(e);
|
|
5647
5643
|
case "radio-group":
|
|
5648
|
-
return new
|
|
5644
|
+
return new Ko(e);
|
|
5649
5645
|
default:
|
|
5650
5646
|
return new an(e);
|
|
5651
5647
|
}
|
|
5652
5648
|
}
|
|
5653
5649
|
return { createConditionValue: n };
|
|
5654
5650
|
}
|
|
5655
|
-
function
|
|
5656
|
-
const e = S(n.fields), o = S([]), r = /* @__PURE__ */ new Map(), { createConditionValue: a } =
|
|
5651
|
+
function Zo(n, t) {
|
|
5652
|
+
const e = S(n.fields), o = S([]), r = /* @__PURE__ */ new Map(), { createConditionValue: a } = Jo();
|
|
5657
5653
|
function i(c) {
|
|
5658
5654
|
switch (c.editor ? c.editor.type : "input-group") {
|
|
5659
5655
|
case "date-range":
|
|
@@ -5715,14 +5711,14 @@ function mu(n, t, e) {
|
|
|
5715
5711
|
resizeObserver: o
|
|
5716
5712
|
};
|
|
5717
5713
|
}
|
|
5718
|
-
const
|
|
5714
|
+
const jn = /* @__PURE__ */ Ke({
|
|
5719
5715
|
name: "FConditionFields",
|
|
5720
|
-
props:
|
|
5716
|
+
props: To,
|
|
5721
5717
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
5722
5718
|
setup(n, t) {
|
|
5723
5719
|
const e = S(), o = S(n.key);
|
|
5724
5720
|
S(n.isControlInline);
|
|
5725
|
-
const r = S(n.conditions), a =
|
|
5721
|
+
const r = S(n.conditions), a = Zo(n), {
|
|
5726
5722
|
initialConditionValue: i,
|
|
5727
5723
|
fieldMap: s,
|
|
5728
5724
|
loadFieldConfigs: l
|
|
@@ -5730,7 +5726,7 @@ const An = /* @__PURE__ */ Ke({
|
|
|
5730
5726
|
conditionClass: c,
|
|
5731
5727
|
resizeObserver: d
|
|
5732
5728
|
} = u;
|
|
5733
|
-
l(!0), i(r.value),
|
|
5729
|
+
l(!0), i(r.value), Un(() => {
|
|
5734
5730
|
var x;
|
|
5735
5731
|
(x = d.value) == null || x.unobserve(e.value);
|
|
5736
5732
|
}), Fe(() => n.conditions, () => {
|
|
@@ -5779,11 +5775,11 @@ const An = /* @__PURE__ */ Ke({
|
|
|
5779
5775
|
}, null);
|
|
5780
5776
|
});
|
|
5781
5777
|
}
|
|
5782
|
-
return () =>
|
|
5778
|
+
return () => qn(k("div", {
|
|
5783
5779
|
class: f.value,
|
|
5784
5780
|
key: o.value,
|
|
5785
5781
|
ref: e
|
|
5786
|
-
}, [O()]), [[
|
|
5782
|
+
}, [O()]), [[kr("area-response")]]);
|
|
5787
5783
|
}
|
|
5788
5784
|
}), Mn = /* @__PURE__ */ new Map([
|
|
5789
5785
|
["appearance", dn]
|
|
@@ -6052,7 +6048,7 @@ const Mu = "https://json-schema.org/draft/2020-12/schema", Eu = "https://farris-
|
|
|
6052
6048
|
"id",
|
|
6053
6049
|
"type",
|
|
6054
6050
|
"editor"
|
|
6055
|
-
],
|
|
6051
|
+
], er = {
|
|
6056
6052
|
$schema: Mu,
|
|
6057
6053
|
$id: Eu,
|
|
6058
6054
|
title: Ou,
|
|
@@ -6060,7 +6056,7 @@ const Mu = "https://json-schema.org/draft/2020-12/schema", Eu = "https://farris-
|
|
|
6060
6056
|
type: Du,
|
|
6061
6057
|
properties: Vu,
|
|
6062
6058
|
required: Pu
|
|
6063
|
-
},
|
|
6059
|
+
}, tr = {
|
|
6064
6060
|
id: { type: String, default: "" },
|
|
6065
6061
|
customClass: { type: String, default: "" },
|
|
6066
6062
|
customStyle: { type: String, default: "" },
|
|
@@ -6078,8 +6074,8 @@ const Mu = "https://json-schema.org/draft/2020-12/schema", Eu = "https://farris-
|
|
|
6078
6074
|
errors: { type: Object, default: null }
|
|
6079
6075
|
};
|
|
6080
6076
|
It(
|
|
6081
|
-
nr,
|
|
6082
6077
|
tr,
|
|
6078
|
+
er,
|
|
6083
6079
|
Mn,
|
|
6084
6080
|
void 0
|
|
6085
6081
|
);
|
|
@@ -6123,7 +6119,7 @@ function $u(n) {
|
|
|
6123
6119
|
return o;
|
|
6124
6120
|
}
|
|
6125
6121
|
}
|
|
6126
|
-
function
|
|
6122
|
+
function nr(n) {
|
|
6127
6123
|
if (!n)
|
|
6128
6124
|
return;
|
|
6129
6125
|
const t = n.getBoundingClientRect();
|
|
@@ -6144,7 +6140,7 @@ function Lu(n) {
|
|
|
6144
6140
|
if (!n)
|
|
6145
6141
|
return;
|
|
6146
6142
|
let t;
|
|
6147
|
-
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t &&
|
|
6143
|
+
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t && nr(t);
|
|
6148
6144
|
}
|
|
6149
6145
|
function Wu(n) {
|
|
6150
6146
|
const { formSchemaUtils: t, formStateMachineUtils: e } = n;
|
|
@@ -6727,9 +6723,9 @@ const Gu = {
|
|
|
6727
6723
|
}, [o.value])]);
|
|
6728
6724
|
}
|
|
6729
6725
|
}), ie = {}, se = {}, le = {}, ue = {};
|
|
6730
|
-
let
|
|
6726
|
+
let An = !1;
|
|
6731
6727
|
function zu() {
|
|
6732
|
-
|
|
6728
|
+
An || (An = !0, xa.register(ie, se, le, ue), _a.register(ie, se, le, ue), Sa.register(ie, se, le, ue), Ta.register(ie, se, le, ue), ka.register(ie, se, le, ue), Fa.register(ie, se, le, ue), Pn.register(ie, se, le, ue), Rn.register(ie, se, le, ue), Pn.register(ie, se, le, ue), Rn.register(ie, se, le, ue), gn.register(ie, se, le, ue), Ma.register(ie, se, le, ue), Ea.register(ie, se, le, ue), Ia.register(ie, se, le, ue), Oa.register(ie, se, le, ue), Da.register(ie, se, le, ue), Va.register(ie, se, le, ue), Pa.register(ie, se, le, ue), ya.register(ie, se, le, ue), Ra.register(ie, se, le, ue), Ti.register(ie, se, le, ue), fa.register(ie, se, le, ue), Na.register(ie, se, le, ue), yi.register(ie, se, le, ue), Ha.register(ie, se, le, ue), $a.register(ie, se, le, ue), La.register(ie, se, le, ue), ja.register(ie, se, le, ue), Wa.register(ie, se, le, ue), Aa.register(ie, se, le, ue), Ga.register(ie, se, le, ue), qa.register(ie, se, le, ue), za.register(ie, se, le, ue), Ya.register(ie, se, le, ue), da.register(ie, se, le, ue), Ua.register(ie, se, le, ue), Xa.register(ie, se, le, ue), pa.register(ie, se, le, ue), Qa.register(ie, se, le, ue), Ka.register(ie, se, le, ue), Ja.register(ie, se, le, ue), Za.register(ie, se, le, ue), ti.register(ie, se, le, ue), ni.register(ie, se, le, ue), ei.register(ie, se, le, ue), hi.register(ie, se, le), va.register(ie, se, le, ue), oi.register(ie, se, le, ue), ri.register(ie, se, le, ue), ai.register(ie, se, le, ue), ii.register(ie, se, le, ue), si.register(ie, se, le, ue), bi.register(ie, se, le, ue), ca.register(ie, se, le, ue), ga.register(ie, se, le, ue), li.register(ie, se, le, ue), ui.register(ie, se, le, ue), ua.register(ie, se, le, ue), ci.register(ie, se, le, ue), fi.register(ie, se, le, ue), di.register(ie, se, le, ue), mi.register(ie, se, le, ue), pi.register(ie, se, le, ue), vi.register(ie, se, le, ue), Ba.register(ie, se, le, ue), gi.register(ie, se, le, ue), wi.register(ie, se, le, ue), Ci.register(ie, se, le, ue), _i.register(ie, se, le, ue), xi.register(ie, se, le, ue), Si.register(ie, se, le, ue), ki.register(ie, se, le, ue), Fi.register(ie, se, le, ue));
|
|
6733
6729
|
}
|
|
6734
6730
|
function Yu() {
|
|
6735
6731
|
zu();
|
|
@@ -6879,7 +6875,7 @@ const Uu = {
|
|
|
6879
6875
|
}
|
|
6880
6876
|
}), Qu = /* @__PURE__ */ Ke({
|
|
6881
6877
|
name: "FDynamicFormGroup",
|
|
6882
|
-
props:
|
|
6878
|
+
props: tr,
|
|
6883
6879
|
emits: ["change", "update:modelValue"],
|
|
6884
6880
|
setup(n, t) {
|
|
6885
6881
|
var b;
|
|
@@ -7026,7 +7022,7 @@ H(jt, "fieldControlTypeMapping", {
|
|
|
7026
7022
|
{ key: de["radio-group"].type, value: de["radio-group"].name }
|
|
7027
7023
|
]
|
|
7028
7024
|
});
|
|
7029
|
-
let
|
|
7025
|
+
let Gn = jt;
|
|
7030
7026
|
var St = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7031
7027
|
function Qt(n) {
|
|
7032
7028
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -7086,7 +7082,7 @@ var Zu = { exports: {} };
|
|
|
7086
7082
|
P === 1 && Array.isArray(y) === !1 && (V = y, y = []);
|
|
7087
7083
|
var E, I, B, $, D, j, K, N, R, Q = null, G, A, z = !1, U = 0, ae, Z = V || {};
|
|
7088
7084
|
Z.moves === void 0 && (Z.moves = _), Z.accepts === void 0 && (Z.accepts = _), Z.invalid === void 0 && (Z.invalid = vt), Z.containers === void 0 && (Z.containers = y || []), Z.isContainer === void 0 && (Z.isContainer = v), Z.copy === void 0 && (Z.copy = !1), Z.copySortSource === void 0 && (Z.copySortSource = !1), Z.revertOnSpill === void 0 && (Z.revertOnSpill = !1), Z.removeOnSpill === void 0 && (Z.removeOnSpill = !1), Z.direction === void 0 && (Z.direction = "vertical"), Z.ignoreInputTextSelection === void 0 && (Z.ignoreInputTextSelection = !0), Z.mirrorContainer === void 0 && (Z.mirrorContainer = u.body);
|
|
7089
|
-
var
|
|
7085
|
+
var pe = i({
|
|
7090
7086
|
containers: Z.containers,
|
|
7091
7087
|
start: De,
|
|
7092
7088
|
end: dt,
|
|
@@ -7096,9 +7092,9 @@ var Zu = { exports: {} };
|
|
|
7096
7092
|
canMove: ke,
|
|
7097
7093
|
dragging: !1
|
|
7098
7094
|
});
|
|
7099
|
-
return Z.removeOnSpill === !0 &&
|
|
7095
|
+
return Z.removeOnSpill === !0 && pe.on("over", Ct).on("out", yt), xe(), pe;
|
|
7100
7096
|
function ve(W) {
|
|
7101
|
-
return
|
|
7097
|
+
return pe.containers.indexOf(W) !== -1 || Z.isContainer(W);
|
|
7102
7098
|
}
|
|
7103
7099
|
function xe(W) {
|
|
7104
7100
|
var ee = W ? "remove" : "add";
|
|
@@ -7106,7 +7102,7 @@ var Zu = { exports: {} };
|
|
|
7106
7102
|
}
|
|
7107
7103
|
function Ve(W) {
|
|
7108
7104
|
var ee = W ? "remove" : "add";
|
|
7109
|
-
h(c, ee, "mousemove",
|
|
7105
|
+
h(c, ee, "mousemove", oe);
|
|
7110
7106
|
}
|
|
7111
7107
|
function Be(W) {
|
|
7112
7108
|
var ee = W ? "remove" : "add";
|
|
@@ -7122,11 +7118,11 @@ var Zu = { exports: {} };
|
|
|
7122
7118
|
$ = W.clientX, D = W.clientY;
|
|
7123
7119
|
var ee = O(W) !== 1 || W.metaKey || W.ctrlKey;
|
|
7124
7120
|
if (!ee) {
|
|
7125
|
-
var
|
|
7126
|
-
|
|
7121
|
+
var ne = W.target, te = we(ne);
|
|
7122
|
+
te && (G = te, Ve(), W.type === "mousedown" && (b(ne) ? ne.focus() : W.preventDefault()));
|
|
7127
7123
|
}
|
|
7128
7124
|
}
|
|
7129
|
-
function
|
|
7125
|
+
function oe(W) {
|
|
7130
7126
|
if (G) {
|
|
7131
7127
|
if (O(W) === 0) {
|
|
7132
7128
|
Se({});
|
|
@@ -7134,8 +7130,8 @@ var Zu = { exports: {} };
|
|
|
7134
7130
|
}
|
|
7135
7131
|
if (!(W.clientX !== void 0 && Math.abs(W.clientX - $) <= (Z.slideFactorX || 0) && W.clientY !== void 0 && Math.abs(W.clientY - D) <= (Z.slideFactorY || 0))) {
|
|
7136
7132
|
if (Z.ignoreInputTextSelection) {
|
|
7137
|
-
var ee = M("clientX", W) || 0,
|
|
7138
|
-
if (b(
|
|
7133
|
+
var ee = M("clientX", W) || 0, ne = M("clientY", W) || 0, te = u.elementFromPoint(ee, ne);
|
|
7134
|
+
if (b(te))
|
|
7139
7135
|
return;
|
|
7140
7136
|
}
|
|
7141
7137
|
var be = G;
|
|
@@ -7144,17 +7140,17 @@ var Zu = { exports: {} };
|
|
|
7144
7140
|
}
|
|
7145
7141
|
}
|
|
7146
7142
|
function we(W) {
|
|
7147
|
-
if (!(
|
|
7143
|
+
if (!(pe.dragging && E) && !ve(W)) {
|
|
7148
7144
|
for (var ee = W; F(W) && ve(F(W)) === !1; )
|
|
7149
7145
|
if (Z.invalid(W, ee) || (W = F(W), !W))
|
|
7150
7146
|
return;
|
|
7151
|
-
var
|
|
7152
|
-
if (
|
|
7153
|
-
var
|
|
7154
|
-
if (
|
|
7147
|
+
var ne = F(W);
|
|
7148
|
+
if (ne && !Z.invalid(W, ee)) {
|
|
7149
|
+
var te = Z.moves(W, ne, ee, C(W));
|
|
7150
|
+
if (te)
|
|
7155
7151
|
return {
|
|
7156
7152
|
item: W,
|
|
7157
|
-
source:
|
|
7153
|
+
source: ne
|
|
7158
7154
|
};
|
|
7159
7155
|
}
|
|
7160
7156
|
}
|
|
@@ -7167,13 +7163,13 @@ var Zu = { exports: {} };
|
|
|
7167
7163
|
ee && ot(ee);
|
|
7168
7164
|
}
|
|
7169
7165
|
function ot(W) {
|
|
7170
|
-
Ee(W.item, W.source) && (N = W.item.cloneNode(!0),
|
|
7166
|
+
Ee(W.item, W.source) && (N = W.item.cloneNode(!0), pe.emit("cloned", N, W.item, "copy")), I = W.source, B = W.item, j = K = C(W.item), pe.dragging = !0, pe.emit("drag", B, I);
|
|
7171
7167
|
}
|
|
7172
7168
|
function vt() {
|
|
7173
7169
|
return !1;
|
|
7174
7170
|
}
|
|
7175
7171
|
function dt() {
|
|
7176
|
-
if (
|
|
7172
|
+
if (pe.dragging) {
|
|
7177
7173
|
var W = N || B;
|
|
7178
7174
|
Ie(W, F(W));
|
|
7179
7175
|
}
|
|
@@ -7182,72 +7178,72 @@ var Zu = { exports: {} };
|
|
|
7182
7178
|
G = !1, Ve(!0), Be(!0);
|
|
7183
7179
|
}
|
|
7184
7180
|
function Se(W) {
|
|
7185
|
-
if (J(), !!
|
|
7186
|
-
var ee = N || B,
|
|
7181
|
+
if (J(), !!pe.dragging) {
|
|
7182
|
+
var ee = N || B, ne = M("clientX", W) || 0, te = M("clientY", W) || 0, be = x(E, ne, te), ye = bt(be, ne, te);
|
|
7187
7183
|
ye && (N && Z.copySortSource || !N || ye !== I) ? Ie(ee, ye) : Z.removeOnSpill ? Ge() : Ne();
|
|
7188
7184
|
}
|
|
7189
7185
|
}
|
|
7190
7186
|
function Ie(W, ee) {
|
|
7191
|
-
var
|
|
7192
|
-
N && Z.copySortSource && ee === I &&
|
|
7187
|
+
var ne = F(W);
|
|
7188
|
+
N && Z.copySortSource && ee === I && ne.removeChild(B), gt(ee) ? pe.emit("cancel", W, I) : pe.emit("drop", W, ee, I, K), it();
|
|
7193
7189
|
}
|
|
7194
7190
|
function Ge() {
|
|
7195
|
-
if (
|
|
7191
|
+
if (pe.dragging) {
|
|
7196
7192
|
var W = N || B, ee = F(W);
|
|
7197
|
-
ee && ee.removeChild(W),
|
|
7193
|
+
ee && ee.removeChild(W), pe.emit(N ? "cancel" : "remove", W, ee, I), it();
|
|
7198
7194
|
}
|
|
7199
7195
|
}
|
|
7200
7196
|
function Ne(W) {
|
|
7201
|
-
if (
|
|
7202
|
-
var ee = arguments.length > 0 ? W : Z.revertOnSpill,
|
|
7203
|
-
be === !1 && ee && (N ?
|
|
7197
|
+
if (pe.dragging) {
|
|
7198
|
+
var ee = arguments.length > 0 ? W : Z.revertOnSpill, ne = N || B, te = F(ne), be = gt(te);
|
|
7199
|
+
be === !1 && ee && (N ? te && te.removeChild(N) : I.insertBefore(ne, j)), be || ee ? pe.emit("cancel", ne, I, I) : pe.emit("drop", ne, te, I, K), it();
|
|
7204
7200
|
}
|
|
7205
7201
|
}
|
|
7206
7202
|
function it() {
|
|
7207
7203
|
var W = N || B;
|
|
7208
|
-
J(), re(),
|
|
7204
|
+
J(), re(), fe(), W && l.rm(W, "gu-transit"), R && clearTimeout(R), pe.dragging = !1, Q && pe.emit("out", W, Q, I), pe.emit("dragend", W, U), I = B = N = j = K = R = Q = null;
|
|
7209
7205
|
}
|
|
7210
7206
|
function gt(W, ee) {
|
|
7211
|
-
var
|
|
7212
|
-
return ee !== void 0 ?
|
|
7207
|
+
var ne;
|
|
7208
|
+
return ee !== void 0 ? ne = ee : E ? ne = K : ne = C(N || B), W === I && ne === j;
|
|
7213
7209
|
}
|
|
7214
|
-
function bt(W, ee,
|
|
7215
|
-
for (var
|
|
7216
|
-
|
|
7217
|
-
return
|
|
7210
|
+
function bt(W, ee, ne) {
|
|
7211
|
+
for (var te = W; te && !be(); )
|
|
7212
|
+
te = F(te);
|
|
7213
|
+
return te;
|
|
7218
7214
|
function be() {
|
|
7219
|
-
var ye = ve(
|
|
7215
|
+
var ye = ve(te);
|
|
7220
7216
|
if (ye === !1)
|
|
7221
7217
|
return !1;
|
|
7222
|
-
var Re = ge(
|
|
7223
|
-
return He ? !0 : Z.accepts(B,
|
|
7218
|
+
var Re = ge(te, W), Te = Ce(te, Re, ee, ne), He = gt(te, Te);
|
|
7219
|
+
return He ? !0 : Z.accepts(B, te, I, Te);
|
|
7224
7220
|
}
|
|
7225
7221
|
}
|
|
7226
7222
|
function ft(W) {
|
|
7227
7223
|
if (!E)
|
|
7228
7224
|
return;
|
|
7229
7225
|
W.preventDefault();
|
|
7230
|
-
var ee = M("clientX", W) || 0,
|
|
7231
|
-
E.style.left = ee - 2 + "px", E.style.top =
|
|
7232
|
-
var
|
|
7233
|
-
(Re || ye === null) && (he(), Q = ye, st()),
|
|
7234
|
-
var Te = F(
|
|
7226
|
+
var ee = M("clientX", W) || 0, ne = M("clientY", W) || 0;
|
|
7227
|
+
E.style.left = ee - 2 + "px", E.style.top = ne - 2 + "px";
|
|
7228
|
+
var te = N || B, be = x(E, ee, ne), ye = bt(be, ee, ne), Re = ye !== null && ye !== Q;
|
|
7229
|
+
(Re || ye === null) && (he(), Q = ye, st()), me(be, ne);
|
|
7230
|
+
var Te = F(te);
|
|
7235
7231
|
if (ye === I && N && !Z.copySortSource) {
|
|
7236
|
-
Te && Te.removeChild(
|
|
7232
|
+
Te && Te.removeChild(te);
|
|
7237
7233
|
return;
|
|
7238
7234
|
}
|
|
7239
7235
|
var He, at = ge(ye, be);
|
|
7240
7236
|
if (z = Pe(at, ye), at !== null)
|
|
7241
|
-
He = Ce(ye, at, ee,
|
|
7237
|
+
He = Ce(ye, at, ee, ne);
|
|
7242
7238
|
else if (Z.revertOnSpill === !0 && !N)
|
|
7243
7239
|
He = j, ye = I;
|
|
7244
7240
|
else {
|
|
7245
|
-
N && Te && Te.removeChild(
|
|
7241
|
+
N && Te && Te.removeChild(te), N && A && (A.style.display = "none");
|
|
7246
7242
|
return;
|
|
7247
7243
|
}
|
|
7248
|
-
A.style.display = "block", Dt(He,
|
|
7244
|
+
A.style.display = "block", Dt(He, te, Re), He ? Ze(at, He) : X(ye);
|
|
7249
7245
|
function Xe(_e) {
|
|
7250
|
-
|
|
7246
|
+
pe.emit(_e, te, Q, I);
|
|
7251
7247
|
}
|
|
7252
7248
|
function st() {
|
|
7253
7249
|
Re && Xe("over");
|
|
@@ -7256,17 +7252,17 @@ var Zu = { exports: {} };
|
|
|
7256
7252
|
Q && Xe("out");
|
|
7257
7253
|
}
|
|
7258
7254
|
}
|
|
7259
|
-
function Dt(W, ee,
|
|
7260
|
-
(W === ee || W === C(ee)) && (K = C(ee)), (W === null &&
|
|
7255
|
+
function Dt(W, ee, ne) {
|
|
7256
|
+
(W === ee || W === C(ee)) && (K = C(ee)), (W === null && ne || W !== ee && W !== C(ee)) && (K = W);
|
|
7261
7257
|
}
|
|
7262
7258
|
function Ct(W) {
|
|
7263
7259
|
l.rm(W, "gu-hide");
|
|
7264
7260
|
}
|
|
7265
7261
|
function yt(W) {
|
|
7266
|
-
|
|
7262
|
+
pe.dragging && l.add(W, "gu-hide");
|
|
7267
7263
|
}
|
|
7268
7264
|
function Vt() {
|
|
7269
|
-
E || (E = document.createElement("div"), E.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;", E.innerHTML = Z.getMirrorText && Z.getMirrorText(B) || "控件", l.add(E, "gu-mirror"), Z.mirrorContainer.appendChild(E), h(c, "add", "mousemove", ft), l.add(Z.mirrorContainer, "gu-unselectable"),
|
|
7265
|
+
E || (E = document.createElement("div"), E.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;", E.innerHTML = Z.getMirrorText && Z.getMirrorText(B) || "控件", l.add(E, "gu-mirror"), Z.mirrorContainer.appendChild(E), h(c, "add", "mousemove", ft), l.add(Z.mirrorContainer, "gu-unselectable"), pe.emit("cloned", E, B, "mirror"));
|
|
7270
7266
|
}
|
|
7271
7267
|
function _t() {
|
|
7272
7268
|
if (A = document.createElement("div"), l.add(A, "gu-insertion"), B) {
|
|
@@ -7278,21 +7274,21 @@ var Zu = { exports: {} };
|
|
|
7278
7274
|
function re() {
|
|
7279
7275
|
E && (l.rm(Z.mirrorContainer, "gu-unselectable"), h(c, "remove", "mousemove", ft), F(E).removeChild(E), E = null);
|
|
7280
7276
|
}
|
|
7281
|
-
function
|
|
7277
|
+
function fe() {
|
|
7282
7278
|
A && (F(A).removeChild(A), A = null);
|
|
7283
7279
|
}
|
|
7284
7280
|
function ge(W, ee) {
|
|
7285
|
-
for (var
|
|
7286
|
-
|
|
7287
|
-
return
|
|
7281
|
+
for (var ne = ee; ne !== W && F(ne) !== W; )
|
|
7282
|
+
ne = F(ne);
|
|
7283
|
+
return ne === c ? null : ne;
|
|
7288
7284
|
}
|
|
7289
7285
|
function Pe(W, ee) {
|
|
7290
7286
|
if (!ee)
|
|
7291
7287
|
return z;
|
|
7292
|
-
var
|
|
7293
|
-
if (!
|
|
7288
|
+
var ne = W || ee && ee.lastElementChild;
|
|
7289
|
+
if (!ne)
|
|
7294
7290
|
return !0;
|
|
7295
|
-
var
|
|
7291
|
+
var te = getComputedStyle(W), be = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
|
|
7296
7292
|
if (be)
|
|
7297
7293
|
return !0;
|
|
7298
7294
|
if (ee) {
|
|
@@ -7310,10 +7306,10 @@ var Zu = { exports: {} };
|
|
|
7310
7306
|
if (!W.children || !W.children.length)
|
|
7311
7307
|
return !1;
|
|
7312
7308
|
for (const ee of Array.from(W.children)) {
|
|
7313
|
-
const
|
|
7314
|
-
if (!
|
|
7309
|
+
const te = (ee.className && ee.className.split(" ") || []).filter((be) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(be));
|
|
7310
|
+
if (!te.length)
|
|
7315
7311
|
return !1;
|
|
7316
|
-
for (const be of
|
|
7312
|
+
for (const be of te) {
|
|
7317
7313
|
const ye = be.slice(be.lastIndexOf("-") + 1);
|
|
7318
7314
|
if (parseInt(ye, 10) !== 12)
|
|
7319
7315
|
return !1;
|
|
@@ -7322,15 +7318,15 @@ var Zu = { exports: {} };
|
|
|
7322
7318
|
return !0;
|
|
7323
7319
|
}
|
|
7324
7320
|
function Ze(W, ee) {
|
|
7325
|
-
const
|
|
7326
|
-
if (A.style.left =
|
|
7327
|
-
if (A.style.height =
|
|
7328
|
-
const
|
|
7329
|
-
|
|
7321
|
+
const ne = ee.getBoundingClientRect();
|
|
7322
|
+
if (A.style.left = ne.left + "px", A.style.top = ne.top + "px", z) {
|
|
7323
|
+
if (A.style.height = ne.height + "px", A.style.width = "4px", W) {
|
|
7324
|
+
const te = W.getBoundingClientRect();
|
|
7325
|
+
te.top !== ne.top && (A.style.left = te.right + "px", A.style.top = te.top + "px", A.style.height = te.height + "px");
|
|
7330
7326
|
}
|
|
7331
|
-
} else if (A.style.height = "4px", A.style.width =
|
|
7332
|
-
const
|
|
7333
|
-
|
|
7327
|
+
} else if (A.style.height = "4px", A.style.width = ne.width + "px", ae) {
|
|
7328
|
+
const te = ae.getBoundingClientRect();
|
|
7329
|
+
ne.top < te.top && (A.style.display = "none");
|
|
7334
7330
|
}
|
|
7335
7331
|
ee === B && B && (A.style.display = "none");
|
|
7336
7332
|
}
|
|
@@ -7338,42 +7334,42 @@ var Zu = { exports: {} };
|
|
|
7338
7334
|
K = null;
|
|
7339
7335
|
var ee = W.lastElementChild;
|
|
7340
7336
|
if (ee) {
|
|
7341
|
-
var
|
|
7342
|
-
z ? (A.style.left =
|
|
7337
|
+
var ne = ee.getBoundingClientRect();
|
|
7338
|
+
z ? (A.style.left = ne.right + "px", A.style.top = ne.top + "px", A.style.height = ne.height + "px", A.style.width = "4px") : (A.style.left = ne.left + "px", A.style.top = ne.bottom + "px", A.style.height = "4px", A.style.width = ne.width + "px"), ee === B && B && (A.style.display = "none");
|
|
7343
7339
|
} else
|
|
7344
7340
|
A.style.display = "none";
|
|
7345
7341
|
}
|
|
7346
|
-
function
|
|
7342
|
+
function me(W, ee) {
|
|
7347
7343
|
if (!Z.mirrorContainer.contains(W) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ae = f(W), !ae || !ae.contains(W)))
|
|
7348
7344
|
return;
|
|
7349
|
-
const
|
|
7350
|
-
if (ee - 30 <
|
|
7345
|
+
const ne = document.querySelector(".dgComponentSelected"), te = ae.getBoundingClientRect();
|
|
7346
|
+
if (ee - 30 < te.top && ae.scrollTop > 0) {
|
|
7351
7347
|
let be = ae.scrollTop < 10 ? ae.scrollTop : 10;
|
|
7352
|
-
ae.scrollBy(0, -1 * be),
|
|
7348
|
+
ae.scrollBy(0, -1 * be), ne && ae.contains(ne) && (U = U + -1 * be);
|
|
7353
7349
|
}
|
|
7354
|
-
if (ee + 30 >
|
|
7350
|
+
if (ee + 30 > te.bottom && ae.scrollTop < ae.scrollHeight - ae.clientHeight) {
|
|
7355
7351
|
const be = ae.scrollHeight - ae.clientHeight - ae.scrollTop;
|
|
7356
7352
|
let ye = be < 10 ? be : 10;
|
|
7357
|
-
ae.scrollBy(0, ye),
|
|
7353
|
+
ae.scrollBy(0, ye), ne && ae.contains(ne) && (U = U + ye);
|
|
7358
7354
|
}
|
|
7359
7355
|
}
|
|
7360
|
-
function Ce(W, ee,
|
|
7356
|
+
function Ce(W, ee, ne, te) {
|
|
7361
7357
|
var be = Z.direction === "horizontal", ye = Z.direction === "mixed", Re = ee !== W ? He() : Te();
|
|
7362
7358
|
return Re;
|
|
7363
7359
|
function Te() {
|
|
7364
7360
|
var Xe = W.children.length, st, he, _e;
|
|
7365
7361
|
for (st = 0; st < Xe; st++)
|
|
7366
|
-
if (he = W.children[st], _e = he.getBoundingClientRect(), be && _e.left + _e.width / 2 >
|
|
7362
|
+
if (he = W.children[st], _e = he.getBoundingClientRect(), be && _e.left + _e.width / 2 > ne || !ye && !be && _e.top + _e.height / 2 > te || ye && _e.left + _e.width > ne && _e.top + _e.height > te)
|
|
7367
7363
|
return he;
|
|
7368
7364
|
return null;
|
|
7369
7365
|
}
|
|
7370
7366
|
function He() {
|
|
7371
7367
|
var Xe = ee.getBoundingClientRect();
|
|
7372
7368
|
if (ye) {
|
|
7373
|
-
var st =
|
|
7369
|
+
var st = te - Xe.top, he = ne - Xe.left, _e = Xe.bottom - te, et = Xe.right - ne, Je = Math.min(he, et, st, _e), tt;
|
|
7374
7370
|
return z ? tt = et < he : tt = _e === Je || et === Je || he === Je, at(tt);
|
|
7375
7371
|
}
|
|
7376
|
-
return at(be ?
|
|
7372
|
+
return at(be ? ne > Xe.left + g(Xe) / 2 : te > Xe.top + T(Xe) / 2);
|
|
7377
7373
|
}
|
|
7378
7374
|
function at(Xe) {
|
|
7379
7375
|
return Xe ? C(ee) : ee;
|
|
@@ -7773,7 +7769,7 @@ var Zu = { exports: {} };
|
|
|
7773
7769
|
}, {}, [2])(2);
|
|
7774
7770
|
});
|
|
7775
7771
|
})(Zu);
|
|
7776
|
-
const
|
|
7772
|
+
const or = /* @__PURE__ */ new Map([
|
|
7777
7773
|
["appearance", dn],
|
|
7778
7774
|
["column", "columnOption"]
|
|
7779
7775
|
]);
|
|
@@ -7796,7 +7792,7 @@ function nc(n, t, e) {
|
|
|
7796
7792
|
const o = n.getSchemaByType("content-container");
|
|
7797
7793
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
7798
7794
|
}
|
|
7799
|
-
function
|
|
7795
|
+
function rr(n, t, e) {
|
|
7800
7796
|
const r = e.parentComponentInstance.schema.type, a = r === "section" || r === "tab-page";
|
|
7801
7797
|
t.appearance = { class: "f-component-grid" };
|
|
7802
7798
|
const s = (a ? nc : tc)(n, t, e);
|
|
@@ -8582,7 +8578,7 @@ const oc = "https://json-schema.org/draft/2020-12/schema", rc = "https://farris-
|
|
|
8582
8578
|
], cc = {
|
|
8583
8579
|
onSelectionChange: "行切换事件",
|
|
8584
8580
|
onClickRow: "行点击事件"
|
|
8585
|
-
},
|
|
8581
|
+
}, ar = {
|
|
8586
8582
|
$schema: oc,
|
|
8587
8583
|
$id: rc,
|
|
8588
8584
|
title: ac,
|
|
@@ -8720,7 +8716,7 @@ const oc = "https://json-schema.org/draft/2020-12/schema", rc = "https://farris-
|
|
|
8720
8716
|
width: { type: Number, default: -1 },
|
|
8721
8717
|
/** 启用虚拟渲染 */
|
|
8722
8718
|
virtualized: { type: Boolean, default: !1 }
|
|
8723
|
-
}, dc = It(En,
|
|
8719
|
+
}, dc = It(En, ar, or, rr), fc = Ri(), mc = Pi(), ir = Object.assign({}, En, { componentId: { type: String, default: "" } }), pc = It(ir, ar, or, rr), hc = Ni();
|
|
8724
8720
|
function vc(n, t, e, o, r, a, i, s, l, u, c, d, f, p, h, O, x) {
|
|
8725
8721
|
const {
|
|
8726
8722
|
calculateCellPositionInRow: v
|
|
@@ -8780,41 +8776,41 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8780
8776
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
8781
8777
|
setup(n, t) {
|
|
8782
8778
|
var Xe, st;
|
|
8783
|
-
const o = ((Xe = n.rowOption) == null ? void 0 : Xe.height) || 28, r = S(20), a = S(n.columns), i =
|
|
8779
|
+
const o = ((Xe = n.rowOption) == null ? void 0 : Xe.height) || 28, r = S(20), a = S(n.columns), i = Qn(n), {
|
|
8784
8780
|
idField: s
|
|
8785
|
-
} = i, l = S(), u = S(), c = S(), d = S(), f = S(), p = S([]), h = S(!1), O = S(((st = n.rowOption) == null ? void 0 : st.wrapContent) || !1), x =
|
|
8781
|
+
} = i, l = S(), u = S(), c = S(), d = S(), f = S(), p = S([]), h = S(!1), O = S(((st = n.rowOption) == null ? void 0 : st.wrapContent) || !1), x = Jn(n, i), v = Xn(), _ = Kn(n), {
|
|
8786
8782
|
collapseField: g
|
|
8787
8783
|
} = _, {
|
|
8788
8784
|
showLoading: T,
|
|
8789
8785
|
renderLoading: F
|
|
8790
|
-
} =
|
|
8786
|
+
} = Ar(n, l), b = Zn(n, /* @__PURE__ */ new Map(), v, _, i), {
|
|
8791
8787
|
dataView: m
|
|
8792
|
-
} = b, C =
|
|
8788
|
+
} = b, C = eo(n, b, i, p, t), w = Gr(n, p, b, i, C, t), M = L(() => n.disabled), y = L(() => n.virtualized ? Math.min(b.dataView.value.length, r.value) : b.dataView.value.length), {
|
|
8793
8789
|
containerStyleObject: V
|
|
8794
|
-
} =
|
|
8790
|
+
} = qr(n), P = zr(n), {
|
|
8795
8791
|
applyCommands: E
|
|
8796
8792
|
} = P;
|
|
8797
8793
|
E(a);
|
|
8798
|
-
const I =
|
|
8794
|
+
const I = Yr(n), B = Ur(n), {
|
|
8799
8795
|
applyColumnSorter: $,
|
|
8800
8796
|
columnContext: D,
|
|
8801
8797
|
updateColumnRenderContext: j
|
|
8802
8798
|
} = I;
|
|
8803
8799
|
$(b, B);
|
|
8804
|
-
const K =
|
|
8800
|
+
const K = Xr(n, D), N = to(n, t, C, i), R = no(n, t, i, N, p), Q = oo(n), G = ro(n, R, Q), A = ao(n, b, R, _, i, Q, G), z = io(n, a, b, y, 0, A), {
|
|
8805
8801
|
getVisualData: U
|
|
8806
|
-
} = z, ae =
|
|
8807
|
-
sidebarWidth:
|
|
8808
|
-
} = Z, ve =
|
|
8802
|
+
} = z, ae = Qr(n, D), Z = Kr(n, C), {
|
|
8803
|
+
sidebarWidth: pe
|
|
8804
|
+
} = Z, ve = Jr(n, b, p, D, z, y, 0, pe), {
|
|
8809
8805
|
onWheel: xe,
|
|
8810
8806
|
dataGridWidth: Ve,
|
|
8811
8807
|
viewPortHeight: Be,
|
|
8812
8808
|
viewPortWidth: Y,
|
|
8813
8809
|
resetScroll: ce,
|
|
8814
8810
|
updateVisibleRowsOnLatestVisibleScope: q
|
|
8815
|
-
} = ve,
|
|
8811
|
+
} = ve, oe = Zr(n, D, u, Y, K), {
|
|
8816
8812
|
calculateColumnsSize: we
|
|
8817
|
-
} =
|
|
8813
|
+
} = oe, ke = ea(), De = ta(u, f, b, ke, ve), ot = na(n, t, I, b, K, x, ve), vt = L(() => ({
|
|
8818
8814
|
"fv-grid": !0,
|
|
8819
8815
|
"fv-grid-bordered": n.showBorder,
|
|
8820
8816
|
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
@@ -8829,15 +8825,15 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8829
8825
|
renderGridHeader: Se,
|
|
8830
8826
|
renderGridColumnResizeOverlay: Ie,
|
|
8831
8827
|
shouldShowHeader: Ge
|
|
8832
|
-
} =
|
|
8828
|
+
} = oa(n, t, u, d, f, I, b, ot, De, v, ke, oe, K, C, Z, B, ve, Y, p), {
|
|
8833
8829
|
renderDataGridSidebar: Ne
|
|
8834
|
-
} =
|
|
8830
|
+
} = ra(n, N, C, Z, ve), {
|
|
8835
8831
|
renderDisableMask: it
|
|
8836
|
-
} =
|
|
8832
|
+
} = aa(), {
|
|
8837
8833
|
renderHorizontalScrollbar: gt
|
|
8838
|
-
} =
|
|
8834
|
+
} = ia(n, u, ve), {
|
|
8839
8835
|
renderVerticalScrollbar: bt
|
|
8840
|
-
} =
|
|
8836
|
+
} = sa(n, u, ve);
|
|
8841
8837
|
function ft() {
|
|
8842
8838
|
var he, _e, et;
|
|
8843
8839
|
if (u.value && u.value.clientHeight > 0 && ((he = u.value) == null ? void 0 : he.clientWidth) > 0) {
|
|
@@ -8846,7 +8842,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8846
8842
|
}
|
|
8847
8843
|
}
|
|
8848
8844
|
Ot(() => {
|
|
8849
|
-
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), p.value = U(0, y.value + 0 - 1),
|
|
8845
|
+
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), p.value = U(0, y.value + 0 - 1), so(u.value, ft), we(), un(() => {
|
|
8850
8846
|
u.value && (Ve.value = u.value.clientWidth), c.value && (Y.value = c.value.clientWidth, Be.value = c.value.clientHeight);
|
|
8851
8847
|
})), T.value && F();
|
|
8852
8848
|
}), ln(() => {
|
|
@@ -8875,7 +8871,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8875
8871
|
const he = yt(), _e = w.getNextSelectableHierarchyItemId(he);
|
|
8876
8872
|
b.removeHierarchyDataItem(he), p.value = U(0, y.value + 0 - 1), _e && C.selectItemById(_e);
|
|
8877
8873
|
}
|
|
8878
|
-
function
|
|
8874
|
+
function fe(he) {
|
|
8879
8875
|
R.onEditingRow(he);
|
|
8880
8876
|
}
|
|
8881
8877
|
function ge(he) {
|
|
@@ -8893,7 +8889,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8893
8889
|
function X(he) {
|
|
8894
8890
|
C.selectItemById(he);
|
|
8895
8891
|
}
|
|
8896
|
-
function
|
|
8892
|
+
function me(he) {
|
|
8897
8893
|
const _e = p.value.find((et) => et.raw[i.idField.value] === he);
|
|
8898
8894
|
_e && N.clickRowItem(_e);
|
|
8899
8895
|
}
|
|
@@ -8909,9 +8905,9 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8909
8905
|
function ee() {
|
|
8910
8906
|
C.clearSelection();
|
|
8911
8907
|
}
|
|
8912
|
-
const
|
|
8913
|
-
renderEmpty:
|
|
8914
|
-
} =
|
|
8908
|
+
const ne = L(() => !p.value || !p.value.length), {
|
|
8909
|
+
renderEmpty: te
|
|
8910
|
+
} = la(t);
|
|
8915
8911
|
function be() {
|
|
8916
8912
|
return C.getSelectionRow();
|
|
8917
8913
|
}
|
|
@@ -8966,7 +8962,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8966
8962
|
collapseTo: Dt,
|
|
8967
8963
|
expandTo: Ct,
|
|
8968
8964
|
removeDataItem: re,
|
|
8969
|
-
editDataItem:
|
|
8965
|
+
editDataItem: fe,
|
|
8970
8966
|
acceptDataItem: ge,
|
|
8971
8967
|
cancelDataItem: Pe,
|
|
8972
8968
|
updateColumns: qe,
|
|
@@ -8976,7 +8972,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8976
8972
|
getSelectedItems: W,
|
|
8977
8973
|
clearSelection: ee,
|
|
8978
8974
|
getSelectionRow: be,
|
|
8979
|
-
clickRowItemById:
|
|
8975
|
+
clickRowItemById: me,
|
|
8980
8976
|
unSelectItemByIds: ye,
|
|
8981
8977
|
getCurrentRowId: Re,
|
|
8982
8978
|
reassignRowData: Te,
|
|
@@ -8992,7 +8988,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
8992
8988
|
class: dt.value,
|
|
8993
8989
|
onMouseover: () => h.value = !0,
|
|
8994
8990
|
onMouseleave: () => h.value = !1
|
|
8995
|
-
}, [u.value && Ne(p), u.value && J(), u.value &&
|
|
8991
|
+
}, [u.value && Ne(p), u.value && J(), u.value && ne.value && te(), u.value && gt(), u.value && bt()]), Ie(), M.value && it()]);
|
|
8996
8992
|
}
|
|
8997
8993
|
}), gc = {
|
|
8998
8994
|
id: { type: String, default: "" },
|
|
@@ -9045,7 +9041,7 @@ const sn = /* @__PURE__ */ Ke({
|
|
|
9045
9041
|
}
|
|
9046
9042
|
});
|
|
9047
9043
|
function bc(n) {
|
|
9048
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
9044
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !Er(n);
|
|
9049
9045
|
}
|
|
9050
9046
|
const Cn = /* @__PURE__ */ Ke({
|
|
9051
9047
|
name: "FDesignerItem",
|
|
@@ -9059,7 +9055,7 @@ const Cn = /* @__PURE__ */ Ke({
|
|
|
9059
9055
|
parent: h,
|
|
9060
9056
|
setupContext: t
|
|
9061
9057
|
};
|
|
9062
|
-
|
|
9058
|
+
Fr("design-item-context", O);
|
|
9063
9059
|
const x = kt("useFormSchema"), v = kt("designer-host-service"), _ = L(() => {
|
|
9064
9060
|
var K;
|
|
9065
9061
|
const $ = n.modelValue.appearance && n.modelValue.appearance.class || "", D = ((K = p.value) == null ? void 0 : K.getCustomButtons) && p.value.getCustomButtons();
|
|
@@ -9192,7 +9188,7 @@ const Cn = /* @__PURE__ */ Ke({
|
|
|
9192
9188
|
}
|
|
9193
9189
|
}
|
|
9194
9190
|
Fe(() => n.modelValue, ($) => {
|
|
9195
|
-
i.value = $, e.value = `${$.id}-component`,
|
|
9191
|
+
i.value = $, e.value = `${$.id}-component`, Mr(d);
|
|
9196
9192
|
}, {
|
|
9197
9193
|
deep: !0
|
|
9198
9194
|
});
|
|
@@ -9219,7 +9215,7 @@ const Cn = /* @__PURE__ */ Ke({
|
|
|
9219
9215
|
f && $ && f.attachComponents($, i.value), a.value = p.value.canNested !== void 0 ? p.value.canNested : a.value, r.value = p.value.canDelete !== void 0 ? p.value.canDelete : r.value, o.value = p.value.canMove !== void 0 ? p.value.canMove : o.value, l.value = p.value.styles || "", u.value = p.value.designerClass || "", d.value && (d.value.componentInstance = p, d.value.designItemContext = O), p.value.belongedComponentId = s.value;
|
|
9220
9216
|
}
|
|
9221
9217
|
I(), Zt.value++;
|
|
9222
|
-
}),
|
|
9218
|
+
}), Un(() => {
|
|
9223
9219
|
d.value && d.value.removeEventListener("scroll", E);
|
|
9224
9220
|
});
|
|
9225
9221
|
function B($) {
|
|
@@ -9230,7 +9226,7 @@ const Cn = /* @__PURE__ */ Ke({
|
|
|
9230
9226
|
const K = document.getElementsByClassName("dgComponentFocused");
|
|
9231
9227
|
K && K.length === 1 && K[0] === d.value || (Array.from(K).forEach((R) => R.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((R) => R.classList.remove("dgComponentSelected")), j.classList.add("dgComponentFocused"), t.emit("selectionChange", i.value.type, i.value, s.value, p.value), p.value.getDraggableDesignItemElement && (D = p.value.getDraggableDesignItemElement(O), D && D.value && D.value.classList.add("dgComponentSelected")));
|
|
9232
9228
|
}
|
|
9233
|
-
|
|
9229
|
+
nr(D == null ? void 0 : D.value);
|
|
9234
9230
|
}
|
|
9235
9231
|
return () => i.value.type === "component-ref" ? V(i.value) : k("div", {
|
|
9236
9232
|
id: `${i.value.id}-design-item`,
|
|
@@ -9820,13 +9816,13 @@ function Fc(n, t, e, o, r, a, i, s) {
|
|
|
9820
9816
|
}
|
|
9821
9817
|
const Mc = /* @__PURE__ */ Ke({
|
|
9822
9818
|
name: "FTreeGridDesign",
|
|
9823
|
-
props:
|
|
9819
|
+
props: ir,
|
|
9824
9820
|
emits: [],
|
|
9825
9821
|
setup(n, t) {
|
|
9826
|
-
var
|
|
9827
|
-
const e = S(), o = 0, r = ((
|
|
9822
|
+
var oe, we;
|
|
9823
|
+
const e = S(), o = 0, r = ((oe = n.rowOption) == null ? void 0 : oe.height) || 28, a = S(20), i = S(n.columns), s = gr(n), l = S(), u = S(), c = S([]), d = S(!1), f = S(((we = n.rowOption) == null ? void 0 : we.wrapContent) || !1), p = kt("designer-host-service"), h = kt("design-item-context"), O = xc(h, p), x = Sn(e, h, O);
|
|
9828
9824
|
x.value.designerClass = "f-utils-fill-flex-column";
|
|
9829
|
-
const v =
|
|
9825
|
+
const v = dr(), _ = fr(n), g = So(n, /* @__PURE__ */ new Map(), v, _, s), T = wr(n, g, s, c, t), F = L(() => g.dataView.value.length), {
|
|
9830
9826
|
containerStyleObject: b
|
|
9831
9827
|
} = ls(n), m = us(n), {
|
|
9832
9828
|
applyCommands: C
|
|
@@ -9836,7 +9832,7 @@ const Mc = /* @__PURE__ */ Ke({
|
|
|
9836
9832
|
applyColumnSorter: M,
|
|
9837
9833
|
columnContext: y,
|
|
9838
9834
|
updateColumnRenderContext: V
|
|
9839
|
-
} = w, P = Ud(), E = cs(n, y), I =
|
|
9835
|
+
} = w, P = Ud(), E = cs(n, y), I = yr(n, t, T, s), B = vr(n, t, s, I), $ = mr(n), D = pr(n, B, $), j = hr(n, g, B, _, s, $, D), K = Fc(n, i, g, F, o, j), {
|
|
9840
9836
|
getVisualData: N
|
|
9841
9837
|
} = K, R = Ad(n, T), {
|
|
9842
9838
|
sidebarWidth: Q
|
|
@@ -9848,9 +9844,9 @@ const Mc = /* @__PURE__ */ Ke({
|
|
|
9848
9844
|
viewPortHeight: U,
|
|
9849
9845
|
viewPortWidth: ae,
|
|
9850
9846
|
updateVisibleRowsOnLatestVisibleScope: Z
|
|
9851
|
-
} = G,
|
|
9847
|
+
} = G, pe = Sc(n, y, l, ae, E), {
|
|
9852
9848
|
calculateColumnsSize: ve
|
|
9853
|
-
} =
|
|
9849
|
+
} = pe, xe = L(() => ({
|
|
9854
9850
|
"drag-container": !0,
|
|
9855
9851
|
"fv-grid": !0,
|
|
9856
9852
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -9870,7 +9866,7 @@ const Mc = /* @__PURE__ */ Ke({
|
|
|
9870
9866
|
ke > a.value && (a.value = ke, Z()), U.value = ((De = u.value) == null ? void 0 : De.clientHeight) || 0, z.value = ((ot = l.value) == null ? void 0 : ot.clientWidth) || 0, ve();
|
|
9871
9867
|
}
|
|
9872
9868
|
Ot(() => {
|
|
9873
|
-
e.value.componentInstance = x, l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / r), a.value), c.value = N(0, F.value + o - 1),
|
|
9869
|
+
e.value.componentInstance = x, l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / r), a.value), c.value = N(0, F.value + o - 1), so(l.value, ce), ve(), un(() => {
|
|
9874
9870
|
l.value && (z.value = l.value.clientWidth), u.value && (ae.value = u.value.clientWidth, U.value = u.value.clientHeight);
|
|
9875
9871
|
}));
|
|
9876
9872
|
});
|
|
@@ -9905,7 +9901,7 @@ sn.register = (n, t, e, o) => {
|
|
|
9905
9901
|
sn.registerDesigner = (n, t, e) => {
|
|
9906
9902
|
n["tree-grid"] = Mc, t["tree-grid"] = pc;
|
|
9907
9903
|
};
|
|
9908
|
-
|
|
9904
|
+
Br(sn);
|
|
9909
9905
|
const Ec = /* @__PURE__ */ new Map([
|
|
9910
9906
|
["appearance", dn]
|
|
9911
9907
|
]);
|
|
@@ -10473,7 +10469,7 @@ function Yc(n, t, e) {
|
|
|
10473
10469
|
resetTranslate: T
|
|
10474
10470
|
};
|
|
10475
10471
|
}
|
|
10476
|
-
function
|
|
10472
|
+
function sr(n, t) {
|
|
10477
10473
|
if (n) {
|
|
10478
10474
|
const e = (o) => {
|
|
10479
10475
|
o.key.toLowerCase() === n.toLowerCase() && t({ event: o, key: n });
|
|
@@ -10486,7 +10482,7 @@ function lr(n, t) {
|
|
|
10486
10482
|
function Uc(n, t) {
|
|
10487
10483
|
const e = S(n.enableEsc);
|
|
10488
10484
|
let o = null;
|
|
10489
|
-
return e.value ? (o =
|
|
10485
|
+
return e.value ? (o = sr("Escape", (r) => {
|
|
10490
10486
|
t.emit("esc", { event: r.event, type: "esc" });
|
|
10491
10487
|
}), {
|
|
10492
10488
|
remove: o
|
|
@@ -10495,7 +10491,7 @@ function Uc(n, t) {
|
|
|
10495
10491
|
function Xc(n, t) {
|
|
10496
10492
|
const e = S(n.enableEnter);
|
|
10497
10493
|
let o = null;
|
|
10498
|
-
return e.value ? (o =
|
|
10494
|
+
return e.value ? (o = sr("Enter", (r) => {
|
|
10499
10495
|
t.emit("enter", { event: r.event, type: "enter" });
|
|
10500
10496
|
}), {
|
|
10501
10497
|
remove: o
|
|
@@ -10603,7 +10599,7 @@ const Ut = /* @__PURE__ */ Ke({
|
|
|
10603
10599
|
display: l.value ? "" : "none"
|
|
10604
10600
|
};
|
|
10605
10601
|
return J["pointer-events"] = D.value ? "auto" : "none", J;
|
|
10606
|
-
}),
|
|
10602
|
+
}), pe = L(() => ({
|
|
10607
10603
|
"f-icon": !0,
|
|
10608
10604
|
modal_maximize: !0,
|
|
10609
10605
|
modalrevert: V.value
|
|
@@ -10636,13 +10632,13 @@ const Ut = /* @__PURE__ */ Ke({
|
|
|
10636
10632
|
function ce(J) {
|
|
10637
10633
|
J.width && (e.value = J.width), J.height && (o.value = J.height), J.buttons && (m.value = J.buttons), J.title && (v.value = J.title);
|
|
10638
10634
|
}
|
|
10639
|
-
let q = null,
|
|
10640
|
-
|
|
10635
|
+
let q = null, oe = null;
|
|
10636
|
+
Or(() => {
|
|
10641
10637
|
T.value = N();
|
|
10642
10638
|
}), Ot(() => {
|
|
10643
|
-
y.value && !_.value && (_.value = y.value.parentElement, B.value = _.value, K(M.value, y.value, B.value)), Q.value && document.body.classList.add("modal-open"), q = Uc(n, t),
|
|
10639
|
+
y.value && !_.value && (_.value = y.value.parentElement, B.value = _.value, K(M.value, y.value, B.value)), Q.value && document.body.classList.add("modal-open"), q = Uc(n, t), oe = Xc(n, t);
|
|
10644
10640
|
}), ln(() => {
|
|
10645
|
-
j && j(), q && q.remove(),
|
|
10641
|
+
j && j(), q && q.remove(), oe && oe.remove();
|
|
10646
10642
|
}), t.expose({
|
|
10647
10643
|
modalElementRef: y,
|
|
10648
10644
|
updateModalOptions: ce,
|
|
@@ -10660,7 +10656,7 @@ const Ut = /* @__PURE__ */ Ke({
|
|
|
10660
10656
|
class: "f-btn-icon f-bare",
|
|
10661
10657
|
style: "pointer-events: auto;"
|
|
10662
10658
|
}, [k("span", {
|
|
10663
|
-
class:
|
|
10659
|
+
class: pe.value
|
|
10664
10660
|
}, null)]), c.value && k("li", {
|
|
10665
10661
|
class: "f-btn-icon f-bare",
|
|
10666
10662
|
onClick: (J) => F(J, !1),
|
|
@@ -10733,10 +10729,10 @@ const Ut = /* @__PURE__ */ Ke({
|
|
|
10733
10729
|
src: h.value
|
|
10734
10730
|
}, null)]), ot()]), !s.value && y.value && !V.value && P(y.value)]);
|
|
10735
10731
|
}
|
|
10736
|
-
return () => k(
|
|
10732
|
+
return () => k(Ir, {
|
|
10737
10733
|
to: "body"
|
|
10738
10734
|
}, {
|
|
10739
|
-
default: () => [Q.value && k(
|
|
10735
|
+
default: () => [Q.value && k(Yn, {
|
|
10740
10736
|
name: "fade",
|
|
10741
10737
|
appear: !0
|
|
10742
10738
|
}, {
|
|
@@ -10750,7 +10746,7 @@ const Ut = /* @__PURE__ */ Ke({
|
|
|
10750
10746
|
});
|
|
10751
10747
|
}
|
|
10752
10748
|
});
|
|
10753
|
-
function
|
|
10749
|
+
function lr(n) {
|
|
10754
10750
|
if (n.content && n.content.render)
|
|
10755
10751
|
return n.content.render;
|
|
10756
10752
|
if (n.render && typeof n.render == "function")
|
|
@@ -10759,7 +10755,7 @@ function ur(n) {
|
|
|
10759
10755
|
function Qc(n) {
|
|
10760
10756
|
const t = document.createElement("div");
|
|
10761
10757
|
t.style.display = "contents";
|
|
10762
|
-
const e =
|
|
10758
|
+
const e = zn({
|
|
10763
10759
|
setup(o, r) {
|
|
10764
10760
|
ln(() => {
|
|
10765
10761
|
document.body.removeChild(t);
|
|
@@ -10769,7 +10765,7 @@ function Qc(n) {
|
|
|
10769
10765
|
}), h = n.closedCallback || ((g) => {
|
|
10770
10766
|
}), O = n.resizeHandle || ((g) => {
|
|
10771
10767
|
}), x = n.stopMoveHandle || ((g) => {
|
|
10772
|
-
}), v =
|
|
10768
|
+
}), v = lr(n), _ = (g) => {
|
|
10773
10769
|
c.value = !1, e.unmount(), h(g);
|
|
10774
10770
|
};
|
|
10775
10771
|
return Ot(() => {
|
|
@@ -10801,7 +10797,7 @@ function Qc(n) {
|
|
|
10801
10797
|
});
|
|
10802
10798
|
return document.body.appendChild(t), e.mount(t), e;
|
|
10803
10799
|
}
|
|
10804
|
-
class
|
|
10800
|
+
class ur {
|
|
10805
10801
|
constructor(t) {
|
|
10806
10802
|
H(this, "appContext", null);
|
|
10807
10803
|
H(this, "modalRef", S());
|
|
@@ -10842,7 +10838,7 @@ class cr {
|
|
|
10842
10838
|
open(t) {
|
|
10843
10839
|
const e = document.createDocumentFragment();
|
|
10844
10840
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
10845
|
-
const o =
|
|
10841
|
+
const o = Dr(Object.assign({
|
|
10846
10842
|
title: "",
|
|
10847
10843
|
showButtons: !0,
|
|
10848
10844
|
showHeader: !0
|
|
@@ -10853,7 +10849,7 @@ class cr {
|
|
|
10853
10849
|
}), u = t.stopMoveHandle || ((F) => {
|
|
10854
10850
|
});
|
|
10855
10851
|
let c;
|
|
10856
|
-
const d =
|
|
10852
|
+
const d = lr(o.value), f = (F) => {
|
|
10857
10853
|
var m;
|
|
10858
10854
|
r.value = !1;
|
|
10859
10855
|
const b = (m = F == null ? void 0 : F.target) == null ? void 0 : m.classList.contains("modal_close");
|
|
@@ -10889,7 +10885,7 @@ class cr {
|
|
|
10889
10885
|
default: () => [d && d(this.app)]
|
|
10890
10886
|
});
|
|
10891
10887
|
return c = ((F) => {
|
|
10892
|
-
const b =
|
|
10888
|
+
const b = Vr(_, F);
|
|
10893
10889
|
return b.appContext = this.appContext, mn(b, e), b;
|
|
10894
10890
|
})({
|
|
10895
10891
|
...o.value
|
|
@@ -10899,7 +10895,7 @@ class cr {
|
|
|
10899
10895
|
o.value = {
|
|
10900
10896
|
...o.value,
|
|
10901
10897
|
...F
|
|
10902
|
-
}, c && mn(
|
|
10898
|
+
}, c && mn(Pr(c, {
|
|
10903
10899
|
...o
|
|
10904
10900
|
}), e);
|
|
10905
10901
|
},
|
|
@@ -10912,7 +10908,7 @@ class cr {
|
|
|
10912
10908
|
const Kc = Symbol("FModalService");
|
|
10913
10909
|
Ut.install = (n) => {
|
|
10914
10910
|
n.component(Ut.name, Ut);
|
|
10915
|
-
const t = new
|
|
10911
|
+
const t = new ur(n);
|
|
10916
10912
|
n.provide(Kc, t), n.provide("FModalService", t);
|
|
10917
10913
|
};
|
|
10918
10914
|
const Jc = {
|
|
@@ -10932,7 +10928,7 @@ const Jc = {
|
|
|
10932
10928
|
};
|
|
10933
10929
|
It(
|
|
10934
10930
|
Jc,
|
|
10935
|
-
|
|
10931
|
+
er,
|
|
10936
10932
|
Mn,
|
|
10937
10933
|
void 0
|
|
10938
10934
|
);
|
|
@@ -11239,7 +11235,7 @@ class Tt {
|
|
|
11239
11235
|
}), o = !1, r = e.type === "error" || e.type === "prompt", a = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", i = e.acceptCallback || (() => {
|
|
11240
11236
|
}), s = e.rejectCallback || (() => {
|
|
11241
11237
|
});
|
|
11242
|
-
let l = null, u = new
|
|
11238
|
+
let l = null, u = new ur(l);
|
|
11243
11239
|
const c = () => {
|
|
11244
11240
|
l && (l == null || l.destroy(), u = null);
|
|
11245
11241
|
};
|
|
@@ -11398,7 +11394,7 @@ function Sd(n, t, e) {
|
|
|
11398
11394
|
}
|
|
11399
11395
|
return { getCompareOperators: r };
|
|
11400
11396
|
}
|
|
11401
|
-
function
|
|
11397
|
+
function cr() {
|
|
11402
11398
|
const n = S({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
11403
11399
|
let o = 0;
|
|
11404
11400
|
function r() {
|
|
@@ -11613,15 +11609,15 @@ function Td(n, t, e) {
|
|
|
11613
11609
|
}
|
|
11614
11610
|
const hn = /* @__PURE__ */ Ke({
|
|
11615
11611
|
name: "FConditionList",
|
|
11616
|
-
props:
|
|
11612
|
+
props: To,
|
|
11617
11613
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
11618
11614
|
setup(n, t) {
|
|
11619
|
-
const e = S(n.key), o = S(n.conditions), r =
|
|
11615
|
+
const e = S(n.key), o = S(n.conditions), r = Zo(n), {
|
|
11620
11616
|
convertToSingleControl: a,
|
|
11621
11617
|
fields: i,
|
|
11622
11618
|
fieldMap: s,
|
|
11623
11619
|
loadFieldConfigs: l
|
|
11624
|
-
} = r, u =
|
|
11620
|
+
} = r, u = cr(), {
|
|
11625
11621
|
addCondition: c,
|
|
11626
11622
|
changeGroupRelation: d,
|
|
11627
11623
|
getConditions: f,
|
|
@@ -11634,7 +11630,7 @@ const hn = /* @__PURE__ */ Ke({
|
|
|
11634
11630
|
unGroup: g
|
|
11635
11631
|
} = u, {
|
|
11636
11632
|
createConditionValue: T
|
|
11637
|
-
} =
|
|
11633
|
+
} = Jo(), F = Td(n, t, u), {
|
|
11638
11634
|
selectedItems: b,
|
|
11639
11635
|
toggleSelect: m
|
|
11640
11636
|
} = F, {
|
|
@@ -11778,7 +11774,7 @@ const hn = /* @__PURE__ */ Ke({
|
|
|
11778
11774
|
}
|
|
11779
11775
|
});
|
|
11780
11776
|
hn.install = (n) => {
|
|
11781
|
-
n.component(
|
|
11777
|
+
n.component(jn.name, jn).component(hn.name, hn);
|
|
11782
11778
|
};
|
|
11783
11779
|
const kd = [
|
|
11784
11780
|
"equal",
|
|
@@ -11911,38 +11907,38 @@ const kd = [
|
|
|
11911
11907
|
["number", Id],
|
|
11912
11908
|
["text", Fd]
|
|
11913
11909
|
]);
|
|
11914
|
-
function
|
|
11915
|
-
const n = S([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
11910
|
+
function dr() {
|
|
11911
|
+
const n = S([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = cr();
|
|
11916
11912
|
function o(x, v) {
|
|
11917
11913
|
switch (x) {
|
|
11918
11914
|
case "check-box":
|
|
11919
|
-
return new
|
|
11915
|
+
return new ko({ value: v });
|
|
11920
11916
|
case "combo-list":
|
|
11921
|
-
return new
|
|
11917
|
+
return new qo({ value: v });
|
|
11922
11918
|
case "combo-lookup":
|
|
11923
|
-
return new
|
|
11919
|
+
return new Fo({ value: v });
|
|
11924
11920
|
case "input-group":
|
|
11925
11921
|
return new an({ value: v });
|
|
11926
11922
|
case "date-picker":
|
|
11927
|
-
return new
|
|
11923
|
+
return new Ao({ value: v });
|
|
11928
11924
|
case "date-range":
|
|
11929
11925
|
return new rn({ value: v });
|
|
11930
11926
|
case "datetime-picker":
|
|
11931
|
-
return new
|
|
11927
|
+
return new Go({ value: v });
|
|
11932
11928
|
case "datetime-range":
|
|
11933
11929
|
return new rn({ value: v });
|
|
11934
11930
|
case "lookup":
|
|
11935
|
-
return new
|
|
11931
|
+
return new zo({ value: v });
|
|
11936
11932
|
case "month-picker":
|
|
11937
|
-
return new
|
|
11933
|
+
return new Yo({ value: v });
|
|
11938
11934
|
case "month-range":
|
|
11939
|
-
return new
|
|
11935
|
+
return new Uo({ value: v });
|
|
11940
11936
|
case "number-range":
|
|
11941
|
-
return new
|
|
11937
|
+
return new Xo({ value: v });
|
|
11942
11938
|
case "number-spinner":
|
|
11943
|
-
return new
|
|
11939
|
+
return new Qo({ value: v });
|
|
11944
11940
|
case "radio-group":
|
|
11945
|
-
return new
|
|
11941
|
+
return new Ko({ value: v });
|
|
11946
11942
|
default:
|
|
11947
11943
|
return new an({ value: v });
|
|
11948
11944
|
}
|
|
@@ -12011,7 +12007,7 @@ function fr() {
|
|
|
12011
12007
|
}
|
|
12012
12008
|
return { addColumnFilter: s, apply: O, clearCondition: c, conditions: n, getFilterEditorType: i, removeColumnFilter: l, removeCondition: u };
|
|
12013
12009
|
}
|
|
12014
|
-
function
|
|
12010
|
+
function fr(n) {
|
|
12015
12011
|
S(n.selection.showCheckbox || !1);
|
|
12016
12012
|
const t = L(() => {
|
|
12017
12013
|
var i;
|
|
@@ -12035,69 +12031,69 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12035
12031
|
const re = c.value;
|
|
12036
12032
|
if (re.length <= 0)
|
|
12037
12033
|
return 0;
|
|
12038
|
-
const
|
|
12039
|
-
return
|
|
12034
|
+
const fe = f.value < re.length ? re[f.value] : re[re.length - 1];
|
|
12035
|
+
return fe.__fv_data_position__ > re.length * v ? re.length * v : (fe.__fv_data_position__ || 0) + (fe.__fv_data_height__ || 0) + Math.max(re.length - 1 - f.value, 0) * v;
|
|
12040
12036
|
}
|
|
12041
12037
|
const E = L(() => {
|
|
12042
12038
|
const re = P();
|
|
12043
12039
|
c.value;
|
|
12044
|
-
let
|
|
12040
|
+
let fe = m.value / Math.max(re, m.value), ge = Math.floor(fe * m.value);
|
|
12045
12041
|
for (; m.value > 0 && ge < M; )
|
|
12046
|
-
|
|
12042
|
+
fe *= y, ge = Math.floor(fe * m.value);
|
|
12047
12043
|
return ge;
|
|
12048
12044
|
}), I = L(() => Math.floor(C.value / Math.max(h.value, C.value) * b.value)), B = 0, $ = 0, D = L(() => b.value - (O.value + h.value + x.value + s.value));
|
|
12049
12045
|
function j(re) {
|
|
12050
12046
|
const ge = Math.floor(re / v) + 1, Pe = c.value;
|
|
12051
12047
|
return Pe.length > ge ? Pe[ge].__fv_visible_index__ - 1 : 0;
|
|
12052
12048
|
}
|
|
12053
|
-
function K(re,
|
|
12054
|
-
let Pe = re, qe =
|
|
12055
|
-
const Ze =
|
|
12049
|
+
function K(re, fe, ge) {
|
|
12050
|
+
let Pe = re, qe = fe;
|
|
12051
|
+
const Ze = fe - re + 1;
|
|
12056
12052
|
if (Ze < i + a.value + i) {
|
|
12057
|
-
const X = i + a.value + i - Ze,
|
|
12058
|
-
if (
|
|
12053
|
+
const X = i + a.value + i - Ze, me = fe + X <= ge, Ce = 0 + X <= re;
|
|
12054
|
+
if (me)
|
|
12059
12055
|
qe += X, F = qe;
|
|
12060
12056
|
else if (Ce)
|
|
12061
12057
|
Pe -= X, T = Pe;
|
|
12062
12058
|
else {
|
|
12063
|
-
const Ee = ge -
|
|
12064
|
-
qe = Math.min(
|
|
12059
|
+
const Ee = ge - fe, W = X - Ee;
|
|
12060
|
+
qe = Math.min(fe + Ee, ge), Pe = Math.max(re - W, 0);
|
|
12065
12061
|
}
|
|
12066
12062
|
}
|
|
12067
12063
|
return { actualStart: Pe, actualEnd: qe };
|
|
12068
12064
|
}
|
|
12069
12065
|
function N(re) {
|
|
12070
12066
|
var Ee, W;
|
|
12071
|
-
const
|
|
12072
|
-
if (!
|
|
12067
|
+
const fe = c.value;
|
|
12068
|
+
if (!fe.length) {
|
|
12073
12069
|
e.value = [];
|
|
12074
12070
|
return;
|
|
12075
12071
|
}
|
|
12076
|
-
const ge = (Ee = n.pagination) != null && Ee.enable ? 0 : Math.max(T - i, 0), Pe =
|
|
12072
|
+
const ge = (Ee = n.pagination) != null && Ee.enable ? 0 : Math.max(T - i, 0), Pe = fe[fe.length - 1].__fv_visible_index__, qe = (W = n.pagination) != null && W.enable ? fe.length - 1 : Math.min(F + i, Pe), { actualStart: Ze, actualEnd: X } = K(ge, qe, Pe), me = fe[Ze - 1], Ce = d(Ze, X, me, re);
|
|
12077
12073
|
Ce.length && (e.value = [...Ce]);
|
|
12078
12074
|
}
|
|
12079
12075
|
const R = L(() => P() > m.value), Q = L(() => Math.floor(h.value) > C.value);
|
|
12080
|
-
function G(re,
|
|
12076
|
+
function G(re, fe) {
|
|
12081
12077
|
let ge = re;
|
|
12082
12078
|
const Pe = ge > B, qe = R.value;
|
|
12083
|
-
qe && ge < m.value -
|
|
12079
|
+
qe && ge < m.value - fe && (ge = m.value - fe), (!qe || Pe) && (ge = B), _.value !== ge && (_.value = ge);
|
|
12084
12080
|
}
|
|
12085
12081
|
function A() {
|
|
12086
12082
|
w.value && (T = j(Math.abs(_.value)), F = T + a.value - 1, (T < p.value || F > f.value - i / 2) && N());
|
|
12087
12083
|
}
|
|
12088
12084
|
function z(re) {
|
|
12089
|
-
let
|
|
12090
|
-
|
|
12085
|
+
let fe = _.value + re;
|
|
12086
|
+
fe > B && (fe = B);
|
|
12091
12087
|
const ge = P();
|
|
12092
|
-
G(
|
|
12088
|
+
G(fe, ge), A();
|
|
12093
12089
|
}
|
|
12094
12090
|
function U(re) {
|
|
12095
12091
|
if (!Q.value) {
|
|
12096
12092
|
g.value = 0;
|
|
12097
12093
|
return;
|
|
12098
12094
|
}
|
|
12099
|
-
let
|
|
12100
|
-
|
|
12095
|
+
let fe = g.value + re;
|
|
12096
|
+
fe > $ && (fe = $), fe < D.value && (fe = D.value), g.value !== fe && (g.value = fe);
|
|
12101
12097
|
}
|
|
12102
12098
|
function ae() {
|
|
12103
12099
|
Math.abs(g.value) + C.value > h.value && (g.value = Math.min(C.value - h.value, 0));
|
|
@@ -12105,25 +12101,25 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12105
12101
|
function Z() {
|
|
12106
12102
|
_.value = 0, T = 0, F = a.value - 1, N();
|
|
12107
12103
|
}
|
|
12108
|
-
function
|
|
12104
|
+
function pe() {
|
|
12109
12105
|
const re = P();
|
|
12110
12106
|
G(_.value, re);
|
|
12111
12107
|
}
|
|
12112
12108
|
Fe([C, h], () => {
|
|
12113
12109
|
U(0);
|
|
12114
|
-
}), Fe(m, (re,
|
|
12115
|
-
re !==
|
|
12110
|
+
}), Fe(m, (re, fe) => {
|
|
12111
|
+
re !== fe && re >= u.value.length * v && z(0);
|
|
12116
12112
|
});
|
|
12117
12113
|
function ve(re) {
|
|
12118
|
-
let { deltaX:
|
|
12119
|
-
return typeof
|
|
12114
|
+
let { deltaX: fe } = re, ge = -1 * re.deltaY;
|
|
12115
|
+
return typeof fe > "u" && (fe = -1 * re.wheelDeltaX / 6), typeof ge > "u" && (ge = re.wheelDeltaY / 6), re.deltaMode && re.deltaMode === 1 && (fe *= 10, ge *= 10), re.shiftKey ? { deltaY: -ge, deltaX: -fe } : { deltaX: fe, deltaY: ge };
|
|
12120
12116
|
}
|
|
12121
12117
|
function xe(re) {
|
|
12122
12118
|
if (n.disabled || !R.value || re.target.tagName === "TEXTAREA")
|
|
12123
12119
|
return;
|
|
12124
12120
|
re.preventDefault(), re.stopPropagation();
|
|
12125
|
-
const { deltaX:
|
|
12126
|
-
z(ge), U(
|
|
12121
|
+
const { deltaX: fe, deltaY: ge } = ve(re);
|
|
12122
|
+
z(ge), U(fe);
|
|
12127
12123
|
}
|
|
12128
12124
|
const Ve = L(() => ({
|
|
12129
12125
|
height: `${u.value.length * v}px`,
|
|
@@ -12141,7 +12137,7 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12141
12137
|
height: `${u.value.length * v}px`,
|
|
12142
12138
|
width: `${x.value}px`,
|
|
12143
12139
|
transform: `translateY(${_.value}px)`
|
|
12144
|
-
})),
|
|
12140
|
+
})), oe = L(() => ({
|
|
12145
12141
|
transform: `translateY(${_.value}px)`
|
|
12146
12142
|
})), we = L(() => ({
|
|
12147
12143
|
height: `${u.value.length * v}px`,
|
|
@@ -12167,18 +12163,18 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12167
12163
|
})), Ie = S(!1), Ge = S(-1), Ne = S(-1), it = S();
|
|
12168
12164
|
function gt(re) {
|
|
12169
12165
|
if (Ie.value && Ne.value !== -1) {
|
|
12170
|
-
const
|
|
12171
|
-
if (Math.abs(
|
|
12172
|
-
const Pe =
|
|
12166
|
+
const fe = Ne.value - re.pageX, ge = b.value - I.value;
|
|
12167
|
+
if (Math.abs(fe) <= ge) {
|
|
12168
|
+
const Pe = fe / (C.value - I.value) * (h.value - C.value);
|
|
12173
12169
|
U(Pe), Ne.value = re.pageX;
|
|
12174
12170
|
}
|
|
12175
12171
|
}
|
|
12176
12172
|
}
|
|
12177
12173
|
function bt(re) {
|
|
12178
12174
|
if (Ie.value && Ge.value !== -1) {
|
|
12179
|
-
const
|
|
12180
|
-
if (Math.abs(
|
|
12181
|
-
const qe =
|
|
12175
|
+
const fe = Ge.value - re.pageY, ge = P(), Pe = ge - E.value;
|
|
12176
|
+
if (Math.abs(fe) <= Pe) {
|
|
12177
|
+
const qe = fe / (m.value - E.value) * (ge - m.value);
|
|
12182
12178
|
z(qe), Ge.value = re.pageY;
|
|
12183
12179
|
}
|
|
12184
12180
|
}
|
|
@@ -12186,16 +12182,16 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12186
12182
|
function ft(re) {
|
|
12187
12183
|
Ie.value = !1, Ge.value = -1, Ne.value = -1, document.removeEventListener("mouseup", ft), V && (document.removeEventListener("mousemove", V), V = null), document.body.style.userSelect = "", it.value && (it.value.style.opacity = null);
|
|
12188
12184
|
}
|
|
12189
|
-
function Dt(re,
|
|
12185
|
+
function Dt(re, fe, ge) {
|
|
12190
12186
|
var Ze;
|
|
12191
12187
|
Ie.value = !0;
|
|
12192
12188
|
const Pe = (Ze = re.target) == null ? void 0 : Ze.parentElement;
|
|
12193
|
-
Pe && (Pe.style.opacity = "1", it.value = Pe), V || (V =
|
|
12189
|
+
Pe && (Pe.style.opacity = "1", it.value = Pe), V || (V = Rr(ge === "horizontal" ? gt : bt, 50)), ge === "vertical" && (Ge.value = re.pageY), ge === "horizontal" && (Ne.value = re.pageX), fe.value && (fe.value, document.addEventListener("mousemove", V), document.addEventListener("mouseup", ft), document.body.style.userSelect = "none");
|
|
12194
12190
|
}
|
|
12195
12191
|
function Ct(re) {
|
|
12196
|
-
const
|
|
12192
|
+
const fe = u.value.length * v - m.value;
|
|
12197
12193
|
let ge = re * v;
|
|
12198
|
-
ge >=
|
|
12194
|
+
ge >= fe && (ge = fe), z(-ge - _.value);
|
|
12199
12195
|
}
|
|
12200
12196
|
function yt() {
|
|
12201
12197
|
Ct(u.value.length);
|
|
@@ -12222,10 +12218,10 @@ function Vd(n, t, e, o, r, a, i, s, l) {
|
|
|
12222
12218
|
resetScroll: Z,
|
|
12223
12219
|
rightFixedGridDataStyle: q,
|
|
12224
12220
|
rightFixedGridHeaderColumnsStyle: ot,
|
|
12225
|
-
rightFixedGridMergedDataStyle:
|
|
12221
|
+
rightFixedGridMergedDataStyle: oe,
|
|
12226
12222
|
shouldShowHorizontalScrollbar: Q,
|
|
12227
12223
|
shouldShowVirticalScrollbar: R,
|
|
12228
|
-
updateVirticalScroll:
|
|
12224
|
+
updateVirticalScroll: pe,
|
|
12229
12225
|
updateVisibleRowsOnLatestVisibleScope: A,
|
|
12230
12226
|
verticalScrollThumbStyle: dt,
|
|
12231
12227
|
viewPortWidth: C,
|
|
@@ -12262,9 +12258,9 @@ function Pd(n, t, e, o, r, a, i, s) {
|
|
|
12262
12258
|
}
|
|
12263
12259
|
return { getVisualData: h, maxVisibleRowIndex: l, minVisibleRowIndex: u, toggleGroupRow: O };
|
|
12264
12260
|
}
|
|
12265
|
-
function
|
|
12261
|
+
function mr(n) {
|
|
12266
12262
|
var a;
|
|
12267
|
-
const { isUndefined: t } =
|
|
12263
|
+
const { isUndefined: t } = Hr(), e = ((a = n.rowOption) == null ? void 0 : a.height) || 28;
|
|
12268
12264
|
function o(i, s) {
|
|
12269
12265
|
const l = i.pre;
|
|
12270
12266
|
if (l) {
|
|
@@ -12319,7 +12315,7 @@ function Nd() {
|
|
|
12319
12315
|
function Bd() {
|
|
12320
12316
|
const {
|
|
12321
12317
|
formatTo: n
|
|
12322
|
-
} =
|
|
12318
|
+
} = $r();
|
|
12323
12319
|
function t(o, r) {
|
|
12324
12320
|
if (o) {
|
|
12325
12321
|
let a = "yyyy-MM-dd";
|
|
@@ -12344,7 +12340,7 @@ function Bd() {
|
|
|
12344
12340
|
function Hd() {
|
|
12345
12341
|
const {
|
|
12346
12342
|
formatTo: n
|
|
12347
|
-
} =
|
|
12343
|
+
} = Lr();
|
|
12348
12344
|
function t(e, o) {
|
|
12349
12345
|
const r = {
|
|
12350
12346
|
precision: o.precision,
|
|
@@ -12401,7 +12397,7 @@ function Ld() {
|
|
|
12401
12397
|
renderFormatColumn: l
|
|
12402
12398
|
};
|
|
12403
12399
|
}
|
|
12404
|
-
function
|
|
12400
|
+
function pr(n, t, e) {
|
|
12405
12401
|
var x;
|
|
12406
12402
|
const o = S(n.mergeCell);
|
|
12407
12403
|
(x = S(n.rowOption).value) != null && x.wrapContent;
|
|
@@ -12468,7 +12464,7 @@ function hr(n, t, e) {
|
|
|
12468
12464
|
}
|
|
12469
12465
|
return { createCellByColumn: O, createCellByField: l, updateCellByColumn: h };
|
|
12470
12466
|
}
|
|
12471
|
-
function
|
|
12467
|
+
function hr(n, t, e, o, r, a, i) {
|
|
12472
12468
|
var g, T;
|
|
12473
12469
|
const s = S(n.rowOption), l = ((g = s.value) == null ? void 0 : g.height) || 28, u = ((T = s.value) == null ? void 0 : T.wrapContent) || !1, { idField: c } = r, { collapseField: d } = o, { updateRowPosition: f } = a, { createCellByColumn: p } = i, h = (F, b, m, C) => {
|
|
12474
12470
|
vn(rt(F, C), b, C), m.data[C].data = rt(b, C), m.data[C].editingData = rt(b, C);
|
|
@@ -12569,7 +12565,7 @@ function jd(n, t, e, o) {
|
|
|
12569
12565
|
}
|
|
12570
12566
|
return { renderSummaryRow: s };
|
|
12571
12567
|
}
|
|
12572
|
-
function
|
|
12568
|
+
function vr(n, t, e, o, r) {
|
|
12573
12569
|
var K;
|
|
12574
12570
|
const {
|
|
12575
12571
|
idField: a
|
|
@@ -12723,7 +12719,7 @@ function gr(n, t, e, o, r) {
|
|
|
12723
12719
|
onMouseupCell: y
|
|
12724
12720
|
};
|
|
12725
12721
|
}
|
|
12726
|
-
function
|
|
12722
|
+
function gr(n) {
|
|
12727
12723
|
const t = S(n.idField);
|
|
12728
12724
|
function e(o) {
|
|
12729
12725
|
if (o && o.length) {
|
|
@@ -12733,7 +12729,7 @@ function yr(n) {
|
|
|
12733
12729
|
}
|
|
12734
12730
|
return { idField: t, reviseIdentifyField: e };
|
|
12735
12731
|
}
|
|
12736
|
-
function
|
|
12732
|
+
function yr(n, t, e, o) {
|
|
12737
12733
|
const { idField: r } = o, {
|
|
12738
12734
|
currentSelectedDataId: a,
|
|
12739
12735
|
multiSelectOnClickRow: i,
|
|
@@ -12852,7 +12848,7 @@ function wr(n, t, e, o) {
|
|
|
12852
12848
|
onMouseoutRow: V
|
|
12853
12849
|
};
|
|
12854
12850
|
}
|
|
12855
|
-
function
|
|
12851
|
+
function wr(n, t, e, o, r) {
|
|
12856
12852
|
const { idField: a } = e, { dataView: i, getSelectionItems: s } = t, l = S(""), u = L(() => n.selection.enableSelectRow), c = S(n.selection.multiSelect ?? !1), d = S(n.selection.multiSelectMode || "DependOnCheck"), f = S(n.selection.showCheckbox), p = S(n.selection.showSelectAll), h = S(n.selectionValues || []), O = S(!!h.value.length && o.value.length === h.value.length), x = S(!!h.value.length && o.value.length !== h.value.length);
|
|
12857
12853
|
Fe(() => n.selection.showSelectAll, (Y, ce) => {
|
|
12858
12854
|
Y !== ce && (p.value = Y);
|
|
@@ -12865,15 +12861,15 @@ function br(n, t, e, o, r) {
|
|
|
12865
12861
|
return s(h.value);
|
|
12866
12862
|
}
|
|
12867
12863
|
function g() {
|
|
12868
|
-
const Y = o.value.reduce((q,
|
|
12864
|
+
const Y = o.value.reduce((q, oe) => (q.set(oe.raw[a.value], oe), q), /* @__PURE__ */ new Map());
|
|
12869
12865
|
return h.value.map((q) => Y.get(q)).filter((q) => !!q);
|
|
12870
12866
|
}
|
|
12871
12867
|
function T(Y) {
|
|
12872
12868
|
var q;
|
|
12873
12869
|
const ce = Y.raw.__fv_children_index__;
|
|
12874
12870
|
if (ce && ce.length) {
|
|
12875
|
-
const
|
|
12876
|
-
(q = h.value) != null && q.length &&
|
|
12871
|
+
const oe = ce.map((we) => i.value[we]);
|
|
12872
|
+
(q = h.value) != null && q.length && oe.some((ke) => !h.value.includes(ke[a.value])) && (Y.indeterminate = !0, Y.raw.__fv_indeterminate__ = !0);
|
|
12877
12873
|
}
|
|
12878
12874
|
}
|
|
12879
12875
|
const F = L(() => u.value && c.value), b = L(
|
|
@@ -12897,8 +12893,8 @@ function br(n, t, e, o, r) {
|
|
|
12897
12893
|
}), g().forEach((q) => {
|
|
12898
12894
|
q.checked = !0, q.raw.__fv_checked__ = !0;
|
|
12899
12895
|
}), Y.forEach((q) => {
|
|
12900
|
-
const
|
|
12901
|
-
T(
|
|
12896
|
+
const oe = o.value.find((we) => we.raw[a.value] === q);
|
|
12897
|
+
T(oe);
|
|
12902
12898
|
});
|
|
12903
12899
|
}
|
|
12904
12900
|
Fe(() => o.value, () => {
|
|
@@ -12969,14 +12965,14 @@ function br(n, t, e, o, r) {
|
|
|
12969
12965
|
const ce = o.value.find((q) => q.raw[a.value] === Y);
|
|
12970
12966
|
ce && ae(ce);
|
|
12971
12967
|
}
|
|
12972
|
-
function
|
|
12973
|
-
const ce = o.value.filter((we) => Y.includes(we.raw[a.value])), q = ce.map((we) => we.raw[a.value]),
|
|
12968
|
+
function pe(Y) {
|
|
12969
|
+
const ce = o.value.filter((we) => Y.includes(we.raw[a.value])), q = ce.map((we) => we.raw[a.value]), oe = i.value.filter((we) => {
|
|
12974
12970
|
const ke = we[a.value];
|
|
12975
12971
|
return !q.includes(ke) && Y.includes(ke);
|
|
12976
12972
|
});
|
|
12977
|
-
(ce.length ||
|
|
12973
|
+
(ce.length || oe.length) && ($(), b.value && (l.value = Y[0])), ce.forEach((we) => {
|
|
12978
12974
|
R(we);
|
|
12979
|
-
}),
|
|
12975
|
+
}), oe.forEach((we) => {
|
|
12980
12976
|
D(we);
|
|
12981
12977
|
}), y();
|
|
12982
12978
|
}
|
|
@@ -12984,12 +12980,12 @@ function br(n, t, e, o, r) {
|
|
|
12984
12980
|
for (const ce of Y) {
|
|
12985
12981
|
if (!h.value.includes(ce))
|
|
12986
12982
|
continue;
|
|
12987
|
-
const q = o.value.find((
|
|
12983
|
+
const q = o.value.find((oe) => oe.raw[a.value] === ce);
|
|
12988
12984
|
if (q)
|
|
12989
12985
|
Q(q);
|
|
12990
12986
|
else {
|
|
12991
|
-
const
|
|
12992
|
-
|
|
12987
|
+
const oe = i.value.find((we) => we[a.value] === ce);
|
|
12988
|
+
oe && j(oe);
|
|
12993
12989
|
}
|
|
12994
12990
|
}
|
|
12995
12991
|
h.value = h.value.filter(
|
|
@@ -13030,7 +13026,7 @@ function br(n, t, e, o, r) {
|
|
|
13030
13026
|
selectDataItem: D,
|
|
13031
13027
|
selectItem: ae,
|
|
13032
13028
|
selectItemById: Z,
|
|
13033
|
-
selectItemByIds:
|
|
13029
|
+
selectItemByIds: pe,
|
|
13034
13030
|
showCheckBox: f,
|
|
13035
13031
|
showSelectAll: p,
|
|
13036
13032
|
toggleSelectItem: U,
|
|
@@ -13135,7 +13131,7 @@ const Qd = /* @__PURE__ */ Ke({
|
|
|
13135
13131
|
props: fn,
|
|
13136
13132
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
13137
13133
|
setup(n, t) {
|
|
13138
|
-
const e = S(), o = S(!0), r = S(!1), a = S([]), i = 0, s = S(n.columns), l =
|
|
13134
|
+
const e = S(), o = S(!0), r = S(!1), a = S([]), i = 0, s = S(n.columns), l = dr(), u = gr(n), c = fr(n), d = _o(n, u), f = So(n, /* @__PURE__ */ new Map(), l, c, u), p = wr(n, f, u, a, t), h = vo(n, e), O = S(), x = kt("design-item-context"), v = Sn(O, x), _ = L(() => f.dataView.value.length), g = yr(n, t, p, u), T = vr(n, t, u, g), F = mr(n), b = pr(n, {}, F), m = hr(n, f, T, c, u, F, b), C = Wd(n, u, b, m), w = jd(n, u, b, m), M = Pd(n, s, f, _, i, m, C, w), {
|
|
13139
13135
|
getVisualData: y
|
|
13140
13136
|
} = M;
|
|
13141
13137
|
a.value = y(0, _.value + i - 1), Ot(() => {
|
|
@@ -13149,13 +13145,13 @@ const Qd = /* @__PURE__ */ Ke({
|
|
|
13149
13145
|
return n.size !== "default" && (R[`${n.size}-item`] = !0), R;
|
|
13150
13146
|
}), P = L(() => !!t.slots.footer || o.value);
|
|
13151
13147
|
function E() {
|
|
13152
|
-
return n.header === "SearchBar" ? tn : n.header === "ContentHeader" ?
|
|
13148
|
+
return n.header === "SearchBar" ? tn : n.header === "ContentHeader" ? yo : tn;
|
|
13153
13149
|
}
|
|
13154
13150
|
const I = E(), {
|
|
13155
13151
|
renderHeader: B
|
|
13156
|
-
} = I(n, t, h), $ =
|
|
13152
|
+
} = I(n, t, h), $ = wo(), D = bo(n, t, f, $), j = Co(n, t, a, D, $, p), {
|
|
13157
13153
|
renderListArea: K
|
|
13158
|
-
} =
|
|
13154
|
+
} = go(n, t, a, f, d, $, p, M, j, D);
|
|
13159
13155
|
function N(R) {
|
|
13160
13156
|
n.multiSelect && (R.preventDefault(), R.stopPropagation());
|
|
13161
13157
|
}
|
|
@@ -13349,11 +13345,11 @@ const Qd = /* @__PURE__ */ Ke({
|
|
|
13349
13345
|
description: sf,
|
|
13350
13346
|
type: lf,
|
|
13351
13347
|
categories: uf
|
|
13352
|
-
},
|
|
13348
|
+
}, br = {
|
|
13353
13349
|
data: { type: Array, default: [] }
|
|
13354
|
-
},
|
|
13350
|
+
}, Cr = It(br, rf, mo, po, cf), df = /* @__PURE__ */ Ke({
|
|
13355
13351
|
name: "FListViewTableDesign",
|
|
13356
|
-
props:
|
|
13352
|
+
props: br,
|
|
13357
13353
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
13358
13354
|
setup(n, t) {
|
|
13359
13355
|
const e = [{
|
|
@@ -13450,14 +13446,14 @@ At.install = (n) => {
|
|
|
13450
13446
|
n.component(At.name, At), n.component(_n.name, _n);
|
|
13451
13447
|
};
|
|
13452
13448
|
At.register = (n, t, e) => {
|
|
13453
|
-
n["list-view"] = At, t["list-view"] =
|
|
13449
|
+
n["list-view"] = At, t["list-view"] = ho, n["list-view-table"] = _n, t["list-view-table"] = Cr;
|
|
13454
13450
|
};
|
|
13455
13451
|
At.registerDesigner = (n, t, e) => {
|
|
13456
|
-
n["list-view"] = Qd, t["list-view"] =
|
|
13452
|
+
n["list-view"] = Qd, t["list-view"] = ho, n["list-view-table"] = df, t["list-view-table"] = Cr;
|
|
13457
13453
|
};
|
|
13458
13454
|
export {
|
|
13459
13455
|
At as FListView,
|
|
13460
13456
|
At as default,
|
|
13461
13457
|
fn as listViewProps,
|
|
13462
|
-
|
|
13458
|
+
ho as propsResolver
|
|
13463
13459
|
};
|