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