comins-table 0.1.11 → 0.2.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 +17 -1
- package/README.md +9 -7
- package/dist/browser/clipboard.d.ts +4 -0
- package/dist/browser/clipboard.d.ts.map +1 -0
- package/dist/browser/measurements.d.ts +28 -0
- package/dist/browser/measurements.d.ts.map +1 -0
- package/dist/browser/pointer.d.ts +25 -0
- package/dist/browser/pointer.d.ts.map +1 -0
- package/dist/browser/scroll.d.ts +9 -0
- package/dist/browser/scroll.d.ts.map +1 -0
- package/dist/browser/table-transfer.d.ts +38 -0
- package/dist/browser/table-transfer.d.ts.map +1 -0
- package/dist/browser/viewport-requests.d.ts +27 -0
- package/dist/browser/viewport-requests.d.ts.map +1 -0
- package/dist/cell-fill.d.ts +1 -1
- package/dist/cell-fill.d.ts.map +1 -1
- package/dist/clipboard-CNrbmDue.js +959 -0
- package/dist/clipboard-CNrbmDue.js.map +1 -0
- package/dist/clipboard.d.ts +2 -2
- package/dist/clipboard.d.ts.map +1 -1
- package/dist/clipboard.js +3 -2
- package/dist/column-layout.d.ts +24 -0
- package/dist/column-layout.d.ts.map +1 -0
- package/dist/component-renderer.d.ts +1 -1
- package/dist/component-renderer.d.ts.map +1 -1
- package/dist/core/editing/cells.d.ts +9 -0
- package/dist/core/editing/cells.d.ts.map +1 -0
- package/dist/core/editing/clipboard.d.ts +8 -0
- package/dist/core/editing/clipboard.d.ts.map +1 -0
- package/dist/core/editing/export.d.ts +4 -0
- package/dist/core/editing/export.d.ts.map +1 -0
- package/dist/core/layout/columns.d.ts +69 -0
- package/dist/core/layout/columns.d.ts.map +1 -0
- package/dist/core/layout/row-height.d.ts +25 -0
- package/dist/core/layout/row-height.d.ts.map +1 -0
- package/dist/core/layout/viewport.d.ts +21 -0
- package/dist/core/layout/viewport.d.ts.map +1 -0
- package/dist/core/layout/virtual.d.ts +119 -0
- package/dist/core/layout/virtual.d.ts.map +1 -0
- package/dist/core/model.d.ts +128 -0
- package/dist/core/model.d.ts.map +1 -0
- package/dist/core/rows/filtering.d.ts +45 -0
- package/dist/core/rows/filtering.d.ts.map +1 -0
- package/dist/core/rows/grouping.d.ts +97 -0
- package/dist/core/rows/grouping.d.ts.map +1 -0
- package/dist/core/rows/projection.d.ts +73 -0
- package/dist/core/rows/projection.d.ts.map +1 -0
- package/dist/core/rows/summary.d.ts +3 -0
- package/dist/core/rows/summary.d.ts.map +1 -0
- package/dist/core/selection/navigation.d.ts +49 -0
- package/dist/core/selection/navigation.d.ts.map +1 -0
- package/dist/core/selection/state.d.ts +131 -0
- package/dist/core/selection/state.d.ts.map +1 -0
- package/dist/core/state/access.d.ts +11 -0
- package/dist/core/state/access.d.ts.map +1 -0
- package/dist/core/state/changes.d.ts +14 -0
- package/dist/core/state/changes.d.ts.map +1 -0
- package/dist/core/state/reconcile.d.ts +18 -0
- package/dist/core/state/reconcile.d.ts.map +1 -0
- package/dist/core/state/table.d.ts +77 -0
- package/dist/core/state/table.d.ts.map +1 -0
- package/dist/core/transfer/policy.d.ts +116 -0
- package/dist/core/transfer/policy.d.ts.map +1 -0
- package/dist/core/viewport/data.d.ts +70 -0
- package/dist/core/viewport/data.d.ts.map +1 -0
- package/dist/core/viewport/requests.d.ts +19 -0
- package/dist/core/viewport/requests.d.ts.map +1 -0
- package/dist/core-compat-B4I2OHGY.js +391 -0
- package/dist/core-compat-B4I2OHGY.js.map +1 -0
- package/dist/core.d.ts +9 -714
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +3 -2
- package/dist/export-Cfk5Jz4a.js +37 -0
- package/dist/export-Cfk5Jz4a.js.map +1 -0
- package/dist/filtering.d.ts +8 -9
- package/dist/filtering.d.ts.map +1 -1
- package/dist/grouping.d.ts +11 -21
- package/dist/grouping.d.ts.map +1 -1
- package/dist/index.d.ts +11 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3202 -2694
- package/dist/index.js.map +1 -1
- package/dist/model.d.ts +140 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/react/core-compat.d.ts +141 -0
- package/dist/react/core-compat.d.ts.map +1 -0
- package/dist/react/edit-policy.d.ts +9 -0
- package/dist/react/edit-policy.d.ts.map +1 -0
- package/dist/react/model.d.ts +14 -0
- package/dist/react/model.d.ts.map +1 -0
- package/dist/react/rows.d.ts +6 -0
- package/dist/react/rows.d.ts.map +1 -0
- package/dist/react/state.d.ts +43 -0
- package/dist/react/state.d.ts.map +1 -0
- package/dist/react/table-transfer.d.ts +55 -0
- package/dist/react/table-transfer.d.ts.map +1 -0
- package/dist/react/viewport.d.ts +10 -0
- package/dist/react/viewport.d.ts.map +1 -0
- package/dist/react-types.d.ts +292 -0
- package/dist/react-types.d.ts.map +1 -0
- package/dist/row-detail.d.ts +2 -0
- package/dist/row-detail.d.ts.map +1 -1
- package/dist/row-height.d.ts +1 -24
- package/dist/row-height.d.ts.map +1 -1
- package/dist/row-value.d.ts +2 -0
- package/dist/row-value.d.ts.map +1 -0
- package/dist/selection-data.d.ts +2 -1
- package/dist/selection-data.d.ts.map +1 -1
- package/dist/selection.d.ts +2 -2
- package/dist/selection.d.ts.map +1 -1
- package/dist/selection.js +2 -2
- package/dist/summary.d.ts +1 -1
- package/dist/summary.d.ts.map +1 -1
- package/dist/table-state.d.ts +24 -0
- package/dist/table-state.d.ts.map +1 -0
- package/dist/table-transfer.d.ts +1 -152
- package/dist/table-transfer.d.ts.map +1 -1
- package/dist/tree-drag.d.ts.map +1 -1
- package/dist/tree.d.ts +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/use-viewport.d.ts.map +1 -1
- package/dist/viewport-data.d.ts +8 -71
- package/dist/viewport-data.d.ts.map +1 -1
- package/dist/viewport-layout.d.ts +1 -20
- package/dist/viewport-layout.d.ts.map +1 -1
- package/dist/viewport-requests.d.ts +1 -8
- package/dist/viewport-requests.d.ts.map +1 -1
- package/dist/virtual-layout.d.ts +1 -118
- package/dist/virtual-layout.d.ts.map +1 -1
- package/package.json +5 -2
- package/dist/core-C1tlvY8Q.js +0 -963
- package/dist/core-C1tlvY8Q.js.map +0 -1
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as ee, R as te, S as ne, T as re, U as h, V as g, W as _, X as v, Y as y, _ as b, a as x, b as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, v as z, w as B, x as V, y as H, z as U } from "./clipboard-CNrbmDue.js";
|
|
2
|
+
//#region src/react/edit-policy.ts
|
|
3
|
+
function W(e, t, n, r, i = e.rowIds.indexOf(n)) {
|
|
4
|
+
return {
|
|
5
|
+
column: {
|
|
6
|
+
definition: r,
|
|
7
|
+
field: r.field,
|
|
8
|
+
id: r.id,
|
|
9
|
+
index: e.columns.findIndex((e) => e.id === r.id),
|
|
10
|
+
label: r.label
|
|
11
|
+
},
|
|
12
|
+
row: {
|
|
13
|
+
data: t,
|
|
14
|
+
dataIndex: i,
|
|
15
|
+
disabled: !1,
|
|
16
|
+
id: n,
|
|
17
|
+
index: i,
|
|
18
|
+
selected: e.selection.rowIds.includes(n)
|
|
19
|
+
},
|
|
20
|
+
selection: { selectedRowCount: e.selection.rowIds.length },
|
|
21
|
+
value: E(e, t, r.id)
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function G(e, t) {
|
|
25
|
+
return e === void 0 ? !0 : typeof e == "boolean" ? e : e(t);
|
|
26
|
+
}
|
|
27
|
+
function K(e, t, n, r) {
|
|
28
|
+
let i = W(e, t, n, r), a = r.cell?.props;
|
|
29
|
+
return typeof a == "function" ? a(i) : a;
|
|
30
|
+
}
|
|
31
|
+
function q(e, t) {
|
|
32
|
+
let n = /* @__PURE__ */ new WeakMap(), r = (r) => {
|
|
33
|
+
let i = n.get(r);
|
|
34
|
+
if (i) return i;
|
|
35
|
+
let a = W(e, r.row.data, r.row.id, t, r.row.dataIndex), o = t.cell?.props, s = {
|
|
36
|
+
params: a,
|
|
37
|
+
props: typeof o == "function" ? o(a) : o
|
|
38
|
+
};
|
|
39
|
+
return n.set(r, s), s;
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
disabled: (e) => {
|
|
43
|
+
let { params: t, props: n } = r(e);
|
|
44
|
+
return n?.disabled !== void 0 && G(n.disabled, t) === !0;
|
|
45
|
+
},
|
|
46
|
+
copyable: (e) => {
|
|
47
|
+
let { params: t, props: n } = r(e);
|
|
48
|
+
return G(n?.copyable, t);
|
|
49
|
+
},
|
|
50
|
+
pasteable: (e) => {
|
|
51
|
+
let { params: t, props: n } = r(e);
|
|
52
|
+
return G(n?.pasteable, t);
|
|
53
|
+
},
|
|
54
|
+
parseClipboard: t.cell?.parseClipboard ? (n) => t.cell.parseClipboard({
|
|
55
|
+
...W(e, n.row.data, n.row.id, t, n.row.dataIndex),
|
|
56
|
+
text: n.text
|
|
57
|
+
}) : void 0,
|
|
58
|
+
validateFill: t.cell?.validateFill ? (n) => t.cell.validateFill({
|
|
59
|
+
...W(e, n.row.data, n.row.id, t, n.row.dataIndex),
|
|
60
|
+
value: n.value
|
|
61
|
+
}) : void 0
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/react/model.ts
|
|
66
|
+
function J(e) {
|
|
67
|
+
let t = e.sort, n = e.filter;
|
|
68
|
+
return {
|
|
69
|
+
id: e.id,
|
|
70
|
+
field: e.field,
|
|
71
|
+
label: typeof e.label == "string" ? e.label : e.id,
|
|
72
|
+
hidden: e.hidden,
|
|
73
|
+
lockPosition: e.lockPosition,
|
|
74
|
+
minWidth: e.minWidth,
|
|
75
|
+
maxWidth: e.maxWidth,
|
|
76
|
+
width: e.width,
|
|
77
|
+
pinned: e.pinned,
|
|
78
|
+
sort: typeof t == "function" ? (n, r, i, a) => t.call(e, n, r, i, a) : t,
|
|
79
|
+
filter: n && {
|
|
80
|
+
...n,
|
|
81
|
+
getValue: n.getValue ? (t) => n.getValue({
|
|
82
|
+
...t,
|
|
83
|
+
column: e
|
|
84
|
+
}) : void 0
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function Y(e) {
|
|
89
|
+
return {
|
|
90
|
+
id: e.id,
|
|
91
|
+
children: e.children,
|
|
92
|
+
hidden: e.hidden,
|
|
93
|
+
lockPosition: e.lockPosition,
|
|
94
|
+
pinned: e.pinned,
|
|
95
|
+
label: typeof e.label == "string" ? e.label : e.id
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function X(e) {
|
|
99
|
+
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
100
|
+
return {
|
|
101
|
+
source: e,
|
|
102
|
+
core: {
|
|
103
|
+
columns: e.columns.map((n) => {
|
|
104
|
+
let r = J(n);
|
|
105
|
+
return n.cell && (r.cell = q(e, n)), t.set(r, n), r;
|
|
106
|
+
}),
|
|
107
|
+
columnGroups: e.columnGroups.map((e) => {
|
|
108
|
+
let t = Y(e);
|
|
109
|
+
return n.set(t, e), t;
|
|
110
|
+
}),
|
|
111
|
+
columnOrder: e.columnOrder,
|
|
112
|
+
columnState: e.columnState,
|
|
113
|
+
columnGroupState: e.columnGroupState,
|
|
114
|
+
rows: e.rows,
|
|
115
|
+
rowIds: e.rowIds,
|
|
116
|
+
getRowId: e.getRowId,
|
|
117
|
+
pagination: e.pagination,
|
|
118
|
+
selection: e.selection,
|
|
119
|
+
showHeader: e.showHeader,
|
|
120
|
+
sort: e.sort,
|
|
121
|
+
sortModel: e.sortModel
|
|
122
|
+
},
|
|
123
|
+
restoreColumn(e) {
|
|
124
|
+
let n = t.get(e);
|
|
125
|
+
if (!n) throw Error("Cannot restore a column from a different React state bridge.");
|
|
126
|
+
return n;
|
|
127
|
+
},
|
|
128
|
+
restoreGroup(e) {
|
|
129
|
+
let t = n.get(e);
|
|
130
|
+
if (!t) throw Error("Cannot restore a group from a different React state bridge.");
|
|
131
|
+
return t;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function Z(e, t) {
|
|
136
|
+
return t === e.core ? e.source : {
|
|
137
|
+
...e.source,
|
|
138
|
+
...t,
|
|
139
|
+
columns: t.columns === e.core.columns ? e.source.columns : t.columns.map(e.restoreColumn),
|
|
140
|
+
columnGroups: t.columnGroups === e.core.columnGroups ? e.source.columnGroups : t.columnGroups.map(e.restoreGroup)
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/react/core-compat.ts
|
|
145
|
+
function ie(e, t, n) {
|
|
146
|
+
let r = X(e);
|
|
147
|
+
return Z(r, v(r.core, t, n));
|
|
148
|
+
}
|
|
149
|
+
function ae(e, t, n) {
|
|
150
|
+
let r = X(e);
|
|
151
|
+
return Z(r, y(r.core, t, n));
|
|
152
|
+
}
|
|
153
|
+
function oe(e, t, n) {
|
|
154
|
+
let r = X(e);
|
|
155
|
+
return Z(r, F(r.core, t, n));
|
|
156
|
+
}
|
|
157
|
+
function se(e, t, n) {
|
|
158
|
+
let r = X(e);
|
|
159
|
+
return Z(r, l(r.core, t, n));
|
|
160
|
+
}
|
|
161
|
+
function ce(e, t, n) {
|
|
162
|
+
let r = X(e);
|
|
163
|
+
return Z(r, s(r.core, t, n));
|
|
164
|
+
}
|
|
165
|
+
function le(e, t, n) {
|
|
166
|
+
let r = X(e);
|
|
167
|
+
return Z(r, h(r.core, t, n));
|
|
168
|
+
}
|
|
169
|
+
function ue(e) {
|
|
170
|
+
let t = X(e);
|
|
171
|
+
return u(t.core);
|
|
172
|
+
}
|
|
173
|
+
function de(e, t) {
|
|
174
|
+
let n = X(e);
|
|
175
|
+
return Z(n, U(n.core, t));
|
|
176
|
+
}
|
|
177
|
+
function fe(e, t, n = {}) {
|
|
178
|
+
let r = X(e);
|
|
179
|
+
return Z(r, d(r.core, t, n));
|
|
180
|
+
}
|
|
181
|
+
function pe(e, t) {
|
|
182
|
+
let n = X(e);
|
|
183
|
+
return Z(n, te(n.core, t));
|
|
184
|
+
}
|
|
185
|
+
function me(e, t, n = {}) {
|
|
186
|
+
let r = X(e), i = a(r.core, t, n);
|
|
187
|
+
return {
|
|
188
|
+
...Z(r, i),
|
|
189
|
+
selection: i.selection
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function he(e, t) {
|
|
193
|
+
let n = X(e), r = c(n.core, t);
|
|
194
|
+
return {
|
|
195
|
+
...Z(n, r),
|
|
196
|
+
selection: r.selection
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function ge(e) {
|
|
200
|
+
let t = X(e), n = k(t.core);
|
|
201
|
+
return {
|
|
202
|
+
...Z(t, n),
|
|
203
|
+
selection: n.selection
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function _e(t) {
|
|
207
|
+
let n = X(t);
|
|
208
|
+
return Z(n, e(n.core));
|
|
209
|
+
}
|
|
210
|
+
function ve(e, t) {
|
|
211
|
+
return ee(e, t);
|
|
212
|
+
}
|
|
213
|
+
function ye(e, t) {
|
|
214
|
+
return p(e, t);
|
|
215
|
+
}
|
|
216
|
+
function be(e, t = e.selection.range, n = e.rowIds) {
|
|
217
|
+
let r = X(e);
|
|
218
|
+
return O(r.core, t, n);
|
|
219
|
+
}
|
|
220
|
+
function xe(e, t, n = e.rowIds) {
|
|
221
|
+
let r = X(e);
|
|
222
|
+
return f(r.core, t, n);
|
|
223
|
+
}
|
|
224
|
+
function Se(e, t) {
|
|
225
|
+
return V(e, t);
|
|
226
|
+
}
|
|
227
|
+
function Ce(e, t) {
|
|
228
|
+
let n = X(e);
|
|
229
|
+
return Z(n, ne(n.core, t));
|
|
230
|
+
}
|
|
231
|
+
function we(e, t) {
|
|
232
|
+
let n = X(e);
|
|
233
|
+
return Z(n, C(n.core, t));
|
|
234
|
+
}
|
|
235
|
+
function Te(e, t) {
|
|
236
|
+
let n = X(e);
|
|
237
|
+
return Z(n, m(n.core, t));
|
|
238
|
+
}
|
|
239
|
+
function Ee(e, t) {
|
|
240
|
+
let n = X(e);
|
|
241
|
+
return Z(n, j(n.core, t));
|
|
242
|
+
}
|
|
243
|
+
function De(e, t) {
|
|
244
|
+
let r = X(e);
|
|
245
|
+
return Z(r, n(r.core, t));
|
|
246
|
+
}
|
|
247
|
+
function Oe(e, t) {
|
|
248
|
+
let n = X(e);
|
|
249
|
+
return Z(n, B(n.core, t));
|
|
250
|
+
}
|
|
251
|
+
function ke(e, t) {
|
|
252
|
+
let n = X(e);
|
|
253
|
+
return Z(n, i(n.core, t));
|
|
254
|
+
}
|
|
255
|
+
function Ae(e, t) {
|
|
256
|
+
let n = X(e);
|
|
257
|
+
return Z(n, re(n.core, t));
|
|
258
|
+
}
|
|
259
|
+
function je(e) {
|
|
260
|
+
let t = X(e);
|
|
261
|
+
return Z(t, w(t.core));
|
|
262
|
+
}
|
|
263
|
+
function Me(e, t = e.rows.map((e, t) => t)) {
|
|
264
|
+
let n = X(e);
|
|
265
|
+
return b(n.core, t);
|
|
266
|
+
}
|
|
267
|
+
function Ne(e, t) {
|
|
268
|
+
let n = X(e);
|
|
269
|
+
return Z(n, r(n.core, t));
|
|
270
|
+
}
|
|
271
|
+
function Pe(e, t = {}) {
|
|
272
|
+
let n = X(e);
|
|
273
|
+
return T(n.core, t);
|
|
274
|
+
}
|
|
275
|
+
function Fe(e, { overscan: t = 2, rowHeight: n, scrollTop: r, viewportHeight: i }) {
|
|
276
|
+
let a = X(e);
|
|
277
|
+
return z(a.core, {
|
|
278
|
+
overscan: t,
|
|
279
|
+
rowHeight: n,
|
|
280
|
+
scrollTop: r,
|
|
281
|
+
viewportHeight: i
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
function Ie(e, t, n) {
|
|
285
|
+
let r = X(e);
|
|
286
|
+
return Z(r, H(r.core, t, n));
|
|
287
|
+
}
|
|
288
|
+
function Le(e, t) {
|
|
289
|
+
let n = X(e);
|
|
290
|
+
return Z(n, S(n.core, t));
|
|
291
|
+
}
|
|
292
|
+
function Q(e, t, n) {
|
|
293
|
+
return E(e, t, n);
|
|
294
|
+
}
|
|
295
|
+
function Re(e) {
|
|
296
|
+
let t = o(e.columns), n = _(t, e.columnGroups);
|
|
297
|
+
return {
|
|
298
|
+
...P({
|
|
299
|
+
...e,
|
|
300
|
+
columns: t.map(J),
|
|
301
|
+
columnGroups: n.map(Y)
|
|
302
|
+
}),
|
|
303
|
+
columns: t,
|
|
304
|
+
columnGroups: n,
|
|
305
|
+
theme: e.theme ?? {}
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
function ze(e) {
|
|
309
|
+
let t = X(e);
|
|
310
|
+
return g(t.core).map(t.restoreColumn);
|
|
311
|
+
}
|
|
312
|
+
function Be(e) {
|
|
313
|
+
let n = X(e);
|
|
314
|
+
return t(n.core).map((e) => e.map((e) => e.kind === "column" ? {
|
|
315
|
+
...e,
|
|
316
|
+
column: n.restoreColumn(e.column)
|
|
317
|
+
} : {
|
|
318
|
+
...e,
|
|
319
|
+
group: n.restoreGroup(e.group)
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
function Ve(e, t) {
|
|
323
|
+
return {
|
|
324
|
+
...e,
|
|
325
|
+
theme: {
|
|
326
|
+
...e.theme,
|
|
327
|
+
...t
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function $(e, t, n, r) {
|
|
332
|
+
let i = Q(e, t, r.id);
|
|
333
|
+
return r.cell?.format ? r.cell.format(W(e, t, n, r)) : i == null ? "" : String(i);
|
|
334
|
+
}
|
|
335
|
+
function He(e, t, n, r) {
|
|
336
|
+
let i = K(e, t, n, r);
|
|
337
|
+
return i?.disabled !== void 0 && G(i.disabled, W(e, t, n, r)) === !0;
|
|
338
|
+
}
|
|
339
|
+
function Ue(e, t, n, r) {
|
|
340
|
+
let i = W(e, t, n, r), a = K(e, t, n, r)?.className;
|
|
341
|
+
return typeof a == "function" ? a(i) : a;
|
|
342
|
+
}
|
|
343
|
+
function We(e, t, n, r) {
|
|
344
|
+
let i = W(e, t, n, r), a = K(e, t, n, r)?.style;
|
|
345
|
+
return typeof a == "function" ? a(i) : a;
|
|
346
|
+
}
|
|
347
|
+
function Ge(e, t) {
|
|
348
|
+
let n = X(e);
|
|
349
|
+
return M(n.core, t);
|
|
350
|
+
}
|
|
351
|
+
function Ke(e, t, n) {
|
|
352
|
+
let r = X(e);
|
|
353
|
+
return Z(r, x(r.core, t, n));
|
|
354
|
+
}
|
|
355
|
+
function qe(e, { columnId: t, rowId: n }) {
|
|
356
|
+
let r = X(e);
|
|
357
|
+
return L(r.core, {
|
|
358
|
+
columnId: t,
|
|
359
|
+
rowId: n
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
function Je(e, { columnId: t, rowId: n }, r) {
|
|
363
|
+
let i = X(e);
|
|
364
|
+
return Z(i, A(i.core, {
|
|
365
|
+
columnId: t,
|
|
366
|
+
rowId: n
|
|
367
|
+
}, r));
|
|
368
|
+
}
|
|
369
|
+
function Ye(e, t = e.selection.range, n = e.rowIds) {
|
|
370
|
+
let r = X(e);
|
|
371
|
+
return R(r.core, t, n);
|
|
372
|
+
}
|
|
373
|
+
function Xe(e, t, n, r = e.rowIds) {
|
|
374
|
+
let i = X(e);
|
|
375
|
+
return Z(i, D(i.core, t, n, r));
|
|
376
|
+
}
|
|
377
|
+
function Ze(e, t, n, r = e.rowIds) {
|
|
378
|
+
let i = X(e);
|
|
379
|
+
return Z(i, N(i.core, t, n, r));
|
|
380
|
+
}
|
|
381
|
+
function Qe(e, { source: t, target: n }, r = e.rowIds) {
|
|
382
|
+
let i = X(e);
|
|
383
|
+
return Z(i, I(i.core, {
|
|
384
|
+
source: t,
|
|
385
|
+
target: n
|
|
386
|
+
}, r));
|
|
387
|
+
}
|
|
388
|
+
//#endregion
|
|
389
|
+
export { Y as $, Je as A, ue as B, xe as C, le as D, ce as E, Ce as F, De as G, se as H, me as I, ke as J, Oe as K, he as L, Ke as M, Ze as N, Ie as O, Se as P, J as Q, fe as R, He as S, ve as T, ae as U, oe as V, ie as W, Ne as X, Ve as Y, Te as Z, Pe as _, je as a, Fe as b, Ge as c, Qe as d, X as et, $ as f, Be as g, Q as h, _e as i, Xe as j, Le as k, Re as l, We as m, de as n, qe as o, Ue as p, Ae as q, ge as r, Ye as s, we as t, Ee as u, be as v, ye as w, ze as x, Me as y, pe as z };
|
|
390
|
+
|
|
391
|
+
//# sourceMappingURL=core-compat-B4I2OHGY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-compat-B4I2OHGY.js","names":[],"sources":["../src/react/edit-policy.ts","../src/react/model.ts","../src/react/core-compat.ts"],"sourcesContent":["import type { CoreCellDataConfig, CominsCellComponentPayload as CorePayload } from \"../core/model\";\nimport type {\n CominsTableState, CominsTableRuntimeColumn, CominsCellComponentPayload, CominsClipboardGuard,\n} from \"../react-types\";\nimport type { CominsRowId } from \"../model\";\nimport { getCominsCellValue } from \"../core/state/table\";\n\nexport function createCellComponentParams<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n rowIndex = state.rowIds.indexOf(rowId),\n): CominsCellComponentPayload<TData> {\n return {\n column: {\n definition: column,\n field: column.field,\n id: column.id,\n index: state.columns.findIndex((current) => current.id === column.id),\n label: column.label,\n },\n row: {\n data: row,\n dataIndex: rowIndex,\n disabled: false,\n id: rowId,\n index: rowIndex,\n selected: state.selection.rowIds.includes(rowId),\n },\n selection: {\n selectedRowCount: state.selection.rowIds.length,\n },\n value: getCominsCellValue(state, row, column.id),\n };\n}\n\nexport function resolveGuard<TData>(\n guard: CominsClipboardGuard<TData> | undefined,\n params: CominsCellComponentPayload<TData>,\n) {\n if (guard === undefined) {\n return true;\n }\n\n return typeof guard === \"boolean\" ? guard : guard(params);\n}\n\nexport function resolveCellProps<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n) {\n const params = createCellComponentParams(state, row, rowId, column);\n const props = column.cell?.props;\n\n return typeof props === \"function\" ? props(params) : props;\n}\n\n/** Interpret React props once per guard evaluation, retaining the original payload and receiver. */\nexport function createReactEditPolicy<TData>(\n state: CominsTableState<TData>,\n column: CominsTableRuntimeColumn<TData>,\n): CoreCellDataConfig<TData> {\n const evaluations = new WeakMap<CorePayload<TData>, {\n params: CominsCellComponentPayload<TData>;\n props: ReturnType<typeof resolveCellProps<TData>>;\n }>();\n const evaluate = (payload: CorePayload<TData>) => {\n const cached = evaluations.get(payload);\n if (cached) return cached;\n const params = createCellComponentParams(state, payload.row.data, payload.row.id, column, payload.row.dataIndex);\n const definition = column.cell?.props;\n const result = { params, props: typeof definition === \"function\" ? definition(params) : definition };\n evaluations.set(payload, result);\n return result;\n };\n return {\n disabled: payload => {\n const { params, props } = evaluate(payload);\n return props?.disabled !== undefined && resolveGuard(props.disabled, params) === true;\n },\n copyable: payload => {\n const { params, props } = evaluate(payload);\n return resolveGuard(props?.copyable, params);\n },\n pasteable: payload => {\n const { params, props } = evaluate(payload);\n return resolveGuard(props?.pasteable, params);\n },\n parseClipboard: column.cell?.parseClipboard ? payload => column.cell!.parseClipboard!({\n ...createCellComponentParams(state, payload.row.data, payload.row.id, column, payload.row.dataIndex),\n text: payload.text,\n }) : undefined,\n validateFill: column.cell?.validateFill ? payload => column.cell!.validateFill!({\n ...createCellComponentParams(state, payload.row.data, payload.row.id, column, payload.row.dataIndex),\n value: payload.value,\n }) : undefined,\n };\n}\n","import type * as Core from \"../core/model\";\nimport type * as React from \"../react-types\";\nimport { createReactEditPolicy } from \"./edit-policy\";\n\n/** Only data options cross the boundary; state-dependent cell policies are attached by the bridge. */\nexport function projectReactColumn<TData>(column: React.CominsTableRuntimeColumn<TData>): Core.CominsTableRuntimeColumn<TData> {\n const sort = column.sort;\n const filter = column.filter;\n return {\n id: column.id, field: column.field,\n label: typeof column.label === \"string\" ? column.label : column.id,\n hidden: column.hidden, lockPosition: column.lockPosition,\n minWidth: column.minWidth, maxWidth: column.maxWidth, width: column.width, pinned: column.pinned,\n sort: typeof sort === \"function\" ? (left, right, leftRow, rightRow) => sort.call(column, left, right, leftRow, rightRow) : sort,\n filter: filter && { ...filter, getValue: filter.getValue\n ? params => filter.getValue!({ ...params, column }) : undefined },\n };\n}\n\nexport function projectReactGroup(group: React.CominsTableRuntimeColumnGroup): Core.CominsTableRuntimeColumnGroup {\n return { id: group.id, children: group.children, hidden: group.hidden, lockPosition: group.lockPosition,\n pinned: group.pinned, label: typeof group.label === \"string\" ? group.label : group.id };\n}\n\nexport type ReactStateBridge<TData> = {\n source: React.CominsTableState<TData>;\n core: Core.CominsTableState<TData>;\n restoreColumn: (column: Core.CominsTableRuntimeColumn<TData>) => React.CominsTableRuntimeColumn<TData>;\n restoreGroup: (group: Core.CominsTableRuntimeColumnGroup) => React.CominsTableRuntimeColumnGroup;\n};\n\nexport function projectReactState<TData>(source: React.CominsTableState<TData>): ReactStateBridge<TData> {\n const columnSources = new Map<Core.CominsTableRuntimeColumn<TData>, React.CominsTableRuntimeColumn<TData>>();\n const groupSources = new Map<Core.CominsTableRuntimeColumnGroup, React.CominsTableRuntimeColumnGroup>();\n const columns = source.columns.map(column => {\n const projected = projectReactColumn(column);\n if (column.cell) projected.cell = createReactEditPolicy(source, column);\n columnSources.set(projected, column);\n return projected;\n });\n const columnGroups = source.columnGroups.map(group => {\n const projected = projectReactGroup(group);\n groupSources.set(projected, group);\n return projected;\n });\n return {\n source,\n core: {\n columns, columnGroups, columnOrder: source.columnOrder,\n columnState: source.columnState, columnGroupState: source.columnGroupState,\n rows: source.rows, rowIds: source.rowIds, getRowId: source.getRowId,\n pagination: source.pagination, selection: source.selection, showHeader: source.showHeader,\n sort: source.sort, sortModel: source.sortModel,\n },\n restoreColumn(column) {\n const original = columnSources.get(column);\n if (!original) throw new Error(\"Cannot restore a column from a different React state bridge.\");\n return original;\n },\n restoreGroup(group) {\n const original = groupSources.get(group);\n if (!original) throw new Error(\"Cannot restore a group from a different React state bridge.\");\n return original;\n },\n };\n}\n\nexport function restoreReactState<TData>(bridge: ReactStateBridge<TData>, next: Core.CominsTableState<TData>): React.CominsTableState<TData> {\n if (next === bridge.core) return bridge.source;\n return {\n ...bridge.source, ...next,\n columns: next.columns === bridge.core.columns ? bridge.source.columns : next.columns.map(bridge.restoreColumn),\n columnGroups: next.columnGroups === bridge.core.columnGroups ? bridge.source.columnGroups : next.columnGroups.map(bridge.restoreGroup),\n };\n}\n","import type { CominsTableTheme, CominsTableRuntimeColumn } from \"../react-types\";\nexport type { CominsColumnPinned } from \"../column-pinning\";\n\nexport type {\n CominsRowId,\n CominsTableDensity,\n CominsSortDirection,\n CominsSortState,\n CominsSortModel,\n CominsComponentPrimitiveValue,\n CominsComponentAlign,\n CominsComponentDirection,\n CominsComponentPlacement,\n CominsComponentRowPayload,\n CominsColumnRuntimeState,\n CominsColumnGroupRuntimeState,\n CominsColumnLayout,\n CominsPaginationState,\n CominsSelectionState,\n CominsRowUpdate,\n CominsVirtualRowsOptions,\n CominsVirtualRows,\n CominsCopiedRow,\n CominsCopiedCell,\n CominsCopiedCellRangeCell,\n CominsCopiedCellRange,\n CominsExportFormat,\n CominsExportValueSource,\n CominsExportColumn,\n CominsExportRowsOptions,\n CominsCellAddress,\n CominsCellRange,\n CominsPasteRowOptions,\n CominsRowSelectionOptions,\n CominsCellSelectionOptions,\n CominsFillCellRangeOptions,\n} from \"../model\";\n\nexport type {\n CominsTableTheme,\n CominsCellFormatParams,\n CominsColumnValueResolver,\n CominsTableComponentOption,\n CominsVirtualListItem,\n CominsTableMenuItem,\n CominsComponentColumnPayload,\n CominsCellComponentPayload,\n CominsHeaderComponentPayload,\n CominsClipboardGuard,\n CominsColumnProps,\n CominsTableComponentProps,\n CominsTableOptions,\n CominsTableMenuItems,\n CominsVirtualListItems,\n CominsButtonComponentConfig,\n CominsInputCommitEvent,\n CominsInputComponentConfig,\n CominsCheckboxComponentConfig,\n CominsRadioComponentConfig,\n CominsSelectComponentConfig,\n CominsToggleComponentConfig,\n CominsProgressComponentConfig,\n CominsMenuComponentConfig,\n CominsVirtualListSearchFilterPayload,\n CominsVirtualListComponentConfig,\n CominsHeaderComponentConfig,\n CominsCellComponentConfig,\n CominsHeaderComponent,\n CominsCellComponent,\n CominsTableCellConfig,\n CominsTableHeaderConfig,\n CominsTableColumn,\n CominsTableColumnGroup,\n CominsTableRuntimeColumn,\n CominsTableRuntimeColumnGroup,\n CominsEventColumn,\n CominsTableState,\n CominsTableStateInput,\n CominsHeaderColumnCell,\n CominsHeaderGroupCell,\n CominsHeaderCell,\n} from \"../react-types\";\nexport { parseCominsClipboardText } from \"../clipboard-text\";\nimport type {\n CominsCopiedRow, CominsCopiedCell, CominsCopiedCellRange, CominsPasteRowOptions, CominsFillCellRangeOptions,\n} from \"../model\";\nimport * as cells from \"../core/editing/cells\";\nimport * as clipboard from \"../core/editing/clipboard\";\nimport { createCellComponentParams, resolveCellProps, resolveGuard } from \"./edit-policy\";\nimport type {\n CominsTableState,\n CominsTableStateInput,\n CominsHeaderCell,\n} from \"../react-types\";\nimport type {\n CominsRowId,\n CominsSortState,\n CominsSortModel,\n CominsColumnLayout,\n CominsPaginationState,\n CominsRowUpdate,\n CominsVirtualRowsOptions,\n CominsVirtualRows,\n CominsCellAddress,\n CominsCellRange,\n CominsRowSelectionOptions,\n CominsCellSelectionOptions,\n} from \"../core/model\";\nimport * as table from \"../core/state/table\";\nimport * as columns from \"../core/layout/columns\";\nimport * as selection from \"../core/selection/state\";\nimport {\n projectReactState,\n restoreReactState,\n projectReactColumn,\n projectReactGroup,\n} from \"./model\";\nexport type { CominsRowGroupMoveOptions } from \"../core/state/table\";\nimport type {\n CominsRowGroupMoveOptions,\n} from \"../core/state/table\";\n\nexport function setCominsColumnWidth<TData>(\n state: CominsTableState<TData>,\n columnId: string,\n width: number,\n) {\n const bridge = projectReactState(state);\n const next = columns.setCominsColumnWidth(bridge.core, columnId, width);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsColumnHidden<TData>(\n state: CominsTableState<TData>,\n columnId: string,\n hidden: boolean,\n) {\n const bridge = projectReactState(state);\n const next = columns.setCominsColumnHidden(bridge.core, columnId, hidden);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsColumnGroupHidden<TData>(\n state: CominsTableState<TData>,\n groupId: string,\n hidden: boolean,\n) {\n const bridge = projectReactState(state);\n const next = columns.setCominsColumnGroupHidden(bridge.core, groupId, hidden);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsColumnGroupWidth<TData>(\n state: CominsTableState<TData>,\n groupId: string,\n width: number,\n) {\n const bridge = projectReactState(state);\n const next = columns.setCominsColumnGroupWidth(bridge.core, groupId, width);\n return restoreReactState(bridge, next);\n}\n\nexport function moveCominsColumn<TData>(\n state: CominsTableState<TData>,\n columnId: string,\n targetIndex: number,\n) {\n const bridge = projectReactState(state);\n const next = columns.moveCominsColumn(bridge.core, columnId, targetIndex);\n return restoreReactState(bridge, next);\n}\n\nexport function moveCominsColumnGroup<TData>(\n state: CominsTableState<TData>,\n groupId: string,\n targetIndex: number,\n) {\n const bridge = projectReactState(state);\n const next = columns.moveCominsColumnGroup(bridge.core, groupId, targetIndex);\n return restoreReactState(bridge, next);\n}\n\nexport function serializeCominsColumnLayout<TData>(state: CominsTableState<TData>): CominsColumnLayout {\n const bridge = projectReactState(state);\n const next = columns.serializeCominsColumnLayout(bridge.core);\n return next;\n}\n\nexport function applyCominsColumnLayout<TData>(state: CominsTableState<TData>, layout: CominsColumnLayout) {\n const bridge = projectReactState(state);\n const next = columns.applyCominsColumnLayout(bridge.core, layout);\n return restoreReactState(bridge, next);\n}\n\nexport function selectRow<TData>(\n state: CominsTableState<TData>,\n rowId: CominsRowId,\n options: CominsRowSelectionOptions = {},\n) {\n const bridge = projectReactState(state);\n const next = selection.selectRow(bridge.core, rowId, options);\n return restoreReactState(bridge, next);\n}\n\nexport function selectRows<TData>(state: CominsTableState<TData>, rowIds: readonly CominsRowId[]) {\n const bridge = projectReactState(state);\n const next = selection.selectRows(bridge.core, rowIds);\n return restoreReactState(bridge, next);\n}\n\nexport function selectCell<TData>(\n state: CominsTableState<TData>,\n cell: CominsCellAddress,\n options: CominsCellSelectionOptions = {},\n) {\n const bridge = projectReactState(state);\n const next = selection.selectCell(bridge.core, cell, options);\n return { ...restoreReactState(bridge, next), selection: next.selection };\n}\n\nexport function selectCellRange<TData>(state: CominsTableState<TData>, range: CominsCellRange) {\n const bridge = projectReactState(state);\n const next = selection.selectCellRange(bridge.core, range);\n return { ...restoreReactState(bridge, next), selection: next.selection };\n}\n\nexport function clearCominsCellRange<TData>(state: CominsTableState<TData>) {\n const bridge = projectReactState(state);\n const next = selection.clearCominsCellRange(bridge.core);\n return { ...restoreReactState(bridge, next), selection: next.selection };\n}\n\nexport function clearCominsSelection<TData>(state: CominsTableState<TData>) {\n const bridge = projectReactState(state);\n const next = selection.clearCominsSelection(bridge.core);\n return restoreReactState(bridge, next);\n}\n\nexport function isCominsRowSelected<TData>(state: CominsTableState<TData>, rowId: CominsRowId) {\n return selection.isCominsRowSelected(state, rowId);\n}\n\nexport function isCominsCellSelected<TData>(state: CominsTableState<TData>, cell: CominsCellAddress) {\n return selection.isCominsCellSelected(state, cell);\n}\n\nexport function getCominsSelectedCellRange<TData>(\n state: CominsTableState<TData>,\n range: CominsCellRange | null = state.selection.range,\n rowIds: readonly CominsRowId[] = state.rowIds,\n) {\n const bridge = projectReactState(state);\n const next = selection.getCominsSelectedCellRange(bridge.core, range, rowIds);\n return next;\n}\n\nexport function isCominsCellInSelectedRange<TData>(\n state: CominsTableState<TData>,\n cell: CominsCellAddress,\n rowIds: readonly CominsRowId[] = state.rowIds,\n) {\n const bridge = projectReactState(state);\n const next = selection.isCominsCellInSelectedRange(bridge.core, cell, rowIds);\n return next;\n}\n\nexport function queryCominsRows<TData>(\n state: CominsTableState<TData>,\n predicate?: (row: TData, index: number) => boolean,\n) {\n return table.queryCominsRows(state, predicate);\n}\n\nexport function replaceCominsRows<TData>(state: CominsTableState<TData>, rows: readonly TData[]) {\n const bridge = projectReactState(state);\n const next = table.replaceCominsRows(bridge.core, rows);\n return restoreReactState(bridge, next);\n}\n\nexport function addCominsRows<TData>(state: CominsTableState<TData>, rows: readonly TData[]) {\n const bridge = projectReactState(state);\n const next = table.addCominsRows(bridge.core, rows);\n return restoreReactState(bridge, next);\n}\n\nexport function updateCominsRows<TData>(\n state: CominsTableState<TData>,\n updates: ReadonlyArray<CominsRowUpdate<TData>>,\n) {\n const bridge = projectReactState(state);\n const next = table.updateCominsRows(bridge.core, updates);\n return restoreReactState(bridge, next);\n}\n\nexport function deleteCominsRows<TData>(state: CominsTableState<TData>, rowIds: readonly CominsRowId[]) {\n const bridge = projectReactState(state);\n const next = table.deleteCominsRows(bridge.core, rowIds);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsHeaderVisible<TData>(state: CominsTableState<TData>, showHeader: boolean) {\n const bridge = projectReactState(state);\n const next = table.setCominsHeaderVisible(bridge.core, showHeader);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsPagination<TData>(\n state: CominsTableState<TData>,\n pagination: Partial<CominsPaginationState>,\n) {\n const bridge = projectReactState(state);\n const next = table.setCominsPagination(bridge.core, pagination);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsSortState<TData>(\n state: CominsTableState<TData>,\n sort: CominsSortState | null,\n) {\n const bridge = projectReactState(state);\n const next = table.setCominsSortState(bridge.core, sort);\n return restoreReactState(bridge, next);\n}\n\nexport function setCominsSortModel<TData>(\n state: CominsTableState<TData>,\n sortModel: CominsSortModel,\n) {\n const bridge = projectReactState(state);\n const next = table.setCominsSortModel(bridge.core, sortModel);\n return restoreReactState(bridge, next);\n}\n\nexport function clearCominsSortState<TData>(state: CominsTableState<TData>) {\n const bridge = projectReactState(state);\n const next = table.clearCominsSortState(bridge.core);\n return restoreReactState(bridge, next);\n}\n\nexport function getCominsSortedRowIndexes<TData>(\n state: CominsTableState<TData>,\n sourceIndexes: readonly number[] = state.rows.map((_row, index) => index),\n) {\n const bridge = projectReactState(state);\n const next = table.getCominsSortedRowIndexes(bridge.core, sourceIndexes);\n return next;\n}\n\nexport function sortCominsRows<TData>(\n state: CominsTableState<TData>,\n sort: CominsSortState | null,\n) {\n const bridge = projectReactState(state);\n const next = table.sortCominsRows(bridge.core, sort);\n return restoreReactState(bridge, next);\n}\n\nexport function getCominsPageRows<TData>(\n state: CominsTableState<TData>,\n pagination: Partial<CominsPaginationState> = {},\n) {\n const bridge = projectReactState(state);\n const next = table.getCominsPageRows(bridge.core, pagination);\n return next;\n}\n\nexport function getCominsVirtualRows<TData>(\n state: CominsTableState<TData>,\n { overscan = 2, rowHeight, scrollTop, viewportHeight }: CominsVirtualRowsOptions,\n): CominsVirtualRows<TData> {\n const bridge = projectReactState(state);\n const next = table.getCominsVirtualRows(bridge.core, { overscan, rowHeight, scrollTop, viewportHeight });\n return next;\n}\n\nexport function moveCominsRow<TData>(\n state: CominsTableState<TData>,\n rowId: CominsRowId,\n targetIndex: number,\n) {\n const bridge = projectReactState(state);\n const next = table.moveCominsRow(bridge.core, rowId, targetIndex);\n return restoreReactState(bridge, next);\n}\n\nexport function moveCominsRowToGroup<TData>(\n state: CominsTableState<TData>,\n options: CominsRowGroupMoveOptions<TData>,\n) {\n const bridge = projectReactState(state);\n const next = table.moveCominsRowToGroup(bridge.core, options);\n return restoreReactState(bridge, next);\n}\n\nexport function getCominsCellValue<TData>(\n state: CominsTableState<TData>,\n row: TData,\n columnId: string,\n) {\n return table.getCominsCellValue(state, row, columnId);\n}\n\nexport function createCominsTableState<TData>(input: CominsTableStateInput<TData>): CominsTableState<TData> {\n const runtimeColumns = columns.normalizeColumns(input.columns);\n const runtimeGroups = columns.normalizeColumnGroups(runtimeColumns, input.columnGroups);\n const state = table.createCominsTableState({ ...input, columns: runtimeColumns.map(projectReactColumn), columnGroups: runtimeGroups.map(projectReactGroup) });\n return { ...state, columns: runtimeColumns, columnGroups: runtimeGroups, theme: input.theme ?? {} };\n}\n\nexport function getCominsVisibleColumns<TData>(state: CominsTableState<TData>) {\n const bridge = projectReactState(state);\n return columns.getCominsVisibleColumns(bridge.core).map(bridge.restoreColumn);\n}\n\nexport function getCominsHeaderRows<TData>(state: CominsTableState<TData>): Array<Array<CominsHeaderCell<TData>>> {\n const bridge = projectReactState(state);\n return columns.getCominsHeaderRows(bridge.core).map(row => row.map(cell => cell.kind === \"column\"\n ? { ...cell, column: bridge.restoreColumn(cell.column) }\n : { ...cell, group: bridge.restoreGroup(cell.group) }));\n}\n\nexport function setCominsTableTheme<TData>(state: CominsTableState<TData>, theme: CominsTableTheme) {\n return {\n ...state,\n theme: { ...state.theme, ...theme },\n };\n}\n\nexport function formatCominsCellValue<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n) {\n const value = getCominsCellValue(state, row, column.id);\n\n if (column.cell?.format) {\n return column.cell.format(createCellComponentParams(state, row, rowId, column));\n }\n\n return value == null ? \"\" : String(value);\n}\n\nexport function isCominsCellDisabled<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n) {\n const props = resolveCellProps(state, row, rowId, column);\n\n return props?.disabled !== undefined && resolveGuard(props.disabled, createCellComponentParams(state, row, rowId, column)) === true;\n}\n\nexport function getCominsCellClassName<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n) {\n const params = createCellComponentParams(state, row, rowId, column);\n const className = resolveCellProps(state, row, rowId, column)?.className;\n\n return typeof className === \"function\" ? className(params) : className;\n}\n\nexport function getCominsCellStyle<TData>(\n state: CominsTableState<TData>,\n row: TData,\n rowId: CominsRowId,\n column: CominsTableRuntimeColumn<TData>,\n) {\n const params = createCellComponentParams(state, row, rowId, column);\n const style = resolveCellProps(state, row, rowId, column)?.style;\n\n return typeof style === \"function\" ? style(params) : style;\n}\n\nexport function copyCominsRow<TData>(state: CominsTableState<TData>, rowId: CominsRowId): CominsCopiedRow<TData> {\n const bridge = projectReactState(state);\n return clipboard.copyCominsRow(bridge.core, rowId);\n}\n\nexport function pasteCominsRow<TData>(\n state: CominsTableState<TData>,\n copied: CominsCopiedRow<TData>,\n options: CominsPasteRowOptions<TData>,\n) {\n const bridge = projectReactState(state);\n const next = clipboard.pasteCominsRow(bridge.core, copied, options);\n return restoreReactState(bridge, next);\n}\n\nexport function copyCominsCell<TData>(\n state: CominsTableState<TData>,\n { columnId, rowId }: CominsCellAddress,\n): CominsCopiedCell | null {\n const bridge = projectReactState(state);\n return cells.copyCominsCell(bridge.core, { columnId, rowId });\n}\n\nexport function pasteCominsCell<TData>(\n state: CominsTableState<TData>,\n { columnId, rowId }: CominsCellAddress,\n copied: CominsCopiedCell | null,\n) {\n const bridge = projectReactState(state);\n const next = cells.pasteCominsCell(bridge.core, { columnId, rowId }, copied);\n return restoreReactState(bridge, next);\n}\n\nexport function copyCominsCellRange<TData>(\n state: CominsTableState<TData>,\n range: CominsCellRange | null = state.selection.range,\n rowIds: readonly CominsRowId[] = state.rowIds,\n): CominsCopiedCellRange | null {\n const bridge = projectReactState(state);\n return clipboard.copyCominsCellRange(bridge.core, range, rowIds);\n}\n\nexport function pasteCominsCellRange<TData>(\n state: CominsTableState<TData>,\n target: CominsCellAddress,\n copied: CominsCopiedCellRange | null,\n rowIds: readonly CominsRowId[] = state.rowIds,\n) {\n const bridge = projectReactState(state);\n const next = clipboard.pasteCominsCellRange(bridge.core, target, copied, rowIds);\n return restoreReactState(bridge, next);\n}\n\nexport function pasteCominsText<TData>(\n state: CominsTableState<TData>,\n target: CominsCellAddress,\n text: string,\n rowIds: readonly CominsRowId[] = state.rowIds,\n) {\n const bridge = projectReactState(state);\n const next = clipboard.pasteCominsText(bridge.core, target, text, rowIds);\n return restoreReactState(bridge, next);\n}\n\nexport function fillCominsCellRange<TData>(\n state: CominsTableState<TData>,\n { source, target }: CominsFillCellRangeOptions,\n rowIds: readonly CominsRowId[] = state.rowIds,\n) {\n const bridge = projectReactState(state);\n const next = clipboard.fillCominsCellRange(bridge.core, { source, target }, rowIds);\n return restoreReactState(bridge, next);\n}\n"],"mappings":";;AAOA,SAAgB,EACd,GACA,GACA,GACA,GACA,IAAW,EAAM,OAAO,QAAQ,CAAK,GACF;CACnC,OAAO;EACL,QAAQ;GACN,YAAY;GACZ,OAAO,EAAO;GACd,IAAI,EAAO;GACX,OAAO,EAAM,QAAQ,WAAW,MAAY,EAAQ,OAAO,EAAO,EAAE;GACpE,OAAO,EAAO;EAChB;EACA,KAAK;GACH,MAAM;GACN,WAAW;GACX,UAAU;GACV,IAAI;GACJ,OAAO;GACP,UAAU,EAAM,UAAU,OAAO,SAAS,CAAK;EACjD;EACA,WAAW,EACT,kBAAkB,EAAM,UAAU,OAAO,OAC3C;EACA,OAAO,EAAmB,GAAO,GAAK,EAAO,EAAE;CACjD;AACF;AAEA,SAAgB,EACd,GACA,GACA;CAKA,OAJI,MAAU,KAAA,IACL,KAGF,OAAO,KAAU,YAAY,IAAQ,EAAM,CAAM;AAC1D;AAEA,SAAgB,EACd,GACA,GACA,GACA,GACA;CACA,IAAM,IAAS,EAA0B,GAAO,GAAK,GAAO,CAAM,GAC5D,IAAQ,EAAO,MAAM;CAE3B,OAAO,OAAO,KAAU,aAAa,EAAM,CAAM,IAAI;AACvD;AAGA,SAAgB,EACd,GACA,GAC2B;CAC3B,IAAM,oBAAc,IAAI,QAGrB,GACG,KAAY,MAAgC;EAChD,IAAM,IAAS,EAAY,IAAI,CAAO;EACtC,IAAI,GAAQ,OAAO;EACnB,IAAM,IAAS,EAA0B,GAAO,EAAQ,IAAI,MAAM,EAAQ,IAAI,IAAI,GAAQ,EAAQ,IAAI,SAAS,GACzG,IAAa,EAAO,MAAM,OAC1B,IAAS;GAAE;GAAQ,OAAO,OAAO,KAAe,aAAa,EAAW,CAAM,IAAI;EAAW;EAEnG,OADA,E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