@wallarm-org/design-system 2.5.0 → 2.7.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.
@@ -16,17 +16,19 @@ const toTanStackPinning = (p, pinnedLeft)=>({
16
16
  end: p?.right ?? []
17
17
  });
18
18
  const TableProvider = (props)=>{
19
- const $ = compiler_runtime_c(168);
20
- const { data, columns, isLoading: t0, isLoadingPrevious: t1, skeletonCount: t2, children, getRowId, sorting: sortingProp, onSortingChange, manualSorting: t3, rowSelection: rowSelectionProp, onRowSelectionChange, enableSelectAllRows: t4, onSelectAllRows, columnSizing: columnSizingProp, onColumnSizingChange, columnPinning: columnPinningProp, onColumnPinningChange, columnOrder: columnOrderProp, onColumnOrderChange, grouping: groupingProp, onGroupingChange, expanded: expandedProp, onExpandedChange, renderGroupRow, groupRowSpan: t5, getSubRows, showEmptyGroups: t6, renderExpandedRow, columnVisibility: columnVisibilityProp, onColumnVisibilityChange, defaultColumnVisibility, defaultColumnOrder, columnGroups, virtualized, stretch: t7, estimateRowHeight, overscan: t8, onEndReached, onEndReachedThreshold, onStartReached, onStartReachedThreshold, initialScrollToRowId, onRowReorder, getRowCanDrag, renderFullWidthRow, onMasterCellClick, activeRowId: activeRowIdProp, onSettingsOpenChange } = props;
19
+ const $ = compiler_runtime_c(169);
20
+ const { data, columns, isLoading: t0, isLoadingPrevious: t1, skeletonCount: t2, children, getRowId, sorting: sortingProp, onSortingChange, manualSorting: t3, rowSelection: rowSelectionProp, onRowSelectionChange, enableSelectAllRows: t4, onSelectAllRows, columnSizing: columnSizingProp, onColumnSizingChange, columnPinning: columnPinningProp, onColumnPinningChange, columnOrder: columnOrderProp, onColumnOrderChange, grouping: groupingProp, onGroupingChange, expanded: expandedProp, onExpandedChange, renderGroupRow, groupRowSpan: t5, groupExpandColumn: t6, getSubRows, showEmptyGroups: t7, renderExpandedRow, columnVisibility: columnVisibilityProp, onColumnVisibilityChange, defaultColumnVisibility, defaultColumnOrder, columnGroups, virtualized, stretch: t8, estimateRowHeight, overscan: t9, onEndReached, onEndReachedThreshold, onStartReached, onStartReachedThreshold, initialScrollToRowId, onRowReorder, getRowCanDrag, renderFullWidthRow, onMasterCellClick, activeRowId: activeRowIdProp, onSettingsOpenChange, deferColumnVisibility: t10 } = props;
21
21
  const isLoading = void 0 === t0 ? false : t0;
22
22
  const isLoadingPrevious = void 0 === t1 ? false : t1;
23
23
  const skeletonCount = void 0 === t2 ? TABLE_SKELETON_ROWS : t2;
24
24
  const manualSorting = void 0 === t3 ? false : t3;
25
25
  const enableSelectAllRows = void 0 === t4 ? true : t4;
26
26
  const groupRowSpan = void 0 === t5 ? "master" : t5;
27
- const showEmptyGroups = void 0 === t6 ? false : t6;
28
- const stretch = void 0 === t7 ? true : t7;
29
- const overscan = void 0 === t8 ? TABLE_VIRTUALIZATION_OVERSCAN : t8;
27
+ const groupExpandColumn = void 0 === t6 ? false : t6;
28
+ const showEmptyGroups = void 0 === t7 ? false : t7;
29
+ const stretch = void 0 === t8 ? true : t8;
30
+ const overscan = void 0 === t9 ? TABLE_VIRTUALIZATION_OVERSCAN : t9;
31
+ const deferColumnVisibility = void 0 === t10 ? false : t10;
30
32
  const masterCellActiveRowId = activeRowIdProp ?? null;
31
33
  const sortingEnabled = !!onSortingChange;
32
34
  const selectionEnabled = !!onRowSelectionChange;
@@ -38,47 +40,51 @@ const TableProvider = (props)=>{
38
40
  const rowDndEnabled = !!onRowReorder;
39
41
  const expandingEnabled = !!renderExpandedRow || !!onExpandedChange || subRowGroupingEnabled;
40
42
  const visibilityEnabled = !!onColumnVisibilityChange;
41
- let t9;
42
- if ($[0] !== columns || $[1] !== data[0] || $[2] !== expandingEnabled || $[3] !== rowDndEnabled || $[4] !== selectionEnabled || $[5] !== subRowGroupingEnabled) {
43
+ const expandColumnEnabled = expandingEnabled && (!subRowGroupingEnabled || groupExpandColumn);
44
+ let t11;
45
+ if ($[0] !== columns || $[1] !== data[0] || $[2] !== expandColumnEnabled || $[3] !== rowDndEnabled || $[4] !== selectionEnabled || $[5] !== subRowGroupingEnabled) {
43
46
  bb0: {
44
47
  const cols = columns;
45
48
  let prefix;
46
- if ($[7] !== expandingEnabled || $[8] !== rowDndEnabled || $[9] !== selectionEnabled || $[10] !== subRowGroupingEnabled) {
49
+ if ($[7] !== expandColumnEnabled || $[8] !== rowDndEnabled || $[9] !== selectionEnabled || $[10] !== subRowGroupingEnabled) {
47
50
  prefix = [];
48
- if (expandingEnabled && !subRowGroupingEnabled) {
49
- let t10;
50
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
51
- t10 = createExpandColumn();
52
- $[12] = t10;
53
- } else t10 = $[12];
54
- prefix.push(t10);
51
+ if (expandColumnEnabled) {
52
+ let t12;
53
+ if ($[12] !== subRowGroupingEnabled) {
54
+ t12 = createExpandColumn({
55
+ groupsOnly: subRowGroupingEnabled
56
+ });
57
+ $[12] = subRowGroupingEnabled;
58
+ $[13] = t12;
59
+ } else t12 = $[13];
60
+ prefix.push(t12);
55
61
  }
56
62
  if (selectionEnabled) {
57
- let t10;
58
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
59
- t10 = createSelectionColumn();
60
- $[13] = t10;
61
- } else t10 = $[13];
62
- prefix.push(t10);
63
+ let t12;
64
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
65
+ t12 = createSelectionColumn();
66
+ $[14] = t12;
67
+ } else t12 = $[14];
68
+ prefix.push(t12);
63
69
  }
64
70
  if (rowDndEnabled) {
65
- let t10;
66
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
67
- t10 = createDragHandleColumn();
68
- $[14] = t10;
69
- } else t10 = $[14];
70
- prefix.push(t10);
71
+ let t12;
72
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
73
+ t12 = createDragHandleColumn();
74
+ $[15] = t12;
75
+ } else t12 = $[15];
76
+ prefix.push(t12);
71
77
  }
72
- $[7] = expandingEnabled;
78
+ $[7] = expandColumnEnabled;
73
79
  $[8] = rowDndEnabled;
74
80
  $[9] = selectionEnabled;
75
81
  $[10] = subRowGroupingEnabled;
76
82
  $[11] = prefix;
77
83
  } else prefix = $[11];
78
84
  const firstRow = data[0];
79
- let t10;
80
- if ($[15] !== firstRow) {
81
- t10 = (col)=>{
85
+ let t12;
86
+ if ($[16] !== firstRow) {
87
+ t12 = (col)=>{
82
88
  if (!firstRow || !("accessorKey" in col) || col.meta?.sortType) return col;
83
89
  const value = firstRow[col.accessorKey];
84
90
  if ("number" == typeof value) return {
@@ -90,17 +96,17 @@ const TableProvider = (props)=>{
90
96
  };
91
97
  return col;
92
98
  };
93
- $[15] = firstRow;
94
- $[16] = t10;
95
- } else t10 = $[16];
96
- const withAutoMeta = cols.map(t10);
99
+ $[16] = firstRow;
100
+ $[17] = t12;
101
+ } else t12 = $[17];
102
+ const withAutoMeta = cols.map(t12);
97
103
  const masterOverrides = {
98
104
  enableColumnPinning: false,
99
105
  enableHiding: false
100
106
  };
101
107
  if (0 === prefix.length) {
102
108
  if (withAutoMeta.length > 0) {
103
- t9 = [
109
+ t11 = [
104
110
  {
105
111
  ...withAutoMeta[0],
106
112
  ...masterOverrides
@@ -109,118 +115,117 @@ const TableProvider = (props)=>{
109
115
  ];
110
116
  break bb0;
111
117
  }
112
- t9 = withAutoMeta;
118
+ t11 = withAutoMeta;
113
119
  break bb0;
114
120
  }
115
121
  const userCols = withAutoMeta.length > 0 ? withAutoMeta.map((col_0, index)=>0 === index ? {
116
122
  ...col_0,
117
123
  ...masterOverrides
118
124
  } : col_0) : withAutoMeta;
119
- t9 = [
125
+ t11 = [
120
126
  ...prefix,
121
127
  ...userCols
122
128
  ];
123
129
  }
124
130
  $[0] = columns;
125
131
  $[1] = data[0];
126
- $[2] = expandingEnabled;
132
+ $[2] = expandColumnEnabled;
127
133
  $[3] = rowDndEnabled;
128
134
  $[4] = selectionEnabled;
129
135
  $[5] = subRowGroupingEnabled;
130
- $[6] = t9;
131
- } else t9 = $[6];
132
- const mergedColumns = t9;
133
- let t10;
136
+ $[6] = t11;
137
+ } else t11 = $[6];
138
+ const mergedColumns = t11;
139
+ let t12;
134
140
  bb1: {
135
141
  if (0 === columns.length) {
136
- t10 = null;
142
+ t12 = null;
137
143
  break bb1;
138
144
  }
139
145
  const firstCol = columns[0];
140
146
  if (!firstCol) {
141
- t10 = null;
147
+ t12 = null;
142
148
  break bb1;
143
149
  }
144
- t10 = ("accessorKey" in firstCol ? String(firstCol.accessorKey) : firstCol.id) ?? null;
150
+ t12 = ("accessorKey" in firstCol ? String(firstCol.accessorKey) : firstCol.id) ?? null;
145
151
  }
146
- const masterColumnId = t10;
152
+ const masterColumnId = t12;
147
153
  let ids;
148
- if ($[17] !== expandingEnabled || $[18] !== masterColumnId || $[19] !== rowDndEnabled || $[20] !== selectionEnabled || $[21] !== subRowGroupingEnabled) {
154
+ if ($[18] !== expandColumnEnabled || $[19] !== masterColumnId || $[20] !== rowDndEnabled || $[21] !== selectionEnabled) {
149
155
  ids = [];
150
- if (expandingEnabled && !subRowGroupingEnabled) ids.push(TABLE_EXPAND_COLUMN_ID);
156
+ if (expandColumnEnabled) ids.push(TABLE_EXPAND_COLUMN_ID);
151
157
  if (selectionEnabled) ids.push(TABLE_SELECT_COLUMN_ID);
152
158
  if (rowDndEnabled) ids.push(TABLE_DRAG_HANDLE_COLUMN_ID);
153
159
  if (masterColumnId) ids.push(masterColumnId);
154
- $[17] = expandingEnabled;
155
- $[18] = masterColumnId;
156
- $[19] = rowDndEnabled;
157
- $[20] = selectionEnabled;
158
- $[21] = subRowGroupingEnabled;
160
+ $[18] = expandColumnEnabled;
161
+ $[19] = masterColumnId;
162
+ $[20] = rowDndEnabled;
163
+ $[21] = selectionEnabled;
159
164
  $[22] = ids;
160
165
  } else ids = $[22];
161
166
  const alwaysPinnedLeft = ids;
162
- let t11;
167
+ let t13;
163
168
  if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
164
- t11 = [];
165
- $[23] = t11;
166
- } else t11 = $[23];
167
- const [sorting, handleSortingChange] = useTableState(sortingProp, t11, onSortingChange);
168
- let t12;
169
+ t13 = [];
170
+ $[23] = t13;
171
+ } else t13 = $[23];
172
+ const [sorting, handleSortingChange] = useTableState(sortingProp, t13, onSortingChange);
173
+ let t14;
169
174
  if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
170
- t12 = {};
171
- $[24] = t12;
172
- } else t12 = $[24];
173
- const [rowSelection, handleRowSelectionChange] = useTableState(rowSelectionProp, t12, onRowSelectionChange);
174
- let t13;
175
+ t14 = {};
176
+ $[24] = t14;
177
+ } else t14 = $[24];
178
+ const [rowSelection, handleRowSelectionChange] = useTableState(rowSelectionProp, t14, onRowSelectionChange);
179
+ let t15;
175
180
  if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
176
- t13 = {};
177
- $[25] = t13;
178
- } else t13 = $[25];
179
- const [columnSizing, handleColumnSizingChange] = useTableState(columnSizingProp, t13, onColumnSizingChange);
180
- let t14;
181
+ t15 = {};
182
+ $[25] = t15;
183
+ } else t15 = $[25];
184
+ const [columnSizing, handleColumnSizingChange] = useTableState(columnSizingProp, t15, onColumnSizingChange);
185
+ let t16;
181
186
  if ($[26] !== defaultColumnOrder) {
182
- t14 = defaultColumnOrder ?? [];
187
+ t16 = defaultColumnOrder ?? [];
183
188
  $[26] = defaultColumnOrder;
184
- $[27] = t14;
185
- } else t14 = $[27];
186
- const [columnOrder, handleColumnOrderChange] = useTableState(columnOrderProp, t14, onColumnOrderChange);
187
- let t15;
189
+ $[27] = t16;
190
+ } else t16 = $[27];
191
+ const [columnOrder, handleColumnOrderChange] = useTableState(columnOrderProp, t16, onColumnOrderChange);
192
+ let t17;
188
193
  if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
