@infinite-table/infinite-react 0.4.11 → 0.4.12

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.esm.js CHANGED
@@ -1105,7 +1105,7 @@ function stripVar(cssVariableWithVarString) {
1105
1105
 
1106
1106
  // src/components/InfiniteTable/theme.css.ts
1107
1107
  var InternalVars = { currentColumnWidth: "var(--_1slvgu90)", currentColumnTransformX: "var(--_1slvgu91)", currentColumnTransformY: "var(--_1slvgu92)", activeCellRowOffset: "var(--_1slvgu93)", activeCellRowHeight: "var(--_1slvgu94)", activeCellOffsetX: "var(--_1slvgu95)", activeCellOffsetY: "var(--_1slvgu96)", scrollTopForActiveRow: "var(--_1slvgu97)", activeCellColWidth: "var(--_1slvgu98)", activeCellColOffset: "var(--_1slvgu99)", columnReorderEffectDurationAtIndex: "var(--_1slvgu9a)", columnWidthAtIndex: "var(--_1slvgu9b)", columnOffsetAtIndex: "var(--_1slvgu9c)", columnOffsetAtIndexWhileReordering: "var(--_1slvgu9d)", columnZIndexAtIndex: "var(--_1slvgu9e)", pinnedStartWidth: "var(--_1slvgu9f)", pinnedEndWidth: "var(--_1slvgu9g)", pinnedEndOffset: "var(--_1slvgu9h)", computedVisibleColumnsCount: "var(--_1slvgu9i)", baseZIndexForCells: "var(--_1slvgu9j)", bodyWidth: "var(--_1slvgu9k)", bodyHeight: "var(--_1slvgu9l)", scrollbarWidthHorizontal: "var(--_1slvgu9m)", scrollbarWidthVertical: "var(--_1slvgu9n)", scrollLeft: "var(--_1slvgu9o)", scrollTop: "var(--_1slvgu9p)" };
1108
- 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)", 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)", 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)" }, 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)", activeBorderColor_R: "var(--infinite-active-cell-border-color--r)", activeBorderColor_G: "var(--infinite-active-cell-border-color--g)", activeBorderColor_B: "var(--infinite-active-cell-border-color--b)", 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)" }, 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)" } } };
1108
+ 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)", 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)", 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)" }, 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)", activeBorderColor_R: "var(--infinite-active-cell-border-color--r)", activeBorderColor_G: "var(--infinite-active-cell-border-color--g)", activeBorderColor_B: "var(--infinite-active-cell-border-color--b)", 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)", itemHoverBackground: "var(--infinite-menu-item-hover-background)", itemHoverOpacity: "var(--infinite-menu-item-hover-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)" }, 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)" } } };
1109
1109
  var columnHeaderHeightName = "column-header-height";
1110
1110
 
1111
1111
  // src/utils/selectParent.ts
@@ -3664,11 +3664,11 @@ var useRerender = () => {
3664
3664
  };
3665
3665
 
3666
3666
  // src/components/InfiniteTable/components/ActiveCellIndicator.css.ts
3667
- var ActiveCellIndicatorCls = { visible: "nxbq1c2 nxbq1c1 _16lm1iwg _16lm1iw3 _16lm1iw15 _16lm1iw13", hidden: "nxbq1c3 nxbq1c1 _16lm1iwg _16lm1iw3 _16lm1iw15 _16lm1iw13" };
3668
- var ActiveIndicatorWrapperCls = "_16lm1iwg _16lm1iw3 _16lm1iw15 _16lm1iw13 _16lm1iwz _16lm1iwp";
3667
+ var ActiveCellIndicatorCls = { visible: "nxbq1c2 nxbq1c1 _16lm1iwi _16lm1iw3 _16lm1iw1b _16lm1iw19", hidden: "nxbq1c3 nxbq1c1 _16lm1iwi _16lm1iw3 _16lm1iw1b _16lm1iw19" };
3668
+ var ActiveIndicatorWrapperCls = "_16lm1iwi _16lm1iw3 _16lm1iw1b _16lm1iw19 _16lm1iw15 _16lm1iwr";
3669
3669
 
3670
3670
  // src/components/InfiniteTable/components/ActiveRowIndicator.css.ts
3671
- var ActiveRowIndicatorCls = { visible: "j26lrx1 j26lrx0 _16lm1iwg _16lm1iw3 _16lm1iw12 _16lm1iw13 _16lm1iw15", hidden: "j26lrx2 j26lrx0 _16lm1iwg _16lm1iw3 _16lm1iw12 _16lm1iw13 _16lm1iw15" };
3671
+ var ActiveRowIndicatorCls = { visible: "j26lrx1 j26lrx0 _16lm1iwi _16lm1iw3 _16lm1iw18 _16lm1iw19 _16lm1iw1b", hidden: "j26lrx2 j26lrx0 _16lm1iwi _16lm1iw3 _16lm1iw18 _16lm1iw19 _16lm1iw1b" };
3672
3672
 
3673
3673
  // src/components/InfiniteTable/components/ActiveRowIndicator.tsx
3674
3674
  var { rootClassName: rootClassName3 } = internalProps;
@@ -4215,20 +4215,20 @@ var useInternalProps = () => {
4215
4215
  };
4216
4216
 
4217
4217
  // src/components/InfiniteTable/utilities.css.ts
4218
- var alignItems = { center: "_16lm1iw1h", stretch: "_16lm1iw1i" };
4219
- var cssEllipsisClassName = "_16lm1iw1s _16lm1iw1t _16lm1iw1m";
4220
- var cursor = { pointer: "_16lm1iwe", colResize: "_16lm1iwf" };
4221
- var display = { flex: "_16lm1iwu", none: "_16lm1iwv", block: "_16lm1iww", inlineBlock: "_16lm1iwx" };
4222
- var flex = { "1": "_16lm1iwh", none: "_16lm1iwi" };
4223
- var flexFlow = { column: "_16lm1iw1d", columnReverse: "_16lm1iw1e", row: "_16lm1iw1f", rowReverse: "_16lm1iw1g" };
4224
- var justifyContent = { center: "_16lm1iw1j", start: "_16lm1iw1k", end: "_16lm1iw1l" };
4225
- var left = { "0": "_16lm1iw15", "100%": "_16lm1iw16", auto: "_16lm1iw17" };
4226
- var overflow = { hidden: "_16lm1iw1m", auto: "_16lm1iw1n", visible: "_16lm1iw1o" };
4218
+ var alignItems = { center: "_16lm1iw1n", stretch: "_16lm1iw1o" };
4219
+ var cssEllipsisClassName = "_16lm1iw1y _16lm1iw1z _16lm1iw1s";
4220
+ var cursor = { pointer: "_16lm1iwf", "default": "_16lm1iwg", colResize: "_16lm1iwh" };
4221
+ var display = { flex: "_16lm1iww", contents: "_16lm1iwx", none: "_16lm1iwy", block: "_16lm1iwz", grid: "_16lm1iw10", inlineBlock: "_16lm1iw11", inlineFlex: "_16lm1iw12", inlineGrid: "_16lm1iw13" };
4222
+ var flex = { "1": "_16lm1iwj", none: "_16lm1iwk" };
4223
+ var flexFlow = { column: "_16lm1iw1j", columnReverse: "_16lm1iw1k", row: "_16lm1iw1l", rowReverse: "_16lm1iw1m" };
4224
+ var justifyContent = { center: "_16lm1iw1p", start: "_16lm1iw1q", end: "_16lm1iw1r" };
4225
+ var left = { "0": "_16lm1iw1b", "100%": "_16lm1iw1c", auto: "_16lm1iw1d" };
4226
+ var overflow = { hidden: "_16lm1iw1s", auto: "_16lm1iw1t", visible: "_16lm1iw1u" };
4227
4227
  var position = { relative: "_16lm1iw1", absolute: "_16lm1iw2", sticky: "_16lm1iw3", fixed: "_16lm1iw4" };
