@hkyhy/marsun-components-core 0.1.139 → 0.1.140
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/README.md +1 -0
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Table/Table.js +75 -72
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/columnConfigUtils.d.ts +8 -0
- package/dist/components/Table/columnConfigUtils.js +130 -113
- package/dist/components/Table/columnConfigUtils.js.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +168 -155
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +68 -60
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -1
- package/dist/index.js +478 -477
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,6 +136,7 @@ node scripts/version-check.mjs --apply # → 0.1.99
|
|
|
136
136
|
|
|
137
137
|
也可在 Actions 中手动运行 **Publish npm**,填写已有 tag 重新发布。
|
|
138
138
|
|
|
139
|
+
- 2026-10-29:`v0.1.140` — Table:列配置重排/增量列后归位 `fixed` 列,避免操作列 sticky 失效
|
|
139
140
|
- 2026-10-23:`v0.1.138` — CreateActionForm:`allocatorDisabled` / `defaultAssigneeUserId`(Related S3-1523)
|
|
140
141
|
- 2026-10-22:`v0.1.137` — InboxBell:`action_assigned_ack` 恒「查看任务」(禁「去执行」);Related S3-1721
|
|
141
142
|
- 2026-10-21:`v0.1.136` — MessageCenter 推送规则级别改为业务 DI `levelOptions`(禁写死 L1/L2/L3;S3 可注入 L2+)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableProps as AntTableProps } from 'antd';
|
|
2
2
|
import { Key, ReactElement, ReactNode, Ref } from 'react';
|
|
3
3
|
import { TableColumnConfigFetcher, TableColumnConfigItem, TableColumnConfigSaver } from './columnConfigTypes';
|
|
4
|
-
import { applyColumnConfig, applyLeafWidthOverrides, clearColumnWidthAtPath, clampColumnWidth, columnsLeafPathSignature, COLUMN_CONFIG_COL_KEY, COLUMN_RESIZE_MAX_WIDTH, COLUMN_RESIZE_MIN_WIDTH, columnsToConfig, configHasLeafWidths, copyColumnWidths, FLEX_SPACER_COL_KEY, hideColumnAtPath, insertBeforeFixedRight, isFixedColumn, isInternalColumnKey, setColumnWidthAtPath } from './columnConfigUtils';
|
|
4
|
+
import { applyColumnConfig, applyLeafWidthOverrides, clearColumnWidthAtPath, clampColumnWidth, columnsLeafPathSignature, COLUMN_CONFIG_COL_KEY, COLUMN_RESIZE_MAX_WIDTH, COLUMN_RESIZE_MIN_WIDTH, columnsToConfig, configHasLeafWidths, copyColumnWidths, FLEX_SPACER_COL_KEY, hideColumnAtPath, insertBeforeFixedRight, isFixedColumn, isInternalColumnKey, normalizeFixedColumnOrder, setColumnWidthAtPath } from './columnConfigUtils';
|
|
5
5
|
import { TablePrefs, TablePrefsFetcher, TablePrefsSaver } from './tablePrefsTypes';
|
|
6
6
|
import { TableFetchHandle, TableFetchMapped, TableFetchQuery } from './useTableFetch';
|
|
7
7
|
export type { TableColumnConfigFetcher, TableColumnConfigItem, TableColumnConfigSaver, TableFetchHandle, TableFetchMapped, TableFetchQuery, TablePrefs, TablePrefsFetcher, TablePrefsSaver, };
|
|
@@ -61,4 +61,4 @@ declare const Table: <RecordType extends object = Record<string, unknown>>(props
|
|
|
61
61
|
export default Table;
|
|
62
62
|
export { emptyTablePrefs } from './tablePrefsTypes';
|
|
63
63
|
export { applyHiddenRows, mergeTablePrefs, normalizeHiddenRowKeys, parseTablePrefs, serializeTablePrefs, } from './tablePrefsUtils';
|
|
64
|
-
export { applyColumnConfig, applyLeafWidthOverrides, clearColumnWidthAtPath, clampColumnWidth, columnsLeafPathSignature, COLUMN_CONFIG_COL_KEY, COLUMN_RESIZE_MAX_WIDTH, COLUMN_RESIZE_MIN_WIDTH, columnsToConfig, configHasLeafWidths, copyColumnWidths, FLEX_SPACER_COL_KEY, hideColumnAtPath, insertBeforeFixedRight, isFixedColumn, isInternalColumnKey, setColumnWidthAtPath, };
|
|
64
|
+
export { applyColumnConfig, applyLeafWidthOverrides, clearColumnWidthAtPath, clampColumnWidth, columnsLeafPathSignature, COLUMN_CONFIG_COL_KEY, COLUMN_RESIZE_MAX_WIDTH, COLUMN_RESIZE_MIN_WIDTH, columnsToConfig, configHasLeafWidths, copyColumnWidths, FLEX_SPACER_COL_KEY, hideColumnAtPath, insertBeforeFixedRight, isFixedColumn, isInternalColumnKey, normalizeFixedColumnOrder, setColumnWidthAtPath, };
|
|
@@ -5,19 +5,19 @@ import { forwardRef as Pe, useImperativeHandle as Ie, useMemo as x, useRef as yt
|
|
|
5
5
|
import { flushSync as Ee } from "react-dom";
|
|
6
6
|
import kt from "./columnConfig.module.scss.js";
|
|
7
7
|
import { ColumnConfigTrigger as Te } from "./ColumnConfigPanel.js";
|
|
8
|
-
import { COLUMN_RESIZE_MAX_WIDTH as Ae, COLUMN_RESIZE_MIN_WIDTH as Ne, columnsLeafPathSignature as Fe, applyColumnConfig as je, applyLeafWidthOverrides as Mt, columnsToPanelItems as ke, copyColumnWidths as Me, columnsToConfig as Bt, clampColumnWidth as St, setColumnWidthAtPath as Be, clearColumnWidthAtPath as De, hideColumnAtPath as Ue,
|
|
9
|
-
import { isFixedColumn as
|
|
10
|
-
import
|
|
8
|
+
import { COLUMN_RESIZE_MAX_WIDTH as Ae, COLUMN_RESIZE_MIN_WIDTH as Ne, columnsLeafPathSignature as Fe, applyColumnConfig as je, applyLeafWidthOverrides as Mt, columnsToPanelItems as ke, copyColumnWidths as Me, columnsToConfig as Bt, clampColumnWidth as St, setColumnWidthAtPath as Be, clearColumnWidthAtPath as De, hideColumnAtPath as Ue, normalizeFixedColumnOrder as $e, configHasLeafWidths as Ge, insertBeforeFixedRight as qe, FLEX_SPACER_COL_KEY as Xe, COLUMN_CONFIG_COL_KEY as Ze, isInternalColumnKey as Wt, shortChildId as $t } from "./columnConfigUtils.js";
|
|
9
|
+
import { isFixedColumn as Rn } from "./columnConfigUtils.js";
|
|
10
|
+
import Ye from "./ResizableHeaderCell.js";
|
|
11
11
|
import p from "./style.module.scss.js";
|
|
12
|
-
import { emptyTablePrefs as
|
|
13
|
-
import { normalizeHiddenRowKeys as Ct, mergeTablePrefs as lt, applyHiddenRows as
|
|
14
|
-
import { parseTablePrefs as
|
|
15
|
-
import { useTableFetch as
|
|
16
|
-
import { useMarsunFetch as
|
|
12
|
+
import { emptyTablePrefs as Je } from "./tablePrefsTypes.js";
|
|
13
|
+
import { normalizeHiddenRowKeys as Ct, mergeTablePrefs as lt, applyHiddenRows as Qe } from "./tablePrefsUtils.js";
|
|
14
|
+
import { parseTablePrefs as Ln, serializeTablePrefs as vn } from "./tablePrefsUtils.js";
|
|
15
|
+
import { useTableFetch as Ve } from "./useTableFetch.js";
|
|
16
|
+
import { useMarsunFetch as we } from "../../provider/context.js";
|
|
17
17
|
import Dt from "../Empty/Empty.js";
|
|
18
18
|
import { Eye as Gt } from "../Icons/Eye.js";
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const Ke = { x: "max-content" }, G = 40, tn = 64;
|
|
20
|
+
function en(i) {
|
|
21
21
|
return `共 ${i} 项`;
|
|
22
22
|
}
|
|
23
23
|
function qt(i) {
|
|
@@ -32,14 +32,14 @@ function qt(i) {
|
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
34
|
const c = o.width;
|
|
35
|
-
typeof c == "number" && Number.isFinite(c) && c > 0 ? l += c : l +=
|
|
35
|
+
typeof c == "number" && Number.isFinite(c) && c > 0 ? l += c : l += tn;
|
|
36
36
|
}
|
|
37
37
|
return l;
|
|
38
38
|
}
|
|
39
39
|
function Xt(i, l) {
|
|
40
40
|
return i.key != null && String(i.key) !== "" ? String(i.key) : i.dataIndex != null ? Array.isArray(i.dataIndex) ? i.dataIndex.join(".") : String(i.dataIndex) : `__col_${l}`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function nn(i, l, f) {
|
|
43
43
|
if (typeof f == "function") return String(f(i, l));
|
|
44
44
|
if (typeof f == "string" && f) {
|
|
45
45
|
const o = i[f];
|
|
@@ -52,7 +52,7 @@ function Zt(i, l, f, o = []) {
|
|
|
52
52
|
var R;
|
|
53
53
|
const _ = Xt(a, c);
|
|
54
54
|
if (Wt(_)) return a;
|
|
55
|
-
const
|
|
55
|
+
const u = f ? $t(f, _) : _, O = [...o, u], d = a.onHeaderCell;
|
|
56
56
|
if ((R = a.children) != null && R.length)
|
|
57
57
|
return {
|
|
58
58
|
...a,
|
|
@@ -67,7 +67,7 @@ function Zt(i, l, f, o = []) {
|
|
|
67
67
|
return {
|
|
68
68
|
...a,
|
|
69
69
|
onHeaderCell: (W) => ({
|
|
70
|
-
...typeof
|
|
70
|
+
...typeof d == "function" ? d(W) : d || {},
|
|
71
71
|
"data-marsun-col-path": q,
|
|
72
72
|
width: P,
|
|
73
73
|
minWidth: l.minWidth,
|
|
@@ -80,18 +80,18 @@ function Zt(i, l, f, o = []) {
|
|
|
80
80
|
};
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const rn = 6;
|
|
84
84
|
function Yt(i, l, f, o = [], a = 0, c) {
|
|
85
85
|
let _ = 0;
|
|
86
|
-
return i.map((
|
|
86
|
+
return i.map((u, O) => {
|
|
87
87
|
var g, N;
|
|
88
|
-
const
|
|
89
|
-
if (Wt(
|
|
90
|
-
const q = f ? $t(f,
|
|
88
|
+
const d = Xt(u, O);
|
|
89
|
+
if (Wt(d)) return u;
|
|
90
|
+
const q = f ? $t(f, d) : d, P = [...o, q], R = u.onHeaderCell;
|
|
91
91
|
let W = c;
|
|
92
|
-
a === 0 && (W = (g =
|
|
93
|
-
const D = W == null ? void 0 : a === 0 ? p.headerDepth0 : a === 1 ? p.headerDepth1 : p.headerDepth2, I = W == null ? void 0 : p[`headerGroup${W %
|
|
94
|
-
/* @__PURE__ */ y("span", { className: p.headerTitleText, children:
|
|
92
|
+
a === 0 && (W = (g = u.children) != null && g.length ? _++ : void 0);
|
|
93
|
+
const D = W == null ? void 0 : a === 0 ? p.headerDepth0 : a === 1 ? p.headerDepth1 : p.headerDepth2, I = W == null ? void 0 : p[`headerGroup${W % rn}`], U = /* @__PURE__ */ et("span", { className: p.headerTitleWithEye, children: [
|
|
94
|
+
/* @__PURE__ */ y("span", { className: p.headerTitleText, children: u.title }),
|
|
95
95
|
/* @__PURE__ */ y(Ut, { title: "隐藏此列", children: /* @__PURE__ */ y(
|
|
96
96
|
"button",
|
|
97
97
|
{
|
|
@@ -111,26 +111,26 @@ function Yt(i, l, f, o = [], a = 0, c) {
|
|
|
111
111
|
className: at(X.className, I, D)
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
return (N =
|
|
115
|
-
...
|
|
114
|
+
return (N = u.children) != null && N.length ? {
|
|
115
|
+
...u,
|
|
116
116
|
title: U,
|
|
117
117
|
onHeaderCell: b,
|
|
118
118
|
children: Yt(
|
|
119
|
-
|
|
119
|
+
u.children,
|
|
120
120
|
l,
|
|
121
|
-
|
|
121
|
+
d,
|
|
122
122
|
P,
|
|
123
123
|
a + 1,
|
|
124
124
|
W
|
|
125
125
|
)
|
|
126
126
|
} : {
|
|
127
|
-
...
|
|
127
|
+
...u,
|
|
128
128
|
title: U,
|
|
129
129
|
onHeaderCell: b
|
|
130
130
|
};
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function sn({
|
|
134
134
|
className: i,
|
|
135
135
|
style: l,
|
|
136
136
|
scroll: f,
|
|
@@ -138,9 +138,9 @@ function rn({
|
|
|
138
138
|
locale: a,
|
|
139
139
|
columns: c,
|
|
140
140
|
dataSource: _,
|
|
141
|
-
rowKey:
|
|
141
|
+
rowKey: u,
|
|
142
142
|
loading: O,
|
|
143
|
-
tableName:
|
|
143
|
+
tableName: d,
|
|
144
144
|
columnConfigEnabled: q,
|
|
145
145
|
fetchColumnConfig: P,
|
|
146
146
|
saveColumnConfig: R,
|
|
@@ -170,17 +170,17 @@ function rn({
|
|
|
170
170
|
...le
|
|
171
171
|
}, ae) {
|
|
172
172
|
var Ft;
|
|
173
|
-
const ot =
|
|
173
|
+
const ot = we(), {
|
|
174
174
|
fetchMode: ct,
|
|
175
175
|
rows: oe,
|
|
176
176
|
total: ce,
|
|
177
|
-
loading:
|
|
177
|
+
loading: de,
|
|
178
178
|
error: xt,
|
|
179
|
-
currentPage:
|
|
179
|
+
currentPage: ue,
|
|
180
180
|
pageSize: he,
|
|
181
181
|
setPage: fe,
|
|
182
182
|
reload: zt
|
|
183
|
-
} =
|
|
183
|
+
} = Ve({
|
|
184
184
|
dataSource: _,
|
|
185
185
|
fetchData: wt,
|
|
186
186
|
fetchUrl: Kt,
|
|
@@ -195,10 +195,10 @@ function rn({
|
|
|
195
195
|
onFetched: ie
|
|
196
196
|
});
|
|
197
197
|
Ie(ae, () => ({ reload: zt }), [zt]);
|
|
198
|
-
const
|
|
198
|
+
const dt = ct ? oe : _, me = !!O || ct && de, j = q ?? !!d, v = Jt ?? !!d, E = Qt, T = Vt, Y = x(
|
|
199
199
|
() => ({ minWidth: E, maxWidth: T }),
|
|
200
200
|
[E, T]
|
|
201
|
-
), rt = yt(c),
|
|
201
|
+
), rt = yt(c), ut = yt(null), [s, st] = tt(null), [Ht, pe] = tt(!1), [ht, ft] = tt(!j), [Ot, ye] = tt([]), [k, Q] = tt({}), $ = yt(k);
|
|
202
202
|
$.current = k, gt(() => {
|
|
203
203
|
rt.current = c;
|
|
204
204
|
}, [c]);
|
|
@@ -209,7 +209,7 @@ function rn({
|
|
|
209
209
|
gt(() => {
|
|
210
210
|
Q({}), $.current = {};
|
|
211
211
|
}, [ge]), gt(() => {
|
|
212
|
-
if (!j && !v || !
|
|
212
|
+
if (!j && !v || !d || !(D || P)) {
|
|
213
213
|
ft(!0);
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
@@ -218,11 +218,11 @@ function rn({
|
|
|
218
218
|
var n;
|
|
219
219
|
try {
|
|
220
220
|
if (D) {
|
|
221
|
-
const r = await D(
|
|
221
|
+
const r = await D(d);
|
|
222
222
|
t || st((n = r == null ? void 0 : r.columns) != null && n.length ? r : null);
|
|
223
223
|
} else if (P) {
|
|
224
|
-
const r = await P(
|
|
225
|
-
t || st(r != null && r.length ?
|
|
224
|
+
const r = await P(d);
|
|
225
|
+
t || st(r != null && r.length ? Je(r) : null);
|
|
226
226
|
}
|
|
227
227
|
} catch {
|
|
228
228
|
t || st(null);
|
|
@@ -232,7 +232,7 @@ function rn({
|
|
|
232
232
|
})(), () => {
|
|
233
233
|
t = !0;
|
|
234
234
|
};
|
|
235
|
-
}, [j, v,
|
|
235
|
+
}, [j, v, d, D, P]);
|
|
236
236
|
const A = (Ft = s == null ? void 0 : s.columns) != null && Ft.length ? s.columns : null, M = x(() => N !== void 0 ? Ct(N, g) : Ct(Ot, g), [N, Ot, g]), J = z(
|
|
237
237
|
(t) => {
|
|
238
238
|
const e = Ct(t, g);
|
|
@@ -241,13 +241,13 @@ function rn({
|
|
|
241
241
|
[N, g, F]
|
|
242
242
|
), B = z(
|
|
243
243
|
async (t) => {
|
|
244
|
-
if (st(t), U == null || U(t), W == null || W(t.columns),
|
|
245
|
-
await I(
|
|
244
|
+
if (st(t), U == null || U(t), W == null || W(t.columns), d && I) {
|
|
245
|
+
await I(d, t);
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
d && R && await R(d, t.columns);
|
|
249
249
|
},
|
|
250
|
-
[
|
|
250
|
+
[d, I, R, U, W]
|
|
251
251
|
), Rt = x(() => {
|
|
252
252
|
const t = c || [];
|
|
253
253
|
let e;
|
|
@@ -290,7 +290,7 @@ function rn({
|
|
|
290
290
|
});
|
|
291
291
|
}, []), _t = z(
|
|
292
292
|
(t) => {
|
|
293
|
-
const e =
|
|
293
|
+
const e = ut.current;
|
|
294
294
|
if (!e) return;
|
|
295
295
|
const n = e.querySelectorAll("[data-marsun-col-path]");
|
|
296
296
|
n.length && Ee(() => {
|
|
@@ -308,7 +308,7 @@ function rn({
|
|
|
308
308
|
[E, T]
|
|
309
309
|
), Pt = z(
|
|
310
310
|
async (t, e) => {
|
|
311
|
-
const n = t.join("/"), r = St(e, E, T), h =
|
|
311
|
+
const n = t.join("/"), r = St(e, E, T), h = ut.current, S = { ...$.current, [n]: r };
|
|
312
312
|
h && h.querySelectorAll("[data-marsun-col-path]").forEach((m) => {
|
|
313
313
|
const C = m.getAttribute("data-marsun-col-path");
|
|
314
314
|
if (!C || C === n || S[C] != null) return;
|
|
@@ -355,7 +355,9 @@ function rn({
|
|
|
355
355
|
},
|
|
356
356
|
[g, M, J]
|
|
357
357
|
), mt = x(() => {
|
|
358
|
-
let t =
|
|
358
|
+
let t = $e(
|
|
359
|
+
Rt
|
|
360
|
+
);
|
|
359
361
|
if (j && ht && (t = Yt(t, (n) => {
|
|
360
362
|
Et(n);
|
|
361
363
|
})), v && (t = Zt(t, {
|
|
@@ -370,23 +372,23 @@ function rn({
|
|
|
370
372
|
onResetPath: (n) => {
|
|
371
373
|
It(n);
|
|
372
374
|
}
|
|
373
|
-
})), v && (Object.keys(k).length > 0 ||
|
|
375
|
+
})), v && (Object.keys(k).length > 0 || Ge(A))) {
|
|
374
376
|
const n = {
|
|
375
|
-
key:
|
|
377
|
+
key: Xe,
|
|
376
378
|
title: "",
|
|
377
379
|
className: p.flexSpacerCol,
|
|
378
380
|
onHeaderCell: () => ({ className: p.flexSpacerCol }),
|
|
379
381
|
onCell: () => ({ className: p.flexSpacerCol }),
|
|
380
382
|
render: () => null
|
|
381
383
|
};
|
|
382
|
-
t =
|
|
384
|
+
t = qe(
|
|
383
385
|
t,
|
|
384
386
|
n
|
|
385
387
|
);
|
|
386
388
|
}
|
|
387
389
|
if (j && ht) {
|
|
388
390
|
const n = {
|
|
389
|
-
key:
|
|
391
|
+
key: Ze,
|
|
390
392
|
width: G,
|
|
391
393
|
fixed: "right",
|
|
392
394
|
align: "center",
|
|
@@ -438,12 +440,12 @@ function rn({
|
|
|
438
440
|
E,
|
|
439
441
|
T,
|
|
440
442
|
k
|
|
441
|
-
]), We = x(() => b ?
|
|
443
|
+
]), We = x(() => b ? Qe(dt, M, typeof u == "function" || typeof u == "string" ? u : void 0, g) : dt, [b, dt, M, u, g]), xe = o === !1 ? !1 : {
|
|
442
444
|
showSizeChanger: !0,
|
|
443
|
-
showTotal:
|
|
445
|
+
showTotal: en,
|
|
444
446
|
...o && typeof o == "object" ? o : {},
|
|
445
447
|
...ct ? {
|
|
446
|
-
current:
|
|
448
|
+
current: ue,
|
|
447
449
|
pageSize: he,
|
|
448
450
|
total: ce,
|
|
449
451
|
onChange: (t, e) => {
|
|
@@ -477,7 +479,7 @@ function rn({
|
|
|
477
479
|
columnWidth: t + 20,
|
|
478
480
|
renderCell: (e, n, r, h) => {
|
|
479
481
|
var K;
|
|
480
|
-
const H = ((K = L.renderCell) == null ? void 0 : K.call(L, e, n, r, h)) ?? h, m =
|
|
482
|
+
const H = ((K = L.renderCell) == null ? void 0 : K.call(L, e, n, r, h)) ?? h, m = nn(n, r, u), C = pt.has(m);
|
|
481
483
|
return /* @__PURE__ */ et("span", { className: p.rowSelectWithEye, children: [
|
|
482
484
|
H,
|
|
483
485
|
/* @__PURE__ */ y(Ut, { title: C ? "主对标不可隐藏" : "隐藏此行", children: /* @__PURE__ */ y(
|
|
@@ -496,13 +498,13 @@ function rn({
|
|
|
496
498
|
] });
|
|
497
499
|
}
|
|
498
500
|
};
|
|
499
|
-
}, [L, b,
|
|
501
|
+
}, [L, b, u, pt, Tt]), w = x(() => {
|
|
500
502
|
const t = qt(mt);
|
|
501
503
|
if (!t) return 0;
|
|
502
504
|
const e = V ? typeof V.columnWidth == "number" ? V.columnWidth : 48 : 0;
|
|
503
505
|
return t + e;
|
|
504
506
|
}, [mt, V]), Re = x(() => {
|
|
505
|
-
const t = f === void 0 ? { ...
|
|
507
|
+
const t = f === void 0 ? { ...Ke } : { ...f };
|
|
506
508
|
return w > 0 ? { ...t, x: w } : t;
|
|
507
509
|
}, [f, w]), be = x(() => {
|
|
508
510
|
const t = Z == null ? void 0 : Z.header, e = t && "cell" in t ? t.cell : void 0;
|
|
@@ -510,11 +512,11 @@ function rn({
|
|
|
510
512
|
...Z,
|
|
511
513
|
header: {
|
|
512
514
|
...t,
|
|
513
|
-
cell: (r) => !(typeof r.onResize == "function") && e ? /* @__PURE__ */ y(e, { ...r }) : /* @__PURE__ */ y(
|
|
515
|
+
cell: (r) => !(typeof r.onResize == "function") && e ? /* @__PURE__ */ y(e, { ...r }) : /* @__PURE__ */ y(Ye, { ...r })
|
|
514
516
|
}
|
|
515
517
|
} : Z;
|
|
516
518
|
}, [Z, v]);
|
|
517
|
-
return /* @__PURE__ */ et("div", { ref:
|
|
519
|
+
return /* @__PURE__ */ et("div", { ref: ut, className: at("marsun-table-shell", p["marsun-table-shell"]), children: [
|
|
518
520
|
Nt ? /* @__PURE__ */ y("div", { className: p["marsun-table-toolbar"], children: Nt }) : null,
|
|
519
521
|
/* @__PURE__ */ y(
|
|
520
522
|
_e,
|
|
@@ -529,7 +531,7 @@ function rn({
|
|
|
529
531
|
locale: ze,
|
|
530
532
|
columns: mt,
|
|
531
533
|
dataSource: We,
|
|
532
|
-
rowKey:
|
|
534
|
+
rowKey: u,
|
|
533
535
|
loading: me,
|
|
534
536
|
rowSelection: V,
|
|
535
537
|
components: be,
|
|
@@ -538,31 +540,32 @@ function rn({
|
|
|
538
540
|
)
|
|
539
541
|
] });
|
|
540
542
|
}
|
|
541
|
-
const
|
|
543
|
+
const zn = Pe(sn);
|
|
542
544
|
export {
|
|
543
|
-
|
|
545
|
+
Ze as COLUMN_CONFIG_COL_KEY,
|
|
544
546
|
Ae as COLUMN_RESIZE_MAX_WIDTH,
|
|
545
547
|
Ne as COLUMN_RESIZE_MIN_WIDTH,
|
|
546
|
-
|
|
548
|
+
Xe as FLEX_SPACER_COL_KEY,
|
|
547
549
|
je as applyColumnConfig,
|
|
548
|
-
|
|
550
|
+
Qe as applyHiddenRows,
|
|
549
551
|
Mt as applyLeafWidthOverrides,
|
|
550
552
|
St as clampColumnWidth,
|
|
551
553
|
De as clearColumnWidthAtPath,
|
|
552
554
|
Fe as columnsLeafPathSignature,
|
|
553
555
|
Bt as columnsToConfig,
|
|
554
|
-
|
|
556
|
+
Ge as configHasLeafWidths,
|
|
555
557
|
Me as copyColumnWidths,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
+
zn as default,
|
|
559
|
+
Je as emptyTablePrefs,
|
|
558
560
|
Ue as hideColumnAtPath,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
+
qe as insertBeforeFixedRight,
|
|
562
|
+
Rn as isFixedColumn,
|
|
561
563
|
Wt as isInternalColumnKey,
|
|
562
564
|
lt as mergeTablePrefs,
|
|
565
|
+
$e as normalizeFixedColumnOrder,
|
|
563
566
|
Ct as normalizeHiddenRowKeys,
|
|
564
|
-
|
|
565
|
-
|
|
567
|
+
Ln as parseTablePrefs,
|
|
568
|
+
vn as serializeTablePrefs,
|
|
566
569
|
Be as setColumnWidthAtPath
|
|
567
570
|
};
|
|
568
571
|
//# sourceMappingURL=Table.js.map
|