189
- t15 = [];
190
- $[28] = t15;
191
- } else t15 = $[28];
192
- const [grouping, handleGroupingChange] = useTableState(groupingProp, t15, onGroupingChange);
193
- let t16;
194
+ t17 = [];
195
+ $[28] = t17;
196
+ } else t17 = $[28];
197
+ const [grouping, handleGroupingChange] = useTableState(groupingProp, t17, onGroupingChange);
198
+ let t18;
194
199
  if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
195
- t16 = {};
196
- $[29] = t16;
197
- } else t16 = $[29];
198
- const [expanded, handleExpandedChange] = useTableState(expandedProp, t16, onExpandedChange);
199
- let t17;
200
+ t18 = {};
201
+ $[29] = t18;
202
+ } else t18 = $[29];
203
+ const [expanded, handleExpandedChange] = useTableState(expandedProp, t18, onExpandedChange);
204
+ let t19;
200
205
  if ($[30] !== defaultColumnVisibility) {
201
- t17 = defaultColumnVisibility ?? {};
206
+ t19 = defaultColumnVisibility ?? {};
202
207
  $[30] = defaultColumnVisibility;
203
- $[31] = t17;
204
- } else t17 = $[31];
205
- const [columnVisibility, handleColumnVisibilityChange] = useTableState(columnVisibilityProp, t17, onColumnVisibilityChange);
206
- let t18;
208
+ $[31] = t19;
209
+ } else t19 = $[31];
210
+ const [columnVisibility, handleColumnVisibilityChange] = useTableState(columnVisibilityProp, t19, onColumnVisibilityChange);
211
+ let t20;
207
212
  if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
