@infinite-table/infinite-react 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.css CHANGED
@@ -541,6 +541,47 @@
541
541
  visibility: visible;
542
542
  }
543
543
 
544
+ /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts.vanilla.css?source= */
545
+
546
+ /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/InfiniteTableRow/row.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwW7DIBBE7/kKjnElIkdtFcn9mAjD2kYlC4K1XbXqvxcsqwmpU+dU9YbYmcesmN3x4Ho3lCX72DA2amO47AS2UDHyAkNj/eklTpwNmrTFiok6WNMTpFuyrmJlOhloaD46q5HAcxgAKVRsEH7LucZGoybg3o48l/Cx0wZ4kN4ao7EtEuXCIeN7J+QSYri65coicTuA91rBIr4W8rX1tkcVUZ+b3bzjftrxpnYR1aWHcuAPRAADkkCtsb5190CtWuUtYM7LPk7LrhBueJ/u8eYBM//z5H+PegVvFduX5eX08Ou0nqZOKBWbEDWxELEaJHyslxRGbq+iZG3gKYyb4iEESgQD2FJXsIfrHc7SuV+zo8hWkf8rjlqKA+mH/i7MF+wOkM8zBAAA */
547
+ ._7pupv00 {
548
+ will-change: transform;
549
+ position: absolute;
550
+ top: 0;
551
+ left: 0;
552
+ pointer-events: var(--infinite-row-pointer-events-while-scrolling);
553
+ --infinite-column-cell-bg-dont-override: var(--infinite-row-background);
554
+ }
555
+ ._7pupv01 {
556
+ --infinite-row-background: var(--infinite-row-hover-background);
557
+ --infinite-row-selected-background: var(--infinite-row-selected-hover-background);
558
+ --infinite-row-odd-background: var(--infinite-row-hover-background);
559
+ }
560
+ ._7pupv03 {
561
+ background: var(--infinite-row-background);
562
+ }
563
+ ._7pupv04 {
564
+ background: var(--infinite-row-odd-background);
565
+ }
566
+ ._7pupv05 {
567
+ z-index: 100;
568
+ }
569
+ ._7pupv07 {
570
+ z-index: 100;
571
+ }
572
+ ._7pupv0b {
573
+ -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
574
+ padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
575
+ }
576
+ ._7pupv0c {
577
+ -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
578
+ padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
579
+ }
580
+ ._7pupv0d {
581
+ -webkit-padding-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
582
+ padding-inline-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
583
+ }
584
+
544
585
  /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/cell.css.ts.vanilla.css?source=#H4sIAAAAAAAAA6WSy27CMBBF93yFl2VhxKMvpR9TOfY4GBxPNHZ4qOLfm9i0xQ200G4iR3PvmTujmbzOAHZyLqbsbcTYqvXB6D2X6AK4UDDZfYFeRofR5EM5O6/UFnbcB0EhU89/V7P0py1uC0a45QQbIA8ZZxE5gYTzJhh0BbOgA1tMp7XPhPcDoUOXsx6ipBFKGVcVbCPojnPjtHEmAJdgLT8Wx326EkkB8b7fefFRsDUqLMfMozUqBWgEddOeMMhUy79C4gB7aMv5xrLPWR4H48a3RqoHbdC2teu2mzqB1iADVy2J3jjOVvQUsbWgyriOYI2DQWwPtgN0Vi6XINcl7nhmyInPkdhlQDq/gFjKPRA9pZDrirB1amDsr+WrnJv1NWZU6iKgugaQlgCXKatESTsP2MQ74iSUaf2Pl5AkpxdYYghY3w44SWO/p4kX+a84txMO73J/8Ap2BAAA */
545
586
  ._1eexc2a0 {
546
587
  justify-content: center;
@@ -704,45 +745,6 @@
704
745
  background: var(--infinite-resize-handle-constrained-hover-background);
705
746
  }