4228
- var top = { "0": "_16lm1iw13", "100%": "_16lm1iw14" };
4229
- var transformTranslateZero = "_16lm1iwa";
4230
- var userSelect = { none: "_16lm1iwy" };
4231
- var zIndex = { "1": "_16lm1iwj", "10": "_16lm1iwk", "100": "_16lm1iwl", "1000": "_16lm1iwm", "10000": "_16lm1iwn", "100000": "_16lm1iwo", "1000000": "_16lm1iwp", "10000000": "_16lm1iwq", "1k": "_16lm1iwr", "10k": "_16lm1iws", "100k": "_16lm1iwt" };
4228
+ var top = { "0": "_16lm1iw19", "100%": "_16lm1iw1a" };
4229
+ var transformTranslateZero = "_16lm1iwb";
4230
+ var userSelect = { none: "_16lm1iw14" };
4231
+ var zIndex = { "1": "_16lm1iwl", "10": "_16lm1iwm", "100": "_16lm1iwn", "1000": "_16lm1iwo", "10000": "_16lm1iwp", "100000": "_16lm1iwq", "1000000": "_16lm1iwr", "10000000": "_16lm1iws", "1k": "_16lm1iwt", "10k": "_16lm1iwu", "100k": "_16lm1iwv" };
4232
4232
 
4233
4233
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
4234
4234
  var InfiniteTableBody = forwardRef2(function InfiniteTableBody2(props, ref) {
@@ -4397,14 +4397,14 @@ var useInfiniteTable = () => {
4397
4397
  // src/components/InfiniteTable/InfiniteCls.css.ts
4398
4398
  var import_createRuntimeFn = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
4399
4399
  var FooterCls = "_16lm1iw1";
4400
- var InfiniteCls = "_1yeub2v0 _16lm1iw1 _16lm1iwu _16lm1iw1d _16lm1iw0";
4400
+ var InfiniteCls = "_1yeub2v0 _16lm1iw1 _16lm1iww _16lm1iw1j _16lm1iw0";
4401
4401
  var InfiniteClsHasPinnedEnd = "_1yeub2vo";
4402
4402
  var InfiniteClsHasPinnedStart = "_1yeub2vn";
4403
4403
  var InfiniteClsRecipe = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "", variantClassNames: { focused: { true: "_1yeub2v2", false: "_1yeub2v3" }, focusedWithin: { true: "_1yeub2v4", false: "_1yeub2v5" }, hasPinnedStart: { true: "_1yeub2v6", false: "_1yeub2v7" }, hasPinnedEnd: { true: "_1yeub2v8", false: "_1yeub2v9" }, hasPinnedStartOverflow: { true: "_1yeub2va", false: "_1yeub2vb" }, hasPinnedEndOverflow: { true: "_1yeub2vc", false: "_1yeub2vd" } }, defaultVariants: {}, compoundVariants: [[{ focused: false, focusedWithin: false }, "_1yeub2ve"]] });
4404
4404
  var InfiniteClsShiftingColumns = "_1yeub2vl";
4405
- var PinnedEndIndicatorBorder = "_1yeub2vr _1yeub2vp _16lm1iw2 _16lm1iw13 _16lm1iwf _16lm1iwy _16lm1iw11 _16lm1iw1q _16lm1iwg _16lm1iwq";
4405
+ var PinnedEndIndicatorBorder = "_1yeub2vr _1yeub2vp _16lm1iw2 _16lm1iw19 _16lm1iwh _16lm1iw14 _16lm1iw17 _16lm1iw1w _16lm1iwi _16lm1iws";
4406
4406
  var PinnedRowsContainerClsVariants = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "", variantClassNames: { pinned: { start: "_1yeub2vi", end: "_1yeub2vj", false: "_1yeub2vk" } }, defaultVariants: {}, compoundVariants: [] });
4407
- var PinnedStartIndicatorBorder = "_1yeub2vq _1yeub2vp _16lm1iw2 _16lm1iw13 _16lm1iwf _16lm1iwy _16lm1iw11 _16lm1iw1q _16lm1iwg _16lm1iwq";
4407
+ var PinnedStartIndicatorBorder = "_1yeub2vq _1yeub2vp _16lm1iw2 _16lm1iw19 _16lm1iwh _16lm1iw14 _16lm1iw17 _16lm1iw1w _16lm1iwi _16lm1iws";
4408
4408
 
4409
4409
  // src/components/utils/getScrollbarWidth.ts
4410
4410
  var scrollbarWidth;
@@ -5137,7 +5137,7 @@ var useColumnPointerEvents = ({
5137
5137
  };
5138
5138
  };
5139
5139
 
5140
- // src/components/InfiniteTable/utils/RenderHookComponent.tsx
5140
+ // src/components/InfiniteTable/utils/RenderHookComponentForInfinite.tsx
5141
5141
  import {
5142
5142
  createElement as createElement19
5143
5143
  } from "react";
@@ -5173,8 +5173,8 @@ import { useState as useState6 } from "react";
5173
5173
 
5174
5174
  // src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts
5175
5175
  var import_createRuntimeFn2 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
5176
- var ExpanderIconCls = "_16lm1iw6 _16lm1iwi _16lm1iwe";
5177
- var ExpanderIconClsVariants = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "", variantClassNames: { expanded: { true: "_16lm1iwc", false: "_198z9782" }, direction: { end: "_198z9783", start: "_198z9784" } }, defaultVariants: {}, compoundVariants: [[{ expanded: false, direction: "end" }, "_16lm1iwd"]] });
5176
+ var ExpanderIconCls = "_16lm1iw6 _16lm1iwk _16lm1iwf";
5177
+ var ExpanderIconClsVariants = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "", variantClassNames: { expanded: { true: "_16lm1iwd", false: "_198z9782" }, direction: { end: "_198z9783", start: "_198z9784" } }, defaultVariants: {}, compoundVariants: [[{ expanded: false, direction: "end" }, "_16lm1iwe"]] });
5178
5178
 
