@farris/ui-vue 1.8.1 → 1.8.4
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/batch-editor/index.esm.js +7332 -7299
- package/components/batch-editor/index.umd.cjs +22 -22
- package/components/button/index.esm.js +7334 -7301
- package/components/button/index.umd.cjs +22 -22
- package/components/collection-property-editor/index.esm.js +2 -2
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/component/index.esm.js +880 -874
- package/components/component/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +841 -835
- package/components/data-grid/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +14551 -14472
- package/components/data-view/index.umd.cjs +27 -27
- package/components/designer-canvas/index.esm.js +820 -814
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +848 -842
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +264 -243
- package/components/popover/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +315 -309
- package/components/tree-grid/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +8304 -8257
- package/designer/data-grid/index.umd.cjs +26 -26
- package/designer/farris-designer.all.esm.js +3235 -3223
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +80 -62
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/tabs/index.esm.js +830 -824
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +348 -342
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +18919 -18822
- package/farris.all.umd.cjs +39 -39
- package/package.json +1 -1
- package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
- package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
- package/types/data-view/composition/column/use-resize.d.ts +3 -2
- package/types/data-view/index.d.ts +1 -0
- package/types/popover/src/composition/measure-host.d.ts +10 -5
- package/types/popover/src/composition/types.d.ts +2 -2
- package/types/popover/src/composition/use-host.d.ts +1 -2
- package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useCommonUtils as
|
|
2
|
-
import { ref as de, computed as
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import { isPlainObject as
|
|
5
|
-
import { SETTING_COLUMN_FIELD as
|
|
6
|
-
import
|
|
7
|
-
import { FButton as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
let
|
|
1
|
+
import { useCommonUtils as xt, resolveField as Cn, getCustomClass as hn, withInstall as bn } from "../common/index.esm.js";
|
|
2
|
+
import { ref as de, computed as oe, reactive as it, watch as We, createVNode as f, isVNode as st, Comment as Tt, Fragment as rt, createTextVNode as Je, defineComponent as Ot, onMounted as Sn, nextTick as wn, onUnmounted as Fn, provide as xn, getCurrentInstance as Tn } from "vue";
|
|
3
|
+
import { useResizeObserver as On } from "@vueuse/core";
|
|
4
|
+
import { isPlainObject as St, cloneDeep as wt } from "lodash-es";
|
|
5
|
+
import { SETTING_COLUMN_FIELD as kn, COMMAND_COLUMN_FIELD as Bn, CellMode as kt, SETTING_COLUMN_DATA_TYPE as _e, COMMAND_COLUMN_DATA_TYPE as He, useScreen as En, useIdentify as Pn, useGroupData as Dn, useFilter as In, useHierarchy as Mn, useLoading as Gn, useDataView as Nn, usePagination as jn, useSelection as Vn, useDataViewContainerStyle as An, useCommandColumn as zn, useSettingColumn as _n, useColumn as Hn, useSort as Wn, useGroupColumn as Ln, useRow as Rn, useEdit as $n, useVisualDataBound as Un, useVisualDataCell as Yn, useVisualDataRow as qn, useVisualGroupRow as Xn, useVisualSummaryRow as Jn, useVisualData as Qn, useCellContentStyle as Zn, useCellPosition as Kn, useSidebar as eo, useVirtualScroll as to, useFitColumn as no, useFilterHistory as oo, useColumnFilter as io, useDragColumn as ro, getColumnHeader as lo, getPagination as ao, getSidebar as uo, getDisableMask as so, getSummary as co, getHorizontalScrollbar as fo, getVerticalScrollbar as mo, getFilterPanel as vo, getGroupPanel as go, useAdapt as yo, useNavigation as po, getEmpty as Co, ColumnSettingSolution as ho, refreshScrollAfterDataSourceLoad as bo } from "../data-view/index.esm.js";
|
|
6
|
+
import So, { FDynamicForm as wo, FDynamicFormLabel as Fo } from "../dynamic-form/index.esm.js";
|
|
7
|
+
import { FButton as Ft } from "../button/index.esm.js";
|
|
8
|
+
import xo from "../drawer/index.esm.js";
|
|
9
|
+
function Bt(e, t) {
|
|
10
|
+
let r;
|
|
11
11
|
function u(d) {
|
|
12
|
-
const { properties: C, title: p, ignore: a } = d, c = a && Array.isArray(a), h = Object.keys(C).reduce((
|
|
13
|
-
if (p && (!c || !a.find((
|
|
14
|
-
const
|
|
15
|
-
h.id = `${
|
|
12
|
+
const { properties: C, title: p, ignore: a } = d, c = a && Array.isArray(a), h = Object.keys(C).reduce((y, E) => ((!c || !a.find((U) => U === E)) && (y[E] = C[E].type === "object" && C[E].properties ? u(C[E]) : wt(C[E].default)), y), {});
|
|
13
|
+
if (p && (!c || !a.find((y) => y === "id"))) {
|
|
14
|
+
const y = p.toLowerCase().replace(/-/g, "_");
|
|
15
|
+
h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
16
16
|
}
|
|
17
17
|
return h;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function x(d) {
|
|
20
20
|
const { properties: C, title: p, required: a } = d;
|
|
21
21
|
if (a && Array.isArray(a)) {
|
|
22
|
-
const c = a.reduce((h,
|
|
22
|
+
const c = a.reduce((h, y) => (h[y] = C[y].type === "object" && C[y].properties ? u(C[y]) : wt(C[y].default), h), {});
|
|
23
23
|
if (p && a.find((h) => h === "id")) {
|
|
24
24
|
const h = p.toLowerCase().replace(/-/g, "_");
|
|
25
25
|
c.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -33,25 +33,25 @@ function kt(e, t) {
|
|
|
33
33
|
function N(d, C = {}, p) {
|
|
34
34
|
const a = e[d];
|
|
35
35
|
if (a) {
|
|
36
|
-
let c =
|
|
36
|
+
let c = x(a);
|
|
37
37
|
const h = t[d];
|
|
38
|
-
return c = h ? h({ getSchemaByType: N }, c, C, p) : c,
|
|
38
|
+
return c = h ? h({ getSchemaByType: N }, c, C, p) : c, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(c), c;
|
|
39
39
|
}
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
function A(d, C) {
|
|
43
43
|
const p = u(C);
|
|
44
|
-
return Object.keys(p).reduce((a, c) => (Object.prototype.hasOwnProperty.call(d, c) && (a[c] &&
|
|
44
|
+
return Object.keys(p).reduce((a, c) => (Object.prototype.hasOwnProperty.call(d, c) && (a[c] && St(a[c]) && St(d[c] || !d[c]) ? Object.assign(a[c], d[c] || {}) : a[c] = d[c]), a), p), p;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function W(d, C) {
|
|
47
47
|
return Object.keys(d).filter((a) => d[a] != null).reduce((a, c) => {
|
|
48
48
|
if (C.has(c)) {
|
|
49
49
|
const h = C.get(c);
|
|
50
50
|
if (typeof h == "string")
|
|
51
51
|
a[h] = d[c];
|
|
52
52
|
else {
|
|
53
|
-
const
|
|
54
|
-
Object.assign(a,
|
|
53
|
+
const y = h(c, d[c], d);
|
|
54
|
+
Object.assign(a, y);
|
|
55
55
|
}
|
|
56
56
|
} else
|
|
57
57
|
a[c] = d[c];
|
|
@@ -60,9 +60,9 @@ function kt(e, t) {
|
|
|
60
60
|
}
|
|
61
61
|
function z(d, C, p = /* @__PURE__ */ new Map()) {
|
|
62
62
|
const a = A(d, C);
|
|
63
|
-
return
|
|
63
|
+
return W(a, p);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function T(d) {
|
|
66
66
|
var p;
|
|
67
67
|
const C = d.type;
|
|
68
68
|
if (C) {
|
|
@@ -71,7 +71,7 @@ function kt(e, t) {
|
|
|
71
71
|
return d;
|
|
72
72
|
const c = A(d, a), h = ((p = d.editor) == null ? void 0 : p.type) || "";
|
|
73
73
|
if (h) {
|
|
74
|
-
const
|
|
74
|
+
const y = e[h], E = A(d.editor, y);
|
|
75
75
|
c.editor = E;
|
|
76
76
|
}
|
|
77
77
|
return c;
|
|
@@ -79,78 +79,78 @@ function kt(e, t) {
|
|
|
79
79
|
return d;
|
|
80
80
|
}
|
|
81
81
|
function b(d) {
|
|
82
|
-
|
|
82
|
+
r = d;
|
|
83
83
|
}
|
|
84
|
-
return { getSchemaByType: N, resolveSchemaWithDefaultValue:
|
|
84
|
+
return { getSchemaByType: N, resolveSchemaWithDefaultValue: T, resolveSchemaToProps: z, mappingSchemaToProps: W, setDesignerContext: b };
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
function t(
|
|
86
|
+
const To = {}, Oo = {}, { resolveSchemaWithDefaultValue: ko } = Bt(To, Oo);
|
|
87
|
+
function Bo(e = {}) {
|
|
88
|
+
function t(T, b, d, C) {
|
|
89
89
|
if (typeof d == "number")
|
|
90
|
-
return C[
|
|
90
|
+
return C[T].length === d;
|
|
91
91
|
if (typeof d == "object") {
|
|
92
92
|
const p = Object.keys(d)[0], a = d[p];
|
|
93
93
|
if (p === "not")
|
|
94
|
-
return Number(C[
|
|
94
|
+
return Number(C[T].length) !== Number(a);
|
|
95
95
|
if (p === "moreThan")
|
|
96
|
-
return Number(C[
|
|
96
|
+
return Number(C[T].length) >= Number(a);
|
|
97
97
|
if (p === "lessThan")
|
|
98
|
-
return Number(C[
|
|
98
|
+
return Number(C[T].length) <= Number(a);
|
|
99
99
|
}
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return C[
|
|
102
|
+
function r(T, b, d, C) {
|
|
103
|
+
return C[T] && C[T].propertyValue && String(C[T].propertyValue.value) === String(d);
|
|
104
104
|
}
|
|
105
105
|
const u = /* @__PURE__ */ new Map([
|
|
106
106
|
["length", t],
|
|
107
|
-
["getProperty",
|
|
107
|
+
["getProperty", r]
|
|
108
108
|
]);
|
|
109
|
-
Object.keys(e).reduce((
|
|
110
|
-
function
|
|
111
|
-
const d =
|
|
112
|
-
return typeof b == "number" ? [{ target: d, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: d, operator: "getProperty", param:
|
|
109
|
+
Object.keys(e).reduce((T, b) => (T.set(b, e[b]), T), u);
|
|
110
|
+
function x(T, b) {
|
|
111
|
+
const d = T;
|
|
112
|
+
return typeof b == "number" ? [{ target: d, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: d, operator: "getProperty", param: T, value: !!b }] : typeof b == "object" ? Object.keys(b).map((C) => {
|
|
113
113
|
if (C === "length")
|
|
114
114
|
return { target: d, operator: "length", param: null, value: b[C] };
|
|
115
115
|
const p = C, a = b[C];
|
|
116
116
|
return { target: d, operator: "getProperty", param: p, value: a };
|
|
117
117
|
}) : [];
|
|
118
118
|
}
|
|
119
|
-
function N(
|
|
120
|
-
return Object.keys(
|
|
121
|
-
const p =
|
|
119
|
+
function N(T) {
|
|
120
|
+
return Object.keys(T).reduce((d, C) => {
|
|
121
|
+
const p = x(C, T[C]);
|
|
122
122
|
return d.push(...p), d;
|
|
123
123
|
}, []);
|
|
124
124
|
}
|
|
125
|
-
function A(
|
|
126
|
-
if (u.has(
|
|
127
|
-
const d = u.get(
|
|
128
|
-
return d && d(
|
|
125
|
+
function A(T, b) {
|
|
126
|
+
if (u.has(T.operator)) {
|
|
127
|
+
const d = u.get(T.operator);
|
|
128
|
+
return d && d(T.target, T.param, T.value, b) || !1;
|
|
129
129
|
}
|
|
130
130
|
return !1;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return N(
|
|
132
|
+
function W(T, b) {
|
|
133
|
+
return N(T).reduce((p, a) => p && A(a, b), !0);
|
|
134
134
|
}
|
|
135
|
-
function z(
|
|
136
|
-
const d = Object.keys(
|
|
137
|
-
return C ? !
|
|
135
|
+
function z(T, b) {
|
|
136
|
+
const d = Object.keys(T), C = d.includes("allOf"), p = d.includes("anyOf"), a = C || p, y = (a ? T[a ? C ? "allOf" : "anyOf" : "allOf"] : [T]).map((U) => W(U, b));
|
|
137
|
+
return C ? !y.includes(!1) : y.includes(!0);
|
|
138
138
|
}
|
|
139
139
|
return { parseValueSchema: z };
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
convertTo: (e, t,
|
|
143
|
-
e.appearance || (e.appearance = {}), e.appearance[t] =
|
|
144
|
-
},
|
|
145
|
-
convertFrom: (e, t, i) => e.appearance ? e.appearance[t] : e[t]
|
|
146
|
-
}, Bo = {
|
|
147
|
-
convertFrom: (e, t, i) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
148
|
-
}, Eo = {
|
|
149
|
-
convertTo: (e, t, i, u) => {
|
|
150
|
-
e.editor && (e.editor[t] = i);
|
|
141
|
+
const Eo = {
|
|
142
|
+
convertTo: (e, t, r, u) => {
|
|
143
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = r;
|
|
151
144
|
},
|
|
152
|
-
convertFrom: (e, t,
|
|
145
|
+
convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
|
|
153
146
|
}, Po = {
|
|
147
|
+
convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
148
|
+
}, Do = {
|
|
149
|
+
convertTo: (e, t, r, u) => {
|
|
150
|
+
e.editor && (e.editor[t] = r);
|
|
151
|
+
},
|
|
152
|
+
convertFrom: (e, t, r) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
153
|
+
}, Io = {
|
|
154
154
|
button: { type: "button", name: "按钮" },
|
|
155
155
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
156
156
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -215,24 +215,24 @@ const ko = {
|
|
|
215
215
|
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
216
216
|
step: { type: "step", name: "步骤条", icon: "step" },
|
|
217
217
|
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
218
|
-
},
|
|
219
|
-
convertFrom: (e, t,
|
|
220
|
-
var
|
|
218
|
+
}, Mo = {
|
|
219
|
+
convertFrom: (e, t, r) => {
|
|
220
|
+
var x;
|
|
221
221
|
const u = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
222
|
-
return ((
|
|
222
|
+
return ((x = Io[u]) == null ? void 0 : x.name) || u;
|
|
223
223
|
}
|
|
224
|
-
},
|
|
225
|
-
convertTo: (e, t,
|
|
224
|
+
}, Go = {
|
|
225
|
+
convertTo: (e, t, r, u) => {
|
|
226
226
|
e[t] = e[t];
|
|
227
227
|
},
|
|
228
|
-
convertFrom: (e, t,
|
|
229
|
-
},
|
|
230
|
-
convertTo: (e, t,
|
|
231
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] =
|
|
232
|
-
[t]:
|
|
228
|
+
convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
|
|
229
|
+
}, No = {
|
|
230
|
+
convertTo: (e, t, r, u) => {
|
|
231
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
|
|
232
|
+
[t]: r
|
|
233
233
|
});
|
|
234
234
|
},
|
|
235
|
-
convertFrom: (e, t,
|
|
235
|
+
convertFrom: (e, t, r) => {
|
|
236
236
|
if (e.formatter) {
|
|
237
237
|
if (t === "trueText")
|
|
238
238
|
return e.formatter.trueText;
|
|
@@ -257,11 +257,11 @@ const ko = {
|
|
|
257
257
|
}
|
|
258
258
|
return "none";
|
|
259
259
|
}
|
|
260
|
-
},
|
|
261
|
-
convertTo: (e, t,
|
|
262
|
-
e.command ? e.command[t] =
|
|
263
|
-
[t]:
|
|
264
|
-
}, t === "enableType" &&
|
|
260
|
+
}, jo = {
|
|
261
|
+
convertTo: (e, t, r, u) => {
|
|
262
|
+
e.command ? e.command[t] = r : e.command = {
|
|
263
|
+
[t]: r
|
|
264
|
+
}, t === "enableType" && r === "default" && (e.command.enable = !0, e.command.formatter = "", e.command.commands = [
|
|
265
265
|
{
|
|
266
266
|
text: "编辑",
|
|
267
267
|
type: "primary",
|
|
@@ -272,7 +272,7 @@ const ko = {
|
|
|
272
272
|
type: "danger",
|
|
273
273
|
command: "remove"
|
|
274
274
|
}
|
|
275
|
-
]), t === "enableType" &&
|
|
275
|
+
]), t === "enableType" && r === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
276
276
|
{
|
|
277
277
|
value: "add",
|
|
278
278
|
text: "增加",
|
|
@@ -288,15 +288,15 @@ const ko = {
|
|
|
288
288
|
text: "删除",
|
|
289
289
|
type: "link"
|
|
290
290
|
}
|
|
291
|
-
]), t === "enableType" &&
|
|
291
|
+
]), t === "enableType" && r === "unable" && (e.command.enable = !1, e.command.formatter = "");
|
|
292
292
|
},
|
|
293
|
-
convertFrom: (e, t,
|
|
294
|
-
var u,
|
|
293
|
+
convertFrom: (e, t, r) => {
|
|
294
|
+
var u, x;
|
|
295
295
|
if (e.command) {
|
|
296
296
|
if (t === "enableType") {
|
|
297
297
|
if (e.command.enableType)
|
|
298
298
|
return e.command.enableType;
|
|
299
|
-
const N = (
|
|
299
|
+
const N = (x = (u = e.command) == null ? void 0 : u.commands) == null ? void 0 : x.find((A) => A.command === "edit" && A.type === "primary");
|
|
300
300
|
return e.command.enable ? N ? "default" : "custom" : "unable";
|
|
301
301
|
}
|
|
302
302
|
if (t === "commands")
|
|
@@ -310,19 +310,19 @@ const ko = {
|
|
|
310
310
|
}
|
|
311
311
|
return "";
|
|
312
312
|
}
|
|
313
|
-
},
|
|
314
|
-
convertTo: (e, t,
|
|
313
|
+
}, Vo = {
|
|
314
|
+
convertTo: (e, t, r, u) => {
|
|
315
315
|
if (e.column || (e.column = {}), t === "fitMode") {
|
|
316
|
-
|
|
316
|
+
r && r !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = r) : (e.column.fitColumns = !1, e.column.fitMode = "average");
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
319
|
if (t === "fitColumns") {
|
|
320
|
-
e.column.fitColumns =
|
|
320
|
+
e.column.fitColumns = r, r && !e.column.fitMode && (e.column.fitMode = "average");
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
|
-
e.column[t] =
|
|
323
|
+
e.column[t] = r;
|
|
324
324
|
},
|
|
325
|
-
convertFrom: (e, t,
|
|
325
|
+
convertFrom: (e, t, r) => {
|
|
326
326
|
if (e.column) {
|
|
327
327
|
if (t === "fitMode")
|
|
328
328
|
return e.column.fitColumns ? e.column.fitMode || "average" : "none";
|
|
@@ -331,31 +331,31 @@ const ko = {
|
|
|
331
331
|
}
|
|
332
332
|
return t === "fitMode" ? "none" : "";
|
|
333
333
|
}
|
|
334
|
-
},
|
|
335
|
-
convertTo: (e, t,
|
|
336
|
-
e.summary ? e.summary[t] =
|
|
337
|
-
[t]:
|
|
338
|
-
}, t === "enable" &&
|
|
339
|
-
enable:
|
|
334
|
+
}, Ao = {
|
|
335
|
+
convertTo: (e, t, r, u) => {
|
|
336
|
+
e.summary ? e.summary[t] = r : e.summary = {
|
|
337
|
+
[t]: r
|
|
338
|
+
}, t === "enable" && r && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
339
|
+
enable: r,
|
|
340
340
|
groupFields: []
|
|
341
341
|
});
|
|
342
342
|
},
|
|
343
|
-
convertFrom: (e, t,
|
|
344
|
-
var u,
|
|
345
|
-
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((u = e.summary) == null ? void 0 : u[t]) || "bottom" : t === "customRender" ? ((
|
|
343
|
+
convertFrom: (e, t, r) => {
|
|
344
|
+
var u, x;
|
|
345
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((u = e.summary) == null ? void 0 : u[t]) || "bottom" : t === "customRender" ? ((x = e.summary) == null ? void 0 : x[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
346
346
|
}
|
|
347
|
-
},
|
|
348
|
-
convertTo: (e, t,
|
|
349
|
-
e.group ? e.group[t] =
|
|
350
|
-
[t]:
|
|
351
|
-
}, t === "enable" &&
|
|
352
|
-
enable:
|
|
347
|
+
}, zo = {
|
|
348
|
+
convertTo: (e, t, r, u) => {
|
|
349
|
+
e.group ? e.group[t] = r : e.group = {
|
|
350
|
+
[t]: r
|
|
351
|
+
}, t === "enable" && r && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
352
|
+
enable: r,
|
|
353
353
|
groupFields: [],
|
|
354
354
|
showSummary: !1,
|
|
355
355
|
customRender: ""
|
|
356
356
|
});
|
|
357
357
|
},
|
|
358
|
-
convertFrom: (e, t,
|
|
358
|
+
convertFrom: (e, t, r) => {
|
|
359
359
|
if (e.group) {
|
|
360
360
|
if (t === "enable")
|
|
361
361
|
return e.group.enable;
|
|
@@ -367,90 +367,90 @@ const ko = {
|
|
|
367
367
|
return e.group.groupFields;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
},
|
|
370
|
+
}, _o = {
|
|
371
371
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
372
|
-
convertTo: (e, t,
|
|
373
|
-
if (
|
|
374
|
-
const u =
|
|
372
|
+
convertTo: (e, t, r) => {
|
|
373
|
+
if (r && r.length > 0) {
|
|
374
|
+
const u = r[0];
|
|
375
375
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = u.bindingField, e.binding.field = u.id, e.binding.fullPath = u.path, e.path = u.bindingPath;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
},
|
|
379
|
-
convertTo: (e, t,
|
|
378
|
+
}, Ho = {
|
|
379
|
+
convertTo: (e, t, r, u) => {
|
|
380
380
|
if (e.pagination || (e.pagination = {}), t === "sizeLimits")
|
|
381
|
-
if (
|
|
381
|
+
if (r == null)
|
|
382
382
|
delete e.pagination.sizeLimits;
|
|
383
383
|
else {
|
|
384
|
-
const
|
|
385
|
-
String(
|
|
384
|
+
const x = [...new Set(
|
|
385
|
+
String(r).split(",").map((N) => N.trim()).filter((N) => N !== "").map((N) => parseInt(N, 10)).filter((N) => !Number.isNaN(N) && N > 0)
|
|
386
386
|
)];
|
|
387
|
-
|
|
387
|
+
x.length > 0 ? e.pagination.sizeLimits = x : delete e.pagination.sizeLimits;
|
|
388
388
|
}
|
|
389
389
|
else
|
|
390
|
-
e.pagination[t] =
|
|
390
|
+
e.pagination[t] = r;
|
|
391
391
|
},
|
|
392
|
-
convertFrom: (e, t,
|
|
392
|
+
convertFrom: (e, t, r) => {
|
|
393
393
|
var u;
|
|
394
394
|
return e.pagination ? t === "sizeLimits" ? ((u = e.pagination.sizeLimits) == null ? void 0 : u.join(",")) ?? "" : e.pagination[t] : e[t];
|
|
395
395
|
}
|
|
396
|
-
},
|
|
397
|
-
convertTo: (e, t,
|
|
398
|
-
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] =
|
|
396
|
+
}, Wo = {
|
|
397
|
+
convertTo: (e, t, r, u) => {
|
|
398
|
+
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
|
|
399
399
|
},
|
|
400
|
-
convertFrom: (e, t,
|
|
401
|
-
},
|
|
402
|
-
convertTo: (e, t,
|
|
403
|
-
e.selection || (e.selection = {}), e.selection[t] =
|
|
400
|
+
convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
401
|
+
}, Lo = {
|
|
402
|
+
convertTo: (e, t, r, u) => {
|
|
403
|
+
e.selection || (e.selection = {}), e.selection[t] = r;
|
|
404
404
|
},
|
|
405
|
-
convertFrom: (e, t,
|
|
405
|
+
convertFrom: (e, t, r) => {
|
|
406
406
|
if (!e.selection)
|
|
407
407
|
return !!e[t];
|
|
408
408
|
const u = !!e.selection[t];
|
|
409
409
|
return t === "showCheckbox" && u == null && e.selection.multiSelect === !0 ? !0 : u;
|
|
410
410
|
}
|
|
411
|
-
}, Lo = {
|
|
412
|
-
convertFrom: (e, t, i) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
413
|
-
}, Wo = {
|
|
414
|
-
convertFrom: (e, t) => e[t] || "",
|
|
415
|
-
convertTo: (e, t, i) => {
|
|
416
|
-
e[t] = i;
|
|
417
|
-
}
|
|
418
411
|
}, Ro = {
|
|
419
|
-
|
|
420
|
-
e.size || (e.size = {}), e.size[t] = i;
|
|
421
|
-
},
|
|
422
|
-
convertFrom: (e, t, i) => e.size ? e.size[t] : e[t]
|
|
412
|
+
convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
423
413
|
}, $o = {
|
|
424
|
-
convertFrom: (e, t
|
|
425
|
-
|
|
426
|
-
|
|
414
|
+
convertFrom: (e, t) => e[t] || "",
|
|
415
|
+
convertTo: (e, t, r) => {
|
|
416
|
+
e[t] = r;
|
|
427
417
|
}
|
|
428
418
|
}, Uo = {
|
|
429
|
-
convertTo: (e, t,
|
|
430
|
-
e.
|
|
419
|
+
convertTo: (e, t, r, u) => {
|
|
420
|
+
e.size || (e.size = {}), e.size[t] = r;
|
|
431
421
|
},
|
|
432
|
-
convertFrom: (e, t,
|
|
433
|
-
|
|
422
|
+
convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
|
|
423
|
+
}, Yo = {
|
|
424
|
+
convertFrom: (e, t, r) => {
|
|
425
|
+
var u, x;
|
|
426
|
+
return (u = e.formatter) != null && u.data && t === "formatterEnumData" && !e.formatterEnumData ? (x = e.formatter) == null ? void 0 : x.data : e.formatterEnumData;
|
|
427
|
+
}
|
|
428
|
+
}, qo = {
|
|
429
|
+
convertTo: (e, t, r, u) => {
|
|
430
|
+
e.sort || (e.sort = {}), e.sort[t] = r;
|
|
431
|
+
},
|
|
432
|
+
convertFrom: (e, t, r) => {
|
|
433
|
+
var u, x;
|
|
434
434
|
if (t === "mode")
|
|
435
435
|
return ((u = e.sort) == null ? void 0 : u.mode) || "client";
|
|
436
436
|
if (t === "multiSort")
|
|
437
|
-
return !!((
|
|
437
|
+
return !!((x = e.sort) != null && x.multiSort);
|
|
438
438
|
}
|
|
439
|
-
},
|
|
440
|
-
convertTo: (e, t,
|
|
441
|
-
e.filter || (e.filter = {}), e.filter[t] =
|
|
439
|
+
}, Xo = {
|
|
440
|
+
convertTo: (e, t, r, u) => {
|
|
441
|
+
e.filter || (e.filter = {}), e.filter[t] = r, t === "enable" && (e.enableFilter = !1);
|
|
442
442
|
},
|
|
443
|
-
convertFrom: (e, t,
|
|
444
|
-
var u,
|
|
445
|
-
return t === "mode" ? ((u = e.filter) == null ? void 0 : u.mode) || "server" : t === "filterStyle" ? ((
|
|
443
|
+
convertFrom: (e, t, r) => {
|
|
444
|
+
var u, x, N, A;
|
|
445
|
+
return t === "mode" ? ((u = e.filter) == null ? void 0 : u.mode) || "server" : t === "filterStyle" ? ((x = e.filter) == null ? void 0 : x.filterStyle) || "filter-column" : t === "enable" ? ((N = e.filter) == null ? void 0 : N.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((A = e.filter) == null ? void 0 : A[t]) || void 0;
|
|
446
446
|
}
|
|
447
|
-
},
|
|
448
|
-
convertTo: (e, t,
|
|
449
|
-
e.rowOption ? e.rowOption[t] =
|
|
450
|
-
[t]:
|
|
447
|
+
}, Jo = {
|
|
448
|
+
convertTo: (e, t, r, u) => {
|
|
449
|
+
e.rowOption ? e.rowOption[t] = r : e.rowOption = {
|
|
450
|
+
[t]: r
|
|
451
451
|
};
|
|
452
452
|
},
|
|
453
|
-
convertFrom: (e, t,
|
|
453
|
+
convertFrom: (e, t, r) => {
|
|
454
454
|
if (e.rowOption) {
|
|
455
455
|
if (t === "customRowStyle")
|
|
456
456
|
return e.rowOption.customRowStyle;
|
|
@@ -461,55 +461,55 @@ const ko = {
|
|
|
461
461
|
}
|
|
462
462
|
return "";
|
|
463
463
|
}
|
|
464
|
-
},
|
|
465
|
-
convertTo: (e, t,
|
|
466
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] =
|
|
464
|
+
}, Qo = {
|
|
465
|
+
convertTo: (e, t, r, u) => {
|
|
466
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = r, t === "columnTemplateType" && r === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
467
467
|
<span class="f-pretend-link f-cursor-pointer"
|
|
468
468
|
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
469
469
|
{{rowData.${e.field}}}
|
|
470
470
|
</span>` : e.columnTemplate = `
|
|
471
471
|
<span class="f-pretend-link f-cursor-pointer">
|
|
472
472
|
{{rowData.${e.field}}}
|
|
473
|
-
</span>`), t === "columnTemplateType" &&
|
|
473
|
+
</span>`), t === "columnTemplateType" && r === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && r === "custom" && (e.columnTemplate = ""));
|
|
474
474
|
},
|
|
475
|
-
convertFrom: (e, t,
|
|
476
|
-
},
|
|
477
|
-
convertTo: (e, t,
|
|
475
|
+
convertFrom: (e, t, r) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
476
|
+
}, Zo = {
|
|
477
|
+
convertTo: (e, t, r, u) => {
|
|
478
478
|
e.hierarchy || (e.hierarchy = {
|
|
479
479
|
cascadeOption: {}
|
|
480
|
-
}), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] =
|
|
480
|
+
}), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = r;
|
|
481
481
|
},
|
|
482
|
-
convertFrom: (e, t,
|
|
483
|
-
var u,
|
|
484
|
-
return !!((
|
|
482
|
+
convertFrom: (e, t, r) => {
|
|
483
|
+
var u, x;
|
|
484
|
+
return !!((x = (u = e.hierarchy) == null ? void 0 : u.cascadeOption) != null && x[t]);
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
|
-
function
|
|
487
|
+
function Et(e, t, r) {
|
|
488
488
|
const u = /* @__PURE__ */ new Map([
|
|
489
|
-
["/converter/appearance.converter",
|
|
490
|
-
["/converter/buttons.converter",
|
|
491
|
-
["/converter/property-editor.converter",
|
|
492
|
-
["/converter/items-count.converter",
|
|
493
|
-
["/converter/type.converter",
|
|
494
|
-
["/converter/change-editor.converter",
|
|
495
|
-
["/converter/change-formatter.converter",
|
|
496
|
-
["/converter/column-command.converter",
|
|
497
|
-
["/converter/column-option.converter",
|
|
498
|
-
["/converter/summary.converter",
|
|
499
|
-
["/converter/group.converter",
|
|
500
|
-
["/converter/form-group-label.converter",
|
|
501
|
-
["/converter/field-selector.converter",
|
|
502
|
-
["/converter/pagination.converter",
|
|
503
|
-
["/converter/row-number.converter",
|
|
504
|
-
["/converter/grid-selection.converter",
|
|
505
|
-
["/converter/size.converter",
|
|
506
|
-
["/converter/change-formatter-enum.converter",
|
|
507
|
-
["/converter/grid-sort.converter",
|
|
508
|
-
["/converter/grid-filter.converter",
|
|
509
|
-
["/converter/row-option.converter",
|
|
510
|
-
["/converter/change-formatter-type.converter",
|
|
511
|
-
["/converter/tree-auto-check.converter",
|
|
512
|
-
]),
|
|
489
|
+
["/converter/appearance.converter", Eo],
|
|
490
|
+
["/converter/buttons.converter", Po],
|
|
491
|
+
["/converter/property-editor.converter", Do],
|
|
492
|
+
["/converter/items-count.converter", Ro],
|
|
493
|
+
["/converter/type.converter", Mo],
|
|
494
|
+
["/converter/change-editor.converter", Go],
|
|
495
|
+
["/converter/change-formatter.converter", No],
|
|
496
|
+
["/converter/column-command.converter", jo],
|
|
497
|
+
["/converter/column-option.converter", Vo],
|
|
498
|
+
["/converter/summary.converter", Ao],
|
|
499
|
+
["/converter/group.converter", zo],
|
|
500
|
+
["/converter/form-group-label.converter", $o],
|
|
501
|
+
["/converter/field-selector.converter", _o],
|
|
502
|
+
["/converter/pagination.converter", Ho],
|
|
503
|
+
["/converter/row-number.converter", Wo],
|
|
504
|
+
["/converter/grid-selection.converter", Lo],
|
|
505
|
+
["/converter/size.converter", Uo],
|
|
506
|
+
["/converter/change-formatter-enum.converter", Yo],
|
|
507
|
+
["/converter/grid-sort.converter", qo],
|
|
508
|
+
["/converter/grid-filter.converter", Xo],
|
|
509
|
+
["/converter/row-option.converter", Jo],
|
|
510
|
+
["/converter/change-formatter-type.converter", Qo],
|
|
511
|
+
["/converter/tree-auto-check.converter", Zo]
|
|
512
|
+
]), x = /* @__PURE__ */ new Map([
|
|
513
513
|
["string", { type: "input-group", enableClear: !1 }],
|
|
514
514
|
["boolean", {
|
|
515
515
|
type: "combo-list",
|
|
@@ -534,77 +534,77 @@ function Bt(e, t, i) {
|
|
|
534
534
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
535
535
|
["events-editor", { type: "events-editor", hide: !0 }],
|
|
536
536
|
["multiLanguage", { type: "language-textbox" }]
|
|
537
|
-
]), N =
|
|
537
|
+
]), N = Bo();
|
|
538
538
|
function A(a, c) {
|
|
539
539
|
return () => N.parseValueSchema(a, c);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function W(a, c, h) {
|
|
542
542
|
return a.includes("visible") && c.visible !== void 0 ? typeof c.visible == "boolean" ? () => !!c.visible : c.visible === void 0 ? !0 : A(c.visible, h) : () => !0;
|
|
543
543
|
}
|
|
544
544
|
function z(a, c, h) {
|
|
545
545
|
return a.includes("readonly") && c.readonly !== void 0 ? typeof c.readonly == "boolean" ? () => !!c.readonly : A(c.readonly, h) : () => !1;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function T(a, c) {
|
|
548
548
|
const h = a.$converter || c;
|
|
549
549
|
return typeof h == "string" && h && u.has(h) ? u.get(h) || null : h || null;
|
|
550
550
|
}
|
|
551
|
-
function b(a, c, h,
|
|
552
|
-
return Object.keys(a).map((
|
|
553
|
-
const Q = de(1), X =
|
|
554
|
-
|
|
555
|
-
const pe = P.type === "cascade" ? b(P.properties, c, h,
|
|
556
|
-
let H =
|
|
557
|
-
const
|
|
551
|
+
function b(a, c, h, y, E, U = "", Y = "") {
|
|
552
|
+
return Object.keys(a).map((I) => {
|
|
553
|
+
const Q = de(1), X = I, P = a[I], s = Object.keys(P), ce = P.title, ee = P.type, G = x.get(ee) || { type: "input-group", enableClear: !1 }, ie = P.editor ? Object.assign({}, G, P.editor) : Object.assign({}, G), te = W(s, P, c), re = z(s, P, c);
|
|
554
|
+
ie.readonly = ie.readonly === void 0 ? re() : ie.readonly;
|
|
555
|
+
const pe = P.type === "cascade" ? b(P.properties, c, h, y, E, U, Y) : [], ve = !0;
|
|
556
|
+
let H = T(P, Y);
|
|
557
|
+
const se = oe({
|
|
558
558
|
get() {
|
|
559
559
|
if (Q.value) {
|
|
560
560
|
if (["class", "style"].find((J) => J === X) && !H && (H = u.get("/converter/appearance.converter") || null), H && H.convertFrom) {
|
|
561
|
-
const J = H.convertFrom(h,
|
|
561
|
+
const J = H.convertFrom(h, I, E, U);
|
|
562
562
|
return J === void 0 && Object.prototype.hasOwnProperty.call(P, "defaultValue") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : J;
|
|
563
563
|
}
|
|
564
|
-
const
|
|
565
|
-
return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (
|
|
564
|
+
const ae = h[I];
|
|
565
|
+
return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (ae === void 0 || typeof ae == "string" && ae === "") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : ae;
|
|
566
566
|
}
|
|
567
567
|
return null;
|
|
568
568
|
},
|
|
569
|
-
set(
|
|
570
|
-
Q.value += 1, H && H.convertTo ? (H.convertTo(
|
|
569
|
+
set(ae) {
|
|
570
|
+
Q.value += 1, H && H.convertTo ? (H.convertTo(y, I, ae, E, U), H.convertTo(h, I, ae, E, U)) : (y[I] = ae, h[I] = ae);
|
|
571
571
|
}
|
|
572
|
-
}), { refreshPanelAfterChanged:
|
|
573
|
-
return c[X] =
|
|
572
|
+
}), { refreshPanelAfterChanged: le, description: ye, isExpand: Pe, parentPropertyID: Se } = P, Z = { propertyID: X, propertyName: ce, propertyType: ee, propertyValue: se, editor: ie, visible: te, readonly: re, cascadeConfig: pe, hideCascadeTitle: ve, refreshPanelAfterChanged: le, description: ye, isExpand: Pe, parentPropertyID: Se };
|
|
573
|
+
return c[X] = Z, Z;
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
function d(a, c, h = {}) {
|
|
577
|
-
const
|
|
577
|
+
const y = {}, E = e[a];
|
|
578
578
|
return E && E.categories ? Object.keys(E.categories).map((Y) => {
|
|
579
|
-
const _ = E.categories[Y],
|
|
580
|
-
return { categoryId: Y, categoryName:
|
|
579
|
+
const _ = E.categories[Y], I = _ == null ? void 0 : _.title, Q = b(_.properties || {}, y, {}, h, c);
|
|
580
|
+
return { categoryId: Y, categoryName: I, properties: Q };
|
|
581
581
|
}) : [];
|
|
582
582
|
}
|
|
583
|
-
function C(a, c, h,
|
|
584
|
-
const U = c.$ref.schema, Y = c.$ref.converter, _ = h[U],
|
|
583
|
+
function C(a, c, h, y, E = "") {
|
|
584
|
+
const U = c.$ref.schema, Y = c.$ref.converter, _ = h[U], I = _.type, Q = r(_), X = {}, P = e[I];
|
|
585
585
|
if (P && P.categories) {
|
|
586
|
-
const s = P.categories[a],
|
|
587
|
-
Y && Object.keys(s.properties).forEach((
|
|
588
|
-
s.properties[
|
|
586
|
+
const s = P.categories[a], ce = s == null ? void 0 : s.title;
|
|
587
|
+
Y && Object.keys(s.properties).forEach((ie) => {
|
|
588
|
+
s.properties[ie].$converter = Y;
|
|
589
589
|
});
|
|
590
|
-
const ee = (s == null ? void 0 : s.properties) || {}, G = b(ee, X, Q, _,
|
|
591
|
-
return { categoryId: a, categoryName:
|
|
590
|
+
const ee = (s == null ? void 0 : s.properties) || {}, G = b(ee, X, Q, _, y, E);
|
|
591
|
+
return { categoryId: a, categoryName: ce, properties: G };
|
|
592
592
|
}
|
|
593
593
|
return { categoryId: a, categoryName: "", properties: [] };
|
|
594
594
|
}
|
|
595
|
-
function p(a, c, h,
|
|
596
|
-
const U = a.type, Y =
|
|
597
|
-
let
|
|
598
|
-
if (!(
|
|
595
|
+
function p(a, c, h, y, E) {
|
|
596
|
+
const U = a.type, Y = r(a), _ = {};
|
|
597
|
+
let I = E || e[U];
|
|
598
|
+
if (!(I && Object.keys(I).length > 0) && h && h.getPropConfig && (I = h.getPropConfig(y)), I && I.categories) {
|
|
599
599
|
const X = [];
|
|
600
|
-
return Object.keys(
|
|
601
|
-
const s =
|
|
600
|
+
return Object.keys(I.categories).map((P) => {
|
|
601
|
+
const s = I.categories[P];
|
|
602
602
|
if (s.$ref) {
|
|
603
|
-
X.push(C(P, s, a, c,
|
|
603
|
+
X.push(C(P, s, a, c, y));
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
const
|
|
607
|
-
X.push({ categoryId: P, categoryName:
|
|
606
|
+
const ce = s == null ? void 0 : s.title, ee = s == null ? void 0 : s.tabId, G = s == null ? void 0 : s.tabName, ie = s == null ? void 0 : s.hide, te = s == null ? void 0 : s.hideTitle, re = b(s.properties || {}, _, Y, a, c, y, s.$converter), { setPropertyRelates: pe } = s, ve = s == null ? void 0 : s.parentPropertyID;
|
|
607
|
+
X.push({ categoryId: P, categoryName: ce, tabId: ee, tabName: G, hide: ie, properties: re, hideTitle: te, setPropertyRelates: pe, parentPropertyID: ve });
|
|
608
608
|
}), X;
|
|
609
609
|
}
|
|
610
610
|
return [];
|
|
@@ -615,44 +615,44 @@ function Bt(e, t, i) {
|
|
|
615
615
|
propertyConverterMap: u
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
function
|
|
618
|
+
const Ko = {}, ei = {};
|
|
619
|
+
Et(Ko, ei, ko);
|
|
620
|
+
const ti = {}, ni = {}, { resolveSchemaWithDefaultValue: oi } = Bt(ti, ni), ii = {}, ri = {};
|
|
621
|
+
Et(ii, ri, oi);
|
|
622
|
+
function li(e, t) {
|
|
623
623
|
if (!e || e.length < 1)
|
|
624
624
|
return null;
|
|
625
|
-
for (const
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
628
|
-
if (
|
|
629
|
-
const u =
|
|
625
|
+
for (const r of e) {
|
|
626
|
+
if (r.id === t)
|
|
627
|
+
return r;
|
|
628
|
+
if (r.children) {
|
|
629
|
+
const u = r.children.find((x) => x.id === t);
|
|
630
630
|
if (u)
|
|
631
631
|
return u;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
return null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
function e(t,
|
|
638
|
-
const { name: u } =
|
|
636
|
+
function ai() {
|
|
637
|
+
function e(t, r) {
|
|
638
|
+
const { name: u } = r;
|
|
639
639
|
if (u !== "fieldsClick")
|
|
640
640
|
return t[`on${u.charAt(0).toUpperCase()}${u.slice(1)}`] || t[u];
|
|
641
|
-
const
|
|
642
|
-
if (!
|
|
641
|
+
const x = t.cardToolbar;
|
|
642
|
+
if (!x || x.length < 1)
|
|
643
643
|
return null;
|
|
644
|
-
const [N, A] =
|
|
645
|
-
return
|
|
644
|
+
const [N, A] = r.payloads, W = li(x, A);
|
|
645
|
+
return W ? W.onClick || W.click : null;
|
|
646
646
|
}
|
|
647
647
|
return {
|
|
648
648
|
resolve: e
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
function
|
|
651
|
+
var ui = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.ALWAYS = "always", e))(ui || {});
|
|
652
|
+
function di(e, t) {
|
|
653
653
|
return null;
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const Ti = {
|
|
656
656
|
/** 是否启用分页。 */
|
|
657
657
|
enable: { type: Boolean, default: !1 },
|
|
658
658
|
/** 当前页码。 */
|
|
@@ -675,7 +675,7 @@ const Fr = {
|
|
|
675
675
|
total: { type: Number, default: 0 },
|
|
676
676
|
/** 是否禁用分页。 */
|
|
677
677
|
disabled: { type: Boolean, default: !1 }
|
|
678
|
-
},
|
|
678
|
+
}, Oi = {
|
|
679
679
|
/** 是否启用排序。 */
|
|
680
680
|
enable: { type: Boolean, default: !1 },
|
|
681
681
|
/** 排序字段集合。 */
|
|
@@ -684,7 +684,7 @@ const Fr = {
|
|
|
684
684
|
mode: { type: String, default: "client" },
|
|
685
685
|
/** 是否支持多列排序。 */
|
|
686
686
|
multiSort: { type: Boolean, default: !1 }
|
|
687
|
-
},
|
|
687
|
+
}, ki = {
|
|
688
688
|
/** 自定义分组行内容。 */
|
|
689
689
|
customGroupRow: { type: Function, default: () => {
|
|
690
690
|
} },
|
|
@@ -711,7 +711,7 @@ const Fr = {
|
|
|
711
711
|
/** 自定义分组合计内容渲染函数。 */
|
|
712
712
|
customRender: { type: Function, default: () => {
|
|
713
713
|
} }
|
|
714
|
-
},
|
|
714
|
+
}, Bi = {
|
|
715
715
|
/** 是否启用筛选总开关。 */
|
|
716
716
|
enable: { type: Boolean, default: !1 },
|
|
717
717
|
/** 筛选风格,可选 `filter-column` 或 `filter-row`。 */
|
|
@@ -720,10 +720,10 @@ const Fr = {
|
|
|
720
720
|
mode: { type: String, default: "server" },
|
|
721
721
|
/** 是否显示过滤条件工具条。 */
|
|
722
722
|
showSummary: { type: Boolean, default: !0 }
|
|
723
|
-
},
|
|
723
|
+
}, Ei = {
|
|
724
724
|
/** 是否允许折行显示列标题。 */
|
|
725
725
|
wrapHeadings: { type: Boolean, default: !1 }
|
|
726
|
-
},
|
|
726
|
+
}, Pi = {
|
|
727
727
|
/** 是否显示行号。 */
|
|
728
728
|
enable: { type: Boolean, default: !1 },
|
|
729
729
|
/** 行号列表头标题。 */
|
|
@@ -732,7 +732,7 @@ const Fr = {
|
|
|
732
732
|
width: { type: Number, default: 36 },
|
|
733
733
|
/** 是否展示省略号。 */
|
|
734
734
|
showEllipsis: { type: Boolean, default: !0 }
|
|
735
|
-
},
|
|
735
|
+
}, Di = {
|
|
736
736
|
/** 自定义行样式函数。 */
|
|
737
737
|
customRowStyle: { type: Function, default: () => {
|
|
738
738
|
} },
|
|
@@ -751,7 +751,7 @@ const Fr = {
|
|
|
751
751
|
showHovering: { type: Boolean, default: !0 },
|
|
752
752
|
/** 是否允许数据折行。 */
|
|
753
753
|
wrapContent: { type: Boolean, default: !1 }
|
|
754
|
-
},
|
|
754
|
+
}, Ii = {
|
|
755
755
|
/** 是否启用合计行。 */
|
|
756
756
|
enable: { type: Boolean, default: !1 },
|
|
757
757
|
/** 合计行自定义样式函数。 */
|
|
@@ -766,7 +766,7 @@ const Fr = {
|
|
|
766
766
|
/** 自定义合计行内容渲染函数。 */
|
|
767
767
|
customRender: { type: Function, default: () => {
|
|
768
768
|
} }
|
|
769
|
-
},
|
|
769
|
+
}, Mi = {
|
|
770
770
|
/** 是否自动列宽,设为 true 后所有列将填满表格,不出现横向滚动条。 */
|
|
771
771
|
fitColumns: { type: Boolean, default: !1 },
|
|
772
772
|
/** 自动适配列宽度模式。 */
|
|
@@ -780,11 +780,11 @@ const Fr = {
|
|
|
780
780
|
/** 双击表头列是否自适应内容宽度。 */
|
|
781
781
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
782
782
|
};
|
|
783
|
-
function
|
|
783
|
+
function ot(e) {
|
|
784
784
|
const t = e == null ? void 0 : e.fitColumns;
|
|
785
785
|
return t === !0 || typeof t == "object" && t !== null && "enable" in t && t.enable === !0;
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const Gi = {
|
|
788
788
|
/** 启用多选且显示 checkbox,选中行后勾选前面的 checkbox。 */
|
|
789
789
|
checkOnSelect: { type: Boolean, default: !1 },
|
|
790
790
|
/** 数据源为空时是否清空已选记录。 */
|
|
@@ -810,17 +810,17 @@ const Ir = {
|
|
|
810
810
|
showSelectAll: { type: Boolean, default: !1 },
|
|
811
811
|
/** 是否显示已选数据。 */
|
|
812
812
|
showSelection: { type: Boolean, default: !1 }
|
|
813
|
-
},
|
|
813
|
+
}, Ni = {
|
|
814
814
|
/** 编辑时是否选中文本。 */
|
|
815
815
|
selectOnEditing: { type: Boolean, default: !1 },
|
|
816
816
|
/** 编辑模式,`row` 为整行编辑,`cell` 为单元格编辑。 */
|
|
817
817
|
editMode: { type: String, default: "cell" }
|
|
818
|
-
},
|
|
818
|
+
}, ji = {
|
|
819
819
|
/** 是否显示 loading。 */
|
|
820
820
|
show: { type: Boolean, default: !1 },
|
|
821
821
|
/** loading 提示文本。 */
|
|
822
822
|
message: { type: String, default: "加载中..." }
|
|
823
|
-
},
|
|
823
|
+
}, si = {
|
|
824
824
|
/** 自定义表格 CSS 类名。 */
|
|
825
825
|
customClass: { type: String, default: "" },
|
|
826
826
|
/** 是否在最后一个单元格回车时新增一行。 */
|
|
@@ -955,7 +955,7 @@ const Ir = {
|
|
|
955
955
|
/** 数据更新前的回调函数。 */
|
|
956
956
|
beforeUpdate: { type: Function },
|
|
957
957
|
/** 绑定动态字段的解析器。 */
|
|
958
|
-
fieldsResolver: { type: Function, default:
|
|
958
|
+
fieldsResolver: { type: Function, default: di },
|
|
959
959
|
/** 绑定动态字段的值回调函数。 */
|
|
960
960
|
fieldsCallback: { type: Function, default: () => {
|
|
961
961
|
} },
|
|
@@ -1002,8 +1002,8 @@ const Ir = {
|
|
|
1002
1002
|
},
|
|
1003
1003
|
/** 是否启用列设置方案。 */
|
|
1004
1004
|
enableColumnSettingSolution: { type: Boolean, default: !1 }
|
|
1005
|
-
},
|
|
1006
|
-
function
|
|
1005
|
+
}, Vi = ai();
|
|
1006
|
+
function ci() {
|
|
1007
1007
|
const e = /* @__PURE__ */ new Map([
|
|
1008
1008
|
["boolean", "check-box"],
|
|
1009
1009
|
["datetime", "date-picker"],
|
|
@@ -1012,65 +1012,65 @@ function dr() {
|
|
|
1012
1012
|
["string", "input-group"],
|
|
1013
1013
|
["text", "text"]
|
|
1014
1014
|
]);
|
|
1015
|
-
function t(
|
|
1016
|
-
if (!
|
|
1017
|
-
const u =
|
|
1015
|
+
function t(r) {
|
|
1016
|
+
if (!r.editor) {
|
|
1017
|
+
const u = r.dataType, x = { type: e.get(u) || "input-group", readonly: !0 };
|
|
1018
1018
|
return {
|
|
1019
|
-
...
|
|
1019
|
+
...r,
|
|
1020
1020
|
type: "form-group",
|
|
1021
|
-
label:
|
|
1022
|
-
editor:
|
|
1021
|
+
label: r.title,
|
|
1022
|
+
editor: x
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
return {
|
|
1026
|
-
...
|
|
1026
|
+
...r,
|
|
1027
1027
|
type: "form-group",
|
|
1028
|
-
label:
|
|
1028
|
+
label: r.title
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
return { transformColumnToField: t };
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function fi(e, t, r, u, x, N, A, W, z, T, b, d, C, p, a, c, h) {
|
|
1034
1034
|
const {
|
|
1035
|
-
isNull:
|
|
1035
|
+
isNull: y,
|
|
1036
1036
|
isUndefined: E
|
|
1037
|
-
} =
|
|
1037
|
+
} = xt(), {
|
|
1038
1038
|
totalItems: U,
|
|
1039
1039
|
rawView: Y
|
|
1040
1040
|
} = c, {
|
|
1041
1041
|
calculateCellPositionInRow: _,
|
|
1042
|
-
cellKey:
|
|
1042
|
+
cellKey: I,
|
|
1043
1043
|
cellPosition: Q,
|
|
1044
1044
|
rowKey: X,
|
|
1045
1045
|
rowPosition: P,
|
|
1046
1046
|
rowSpanCellPosition: s,
|
|
1047
|
-
groupCellPosition:
|
|
1047
|
+
groupCellPosition: ce,
|
|
1048
1048
|
summaryCellPosition: ee
|
|
1049
1049
|
} = A, {
|
|
1050
1050
|
cellContentClass: G,
|
|
1051
|
-
cellContentPosition:
|
|
1051
|
+
cellContentPosition: ie,
|
|
1052
1052
|
cellContentClassWithEllipsis: te
|
|
1053
1053
|
} = N, {
|
|
1054
1054
|
collpaseGroupIconClass: re
|
|
1055
|
-
} =
|
|
1055
|
+
} = T, {
|
|
1056
1056
|
gridCellClass: pe,
|
|
1057
1057
|
gridRowClass: ve,
|
|
1058
1058
|
onClickRow: H,
|
|
1059
|
-
onMouseoverRow:
|
|
1060
|
-
onMouseoutRow:
|
|
1059
|
+
onMouseoverRow: se,
|
|
1060
|
+
onMouseoutRow: le
|
|
1061
1061
|
} = d, {
|
|
1062
1062
|
onClickCell: ye,
|
|
1063
|
-
showRowEditPanel:
|
|
1063
|
+
showRowEditPanel: Pe
|
|
1064
1064
|
} = z, {
|
|
1065
|
-
toggleGroupRow:
|
|
1065
|
+
toggleGroupRow: Se
|
|
1066
1066
|
} = C, {
|
|
1067
|
-
columnContext:
|
|
1068
|
-
hasLeftFixedColumn:
|
|
1067
|
+
columnContext: Z,
|
|
1068
|
+
hasLeftFixedColumn: ae,
|
|
1069
1069
|
hasRightFixedColumn: J
|
|
1070
|
-
} =
|
|
1070
|
+
} = W, {
|
|
1071
1071
|
navigateOnKeyUp: ge,
|
|
1072
|
-
navigateOnKeyDown:
|
|
1073
|
-
} = b, Ce = (o) => (o || []).some((S) =>
|
|
1072
|
+
navigateOnKeyDown: Le
|
|
1073
|
+
} = b, Ce = (o) => (o || []).some((S) => st(S) ? !(S.type === Tt || S.type === rt && !Ce(S.children)) : !0) ? o : null, De = (o) => {
|
|
1074
1074
|
var S, n, l;
|
|
1075
1075
|
return ((n = (S = o.column) == null ? void 0 : S.editor) == null ? void 0 : n.type) === "switch" || ((l = o.column) == null ? void 0 : l.dataType) === "boolean" ? {
|
|
1076
1076
|
display: "flex",
|
|
@@ -1081,30 +1081,30 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1081
1081
|
flexGrow: "1",
|
|
1082
1082
|
minWidth: 0
|
|
1083
1083
|
};
|
|
1084
|
-
}, he =
|
|
1084
|
+
}, he = it({
|
|
1085
1085
|
"fv-grid-content-left-fixed": !0
|
|
1086
|
-
}),
|
|
1086
|
+
}), ue = it({
|
|
1087
1087
|
"fv-grid-content-right-fixed": !0
|
|
1088
1088
|
});
|
|
1089
|
-
|
|
1090
|
-
!o[0] && !o[1].length ? (he["fv-grid-content-left-fixed"] = !1,
|
|
1089
|
+
We([U, Y], (o) => {
|
|
1090
|
+
!o[0] && !o[1].length ? (he["fv-grid-content-left-fixed"] = !1, ue["fv-grid-content-right-fixed"] = !1) : (he["fv-grid-content-left-fixed"] = !0, ue["fv-grid-content-right-fixed"] = !0);
|
|
1091
1091
|
});
|
|
1092
1092
|
const {
|
|
1093
1093
|
gridDataStyle: R,
|
|
1094
|
-
gridMergedDataStyle:
|
|
1095
|
-
leftFixedGridDataStyle:
|
|
1096
|
-
leftFixedGridMergedDataStyle:
|
|
1094
|
+
gridMergedDataStyle: Ie,
|
|
1095
|
+
leftFixedGridDataStyle: we,
|
|
1096
|
+
leftFixedGridMergedDataStyle: Me,
|
|
1097
1097
|
rightFixedGridDataStyle: Qe,
|
|
1098
1098
|
rightFixedGridMergedDataStyle: Ze
|
|
1099
1099
|
} = p;
|
|
1100
|
-
function
|
|
1101
|
-
o.stopPropagation(), S.collapse = !S.collapse, a.value =
|
|
1100
|
+
function xe(o, S) {
|
|
1101
|
+
o.stopPropagation(), S.collapse = !S.collapse, a.value = Se(S.collapse ? "collapse" : "expand", S, a.value);
|
|
1102
1102
|
}
|
|
1103
1103
|
function Re(o, S, n) {
|
|
1104
|
-
var
|
|
1104
|
+
var g, m;
|
|
1105
1105
|
const l = [];
|
|
1106
1106
|
if (o.groupField) {
|
|
1107
|
-
const
|
|
1107
|
+
const M = S[o.groupField], O = o.data[o.groupField];
|
|
1108
1108
|
if (n === "primary")
|
|
1109
1109
|
for (let w = 0; w <= o.layer; w++)
|
|
1110
1110
|
l.push(f("div", {
|
|
@@ -1113,13 +1113,13 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1113
1113
|
position: "relative",
|
|
1114
1114
|
zIndex: 10
|
|
1115
1115
|
},
|
|
1116
|
-
onClick: ($) =>
|
|
1116
|
+
onClick: ($) => xe($, o)
|
|
1117
1117
|
}, [f("span", {
|
|
1118
1118
|
class: re(o)
|
|
1119
1119
|
}, null)]));
|
|
1120
|
-
n === "primary" && ((
|
|
1121
|
-
ref:
|
|
1122
|
-
key:
|
|
1120
|
+
n === "primary" && ((g = e.group) != null && g.customRender) ? l.push(f("div", {
|
|
1121
|
+
ref: O == null ? void 0 : O.setRef,
|
|
1122
|
+
key: I(o, o.layer + 1),
|
|
1123
1123
|
style: {
|
|
1124
1124
|
flex: "1",
|
|
1125
1125
|
overflow: "hidden",
|
|
@@ -1127,9 +1127,9 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1127
1127
|
whiteSpace: "nowrap",
|
|
1128
1128
|
paddingLeft: "4px"
|
|
1129
1129
|
}
|
|
1130
|
-
}, [e.group.customRender(o)])) : (m = e.group) != null && m.customRender || (n === "primary" &&
|
|
1131
|
-
ref:
|
|
1132
|
-
key:
|
|
1130
|
+
}, [e.group.customRender(o)])) : (m = e.group) != null && m.customRender || (n === "primary" && O && l.push(f("div", {
|
|
1131
|
+
ref: O.setRef,
|
|
1132
|
+
key: I(o, o.layer + 1),
|
|
1133
1133
|
style: {
|
|
1134
1134
|
flex: "1",
|
|
1135
1135
|
minWidth: 0,
|
|
@@ -1139,17 +1139,17 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1139
1139
|
lineHeight: "26px",
|
|
1140
1140
|
padding: "0 0.75rem"
|
|
1141
1141
|
},
|
|
1142
|
-
title:
|
|
1143
|
-
}, [
|
|
1144
|
-
var
|
|
1142
|
+
title: O.data
|
|
1143
|
+
}, [O.data])), Object.values(o.data).filter((w) => w.field !== o.groupField && S[w.field] && w.colSpan !== 0 && w.field !== kn && w.field !== Bn).forEach((w) => {
|
|
1144
|
+
var K;
|
|
1145
1145
|
const $ = Q(o, w, S);
|
|
1146
|
-
if (!
|
|
1147
|
-
const
|
|
1148
|
-
$.left = `${Number($.left.replace("px", "")) +
|
|
1146
|
+
if (!M) {
|
|
1147
|
+
const B = (o.layer + 1) * (((K = O == null ? void 0 : O.parent) == null ? void 0 : K.height) || 0);
|
|
1148
|
+
$.left = `${Number($.left.replace("px", "")) + B}px`;
|
|
1149
1149
|
}
|
|
1150
1150
|
l.push(f("div", {
|
|
1151
1151
|
ref: w.setRef,
|
|
1152
|
-
key:
|
|
1152
|
+
key: I(o, w.index),
|
|
1153
1153
|
class: "fv-grid-cell",
|
|
1154
1154
|
style: $
|
|
1155
1155
|
}, [w.data]));
|
|
@@ -1157,7 +1157,7 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
return l;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Ge(o, S, n, l) {
|
|
1161
1161
|
return o.layer > -1 && f("div", {
|
|
1162
1162
|
ref: o.setRef,
|
|
1163
1163
|
key: X(o),
|
|
@@ -1167,36 +1167,36 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1167
1167
|
"align-items-center": !0
|
|
1168
1168
|
},
|
|
1169
1169
|
style: P(o),
|
|
1170
|
-
onClick: (
|
|
1171
|
-
onMouseover: (
|
|
1170
|
+
onClick: (g) => H(g, o),
|
|
1171
|
+
onMouseover: (g) => se(g, o)
|
|
1172
1172
|
}, [Re(o, S, l)]);
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Ne(o, S) {
|
|
1175
1175
|
const n = [];
|
|
1176
1176
|
if (o.groupField && S[o.groupField]) {
|
|
1177
1177
|
const l = o.data[o.groupField];
|
|
1178
1178
|
n.push(f("div", {
|
|
1179
1179
|
ref: l.setRef,
|
|
1180
|
-
key:
|
|
1180
|
+
key: I(o, o.layer + 1),
|
|
1181
1181
|
class: "fv-grid-cell",
|
|
1182
1182
|
style: ee(l, S, o.layer)
|
|
1183
1183
|
}, [l.data]));
|
|
1184
1184
|
}
|
|
1185
1185
|
return n;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Te(o, S, n, l) {
|
|
1188
1188
|
return o.layer > -1 && f("div", {
|
|
1189
1189
|
ref: o.setRef,
|
|
1190
1190
|
key: X(o),
|
|
1191
1191
|
class: ve(o, n),
|
|
1192
1192
|
style: P(o),
|
|
1193
|
-
onClick: (
|
|
1194
|
-
onMouseover: (
|
|
1195
|
-
}, [
|
|
1193
|
+
onClick: (g) => H(g, o),
|
|
1194
|
+
onMouseover: (g) => se(g, o)
|
|
1195
|
+
}, [Ne(o, S)]);
|
|
1196
1196
|
}
|
|
1197
1197
|
function $e(o, S) {
|
|
1198
|
-
var n, l,
|
|
1199
|
-
return o.showTips && typeof ((n = o.column) == null ? void 0 : n.formatter) != "function" && ((l = o.column) == null ? void 0 : l.dataType) !== "commands" && ((
|
|
1198
|
+
var n, l, g;
|
|
1199
|
+
return o.showTips && typeof ((n = o.column) == null ? void 0 : n.formatter) != "function" && ((l = o.column) == null ? void 0 : l.dataType) !== "commands" && ((g = o.column) == null ? void 0 : g.dataType) !== "setting" ? f("div", {
|
|
1200
1200
|
class: te(o),
|
|
1201
1201
|
title: o.formatter(o, S)
|
|
1202
1202
|
}, [o.formatter(o, S)]) : f("div", {
|
|
@@ -1207,9 +1207,9 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1207
1207
|
return f("div", null, [Je("******")]);
|
|
1208
1208
|
}
|
|
1209
1209
|
function j(o) {
|
|
1210
|
-
var l,
|
|
1211
|
-
const S = !
|
|
1212
|
-
return ((
|
|
1210
|
+
var l, g;
|
|
1211
|
+
const S = !y(o.data) && !E(o.data) ? o.data.toString() : o.data;
|
|
1212
|
+
return ((g = (l = o.column) == null ? void 0 : l.editor) == null ? void 0 : g.showType) === "password" ? Ue() : o.showTips ? f("div", {
|
|
1213
1213
|
class: te(o),
|
|
1214
1214
|
title: S
|
|
1215
1215
|
}, [S]) : f("div", {
|
|
@@ -1217,28 +1217,28 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1217
1217
|
}, [S]);
|
|
1218
1218
|
}
|
|
1219
1219
|
function Ye(o, S) {
|
|
1220
|
-
return o.mode ===
|
|
1221
|
-
style:
|
|
1220
|
+
return o.mode === kt.editing ? f("div", {
|
|
1221
|
+
style: De(o)
|
|
1222
1222
|
}, [o.getEditor(o)]) : o.column.columnTemplate ? o.column.columnTemplate(o, S) : o.formatter ? $e(o, S) : j(o);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function je(o, S, n, l, g) {
|
|
1225
1225
|
return f("div", {
|
|
1226
1226
|
ref: o.setRef,
|
|
1227
1227
|
key: X(o),
|
|
1228
1228
|
class: ve(o, n),
|
|
1229
1229
|
style: l,
|
|
1230
1230
|
onClick: (m) => H(m, o),
|
|
1231
|
-
onMouseover: (m) =>
|
|
1232
|
-
onMouseout: (m) =>
|
|
1231
|
+
onMouseover: (m) => se(m, o),
|
|
1232
|
+
onMouseout: (m) => le(m, o)
|
|
1233
1233
|
}, [Object.values(o.data).filter((m) => S[m.field] && m.rowSpan === 1).map((m) => {
|
|
1234
|
-
var
|
|
1235
|
-
const
|
|
1234
|
+
var O, w;
|
|
1235
|
+
const M = t.slots.cellTemplate && Ce(t.slots.cellTemplate({
|
|
1236
1236
|
cell: m,
|
|
1237
1237
|
row: o
|
|
1238
1238
|
}));
|
|
1239
1239
|
return f("div", {
|
|
1240
1240
|
ref: m.setRef,
|
|
1241
|
-
key:
|
|
1241
|
+
key: I(o, m.index),
|
|
1242
1242
|
class: pe(m, o),
|
|
1243
1243
|
style: Q(o, m, S),
|
|
1244
1244
|
onClick: ($) => {
|
|
@@ -1247,74 +1247,74 @@ function sr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1247
1247
|
onKeydown: ($) => ge($, m)
|
|
1248
1248
|
}, [f("div", {
|
|
1249
1249
|
class: G(m),
|
|
1250
|
-
style:
|
|
1251
|
-
}, [
|
|
1250
|
+
style: ie(m)
|
|
1251
|
+
}, [M ? (w = (O = t.slots).cellTemplate) == null ? void 0 : w.call(O, {
|
|
1252
1252
|
cell: m,
|
|
1253
1253
|
row: o
|
|
1254
1254
|
}) : Ye(m, o)])]);
|
|
1255
1255
|
})]);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return
|
|
1257
|
+
function Oe(o, S, n, l) {
|
|
1258
|
+
return je(o, S, n, P(o));
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1261
|
-
function
|
|
1260
|
+
const Fe = [Oe, Ge, Te];
|
|
1261
|
+
function fe(o, S) {
|
|
1262
1262
|
const n = _(o);
|
|
1263
|
-
return a.value.map((l,
|
|
1263
|
+
return a.value.map((l, g) => Fe[l.type](l, n, g, S));
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function ke(o) {
|
|
1266
1266
|
const S = _(o);
|
|
1267
1267
|
return a.value.map((n) => Object.values(n.data).filter((l) => S[l.field] && l.rowSpan > 1).map((l) => f("div", {
|
|
1268
|
-
key:
|
|
1268
|
+
key: I(n, l.index),
|
|
1269
1269
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
1270
1270
|
style: s(n, l, S)
|
|
1271
1271
|
}, [l.data])));
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Be() {
|
|
1274
1274
|
return f("div", {
|
|
1275
1275
|
ref: u,
|
|
1276
1276
|
class: he
|
|
1277
1277
|
}, [f("div", {
|
|
1278
1278
|
class: "fv-grid-data",
|
|
1279
|
-
style:
|
|
1280
|
-
}, [
|
|
1279
|
+
style: we.value
|
|
1280
|
+
}, [fe(Z.value.leftColumns.filter((o) => o.visible), "left")]), f("div", {
|
|
1281
1281
|
class: "fv-grid-merge-date",
|
|
1282
|
-
style:
|
|
1283
|
-
}, [
|
|
1282
|
+
style: Me.value
|
|
1283
|
+
}, [ke(Z.value.leftColumns.filter((o) => o.visible))])]);
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Ee() {
|
|
1286
1286
|
return f("div", {
|
|
1287
|
-
ref:
|
|
1287
|
+
ref: r,
|
|
1288
1288
|
class: "fv-grid-content-primary"
|
|
1289
1289
|
}, [f("div", {
|
|
1290
1290
|
class: "fv-grid-data",
|
|
1291
1291
|
style: R.value
|
|
1292
|
-
}, [
|
|
1292
|
+
}, [fe(Z.value.primaryColumns.filter((o) => o.visible), "primary")]), f("div", {
|
|
1293
1293
|
class: "fv-grid-merge-date",
|
|
1294
|
-
style:
|
|
1295
|
-
}, [
|
|
1294
|
+
style: Ie.value
|
|
1295
|
+
}, [ke(Z.value.primaryColumns.filter((o) => o.visible))])]);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Ve() {
|
|
1298
1298
|
return f("div", {
|
|
1299
|
-
ref:
|
|
1300
|
-
class:
|
|
1299
|
+
ref: x,
|
|
1300
|
+
class: ue
|
|
1301
1301
|
}, [f("div", {
|
|
1302
1302
|
class: "fv-grid-data",
|
|
1303
1303
|
style: Qe.value
|
|
1304
|
-
}, [
|
|
1304
|
+
}, [fe(Z.value.rightColumns.filter((o) => o.visible), "right")]), f("div", {
|
|
1305
1305
|
class: "fv-grid-merge-date",
|
|
1306
1306
|
style: Ze.value
|
|
1307
|
-
}, [
|
|
1307
|
+
}, [ke(Z.value.rightColumns.filter((o) => o.visible))])]);
|
|
1308
1308
|
}
|
|
1309
1309
|
function qe() {
|
|
1310
1310
|
const o = [];
|
|
1311
|
-
return
|
|
1311
|
+
return ae.value && o.push(Be()), o.push(Ee()), J.value && o.push(Ve()), o;
|
|
1312
1312
|
}
|
|
1313
1313
|
return {
|
|
1314
1314
|
renderDataArea: qe
|
|
1315
1315
|
};
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1317
|
+
const mi = /* @__PURE__ */ Ot({
|
|
1318
1318
|
name: "FDataGridRowForm",
|
|
1319
1319
|
props: {
|
|
1320
1320
|
columns: {
|
|
@@ -1378,7 +1378,7 @@ const cr = /* @__PURE__ */ Tt({
|
|
|
1378
1378
|
setup(e, {
|
|
1379
1379
|
emit: t
|
|
1380
1380
|
}) {
|
|
1381
|
-
return () => f(
|
|
1381
|
+
return () => f(wo, {
|
|
1382
1382
|
fields: e.fields,
|
|
1383
1383
|
formData: e.formData,
|
|
1384
1384
|
showHeader: e.showHeader,
|
|
@@ -1389,69 +1389,69 @@ const cr = /* @__PURE__ */ Tt({
|
|
|
1389
1389
|
headerTitleRenderFunction: e.headerTitleRenderFunction,
|
|
1390
1390
|
headerContentRenderFunction: e.headerContentRenderFunction,
|
|
1391
1391
|
footerRenderFunction: e.footerRenderFunction,
|
|
1392
|
-
callback: (...
|
|
1393
|
-
"onUpdate:modelValue": (
|
|
1394
|
-
t("fieldsValueChange",
|
|
1392
|
+
callback: (...r) => e.fieldsCallback(...r),
|
|
1393
|
+
"onUpdate:modelValue": (r) => {
|
|
1394
|
+
t("fieldsValueChange", r, e.data);
|
|
1395
1395
|
},
|
|
1396
|
-
onEvent: (
|
|
1397
|
-
t("fieldsEvent",
|
|
1396
|
+
onEvent: (r) => {
|
|
1397
|
+
t("fieldsEvent", r);
|
|
1398
1398
|
},
|
|
1399
|
-
onClick: (...
|
|
1400
|
-
t("click", ...
|
|
1399
|
+
onClick: (...r) => {
|
|
1400
|
+
t("click", ...r);
|
|
1401
1401
|
}
|
|
1402
1402
|
}, null);
|
|
1403
1403
|
}
|
|
1404
1404
|
});
|
|
1405
|
-
function
|
|
1405
|
+
function vi(e, t, r, u, x, N, A, W, z, T, b, d, C, p, a, c, h) {
|
|
1406
1406
|
const {
|
|
1407
|
-
transformColumnToField:
|
|
1408
|
-
} =
|
|
1407
|
+
transformColumnToField: y
|
|
1408
|
+
} = ci(), {
|
|
1409
1409
|
isNull: E,
|
|
1410
1410
|
isUndefined: U
|
|
1411
|
-
} =
|
|
1411
|
+
} = xt(), {
|
|
1412
1412
|
totalItems: Y,
|
|
1413
1413
|
rawView: _
|
|
1414
1414
|
} = c, {
|
|
1415
|
-
calculateCellPositionInRow:
|
|
1415
|
+
calculateCellPositionInRow: I,
|
|
1416
1416
|
cellKey: Q,
|
|
1417
1417
|
cellPosition: X,
|
|
1418
1418
|
rowKey: P,
|
|
1419
1419
|
rowPosition: s,
|
|
1420
|
-
rowSpanCellPosition:
|
|
1420
|
+
rowSpanCellPosition: ce,
|
|
1421
1421
|
groupCellPosition: ee,
|
|
1422
1422
|
summaryCellPosition: G
|
|
1423
1423
|
} = A, {
|
|
1424
|
-
cellContentClass:
|
|
1424
|
+
cellContentClass: ie,
|
|
1425
1425
|
cellContentPosition: te,
|
|
1426
1426
|
cellContentClassWithEllipsis: re
|
|
1427
1427
|
} = N, {
|
|
1428
1428
|
collpaseGroupIconClass: pe
|
|
1429
|
-
} =
|
|
1429
|
+
} = T, {
|
|
1430
1430
|
gridCellClass: ve,
|
|
1431
1431
|
gridRowClass: H,
|
|
1432
|
-
onClickRow:
|
|
1433
|
-
onMouseoverRow:
|
|
1432
|
+
onClickRow: se,
|
|
1433
|
+
onMouseoverRow: le,
|
|
1434
1434
|
onMouseoutRow: ye
|
|
1435
1435
|
} = d, {
|
|
1436
|
-
onClickCell:
|
|
1436
|
+
onClickCell: Pe
|
|
1437
1437
|
} = z, {
|
|
1438
|
-
toggleGroupRow:
|
|
1438
|
+
toggleGroupRow: Se
|
|
1439
1439
|
} = C, {
|
|
1440
|
-
columnContext:
|
|
1441
|
-
hasLeftFixedColumn:
|
|
1440
|
+
columnContext: Z,
|
|
1441
|
+
hasLeftFixedColumn: ae,
|
|
1442
1442
|
hasRightFixedColumn: J
|
|
1443
|
-
} =
|
|
1443
|
+
} = W, ge = oe(() => {
|
|
1444
1444
|
var l;
|
|
1445
|
-
if (e.displayType !== "Card" || (((l = e.columns) == null ? void 0 : l.length) ?? 0) === 0 || e.fit &&
|
|
1445
|
+
if (e.displayType !== "Card" || (((l = e.columns) == null ? void 0 : l.length) ?? 0) === 0 || e.fit && ot(e.columnOption))
|
|
1446
1446
|
return;
|
|
1447
|
-
const n =
|
|
1447
|
+
const n = Z.value.primaryColumnsWidth || 0;
|
|
1448
1448
|
return n > 0 ? `${n}px` : void 0;
|
|
1449
1449
|
}), {
|
|
1450
|
-
navigateOnKeyUp:
|
|
1450
|
+
navigateOnKeyUp: Le,
|
|
1451
1451
|
navigateOnKeyDown: Ce
|
|
1452
|
-
} = b,
|
|
1453
|
-
var l,
|
|
1454
|
-
return ((
|
|
1452
|
+
} = b, De = (n) => (n || []).some((l) => st(l) ? !(l.type === Tt || l.type === rt && !De(l.children)) : !0) ? n : null, he = (n) => {
|
|
1453
|
+
var l, g, m;
|
|
1454
|
+
return ((g = (l = n.column) == null ? void 0 : l.editor) == null ? void 0 : g.type) === "switch" || ((m = n.column) == null ? void 0 : m.dataType) === "boolean" ? {
|
|
1455
1455
|
display: "flex",
|
|
1456
1456
|
flexGrow: "1",
|
|
1457
1457
|
minWidth: 0,
|
|
@@ -1460,33 +1460,33 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1460
1460
|
flexGrow: "1",
|
|
1461
1461
|
minWidth: 0
|
|
1462
1462
|
};
|
|
1463
|
-
},
|
|
1463
|
+
}, ue = it({
|
|
1464
1464
|
"fv-grid-content-left-fixed": !0
|
|
1465
|
-
}), R =
|
|
1465
|
+
}), R = it({
|
|
1466
1466
|
"fv-grid-content-right-fixed": !0
|
|
1467
1467
|
});
|
|
1468
|
-
|
|
1469
|
-
!n[0] && !n[1].length ? (
|
|
1468
|
+
We([Y, _], (n) => {
|
|
1469
|
+
!n[0] && !n[1].length ? (ue["fv-grid-content-left-fixed"] = !1, R["fv-grid-content-right-fixed"] = !1) : (ue["fv-grid-content-left-fixed"] = !0, R["fv-grid-content-right-fixed"] = !0);
|
|
1470
1470
|
});
|
|
1471
1471
|
const {
|
|
1472
|
-
gridDataStyle:
|
|
1473
|
-
gridMergedDataStyle:
|
|
1474
|
-
leftFixedGridDataStyle:
|
|
1472
|
+
gridDataStyle: Ie,
|
|
1473
|
+
gridMergedDataStyle: we,
|
|
1474
|
+
leftFixedGridDataStyle: Me,
|
|
1475
1475
|
leftFixedGridMergedDataStyle: Qe,
|
|
1476
1476
|
rightFixedGridDataStyle: Ze,
|
|
1477
|
-
rightFixedGridMergedDataStyle:
|
|
1477
|
+
rightFixedGridMergedDataStyle: xe
|
|
1478
1478
|
} = p;
|
|
1479
1479
|
function Re(n, l) {
|
|
1480
|
-
n.stopPropagation(), l.collapse = !l.collapse, a.value =
|
|
1480
|
+
n.stopPropagation(), l.collapse = !l.collapse, a.value = Se(l.collapse ? "collapse" : "expand", l, a.value);
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var
|
|
1484
|
-
const
|
|
1482
|
+
function Ge(n, l) {
|
|
1483
|
+
var M;
|
|
1484
|
+
const g = [];
|
|
1485
1485
|
if (!n.groupField)
|
|
1486
|
-
return
|
|
1486
|
+
return g;
|
|
1487
1487
|
const m = !!l[n.groupField];
|
|
1488
|
-
for (let
|
|
1489
|
-
|
|
1488
|
+
for (let O = 0; O <= n.layer; O++)
|
|
1489
|
+
g.push(f("div", {
|
|
1490
1490
|
class: "fv-grid-group-row-icon",
|
|
1491
1491
|
style: {
|
|
1492
1492
|
position: "relative",
|
|
@@ -1496,29 +1496,29 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1496
1496
|
}, [f("span", {
|
|
1497
1497
|
class: pe(n)
|
|
1498
1498
|
}, null)]));
|
|
1499
|
-
if ((
|
|
1500
|
-
|
|
1499
|
+
if ((M = e.group) != null && M.customRender)
|
|
1500
|
+
g.push(e.group.customRender(n));
|
|
1501
1501
|
else {
|
|
1502
|
-
const
|
|
1503
|
-
if (
|
|
1502
|
+
const O = n.data[n.groupField];
|
|
1503
|
+
if (O) {
|
|
1504
1504
|
const w = {
|
|
1505
1505
|
flex: "1",
|
|
1506
1506
|
wordBreak: "break-all",
|
|
1507
1507
|
minWidth: 0
|
|
1508
1508
|
};
|
|
1509
|
-
|
|
1510
|
-
ref:
|
|
1509
|
+
g.push(f("div", {
|
|
1510
|
+
ref: O.setRef,
|
|
1511
1511
|
key: Q(n, n.layer + 1),
|
|
1512
1512
|
class: e.displayType !== "Card" ? "fv-grid-cell" : void 0,
|
|
1513
|
-
style: e.displayType === "Card" ? w : m ? ee(
|
|
1513
|
+
style: e.displayType === "Card" ? w : m ? ee(O, l, n.layer) : {
|
|
1514
1514
|
flex: "1",
|
|
1515
1515
|
minWidth: 0
|
|
1516
1516
|
},
|
|
1517
|
-
title:
|
|
1518
|
-
}, [
|
|
1517
|
+
title: O.data
|
|
1518
|
+
}, [O.data]));
|
|
1519
1519
|
}
|
|
1520
1520
|
Object.values(n.data).filter((w) => w.field !== n.groupField && w.colSpan !== 0).filter((w) => !!l[w.field]).forEach((w) => {
|
|
1521
|
-
|
|
1521
|
+
g.push(f("div", {
|
|
1522
1522
|
ref: w.setRef,
|
|
1523
1523
|
key: Q(n, w.index),
|
|
1524
1524
|
class: "fv-grid-cell",
|
|
@@ -1527,17 +1527,17 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1527
1527
|
}, [w.data]));
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
|
-
return
|
|
1530
|
+
return g;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
var
|
|
1534
|
-
n.height = ((
|
|
1532
|
+
function Ne(n, l, g) {
|
|
1533
|
+
var M;
|
|
1534
|
+
n.height = ((M = e.rowOption) == null ? void 0 : M.height) || 28, n.raw.__fv_data_height__ = n.height;
|
|
1535
1535
|
const m = (n.layer + 1) * 18;
|
|
1536
1536
|
return n.layer > -1 && f("div", {
|
|
1537
1537
|
ref: n.setRef,
|
|
1538
1538
|
key: P(n),
|
|
1539
1539
|
class: {
|
|
1540
|
-
...H(n,
|
|
1540
|
+
...H(n, g),
|
|
1541
1541
|
"d-flex": !0,
|
|
1542
1542
|
"align-items-center": !0
|
|
1543
1543
|
},
|
|
@@ -1547,41 +1547,41 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1547
1547
|
paddingLeft: `${m}px`,
|
|
1548
1548
|
width: "100%"
|
|
1549
1549
|
},
|
|
1550
|
-
onClick: (
|
|
1551
|
-
onMouseover: (
|
|
1552
|
-
}, [
|
|
1550
|
+
onClick: (O) => se(O, n),
|
|
1551
|
+
onMouseover: (O) => le(O, n)
|
|
1552
|
+
}, [Ge(n, l)]);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
const
|
|
1554
|
+
function Te(n, l) {
|
|
1555
|
+
const g = [];
|
|
1556
1556
|
if (!n.groupField)
|
|
1557
|
-
return
|
|
1557
|
+
return g;
|
|
1558
1558
|
const m = n.data[n.groupField];
|
|
1559
1559
|
if (!m)
|
|
1560
|
-
return
|
|
1561
|
-
const
|
|
1560
|
+
return g;
|
|
1561
|
+
const M = !!l[n.groupField], O = e.displayType === "Card" ? {
|
|
1562
1562
|
flex: "1",
|
|
1563
1563
|
minWidth: 0,
|
|
1564
1564
|
lineHeight: "26px"
|
|
1565
|
-
} :
|
|
1565
|
+
} : M ? G(m, l, n.layer) : {
|
|
1566
1566
|
flex: "1",
|
|
1567
1567
|
minWidth: 0,
|
|
1568
1568
|
lineHeight: "26px"
|
|
1569
1569
|
};
|
|
1570
|
-
return
|
|
1570
|
+
return g.push(f("div", {
|
|
1571
1571
|
ref: m.setRef,
|
|
1572
1572
|
key: Q(n, n.layer + 1),
|
|
1573
1573
|
class: {
|
|
1574
1574
|
"fv-grid-cell": e.displayType !== "Card"
|
|
1575
1575
|
},
|
|
1576
|
-
style:
|
|
1577
|
-
}, [m.data])),
|
|
1576
|
+
style: O
|
|
1577
|
+
}, [m.data])), g;
|
|
1578
1578
|
}
|
|
1579
|
-
function $e(n, l,
|
|
1579
|
+
function $e(n, l, g) {
|
|
1580
1580
|
var m;
|
|
1581
1581
|
return n.height = ((m = e.rowOption) == null ? void 0 : m.height) || 28, n.raw.__fv_data_height__ = n.height, n.layer > -1 && f("div", {
|
|
1582
1582
|
ref: n.setRef,
|
|
1583
1583
|
key: P(n),
|
|
1584
|
-
class: H(n,
|
|
1584
|
+
class: H(n, g),
|
|
1585
1585
|
style: {
|
|
1586
1586
|
// top: `${summaryRow.top}px`,
|
|
1587
1587
|
// width: `${Math.max(columnContext.value.primaryColumnsWidth, useVirtualScrollComposition.viewPortWidth.value)}px`,
|
|
@@ -1591,13 +1591,13 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1591
1591
|
justifyContent: "end",
|
|
1592
1592
|
width: "100%"
|
|
1593
1593
|
},
|
|
1594
|
-
onClick: (
|
|
1595
|
-
onMouseover: (
|
|
1596
|
-
}, [
|
|
1594
|
+
onClick: (M) => se(M, n),
|
|
1595
|
+
onMouseover: (M) => le(M, n)
|
|
1596
|
+
}, [Te(n, l)]);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Ue(n, l) {
|
|
1599
|
-
var
|
|
1600
|
-
return n.showTips && typeof ((
|
|
1599
|
+
var g, m, M;
|
|
1600
|
+
return n.showTips && typeof ((g = n.column) == null ? void 0 : g.formatter) != "function" && ((m = n.column) == null ? void 0 : m.dataType) !== "commands" && ((M = n.column) == null ? void 0 : M.dataType) !== "setting" ? f("div", {
|
|
1601
1601
|
class: re(n),
|
|
1602
1602
|
title: n.formatter(n, l)
|
|
1603
1603
|
}, [n.formatter(n, l)]) : f("div", {
|
|
@@ -1608,96 +1608,96 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1608
1608
|
return f("div", null, [Je("******")]);
|
|
1609
1609
|
}
|
|
1610
1610
|
function Ye(n) {
|
|
1611
|
-
var m,
|
|
1611
|
+
var m, M;
|
|
1612
1612
|
const l = !E(n.data) && !U(n.data) ? n.data.toString() : n.data;
|
|
1613
|
-
return ((
|
|
1613
|
+
return ((M = (m = n.column) == null ? void 0 : m.editor) == null ? void 0 : M.showType) === "password" ? j() : n.showTips ? f("div", {
|
|
1614
1614
|
class: re(n),
|
|
1615
1615
|
title: l
|
|
1616
1616
|
}, [l]) : f("div", {
|
|
1617
1617
|
class: re(n)
|
|
1618
1618
|
}, [l]);
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1621
|
-
return n.mode ===
|
|
1620
|
+
function je(n, l) {
|
|
1621
|
+
return n.mode === kt.editing ? f("div", {
|
|
1622
1622
|
style: he(n)
|
|
1623
1623
|
}, [n.getEditor(n)]) : n.column.columnTemplate ? n.column.columnTemplate(n, l) : n.formatter ? Ue(n, l) : Ye(n);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1626
|
-
var
|
|
1627
|
-
const w = s(n), $ = n.height || ((
|
|
1625
|
+
function Oe(n, l, g, m, M, O) {
|
|
1626
|
+
var K;
|
|
1627
|
+
const w = s(n), $ = n.height || ((K = e.rowOption) == null ? void 0 : K.height) || 28;
|
|
1628
1628
|
return f("div", {
|
|
1629
1629
|
ref: n.setRef,
|
|
1630
1630
|
key: P(n),
|
|
1631
|
-
class: H(n,
|
|
1631
|
+
class: H(n, g),
|
|
1632
1632
|
style: {
|
|
1633
1633
|
...w,
|
|
1634
1634
|
position: m,
|
|
1635
|
-
display:
|
|
1636
|
-
width:
|
|
1635
|
+
display: M,
|
|
1636
|
+
width: O,
|
|
1637
1637
|
minHeight: `${$}px`,
|
|
1638
1638
|
height: m === "static" ? void 0 : w.height
|
|
1639
1639
|
},
|
|
1640
|
-
onClick: (
|
|
1641
|
-
onMouseover: (
|
|
1642
|
-
onMouseout: (
|
|
1643
|
-
}, [Object.values(n.data).filter((
|
|
1644
|
-
var
|
|
1645
|
-
const
|
|
1646
|
-
cell:
|
|
1640
|
+
onClick: (B) => se(B, n),
|
|
1641
|
+
onMouseover: (B) => le(B, n),
|
|
1642
|
+
onMouseout: (B) => ye(B, n)
|
|
1643
|
+
}, [Object.values(n.data).filter((B) => l[B.field] && B.rowSpan === 1).map((B) => {
|
|
1644
|
+
var et, tt, lt;
|
|
1645
|
+
const Ke = t.slots.cellTemplate && De(t.slots.cellTemplate({
|
|
1646
|
+
cell: B,
|
|
1647
1647
|
row: n
|
|
1648
|
-
})),
|
|
1649
|
-
return m === "static" && (delete
|
|
1650
|
-
ref:
|
|
1651
|
-
key: Q(n,
|
|
1652
|
-
class: ve(
|
|
1648
|
+
})), ne = X(n, B, l);
|
|
1649
|
+
return m === "static" && (delete ne.height, delete ne.left, (et = e.columnOption) != null && et.fitColumns && e.fit ? (ne.flex = "1", ne.overflow = "hidden", ne.textOverflow = "ellipsis", ne.whiteSpace = "nowrap", delete ne.width) : ne.flexShrink = "0", ne.borderTop = "1px solid #e6e9f0"), f("div", {
|
|
1650
|
+
ref: B.setRef,
|
|
1651
|
+
key: Q(n, B.index),
|
|
1652
|
+
class: ve(B, n),
|
|
1653
1653
|
style: {
|
|
1654
|
-
...
|
|
1654
|
+
...ne,
|
|
1655
1655
|
position: m
|
|
1656
1656
|
},
|
|
1657
1657
|
onClick: (Xe) => {
|
|
1658
|
-
|
|
1658
|
+
Pe(Xe, B, n, B.column);
|
|
1659
1659
|
},
|
|
1660
|
-
onKeydown: (Xe) =>
|
|
1660
|
+
onKeydown: (Xe) => Le(Xe, B)
|
|
1661
1661
|
}, [f("div", {
|
|
1662
|
-
class:
|
|
1663
|
-
style: te(
|
|
1664
|
-
}, [
|
|
1665
|
-
cell:
|
|
1662
|
+
class: ie(B),
|
|
1663
|
+
style: te(B)
|
|
1664
|
+
}, [Ke ? (lt = (tt = t.slots).cellTemplate) == null ? void 0 : lt.call(tt, {
|
|
1665
|
+
cell: B,
|
|
1666
1666
|
row: n
|
|
1667
|
-
}) :
|
|
1667
|
+
}) : je(B, n)])]);
|
|
1668
1668
|
})]);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function Fe(n, l) {
|
|
1671
1671
|
if (!l)
|
|
1672
1672
|
return {};
|
|
1673
|
-
const
|
|
1673
|
+
const g = {};
|
|
1674
1674
|
return l.forEach((m) => {
|
|
1675
|
-
|
|
1676
|
-
}),
|
|
1675
|
+
g[m.id] = Cn(n.raw, m.field);
|
|
1676
|
+
}), g;
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
var $,
|
|
1680
|
-
const m = n.height || (($ = e.rowOption) == null ? void 0 : $.height) || 28,
|
|
1678
|
+
function fe(n, l, g) {
|
|
1679
|
+
var $, K;
|
|
1680
|
+
const m = n.height || (($ = e.rowOption) == null ? void 0 : $.height) || 28, O = e.displayType === "Card" && (((K = e.columns) == null ? void 0 : K.length) ?? 0) > 0 && !(e.fit && ot(e.columnOption)), w = f(mi, {
|
|
1681
1681
|
columns: h.value,
|
|
1682
|
-
fields:
|
|
1682
|
+
fields: g,
|
|
1683
1683
|
mainTitle: e.cardMainTitle,
|
|
1684
1684
|
showHeader: e.showCardHeader,
|
|
1685
1685
|
showFooter: e.showCardFooter,
|
|
1686
1686
|
data: n.raw,
|
|
1687
|
-
formData:
|
|
1687
|
+
formData: Fe(n, g),
|
|
1688
1688
|
headerTitleRenderFunction: e.cardTitleTemplate ? () => e.cardTitleTemplate(n.raw) : null,
|
|
1689
1689
|
headerContentRenderFunction: e.cardHeaderTemplate ? () => e.cardHeaderTemplate(n.raw) : null,
|
|
1690
1690
|
footerRenderFunction: e.cardFooterTemplate ? () => e.cardFooterTemplate(n.raw) : null,
|
|
1691
1691
|
toolbar: e.cardToolbar,
|
|
1692
|
-
fieldsCallback: e.fieldsCallback ? (...
|
|
1693
|
-
onFieldsEvent: (
|
|
1694
|
-
t.emit("fieldsEvent",
|
|
1692
|
+
fieldsCallback: e.fieldsCallback ? (...B) => e.fieldsCallback(...B) : null,
|
|
1693
|
+
onFieldsEvent: (B) => {
|
|
1694
|
+
t.emit("fieldsEvent", B);
|
|
1695
1695
|
},
|
|
1696
|
-
onFieldsValueChange: (...
|
|
1697
|
-
t.emit("fieldsValueChange", ...
|
|
1696
|
+
onFieldsValueChange: (...B) => {
|
|
1697
|
+
t.emit("fieldsValueChange", ...B);
|
|
1698
1698
|
},
|
|
1699
|
-
onClick: (...
|
|
1700
|
-
t.emit("fieldsClick", ...
|
|
1699
|
+
onClick: (...B) => {
|
|
1700
|
+
t.emit("fieldsClick", ...B);
|
|
1701
1701
|
}
|
|
1702
1702
|
}, null);
|
|
1703
1703
|
return f("div", {
|
|
@@ -1710,22 +1710,22 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1710
1710
|
...e.displayType === "Card" ? {
|
|
1711
1711
|
width: "100%",
|
|
1712
1712
|
boxSizing: "border-box",
|
|
1713
|
-
...
|
|
1713
|
+
...O ? {
|
|
1714
1714
|
overflowX: "auto",
|
|
1715
1715
|
overflowY: "visible"
|
|
1716
1716
|
} : {},
|
|
1717
1717
|
...ge.value ? {
|
|
1718
1718
|
minWidth: ge.value
|
|
1719
1719
|
} : {},
|
|
1720
|
-
...
|
|
1720
|
+
...ot(e.columnOption) && e.fit ? {
|
|
1721
1721
|
maxWidth: "100%"
|
|
1722
1722
|
} : {}
|
|
1723
1723
|
} : {}
|
|
1724
1724
|
},
|
|
1725
|
-
onClick: (
|
|
1726
|
-
onMouseover: (
|
|
1727
|
-
onMouseout: (
|
|
1728
|
-
}, [
|
|
1725
|
+
onClick: (B) => se(B, n),
|
|
1726
|
+
onMouseover: (B) => le(B, n),
|
|
1727
|
+
onMouseout: (B) => ye(B, n)
|
|
1728
|
+
}, [O ? f("div", {
|
|
1729
1729
|
style: {
|
|
1730
1730
|
display: "inline-block",
|
|
1731
1731
|
minWidth: "100%",
|
|
@@ -1734,21 +1734,21 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
}, [w]) : w]);
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function ke(n, l, g, m, M, O) {
|
|
1738
1738
|
const w = [];
|
|
1739
|
-
return m &&
|
|
1740
|
-
}
|
|
1741
|
-
function
|
|
1742
|
-
return e.displayType === "Card" ?
|
|
1743
|
-
}
|
|
1744
|
-
const
|
|
1745
|
-
function
|
|
1746
|
-
let
|
|
1747
|
-
return a.value.map((m,
|
|
1748
|
-
const
|
|
1749
|
-
let w =
|
|
1750
|
-
const $ = h.value.filter((
|
|
1751
|
-
return
|
|
1739
|
+
return m && O.length > 0 && w.push(Oe(n, l, g, "static", "flex", "100%")), M && m.length > 0 && w.push(fe(n, g, m)), w;
|
|
1740
|
+
}
|
|
1741
|
+
function Be(n, l, g, m, M, O) {
|
|
1742
|
+
return e.displayType === "Card" ? ke(n, l, g, m, M, O) : Oe(n, l, g);
|
|
1743
|
+
}
|
|
1744
|
+
const Ee = [Be, Ne, $e];
|
|
1745
|
+
function Ve(n, l) {
|
|
1746
|
+
let g = I(n);
|
|
1747
|
+
return a.value.map((m, M) => {
|
|
1748
|
+
const O = e.fieldsResolver(m.raw);
|
|
1749
|
+
let w = O || [];
|
|
1750
|
+
const $ = h.value.filter((K) => K.visible && K.dataType !== _e && K.dataType !== He);
|
|
1751
|
+
return O || $.length > 0 && (w = $.map((K) => y(K))), (!g || Object.keys(g).length === 0) && (g = I(w)), Ee[m.type](m, g, M, w, O, $);
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
function qe() {
|
|
@@ -1773,13 +1773,13 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function o() {
|
|
1775
1775
|
return f("div", {
|
|
1776
|
-
ref:
|
|
1776
|
+
ref: r,
|
|
1777
1777
|
class: "fv-grid-content-primary",
|
|
1778
1778
|
style: qe()
|
|
1779
1779
|
}, [f("div", {
|
|
1780
1780
|
class: "fv-grid-data",
|
|
1781
|
-
style:
|
|
1782
|
-
}, [
|
|
1781
|
+
style: Ie.value
|
|
1782
|
+
}, [Ve(Z.value.primaryColumns.filter((n) => n.visible))])]);
|
|
1783
1783
|
}
|
|
1784
1784
|
function S() {
|
|
1785
1785
|
const n = [];
|
|
@@ -1789,49 +1789,49 @@ function fr(e, t, i, u, F, N, A, L, z, x, b, d, C, p, a, c, h) {
|
|
|
1789
1789
|
renderDataArea: S
|
|
1790
1790
|
};
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1792
|
+
function gi(e) {
|
|
1793
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !st(e);
|
|
1794
1794
|
}
|
|
1795
|
-
const
|
|
1795
|
+
const yi = /* @__PURE__ */ Ot({
|
|
1796
1796
|
name: "FDataGrid",
|
|
1797
|
-
props:
|
|
1797
|
+
props: si,
|
|
1798
1798
|
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent", "fieldsValueChange", "fieldsClick"],
|
|
1799
1799
|
setup(e, t) {
|
|
1800
|
-
var
|
|
1800
|
+
var pt, Ct;
|
|
1801
1801
|
const {
|
|
1802
|
-
isSmall:
|
|
1803
|
-
} =
|
|
1804
|
-
let u = [],
|
|
1805
|
-
const N = de(!1), A = 0,
|
|
1802
|
+
isSmall: r
|
|
1803
|
+
} = En();
|
|
1804
|
+
let u = [], x = [];
|
|
1805
|
+
const N = de(!1), A = 0, W = de(((pt = e.rowOption) == null ? void 0 : pt.height) || 28), z = oe(() => e.displayType === "Card"), T = de(20), b = de(e.columns), d = Pn(e), C = de(), p = de(), a = de(), c = de(), h = de(), y = de([]), E = de(e.scrollbarMode === "always"), U = de(((Ct = e.rowOption) == null ? void 0 : Ct.wrapContent) || !1), Y = Dn(e, d), _ = In(e, t), I = Mn(e), {
|
|
1806
1806
|
showLoading: Q,
|
|
1807
1807
|
renderLoading: X
|
|
1808
|
-
} =
|
|
1808
|
+
} = Gn(e, C), P = new Map(b.value.map((i) => [i.field, i])), s = Nn(e, P, _, I, d), ce = jn(e, s), {
|
|
1809
1809
|
shouldRenderPagination: ee
|
|
1810
|
-
} =
|
|
1811
|
-
showSelectAll:
|
|
1810
|
+
} = ce, G = Vn(e, s, d, y, t), {
|
|
1811
|
+
showSelectAll: ie,
|
|
1812
1812
|
showSelection: te,
|
|
1813
1813
|
selectedValues: re,
|
|
1814
1814
|
updateSelectAllStatus: pe
|
|
1815
|
-
} = G, ve =
|
|
1816
|
-
containerStyleObject:
|
|
1817
|
-
} =
|
|
1818
|
-
var
|
|
1819
|
-
return e.displayType === "Card" && (((
|
|
1820
|
-
}), ye =
|
|
1821
|
-
var
|
|
1822
|
-
return e.displayType === "Card" && (((
|
|
1815
|
+
} = G, ve = oe(() => e.disabled), H = oe(() => e.virtualized && e.displayType !== "Card" ? Math.min(s.dataView.value.length, T.value) : s.dataView.value.length), {
|
|
1816
|
+
containerStyleObject: se
|
|
1817
|
+
} = An(e, y), le = oe(() => {
|
|
1818
|
+
var i;
|
|
1819
|
+
return e.displayType === "Card" && (((i = e.columns) == null ? void 0 : i.length) ?? 0) === 0;
|
|
1820
|
+
}), ye = oe(() => {
|
|
1821
|
+
var i;
|
|
1822
|
+
return e.displayType === "Card" && (((i = e.columns) == null ? void 0 : i.length) ?? 0) > 0 && !!e.fit && ot(e.columnOption);
|
|
1823
1823
|
});
|
|
1824
|
-
|
|
1825
|
-
const
|
|
1826
|
-
if (!
|
|
1827
|
-
return
|
|
1824
|
+
oe(() => {
|
|
1825
|
+
const i = se.value;
|
|
1826
|
+
if (!le.value)
|
|
1827
|
+
return i;
|
|
1828
1828
|
const {
|
|
1829
|
-
overflow:
|
|
1830
|
-
overflowX:
|
|
1831
|
-
overflowY:
|
|
1832
|
-
height:
|
|
1829
|
+
overflow: v,
|
|
1830
|
+
overflowX: F,
|
|
1831
|
+
overflowY: D,
|
|
1832
|
+
height: L,
|
|
1833
1833
|
...k
|
|
1834
|
-
} =
|
|
1834
|
+
} = i, q = e.height > 0 ? {
|
|
1835
1835
|
height: `${e.height}px`
|
|
1836
1836
|
} : {
|
|
1837
1837
|
height: "100%",
|
|
@@ -1854,388 +1854,393 @@ const vr = /* @__PURE__ */ Tt({
|
|
|
1854
1854
|
} : {}
|
|
1855
1855
|
};
|
|
1856
1856
|
});
|
|
1857
|
-
const
|
|
1858
|
-
applyCommands:
|
|
1859
|
-
} =
|
|
1860
|
-
applyColumnSetting:
|
|
1861
|
-
removeColumnSetting:
|
|
1862
|
-
} =
|
|
1863
|
-
|
|
1864
|
-
const J =
|
|
1865
|
-
applyColumnSorter:
|
|
1857
|
+
const Pe = zn(e), {
|
|
1858
|
+
applyCommands: Se
|
|
1859
|
+
} = Pe, {
|
|
1860
|
+
applyColumnSetting: Z,
|
|
1861
|
+
removeColumnSetting: ae
|
|
1862
|
+
} = _n(e);
|
|
1863
|
+
Se(b), e.showSetting && Z(b);
|
|
1864
|
+
const J = Hn(e, t), ge = Wn(e), {
|
|
1865
|
+
applyColumnSorter: Le,
|
|
1866
1866
|
columnContext: Ce,
|
|
1867
|
-
updateColumnRenderContext:
|
|
1867
|
+
updateColumnRenderContext: De
|
|
1868
1868
|
} = J;
|
|
1869
|
-
|
|
1870
|
-
const he =
|
|
1869
|
+
Le(s, ge);
|
|
1870
|
+
const he = Ln(e, Ce), ue = Rn(e, t, G, d), R = $n(e, t, d, ue, y), Ie = Un(e, s, W), we = Yn(e, R, Ie), Me = qn(e, s, R, I, d, Ie, we, W), Qe = Xn(e, d, we, Me), Ze = Jn(e, d, we, Me), xe = Qn(e, b, s, H, A, Me, Qe, Ze), {
|
|
1871
1871
|
getVisualData: Re
|
|
1872
|
-
} =
|
|
1872
|
+
} = xe, Ge = Zn(Ce), Ne = Kn(e, Ce, W, z), Te = eo(e, G), {
|
|
1873
1873
|
sidebarWidth: $e,
|
|
1874
1874
|
showSidebarCheckBox: Ue
|
|
1875
|
-
} =
|
|
1875
|
+
} = Te, j = to(e, s, y, Ce, xe, H, A, $e, W, z, R, E), {
|
|
1876
1876
|
onWheel: Ye,
|
|
1877
|
-
dataGridWidth:
|
|
1878
|
-
viewPortHeight:
|
|
1879
|
-
viewPortWidth:
|
|
1880
|
-
resetScroll:
|
|
1881
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
1882
|
-
} = j,
|
|
1883
|
-
calculateColumnsSize:
|
|
1884
|
-
} =
|
|
1885
|
-
const
|
|
1877
|
+
dataGridWidth: je,
|
|
1878
|
+
viewPortHeight: Oe,
|
|
1879
|
+
viewPortWidth: Fe,
|
|
1880
|
+
resetScroll: fe,
|
|
1881
|
+
updateVisibleRowsOnLatestVisibleScope: ke
|
|
1882
|
+
} = j, Be = no(e, Ce, p, Fe, he), {
|
|
1883
|
+
calculateColumnsSize: Ee
|
|
1884
|
+
} = Be, Ve = oo(), qe = io(p, h, s, Ve, j), o = ro(e, t, J, s, he, Y, j), S = oe(() => {
|
|
1885
|
+
const i = {
|
|
1886
1886
|
"fv-grid": !0,
|
|
1887
1887
|
"fv-grid-bordered": e.showBorder,
|
|
1888
1888
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
1889
1889
|
"fv-datagrid-strip": e.showStripe
|
|
1890
1890
|
};
|
|
1891
|
-
return
|
|
1892
|
-
}), n =
|
|
1891
|
+
return hn(i, e.customClass);
|
|
1892
|
+
}), n = oe(() => ({
|
|
1893
1893
|
"fv-grid-content": !0,
|
|
1894
1894
|
"fv-grid-content-hover": E.value,
|
|
1895
1895
|
"fv-grid-wrap-content": U.value,
|
|
1896
1896
|
"fv-grid-scrollbar-visible": j.shouldShowVirticalScrollbar.value && E.value
|
|
1897
|
-
})), l =
|
|
1898
|
-
var
|
|
1899
|
-
const
|
|
1900
|
-
return !
|
|
1901
|
-
}),
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
} = uo(e,
|
|
1915
|
-
|
|
1916
|
-
} = so(
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1897
|
+
})), l = oe(() => {
|
|
1898
|
+
var F, D;
|
|
1899
|
+
const i = {}, v = z.value && le.value;
|
|
1900
|
+
return !v && j.shouldShowHorizontalScrollbar.value && E.value && (i.paddingBottom = "10px"), !v && j.shouldShowVirticalScrollbar.value && E.value, z.value && (i.display = "block", le.value || ye.value ? (i.overflowX = "hidden", i.overflowY = "hidden", i.display = "flex", i.flexDirection = "column", i.flex = "1 1 auto", i.minHeight = "0", i.width = "100%", i.maxWidth = "100%", i.minWidth = "0", i.boxSizing = "border-box") : (((F = e.columns) == null ? void 0 : F.length) ?? 0) > 0 ? i.overflow = !y.value || y.value.length === 0 ? "hidden" : "auto" : (D = e.columnOption) != null && D.fitColumns && e.fit ? i.overflow = "visible" : i.overflow = !y.value || y.value.length === 0 ? "hidden" : "auto"), i;
|
|
1901
|
+
}), g = de(null);
|
|
1902
|
+
function m(i, v) {
|
|
1903
|
+
var F, D;
|
|
1904
|
+
e.enableColumnSettingSolution && ((D = (F = g.value) == null ? void 0 : F.persistColumnWidths) == null || D.call(F, v));
|
|
1905
|
+
}
|
|
1906
|
+
const {
|
|
1907
|
+
renderGridHeader: M,
|
|
1908
|
+
renderGridColumnResizeOverlay: O,
|
|
1909
|
+
shouldShowHeader: w
|
|
1910
|
+
} = lo(e, t, p, c, h, J, s, o, qe, _, Ve, Be, he, G, Te, ge, j, Fe, y, N, m), {
|
|
1911
|
+
renderDataGridPagination: $
|
|
1912
|
+
} = ao(e, t, s, j, ce, G), {
|
|
1913
|
+
renderDataGridSidebar: K
|
|
1914
|
+
} = uo(e, ue, G, Te, j), {
|
|
1915
|
+
renderDisableMask: B
|
|
1916
|
+
} = so(), {
|
|
1917
|
+
renderDataGridSummary: Ke,
|
|
1918
|
+
summaryPosition: ne
|
|
1919
|
+
} = co(e, s, J), {
|
|
1920
|
+
renderHorizontalScrollbar: et
|
|
1921
|
+
} = fo(e, p, j), {
|
|
1922
|
+
renderVerticalScrollbar: tt
|
|
1923
|
+
} = mo(e, p, j), {
|
|
1924
|
+
renderFilterPanel: lt
|
|
1925
|
+
} = vo(e, J, s, _, ge, j), {
|
|
1926
|
+
renderGroupPanel: Xe
|
|
1927
|
+
} = go(e, s, o, Y, j);
|
|
1928
|
+
let Ae = null;
|
|
1929
|
+
function Pt() {
|
|
1930
|
+
var v;
|
|
1926
1931
|
if (!p.value)
|
|
1927
1932
|
return;
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1933
|
+
const i = Math.ceil(p.value.clientHeight / W.value);
|
|
1934
|
+
i > T.value && (T.value = i, ke()), Oe.value = ((v = a.value) == null ? void 0 : v.clientHeight) || 0, je.value = p.value.clientWidth || 0, a.value && (Fe.value = a.value.clientWidth), Ee();
|
|
1930
1935
|
}
|
|
1931
|
-
function
|
|
1932
|
-
|
|
1933
|
-
|
|
1936
|
+
function Dt() {
|
|
1937
|
+
Ae !== null && cancelAnimationFrame(Ae), Ae = requestAnimationFrame(() => {
|
|
1938
|
+
Ae = null, Pt();
|
|
1934
1939
|
});
|
|
1935
1940
|
}
|
|
1936
|
-
|
|
1937
|
-
p.value && (
|
|
1938
|
-
p.value && (
|
|
1941
|
+
Sn(() => {
|
|
1942
|
+
p.value && (T.value = Math.max(Math.ceil(p.value.clientHeight / W.value), T.value), y.value = Re(0, H.value + A - 1), On(p.value, Dt), Ee(), wn(() => {
|
|
1943
|
+
p.value && (je.value = p.value.clientWidth), a.value && (Fe.value = a.value.clientWidth, Oe.value = a.value.clientHeight);
|
|
1939
1944
|
})), Q.value && X();
|
|
1940
|
-
}),
|
|
1941
|
-
|
|
1945
|
+
}), Fn(() => {
|
|
1946
|
+
Ae !== null && cancelAnimationFrame(Ae);
|
|
1942
1947
|
});
|
|
1943
|
-
function
|
|
1944
|
-
const
|
|
1945
|
-
return
|
|
1948
|
+
function It() {
|
|
1949
|
+
const i = s.insertNewDataItem();
|
|
1950
|
+
return fe(), i;
|
|
1946
1951
|
}
|
|
1947
|
-
function
|
|
1948
|
-
const
|
|
1949
|
-
return
|
|
1952
|
+
function Mt() {
|
|
1953
|
+
const i = s.insertNewDataItem(y.value.length);
|
|
1954
|
+
return fe(), i;
|
|
1950
1955
|
}
|
|
1951
|
-
function
|
|
1952
|
-
R.onEditingRow(
|
|
1956
|
+
function Gt(i) {
|
|
1957
|
+
R.onEditingRow(i);
|
|
1953
1958
|
}
|
|
1954
|
-
function
|
|
1955
|
-
s.removeDataItem(
|
|
1959
|
+
function Nt(i) {
|
|
1960
|
+
s.removeDataItem(i), fe();
|
|
1956
1961
|
}
|
|
1957
|
-
function
|
|
1958
|
-
s.removeDataItemById(
|
|
1962
|
+
function jt(i) {
|
|
1963
|
+
s.removeDataItemById(i), fe();
|
|
1959
1964
|
}
|
|
1960
|
-
function
|
|
1961
|
-
R.acceptEditingRow(
|
|
1965
|
+
function Vt(i) {
|
|
1966
|
+
R.acceptEditingRow(i);
|
|
1962
1967
|
}
|
|
1963
|
-
function
|
|
1964
|
-
R.cancelEditingRow(
|
|
1968
|
+
function At(i) {
|
|
1969
|
+
R.cancelEditingRow(i);
|
|
1965
1970
|
}
|
|
1966
|
-
function
|
|
1967
|
-
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
+
function ct(i) {
|
|
1972
|
+
y.value.forEach((v, F) => {
|
|
1973
|
+
const D = s.getVisibleDataItems().findIndex((V) => V === v.raw), L = y.value[F - 1];
|
|
1974
|
+
i.forEach((V) => {
|
|
1975
|
+
v.data[V.field] ? we.updateCellByColumn(v.data[V.field], V, L, v.raw) : v.data[V.field] = we.createCellByColumn(V, D, v.raw, v, L);
|
|
1971
1976
|
});
|
|
1972
|
-
const k = Object.keys(
|
|
1977
|
+
const k = Object.keys(v.data), q = i.map((V) => V.field);
|
|
1973
1978
|
k.filter((V) => !q.includes(V)).forEach((V) => {
|
|
1974
|
-
delete
|
|
1979
|
+
delete v.data[V];
|
|
1975
1980
|
});
|
|
1976
1981
|
});
|
|
1977
1982
|
}
|
|
1978
|
-
|
|
1979
|
-
|
|
1983
|
+
We(() => e.editable, () => {
|
|
1984
|
+
ct(b.value);
|
|
1980
1985
|
});
|
|
1981
|
-
function ze(
|
|
1982
|
-
|
|
1986
|
+
function ze(i) {
|
|
1987
|
+
i && (b.value = i, Se(b), ct(b.value), e.showSetting && Z(b), De(b.value), Le(s, ge), Ee());
|
|
1983
1988
|
}
|
|
1984
|
-
function
|
|
1989
|
+
function zt() {
|
|
1985
1990
|
G.emptyCurrentRowId();
|
|
1986
1991
|
}
|
|
1987
|
-
|
|
1988
|
-
|
|
1992
|
+
We(() => e.showSetting, (i, v) => {
|
|
1993
|
+
i !== v && (i ? Z(b) : ae(b), ze(b.value));
|
|
1989
1994
|
});
|
|
1990
|
-
function
|
|
1991
|
-
|
|
1992
|
-
}
|
|
1993
|
-
function
|
|
1994
|
-
if (
|
|
1995
|
-
const
|
|
1996
|
-
s.load(
|
|
1997
|
-
keepScroll:
|
|
1998
|
-
savedOffsetY:
|
|
1999
|
-
resetScroll:
|
|
1995
|
+
function at(i) {
|
|
1996
|
+
ce.updatePagination(i);
|
|
1997
|
+
}
|
|
1998
|
+
function ft(i, v) {
|
|
1999
|
+
if (i) {
|
|
2000
|
+
const F = !!(v != null && v.keepScrollTop || v != null && v.keepScrollPosition), D = F ? j.offsetY.value : 0;
|
|
2001
|
+
s.load(i), bo({
|
|
2002
|
+
keepScroll: F,
|
|
2003
|
+
savedOffsetY: D,
|
|
2004
|
+
resetScroll: fe,
|
|
2000
2005
|
scrollTo: j.scrollTo
|
|
2001
|
-
}),
|
|
2006
|
+
}), y.value.length || (re.value = []), Ue.value && ie.value && pe();
|
|
2002
2007
|
}
|
|
2003
2008
|
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
}),
|
|
2009
|
+
We(s.shouldGroupingData, (i, v) => {
|
|
2010
|
+
i !== v && (s.updateDataView(), fe());
|
|
2011
|
+
}), We(() => e.columns, (i) => {
|
|
2007
2012
|
if (e.showSetting && e.enableColumnSettingSolution) {
|
|
2008
2013
|
ze(b.value);
|
|
2009
2014
|
return;
|
|
2010
2015
|
}
|
|
2011
|
-
ze(
|
|
2016
|
+
ze(i);
|
|
2012
2017
|
});
|
|
2013
|
-
function
|
|
2014
|
-
|
|
2018
|
+
function ut(i) {
|
|
2019
|
+
ue.activeRowById(i);
|
|
2015
2020
|
}
|
|
2016
|
-
const
|
|
2017
|
-
function
|
|
2021
|
+
const _t = yo(G, s, _, b, ce, d, J, ge, ze, ft, at);
|
|
2022
|
+
function Ht(i, v = {
|
|
2018
2023
|
isCurrent: !0
|
|
2019
2024
|
}) {
|
|
2020
|
-
|
|
2025
|
+
v != null && v.isCurrent && ut(i), G.selectItemById(i);
|
|
2021
2026
|
}
|
|
2022
|
-
function
|
|
2023
|
-
const
|
|
2024
|
-
|
|
2027
|
+
function Wt(i) {
|
|
2028
|
+
const v = d.idField.value, F = y.value.find((D) => D.raw[v] === i);
|
|
2029
|
+
F && ue.clickRowItem(F);
|
|
2025
2030
|
}
|
|
2026
|
-
function
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2031
|
+
function Lt(i) {
|
|
2032
|
+
const v = d.idField.value, F = y.value.find((D) => D.raw[v] === i);
|
|
2033
|
+
F && ue.changeRow(F);
|
|
2029
2034
|
}
|
|
2030
|
-
function
|
|
2031
|
-
G.selectItemByIds(
|
|
2035
|
+
function Rt(i) {
|
|
2036
|
+
G.selectItemByIds(i);
|
|
2032
2037
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return
|
|
2038
|
+
function $t() {
|
|
2039
|
+
return y.value;
|
|
2035
2040
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return
|
|
2041
|
+
function Ut(i) {
|
|
2042
|
+
return y.value.filter((v) => i.includes(v.raw[e.idField]));
|
|
2038
2043
|
}
|
|
2039
|
-
function
|
|
2044
|
+
function Yt() {
|
|
2040
2045
|
return G.getSelectedItems();
|
|
2041
2046
|
}
|
|
2042
|
-
function
|
|
2047
|
+
function qt() {
|
|
2043
2048
|
return G.getSelectionRow();
|
|
2044
2049
|
}
|
|
2045
|
-
function
|
|
2050
|
+
function Xt() {
|
|
2046
2051
|
R.endEditCell();
|
|
2047
2052
|
}
|
|
2048
|
-
function
|
|
2053
|
+
function Jt(i, v = {
|
|
2049
2054
|
clearCurrent: !0
|
|
2050
2055
|
}) {
|
|
2051
|
-
|
|
2056
|
+
v != null && v.clearCurrent && ut(""), G.unSelectItemByIds(i);
|
|
2052
2057
|
}
|
|
2053
|
-
function
|
|
2058
|
+
function mt() {
|
|
2054
2059
|
G.clearSelection();
|
|
2055
2060
|
}
|
|
2056
|
-
function
|
|
2061
|
+
function Qt() {
|
|
2057
2062
|
return G.currentSelectedDataId.value;
|
|
2058
2063
|
}
|
|
2059
|
-
function
|
|
2064
|
+
function Zt() {
|
|
2060
2065
|
j.scrollToBottom();
|
|
2061
2066
|
}
|
|
2062
|
-
function
|
|
2063
|
-
j.scrollToRowByIndex(
|
|
2067
|
+
function Kt(i) {
|
|
2068
|
+
j.scrollToRowByIndex(i);
|
|
2064
2069
|
}
|
|
2065
|
-
function
|
|
2066
|
-
j.scrollRowIntoView(
|
|
2070
|
+
function en(i) {
|
|
2071
|
+
j.scrollRowIntoView(i);
|
|
2067
2072
|
}
|
|
2068
|
-
function
|
|
2069
|
-
G.keepSelectingOnPaging.value ||
|
|
2073
|
+
function tn() {
|
|
2074
|
+
G.keepSelectingOnPaging.value || mt(), s.updateVisibleDataSummary(y.value), at({
|
|
2070
2075
|
total: s.dataView.value.length,
|
|
2071
2076
|
index: 1
|
|
2072
2077
|
});
|
|
2073
2078
|
}
|
|
2074
|
-
function
|
|
2075
|
-
G.updateSelectedValues(
|
|
2079
|
+
function nn(i) {
|
|
2080
|
+
G.updateSelectedValues(i);
|
|
2076
2081
|
}
|
|
2077
|
-
function
|
|
2078
|
-
G.removeSelectedValues(
|
|
2082
|
+
function on(i) {
|
|
2083
|
+
G.removeSelectedValues(i);
|
|
2079
2084
|
}
|
|
2080
|
-
function
|
|
2085
|
+
function rn() {
|
|
2081
2086
|
return e.displayType;
|
|
2082
2087
|
}
|
|
2083
|
-
function
|
|
2084
|
-
var
|
|
2085
|
-
(
|
|
2088
|
+
function ln() {
|
|
2089
|
+
var i;
|
|
2090
|
+
(i = Tn()) == null || i.update();
|
|
2086
2091
|
}
|
|
2087
|
-
function
|
|
2088
|
-
const
|
|
2089
|
-
let
|
|
2090
|
-
const
|
|
2091
|
-
for (let
|
|
2092
|
-
const k =
|
|
2092
|
+
function an(i) {
|
|
2093
|
+
const v = d.idField.value;
|
|
2094
|
+
let F = 0;
|
|
2095
|
+
const D = s.dataView.value;
|
|
2096
|
+
for (let L = 0; L < D.length; L++) {
|
|
2097
|
+
const k = D[L];
|
|
2093
2098
|
if (!(k.__fv_data_grid_group_row__ || k.__fv_data_grid_group_summary__)) {
|
|
2094
|
-
if (k[
|
|
2095
|
-
return
|
|
2096
|
-
|
|
2099
|
+
if (k[v] === i)
|
|
2100
|
+
return F;
|
|
2101
|
+
F++;
|
|
2097
2102
|
}
|
|
2098
2103
|
}
|
|
2099
2104
|
return -1;
|
|
2100
2105
|
}
|
|
2101
|
-
const
|
|
2102
|
-
activeRowById:
|
|
2103
|
-
selectRowById:
|
|
2104
|
-
addNewDataItem:
|
|
2105
|
-
addNewDataItemAtLast:
|
|
2106
|
-
removeDataItem:
|
|
2107
|
-
removeDataItemById:
|
|
2108
|
-
editDataItem:
|
|
2109
|
-
acceptDataItem:
|
|
2110
|
-
cancelDataItem:
|
|
2111
|
-
selectItemById:
|
|
2112
|
-
selectItemByIds:
|
|
2106
|
+
const dt = {
|
|
2107
|
+
activeRowById: ut,
|
|
2108
|
+
selectRowById: Lt,
|
|
2109
|
+
addNewDataItem: It,
|
|
2110
|
+
addNewDataItemAtLast: Mt,
|
|
2111
|
+
removeDataItem: Nt,
|
|
2112
|
+
removeDataItemById: jt,
|
|
2113
|
+
editDataItem: Gt,
|
|
2114
|
+
acceptDataItem: Vt,
|
|
2115
|
+
cancelDataItem: At,
|
|
2116
|
+
selectItemById: Ht,
|
|
2117
|
+
selectItemByIds: Rt,
|
|
2113
2118
|
updateColumns: ze,
|
|
2114
|
-
updateDataSource:
|
|
2115
|
-
updatePagination:
|
|
2116
|
-
getVisibleData:
|
|
2117
|
-
getVisibleDataByIds:
|
|
2118
|
-
getSelectedItems:
|
|
2119
|
-
getSelectionRow:
|
|
2120
|
-
getCurrentRowId:
|
|
2121
|
-
endEditCell:
|
|
2122
|
-
clickRowItemById:
|
|
2123
|
-
clearSelection:
|
|
2124
|
-
unSelectItemByIds:
|
|
2125
|
-
scrollToBottom:
|
|
2126
|
-
scrollToRowByIndex:
|
|
2127
|
-
scrollRowIntoView:
|
|
2128
|
-
updateDerivedData:
|
|
2129
|
-
emptyCurrentRowId:
|
|
2130
|
-
updateSelectedValues:
|
|
2131
|
-
removeSelectedValues:
|
|
2132
|
-
getDisplayType:
|
|
2133
|
-
...
|
|
2134
|
-
forceUpdate:
|
|
2135
|
-
getDataIndexById:
|
|
2119
|
+
updateDataSource: ft,
|
|
2120
|
+
updatePagination: at,
|
|
2121
|
+
getVisibleData: $t,
|
|
2122
|
+
getVisibleDataByIds: Ut,
|
|
2123
|
+
getSelectedItems: Yt,
|
|
2124
|
+
getSelectionRow: qt,
|
|
2125
|
+
getCurrentRowId: Qt,
|
|
2126
|
+
endEditCell: Xt,
|
|
2127
|
+
clickRowItemById: Wt,
|
|
2128
|
+
clearSelection: mt,
|
|
2129
|
+
unSelectItemByIds: Jt,
|
|
2130
|
+
scrollToBottom: Zt,
|
|
2131
|
+
scrollToRowByIndex: Kt,
|
|
2132
|
+
scrollRowIntoView: en,
|
|
2133
|
+
updateDerivedData: tn,
|
|
2134
|
+
emptyCurrentRowId: zt,
|
|
2135
|
+
updateSelectedValues: nn,
|
|
2136
|
+
removeSelectedValues: on,
|
|
2137
|
+
getDisplayType: rn,
|
|
2138
|
+
..._t,
|
|
2139
|
+
forceUpdate: ln,
|
|
2140
|
+
getDataIndexById: an
|
|
2136
2141
|
};
|
|
2137
|
-
t.expose(
|
|
2138
|
-
const
|
|
2139
|
-
renderDataArea:
|
|
2140
|
-
} =
|
|
2141
|
-
renderDataArea:
|
|
2142
|
-
} =
|
|
2143
|
-
renderEmpty:
|
|
2144
|
-
} =
|
|
2142
|
+
t.expose(dt);
|
|
2143
|
+
const vt = po(e, t, dt, J, R, y), {
|
|
2144
|
+
renderDataArea: un
|
|
2145
|
+
} = fi(e, t, a, c, h, Ge, Ne, J, R, Y, vt, ue, xe, j, y, s), {
|
|
2146
|
+
renderDataArea: dn
|
|
2147
|
+
} = vi(e, t, a, c, h, Ge, Ne, J, R, Y, vt, ue, xe, j, y, s, b), nt = oe(() => !y.value || !y.value.length), {
|
|
2148
|
+
renderEmpty: gt
|
|
2149
|
+
} = Co(e, t), sn = oe(() => ({
|
|
2145
2150
|
"d-flex": !0,
|
|
2146
2151
|
"justify-content-between": ee.value && te.value,
|
|
2147
2152
|
"justify-content-end": ee.value && !te.value,
|
|
2148
2153
|
"position-relative": !0,
|
|
2149
2154
|
"fv-datagrid-pagination": !0
|
|
2150
|
-
})),
|
|
2155
|
+
})), cn = oe(() => ({
|
|
2151
2156
|
"flex-direction": "row"
|
|
2152
|
-
})),
|
|
2157
|
+
})), fn = oe(() => ({
|
|
2153
2158
|
"d-flex": !0,
|
|
2154
2159
|
"align-items-center": !0
|
|
2155
2160
|
}));
|
|
2156
|
-
|
|
2161
|
+
xn("dataGridContext", {
|
|
2157
2162
|
useColumnComposition: J,
|
|
2158
2163
|
dataView: s,
|
|
2159
2164
|
useFilterComposition: _,
|
|
2160
|
-
useFitColumnComposition:
|
|
2165
|
+
useFitColumnComposition: Be,
|
|
2161
2166
|
useSortComposition: ge,
|
|
2162
2167
|
useVirtualScrollComposition: j,
|
|
2163
|
-
dataGridComponentInstance:
|
|
2168
|
+
dataGridComponentInstance: dt
|
|
2164
2169
|
});
|
|
2165
|
-
function
|
|
2166
|
-
let
|
|
2167
|
-
return f(
|
|
2170
|
+
function mn(i) {
|
|
2171
|
+
let v;
|
|
2172
|
+
return f(So, {
|
|
2168
2173
|
class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
|
|
2169
|
-
},
|
|
2170
|
-
var
|
|
2171
|
-
return ((
|
|
2172
|
-
}).map((
|
|
2173
|
-
var
|
|
2174
|
-
const
|
|
2174
|
+
}, gi(v = Object.keys(i.data).filter((F) => {
|
|
2175
|
+
var D, L;
|
|
2176
|
+
return ((D = i.data[F].column) == null ? void 0 : D.dataType) !== He && ((L = i.data[F].column) == null ? void 0 : L.dataType) !== _e;
|
|
2177
|
+
}).map((F) => {
|
|
2178
|
+
var L, k;
|
|
2179
|
+
const D = i.data[F];
|
|
2175
2180
|
return f("div", {
|
|
2176
2181
|
class: "farris-group-wrap w-100"
|
|
2177
2182
|
}, [f("div", {
|
|
2178
2183
|
class: "form-group farris-form-group common-group"
|
|
2179
|
-
}, [f(
|
|
2180
|
-
text: (
|
|
2181
|
-
title: (k =
|
|
2184
|
+
}, [f(Fo, {
|
|
2185
|
+
text: (L = D.column) == null ? void 0 : L.title,
|
|
2186
|
+
title: (k = D.column) == null ? void 0 : k.title
|
|
2182
2187
|
}, null), f("div", {
|
|
2183
2188
|
class: "farris-input-wrap"
|
|
2184
|
-
}, [
|
|
2185
|
-
})) ?
|
|
2186
|
-
default: () => [
|
|
2189
|
+
}, [D.getEditor(D)])])]);
|
|
2190
|
+
})) ? v : {
|
|
2191
|
+
default: () => [v]
|
|
2187
2192
|
});
|
|
2188
2193
|
}
|
|
2189
|
-
function
|
|
2190
|
-
const
|
|
2191
|
-
Object.keys(
|
|
2192
|
-
var V,
|
|
2193
|
-
return ((V =
|
|
2194
|
+
function vn(i, v) {
|
|
2195
|
+
const F = {}, D = {}, L = [], k = [], q = {};
|
|
2196
|
+
Object.keys(v.data).filter((me) => {
|
|
2197
|
+
var V, be;
|
|
2198
|
+
return ((V = v.data[me].column) == null ? void 0 : V.dataType) !== He && ((be = v.data[me].column) == null ? void 0 : be.dataType) !== _e;
|
|
2194
2199
|
}).forEach((me) => {
|
|
2195
|
-
var
|
|
2196
|
-
const V =
|
|
2197
|
-
|
|
2200
|
+
var be, ht, bt;
|
|
2201
|
+
const V = v.data[me];
|
|
2202
|
+
F[me] = V.data, R.endEditByCell(V), D[me] = V.data, L.push(V.column), k.push(V), q[me] = (bt = (ht = (be = V.column) == null ? void 0 : be.editor) == null ? void 0 : ht.context) == null ? void 0 : bt.editor;
|
|
2198
2203
|
}), t.emit("endEditRow", {
|
|
2199
|
-
row:
|
|
2204
|
+
row: v,
|
|
2200
2205
|
cells: k,
|
|
2201
|
-
columns:
|
|
2202
|
-
oldValues:
|
|
2203
|
-
newValues:
|
|
2206
|
+
columns: L,
|
|
2207
|
+
oldValues: F,
|
|
2208
|
+
newValues: D,
|
|
2204
2209
|
editors: q
|
|
2205
2210
|
}), R.showRowEditPanel.value = !1;
|
|
2206
2211
|
}
|
|
2207
|
-
function
|
|
2208
|
-
const
|
|
2209
|
-
return
|
|
2212
|
+
function gn() {
|
|
2213
|
+
const i = G.currentSelectedDataId.value, v = y.value.find((F) => F.raw[e.idField] === i);
|
|
2214
|
+
return v ? f(xo, {
|
|
2210
2215
|
showHeader: !1,
|
|
2211
2216
|
modelValue: R.showRowEditPanel.value,
|
|
2212
|
-
"onUpdate:modelValue": (
|
|
2217
|
+
"onUpdate:modelValue": (F) => R.showRowEditPanel.value = F,
|
|
2213
2218
|
width: 600
|
|
2214
2219
|
}, {
|
|
2215
|
-
default: () =>
|
|
2216
|
-
footerTemplate: () => f(
|
|
2220
|
+
default: () => mn(v),
|
|
2221
|
+
footerTemplate: () => f(rt, null, [f(Ft, {
|
|
2217
2222
|
class: "mr-3",
|
|
2218
2223
|
type: "secondary",
|
|
2219
|
-
onClick: (
|
|
2224
|
+
onClick: (F) => {
|
|
2220
2225
|
R.showRowEditPanel.value = !1;
|
|
2221
2226
|
}
|
|
2222
2227
|
}, {
|
|
2223
2228
|
default: () => [Je("取消")]
|
|
2224
|
-
}), f(
|
|
2225
|
-
onClick: (
|
|
2226
|
-
|
|
2229
|
+
}), f(Ft, {
|
|
2230
|
+
onClick: (F) => {
|
|
2231
|
+
vn(F, v);
|
|
2227
2232
|
}
|
|
2228
2233
|
}, {
|
|
2229
2234
|
default: () => [Je("确定")]
|
|
2230
2235
|
})])
|
|
2231
2236
|
}) : null;
|
|
2232
2237
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return z.value ?
|
|
2238
|
+
function yt() {
|
|
2239
|
+
return z.value ? dn() : un();
|
|
2235
2240
|
}
|
|
2236
|
-
function
|
|
2241
|
+
function yn() {
|
|
2237
2242
|
var q;
|
|
2238
|
-
const
|
|
2243
|
+
const i = le.value || ye.value ? {
|
|
2239
2244
|
width: "100%",
|
|
2240
2245
|
maxWidth: "100%",
|
|
2241
2246
|
minWidth: 0,
|
|
@@ -2244,17 +2249,17 @@ const vr = /* @__PURE__ */ Tt({
|
|
|
2244
2249
|
} : {
|
|
2245
2250
|
width: "max-content",
|
|
2246
2251
|
minWidth: "100%"
|
|
2247
|
-
},
|
|
2248
|
-
return
|
|
2252
|
+
}, v = w.value && b.value.length > 0 ? M() : null, F = yt(), D = nt.value ? gt() : null, L = le.value || ye.value, k = (((q = y.value) == null ? void 0 : q.length) ?? 0) > 0 ? "auto" : "visible";
|
|
2253
|
+
return L ? f("div", {
|
|
2249
2254
|
style: {
|
|
2250
|
-
...
|
|
2255
|
+
...i,
|
|
2251
2256
|
display: "flex",
|
|
2252
2257
|
flexDirection: "column",
|
|
2253
2258
|
flex: "1 1 auto",
|
|
2254
2259
|
minHeight: 0,
|
|
2255
2260
|
overflow: "hidden"
|
|
2256
2261
|
}
|
|
2257
|
-
}, [
|
|
2262
|
+
}, [v, f("div", {
|
|
2258
2263
|
style: {
|
|
2259
2264
|
flex: "1 1 auto",
|
|
2260
2265
|
minHeight: 0,
|
|
@@ -2262,69 +2267,70 @@ const vr = /* @__PURE__ */ Tt({
|
|
|
2262
2267
|
overflowY: k,
|
|
2263
2268
|
boxSizing: "border-box"
|
|
2264
2269
|
}
|
|
2265
|
-
}, [
|
|
2266
|
-
style:
|
|
2267
|
-
}, [
|
|
2268
|
-
}
|
|
2269
|
-
function
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2272
|
-
const q =
|
|
2270
|
+
}, [F, D])]) : f("div", {
|
|
2271
|
+
style: i
|
|
2272
|
+
}, [v, F, D]);
|
|
2273
|
+
}
|
|
2274
|
+
function pn(i) {
|
|
2275
|
+
const v = i.map((k) => k.id), F = [...b.value, ...u, ...x];
|
|
2276
|
+
F.filter((k) => k.dataType !== He && k.dataType !== _e).forEach((k) => {
|
|
2277
|
+
const q = i.find((me) => me.id === k.id);
|
|
2273
2278
|
q && (k.width = q.actualWidth || k.width || 120, q.actualWidth !== void 0 && (k.actualWidth = q.actualWidth), k.title = q.title, k.halign = q.halign, k.align = q.align);
|
|
2274
|
-
}),
|
|
2275
|
-
const
|
|
2276
|
-
u =
|
|
2277
|
-
const me =
|
|
2279
|
+
}), x = F.filter((k) => k.dataType === He || k.dataType === _e);
|
|
2280
|
+
const D = F.filter((k) => k.dataType !== He && k.dataType !== _e), L = D.filter((k) => v.includes(k.id));
|
|
2281
|
+
u = D.filter((k) => !v.includes(k.id)), L.sort((k, q) => {
|
|
2282
|
+
const me = i.findIndex((be) => be.id === k.id), V = i.findIndex((be) => be.id === q.id);
|
|
2278
2283
|
return me - V;
|
|
2279
|
-
}), ze(
|
|
2284
|
+
}), ze(L);
|
|
2280
2285
|
}
|
|
2281
|
-
return () => e.visible && f(
|
|
2286
|
+
return () => e.visible && f(rt, null, [f("div", {
|
|
2282
2287
|
ref: C,
|
|
2283
2288
|
class: S.value,
|
|
2284
|
-
style:
|
|
2289
|
+
style: se.value,
|
|
2285
2290
|
onWheel: Ye
|
|
2286
|
-
}, [p.value &&
|
|
2291
|
+
}, [p.value && Xe(), p.value && !z.value && w.value && b.value.length > 0 && M(), p.value && (ne.value === "top" || ne.value === "both") && Ke(), f("div", {
|
|
2287
2292
|
ref: p,
|
|
2288
2293
|
class: n.value,
|
|
2289
2294
|
style: l.value,
|
|
2290
|
-
onMouseover: (
|
|
2291
|
-
|
|
2295
|
+
onMouseover: (i) => {
|
|
2296
|
+
i.stopPropagation(), e.scrollbarMode !== "always" && !E.value && !z.value && (E.value = !0);
|
|
2292
2297
|
},
|
|
2293
|
-
onMouseleave: (
|
|
2294
|
-
|
|
2298
|
+
onMouseleave: (i) => {
|
|
2299
|
+
i.stopPropagation(), e.scrollbarMode !== "always" && E.value && !z.value && (E.value = !1);
|
|
2295
2300
|
}
|
|
2296
|
-
}, [p.value && z.value ?
|
|
2297
|
-
class:
|
|
2298
|
-
style:
|
|
2301
|
+
}, [p.value && z.value ? yn() : [p.value && !z.value && K(y), p.value && yt(), p.value && nt.value && !z.value && gt()], p.value && !nt.value && et(), p.value && !nt.value && tt()]), p.value && (ne.value === "bottom" || ne.value === "both") && !z.value && Ke(), (ee.value || te.value) && !z.value && f("div", {
|
|
2302
|
+
class: sn.value,
|
|
2303
|
+
style: cn.value
|
|
2299
2304
|
}, [te.value && f("div", {
|
|
2300
|
-
class:
|
|
2301
|
-
}, [f("div", null, ["已选:" + re.value.length, Je(" 条")])]), ee.value &&
|
|
2305
|
+
class: fn.value
|
|
2306
|
+
}, [f("div", null, ["已选:" + re.value.length, Je(" 条")])]), ee.value && $()]), O(), ve.value && B()]), r() && gn(), e.enableColumnSettingSolution && f(ho, {
|
|
2307
|
+
ref: g,
|
|
2302
2308
|
columns: [...b.value, ...u],
|
|
2303
2309
|
componentId: e.id,
|
|
2304
2310
|
modelValue: N.value,
|
|
2305
|
-
"onUpdate:modelValue": (
|
|
2306
|
-
onChangeColumnSetting:
|
|
2311
|
+
"onUpdate:modelValue": (i) => N.value = i,
|
|
2312
|
+
onChangeColumnSetting: pn
|
|
2307
2313
|
}, null)]);
|
|
2308
2314
|
}
|
|
2309
|
-
}),
|
|
2315
|
+
}), Ai = bn(yi);
|
|
2310
2316
|
export {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2317
|
+
yi as FDataGrid,
|
|
2318
|
+
ui as ScrollbarMode,
|
|
2319
|
+
Mi as columnOptions,
|
|
2320
|
+
si as dataGridProps,
|
|
2321
|
+
Ai as default,
|
|
2322
|
+
di as defaultDataGridFieldsResolver,
|
|
2323
|
+
Ni as editOptions,
|
|
2324
|
+
Vi as eventHandlerResolver,
|
|
2325
|
+
Bi as filterOptions,
|
|
2326
|
+
ki as groupOptions,
|
|
2327
|
+
Ei as headerOptions,
|
|
2328
|
+
ot as isFitColumnsEnabled,
|
|
2329
|
+
ji as loadingOptions,
|
|
2330
|
+
Ti as paginationOptions,
|
|
2331
|
+
Pi as rowNumberOptions,
|
|
2332
|
+
Di as rowOptions,
|
|
2333
|
+
Gi as selectionOptions,
|
|
2334
|
+
Oi as sortOptions,
|
|
2335
|
+
Ii as summaryOptions
|
|
2330
2336
|
};
|