@infinite-table/infinite-react 2.0.8 → 3.0.1

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.mjs CHANGED
@@ -1357,8 +1357,8 @@ function stripVar(cssVariableWithVarString) {
1357
1357
  }
1358
1358
 
1359
1359
  // src/components/InfiniteTable/theme.css.ts
1360
- var InternalVars = { currentColumnWidth: "var(--currentColumnWidth__1slvgu90)", currentColumnTransformX: "var(--currentColumnTransformX__1slvgu91)", currentColumnTransformY: "var(--currentColumnTransformY__1slvgu92)", activeCellRowOffset: "var(--activeCellRowOffset__1slvgu93)", activeCellRowHeight: "var(--activeCellRowHeight__1slvgu94)", activeCellOffsetX: "var(--activeCellOffsetX__1slvgu95)", activeCellOffsetY: "var(--activeCellOffsetY__1slvgu96)", scrollTopForActiveRow: "var(--scrollTopForActiveRow__1slvgu97)", activeCellColWidth: "var(--activeCellColWidth__1slvgu98)", activeCellColOffset: "var(--activeCellColOffset__1slvgu99)", columnReorderEffectDurationAtIndex: "var(--columnReorderEffectDurationAtIndex__1slvgu9a)", columnWidthAtIndex: "var(--columnWidthAtIndex__1slvgu9b)", columnOffsetAtIndex: "var(--columnOffsetAtIndex__1slvgu9c)", columnOffsetAtIndexWhileReordering: "var(--columnOffsetAtIndexWhileReordering__1slvgu9d)", columnZIndexAtIndex: "var(--columnZIndexAtIndex__1slvgu9e)", pinnedStartWidth: "var(--pinnedStartWidth__1slvgu9f)", pinnedEndWidth: "var(--pinnedEndWidth__1slvgu9g)", pinnedEndOffset: "var(--pinnedEndOffset__1slvgu9h)", computedVisibleColumnsCount: "var(--computedVisibleColumnsCount__1slvgu9i)", baseZIndexForCells: "var(--baseZIndexForCells__1slvgu9j)", bodyWidth: "var(--bodyWidth__1slvgu9k)", bodyHeight: "var(--bodyHeight__1slvgu9l)", scrollbarWidthHorizontal: "var(--scrollbarWidthHorizontal__1slvgu9m)", scrollbarWidthVertical: "var(--scrollbarWidthVertical__1slvgu9n)", scrollLeft: "var(--scrollLeft__1slvgu9o)", scrollTop: "var(--scrollTop__1slvgu9p)" };
1361
- 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)" }, 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)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", 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)" }, 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)" } } };
1360
+ var InternalVars = { currentColumnTransformX: "var(--currentColumnTransformX__1slvgu90)", currentColumnTransformY: "var(--currentColumnTransformY__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)" };
1361
+ 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)" }, 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)", 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)", 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)" }, 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)" } } };
1362
1362
  var columnHeaderHeightName = "column-header-height";
1363
1363
 
1364
1364
  // src/utils/selectParent.ts
@@ -5126,22 +5126,22 @@ var createRuntimeFn = (config) => (options) => {
5126
5126
 
5127
5127
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
5128
5128
  var CellCls = "cell_CellCls__1eexc2a5 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_position_absolute__16lm1iw2 utilities_willChange_transform__16lm1iw21 utilities_whiteSpace_nowrap__16lm1iw22 utilities_userSelect_none__16lm1iw16";
5129
- var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob11v utilities_height_100%__16lm1iw18 utilities_width_100%__16lm1iw1a utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_justifyContent_start__16lm1iw1u", variantClassNames: { filtered: { false: "header_HeaderCellContentRecipe_filtered_false__12zfob11w", true: "header_HeaderCellContentRecipe_filtered_true__12zfob11x" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob11y", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob11z", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob120" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob121", end: "header_HeaderCellContentRecipe_align_end__12zfob122", center: "header_HeaderCellContentRecipe_align_center__12zfob123" } }, defaultVariants: {}, compoundVariants: [] });
5129
+ var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob11x utilities_height_100%__16lm1iw18 utilities_width_100%__16lm1iw1a utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_justifyContent_start__16lm1iw1u", variantClassNames: { filtered: { false: "header_HeaderCellContentRecipe_filtered_false__12zfob11y", true: "header_HeaderCellContentRecipe_filtered_true__12zfob11z" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob120", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob121", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob122" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob123", end: "header_HeaderCellContentRecipe_align_end__12zfob124", center: "header_HeaderCellContentRecipe_align_center__12zfob125" } }, defaultVariants: {}, compoundVariants: [] });
5130
5130
  var HeaderCellProxy = "header_HeaderCellProxy__12zfob1m utilities_whiteSpace_nowrap__16lm1iw22 utilities_textOverflow_ellipsis__16lm1iw23 utilities_overflow_hidden__16lm1iw1w";
5131
- var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellRecipe__12zfob1n utilities_display_block__16lm1iw11", variantClassNames: { rowActive: { false: "header_HeaderCellRecipe_rowActive_false__12zfob1o", true: "header_HeaderCellRecipe_rowActive_true__12zfob1p" }, rowSelected: { false: "header_HeaderCellRecipe_rowSelected_false__12zfob1q", true: "header_HeaderCellRecipe_rowSelected_true__12zfob1r", null: "header_HeaderCellRecipe_rowSelected_null__12zfob1s" }, groupRow: { false: "header_HeaderCellRecipe_groupRow_false__12zfob1t", true: "header_HeaderCellRecipe_groupRow_true__12zfob1u" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob1v", true: "header_HeaderCellRecipe_groupCell_true__12zfob1w" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob1x", end: "header_HeaderCellRecipe_align_end__12zfob1y", center: "header_HeaderCellRecipe_align_center__12zfob1z" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob110", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob111", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob112" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob113", even: "header_HeaderCellRecipe_zebra_even__12zfob114", odd: "header_HeaderCellRecipe_zebra_odd__12zfob115" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob116", false: "header_HeaderCellRecipe_dragging_false__12zfob117" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob118", false: "header_HeaderCellRecipe_first_false__12zfob119" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11a", false: "header_HeaderCellRecipe_last_false__12zfob11b" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11c", false: "header_HeaderCellRecipe_groupByField_false__12zfob11d" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11e", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11f" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11g", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11h" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11i", end: "header_HeaderCellRecipe_pinned_end__12zfob11j", false: "header_HeaderCellRecipe_pinned_false__12zfob11k" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11l", false: "header_HeaderCellRecipe_filtered_false__12zfob11m" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11n"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11o"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob11p"]] });
5131
+ var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellRecipe__12zfob1n utilities_display_block__16lm1iw11", variantClassNames: { rowActive: { false: "header_HeaderCellRecipe_rowActive_false__12zfob1o", true: "header_HeaderCellRecipe_rowActive_true__12zfob1p" }, cellSelected: { false: "header_HeaderCellRecipe_cellSelected_false__12zfob1q", true: "header_HeaderCellRecipe_cellSelected_true__12zfob1r" }, rowSelected: { false: "header_HeaderCellRecipe_rowSelected_false__12zfob1s", true: "header_HeaderCellRecipe_rowSelected_true__12zfob1t", null: "header_HeaderCellRecipe_rowSelected_null__12zfob1u" }, groupRow: { false: "header_HeaderCellRecipe_groupRow_false__12zfob1v", true: "header_HeaderCellRecipe_groupRow_true__12zfob1w" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob1x", true: "header_HeaderCellRecipe_groupCell_true__12zfob1y" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob1z", end: "header_HeaderCellRecipe_align_end__12zfob110", center: "header_HeaderCellRecipe_align_center__12zfob111" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob112", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob113", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob114" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob115", even: "header_HeaderCellRecipe_zebra_even__12zfob116", odd: "header_HeaderCellRecipe_zebra_odd__12zfob117" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob118", false: "header_HeaderCellRecipe_dragging_false__12zfob119" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob11a", false: "header_HeaderCellRecipe_first_false__12zfob11b" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11c", false: "header_HeaderCellRecipe_last_false__12zfob11d" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11e", false: "header_HeaderCellRecipe_groupByField_false__12zfob11f" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11g", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11h" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11i", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11j" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11k", end: "header_HeaderCellRecipe_pinned_end__12zfob11l", false: "header_HeaderCellRecipe_pinned_false__12zfob11m" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11n", false: "header_HeaderCellRecipe_filtered_false__12zfob11o" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11p"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11q"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob11r"]] });
5132
5132
  var HeaderClsRecipe = createRuntimeFn({ defaultClassName: "header_HeaderClsRecipe__12zfob18 utilities_display_block__16lm1iw11 utilities_position_absolute__16lm1iw2", variantClassNames: { pinned: { start: "header_HeaderClsRecipe_pinned_start__12zfob19", end: "header_HeaderClsRecipe_pinned_end__12zfob1a", false: "header_HeaderClsRecipe_pinned_false__12zfob1b" }, firstInCategory: { true: "header_HeaderClsRecipe_firstInCategory_true__12zfob1c", false: "header_HeaderClsRecipe_firstInCategory_false__12zfob1d" }, lastInCategory: { true: "header_HeaderClsRecipe_lastInCategory_true__12zfob1e", false: "header_HeaderClsRecipe_lastInCategory_false__12zfob1f" }, overflow: { true: "header_HeaderClsRecipe_overflow_true__12zfob1g", false: "header_HeaderClsRecipe_overflow_false__12zfob1h" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "header_HeaderClsRecipe_compound_0__12zfob1i"], [{ pinned: "start", firstInCategory: true }, "header_HeaderClsRecipe_compound_1__12zfob1j"], [{ overflow: true, pinned: "end" }, "header_HeaderClsRecipe_compound_2__12zfob1k"], [{ pinned: "end", lastInCategory: true }, "header_HeaderClsRecipe_compound_3__12zfob1l"]] });
5133
- var HeaderFilterCls = "header_HeaderFilterCls__12zfob126 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_stretch__16lm1iw1q utilities_position_relative__16lm1iw1";
5134
- var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12b utilities_width_100%__16lm1iw1a utilities_height_100%__16lm1iw18";
5133
+ var HeaderFilterCls = "header_HeaderFilterCls__12zfob128 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_stretch__16lm1iw1q utilities_position_relative__16lm1iw1";
5134
+ var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12d utilities_width_100%__16lm1iw1a utilities_height_100%__16lm1iw18";
5135
5135
  var HeaderFilterIconIndexCls = "header_HeaderFilterIconIndexCls__12zfob16";
5136
- var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob127 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_position_relative__16lm1iw1";
5137
- var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob128 utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1b", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob129", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12a" } }, defaultVariants: {}, compoundVariants: [] });
5138
- var HeaderGroupCls = "header_HeaderGroupCls__12zfob125 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p";
5139
- var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob11q utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwy utilities_flexFlow_column__16lm1iw1l utilities_justifyContent_spaceAround__16lm1iw1t utilities_visibility_hidden__16lm1iw20", variantClassNames: { menuVisible: { true: "header_HeaderMenuIconCls_menuVisible_true__12zfob11r" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob11s", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob11t" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob11u"]] });
5136
+ var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob129 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_position_relative__16lm1iw1";
5137
+ var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob12a utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1b", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob12b", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12c" } }, defaultVariants: {}, compoundVariants: [] });
5138
+ var HeaderGroupCls = "header_HeaderGroupCls__12zfob127 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p";
5139
+ var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob11s utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwy utilities_flexFlow_column__16lm1iw1l utilities_justifyContent_spaceAround__16lm1iw1t utilities_visibility_hidden__16lm1iw20", variantClassNames: { menuVisible: { true: "header_HeaderMenuIconCls_menuVisible_true__12zfob11t" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob11u", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob11v" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob11w"]] });
5140
5140
  var HeaderScrollbarPlaceholderCls = "header_HeaderScrollbarPlaceholderCls__12zfob17 utilities_position_absolute__16lm1iw2";
5141
5141
  var HeaderSortIconCls = "utilities_position_relative__16lm1iw1";
5142
5142
  var HeaderSortIconIndexCls = "header_HeaderSortIconIndexCls__12zfob15";