208
- t18 = {};
209
- $[32] = t18;
210
- } else t18 = $[32];
211
- let t19;
213
+ t20 = {};
214
+ $[32] = t20;
215
+ } else t20 = $[32];
216
+ let t21;
212
217
  if ($[33] !== columnPinningProp) {
213
- t19 = {
218
+ t21 = {
214
219
  controlled: columnPinningProp,
215
- default: t18
220
+ default: t20
216
221
  };
217
222
  $[33] = columnPinningProp;
218
- $[34] = t19;
219
- } else t19 = $[34];
220
- const [columnPinning, setColumnPinningInternal] = useControlled(t19);
221
- let t20;
223
+ $[34] = t21;
224
+ } else t21 = $[34];
225
+ const [columnPinning, setColumnPinningInternal] = useControlled(t21);
226
+ let t22;
222
227
  if ($[35] !== alwaysPinnedLeft || $[36] !== columnPinning || $[37] !== onColumnPinningChange || $[38] !== setColumnPinningInternal) {
223
- t20 = (updater)=>{
228
+ t22 = (updater)=>{
224
229
  const prevTanStackShape = toTanStackPinning(columnPinning, alwaysPinnedLeft);
225
230
  const newValue = "function" == typeof updater ? updater(prevTanStackShape) : updater;
226
231
  const enforcedStart = [
@@ -238,12 +243,12 @@ const TableProvider = (props)=>{
238
243
  $[36] = columnPinning;
239
244
  $[37] = onColumnPinningChange;
240
245
  $[38] = setColumnPinningInternal;
241
- $[39] = t20;
242
- } else t20 = $[39];
243
- const handleColumnPinningChange = t20;
244
- let t21;
246
+ $[39] = t22;
247
+ } else t22 = $[39];
248
+ const handleColumnPinningChange = t22;
249
+ let t23;
245
250
  if ($[40] !== alwaysPinnedLeft || $[41] !== handleColumnOrderChange) {
246
- t21 = (newOrder)=>{
251
+ t23 = (newOrder)=>{
247
252
  const rest = newOrder.filter((id_0)=>!alwaysPinnedLeft.includes(id_0));
248
253
  handleColumnOrderChange([
249
254
  ...alwaysPinnedLeft,
@@ -252,142 +257,142 @@ const TableProvider = (props)=>{
252
257
  };
253
258
  $[40] = alwaysPinnedLeft;
254
259
  $[41] = handleColumnOrderChange;
255
- $[42] = t21;
256
- } else t21 = $[42];
257
- const setColumnOrder = t21;
258
- let t22;
260
+ $[42] = t23;
261
+ } else t23 = $[42];
262
+ const setColumnOrder = t23;
263
+ let t24;
259
264
  if ($[43] !== sorting) {
260
- t22 = sorting ?? [];
265
+ t24 = sorting ?? [];
261
266
  $[43] = sorting;
262
- $[44] = t22;
263
- } else t22 = $[44];
264
- let t23;
267
+ $[44] = t24;
268
+ } else t24 = $[44];
269
+ let t25;
265
270
  if ($[45] !== rowSelection) {
266
- t23 = rowSelection ?? {};
271
+ t25 = rowSelection ?? {};
267
272
  $[45] = rowSelection;
268
- $[46] = t23;
269
- } else t23 = $[46];
270
- let t24;
273
+ $[46] = t25;
274
+ } else t25 = $[46];
275
+ let t26;
271
276
  if ($[47] !== columnSizing) {
272
- t24 = columnSizing ?? {};
277
+ t26 = columnSizing ?? {};
273
278
  $[47] = columnSizing;
274
- $[48] = t24;
275
- } else t24 = $[48];
276
- let t25;
279
+ $[48] = t26;
280
+ } else t26 = $[48];
281
+ let t27;
277
282
  if ($[49] !== alwaysPinnedLeft || $[50] !== columnPinning) {
278
- t25 = toTanStackPinning(columnPinning, alwaysPinnedLeft);
283
+ t27 = toTanStackPinning(columnPinning, alwaysPinnedLeft);
279
284
  $[49] = alwaysPinnedLeft;
280
285
  $[50] = columnPinning;
281
- $[51] = t25;
282
- } else t25 = $[51];
283
- let t26;
286
+ $[51] = t27;
287
+ } else t27 = $[51];
288
+ let t28;
284
289
  if ($[52] !== columnOrder) {
285
- t26 = columnOrder ?? [];
290
+ t28 = columnOrder ?? [];
286
291
  $[52] = columnOrder;
287
- $[53] = t26;
288
- } else t26 = $[53];
289
- let t27;
292
+ $[53] = t28;
293
+ } else t28 = $[53];
294
+ let t29;
290
295
  if ($[54] !== grouping) {
291
- t27 = grouping ?? [];
296
+ t29 = grouping ?? [];
292
297
  $[54] = grouping;
293
- $[55] = t27;
294
- } else t27 = $[55];
295
- let t28;
298
+ $[55] = t29;
299
+ } else t29 = $[55];
300
+ let t30;
296
301
  if ($[56] !== expanded) {
297
- t28 = expanded ?? {};
302
+ t30 = expanded ?? {};
298
303
  $[56] = expanded;
299
- $[57] = t28;
300
- } else t28 = $[57];
301
- let t29;
304
+ $[57] = t30;
305
+ } else t30 = $[57];
306
+ let t31;
302
307
  if ($[58] !== columnVisibility) {
303
- t29 = columnVisibility ?? {};
308
+ t31 = columnVisibility ?? {};
304
309
  $[58] = columnVisibility;
305
- $[59] = t29;
306
- } else t29 = $[59];
307
- let t30;
308
- if ($[60] !== t22 || $[61] !== t23 || $[62] !== t24 || $[63] !== t25 || $[64] !== t26 || $[65] !== t27 || $[66] !== t28 || $[67] !== t29) {
309
- t30 = {
310
- sorting: t22,
311
- rowSelection: t23,
312
- columnSizing: t24,
313
- columnPinning: t25,
314
- columnOrder: t26,
315
- grouping: t27,
316
- expanded: t28,
317
- columnVisibility: t29
310
+ $[59] = t31;
311
+ } else t31 = $[59];
312
+ let t32;
313
+ if ($[60] !== t24 || $[61] !== t25 || $[62] !== t26 || $[63] !== t27 || $[64] !== t28 || $[65] !== t29 || $[66] !== t30 || $[67] !== t31) {
314
+ t32 = {
315
+ sorting: t24,
316
+ rowSelection: t25,
317
+ columnSizing: t26,
318
+ columnPinning: t27,
319
+ columnOrder: t28,
320
+ grouping: t29,
321
+ expanded: t30,
322
+ columnVisibility: t31
318
323
  };
319
- $[60] = t22;
320
- $[61] = t23;
321
- $[62] = t24;
322
- $[63] = t25;
323
- $[64] = t26;
324
- $[65] = t27;
325
- $[66] = t28;
326
- $[67] = t29;
327
- $[68] = t30;
328
- } else t30 = $[68];
329
- const t31 = sortingEnabled ? handleSortingChange : void 0;
330
- const t32 = selectionEnabled ? handleRowSelectionChange : void 0;
331
- const t33 = resizingEnabled ? handleColumnSizingChange : void 0;
332
- const t34 = pinningEnabled ? handleColumnPinningChange : void 0;
333
- const t35 = columnDndEnabled ? handleColumnOrderChange : void 0;
334
- const t36 = groupingEnabled ? handleGroupingChange : void 0;
335
- const t37 = expandingEnabled ? handleExpandedChange : void 0;
336
- const t38 = visibilityEnabled ? handleColumnVisibilityChange : void 0;
337
- let t39;
324
+ $[60] = t24;
325
+ $[61] = t25;
326
+ $[62] = t26;
327
+ $[63] = t27;
328
+ $[64] = t28;
329
+ $[65] = t29;
330
+ $[66] = t30;
331
+ $[67] = t31;
332
+ $[68] = t32;
333
+ } else t32 = $[68];
334
+ const t33 = sortingEnabled ? handleSortingChange : void 0;
335
+ const t34 = selectionEnabled ? handleRowSelectionChange : void 0;
336
+ const t35 = resizingEnabled ? handleColumnSizingChange : void 0;
337
+ const t36 = pinningEnabled ? handleColumnPinningChange : void 0;
338
+ const t37 = columnDndEnabled ? handleColumnOrderChange : void 0;
339
+ const t38 = groupingEnabled ? handleGroupingChange : void 0;
340
+ const t39 = expandingEnabled ? handleExpandedChange : void 0;
341
+ const t40 = visibilityEnabled ? handleColumnVisibilityChange : void 0;
342
+ let t41;
338
343
  if ($[69] !== expandingEnabled) {
339
- t39 = expandingEnabled ? {
344
+ t41 = expandingEnabled ? {
340
345
  autoResetExpanded: false
341
346
  } : {};
342
347
  $[69] = expandingEnabled;
343
- $[70] = t39;
344
- } else t39 = $[70];
345
- let t40;
348
+ $[70] = t41;
349
+ } else t41 = $[70];
350
+ let t42;
346
351
  if ($[71] !== expandingEnabled || $[72] !== renderExpandedRow || $[73] !== subRowGroupingEnabled) {
347
- t40 = expandingEnabled && (renderExpandedRow || subRowGroupingEnabled) ? {
352
+ t42 = expandingEnabled && (renderExpandedRow || subRowGroupingEnabled) ? {
348
353
  getRowCanExpand: _temp
349
354
  } : {};
350
355
  $[71] = expandingEnabled;
351
356
  $[72] = renderExpandedRow;
352
357
  $[73] = subRowGroupingEnabled;
353
- $[74] = t40;
354
- } else t40 = $[74];
355
- let t41;
358
+ $[74] = t42;
359
+ } else t42 = $[74];
360
+ let t43;
356
361
  if ($[75] === Symbol.for("react.memo_cache_sentinel")) {
357
- t41 = {
362
+ t43 = {
358
363
  minSize: TABLE_MIN_COLUMN_WIDTH
359
364
  };
360
- $[75] = t41;
361
- } else t41 = $[75];
362
- let t42;
363
- if ($[76] !== data || $[77] !== expandingEnabled || $[78] !== getRowId || $[79] !== getSubRows || $[80] !== groupingEnabled || $[81] !== manualSorting || $[82] !== mergedColumns || $[83] !== resizingEnabled || $[84] !== selectionEnabled || $[85] !== sortingEnabled || $[86] !== t30 || $[87] !== t31 || $[88] !== t32 || $[89] !== t33 || $[90] !== t34 || $[91] !== t35 || $[92] !== t36 || $[93] !== t37 || $[94] !== t38 || $[95] !== t39 || $[96] !== t40 || $[97] !== visibilityEnabled) {
364
- t42 = {
365
+ $[75] = t43;
366
+ } else t43 = $[75];
367
+ let t44;
368
+ if ($[76] !== data || $[77] !== expandingEnabled || $[78] !== getRowId || $[79] !== getSubRows || $[80] !== groupingEnabled || $[81] !== manualSorting || $[82] !== mergedColumns || $[83] !== resizingEnabled || $[84] !== selectionEnabled || $[85] !== sortingEnabled || $[86] !== t32 || $[87] !== t33 || $[88] !== t34 || $[89] !== t35 || $[90] !== t36 || $[91] !== t37 || $[92] !== t38 || $[93] !== t39 || $[94] !== t40 || $[95] !== t41 || $[96] !== t42 || $[97] !== visibilityEnabled) {
369
+ t44 = {
365
370
  features: dsTableFeatures,
366
371
  data,
367
372
  columns: mergedColumns,
368
373
  getRowId,
369
374
  getSubRows,
370
375
  manualSorting,
371
- state: t30,
372
- onSortingChange: t31,
373
- onRowSelectionChange: t32,
374
- onColumnSizingChange: t33,
375
- onColumnPinningChange: t34,
376
- onColumnOrderChange: t35,
377
- onGroupingChange: t36,
378
- onExpandedChange: t37,
379
- onColumnVisibilityChange: t38,
376
+ state: t32,
377
+ onSortingChange: t33,
378
+ onRowSelectionChange: t34,
379
+ onColumnSizingChange: t35,
380
+ onColumnPinningChange: t36,
381
+ onColumnOrderChange: t37,
382
+ onGroupingChange: t38,
383
+ onExpandedChange: t39,
384
+ onColumnVisibilityChange: t40,
380
385
  enableSorting: sortingEnabled,
381
386
  enableRowSelection: selectionEnabled,
382
387
  enableColumnResizing: resizingEnabled,
383
388
  enableColumnPinning: true,
384
389
  enableGrouping: groupingEnabled,
385
390
  enableExpanding: expandingEnabled,
386
- ...t39,
387
- ...t40,
391
+ ...t41,
392
+ ...t42,
388
393
  enableHiding: visibilityEnabled,
389
394
  columnResizeMode: "onChange",
390
- defaultColumn: t41
395
+ defaultColumn: t43
391
396
  };
392
397
  $[76] = data;
393
398
  $[77] = expandingEnabled;
@@ -399,41 +404,41 @@ const TableProvider = (props)=>{
399
404
  $[83] = resizingEnabled;
400
405
  $[84] = selectionEnabled;
401
406
  $[85] = sortingEnabled;
402
- $[86] = t30;
403
- $[87] = t31;
404
- $[88] = t32;
405
- $[89] = t33;
406
- $[90] = t34;
407
- $[91] = t35;
408
- $[92] = t36;
409
- $[93] = t37;
410
- $[94] = t38;
411
- $[95] = t39;
412
- $[96] = t40;
407
+ $[86] = t32;
408
+ $[87] = t33;
409
+ $[88] = t34;
410
+ $[89] = t35;
411
+ $[90] = t36;
412
+ $[91] = t37;
413
+ $[92] = t38;
414
+ $[93] = t39;
415
+ $[94] = t40;
416
+ $[95] = t41;
417
+ $[96] = t42;
413
418
  $[97] = visibilityEnabled;
414
- $[98] = t42;
415
- } else t42 = $[98];
416
- const table = useTable(t42);
417
- let t43;
419
+ $[98] = t44;
420
+ } else t44 = $[98];
421
+ const table = useTable(t44);
422
+ let t45;
418
423
  if ($[99] !== table) {
419
- t43 = table.getAllLeafColumns();
424
+ t45 = table.getAllLeafColumns();
420
425
  $[99] = table;
421
- $[100] = t43;
422
- } else t43 = $[100];
423
- const allLeafColumns = t43;
426
+ $[100] = t45;
427
+ } else t45 = $[100];
428
+ const allLeafColumns = t45;
424
429
  const lastSelectedRowIndexRef = useRef(null);
425
430
  const containerRef = useRef(null);
426
431
  const headerScrollRef = useRef(null);
427
432
  const tbodyRef = useRef(null);
428
433
  const virtualizerRef = useRef(null);
429
- const t44 = !!getSubRows;
430
- const t45 = renderExpandedRow;
431
- const t46 = getRowCanDrag;
432
- const t47 = "full" === groupRowSpan ? renderGroupRow : void 0;
433
- const t48 = renderFullWidthRow;
434
- let t49;
435
- if ($[101] !== allLeafColumns || $[102] !== alwaysPinnedLeft || $[103] !== columnDndEnabled || $[104] !== columnGroups || $[105] !== defaultColumnOrder || $[106] !== defaultColumnVisibility || $[107] !== enableSelectAllRows || $[108] !== estimateRowHeight || $[109] !== expandingEnabled || $[110] !== groupingEnabled || $[111] !== initialScrollToRowId || $[112] !== isLoading || $[113] !== isLoadingPrevious || $[114] !== masterCellActiveRowId || $[115] !== masterColumnId || $[116] !== onEndReached || $[117] !== onEndReachedThreshold || $[118] !== onMasterCellClick || $[119] !== onRowReorder || $[120] !== onSelectAllRows || $[121] !== onSettingsOpenChange || $[122] !== onStartReached || $[123] !== onStartReachedThreshold || $[124] !== overscan || $[125] !== pinningEnabled || $[126] !== resizingEnabled || $[127] !== rowDndEnabled || $[128] !== selectionEnabled || $[129] !== setColumnOrder || $[130] !== showEmptyGroups || $[131] !== skeletonCount || $[132] !== sortingEnabled || $[133] !== stretch || $[134] !== t44 || $[135] !== t45 || $[136] !== t46 || $[137] !== t47 || $[138] !== t48 || $[139] !== table || $[140] !== virtualized || $[141] !== visibilityEnabled) {
436
- t49 = {
434
+ const t46 = !!getSubRows;
435
+ const t47 = renderExpandedRow;
436
+ const t48 = getRowCanDrag;
437
+ const t49 = "full" === groupRowSpan ? renderGroupRow : void 0;
438
+ const t50 = renderFullWidthRow;
439
+ let t51;
440
+ if ($[101] !== allLeafColumns || $[102] !== alwaysPinnedLeft || $[103] !== columnDndEnabled || $[104] !== columnGroups || $[105] !== defaultColumnOrder || $[106] !== defaultColumnVisibility || $[107] !== deferColumnVisibility || $[108] !== enableSelectAllRows || $[109] !== estimateRowHeight || $[110] !== expandingEnabled || $[111] !== groupingEnabled || $[112] !== initialScrollToRowId || $[113] !== isLoading || $[114] !== isLoadingPrevious || $[115] !== masterCellActiveRowId || $[116] !== masterColumnId || $[117] !== onEndReached || $[118] !== onEndReachedThreshold || $[119] !== onMasterCellClick || $[120] !== onRowReorder || $[121] !== onSelectAllRows || $[122] !== onSettingsOpenChange || $[123] !== onStartReached || $[124] !== onStartReachedThreshold || $[125] !== overscan || $[126] !== pinningEnabled || $[127] !== resizingEnabled || $[128] !== rowDndEnabled || $[129] !== selectionEnabled || $[130] !== setColumnOrder || $[131] !== showEmptyGroups || $[132] !== skeletonCount || $[133] !== sortingEnabled || $[134] !== stretch || $[135] !== t46 || $[136] !== t47 || $[137] !== t48 || $[138] !== t49 || $[139] !== t50 || $[140] !== table || $[141] !== virtualized || $[142] !== visibilityEnabled) {
441
+ t51 = {
437
442
  table,
438
443
  isLoading,
439
444
  isLoadingPrevious,
@@ -447,11 +452,11 @@ const TableProvider = (props)=>{
447
452
  groupingEnabled,
448
453
  expandingEnabled,
449
454
  visibilityEnabled,
450
- hasSubRowGrouping: t44,
455
+ hasSubRowGrouping: t46,
451
456
  showEmptyGroups,
452
457
  virtualized,
453
458
  stretch,
454
- renderExpandedRow: t45,
459
+ renderExpandedRow: t47,
455
460
  estimateRowHeight,
456
461
  overscan,
457
462
  allLeafColumns,
@@ -474,12 +479,13 @@ const TableProvider = (props)=>{
474
479
  onStartReachedThreshold,
475
480
  initialScrollToRowId,
476
481
  onRowReorder,
477
- getRowCanDrag: t46,
478
- renderFullWidthGroupRow: t47,
479
- renderFullWidthRow: t48,
482
+ getRowCanDrag: t48,
483
+ renderFullWidthGroupRow: t49,
484
+ renderFullWidthRow: t50,
480
485
  onMasterCellClick,
481
486
  activeRowId: masterCellActiveRowId,
482
- onSettingsOpenChange
487
+ onSettingsOpenChange,
488
+ deferColumnVisibility
483
489
  };
484
490
  $[101] = allLeafColumns;
485
491
  $[102] = alwaysPinnedLeft;
@@ -487,48 +493,49 @@ const TableProvider = (props)=>{
487
493
  $[104] = columnGroups;
488
494
  $[105] = defaultColumnOrder;
489
495
  $[106] = defaultColumnVisibility;
490
- $[107] = enableSelectAllRows;
491
- $[108] = estimateRowHeight;
492
- $[109] = expandingEnabled;
493
- $[110] = groupingEnabled;
494
- $[111] = initialScrollToRowId;
495
- $[112] = isLoading;
496
- $[113] = isLoadingPrevious;
497
- $[114] = masterCellActiveRowId;
498
- $[115] = masterColumnId;
499
- $[116] = onEndReached;
500
- $[117] = onEndReachedThreshold;
501
- $[118] = onMasterCellClick;
502
- $[119] = onRowReorder;
503
- $[120] = onSelectAllRows;
504
- $[121] = onSettingsOpenChange;
505
- $[122] = onStartReached;
506
- $[123] = onStartReachedThreshold;
507
- $[124] = overscan;
508
- $[125] = pinningEnabled;
509
- $[126] = resizingEnabled;
510
- $[127] = rowDndEnabled;
511
- $[128] = selectionEnabled;
512
- $[129] = setColumnOrder;
513
- $[130] = showEmptyGroups;
514
- $[131] = skeletonCount;
515
- $[132] = sortingEnabled;
516
- $[133] = stretch;
517
- $[134] = t44;
518
- $[135] = t45;
519
- $[136] = t46;
520
- $[137] = t47;
521
- $[138] = t48;
522
- $[139] = table;
523
- $[140] = virtualized;
524
- $[141] = visibilityEnabled;
525
- $[142] = t49;
526
- } else t49 = $[142];
527
- const contextValue = t49;
528
- let t50;
529
- let t51;
530
- if ($[143] !== selectionEnabled || $[144] !== table) {
531
- t50 = ()=>{
496
+ $[107] = deferColumnVisibility;
497
+ $[108] = enableSelectAllRows;
498
+ $[109] = estimateRowHeight;
499
+ $[110] = expandingEnabled;
500
+ $[111] = groupingEnabled;
501
+ $[112] = initialScrollToRowId;
502
+ $[113] = isLoading;
503
+ $[114] = isLoadingPrevious;
504
+ $[115] = masterCellActiveRowId;
505
+ $[116] = masterColumnId;
506
+ $[117] = onEndReached;
507
+ $[118] = onEndReachedThreshold;
508
+ $[119] = onMasterCellClick;
509
+ $[120] = onRowReorder;
510
+ $[121] = onSelectAllRows;
511
+ $[122] = onSettingsOpenChange;
512
+ $[123] = onStartReached;
513
+ $[124] = onStartReachedThreshold;
514
+ $[125] = overscan;
515
+ $[126] = pinningEnabled;
516
+ $[127] = resizingEnabled;
517
+ $[128] = rowDndEnabled;
518
+ $[129] = selectionEnabled;
519
+ $[130] = setColumnOrder;
520
+ $[131] = showEmptyGroups;
521
+ $[132] = skeletonCount;
522
+ $[133] = sortingEnabled;
523
+ $[134] = stretch;
524
+ $[135] = t46;
525
+ $[136] = t47;
526
+ $[137] = t48;
527
+ $[138] = t49;
528
+ $[139] = t50;
529
+ $[140] = table;
530
+ $[141] = virtualized;
531
+ $[142] = visibilityEnabled;
532
+ $[143] = t51;
533
+ } else t51 = $[143];
534
+ const contextValue = t51;
535
+ let t52;
536
+ let t53;
537
+ if ($[144] !== selectionEnabled || $[145] !== table) {
538
+ t52 = ()=>{
532
539
  if (!selectionEnabled) return;
533
540
  const container = containerRef.current;
534
541
  if (!container) return;
@@ -538,39 +545,39 @@ const TableProvider = (props)=>{
538
545
  container.addEventListener("keydown", handleKeyDown);
539
546
  return ()=>container.removeEventListener("keydown", handleKeyDown);
540
547
  };
541
- t51 = [
548
+ t53 = [
542
549
  selectionEnabled,
543
550
  table
544
551
  ];
545
- $[143] = selectionEnabled;
546
- $[144] = table;
547
- $[145] = t50;
548
- $[146] = t51;
552
+ $[144] = selectionEnabled;
553
+ $[145] = table;
554
+ $[146] = t52;
555
+ $[147] = t53;
549
556
  } else {
550
- t50 = $[145];
551
- t51 = $[146];
557
+ t52 = $[146];
558
+ t53 = $[147];
552
559
  }
553
- useEffect(t50, t51);
554
- let t52;
555
- if ($[147] === Symbol.for("react.memo_cache_sentinel")) {
556
- t52 = {
560
+ useEffect(t52, t53);
561
+ let t54;
562
+ if ($[148] === Symbol.for("react.memo_cache_sentinel")) {
563
+ t54 = {
557
564
  activationConstraint: {
558
565
  distance: 5
559
566
  }
560
567
  };
561
- $[147] = t52;
562
- } else t52 = $[147];
563
- let t53;
564
- if ($[148] === Symbol.for("react.memo_cache_sentinel")) {
565
- t53 = {
568
+ $[148] = t54;
569
+ } else t54 = $[148];
570
+ let t55;
571
+ if ($[149] === Symbol.for("react.memo_cache_sentinel")) {
572
+ t55 = {
566
573
  coordinateGetter: sortableKeyboardCoordinates
567
574
  };
568
- $[148] = t53;
569
- } else t53 = $[148];
570
- const sensors = useSensors(useSensor(PointerSensor, t52), useSensor(KeyboardSensor, t53));
571
- let t54;
572
- if ($[149] !== allLeafColumns || $[150] !== setColumnOrder || $[151] !== table.atoms) {
573
- t54 = (event)=>{
575
+ $[149] = t55;
576
+ } else t55 = $[149];
577
+ const sensors = useSensors(useSensor(PointerSensor, t54), useSensor(KeyboardSensor, t55));
578
+ let t56;
579
+ if ($[150] !== allLeafColumns || $[151] !== setColumnOrder || $[152] !== table.atoms) {
580
+ t56 = (event)=>{
574
581
  const { active, over } = event;
575
582
  if (!over || active.id === over.id) return;
576
583
  const columnOrderAtom = table.atoms.columnOrder.get();
@@ -580,60 +587,60 @@ const TableProvider = (props)=>{
580
587
  const newOrder_0 = arrayMove(currentOrder, oldIndex, newIndex);
581
588
  setColumnOrder(newOrder_0);
582
589
  };
583
- $[149] = allLeafColumns;
584
- $[150] = setColumnOrder;
585
- $[151] = table.atoms;
586
- $[152] = t54;
587
- } else t54 = $[152];
588
- const handleDragEnd = t54;
589
- let t55;
590
- if ($[153] !== allLeafColumns || $[154] !== alwaysPinnedLeft || $[155] !== columnDndEnabled) {
591
- t55 = columnDndEnabled ? allLeafColumns.filter((c_0)=>!alwaysPinnedLeft.includes(c_0.id)).map(_temp3) : [];
592
- $[153] = allLeafColumns;
593
- $[154] = alwaysPinnedLeft;
594
- $[155] = columnDndEnabled;
595
- $[156] = t55;
596
- } else t55 = $[156];
597
- const columnIds = t55;
598
- const t56 = columnDndEnabled ? sensors : void 0;
599
- const t57 = columnDndEnabled ? closestCenter : void 0;
600
- const t58 = columnDndEnabled ? handleDragEnd : void 0;
601
- let t59;
602
- if ($[157] !== children || $[158] !== columnIds) {
603
- t59 = /*#__PURE__*/ jsx(SortableContext, {
590
+ $[150] = allLeafColumns;
591
+ $[151] = setColumnOrder;
592
+ $[152] = table.atoms;
593
+ $[153] = t56;
594
+ } else t56 = $[153];
595
+ const handleDragEnd = t56;
596
+ let t57;
597
+ if ($[154] !== allLeafColumns || $[155] !== alwaysPinnedLeft || $[156] !== columnDndEnabled) {
598
+ t57 = columnDndEnabled ? allLeafColumns.filter((c_0)=>!alwaysPinnedLeft.includes(c_0.id)).map(_temp3) : [];
599
+ $[154] = allLeafColumns;
600
+ $[155] = alwaysPinnedLeft;
601
+ $[156] = columnDndEnabled;
602
+ $[157] = t57;
603
+ } else t57 = $[157];
604
+ const columnIds = t57;
605
+ const t58 = columnDndEnabled ? sensors : void 0;
606
+ const t59 = columnDndEnabled ? closestCenter : void 0;
607
+ const t60 = columnDndEnabled ? handleDragEnd : void 0;
608
+ let t61;
609
+ if ($[158] !== children || $[159] !== columnIds) {
610
+ t61 = /*#__PURE__*/ jsx(SortableContext, {
604
611
  items: columnIds,
605
612
  strategy: horizontalListSortingStrategy,
606
613
  children: children
607
614
  });
608
- $[157] = children;
609
- $[158] = columnIds;
610
- $[159] = t59;
611
- } else t59 = $[159];
612
- let t60;
613
- if ($[160] !== t56 || $[161] !== t57 || $[162] !== t58 || $[163] !== t59) {
614
- t60 = /*#__PURE__*/ jsx(DndContext, {
615
- sensors: t56,
616
- collisionDetection: t57,
617
- onDragEnd: t58,
618
- children: t59
615
+ $[158] = children;
616
+ $[159] = columnIds;
617
+ $[160] = t61;
618
+ } else t61 = $[160];
619
+ let t62;
620
+ if ($[161] !== t58 || $[162] !== t59 || $[163] !== t60 || $[164] !== t61) {
621
+ t62 = /*#__PURE__*/ jsx(DndContext, {
622
+ sensors: t58,
623
+ collisionDetection: t59,
624
+ onDragEnd: t60,
625
+ children: t61
619
626
  });
620
- $[160] = t56;
621
- $[161] = t57;
622
- $[162] = t58;
623
- $[163] = t59;
624
- $[164] = t60;
625
- } else t60 = $[164];
626
- let t61;
627
- if ($[165] !== contextValue || $[166] !== t60) {
628
- t61 = /*#__PURE__*/ jsx(TableContext.Provider, {
627
+ $[161] = t58;
628
+ $[162] = t59;
629
+ $[163] = t60;
630
+ $[164] = t61;
631
+ $[165] = t62;
632
+ } else t62 = $[165];
633
+ let t63;
634
+ if ($[166] !== contextValue || $[167] !== t62) {
635
+ t63 = /*#__PURE__*/ jsx(TableContext.Provider, {
629
636
  value: contextValue,
630
- children: t60
637
+ children: t62
631
638
  });
632
- $[165] = contextValue;
633
- $[166] = t60;
634
- $[167] = t61;
635
- } else t61 = $[167];
636
- return t61;
639
+ $[166] = contextValue;
640
+ $[167] = t62;
641
+ $[168] = t63;
642
+ } else t63 = $[168];
643
+ return t63;
637
644
  };
638
645
  function _temp() {
639
646
  return true;