@baishuyun/ui-base 6.28.0 → 6.28.2

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.
Files changed (49) hide show
  1. package/dist/Amap/index.js +1 -1
  2. package/dist/Calendar/{Calendar-QAOCYl0o.js → Calendar-DPF0ecD9.js} +1 -1
  3. package/dist/Calendar/index.js +3 -3
  4. package/dist/Card/index.js +1 -1
  5. package/dist/CheckBox/index.js +1 -1
  6. package/dist/ColorPicker/index.js +1 -1
  7. package/dist/ConfigProvider/index.js +1 -1
  8. package/dist/DatePicker/{DatePicker-C72BeWs_.js → DatePicker-Hn_P6uYt.js} +1 -1
  9. package/dist/DatePicker/{DatePickerPanel-CeQjC3c4.js → DatePickerPanel-Bl83l0FK.js} +1 -1
  10. package/dist/DatePicker/index.js +2 -2
  11. package/dist/DropDown/index.js +1 -1
  12. package/dist/Editor/index.js +1 -1
  13. package/dist/FieldCard/{FieldCard-wwg7WBOx.js → FieldCard-CCv4nLpH.js} +63 -61
  14. package/dist/FieldCard/index.js +2 -2
  15. package/dist/Gantt/index.js +2 -2
  16. package/dist/Icon/index.js +1 -1
  17. package/dist/InputTag/index.js +1 -1
  18. package/dist/Kanban/index.js +2 -2
  19. package/dist/Loading/index.js +1 -1
  20. package/dist/Modal/index.js +1 -1
  21. package/dist/NotFoundContent/index.js +1 -1
  22. package/dist/Overlay/index.js +1 -1
  23. package/dist/Radio/index.js +1 -1
  24. package/dist/ScrollBar/index.js +1 -1
  25. package/dist/Segmented/index.js +1 -1
  26. package/dist/Select/index.js +1 -1
  27. package/dist/Table/{Table-zYD3a8yk.js → Table-Cfj7bTb2.js} +355 -282
  28. package/dist/Table/index.js +2 -2
  29. package/dist/Tabs/index.js +1 -1
  30. package/dist/Tooltip/index.js +1 -1
  31. package/dist/Tree/index.js +1 -1
  32. package/dist/components/FieldCard/FieldCard.d.ts +1 -1
  33. package/dist/components/FieldCard/interface.d.ts +0 -2
  34. package/dist/components/Table/components/HeaderCell.d.ts +1 -3
  35. package/dist/components/Table/components/TableHeader.d.ts +1 -0
  36. package/dist/components/Table/constants.d.ts +4 -1
  37. package/dist/components/Table/hooks/index.d.ts +3 -1
  38. package/dist/components/Table/hooks/useTableColumnWidths.d.ts +22 -0
  39. package/dist/components/Table/hooks/useTableViewport.d.ts +21 -0
  40. package/dist/components/Table/hooks/useTableVirtual.d.ts +6 -0
  41. package/dist/components/Table/interface.d.ts +1 -1
  42. package/dist/components/Table/utils/flattenColumns.d.ts +0 -2
  43. package/dist/components/Table/utils/tableUtils.d.ts +12 -0
  44. package/dist/components/index.d.ts +2 -0
  45. package/dist/index.js +6 -5
  46. package/dist/style.css +1 -1
  47. package/dist/vendors/{version-DYjHCEjG.js → version-C6z7Jrt6.js} +1 -1
  48. package/package.json +1 -1
  49. package/dist/components/Table/utils/index.d.ts +0 -3
