@hzab/edit-table 0.1.12 → 0.1.13-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +308 -252
- package/dist/index.js.map +1 -1
- package/dist/project-manifest.json +5 -5
- package/dist/project.json +3 -3
- package/package.json +5 -5
- package/src/Template/GetBaseTemplate.tsx +1 -1
- package/src/common/WidthWrapHoc.tsx +34 -0
- package/src/index.less +13 -1
- package/src/index.tsx +91 -3
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { forwardRef as e,
|
|
2
|
-
import { Checkbox as
|
|
3
|
-
import { ReactGrid as
|
|
4
|
-
import { antdComponents as
|
|
5
|
-
import { InfoCircleOutlined as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { c as
|
|
8
|
-
import { getVal as
|
|
1
|
+
import { forwardRef as e, useCallback as t, useEffect as n, useImperativeHandle as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
2
|
+
import { Checkbox as s, DatePicker as c, Empty as l, Input as u, Popover as d, Spin as f, TimePicker as p } from "antd";
|
|
3
|
+
import { ReactGrid as m, getCellProperty as h, isAlphaNumericKey as g, isNavigationKey as _ } from "@silevis/reactgrid";
|
|
4
|
+
import { antdComponents as v, customComponents as y } from "@hzab/form-render";
|
|
5
|
+
import { InfoCircleOutlined as b, MinusCircleOutlined as x, PlusCircleOutlined as S } from "@ant-design/icons";
|
|
6
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
7
|
+
import { c as E } from "react/compiler-runtime";
|
|
8
|
+
import { getVal as D } from "@hzab/utils/src/formily/field";
|
|
9
9
|
import "@silevis/reactgrid/styles.css";
|
|
10
10
|
//#region src/common/childAntdComponent.ts
|
|
11
|
-
var
|
|
12
|
-
"DatePicker.MonthPicker":
|
|
13
|
-
"DatePicker.QuarterPicker":
|
|
14
|
-
"DatePicker.RangePicker":
|
|
15
|
-
"DatePicker.TimePicker":
|
|
16
|
-
"DatePicker.WeekPicker":
|
|
17
|
-
"DatePicker.YearPicker":
|
|
18
|
-
"Input.Password":
|
|
19
|
-
"Input.Search":
|
|
20
|
-
"Input.TextArea":
|
|
21
|
-
"TimePicker.RangePicker":
|
|
22
|
-
},
|
|
11
|
+
var O = {
|
|
12
|
+
"DatePicker.MonthPicker": c.MonthPicker,
|
|
13
|
+
"DatePicker.QuarterPicker": c.QuarterPicker,
|
|
14
|
+
"DatePicker.RangePicker": c.RangePicker,
|
|
15
|
+
"DatePicker.TimePicker": c.TimePicker,
|
|
16
|
+
"DatePicker.WeekPicker": c.WeekPicker,
|
|
17
|
+
"DatePicker.YearPicker": c.YearPicker,
|
|
18
|
+
"Input.Password": u.Password,
|
|
19
|
+
"Input.Search": u.Search,
|
|
20
|
+
"Input.TextArea": u.TextArea,
|
|
21
|
+
"TimePicker.RangePicker": p.RangePicker
|
|
22
|
+
}, k = [
|
|
23
23
|
"DatePicker",
|
|
24
24
|
"DatePicker.MonthPicker",
|
|
25
25
|
"DatePicker.QuarterPicker",
|
|
@@ -28,18 +28,18 @@ var D = {
|
|
|
28
28
|
"DatePicker.WeekPicker",
|
|
29
29
|
"DatePicker.YearPicker",
|
|
30
30
|
"TimePicker.RangePicker"
|
|
31
|
-
],
|
|
32
|
-
class
|
|
31
|
+
], A = (e, t = {}) => {
|
|
32
|
+
class r {
|
|
33
33
|
getCompatibleCell(e) {
|
|
34
34
|
let t;
|
|
35
35
|
try {
|
|
36
|
-
t =
|
|
36
|
+
t = h(e, "values", "object");
|
|
37
37
|
} catch (e) {
|
|
38
38
|
t = [];
|
|
39
39
|
}
|
|
40
40
|
let n = e.selectedValue ? parseFloat(e.selectedValue) : NaN, r = !0;
|
|
41
41
|
try {
|
|
42
|
-
r =
|
|
42
|
+
r = h(e, "isDisabled", "boolean");
|
|
43
43
|
} catch (e) {
|
|
44
44
|
r = !1;
|
|
45
45
|
}
|
|
@@ -69,30 +69,48 @@ var D = {
|
|
|
69
69
|
enableEditMode: !1
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
render(
|
|
72
|
+
render(r, s, c) {
|
|
73
73
|
var l;
|
|
74
|
-
let [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
let [u, f] = o(!1), [p, m] = o(!1), h = (r == null ? void 0 : r.columnId) + (r == null ? void 0 : r.rowId), [v, y] = o(r == null ? void 0 : r.text), [x, S] = o(!1), C = a(r == null ? void 0 : r.text), E = a(), D = a(null), O = a(null);
|
|
75
|
+
n(() => {
|
|
76
|
+
let e = D.current, t = r == null ? void 0 : r.onRowHeightChange;
|
|
77
|
+
if (!e || !t || (r == null ? void 0 : r.rowId) == null || typeof (r == null ? void 0 : r.rowId) == "string" && r.rowId.indexOf("header-") === 0) return;
|
|
78
|
+
let n = e.firstElementChild, i = n || e;
|
|
79
|
+
if (O.current === null) {
|
|
80
|
+
let t = getComputedStyle(e);
|
|
81
|
+
O.current = (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
82
|
+
}
|
|
83
|
+
let a = n ? O.current : 0, o = () => t(r == null ? void 0 : r.rowId, i.scrollHeight + a, r == null ? void 0 : r.columnId);
|
|
84
|
+
o();
|
|
85
|
+
let s = new ResizeObserver(o);
|
|
86
|
+
return s.observe(i), () => s.disconnect();
|
|
87
|
+
}, [
|
|
88
|
+
r == null ? void 0 : r.rowId,
|
|
89
|
+
r == null ? void 0 : r.columnId,
|
|
90
|
+
r == null ? void 0 : r.onRowHeightChange,
|
|
91
|
+
u,
|
|
92
|
+
v
|
|
93
|
+
]), n(() => {
|
|
94
|
+
y(r == null ? void 0 : r.text), C.current = r == null ? void 0 : r.text;
|
|
95
|
+
}, [r == null ? void 0 : r.text]), n(() => {
|
|
78
96
|
function e(e) {
|
|
79
|
-
window.gridEditId !=
|
|
97
|
+
window.gridEditId != h && f(!1);
|
|
80
98
|
}
|
|
81
99
|
return document.addEventListener("click", e), () => {
|
|
82
100
|
document.removeEventListener("click", e);
|
|
83
101
|
};
|
|
84
102
|
}, []);
|
|
85
|
-
let
|
|
103
|
+
let A = (e) => {
|
|
86
104
|
var t;
|
|
87
|
-
let n = !1,
|
|
88
|
-
for (let t of (
|
|
89
|
-
var
|
|
90
|
-
t != null && (
|
|
105
|
+
let n = !1, i = !1;
|
|
106
|
+
for (let t of (r == null ? void 0 : r.validatorList) || []) {
|
|
107
|
+
var a;
|
|
108
|
+
t != null && (a = t.pattern) != null && a.test(e) && (n = !0);
|
|
91
109
|
break;
|
|
92
110
|
}
|
|
93
|
-
|
|
111
|
+
i = !n && Array.isArray(r == null ? void 0 : r.validatorList) && (r == null || (t = r.validatorList) == null ? void 0 : t.length) > 0, S(i);
|
|
94
112
|
};
|
|
95
|
-
|
|
113
|
+
n(() => {
|
|
96
114
|
if (!p) return;
|
|
97
115
|
let e = setTimeout(() => {
|
|
98
116
|
let e = document.querySelector(".ant-picker-dropdown");
|
|
@@ -106,30 +124,31 @@ var D = {
|
|
|
106
124
|
}, 0);
|
|
107
125
|
return () => clearTimeout(e);
|
|
108
126
|
}, [p]);
|
|
109
|
-
let
|
|
110
|
-
let e =
|
|
127
|
+
let j = () => {
|
|
128
|
+
let e = C.current;
|
|
111
129
|
c(this.getCompatibleCell({
|
|
112
|
-
...
|
|
130
|
+
...r,
|
|
113
131
|
text: e,
|
|
114
132
|
selectedValue: e
|
|
115
133
|
}), !0);
|
|
116
|
-
},
|
|
134
|
+
}, M = i(() => k != null && k.includes(r == null ? void 0 : r.type) ? {
|
|
117
135
|
open: p,
|
|
118
136
|
onOpenChange: (e) => {
|
|
119
137
|
E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
120
138
|
m(e);
|
|
121
139
|
}, 80);
|
|
122
140
|
}
|
|
123
|
-
} : {}, [
|
|
124
|
-
return
|
|
125
|
-
!
|
|
126
|
-
}, [
|
|
127
|
-
|
|
141
|
+
} : {}, [r]);
|
|
142
|
+
return n(() => {
|
|
143
|
+
!u && r.type == "Upload" && window.uploadEdit && window.uploadEdit == h && (window.uploadEdit = null, j());
|
|
144
|
+
}, [u, v]), /* @__PURE__ */ T("div", {
|
|
145
|
+
ref: D,
|
|
146
|
+
className: `base-hoc ${u ? "base-hoc-edit" : ""}`,
|
|
128
147
|
onDoubleClick: (e) => {
|
|
129
|
-
|
|
148
|
+
r != null && r.nonEditable || (r.type === "Upload" && (window.uploadEdit = h), f(!0));
|
|
130
149
|
},
|
|
131
|
-
children: [/* @__PURE__ */
|
|
132
|
-
...
|
|
150
|
+
children: [/* @__PURE__ */ w(e, {
|
|
151
|
+
...t,
|
|
133
152
|
onPointerDown: (e) => e.stopPropagation(),
|
|
134
153
|
componentProps: {
|
|
135
154
|
style: {
|
|
@@ -138,67 +157,67 @@ var D = {
|
|
|
138
157
|
alignItems: "center"
|
|
139
158
|
},
|
|
140
159
|
value: v,
|
|
141
|
-
options:
|
|
160
|
+
options: r.values,
|
|
142
161
|
onChange: (e) => {
|
|
143
162
|
var t, n;
|
|
144
163
|
let r = (t = e == null || (n = e.target) == null ? void 0 : n.value) == null ? e : t;
|
|
145
|
-
|
|
164
|
+
y(r), C.current = r, A(r);
|
|
146
165
|
},
|
|
147
166
|
onBlur: (e) => {
|
|
148
|
-
|
|
167
|
+
j(), k != null && k.includes(r == null ? void 0 : r.type) || f(!1);
|
|
149
168
|
},
|
|
150
169
|
onPointerDown: (e) => {
|
|
151
170
|
e.stopPropagation();
|
|
152
171
|
},
|
|
153
172
|
onKeyDown: (e) => {
|
|
154
|
-
(
|
|
173
|
+
(g(e.keyCode) || _(e.keyCode)) && e.stopPropagation();
|
|
155
174
|
},
|
|
156
|
-
...
|
|
157
|
-
...(
|
|
175
|
+
...M,
|
|
176
|
+
...(r == null ? void 0 : r.getField) && (r == null ? void 0 : r.getField()["x-component-props"]) || {}
|
|
158
177
|
},
|
|
159
|
-
pattern:
|
|
160
|
-
cell:
|
|
161
|
-
}), x && /* @__PURE__ */
|
|
162
|
-
content: (l =
|
|
163
|
-
children: /* @__PURE__ */
|
|
178
|
+
pattern: u ? "" : "readPretty",
|
|
179
|
+
cell: r
|
|
180
|
+
}), x && /* @__PURE__ */ w(d, {
|
|
181
|
+
content: (l = r == null ? void 0 : r.validatorMessage) == null ? "该字段不合法" : l,
|
|
182
|
+
children: /* @__PURE__ */ w(b, { className: "validator-icon" })
|
|
164
183
|
})]
|
|
165
184
|
});
|
|
166
185
|
}
|
|
167
186
|
}
|
|
168
|
-
return new
|
|
169
|
-
},
|
|
170
|
-
let { pattern: t, cell: n, componentProps:
|
|
187
|
+
return new r();
|
|
188
|
+
}, j = (e) => {
|
|
189
|
+
let { pattern: t, cell: n, componentProps: r, Com: a, cellRender: o } = e, s = i(() => {
|
|
171
190
|
var e;
|
|
172
|
-
if (n != null && n.getField) return
|
|
191
|
+
if (n != null && n.getField) return D({
|
|
173
192
|
...(n == null ? void 0 : n.getField) && (n == null ? void 0 : n.getField()),
|
|
174
193
|
enum: (n == null || (e = n.getField()) == null ? void 0 : e.enum) || (n == null ? void 0 : n.values)
|
|
175
194
|
}, { [(n == null ? void 0 : n.getField) && (n == null ? void 0 : n.getField().name)]: n.text });
|
|
176
195
|
}, [n]);
|
|
177
|
-
return o && o(e) ? /* @__PURE__ */
|
|
178
|
-
className: "base-hoc",
|
|
179
|
-
children: t == "readPretty" ? /* @__PURE__ */
|
|
196
|
+
return o && o(e) ? /* @__PURE__ */ w(o, { ...e }) : /* @__PURE__ */ w("div", {
|
|
197
|
+
className: "base-hoc-inner",
|
|
198
|
+
children: t == "readPretty" ? /* @__PURE__ */ w("div", { children: s }) : /* @__PURE__ */ w(a, {
|
|
180
199
|
className: "rg-input",
|
|
181
200
|
ref: (e) => {
|
|
182
201
|
e && e.focus();
|
|
183
202
|
},
|
|
184
|
-
...
|
|
203
|
+
...r
|
|
185
204
|
})
|
|
186
205
|
});
|
|
187
|
-
},
|
|
188
|
-
let t =
|
|
206
|
+
}, M = (e) => {
|
|
207
|
+
let t = E(5), n = e == null ? void 0 : e.componentProps, r;
|
|
189
208
|
t[0] === n ? r = t[1] : (r = {
|
|
190
209
|
...n,
|
|
191
210
|
type: "number"
|
|
192
211
|
}, t[0] = n, t[1] = r);
|
|
193
212
|
let i;
|
|
194
|
-
return t[2] !== e || t[3] !== r ? (i = /* @__PURE__ */
|
|
213
|
+
return t[2] !== e || t[3] !== r ? (i = /* @__PURE__ */ w(j, {
|
|
195
214
|
...e,
|
|
196
215
|
componentProps: r,
|
|
197
|
-
Com:
|
|
216
|
+
Com: u
|
|
198
217
|
}), t[2] = e, t[3] = r, t[4] = i) : i = t[4], i;
|
|
199
|
-
},
|
|
200
|
-
let
|
|
201
|
-
|
|
218
|
+
}, ee = (e) => {
|
|
219
|
+
let t = E(21), { cell: r } = e, { setExpandKeys: i, expandKeys: a, rowKey: s, setNewDataSource: c, record: l } = r, [u, d] = o(!1), f;
|
|
220
|
+
t[0] !== l || t[1] !== s || t[2] !== c ? (f = (e) => {
|
|
202
221
|
c((t) => {
|
|
203
222
|
var n;
|
|
204
223
|
let r = [...t], i = l == null || (n = l.children) == null ? void 0 : n.map((e) => e == null ? void 0 : e[s]);
|
|
@@ -208,36 +227,36 @@ var D = {
|
|
|
208
227
|
}
|
|
209
228
|
return t == null ? void 0 : t.filter((e) => !(i != null && i.includes(e == null ? void 0 : e[s])));
|
|
210
229
|
});
|
|
211
|
-
},
|
|
230
|
+
}, t[0] = l, t[1] = s, t[2] = c, t[3] = f) : f = t[3];
|
|
212
231
|
let p = f, m;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
232
|
+
t[4] !== a || t[5] !== p || t[6] !== l || t[7] !== s ? (m = () => {
|
|
233
|
+
a != null && a.includes(l == null ? void 0 : l[s]) && (d(!0), p(!0));
|
|
234
|
+
}, t[4] = a, t[5] = p, t[6] = l, t[7] = s, t[8] = m) : m = t[8];
|
|
216
235
|
let h = r == null ? void 0 : r.record, g;
|
|
217
|
-
|
|
236
|
+
t[9] === h ? g = t[10] : (g = [h], t[9] = h, t[10] = g), n(m, g);
|
|
218
237
|
let _;
|
|
219
|
-
|
|
238
|
+
t[11] !== u || t[12] !== p || t[13] !== l || t[14] !== s || t[15] !== i ? (_ = () => {
|
|
220
239
|
i((e) => e != null && e.includes(l == null ? void 0 : l[s]) ? e == null ? void 0 : e.filter((e) => e != (l == null ? void 0 : l[s])) : [...e, l == null ? void 0 : l[s]]), d(!u), p(!u);
|
|
221
|
-
},
|
|
240
|
+
}, t[11] = u, t[12] = p, t[13] = l, t[14] = s, t[15] = i, t[16] = _) : _ = t[16];
|
|
222
241
|
let v = _, y;
|
|
223
|
-
return
|
|
242
|
+
return t[17] !== u || t[18] !== v || t[19] !== (l == null ? void 0 : l.children) ? (y = /* @__PURE__ */ w("div", {
|
|
224
243
|
className: "expandList-template",
|
|
225
|
-
children: l != null && l.children ? /* @__PURE__ */ C
|
|
244
|
+
children: l != null && l.children ? /* @__PURE__ */ w(C, { children: w(u ? x : S, {
|
|
226
245
|
className: "expandList-template-icon",
|
|
227
246
|
onClick: v
|
|
228
|
-
}) }) : /* @__PURE__ */
|
|
229
|
-
}),
|
|
247
|
+
}) }) : /* @__PURE__ */ w("div", { style: { width: 14 } })
|
|
248
|
+
}), t[17] = u, t[18] = v, t[19] = l == null ? void 0 : l.children, t[20] = y) : y = t[20], y;
|
|
230
249
|
};
|
|
231
250
|
//#endregion
|
|
232
251
|
//#region src/common/utils.ts
|
|
233
|
-
function
|
|
252
|
+
function N(e) {
|
|
234
253
|
return typeof e == "object" && !!e;
|
|
235
254
|
}
|
|
236
|
-
var
|
|
255
|
+
var P = (e) => {
|
|
237
256
|
var t;
|
|
238
|
-
return typeof (e == null ? void 0 : e.title) == "function" ?
|
|
257
|
+
return typeof (e == null ? void 0 : e.title) == "function" ? N(e == null ? void 0 : e.title()) ? e == null || (t = e.title()) == null ? void 0 : t.props.children : String(e == null ? void 0 : e.title()) || "" : String(e == null ? void 0 : e.title) || "";
|
|
239
258
|
};
|
|
240
|
-
function
|
|
259
|
+
function te(e, t = 40) {
|
|
241
260
|
let n = (e) => e.reduce((e, t) => {
|
|
242
261
|
var r;
|
|
243
262
|
return (r = t.children) != null && r.length ? [...e, ...n(t.children)] : [...e, t];
|
|
@@ -268,14 +287,14 @@ function ne(e, t = 40) {
|
|
|
268
287
|
cells: []
|
|
269
288
|
})), u = (e) => {
|
|
270
289
|
var t;
|
|
271
|
-
return (t = ["rowSelection", "ExpandListTemplate"]) != null && t.includes(e == null ? void 0 : e.type) ? e == null ? void 0 : e.type :
|
|
290
|
+
return (t = ["rowSelection", "ExpandListTemplate"]) != null && t.includes(e == null ? void 0 : e.type) ? e == null ? void 0 : e.type : N(typeof (e == null ? void 0 : e.title) == "function" ? e == null ? void 0 : e.title() : null) ? `${e == null ? void 0 : e.dataIndex}` : "header";
|
|
272
291
|
}, d = (e, t = 0) => {
|
|
273
292
|
e.forEach((e) => {
|
|
274
293
|
if (e._isLeaf) {
|
|
275
294
|
let n = {
|
|
276
295
|
...e,
|
|
277
296
|
type: u(e),
|
|
278
|
-
text:
|
|
297
|
+
text: P(e),
|
|
279
298
|
dataIndex: e.dataIndex,
|
|
280
299
|
width: e.width,
|
|
281
300
|
rowspan: e.rowspan,
|
|
@@ -289,7 +308,7 @@ function ne(e, t = 40) {
|
|
|
289
308
|
} else l[t].cells.push({
|
|
290
309
|
...e,
|
|
291
310
|
type: u(e),
|
|
292
|
-
text:
|
|
311
|
+
text: P(e),
|
|
293
312
|
colspan: e.colspan,
|
|
294
313
|
style: e != null && e.style ? e == null ? void 0 : e.style : {
|
|
295
314
|
background: "rgba(128, 128, 128, 0.1)",
|
|
@@ -308,7 +327,7 @@ function ne(e, t = 40) {
|
|
|
308
327
|
n.push({
|
|
309
328
|
...e,
|
|
310
329
|
type: u(e),
|
|
311
|
-
text:
|
|
330
|
+
text: P(e),
|
|
312
331
|
dataIndex: e.dataIndex,
|
|
313
332
|
width: e.width,
|
|
314
333
|
rowspan: t === a - 1 ? 1 : void 0,
|
|
@@ -339,7 +358,7 @@ function ne(e, t = 40) {
|
|
|
339
358
|
n ? p.push(n) : p.push({
|
|
340
359
|
...e,
|
|
341
360
|
type: u(e),
|
|
342
|
-
text:
|
|
361
|
+
text: P(e),
|
|
343
362
|
dataIndex: e.dataIndex,
|
|
344
363
|
width: e.width,
|
|
345
364
|
rowspan: 1,
|
|
@@ -356,7 +375,7 @@ function ne(e, t = 40) {
|
|
|
356
375
|
});
|
|
357
376
|
}), l;
|
|
358
377
|
}
|
|
359
|
-
function
|
|
378
|
+
function ne(e) {
|
|
360
379
|
let t = [];
|
|
361
380
|
function n(e) {
|
|
362
381
|
e.forEach((e) => {
|
|
@@ -380,22 +399,55 @@ function re(e) {
|
|
|
380
399
|
}
|
|
381
400
|
//#endregion
|
|
382
401
|
//#region src/index.tsx
|
|
383
|
-
function
|
|
384
|
-
var
|
|
385
|
-
let { columns:
|
|
386
|
-
|
|
387
|
-
|
|
402
|
+
function F(e, c) {
|
|
403
|
+
var u;
|
|
404
|
+
let { columns: d, dataSource: p, formulaConfig: h, onChange: g, reactGridProps: _ = {}, onEditSubmit: b, headerRowHeight: x = 44, rowHeight: S = 44, reactGridStyle: C, className: E, Slots: D, rowSelection: k, rowKey: P = "id", query: F, loading: I, isExpand: re = !1, getList: L, onRow: R } = e, [z, ie] = o([]), [B, V] = o([]), H = a([]), [U, ae] = o([]), [W, oe] = o([]), [G, K] = o([]), [se, ce] = o([]), [le, ue] = o([]), [de, q] = o([]), J = a(), [Y, fe] = o({}), X = a({}), Z = a(), pe = a(), Q = a(), $ = t(() => {
|
|
405
|
+
Z.current = void 0;
|
|
406
|
+
let e = X.current;
|
|
407
|
+
Object.keys(e).length !== 0 && (X.current = {}, fe((t) => {
|
|
408
|
+
let n = t;
|
|
409
|
+
for (let r in e) {
|
|
410
|
+
let i = { ...n[r] || {} }, a = !1;
|
|
411
|
+
for (let t in e[r]) {
|
|
412
|
+
let n = e[r][t];
|
|
413
|
+
i[t] !== n && (i[t] = n, a = !0);
|
|
414
|
+
}
|
|
415
|
+
a && (n === t && (n = { ...t }), n[r] = i);
|
|
416
|
+
}
|
|
417
|
+
return n === t ? t : n;
|
|
418
|
+
}));
|
|
419
|
+
}, []), me = t((e, t, n) => {
|
|
420
|
+
let r = Math.max(Number(t) || 0, S), i = String(e), a = n || "_", o = X.current[i] = X.current[i] || {};
|
|
421
|
+
o[a] !== r && (o[a] = r, Z.current || (Z.current = requestAnimationFrame($)));
|
|
422
|
+
}, [S, $]);
|
|
423
|
+
n(() => () => {
|
|
424
|
+
Z.current && cancelAnimationFrame(Z.current);
|
|
425
|
+
}, []), n(() => {
|
|
426
|
+
V((e) => {
|
|
427
|
+
if (!Array.isArray(e) || e.length === 0) return e;
|
|
428
|
+
let t = !1, n = e.map((e) => {
|
|
429
|
+
if (typeof (e == null ? void 0 : e.rowId) == "string" && e.rowId.indexOf("header-") === 0) return e;
|
|
430
|
+
let n = Y[e.rowId], r = n && Object.keys(n).length > 0 ? Math.max(S, ...Object.values(n).map(Number)) : S;
|
|
431
|
+
return e.height === r ? e : (t = !0, {
|
|
432
|
+
...e,
|
|
433
|
+
height: r
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
return t ? n : e;
|
|
437
|
+
});
|
|
438
|
+
}, [Y, S]), r(c, () => ({ rows: B }));
|
|
439
|
+
let he = (e, t = 0) => {
|
|
388
440
|
e == null || e.forEach((e) => {
|
|
389
|
-
e.level = t + 1, e != null && e.children &&
|
|
441
|
+
e.level = t + 1, e != null && e.children && he(e == null ? void 0 : e.children, e.level);
|
|
390
442
|
});
|
|
391
443
|
};
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}, [
|
|
395
|
-
let e =
|
|
396
|
-
e != null && e.includes(
|
|
397
|
-
}, [
|
|
398
|
-
let
|
|
444
|
+
n(() => {
|
|
445
|
+
he(p), K(p);
|
|
446
|
+
}, [p]), n(() => {
|
|
447
|
+
let e = B.map((e) => e.rowId);
|
|
448
|
+
e != null && e.includes(J.current) || q([]);
|
|
449
|
+
}, [B]);
|
|
450
|
+
let ge = (e) => {
|
|
399
451
|
var t, n;
|
|
400
452
|
let r = e == null || (t = e.cells) == null || (t = t[0]) == null ? void 0 : t.record, i = ["_$actions", "rowSelection"], a = { id: e == null ? void 0 : e.rowId };
|
|
401
453
|
return e == null || (n = e.cells) == null || n.forEach((e) => {
|
|
@@ -405,111 +457,115 @@ function N(e, s) {
|
|
|
405
457
|
...a
|
|
406
458
|
};
|
|
407
459
|
};
|
|
408
|
-
|
|
409
|
-
if (Array.isArray(
|
|
410
|
-
|
|
460
|
+
n(() => {
|
|
461
|
+
if (Array.isArray(d) && (d == null ? void 0 : d.length) > 0) {
|
|
462
|
+
re && d.unshift({
|
|
411
463
|
type: "ExpandListTemplate",
|
|
412
464
|
width: 14,
|
|
413
465
|
key: "ExpandListTemplate",
|
|
414
466
|
nonEditable: !0,
|
|
415
|
-
style: (
|
|
416
|
-
}),
|
|
467
|
+
style: (k == null ? void 0 : k.style) || { background: "rgba(128, 128, 128, 0.1)" }
|
|
468
|
+
}), k && d.unshift({
|
|
417
469
|
type: "rowSelection",
|
|
418
470
|
nonEditable: !0,
|
|
419
|
-
width: (
|
|
471
|
+
width: (k == null ? void 0 : k.width) || 30,
|
|
420
472
|
key: "rowSelection",
|
|
421
|
-
style: (
|
|
473
|
+
style: (k == null ? void 0 : k.style) || {
|
|
422
474
|
background: "rgba(128, 128, 128, 0.1)",
|
|
423
475
|
display: "flex",
|
|
424
476
|
justifyContent: "center"
|
|
425
477
|
}
|
|
426
|
-
}),
|
|
427
|
-
let e =
|
|
428
|
-
|
|
478
|
+
}), ie(te(d, x));
|
|
479
|
+
let e = ne(d);
|
|
480
|
+
ae(e == null ? void 0 : e.map((e, t) => ({
|
|
429
481
|
...e,
|
|
430
482
|
columnId: (e == null ? void 0 : e.dataIndex) || (e == null ? void 0 : e.key) || (e == null ? void 0 : e.name) || ""
|
|
431
483
|
})));
|
|
432
484
|
}
|
|
433
|
-
}, [
|
|
434
|
-
let
|
|
485
|
+
}, [d, k]);
|
|
486
|
+
let _e = {}, ve = (e) => {
|
|
435
487
|
e == null || e.forEach((e) => {
|
|
436
|
-
if (
|
|
488
|
+
if (N(typeof (e == null ? void 0 : e.title) == "function" ? e == null ? void 0 : e.title() : null)) {
|
|
437
489
|
let t = e == null ? void 0 : e.title;
|
|
438
|
-
|
|
490
|
+
_e[e == null ? void 0 : e.dataIndex] = A(t);
|
|
439
491
|
}
|
|
440
|
-
e != null && e.children &&
|
|
492
|
+
e != null && e.children && ve(e == null ? void 0 : e.children);
|
|
441
493
|
});
|
|
442
494
|
};
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, [
|
|
446
|
-
let e =
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
495
|
+
n(() => {
|
|
496
|
+
ve(d), ue(_e);
|
|
497
|
+
}, [d]), n(() => {
|
|
498
|
+
let e = U == null ? void 0 : U.map((e) => e == null ? void 0 : e.columnId), t = G == null ? void 0 : G.map((t, n) => {
|
|
499
|
+
let r = Y[t[P]], i = r && Object.keys(r).length > 0 ? Math.max(S, ...Object.values(r).map(Number)) : S;
|
|
500
|
+
return {
|
|
501
|
+
rowId: t[P],
|
|
502
|
+
height: i,
|
|
503
|
+
cells: e == null ? void 0 : e.map((e, r) => {
|
|
504
|
+
var i;
|
|
505
|
+
let a = {}, o = U[r], s = t[e], c = (i = o == null ? void 0 : o.type) == null ? "text" : i;
|
|
506
|
+
if (h) {
|
|
507
|
+
for (let n in h) if (n == e) {
|
|
508
|
+
let e = h[n];
|
|
509
|
+
a = {
|
|
510
|
+
text: (e == null ? void 0 : e.setCellData) && (e == null ? void 0 : e.setCellData(t)),
|
|
511
|
+
value: (e == null ? void 0 : e.setCellData) && (e == null ? void 0 : e.setCellData(t)),
|
|
512
|
+
style: (e == null ? void 0 : e.setCellStyle) && (e == null ? void 0 : e.setCellStyle((e == null ? void 0 : e.setCellData) && (e == null ? void 0 : e.setCellData(t)) || t))
|
|
513
|
+
};
|
|
514
|
+
}
|
|
460
515
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
z
|
|
516
|
+
return {
|
|
517
|
+
...o,
|
|
518
|
+
record: t,
|
|
519
|
+
rowId: t[P] || (o == null ? void 0 : o.type),
|
|
520
|
+
type: c,
|
|
521
|
+
nonEditable: (o == null ? void 0 : o.pattern) == "readPretty" ? !0 : o == null ? void 0 : o.nonEditable,
|
|
522
|
+
text: String(s || ""),
|
|
523
|
+
value: s,
|
|
524
|
+
selectedValue: s || "",
|
|
525
|
+
style: (o == null ? void 0 : o.type) == "rowSelection" ? {
|
|
526
|
+
display: "flex",
|
|
527
|
+
justifyContent: "center"
|
|
528
|
+
} : {},
|
|
529
|
+
...R && R(t, n, r) || {},
|
|
530
|
+
...(o == null ? void 0 : o.onCell) && (o == null ? void 0 : o.onCell(t, n, r)) || {},
|
|
531
|
+
...(o == null ? void 0 : o.cellProps) || {},
|
|
532
|
+
setNewDataSource: K,
|
|
533
|
+
setExpandKeys: ce,
|
|
534
|
+
rowKey: P,
|
|
535
|
+
expandKeys: se,
|
|
536
|
+
Slots: D,
|
|
537
|
+
onRowHeightChange: me,
|
|
538
|
+
...a
|
|
539
|
+
};
|
|
540
|
+
})
|
|
541
|
+
};
|
|
542
|
+
}), n = [...z, ...t];
|
|
543
|
+
V(n);
|
|
488
544
|
}, [
|
|
545
|
+
G,
|
|
489
546
|
U,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
if (P) {
|
|
547
|
+
z
|
|
548
|
+
]), n(() => {
|
|
549
|
+
if (I) {
|
|
494
550
|
var e;
|
|
495
|
-
let t =
|
|
551
|
+
let t = B == null ? void 0 : B.find((e) => {
|
|
496
552
|
var t;
|
|
497
|
-
return (e == null ? void 0 : e.rowId) == ((t =
|
|
553
|
+
return (e == null ? void 0 : e.rowId) == ((t = Q.current) == null ? void 0 : t.rowId);
|
|
498
554
|
});
|
|
499
555
|
t == null || (e = t.cells) == null || e.find((e) => {
|
|
500
556
|
var t;
|
|
501
|
-
return (e == null ? void 0 : e.columnId) == ((t =
|
|
502
|
-
}), { ...
|
|
557
|
+
return (e == null ? void 0 : e.columnId) == ((t = Q.current) == null ? void 0 : t.columnId);
|
|
558
|
+
}), { ...Q.current }, H.current = B;
|
|
503
559
|
}
|
|
504
|
-
}, [
|
|
505
|
-
let
|
|
560
|
+
}, [I, B]);
|
|
561
|
+
let ye = async (e) => {
|
|
506
562
|
let t = [];
|
|
507
563
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
508
564
|
let n = !1;
|
|
509
|
-
if ((e == null ? void 0 : e.length) > 1 && (n = !0),
|
|
510
|
-
let i = r.findIndex((t) => t.rowId == e.rowId), a =
|
|
511
|
-
if (r[i].cells[a] = { ...e.newCell },
|
|
512
|
-
let t =
|
|
565
|
+
if ((e == null ? void 0 : e.length) > 1 && (n = !0), V((r) => (e.forEach(async (e) => {
|
|
566
|
+
let i = r.findIndex((t) => t.rowId == e.rowId), a = U.findIndex((t) => t.columnId == e.columnId);
|
|
567
|
+
if (r[i].cells[a] = { ...e.newCell }, Q.current = { ...e.newCell }, t.push(ge(r[i])), h) for (let e in h) {
|
|
568
|
+
let t = h[e], n = U.findIndex((t) => t.columnId == e), a = {
|
|
513
569
|
...r[i].cells[n],
|
|
514
570
|
text: (t == null ? void 0 : t.setCellData) && (t == null ? void 0 : t.setCellData(r[i])),
|
|
515
571
|
value: (t == null ? void 0 : t.setCellData) && (t == null ? void 0 : t.setCellData(r[i])),
|
|
@@ -517,106 +573,106 @@ function N(e, s) {
|
|
|
517
573
|
};
|
|
518
574
|
r[i].cells[n] = a;
|
|
519
575
|
}
|
|
520
|
-
if (
|
|
521
|
-
await
|
|
576
|
+
if (b && !n) try {
|
|
577
|
+
await b(t);
|
|
522
578
|
} catch (e) {
|
|
523
|
-
|
|
579
|
+
L && L();
|
|
524
580
|
}
|
|
525
|
-
|
|
581
|
+
g && g(r[i]);
|
|
526
582
|
}), [...r])), n) try {
|
|
527
|
-
|
|
583
|
+
b && await b(t);
|
|
528
584
|
} catch (e) {
|
|
529
|
-
|
|
585
|
+
L && L();
|
|
530
586
|
}
|
|
531
|
-
},
|
|
587
|
+
}, be = i(() => {
|
|
532
588
|
let t = {
|
|
533
|
-
..._ || {},
|
|
534
589
|
...v || {},
|
|
535
|
-
...
|
|
590
|
+
...y || {},
|
|
591
|
+
...O
|
|
536
592
|
}, n = {};
|
|
537
|
-
for (let r in t) n[r] =
|
|
593
|
+
for (let r in t) n[r] = A((n) => /* @__PURE__ */ w(j, {
|
|
538
594
|
...n,
|
|
539
595
|
...e,
|
|
540
596
|
Com: t[r]
|
|
541
597
|
}));
|
|
542
598
|
return n;
|
|
543
|
-
}, [
|
|
544
|
-
let t =
|
|
599
|
+
}, [v, y]), xe = (e) => {
|
|
600
|
+
let t = B == null ? void 0 : B.find((t) => {
|
|
545
601
|
var n;
|
|
546
602
|
return (t == null ? void 0 : t.rowId) == (e == null || (n = e.cell) == null ? void 0 : n.rowId);
|
|
547
603
|
});
|
|
548
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ T("div", {
|
|
549
605
|
onPointerDown: (e) => e.stopPropagation(),
|
|
550
606
|
children: [
|
|
551
|
-
(
|
|
607
|
+
(D == null ? void 0 : D.tableActionsSlot) && /* @__PURE__ */ w(D.tableActionsSlot, {
|
|
552
608
|
...e == null ? void 0 : e.cell,
|
|
553
609
|
rowData: t
|
|
554
610
|
}),
|
|
555
|
-
(
|
|
611
|
+
(D == null ? void 0 : D.actionPrefixSlot) && /* @__PURE__ */ w(D.actionPrefixSlot, {
|
|
556
612
|
...e == null ? void 0 : e.cell,
|
|
557
613
|
rowData: t
|
|
558
614
|
}),
|
|
559
|
-
(
|
|
615
|
+
(D == null ? void 0 : D.actionCenterSlot) && /* @__PURE__ */ w(D.actionCenterSlot, {
|
|
560
616
|
...e == null ? void 0 : e.cell,
|
|
561
617
|
rowData: t
|
|
562
618
|
}),
|
|
563
|
-
(
|
|
619
|
+
(D == null ? void 0 : D.actionSuffixSlot) && /* @__PURE__ */ w(D.actionSuffixSlot, {
|
|
564
620
|
...e == null ? void 0 : e.cell,
|
|
565
621
|
rowData: t
|
|
566
622
|
})
|
|
567
623
|
]
|
|
568
624
|
});
|
|
569
625
|
};
|
|
570
|
-
function
|
|
626
|
+
function Se(e) {
|
|
571
627
|
let t = [];
|
|
572
628
|
function n(e) {
|
|
573
629
|
for (let r of e) t.push(r), r.children && r.children.length && n(r.children);
|
|
574
630
|
}
|
|
575
631
|
return n(e), t;
|
|
576
632
|
}
|
|
577
|
-
let
|
|
578
|
-
var t, n, r, i, a,
|
|
579
|
-
let { record: c, rowId: l } = e == null ? void 0 : e.cell, u = (t =
|
|
633
|
+
let Ce = (e) => {
|
|
634
|
+
var t, n, r, i, a, o;
|
|
635
|
+
let { record: c, rowId: l } = e == null ? void 0 : e.cell, u = (t = Se(p)) == null ? void 0 : t.filter((e) => {
|
|
580
636
|
var t;
|
|
581
|
-
return !(
|
|
582
|
-
}), d = typeof (
|
|
583
|
-
return /* @__PURE__ */
|
|
637
|
+
return !(k != null && (t = k.getCheckboxProps) != null && (t = t.call(k, e)) != null && t.disabled);
|
|
638
|
+
}), d = typeof (k == null ? void 0 : k.getCheckboxProps) == "function" ? k == null || (n = k.getCheckboxProps) == null ? void 0 : n.call(k, c) : {};
|
|
639
|
+
return /* @__PURE__ */ w(s, {
|
|
584
640
|
...e == null ? void 0 : e.componentProps,
|
|
585
|
-
checked: (
|
|
586
|
-
indeterminate: !l && (
|
|
641
|
+
checked: (k == null || (r = k.selectedRowKeys) == null ? void 0 : r.includes(c && c[P] || "")) || !l && (k == null || (i = k.selectedRowKeys) == null ? void 0 : i.length) == (u == null ? void 0 : u.length) && (u == null ? void 0 : u.length) > 0,
|
|
642
|
+
indeterminate: !l && (k == null || (a = k.selectedRowKeys) == null ? void 0 : a.length) > 0 && (k == null || (o = k.selectedRowKeys) == null ? void 0 : o.length) < (u == null ? void 0 : u.length),
|
|
587
643
|
onChange: (e) => {
|
|
588
644
|
if (e.target.checked && l) {
|
|
589
|
-
let e = [...
|
|
590
|
-
|
|
645
|
+
let e = [...k == null ? void 0 : k.selectedRowKeys, c[P]], t = u == null ? void 0 : u.filter((t) => e == null ? void 0 : e.includes(t[P]));
|
|
646
|
+
k == null || k.onChange(e, t);
|
|
591
647
|
} else if (!e.target.checked && l) {
|
|
592
648
|
var t, n;
|
|
593
|
-
let e =
|
|
594
|
-
|
|
649
|
+
let e = k == null || (t = k.selectedRowKeys) == null ? void 0 : t.filter((e) => e != c[P]), r = u == null ? void 0 : u.filter((t) => e == null ? void 0 : e.includes(t[P]));
|
|
650
|
+
k == null || k.onChange(k == null || (n = k.selectedRowKeys) == null ? void 0 : n.filter((e) => e != c[P]), r);
|
|
595
651
|
} else if (e.target.checked && !l) {
|
|
596
|
-
let e = u == null ? void 0 : u.map((e) => e[
|
|
597
|
-
|
|
598
|
-
} else !e.target.checked && !l && (
|
|
652
|
+
let e = u == null ? void 0 : u.map((e) => e[P]), t = u == null ? void 0 : u.filter((t) => e == null ? void 0 : e.includes(t[P]));
|
|
653
|
+
k == null || k.onChange(u == null ? void 0 : u.map((e) => e[P]), t);
|
|
654
|
+
} else !e.target.checked && !l && (k == null || k.onChange([], []));
|
|
599
655
|
},
|
|
600
656
|
...d
|
|
601
657
|
});
|
|
602
658
|
};
|
|
603
|
-
|
|
604
|
-
if (
|
|
659
|
+
n(() => {
|
|
660
|
+
if (k) {
|
|
605
661
|
var e;
|
|
606
|
-
let t = (e =
|
|
662
|
+
let t = (e = Se(p)) == null ? void 0 : e.filter((e) => {
|
|
607
663
|
var t;
|
|
608
|
-
return !(
|
|
609
|
-
}), n = t == null ? void 0 : t.filter((e) =>
|
|
610
|
-
|
|
664
|
+
return !(k != null && (t = k.getCheckboxProps) != null && (t = t.call(k, e)) != null && t.disabled);
|
|
665
|
+
}), n = t == null ? void 0 : t.filter((e) => W == null ? void 0 : W.includes(e[P]));
|
|
666
|
+
k == null || k.onChange(W, n);
|
|
611
667
|
}
|
|
612
|
-
}, [
|
|
613
|
-
|
|
614
|
-
}, [
|
|
615
|
-
let
|
|
668
|
+
}, [W, p]), n(() => {
|
|
669
|
+
oe([]);
|
|
670
|
+
}, [F == null ? void 0 : F.pageNum]);
|
|
671
|
+
let we = i(() => {
|
|
616
672
|
let e = {};
|
|
617
|
-
for (let t in
|
|
673
|
+
for (let t in _ == null ? void 0 : _.customCellTemplates) e[t] = A(_ == null ? void 0 : _.customCellTemplates[t]);
|
|
618
674
|
return e;
|
|
619
|
-
}, [
|
|
675
|
+
}, [_ == null ? void 0 : _.customCellTemplates]), Te = (e, t) => {
|
|
620
676
|
var n;
|
|
621
677
|
let r = t == null || (n = t.find((t) => (t == null ? void 0 : t.rowId) == (e == null ? void 0 : e.rowId))) == null || (n = n.cells) == null ? void 0 : n.map((t) => ({
|
|
622
678
|
columnId: t == null ? void 0 : t.columnId,
|
|
@@ -624,50 +680,50 @@ function N(e, s) {
|
|
|
624
680
|
className: "custom-highlights-row",
|
|
625
681
|
borderColor: "transparent"
|
|
626
682
|
}));
|
|
627
|
-
|
|
683
|
+
J.current = e == null ? void 0 : e.rowId, q(r);
|
|
628
684
|
};
|
|
629
|
-
return /* @__PURE__ */
|
|
630
|
-
spinning:
|
|
631
|
-
children: /* @__PURE__ */
|
|
632
|
-
className: `grid-container ${
|
|
633
|
-
style:
|
|
634
|
-
children: [/* @__PURE__ */
|
|
635
|
-
ref:
|
|
636
|
-
rows:
|
|
637
|
-
columns:
|
|
638
|
-
onCellsChanged:
|
|
685
|
+
return /* @__PURE__ */ w(f, {
|
|
686
|
+
spinning: I,
|
|
687
|
+
children: /* @__PURE__ */ T("div", {
|
|
688
|
+
className: `grid-container ${E}`,
|
|
689
|
+
style: C,
|
|
690
|
+
children: [/* @__PURE__ */ w(m, {
|
|
691
|
+
ref: pe,
|
|
692
|
+
rows: I ? H.current : B,
|
|
693
|
+
columns: U,
|
|
694
|
+
onCellsChanged: ye,
|
|
639
695
|
enableFillHandle: !0,
|
|
640
696
|
enableRangeSelection: !0,
|
|
641
697
|
horizontalStickyBreakpoint: 120,
|
|
642
|
-
...
|
|
643
|
-
highlights: (
|
|
698
|
+
..._,
|
|
699
|
+
highlights: (u = _ == null ? void 0 : _.highlights) == null ? de : u,
|
|
644
700
|
onFocusLocationChanging: (e) => {
|
|
645
701
|
var t, n;
|
|
646
702
|
let r = (e == null ? void 0 : e.columnId) + (e == null ? void 0 : e.rowId);
|
|
647
|
-
return window.gridEditId = r, typeof (e == null ? void 0 : e.rowId) == "string" && (e == null || (t = e.rowId) == null ? void 0 : t.indexOf("header-")) > -1 || (
|
|
703
|
+
return window.gridEditId = r, typeof (e == null ? void 0 : e.rowId) == "string" && (e == null || (t = e.rowId) == null ? void 0 : t.indexOf("header-")) > -1 || (_ != null && _.isRowHighlights && e != null && e.columnId && Te(e, B), (n = [
|
|
648
704
|
"_$actions",
|
|
649
705
|
"rowSelection",
|
|
650
706
|
"ExpandListTemplate"
|
|
651
|
-
]) != null && n.includes(e == null ? void 0 : e.columnId)) ? !1 :
|
|
707
|
+
]) != null && n.includes(e == null ? void 0 : e.columnId)) ? !1 : _ != null && _.onFocusLocationChanging ? _ == null ? void 0 : _.onFocusLocationChanging(e, B) : e;
|
|
652
708
|
},
|
|
653
709
|
customCellTemplates: {
|
|
654
|
-
ExpandListTemplate:
|
|
655
|
-
...
|
|
656
|
-
...
|
|
710
|
+
ExpandListTemplate: A(ee),
|
|
711
|
+
...be,
|
|
712
|
+
...we,
|
|
657
713
|
...le,
|
|
658
|
-
_$actions:
|
|
659
|
-
rowSelection:
|
|
660
|
-
Number:
|
|
714
|
+
_$actions: A(xe),
|
|
715
|
+
rowSelection: A(Ce),
|
|
716
|
+
Number: A(M, e)
|
|
661
717
|
}
|
|
662
|
-
}, (
|
|
718
|
+
}, (p == null ? void 0 : p.length) == 0 ? 0 : 1), (p == null ? void 0 : p.length) <= 0 && /* @__PURE__ */ w("div", {
|
|
663
719
|
className: "grid-container-empty",
|
|
664
|
-
children: /* @__PURE__ */
|
|
720
|
+
children: /* @__PURE__ */ w(l, { image: l.PRESENTED_IMAGE_SIMPLE })
|
|
665
721
|
})]
|
|
666
722
|
})
|
|
667
723
|
});
|
|
668
724
|
}
|
|
669
|
-
var
|
|
725
|
+
var I = e(F);
|
|
670
726
|
//#endregion
|
|
671
|
-
export {
|
|
727
|
+
export { I as default };
|
|
672
728
|
|
|
673
729
|
//# sourceMappingURL=index.js.map
|