706
747
 
707
- /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/InfiniteTableRow/row.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwW7DIBBE7/kKjnElIkdtFcn9mAjD2kYlC4K1XbXqvxcsqwmpU+dU9YbYmcesmN3x4Ho3lCX72DA2amO47AS2UDHyAkNj/eklTpwNmrTFiok6WNMTpFuyrmJlOhloaD46q5HAcxgAKVRsEH7LucZGoybg3o48l/Cx0wZ4kN4ao7EtEuXCIeN7J+QSYri65coicTuA91rBIr4W8rX1tkcVUZ+b3bzjftrxpnYR1aWHcuAPRAADkkCtsb5190CtWuUtYM7LPk7LrhBueJ/u8eYBM//z5H+PegVvFduX5eX08Ou0nqZOKBWbEDWxELEaJHyslxRGbq+iZG3gKYyb4iEESgQD2FJXsIfrHc7SuV+zo8hWkf8rjlqKA+mH/i7MF+wOkM8zBAAA */
708
- ._7pupv00 {
709
- will-change: transform;
710
- position: absolute;
711
- top: 0;
712
- left: 0;
713
- pointer-events: var(--infinite-row-pointer-events-while-scrolling);
714
- --infinite-column-cell-bg-dont-override: var(--infinite-row-background);
715
- }
716
- ._7pupv01 {
717
- --infinite-row-background: var(--infinite-row-hover-background);
718
- --infinite-row-selected-background: var(--infinite-row-selected-hover-background);
719
- --infinite-row-odd-background: var(--infinite-row-hover-background);
720
- }
721
- ._7pupv03 {
722
- background: var(--infinite-row-background);
723
- }
724
- ._7pupv04 {
725
- background: var(--infinite-row-odd-background);
726
- }
727
- ._7pupv05 {
728
- z-index: 100;
729
- }
730
- ._7pupv07 {
731
- z-index: 100;
732
- }
733
- ._7pupv0b {
734
- -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
735
- padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
736
- }
737
- ._7pupv0c {
738
- -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
739
- padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
740
- }
741
- ._7pupv0d {
742
- -webkit-padding-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
743
- padding-inline-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
744
- }
745
-
746
748
  /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/LoadMask.css.ts.vanilla.css?source=LnF5NTh5YTAgewogIGZsZXgtZmxvdzogcm93OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7Cn0KLnF5NTh5YTEgewogIGRpc3BsYXk6IGZsZXg7Cn0KLnF5NTh5YTIgewogIGRpc3BsYXk6IG5vbmU7Cn0KLnF5NTh5YTMgewogIGJhY2tncm91bmQ6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1vdmVybGF5LWJhY2tncm91bmQpOwogIG9wYWNpdHk6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1vdmVybGF5LW9wYWNpdHkpOwp9Ci5xeTU4eWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgcGFkZGluZzogdmFyKC0taW5maW5pdGUtbG9hZC1tYXNrLXBhZGRpbmcpOwogIGNvbG9yOiB2YXIoLS1pbmZpbml0ZS1sb2FkLW1hc2stY29sb3IpOwogIGJhY2tncm91bmQ6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay10ZXh0LWJhY2tncm91bmQpOwogIGJvcmRlci1yYWRpdXM6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1ib3JkZXItcmFkaXVzKTsKfQ== */
747
749
  .qy58ya0 {
748
750
  flex-flow: row;
@@ -766,5 +768,3 @@
766
768
  background: var(--infinite-load-mask-text-background);
767
769
  border-radius: var(--infinite-load-mask-border-radius);
768
770
  }
769
-
770
- /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts.vanilla.css?source= */
package/index.d.ts CHANGED
@@ -22,8 +22,11 @@ declare type MultisortInfo<T> = {
22
22
  */
23
23
  valueGetter?: (item: T) => any;
24
24
  };