5143
5143
  var HeaderSortIconRecipe = createRuntimeFn({ defaultClassName: "", variantClassNames: { align: { start: "header_HeaderSortIconRecipe_align_start__12zfob12", center: "header_HeaderSortIconRecipe_align_center__12zfob13", end: "header_HeaderSortIconRecipe_align_end__12zfob14" } }, defaultVariants: {}, compoundVariants: [] });
5144
- var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob124 utilities_overflow_hidden__16lm1iw1w utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n";
5144
+ var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob126 utilities_overflow_hidden__16lm1iw1w utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n";
5145
5145
 
5146
5146
  // src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts
5147
5147
  var InfiniteTableIconClassName = "InfiniteTableIcon";
@@ -6548,6 +6548,7 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
6548
6548
  firstInCategory: column.computedFirstInCategory,
6549
6549
  lastInCategory: column.computedLastInCategory,
6550
6550
  pinned: column.computedPinned || false,
6551
+ cellSelected: extraFlags.cellSelected || false,
6551
6552
  rowSelected: (_a = extraFlags.rowSelected) != null ? _a : "null",
6552
6553
  rowActive: extraFlags.rowActive,
6553
6554
  dragging: extraFlags.dragging,
@@ -6577,6 +6578,9 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
6577
6578
  if (extraFlags.rowSelected) {
6578
6579
  result.push(...baseClasses.map((c) => `${c}--row-selected`));
6579
6580
  }
6581
+ if (extraFlags.cellSelected) {
6582
+ result.push(...baseClasses.map((c) => `${c}--cell-selected`));
6583
+ }
6580
6584
  if (extraFlags.groupRow) {
6581
6585
  result.push(...baseClasses.map((c) => `${c}--group-row`));
6582
6586
  result.push(
@@ -6605,9 +6609,7 @@ var InfiniteClsHasPinnedEnd = "InfiniteCls_InfiniteClsHasPinnedEnd__1yeub2vo";
6605
6609
  var InfiniteClsHasPinnedStart = "InfiniteCls_InfiniteClsHasPinnedStart__1yeub2vn";
6606
6610
  var InfiniteClsRecipe = createRuntimeFn({ defaultClassName: "", variantClassNames: { focused: { true: "InfiniteCls_InfiniteClsRecipe_focused_true__1yeub2v2", false: "InfiniteCls_InfiniteClsRecipe_focused_false__1yeub2v3" }, focusedWithin: { true: "InfiniteCls_InfiniteClsRecipe_focusedWithin_true__1yeub2v4", false: "InfiniteCls_InfiniteClsRecipe_focusedWithin_false__1yeub2v5" }, hasPinnedStart: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_true__1yeub2v6", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_false__1yeub2v7" }, hasPinnedEnd: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_true__1yeub2v8", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_false__1yeub2v9" }, hasPinnedStartOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_true__1yeub2va", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_false__1yeub2vb" }, hasPinnedEndOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_true__1yeub2vc", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_false__1yeub2vd" } }, defaultVariants: {}, compoundVariants: [[{ focused: false, focusedWithin: false }, "InfiniteCls_InfiniteClsRecipe_compound_0__1yeub2ve"]] });
6607
6611
  var InfiniteClsShiftingColumns = "InfiniteCls_shiftingcols__1yeub2vl";