@@ -23,27 +23,44 @@ var w = {
23
23
  MIN_WIDTH: 60,
24
24
  MAX_WIDTH: 1e3
25
25
  }, O = {
26
+ low: {
27
+ className: "bsy-row-height-low",
28
+ height: 34
29
+ },
30
+ middle: {
31
+ className: "bsy-row-height-middle",
32
+ height: 68
33
+ },
34
+ high: {
35
+ className: "bsy-row-height-high",
36
+ height: 106
37
+ },
38
+ auto: {
39
+ className: "bsy-row-height-auto",
40
+ height: "auto"
41
+ }
42
+ }, k = {
26
43
  ASC: "asc",
27
44
  DESC: "desc",
28
45
  NONE: null
29
- }, k = {
46
+ }, A = {
30
47
  wrapper: "custom-table-wrapper",
31
48
  body: "custom-table-body"
32
- }, A = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), j = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), M = (e, t, n, r = D.DEFAULT_WIDTH) => i(n === "left" ? t.slice(0, e) : t.slice(e + 1), (e) => e.width || r), N = (e, t, n) => n !== "left" && n !== "right" ? null : {
49
+ }, j = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), M = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), N = (e, t, n, r = D.DEFAULT_WIDTH) => i(n === "left" ? t.slice(0, e) : t.slice(e + 1), (e) => e.width || r), P = (e, t, n) => n !== "left" && n !== "right" ? null : {
33
50
  position: "sticky",
34
- [n]: M(e, t, n),
51
+ [n]: N(e, t, n),
35
52
  zIndex: 2
36
- }, ee = (e, t, n, r) => {
53
+ }, F = (e, t, n, r) => {
37
54
  if (!t || !n) return e;
38
- let i = n === O.DESC ? -1 : 1;
55
+ let i = n === k.DESC ? -1 : 1;
39
56
  return [...e].sort((e, n) => {
40
57
  let a = e[t], o = n[t];
41
58
  return r ? r(a, o, e, n) * i : a === o ? 0 : a == null ? 1 : o == null ? -1 : typeof a == "string" && typeof o == "string" ? a.localeCompare(o) * i : (a < o ? -1 : 1) * i;
42
59
  });
43
- }, te = (e, t, n) => {
60
+ }, I = (e, t, n) => {
44
61
  let r = e[t];
45
62
  return typeof r == "string" || typeof r == "number" ? r : n;
46
- }, ne = (e) => {
63
+ }, L = (e) => {
47
64
  let t = [], n = [], r = [];
48
65
  return e.forEach((e, i) => {
49
66
  let a = {
@@ -56,7 +73,30 @@ var w = {
56
73
  normalColumns: n,
57
74
  rightFixedColumns: r
58
75
  };
59
- }, P = (e, t = D.DEFAULT_WIDTH) => i(e, (e) => e.children?.length ? i(e.children, (e) => e.width || t) : e.width || t), F = l(({ column: e, style: t = {}, className: n = "", onResizeStart: r, isResizing: i = !1, resizable: s = !0, colSpan: c = 1, rowSpan: l = 1 }) => {
76
+ }, R = (e, t = D.DEFAULT_WIDTH) => i(e, (e) => e.children?.length ? i(e.children, (e) => e.width || t) : e.width || t), ee = (e, t) => {
77
+ if (Object.keys(t).length === 0) return e;
78
+ let n = (e) => {
79
+ let r = !1, i = e.map((e) => {
80
+ let i = e.children?.length ? n(e.children) : e.children, a = t[e.key];
81
+ return i === e.children && (a === void 0 || a === e.width) ? e : (r = !0, {
82
+ ...e,
83
+ ...i === e.children ? null : { children: i },
84
+ ...a === void 0 ? null : { width: a }
85
+ });
86
+ });
87
+ return r ? i : e;
88
+ };
89
+ return n(e);
90
+ }, te = (e, t) => {
91
+ let n = L(e), r = R(e);
92
+ return {
93
+ ...n,
94
+ fixedLeftWidth: R(n.leftFixedColumns),
95
+ fixedRightWidth: R(n.rightFixedColumns),
96
+ totalColumnsWidth: r,
97
+ needSpacer: r < t
98
+ };
99
+ }, z = l(({ column: e, style: t = {}, className: n = "", onResizeStart: r, isResizing: i = !1, resizable: s = !0, colSpan: c = 1, rowSpan: l = 1 }) => {
60
100
  let d = h(null), f = u((e) => {
61
101
  d.current?.triggerClick?.(e);
62
102
  }, []), p = u((t) => {
@@ -89,10 +129,10 @@ var w = {
89
129
  }) : null]
90
130
  });
91
131
  });
92
- F.displayName = "HeaderCell";
132
+ z.displayName = "HeaderCell";
93
133
  //#endregion
94
134
  //#region src/components/Table/utils/flattenColumns.ts
95
- var re = (e) => {
135
+ var B = (e) => {
96
136
  let t = [], n = [], r = (e, i = 0, a = null) => {
97
137
  t[i] || (t[i] = []), e.forEach((e) => {
98
138
  let o = e.children, s = e.fixed || a || void 0;
@@ -111,10 +151,6 @@ var re = (e) => {
111
151
  isLeaf: !0,
112
152
  fixed: s
113
153
  };
114
- for (let n = 0; n < i; n++) t[n].find((t) => t.key === e.key) || t[n].push({
115
- ...a,
116
- isPlaceholder: !0
117
- });
118
154
  t[i].push(a), n.push(a);
119
155
  }
120
156
  });
@@ -122,36 +158,34 @@ var re = (e) => {
122
158
  r(e);
123
159
  let i = [], a = t.length;
124
160
  for (let t = 0; t < a; t++) {
125
- let n = [], r = 0, o = (e, i = 0, s = null) => {
161
+ let n = [], r = (e, i = 0, o = null) => {
126
162
  e.forEach((e) => {
127
- let c = e.children, l = e.fixed || s || void 0;
128
- c && c.length > 0 ? i === t ? n.push({
163
+ let s = e.children, c = e.fixed || o || void 0;
164
+ s && s.length > 0 ? i === t ? n.push({
129
165
  ...e,
130
- colSpan: c.length,
166
+ colSpan: s.length,
131
167
  rowSpan: 1,
132
168
  isParent: !0,
133
- displayIndex: r++,
134
- fixed: l
135
- }) : i < t && o(c, i + 1, l || null) : i === t ? n.push({
169
+ fixed: c
170
+ }) : i < t && r(s, i + 1, c || null) : i === t && n.push({
136
171
  ...e,
137
172
  colSpan: 1,
138
173
  rowSpan: a - i,
139
174
  isLeaf: !0,
140
- displayIndex: r++,
141
- fixed: l
142
- }) : i < t && r++;
175
+ fixed: c
176
+ });
143
177
  });
144
178
  };
145
- o(e), i.push(n);
179
+ r(e), i.push(n);
146
180
  }
147
181
  return {
148
182
  flatColumns: n,
149
183
  headerRows: i
150
184
  };
151
- }, ie = c(({ columns: e = [], enableFixed: t = !1, height: n = w.HEADER_HEIGHT, resizingColumn: r = null, onResizeStart: i, disabledResizeColumns: s = [], totalColumnsWidth: c = 0, needSpacer: l = !1, headerRowSpan: u = 1 }, d) => {
152
- let f = m(() => e.some((e) => e.children && e.children.length > 0), [e]), { flatColumns: p, headerRows: h } = m(() => {
153
- if (f) return re(e);
154
- let t = Math.max(1, u || 1);
185
+ }, V = c(({ columns: e = [], enableFixed: t = !1, height: n = w.HEADER_HEIGHT, resizingColumn: r = null, onResizeStart: i, resizable: s = !0, disabledResizeColumns: c = [], totalColumnsWidth: l = 0, needSpacer: u = !1, headerRowSpan: d = 1 }, f) => {
186
+ let p = m(() => e.some((e) => e.children && e.children.length > 0), [e]), { flatColumns: h, headerRows: g } = m(() => {
187
+ if (p) return B(e);
188
+ let t = Math.max(1, d || 1);
155
189
  if (t > 1) {
156
190
  let n = [e.map((e) => ({
157
191
  ...e,
@@ -171,54 +205,51 @@ var re = (e) => {
171
205
  };
172
206
  }, [
173
207
  e,
174
- f,
175
- u
176
- ]), g = (e) => {
177
- let t = j(e, p), n = e.align || "left", o = s.includes(e.key), c = {
208
+ p,
209
+ d
210
+ ]), _ = (e) => {
211
+ let t = M(e, h), n = e.align || "left", o = c.includes(e.key), l = {
178
212
  textAlign: n,
179
- ...N(t, p, e.fixed)
180
- }, l = `custom-table-header-cell ${e.className || ""}`.trim();
181
- return e.fixed === "left" && (l += " fixed-left"), e.fixed === "right" && (l += " fixed-right"), t === 0 && (l += " first"), t === p.length - 1 && (l += " last"), /* @__PURE__ */ a(F, {
182
- column: {
183
- ...e,
184
- index: t
185
- },
186
- style: c,
187
- className: l,
213
+ ...P(t, h, e.fixed)
214
+ }, u = `custom-table-header-cell ${e.className || ""}`.trim();
215
+ return e.fixed === "left" && (u += " fixed-left"), e.fixed === "right" && (u += " fixed-right"), t === 0 && (u += " first"), t === h.length - 1 && (u += " last"), /* @__PURE__ */ a(z, {
216
+ column: e,
217
+ style: l,
218
+ className: u,
188
219
  onResizeStart: i,
189
220
  isResizing: r === e.key,
190
- resizable: !e.children && !o,
221
+ resizable: s && !e.children && !o,
191
222
  colSpan: e.colSpan,
192
223
  rowSpan: e.rowSpan
193
224
  }, e.key);
194
225
  };
195
226
  return /* @__PURE__ */ a("div", {
196
- ref: d,
227
+ ref: f,
197
228
  className: "custom-table-header",
198
229
  style: m(() => {
199
- let e = { minWidth: c };
230
+ let e = { minWidth: l };
200
231
  return t && (e.position = "sticky", e.top = 0, e.zIndex = 11), e;
201
- }, [t, c]),
232
+ }, [t, l]),
202
233
  children: /* @__PURE__ */ o("table", {
203
234
  style: {
204
235
  tableLayout: "fixed",
205
- minWidth: c
236
+ minWidth: l
206
237
  },
207
- children: [/* @__PURE__ */ o("colgroup", { children: [p.map((e) => /* @__PURE__ */ a("col", { style: { width: e.width || D.DEFAULT_WIDTH } }, e.key)), l ? /* @__PURE__ */ a("col", {
238
+ children: [/* @__PURE__ */ o("colgroup", { children: [h.map((e) => /* @__PURE__ */ a("col", { style: { width: e.width || D.DEFAULT_WIDTH } }, e.key)), u ? /* @__PURE__ */ a("col", {
208
239
  className: "spacer-col",
209
240
  style: { width: "auto" }
210
- }) : null] }), /* @__PURE__ */ a("thead", { children: h.map((e, t) => e.length === 0 ? /* @__PURE__ */ a("tr", { style: { height: n } }, t) : /* @__PURE__ */ o("tr", {
211
- style: { height: f || u > 1 ? n : "auto" },
212
- children: [e.map((e) => g(e)), l && t === 0 ? /* @__PURE__ */ a("th", {
213
- className: "custom-table-header-cell",
214
- rowSpan: h.length
241
+ }) : null] }), /* @__PURE__ */ a("thead", { children: g.map((e, t) => e.length === 0 ? /* @__PURE__ */ a("tr", { style: { height: n } }, t) : /* @__PURE__ */ o("tr", {
242
+ style: { height: p || d > 1 ? n : "auto" },
243
+ children: [e.map((e) => _(e)), u && t === 0 ? /* @__PURE__ */ a("th", {
244
+ className: "custom-table-header-cell spacer-cell",
245
+ rowSpan: g.length
215
246
  }) : null]
216
247
  }, t)) })]
217
248
  })
218
249
  });
219
250
  });
220
- ie.displayName = "TableHeader";
221
- var ae = l(ie), I = (e, t) => {
251
+ V.displayName = "TableHeader";
252
+ var ne = l(V), re = (e, t) => {
222
253
  let n = t.name, r = t.children || [], i = 0;
223
254
  for (let t = 0; t < e.length; t++) {
224
255
  let a = e[t], o = Object.keys(a);
@@ -228,7 +259,7 @@ var ae = l(ie), I = (e, t) => {
228
259
  }) && (i = t + 1);
229
260
  }
230
261
  return i;
231
- }, oe = (e, t, n = "_id") => {
262
+ }, ie = (e, t, n = "_id") => {
232
263
  if (!e || e.length === 0) return [];
233
264
  let i = t.filter((e) => !!(e.children && e.children.length > 0));
234
265
  if (i.length === 0) return e.map((e) => ({
@@ -240,7 +271,7 @@ var ae = l(ie), I = (e, t) => {
240
271
  Object.entries(a).forEach(([e, t]) => {
241
272
  let n = {};
242
273
  i.forEach((e) => {
243
- n[e.name] = I(t, e);
274
+ n[e.name] = re(t, e);
244
275
  }), o[e] = {
245
276
  groupSize: t.length,
246
277
  subformRowCounts: n
@@ -262,7 +293,7 @@ var ae = l(ie), I = (e, t) => {
262
293
  _subformRowCounts: r.subformRowCounts
263
294
  });
264
295
  }), s;
265
- }, L = (e, t) => {
296
+ }, H = (e, t) => {
266
297
  if (t.parentKey) return 1;
267
298
  if (e._rowspan && e._rowspan[t.key] !== void 0) {
268
299
  let n = e._rowspan[t.key];
@@ -273,8 +304,8 @@ var ae = l(ie), I = (e, t) => {
273
304
  return t > 0 ? t : 0;
274
305
  }
275
306
  return 1;
276
- }, R = (e, t) => L(e, t) > 0, z = (e, t, n) => {
277
- let r = j(e, t), i = e.align || "left", a = N(r, t, n);
307
+ }, U = (e, t) => H(e, t) > 0, W = (e, t, n) => {
308
+ let r = M(e, t), i = e.align || "left", a = P(r, t, n);
278
309
  return {
279
310
  column: e,
280
311
  className: _("custom-table-cell", {
@@ -286,8 +317,8 @@ var ae = l(ie), I = (e, t) => {
286
317
  ...a
287
318
  }
288
319
  };
289
- }, B = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixedColumns: n = [], dataSource: r = [], rowKey: i = "id", rowHeight: s = w.ROW_HEIGHT, emptyText: c, onRowClick: l, onRow: d, onCell: f, totalColumnsWidth: p = 0, needSpacer: h = !1, rowRefCallback: g, isDynamicHeight: v = !1, emptyRowContent: y, showEmptyRow: b = !0, startVirtualIndex: x, hideWhenEmpty: S = !1, wrapperClassName: C, forceRowHeight: T = !1 }) => {
290
- let E = m(() => A(e), [e]), O = m(() => A(t), [t]), k = m(() => A(n), [n]), j = m(() => [
320
+ }, G = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixedColumns: n = [], dataSource: r = [], rowKey: i = "id", rowHeight: s = w.ROW_HEIGHT, emptyText: c, onRowClick: l, onRow: d, onCell: f, totalColumnsWidth: p = 0, needSpacer: h = !1, rowRefCallback: g, isDynamicHeight: v = !1, emptyRowContent: y, showEmptyRow: b = !0, startVirtualIndex: x, hideWhenEmpty: S = !1, wrapperClassName: C, forceRowHeight: T = !1 }) => {
321
+ let E = m(() => j(e), [e]), O = m(() => j(t), [t]), k = m(() => j(n), [n]), A = m(() => [
291
322
  ...E,
292
323
  ...O,
293
324
  ...k
@@ -296,23 +327,23 @@ var ae = l(ie), I = (e, t) => {
296
327
  O,
297
328
  k
298
329
  ]), M = m(() => {
299
- let e = E.map((e) => z(e, j, "left")), t = O.map((e) => z(e, j, void 0)), n = k.map((e) => z(e, j, "right"));
330
+ let e = E.map((e) => W(e, A, "left")), t = O.map((e) => W(e, A, void 0)), n = k.map((e) => W(e, A, "right"));
300
331
  return [
301
332
  ...e,
302
333
  ...t,
303
334
  ...n
304
335
  ];
305
336
  }, [
306
- j,
337
+ A,
307
338
  E,
308
339
  O,
309
340
  k
310
341
  ]), N = u((e) => {
311
342
  e && g && g(e);
312
- }, [g]), ee = (e, t, n) => {
343
+ }, [g]), P = (e, t, n) => {
313
344
  let { column: r, className: i, style: o } = e;
314
- if (!R(t, r)) return null;
315
- let s = L(t, r), c = r.dataIndex ? t[r.dataIndex] : void 0, l = r.render && typeof r.render == "function" ? r.render(c, t, n) : c, u = {
345
+ if (!U(t, r)) return null;
346
+ let s = H(t, r), c = r.dataIndex ? t[r.dataIndex] : void 0, l = r.render && typeof r.render == "function" ? r.render(c, t, n) : c, u = {
316
347
  className: i,
317
348
  style: o
318
349
  };
@@ -331,10 +362,10 @@ var ae = l(ie), I = (e, t) => {
331
362
  }, r.key);
332
363
  };
333
364
  if (S && r.length === 0) return null;
334
- let ne = () => y ?? /* @__PURE__ */ a("tr", {
365
+ let F = () => y ?? /* @__PURE__ */ a("tr", {
335
366
  className: "custom-table-empty-row",
336
367
  children: /* @__PURE__ */ a("td", {
337
- colSpan: j.length + (h ? 1 : 0),
368
+ colSpan: A.length + (h ? 1 : 0),
338
369
  style: {
339
370
  textAlign: "center",
340
371
  padding: "20px",
@@ -342,7 +373,7 @@ var ae = l(ie), I = (e, t) => {
342
373
  },
343
374
  children: c
344
375
  })
345
- }), P = T || !v;
376
+ }), L = T || !v;
346
377
  return /* @__PURE__ */ a("div", {
347
378
  className: _("custom-table-body", C),
348
379
  style: { minWidth: p },
@@ -351,10 +382,10 @@ var ae = l(ie), I = (e, t) => {
351
382
  tableLayout: "fixed",
352
383
  minWidth: p
353
384
  },
354
- children: [/* @__PURE__ */ o("colgroup", { children: [j.map((e) => /* @__PURE__ */ a("col", { style: { width: e.width || D.DEFAULT_WIDTH } }, e.key)), h ? /* @__PURE__ */ a("col", {
385
+ children: [/* @__PURE__ */ o("colgroup", { children: [A.map((e) => /* @__PURE__ */ a("col", { style: { width: e.width || D.DEFAULT_WIDTH } }, e.key)), h ? /* @__PURE__ */ a("col", {
355
386
  className: "spacer-col",
356
387
  style: { width: "auto" }
357
- }) : null] }), /* @__PURE__ */ a("tbody", { children: r.length === 0 ? b ? ne() : null : r.map((e, t) => {
388
+ }) : null] }), /* @__PURE__ */ a("tbody", { children: r.length === 0 ? b ? F() : null : r.map((e, t) => {
358
389
  let n = {};
359
390
  if (d && typeof d == "function") {
360
391
  let r = d(e, t, {
@@ -371,22 +402,22 @@ var ae = l(ie), I = (e, t) => {
371
402
  return /* @__PURE__ */ o("tr", {
372
403
  ref: v ? N : void 0,
373
404
  style: {
374
- height: P ? s : "auto",
405
+ height: L ? s : "auto",
375
406
  ...n.style
376
407
  },
377
408
  className: _("custom-table-row", n.className),
378
409
  onClick: (n) => l?.(e, t, n),
379
410
  "data-index": v ? r : void 0,
380
411
  ...n,
381
- children: [M.map((n) => ee(n, e, t)), h ? /* @__PURE__ */ a("td", { className: "spacer-cell" }) : null]
382
- }, te(e, i, t));
412
+ children: [M.map((n) => P(n, e, t)), h ? /* @__PURE__ */ a("td", { className: "spacer-cell" }) : null]
413
+ }, I(e, i, t));
383
414
  }) })]
384
415
  })
385
416
  });
386
417
  };
387
- B.displayName = "TableBody";
388
- var se = l(B), V = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixedColumns: n = [], footerData: r = {}, summary: i, render: s, enableFixed: c = !0, totalColumnsWidth: l = 0, needSpacer: u = !1 }) => {
389
- let d = m(() => A(e), [e]), f = m(() => A(t), [t]), p = m(() => A(n), [n]), h = m(() => [
418
+ G.displayName = "TableBody";
419
+ var ae = l(G), K = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixedColumns: n = [], footerData: r = {}, summary: i, render: s, enableFixed: c = !0, totalColumnsWidth: l = 0, needSpacer: u = !1 }) => {
420
+ let d = m(() => j(e), [e]), f = m(() => j(t), [t]), p = m(() => j(n), [n]), h = m(() => [
390
421
  ...d,
391
422
  ...f,
392
423
  ...p
@@ -397,7 +428,7 @@ var se = l(B), V = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixe
397
428
  ]), g = (e) => {
398
429
  let t = (e.dataIndex ? r?.[e.dataIndex] : void 0) ?? i?.[e.key], { renderFooter: n } = e, o = n && typeof n == "function" ? n(t, e) : s && typeof s == "function" ? s(t, e) : t, l = { textAlign: e.align || "left" }, u = "custom-table-footer-cell";
399
430
  if (c && e.fixed) {
400
- let t = N(j(e, h), h, e.fixed);
431
+ let t = P(M(e, h), h, e.fixed);
401
432
  t && (l = {
402
433
  ...l,
403
434
  ...t
@@ -435,9 +466,9 @@ var se = l(B), V = ({ leftFixedColumns: e = [], normalColumns: t = [], rightFixe
435
466
  })
436
467
  });
437
468
  };
438
- V.displayName = "TableFooter";
439
- var ce = l(V), H = [];
440
- function le(e, t, r) {
469
+ K.displayName = "TableFooter";
470
+ var oe = l(K), se = [];
471
+ function ce(e, t, r) {
441
472
  let i = y(e), a = y(t.estimateSize), o = t.rowHeight, s = t.minRowHeight || T.MIN_HEIGHT, c = t.maxRowHeight || T.MAX_HEIGHT, l = u((e) => {
442
473
  let t = i.current ?? [], r = a.current;
443
474
  if (typeof r == "function") return r(e, t[e]);
@@ -480,7 +511,7 @@ function le(e, t, r) {
480
511
  return n.set(t, a), a;
481
512
  } : void 0,
482
513
  getItemKey: x
483
- }), w = f ? S.getTotalSize() : 0, D = f ? S.getVirtualItems() : H, O = f && D.length > 0 && D[0].start || 0, k = f && D.length > 0 ? w - (D[D.length - 1].end || 0) : 0, A = b(() => {
514
+ }), w = f ? S.getTotalSize() : 0, D = f ? S.getVirtualItems() : se, O = f && D.length > 0 && D[0].start || 0, k = f && D.length > 0 ? w - (D[D.length - 1].end || 0) : 0, A = b(() => {
484
515
  g.current.clear(), typeof S.measure == "function" && S.measure();
485
516
  }), j = b((e) => {
486
517
  if (e === void 0) {
@@ -508,9 +539,22 @@ function le(e, t, r) {
508
539
  isDynamicHeight: p
509
540
  };
510
541
  }
542
+ function le(e, t, n, r) {
543
+ let i = n ? t.map((t) => {
544
+ let n = e[t.index];
545
+ return n && {
546
+ ...n,
547
+ dataIndex: t.index
548
+ };
549
+ }) : e.map((e, t) => ({
550
+ ...e,
551
+ dataIndex: t
552
+ }));
553
+ return r ? r(i) : i;
554
+ }
511
555
  //#endregion
512
556
  //#region src/components/Table/hooks/useColumnResize.ts
513
- function ue(e = {}) {
557
+ function q(e = {}) {
514
558
  let { minColumnWidth: t = D.MIN_WIDTH, maxColumnWidth: r = D.MAX_WIDTH, onColumnResize: i, onColumnResizeEnd: a } = e, [o, s] = g(null), c = y(o), l = y(i), u = y(a), d = b((e, t, n) => {
515
559
  s({
516
560
  columnKey: e,
@@ -537,272 +581,301 @@ function ue(e = {}) {
537
581
  };
538
582
  }
539
583
  //#endregion
540
- //#region src/components/Table/style/resolveTableThemeVars.ts
541
- var de = (e) => {
542
- if (!e) return {};
543
- let n = {};
544
- return t(n, "--bsy-table-color-border", e.colorBorder), t(n, "--bsy-table-color-bg-header", e.colorBgHeader), t(n, "--bsy-table-color-bg-container", e.colorBgContainer), t(n, "--bsy-table-color-text", e.colorText), t(n, "--bsy-table-color-text-heading", e.colorTextHeading), t(n, "--bsy-table-color-bg-row-hover", e.colorBgRowHover), n;
545
- }, fe = [], pe = {
546
- left: !0,
547
- right: !0
548
- }, me = {
549
- low: {
550
- className: "bsy-row-height-low",
551
- height: 34
552
- },
553
- middle: {
554
- className: "bsy-row-height-middle",
555
- height: 68
556
- },
557
- high: {
558
- className: "bsy-row-height-high",
559
- height: 106
560
- },
561
- auto: {
562
- className: "bsy-row-height-auto",
563
- height: "auto"
564
- }
565
- }, he = c(({ columns: t = [], dataSource: n = [], rowKey: r = "id", height: c, bordered: l = !0, emptyText: u, onRowClick: _, scroll: v, footerData: y, footerSummary: C, renderFooter: T, hasFooter: O = !1, onRow: k, onCell: j, rowHeightStyle: M = "low", resizable: N = !0, disabledResizeColumns: ee = fe, minColumnWidth: te, maxColumnWidth: F, onColumnResize: re, onColumnResizeEnd: ie, renderBody: I, estimateSize: oe, virtualEnabled: L, dataProcessor: R, headerRowSpan: z, fixedShadowMask: B = pe, onRenderEmpty: V, overlayScrollbarOptions: H, wrapperStyle: he, theme: ge }, _e) => {
566
- let { t: ve } = e(), ye = m(() => de(ge), [ge]), U = h(null), be = h(null), W = h(null), G = h(/* @__PURE__ */ new Map()), K = x(U), xe = K?.width ?? 0, Se = K?.height ?? 0, [Ce, we] = g(0), [Te, Ee] = g(!1), [De, Oe] = g({
567
- left: 0,
568
- top: 0
569
- }), [ke, Ae] = g(w.HEADER_HEIGHT), q = m(() => A(t), [t]);
584
+ //#region src/components/Table/hooks/useTableColumnWidths.ts
585
+ var J = {};
586
+ function ue({ columns: e, scrollRef: t, minColumnWidth: n, maxColumnWidth: r, onColumnResize: a, onColumnResizeEnd: o }) {
587
+ let s = h(null), c = h(/* @__PURE__ */ new Map()), l = h(/* @__PURE__ */ new Map()), [u, f] = g(J), p = m(() => j(e), [e]), _ = m(() => ee(e, u), [e, u]), v = m(() => j(_), [_]);
570
588
  d(() => {
571
- q.forEach((e) => {
572
- G.current.set(e.key, e.width || D.DEFAULT_WIDTH);
589
+ let e = l.current, t = /* @__PURE__ */ new Map();
590
+ for (let e of p) t.set(e.key, e.width || D.DEFAULT_WIDTH);
591
+ f((n) => {
592
+ let r = Object.keys(n);
593
+ if (r.length === 0) return n;
594
+ let i = !1, a = { ...n };
595
+ for (let o of r) {
596
+ let r = t.get(o);
597
+ if (r === void 0) {
598
+ delete a[o], i = !0;
599
+ continue;
600
+ }
601
+ let s = e.get(o), c = s !== void 0 && s !== r;
602
+ (r === n[o] || c) && (delete a[o], i = !0);
603
+ }
604
+ return i ? a : n;
605
+ });
606
+ for (let [n, r] of t) {
607
+ let t = e.get(n), i = c.current.get(n);
608
+ (i === void 0 || t !== void 0 && t !== r || i === r) && c.current.set(n, r);
609
+ }
610
+ l.current = t;
611
+ }, [p]);
612
+ let y = b((e) => c.current.get(e.key) || e.width || D.DEFAULT_WIDTH), x = b((e) => {
613
+ let n = v.findIndex((t) => t.key === e);
614
+ if (n === -1) return 0;
615
+ let r = v[n], a = i(v.slice(0, n + 1), (e) => y(e));
616
+ return r.fixed === "left" ? a : a - (t.current?.scrollLeft || 0);
617
+ }), S = b((e) => {
618
+ s.current && (s.current.style.display = "block", s.current.style.left = `${x(e)}px`);
619
+ }), C = b((e, t) => {
620
+ c.current.set(e, t), f((n) => n[e] === t ? n : {
621
+ ...n,
622
+ [e]: t
573
623
  });
574
- }, [q]);
575
- let je = b((e) => G.current.get(e.key) || e.width || D.DEFAULT_WIDTH), Me = b((e) => {
576
- let t = q.findIndex((t) => t.key === e);
577
- if (t === -1) return 0;
578
- let n = q[t], r = i(q.slice(0, t + 1), (e) => je(e));
579
- return n.fixed === "left" ? r : r - (U.current?.scrollLeft || 0);
580
- }), Ne = b((e) => {
581
- W.current && (W.current.style.display = "block", W.current.style.left = `${Me(e)}px`);
582
- }), { isResizing: Pe, resizingColumn: Fe, startResize: Ie } = ue({
583
- minColumnWidth: te || D.MIN_WIDTH,
584
- maxColumnWidth: F || D.MAX_WIDTH,
624
+ }), { isResizing: w, resizingColumn: T, startResize: E } = q({
625
+ minColumnWidth: n || D.MIN_WIDTH,
626
+ maxColumnWidth: r || D.MAX_WIDTH,
585
627
  onColumnResizeEnd: b((e, t) => {
586
- G.current.set(e, t), ie?.(e, t, G.current), W.current && (W.current.style.display = "none");
628
+ C(e, t), o?.(e, t, c.current), s.current && (s.current.style.display = "none");
587
629
  }),
588
630
  onColumnResize: b((e, t, n) => {
589
- G.current.set(t, n), re?.(t, n, G.current), Ne(t);
631
+ C(t, n), a?.(t, n, c.current), S(t);
590
632
  })
591
- }), Le = b((e, t, n) => {
592
- Ne(e), Ie(e, t, n);
593
- }), { className: Re, height: J } = me[M] || me.auto, { virtualRows: ze, totalHeight: Be, paddingTop: Ve, paddingBottom: He, remeasure: Y, rowRefCallback: Ue, isDynamicHeight: We, clearRowHeightCache: Ge, enabled: Ke } = le(n, m(() => ({
594
- rowHeight: J,
595
- overscan: E.DEFAULT_OVERSCAN,
596
- estimateSize: oe,
597
- ...L === void 0 ? {} : { enabled: L }
598
- }), [
599
- J,
600
- oe,
601
- L
602
- ]), U);
603
- f(_e, () => ({
604
- clearRowHeightCache: Ge,
605
- remeasure: Y
606
- }), [Ge, Y]);
607
- let qe = u || ve(w.EMPTY_TEXT_KEY);
608
- d(() => {
609
- Y?.();
610
- }, [J, Y]);
611
- let { leftFixedColumns: X, normalColumns: Je, rightFixedColumns: Z } = m(() => ne(t), [t]), Ye = m(() => P(X), [X]), Xe = m(() => P(Z), [Z]), { totalColumnsWidth: Q, needSpacer: $ } = m(() => {
612
- let e = P(t);
613
- return {
614
- totalColumnsWidth: e,
615
- needSpacer: e < xe
616
- };
617
- }, [t, xe]), [Ze] = S({ options: {
633
+ });
634
+ return {
635
+ sizedColumns: _,
636
+ flatColumns: v,
637
+ isResizing: w,
638
+ resizingColumn: T,
639
+ handleResizeStart: b((e, t, n) => {
640
+ S(e), E(e, t, n);
641
+ }),
642
+ resizeHandleRef: s
643
+ };
644
+ }
645
+ //#endregion
646
+ //#region src/components/Table/hooks/useTableViewport.ts
647
+ function de({ scrollRef: e, tableHeaderRef: t, bordered: n, hasFooter: r, headerRowSpan: i, dataSourceLength: a, overlayScrollbarOptions: o }) {
648
+ let s = x(e), c = s?.width ?? 0, l = s?.height ?? 0, [u, d] = g(0), [f, h] = g(!1), [_, v] = g({
649
+ left: 0,
650
+ top: 0
651
+ }), [y, b] = g(w.HEADER_HEIGHT), [C] = S({ options: {
618
652
  overflow: {
619
- x: H?.overflowX ?? "scroll",
620
- y: H?.overflowY ?? "scroll"
653
+ x: o?.overflowX ?? "scroll",
654
+ y: o?.overflowY ?? "scroll"
621
655
  },
622
656
  scrollbars: {
623
- theme: H?.theme ?? "os-theme-bsy",
624
- autoHide: H?.autoHide ?? "move",
657
+ theme: o?.theme ?? "os-theme-bsy",
658
+ autoHide: o?.autoHide ?? "move",
625
659
  autoHideDelay: 400
626
660
  }
627
661
  } });
628
- p(() => {
629
- if (!U.current) return;
630
- let e = U.current, t = e.parentElement;
631
- t && Ze({
632
- target: t,
633
- elements: { viewport: e }
662
+ return p(() => {
663
+ if (!e.current) return;
664
+ let t = e.current, n = t.parentElement;
665
+ n && C({
666
+ target: n,
667
+ elements: { viewport: t }
634
668
  });
635
- }, [Ze]);
636
- let Qe = m(() => {
637
- let e = Ke ? ze.map((e) => {
638
- let t = n[e.index];
639
- return t && {
640
- ...t,
641
- dataIndex: e.index
642
- };
643
- }) : n.map((e, t) => ({
644
- ...e,
645
- dataIndex: t
646
- }));
647
- return R ? R(e) : e;
669
+ }, [C]), p(() => {
670
+ let n = e.current;
671
+ n && (d(n.clientHeight), v({
672
+ left: n.offsetLeft,
673
+ top: n.offsetTop
674
+ }), b(t.current?.clientHeight || w.HEADER_HEIGHT), h(n.scrollHeight > n.clientHeight));
648
675
  }, [
649
- Ke,
650
- ze,
676
+ s?.width,
677
+ s?.height,
678
+ a,
679
+ r,
680
+ i,
681
+ e,
682
+ t
683
+ ]), {
684
+ elementWidth: c,
685
+ hasYScroll: f,
686
+ scrollOffset: _,
687
+ headerHeight: y,
688
+ bodyMinHeight: m(() => {
689
+ if (!l || !u) return;
690
+ let e = n ? 2 : 0, t = u - y - (r ? w.HEADER_HEIGHT : 0) - e;
691
+ return Math.max(0, t);
692
+ }, [
693
+ l,
694
+ u,
695
+ y,
696
+ r,
697
+ n
698
+ ])
699
+ };
700
+ }
701
+ //#endregion
702
+ //#region src/components/Table/style/resolveTableThemeVars.ts
703
+ var fe = (e) => {
704
+ if (!e) return {};
705
+ let n = {};
706
+ return t(n, "--bsy-table-color-border", e.colorBorder), t(n, "--bsy-table-color-bg-header", e.colorBgHeader), t(n, "--bsy-table-color-bg-container", e.colorBgContainer), t(n, "--bsy-table-color-text", e.colorText), t(n, "--bsy-table-color-text-heading", e.colorTextHeading), t(n, "--bsy-table-color-bg-row-hover", e.colorBgRowHover), n;
707
+ }, pe = [], me = {
708
+ left: !0,
709
+ right: !0
710
+ }, Y = c(({ columns: t = [], dataSource: n = [], rowKey: r = "id", height: i, bordered: c = !0, emptyText: l, onRowClick: u, scroll: p, footerData: g, footerSummary: _, renderFooter: v, hasFooter: y = !1, onRow: b, onCell: x, rowHeightStyle: S = "low", resizable: C = !0, disabledResizeColumns: T = pe, minColumnWidth: D, maxColumnWidth: k, onColumnResize: A, onColumnResizeEnd: j, renderBody: M, estimateSize: N, virtualEnabled: P, dataProcessor: F, headerRowSpan: I, fixedShadowMask: L = me, onRenderEmpty: R, overlayScrollbarOptions: ee, wrapperStyle: z, theme: B }, V) => {
711
+ let { t: re } = e(), ie = m(() => fe(B), [B]), H = h(null), U = h(null), { elementWidth: W, hasYScroll: G, scrollOffset: K, headerHeight: se, bodyMinHeight: q } = de({
712
+ scrollRef: H,
713
+ tableHeaderRef: U,
714
+ bordered: c,
715
+ hasFooter: y,
716
+ headerRowSpan: I,
717
+ dataSourceLength: n.length,
718
+ overlayScrollbarOptions: ee
719
+ }), { sizedColumns: J, flatColumns: Y, isResizing: he, resizingColumn: ge, handleResizeStart: _e, resizeHandleRef: ve } = ue({
720
+ columns: t,
721
+ scrollRef: H,
722
+ minColumnWidth: D,
723
+ maxColumnWidth: k,
724
+ onColumnResize: A,
725
+ onColumnResizeEnd: j
726
+ }), { className: ye, height: X } = O[S] || O.auto, { virtualRows: be, totalHeight: xe, paddingTop: Se, paddingBottom: Ce, remeasure: Z, rowRefCallback: we, isDynamicHeight: Te, clearRowHeightCache: Ee, enabled: De } = ce(n, m(() => ({
727
+ rowHeight: X,
728
+ overscan: E.DEFAULT_OVERSCAN,
729
+ estimateSize: N,
730
+ ...P === void 0 ? {} : { enabled: P }
731
+ }), [
732
+ X,
733
+ N,
734
+ P
735
+ ]), H);
736
+ f(V, () => ({
737
+ clearRowHeightCache: Ee,
738
+ remeasure: Z
739
+ }), [Ee, Z]);
740
+ let Oe = l || re(w.EMPTY_TEXT_KEY);
741
+ d(() => {
742
+ Z?.();
743
+ }, [X, Z]);
744
+ let { leftFixedColumns: ke, normalColumns: Ae, rightFixedColumns: je, fixedLeftWidth: Me, fixedRightWidth: Ne, totalColumnsWidth: Q, needSpacer: $ } = m(() => te(J, W), [J, W]), Pe = m(() => le(n, be, De, F), [
745
+ De,
746
+ be,
651
747
  n,
652
- R
653
- ]), $e = m(() => {
748
+ F
749
+ ]), Fe = m(() => {
654
750
  let e = {};
655
- return l ? e.border = "1px solid #e0e0e0" : e.border = "none", (c || v?.y) && (e.maxHeight = c || v?.y), e;
751
+ return c ? e.border = "1px solid var(--bsy-table-color-border, var(--bsy-base-border-color, #e0e0e0))" : e.border = "none", (i || p?.y) && (e.maxHeight = i || p?.y), e;
656
752
  }, [
657
- l,
658
753
  c,
659
- v
660
- ]);
661
- p(() => {
662
- let e = U.current;
663
- e && (we(e.clientHeight), Oe({
664
- left: e.offsetLeft,
665
- top: e.offsetTop
666
- }), Ae(be.current?.clientHeight || w.HEADER_HEIGHT), Ee(e.scrollHeight > e.clientHeight));
667
- }, [
668
- K?.width,
669
- K?.height,
670
- n.length,
671
- O,
672
- z
673
- ]);
674
- let et = m(() => {
675
- if (!Se || !Ce) return;
676
- let e = l ? 2 : 0, t = Ce - ke - (O ? w.HEADER_HEIGHT : 0) - e;
677
- return Math.max(0, t);
678
- }, [
679
- Se,
680
- Ce,
681
- ke,
682
- O,
683
- l
684
- ]), tt = !!(c || v?.y), nt, rt, it = !0;
685
- if (!I && n.length === 0 && typeof V == "function") {
686
- let e = V();
687
- s.isValidElement(e) && e.type === "tr" ? nt = e : e && (rt = e, it = !1);
754
+ i,
755
+ p
756
+ ]), Ie = !!(i || p?.y), Le, Re, ze = !0;
757
+ if (!M && n.length === 0 && typeof R == "function") {
758
+ let e = R();
759
+ s.isValidElement(e) && e.type === "tr" ? Le = e : e && (Re = e, ze = !1);
688
760
  }
689
761
  return /* @__PURE__ */ o("div", {
690
- className: `custom-table ${Te ? "has-y-scroll" : ""}`,
762
+ className: `custom-table ${G ? "has-y-scroll" : ""}`,
691
763
  style: {
692
764
  position: "relative",
693
765
  height: "100%",
694
- ...ye
766
+ ...ie
695
767
  },
696
768
  "data-overlayscrollbars-initialize": "",
697
769
  children: [
698
770
  /* @__PURE__ */ o("div", {
699
- ref: U,
700
- className: `custom-table-wrapper ${Pe ? "resizing" : ""} ${Re} os-enabled`,
771
+ ref: H,
772
+ className: `custom-table-wrapper ${he ? "resizing" : ""} ${ye} os-enabled`,
701
773
  style: {
702
- ...$e,
703
- ...he
774
+ ...Fe,
775
+ ...z
704
776
  },
705
777
  children: [
706
- /* @__PURE__ */ a(ae, {
707
- ref: be,
708
- columns: t,
709
- enableFixed: tt,
778
+ /* @__PURE__ */ a(ne, {
779
+ ref: U,
780
+ columns: J,
781
+ enableFixed: Ie,
710
782
  height: w.HEADER_HEIGHT,
711
- resizingColumn: Fe,
712
- onResizeStart: N ? Le : void 0,
713
- disabledResizeColumns: ee,
783
+ resizingColumn: ge,
784
+ onResizeStart: C ? _e : void 0,
785
+ resizable: C,
786
+ disabledResizeColumns: T,
714
787
  totalColumnsWidth: Q,
715
788
  needSpacer: $,
716
- headerRowSpan: z
789
+ headerRowSpan: I
717
790
  }),
718
791
  /* @__PURE__ */ a("div", {
719
792
  className: "custom-table-body-wrapper",
720
793
  style: { position: "relative" },
721
794
  children: /* @__PURE__ */ a("div", {
722
795
  style: {
723
- minHeight: et,
724
- height: Be,
725
- paddingBottom: He > 0 ? `${He}px` : void 0,
726
- paddingTop: Ve > 0 ? `${Ve}px` : void 0,
796
+ minHeight: q,
797
+ height: xe,
798
+ paddingBottom: Ce > 0 ? `${Ce}px` : void 0,
799
+ paddingTop: Se > 0 ? `${Se}px` : void 0,
727
800
  position: "relative"
728
801
  },
729
- children: I ? I({
730
- columns: t,
731
- flatColumns: q,
732
- leftFixedColumns: X,
733
- normalColumns: Je,
734
- rightFixedColumns: Z,
802
+ children: M ? M({
803
+ columns: J,
804
+ flatColumns: Y,
805
+ leftFixedColumns: ke,
806
+ normalColumns: Ae,
807
+ rightFixedColumns: je,
735
808
  totalColumnsWidth: Q,
736
809
  needSpacer: $,
737
- rowRefCallback: Ue,
738
- isDynamicHeight: We,
739
- rowHeight: J,
740
- onRowClick: _,
741
- scrollRef: U,
742
- virtualRows: ze,
743
- virtualEnabled: Ke
744
- }) : /* @__PURE__ */ a(se, {
745
- leftFixedColumns: X,
746
- normalColumns: Je,
747
- rightFixedColumns: Z,
748
- dataSource: Qe,
810
+ rowRefCallback: we,
811
+ isDynamicHeight: Te,
812
+ rowHeight: X,
813
+ onRowClick: u,
814
+ scrollRef: H,
815
+ virtualRows: be,
816
+ virtualEnabled: De
817
+ }) : /* @__PURE__ */ a(ae, {
818
+ leftFixedColumns: ke,
819
+ normalColumns: Ae,
820
+ rightFixedColumns: je,
821
+ dataSource: Pe,
749
822
  rowKey: r,
750
- rowHeight: J,
751
- emptyText: qe,
752
- emptyRowContent: nt,
753
- showEmptyRow: it,
754
- onRowClick: _,
755
- onRow: k,
756
- onCell: j,
823
+ rowHeight: X,
824
+ emptyText: Oe,
825
+ emptyRowContent: Le,
826
+ showEmptyRow: ze,
827
+ onRowClick: u,
828
+ onRow: b,
829
+ onCell: x,
757
830
  totalColumnsWidth: Q,
758
831
  needSpacer: $,
759
- rowRefCallback: Ue,
760
- isDynamicHeight: We
832
+ rowRefCallback: we,
833
+ isDynamicHeight: Te
761
834
  })
762
835
  })
763
836
  }),
764
- O && (y || C || T) ? /* @__PURE__ */ a(ce, {
765
- leftFixedColumns: X,
766
- normalColumns: Je,
767
- rightFixedColumns: Z,
768
- footerData: y,
769
- summary: C,
770
- render: T,
771
- enableFixed: tt,
837
+ y && (g || _ || v) ? /* @__PURE__ */ a(oe, {
838
+ leftFixedColumns: ke,
839
+ normalColumns: Ae,
840
+ rightFixedColumns: je,
841
+ footerData: g,
842
+ summary: _,
843
+ render: v,
844
+ enableFixed: Ie,
772
845
  totalColumnsWidth: Q,
773
846
  needSpacer: $
774
847
  }) : null
775
848
  ]
776
849
  }),
777
- rt ? /* @__PURE__ */ a("div", {
850
+ Re ? /* @__PURE__ */ a("div", {
778
851
  className: "custom-table-empty-overlay",
779
852
  style: {
780
- height: et,
781
- left: De.left,
782
- top: De.top + ke + (l ? 1 : 0),
783
- width: xe || void 0
853
+ height: q,
854
+ left: K.left,
855
+ top: K.top + se + (c ? 1 : 0),
856
+ width: W || void 0
784
857
  },
785
858
  children: /* @__PURE__ */ a("div", {
786
859
  className: "custom-table-empty-overlay-inner",
787
- children: rt
860
+ children: Re
788
861
  })
789
862
  }) : null,
790
- N ? /* @__PURE__ */ a("div", {
863
+ C ? /* @__PURE__ */ a("div", {
791
864
  className: "custom-table-resize-handle",
792
- ref: W
865
+ ref: ve
793
866
  }) : null,
794
- B.left !== !1 && Ye > 0 ? /* @__PURE__ */ a("div", {
867
+ L.left !== !1 && Me > 0 ? /* @__PURE__ */ a("div", {
795
868
  className: "fixed-shadow-mask left",
796
- style: { width: Ye }
869
+ style: { width: Me }
797
870
  }) : null,
798
- !$ && B.right !== !1 && Xe > 0 ? /* @__PURE__ */ a("div", {
871
+ !$ && L.right !== !1 && Ne > 0 ? /* @__PURE__ */ a("div", {
799
872
  className: "fixed-shadow-mask right",
800
- style: { width: Xe }
873
+ style: { width: Ne }
801
874
  }) : null
802
875
  ]
803
876
  });
804
877
  });
805
- he.displayName = "Table";
806
- var ge = s.memo(he);
878
+ Y.displayName = "Table";
879
+ var he = s.memo(Y);
807
880
  //#endregion
808
- export { k as _, se as a, R as c, P as d, te as f, w as g, D as h, le as i, M as l, ne as m, de as n, L as o, ee as p, ue as r, oe as s, ge as t, A as u };
881
+ export { A as _, ae as a, U as c, R as d, I as f, w as g, D as h, ce as i, N as l, L as m, fe as n, H as o, F as p, q as r, ie as s, he as t, j as u };