5179
5179
  // src/components/InfiniteTable/components/icons/ExpanderIcon.tsx
5180
5180
  function ExpanderIcon(props) {
@@ -5216,7 +5216,7 @@ import {
5216
5216
  } from "react";
5217
5217
 
5218
5218
  // src/components/InfiniteTable/components/icons/LoadingIcon.css.ts
5219
- var LoadingIconCls = "_16lm1iw8 _16lm1iwi _16lm1iwe";
5219
+ var LoadingIconCls = "_16lm1iw9 _16lm1iwk _16lm1iwf";
5220
5220
 
5221
5221
  // src/components/InfiniteTable/components/icons/LoadingIcon.tsx
5222
5222
  var LoadingIcon = (props) => {
@@ -5414,7 +5414,7 @@ function objectValuesExcept(obj, exceptList) {
5414
5414
 
5415
5415
  // src/components/InfiniteTable/components/cell.css.ts
5416
5416
  var import_createRuntimeFn4 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
5417
- var ColumnCellCls = "_1eexc2a6 _1eexc2a5 _16lm1iwu _16lm1iw1f _16lm1iw1h _16lm1iw2 _16lm1iw1r _16lm1iw1s _16lm1iwy";
5417
+ var ColumnCellCls = "_1eexc2a6 _1eexc2a5 _16lm1iww _16lm1iw1l _16lm1iw1n _16lm1iw2 _16lm1iw1x _16lm1iw1y _16lm1iw14";
5418
5418
  var ColumnCellRecipe = (0, import_createRuntimeFn4.createRuntimeFn)({ defaultClassName: "_1eexc2a8", variantClassNames: { dragging: { false: "_1eexc2a9", true: "_1eexc2aa" }, rowActive: { false: "_1eexc2ab", true: "_1eexc2ac" }, zebra: { false: "_1eexc2ad", even: "_1eexc2ae", odd: "_1eexc2af" }, rowSelected: { true: "_1eexc2ag", false: "_1eexc2ah", null: "_1eexc2ai" }, first: { true: "_1eexc2aj", false: "_1eexc2ak" }, last: { true: "_1eexc2al", false: "_1eexc2am" }, groupByField: { true: "_1eexc2an", false: "_1eexc2ao" }, firstInCategory: { true: "_1eexc2ap", false: "_1eexc2aq" }, lastInCategory: { true: "_1eexc2ar", false: "_1eexc2as" }, pinned: { start: "_1eexc2at", end: "_1eexc2au", false: "_1eexc2av" }, filtered: { true: "_1eexc2aw", false: "_1eexc2ax" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_1eexc2ay"], [{ pinned: "start", firstInCategory: true }, "_1eexc2az"], [{ pinned: "end", firstInCategory: true }, "_1eexc2a10"], [{ pinned: "end", lastInCategory: true }, "_1eexc2a11"]] });
5419
5419
  var SelectionCheckboxCls = "_1eexc2a7";
5420
5420
 
@@ -5425,7 +5425,7 @@ import {
5425
5425
  import { useEffect as useEffect10, useRef as useRef11 } from "react";
5426
5426
 
5427
5427
  // src/components/InfiniteTable/components/CheckBox.css.ts
5428
- var CheckBoxCls = "_16lm1iwe";
5428
+ var CheckBoxCls = "_16lm1iwf";
5429
5429
 
5430
5430
  // src/components/InfiniteTable/components/CheckBox.tsx
5431
5431
  function forwardProps2() {
@@ -5928,11 +5928,13 @@ function useInfiniteColumnCell() {
5928
5928
  return result;
5929
5929
  }
5930
5930
 
5931
- // src/components/InfiniteTable/utils/RenderHookComponent.tsx
5931
+ // src/components/RenderHookComponent.tsx
5932
5932
  function RenderHookComponent(props) {
5933
5933
  var _a;
5934
5934
  return (_a = props.render(props.renderParam)) != null ? _a : null;
5935
5935
  }
5936
+
5937
+ // src/components/InfiniteTable/utils/RenderHookComponentForInfinite.tsx
5936
5938
  function RenderCellHookComponent(props) {
5937
5939
  const ContextProvider = InfiniteTableColumnCellContext.Provider;
5938
5940
  return /* @__PURE__ */ createElement19(ContextProvider, {
@@ -5998,19 +6000,19 @@ import { useEffect as useEffect11, useState as useState7 } from "react";
5998
6000
 
5999
6001
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
6000
6002
  var import_createRuntimeFn5 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
6001
- var CellCls = "_1eexc2a5 _16lm1iwu _16lm1iw1f _16lm1iw1h _16lm1iw2 _16lm1iw1r _16lm1iw1s _16lm1iwy";
6002
- var HeaderCellContentRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob11e _16lm1iw10 _16lm1iw12 _16lm1iwu _16lm1iw1f _16lm1iw1h", variantClassNames: { filtered: { false: "_12zfob11f", true: "_12zfob11g" } }, defaultVariants: {}, compoundVariants: [] });
6003
- var HeaderCellProxy = "_12zfob1k _16lm1iw1s _16lm1iw1t _16lm1iw1m";
6004
- var HeaderCellRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob1l _16lm1iww", variantClassNames: { rowActive: { false: "_12zfob1m", true: "_12zfob1n" }, rowSelected: { false: "_12zfob1o", true: "_12zfob1p", null: "_12zfob1q" }, zebra: { false: "_12zfob1r", even: "_12zfob1s", odd: "_12zfob1t" }, dragging: { true: "_12zfob1u", false: "_12zfob1v" }, first: { true: "_12zfob1w", false: "_12zfob1x" }, last: { true: "_12zfob1y", false: "_12zfob1z" }, groupByField: { true: "_12zfob110", false: "_12zfob111" }, firstInCategory: { true: "_12zfob112", false: "_12zfob113" }, lastInCategory: { true: "_12zfob114", false: "_12zfob115" }, pinned: { start: "_12zfob116", end: "_12zfob117", false: "_12zfob118" }, filtered: { true: "_12zfob119", false: "_12zfob11a" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_12zfob11b"], [{ pinned: "end", firstInCategory: true }, "_12zfob11c"], [{ pinned: false, lastInCategory: true }, "_12zfob11d"]] });
6005
- var HeaderClsRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob16 _16lm1iww _16lm1iw2", variantClassNames: { pinned: { start: "_12zfob17", end: "_12zfob18", false: "_12zfob19" }, firstInCategory: { true: "_12zfob1a", false: "_12zfob1b" }, lastInCategory: { true: "_12zfob1c", false: "_12zfob1d" }, overflow: { true: "_12zfob1e", false: "_12zfob1f" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "_12zfob1g"], [{ pinned: "start", firstInCategory: true }, "_12zfob1h"], [{ overflow: true, pinned: "end" }, "_12zfob1i"], [{ pinned: "end", lastInCategory: true }, "_12zfob1j"]] });
6006
- var HeaderFilterCls = "_12zfob11j _16lm1iwu _16lm1iw1f _16lm1iw1h _16lm1iw1";
6007
- var HeaderFilterEditorCls = "_16lm1iw12 _16lm1iw10";
6008
- var HeaderGroupCls = "_12zfob11i _16lm1iwu _16lm1iw1f _16lm1iw1h";
6003
+ var CellCls = "_1eexc2a5 _16lm1iww _16lm1iw1l _16lm1iw1n _16lm1iw2 _16lm1iw1x _16lm1iw1y _16lm1iw14";
6004
+ var HeaderCellContentRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob11e _16lm1iw16 _16lm1iw18 _16lm1iww _16lm1iw1l _16lm1iw1n", variantClassNames: { filtered: { false: "_12zfob11f", true: "_12zfob11g" } }, defaultVariants: {}, compoundVariants: [] });
6005
+ var HeaderCellProxy = "_12zfob1k _16lm1iw1y _16lm1iw1z _16lm1iw1s";
6006
+ var HeaderCellRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob1l _16lm1iwz", variantClassNames: { rowActive: { false: "_12zfob1m", true: "_12zfob1n" }, rowSelected: { false: "_12zfob1o", true: "_12zfob1p", null: "_12zfob1q" }, zebra: { false: "_12zfob1r", even: "_12zfob1s", odd: "_12zfob1t" }, dragging: { true: "_12zfob1u", false: "_12zfob1v" }, first: { true: "_12zfob1w", false: "_12zfob1x" }, last: { true: "_12zfob1y", false: "_12zfob1z" }, groupByField: { true: "_12zfob110", false: "_12zfob111" }, firstInCategory: { true: "_12zfob112", false: "_12zfob113" }, lastInCategory: { true: "_12zfob114", false: "_12zfob115" }, pinned: { start: "_12zfob116", end: "_12zfob117", false: "_12zfob118" }, filtered: { true: "_12zfob119", false: "_12zfob11a" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_12zfob11b"], [{ pinned: "end", firstInCategory: true }, "_12zfob11c"], [{ pinned: false, lastInCategory: true }, "_12zfob11d"]] });
6007
+ var HeaderClsRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "_12zfob16 _16lm1iwz _16lm1iw2", variantClassNames: { pinned: { start: "_12zfob17", end: "_12zfob18", false: "_12zfob19" }, firstInCategory: { true: "_12zfob1a", false: "_12zfob1b" }, lastInCategory: { true: "_12zfob1c", false: "_12zfob1d" }, overflow: { true: "_12zfob1e", false: "_12zfob1f" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "_12zfob1g"], [{ pinned: "start", firstInCategory: true }, "_12zfob1h"], [{ overflow: true, pinned: "end" }, "_12zfob1i"], [{ pinned: "end", lastInCategory: true }, "_12zfob1j"]] });
6008
+ var HeaderFilterCls = "_12zfob11j _16lm1iww _16lm1iw1l _16lm1iw1n _16lm1iw1";
6009
+ var HeaderFilterEditorCls = "_16lm1iw18 _16lm1iw16";
6010
+ var HeaderGroupCls = "_12zfob11i _16lm1iww _16lm1iw1l _16lm1iw1n";
6009
6011
  var HeaderScrollbarPlaceholderCls = "_12zfob15 _16lm1iw2";
6010
6012
  var HeaderSortIconCls = "_16lm1iw1";
6011
6013
  var HeaderSortIconIndexCls = "_12zfob14";
6012
6014
  var HeaderSortIconRecipe = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "", variantClassNames: { align: { start: "_12zfob11", center: "_12zfob12", end: "_12zfob13" } }, defaultVariants: {}, compoundVariants: [] });
