@jielga/tmdatagrid 0.1.0 → 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/README.md +35 -2
- package/dist/index.d.ts +442 -337
- package/dist/index.js +811 -694
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +15 -7
- package/skills/columns/SKILL.md +8 -7
- package/skills/features/SKILL.md +104 -16
- package/skills/getting-started/SKILL.md +39 -16
- package/skills/options/SKILL.md +12 -7
- package/skills/server-side/SKILL.md +5 -2
- package/src/tmdatagrid/TMDataGridContext.ts +1 -1
- package/src/tmdatagrid/components/TMDataGrid.module.css +63 -0
- package/src/tmdatagrid/{TMDataGrid.tsx → components/TMDataGrid.tsx} +9 -4
- package/src/tmdatagrid/components/TMDataGridColumnsPanel.module.css +25 -0
- package/src/tmdatagrid/{TMDataGridColumnsPanel.tsx → components/TMDataGridColumnsPanel.tsx} +3 -3
- package/src/tmdatagrid/components/TMDataGridFilterPanel.module.css +20 -0
- package/src/tmdatagrid/{TMDataGridFilterPanel.tsx → components/TMDataGridFilterPanel.tsx} +4 -4
- package/src/tmdatagrid/components/TMDataGridFooter.module.css +10 -0
- package/src/tmdatagrid/components/TMDataGridFooter.tsx +143 -0
- package/src/tmdatagrid/components/TMDataGridHeaderCell.module.css +153 -0
- package/src/tmdatagrid/{TMDataGridHeaderCell.tsx → components/TMDataGridHeaderCell.tsx} +22 -13
- package/src/tmdatagrid/components/TMDataGridSelectColumn.tsx +100 -0
- package/src/tmdatagrid/components/TMDataGridTable.module.css +103 -0
- package/src/tmdatagrid/{TMDataGridTable.tsx → components/TMDataGridTable.tsx} +79 -20
- package/src/tmdatagrid/components/TMDataGridToolbar.module.css +12 -0
- package/src/tmdatagrid/{TMDataGridToolbar.tsx → components/TMDataGridToolbar.tsx} +5 -5
- package/src/tmdatagrid/components/sticky.module.css +45 -0
- package/src/tmdatagrid/{capabilities.ts → core/capabilities.ts} +30 -2
- package/src/tmdatagrid/{columnOrdering.ts → core/columnOrdering.ts} +2 -2
- package/src/tmdatagrid/{columnUtils.ts → core/columnUtils.ts} +1 -1
- package/src/tmdatagrid/{persistence.ts → core/persistence.ts} +80 -2
- package/src/tmdatagrid/index.ts +15 -9
- package/src/tmdatagrid/useTMDataGrid.tsx +102 -55
- package/src/tmdatagrid/TMDataGrid.module.css +0 -410
- package/src/tmdatagrid/TMDataGridFooter.tsx +0 -74
- /package/src/tmdatagrid/{icons.ts → components/icons.ts} +0 -0
- /package/src/tmdatagrid/{filterOperators.ts → core/filterOperators.ts} +0 -0
- /package/src/tmdatagrid/{sizes.ts → core/sizes.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -2,85 +2,57 @@ import { c as e } from "react/compiler-runtime";
|
|
|
2
2
|
import { createContext as t, useCallback as n, useContext as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
3
3
|
import { ActionIcon as s, Button as c, Checkbox as l, Group as u, Loader as d, Menu as f, Popover as p, ScrollArea as m, Select as h, Stack as g, Text as _, TextInput as v, Tooltip as y } from "@mantine/core";
|
|
4
4
|
import { useCreateStore as b, useSelector as x } from "@tanstack/react-store";
|
|
5
|
-
import { IconArrowBarToLeft as S, IconArrowBarToRight as C, IconArrowDown as w, IconArrowLeft as T, IconArrowRight as E, IconArrowUp as D, IconChevronLeft as O, IconChevronRight as k, IconColumns3 as A, IconDotsVertical as j, IconEyeOff as M, IconFilter as N, IconMenu2 as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { columnFacetingFeature as
|
|
8
|
-
import { useVirtualizer as
|
|
9
|
-
import { shallow as
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
grid: "_grid_pt0ni_87",
|
|
17
|
-
headerRow: "_headerRow_pt0ni_93",
|
|
18
|
-
headerCell: "_headerCell_pt0ni_102",
|
|
19
|
-
headerTitle: "_headerTitle_pt0ni_126",
|
|
20
|
-
headerActions: "_headerActions_pt0ni_149",
|
|
21
|
-
headerAction: "_headerAction_pt0ni_149",
|
|
22
|
-
headerCellSortable: "_headerCellSortable_pt0ni_178",
|
|
23
|
-
headerCellDragging: "_headerCellDragging_pt0ni_185",
|
|
24
|
-
headerCellDropBefore: "_headerCellDropBefore_pt0ni_189",
|
|
25
|
-
headerCellDropAfter: "_headerCellDropAfter_pt0ni_190",
|
|
26
|
-
columnSeparator: "_columnSeparator_pt0ni_210",
|
|
27
|
-
columnSeparatorResizable: "_columnSeparatorResizable_pt0ni_222",
|
|
28
|
-
columnSeparatorActive: "_columnSeparatorActive_pt0ni_245",
|
|
29
|
-
bodyRow: "_bodyRow_pt0ni_250",
|
|
30
|
-
bodyCell: "_bodyCell_pt0ni_268",
|
|
31
|
-
cellContent: "_cellContent_pt0ni_266",
|
|
32
|
-
stickyLeft: "_stickyLeft_pt0ni_305",
|
|
33
|
-
stickyRight: "_stickyRight_pt0ni_309",
|
|
34
|
-
messageRow: "_messageRow_pt0ni_341",
|
|
35
|
-
footer: "_footer_pt0ni_351",
|
|
36
|
-
filterPanel: "_filterPanel_pt0ni_362",
|
|
37
|
-
filterRow: "_filterRow_pt0ni_374",
|
|
38
|
-
menuItemActive: "_menuItemActive_pt0ni_381",
|
|
39
|
-
columnsPanel: "_columnsPanel_pt0ni_386",
|
|
40
|
-
columnsPanelSearch: "_columnsPanelSearch_pt0ni_392",
|
|
41
|
-
columnsPanelList: "_columnsPanelList_pt0ni_396",
|
|
42
|
-
columnsPanelFooter: "_columnsPanelFooter_pt0ni_403"
|
|
43
|
-
}, K = t(null), xe = K.Provider;
|
|
5
|
+
import { IconArrowBarToLeft as S, IconArrowBarToRight as C, IconArrowDown as w, IconArrowLeft as T, IconArrowRight as E, IconArrowUp as D, IconChevronLeft as O, IconChevronRight as k, IconColumns3 as A, IconDotsVertical as j, IconEyeOff as M, IconFilter as N, IconMenu2 as P, IconPinnedOff as F, IconSearch as ee, IconX as I } from "@tabler/icons-react";
|
|
6
|
+
import { jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
7
|
+
import { columnFacetingFeature as z, columnFilteringFeature as B, columnOrderingFeature as V, columnPinningFeature as H, columnResizingFeature as te, columnSizingFeature as ne, columnVisibilityFeature as re, createColumnHelper as ie, createFacetedMinMaxValues as ae, createFacetedRowModel as oe, createFacetedUniqueValues as se, createFilteredRowModel as U, createPaginatedRowModel as ce, createSortedRowModel as le, filterFns as W, flexRender as ue, globalFilteringFeature as de, metaHelper as fe, rowPaginationFeature as pe, rowSelectionFeature as me, rowSortingFeature as G, sortFns as he, tableFeatures as ge, useTable as _e } from "@tanstack/react-table";
|
|
8
|
+
import { useVirtualizer as ve } from "@tanstack/react-virtual";
|
|
9
|
+
import { shallow as ye } from "@tanstack/store";
|
|
10
|
+
var K = { root: "_root_1jc4n_8" }, be = {
|
|
11
|
+
columnsPanel: "_columnsPanel_1492o_1",
|
|
12
|
+
columnsPanelSearch: "_columnsPanelSearch_1492o_7",
|
|
13
|
+
columnsPanelList: "_columnsPanelList_1492o_11",
|
|
14
|
+
columnsPanelFooter: "_columnsPanelFooter_1492o_18"
|
|
15
|
+
}, xe = t(null), Se = xe.Provider;
|
|
44
16
|
function q() {
|
|
45
|
-
let e = r(
|
|
17
|
+
let e = r(xe);
|
|
46
18
|
if (!e) throw Error("TMDataGrid compound components must be rendered inside <TMDataGrid>");
|
|
47
19
|
return e;
|
|
48
20
|
}
|
|
49
21
|
//#endregion
|
|
50
|
-
//#region src/tmdatagrid/columnUtils.ts
|
|
51
|
-
function
|
|
22
|
+
//#region src/tmdatagrid/core/columnUtils.ts
|
|
23
|
+
function Ce(e) {
|
|
52
24
|
let t = e.columnDef.meta?.label;
|
|
53
25
|
if (t) return t;
|
|
54
26
|
let n = e.columnDef.header;
|
|
55
27
|
return typeof n == "string" ? n : e.id;
|
|
56
28
|
}
|
|
57
|
-
function
|
|
29
|
+
function we(e) {
|
|
58
30
|
return e.columnDef.meta?.type ?? "string";
|
|
59
31
|
}
|
|
60
|
-
function
|
|
32
|
+
function Te(e) {
|
|
61
33
|
return e.columnDef.meta?.align ?? "left";
|
|
62
34
|
}
|
|
63
|
-
function
|
|
64
|
-
return e.columnDef.meta?.enableOrdering
|
|
35
|
+
function Ee(e) {
|
|
36
|
+
return e.columnDef.meta?.enableOrdering !== !1 && e.parent === void 0;
|
|
65
37
|
}
|
|
66
38
|
//#endregion
|
|
67
|
-
//#region src/tmdatagrid/TMDataGridColumnsPanel.tsx
|
|
68
|
-
function
|
|
69
|
-
let t = e(54), { table: n, controlSize: r } = q(), [i, a] = o(""), s = x(n.store,
|
|
39
|
+
//#region src/tmdatagrid/components/TMDataGridColumnsPanel.tsx
|
|
40
|
+
function De() {
|
|
41
|
+
let t = e(54), { table: n, controlSize: r } = q(), [i, a] = o(""), s = x(n.store, ke), u, d, f, p, h, g, y, b, S, C;
|
|
70
42
|
if (t[0] !== s || t[1] !== r || t[2] !== i || t[3] !== n) {
|
|
71
43
|
let e = n.getAllLeafColumns(), o = i.trim().toLowerCase();
|
|
72
|
-
C = o ? e.filter((e) =>
|
|
44
|
+
C = o ? e.filter((e) => Ce(e).toLowerCase().includes(o)) : e, d = e.filter(Oe);
|
|
73
45
|
let c;
|
|
74
|
-
t[14] === s ? c = t[15] : (c = (e) => s[e.id] !== !1, t[14] = s, t[15] = c), f = d.filter(c).length, b =
|
|
46
|
+
t[14] === s ? c = t[15] : (c = (e) => s[e.id] !== !1, t[14] = s, t[15] = c), f = d.filter(c).length, b = be.columnsPanel;
|
|
75
47
|
let _;
|
|
76
48
|
t[16] === Symbol.for("react.memo_cache_sentinel") ? (_ = (e) => a(e.currentTarget.value), t[16] = _) : _ = t[16];
|
|
77
49
|
let x;
|
|
78
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */
|
|
50
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ L(ee, {
|
|
79
51
|
size: 16,
|
|
80
52
|
stroke: 1.6
|
|
81
|
-
}), t[17] = x) : x = t[17], t[18] !== r || t[19] !== i ? (S = /* @__PURE__ */
|
|
82
|
-
className:
|
|
83
|
-
children: /* @__PURE__ */
|
|
53
|
+
}), t[17] = x) : x = t[17], t[18] !== r || t[19] !== i ? (S = /* @__PURE__ */ L("div", {
|
|
54
|
+
className: be.columnsPanelSearch,
|
|
55
|
+
children: /* @__PURE__ */ L(v, {
|
|
84
56
|
value: i,
|
|
85
57
|
onChange: _,
|
|
86
58
|
placeholder: "Search",
|
|
@@ -88,18 +60,18 @@ function Ee() {
|
|
|
88
60
|
size: r,
|
|
89
61
|
"data-autofocus": !0
|
|
90
62
|
})
|
|
91
|
-
}), t[18] = r, t[19] = i, t[20] = S) : S = t[20], u = m.Autosize, g = 260, y = "auto", p =
|
|
63
|
+
}), t[18] = r, t[19] = i, t[20] = S) : S = t[20], u = m.Autosize, g = 260, y = "auto", p = be.columnsPanelList;
|
|
92
64
|
let w;
|
|
93
|
-
t[21] !== s || t[22] !== r ? (w = (e) => /* @__PURE__ */
|
|
65
|
+
t[21] !== s || t[22] !== r ? (w = (e) => /* @__PURE__ */ L(l, {
|
|
94
66
|
size: r,
|
|
95
|
-
label:
|
|
67
|
+
label: Ce(e),
|
|
96
68
|
disabled: !e.getCanHide(),
|
|
97
69
|
checked: s[e.id] !== !1,
|
|
98
70
|
onChange: (t) => e.toggleVisibility(t.currentTarget.checked)
|
|
99
71
|
}, e.id), t[21] = s, t[22] = r, t[23] = w) : w = t[23], h = C.map(w), t[0] = s, t[1] = r, t[2] = i, t[3] = n, t[4] = u, t[5] = d, t[6] = f, t[7] = p, t[8] = h, t[9] = g, t[10] = y, t[11] = b, t[12] = S, t[13] = C;
|
|
100
72
|
} else u = t[4], d = t[5], f = t[6], p = t[7], h = t[8], g = t[9], y = t[10], b = t[11], S = t[12], C = t[13];
|
|
101
73
|
let w;
|
|
102
|
-
t[24] !== r || t[25] !== i || t[26] !== C.length ? (w = C.length === 0 && /* @__PURE__ */
|
|
74
|
+
t[24] !== r || t[25] !== i || t[26] !== C.length ? (w = C.length === 0 && /* @__PURE__ */ R(_, {
|
|
103
75
|
size: r,
|
|
104
76
|
c: "dimmed",
|
|
105
77
|
children: [
|
|
@@ -109,12 +81,12 @@ function Ee() {
|
|
|
109
81
|
]
|
|
110
82
|
}), t[24] = r, t[25] = i, t[26] = C.length, t[27] = w) : w = t[27];
|
|
111
83
|
let T;
|
|
112
|
-
t[28] !== p || t[29] !== h || t[30] !== w ? (T = /* @__PURE__ */
|
|
84
|
+
t[28] !== p || t[29] !== h || t[30] !== w ? (T = /* @__PURE__ */ R("div", {
|
|
113
85
|
className: p,
|
|
114
86
|
children: [h, w]
|
|
115
87
|
}), t[28] = p, t[29] = h, t[30] = w, t[31] = T) : T = t[31];
|
|
116
88
|
let E;
|
|
117
|
-
t[32] !== u || t[33] !== g || t[34] !== y || t[35] !== T ? (E = /* @__PURE__ */
|
|
89
|
+
t[32] !== u || t[33] !== g || t[34] !== y || t[35] !== T ? (E = /* @__PURE__ */ L(u, {
|
|
118
90
|
mah: g,
|
|
119
91
|
type: y,
|
|
120
92
|
children: T
|
|
@@ -122,7 +94,7 @@ function Ee() {
|
|
|
122
94
|
let D = f === d.length, O = f > 0 && f < d.length, k;
|
|
123
95
|
t[37] === n ? k = t[38] : (k = (e) => n.toggleAllColumnsVisible(e.currentTarget.checked), t[37] = n, t[38] = k);
|
|
124
96
|
let A;
|
|
125
|
-
t[39] !== r || t[40] !== O || t[41] !== k || t[42] !== D ? (A = /* @__PURE__ */
|
|
97
|
+
t[39] !== r || t[40] !== O || t[41] !== k || t[42] !== D ? (A = /* @__PURE__ */ L(l, {
|
|
126
98
|
size: r,
|
|
127
99
|
label: "Show/Hide All",
|
|
128
100
|
checked: D,
|
|
@@ -130,19 +102,19 @@ function Ee() {
|
|
|
130
102
|
onChange: k
|
|
131
103
|
}), t[39] = r, t[40] = O, t[41] = k, t[42] = D, t[43] = A) : A = t[43];
|
|
132
104
|
let j;
|
|
133
|
-
t[44] === n ? j = t[45] : (j = /* @__PURE__ */
|
|
105
|
+
t[44] === n ? j = t[45] : (j = /* @__PURE__ */ L(c, {
|
|
134
106
|
variant: "subtle",
|
|
135
107
|
size: "compact-sm",
|
|
136
108
|
onClick: () => n.resetColumnVisibility(),
|
|
137
109
|
children: "RESET"
|
|
138
110
|
}), t[44] = n, t[45] = j);
|
|
139
111
|
let M;
|
|
140
|
-
t[46] !== A || t[47] !== j ? (M = /* @__PURE__ */
|
|
141
|
-
className:
|
|
112
|
+
t[46] !== A || t[47] !== j ? (M = /* @__PURE__ */ R("div", {
|
|
113
|
+
className: be.columnsPanelFooter,
|
|
142
114
|
children: [A, j]
|
|
143
115
|
}), t[46] = A, t[47] = j, t[48] = M) : M = t[48];
|
|
144
116
|
let N;
|
|
145
|
-
return t[49] !== M || t[50] !== b || t[51] !== S || t[52] !== E ? (N = /* @__PURE__ */
|
|
117
|
+
return t[49] !== M || t[50] !== b || t[51] !== S || t[52] !== E ? (N = /* @__PURE__ */ R("div", {
|
|
146
118
|
className: b,
|
|
147
119
|
children: [
|
|
148
120
|
S,
|
|
@@ -151,15 +123,16 @@ function Ee() {
|
|
|
151
123
|
]
|
|
152
124
|
}), t[49] = M, t[50] = b, t[51] = S, t[52] = E, t[53] = N) : N = t[53], N;
|
|
153
125
|
}
|
|
154
|
-
function
|
|
126
|
+
function Oe(e) {
|
|
155
127
|
return e.getCanHide();
|
|
156
128
|
}
|
|
157
|
-
function
|
|
129
|
+
function ke(e) {
|
|
158
130
|
return e.columnVisibility;
|
|
159
131
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
132
|
+
var Ae = {
|
|
133
|
+
filterPanel: "_filterPanel_1jw69_4",
|
|
134
|
+
filterRow: "_filterRow_1jw69_16"
|
|
135
|
+
}, je = {
|
|
163
136
|
contains: "contains",
|
|
164
137
|
equals: "equals",
|
|
165
138
|
notEquals: "does not equal",
|
|
@@ -171,7 +144,7 @@ var ke = {
|
|
|
171
144
|
lessThanOrEqual: "is less than or equal to",
|
|
172
145
|
isEmpty: "is empty",
|
|
173
146
|
isNotEmpty: "is not empty"
|
|
174
|
-
},
|
|
147
|
+
}, Me = [
|
|
175
148
|
"contains",
|
|
176
149
|
"equals",
|
|
177
150
|
"notEquals",
|
|
@@ -179,7 +152,7 @@ var ke = {
|
|
|
179
152
|
"endsWith",
|
|
180
153
|
"isEmpty",
|
|
181
154
|
"isNotEmpty"
|
|
182
|
-
],
|
|
155
|
+
], J = [
|
|
183
156
|
"equals",
|
|
184
157
|
"notEquals",
|
|
185
158
|
"greaterThan",
|
|
@@ -188,23 +161,23 @@ var ke = {
|
|
|
188
161
|
"lessThanOrEqual",
|
|
189
162
|
"isEmpty",
|
|
190
163
|
"isNotEmpty"
|
|
191
|
-
],
|
|
164
|
+
], Y = ["isEmpty", "isNotEmpty"];
|
|
192
165
|
function Ne(e) {
|
|
193
|
-
return e === "number" ?
|
|
166
|
+
return e === "number" ? J : Me;
|
|
194
167
|
}
|
|
195
|
-
function
|
|
168
|
+
function Pe(e) {
|
|
196
169
|
return e === "number" ? "equals" : "contains";
|
|
197
170
|
}
|
|
198
|
-
function
|
|
199
|
-
return !
|
|
171
|
+
function Fe(e) {
|
|
172
|
+
return !Y.includes(e);
|
|
200
173
|
}
|
|
201
|
-
function
|
|
174
|
+
function Ie(e) {
|
|
202
175
|
return typeof e == "object" && !!e && "operator" in e && typeof e.operator == "string";
|
|
203
176
|
}
|
|
204
|
-
function
|
|
205
|
-
return
|
|
177
|
+
function Le(e) {
|
|
178
|
+
return Ie(e) ? !Fe(e.operator) || e.value.trim() !== "" : !1;
|
|
206
179
|
}
|
|
207
|
-
function
|
|
180
|
+
function Re(e, { operator: t, value: n }) {
|
|
208
181
|
if (t === "isEmpty") return e == null || e === "";
|
|
209
182
|
if (t === "isNotEmpty") return e != null && e !== "";
|
|
210
183
|
let r = n.trim();
|
|
@@ -227,23 +200,23 @@ function Ie(e, { operator: t, value: n }) {
|
|
|
227
200
|
default: return !0;
|
|
228
201
|
}
|
|
229
202
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
203
|
+
function ze(e, t, n) {
|
|
204
|
+
return !Ie(n) || Re(e.getValue(t), n);
|
|
232
205
|
}
|
|
233
206
|
//#endregion
|
|
234
|
-
//#region src/tmdatagrid/TMDataGridFilterPanel.tsx
|
|
235
|
-
var
|
|
207
|
+
//#region src/tmdatagrid/components/TMDataGridFilterPanel.tsx
|
|
208
|
+
var Be = {
|
|
236
209
|
operator: "contains",
|
|
237
210
|
value: ""
|
|
238
211
|
};
|
|
239
|
-
function
|
|
240
|
-
return
|
|
212
|
+
function Ve(e) {
|
|
213
|
+
return Ie(e) ? e : Be;
|
|
241
214
|
}
|
|
242
|
-
function
|
|
243
|
-
let t = e(39), { table: n, ui: r, controlSize: i } = q(), a = x(r,
|
|
215
|
+
function He() {
|
|
216
|
+
let t = e(39), { table: n, ui: r, controlSize: i } = q(), a = x(r, qe), o = x(n.store, Ke);
|
|
244
217
|
if (!a) return null;
|
|
245
218
|
let l, u;
|
|
246
|
-
t[0] === n ? (l = t[1], u = t[2]) : (l = n.getAllLeafColumns().filter(
|
|
219
|
+
t[0] === n ? (l = t[1], u = t[2]) : (l = n.getAllLeafColumns().filter(Ge), u = l.map(We), t[0] = n, t[1] = l, t[2] = u);
|
|
247
220
|
let d = u, f;
|
|
248
221
|
t[3] !== o || t[4] !== n || t[5] !== r ? (f = function(e) {
|
|
249
222
|
let t = o.filter((t) => t.id !== e);
|
|
@@ -251,11 +224,11 @@ function Be() {
|
|
|
251
224
|
}, t[3] = o, t[4] = n, t[5] = r, t[6] = f) : f = t[6];
|
|
252
225
|
let p = f, m;
|
|
253
226
|
t[7] !== o || t[8] !== n || t[9] !== r ? (m = function(e, t) {
|
|
254
|
-
let i =
|
|
227
|
+
let i = Ve(o.find((t) => t.id === e)?.value), a = n.getColumn(t);
|
|
255
228
|
n.setColumnFilters(o.filter((e) => e.id !== t).map((n) => n.id === e ? {
|
|
256
229
|
id: t,
|
|
257
230
|
value: {
|
|
258
|
-
operator:
|
|
231
|
+
operator: Pe(a ? we(a) : "string"),
|
|
259
232
|
value: i.value
|
|
260
233
|
}
|
|
261
234
|
} : n)), r.actions.openFilterPanel(t);
|
|
@@ -265,7 +238,7 @@ function Be() {
|
|
|
265
238
|
n.setColumnFilters(o.map((n) => n.id === e ? {
|
|
266
239
|
...n,
|
|
267
240
|
value: {
|
|
268
|
-
...
|
|
241
|
+
...Ve(n.value),
|
|
269
242
|
...t
|
|
270
243
|
}
|
|
271
244
|
} : n));
|
|
@@ -276,7 +249,7 @@ function Be() {
|
|
|
276
249
|
e && n.setColumnFilters([...o, {
|
|
277
250
|
id: e.id,
|
|
278
251
|
value: {
|
|
279
|
-
operator:
|
|
252
|
+
operator: Pe(we(e)),
|
|
280
253
|
value: ""
|
|
281
254
|
}
|
|
282
255
|
}]);
|
|
@@ -285,22 +258,22 @@ function Be() {
|
|
|
285
258
|
if (t[18] !== _ || t[19] !== o || t[20] !== d || t[21] !== i || t[22] !== b || t[23] !== p || t[24] !== n) {
|
|
286
259
|
let e;
|
|
287
260
|
t[26] !== _ || t[27] !== d || t[28] !== i || t[29] !== b || t[30] !== p || t[31] !== n ? (e = (e) => {
|
|
288
|
-
let t = n.getColumn(e.id), r =
|
|
289
|
-
return /* @__PURE__ */
|
|
290
|
-
className:
|
|
261
|
+
let t = n.getColumn(e.id), r = Ve(e.value), a = t ? we(t) : "string", o = Fe(r.operator);
|
|
262
|
+
return /* @__PURE__ */ R("div", {
|
|
263
|
+
className: Ae.filterRow,
|
|
291
264
|
children: [
|
|
292
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ L(s, {
|
|
293
266
|
variant: "subtle",
|
|
294
267
|
color: "gray",
|
|
295
268
|
size: "lg",
|
|
296
269
|
"aria-label": "Remove filter",
|
|
297
270
|
onClick: () => p(e.id),
|
|
298
|
-
children: /* @__PURE__ */ I
|
|
271
|
+
children: /* @__PURE__ */ L(I, {
|
|
299
272
|
size: 18,
|
|
300
273
|
stroke: 1.6
|
|
301
274
|
})
|
|
302
275
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ L(h, {
|
|
304
277
|
label: "Column",
|
|
305
278
|
size: i,
|
|
306
279
|
w: 160,
|
|
@@ -309,16 +282,16 @@ function Be() {
|
|
|
309
282
|
value: e.id,
|
|
310
283
|
onChange: (t) => t && _(e.id, t)
|
|
311
284
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ L(h, {
|
|
313
286
|
label: "Operator",
|
|
314
287
|
size: i,
|
|
315
288
|
w: 170,
|
|
316
289
|
allowDeselect: !1,
|
|
317
|
-
data: Ne(a).map(
|
|
290
|
+
data: Ne(a).map(Ue),
|
|
318
291
|
value: r.operator,
|
|
319
292
|
onChange: (t) => t && b(e.id, { operator: t })
|
|
320
293
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ L(v, {
|
|
322
295
|
label: "Value",
|
|
323
296
|
size: i,
|
|
324
297
|
w: 180,
|
|
@@ -335,7 +308,7 @@ function Be() {
|
|
|
335
308
|
let T;
|
|
336
309
|
t[33] === Symbol.for("react.memo_cache_sentinel") ? (T = { alignSelf: "flex-start" }, t[33] = T) : T = t[33];
|
|
337
310
|
let E;
|
|
338
|
-
t[34] === C ? E = t[35] : (E = /* @__PURE__ */
|
|
311
|
+
t[34] === C ? E = t[35] : (E = /* @__PURE__ */ L(c, {
|
|
339
312
|
variant: "subtle",
|
|
340
313
|
size: "compact-sm",
|
|
341
314
|
style: T,
|
|
@@ -343,210 +316,268 @@ function Be() {
|
|
|
343
316
|
children: "Add filter"
|
|
344
317
|
}), t[34] = C, t[35] = E);
|
|
345
318
|
let D;
|
|
346
|
-
return t[36] !== w || t[37] !== E ? (D = /* @__PURE__ */
|
|
347
|
-
className:
|
|
348
|
-
children: /* @__PURE__ */
|
|
319
|
+
return t[36] !== w || t[37] !== E ? (D = /* @__PURE__ */ L("div", {
|
|
320
|
+
className: Ae.filterPanel,
|
|
321
|
+
children: /* @__PURE__ */ R(g, {
|
|
349
322
|
gap: "xs",
|
|
350
323
|
children: [w, E]
|
|
351
324
|
})
|
|
352
325
|
}), t[36] = w, t[37] = E, t[38] = D) : D = t[38], D;
|
|
353
326
|
}
|
|
354
|
-
function
|
|
327
|
+
function Ue(e) {
|
|
355
328
|
return {
|
|
356
329
|
value: e,
|
|
357
|
-
label:
|
|
330
|
+
label: je[e]
|
|
358
331
|
};
|
|
359
332
|
}
|
|
360
|
-
function
|
|
333
|
+
function We(e) {
|
|
361
334
|
return {
|
|
362
335
|
value: e.id,
|
|
363
|
-
label:
|
|
336
|
+
label: Ce(e)
|
|
364
337
|
};
|
|
365
338
|
}
|
|
366
|
-
function
|
|
339
|
+
function Ge(e) {
|
|
367
340
|
return e.getCanFilter();
|
|
368
341
|
}
|
|
369
|
-
function
|
|
342
|
+
function Ke(e) {
|
|
370
343
|
return e.columnFilters;
|
|
371
344
|
}
|
|
372
|
-
function
|
|
345
|
+
function qe(e) {
|
|
373
346
|
return e.filterPanelOpen;
|
|
374
347
|
}
|
|
348
|
+
var Je = { footer: "_footer_6r35a_1" };
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/tmdatagrid/core/capabilities.ts
|
|
351
|
+
function Ye(e) {
|
|
352
|
+
return {
|
|
353
|
+
sorting: e.enableSorting !== !1,
|
|
354
|
+
filtering: e.enableColumnFilters !== !1,
|
|
355
|
+
hiding: e.enableHiding !== !1,
|
|
356
|
+
pinning: e.enableColumnPinning !== !1,
|
|
357
|
+
resizing: e.enableColumnResizing !== !1,
|
|
358
|
+
ordering: e.enableColumnOrdering !== !1,
|
|
359
|
+
rowSelection: e.enableRowSelection !== !1,
|
|
360
|
+
rowSelectionMode: e.rowSelectionMode ?? "checkbox",
|
|
361
|
+
highlightSelectedRows: e.highlightSelectedRows ?? e.rowSelectionMode === "row",
|
|
362
|
+
pagination: e.enablePagination === !0 || e.manualPagination === !0
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function Xe(e, t) {
|
|
366
|
+
return {
|
|
367
|
+
canSort: t.sorting && e.getCanSort(),
|
|
368
|
+
canFilter: t.filtering && e.getCanFilter(),
|
|
369
|
+
canHide: t.hiding && e.getCanHide(),
|
|
370
|
+
canPin: t.pinning && e.getCanPin(),
|
|
371
|
+
canResize: t.resizing && e.getCanResize(),
|
|
372
|
+
canReorder: t.ordering && Ee(e)
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function Ze(e, t) {
|
|
376
|
+
let n = e.getAllLeafColumns(), r = (e) => n.some((n) => e(Xe(n, t)));
|
|
377
|
+
return {
|
|
378
|
+
canSortAny: r((e) => e.canSort),
|
|
379
|
+
canFilterAny: r((e) => e.canFilter),
|
|
380
|
+
canHideAny: r((e) => e.canHide),
|
|
381
|
+
canPinAny: r((e) => e.canPin),
|
|
382
|
+
canReorderAny: r((e) => e.canReorder),
|
|
383
|
+
canSelectRows: t.rowSelection,
|
|
384
|
+
canPaginate: t.pagination
|
|
385
|
+
};
|
|
386
|
+
}
|
|
375
387
|
//#endregion
|
|
376
|
-
//#region src/tmdatagrid/TMDataGridFooter.tsx
|
|
377
|
-
function
|
|
378
|
-
let
|
|
379
|
-
|
|
388
|
+
//#region src/tmdatagrid/components/TMDataGridFooter.tsx
|
|
389
|
+
function Qe(e) {
|
|
390
|
+
let { pageIndex: t, pageSize: n } = e.store.state.pagination;
|
|
391
|
+
return {
|
|
392
|
+
pageIndex: t,
|
|
393
|
+
pageSize: n,
|
|
394
|
+
pageCount: e.getPageCount(),
|
|
395
|
+
rowCount: e.getRowCount(),
|
|
396
|
+
canPreviousPage: e.getCanPreviousPage(),
|
|
397
|
+
canNextPage: e.getCanNextPage(),
|
|
398
|
+
setPageIndex: (t) => e.setPageIndex(t),
|
|
399
|
+
setPageSize: (t) => e.setPageSize(t),
|
|
400
|
+
previousPage: () => e.previousPage(),
|
|
401
|
+
nextPage: () => e.nextPage(),
|
|
402
|
+
firstPage: () => e.firstPage(),
|
|
403
|
+
lastPage: () => e.lastPage()
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
function $e(t) {
|
|
407
|
+
let n = e(50), { pageSizeOptions: r, pagination: i } = t, a = r === void 0 ? [
|
|
380
408
|
10,
|
|
381
409
|
25,
|
|
382
410
|
50,
|
|
383
411
|
100
|
|
384
|
-
] : r,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
412
|
+
] : r, { table: o, features: c, controlSize: l } = q();
|
|
413
|
+
if (x(o.store), !Ze(o, c).canPaginate) return null;
|
|
414
|
+
if (i) {
|
|
415
|
+
let e;
|
|
416
|
+
n[0] !== i || n[1] !== o ? (e = i(Qe(o)), n[0] = i, n[1] = o, n[2] = e) : e = n[2];
|
|
417
|
+
let t;
|
|
418
|
+
return n[3] === e ? t = n[4] : (t = /* @__PURE__ */ L("div", {
|
|
419
|
+
className: Je.footer,
|
|
420
|
+
children: e
|
|
421
|
+
}), n[3] = e, n[4] = t), t;
|
|
422
|
+
}
|
|
423
|
+
let { pageIndex: d, pageSize: f } = o.store.state.pagination, p;
|
|
424
|
+
n[5] === o ? p = n[6] : (p = o.getRowCount(), n[5] = o, n[6] = p);
|
|
425
|
+
let m = p, g = m === 0 ? 0 : d * f + 1, v = Math.min(m, (d + 1) * f), y = a.includes(f) ? a : [...a, f].sort(et), b;
|
|
426
|
+
n[7] === l ? b = n[8] : (b = /* @__PURE__ */ L(_, {
|
|
427
|
+
size: l,
|
|
392
428
|
c: "dimmed",
|
|
393
429
|
children: "Rows per page:"
|
|
394
|
-
}), n[
|
|
395
|
-
let
|
|
396
|
-
n[
|
|
397
|
-
let
|
|
398
|
-
n[
|
|
430
|
+
}), n[7] = l, n[8] = b);
|
|
431
|
+
let S;
|
|
432
|
+
n[9] === y ? S = n[10] : (S = y.map(String), n[9] = y, n[10] = S);
|
|
433
|
+
let C = String(f), w;
|
|
434
|
+
n[11] !== a || n[12] !== o ? (w = (e) => {
|
|
399
435
|
o.setPageSize(Number(e) || a[0]), o.setPageIndex(0);
|
|
400
|
-
}, n[
|
|
401
|
-
let
|
|
402
|
-
n[
|
|
403
|
-
size:
|
|
436
|
+
}, n[11] = a, n[12] = o, n[13] = w) : w = n[13];
|
|
437
|
+
let T;
|
|
438
|
+
n[14] !== l || n[15] !== S || n[16] !== C || n[17] !== w ? (T = /* @__PURE__ */ L(h, {
|
|
439
|
+
size: l,
|
|
404
440
|
w: 78,
|
|
405
441
|
allowDeselect: !1,
|
|
406
442
|
variant: "unstyled",
|
|
407
|
-
data:
|
|
408
|
-
value:
|
|
409
|
-
onChange:
|
|
410
|
-
}), n[
|
|
411
|
-
let
|
|
412
|
-
n[
|
|
443
|
+
data: S,
|
|
444
|
+
value: C,
|
|
445
|
+
onChange: w
|
|
446
|
+
}), n[14] = l, n[15] = S, n[16] = C, n[17] = w, n[18] = T) : T = n[18];
|
|
447
|
+
let E;
|
|
448
|
+
n[19] !== b || n[20] !== T ? (E = /* @__PURE__ */ R(u, {
|
|
413
449
|
gap: "xs",
|
|
414
450
|
wrap: "nowrap",
|
|
415
|
-
children: [
|
|
416
|
-
}), n[
|
|
417
|
-
let
|
|
418
|
-
n[
|
|
419
|
-
size:
|
|
451
|
+
children: [b, T]
|
|
452
|
+
}), n[19] = b, n[20] = T, n[21] = E) : E = n[21];
|
|
453
|
+
let D;
|
|
454
|
+
n[22] !== l || n[23] !== g || n[24] !== v || n[25] !== m ? (D = /* @__PURE__ */ R(_, {
|
|
455
|
+
size: l,
|
|
420
456
|
c: "dimmed",
|
|
421
457
|
children: [
|
|
422
|
-
m,
|
|
423
|
-
"–",
|
|
424
458
|
g,
|
|
459
|
+
"–",
|
|
460
|
+
v,
|
|
425
461
|
" of ",
|
|
426
|
-
|
|
462
|
+
m
|
|
427
463
|
]
|
|
428
|
-
}), n[
|
|
429
|
-
let
|
|
430
|
-
n[
|
|
431
|
-
let
|
|
432
|
-
n[
|
|
433
|
-
let
|
|
434
|
-
n[
|
|
464
|
+
}), n[22] = l, n[23] = g, n[24] = v, n[25] = m, n[26] = D) : D = n[26];
|
|
465
|
+
let A;
|
|
466
|
+
n[27] === o ? A = n[28] : (A = o.getCanPreviousPage(), n[27] = o, n[28] = A);
|
|
467
|
+
let j = !A, M;
|
|
468
|
+
n[29] === o ? M = n[30] : (M = () => o.previousPage(), n[29] = o, n[30] = M);
|
|
469
|
+
let N;
|
|
470
|
+
n[31] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ L(O, {
|
|
435
471
|
size: 18,
|
|
436
472
|
stroke: 1.6
|
|
437
|
-
}), n[
|
|
438
|
-
let
|
|
439
|
-
n[
|
|
473
|
+
}), n[31] = N) : N = n[31];
|
|
474
|
+
let P;
|
|
475
|
+
n[32] !== j || n[33] !== M ? (P = /* @__PURE__ */ L(s, {
|
|
440
476
|
variant: "subtle",
|
|
441
477
|
color: "gray",
|
|
442
478
|
"aria-label": "Previous page",
|
|
443
|
-
disabled:
|
|
444
|
-
onClick:
|
|
445
|
-
children:
|
|
446
|
-
}), n[
|
|
447
|
-
let
|
|
448
|
-
n[
|
|
449
|
-
let ee = !
|
|
450
|
-
n[
|
|
451
|
-
let
|
|
452
|
-
n[
|
|
479
|
+
disabled: j,
|
|
480
|
+
onClick: M,
|
|
481
|
+
children: N
|
|
482
|
+
}), n[32] = j, n[33] = M, n[34] = P) : P = n[34];
|
|
483
|
+
let F;
|
|
484
|
+
n[35] === o ? F = n[36] : (F = o.getCanNextPage(), n[35] = o, n[36] = F);
|
|
485
|
+
let ee = !F, I;
|
|
486
|
+
n[37] === o ? I = n[38] : (I = () => o.nextPage(), n[37] = o, n[38] = I);
|
|
487
|
+
let z;
|
|
488
|
+
n[39] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ L(k, {
|
|
453
489
|
size: 18,
|
|
454
490
|
stroke: 1.6
|
|
455
|
-
}), n[
|
|
456
|
-
let
|
|
457
|
-
n[
|
|
491
|
+
}), n[39] = z) : z = n[39];
|
|
492
|
+
let B;
|
|
493
|
+
n[40] !== ee || n[41] !== I ? (B = /* @__PURE__ */ L(s, {
|
|
458
494
|
variant: "subtle",
|
|
459
495
|
color: "gray",
|
|
460
496
|
"aria-label": "Next page",
|
|
461
497
|
disabled: ee,
|
|
462
|
-
onClick:
|
|
463
|
-
children:
|
|
464
|
-
}), n[
|
|
465
|
-
let
|
|
466
|
-
n[
|
|
498
|
+
onClick: I,
|
|
499
|
+
children: z
|
|
500
|
+
}), n[40] = ee, n[41] = I, n[42] = B) : B = n[42];
|
|
501
|
+
let V;
|
|
502
|
+
n[43] !== P || n[44] !== B ? (V = /* @__PURE__ */ R(u, {
|
|
467
503
|
gap: 4,
|
|
468
504
|
wrap: "nowrap",
|
|
469
|
-
children: [
|
|
470
|
-
}), n[
|
|
471
|
-
let
|
|
472
|
-
return n[
|
|
473
|
-
className:
|
|
505
|
+
children: [P, B]
|
|
506
|
+
}), n[43] = P, n[44] = B, n[45] = V) : V = n[45];
|
|
507
|
+
let H;
|
|
508
|
+
return n[46] !== V || n[47] !== E || n[48] !== D ? (H = /* @__PURE__ */ R("div", {
|
|
509
|
+
className: Je.footer,
|
|
474
510
|
children: [
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
511
|
+
E,
|
|
512
|
+
D,
|
|
513
|
+
V
|
|
478
514
|
]
|
|
479
|
-
}), n[
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
canPinAny: r((e) => e.canPin),
|
|
511
|
-
canReorderAny: r((e) => e.canReorder),
|
|
512
|
-
canSelectRows: t.rowSelection
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
+
}), n[46] = V, n[47] = E, n[48] = D, n[49] = H) : H = n[49], H;
|
|
516
|
+
}
|
|
517
|
+
function et(e, t) {
|
|
518
|
+
return e - t;
|
|
519
|
+
}
|
|
520
|
+
var X = {
|
|
521
|
+
tableWrapper: "_tableWrapper_utldp_2",
|
|
522
|
+
scrollContainer: "_scrollContainer_utldp_10",
|
|
523
|
+
grid: "_grid_utldp_18",
|
|
524
|
+
headerRow: "_headerRow_utldp_24",
|
|
525
|
+
bodyRow: "_bodyRow_utldp_33",
|
|
526
|
+
bodyCell: "_bodyCell_utldp_65",
|
|
527
|
+
cellContent: "_cellContent_utldp_63",
|
|
528
|
+
messageRow: "_messageRow_utldp_95"
|
|
529
|
+
}, tt = {
|
|
530
|
+
stickyLeft: "_stickyLeft_1iqrf_11",
|
|
531
|
+
stickyRight: "_stickyRight_1iqrf_15"
|
|
532
|
+
}, Z = {
|
|
533
|
+
headerCell: "_headerCell_1oqkm_1",
|
|
534
|
+
headerTitle: "_headerTitle_1oqkm_25",
|
|
535
|
+
headerActions: "_headerActions_1oqkm_48",
|
|
536
|
+
headerAction: "_headerAction_1oqkm_48",
|
|
537
|
+
headerCellSortable: "_headerCellSortable_1oqkm_77",
|
|
538
|
+
headerCellDragging: "_headerCellDragging_1oqkm_84",
|
|
539
|
+
headerCellDropBefore: "_headerCellDropBefore_1oqkm_88",
|
|
540
|
+
headerCellDropAfter: "_headerCellDropAfter_1oqkm_89",
|
|
541
|
+
columnSeparator: "_columnSeparator_1oqkm_109",
|
|
542
|
+
columnSeparatorResizable: "_columnSeparatorResizable_1oqkm_121",
|
|
543
|
+
columnSeparatorActive: "_columnSeparatorActive_1oqkm_144",
|
|
544
|
+
menuItemActive: "_menuItemActive_1oqkm_150"
|
|
545
|
+
};
|
|
515
546
|
//#endregion
|
|
516
|
-
//#region src/tmdatagrid/columnOrdering.ts
|
|
517
|
-
function
|
|
547
|
+
//#region src/tmdatagrid/core/columnOrdering.ts
|
|
548
|
+
function nt(e, t) {
|
|
518
549
|
return e.left.includes(t) ? "left" : e.right.includes(t) ? "right" : "center";
|
|
519
550
|
}
|
|
520
|
-
function
|
|
551
|
+
function rt(e, t, n, r) {
|
|
521
552
|
let i = e.filter((e) => e !== t), a = i.indexOf(n);
|
|
522
553
|
return a === -1 ? [...e] : (i.splice(r === "before" ? a : a + 1, 0, t), i);
|
|
523
554
|
}
|
|
524
|
-
function
|
|
555
|
+
function it({ table: e, columnId: t, targetId: n, side: r }) {
|
|
525
556
|
if (t === n) return;
|
|
526
|
-
let i = e.store.state.columnPinning, a =
|
|
527
|
-
if (a !==
|
|
557
|
+
let i = e.store.state.columnPinning, a = nt(i, t);
|
|
558
|
+
if (a !== nt(i, n)) return;
|
|
528
559
|
let o = e.getAllLeafColumns().map((e) => e.id);
|
|
529
|
-
e.setColumnOrder(
|
|
560
|
+
e.setColumnOrder(rt(o, t, n, r)), a !== "center" && e.setColumnPinning((e) => ({
|
|
530
561
|
...e,
|
|
531
|
-
[a]:
|
|
562
|
+
[a]: rt(e[a], t, n, r)
|
|
532
563
|
}));
|
|
533
564
|
}
|
|
534
|
-
function
|
|
565
|
+
function at(e, t) {
|
|
535
566
|
return t === "left" ? e.getLeftVisibleLeafColumns() : t === "right" ? e.getRightVisibleLeafColumns() : e.getCenterVisibleLeafColumns();
|
|
536
567
|
}
|
|
537
|
-
function
|
|
538
|
-
let r =
|
|
568
|
+
function ot({ table: e, columnId: t, direction: n }) {
|
|
569
|
+
let r = at(e, nt(e.store.state.columnPinning, t)), i = r.findIndex((e) => e.id === t);
|
|
539
570
|
if (i === -1) return null;
|
|
540
571
|
let a = r[i + n];
|
|
541
|
-
return !a || !
|
|
572
|
+
return !a || !Ee(a) ? null : a;
|
|
542
573
|
}
|
|
543
|
-
function
|
|
544
|
-
let r =
|
|
574
|
+
function st({ table: e, columnId: t, direction: n }) {
|
|
575
|
+
let r = ot({
|
|
545
576
|
table: e,
|
|
546
577
|
columnId: t,
|
|
547
578
|
direction: n
|
|
548
579
|
});
|
|
549
|
-
r &&
|
|
580
|
+
r && it({
|
|
550
581
|
table: e,
|
|
551
582
|
columnId: t,
|
|
552
583
|
targetId: r.id,
|
|
@@ -554,19 +585,81 @@ function tt({ table: e, columnId: t, direction: n }) {
|
|
|
554
585
|
});
|
|
555
586
|
}
|
|
556
587
|
//#endregion
|
|
557
|
-
//#region src/tmdatagrid/
|
|
558
|
-
var
|
|
588
|
+
//#region src/tmdatagrid/components/TMDataGridSelectColumn.tsx
|
|
589
|
+
var Q = "__select__";
|
|
590
|
+
function ct(t) {
|
|
591
|
+
let n = e(10), { table: r } = t, i;
|
|
592
|
+
n[0] === r ? i = n[1] : (i = () => r.getIsAllRowsSelected(), n[0] = r, n[1] = i);
|
|
593
|
+
let a = x(r.store, i), o;
|
|
594
|
+
n[2] === r ? o = n[3] : (o = () => r.getIsSomeRowsSelected(), n[2] = r, n[3] = o);
|
|
595
|
+
let s = x(r.store, o) && !a, c;
|
|
596
|
+
n[4] === r ? c = n[5] : (c = r.getToggleAllRowsSelectedHandler(), n[4] = r, n[5] = c);
|
|
597
|
+
let u;
|
|
598
|
+
return n[6] !== a || n[7] !== s || n[8] !== c ? (u = /* @__PURE__ */ L(l, {
|
|
599
|
+
size: "xs",
|
|
600
|
+
"aria-label": "Select all rows",
|
|
601
|
+
checked: a,
|
|
602
|
+
indeterminate: s,
|
|
603
|
+
onChange: c
|
|
604
|
+
}), n[6] = a, n[7] = s, n[8] = c, n[9] = u) : u = n[9], u;
|
|
605
|
+
}
|
|
606
|
+
function lt(t) {
|
|
607
|
+
let n = e(13), { row: r } = t, i;
|
|
608
|
+
n[0] === r ? i = n[1] : (i = () => r.getIsSelected(), n[0] = r, n[1] = i);
|
|
609
|
+
let a = x(r.table.store, i), o;
|
|
610
|
+
n[2] === r ? o = n[3] : (o = () => r.getIsSomeSelected(), n[2] = r, n[3] = o);
|
|
611
|
+
let s = x(r.table.store, o), c;
|
|
612
|
+
n[4] === r ? c = n[5] : (c = r.getCanSelect(), n[4] = r, n[5] = c);
|
|
613
|
+
let u = !c, d = s && !a, f;
|
|
614
|
+
n[6] === r ? f = n[7] : (f = r.getToggleSelectedHandler(), n[6] = r, n[7] = f);
|
|
615
|
+
let p;
|
|
616
|
+
return n[8] !== a || n[9] !== u || n[10] !== d || n[11] !== f ? (p = /* @__PURE__ */ L(l, {
|
|
617
|
+
size: "xs",
|
|
618
|
+
"aria-label": "Select row",
|
|
619
|
+
checked: a,
|
|
620
|
+
disabled: u,
|
|
621
|
+
indeterminate: d,
|
|
622
|
+
onChange: f,
|
|
623
|
+
onClick: ut
|
|
624
|
+
}), n[8] = a, n[9] = u, n[10] = d, n[11] = f, n[12] = p) : p = n[12], p;
|
|
625
|
+
}
|
|
626
|
+
function ut(e) {
|
|
627
|
+
return e.stopPropagation();
|
|
628
|
+
}
|
|
629
|
+
function dt() {
|
|
630
|
+
return {
|
|
631
|
+
id: Q,
|
|
632
|
+
meta: {
|
|
633
|
+
label: "Checkbox selection",
|
|
634
|
+
align: "center",
|
|
635
|
+
enableOrdering: !1
|
|
636
|
+
},
|
|
637
|
+
size: 48,
|
|
638
|
+
minSize: 48,
|
|
639
|
+
maxSize: 48,
|
|
640
|
+
enableResizing: !1,
|
|
641
|
+
enableSorting: !1,
|
|
642
|
+
enableColumnFilter: !1,
|
|
643
|
+
enableGlobalFilter: !1,
|
|
644
|
+
enablePinning: !1,
|
|
645
|
+
header: ({ table: e }) => /* @__PURE__ */ L(ct, { table: e }),
|
|
646
|
+
cell: ({ row: e }) => /* @__PURE__ */ L(lt, { row: e })
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region src/tmdatagrid/core/persistence.ts
|
|
651
|
+
var ft = [
|
|
559
652
|
"columnFilters",
|
|
560
653
|
"globalFilter",
|
|
561
654
|
"sorting",
|
|
562
655
|
"pagination"
|
|
563
|
-
],
|
|
656
|
+
], pt = [
|
|
564
657
|
"columnVisibility",
|
|
565
658
|
"columnSizing",
|
|
566
659
|
"columnOrder",
|
|
567
660
|
"columnPinning"
|
|
568
661
|
];
|
|
569
|
-
function
|
|
662
|
+
function mt(e, t) {
|
|
570
663
|
if (!e) return null;
|
|
571
664
|
if (typeof e == "string") return {
|
|
572
665
|
key: e,
|
|
@@ -578,7 +671,7 @@ function it(e, t) {
|
|
|
578
671
|
slices: r
|
|
579
672
|
} : null;
|
|
580
673
|
}
|
|
581
|
-
function
|
|
674
|
+
function ht(e) {
|
|
582
675
|
if (!e) return null;
|
|
583
676
|
try {
|
|
584
677
|
return typeof window > "u" ? null : e.storageMode === "sessionStorage" ? window.sessionStorage : window.localStorage;
|
|
@@ -586,7 +679,34 @@ function at(e) {
|
|
|
586
679
|
return null;
|
|
587
680
|
}
|
|
588
681
|
}
|
|
589
|
-
function
|
|
682
|
+
function $(e, t) {
|
|
683
|
+
return typeof e == "object" && e ? e[t] : void 0;
|
|
684
|
+
}
|
|
685
|
+
var gt = (e) => typeof e == "string", _t = (e) => typeof e == "number" && Number.isFinite(e);
|
|
686
|
+
function vt(e, t) {
|
|
687
|
+
return Array.isArray(e) && e.every(t);
|
|
688
|
+
}
|
|
689
|
+
function yt(e, t) {
|
|
690
|
+
return typeof e != "object" || !e || Array.isArray(e) ? !1 : Object.values(e).every(t);
|
|
691
|
+
}
|
|
692
|
+
var bt = (e) => gt($(e, "id")), xt = {
|
|
693
|
+
columnFilters: (e) => vt(e, bt),
|
|
694
|
+
globalFilter: () => !0,
|
|
695
|
+
sorting: (e) => vt(e, (e) => bt(e) && typeof $(e, "desc") == "boolean"),
|
|
696
|
+
pagination: (e) => {
|
|
697
|
+
let t = $(e, "pageIndex"), n = $(e, "pageSize");
|
|
698
|
+
return _t(t) && t >= 0 && _t(n) && n > 0;
|
|
699
|
+
},
|
|
700
|
+
columnVisibility: (e) => yt(e, (e) => typeof e == "boolean"),
|
|
701
|
+
columnSizing: (e) => yt(e, _t),
|
|
702
|
+
columnOrder: (e) => vt(e, gt),
|
|
703
|
+
columnPinning: (e) => vt($(e, "left"), gt) && vt($(e, "right"), gt)
|
|
704
|
+
};
|
|
705
|
+
function St(e, t) {
|
|
706
|
+
let n = xt[e];
|
|
707
|
+
return n === void 0 || n(t);
|
|
708
|
+
}
|
|
709
|
+
function Ct(e, t, n) {
|
|
590
710
|
if (!e || !t) return {};
|
|
591
711
|
try {
|
|
592
712
|
let r = e.getItem(t.key);
|
|
@@ -594,13 +714,13 @@ function ot(e, t, n) {
|
|
|
594
714
|
let i = n(r);
|
|
595
715
|
if (typeof i != "object" || !i) return {};
|
|
596
716
|
let a = i, o = {};
|
|
597
|
-
for (let e of t.slices) e in a && (o[e] = a[e]);
|
|
717
|
+
for (let e of t.slices) e in a && St(e, a[e]) && (o[e] = a[e]);
|
|
598
718
|
return o;
|
|
599
719
|
} catch {
|
|
600
720
|
return {};
|
|
601
721
|
}
|
|
602
722
|
}
|
|
603
|
-
function
|
|
723
|
+
function wt(e, t, n, r) {
|
|
604
724
|
if (!e || !t) return;
|
|
605
725
|
let i = {};
|
|
606
726
|
for (let e of t.slices) i[e] = n[e];
|
|
@@ -608,179 +728,152 @@ function X(e, t, n, r) {
|
|
|
608
728
|
e.setItem(t.key, r(i));
|
|
609
729
|
} catch {}
|
|
610
730
|
}
|
|
611
|
-
function
|
|
731
|
+
function Tt(e) {
|
|
612
732
|
return {
|
|
613
|
-
data:
|
|
614
|
-
settings:
|
|
733
|
+
data: mt(e?.dataKey, ft),
|
|
734
|
+
settings: mt(e?.settingsKey, pt)
|
|
615
735
|
};
|
|
616
736
|
}
|
|
617
|
-
function
|
|
618
|
-
let { data: t, settings: n } =
|
|
737
|
+
function Et(e) {
|
|
738
|
+
let { data: t, settings: n } = Tt(e);
|
|
619
739
|
return t !== null || n !== null;
|
|
620
740
|
}
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
let t =
|
|
741
|
+
var Dt = (e) => JSON.parse(e), Ot = (e) => JSON.stringify(e);
|
|
742
|
+
function kt(e) {
|
|
743
|
+
let t = ht(e), { data: n, settings: r } = Tt(e), i = e?.deserialize ?? Dt;
|
|
624
744
|
return {
|
|
625
|
-
...
|
|
626
|
-
...
|
|
745
|
+
...Ct(t, r, i),
|
|
746
|
+
...Ct(t, n, i)
|
|
627
747
|
};
|
|
628
748
|
}
|
|
629
|
-
function
|
|
630
|
-
let n =
|
|
749
|
+
function At(e, t) {
|
|
750
|
+
let n = ht(t);
|
|
631
751
|
if (!n) return;
|
|
632
|
-
let { data: r, settings: i } =
|
|
633
|
-
|
|
752
|
+
let { data: r, settings: i } = Tt(t), a = t?.serialize ?? Ot;
|
|
753
|
+
wt(n, r, e, a), wt(n, i, e, a);
|
|
634
754
|
}
|
|
635
755
|
//#endregion
|
|
636
756
|
//#region src/tmdatagrid/useTMDataGrid.tsx
|
|
637
|
-
var
|
|
638
|
-
columnFilteringFeature:
|
|
639
|
-
globalFilteringFeature:
|
|
640
|
-
rowSortingFeature:
|
|
641
|
-
rowPaginationFeature:
|
|
642
|
-
rowSelectionFeature:
|
|
643
|
-
columnPinningFeature:
|
|
644
|
-
columnVisibilityFeature:
|
|
645
|
-
columnOrderingFeature:
|
|
646
|
-
columnSizingFeature:
|
|
647
|
-
columnResizingFeature:
|
|
648
|
-
columnFacetingFeature:
|
|
649
|
-
filteredRowModel:
|
|
650
|
-
sortedRowModel:
|
|
651
|
-
paginatedRowModel:
|
|
652
|
-
facetedRowModel:
|
|
653
|
-
facetedMinMaxValues:
|
|
654
|
-
facetedUniqueValues:
|
|
757
|
+
var jt = 200, Mt = ge({
|
|
758
|
+
columnFilteringFeature: B,
|
|
759
|
+
globalFilteringFeature: de,
|
|
760
|
+
rowSortingFeature: G,
|
|
761
|
+
rowPaginationFeature: pe,
|
|
762
|
+
rowSelectionFeature: me,
|
|
763
|
+
columnPinningFeature: H,
|
|
764
|
+
columnVisibilityFeature: re,
|
|
765
|
+
columnOrderingFeature: V,
|
|
766
|
+
columnSizingFeature: ne,
|
|
767
|
+
columnResizingFeature: te,
|
|
768
|
+
columnFacetingFeature: z,
|
|
769
|
+
filteredRowModel: U(),
|
|
770
|
+
sortedRowModel: le(),
|
|
771
|
+
paginatedRowModel: ce(),
|
|
772
|
+
facetedRowModel: oe(),
|
|
773
|
+
facetedMinMaxValues: ae(),
|
|
774
|
+
facetedUniqueValues: se(),
|
|
655
775
|
filterFns: {
|
|
656
|
-
...
|
|
657
|
-
tmDataGrid:
|
|
776
|
+
...W,
|
|
777
|
+
tmDataGrid: ze
|
|
658
778
|
},
|
|
659
|
-
sortFns:
|
|
660
|
-
tableMeta:
|
|
661
|
-
columnMeta:
|
|
779
|
+
sortFns: he,
|
|
780
|
+
tableMeta: fe(),
|
|
781
|
+
columnMeta: fe()
|
|
662
782
|
});
|
|
663
|
-
function
|
|
664
|
-
return
|
|
783
|
+
function Nt() {
|
|
784
|
+
return ie();
|
|
665
785
|
}
|
|
666
|
-
function
|
|
786
|
+
function Pt(e) {
|
|
667
787
|
return e.map((e) => "columns" in e && Array.isArray(e.columns) ? {
|
|
668
788
|
...e,
|
|
669
|
-
columns:
|
|
789
|
+
columns: Pt(e.columns)
|
|
670
790
|
} : {
|
|
671
791
|
filterFn: "tmDataGrid",
|
|
672
792
|
...e
|
|
673
793
|
});
|
|
674
794
|
}
|
|
675
|
-
function
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
enableGlobalFilter: !1,
|
|
690
|
-
enablePinning: !1,
|
|
691
|
-
header: ({ table: e }) => /* @__PURE__ */ I(l, {
|
|
692
|
-
size: "xs",
|
|
693
|
-
"aria-label": "Select all rows",
|
|
694
|
-
checked: e.getIsAllRowsSelected(),
|
|
695
|
-
indeterminate: e.getIsSomeRowsSelected(),
|
|
696
|
-
onChange: e.getToggleAllRowsSelectedHandler()
|
|
697
|
-
}),
|
|
698
|
-
cell: ({ row: e }) => /* @__PURE__ */ I(l, {
|
|
699
|
-
size: "xs",
|
|
700
|
-
"aria-label": "Select row",
|
|
701
|
-
checked: e.getIsSelected(),
|
|
702
|
-
disabled: !e.getCanSelect(),
|
|
703
|
-
indeterminate: e.getIsSomeSelected(),
|
|
704
|
-
onChange: e.getToggleSelectedHandler(),
|
|
705
|
-
onClick: (e) => e.stopPropagation()
|
|
706
|
-
})
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
function ht(t) {
|
|
710
|
-
let n = e(46), r, a, s;
|
|
711
|
-
n[0] === t ? (r = n[1], a = n[2], s = n[3]) : ({persist: s, enableColumnOrdering: r, ...a} = t, n[0] = t, n[1] = r, n[2] = a, n[3] = s);
|
|
712
|
-
let c = a.enableRowSelection !== !1, l = a.enableColumnPinning !== !1, u;
|
|
713
|
-
if (n[4] !== a.columns || n[5] !== c) {
|
|
714
|
-
let e = $(a.columns);
|
|
715
|
-
u = c ? [mt(), ...e] : e, n[4] = a.columns, n[5] = c, n[6] = u;
|
|
716
|
-
} else u = n[6];
|
|
717
|
-
let d = u, f;
|
|
718
|
-
n[7] === s ? f = n[8] : (f = () => ut(s), n[7] = s, n[8] = f);
|
|
719
|
-
let [p] = o(f), m = d, h;
|
|
720
|
-
n[9] !== l || n[10] !== c ? (h = c && l ? [ft] : [], n[9] = l, n[10] = c, n[11] = h) : h = n[11];
|
|
721
|
-
let g;
|
|
722
|
-
n[12] !== a.initialState?.columnPinning?.left || n[13] !== p.columnPinning?.left || n[14] !== h ? (g = [...h, ...(p.columnPinning?.left ?? a.initialState?.columnPinning?.left ?? []).filter(bt)], n[12] = a.initialState?.columnPinning?.left, n[13] = p.columnPinning?.left, n[14] = h, n[15] = g) : g = n[15];
|
|
723
|
-
let _;
|
|
724
|
-
n[16] !== a.initialState?.columnPinning?.right || n[17] !== p.columnPinning?.right ? (_ = p.columnPinning?.right ?? a.initialState?.columnPinning?.right ?? [], n[16] = a.initialState?.columnPinning?.right, n[17] = p.columnPinning?.right, n[18] = _) : _ = n[18];
|
|
725
|
-
let v;
|
|
726
|
-
n[19] !== g || n[20] !== _ ? (v = {
|
|
727
|
-
left: g,
|
|
728
|
-
right: _
|
|
729
|
-
}, n[19] = g, n[20] = _, n[21] = v) : v = n[21];
|
|
730
|
-
let y = a.initialState?.pagination, x;
|
|
731
|
-
n[22] !== p.pagination || n[23] !== y ? (x = {
|
|
732
|
-
pageIndex: 0,
|
|
733
|
-
pageSize: 25,
|
|
734
|
-
...y,
|
|
735
|
-
...p.pagination
|
|
736
|
-
}, n[22] = p.pagination, n[23] = y, n[24] = x) : x = n[24];
|
|
795
|
+
function Ft(t) {
|
|
796
|
+
let n = e(52), r, a, s, c, l, u;
|
|
797
|
+
n[0] === t ? (r = n[1], a = n[2], s = n[3], c = n[4], l = n[5], u = n[6]) : ({persist: l, enableColumnOrdering: r, enablePagination: a, rowSelectionMode: u, highlightSelectedRows: s, ...c} = t, n[0] = t, n[1] = r, n[2] = a, n[3] = s, n[4] = c, n[5] = l, n[6] = u);
|
|
798
|
+
let d = c.enableRowSelection !== !1, f = c.enableColumnPinning !== !1, p = d && u !== "row", m;
|
|
799
|
+
if (n[7] !== c.columns || n[8] !== p) {
|
|
800
|
+
let e = Pt(c.columns);
|
|
801
|
+
m = p ? [dt(), ...e] : e, n[7] = c.columns, n[8] = p, n[9] = m;
|
|
802
|
+
} else m = n[9];
|
|
803
|
+
let h = m, g;
|
|
804
|
+
n[10] === l ? g = n[11] : (g = () => kt(l), n[10] = l, n[11] = g);
|
|
805
|
+
let [_] = o(g), v = h, y;
|
|
806
|
+
n[12] !== f || n[13] !== p ? (y = p && f ? [Q] : [], n[12] = f, n[13] = p, n[14] = y) : y = n[14];
|
|
807
|
+
let x;
|
|
808
|
+
n[15] !== c.initialState?.columnPinning?.left || n[16] !== _.columnPinning?.left || n[17] !== y ? (x = [...y, ...(_.columnPinning?.left ?? c.initialState?.columnPinning?.left ?? []).filter(Bt)], n[15] = c.initialState?.columnPinning?.left, n[16] = _.columnPinning?.left, n[17] = y, n[18] = x) : x = n[18];
|
|
737
809
|
let S;
|
|
738
|
-
n[
|
|
739
|
-
...a.initialState,
|
|
740
|
-
...p,
|
|
741
|
-
columnPinning: v,
|
|
742
|
-
pagination: x
|
|
743
|
-
}, n[25] = a.initialState, n[26] = p, n[27] = v, n[28] = x, n[29] = S) : S = n[29];
|
|
810
|
+
n[19] !== c.initialState?.columnPinning?.right || n[20] !== _.columnPinning?.right ? (S = _.columnPinning?.right ?? c.initialState?.columnPinning?.right ?? [], n[19] = c.initialState?.columnPinning?.right, n[20] = _.columnPinning?.right, n[21] = S) : S = n[21];
|
|
744
811
|
let C;
|
|
745
|
-
n[
|
|
812
|
+
n[22] !== x || n[23] !== S ? (C = {
|
|
813
|
+
left: x,
|
|
814
|
+
right: S
|
|
815
|
+
}, n[22] = x, n[23] = S, n[24] = C) : C = n[24];
|
|
816
|
+
let w = c.initialState?.pagination, T;
|
|
817
|
+
n[25] !== _.pagination || n[26] !== w ? (T = {
|
|
818
|
+
pageIndex: 0,
|
|
819
|
+
pageSize: 25,
|
|
820
|
+
...w,
|
|
821
|
+
..._.pagination
|
|
822
|
+
}, n[25] = _.pagination, n[26] = w, n[27] = T) : T = n[27];
|
|
823
|
+
let E;
|
|
824
|
+
n[28] !== c.initialState || n[29] !== _ || n[30] !== C || n[31] !== T ? (E = {
|
|
825
|
+
...c.initialState,
|
|
826
|
+
..._,
|
|
827
|
+
columnPinning: C,
|
|
828
|
+
pagination: T
|
|
829
|
+
}, n[28] = c.initialState, n[29] = _, n[30] = C, n[31] = T, n[32] = E) : E = n[32];
|
|
830
|
+
let D;
|
|
831
|
+
n[33] !== c || n[34] !== E || n[35] !== v ? (D = {
|
|
746
832
|
columnResizeMode: "onChange",
|
|
747
833
|
enableSorting: !0,
|
|
748
834
|
enableColumnResizing: !0,
|
|
749
835
|
globalFilterFn: "includesString",
|
|
750
|
-
...
|
|
751
|
-
features:
|
|
752
|
-
columns:
|
|
753
|
-
initialState:
|
|
754
|
-
}, n[
|
|
755
|
-
let
|
|
756
|
-
n[
|
|
757
|
-
if (!
|
|
758
|
-
|
|
759
|
-
let e =
|
|
760
|
-
|
|
836
|
+
...c,
|
|
837
|
+
features: Mt,
|
|
838
|
+
columns: v,
|
|
839
|
+
initialState: E
|
|
840
|
+
}, n[33] = c, n[34] = E, n[35] = v, n[36] = D) : D = n[36];
|
|
841
|
+
let O = _e(D), k, A;
|
|
842
|
+
n[37] !== l || n[38] !== O ? (k = () => {
|
|
843
|
+
if (!Et(l)) return;
|
|
844
|
+
At(O.store.state, l);
|
|
845
|
+
let e, t = null, n = () => {
|
|
846
|
+
e = void 0, t !== null && (At(t, l), t = null);
|
|
847
|
+
}, r = O.store.subscribe((r) => {
|
|
848
|
+
t = r, e !== void 0 && clearTimeout(e), e = setTimeout(n, jt);
|
|
761
849
|
});
|
|
762
|
-
return () =>
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
n[38]
|
|
850
|
+
return () => {
|
|
851
|
+
r.unsubscribe(), e !== void 0 && clearTimeout(e), n();
|
|
852
|
+
};
|
|
853
|
+
}, A = [l, O], n[37] = l, n[38] = O, n[39] = k, n[40] = A) : (k = n[39], A = n[40]), i(k, A);
|
|
854
|
+
let j;
|
|
855
|
+
n[41] === Symbol.for("react.memo_cache_sentinel") ? (j = {
|
|
766
856
|
filterPanelOpen: !1,
|
|
767
857
|
columnsPanelOpen: !1,
|
|
768
858
|
filterPanelColumnId: null,
|
|
769
859
|
draggedColumnId: null
|
|
770
|
-
}, n[
|
|
771
|
-
let
|
|
772
|
-
n[
|
|
773
|
-
...
|
|
774
|
-
enableColumnOrdering: r
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
860
|
+
}, n[41] = j) : j = n[41];
|
|
861
|
+
let M = b(j, It), N;
|
|
862
|
+
n[42] !== r || n[43] !== a || n[44] !== s || n[45] !== c || n[46] !== u ? (N = Ye({
|
|
863
|
+
...c,
|
|
864
|
+
enableColumnOrdering: r,
|
|
865
|
+
enablePagination: a,
|
|
866
|
+
rowSelectionMode: u,
|
|
867
|
+
highlightSelectedRows: s
|
|
868
|
+
}), n[42] = r, n[43] = a, n[44] = s, n[45] = c, n[46] = u, n[47] = N) : N = n[47];
|
|
869
|
+
let P = N, F;
|
|
870
|
+
return n[48] !== P || n[49] !== O || n[50] !== M ? (F = {
|
|
871
|
+
table: O,
|
|
872
|
+
ui: M,
|
|
873
|
+
features: P
|
|
874
|
+
}, n[48] = P, n[49] = O, n[50] = M, n[51] = F) : F = n[51], F;
|
|
875
|
+
}
|
|
876
|
+
function It(e) {
|
|
784
877
|
let { setState: t } = e;
|
|
785
878
|
return {
|
|
786
879
|
openFilterPanel: (e) => {
|
|
@@ -791,101 +884,101 @@ function gt(e) {
|
|
|
791
884
|
filterPanelColumnId: n
|
|
792
885
|
}));
|
|
793
886
|
},
|
|
794
|
-
closeFilterPanel: () => t(
|
|
887
|
+
closeFilterPanel: () => t(zt),
|
|
795
888
|
setColumnsPanelOpen: (e) => t((t) => ({
|
|
796
889
|
...t,
|
|
797
890
|
columnsPanelOpen: e
|
|
798
891
|
})),
|
|
799
|
-
toggleColumnsPanel: () => t(
|
|
892
|
+
toggleColumnsPanel: () => t(Rt),
|
|
800
893
|
startColumnDrag: (e) => t((t) => ({
|
|
801
894
|
...t,
|
|
802
895
|
draggedColumnId: e
|
|
803
896
|
})),
|
|
804
|
-
endColumnDrag: () => t(
|
|
897
|
+
endColumnDrag: () => t(Lt)
|
|
805
898
|
};
|
|
806
899
|
}
|
|
807
|
-
function
|
|
900
|
+
function Lt(e) {
|
|
808
901
|
return {
|
|
809
902
|
...e,
|
|
810
903
|
draggedColumnId: null
|
|
811
904
|
};
|
|
812
905
|
}
|
|
813
|
-
function
|
|
906
|
+
function Rt(e) {
|
|
814
907
|
return {
|
|
815
908
|
...e,
|
|
816
909
|
columnsPanelOpen: !e.columnsPanelOpen
|
|
817
910
|
};
|
|
818
911
|
}
|
|
819
|
-
function
|
|
912
|
+
function zt(e) {
|
|
820
913
|
return {
|
|
821
914
|
...e,
|
|
822
915
|
filterPanelOpen: !1,
|
|
823
916
|
filterPanelColumnId: null
|
|
824
917
|
};
|
|
825
918
|
}
|
|
826
|
-
function
|
|
827
|
-
return e !==
|
|
919
|
+
function Bt(e) {
|
|
920
|
+
return e !== Q;
|
|
828
921
|
}
|
|
829
|
-
function
|
|
922
|
+
function Vt(e, t) {
|
|
830
923
|
let n = e.table.getColumn(t);
|
|
831
924
|
n && n.getFilterValue() === void 0 && n.setFilterValue({
|
|
832
|
-
operator:
|
|
925
|
+
operator: Pe(n.columnDef.meta?.type ?? "string"),
|
|
833
926
|
value: ""
|
|
834
927
|
}), e.ui.actions.openFilterPanel(t);
|
|
835
928
|
}
|
|
836
929
|
//#endregion
|
|
837
|
-
//#region src/tmdatagrid/TMDataGridHeaderCell.tsx
|
|
838
|
-
function
|
|
839
|
-
let n = e(
|
|
840
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { compare:
|
|
841
|
-
let { sorting: O, columnFilters: k, resizingColumnId:
|
|
842
|
-
n[1] === d ?
|
|
843
|
-
let
|
|
844
|
-
n[3] === d ?
|
|
845
|
-
let
|
|
846
|
-
n[5] !== d.id || n[6] !== O ? (
|
|
847
|
-
let
|
|
930
|
+
//#region src/tmdatagrid/components/TMDataGridHeaderCell.tsx
|
|
931
|
+
function Ht(t) {
|
|
932
|
+
let n = e(174), { header: r, layout: i } = t, c = q(), { table: l, features: u } = c, d = r.column, [p, m] = o(!1), [h, g] = o(null), _ = a(null), v = a(!1), b;
|
|
933
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { compare: ye }, n[0] = b) : b = n[0];
|
|
934
|
+
let { sorting: O, columnFilters: k, resizingColumnId: P, columnPinning: ee } = x(l.store, qt, b), I = x(c.ui, Kt), z = r.subHeaders.length === 0, B;
|
|
935
|
+
n[1] === d ? B = n[2] : (B = Ce(d), n[1] = d, n[2] = B);
|
|
936
|
+
let V = B, H;
|
|
937
|
+
n[3] === d ? H = n[4] : (H = Te(d), n[3] = d, n[4] = H);
|
|
938
|
+
let te = H, ne;
|
|
939
|
+
n[5] !== d.id || n[6] !== O ? (ne = O.find((e) => e.id === d.id)?.desc, n[5] = d.id, n[6] = O, n[7] = ne) : ne = n[7];
|
|
940
|
+
let re = ne, ie = re !== void 0, ae;
|
|
848
941
|
if (n[8] !== d.id || n[9] !== k) {
|
|
849
942
|
let e;
|
|
850
|
-
n[11] === d.id ? e = n[12] : (e = (e) => e.id === d.id &&
|
|
851
|
-
} else
|
|
852
|
-
let
|
|
853
|
-
n[13] !== d || n[14] !== u ? (
|
|
854
|
-
let
|
|
855
|
-
n[16] !== u || n[17] !==
|
|
856
|
-
let
|
|
857
|
-
n[20] !==
|
|
858
|
-
let K =
|
|
859
|
-
n[26] !== c.ui || n[27] !== d.id ? (
|
|
943
|
+
n[11] === d.id ? e = n[12] : (e = (e) => e.id === d.id && Le(e.value), n[11] = d.id, n[12] = e), ae = k.some(e), n[8] = d.id, n[9] = k, n[10] = ae;
|
|
944
|
+
} else ae = n[10];
|
|
945
|
+
let oe = ae, se = P === d.id, U = i.pinnedAt, ce;
|
|
946
|
+
n[13] !== d || n[14] !== u ? (ce = Xe(d, u), n[13] = d, n[14] = u, n[15] = ce) : ce = n[15];
|
|
947
|
+
let le = ce, W = z && le.canSort, de = z && le.canFilter, fe = z && le.canHide, pe = z && le.canPin, me = le.canResize, G = z && le.canReorder, he;
|
|
948
|
+
n[16] !== u || n[17] !== z || n[18] !== l ? (he = z && Ze(l, u).canHideAny, n[16] = u, n[17] = z, n[18] = l, n[19] = he) : he = n[19];
|
|
949
|
+
let ge = he, _e = I === d.id, ve;
|
|
950
|
+
n[20] !== G || n[21] !== d.id || n[22] !== ee || n[23] !== I || n[24] !== _e ? (ve = G && I !== null && !_e && nt(ee, I) === nt(ee, d.id), n[20] = G, n[21] = d.id, n[22] = ee, n[23] = I, n[24] = _e, n[25] = ve) : ve = n[25];
|
|
951
|
+
let K = ve, be;
|
|
952
|
+
n[26] !== c.ui || n[27] !== d.id ? (be = function(e) {
|
|
860
953
|
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", d.id), c.ui.actions.startColumnDrag(d.id);
|
|
861
|
-
}, n[26] = c.ui, n[27] = d.id, n[28] =
|
|
862
|
-
let
|
|
863
|
-
n[29] === K ?
|
|
954
|
+
}, n[26] = c.ui, n[27] = d.id, n[28] = be) : be = n[28];
|
|
955
|
+
let xe = be, Se;
|
|
956
|
+
n[29] === K ? Se = n[30] : (Se = function(e) {
|
|
864
957
|
if (!K) return;
|
|
865
958
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
866
959
|
let t = _.current?.getBoundingClientRect();
|
|
867
960
|
t && g(e.clientX < t.left + t.width / 2 ? "before" : "after");
|
|
868
|
-
}, n[29] = K, n[30] =
|
|
869
|
-
let
|
|
870
|
-
n[31] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
961
|
+
}, n[29] = K, n[30] = Se);
|
|
962
|
+
let we = Se, Ee;
|
|
963
|
+
n[31] === Symbol.for("react.memo_cache_sentinel") ? (Ee = function(e) {
|
|
871
964
|
let t = e.relatedTarget;
|
|
872
965
|
t instanceof Node && e.currentTarget.contains(t) || g(null);
|
|
873
|
-
}, n[31] =
|
|
874
|
-
let
|
|
875
|
-
n[32] !== c.ui || n[33] !== d.id || n[34] !==
|
|
876
|
-
e.preventDefault(), g(null), c.ui.actions.endColumnDrag(), !(!K || !h || !
|
|
966
|
+
}, n[31] = Ee) : Ee = n[31];
|
|
967
|
+
let De = Ee, Oe;
|
|
968
|
+
n[32] !== c.ui || n[33] !== d.id || n[34] !== I || n[35] !== h || n[36] !== K || n[37] !== l ? (Oe = function(e) {
|
|
969
|
+
e.preventDefault(), g(null), c.ui.actions.endColumnDrag(), !(!K || !h || !I) && it({
|
|
877
970
|
table: l,
|
|
878
|
-
columnId:
|
|
971
|
+
columnId: I,
|
|
879
972
|
targetId: d.id,
|
|
880
973
|
side: h
|
|
881
974
|
});
|
|
882
|
-
}, n[32] = c.ui, n[33] = d.id, n[34] =
|
|
883
|
-
let
|
|
884
|
-
n[39] === c.ui ?
|
|
975
|
+
}, n[32] = c.ui, n[33] = d.id, n[34] = I, n[35] = h, n[36] = K, n[37] = l, n[38] = Oe) : Oe = n[38];
|
|
976
|
+
let ke = Oe, Ae;
|
|
977
|
+
n[39] === c.ui ? Ae = n[40] : (Ae = function() {
|
|
885
978
|
g(null), c.ui.actions.endColumnDrag();
|
|
886
|
-
}, n[39] = c.ui, n[40] =
|
|
887
|
-
let
|
|
888
|
-
n[41] !== d || n[42] !== l ? (
|
|
979
|
+
}, n[39] = c.ui, n[40] = Ae);
|
|
980
|
+
let je = Ae, Me;
|
|
981
|
+
n[41] !== d || n[42] !== l ? (Me = function(e) {
|
|
889
982
|
if (e && !(d.id in l.store.state.columnSizing)) {
|
|
890
983
|
let e = _.current?.getBoundingClientRect().width;
|
|
891
984
|
e && l.setColumnSizing((t) => ({
|
|
@@ -894,103 +987,103 @@ function St(t) {
|
|
|
894
987
|
}));
|
|
895
988
|
}
|
|
896
989
|
d.pin(e);
|
|
897
|
-
}, n[41] = d, n[42] = l, n[43] =
|
|
898
|
-
let J =
|
|
899
|
-
if (n[44] !== c || n[45] !==
|
|
900
|
-
if (Y = [],
|
|
990
|
+
}, n[41] = d, n[42] = l, n[43] = Me) : Me = n[43];
|
|
991
|
+
let J = Me, Y;
|
|
992
|
+
if (n[44] !== c || n[45] !== de || n[46] !== fe || n[47] !== ge || n[48] !== pe || n[49] !== G || n[50] !== W || n[51] !== d || n[52] !== U || n[53] !== J || n[54] !== l) {
|
|
993
|
+
if (Y = [], W) {
|
|
901
994
|
let e;
|
|
902
|
-
n[56] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
995
|
+
n[56] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(D, {
|
|
903
996
|
size: 16,
|
|
904
997
|
stroke: 1.6
|
|
905
998
|
}), n[56] = e) : e = n[56];
|
|
906
999
|
let t;
|
|
907
|
-
n[57] === d ? t = n[58] : (t = /* @__PURE__ */
|
|
1000
|
+
n[57] === d ? t = n[58] : (t = /* @__PURE__ */ L(f.Item, {
|
|
908
1001
|
leftSection: e,
|
|
909
1002
|
onClick: () => d.toggleSorting(!1),
|
|
910
1003
|
children: "Sort by ASC"
|
|
911
1004
|
}, "sort-asc"), n[57] = d, n[58] = t);
|
|
912
1005
|
let r;
|
|
913
|
-
n[59] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1006
|
+
n[59] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ L(w, {
|
|
914
1007
|
size: 16,
|
|
915
1008
|
stroke: 1.6
|
|
916
1009
|
}), n[59] = r) : r = n[59];
|
|
917
1010
|
let i;
|
|
918
|
-
n[60] === d ? i = n[61] : (i = /* @__PURE__ */
|
|
1011
|
+
n[60] === d ? i = n[61] : (i = /* @__PURE__ */ L(f.Item, {
|
|
919
1012
|
leftSection: r,
|
|
920
1013
|
onClick: () => d.toggleSorting(!0),
|
|
921
1014
|
children: "Sort by DESC"
|
|
922
1015
|
}, "sort-desc"), n[60] = d, n[61] = i);
|
|
923
1016
|
let a;
|
|
924
|
-
n[62] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
1017
|
+
n[62] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ L(f.Divider, {}, "sort-divider"), n[62] = a) : a = n[62], Y.push(t, i, a);
|
|
925
1018
|
}
|
|
926
|
-
if (
|
|
1019
|
+
if (de) {
|
|
927
1020
|
let e;
|
|
928
|
-
n[63] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1021
|
+
n[63] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(N, {
|
|
929
1022
|
size: 16,
|
|
930
1023
|
stroke: 1.6
|
|
931
1024
|
}), n[63] = e) : e = n[63];
|
|
932
1025
|
let t;
|
|
933
|
-
n[64] !== c || n[65] !== d.id ? (t = /* @__PURE__ */
|
|
1026
|
+
n[64] !== c || n[65] !== d.id ? (t = /* @__PURE__ */ L(f.Item, {
|
|
934
1027
|
leftSection: e,
|
|
935
|
-
onClick: () =>
|
|
1028
|
+
onClick: () => Vt(c, d.id),
|
|
936
1029
|
children: "Filter"
|
|
937
1030
|
}, "filter"), n[64] = c, n[65] = d.id, n[66] = t) : t = n[66];
|
|
938
1031
|
let r;
|
|
939
|
-
n[67] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1032
|
+
n[67] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ L(f.Divider, {}, "filter-divider"), n[67] = r) : r = n[67], Y.push(t, r);
|
|
940
1033
|
}
|
|
941
|
-
if (
|
|
942
|
-
let e =
|
|
943
|
-
n[68] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
1034
|
+
if (pe) {
|
|
1035
|
+
let e = U === "left" ? Z.menuItemActive : void 0, t;
|
|
1036
|
+
n[68] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ L(S, {
|
|
944
1037
|
size: 16,
|
|
945
1038
|
stroke: 1.6
|
|
946
1039
|
}), n[68] = t) : t = n[68];
|
|
947
1040
|
let r;
|
|
948
|
-
n[69] !==
|
|
1041
|
+
n[69] !== U || n[70] !== J ? (r = () => J(U !== "left" && "left"), n[69] = U, n[70] = J, n[71] = r) : r = n[71];
|
|
949
1042
|
let i;
|
|
950
|
-
n[72] !== e || n[73] !== r ? (i = /* @__PURE__ */
|
|
1043
|
+
n[72] !== e || n[73] !== r ? (i = /* @__PURE__ */ L(f.Item, {
|
|
951
1044
|
className: e,
|
|
952
1045
|
leftSection: t,
|
|
953
1046
|
onClick: r,
|
|
954
1047
|
children: "Pin to left"
|
|
955
1048
|
}, "pin-left"), n[72] = e, n[73] = r, n[74] = i) : i = n[74];
|
|
956
|
-
let a =
|
|
957
|
-
n[75] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
1049
|
+
let a = U === "right" ? Z.menuItemActive : void 0, o;
|
|
1050
|
+
n[75] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ L(C, {
|
|
958
1051
|
size: 16,
|
|
959
1052
|
stroke: 1.6
|
|
960
1053
|
}), n[75] = o) : o = n[75];
|
|
961
1054
|
let s;
|
|
962
|
-
n[76] !==
|
|
1055
|
+
n[76] !== U || n[77] !== J ? (s = () => J(U !== "right" && "right"), n[76] = U, n[77] = J, n[78] = s) : s = n[78];
|
|
963
1056
|
let c;
|
|
964
|
-
if (n[79] !== a || n[80] !== s ? (c = /* @__PURE__ */
|
|
1057
|
+
if (n[79] !== a || n[80] !== s ? (c = /* @__PURE__ */ L(f.Item, {
|
|
965
1058
|
className: a,
|
|
966
1059
|
leftSection: o,
|
|
967
1060
|
onClick: s,
|
|
968
1061
|
children: "Pin to right"
|
|
969
|
-
}, "pin-right"), n[79] = a, n[80] = s, n[81] = c) : c = n[81], Y.push(i, c),
|
|
1062
|
+
}, "pin-right"), n[79] = a, n[80] = s, n[81] = c) : c = n[81], Y.push(i, c), U) {
|
|
970
1063
|
let e;
|
|
971
|
-
n[82] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1064
|
+
n[82] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(F, {
|
|
972
1065
|
size: 16,
|
|
973
1066
|
stroke: 1.6
|
|
974
1067
|
}), n[82] = e) : e = n[82];
|
|
975
1068
|
let t;
|
|
976
|
-
n[83] === J ? t = n[84] : (t = /* @__PURE__ */
|
|
1069
|
+
n[83] === J ? t = n[84] : (t = /* @__PURE__ */ L(f.Item, {
|
|
977
1070
|
leftSection: e,
|
|
978
1071
|
onClick: () => J(!1),
|
|
979
1072
|
children: "Unpin"
|
|
980
1073
|
}, "unpin"), n[83] = J, n[84] = t), Y.push(t);
|
|
981
1074
|
}
|
|
982
1075
|
let l;
|
|
983
|
-
n[85] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
1076
|
+
n[85] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ L(f.Divider, {}, "pin-divider"), n[85] = l) : l = n[85], Y.push(l);
|
|
984
1077
|
}
|
|
985
|
-
if (
|
|
1078
|
+
if (G) {
|
|
986
1079
|
let e;
|
|
987
|
-
n[86] !== d.id || n[87] !== l ? (e =
|
|
1080
|
+
n[86] !== d.id || n[87] !== l ? (e = ot({
|
|
988
1081
|
table: l,
|
|
989
1082
|
columnId: d.id,
|
|
990
1083
|
direction: -1
|
|
991
1084
|
}), n[86] = d.id, n[87] = l, n[88] = e) : e = n[88];
|
|
992
1085
|
let t = e, r;
|
|
993
|
-
n[89] !== d.id || n[90] !== l ? (r =
|
|
1086
|
+
n[89] !== d.id || n[90] !== l ? (r = ot({
|
|
994
1087
|
table: l,
|
|
995
1088
|
columnId: d.id,
|
|
996
1089
|
direction: 1
|
|
@@ -998,226 +1091,227 @@ function St(t) {
|
|
|
998
1091
|
let i = r;
|
|
999
1092
|
if (t || i) {
|
|
1000
1093
|
let e = !t, r;
|
|
1001
|
-
n[92] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1094
|
+
n[92] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ L(T, {
|
|
1002
1095
|
size: 16,
|
|
1003
1096
|
stroke: 1.6
|
|
1004
1097
|
}), n[92] = r) : r = n[92];
|
|
1005
1098
|
let a;
|
|
1006
|
-
n[93] !== d.id || n[94] !== l ? (a = () =>
|
|
1099
|
+
n[93] !== d.id || n[94] !== l ? (a = () => st({
|
|
1007
1100
|
table: l,
|
|
1008
1101
|
columnId: d.id,
|
|
1009
1102
|
direction: -1
|
|
1010
1103
|
}), n[93] = d.id, n[94] = l, n[95] = a) : a = n[95];
|
|
1011
1104
|
let o;
|
|
1012
|
-
n[96] !== e || n[97] !== a ? (o = /* @__PURE__ */
|
|
1105
|
+
n[96] !== e || n[97] !== a ? (o = /* @__PURE__ */ L(f.Item, {
|
|
1013
1106
|
disabled: e,
|
|
1014
1107
|
leftSection: r,
|
|
1015
1108
|
onClick: a,
|
|
1016
1109
|
children: "Move left"
|
|
1017
1110
|
}, "move-left"), n[96] = e, n[97] = a, n[98] = o) : o = n[98];
|
|
1018
1111
|
let s = !i, c;
|
|
1019
|
-
n[99] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
1112
|
+
n[99] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ L(E, {
|
|
1020
1113
|
size: 16,
|
|
1021
1114
|
stroke: 1.6
|
|
1022
1115
|
}), n[99] = c) : c = n[99];
|
|
1023
1116
|
let u;
|
|
1024
|
-
n[100] !== d.id || n[101] !== l ? (u = () =>
|
|
1117
|
+
n[100] !== d.id || n[101] !== l ? (u = () => st({
|
|
1025
1118
|
table: l,
|
|
1026
1119
|
columnId: d.id,
|
|
1027
1120
|
direction: 1
|
|
1028
1121
|
}), n[100] = d.id, n[101] = l, n[102] = u) : u = n[102];
|
|
1029
1122
|
let p;
|
|
1030
|
-
n[103] !== s || n[104] !== u ? (p = /* @__PURE__ */
|
|
1123
|
+
n[103] !== s || n[104] !== u ? (p = /* @__PURE__ */ L(f.Item, {
|
|
1031
1124
|
disabled: s,
|
|
1032
1125
|
leftSection: c,
|
|
1033
1126
|
onClick: u,
|
|
1034
1127
|
children: "Move right"
|
|
1035
1128
|
}, "move-right"), n[103] = s, n[104] = u, n[105] = p) : p = n[105];
|
|
1036
1129
|
let m;
|
|
1037
|
-
n[106] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */
|
|
1130
|
+
n[106] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ L(f.Divider, {}, "move-divider"), n[106] = m) : m = n[106], Y.push(o, p, m);
|
|
1038
1131
|
}
|
|
1039
1132
|
}
|
|
1040
|
-
if (
|
|
1133
|
+
if (fe) {
|
|
1041
1134
|
let e;
|
|
1042
|
-
n[107] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1135
|
+
n[107] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(M, {
|
|
1043
1136
|
size: 16,
|
|
1044
1137
|
stroke: 1.6
|
|
1045
1138
|
}), n[107] = e) : e = n[107];
|
|
1046
1139
|
let t;
|
|
1047
|
-
n[108] === d ? t = n[109] : (t = /* @__PURE__ */
|
|
1140
|
+
n[108] === d ? t = n[109] : (t = /* @__PURE__ */ L(f.Item, {
|
|
1048
1141
|
leftSection: e,
|
|
1049
1142
|
onClick: () => d.toggleVisibility(!1),
|
|
1050
1143
|
children: "Hide column"
|
|
1051
1144
|
}, "hide"), n[108] = d, n[109] = t), Y.push(t);
|
|
1052
1145
|
}
|
|
1053
|
-
if (
|
|
1146
|
+
if (ge) {
|
|
1054
1147
|
let e;
|
|
1055
|
-
n[110] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1148
|
+
n[110] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(A, {
|
|
1056
1149
|
size: 16,
|
|
1057
1150
|
stroke: 1.6
|
|
1058
1151
|
}), n[110] = e) : e = n[110];
|
|
1059
1152
|
let t;
|
|
1060
|
-
n[111] === c.ui.actions ? t = n[112] : (t = /* @__PURE__ */
|
|
1153
|
+
n[111] === c.ui.actions ? t = n[112] : (t = /* @__PURE__ */ L(f.Item, {
|
|
1061
1154
|
leftSection: e,
|
|
1062
1155
|
onClick: () => c.ui.actions.setColumnsPanelOpen(!0),
|
|
1063
1156
|
children: "Manage columns"
|
|
1064
1157
|
}, "manage"), n[111] = c.ui.actions, n[112] = t), Y.push(t);
|
|
1065
1158
|
}
|
|
1066
|
-
for (; Y.length > 0 &&
|
|
1067
|
-
n[44] = c, n[45] =
|
|
1159
|
+
for (; Y.length > 0 && Jt(Y.at(-1));) Y.pop();
|
|
1160
|
+
n[44] = c, n[45] = de, n[46] = fe, n[47] = ge, n[48] = pe, n[49] = G, n[50] = W, n[51] = d, n[52] = U, n[53] = J, n[54] = l, n[55] = Y;
|
|
1068
1161
|
} else Y = n[55];
|
|
1069
|
-
let
|
|
1070
|
-
n[113] !==
|
|
1071
|
-
|
|
1162
|
+
let Ne = W ? Z.headerCellSortable : "", Pe = _e ? Z.headerCellDragging : "", Fe = h === "before" ? Z.headerCellDropBefore : "", Ie = h === "after" ? Z.headerCellDropAfter : "", Re = i.isBoundary && U === "left" ? tt.stickyLeft : "", ze = i.isBoundary && U === "right" ? tt.stickyRight : "", Be;
|
|
1163
|
+
n[113] !== Ne || n[114] !== Pe || n[115] !== Fe || n[116] !== Ie || n[117] !== Re || n[118] !== ze ? (Be = [
|
|
1164
|
+
Z.headerCell,
|
|
1165
|
+
Ne,
|
|
1072
1166
|
Pe,
|
|
1167
|
+
Fe,
|
|
1073
1168
|
Ie,
|
|
1074
|
-
Le,
|
|
1075
1169
|
Re,
|
|
1076
|
-
ze
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
n[125] !== H || n[126] !== d ? (Z = H ? (e) => {
|
|
1170
|
+
ze
|
|
1171
|
+
].filter(Boolean), n[113] = Ne, n[114] = Pe, n[115] = Fe, n[116] = Ie, n[117] = Re, n[118] = ze, n[119] = Be) : Be = n[119];
|
|
1172
|
+
let Ve = Be.join(" "), He = `dg-header-${d.id}`, Ue = ie || oe, We = W ? ie ? re ? "descending" : "ascending" : "none" : void 0, Ge = G && !se, Ke = G ? xe : void 0, qe = G ? je : void 0, Je = K ? we : void 0, Ye = K ? De : void 0, Qe = K ? ke : void 0, $e = U === "left" ? i.offset : void 0, et = U === "right" ? i.offset : void 0, X = U ? "sticky" : void 0, rt = U ? 4 : void 0, at;
|
|
1173
|
+
n[120] !== $e || n[121] !== et || n[122] !== X || n[123] !== rt ? (at = {
|
|
1174
|
+
left: $e,
|
|
1175
|
+
right: et,
|
|
1176
|
+
position: X,
|
|
1177
|
+
zIndex: rt
|
|
1178
|
+
}, n[120] = $e, n[121] = et, n[122] = X, n[123] = rt, n[124] = at) : at = n[124];
|
|
1179
|
+
let Q;
|
|
1180
|
+
n[125] !== W || n[126] !== d ? (Q = W ? (e) => {
|
|
1088
1181
|
if (v.current) {
|
|
1089
1182
|
v.current = !1;
|
|
1090
1183
|
return;
|
|
1091
1184
|
}
|
|
1092
1185
|
d.getToggleSortingHandler()?.(e);
|
|
1093
|
-
} : void 0, n[125] =
|
|
1094
|
-
let
|
|
1095
|
-
n[128] !== d.columnDef || n[129] !== r || n[130] !==
|
|
1096
|
-
label:
|
|
1186
|
+
} : void 0, n[125] = W, n[126] = d, n[127] = Q) : Q = n[127];
|
|
1187
|
+
let ct;
|
|
1188
|
+
n[128] !== d.columnDef || n[129] !== r || n[130] !== z || n[131] !== V ? (ct = r.isPlaceholder ? null : /* @__PURE__ */ L(y, {
|
|
1189
|
+
label: V,
|
|
1097
1190
|
openDelay: 600,
|
|
1098
1191
|
withinPortal: !0,
|
|
1099
|
-
disabled: !
|
|
1100
|
-
children: /* @__PURE__ */
|
|
1101
|
-
className:
|
|
1102
|
-
children:
|
|
1192
|
+
disabled: !z,
|
|
1193
|
+
children: /* @__PURE__ */ L("span", {
|
|
1194
|
+
className: Z.headerTitle,
|
|
1195
|
+
children: ue(d.columnDef.header, r.getContext())
|
|
1103
1196
|
})
|
|
1104
|
-
}), n[128] = d.columnDef, n[129] = r, n[130] =
|
|
1105
|
-
let
|
|
1106
|
-
n[133] !== c || n[134] !==
|
|
1107
|
-
className:
|
|
1197
|
+
}), n[128] = d.columnDef, n[129] = r, n[130] = z, n[131] = V, n[132] = ct) : ct = n[132];
|
|
1198
|
+
let lt;
|
|
1199
|
+
n[133] !== c || n[134] !== W || n[135] !== d || n[136] !== oe || n[137] !== z || n[138] !== ie || n[139] !== V || n[140] !== Y || n[141] !== p || n[142] !== re ? (lt = z && /* @__PURE__ */ R("div", {
|
|
1200
|
+
className: Z.headerActions,
|
|
1108
1201
|
children: [
|
|
1109
|
-
|
|
1110
|
-
className:
|
|
1202
|
+
oe && /* @__PURE__ */ L(s, {
|
|
1203
|
+
className: Z.headerAction,
|
|
1111
1204
|
"data-pinned-visible": "true",
|
|
1112
1205
|
variant: "subtle",
|
|
1113
1206
|
color: "gray",
|
|
1114
1207
|
size: "xs",
|
|
1115
|
-
"aria-label": `Filter on ${
|
|
1208
|
+
"aria-label": `Filter on ${V}`,
|
|
1116
1209
|
onClick: (e) => {
|
|
1117
|
-
e.stopPropagation(),
|
|
1210
|
+
e.stopPropagation(), Vt(c, d.id);
|
|
1118
1211
|
},
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1212
|
+
children: /* @__PURE__ */ L(N, {
|
|
1120
1213
|
size: 14,
|
|
1121
1214
|
stroke: 1.6
|
|
1122
1215
|
})
|
|
1123
1216
|
}),
|
|
1124
|
-
|
|
1125
|
-
className:
|
|
1126
|
-
"data-pinned-visible":
|
|
1217
|
+
W && /* @__PURE__ */ L(s, {
|
|
1218
|
+
className: Z.headerAction,
|
|
1219
|
+
"data-pinned-visible": ie,
|
|
1127
1220
|
variant: "subtle",
|
|
1128
1221
|
color: "gray",
|
|
1129
1222
|
size: "xs",
|
|
1130
|
-
"aria-label": `Sort ${
|
|
1223
|
+
"aria-label": `Sort ${V}`,
|
|
1131
1224
|
onClick: d.getToggleSortingHandler(),
|
|
1132
|
-
children:
|
|
1225
|
+
children: L(re ? w : D, {
|
|
1133
1226
|
size: 14,
|
|
1134
1227
|
stroke: 1.6
|
|
1135
1228
|
})
|
|
1136
1229
|
}),
|
|
1137
|
-
Y.length > 0 && d.id !== "__select__" && /* @__PURE__ */
|
|
1230
|
+
Y.length > 0 && d.id !== "__select__" && /* @__PURE__ */ R(f, {
|
|
1138
1231
|
opened: p,
|
|
1139
1232
|
onChange: m,
|
|
1140
1233
|
position: "bottom-start",
|
|
1141
1234
|
shadow: "md",
|
|
1142
1235
|
width: 220,
|
|
1143
1236
|
withinPortal: !0,
|
|
1144
|
-
children: [/* @__PURE__ */
|
|
1145
|
-
className:
|
|
1237
|
+
children: [/* @__PURE__ */ L(f.Target, { children: /* @__PURE__ */ L(s, {
|
|
1238
|
+
className: Z.headerAction,
|
|
1146
1239
|
"data-pinned-visible": p,
|
|
1147
1240
|
variant: "subtle",
|
|
1148
1241
|
color: "gray",
|
|
1149
1242
|
size: "xs",
|
|
1150
|
-
"aria-label": `${
|
|
1243
|
+
"aria-label": `${V} column menu`,
|
|
1151
1244
|
onClick: (e) => {
|
|
1152
|
-
e.stopPropagation(), m(
|
|
1245
|
+
e.stopPropagation(), m(Gt);
|
|
1153
1246
|
},
|
|
1154
|
-
children: /* @__PURE__ */
|
|
1247
|
+
children: /* @__PURE__ */ L(j, {
|
|
1155
1248
|
size: 14,
|
|
1156
1249
|
stroke: 1.6
|
|
1157
1250
|
})
|
|
1158
|
-
}) }), /* @__PURE__ */
|
|
1159
|
-
onClick:
|
|
1251
|
+
}) }), /* @__PURE__ */ L(f.Dropdown, {
|
|
1252
|
+
onClick: Wt,
|
|
1160
1253
|
children: Y
|
|
1161
1254
|
})]
|
|
1162
1255
|
})
|
|
1163
1256
|
]
|
|
1164
|
-
}), n[133] = c, n[134] =
|
|
1165
|
-
let
|
|
1166
|
-
n[144] !==
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
].filter(Boolean), n[144] =
|
|
1171
|
-
let
|
|
1172
|
-
n[147] !==
|
|
1257
|
+
}), n[133] = c, n[134] = W, n[135] = d, n[136] = oe, n[137] = z, n[138] = ie, n[139] = V, n[140] = Y, n[141] = p, n[142] = re, n[143] = lt) : lt = n[143];
|
|
1258
|
+
let ut = me ? Z.columnSeparatorResizable : "", dt = se ? Z.columnSeparatorActive : "", ft;
|
|
1259
|
+
n[144] !== ut || n[145] !== dt ? (ft = [
|
|
1260
|
+
Z.columnSeparator,
|
|
1261
|
+
ut,
|
|
1262
|
+
dt
|
|
1263
|
+
].filter(Boolean), n[144] = ut, n[145] = dt, n[146] = ft) : ft = n[146];
|
|
1264
|
+
let pt = ft.join(" "), mt;
|
|
1265
|
+
n[147] !== me || n[148] !== r ? (mt = me ? (e) => {
|
|
1173
1266
|
v.current = !0, r.getResizeHandler()(e);
|
|
1174
|
-
} : void 0, n[147] =
|
|
1175
|
-
let
|
|
1176
|
-
n[150] !==
|
|
1267
|
+
} : void 0, n[147] = me, n[148] = r, n[149] = mt) : mt = n[149];
|
|
1268
|
+
let ht;
|
|
1269
|
+
n[150] !== me || n[151] !== r ? (ht = me ? r.getResizeHandler() : void 0, n[150] = me, n[151] = r, n[152] = ht) : ht = n[152];
|
|
1177
1270
|
let $;
|
|
1178
|
-
n[153] !==
|
|
1179
|
-
className:
|
|
1271
|
+
n[153] !== pt || n[154] !== mt || n[155] !== ht ? ($ = /* @__PURE__ */ L("div", {
|
|
1272
|
+
className: pt,
|
|
1180
1273
|
draggable: !1,
|
|
1181
|
-
onMouseDown:
|
|
1182
|
-
onTouchStart:
|
|
1183
|
-
onClick:
|
|
1184
|
-
}), n[153] =
|
|
1185
|
-
let
|
|
1186
|
-
return n[157] !==
|
|
1274
|
+
onMouseDown: mt,
|
|
1275
|
+
onTouchStart: ht,
|
|
1276
|
+
onClick: Ut
|
|
1277
|
+
}), n[153] = pt, n[154] = mt, n[155] = ht, n[156] = $) : $ = n[156];
|
|
1278
|
+
let gt;
|
|
1279
|
+
return n[157] !== te || n[158] !== Ve || n[159] !== He || n[160] !== Ue || n[161] !== We || n[162] !== Ge || n[163] !== Ke || n[164] !== qe || n[165] !== Je || n[166] !== Ye || n[167] !== Qe || n[168] !== at || n[169] !== Q || n[170] !== ct || n[171] !== lt || n[172] !== $ ? (gt = /* @__PURE__ */ R("div", {
|
|
1187
1280
|
ref: _,
|
|
1188
1281
|
role: "columnheader",
|
|
1189
|
-
"data-testid":
|
|
1190
|
-
"data-active":
|
|
1191
|
-
"data-align":
|
|
1192
|
-
|
|
1282
|
+
"data-testid": He,
|
|
1283
|
+
"data-active": Ue,
|
|
1284
|
+
"data-align": te,
|
|
1285
|
+
"aria-sort": We,
|
|
1286
|
+
className: Ve,
|
|
1193
1287
|
draggable: Ge,
|
|
1194
1288
|
onDragStart: Ke,
|
|
1195
1289
|
onDragEnd: qe,
|
|
1196
|
-
onDragOver:
|
|
1197
|
-
onDragLeave:
|
|
1198
|
-
onDrop:
|
|
1199
|
-
style:
|
|
1200
|
-
onClick:
|
|
1290
|
+
onDragOver: Je,
|
|
1291
|
+
onDragLeave: Ye,
|
|
1292
|
+
onDrop: Qe,
|
|
1293
|
+
style: at,
|
|
1294
|
+
onClick: Q,
|
|
1201
1295
|
children: [
|
|
1202
|
-
st,
|
|
1203
1296
|
ct,
|
|
1297
|
+
lt,
|
|
1204
1298
|
$
|
|
1205
1299
|
]
|
|
1206
|
-
}), n[157] =
|
|
1300
|
+
}), n[157] = te, n[158] = Ve, n[159] = He, n[160] = Ue, n[161] = We, n[162] = Ge, n[163] = Ke, n[164] = qe, n[165] = Je, n[166] = Ye, n[167] = Qe, n[168] = at, n[169] = Q, n[170] = ct, n[171] = lt, n[172] = $, n[173] = gt) : gt = n[173], gt;
|
|
1207
1301
|
}
|
|
1208
|
-
function
|
|
1302
|
+
function Ut(e) {
|
|
1209
1303
|
return e.stopPropagation();
|
|
1210
1304
|
}
|
|
1211
|
-
function
|
|
1305
|
+
function Wt(e) {
|
|
1212
1306
|
return e.stopPropagation();
|
|
1213
1307
|
}
|
|
1214
|
-
function
|
|
1308
|
+
function Gt(e) {
|
|
1215
1309
|
return !e;
|
|
1216
1310
|
}
|
|
1217
|
-
function
|
|
1311
|
+
function Kt(e) {
|
|
1218
1312
|
return e.draggedColumnId;
|
|
1219
1313
|
}
|
|
1220
|
-
function
|
|
1314
|
+
function qt(e) {
|
|
1221
1315
|
return {
|
|
1222
1316
|
sorting: e.sorting,
|
|
1223
1317
|
columnFilters: e.columnFilters,
|
|
@@ -1226,22 +1320,22 @@ function Dt(e) {
|
|
|
1226
1320
|
columnOrder: e.columnOrder
|
|
1227
1321
|
};
|
|
1228
1322
|
}
|
|
1229
|
-
function
|
|
1323
|
+
function Jt(e) {
|
|
1230
1324
|
return typeof e == "object" && !!e && "type" in e && e.type === f.Divider;
|
|
1231
1325
|
}
|
|
1232
1326
|
//#endregion
|
|
1233
|
-
//#region src/tmdatagrid/TMDataGridTable.tsx
|
|
1234
|
-
var
|
|
1327
|
+
//#region src/tmdatagrid/components/TMDataGridTable.tsx
|
|
1328
|
+
var Yt = {
|
|
1235
1329
|
pinnedAt: !1,
|
|
1236
1330
|
offset: 0,
|
|
1237
1331
|
isBoundary: !1
|
|
1238
1332
|
};
|
|
1239
|
-
function
|
|
1333
|
+
function Xt(t) {
|
|
1240
1334
|
let n = e(20), { cell: r, rowHeight: i, layout: a } = t, o;
|
|
1241
|
-
n[0] === r.column ? o = n[1] : (o =
|
|
1242
|
-
let s = a.isBoundary && a.pinnedAt === "left" ?
|
|
1335
|
+
n[0] === r.column ? o = n[1] : (o = Te(r.column), n[0] = r.column, n[1] = o);
|
|
1336
|
+
let s = a.isBoundary && a.pinnedAt === "left" ? tt.stickyLeft : "", c = a.isBoundary && a.pinnedAt === "right" ? tt.stickyRight : "", l;
|
|
1243
1337
|
n[2] !== s || n[3] !== c ? (l = [
|
|
1244
|
-
|
|
1338
|
+
X.bodyCell,
|
|
1245
1339
|
s,
|
|
1246
1340
|
c
|
|
1247
1341
|
].filter(Boolean), n[2] = s, n[3] = c, n[4] = l) : l = n[4];
|
|
@@ -1254,14 +1348,14 @@ function At(t) {
|
|
|
1254
1348
|
zIndex: m
|
|
1255
1349
|
}, n[5] = i, n[6] = d, n[7] = f, n[8] = p, n[9] = m, n[10] = h) : h = n[10];
|
|
1256
1350
|
let g;
|
|
1257
|
-
n[11] === r ? g = n[12] : (g =
|
|
1351
|
+
n[11] === r ? g = n[12] : (g = ue(r.column.columnDef.cell, r.getContext()), n[11] = r, n[12] = g);
|
|
1258
1352
|
let _;
|
|
1259
|
-
n[13] === g ? _ = n[14] : (_ = /* @__PURE__ */
|
|
1260
|
-
className:
|
|
1353
|
+
n[13] === g ? _ = n[14] : (_ = /* @__PURE__ */ L("span", {
|
|
1354
|
+
className: X.cellContent,
|
|
1261
1355
|
children: g
|
|
1262
1356
|
}), n[13] = g, n[14] = _);
|
|
1263
1357
|
let v;
|
|
1264
|
-
return n[15] !== o || n[16] !== h || n[17] !== _ || n[18] !== u ? (v = /* @__PURE__ */
|
|
1358
|
+
return n[15] !== o || n[16] !== h || n[17] !== _ || n[18] !== u ? (v = /* @__PURE__ */ L("div", {
|
|
1265
1359
|
role: "cell",
|
|
1266
1360
|
"data-align": o,
|
|
1267
1361
|
className: u,
|
|
@@ -1269,32 +1363,38 @@ function At(t) {
|
|
|
1269
1363
|
children: _
|
|
1270
1364
|
}), n[15] = o, n[16] = h, n[17] = _, n[18] = u, n[19] = v) : v = n[19], v;
|
|
1271
1365
|
}
|
|
1272
|
-
function
|
|
1273
|
-
let { table: t,
|
|
1366
|
+
function Zt({ onRowClick: e }) {
|
|
1367
|
+
let { table: t, features: r, rowHeight: o, controlSize: s } = q();
|
|
1274
1368
|
x(t.store);
|
|
1275
|
-
let { loading:
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1369
|
+
let { loading: c, noResultsLabel: l = "No rows match your filters" } = t.options.meta ?? {}, u = a(null), f = r.pagination ? t.getPaginatedRowModel().rows : t.getPrePaginatedRowModel().rows;
|
|
1370
|
+
i(() => {
|
|
1371
|
+
if (!r.pagination) return;
|
|
1372
|
+
let e = t.getPageCount();
|
|
1373
|
+
e > 0 && t.store.state.pagination.pageIndex >= e && t.setPageIndex(e - 1);
|
|
1374
|
+
});
|
|
1375
|
+
let p = ve({
|
|
1376
|
+
count: f.length,
|
|
1377
|
+
getScrollElement: () => u.current,
|
|
1378
|
+
estimateSize: n(() => o, [o]),
|
|
1379
|
+
getItemKey: n((e) => f[e]?.id ?? e, [f]),
|
|
1280
1380
|
overscan: 6,
|
|
1281
1381
|
initialRect: {
|
|
1282
1382
|
height: 600,
|
|
1283
1383
|
width: 1200
|
|
1284
1384
|
}
|
|
1285
|
-
}),
|
|
1286
|
-
...h,
|
|
1385
|
+
}), m = p.getVirtualItems(), h = m[0]?.start ?? 0, g = p.getTotalSize() - (m.at(-1)?.end ?? 0), v = t.getLeftLeafColumns(), y = t.getRightLeafColumns(), b = t.getCenterLeafColumns(), S = [
|
|
1287
1386
|
...v,
|
|
1288
|
-
...
|
|
1289
|
-
|
|
1387
|
+
...b,
|
|
1388
|
+
...y
|
|
1389
|
+
], C = t.getCenterHeaderGroups(), w = t.getLeftHeaderGroups(), T = t.getRightHeaderGroups(), E = C.map((e, t) => ({
|
|
1290
1390
|
id: e.id,
|
|
1291
1391
|
headers: [
|
|
1292
|
-
...
|
|
1392
|
+
...w[t]?.headers ?? [],
|
|
1293
1393
|
...e.headers,
|
|
1294
|
-
...
|
|
1394
|
+
...T[t]?.headers ?? []
|
|
1295
1395
|
]
|
|
1296
|
-
})),
|
|
1297
|
-
let t = e.columnDef.minSize === e.columnDef.maxSize, n = e.id in
|
|
1396
|
+
})), D = t.store.state.columnSizing, O = S.map((e) => {
|
|
1397
|
+
let t = e.columnDef.minSize === e.columnDef.maxSize, n = e.id in D, r = e.getIsPinned() !== !1, i = e.columnDef.minSize ?? 80;
|
|
1298
1398
|
return t || n || r ? {
|
|
1299
1399
|
track: `${e.getSize()}px`,
|
|
1300
1400
|
minWidth: e.getSize()
|
|
@@ -1302,131 +1402,148 @@ function jt({ onRowClick: e }) {
|
|
|
1302
1402
|
track: `minmax(${i}px, ${e.columnDef.meta?.flex ?? 1}fr)`,
|
|
1303
1403
|
minWidth: i
|
|
1304
1404
|
};
|
|
1305
|
-
}),
|
|
1306
|
-
for (let e of
|
|
1405
|
+
}), k = O.map((e) => e.track).join(" "), A = O.reduce((e, t) => e + t.minWidth, 0), j = /* @__PURE__ */ new Map(), M = (e) => O[S.findIndex((t) => t.id === e)]?.minWidth ?? 0, N = 0;
|
|
1406
|
+
for (let e of v) j.set(e.id, {
|
|
1307
1407
|
pinnedAt: "left",
|
|
1308
|
-
offset:
|
|
1309
|
-
isBoundary: e.id ===
|
|
1310
|
-
}),
|
|
1311
|
-
let
|
|
1312
|
-
for (let e of [...
|
|
1408
|
+
offset: N,
|
|
1409
|
+
isBoundary: e.id === v.at(-1)?.id
|
|
1410
|
+
}), N += M(e.id);
|
|
1411
|
+
let P = 0;
|
|
1412
|
+
for (let e of [...y].reverse()) j.set(e.id, {
|
|
1313
1413
|
pinnedAt: "right",
|
|
1314
|
-
offset:
|
|
1315
|
-
isBoundary: e.id ===
|
|
1316
|
-
}),
|
|
1317
|
-
for (let e of
|
|
1414
|
+
offset: P,
|
|
1415
|
+
isBoundary: e.id === y[0]?.id
|
|
1416
|
+
}), P += M(e.id);
|
|
1417
|
+
for (let e of b) j.set(e.id, {
|
|
1318
1418
|
pinnedAt: !1,
|
|
1319
1419
|
offset: 0,
|
|
1320
1420
|
isBoundary: !1
|
|
1321
1421
|
});
|
|
1322
|
-
let
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1422
|
+
let F = (e) => j.get(e) ?? Yt, I = f.length === 0, z = r.rowSelection && r.rowSelectionMode === "row", B = z || e !== void 0, V = (t) => {
|
|
1423
|
+
z && t.getCanSelect() && t.toggleSelected(), e?.(t);
|
|
1424
|
+
};
|
|
1425
|
+
return /* @__PURE__ */ R("div", {
|
|
1426
|
+
className: X.tableWrapper,
|
|
1427
|
+
children: [/* @__PURE__ */ L("div", {
|
|
1428
|
+
ref: u,
|
|
1429
|
+
className: X.scrollContainer,
|
|
1430
|
+
children: /* @__PURE__ */ R("div", {
|
|
1329
1431
|
role: "table",
|
|
1330
|
-
className:
|
|
1432
|
+
className: X.grid,
|
|
1433
|
+
"aria-rowcount": f.length + E.length,
|
|
1434
|
+
"aria-colcount": S.length,
|
|
1331
1435
|
style: {
|
|
1332
|
-
gridTemplateColumns:
|
|
1333
|
-
minWidth:
|
|
1436
|
+
gridTemplateColumns: k,
|
|
1437
|
+
minWidth: A
|
|
1334
1438
|
},
|
|
1335
1439
|
children: [
|
|
1336
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ L("div", {
|
|
1337
1441
|
role: "rowgroup",
|
|
1338
1442
|
style: { display: "contents" },
|
|
1339
|
-
children:
|
|
1443
|
+
children: E.map((e, t) => /* @__PURE__ */ L("div", {
|
|
1340
1444
|
role: "row",
|
|
1341
|
-
|
|
1342
|
-
|
|
1445
|
+
"aria-rowindex": t + 1,
|
|
1446
|
+
className: X.headerRow,
|
|
1447
|
+
children: e.headers.map((e) => /* @__PURE__ */ L(Ht, {
|
|
1343
1448
|
header: e,
|
|
1344
|
-
layout:
|
|
1449
|
+
layout: F(e.column.id)
|
|
1345
1450
|
}, e.id))
|
|
1346
1451
|
}, e.id))
|
|
1347
1452
|
}),
|
|
1348
|
-
|
|
1453
|
+
h > 0 && /* @__PURE__ */ L("div", {
|
|
1349
1454
|
"aria-hidden": !0,
|
|
1350
1455
|
style: {
|
|
1351
1456
|
gridColumn: "1/-1",
|
|
1352
|
-
height:
|
|
1457
|
+
height: h
|
|
1353
1458
|
}
|
|
1354
1459
|
}),
|
|
1355
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ L("div", {
|
|
1356
1461
|
role: "rowgroup",
|
|
1357
1462
|
style: { display: "contents" },
|
|
1358
|
-
children:
|
|
1359
|
-
let
|
|
1360
|
-
return
|
|
1463
|
+
children: m.map((e) => {
|
|
1464
|
+
let t = f[e.index];
|
|
1465
|
+
return t ? /* @__PURE__ */ L("div", {
|
|
1361
1466
|
role: "row",
|
|
1362
|
-
"
|
|
1363
|
-
"data-
|
|
1364
|
-
|
|
1467
|
+
"aria-rowindex": e.index + E.length + 1,
|
|
1468
|
+
"data-testid": `dg-row-${t.id}`,
|
|
1469
|
+
"data-selected": t.getIsSelected(),
|
|
1470
|
+
"data-highlighted": r.highlightSelectedRows && t.getIsSelected(),
|
|
1471
|
+
"data-selects-on-click": z,
|
|
1472
|
+
"aria-selected": r.rowSelection ? t.getIsSelected() : void 0,
|
|
1473
|
+
className: X.bodyRow,
|
|
1365
1474
|
style: {
|
|
1366
|
-
minHeight:
|
|
1367
|
-
cursor:
|
|
1475
|
+
minHeight: o,
|
|
1476
|
+
cursor: B ? "pointer" : void 0
|
|
1368
1477
|
},
|
|
1369
|
-
|
|
1478
|
+
tabIndex: z ? 0 : void 0,
|
|
1479
|
+
onClick: B ? () => V(t) : void 0,
|
|
1480
|
+
onKeyDown: z ? (e) => {
|
|
1481
|
+
e.key !== " " && e.key !== "Enter" || e.target === e.currentTarget && (e.preventDefault(), V(t));
|
|
1482
|
+
} : void 0,
|
|
1370
1483
|
children: [
|
|
1371
|
-
...
|
|
1372
|
-
...
|
|
1373
|
-
...
|
|
1374
|
-
].map((e) => /* @__PURE__ */
|
|
1484
|
+
...t.getLeftVisibleCells(),
|
|
1485
|
+
...t.getCenterVisibleCells(),
|
|
1486
|
+
...t.getRightVisibleCells()
|
|
1487
|
+
].map((e) => /* @__PURE__ */ L(Xt, {
|
|
1375
1488
|
cell: e,
|
|
1376
|
-
rowHeight:
|
|
1377
|
-
layout:
|
|
1489
|
+
rowHeight: o,
|
|
1490
|
+
layout: F(e.column.id)
|
|
1378
1491
|
}, e.id))
|
|
1379
|
-
},
|
|
1492
|
+
}, e.key) : null;
|
|
1380
1493
|
})
|
|
1381
1494
|
}),
|
|
1382
|
-
|
|
1495
|
+
I && c === !0 && /* @__PURE__ */ L("div", {
|
|
1383
1496
|
role: "row",
|
|
1384
|
-
className:
|
|
1385
|
-
children: /* @__PURE__ */
|
|
1497
|
+
className: X.messageRow,
|
|
1498
|
+
children: /* @__PURE__ */ L(d, { size: "lg" })
|
|
1386
1499
|
}),
|
|
1387
|
-
|
|
1500
|
+
I && c !== !0 && /* @__PURE__ */ R("div", {
|
|
1388
1501
|
role: "row",
|
|
1389
|
-
className:
|
|
1390
|
-
children: [/* @__PURE__ */
|
|
1502
|
+
className: X.messageRow,
|
|
1503
|
+
children: [/* @__PURE__ */ L(ee, {
|
|
1391
1504
|
size: 40,
|
|
1392
1505
|
stroke: 1.4,
|
|
1393
1506
|
opacity: .4
|
|
1394
|
-
}), /* @__PURE__ */
|
|
1395
|
-
size:
|
|
1507
|
+
}), /* @__PURE__ */ L(_, {
|
|
1508
|
+
size: s,
|
|
1396
1509
|
c: "dimmed",
|
|
1397
|
-
children:
|
|
1510
|
+
children: l
|
|
1398
1511
|
})]
|
|
1399
1512
|
}),
|
|
1400
|
-
|
|
1513
|
+
g > 0 && /* @__PURE__ */ L("div", {
|
|
1401
1514
|
"aria-hidden": !0,
|
|
1402
1515
|
style: {
|
|
1403
1516
|
gridColumn: "1/-1",
|
|
1404
|
-
height:
|
|
1517
|
+
height: g
|
|
1405
1518
|
}
|
|
1406
1519
|
})
|
|
1407
1520
|
]
|
|
1408
1521
|
})
|
|
1409
|
-
}), /* @__PURE__ */
|
|
1522
|
+
}), /* @__PURE__ */ L(He, {})]
|
|
1410
1523
|
});
|
|
1411
1524
|
}
|
|
1525
|
+
var Qt = {
|
|
1526
|
+
toolbar: "_toolbar_4my8t_1",
|
|
1527
|
+
toolbarSpacer: "_toolbarSpacer_4my8t_10"
|
|
1528
|
+
};
|
|
1412
1529
|
//#endregion
|
|
1413
|
-
//#region src/tmdatagrid/TMDataGridToolbar.tsx
|
|
1414
|
-
function
|
|
1530
|
+
//#region src/tmdatagrid/components/TMDataGridToolbar.tsx
|
|
1531
|
+
function $t(t) {
|
|
1415
1532
|
let n = e(2), { children: r } = t, i;
|
|
1416
|
-
return n[0] === r ? i = n[1] : (i = /* @__PURE__ */
|
|
1417
|
-
className:
|
|
1533
|
+
return n[0] === r ? i = n[1] : (i = /* @__PURE__ */ L("div", {
|
|
1534
|
+
className: Qt.toolbar,
|
|
1418
1535
|
children: r
|
|
1419
1536
|
}), n[0] = r, n[1] = i), i;
|
|
1420
1537
|
}
|
|
1421
|
-
function
|
|
1538
|
+
function en() {
|
|
1422
1539
|
let t = e(1), n;
|
|
1423
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
1540
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ L("div", { className: Qt.toolbarSpacer }), t[0] = n) : n = t[0], n;
|
|
1424
1541
|
}
|
|
1425
|
-
function
|
|
1542
|
+
function tn(t) {
|
|
1426
1543
|
let n = e(11), { children: r } = t, { table: i, controlSize: a } = q();
|
|
1427
1544
|
if (x(i.store), r !== void 0) {
|
|
1428
1545
|
let e;
|
|
1429
|
-
return n[0] !== r || n[1] !== a ? (e = /* @__PURE__ */
|
|
1546
|
+
return n[0] !== r || n[1] !== a ? (e = /* @__PURE__ */ L(_, {
|
|
1430
1547
|
size: a,
|
|
1431
1548
|
c: "dimmed",
|
|
1432
1549
|
children: r
|
|
@@ -1437,7 +1554,7 @@ function Pt(t) {
|
|
|
1437
1554
|
let s = o, c;
|
|
1438
1555
|
n[5] === i ? c = n[6] : (c = i.options.meta?.totalRowCount ?? i.getPreFilteredRowModel().rows.length, n[5] = i, n[6] = c);
|
|
1439
1556
|
let l = c, u;
|
|
1440
|
-
return n[7] !== a || n[8] !== s || n[9] !== l ? (u = /* @__PURE__ */
|
|
1557
|
+
return n[7] !== a || n[8] !== s || n[9] !== l ? (u = /* @__PURE__ */ R(_, {
|
|
1441
1558
|
size: a,
|
|
1442
1559
|
c: "dimmed",
|
|
1443
1560
|
children: [
|
|
@@ -1447,19 +1564,19 @@ function Pt(t) {
|
|
|
1447
1564
|
]
|
|
1448
1565
|
}), n[7] = a, n[8] = s, n[9] = l, n[10] = u) : u = n[10], u;
|
|
1449
1566
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let t = e(9), { table: n, ui: r, features: i, controlSize: a } = q(), o = x(r,
|
|
1452
|
-
if (!
|
|
1567
|
+
function nn() {
|
|
1568
|
+
let t = e(9), { table: n, ui: r, features: i, controlSize: a } = q(), o = x(r, rn);
|
|
1569
|
+
if (!Ze(n, i).canHideAny) return null;
|
|
1453
1570
|
let c;
|
|
1454
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
1571
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ L(P, {
|
|
1455
1572
|
size: 18,
|
|
1456
1573
|
stroke: 1.6
|
|
1457
1574
|
}), t[0] = c) : c = t[0];
|
|
1458
1575
|
let l;
|
|
1459
|
-
t[1] !== a || t[2] !== r.actions.toggleColumnsPanel ? (l = /* @__PURE__ */
|
|
1576
|
+
t[1] !== a || t[2] !== r.actions.toggleColumnsPanel ? (l = /* @__PURE__ */ L(p.Target, { children: /* @__PURE__ */ L(y, {
|
|
1460
1577
|
label: "Manage columns",
|
|
1461
1578
|
openDelay: 400,
|
|
1462
|
-
children: /* @__PURE__ */
|
|
1579
|
+
children: /* @__PURE__ */ L(s, {
|
|
1463
1580
|
variant: "subtle",
|
|
1464
1581
|
color: "gray",
|
|
1465
1582
|
size: a,
|
|
@@ -1469,12 +1586,12 @@ function Ft() {
|
|
|
1469
1586
|
})
|
|
1470
1587
|
}) }), t[1] = a, t[2] = r.actions.toggleColumnsPanel, t[3] = l) : l = t[3];
|
|
1471
1588
|
let u;
|
|
1472
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
1589
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ L(p.Dropdown, {
|
|
1473
1590
|
p: 0,
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1591
|
+
children: /* @__PURE__ */ L(De, {})
|
|
1475
1592
|
}), t[4] = u) : u = t[4];
|
|
1476
1593
|
let d;
|
|
1477
|
-
return t[5] !== o || t[6] !== l || t[7] !== r.actions.setColumnsPanelOpen ? (d = /* @__PURE__ */
|
|
1594
|
+
return t[5] !== o || t[6] !== l || t[7] !== r.actions.setColumnsPanelOpen ? (d = /* @__PURE__ */ R(p, {
|
|
1478
1595
|
opened: o,
|
|
1479
1596
|
onChange: r.actions.setColumnsPanelOpen,
|
|
1480
1597
|
position: "bottom-end",
|
|
@@ -1485,31 +1602,31 @@ function Ft() {
|
|
|
1485
1602
|
children: [l, u]
|
|
1486
1603
|
}), t[5] = o, t[6] = l, t[7] = r.actions.setColumnsPanelOpen, t[8] = d) : d = t[8], d;
|
|
1487
1604
|
}
|
|
1488
|
-
function
|
|
1605
|
+
function rn(e) {
|
|
1489
1606
|
return e.columnsPanelOpen;
|
|
1490
1607
|
}
|
|
1491
|
-
function
|
|
1492
|
-
let t = e(11), n = q(), { table: r, ui: i, features: a, controlSize: o } = n, c = x(i,
|
|
1493
|
-
if (!
|
|
1608
|
+
function an() {
|
|
1609
|
+
let t = e(11), n = q(), { table: r, ui: i, features: a, controlSize: o } = n, c = x(i, ln), l = x(r.store, cn).filter(sn).length;
|
|
1610
|
+
if (!Ze(r, a).canFilterAny) return null;
|
|
1494
1611
|
let u = c || l > 0 ? "light" : "subtle", d = l > 0 ? void 0 : "gray", f;
|
|
1495
1612
|
t[0] !== n || t[1] !== c || t[2] !== r || t[3] !== i ? (f = () => {
|
|
1496
1613
|
if (c) {
|
|
1497
1614
|
i.actions.closeFilterPanel();
|
|
1498
1615
|
return;
|
|
1499
1616
|
}
|
|
1500
|
-
let e = r.getAllLeafColumns().find(
|
|
1501
|
-
e ?
|
|
1617
|
+
let e = r.getAllLeafColumns().find(on);
|
|
1618
|
+
e ? Vt(n, e.id) : i.actions.openFilterPanel();
|
|
1502
1619
|
}, t[0] = n, t[1] = c, t[2] = r, t[3] = i, t[4] = f) : f = t[4];
|
|
1503
1620
|
let p;
|
|
1504
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */
|
|
1621
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ L(N, {
|
|
1505
1622
|
size: 16,
|
|
1506
1623
|
stroke: 1.6
|
|
1507
1624
|
}), t[5] = p) : p = t[5];
|
|
1508
1625
|
let m;
|
|
1509
|
-
return t[6] !== o || t[7] !== u || t[8] !== d || t[9] !== f ? (m = /* @__PURE__ */
|
|
1626
|
+
return t[6] !== o || t[7] !== u || t[8] !== d || t[9] !== f ? (m = /* @__PURE__ */ L(y, {
|
|
1510
1627
|
label: "Filters",
|
|
1511
1628
|
openDelay: 400,
|
|
1512
|
-
children: /* @__PURE__ */
|
|
1629
|
+
children: /* @__PURE__ */ L(s, {
|
|
1513
1630
|
variant: u,
|
|
1514
1631
|
color: d,
|
|
1515
1632
|
size: o,
|
|
@@ -1519,27 +1636,27 @@ function Lt() {
|
|
|
1519
1636
|
})
|
|
1520
1637
|
}), t[6] = o, t[7] = u, t[8] = d, t[9] = f, t[10] = m) : m = t[10], m;
|
|
1521
1638
|
}
|
|
1522
|
-
function
|
|
1639
|
+
function on(e) {
|
|
1523
1640
|
return e.getCanFilter();
|
|
1524
1641
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1642
|
+
function sn(e) {
|
|
1643
|
+
return Le(e.value);
|
|
1527
1644
|
}
|
|
1528
|
-
function
|
|
1645
|
+
function cn(e) {
|
|
1529
1646
|
return e.columnFilters;
|
|
1530
1647
|
}
|
|
1531
|
-
function
|
|
1648
|
+
function ln(e) {
|
|
1532
1649
|
return e.filterPanelOpen;
|
|
1533
1650
|
}
|
|
1534
1651
|
//#endregion
|
|
1535
|
-
//#region src/tmdatagrid/sizes.ts
|
|
1536
|
-
var
|
|
1652
|
+
//#region src/tmdatagrid/core/sizes.ts
|
|
1653
|
+
var un = "md", dn = {
|
|
1537
1654
|
xs: 34,
|
|
1538
1655
|
sm: 42,
|
|
1539
1656
|
md: 52,
|
|
1540
1657
|
lg: 62,
|
|
1541
1658
|
xl: 72
|
|
1542
|
-
},
|
|
1659
|
+
}, fn = {
|
|
1543
1660
|
xs: "xs",
|
|
1544
1661
|
sm: "xs",
|
|
1545
1662
|
md: "sm",
|
|
@@ -1547,9 +1664,9 @@ var Ht = "md", Ut = {
|
|
|
1547
1664
|
xl: "md"
|
|
1548
1665
|
};
|
|
1549
1666
|
//#endregion
|
|
1550
|
-
//#region src/tmdatagrid/TMDataGrid.tsx
|
|
1551
|
-
function
|
|
1552
|
-
let n = e(17), { table: r, ui: i, features: a, size: o, children: s, className: c, style: l } = t, u = o === void 0 ? "md" : o, d = r.options.meta?.rowHeight ??
|
|
1667
|
+
//#region src/tmdatagrid/components/TMDataGrid.tsx
|
|
1668
|
+
function pn(t) {
|
|
1669
|
+
let n = e(17), { table: r, ui: i, features: a, size: o, children: s, className: c, style: l } = t, u = o === void 0 ? "md" : o, d = r.options.meta?.rowHeight ?? dn[u], f = fn[u], p;
|
|
1553
1670
|
n[0] !== a || n[1] !== d || n[2] !== u || n[3] !== f || n[4] !== r || n[5] !== i ? (p = {
|
|
1554
1671
|
table: r,
|
|
1555
1672
|
ui: i,
|
|
@@ -1559,32 +1676,32 @@ function Gt(t) {
|
|
|
1559
1676
|
controlSize: f
|
|
1560
1677
|
}, n[0] = a, n[1] = d, n[2] = u, n[3] = f, n[4] = r, n[5] = i, n[6] = p) : p = n[6];
|
|
1561
1678
|
let m = p, h;
|
|
1562
|
-
n[7] === c ? h = n[8] : (h = [
|
|
1679
|
+
n[7] === c ? h = n[8] : (h = [K.root, c].filter(Boolean), n[7] = c, n[8] = h);
|
|
1563
1680
|
let g = h.join(" "), _;
|
|
1564
|
-
n[9] !== s || n[10] !== u || n[11] !== l || n[12] !== g ? (_ = /* @__PURE__ */
|
|
1681
|
+
n[9] !== s || n[10] !== u || n[11] !== l || n[12] !== g ? (_ = /* @__PURE__ */ L("div", {
|
|
1565
1682
|
"data-size": u,
|
|
1566
1683
|
className: g,
|
|
1567
1684
|
style: l,
|
|
1568
1685
|
children: s
|
|
1569
1686
|
}), n[9] = s, n[10] = u, n[11] = l, n[12] = g, n[13] = _) : _ = n[13];
|
|
1570
1687
|
let v;
|
|
1571
|
-
return n[14] !== m || n[15] !== _ ? (v = /* @__PURE__ */
|
|
1688
|
+
return n[14] !== m || n[15] !== _ ? (v = /* @__PURE__ */ L(Se, {
|
|
1572
1689
|
value: m,
|
|
1573
1690
|
children: _
|
|
1574
1691
|
}), n[14] = m, n[15] = _, n[16] = v) : v = n[16], v;
|
|
1575
1692
|
}
|
|
1576
|
-
var
|
|
1577
|
-
Toolbar:
|
|
1578
|
-
Spacer:
|
|
1579
|
-
SummaryCount:
|
|
1580
|
-
ColumnsButton:
|
|
1581
|
-
FilterButton:
|
|
1582
|
-
Table:
|
|
1583
|
-
Footer:
|
|
1584
|
-
FilterPanel:
|
|
1585
|
-
ColumnsPanel:
|
|
1693
|
+
var mn = Object.assign(pn, {
|
|
1694
|
+
Toolbar: $t,
|
|
1695
|
+
Spacer: en,
|
|
1696
|
+
SummaryCount: tn,
|
|
1697
|
+
ColumnsButton: nn,
|
|
1698
|
+
FilterButton: an,
|
|
1699
|
+
Table: Zt,
|
|
1700
|
+
Footer: $e,
|
|
1701
|
+
FilterPanel: He,
|
|
1702
|
+
ColumnsPanel: De
|
|
1586
1703
|
});
|
|
1587
1704
|
//#endregion
|
|
1588
|
-
export {
|
|
1705
|
+
export { ft as DATA_STATE_SLICES, un as DEFAULT_TMDATAGRID_SIZE, je as FILTER_OPERATOR_LABELS, Q as SELECT_COLUMN_ID, pt as SETTINGS_STATE_SLICES, fn as SIZE_CONTROL_SIZE, dn as SIZE_ROW_HEIGHT, mn as TMDataGrid, Nt as createTMDataGridColumnHelper, Xe as getColumnCapabilities, Ce as getColumnLabel, nt as getColumnRegion, we as getColumnType, Ze as getGridCapabilities, ot as getStepTargetColumn, Qe as getTMDataGridPaginationApi, Ee as isColumnReorderable, Le as isFilterActive, it as moveColumn, st as moveColumnByStep, Vt as openColumnFilter, Ye as readFeatureFlags, Mt as tmDataGridFeatures, Ft as useTMDataGrid, q as useTMDataGridContext };
|
|
1589
1706
|
|
|
1590
1707
|
//# sourceMappingURL=index.js.map
|