6608
- var PinnedEndIndicatorBorder = "InfiniteCls_PinnedEndIndicatorBorder__1yeub2vr InfiniteCls_PinnedIndicatorCls__1yeub2vp utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1b utilities_cursor_colResize__16lm1iwj utilities_userSelect_none__16lm1iw16 utilities_width_0__16lm1iw19 utilities_visibility_hidden__16lm1iw20 utilities_pointerEvents_none__16lm1iwk utilities_zIndex_10000000__16lm1iwu";
6609
6612
  var PinnedRowsContainerClsVariants = createRuntimeFn({ defaultClassName: "", variantClassNames: { pinned: { start: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_start__1yeub2vi", end: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_end__1yeub2vj", false: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_false__1yeub2vk" } }, defaultVariants: {}, compoundVariants: [] });
6610
- var PinnedStartIndicatorBorder = "InfiniteCls_PinnedStartIndicatorBorder__1yeub2vq InfiniteCls_PinnedIndicatorCls__1yeub2vp utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1b utilities_cursor_colResize__16lm1iwj utilities_userSelect_none__16lm1iw16 utilities_width_0__16lm1iw19 utilities_visibility_hidden__16lm1iw20 utilities_pointerEvents_none__16lm1iwk utilities_zIndex_10000000__16lm1iwu";
6611
6613
 
6612
6614
  // src/components/InfiniteTable/utils/rafFn.ts
6613
6615
  var rafFn = (fn) => {
@@ -7744,7 +7746,8 @@ function objectValuesExcept(obj, exceptList) {
7744
7746
 
7745
7747
  // src/components/InfiniteTable/components/cell.css.ts
7746
7748
  var ColumnCellCls = "cell_ColumnCellCls__1eexc2a6 cell_CellCls__1eexc2a5 utilities_display_flex__16lm1iwy utilities_flexFlow_row__16lm1iw1n utilities_alignItems_center__16lm1iw1p utilities_position_absolute__16lm1iw2 utilities_willChange_transform__16lm1iw21 utilities_whiteSpace_nowrap__16lm1iw22 utilities_userSelect_none__16lm1iw16";
7747
- var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2a8", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2a9", true: "cell_ColumnCellRecipe_dragging_true__1eexc2aa" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2ab", end: "cell_ColumnCellRecipe_align_end__1eexc2ac", center: "cell_ColumnCellRecipe_align_center__1eexc2ad" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2ae", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2af", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2ag" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2ah", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2ai" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2aj", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2ak" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2al", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2am" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2an", even: "cell_ColumnCellRecipe_zebra_even__1eexc2ao", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2ap" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2aq", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2ar", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2as" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2at", false: "cell_ColumnCellRecipe_first_false__1eexc2au" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2av", false: "cell_ColumnCellRecipe_last_false__1eexc2aw" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2ax", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2ay" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2az", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a10" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a11", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a12" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a13", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a14", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a15" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a16", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a17" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_0__1eexc2a18"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a19"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1a"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1b"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_4__1eexc2a1c"]] });
7749
+ var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2ah", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2ai", true: "cell_ColumnCellRecipe_dragging_true__1eexc2aj" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ak", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2al" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2am", end: "cell_ColumnCellRecipe_align_end__1eexc2an", center: "cell_ColumnCellRecipe_align_center__1eexc2ao" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2ap", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2aq", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2ar" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2as", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2at" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2au", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2av" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2aw", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2ax" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2ay", even: "cell_ColumnCellRecipe_zebra_even__1eexc2az", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a10" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a11", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a12", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a13" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a14", false: "cell_ColumnCellRecipe_first_false__1eexc2a15" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a16", false: "cell_ColumnCellRecipe_last_false__1eexc2a17" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a18", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a19" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1a", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1b" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1c", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1d" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1e", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1f", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1g" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1h", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1i" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_0__1eexc2a1j"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1k"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1l"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1m"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_4__1eexc2a1n"]] });
7750
+ var ColumnCellSelectionIndicatorRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellSelectionIndicatorRecipe__1eexc2a8", variantClassNames: { right: { true: "cell_ColumnCellSelectionIndicatorRecipe_right_true__1eexc2a9", false: "cell_ColumnCellSelectionIndicatorRecipe_right_false__1eexc2aa" }, left: { true: "cell_ColumnCellSelectionIndicatorRecipe_left_true__1eexc2ab", false: "cell_ColumnCellSelectionIndicatorRecipe_left_false__1eexc2ac" }, top: { true: "cell_ColumnCellSelectionIndicatorRecipe_top_true__1eexc2ad", false: "cell_ColumnCellSelectionIndicatorRecipe_top_false__1eexc2ae" }, bottom: { true: "cell_ColumnCellSelectionIndicatorRecipe_bottom_true__1eexc2af", false: "cell_ColumnCellSelectionIndicatorRecipe_bottom_false__1eexc2ag" } }, defaultVariants: {}, compoundVariants: [] });
7748
7751
  var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
7749
7752
 
7750
7753
  // src/components/InfiniteTable/components/CheckBox.tsx
@@ -7931,6 +7934,7 @@ function getColumnRenderingParams(options) {
7931
7934
  };
7932
7935
  }
7933
7936
  function getColumnRenderParam(options) {
7937
+ var _a;
7934
7938
  const {
7935
7939
  column,
7936
7940
  context,
@@ -7946,7 +7950,7 @@ function getColumnRenderParam(options) {
7946
7950
  const { editingCell } = getState();
7947
7951
  const { indexInAll: rowIndex } = rowInfo;
7948
7952
  const dataSourceState = getDataSourceState();
7949
- const { selectionMode } = dataSourceState;
7953
+ const { selectionMode, cellSelection } = dataSourceState;
7950
7954
  const groupByColumn = getGroupByColumnReference({
7951
7955
  rowInfo,
7952
7956
  column,
@@ -7954,21 +7958,35 @@ function getColumnRenderParam(options) {
7954
7958
  groupRenderStrategy: context.getState().groupRenderStrategy
7955
7959
  });
7956
7960
  const toggleGroupRow = imperativeApi.toggleGroupRow;
7961
+ const cellSelected = (_a = cellSelection == null ? void 0 : cellSelection.isCellSelected(rowInfo.id, column.id)) != null ? _a : false;
7957
7962
  const renderParam = __spreadProps(__spreadValues({
7958
7963
  column,
7959
7964
  columnsMap,
7960
7965
  fieldsToColumn,
7961
7966
  align: align2,
7962
- verticalAlign
7967
+ verticalAlign,
7968
+ cellSelected
7963
7969
  }, formattedValueContext), {
7964
7970
  editError: editingCell && editingCell.primaryKey === rowInfo.id && editingCell.columnId === column.id && !editingCell.active && editingCell.accepted instanceof Error ? editingCell.accepted : void 0,
7965
7971
  groupByColumn,
7966
7972
  selectionMode,
7967
7973
  api: imperativeApi,
7968
- selectRow: imperativeApi.selectionApi.selectRow,
7969
- deselectRow: imperativeApi.selectionApi.deselectRow,
7970
- toggleRowSelection: imperativeApi.selectionApi.toggleRowSelection,
7971
- toggleGroupRowSelection: imperativeApi.selectionApi.toggleGroupRowSelection,
7974
+ selectRow: imperativeApi.rowSelectionApi.selectRow,
7975
+ deselectRow: imperativeApi.rowSelectionApi.deselectRow,
7976
+ toggleRowSelection: imperativeApi.rowSelectionApi.toggleRowSelection,
7977
+ toggleGroupRowSelection: imperativeApi.rowSelectionApi.toggleGroupRowSelection,
7978
+ selectCell: () => {
7979
+ imperativeApi.cellSelectionApi.selectCell({
7980
+ rowId: rowInfo.id,
7981
+ colId: column.id
7982
+ });
7983
+ },
7984
+ deselectCell: () => {
7985
+ imperativeApi.cellSelectionApi.deselectCell({
7986
+ rowId: rowInfo.id,
7987
+ colId: column.id
7988
+ });
7989
+ },
7972
7990
  renderBag: {
7973
7991
  all: null,
7974
7992
  value: typeof value === "boolean" ? `${value}` : value,
@@ -7976,13 +7994,13 @@ function getColumnRenderParam(options) {
7976
7994
  groupIcon: null
7977
7995
  },
7978
7996
  selectCurrentRow: () => {
7979
- return imperativeApi.selectionApi.selectRow(
7997
+ return imperativeApi.rowSelectionApi.selectRow(
7980
7998
  rowInfo.id,
7981
7999
  rowInfo.dataSourceHasGrouping ? rowInfo.groupKeys : void 0
7982
8000
  );
7983
8001
  },
7984
8002
  deselectCurrentRow: () => {
7985
- return imperativeApi.selectionApi.deselectRow(
8003
+ return imperativeApi.rowSelectionApi.deselectRow(
7986
8004
  rowInfo.id,
7987
8005
  rowInfo.dataSourceHasGrouping ? rowInfo.groupKeys : void 0
7988
8006
  );
@@ -7999,13 +8017,13 @@ function getColumnRenderParam(options) {
7999
8017
  if (rowInfo.isGroupRow) {
8000
8018
  return;
8001
8019
  }
8002
- return imperativeApi.selectionApi.toggleRowSelection(rowInfo.id);
8020
+ return imperativeApi.rowSelectionApi.toggleRowSelection(rowInfo.id);
8003
8021
  },
8004
8022
  toggleCurrentGroupRowSelection: () => {
8005
8023
  if (!rowInfo.isGroupRow) {
8006
8024
  return;
8007
8025
  }
8008
- return imperativeApi.selectionApi.toggleGroupRowSelection(
8026
+ return imperativeApi.rowSelectionApi.toggleGroupRowSelection(
8009
8027
  rowInfo.isGroupRow ? rowInfo.groupKeys : []
8010
8028
  );
8011
8029
  },
@@ -8246,7 +8264,9 @@ function InfiniteTableColumnCellFn(props) {
8246
8264
  rowInfo,
8247
8265
  rowStyle,
8248
8266
  rowClassName,
8249
- // getData,
8267
+ getData,
8268
+ cellStyle,
8269
+ cellClassName,
8250
8270
  width,
8251
8271
  column,
8252
8272
  onMouseLeave,
@@ -8267,6 +8287,7 @@ function InfiniteTableColumnCellFn(props) {
8267
8287
  const {
8268
8288
  getState,
8269
8289
  actions: componentActions,
8290
+ computed,
8270
8291
  api: imperativeApi
8271
8292
  } = useInfiniteTable();
8272
8293
  const {
@@ -8332,7 +8353,8 @@ function InfiniteTableColumnCellFn(props) {
8332
8353
  },
8333
8354
  [rowIndex, column.computedVisibleIndex, keyboardNavigation]
8334
8355
  );
8335
- const { selectionMode } = dataSourceState;
8356
+ const { selectionMode, cellSelection } = dataSourceState;
8357
+ const cellSelected = renderParam.cellSelected;
8336
8358
  renderParam.domRef = domRef;
8337
8359
  renderParam.selectCurrentRow = useCallback12(renderParam.selectCurrentRow, [
8338
8360
  rowInfo
@@ -8462,6 +8484,12 @@ function InfiniteTableColumnCellFn(props) {
8462
8484
  stylingParam
8463
8485
  );
8464
8486
  }
8487
+ if (cellClassName) {
8488
+ colClassName = join(
8489
+ colClassName,
8490
+ applyColumnClassName(cellClassName, stylingParam)
8491
+ );
8492
+ }
8465
8493
  if (column.className) {
8466
8494
  colClassName = join(
8467
8495
  colClassName,
@@ -8475,6 +8503,9 @@ function InfiniteTableColumnCellFn(props) {
8475
8503
  if (rowStyle) {
8476
8504
  style2 = typeof rowStyle === "function" ? __spreadValues(__spreadValues({}, style2), rowStyle(rowPropsAndStyleArgs)) : __spreadValues(__spreadValues({}, style2), rowStyle);
8477
8505
  }
8506
+ if (cellStyle) {
8507
+ style2 = applyColumnStyle(style2, cellStyle, stylingParam);
8508
+ }
8478
8509
  if (groupByColumnReference == null ? void 0 : groupByColumnReference.style) {
8479
8510
  style2 = applyColumnStyle(style2, groupByColumnReference.style, stylingParam);
8480
8511
  }
@@ -8490,6 +8521,36 @@ function InfiniteTableColumnCellFn(props) {
8490
8521
  );
8491
8522
  const odd = (rowInfo.indexInAll != null ? rowInfo.indexInAll : rowIndex) % 2 === 1;
8492
8523
  const zebra = showZebraRows ? odd ? "odd" : "even" : false;
8524
+ let topSelectionBorder = false;
8525
+ let leftSelectionBorder = false;
8526
+ let rightSelectionBorder = false;
8527
+ let bottomSelectionBorder = false;
8528
+ if (cellSelection && cellSelected) {
8529
+ const arr = getData();
8530
+ const topRowInfo = arr[rowInfo.indexInAll - 1];
8531
+ const bottomRowInfo = arr[rowInfo.indexInAll + 1];
8532
+ const nextColumn = computed.computedVisibleColumns[column.computedVisibleIndex + 1];
8533
+ const prevColumn = computed.computedVisibleColumns[column.computedVisibleIndex - 1];
8534
+ topSelectionBorder = topRowInfo ? !cellSelection.isCellSelected(topRowInfo.id, column.id) : true;
8535
+ if (column.computedPinned === "end" && column.computedFirstInCategory) {
8536
+ leftSelectionBorder = true;
8537
+ } else {
8538
+ leftSelectionBorder = prevColumn ? !cellSelection.isCellSelected(rowInfo.id, prevColumn.id) : true;
8539
+ }
8540
+ if (column.computedPinned === "start" && column.computedLastInCategory) {
8541
+ rightSelectionBorder = true;
8542
+ } else {
8543
+ rightSelectionBorder = nextColumn ? !cellSelection.isCellSelected(rowInfo.id, nextColumn.id) : true;
8544
+ }
8545
+ bottomSelectionBorder = bottomRowInfo ? !cellSelection.isCellSelected(bottomRowInfo.id, column.id) : true;
8546
+ }
8547
+ const cellSelectionBorders = cellSelection && cellSelected ? {
8548
+ top: topSelectionBorder,
8549
+ left: leftSelectionBorder,
8550
+ right: rightSelectionBorder,
8551
+ bottom: bottomSelectionBorder
8552
+ } : null;
8553
+ const afterChildren = editor;
8493
8554
  const cellProps = {
8494
8555
  domRef,
8495
8556
  cellType: "body",
@@ -8500,10 +8561,11 @@ function InfiniteTableColumnCellFn(props) {
8500
8561
  onMouseLeave,
8501
8562
  onMouseEnter,
8502
8563
  onClick,
8503
- afterChildren: editor,
8564
+ afterChildren,
8504
8565
  onMouseDown,
8505
8566
  cssEllipsis: (_c = column.cssEllipsis) != null ? _c : true,
8506
8567
  className: join(
8568
+ cellSelectionBorders ? ColumnCellSelectionIndicatorRecipe(cellSelectionBorders) : "",
8507
8569
  useCellClassName(
8508
8570
  column,
8509
8571
  [InfiniteTableColumnCellClassName, InfiniteTableCellClassName],
@@ -8514,6 +8576,7 @@ function InfiniteTableColumnCellFn(props) {
8514
8576
  align: align2,
8515
8577
  verticalAlign,
8516
8578
  rowActive,
8579
+ cellSelected,
8517
8580
  rowSelected,
8518
8581
  groupRow: rowInfo.isGroupRow,
8519
8582
  groupCell: rowInfo.isGroupRow ? !!column.groupByForColumn : false,
@@ -8869,7 +8932,7 @@ function getColumnGroupResizer(colIndexes, config) {
8869
8932
 
8870
8933
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/ResizeHandle.css.ts
8871
8934
  var ResizeHandleCls = "ResizeHandle_ResizeHandleCls__zneyzh0 utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1b utilities_right_0__16lm1iw1i utilities_bottom_0__16lm1iw1g utilities_cursor_colResize__16lm1iwj utilities_overflow_hidden__16lm1iw1w";
8872
- var ResizeHandleDraggerClsRecipe = createRuntimeFn({ defaultClassName: "ResizeHandle_ResizeHandleDraggerClsRecipe__zneyzhb utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1b utilities_bottom_0__16lm1iw1g", variantClassNames: { constrained: { false: "ResizeHandle_ResizeHandleDraggerClsRecipe_constrained_false__zneyzhc", true: "ResizeHandle_ResizeHandleDraggerClsRecipe_constrained_true__zneyzhd" } }, defaultVariants: {}, compoundVariants: [] });
8935
+ var ResizeHandleDraggerClsRecipe = createRuntimeFn({ defaultClassName: "ResizeHandle_ResizeHandleDraggerClsRecipe__zneyzhb utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1b utilities_bottom_0__16lm1iw1g", variantClassNames: { constrained: { false: "ResizeHandle_ResizeHandleDraggerClsRecipe_constrained_false__zneyzhc", true: "ResizeHandle_ResizeHandleDraggerClsRecipe_constrained_true__zneyzhd" }, computedPinned: { start: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedPinned_start__zneyzhe", end: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedPinned_end__zneyzhf", false: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedPinned_false__zneyzhg" }, computedFirstInCategory: { true: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedFirstInCategory_true__zneyzhh", false: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedFirstInCategory_false__zneyzhi" }, computedLastInCategory: { true: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedLastInCategory_true__zneyzhj", false: "ResizeHandle_ResizeHandleDraggerClsRecipe_computedLastInCategory_false__zneyzhk" } }, defaultVariants: {}, compoundVariants: [[{ computedPinned: "start", computedLastInCategory: true }, "ResizeHandle_ResizeHandleDraggerClsRecipe_compound_0__zneyzhl"], [{ computedPinned: "end", computedFirstInCategory: true }, "ResizeHandle_ResizeHandleDraggerClsRecipe_compound_1__zneyzhm"]] });
8873
8936
  var ResizeHandleRecipeCls = createRuntimeFn({ defaultClassName: "", variantClassNames: { computedPinned: { start: "ResizeHandle_ResizeHandleRecipeCls_computedPinned_start__zneyzh1", end: "ResizeHandle_ResizeHandleRecipeCls_computedPinned_end__zneyzh2 utilities_left_0__16lm1iw1d utilities_right_auto__16lm1iw1k", false: "ResizeHandle_ResizeHandleRecipeCls_computedPinned_false__zneyzh3" }, computedFirstInCategory: { true: "ResizeHandle_ResizeHandleRecipeCls_computedFirstInCategory_true__zneyzh4", false: "ResizeHandle_ResizeHandleRecipeCls_computedFirstInCategory_false__zneyzh5" }, computedLastInCategory: { true: "ResizeHandle_ResizeHandleRecipeCls_computedLastInCategory_true__zneyzh6", false: "ResizeHandle_ResizeHandleRecipeCls_computedLastInCategory_false__zneyzh7" } }, defaultVariants: {}, compoundVariants: [[{ computedPinned: "end", computedLastInCategory: false, computedFirstInCategory: true }, "ResizeHandle_ResizeHandleRecipeCls_compound_0__zneyzh8"], [{ computedPinned: false, computedFirstInCategory: false, computedLastInCategory: true }, "ResizeHandle_ResizeHandleRecipeCls_compound_1__zneyzh9"], [{ computedPinned: "start", computedFirstInCategory: false, computedLastInCategory: true }, "ResizeHandle_ResizeHandleRecipeCls_compound_2__zneyzha"]] });
8874
8937
 
8875
8938
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/index.tsx
@@ -8949,7 +9012,10 @@ function ResizeHandleFn(props) {
8949
9012
  {
8950
9013
  style: style2,
8951
9014
  className: ResizeHandleDraggerClsRecipe({
8952
- constrained
9015
+ constrained,
9016
+ computedPinned,
9017
+ computedFirstInCategory,
9018
+ computedLastInCategory
8953
9019
  })
8954
9020
  }
8955
9021
  )
@@ -9043,9 +9109,9 @@ var defaultRenderSelectionCheckBox2 = (params) => {
9043
9109
  },
9044
9110
  onChange: (selected2) => {
9045
9111
  if (selected2) {
9046
- api.selectionApi.selectAll();
9112
+ api.rowSelectionApi.selectAll();
9047
9113
  } else {
9048
- api.selectionApi.deselectAll();
9114
+ api.rowSelectionApi.deselectAll();
9049
9115
  }
9050
9116
  },
9051
9117
  checked: selected
@@ -9382,6 +9448,7 @@ function InfiniteTableHeaderCell(props) {
9382
9448
  align: align2,
9383
9449
  verticalAlign,
9384
9450
  rowSelected: false,
9451
+ cellSelected: false,
9385
9452
  zebra: false,
9386
9453
  rowActive: false,
9387
9454
  groupCell: false,
@@ -10177,6 +10244,9 @@ var sharedValueGetterParamsFlyweightObject = Object.seal({
10177
10244
  // src/utils/groupAndPivot/index.ts
10178
10245
  var LAZY_ROOT_KEY_FOR_GROUPS = "____root____";
10179
10246
  var NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
10247
+ function returnFalse() {
10248
+ return false;
10249
+ }
10180
10250
  function initReducers(reducers) {
10181
10251
  if (!reducers || !Object.keys(reducers).length) {
10182
10252
  return {};
@@ -10609,6 +10679,7 @@ function getEnhancedGroupData(options, deepMapValue) {
10609
10679
  //TODO improve this
10610
10680
  collapsed: false,
10611
10681
  dataSourceHasGrouping: true,
10682
+ isCellSelected: returnFalse,
10612
10683
  selfLoaded,
10613
10684
  error: options.error,
10614
10685
  parents,
@@ -10744,6 +10815,7 @@ function enhancedFlatten(param) {
10744
10815
  const rowInfo = {
10745
10816
  id: itemId,
10746
10817
  data: item,
10818
+ isCellSelected: returnFalse,
10747
10819
  dataSourceHasGrouping: true,
10748
10820
  isGroupRow: false,
10749
10821
  selfLoaded: !!item,
@@ -10984,6 +11056,14 @@ var DataSourceCache = class {
10984
11056
  }
10985
11057
  };
10986
11058
 
11059
+ // src/components/DataSource/dataSourceGetters.ts
11060
+ function getRowInfoAt(rowIndex, getState) {
11061
+ return getState().dataArray[rowIndex];
11062
+ }
11063
+ function getRowInfoArray(getState) {
11064
+ return getState().dataArray;
11065
+ }
11066
+
10987
11067
  // src/components/DataSource/getDataSourceApi.ts
10988
11068
  function getDataSourceApi(param) {
10989
11069
  return new DataSourceApiImpl(param);
@@ -10993,15 +11073,149 @@ var DataSourceApiImpl = class {
10993
11073
  this.pendingOperations = [];
10994
11074
  this.pendingPromise = null;
10995
11075
  this.resolvePendingPromise = null;
11076
+ this.toPrimaryKey = (data) => {
11077
+ return this.getState().toPrimaryKey(data);
11078
+ };
11079
+ this.getRowInfoArray = () => {
11080
+ return getRowInfoArray(this.getState);
11081
+ };
11082
+ this.getRowInfoByIndex = (index) => {
11083
+ var _a;
11084
+ return (_a = getRowInfoAt(index, this.getState)) != null ? _a : null;
11085
+ };
11086
+ this.getRowInfoByPrimaryKey = (id) => {
11087
+ const index = this.getIndexByPrimaryKey(id);
11088
+ return this.getRowInfoByIndex(index);
11089
+ };
11090
+ this.getIndexByPrimaryKey = (id) => {
11091
+ var _a;
11092
+ const map2 = this.getState().idToIndexMap;
11093
+ return (_a = map2.get(id)) != null ? _a : -1;
11094
+ };
11095
+ this.getPrimaryKeyByIndex = (index) => {
11096
+ const rowInfo = this.getRowInfoByIndex(index);
11097
+ return rowInfo ? rowInfo.id : void 0;
11098
+ };
10996
11099
  this.getOriginalDataArray = () => {
10997
11100
  return this.getState().originalDataArray;
10998
11101
  };
11102
+ this.getDataByPrimaryKey = (id) => {
11103
+ var _a;
11104
+ const { indexer } = this.getState();
11105
+ return (_a = indexer.getDataForPrimaryKey(id)) != null ? _a : null;
11106
+ };
11107
+ this.updateData = (data, options) => {
11108
+ return this.updateDataArray([data], options);
11109
+ };
11110
+ this.updateDataArray = (data, options) => {
11111
+ const result = this.batchOperation({
11112
+ type: "update",
11113
+ array: data,
11114
+ primaryKeys: data.map((d) => {
11115
+ return this.toPrimaryKey(d);
11116
+ }),
11117
+ metadata: options == null ? void 0 : options.metadata
11118
+ });
11119
+ if (options == null ? void 0 : options.flush) {
11120
+ this.commit();
11121
+ }
11122
+ return result;
11123
+ };
11124
+ this.removeDataByPrimaryKey = (id, options) => {
11125
+ const result = this.batchOperation({
11126
+ type: "delete",
11127
+ primaryKeys: [id],
11128
+ metadata: options == null ? void 0 : options.metadata
11129
+ });
11130
+ if (options == null ? void 0 : options.flush) {
11131
+ this.commit();
11132
+ }
11133
+ return result;
11134
+ };
11135
+ this.removeData = (data, options) => {
11136
+ const result = this.batchOperation({
11137
+ type: "delete",
11138
+ primaryKeys: [this.toPrimaryKey(data)],
11139
+ metadata: options == null ? void 0 : options.metadata
11140
+ });
11141
+ if (options == null ? void 0 : options.flush) {
11142
+ this.commit();
11143
+ }
11144
+ return result;
11145
+ };
11146
+ this.removeDataArrayByPrimaryKeys = (ids, options) => {
11147
+ const result = this.batchOperation({
11148
+ type: "delete",
11149
+ primaryKeys: ids,
11150
+ metadata: options == null ? void 0 : options.metadata
11151
+ });
11152
+ if (options == null ? void 0 : options.flush) {
11153
+ this.commit();
11154
+ }
11155
+ return result;
11156
+ };
11157
+ this.removeDataArray = (data, options) => {
11158
+ const result = this.batchOperation({
11159
+ type: "delete",
11160
+ primaryKeys: data.map(this.toPrimaryKey),
11161
+ metadata: options == null ? void 0 : options.metadata
11162
+ });
11163
+ if (options == null ? void 0 : options.flush) {
11164
+ this.commit();
11165
+ }
11166
+ return result;
11167
+ };
11168
+ this.addData = (data, options) => {
11169
+ return this.addDataArray([data], options);
11170
+ };
11171
+ this.addDataArray = (data, options) => {
11172
+ return this.insertDataArray(data, __spreadProps(__spreadValues({}, options), {
11173
+ position: "end"
11174
+ }));
11175
+ };
11176
+ this.insertData = (data, options) => {
11177
+ return this.insertDataArray([data], options);
11178
+ };
11179
+ this.insertDataArray = (data, options) => {
11180
+ let position2 = "before";
11181
+ let primaryKey = void 0;
11182
+ if (options.position === "before" || options.position === "after") {
11183
+ position2 = options.position;
11184
+ primaryKey = options.primaryKey;
11185
+ } else {
11186
+ const arr = this.getOriginalDataArray();
11187
+ if (options.position === "start") {
11188
+ position2 = "before";
11189
+ primaryKey = this.toPrimaryKey(arr[0]);
11190
+ } else {
11191
+ position2 = "after";
11192
+ primaryKey = this.toPrimaryKey(arr[arr.length - 1]);
11193
+ }
11194
+ }
11195
+ const result = this.batchOperation({
11196
+ type: "insert",
11197
+ array: data,
11198
+ position: position2,
11199
+ metadata: options == null ? void 0 : options.metadata,
11200
+ primaryKey
11201
+ });
11202
+ if (options == null ? void 0 : options.flush) {
11203
+ this.commit();
11204
+ }
11205
+ return result;
11206
+ };
11207
+ this.setSortInfo = (sortInfo) => {
11208
+ const multiSort = this.getState().multiSort;
11209
+ if (Array.isArray(sortInfo)) {
11210
+ this.actions.sortInfo = sortInfo.length ? multiSort ? sortInfo : sortInfo[0] : null;
11211
+ return;
11212
+ }
11213
+ this.actions.sortInfo = sortInfo;
11214
+ return;
11215
+ };
10999
11216
  this.getState = param.getState;
11000
11217
  this.actions = param.actions;
11001
11218
  }
11002
- toPrimaryKey(data) {
11003
- return this.getState().toPrimaryKey(data);
11004
- }
11005
11219
  batchOperation(operation) {
11006
11220
  if (!this.pendingPromise) {
11007
11221
  this.pendingPromise = new Promise((resolve) => {
@@ -11072,140 +11286,6 @@ var DataSourceApiImpl = class {
11072
11286
  this.resolvePendingPromise = null;
11073
11287
  }
11074
11288
  }
11075
- getRowInfoArray() {
11076
- return this.getState().dataArray;
11077
- }
11078
- getRowInfoByIndex(index) {
11079
- var _a;
11080
- return (_a = this.getRowInfoArray()[index]) != null ? _a : null;
11081
- }
11082
- getRowInfoByPrimaryKey(id) {
11083
- const index = this.getIndexByPrimaryKey(id);
11084
- return this.getRowInfoByIndex(index);
11085
- }
11086
- getIndexByPrimaryKey(id) {
11087
- var _a;
11088
- const map2 = this.getState().idToIndexMap;
11089
- return (_a = map2.get(id)) != null ? _a : -1;
11090
- }
11091
- getPrimaryKeyByIndex(index) {
11092
- const rowInfo = this.getRowInfoByIndex(index);
11093
- return rowInfo ? rowInfo.id : void 0;
11094
- }
11095
- getDataByPrimaryKey(id) {
11096
- var _a;
11097
- const { indexer } = this.getState();
11098
- return (_a = indexer.getDataForPrimaryKey(id)) != null ? _a : null;
11099
- }
11100
- updateData(data, options) {
11101
- return this.updateDataArray([data], options);
11102
- }
11103
- updateDataArray(data, options) {
11104
- const result = this.batchOperation({
11105
- type: "update",
11106
- array: data,
11107
- primaryKeys: data.map((d) => {
11108
- return this.toPrimaryKey(d);
11109
- }),
11110
- metadata: options == null ? void 0 : options.metadata
11111
- });
11112
- if (options == null ? void 0 : options.flush) {
11113
- this.commit();
11114
- }
11115
- return result;
11116
- }
11117
- removeDataByPrimaryKey(id, options) {
11118
- const result = this.batchOperation({
11119
- type: "delete",
11120
- primaryKeys: [id],
11121
- metadata: options == null ? void 0 : options.metadata
11122
- });
11123
- if (options == null ? void 0 : options.flush) {
11124
- this.commit();
11125
- }
11126
- return result;
11127
- }
11128
- removeData(data, options) {
11129
- const result = this.batchOperation({
11130
- type: "delete",
11131
- primaryKeys: [this.toPrimaryKey(data)],
11132
- metadata: options == null ? void 0 : options.metadata
11133
- });
11134
- if (options == null ? void 0 : options.flush) {
11135
- this.commit();
11136
- }
11137
- return result;
11138
- }
11139
- removeDataArrayByPrimaryKeys(ids, options) {
11140
- const result = this.batchOperation({
11141
- type: "delete",
11142
- primaryKeys: ids,
11143
- metadata: options == null ? void 0 : options.metadata
11144
- });
11145
- if (options == null ? void 0 : options.flush) {
11146
- this.commit();
11147
- }
11148
- return result;
11149
- }
11150
- removeDataArray(data, options) {
11151
- const result = this.batchOperation({
11152
- type: "delete",
11153
- primaryKeys: data.map(this.toPrimaryKey),
11154
- metadata: options == null ? void 0 : options.metadata
11155
- });
11156
- if (options == null ? void 0 : options.flush) {
11157
- this.commit();
11158
- }
11159
- return result;
11160
- }
11161
- addData(data, options) {
11162
- return this.addDataArray([data], options);
11163
- }
11164
- addDataArray(data, options) {
11165
- return this.insertDataArray(data, __spreadProps(__spreadValues({}, options), {
11166
- position: "end"
11167
- }));
11168
- }
11169
- insertData(data, options) {
11170
- return this.insertDataArray([data], options);
11171
- }
11172
- insertDataArray(data, options) {
11173
- let position2 = "before";
11174
- let primaryKey = void 0;
11175
- if (options.position === "before" || options.position === "after") {
11176
- position2 = options.position;
11177
- primaryKey = options.primaryKey;
11178
- } else {
11179
- const arr = this.getOriginalDataArray();
11180
- if (options.position === "start") {
11181
- position2 = "before";
11182
- primaryKey = this.toPrimaryKey(arr[0]);
11183
- } else {
11184
- position2 = "after";
11185
- primaryKey = this.toPrimaryKey(arr[arr.length - 1]);
11186
- }
11187
- }
11188
- const result = this.batchOperation({
11189
- type: "insert",
11190
- array: data,
11191
- position: position2,
11192
- metadata: options == null ? void 0 : options.metadata,
11193
- primaryKey
11194
- });
11195
- if (options == null ? void 0 : options.flush) {
11196
- this.commit();
11197
- }
11198
- return result;
11199
- }
11200
- setSortInfo(sortInfo) {
11201
- const multiSort = this.getState().multiSort;
11202
- if (Array.isArray(sortInfo)) {
11203
- this.actions.sortInfo = sortInfo.length ? multiSort ? sortInfo : sortInfo[0] : null;
11204
- return;
11205
- }
11206
- this.actions.sortInfo = sortInfo;
11207
- return;
11208
- }
11209
11289
  };
11210
11290
  function getCacheAffectedParts(state) {
11211
11291
  const cache = state.cache;
@@ -11529,6 +11609,18 @@ function useEffectWithChanges(fn, deps) {
11529
11609
  }, useEffectDeps);
11530
11610
  }
11531
11611
 
11612
+ // src/utils/composeFunctions.ts
11613
+ function composeFunctions(...fns) {
11614
+ const f = (...args) => {
11615
+ fns.forEach((fn) => {
11616
+ if (typeof fn === "function") {
11617
+ fn(...args);
11618
+ }
11619
+ });
11620
+ };
11621
+ return f;
11622
+ }
11623
+
11532
11624
  // src/utils/groupAndPivot/getPivotColumnsAndColumnGroups.ts
11533
11625
  function prepareColumn(column) {
11534
11626
  const { pivotByAtIndex: pivotByForColumn, pivotAggregator } = column;
@@ -11778,7 +11870,7 @@ function getGroupKeysForDataItem(data, groupBy) {
11778
11870
  }, []);
11779
11871
  }
11780
11872
 
11781
- // src/components/InfiniteTable/api/getSelectionApi.ts
11873
+ // src/components/InfiniteTable/api/getRowSelectionApi.ts
11782
11874
  function cloneRowSelection(rowSelection, stateOrGetDataSourceState) {
11783
11875
  return new RowSelectionState(
11784
11876
  rowSelection,
@@ -11799,7 +11891,7 @@ function rowSelectionStateConfigGetter(stateOrStateGetter) {
11799
11891
  };
11800
11892
  };
11801
11893
  }
11802
- function getSelectionApi(param) {
11894
+ function getRowSelectionApi(param) {
11803
11895
  const {
11804
11896
  // getComputed,
11805
11897
  // getState,
@@ -11807,7 +11899,7 @@ function getSelectionApi(param) {
11807
11899
  // componentActions,
11808
11900
  dataSourceActions
11809
11901
  } = param;
11810
- const selectionApi = {
11902
+ const rowSelectionApi = {
11811
11903
  get allRowsSelected() {
11812
11904
  return getDataSourceState().allRowsSelected;
11813
11905
  },
@@ -12010,11 +12102,307 @@ function getSelectionApi(param) {
12010
12102
  }
12011
12103
  };
12012
12104
  if (false) {
12013
- globalThis.selectionApi = selectionApi;
12105
+ globalThis.rowSelectionApi = rowSelectionApi;
12014
12106
  }
12015
- return selectionApi;
12107
+ return rowSelectionApi;
12016
12108
  }
12017
12109
 
12110
+ // src/components/DataSource/CellSelectionState.ts
12111
+ var WILDCARD = "*";
12112
+ var CellSelectionState = class {
12113
+ constructor(clone) {
12114
+ this.wildcard = WILDCARD;
12115
+ this.cache = new DeepMap();
12116
+ this.selectedRowsToColumns = /* @__PURE__ */ new Map();
12117
+ this.selectedColumnsToRows = /* @__PURE__ */ new Map();
12118
+ this.deselectedRowsToColumns = /* @__PURE__ */ new Map();
12119
+ this.deselectedColumnsToRows = /* @__PURE__ */ new Map();
12120
+ this.defaultSelection = false;
12121
+ this.deselectAll = () => {
12122
+ this.update({
12123
+ defaultSelection: false,
12124
+ selectedCells: []
12125
+ });
12126
+ };
12127
+ this.selectAll = () => {
12128
+ this.update({
12129
+ defaultSelection: true,
12130
+ deselectedCells: []
12131
+ });
12132
+ };
12133
+ const stateObject = clone && clone instanceof Object.getPrototypeOf(this).constructor ? clone.getState() : clone;
12134
+ if (stateObject) {
12135
+ this.update(stateObject);
12136
+ }
12137
+ }
12138
+ selectCell(rowId, colId) {
12139
+ this.setCellSelected(rowId, colId, true);
12140
+ }
12141
+ deselectCell(rowId, colId) {
12142
+ this.setCellSelected(rowId, colId, false);
12143
+ }
12144
+ selectColumn(colId) {
12145
+ this.setCellSelected(this.wildcard, colId, true);
12146
+ }
12147
+ deselectColumn(colId) {
12148
+ this.setCellSelected(this.wildcard, colId, false);
12149
+ }
12150
+ setCellSelected(rowId, colId, selected) {
12151
+ const wildcardRow = rowId === this.wildcard;
12152
+ const wildcardColumn = colId === this.wildcard;
12153
+ const isSelected = this.isCellSelected(rowId, colId);
12154
+ if (isSelected === selected) {
12155
+ return;
12156
+ }
12157
+ const clearKeys = [];
12158
+ if (wildcardRow) {
12159
+ const deselectedRowsForColumn = this.deselectedColumnsToRows.get(colId);
12160
+ const selectedRowsForColumn = this.selectedColumnsToRows.get(colId);
12161
+ deselectedRowsForColumn == null ? void 0 : deselectedRowsForColumn.forEach((rowId2) => {
12162
+ if (rowId2 === this.wildcard) {
12163
+ return;
12164
+ }
12165
+ this.setCellInDeselection(rowId2, colId, false);
12166
+ });
12167
+ selectedRowsForColumn == null ? void 0 : selectedRowsForColumn.forEach((rowId2) => {
12168
+ if (rowId2 === this.wildcard) {
12169
+ return;
12170
+ }
12171
+ this.setCellInSelection(rowId2, colId, false);
12172
+ });
12173
+ [...this.cache.keys()].forEach((key) => {
12174
+ const [rowId2, c] = key;
12175
+ if (c === colId) {
12176
+ clearKeys.push([rowId2, colId]);
12177
+ }
12178
+ });
12179
+ }
12180
+ if (wildcardColumn) {
12181
+ const deselectedColumnsForRow = this.deselectedRowsToColumns.get(colId);
12182
+ const selectedColumnsForRow = this.selectedRowsToColumns.get(colId);
12183
+ deselectedColumnsForRow == null ? void 0 : deselectedColumnsForRow.forEach((colId2) => {
12184
+ if (colId2 === this.wildcard) {
12185
+ return;
12186
+ }
12187
+ this.setCellInDeselection(rowId, colId2, false);
12188
+ });
12189
+ selectedColumnsForRow == null ? void 0 : selectedColumnsForRow.forEach((colId2) => {
12190
+ if (colId2 === this.wildcard) {
12191
+ return;
12192
+ }
12193
+ this.setCellInSelection(rowId, colId2, false);
12194
+ });
12195
+ [...this.cache.keys()].forEach((key) => {
12196
+ const [row] = key;
12197
+ if (row === rowId) {
12198
+ clearKeys.push([rowId, colId]);
12199
+ }
12200
+ });
12201
+ }
12202
+ const cacheKey = [rowId, colId];
12203
+ clearKeys.forEach((key) => {
12204
+ this.cache.delete(key);
12205
+ });
12206
+ this.cache.delete(cacheKey);
12207
+ if (selected) {
12208
+ if (this.defaultSelection) {
12209
+ const cellsForThisRow = this.deselectedRowsToColumns.get(rowId);
12210
+ if (cellsForThisRow && cellsForThisRow.has(colId)) {
12211
+ this.setCellInDeselection(rowId, colId, false);
12212
+ }
12213
+ const deselectedColumnsForWildcardRow = this.deselectedRowsToColumns.get(this.wildcard);
12214
+ const deselectedRowsForWildcardColumn = this.deselectedColumnsToRows.get(this.wildcard);
12215
+ if ((deselectedColumnsForWildcardRow == null ? void 0 : deselectedColumnsForWildcardRow.has(colId)) || (deselectedRowsForWildcardColumn == null ? void 0 : deselectedRowsForWildcardColumn.has(rowId))) {
12216
+ this.setCellInSelection(rowId, colId, true);
12217
+ }
12218
+ } else {
12219
+ const cellsForThisRow = this.deselectedRowsToColumns.get(rowId);
12220
+ if (cellsForThisRow && cellsForThisRow.has(colId)) {
12221
+ this.setCellInDeselection(rowId, colId, false);
12222
+ }
12223
+ this.setCellInSelection(rowId, colId, true);
12224
+ }
12225
+ } else {
12226
+ if (this.defaultSelection) {
12227
+ const cellsForThisRow = this.selectedRowsToColumns.get(rowId);
12228
+ if (cellsForThisRow == null ? void 0 : cellsForThisRow.has(colId)) {
12229
+ this.setCellInSelection(rowId, colId, false);
12230
+ }
12231
+ this.setCellInDeselection(rowId, colId, true);
12232
+ } else {
12233
+ const cellsForThisRow = this.selectedRowsToColumns.get(rowId);
12234
+ if (cellsForThisRow == null ? void 0 : cellsForThisRow.has(colId)) {
12235
+ this.setCellInSelection(rowId, colId, false);
12236
+ }
12237
+ const selectedColumnsForWildcardRow = this.selectedRowsToColumns.get(
12238
+ this.wildcard
12239
+ );
12240
+ const selectedRowsForWildcardColumn = this.selectedColumnsToRows.get(
12241
+ this.wildcard
12242
+ );
12243
+ if ((selectedColumnsForWildcardRow == null ? void 0 : selectedColumnsForWildcardRow.has(colId)) || (selectedRowsForWildcardColumn == null ? void 0 : selectedRowsForWildcardColumn.has(rowId))) {
12244
+ this.setCellInDeselection(rowId, colId, true);
12245
+ return;
12246
+ }
12247
+ }
12248
+ }
12249
+ }
12250
+ setCellInDeselection(rowId, colId, selected) {
12251
+ if (selected) {
12252
+ const deselectedColsForRow = this.deselectedRowsToColumns.get(rowId) || /* @__PURE__ */ new Set();
12253
+ deselectedColsForRow.add(colId);
12254
+ this.deselectedRowsToColumns.set(rowId, deselectedColsForRow);
12255
+ } else {
12256
+ const deselectedColsForRow = this.deselectedRowsToColumns.get(rowId);
12257
+ if (deselectedColsForRow) {
12258
+ deselectedColsForRow.delete(colId);
12259
+ if (deselectedColsForRow.size === 0) {
12260
+ this.deselectedRowsToColumns.delete(rowId);
12261
+ }
12262
+ }
12263
+ }
12264
+ if (selected) {
12265
+ const deselectedRowsForColumn = this.deselectedColumnsToRows.get(colId) || /* @__PURE__ */ new Set();
12266
+ deselectedRowsForColumn.add(rowId);
12267
+ this.deselectedColumnsToRows.set(colId, deselectedRowsForColumn);
12268
+ } else {
12269
+ const deselectedRowsForColumn = this.deselectedColumnsToRows.get(colId);
12270
+ if (deselectedRowsForColumn) {
12271
+ deselectedRowsForColumn.delete(rowId);
12272
+ if (deselectedRowsForColumn.size === 0) {
12273
+ this.deselectedColumnsToRows.delete(colId);
12274
+ }
12275
+ }
12276
+ }
12277
+ }
12278
+ setCellInSelection(rowId, colId, selected) {
12279
+ if (rowId === this.wildcard && colId === this.wildcard) {
12280
+ throw new Error(
12281
+ "rowId and colId cannot be used as a wildcard at the same time!"
12282
+ );
12283
+ }
12284
+ if (selected) {
12285
+ const selectedColsForRow = this.selectedRowsToColumns.get(rowId) || /* @__PURE__ */ new Set();
12286
+ selectedColsForRow.add(colId);
12287
+ this.selectedRowsToColumns.set(rowId, selectedColsForRow);
12288
+ } else {
12289
+ const selectedColsForRow = this.selectedRowsToColumns.get(rowId);
12290
+ if (selectedColsForRow) {
12291
+ selectedColsForRow.delete(colId);
12292
+ if (selectedColsForRow.size === 0) {
12293
+ this.selectedRowsToColumns.delete(rowId);
12294
+ }
12295
+ }
12296
+ }
12297
+ if (selected) {
12298
+ const selectedRowsForColumn = this.selectedColumnsToRows.get(colId) || /* @__PURE__ */ new Set();
12299
+ selectedRowsForColumn.add(rowId);
12300
+ this.selectedColumnsToRows.set(colId, selectedRowsForColumn);
12301
+ } else {
12302
+ const selectedRowsForColumn = this.selectedColumnsToRows.get(colId);
12303
+ if (selectedRowsForColumn) {
12304
+ selectedRowsForColumn.delete(rowId);
12305
+ if (selectedRowsForColumn.size === 0) {
12306
+ this.selectedColumnsToRows.delete(colId);
12307
+ }
12308
+ }
12309
+ }
12310
+ }
12311
+ update(stateObject) {
12312
+ const selectedCells = stateObject.selectedCells || null;
12313
+ const deselectedCells = stateObject.deselectedCells || null;
12314
+ this.selectedRowsToColumns.clear();
12315
+ this.selectedColumnsToRows.clear();
12316
+ this.deselectedRowsToColumns.clear();
12317
+ this.deselectedColumnsToRows.clear();
12318
+ this.cache.clear();
12319
+ if (selectedCells) {
12320
+ selectedCells.forEach(([rowId, colId]) => {
12321
+ this.setCellInSelection(rowId, colId, true);
12322
+ });
12323
+ }
12324
+ if (deselectedCells) {
12325
+ deselectedCells.forEach(([rowId, colId]) => {
12326
+ this.setCellInDeselection(rowId, colId, true);
12327
+ });
12328
+ }
12329
+ this.defaultSelection = stateObject.defaultSelection;
12330
+ }
12331
+ isCellSelected(rowId, colId) {
12332
+ var _a, _b;
12333
+ const cacheKey = [rowId, colId];
12334
+ const { cache } = this;
12335
+ const selected = cache.get(cacheKey);
12336
+ if (selected != null) {
12337
+ return selected;
12338
+ }
12339
+ const returnFalse3 = () => {
12340
+ cache.set(cacheKey, false);
12341
+ return false;
12342
+ };
12343
+ const returnTrue = () => {
12344
+ cache.set(cacheKey, true);
12345
+ return true;
12346
+ };
12347
+ const deselectedRowsForWildcardColumn = this.deselectedColumnsToRows.get(
12348
+ this.wildcard
12349
+ );
12350
+ const deselectedColumnsForWildcardRow = this.deselectedRowsToColumns.get(
12351
+ this.wildcard
12352
+ );
12353
+ const selectedRowsForWildcardColumn = this.selectedColumnsToRows.get(
12354
+ this.wildcard
12355
+ );
12356
+ const selectedColumnsForWildcardRow = this.selectedRowsToColumns.get(
12357
+ this.wildcard
12358
+ );
12359
+ let defaultSelection = this.defaultSelection;
12360
+ if (defaultSelection) {
12361
+ const cols2 = this.deselectedRowsToColumns.get(rowId);
12362
+ if (cols2 && cols2.has(colId)) {
12363
+ return returnFalse3();
12364
+ }
12365
+ if ((deselectedRowsForWildcardColumn == null ? void 0 : deselectedRowsForWildcardColumn.has(rowId)) || (deselectedColumnsForWildcardRow == null ? void 0 : deselectedColumnsForWildcardRow.has(colId))) {
12366
+ if ((_a = this.selectedRowsToColumns.get(rowId)) == null ? void 0 : _a.has(colId)) {
12367
+ return returnTrue();
12368
+ }
12369
+ return returnFalse3();
12370
+ }
12371
+ return returnTrue();
12372
+ }
12373
+ const cols = this.selectedRowsToColumns.get(rowId);
12374
+ if (cols && cols.has(colId)) {
12375
+ return returnTrue();
12376
+ }
12377
+ if ((selectedRowsForWildcardColumn == null ? void 0 : selectedRowsForWildcardColumn.has(rowId)) || (selectedColumnsForWildcardRow == null ? void 0 : selectedColumnsForWildcardRow.has(colId))) {
12378
+ if ((_b = this.deselectedRowsToColumns.get(rowId)) == null ? void 0 : _b.has(colId)) {
12379
+ return returnFalse3();
12380
+ }
12381
+ return returnTrue();
12382
+ }
12383
+ return returnFalse3();
12384
+ }
12385
+ getState() {
12386
+ const deselectedCells = [];
12387
+ const selectedCells = [];
12388
+ this.deselectedRowsToColumns.forEach((cols, rowId) => {
12389
+ cols.forEach((colId) => {
12390
+ deselectedCells.push([rowId, colId]);
12391
+ });
12392
+ });
12393
+ this.selectedRowsToColumns.forEach((cols, rowId) => {
12394
+ cols.forEach((colId) => {
12395
+ selectedCells.push([rowId, colId]);
12396
+ });
12397
+ });
12398
+ return {
12399
+ defaultSelection: this.defaultSelection,
12400
+ deselectedCells,
12401
+ selectedCells
12402
+ };
12403
+ }
12404
+ };
12405
+
12018
12406
  // src/components/DataSource/RowSelectionState.ts
12019
12407
  var RowSelectionState = class {
12020
12408
  constructor(state, getConfig, _forTestingOnly) {
@@ -12576,7 +12964,10 @@ var haveDepsChanged = (state1, state2, deps) => {
12576
12964
  }
12577
12965
  return false;
12578
12966
  };
12579
- function toRowInfo(data, id, index, isRowSelected) {
12967
+ function returnFalse2() {
12968
+ return false;
12969
+ }
12970
+ function toRowInfo(data, id, index, isRowSelected, cellSelectionState) {
12580
12971
  const rowInfo = {
12581
12972
  dataSourceHasGrouping: false,
12582
12973
  data,
@@ -12584,11 +12975,17 @@ function toRowInfo(data, id, index, isRowSelected) {
12584
12975
  indexInAll: index,
12585
12976
  isGroupRow: false,
12586
12977
  selfLoaded: true,
12587
- rowSelected: false
12978
+ rowSelected: false,
12979
+ isCellSelected: returnFalse2
12588
12980
  };
12589
12981
  if (isRowSelected) {
12590
12982
  rowInfo.rowSelected = isRowSelected(rowInfo);
12591
12983
  }
12984
+ if (cellSelectionState) {
12985
+ rowInfo.isCellSelected = (colId) => {
12986
+ return cellSelectionState.isCellSelected(rowInfo.id, colId);
12987
+ };
12988
+ }
12592
12989
  return rowInfo;
12593
12990
  }
12594
12991
  function filterDataSource(params) {
@@ -12769,6 +13166,7 @@ function concludeReducer(params) {
12769
13166
  state.postSortDataArray = dataArray;
12770
13167
  let rowInfoDataArray = state.dataArray;
12771
13168
  const rowSelectionState = state.rowSelection instanceof RowSelectionState ? state.rowSelection : void 0;
13169
+ const cellSelectionState = state.cellSelection instanceof CellSelectionState ? state.cellSelection : void 0;
12772
13170
  rowSelectionState == null ? void 0 : rowSelectionState.xcache();
12773
13171
  let isRowSelected = state.selectionMode === "single-row" ? (rowInfo) => {
12774
13172
  return rowInfo.id === state.rowSelection;
@@ -12827,6 +13225,19 @@ function concludeReducer(params) {
12827
13225
  reducerKeys: rowInfoReducerKeys,
12828
13226
  rowInfo: {}
12829
13227
  };
13228
+ const withRowInfoForReducers = rowInfoReducerResults ? (rowInfo) => {
13229
+ rowInfoReducersShape.rowInfo = rowInfo;
13230
+ computeRowInfoReducersFor(rowInfoReducersShape);
13231
+ } : void 0;
13232
+ const withRowInfoForCellSelection = cellSelectionState ? (rowInfo) => {
13233
+ rowInfo.isCellSelected = (colId) => {
13234
+ return cellSelectionState.isCellSelected(rowInfo.id, colId);
13235
+ };
13236
+ } : void 0;
13237
+ const withRowInfo = withRowInfoForReducers || withRowInfoForCellSelection ? composeFunctions(
13238
+ withRowInfoForReducers,
13239
+ withRowInfoForCellSelection
13240
+ ) : void 0;
12830
13241
  const flattenResult = enhancedFlatten({
12831
13242
  groupResult,
12832
13243
  lazyLoad: !!state.lazyLoad,
@@ -12834,10 +13245,7 @@ function concludeReducer(params) {
12834
13245
  toPrimaryKey,
12835
13246
  isRowSelected,
12836
13247
  rowSelectionState,
12837
- withRowInfo: rowInfoReducerResults ? (rowInfo) => {
12838
- rowInfoReducersShape.rowInfo = rowInfo;
12839
- computeRowInfoReducersFor(rowInfoReducersShape);
12840
- } : void 0,
13248
+ withRowInfo,
12841
13249
  groupRowsState: state.groupRowsState,
12842
13250
  generateGroupRows: state.generateGroupRows
12843
13251
  });
@@ -12887,7 +13295,8 @@ function concludeReducer(params) {
12887
13295
  data,
12888
13296
  data ? toPrimaryKey(data) : index,
12889
13297
  index,
12890
- isRowSelected
13298
+ isRowSelected,
13299
+ cellSelectionState
12891
13300
  );
12892
13301
  if (rowInfoReducerResults) {
12893
13302
  rowInfoReducersShape.rowInfo = rowInfo;
@@ -13761,7 +14170,9 @@ function deriveStateFromProps(params) {
13761
14170
  }
13762
14171
  }
13763
14172
  let rowSelectionState = null;
14173
+ let cellSelectionState = null;
13764
14174
  let currentRowSelection = props.rowSelection !== void 0 ? props.rowSelection : state.rowSelection === void 0 ? props.defaultRowSelection !== void 0 ? props.defaultRowSelection : null : state.rowSelection;
14175
+ let currentCellSelection = props.cellSelection !== void 0 ? props.cellSelection : state.cellSelection === void 0 ? props.defaultCellSelection !== void 0 ? props.defaultCellSelection : null : state.cellSelection || null;
13765
14176
  if (selectionMode !== false) {
13766
14177
  if (selectionMode === "single-row" || selectionMode === "multi-row") {
13767
14178
  if (currentRowSelection === null) {
@@ -13780,6 +14191,15 @@ function deriveStateFromProps(params) {
13780
14191
  );
13781
14192
  }
13782
14193
  }
14194
+ if (selectionMode === "single-cell" || selectionMode === "multi-cell") {
14195
+ if (currentCellSelection === null) {
14196
+ cellSelectionState = selectionMode === "single-cell" ? null : new CellSelectionState();
14197
+ } else {
14198
+ cellSelectionState = currentCellSelection instanceof CellSelectionState ? currentCellSelection : new CellSelectionState(
14199
+ currentCellSelection
14200
+ );
14201
+ }
14202
+ }
13783
14203
  }
13784
14204
  const primaryKeyDescriptor = state.primaryKey;
13785
14205
  const toPrimaryKey = typeof primaryKeyDescriptor === "function" ? (data) => primaryKeyDescriptor(data) : (data) => data[primaryKeyDescriptor];
@@ -13796,8 +14216,8 @@ function deriveStateFromProps(params) {
13796
14216
  const result = {
13797
14217
  selectionMode,
13798
14218
  groupRowsState,
13799
- // for whatever reason I had to do this cast to appease TS
13800
14219
  rowSelection: rowSelectionState,
14220
+ cellSelection: cellSelectionState,
13801
14221
  toPrimaryKey,
13802
14222
  operatorsByFilterType,
13803
14223
  controlledSort,
@@ -13849,6 +14269,22 @@ function getMappedCallbacks() {
13849
14269
  "multi-row"
13850
14270
  ]
13851
14271
  };
14272
+ },
14273
+ cellSelection: (cellSelection, state) => {
14274
+ if (state.selectionMode === "single-cell") {
14275
+ return {
14276
+ callbackParams: [
14277
+ cellSelection instanceof CellSelectionState ? cellSelection.getState().selectedCells : null,
14278
+ "single-cell"
14279
+ ]
14280
+ };
14281
+ }
14282
+ return {
14283
+ callbackParams: [
14284
+ cellSelection.getState(),
14285
+ "multi-cell"
14286
+ ]
14287
+ };
13852
14288
  }
13853
14289
  };
13854
14290
  }
@@ -14065,6 +14501,157 @@ function notNullable(value) {
14065
14501
  return true;
14066
14502
  }
14067
14503
 
14504
+ // src/components/InfiniteTable/api/getCellSelectionApi.ts
14505
+ function ensureMinMaxCellPositionByIndex(start, end) {
14506
+ let { rowIndex: startRowIndex, colIndex: startColIndex } = start;
14507
+ let { rowIndex: endRowIndex, colIndex: endColIndex } = end;
14508
+ const [colStart, colEnd] = startColIndex > endColIndex ? [endColIndex, startColIndex] : [startColIndex, endColIndex];
14509
+ const [rowStart, rowEnd] = startRowIndex > endRowIndex ? [endRowIndex, startRowIndex] : [startRowIndex, endRowIndex];
14510
+ return [
14511
+ { rowIndex: rowStart, colIndex: colStart },
14512
+ { rowIndex: rowEnd, colIndex: colEnd }
14513
+ ];
14514
+ }
14515
+ function getCellSelectionApi(param) {
14516
+ const {
14517
+ getComputed,
14518
+ // getState,
14519
+ getDataSourceState,
14520
+ // componentActions,
14521
+ dataSourceActions
14522
+ } = param;
14523
+ const getCellSelectionPosition = (options) => {
14524
+ var _a, _b, _c;
14525
+ const rowId = (_b = options.rowId) != null ? _b : (_a = getRowInfoAt(options.rowIndex, getDataSourceState)) == null ? void 0 : _a.id;
14526
+ const colId = (_c = options.colId) != null ? _c : getComputed().computedVisibleColumns[options.colIndex].id;
14527
+ return [rowId, colId];
14528
+ };
14529
+ const cellSelectionApi = {
14530
+ deselectAll: () => {
14531
+ const dataSourceState = getDataSourceState();
14532
+ const cellSelection = dataSourceState.cellSelection;
14533
+ if (!cellSelection) {
14534
+ return;
14535
+ }
14536
+ const newCellSelection = new CellSelectionState(cellSelection);
14537
+ newCellSelection.deselectAll();
14538
+ dataSourceActions.cellSelection = newCellSelection;
14539
+ },
14540
+ clear: () => {
14541
+ cellSelectionApi.deselectAll();
14542
+ },
14543
+ selectAll: () => {
14544
+ const dataSourceState = getDataSourceState();
14545
+ const cellSelection = dataSourceState.cellSelection;
14546
+ if (!cellSelection) {
14547
+ return;
14548
+ }
14549
+ const newCellSelection = new CellSelectionState(cellSelection);
14550
+ newCellSelection.selectAll();
14551
+ dataSourceActions.cellSelection = newCellSelection;
14552
+ },
14553
+ selectRange: (startOptions, endOptions) => {
14554
+ cellSelectionApi.setRangeSelected(startOptions, endOptions, true);
14555
+ },
14556
+ deselectRange: (startOptions, endOptions) => {
14557
+ cellSelectionApi.setRangeSelected(startOptions, endOptions, false);
14558
+ },
14559
+ setRangeSelected: (startOptions, endOptions, selected) => {
14560
+ const dataSourceState = getDataSourceState();
14561
+ const cellSelection = dataSourceState.cellSelection;
14562
+ if (!cellSelection) {
14563
+ return;
14564
+ }
14565
+ const newCellSelection = new CellSelectionState(cellSelection);
14566
+ const [startRowId, startColId] = getCellSelectionPosition(startOptions);
14567
+ const [endRowId, endColId] = getCellSelectionPosition(endOptions);
14568
+ const startCol = getComputed().computedVisibleColumnsMap.get(startColId);
14569
+ const endCol = getComputed().computedVisibleColumnsMap.get(endColId);
14570
+ if (!startCol || !endCol) {
14571
+ return;
14572
+ }
14573
+ const startColIndex = startCol.computedVisibleIndex;
14574
+ const endColIndex = endCol.computedVisibleIndex;
14575
+ const startRowInfo = getRowInfoAt(startRowId, getDataSourceState);
14576
+ const endRowInfo = getRowInfoAt(endRowId, getDataSourceState);
14577
+ if (!startRowInfo || !endRowInfo) {
14578
+ return;
14579
+ }
14580
+ const startRowIndex = startRowInfo.indexInAll;
14581
+ const endRowIndex = endRowInfo.indexInAll;
14582
+ const [start, end] = ensureMinMaxCellPositionByIndex(
14583
+ { rowIndex: startRowIndex, colIndex: startColIndex },
14584
+ { rowIndex: endRowIndex, colIndex: endColIndex }
14585
+ );
14586
+ for (let i = start.rowIndex; i <= end.rowIndex; i++) {
14587
+ for (let j = start.colIndex; j <= end.colIndex; j++) {
14588
+ const pos = {
14589
+ rowIndex: i,
14590
+ colIndex: j
14591
+ };
14592
+ const [pk, colId] = getCellSelectionPosition(pos);
14593
+ if (selected) {
14594
+ newCellSelection.selectCell(pk, colId);
14595
+ } else {
14596
+ newCellSelection.deselectCell(pk, colId);
14597
+ }
14598
+ }
14599
+ }
14600
+ dataSourceActions.cellSelection = newCellSelection;
14601
+ },
14602
+ isCellSelected: (options) => {
14603
+ var _a, _b;
14604
+ const [pk, colId] = getCellSelectionPosition(options);
14605
+ return (_b = (_a = getDataSourceState().cellSelection) == null ? void 0 : _a.isCellSelected(pk, colId)) != null ? _b : false;
14606
+ },
14607
+ selectCell: (options) => {
14608
+ const cellSelection = getDataSourceState().cellSelection;
14609
+ if (!cellSelection) {
14610
+ return;
14611
+ }
14612
+ const [pk, colId] = getCellSelectionPosition(options);
14613
+ const newCellSelection = options.clear ? new CellSelectionState() : new CellSelectionState(cellSelection);
14614
+ newCellSelection.selectCell(pk, colId);
14615
+ dataSourceActions.cellSelection = newCellSelection;
14616
+ },
14617
+ deselectCell: (options) => {
14618
+ const cellSelection = getDataSourceState().cellSelection;
14619
+ if (!cellSelection) {
14620
+ return;
14621
+ }
14622
+ const [pk, colId] = getCellSelectionPosition(options);
14623
+ const newCellSelection = new CellSelectionState(cellSelection);
14624
+ newCellSelection.deselectCell(pk, colId);
14625
+ dataSourceActions.cellSelection = newCellSelection;
14626
+ },
14627
+ selectColumn: (colId, options) => {
14628
+ if (options == null ? void 0 : options.clear) {
14629
+ cellSelectionApi.deselectAll();
14630
+ }
14631
+ const cellSelection = getDataSourceState().cellSelection;
14632
+ if (!cellSelection) {
14633
+ return;
14634
+ }
14635
+ const newCellSelection = new CellSelectionState(cellSelection);
14636
+ newCellSelection.selectColumn(colId);
14637
+ dataSourceActions.cellSelection = newCellSelection;
14638
+ },
14639
+ deselectColumn: (colId) => {
14640
+ const cellSelection = getDataSourceState().cellSelection;
14641
+ if (!cellSelection) {
14642
+ return;
14643
+ }
14644
+ const newCellSelection = new CellSelectionState(cellSelection);
14645
+ newCellSelection.deselectColumn(colId);
14646
+ dataSourceActions.cellSelection = newCellSelection;
14647
+ }
14648
+ };
14649
+ if (false) {
14650
+ globalThis.cellSelectionApi = cellSelectionApi;
14651
+ }
14652
+ return cellSelectionApi;
14653
+ }
14654
+
14068
14655
  // src/components/InfiniteTable/api/getImperativeApi.ts
14069
14656
  function isSortInfoForColumn(sortInfo, col) {
14070
14657
  if (sortInfo.id) {
@@ -14449,10 +15036,15 @@ var InfiniteTableApiImpl = class {
14449
15036
  return true;
14450
15037
  };
14451
15038
  this.context = context;
14452
- this.selectionApi = getSelectionApi({
15039
+ this.rowSelectionApi = getRowSelectionApi({
14453
15040
  dataSourceActions: context.dataSourceActions,
14454
15041
  getDataSourceState: context.getDataSourceState
14455
15042
  });
15043
+ this.cellSelectionApi = getCellSelectionApi({
15044
+ dataSourceActions: context.dataSourceActions,
15045
+ getDataSourceState: context.getDataSourceState,
15046
+ getComputed: context.getComputed
15047
+ });
14456
15048
  }
14457
15049
  get actions() {
14458
15050
  return this.context.actions;
@@ -15064,6 +15656,8 @@ function useCellRendering(param) {
15064
15656
  groupRenderStrategy,
15065
15657
  brain,
15066
15658
  showZebraRows,
15659
+ cellClassName,
15660
+ cellStyle,
15067
15661
  rowStyle,
15068
15662
  rowClassName,
15069
15663
  onScrollToTop,
@@ -15170,7 +15764,9 @@ function useCellRendering(param) {
15170
15764
  columnsMap: computedColumnsMap,
15171
15765
  fieldsToColumn,
15172
15766
  rowStyle,
15173
- rowClassName
15767
+ rowClassName,
15768
+ cellStyle,
15769
+ cellClassName
15174
15770
  };
15175
15771
  return /* @__PURE__ */ React51.createElement(InfiniteTableColumnCell, __spreadValues({}, cellProps));
15176
15772
  },
@@ -15185,7 +15781,9 @@ function useCellRendering(param) {
15185
15781
  showZebraRows,
15186
15782
  repaintId,
15187
15783
  rowStyle,
15188
- rowClassName
15784
+ rowClassName,
15785
+ cellClassName,
15786
+ cellStyle
15189
15787
  ]
15190
15788
  );
15191
15789
  return {
@@ -15197,6 +15795,118 @@ function useCellRendering(param) {
15197
15795
  // src/components/InfiniteTable/hooks/useComputed.ts
15198
15796
  import { useEffect as useEffect28, useState as useState17 } from "react";
15199
15797
 
15798
+ // src/components/InfiniteTable/utils/MultiCellSelector.ts
15799
+ var MultiCellSelector = class {
15800
+ constructor(options) {
15801
+ this.multiSelectStartPosition = { rowIndex: 0, colIndex: 0 };
15802
+ this.getPrimaryKeyByIndex = options.getPrimaryKeyByIndex;
15803
+ this.getColumnIdByIndex = options.getColumnIdByIndex;
15804
+ }
15805
+ getCellSelectionPosition(position2) {
15806
+ const { rowIndex, colIndex } = position2;
15807
+ const rowId = this.getPrimaryKeyByIndex(rowIndex);
15808
+ const columnId = this.getColumnIdByIndex(colIndex);
15809
+ if (rowId === void 0 || !columnId) {
15810
+ return void 0;
15811
+ }
15812
+ return [rowId, columnId];
15813
+ }
15814
+ set cellSelectionState(cellSelectionState) {
15815
+ this._cellSelectionState = cellSelectionState;
15816
+ }
15817
+ get cellSelectionState() {
15818
+ return this._cellSelectionState;
15819
+ }
15820
+ /**
15821
+ * This is the single click, without any modifier
15822
+ */
15823
+ resetClick(position2) {
15824
+ this.cellSelectionState.deselectAll();
15825
+ const cellSelectionPosition = this.getCellSelectionPosition(position2);
15826
+ if (!cellSelectionPosition) {
15827
+ return;
15828
+ }
15829
+ this.cellSelectionState.deselectAll();
15830
+ this.cellSelectionState.selectCell(...cellSelectionPosition);
15831
+ this.multiSelectStartPosition = position2;
15832
+ this.multiSelectEndPosition = void 0;
15833
+ }
15834
+ /**
15835
+ * This is the click with ctrl/cmd key pressed
15836
+ * @param position CellPosition
15837
+ */
15838
+ singleAddClick(position2) {
15839
+ const cellSelectionPosition = this.getCellSelectionPosition(position2);
15840
+ if (!cellSelectionPosition) {
15841
+ return;
15842
+ }
15843
+ if (this.cellSelectionState.isCellSelected(...cellSelectionPosition)) {
15844
+ this.cellSelectionState.deselectCell(...cellSelectionPosition);
15845
+ const nextPos = {
15846
+ rowIndex: position2.rowIndex + 1,
15847
+ colIndex: position2.colIndex
15848
+ };
15849
+ if (this.getCellSelectionPosition(nextPos)) {
15850
+ this.multiSelectStartPosition = nextPos;
15851
+ }
15852
+ } else {
15853
+ this.cellSelectionState.selectCell(...cellSelectionPosition);
15854
+ this.multiSelectStartPosition = position2;
15855
+ this.multiSelectEndPosition = void 0;
15856
+ }
15857
+ }
15858
+ multiSelectClick(position2) {
15859
+ if (!this.multiSelectStartPosition) {
15860
+ return;
15861
+ }
15862
+ const cellSelectionPosition = this.getCellSelectionPosition(position2);
15863
+ if (!cellSelectionPosition) {
15864
+ return;
15865
+ }
15866
+ if (this.multiSelectEndPosition) {
15867
+ this.deselectRange(
15868
+ this.multiSelectStartPosition,
15869
+ this.multiSelectEndPosition
15870
+ );
15871
+ }
15872
+ this.selectRange(this.multiSelectStartPosition, position2);
15873
+ this.multiSelectEndPosition = position2;
15874
+ }
15875
+ setRangeSelected(startPosition, endPosition, selected) {
15876
+ const [start, end] = ensureMinMaxCellPositionByIndex(
15877
+ startPosition,
15878
+ endPosition
15879
+ );
15880
+ const startSelectionPosition = this.getCellSelectionPosition(start);
15881
+ const endSelectionPosition = this.getCellSelectionPosition(end);
15882
+ if (!startSelectionPosition || !endSelectionPosition) {
15883
+ return;
15884
+ }
15885
+ for (let i = start.rowIndex; i <= end.rowIndex; i++) {
15886
+ for (let j = start.colIndex; j <= end.colIndex; j++) {
15887
+ const selectionPosition = this.getCellSelectionPosition({
15888
+ rowIndex: i,
15889
+ colIndex: j
15890
+ });
15891
+ if (!selectionPosition) {
15892
+ continue;
15893
+ }
15894
+ if (selected) {
15895
+ this.cellSelectionState.selectCell(...selectionPosition);
15896
+ } else {
15897
+ this.cellSelectionState.deselectCell(...selectionPosition);
15898
+ }
15899
+ }
15900
+ }
15901
+ }
15902
+ deselectRange(startPosition, endPosition) {
15903
+ this.setRangeSelected(startPosition, endPosition, false);
15904
+ }
15905
+ selectRange(startPosition, endPosition) {
15906
+ this.setRangeSelected(startPosition, endPosition, true);
15907
+ }
15908
+ };
15909
+
15200
15910
  // src/components/InfiniteTable/utils/MultiRowSelector.ts
15201
15911
  function ensureMinMax(start, end) {
15202
15912
  return start < end ? [start, end] : [end, start];
@@ -15632,8 +16342,10 @@ var forwardProps4 = (setupState) => {
15632
16342
  columnDefaultFilterable: 1,
15633
16343
  columnDefaultSortable: 1,
15634
16344
  rowStyle: 1,
16345
+ cellStyle: 1,
15635
16346
  rowProps: 1,
15636
16347
  rowClassName: 1,
16348
+ cellClassName: 1,
15637
16349
  pinnedStartMaxWidth: 1,
15638
16350
  pinnedEndMaxWidth: 1,
15639
16351
  pivotColumn: 1,
@@ -16491,7 +17203,8 @@ function useComputed() {
16491
17203
  const {
16492
17204
  componentActions: dataSourceActions,
16493
17205
  componentState: dataSourceState,
16494
- getState: getDataSourceState
17206
+ getState: getDataSourceState,
17207
+ api: dataSourceApi
16495
17208
  } = useDataSourceContextValue();
16496
17209
  const {
16497
17210
  columnOrder,
@@ -16594,8 +17307,19 @@ function useComputed() {
16594
17307
  });
16595
17308
  return multiRowSelector2;
16596
17309
  });
17310
+ const getComputedVisibleColumns = useLatest(computedVisibleColumns);
17311
+ const [multiCellSelector] = useState17(() => {
17312
+ return new MultiCellSelector({
17313
+ getPrimaryKeyByIndex: dataSourceApi.getPrimaryKeyByIndex,
17314
+ getColumnIdByIndex: (colIndex) => {
17315
+ var _a2;
17316
+ return ((_a2 = getComputedVisibleColumns()[colIndex]) == null ? void 0 : _a2.id) || "";
17317
+ }
17318
+ });
17319
+ });
16597
17320
  return {
16598
17321
  multiRowSelector,
17322
+ multiCellSelector,
16599
17323
  scrollbars,
16600
17324
  columnSize,
16601
17325
  rowspan,
@@ -16797,7 +17521,7 @@ var useLicense = (licenseKey = "") => {
16797
17521
  const valid = useMemo11(() => {
16798
17522
  let valid2 = isValidLicense(licenseKey, {
16799
17523
  publishedAt: 1624970570587,
16800
- version: "2.0.8"
17524
+ version: "3.0.1"
16801
17525
  });
16802
17526
  if (!licenseKey && !valid2 && isInsidePlayground) {
16803
17527
  return true;
@@ -16893,6 +17617,7 @@ import { useCallback as useCallback22, useMemo as useMemo12, useEffect as useEff
16893
17617
  function onCellClick(context, event) {
16894
17618
  var _a, _b;
16895
17619
  updateRowSelectionOnCellClick(context, event);
17620
+ updateCellSelectionOnCellClick(context, event);
16896
17621
  if (event.detail === 2) {
16897
17622
  onCellDoubleClick(context, event);
16898
17623
  }
@@ -16906,6 +17631,38 @@ function onCellDoubleClick(context, _event) {
16906
17631
  columnId: column.id
16907
17632
  });
16908
17633
  }
17634
+ function updateCellSelectionOnCellClick(context, event) {
17635
+ const {
17636
+ getDataSourceState,
17637
+ getComputed,
17638
+ rowIndex,
17639
+ colIndex,
17640
+ dataSourceActions
17641
+ } = context;
17642
+ const dataSourceState = getDataSourceState();
17643
+ const { selectionMode, cellSelection: existingCellSelection } = dataSourceState;
17644
+ if (!existingCellSelection) {
17645
+ return;
17646
+ }
17647
+ if (selectionMode !== "multi-cell") {
17648
+ return;
17649
+ }
17650
+ const { multiCellSelector } = getComputed();
17651
+ const cellSelection = new CellSelectionState(existingCellSelection);
17652
+ multiCellSelector.cellSelectionState = cellSelection;
17653
+ const position2 = {
17654
+ rowIndex,
17655
+ colIndex
17656
+ };
17657
+ if (event.metaKey || event.ctrlKey) {
17658
+ multiCellSelector.singleAddClick(position2);
17659
+ } else if (event.shiftKey) {
17660
+ multiCellSelector.multiSelectClick(position2);
17661
+ } else {
17662
+ multiCellSelector.resetClick(position2);
17663
+ }
17664
+ dataSourceActions.cellSelection = cellSelection;
17665
+ }
16909
17666
  function updateRowSelectionOnCellClick(context, event) {
16910
17667
  const {
16911
17668
  rowIndex,
@@ -16944,14 +17701,24 @@ function updateRowSelectionOnCellClick(context, event) {
16944
17701
  } else if (selectionMode === "single-row") {
16945
17702
  const id = dataArray[rowIndex].id;
16946
17703
  if (event.metaKey || event.ctrlKey) {
16947
- api.selectionApi.toggleRowSelection(id);
17704
+ api.rowSelectionApi.toggleRowSelection(id);
16948
17705
  } else {
16949
- api.selectionApi.selectRow(id);
17706
+ api.rowSelectionApi.selectRow(id);
16950
17707
  }
16951
17708
  }
16952
17709
  return false;
16953
17710
  }
16954
17711
 
17712
+ // src/components/InfiniteTable/eventHandlers/onCellMouseDown.ts
17713
+ function onCellMouseDown(context, event) {
17714
+ if (event.detail === 2) {
17715
+ return;
17716
+ }
17717
+ updateCellSelectionOnCellMouseDown(context);
17718
+ }
17719
+ function updateCellSelectionOnCellMouseDown(_context) {
17720
+ }
17721
+
16955
17722
  // src/components/utils/clamp.ts
16956
17723
  function clamp(value, min, max) {
16957
17724
  return Math.min(Math.max(value, min), max);
@@ -17206,7 +17973,7 @@ function handleKeyboardSelection(context, keyboardEvent) {
17206
17973
  return false;
17207
17974
  }
17208
17975
  if (selectionMode === "single-row" && key === " ") {
17209
- imperativeApi.selectionApi.toggleRowSelection(rowInfo.id);
17976
+ imperativeApi.rowSelectionApi.toggleRowSelection(rowInfo.id);
17210
17977
  return true;
17211
17978
  }
17212
17979
  if (selectionMode !== "multi-row") {
@@ -17223,9 +17990,11 @@ function handleKeyboardSelection(context, keyboardEvent) {
17223
17990
  if (key === " ") {
17224
17991
  if (groupBy.length) {
17225
17992
  if (rowInfo.isGroupRow && rowInfo.groupKeys) {
17226
- imperativeApi.selectionApi.toggleGroupRowSelection(rowInfo.groupKeys);
17993
+ imperativeApi.rowSelectionApi.toggleGroupRowSelection(
17994
+ rowInfo.groupKeys
17995
+ );
17227
17996
  } else {
17228
- imperativeApi.selectionApi.toggleRowSelection(rowInfo.id);
17997
+ imperativeApi.rowSelectionApi.toggleRowSelection(rowInfo.id);
17229
17998
  }
17230
17999
  return true;
17231
18000
  } else {
@@ -17610,9 +18379,23 @@ function handleDOMEvents() {
17610
18379
  );
17611
18380
  }
17612
18381
  const removeOnCellClick = context.getState().cellClick.onChange(cellClickHandler);
18382
+ function cellMouseDownHandler(param) {
18383
+ if (!param) {
18384
+ return;
18385
+ }
18386
+ const { event, rowIndex, colIndex } = param;
18387
+ const column = context.getComputed().computedVisibleColumns[colIndex];
18388
+ const columnApi = getColumnApiForColumn(column.id, context);
18389
+ onCellMouseDown(
18390
+ __spreadProps(__spreadValues({}, context), { rowIndex, colIndex, column, columnApi }),
18391
+ event
18392
+ );
18393
+ }
18394
+ const removeOnCellMouseDown = context.getState().cellMouseDown.onChange(cellMouseDownHandler);
17613
18395
  return () => {
17614
18396
  removeOnKeyDown();
17615
18397
  removeOnCellClick();
18398
+ removeOnCellMouseDown();
17616
18399
  };
17617
18400
  }, []);
17618
18401
  }
@@ -20295,18 +21078,6 @@ var InfiniteTableComponent = React64.memo(
20295
21078
  scrollerDOMRef
20296
21079
  }
20297
21080
  ), /* @__PURE__ */ React64.createElement(LoadMaskCmp, { visible: loading }, loadingText)), /* @__PURE__ */ React64.createElement(
20298
- "div",
20299
- {
20300
- "data-name": "pinned-start-border",
20301
- className: PinnedStartIndicatorBorder
20302
- }
20303
- ), /* @__PURE__ */ React64.createElement(
20304
- "div",
20305
- {
20306
- "data-name": "pinned-end-border",
20307
- className: PinnedEndIndicatorBorder
20308
- }
20309
- ), /* @__PURE__ */ React64.createElement(
20310
21081
  "div",
20311
21082
  {
20312
21083
  ref: portalDOMRef,
@@ -20418,6 +21189,7 @@ var components = {
20418
21189
  NumberFilterEditor
20419
21190
  };
20420
21191
  export {
21192
+ CellSelectionState,
20421
21193
  DataSource,
20422
21194
  DataSourceActionType,
20423
21195
  DeepMap,