@infinite-table/infinite-react 3.2.2 → 3.2.3

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.dev.js CHANGED
@@ -127,7 +127,8 @@ __export(src_exports, {
127
127
  InfiniteTableClassName: () => InfiniteTableClassName,
128
128
  InfiniteTableComponent: () => InfiniteTableComponent,
129
129
  Menu: () => Menu,
130
- RowDetailsCache: () => RowDetailsCache,
130
+ RowDetailCache: () => RowDetailCache,
131
+ RowDetailState: () => RowDetailState,
131
132
  RowSelectionState: () => RowSelectionState,
132
133
  WeakFixedSizeSet: () => WeakFixedSizeSet,
133
134
  components: () => components,
@@ -1402,7 +1403,7 @@ function stripVar(cssVariableWithVarString) {
1402
1403
 
1403
1404
  // src/components/InfiniteTable/theme.css.ts
1404
1405
  var InternalVars = { currentColumnTransformX: "var(--currentColumnTransformX__1slvgu90)", y: "var(--y__1slvgu91)", activeCellRowOffset: "var(--activeCellRowOffset__1slvgu92)", activeCellRowHeight: "var(--activeCellRowHeight__1slvgu93)", activeCellOffsetX: "var(--activeCellOffsetX__1slvgu94)", activeCellOffsetY: "var(--activeCellOffsetY__1slvgu95)", scrollTopForActiveRow: "var(--scrollTopForActiveRow__1slvgu96)", activeCellColWidth: "var(--activeCellColWidth__1slvgu97)", activeCellColOffset: "var(--activeCellColOffset__1slvgu98)", columnReorderEffectDurationAtIndex: "var(--columnReorderEffectDurationAtIndex__1slvgu99)", columnWidthAtIndex: "var(--columnWidthAtIndex__1slvgu9a)", columnOffsetAtIndex: "var(--columnOffsetAtIndex__1slvgu9b)", columnOffsetAtIndexWhileReordering: "var(--columnOffsetAtIndexWhileReordering__1slvgu9c)", columnZIndexAtIndex: "var(--columnZIndexAtIndex__1slvgu9d)", pinnedStartWidth: "var(--pinnedStartWidth__1slvgu9e)", pinnedEndWidth: "var(--pinnedEndWidth__1slvgu9f)", pinnedEndOffset: "var(--pinnedEndOffset__1slvgu9g)", computedVisibleColumnsCount: "var(--computedVisibleColumnsCount__1slvgu9h)", baseZIndexForCells: "var(--baseZIndexForCells__1slvgu9i)", bodyWidth: "var(--bodyWidth__1slvgu9j)", bodyHeight: "var(--bodyHeight__1slvgu9k)", scrollbarWidthHorizontal: "var(--scrollbarWidthHorizontal__1slvgu9l)", scrollbarWidthVertical: "var(--scrollbarWidthVertical__1slvgu9m)", scrollLeft: "var(--scrollLeft__1slvgu9n)", scrollTop: "var(--scrollTop__1slvgu9o)" };
1405
- var ThemeVars = { color: { accent: "var(--infinite-accent-color)", error: "var(--infinite-error-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", background: "var(--infinite-background)", iconSize: "var(--infinite-icon-size)", components: { LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { background: "var(--infinite-header-cell-background)", hoverBackground: "var(--infinite-header-cell-hover-background)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", menuIconLineWidth: "var(--infinite-header-cell-menu-icon-line-width)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, Cell: { padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", reorderEffectDuration: "var(--infinite-column-reorder-effect-duration)", pinnedBorder: "var(--infinite-pinned-cell-border)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetails: { background: "var(--infinite-rowdetails-background)", padding: "var(--infinite-rowdetails-padding)", gridHeight: "var(--infinite-rowdetails-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", selectedBackground: "var(--infinite-row-selected-background)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", selectedHoverBackground: "var(--infinite-row-selected-hover-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
1406
+ var ThemeVars = { color: { accent: "var(--infinite-accent-color)", error: "var(--infinite-error-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", background: "var(--infinite-background)", iconSize: "var(--infinite-icon-size)", components: { LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { background: "var(--infinite-header-cell-background)", hoverBackground: "var(--infinite-header-cell-hover-background)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", menuIconLineWidth: "var(--infinite-header-cell-menu-icon-line-width)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, Cell: { padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", reorderEffectDuration: "var(--infinite-column-reorder-effect-duration)", pinnedBorder: "var(--infinite-pinned-cell-border)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetail: { background: "var(--infinite-rowdetails-background)", padding: "var(--infinite-rowdetails-padding)", gridHeight: "var(--infinite-rowdetails-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", selectedBackground: "var(--infinite-row-selected-background)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", selectedHoverBackground: "var(--infinite-row-selected-hover-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
1406
1407
  var columnHeaderHeightName = "column-header-height";
1407
1408
 
1408
1409
  // src/utils/selectParent.ts
@@ -7865,10 +7866,10 @@ function getCellContext(context) {
7865
7866
  const {
7866
7867
  activeRowIndex,
7867
7868
  keyboardNavigation,
7868
- isRowDetailsEnabled
7869
+ isRowDetailEnabled: isRowDetailsEnabled
7869
7870
  } = getState();
7870
7871
  const rowActive = rowIndex === activeRowIndex && keyboardNavigation === "row";
7871
- const rowDetailState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : api.rowDetailsApi.isRowDetailsExpanded(rowInfo.id) ? "expanded" : "collapsed";
7872
+ const rowDetailState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : api.rowDetailApi.isRowDetailExpanded(rowInfo.id) ? "expanded" : "collapsed";
7872
7873
  const {
7873
7874
  formattedValue: value,
7874
7875
  formattedValueContext: { rawValue }
@@ -8005,10 +8006,10 @@ function getColumnRenderParam(options) {
8005
8006
  groupByColumn,
8006
8007
  selectionMode,
8007
8008
  api: imperativeApi,
8008
- toggleCurrentRowDetails: () => imperativeApi.rowDetailsApi.toggleRowDetails(rowInfo.id),
8009
- toggleRowDetails: imperativeApi.rowDetailsApi.toggleRowDetails,
8010
- expandRowDetails: imperativeApi.rowDetailsApi.expandRowDetails,
8011
- collapseRowDetails: imperativeApi.rowDetailsApi.collapseRowDetails,
8009
+ toggleCurrentRowDetails: () => imperativeApi.rowDetailApi.toggleRowDetail(rowInfo.id),
8010
+ toggleRowDetails: imperativeApi.rowDetailApi.toggleRowDetail,
8011
+ expandRowDetails: imperativeApi.rowDetailApi.expandRowDetail,
8012
+ collapseRowDetails: imperativeApi.rowDetailApi.collapseRowDetail,
8012
8013
  selectRow: imperativeApi.rowSelectionApi.selectRow,
8013
8014
  deselectRow: imperativeApi.rowSelectionApi.deselectRow,
8014
8015
  toggleRowSelection: imperativeApi.rowSelectionApi.toggleRowSelection,
@@ -8325,7 +8326,7 @@ function InfiniteTableColumnCellFn(props) {
8325
8326
  getData,
8326
8327
  cellStyle,
8327
8328
  cellClassName,
8328
- rowDetailState: rowDetailsState,
8329
+ rowDetailState,
8329
8330
  width,
8330
8331
  column,
8331
8332
  onMouseLeave,
@@ -8371,7 +8372,7 @@ function InfiniteTableColumnCellFn(props) {
8371
8372
  const colRenderingParams = getColumnRenderingParams({
8372
8373
  column,
8373
8374
  rowInfo,
8374
- rowDetailState: rowDetailsState,
8375
+ rowDetailState,
8375
8376
  columnsMap,
8376
8377
  visibleColumnsIds,
8377
8378
  fieldsToColumn,
@@ -8559,7 +8560,7 @@ function InfiniteTableColumnCellFn(props) {
8559
8560
  column,
8560
8561
  hidden,
8561
8562
  inEdit,
8562
- rowDetailsState,
8563
+ rowDetailState,
8563
8564
  ...objectValuesExcept(renderParam, {
8564
8565
  renderBag: true,
8565
8566
  selectCell: true,
@@ -14715,8 +14716,8 @@ var _FixedSizeMap = class {
14715
14716
  var FixedSizeMap = _FixedSizeMap;
14716
14717
  FixedSizeMap.DEFAULT_SIZE = 10;
14717
14718
 
14718
- // src/components/DataSource/RowDetailsCache.ts
14719
- var RowDetailsNoCacheStorage = class {
14719
+ // src/components/DataSource/RowDetailCache.ts
14720
+ var RowDetailNoCacheStorage = class {
14720
14721
  add(_key, _value) {
14721
14722
  return;
14722
14723
  }
@@ -14730,7 +14731,7 @@ var RowDetailsNoCacheStorage = class {
14730
14731
  return false;
14731
14732
  }
14732
14733
  };
14733
- var RowDetailsFixedSizeCacheStorage = class {
14734
+ var RowDetailFixedSizeCacheStorage = class {
14734
14735
  constructor(maxSize) {
14735
14736
  this.storage = new FixedSizeMap(maxSize);
14736
14737
  }
@@ -14747,7 +14748,7 @@ var RowDetailsFixedSizeCacheStorage = class {
14747
14748
  return this.storage.has(key);
14748
14749
  }
14749
14750
  };
14750
- var RowDetailsFullCacheStorage = class {
14751
+ var RowDetailFullCacheStorage = class {
14751
14752
  constructor() {
14752
14753
  this.storage = /* @__PURE__ */ new Map();
14753
14754
  }
@@ -14764,10 +14765,10 @@ var RowDetailsFullCacheStorage = class {
14764
14765
  return this.storage.has(key);
14765
14766
  }
14766
14767
  };
14767
- var RowDetailsCache = class {
14768
+ var RowDetailCache = class {
14768
14769
  // public instanceIndex: number = 0;
14769
14770
  constructor(cache) {
14770
- this.cacheStorage = cache === false ? new RowDetailsNoCacheStorage() : cache === true ? new RowDetailsFullCacheStorage() : typeof cache === "number" ? new RowDetailsFixedSizeCacheStorage(cache) : new RowDetailsFixedSizeCacheStorage(5);
14771
+ this.cacheStorage = cache === false ? new RowDetailNoCacheStorage() : cache === true ? new RowDetailFullCacheStorage() : typeof cache === "number" ? new RowDetailFixedSizeCacheStorage(cache) : new RowDetailFixedSizeCacheStorage(5);
14771
14772
  }
14772
14773
  add(key, value) {
14773
14774
  this.cacheStorage.add(key, value);
@@ -14783,6 +14784,203 @@ var RowDetailsCache = class {
14783
14784
  }
14784
14785
  };
14785
14786
 
14787
+ // src/components/DataSource/BooleanCollectionState.ts
14788
+ var BooleanCollectionState = class {
14789
+ constructor(state) {
14790
+ const stateObject = state instanceof Object.getPrototypeOf(this).constructor ? (
14791
+ //@ts-ignore
14792
+ state.getState()
14793
+ ) : state;
14794
+ const positiveItems = this.getPositiveFromState(stateObject);
14795
+ const negativeItems = this.getNegativeFromState(stateObject);
14796
+ this.update({
14797
+ negativeItems,
14798
+ positiveItems
14799
+ });
14800
+ }
14801
+ getInitialState() {
14802
+ return this.initialState;
14803
+ }
14804
+ // protected getState(): BooleanCollectionStateObject<KeyType> {
14805
+ // return {
14806
+ // positiveItems: this.allPositive
14807
+ // ? true
14808
+ // : this.positiveMap?.topDownKeys() ?? [],
14809
+ // negativeItems: this.allNegative
14810
+ // ? true
14811
+ // : this.negativeMap?.topDownKeys() ?? [],
14812
+ // };
14813
+ // }
14814
+ destroy() {
14815
+ var _a, _b;
14816
+ (_a = this.positiveMap) == null ? void 0 : _a.clear();
14817
+ (_b = this.negativeMap) == null ? void 0 : _b.clear();
14818
+ delete this.positiveMap;
14819
+ delete this.negativeMap;
14820
+ }
14821
+ update(state) {
14822
+ const { positiveItems, negativeItems } = state;
14823
+ this.allNegative = negativeItems === true;
14824
+ this.allPositive = positiveItems === true;
14825
+ if (this.allNegative && this.allPositive) {
14826
+ throw `Cannot have both negativeItems and positiveItems be true!`;
14827
+ }
14828
+ if (negativeItems && negativeItems !== true) {
14829
+ if (!this.negativeMap) {
14830
+ this.negativeMap = /* @__PURE__ */ new Map();
14831
+ }
14832
+ this.negativeMap.clear();
14833
+ for (let k of negativeItems) {
14834
+ this.negativeMap.set(k, true);
14835
+ }
14836
+ if (this.positiveMap) {
14837
+ this.positiveMap.clear();
14838
+ }
14839
+ }
14840
+ if (positiveItems && positiveItems !== true) {
14841
+ if (!this.positiveMap) {
14842
+ this.positiveMap = /* @__PURE__ */ new Map();
14843
+ }
14844
+ this.positiveMap.clear();
14845
+ for (let k of positiveItems) {
14846
+ this.positiveMap.set(k, true);
14847
+ }
14848
+ if (this.negativeMap) {
14849
+ this.negativeMap.clear();
14850
+ }
14851
+ }
14852
+ }
14853
+ isDefaultNegativeSelection() {
14854
+ return this.allNegative;
14855
+ }
14856
+ isDefaultPositiveSelection() {
14857
+ return this.allPositive;
14858
+ }
14859
+ areAllNegative() {
14860
+ return this.allNegative && (this.positiveMap ? this.positiveMap.size === 0 : true);
14861
+ }
14862
+ areAllPositive() {
14863
+ return this.allPositive && (this.negativeMap ? this.negativeMap.size === 0 : true);
14864
+ }
14865
+ makeAllNegative() {
14866
+ this.update({
14867
+ negativeItems: true,
14868
+ positiveItems: []
14869
+ });
14870
+ }
14871
+ makeAllPositive() {
14872
+ this.update({
14873
+ positiveItems: true,
14874
+ negativeItems: []
14875
+ });
14876
+ }
14877
+ isItemPositive(key) {
14878
+ var _a, _b;
14879
+ if (this.allPositive === true) {
14880
+ if (this.allNegative === true) {
14881
+ throw 'Cannot have both positiveItems and negativeItems be "true"';
14882
+ }
14883
+ return !((_a = this.negativeMap) == null ? void 0 : _a.has(key));
14884
+ }
14885
+ return !!((_b = this.positiveMap) == null ? void 0 : _b.has(key));
14886
+ }
14887
+ isItemNegative(key) {
14888
+ return !this.isItemPositive(key);
14889
+ }
14890
+ setItemValue(key, shouldMakePositive) {
14891
+ var _a;
14892
+ if (shouldMakePositive === this.isItemPositive(key)) {
14893
+ return;
14894
+ }
14895
+ if (shouldMakePositive) {
14896
+ if (this.allNegative === true) {
14897
+ if (!this.positiveMap) {
14898
+ throw `No positiveMap found when trying to set item ${key} be positive`;
14899
+ }
14900
+ this.positiveMap.set(key, true);
14901
+ } else if (this.allPositive === true) {
14902
+ if (!this.negativeMap) {
14903
+ throw `No negativeMap found when trying to set item ${key} be positive`;
14904
+ }
14905
+ this.negativeMap.delete(key);
14906
+ }
14907
+ } else {
14908
+ if (this.allPositive === true) {
14909
+ if (!this.negativeMap) {
14910
+ throw `No negativeMap found when trying to set item ${key} be negative`;
14911
+ }
14912
+ this.negativeMap.set(key, true);
14913
+ } else if (this.allNegative === true) {
14914
+ if (!this.positiveMap) {
14915
+ throw `No positiveMap found when trying to set item ${key} be negative`;
14916
+ }
14917
+ (_a = this.positiveMap) == null ? void 0 : _a.delete(key);
14918
+ }
14919
+ }
14920
+ }
14921
+ makeItemNegative(key) {
14922
+ this.setItemValue(key, false);
14923
+ }
14924
+ makeItemPositive(key) {
14925
+ this.setItemValue(key, true);
14926
+ }
14927
+ toggleItem(key) {
14928
+ this.setItemValue(key, !this.isItemPositive(key));
14929
+ }
14930
+ };
14931
+
14932
+ // src/components/DataSource/RowDetailState.ts
14933
+ var RowDetailState = class extends BooleanCollectionState {
14934
+ constructor(state) {
14935
+ super(state);
14936
+ this.isRowDetailsExpanded = (key) => {
14937
+ return !!this.isItemPositive(key);
14938
+ };
14939
+ }
14940
+ getState() {
14941
+ var _a, _b, _c, _d;
14942
+ const expandedRows = this.allPositive ? true : [...(_b = (_a = this.positiveMap) == null ? void 0 : _a.keys()) != null ? _b : []];
14943
+ const collapsedRows = this.allNegative ? true : [...(_d = (_c = this.negativeMap) == null ? void 0 : _c.keys()) != null ? _d : []];
14944
+ return {
14945
+ expandedRows,
14946
+ collapsedRows
14947
+ };
14948
+ }
14949
+ getPositiveFromState(state) {
14950
+ return state.expandedRows;
14951
+ }
14952
+ getNegativeFromState(state) {
14953
+ return state.collapsedRows;
14954
+ }
14955
+ areAllCollapsed() {
14956
+ return this.areAllNegative();
14957
+ }
14958
+ areAllExpanded() {
14959
+ return this.areAllPositive();
14960
+ }
14961
+ collapseAll() {
14962
+ this.makeAllNegative();
14963
+ }
14964
+ expandAll() {
14965
+ this.makeAllPositive();
14966
+ }
14967
+ isRowDetailsCollapsed(key) {
14968
+ return !this.isRowDetailsExpanded(key);
14969
+ }
14970
+ setRowDetailsExpanded(key, shouldExpand) {
14971
+ return this.setItemValue(key, shouldExpand);
14972
+ }
14973
+ collapseRowDetails(key) {
14974
+ this.setRowDetailsExpanded(key, false);
14975
+ }
14976
+ expandRowDetails(key) {
14977
+ this.setRowDetailsExpanded(key, true);
14978
+ }
14979
+ toggleRowDetails(key) {
14980
+ this.toggleItem(key);
14981
+ }
14982
+ };
14983
+
14786
14984
  // src/components/DataSource/types.ts
14787
14985
  var DataSourceActionType = /* @__PURE__ */ ((DataSourceActionType2) => {
14788
14986
  DataSourceActionType2["INIT"] = "INIT";
@@ -15151,271 +15349,74 @@ function getCellSelectionApi(param) {
15151
15349
  return cellSelectionApi;
15152
15350
  }
15153
15351
 
15154
- // src/components/DataSource/BooleanCollectionState.ts
15155
- var BooleanCollectionState = class {
15156
- constructor(state) {
15157
- const stateObject = state instanceof Object.getPrototypeOf(this).constructor ? (
15158
- //@ts-ignore
15159
- state.getState()
15160
- ) : state;
15161
- const positiveItems = this.getPositiveFromState(stateObject);
15162
- const negativeItems = this.getNegativeFromState(stateObject);
15163
- this.update({
15164
- negativeItems,
15165
- positiveItems
15166
- });
15167
- }
15168
- getInitialState() {
15169
- return this.initialState;
15170
- }
15171
- // protected getState(): BooleanCollectionStateObject<KeyType> {
15172
- // return {
15173
- // positiveItems: this.allPositive
15174
- // ? true
15175
- // : this.positiveMap?.topDownKeys() ?? [],
15176
- // negativeItems: this.allNegative
15177
- // ? true
15178
- // : this.negativeMap?.topDownKeys() ?? [],
15179
- // };
15180
- // }
15181
- destroy() {
15182
- var _a, _b;
15183
- (_a = this.positiveMap) == null ? void 0 : _a.clear();
15184
- (_b = this.negativeMap) == null ? void 0 : _b.clear();
15185
- delete this.positiveMap;
15186
- delete this.negativeMap;
15187
- }
15188
- update(state) {
15189
- const { positiveItems, negativeItems } = state;
15190
- this.allNegative = negativeItems === true;
15191
- this.allPositive = positiveItems === true;
15192
- if (this.allNegative && this.allPositive) {
15193
- throw `Cannot have both negativeItems and positiveItems be true!`;
15194
- }
15195
- if (negativeItems && negativeItems !== true) {
15196
- if (!this.negativeMap) {
15197
- this.negativeMap = /* @__PURE__ */ new Map();
15198
- }
15199
- this.negativeMap.clear();
15200
- for (let k of negativeItems) {
15201
- this.negativeMap.set(k, true);
15202
- }
15203
- if (this.positiveMap) {
15204
- this.positiveMap.clear();
15205
- }
15206
- }
15207
- if (positiveItems && positiveItems !== true) {
15208
- if (!this.positiveMap) {
15209
- this.positiveMap = /* @__PURE__ */ new Map();
15210
- }
15211
- this.positiveMap.clear();
15212
- for (let k of positiveItems) {
15213
- this.positiveMap.set(k, true);
15214
- }
15215
- if (this.negativeMap) {
15216
- this.negativeMap.clear();
15217
- }
15218
- }
15219
- }
15220
- isDefaultNegativeSelection() {
15221
- return this.allNegative;
15222
- }
15223
- isDefaultPositiveSelection() {
15224
- return this.allPositive;
15225
- }
15226
- areAllNegative() {
15227
- return this.allNegative && (this.positiveMap ? this.positiveMap.size === 0 : true);
15228
- }
15229
- areAllPositive() {
15230
- return this.allPositive && (this.negativeMap ? this.negativeMap.size === 0 : true);
15231
- }
15232
- makeAllNegative() {
15233
- this.update({
15234
- negativeItems: true,
15235
- positiveItems: []
15236
- });
15237
- }
15238
- makeAllPositive() {
15239
- this.update({
15240
- positiveItems: true,
15241
- negativeItems: []
15242
- });
15243
- }
15244
- isItemPositive(key) {
15245
- var _a, _b;
15246
- if (this.allPositive === true) {
15247
- if (this.allNegative === true) {
15248
- throw 'Cannot have both positiveItems and negativeItems be "true"';
15249
- }
15250
- return !((_a = this.negativeMap) == null ? void 0 : _a.has(key));
15251
- }
15252
- return !!((_b = this.positiveMap) == null ? void 0 : _b.has(key));
15253
- }
15254
- isItemNegative(key) {
15255
- return !this.isItemPositive(key);
15256
- }
15257
- setItemValue(key, shouldMakePositive) {
15258
- var _a;
15259
- if (shouldMakePositive === this.isItemPositive(key)) {
15260
- return;
15261
- }
15262
- if (shouldMakePositive) {
15263
- if (this.allNegative === true) {
15264
- if (!this.positiveMap) {
15265
- throw `No positiveMap found when trying to set item ${key} be positive`;
15266
- }
15267
- this.positiveMap.set(key, true);
15268
- } else if (this.allPositive === true) {
15269
- if (!this.negativeMap) {
15270
- throw `No negativeMap found when trying to set item ${key} be positive`;
15271
- }
15272
- this.negativeMap.delete(key);
15273
- }
15274
- } else {
15275
- if (this.allPositive === true) {
15276
- if (!this.negativeMap) {
15277
- throw `No negativeMap found when trying to set item ${key} be negative`;
15278
- }
15279
- this.negativeMap.set(key, true);
15280
- } else if (this.allNegative === true) {
15281
- if (!this.positiveMap) {
15282
- throw `No positiveMap found when trying to set item ${key} be negative`;
15283
- }
15284
- (_a = this.positiveMap) == null ? void 0 : _a.delete(key);
15285
- }
15286
- }
15287
- }
15288
- makeItemNegative(key) {
15289
- this.setItemValue(key, false);
15290
- }
15291
- makeItemPositive(key) {
15292
- this.setItemValue(key, true);
15293
- }
15294
- toggleItem(key) {
15295
- this.setItemValue(key, !this.isItemPositive(key));
15296
- }
15297
- };
15298
-
15299
- // src/components/DataSource/RowDetailsState.ts
15300
- var RowDetailsState = class extends BooleanCollectionState {
15301
- constructor(state) {
15302
- super(state);
15303
- this.isRowDetailsExpanded = (key) => {
15304
- return !!this.isItemPositive(key);
15305
- };
15306
- }
15307
- getState() {
15308
- var _a, _b, _c, _d;
15309
- const expandedRows = this.allPositive ? true : [...(_b = (_a = this.positiveMap) == null ? void 0 : _a.keys()) != null ? _b : []];
15310
- const collapsedRows = this.allNegative ? true : [...(_d = (_c = this.negativeMap) == null ? void 0 : _c.keys()) != null ? _d : []];
15311
- return {
15312
- expandedRows,
15313
- collapsedRows
15314
- };
15315
- }
15316
- getPositiveFromState(state) {
15317
- return state.expandedRows;
15318
- }
15319
- getNegativeFromState(state) {
15320
- return state.collapsedRows;
15321
- }
15322
- areAllCollapsed() {
15323
- return this.areAllNegative();
15324
- }
15325
- areAllExpanded() {
15326
- return this.areAllPositive();
15327
- }
15328
- collapseAll() {
15329
- this.makeAllNegative();
15330
- }
15331
- expandAll() {
15332
- this.makeAllPositive();
15333
- }
15334
- isRowDetailsCollapsed(key) {
15335
- return !this.isRowDetailsExpanded(key);
15336
- }
15337
- setRowDetailsExpanded(key, shouldExpand) {
15338
- return this.setItemValue(key, shouldExpand);
15339
- }
15340
- collapseRowDetails(key) {
15341
- this.setRowDetailsExpanded(key, false);
15342
- }
15343
- expandRowDetails(key) {
15344
- this.setRowDetailsExpanded(key, true);
15345
- }
15346
- toggleRowDetails(key) {
15347
- this.toggleItem(key);
15348
- }
15349
- };
15350
-
15351
- // src/components/InfiniteTable/api/getRowDetailsApi.ts
15352
- function getRowDetailsApi(param) {
15352
+ // src/components/InfiniteTable/api/getRowDetailApi.ts
15353
+ function getRowDetailApi(param) {
15353
15354
  const {
15354
15355
  dataSourceApi,
15355
15356
  getState,
15356
15357
  actions
15357
15358
  } = param;
15358
- const rowDetailsApi = {
15359
+ const rowDetailApi = {
15359
15360
  collapseAllDetails() {
15360
- actions.rowDetailsState = new RowDetailsState({
15361
+ actions.rowDetailState = new RowDetailState({
15361
15362
  collapsedRows: true,
15362
15363
  expandedRows: []
15363
15364
  });
15364
15365
  },
15365
15366
  expandAllDetails() {
15366
- actions.rowDetailsState = new RowDetailsState({
15367
+ actions.rowDetailState = new RowDetailState({
15367
15368
  expandedRows: true,
15368
15369
  collapsedRows: []
15369
15370
  });
15370
15371
  },
15371
- isRowDetailsCollapsed(pk) {
15372
- const isRowDetailsExpanded = getState().isRowDetailsExpanded;
15373
- if (!isRowDetailsExpanded) {
15372
+ isRowDetailCollapsed(pk) {
15373
+ const isRowDetailExpanded = getState().isRowDetailExpanded;
15374
+ if (!isRowDetailExpanded) {
15374
15375
  return true;
15375
15376
  }
15376
15377
  const rowInfo = dataSourceApi.getRowInfoByPrimaryKey(pk);
15377
15378
  if (!rowInfo) {
15378
15379
  return true;
15379
15380
  }
15380
- const expanded = isRowDetailsExpanded(rowInfo);
15381
+ const expanded = isRowDetailExpanded(rowInfo);
15381
15382
  return !expanded;
15382
15383
  },
15383
- isRowDetailsExpanded(pk) {
15384
- return !rowDetailsApi.isRowDetailsCollapsed(pk);
15384
+ isRowDetailExpanded(pk) {
15385
+ return !rowDetailApi.isRowDetailCollapsed(pk);
15385
15386
  },
15386
- collapseRowDetails(pk) {
15387
- const currentState = getState().rowDetailsState;
15387
+ collapseRowDetail(pk) {
15388
+ const currentState = getState().rowDetailState;
15388
15389
  if (!currentState) {
15389
15390
  console.error(
15390
- `Cannot collapse row details via rowDetailsState, as no props.rowDetailsState is provided.`
15391
+ `Cannot collapse row details via rowDetailState, as no props.rowDetailState is provided.`
15391
15392
  );
15392
15393
  return;
15393
15394
  }
15394
- const state = new RowDetailsState(currentState);
15395
+ const state = new RowDetailState(currentState);
15395
15396
  state.collapseRowDetails(pk);
15396
- actions.rowDetailsState = state;
15397
+ actions.rowDetailState = state;
15397
15398
  },
15398
- expandRowDetails(pk) {
15399
- const currentState = getState().rowDetailsState;
15399
+ expandRowDetail(pk) {
15400
+ const currentState = getState().rowDetailState;
15400
15401
  if (!currentState) {
15401
15402
  console.error(
15402
- `Cannot expand row details via rowDetailsState, as no props.rowDetailsState is provided.`
15403
+ `Cannot expand row details via rowDetailState, as no props.rowDetailState is provided.`
15403
15404
  );
15404
15405
  return;
15405
15406
  }
15406
- const state = new RowDetailsState(currentState);
15407
+ const state = new RowDetailState(currentState);
15407
15408
  state.expandRowDetails(pk);
15408
- actions.rowDetailsState = state;
15409
+ actions.rowDetailState = state;
15409
15410
  },
15410
- toggleRowDetails(pk) {
15411
- if (rowDetailsApi.isRowDetailsExpanded(pk)) {
15412
- rowDetailsApi.collapseRowDetails(pk);
15411
+ toggleRowDetail(pk) {
15412
+ if (rowDetailApi.isRowDetailExpanded(pk)) {
15413
+ rowDetailApi.collapseRowDetail(pk);
15413
15414
  } else {
15414
- rowDetailsApi.expandRowDetails(pk);
15415
+ rowDetailApi.expandRowDetail(pk);
15415
15416
  }
15416
15417
  }
15417
15418
  };
15418
- return rowDetailsApi;
15419
+ return rowDetailApi;
15419
15420
  }
15420
15421
 
15421
15422
  // src/components/InfiniteTable/api/getImperativeApi.ts
@@ -15675,14 +15676,14 @@ var InfiniteTableApiImpl = class {
15675
15676
  return null;
15676
15677
  }
15677
15678
  const self = this;
15678
- const { isRowDetailsEnabled } = getState();
15679
- const rowDetailsState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : this.rowDetailsApi.isRowDetailsExpanded(rowInfo.id) ? "expanded" : "collapsed";
15679
+ const { isRowDetailEnabled: isRowDetailsEnabled } = getState();
15680
+ const rowDetailState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : this.rowDetailApi.isRowDetailExpanded(rowInfo.id) ? "expanded" : "collapsed";
15680
15681
  const valueContext = getFormattedValueContextForCell({
15681
15682
  column,
15682
15683
  rowInfo,
15683
15684
  columnsMap: computedColumnsMap,
15684
15685
  context: __spreadProps(__spreadValues({}, this.context), { api: self }),
15685
- rowDetailState: rowDetailsState
15686
+ rowDetailState
15686
15687
  });
15687
15688
  return {
15688
15689
  value: valueContext.formattedValueContext.value,
@@ -15821,7 +15822,7 @@ var InfiniteTableApiImpl = class {
15821
15822
  dataSourceActions: context.dataSourceActions,
15822
15823
  getDataSourceState: context.getDataSourceState
15823
15824
  });
15824
- this.rowDetailsApi = getRowDetailsApi({
15825
+ this.rowDetailApi = getRowDetailApi({
15825
15826
  getState: context.getState,
15826
15827
  actions: context.actions,
15827
15828
  dataSourceApi: context.dataSourceApi
@@ -16463,8 +16464,8 @@ function useYourBrain(param) {
16463
16464
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableDetailRow.tsx
16464
16465
  var React52 = __toESM(require("react"));
16465
16466
 
16466
- // src/components/InfiniteTable/components/rowDetails.css.ts
16467
- var RowDetailsRecipe = createRuntimeFn({ defaultClassName: "rowDetails_RowDetailsRecipe__1qedcqn0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
16467
+ // src/components/InfiniteTable/components/rowDetail.css.ts
16468
+ var RowDetailRecipe = createRuntimeFn({ defaultClassName: "rowDetail_RowDetailRecipe__evqes20", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
16468
16469
 
16469
16470
  // src/components/InfiniteTable/components/InfiniteTableRow/useRegisterDetail.ts
16470
16471
  var import_react38 = require("react");
@@ -16599,7 +16600,7 @@ function InfiniteTableDetailRowFn(props) {
16599
16600
  "div",
16600
16601
  {
16601
16602
  ref: domRef,
16602
- className: join(InfiniteTableRowDetailsClassName, RowDetailsRecipe({})),
16603
+ className: join(InfiniteTableRowDetailsClassName, RowDetailRecipe({})),
16603
16604
  style: {
16604
16605
  position: "absolute",
16605
16606
  top: `${detailOffset}px`,
@@ -16647,12 +16648,12 @@ function useCellRendering(param) {
16647
16648
  brain,
16648
16649
  showZebraRows,
16649
16650
  rowDetailRenderer,
16650
- isRowDetailsExpanded,
16651
- isRowDetailsEnabled,
16651
+ isRowDetailExpanded: isRowDetailsExpanded,
16652
+ isRowDetailEnabled: isRowDetailsEnabled,
16652
16653
  cellClassName,
16653
16654
  cellStyle,
16654
16655
  rowStyle,
16655
- rowDetailsCache,
16656
+ rowDetailCache: rowDetailsCache,
16656
16657
  rowClassName,
16657
16658
  onScrollToTop,
16658
16659
  onScrollToBottom,
@@ -17403,9 +17404,9 @@ var forwardProps4 = (setupState) => {
17403
17404
  scrollStopDelay: (scrollStopDelay) => scrollStopDelay != null ? scrollStopDelay : 250,
17404
17405
  viewportReservedWidth: (viewportReservedWidth) => viewportReservedWidth != null ? viewportReservedWidth : 0,
17405
17406
  resizableColumns: (resizableColumns) => resizableColumns != null ? resizableColumns : true,
17406
- rowDetailsCache: (rowDetailsCache) => {
17407
- return new RowDetailsCache(
17408
- rowDetailsCache
17407
+ rowDetailCache: (rowDetailCache) => {
17408
+ return new RowDetailCache(
17409
+ rowDetailCache
17409
17410
  );
17410
17411
  },
17411
17412
  hideColumnWhenGrouped: (hideColumnWhenGrouped) => hideColumnWhenGrouped != null ? hideColumnWhenGrouped : false,
@@ -17510,34 +17511,34 @@ var mapPropsToState = (params) => {
17510
17511
  groupBy,
17511
17512
  groupColumn: props.groupColumn
17512
17513
  });
17513
- let rowDetailsState = void 0;
17514
+ let rowDetailState = void 0;
17514
17515
  if (props.rowDetailRenderer) {
17515
- rowDetailsState = props.rowDetailsState || state.rowDetailsState || props.defaultRowDetailsState;
17516
- if (rowDetailsState && !(rowDetailsState instanceof RowDetailsState)) {
17517
- rowDetailsState = new RowDetailsState(rowDetailsState);
17516
+ rowDetailState = props.rowDetailState || state.rowDetailState || props.defaultRowDetailState;
17517
+ if (rowDetailState && !(rowDetailState instanceof RowDetailState)) {
17518
+ rowDetailState = new RowDetailState(rowDetailState);
17518
17519
  }
17519
- rowDetailsState = rowDetailsState || new RowDetailsState({ expandedRows: [], collapsedRows: true });
17520
+ rowDetailState = rowDetailState || new RowDetailState({ expandedRows: [], collapsedRows: true });
17520
17521
  }
17521
17522
  const computedColumns = state.columnsWhenGrouping || state.columnsWhenInlineGroupRenderStrategy || state.columns;
17522
- let isRowDetailsExpanded = rowDetailsState ? props.isRowDetailsExpanded : void 0;
17523
- if (!isRowDetailsExpanded && rowDetailsState) {
17524
- isRowDetailsExpanded = weakMap.get(rowDetailsState);
17525
- if (!isRowDetailsExpanded) {
17526
- isRowDetailsExpanded = (rowInfo) => {
17527
- return rowDetailsState.isRowDetailsExpanded(
17523
+ let isRowDetailExpanded = rowDetailState ? props.isRowDetailExpanded : void 0;
17524
+ if (!isRowDetailExpanded && rowDetailState) {
17525
+ isRowDetailExpanded = weakMap.get(rowDetailState);
17526
+ if (!isRowDetailExpanded) {
17527
+ isRowDetailExpanded = (rowInfo) => {
17528
+ return rowDetailState.isRowDetailsExpanded(
17528
17529
  rowInfo.id
17529
17530
  );
17530
17531
  };
17531
- if (typeof rowDetailsState === "object") {
17532
- weakMap.set(rowDetailsState, isRowDetailsExpanded);
17532
+ if (typeof rowDetailState === "object") {
17533
+ weakMap.set(rowDetailState, isRowDetailExpanded);
17533
17534
  }
17534
17535
  }
17535
17536
  }
17536
- const isRowDetailsEnabled = !props.rowDetailRenderer ? false : props.isRowDetailsEnabled || true;
17537
+ const isRowDetailEnabled = !props.rowDetailRenderer ? false : props.isRowDetailEnabled || true;
17537
17538
  return {
17538
- rowDetailsState,
17539
- isRowDetailsExpanded,
17540
- isRowDetailsEnabled,
17539
+ rowDetailState,
17540
+ isRowDetailExpanded,
17541
+ isRowDetailEnabled,
17541
17542
  showColumnFilters: (_a = props.showColumnFilters) != null ? _a : !!parentState.filterValue,
17542
17543
  controlledColumnVisibility: !!props.columnVisibility,
17543
17544
  groupRenderStrategy,
@@ -18408,8 +18409,8 @@ function useComputed() {
18408
18409
  columnTypes,
18409
18410
  rowHeight,
18410
18411
  rowDetailHeight,
18411
- isRowDetailsExpanded,
18412
- isRowDetailsEnabled,
18412
+ isRowDetailExpanded: isRowDetailsExpanded,
18413
+ isRowDetailEnabled: isRowDetailsEnabled,
18413
18414
  brain,
18414
18415
  bodySize,
18415
18416
  showSeparatePivotColumnForSingleAggregation
@@ -18730,7 +18731,7 @@ var useLicense = (licenseKey = "") => {
18730
18731
  const valid = (0, import_react53.useMemo)(() => {
18731
18732
  let valid2 = isValidLicense(licenseKey, {
18732
18733
  publishedAt: 1624970570587,
18733
- version: "3.2.2"
18734
+ version: "3.2.3"
18734
18735
  });
18735
18736
  if (!licenseKey && !valid2 && isInsidePlayground) {
18736
18737
  return true;
@@ -19268,7 +19269,7 @@ var RETRIES3 = 10;
19268
19269
  var SORT_ASC2 = (a, b) => a - b;
19269
19270
  function isCellFocusable(cellPos, context) {
19270
19271
  const { getComputed, getDataSourceState, getState, api, dataSourceApi } = context;
19271
- const { editingCell, isRowDetailsEnabled } = getState();
19272
+ const { editingCell, isRowDetailEnabled: isRowDetailsEnabled } = getState();
19272
19273
  const { dataArray } = getDataSourceState();
19273
19274
  const { computedVisibleColumns, computedColumnsMap } = getComputed();
19274
19275
  const column = computedVisibleColumns[cellPos.colIndex];
@@ -19285,7 +19286,7 @@ function isCellFocusable(cellPos, context) {
19285
19286
  return true;
19286
19287
  }
19287
19288
  const rowInfo = dataArray[cellPos.rowIndex];
19288
- const rowDetailState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : api.rowDetailsApi.isRowDetailsExpanded(rowInfo.id) ? "expanded" : "collapsed";
19289
+ const rowDetailState = !isRowDetailsEnabled || typeof isRowDetailsEnabled === "function" && !isRowDetailsEnabled(rowInfo) ? false : api.rowDetailApi.isRowDetailExpanded(rowInfo.id) ? "expanded" : "collapsed";
19289
19290
  const columnApi = getColumnApiForColumn(column.id, context);
19290
19291
  return column.contentFocusable(__spreadProps(__spreadValues({
19291
19292
  column
@@ -22571,7 +22572,8 @@ var components = {
22571
22572
  InfiniteTableClassName,
22572
22573
  InfiniteTableComponent,
22573
22574
  Menu,
22574
- RowDetailsCache,
22575
+ RowDetailCache,
22576
+ RowDetailState,
22575
22577
  RowSelectionState,
22576
22578
  WeakFixedSizeSet,
22577
22579
  components,