6013
- var HeaderWrapperCls = "_12zfob11h _16lm1iw1m _16lm1iw1 _16lm1iwu _16lm1iw1f";
6015
+ var HeaderWrapperCls = "_12zfob11h _16lm1iw1s _16lm1iw1 _16lm1iww _16lm1iw1l";
6014
6016
 
6015
6017
  // src/components/InfiniteTable/components/icons/SortIcon.tsx
6016
6018
  var defaultLineStyle = {
@@ -6580,9 +6582,9 @@ function getColumnGroupResizer(colIndexes, config) {
6580
6582
 
6581
6583
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/ResizeHandle.css.ts
6582
6584
  var import_createRuntimeFn6 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
6583
- var ResizeHandleCls = "zneyzh0 _16lm1iw2 _16lm1iw13 _16lm1iw1a _16lm1iw18 _16lm1iwf _16lm1iw1m";
6584
- var ResizeHandleDraggerClsRecipe = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "zneyzhb _16lm1iw2 _16lm1iw13 _16lm1iw18", variantClassNames: { constrained: { false: "zneyzhc", true: "zneyzhd" } }, defaultVariants: {}, compoundVariants: [] });
6585
- var ResizeHandleRecipeCls = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "", variantClassNames: { computedPinned: { start: "zneyzh1", end: "zneyzh2 _16lm1iw15 _16lm1iw1c", false: "zneyzh3" }, computedFirstInCategory: { true: "zneyzh4", false: "zneyzh5" }, computedLastInCategory: { true: "zneyzh6", false: "zneyzh7" } }, defaultVariants: {}, compoundVariants: [[{ computedPinned: "end", computedLastInCategory: false, computedFirstInCategory: true }, "zneyzh8"], [{ computedPinned: false, computedFirstInCategory: false, computedLastInCategory: true }, "zneyzh9"], [{ computedPinned: "start", computedFirstInCategory: false, computedLastInCategory: true }, "zneyzha"]] });
6585
+ var ResizeHandleCls = "zneyzh0 _16lm1iw2 _16lm1iw19 _16lm1iw1g _16lm1iw1e _16lm1iwh _16lm1iw1s";
6586
+ var ResizeHandleDraggerClsRecipe = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "zneyzhb _16lm1iw2 _16lm1iw19 _16lm1iw1e", variantClassNames: { constrained: { false: "zneyzhc", true: "zneyzhd" } }, defaultVariants: {}, compoundVariants: [] });
6587
+ var ResizeHandleRecipeCls = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "", variantClassNames: { computedPinned: { start: "zneyzh1", end: "zneyzh2 _16lm1iw1b _16lm1iw1i", false: "zneyzh3" }, computedFirstInCategory: { true: "zneyzh4", false: "zneyzh5" }, computedLastInCategory: { true: "zneyzh6", false: "zneyzh7" } }, defaultVariants: {}, compoundVariants: [[{ computedPinned: "end", computedLastInCategory: false, computedFirstInCategory: true }, "zneyzh8"], [{ computedPinned: false, computedFirstInCategory: false, computedLastInCategory: true }, "zneyzh9"], [{ computedPinned: "start", computedFirstInCategory: false, computedLastInCategory: true }, "zneyzha"]] });
6586
6588
 
