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