25
+ declare type MultisortInfoAllowMultipleFields<T> = Omit<MultisortInfo<T>, 'field'> & {
26
+ field?: keyof T | (keyof T)[];
27
+ };
25
28
  declare const multisort: {
26
- <T>(sortInfo: MultisortInfo<T>[], array: T[], get?: ((item: any) => T) | undefined): T[];
29
+ <T>(sortInfo: MultisortInfoAllowMultipleFields<T>[], array: T[], get?: ((item: any) => T) | undefined): T[];
27
30
  knownTypes: {
28
31
  [key: string]: (first: any, second: any) => number;
29
32
  };
@@ -136,6 +139,7 @@ interface Size {
136
139
 
137
140
  declare type InfiniteTableBaseCellProps<T> = {
138
141
  column: InfiniteTableComputedColumn<T>;
142
+ rowId?: any;
139
143
  renderChildren: () => Renderable;
140
144
  width: number;
141
145
  cssEllipsis?: boolean;
@@ -187,11 +191,12 @@ declare type InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE = InfiniteTa
187
191
  groupIcon?: Renderable;
188
192
  selectionCheckBox?: Renderable;
189
193
  };
190
- groupRowInfo: InfiniteTableRowInfo<DATA_TYPE> | null;
191
194
  rowIndex: number;
192
195
  rowActive: boolean;
196
+ api: InfiniteTableApi<DATA_TYPE>;
193
197
  column: COL_TYPE;
194
198
  columnsMap: Map<string, COL_TYPE>;
199
+ groupByColumn?: InfiniteTableComputedColumn<DATA_TYPE>;
195
200
  toggleCurrentGroupRow: () => void;
196
201
  toggleGroupRow: InfiniteTableToggleGroupRowFn;
197
202
  toggleCurrentGroupRowSelection: () => void;
@@ -201,7 +206,7 @@ declare type InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE = InfiniteTa
201
206
  deselectCurrentRow: () => void;
202
207
  toggleRowSelection: InfiniteTableSelectRowFn;
203
208
  selectionMode: DataSourcePropSelectionMode | undefined;
204
- groupBy: DataSourceState<DATA_TYPE>['groupBy'];
209
+ rootGroupBy: DataSourceState<DATA_TYPE>['groupBy'];
205
210
  pivotBy?: DataSourceState<DATA_TYPE>['pivotBy'];
206
211
  };
207
212
  declare type InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE> & InfiniteTableRowInfoDataDiscriminator<DATA_TYPE>;
@@ -245,19 +250,26 @@ declare type InfiniteTableColumnValueGetter<T, VALUE_GETTER_TYPE = string | numb
245
250
  declare type InfiniteTableColumnValueFormatter<T, VALUE_FORMATTER_TYPE = string | number | boolean | Date | null | undefined> = (params: InfiniteTableColumnValueFormatterParams<T>) => VALUE_FORMATTER_TYPE;
246
251
  declare type InfiniteTableColumnRowspanFn<T> = (params: InfiniteTableColumnRowspanParam<T>) => number;
247
252
  declare type InfiniteTableColumnComparer<T> = (a: T, b: T) => number;
248
- declare type InfiniteTableBaseColumn<T> = {
253
+ /**
254
+ * Defines a column in the table.
255
+ *
256
+ * @typeParam DATA_TYPE The type of the data in the table.
257
+ *
258
+ * Can be bound to a field which is a `keyof DATA_TYPE`.
259
+ */
260
+ declare type InfiniteTableColumn<DATA_TYPE> = {
249
261
  sortable?: boolean;
250
262
  draggable?: boolean;
251
263
  resizable?: boolean;
252
- comparer?: InfiniteTableColumnComparer<T>;
253
- defaultHiddenWhenGroupedBy?: '*' | keyof T | {
254
- [k in keyof Partial<T>]: true;
264
+ comparer?: InfiniteTableColumnComparer<DATA_TYPE>;
265
+ defaultHiddenWhenGroupedBy?: '*' | true | keyof DATA_TYPE | {
266
+ [k in keyof Partial<DATA_TYPE>]: true;
255
267
  };
256
268
  align?: InfiniteTableColumnAlign;
257
269
  verticalAlign?: InfiniteTableColumnVerticalAlign;
258
270
  columnGroup?: string;
259
- header?: InfiniteTableColumnHeader<T>;
260
- renderHeader?: InfiniteTableColumnHeaderRenderFunction<T>;
271
+ header?: InfiniteTableColumnHeader<DATA_TYPE>;
272
+ renderHeader?: InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
261
273
  name?: Renderable;
262
274
  cssEllipsis?: boolean;
263
275
  headerCssEllipsis?: boolean;
@@ -265,41 +277,33 @@ declare type InfiniteTableBaseColumn<T> = {
265
277
  dataType?: InfiniteTableDataTypeNames;
266
278
  sortType?: string;
267
279
  filterType?: string;
268
- style?: InfiniteTableColumnStyle<T>;
269
- headerStyle?: InfiniteTableColumnHeaderStyle<T>;
270
- headerClassName?: InfiniteTableColumnHeaderClassName<T>;
271
- className?: InfiniteTableColumnClassName<T>;
272
- rowspan?: InfiniteTableColumnRowspanFn<T>;
273
- field?: keyof T;
274
- render?: InfiniteTableColumnRenderFunction<T>;
275
- renderValue?: InfiniteTableColumnRenderFunction<T>;
276
- renderGroupValue?: InfiniteTableColumnRenderFunction<T>;
277
- renderLeafValue?: InfiniteTableColumnRenderFunction<T>;
278
- valueGetter?: InfiniteTableColumnValueGetter<T>;
279
- valueFormatter?: InfiniteTableColumnValueFormatter<T>;
280
+ style?: InfiniteTableColumnStyle<DATA_TYPE>;
281
+ headerStyle?: InfiniteTableColumnHeaderStyle<DATA_TYPE>;
282
+ headerClassName?: InfiniteTableColumnHeaderClassName<DATA_TYPE>;
283
+ className?: InfiniteTableColumnClassName<DATA_TYPE>;
284
+ rowspan?: InfiniteTableColumnRowspanFn<DATA_TYPE>;
285
+ field?: keyof DATA_TYPE;
286
+ render?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
287
+ renderValue?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
288
+ renderGroupValue?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
289
+ renderLeafValue?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
290
+ valueGetter?: InfiniteTableColumnValueGetter<DATA_TYPE>;
291
+ valueFormatter?: InfiniteTableColumnValueFormatter<DATA_TYPE>;
280
292
  defaultWidth?: number;
281
293
  defaultFlex?: number;
282
294
  defaultFilterable?: boolean;
283
295
  minWidth?: number;
284
296
  maxWidth?: number;
285
- renderGroupIcon?: InfiniteTableColumnRenderFunctionForGroupRows<T>;
286
- renderSortIcon?: InfiniteTableColumnHeaderRenderFunction<T>;
287
- renderSelectionCheckBox?: boolean | InfiniteTableColumnRenderFunction<T>;
288
- renderHeaderSelectionCheckBox?: boolean | InfiniteTableColumnHeaderRenderFunction<T>;
297
+ renderGroupIcon?: InfiniteTableColumnRenderFunctionForGroupRows<DATA_TYPE>;
298
+ renderSortIcon?: InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
299
+ renderSelectionCheckBox?: boolean | InfiniteTableColumnRenderFunction<DATA_TYPE>;
300
+ renderHeaderSelectionCheckBox?: boolean | InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
289
301
  components?: {
290
302
  ColumnCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
291
303
  HeaderCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
292
304
  };
293
305
  };
294
- /**
295
- * Defines a column in the table.
296
- *
297
- * @typeParam DATA_TYPE The type of the data in the table.
298
- *
299
- * Can be bound to a field which is a `keyof DATA_TYPE`.
300
- */
301
- declare type InfiniteTableColumn<DATA_TYPE> = {} & InfiniteTableBaseColumn<DATA_TYPE>;
302
- declare type InfiniteTableGeneratedGroupColumn<T> = InfiniteTableColumn<T> & {
306
+ declare type InfiniteTableGeneratedGroupColumn<T> = Omit<InfiniteTableColumn<T>, 'sortable'> & {
303
307
  groupByField: string | string[];
304
308
  id?: string;
305
309
  };
@@ -341,6 +345,7 @@ declare type InfiniteTableComputedColumnBase<T> = {
341
345
  computedSortedAsc: boolean;
342
346
  computedSortedDesc: boolean;
343
347
  computedSortIndex: number;
348
+ computedVisible: boolean;
344
349
  computedVisibleIndex: number;
345
350
  computedVisibleIndexInCategory: number;
346
351
  computedMultiSort: boolean;
@@ -355,6 +360,7 @@ declare type InfiniteTableComputedColumnBase<T> = {
355
360
  computedFirst: boolean;
356
361
  computedLast: boolean;
357
362
  toggleSort: () => void;
363
+ colType: InfiniteTableColumnType<T>;
358
364
  id: string;
359
365
  };
360
366
  declare type InfiniteTableComputedColumn<T> = InfiniteTableColumn<T> & InfiniteTableComputedColumnBase<T> & Partial<InfiniteTablePivotFinalColumn<T>> & Partial<InfiniteTableGeneratedGroupColumn<T>>;
@@ -780,6 +786,7 @@ interface InfiniteTableComputedValues<T> {
780
786
  computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
781
787
  computedVisibleColumns: InfiniteTableComputedColumn<T>[];
782
788
  computedVisibleColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
789
+ computedColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
783
790
  computedColumnVisibility: InfiniteTablePropColumnVisibility;
784
791
  computedColumnOrder: InfiniteTablePropColumnOrderNormalized;
785
792
  computedPinnedStartColumnsWidth: number;
@@ -925,6 +932,9 @@ interface InfiniteTableSetupState<T> {
925
932
  cellClick: SubscriptionCallback<CellPosition & {
926
933
  event: MouseEvent;
927
934
  }>;
935
+ cellMouseDown: SubscriptionCallback<CellPosition & {
936
+ event: MouseEvent;
937
+ }>;
928
938
  keyDown: SubscriptionCallback<KeyboardEvent>;
929
939
  columnsWhenGrouping?: InfiniteTableColumnsMap<T>;
930
940
  bodySize: Size;
@@ -987,6 +997,7 @@ interface InfiniteTableMappedState<T> {
987
997
  draggableColumns: NonUndefined<InfiniteTableProps<T>['draggableColumns']>;
988
998
  sortable: NonUndefined<InfiniteTableProps<T>['sortable']>;
989
999
  hideEmptyGroupColumns: NonUndefined<InfiniteTableProps<T>['hideEmptyGroupColumns']>;
1000
+ hideColumnWhenGrouped: NonUndefined<InfiniteTableProps<T>['hideColumnWhenGrouped']>;
990
1001
  keyboardSelection: NonUndefined<InfiniteTableProps<T>['keyboardSelection']>;
991
1002
  columnOrder: NonUndefined<InfiniteTableProps<T>['columnOrder']>;
992
1003
  showZebraRows: NonUndefined<InfiniteTableProps<T>['showZebraRows']>;
@@ -1007,6 +1018,7 @@ interface InfiniteTableMappedState<T> {
1007
1018
  interface InfiniteTableDerivedState<T> {
1008
1019
  groupBy: DataSourceProps<T>['groupBy'];
1009
1020
  computedColumns: Map<string, InfiniteTableColumn<T>>;
1021
+ initialColumns: InfiniteTableProps<T>['columns'];
1010
1022
  groupRenderStrategy: NonUndefined<InfiniteTableProps<T>['groupRenderStrategy']>;
1011
1023
  columnHeaderCssEllipsis: NonUndefined<InfiniteTableProps<T>['columnHeaderCssEllipsis']>;
1012
1024
  keyboardNavigation: NonUndefined<InfiniteTableProps<T>['keyboardNavigation']>;
@@ -1107,8 +1119,8 @@ interface DataSourceDataParams<T> {
1107
1119
  changes?: DataSourceDataParamsChanges<T>;
1108
1120
  }
1109
1121
  declare type DataSourceDataParamsChanges<T> = Partial<Record<keyof Omit<DataSourceDataParams<T>, 'originalDataArray' | 'changes'>, true>>;
1110
- declare type DataSourceSingleSortInfo<T> = MultisortInfo<T> & {
1111
- field?: keyof T;
1122
+ declare type DataSourceSingleSortInfo<T> = Omit<MultisortInfo<T>, 'field'> & {
1123
+ field?: keyof T | (keyof T)[];
1112
1124
  id?: string;
1113
1125
  };
1114
1126
  declare type DataSourceGroupBy<T> = GroupBy<T, any>;
@@ -1413,6 +1425,7 @@ declare type InfiniteTableRowInfoDataDiscriminator<T> = {
1413
1425
  rowInfo: InfiniteTable_NoGrouping_RowInfoNormal<T> | InfiniteTable_HasGrouping_RowInfoNormal<T>;
1414
1426
  field?: keyof T;
1415
1427
  value: any;
1428
+ rowSelected: boolean | null;
1416
1429
  } | {
1417
1430
  rowActive: boolean;
1418
1431
  data: Partial<T> | null;
@@ -1420,6 +1433,7 @@ declare type InfiniteTableRowInfoDataDiscriminator<T> = {
1420
1433
  isGroupRow: true;
1421
1434
  field?: keyof T;
1422
1435
  value: any;
1436
+ rowSelected: boolean | null;
1423
1437
  };
1424
1438
  /**
1425
1439
  * This is the base row info for all scenarios - things every
@@ -1803,6 +1817,7 @@ declare type InfiniteTableGroupColumnGetterOptions<T> = {
1803
1817
  groupCount: number;
1804
1818
  groupBy: DataSourceGroupBy<T>[];
1805
1819
  pivotBy?: DataSourcePivotBy<T>[];
1820
+ sortable?: boolean;
1806
1821
  };
1807
1822
  declare type InfiniteTablePivotColumnGetterOptions<T, COL_TYPE = InfiniteTableColumn<T>> = {
1808
1823
  column: COL_TYPE;
@@ -1811,7 +1826,6 @@ declare type InfiniteTablePivotColumnGetterOptions<T, COL_TYPE = InfiniteTableCo
1811
1826
  };
1812
1827
  declare type InfiniteTablePropGroupRenderStrategy = 'single-column' | 'multi-column' | 'inline';
1813
1828
  declare type InfiniteTableGroupColumnBase<T> = Partial<InfiniteTableColumn<T>> & {
1814
- renderValue?: InfiniteTableColumnRenderFunction<T>;
1815
1829
  renderGroupIcon?: InfiniteTableColumnRenderFunctionForGroupRows<T>;
1816
1830
  id?: string;
1817
1831
  };
@@ -1898,6 +1912,7 @@ interface InfiniteTableProps<T> {
1898
1912
  columnDefaultWidth?: number;
1899
1913
  columnMinWidth?: number;
1900
1914
  columnMaxWidth?: number;
1915
+ hideColumnWhenGrouped?: boolean;
1901
1916
  resizableColumns?: boolean;
1902
1917
  virtualizeColumns?: InfiniteTablePropVirtualizeColumns<T>;
1903
1918
  virtualizeRows?: boolean;
package/index.esm.css CHANGED
@@ -541,6 +541,47 @@
541
541
  visibility: visible;
542
542
  }
543
543
 
544
+ /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts.vanilla.css?source= */
545
+
546
+ /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/InfiniteTableRow/row.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwW7DIBBE7/kKjnElIkdtFcn9mAjD2kYlC4K1XbXqvxcsqwmpU+dU9YbYmcesmN3x4Ho3lCX72DA2amO47AS2UDHyAkNj/eklTpwNmrTFiok6WNMTpFuyrmJlOhloaD46q5HAcxgAKVRsEH7LucZGoybg3o48l/Cx0wZ4kN4ao7EtEuXCIeN7J+QSYri65coicTuA91rBIr4W8rX1tkcVUZ+b3bzjftrxpnYR1aWHcuAPRAADkkCtsb5190CtWuUtYM7LPk7LrhBueJ/u8eYBM//z5H+PegVvFduX5eX08Ou0nqZOKBWbEDWxELEaJHyslxRGbq+iZG3gKYyb4iEESgQD2FJXsIfrHc7SuV+zo8hWkf8rjlqKA+mH/i7MF+wOkM8zBAAA */
547
+ ._7pupv00 {
548
+ will-change: transform;
549
+ position: absolute;
550
+ top: 0;
551
+ left: 0;
552
+ pointer-events: var(--infinite-row-pointer-events-while-scrolling);
553
+ --infinite-column-cell-bg-dont-override: var(--infinite-row-background);
554
+ }
555
+ ._7pupv01 {
556
+ --infinite-row-background: var(--infinite-row-hover-background);
557
+ --infinite-row-selected-background: var(--infinite-row-selected-hover-background);
558
+ --infinite-row-odd-background: var(--infinite-row-hover-background);
559
+ }
560
+ ._7pupv03 {
561
+ background: var(--infinite-row-background);
562
+ }
563
+ ._7pupv04 {
564
+ background: var(--infinite-row-odd-background);
565
+ }
566
+ ._7pupv05 {
567
+ z-index: 100;
568
+ }
569
+ ._7pupv07 {
570
+ z-index: 100;
571
+ }
572
+ ._7pupv0b {
573
+ -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
574
+ padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
575
+ }
576
+ ._7pupv0c {
577
+ -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
578
+ padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
579
+ }
580
+ ._7pupv0d {
581
+ -webkit-padding-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
582
+ padding-inline-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
583
+ }
584
+
544
585
  /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/cell.css.ts.vanilla.css?source=#H4sIAAAAAAAAA6WSy27CMBBF93yFl2VhxKMvpR9TOfY4GBxPNHZ4qOLfm9i0xQ200G4iR3PvmTujmbzOAHZyLqbsbcTYqvXB6D2X6AK4UDDZfYFeRofR5EM5O6/UFnbcB0EhU89/V7P0py1uC0a45QQbIA8ZZxE5gYTzJhh0BbOgA1tMp7XPhPcDoUOXsx6ipBFKGVcVbCPojnPjtHEmAJdgLT8Wx326EkkB8b7fefFRsDUqLMfMozUqBWgEddOeMMhUy79C4gB7aMv5xrLPWR4H48a3RqoHbdC2teu2mzqB1iADVy2J3jjOVvQUsbWgyriOYI2DQWwPtgN0Vi6XINcl7nhmyInPkdhlQDq/gFjKPRA9pZDrirB1amDsr+WrnJv1NWZU6iKgugaQlgCXKatESTsP2MQ74iSUaf2Pl5AkpxdYYghY3w44SWO/p4kX+a84txMO73J/8Ap2BAAA */
545
586
  ._1eexc2a0 {
546
587
  justify-content: center;
@@ -704,45 +745,6 @@
704
745
  background: var(--infinite-resize-handle-constrained-hover-background);
705
746
  }
706
747
 
707
- /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/InfiniteTableRow/row.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwW7DIBBE7/kKjnElIkdtFcn9mAjD2kYlC4K1XbXqvxcsqwmpU+dU9YbYmcesmN3x4Ho3lCX72DA2amO47AS2UDHyAkNj/eklTpwNmrTFiok6WNMTpFuyrmJlOhloaD46q5HAcxgAKVRsEH7LucZGoybg3o48l/Cx0wZ4kN4ao7EtEuXCIeN7J+QSYri65coicTuA91rBIr4W8rX1tkcVUZ+b3bzjftrxpnYR1aWHcuAPRAADkkCtsb5190CtWuUtYM7LPk7LrhBueJ/u8eYBM//z5H+PegVvFduX5eX08Ou0nqZOKBWbEDWxELEaJHyslxRGbq+iZG3gKYyb4iEESgQD2FJXsIfrHc7SuV+zo8hWkf8rjlqKA+mH/i7MF+wOkM8zBAAA */
708
- ._7pupv00 {
709
- will-change: transform;
710
- position: absolute;
711
- top: 0;
712
- left: 0;
713
- pointer-events: var(--infinite-row-pointer-events-while-scrolling);
714
- --infinite-column-cell-bg-dont-override: var(--infinite-row-background);
715
- }
716
- ._7pupv01 {
717
- --infinite-row-background: var(--infinite-row-hover-background);
718
- --infinite-row-selected-background: var(--infinite-row-selected-hover-background);
719
- --infinite-row-odd-background: var(--infinite-row-hover-background);
720
- }
721
- ._7pupv03 {
722
- background: var(--infinite-row-background);
723
- }
724
- ._7pupv04 {
725
- background: var(--infinite-row-odd-background);
726
- }
727
- ._7pupv05 {
728
- z-index: 100;
729
- }
730
- ._7pupv07 {
731
- z-index: 100;
732
- }
733
- ._7pupv0b {
734
- -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
735
- padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
736
- }
737
- ._7pupv0c {
738
- -webkit-padding-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
739
- padding-inline-start: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
740
- }
741
- ._7pupv0d {
742
- -webkit-padding-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
743
- padding-inline-end: calc(var(--infinite-dont-override-group-row-nesting-length) * var(--infinite-group-row-column-nesting));
744
- }
745
-
746
748
  /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/LoadMask.css.ts.vanilla.css?source=LnF5NTh5YTAgewogIGZsZXgtZmxvdzogcm93OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7Cn0KLnF5NTh5YTEgewogIGRpc3BsYXk6IGZsZXg7Cn0KLnF5NTh5YTIgewogIGRpc3BsYXk6IG5vbmU7Cn0KLnF5NTh5YTMgewogIGJhY2tncm91bmQ6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1vdmVybGF5LWJhY2tncm91bmQpOwogIG9wYWNpdHk6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1vdmVybGF5LW9wYWNpdHkpOwp9Ci5xeTU4eWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgcGFkZGluZzogdmFyKC0taW5maW5pdGUtbG9hZC1tYXNrLXBhZGRpbmcpOwogIGNvbG9yOiB2YXIoLS1pbmZpbml0ZS1sb2FkLW1hc2stY29sb3IpOwogIGJhY2tncm91bmQ6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay10ZXh0LWJhY2tncm91bmQpOwogIGJvcmRlci1yYWRpdXM6IHZhcigtLWluZmluaXRlLWxvYWQtbWFzay1ib3JkZXItcmFkaXVzKTsKfQ== */
747
749
  .qy58ya0 {
748
750
  flex-flow: row;
@@ -766,5 +768,3 @@
766
768
  background: var(--infinite-load-mask-text-background);
767
769
  border-radius: var(--infinite-load-mask-border-radius);
768
770
  }
769
-
770
- /* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts.vanilla.css?source= */