6587
6589
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/index.tsx
6588
6590
  var { rootClassName: rootClassName8 } = internalProps;
@@ -7581,8 +7583,8 @@ import {
7581
7583
  } from "react";
7582
7584
 
7583
7585
  // src/components/InfiniteTable/components/LoadMask.css.ts
7584
- var LoadMaskCls = { visible: "qy58ya1 qy58ya0 _16lm1iw2 _16lm1iw13 _16lm1iw15 _16lm1iw1a _16lm1iw18", hidden: "qy58ya2 qy58ya0 _16lm1iw2 _16lm1iw13 _16lm1iw15 _16lm1iw1a _16lm1iw18" };
7585
- var LoadMaskOverlayCls = "qy58ya3 _16lm1iw2 _16lm1iw13 _16lm1iw15 _16lm1iw1a _16lm1iw18";
7586
+ var LoadMaskCls = { visible: "qy58ya1 qy58ya0 _16lm1iw2 _16lm1iw19 _16lm1iw1b _16lm1iw1g _16lm1iw1e", hidden: "qy58ya2 qy58ya0 _16lm1iw2 _16lm1iw19 _16lm1iw1b _16lm1iw1g _16lm1iw1e" };
7587
+ var LoadMaskOverlayCls = "qy58ya3 _16lm1iw2 _16lm1iw19 _16lm1iw1b _16lm1iw1g _16lm1iw1e";
7586
7588
  var LoadMaskTextCls = "qy58ya4";
7587
7589
 
7588
7590
  // src/components/InfiniteTable/components/LoadMask.tsx
@@ -7631,12 +7633,14 @@ function deepClone(source) {
7631
7633
  return target;
7632
7634
  }
7633
7635
 
7634
- // src/utils/groupAndPivot/index.ts
7635
- var LAZY_ROOT_KEY_FOR_GROUPS = "____root____";
7636
- var NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
7636
+ // src/utils/groupAndPivot/defaultToKey.ts
7637
7637
  function DEFAULT_TO_KEY(value) {
7638
7638
  return value;
7639
7639
  }
7640
+
7641
+ // src/utils/groupAndPivot/index.ts
7642
+ var LAZY_ROOT_KEY_FOR_GROUPS = "____root____";
7643
+ var NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
7640
7644
  function initReducers(reducers) {
7641
7645
  if (!reducers || !Object.keys(reducers).length) {
7642
7646
  return {};
@@ -7806,14 +7810,6 @@ function processGroup(deepMap, currentGroupKeys, currentPivotKeys, item, itemInd
7806
7810
  currentPivotKeys.length = 0;
7807
7811
  }
7808
7812
  }
7809
- function getGroupKeysForDataItem(data, groupBy) {
7810
- return groupBy.reduce((groupKeys, groupBy2) => {
7811
- const { field: groupByProperty, toKey: groupToKey } = groupBy2;
7812
- const key = (groupToKey || DEFAULT_TO_KEY)(data[groupByProperty], data);
7813
- groupKeys.push(key);
7814
- return groupKeys;
7815
- }, []);
7816
- }
7817
7813
  function group(groupParams, data) {
7818
7814
  const {
7819
7815
  groupBy,
@@ -8909,6 +8905,16 @@ function lazyLoadRange(options, cache) {
8909
8905
  }, initialPromise);
8910
8906
  }
8911
8907
 
8908
+ // src/utils/groupAndPivot/getGroupKeysForDataItem.ts
8909
+ function getGroupKeysForDataItem(data, groupBy) {
8910
+ return groupBy.reduce((groupKeys, groupBy2) => {
8911
+ const { field: groupByProperty, toKey: groupToKey } = groupBy2;
8912
+ const key = (groupToKey || DEFAULT_TO_KEY)(data[groupByProperty], data);
8913
+ groupKeys.push(key);
8914
+ return groupKeys;
8915
+ }, []);
8916
+ }
8917
+
8912
8918
  // src/components/DataSource/RowSelectionState.ts
8913
8919
  var RowSelectionState = class {
8914
8920
  constructor(state, getConfig, _forTestingOnly) {
@@ -8985,8 +8991,8 @@ var RowSelectionState = class {
8985
8991
  getGroupByLength() {
8986
8992
  return this.getConfig().groupBy.length;
8987
8993
  }
8988
- static from(rowSeleStateObject, getConfig, _forTestingOnly) {
8989
- return new RowSelectionState(rowSeleStateObject, getConfig, _forTestingOnly);
8994
+ static from(rowSeleStateObject, getConfig, overrides) {
8995
+ return new RowSelectionState(rowSeleStateObject, getConfig, overrides);
8990
8996
  }
8991
8997
  update(stateObject) {
8992
8998
  var _a, _b;
@@ -9354,6 +9360,9 @@ var RowSelectionState = class {
9354
9360
  };
9355
9361
 
9356
9362
  // src/components/InfiniteTable/api/getSelectionApi.ts
9363
+ function cloneRowSelection(rowSelection, stateOrGetDataSourceState) {
9364
+ return new RowSelectionState(rowSelection, rowSelectionStateConfigGetter(stateOrGetDataSourceState));
9365
+ }
9357
9366
  function rowSelectionStateConfigGetter(stateOrStateGetter) {
9358
9367
  return () => {
9359
9368
  const state = typeof stateOrStateGetter === "function" ? stateOrStateGetter() : stateOrStateGetter;
@@ -12514,7 +12523,7 @@ var useLicense = (licenseKey = "") => {
12514
12523
  const valid = useMemo11(() => {
12515
12524
  let valid2 = isValidLicense(licenseKey, {
12516
12525
  publishedAt: 1624970570587,
12517
- version: "0.4.11"
12526
+ version: "0.4.12"
12518
12527
  });
12519
12528
  if (!licenseKey && !valid2 && isInsidePlayground) {
12520
12529
  return true;
@@ -12849,7 +12858,14 @@ function onCellClick(context, event) {
12849
12858
  updateRowSelectionOnCellClick(context, event);
12850
12859
  }
12851
12860
  function updateRowSelectionOnCellClick(context, event) {
12852
- const { rowIndex, getDataSourceState, getComputed, dataSourceActions, api } = context;
12861
+ const {
12862
+ rowIndex,
12863
+ getDataSourceState,
12864
+ getComputed,
12865
+ dataSourceActions,
12866
+ api,
12867
+ cloneRowSelection: cloneRowSelection2
12868
+ } = context;
12853
12869
  const { multiRowSelector, renderSelectionCheckBox } = getComputed();
12854
12870
  const dataSourceState = getDataSourceState();
12855
12871
  const { selectionMode, groupBy, dataArray } = dataSourceState;
@@ -12861,7 +12877,7 @@ function updateRowSelectionOnCellClick(context, event) {
12861
12877
  return false;
12862
12878
  }
12863
12879
  let { rowSelection: rowSelectionState } = dataSourceState;
12864
- rowSelectionState = new RowSelectionState(rowSelectionState, rowSelectionStateConfigGetter(getDataSourceState));
12880
+ rowSelectionState = cloneRowSelection2(rowSelectionState);
12865
12881
  multiRowSelector.rowSelectionState = rowSelectionState;
12866
12882
  if (rowSelectionState && typeof rowSelectionState === "object") {
12867
12883
  if (event.shiftKey) {
@@ -12891,8 +12907,9 @@ function clamp(value, min, max) {
12891
12907
  }
12892
12908
 
12893
12909
  // src/components/InfiniteTable/eventHandlers/keyboardNavigation.ts
12894
- function handleRowNavigation(options) {
12895
- const { key, getState, getDataSourceState, actions, api } = options;
12910
+ function handleRowNavigation(options, event) {
12911
+ const { getState, getDataSourceState, actions, api } = options;
12912
+ const { key } = event;
12896
12913
  const dataArray = getDataSourceState().dataArray;
12897
12914
  const arrLength = dataArray.length;
12898
12915
  const state = getState();
@@ -12957,16 +12974,15 @@ function handleRowNavigation(options) {
12957
12974
  actions.activeRowIndex = activeRowIndex;
12958
12975
  return true;
12959
12976
  }
12960
- function handleCellNavigation(options) {
12977
+ function handleCellNavigation(options, event) {
12961
12978
  const {
12962
12979
  api,
12963
- key,
12964
- shiftKey,
12965
12980
  getState,
12966
12981
  getComputed,
12967
12982
  getDataSourceState,
12968
12983
  actions
12969
12984
  } = options;
12985
+ const { key, shiftKey } = event;
12970
12986
  const dataArray = getDataSourceState().dataArray;
12971
12987
  const state = getState();
12972
12988
  const { activeCellIndex, brain } = state;
@@ -13056,18 +13072,19 @@ var validKeys = {
13056
13072
  Enter: true,
13057
13073
  " ": true
13058
13074
  };
13059
- function handleKeyboardNavigation(options) {
13075
+ function handleKeyboardNavigation(options, event) {
13076
+ const { key } = event;
13060
13077
  const { getState } = options;
13061
13078
  const state = getState();
13062
13079
  const { activeRowIndex, activeCellIndex, keyboardNavigation } = state;
13063
- if (!validKeys[options.key]) {
13080
+ if (!validKeys[key]) {
13064
13081
  return false;
13065
13082
  }
13066
13083
  if (activeRowIndex != null && keyboardNavigation === "row") {
13067
- return handleRowNavigation(options);
13084
+ return handleRowNavigation(options, event);
13068
13085
  }
13069
13086
  if (activeCellIndex != null && keyboardNavigation === "cell") {
13070
- return handleCellNavigation(options);
13087
+ return handleCellNavigation(options, event);
13071
13088
  }
13072
13089
  return false;
13073
13090
  }
@@ -13078,16 +13095,15 @@ var validKeys2 = {
13078
13095
  " ": true,
13079
13096
  a: true
13080
13097
  };
13081
- function handleKeyboardSelection(context) {
13098
+ function handleKeyboardSelection(context, keyboardEvent) {
13082
13099
  const {
13083
13100
  getState,
13084
13101
  getDataSourceState,
13085
13102
  dataSourceActions,
13086
13103
  api: imperativeApi,
13087
- key,
13088
- ctrlKey,
13089
- metaKey
13104
+ cloneRowSelection: cloneRowSelection2
13090
13105
  } = context;
13106
+ const { key, ctrlKey, metaKey } = keyboardEvent;
13091
13107
  if (!validKeys2[key]) {
13092
13108
  return false;
13093
13109
  }
@@ -13116,21 +13132,21 @@ function handleKeyboardSelection(context) {
13116
13132
  return false;
13117
13133
  }
13118
13134
  if (key === "a" && (ctrlKey || metaKey)) {
13119
- const rowSelectionState = new RowSelectionState(rowSelection, rowSelectionStateConfigGetter(getDataSourceState));
13135
+ const rowSelectionState = cloneRowSelection2(rowSelection);
13120
13136
  rowSelectionState.selectAll();
13121
13137
  dataSourceActions.rowSelection = rowSelectionState;
13122
13138
  return true;
13123
13139
  }
13124
13140
  if (key === " ") {
13125
13141
  if (groupBy.length) {
13126
- if (rowInfo.isGroupRow) {
13142
+ if (rowInfo.isGroupRow && rowInfo.groupKeys) {
13127
13143
  imperativeApi.selectionApi.toggleGroupRowSelection(rowInfo.groupKeys);
13128
13144
  } else {
13129
13145
  imperativeApi.selectionApi.toggleRowSelection(rowInfo.id);
13130
13146
  }
13131
13147
  return true;
13132
13148
  } else {
13133
- const event = __spreadValues({}, context);
13149
+ const event = __spreadValues({}, keyboardEvent);
13134
13150
  const { renderSelectionCheckBox } = context.getComputed();
13135
13151
  if (renderSelectionCheckBox) {
13136
13152
  event.metaKey = false;
@@ -13145,15 +13161,14 @@ function handleKeyboardSelection(context) {
13145
13161
  // src/components/InfiniteTable/eventHandlers/onKeyDown.ts
13146
13162
  function onKeyDown(context, event) {
13147
13163
  const keyboardHandlerContext = __spreadProps(__spreadValues({}, context), {
13148
- key: event.key,
13149
- metaKey: event.metaKey,
13150
- ctrlKey: event.ctrlKey,
13151
- shiftKey: event.shiftKey
13164
+ cloneRowSelection: (rowSelection) => {
13165
+ return cloneRowSelection(rowSelection, context.getDataSourceState);
13166
+ }
13152
13167
  });
13153
- if (handleKeyboardSelection(keyboardHandlerContext)) {
13168
+ if (handleKeyboardSelection(keyboardHandlerContext, event)) {
13154
13169
  event.preventDefault();
13155
13170
  }
13156
- if (handleKeyboardNavigation(keyboardHandlerContext)) {
13171
+ if (handleKeyboardNavigation(keyboardHandlerContext, event)) {
13157
13172
  event.preventDefault();
13158
13173
  }
13159
13174
  }
@@ -13174,7 +13189,10 @@ function useEventHandlersContext() {
13174
13189
  getState,
13175
13190
  actions,
13176
13191
  getDataSourceState,
13177
- dataSourceActions
13192
+ dataSourceActions,
13193
+ cloneRowSelection: (rowSelection) => {
13194
+ return cloneRowSelection(rowSelection, getDataSourceState);
13195
+ }
13178
13196
  };
13179
13197
  return context2;
13180
13198
  }, [getState, actions, getDataSourceState, dataSourceActions]);
@@ -13184,13 +13202,7 @@ function handleDOMEvents() {
13184
13202
  const context = useEventHandlersContext();
13185
13203
  useEffect29(() => {
13186
13204
  const removeOnKeyDown = context.getState().keyDown.onChange((event) => {
13187
- onKeyDown(__spreadProps(__spreadValues({}, context), {
13188
- key: event.key,
13189
- metaKey: event.metaKey,
13190
- ctrlKey: event.ctrlKey,
13191
- shiftKey: event.shiftKey,
13192
- preventDefault: () => event.preventDefault()
13193
- }), event);
13205
+ onKeyDown(context, event);
13194
13206
  });
13195
13207
  function cellClickHandler(cellClickParam) {
13196
13208
  if (!cellClickParam) {
@@ -13204,10 +13216,10 @@ function handleDOMEvents() {
13204
13216
  key: "",
13205
13217
  preventDefault: () => event.preventDefault()
13206
13218
  };
13207
- onCellClick(__spreadValues(__spreadProps(__spreadValues({}, context), {
13219
+ onCellClick(__spreadProps(__spreadValues({}, context), {
13208
13220
  rowIndex: cellClickParam.rowIndex,
13209
13221
  colIndex: cellClickParam.colIndex
13210
- }), virtualEvent), virtualEvent);
13222
+ }), virtualEvent);
13211
13223
  }
13212
13224
  const removeOnCellClick = context.getState().cellClick.onChange(cellClickHandler);
13213
13225
  return () => {
@@ -13402,6 +13414,245 @@ InfiniteTable.defaultProps = {
13402
13414
  columnHeaderHeight: toCSSVarName(columnHeaderHeightName)
13403
13415
  };
13404
13416
 
13417
+ // src/components/Menu/index.tsx
13418
+ import {
13419
+ Children,
13420
+ createElement as createElement36,
13421
+ useState as useState16
13422
+ } from "react";
13423
+ import { useState as useState17 } from "react";
13424
+
13425
+ // src/components/Menu/MenuCls.css.ts
13426
+ var import_createRuntimeFn7 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
13427
+ var MenuCls = "db3arf0 _16lm1iw0 _16lm1iw1 _16lm1iw13 _16lm1iw1j _16lm1iw7";
13428
+ var MenuItemCls = (0, import_createRuntimeFn7.createRuntimeFn)({ defaultClassName: "db3arf2 _16lm1iww _16lm1iw1n _16lm1iw14", variantClassNames: { disabled: { true: "db3arf3 _16lm1iwg _16lm1iw14", false: "_16lm1iwf" }, hover: { true: "db3arf5", false: "db3arf6" }, pressed: { false: "db3arf7", true: "db3arf8" }, active: { true: "db3arf9", false: "db3arfa" } }, defaultVariants: {}, compoundVariants: [[{ pressed: true, hover: true }, "db3arfb"]] });
13429
+ var MenuRowCls = "_16lm1iwx";
13430
+ var MenuSeparatorCls = "db3arfc";
13431
+
13432
+ // src/components/Menu/index.tsx
13433
+ var SEPARATOR = "-";
13434
+ function MenuSeparator() {
13435
+ return /* @__PURE__ */ createElement36("hr", {
13436
+ className: MenuSeparatorCls
13437
+ });
13438
+ }
13439
+ var toRuntimeItem = ({ columns, activeItemKey }, item) => {
13440
+ const menuItem = item && (item.key != null || item.label != null) ? item : null;
13441
+ const menuDecoration = menuItem === null ? item === SEPARATOR ? /* @__PURE__ */ createElement36(MenuSeparator, null) : item : null;
13442
+ const runtimeItem = menuItem != null ? {
13443
+ type: "item",
13444
+ disabled: !!menuItem.disabled,
13445
+ active: menuItem.key === activeItemKey,
13446
+ value: menuItem,
13447
+ span: menuItem.span || 1,
13448
+ key: menuItem.key,
13449
+ menu: menuItem.menu || null
13450
+ } : {
13451
+ type: "decoration",
13452
+ value: menuDecoration,
13453
+ span: columns.length,
13454
+ style: {
13455
+ gridColumnStart: 1,
13456
+ gridColumnEnd: columns.length + 10
13457
+ }
13458
+ };
13459
+ return runtimeItem;
13460
+ };
13461
+ function childrenToRuntimeItems(context, children) {
13462
+ return Children.map(children, (child) => {
13463
+ if (child == null ? void 0 : child.props.__is_menu_item) {
13464
+ const itemProps = __spreadValues({}, child.props);
13465
+ if (!itemProps.key) {
13466
+ itemProps.key = child.key;
13467
+ }
13468
+ if (!itemProps.description) {
13469
+ itemProps.description = child.props.children;
13470
+ }
13471
+ if (!itemProps.label) {
13472
+ itemProps.label = itemProps.children;
13473
+ }
13474
+ return toRuntimeItem(context, itemProps);
13475
+ }
13476
+ return toRuntimeItem(context, child);
13477
+ }) || [];
13478
+ }
13479
+ var defaultColumns = [
13480
+ {
13481
+ name: "label"
13482
+ }
13483
+ ];
13484
+ function Menu(props) {
13485
+ const _a = props, {
13486
+ children,
13487
+ items,
13488
+ columns: cols,
13489
+ addSubmenuColumnIfNeeded
13490
+ } = _a, domProps = __objRest(_a, [
13491
+ "children",
13492
+ "items",
13493
+ "columns",
13494
+ "addSubmenuColumnIfNeeded"
13495
+ ]);
13496
+ const [activeItemKey, setActiveItemKey] = useState17(null);
13497
+ const columns = cols || defaultColumns;
13498
+ let runtimeItems = [];
13499
+ let renderedChildren = null;
13500
+ const context = { columns, activeItemKey };
13501
+ if (items) {
13502
+ runtimeItems = items.map(toRuntimeItem.bind(null, context));
13503
+ } else if (!items && typeof children !== "function") {
13504
+ runtimeItems = childrenToRuntimeItems(context, children);
13505
+ }
13506
+ if (addSubmenuColumnIfNeeded) {
13507
+ const hasSubmenus = runtimeItems.filter((item) => item.type === "item" && item.menu != null).length > 0;
13508
+ if (hasSubmenus && !columns.find((col) => col.name == "submenu")) {
13509
+ columns.push({
13510
+ name: "submenu",
13511
+ render: ({ domProps: domProps2, item }) => {
13512
+ return item.menu ? /* @__PURE__ */ createElement36("div", __spreadValues({}, domProps2), /* @__PURE__ */ createElement36(ExpanderIcon, null)) : /* @__PURE__ */ createElement36("div", __spreadValues({}, domProps2));
13513
+ }
13514
+ });
13515
+ }
13516
+ }
13517
+ renderedChildren = runtimeItems.map((runtimeItem, index) => /* @__PURE__ */ createElement36(RuntimeItemRenderer, {
13518
+ columns,
13519
+ item: runtimeItem,
13520
+ index,
13521
+ onClick: (item) => setActiveItemKey(item.key)
13522
+ }));
13523
+ const gridTemplateColumns = columns.map((col) => {
13524
+ return col.width || (typeof col.flex === "number" ? `${col.flex}fr` : col.flex) || "auto";
13525
+ }).join(" ");
13526
+ const style = __spreadProps(__spreadValues({}, domProps.style), {
13527
+ gridTemplateColumns,
13528
+ gridTemplateRows: runtimeItems.map(() => `auto`).join(" ")
13529
+ });
13530
+ function handleKeydown(event) {
13531
+ const selectableRuntimeItems = runtimeItems.filter((item) => item.type === "item" && !item.disabled);
13532
+ let activeIndex = selectableRuntimeItems.findIndex((runtimeItem) => runtimeItem.key === activeItemKey);
13533
+ let newActiveIndex = activeIndex;
13534
+ const validKeys3 = {
13535
+ ArrowUp: () => {
13536
+ newActiveIndex--;
13537
+ },
13538
+ ArrowDown: () => {
13539
+ newActiveIndex++;
13540
+ },
13541
+ PageUp: () => {
13542
+ newActiveIndex = 0;
13543
+ },
13544
+ PageDown: () => {
13545
+ newActiveIndex = selectableRuntimeItems.length - 1;
13546
+ }
13547
+ };
13548
+ const fn = validKeys3[event.key];
13549
+ if (fn) {
13550
+ fn();
13551
+ }
13552
+ newActiveIndex = clamp(newActiveIndex, 0, selectableRuntimeItems.length - 1);
13553
+ if (newActiveIndex != activeIndex) {
13554
+ setActiveItemKey(selectableRuntimeItems[newActiveIndex].key);
13555
+ }
13556
+ }
13557
+ return /* @__PURE__ */ createElement36("div", __spreadProps(__spreadValues({}, domProps), {
13558
+ onKeyDown: (event) => {
13559
+ if (domProps.onKeyDown) {
13560
+ domProps.onKeyDown(event);
13561
+ }
13562
+ handleKeydown(event);
13563
+ },
13564
+ tabIndex: 0,
13565
+ className: join(MenuCls, domProps.className),
13566
+ style
13567
+ }), renderedChildren);
13568
+ }
13569
+ var menuDefaultProps = {
13570
+ addSubmenuColumnIfNeeded: true
13571
+ };
13572
+ Menu.defaultProps = menuDefaultProps;
13573
+ function RuntimeItemRenderer(props) {
13574
+ const [hover, setHover] = useState16(false);
13575
+ const [pressed, setPressed] = useState16(false);
13576
+ const { columns, item, index } = props;
13577
+ const key = item.type === "item" ? item.value.key : index;
13578
+ let content = null;
13579
+ if (item.type === "decoration") {
13580
+ content = /* @__PURE__ */ createElement36("div", {
13581
+ style: item.style
13582
+ }, item.value);
13583
+ } else {
13584
+ let spanIndex = 0;
13585
+ content = columns.map((col, i) => {
13586
+ const target = item.value;
13587
+ const field = col.field || col.name;
13588
+ const start = i + 1;
13589
+ const end = start + item.span;
13590
+ if (start < spanIndex) {
13591
+ return null;
13592
+ }
13593
+ spanIndex = end;
13594
+ const style = __spreadProps(__spreadValues(__spreadValues({}, col.style), item.style), {
13595
+ gridColumnStart: start,
13596
+ gridColumnEnd: end
13597
+ });
13598
+ const domProps = {
13599
+ style,
13600
+ className: MenuItemCls({
13601
+ hover,
13602
+ disabled: !!item.disabled,
13603
+ active: item.active,
13604
+ pressed
13605
+ }),
13606
+ onMouseEnter: () => {
13607
+ if (!item.disabled) {
13608
+ setHover(true);
13609
+ }
13610
+ },
13611
+ onMouseLeave: () => {
13612
+ if (!item.disabled) {
13613
+ setHover(false);
13614
+ }
13615
+ },
13616
+ onMouseDown: () => {
13617
+ if (!item.disabled) {
13618
+ setPressed(true);
13619
+ }
13620
+ },
13621
+ onMouseUp: () => {
13622
+ if (!item.disabled) {
13623
+ setPressed(false);
13624
+ }
13625
+ },
13626
+ onClick: () => {
13627
+ if (!item.disabled) {
13628
+ props.onClick(item);
13629
+ }
13630
+ }
13631
+ };
13632
+ return col.render ? /* @__PURE__ */ createElement36(RenderHookComponent, {
13633
+ render: col.render,
13634
+ renderParam: {
13635
+ item: target,
13636
+ column: col,
13637
+ value: target[field],
13638
+ domProps
13639
+ }
13640
+ }) : /* @__PURE__ */ createElement36("div", __spreadValues({
13641
+ key: `${key}-${field}`
13642
+ }, domProps), target[field]);
13643
+ }).filter(Boolean);
13644
+ }
13645
+ return /* @__PURE__ */ createElement36("div", {
13646
+ className: MenuRowCls
13647
+ }, content);
13648
+ }
13649
+ function MenuItem(_props) {
13650
+ return null;
13651
+ }
13652
+ MenuItem.defaultProps = {
13653
+ __is_menu_item: true
13654
+ };
13655
+
13405
13656
  // src/index.tsx
13406
13657
  var components = {
13407
13658
  CheckBox: InfiniteCheckBox,
@@ -13414,6 +13665,8 @@ export {
13414
13665
  InfiniteTable,
13415
13666
  InfiniteTableClassName,
13416
13667
  InfiniteTableComponent,
13668
+ Menu,
13669
+ MenuItem,
13417
13670
  NumberFilterEditor,
13418
13671
  RowSelectionState,
13419
13672
  StringFilterEditor,