@infinite-table/infinite-react 5.0.0-canary.7 → 5.1.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.dev.js CHANGED
@@ -1304,49 +1304,6 @@ function buildSubscriptionCallback(withRaf = false) {
1304
1304
  return updater;
1305
1305
  }
1306
1306
 
1307
- // src/components/InfiniteTable/vars.css.ts
1308
- var ThemeVars = { color: { accent: "var(--infinite-accent-color)", success: "var(--infinite-success-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)", runtime: { bodyWidth: "var(--infinite-runtime-body-content-width)", totalVisibleColumnsWidthValue: "var(--infinite-runtime-total-visible-columns-width)", totalVisibleColumnsWidthVar: "var(--infinite-runtime-total-visible-columns-width-var)", visibleColumnsCount: "var(--infinite-runtime-visible-columns-count)", browserScrollbarWidth: "var(--infinite-runtime-browser-scrollbar-width)" }, 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)", border: "var(--infinite-header-cell-border)", 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)", borderRight: "var(--infinite-header-cell-border-right)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, ActiveCellIndicator: { inset: "var(--infinite-active-cell-indicator-inset)" }, Cell: { flashingDuration: "var(--infinite-flashing-duration)", flashingAnimationName: "var(--infinite-flashing-animation-name)", flashingOverlayZIndex: "var(--infinite-flashing-overlay-z-index)", flashingBackground: "var(--infinite-flashing-background)", flashingUpBackground: "var(--infinite-flashing-up-background)", flashingDownBackground: "var(--infinite-flashing-down-background)", padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderLeft: "var(--infinite-cell-border-left)", borderRight: "var(--infinite-cell-border-right)", borderTop: "var(--infinite-cell-border-top)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", reorderEffectDuration: "var(--infinite-column-reorder-effect-duration)", pinnedBorder: "var(--infinite-pinned-cell-border)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", separatorColor: "var(--infinite-menu-separator-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetail: { background: "var(--infinite-rowdetail-background)", padding: "var(--infinite-rowdetail-padding)", gridHeight: "var(--infinite-rowdetail-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", disabledBackground: "var(--infinite-row-disabled-background)", oddDisabledBackground: "var(--infinite-row-odd-disabled-background)", selectedBackground: "var(--infinite-row-selected-background)", disabledOpacity: "var(--infinite-row-disabled-opacity)", 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)", selectedDisabledBackground: "var(--infinite-row-selected-disabled-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)" } } };
1309
- var columnHeaderHeightName = "column-header-height";
1310
-
1311
- // src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx
1312
- var React9 = __toESM(require("react"));
1313
-
1314
- // src/utils/mathIntersection.ts
1315
- function arrayIntersection(...arrays) {
1316
- if (!arrays.length) {
1317
- return [];
1318
- }
1319
- const map2 = /* @__PURE__ */ new Map();
1320
- arrays.forEach((arr) => {
1321
- for (let i = 0, len2 = arr.length; i < len2; i++) {
1322
- const item = arr[i];
1323
- const count = map2.get(item) ?? 0;
1324
- map2.set(item, count + 1);
1325
- }
1326
- return map2;
1327
- });
1328
- const len = arrays.length;
1329
- return arrays[0].filter((x) => {
1330
- return map2.get(x) === len;
1331
- });
1332
- }
1333
-
1334
- // src/utils/raf.ts
1335
- var raf = getGlobal().requestAnimationFrame || ((fn) => {
1336
- return setTimeout(fn, 16);
1337
- });
1338
- var cancelRaf = getGlobal().cancelAnimationFrame || ((timeoutId) => {
1339
- return clearTimeout(timeoutId);
1340
- });
1341
-
1342
- // src/utils/stripVar.ts
1343
- function stripVar(cssVariableWithVarString) {
1344
- return cssVariableWithVarString.slice(4, -1);
1345
- }
1346
-
1347
- // src/components/InfiniteTable/internalVars.css.ts
1348
- var InternalVars = { currentColumnTransformX: "var(--currentColumnTransformX__16hkbkc0)", y: "var(--y__16hkbkc1)", currentFlashingBackground: "var(--currentFlashingBackground__16hkbkc2)", currentFlashingDuration: "var(--currentFlashingDuration__16hkbkc3)", activeCellRowOffset: "var(--activeCellRowOffset__16hkbkc4)", activeCellRowOffsetX: "var(--activeCellRowOffsetX__16hkbkc5)", activeCellRowHeight: "var(--activeCellRowHeight__16hkbkc6)", activeCellOffsetX: "var(--activeCellOffsetX__16hkbkc7)", activeCellOffsetY: "var(--activeCellOffsetY__16hkbkc8)", scrollTopForActiveRow: "var(--scrollTopForActiveRow__16hkbkc9)", scrollLeftForActiveRowWhenHorizontalLayout: "var(--scrollLeftForActiveRowWhenHorizontalLayout__16hkbkca)", activeCellColWidth: "var(--activeCellColWidth__16hkbkcb)", activeCellColOffset: "var(--activeCellColOffset__16hkbkcc)", columnReorderEffectDurationAtIndex: "var(--columnReorderEffectDurationAtIndex__16hkbkcd)", columnWidthAtIndex: "var(--columnWidthAtIndex__16hkbkce)", columnOffsetAtIndex: "var(--columnOffsetAtIndex__16hkbkcf)", columnOffsetAtIndexWhileReordering: "var(--columnOffsetAtIndexWhileReordering__16hkbkcg)", columnZIndexAtIndex: "var(--columnZIndexAtIndex__16hkbkch)", pinnedStartWidth: "var(--pinnedStartWidth__16hkbkci)", pinnedEndWidth: "var(--pinnedEndWidth__16hkbkcj)", pinnedEndOffset: "var(--pinnedEndOffset__16hkbkck)", computedVisibleColumnsCount: "var(--computedVisibleColumnsCount__16hkbkcl)", baseZIndexForCells: "var(--baseZIndexForCells__16hkbkcm)", bodyWidth: "var(--bodyWidth__16hkbkcn)", bodyHeight: "var(--bodyHeight__16hkbkco)", scrollbarWidthHorizontal: "var(--scrollbarWidthHorizontal__16hkbkcp)", scrollbarWidthVertical: "var(--scrollbarWidthVertical__16hkbkcq)", scrollLeft: "var(--scrollLeft__16hkbkcr)", scrollTop: "var(--scrollTop__16hkbkcs)" };
1349
-
1350
1307
  // src/utils/selectParent.ts
1351
1308
  function selectParent(el, selector2) {
1352
1309
  let node = el;
@@ -1382,12 +1339,24 @@ function selectParentUntil(el, selector2, root) {
1382
1339
  return null;
1383
1340
  }
1384
1341
 
1342
+ // src/utils/stripVar.ts
1343
+ function stripVar(cssVariableWithVarString) {
1344
+ return cssVariableWithVarString.slice(4, -1);
1345
+ }
1346
+
1385
1347
  // src/components/InfiniteTable/internalProps.ts
1386
1348
  var rootClassName2 = "Infinite";
1387
1349
  var internalProps = {
1388
1350
  rootClassName: rootClassName2
1389
1351
  };
1390
1352
 
1353
+ // src/components/InfiniteTable/internalVars.css.ts
1354
+ var InternalVars = { currentColumnTransformX: "var(--currentColumnTransformX__16hkbkc0)", y: "var(--y__16hkbkc1)", currentFlashingBackground: "var(--currentFlashingBackground__16hkbkc2)", currentFlashingDuration: "var(--currentFlashingDuration__16hkbkc3)", activeCellRowOffset: "var(--activeCellRowOffset__16hkbkc4)", activeCellRowOffsetX: "var(--activeCellRowOffsetX__16hkbkc5)", activeCellRowHeight: "var(--activeCellRowHeight__16hkbkc6)", activeCellOffsetX: "var(--activeCellOffsetX__16hkbkc7)", activeCellOffsetY: "var(--activeCellOffsetY__16hkbkc8)", scrollTopForActiveRow: "var(--scrollTopForActiveRow__16hkbkc9)", scrollLeftForActiveRowWhenHorizontalLayout: "var(--scrollLeftForActiveRowWhenHorizontalLayout__16hkbkca)", activeCellColWidth: "var(--activeCellColWidth__16hkbkcb)", activeCellColOffset: "var(--activeCellColOffset__16hkbkcc)", columnReorderEffectDurationAtIndex: "var(--columnReorderEffectDurationAtIndex__16hkbkcd)", columnWidthAtIndex: "var(--columnWidthAtIndex__16hkbkce)", columnOffsetAtIndex: "var(--columnOffsetAtIndex__16hkbkcf)", columnOffsetAtIndexWhileReordering: "var(--columnOffsetAtIndexWhileReordering__16hkbkcg)", columnZIndexAtIndex: "var(--columnZIndexAtIndex__16hkbkch)", pinnedStartWidth: "var(--pinnedStartWidth__16hkbkci)", pinnedEndWidth: "var(--pinnedEndWidth__16hkbkcj)", pinnedEndOffset: "var(--pinnedEndOffset__16hkbkck)", computedVisibleColumnsCount: "var(--computedVisibleColumnsCount__16hkbkcl)", baseZIndexForCells: "var(--baseZIndexForCells__16hkbkcm)", bodyWidth: "var(--bodyWidth__16hkbkcn)", bodyHeight: "var(--bodyHeight__16hkbkco)", scrollbarWidthHorizontal: "var(--scrollbarWidthHorizontal__16hkbkcp)", scrollbarWidthVertical: "var(--scrollbarWidthVertical__16hkbkcq)", scrollLeft: "var(--scrollLeft__16hkbkcr)", scrollTop: "var(--scrollTop__16hkbkcs)" };
1355
+
1356
+ // src/components/InfiniteTable/vars.css.ts
1357
+ var ThemeVars = { color: { accent: "var(--infinite-accent-color)", success: "var(--infinite-success-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)", runtime: { bodyWidth: "var(--infinite-runtime-body-content-width)", totalVisibleColumnsWidthValue: "var(--infinite-runtime-total-visible-columns-width)", totalVisibleColumnsWidthVar: "var(--infinite-runtime-total-visible-columns-width-var)", visibleColumnsCount: "var(--infinite-runtime-visible-columns-count)", browserScrollbarWidth: "var(--infinite-runtime-browser-scrollbar-width)" }, 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)", border: "var(--infinite-header-cell-border)", 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)", borderRight: "var(--infinite-header-cell-border-right)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, ActiveCellIndicator: { inset: "var(--infinite-active-cell-indicator-inset)" }, Cell: { flashingDuration: "var(--infinite-flashing-duration)", flashingAnimationName: "var(--infinite-flashing-animation-name)", flashingOverlayZIndex: "var(--infinite-flashing-overlay-z-index)", flashingBackground: "var(--infinite-flashing-background)", flashingUpBackground: "var(--infinite-flashing-up-background)", flashingDownBackground: "var(--infinite-flashing-down-background)", padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderLeft: "var(--infinite-cell-border-left)", borderRight: "var(--infinite-cell-border-right)", borderTop: "var(--infinite-cell-border-top)", 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)", horizontalLayoutColumnReorderDisabledPageOpacity: "var(--infinite-horizontal-layout-column-reorder-disabled-page-opacity)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", separatorColor: "var(--infinite-menu-separator-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetail: { background: "var(--infinite-rowdetail-background)", padding: "var(--infinite-rowdetail-padding)", gridHeight: "var(--infinite-rowdetail-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", disabledBackground: "var(--infinite-row-disabled-background)", oddDisabledBackground: "var(--infinite-row-odd-disabled-background)", selectedBackground: "var(--infinite-row-selected-background)", disabledOpacity: "var(--infinite-row-disabled-opacity)", 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)", selectedDisabledBackground: "var(--infinite-row-selected-disabled-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)" } } };
1358
+ var columnHeaderHeightName = "column-header-height";
1359
+
1391
1360
  // src/components/InfiniteTable/utils/infiniteDOMUtils.ts
1392
1361
  var InfiniteSelector = `.${internalProps.rootClassName}`;
1393
1362
  function getParentInfiniteNode(node) {
@@ -1410,34 +1379,20 @@ function setInfiniteVarOnRoot(varName, varValue, node) {
1410
1379
  }
1411
1380
  function setInfiniteVarOnNode(varName, varValue, node) {
1412
1381
  if (node) {
1413
- const prop = InternalVars[varName] ? stripVar(InternalVars[varName]) : varName;
1382
+ const name = varName;
1383
+ const prop = InternalVars[name] ? stripVar(InternalVars[name]) : varName;
1414
1384
  node.style.setProperty(prop, `${varValue}`);
1415
1385
  }
1416
1386
  }
1417
1387
  function setInfiniteVarsOnNode(vars, node) {
1418
1388
  if (node) {
1419
1389
  for (var varName in vars) {
1420
- node.style.setProperty(
1421
- InternalVars[varName] ? stripVar(InternalVars[varName]) : varName,
1422
- `${vars[varName]}`
1423
- );
1390
+ const propName = InternalVars[varName] ? stripVar(InternalVars[varName]) : varName;
1391
+ const propValue = `${vars[varName]}`;
1392
+ node.style.setProperty(propName, propValue);
1424
1393
  }
1425
1394
  }
1426
1395
  }
1427
- function setInfiniteColumnWidth(colIndex, colWidth, node) {
1428
- setInfiniteVarOnRoot(
1429
- `${columnWidthAtIndex}-${colIndex}`,
1430
- typeof colWidth === "number" ? colWidth + "px" : colWidth,
1431
- node
1432
- );
1433
- }
1434
- function setInfiniteColumnOffset(colIndex, colOffset, node) {
1435
- setInfiniteVarOnRoot(
1436
- `${columnOffsetAtIndex}-${colIndex}`,
1437
- typeof colOffset === "number" ? colOffset + "px" : colOffset,
1438
- node
1439
- );
1440
- }
1441
1396
  function addToInfiniteColumnOffset(column, amountToAdd, node) {
1442
1397
  setInfiniteVarOnRoot(
1443
1398
  `${columnOffsetAtIndex}-${column.computedVisibleIndex}`,
@@ -1474,12 +1429,42 @@ function restoreInfiniteColumnReorderDuration(colIndex, node) {
1474
1429
  node
1475
1430
  );
1476
1431
  }
1477
- function getCSSVarNameForColWidth(colIndex) {
1478
- return `${columnWidthAtIndex}-${colIndex}`;
1479
- }
1480
- function getCSSVarNameForColOffset(colIndex) {
1481
- return `${columnOffsetAtIndex}-${colIndex}`;
1482
- }
1432
+ var InternalVarUtils = {
1433
+ columnWidths: {
1434
+ get(index) {
1435
+ return `var(${this.getVarName(index)})`;
1436
+ },
1437
+ getVarName(index) {
1438
+ return this.varName.get(index);
1439
+ },
1440
+ varName: {
1441
+ get(index) {
1442
+ return `${columnWidthAtIndex}-${index}`;
1443
+ }
1444
+ },
1445
+ set(index, value, node) {
1446
+ value = typeof value === "number" ? value + "px" : value;
1447
+ setInfiniteVarOnRoot(this.varName.get(index), value, node);
1448
+ }
1449
+ },
1450
+ columnOffsets: {
1451
+ get(index) {
1452
+ return `var(${this.getVarName(index)})`;
1453
+ },
1454
+ getVarName(index) {
1455
+ return this.varName.get(index);
1456
+ },
1457
+ varName: {
1458
+ get(index) {
1459
+ return `${columnOffsetAtIndex}-${index}`;
1460
+ }
1461
+ },
1462
+ set(index, value, node) {
1463
+ value = typeof value === "number" ? value + "px" : value;
1464
+ setInfiniteVarOnRoot(this.varName.get(index), value, node);
1465
+ }
1466
+ }
1467
+ };
1483
1468
  function setInfiniteScrollPosition(scrollPosition, node) {
1484
1469
  setInfiniteVarsOnNode(
1485
1470
  {
@@ -1490,6 +1475,37 @@ function setInfiniteScrollPosition(scrollPosition, node) {
1490
1475
  );
1491
1476
  }
1492
1477
 
1478
+ // src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx
1479
+ var React9 = __toESM(require("react"));
1480
+
1481
+ // src/utils/mathIntersection.ts
1482
+ function arrayIntersection(...arrays) {
1483
+ if (!arrays.length) {
1484
+ return [];
1485
+ }
1486
+ const map2 = /* @__PURE__ */ new Map();
1487
+ arrays.forEach((arr) => {
1488
+ for (let i = 0, len2 = arr.length; i < len2; i++) {
1489
+ const item = arr[i];
1490
+ const count = map2.get(item) ?? 0;
1491
+ map2.set(item, count + 1);
1492
+ }
1493
+ return map2;
1494
+ });
1495
+ const len = arrays.length;
1496
+ return arrays[0].filter((x) => {
1497
+ return map2.get(x) === len;
1498
+ });
1499
+ }
1500
+
1501
+ // src/utils/raf.ts
1502
+ var raf = getGlobal().requestAnimationFrame || ((fn) => {
1503
+ return setTimeout(fn, 16);
1504
+ });
1505
+ var cancelRaf = getGlobal().cancelAnimationFrame || ((timeoutId) => {
1506
+ return clearTimeout(timeoutId);
1507
+ });
1508
+
1493
1509
  // src/components/VirtualBrain/MatrixBrain.ts
1494
1510
  var import_binary_search = __toESM(require_binary_search());
1495
1511
 
@@ -1533,6 +1549,7 @@ var MatrixBrain = class extends Logger {
1533
1549
  this.availableRenderHeight = 0;
1534
1550
  this.cols = 0;
1535
1551
  this.rows = 0;
1552
+ this.alwaysRenderedColumns = /* @__PURE__ */ new Set();
1536
1553
  this._rowsPerPage = 0;
1537
1554
  this.rowHeight = 0;
1538
1555
  this.colWidth = 0;
@@ -1877,7 +1894,7 @@ var MatrixBrain = class extends Logger {
1877
1894
  this.setRenderCount = ({
1878
1895
  horizontal,
1879
1896
  vertical
1880
- }) => {
1897
+ }, force) => {
1881
1898
  if (horizontal === void 0) {
1882
1899
  horizontal = this.horizontalRenderCount;
1883
1900
  }
@@ -1886,14 +1903,14 @@ var MatrixBrain = class extends Logger {
1886
1903
  }
1887
1904
  const horizontalSame = horizontal === this.horizontalRenderCount;
1888
1905
  const verticalSame = vertical === this.verticalRenderCount;
1889
- if (horizontalSame && verticalSame) {
1906
+ if (horizontalSame && verticalSame && !force) {
1890
1907
  return;
1891
1908
  }
1892
1909
  this.horizontalRenderCount = horizontal;
1893
1910
  this.verticalRenderCount = vertical;
1894
1911
  this.updateRenderRange({
1895
- horizontal: !horizontalSame,
1896
- vertical: !verticalSame
1912
+ horizontal: force ? true : !horizontalSame,
1913
+ vertical: force ? true : !verticalSame
1897
1914
  });
1898
1915
  this.notifyRenderCountChange();
1899
1916
  };
@@ -2193,6 +2210,15 @@ var MatrixBrain = class extends Logger {
2193
2210
  }
2194
2211
  return cachedSize;
2195
2212
  };
2213
+ this.keepColumnRendered = (colIndex) => {
2214
+ this.alwaysRenderedColumns.add(colIndex);
2215
+ return () => {
2216
+ this.alwaysRenderedColumns.delete(colIndex);
2217
+ };
2218
+ };
2219
+ this.getAlwaysRenderedColumns = () => {
2220
+ return Array.from(this.alwaysRenderedColumns);
2221
+ };
2196
2222
  this.setRenderRange = ({
2197
2223
  horizontal,
2198
2224
  vertical,
@@ -2466,10 +2492,13 @@ var MatrixBrain = class extends Logger {
2466
2492
  const rightAmount = typeof options.right === "number" ? options.right : options.right === true ? this.getInitialCols() : 0;
2467
2493
  const currentRenderCount = this.horizontalRenderCount;
2468
2494
  const restore = () => {
2469
- this.setRenderCount({
2470
- horizontal: currentRenderCount,
2471
- vertical: void 0
2472
- });
2495
+ this.setRenderCount(
2496
+ {
2497
+ horizontal: currentRenderCount,
2498
+ vertical: void 0
2499
+ },
2500
+ true
2501
+ );
2473
2502
  };
2474
2503
  const { start, end } = this.getRenderRange();
2475
2504
  const [startRow, startCol] = start;
@@ -2668,6 +2697,7 @@ var MatrixBrain = class extends Logger {
2668
2697
  this.reset();
2669
2698
  this.rowspanParent.clear();
2670
2699
  this.colspanParent.clear();
2700
+ this.alwaysRenderedColumns.clear();
2671
2701
  this.destroyed = true;
2672
2702
  this.onDestroyFns = [];
2673
2703
  this.onScrollFns = [];
@@ -2701,6 +2731,9 @@ var MappedCells = class extends Logger {
2701
2731
  }
2702
2732
  return elementsOutsideItemRange.pop();
2703
2733
  };
2734
+ this.getElementFromListForRow = (elementsOutsideItemRange, _rowIndex) => {
2735
+ return elementsOutsideItemRange.pop();
2736
+ };
2704
2737
  /**
2705
2738
  * Retrieves the elements that contain rendered cells that are outside
2706
2739
  * of the specified range
@@ -2998,7 +3031,8 @@ var ReactHeadlessTableRenderer = class extends Logger {
2998
3031
  this.detailRowUpdaters = [];
2999
3032
  this.items = [];
3000
3033
  this.detailItems = [];
3001
- this.currentHoveredRow = -1;
3034
+ this.lastEnteredRow = -1;
3035
+ this.lastExitedRow = -1;
3002
3036
  this.hoverRowUpdatesInProgress = /* @__PURE__ */ new Map();
3003
3037
  this.infiniteNode = null;
3004
3038
  this.setDetailTransform = (element, _rowIndex, {
@@ -3020,14 +3054,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
3020
3054
  scrollLeft: scrollLeft2,
3021
3055
  scrollTop: scrollTop2
3022
3056
  }, zIndex2) => {
3023
- const columnOffsetX = `${columnOffsetAtIndex2}-${colIndex}`;
3057
+ const columnOffsetX = InternalVarUtils.columnOffsets.get(colIndex);
3024
3058
  const columnOffsetXWhileReordering = `${columnOffsetAtIndexWhileReordering2}-${colIndex}`;
3025
3059
  const currentTransformYValue = scrollTop2 ? `calc( ${y}px + var(${scrollTopCSSVar}) )` : `${y}px`;
3026
3060
  if (element.__currentTransformY !== currentTransformYValue) {
3027
3061
  element.__currentTransformY = currentTransformYValue;
3028
3062
  element.style.setProperty(currentTransformY, currentTransformYValue);
3029
3063
  }
3030
- const transformValue = `translate3d(var(${columnOffsetXWhileReordering}, var(${columnOffsetX})), var(${currentTransformY}), 0)`;
3064
+ const transformValue = `translate3d(var(${columnOffsetXWhileReordering}, ${columnOffsetX}), var(${currentTransformY}), 0)`;
3031
3065
  if (element.__transformValue !== transformValue) {
3032
3066
  element.__transformValue = transformValue;
3033
3067
  element.style.transform = transformValue;
@@ -3427,11 +3461,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
3427
3461
  return covered ? [rowspanParent, colspanParent] : false;
3428
3462
  };
3429
3463
  this.onMouseEnter = (rowIndex) => {
3430
- this.currentHoveredRow = rowIndex;
3464
+ this.lastEnteredRow = rowIndex;
3465
+ this.lastExitedRow = -1;
3431
3466
  if (this.scrolling) {
3432
3467
  return;
3433
3468
  }
3434
- this.addHoverClass(rowIndex);
3469
+ if (rowIndex != -1) {
3470
+ this.addHoverClass(rowIndex);
3471
+ }
3435
3472
  };
3436
3473
  this.addHoverClass = (rowIndex) => {
3437
3474
  this.mappedCells.getElementsForRowIndex(rowIndex).forEach((elIndex) => {
@@ -3444,14 +3481,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
3444
3481
  });
3445
3482
  };
3446
3483
  this.onMouseLeave = (rowIndex) => {
3447
- if (this.currentHoveredRow != -1 && this.currentHoveredRow === rowIndex) {
3448
- this.removeHoverClass(rowIndex);
3449
- }
3450
- this.currentHoveredRow = -1;
3484
+ this.lastExitedRow = rowIndex;
3485
+ this.lastEnteredRow = -1;
3451
3486
  if (this.scrolling) {
3452
3487
  return;
3453
3488
  }
3454
- this.removeHoverClass(rowIndex);
3489
+ if (rowIndex != -1) {
3490
+ this.removeHoverClass(rowIndex);
3491
+ }
3455
3492
  };
3456
3493
  this.removeHoverClass = (rowIndex) => {
3457
3494
  this.mappedCells.getElementsForRowIndex(rowIndex).forEach((elIndex) => {
@@ -3475,8 +3512,8 @@ var ReactHeadlessTableRenderer = class extends Logger {
3475
3512
  }
3476
3513
  this.hoverRowUpdatesInProgress.set(rowIndex, true);
3477
3514
  const checkHoverClass = () => {
3478
- if (this.currentHoveredRow != -1 && !this.scrolling) {
3479
- if (this.currentHoveredRow === rowIndex) {
3515
+ if (!this.scrolling && this.lastEnteredRow != -1) {
3516
+ if (this.lastEnteredRow === rowIndex) {
3480
3517
  this.addHoverClass(rowIndex);
3481
3518
  } else {
3482
3519
  this.removeHoverClass(rowIndex);
@@ -3569,11 +3606,17 @@ var ReactHeadlessTableRenderer = class extends Logger {
3569
3606
  };
3570
3607
  this.onScrollStart = () => {
3571
3608
  this.scrolling = true;
3609
+ if (this.lastEnteredRow != -1) {
3610
+ this.removeHoverClass(this.lastEnteredRow);
3611
+ }
3572
3612
  };
3573
3613
  this.onScrollStop = () => {
3574
3614
  this.scrolling = false;
3575
- if (this.currentHoveredRow != -1) {
3576
- this.addHoverClass(this.currentHoveredRow);
3615
+ if (this.lastEnteredRow != -1) {
3616
+ this.addHoverClass(this.lastEnteredRow);
3617
+ }
3618
+ if (this.lastExitedRow != -1) {
3619
+ this.removeHoverClass(this.lastExitedRow);
3577
3620
  }
3578
3621
  };
3579
3622
  this.adjustFixedElementsOnScroll = (scrollPosition = this.brain.getScrollPosition()) => {
@@ -3840,12 +3883,27 @@ var ReactHeadlessTableRenderer = class extends Logger {
3840
3883
  return [];
3841
3884
  }
3842
3885
  const { start, end } = range;
3886
+ const horizontalLayout = this.brain.isHorizontalLayoutBrain;
3843
3887
  if (false) {
3844
3888
  this.debug(`Render range ${start}-${end}. Force ${force}`);
3845
3889
  }
3846
3890
  const { mappedCells, mappedDetailRows } = this;
3847
3891
  const fixedRanges = this.getFixedRanges(range);
3848
3892
  const ranges = [range, ...fixedRanges];
3893
+ const alwaysRenderedColumns = this.brain.getAlwaysRenderedColumns();
3894
+ if (alwaysRenderedColumns.length > 0) {
3895
+ const startCol = range.start[1];
3896
+ const endCol = range.end[1];
3897
+ alwaysRenderedColumns.forEach((colIndex) => {
3898
+ const colInRange = startCol <= colIndex && colIndex < endCol;
3899
+ if (!colInRange) {
3900
+ ranges.push({
3901
+ start: [range.start[0], colIndex],
3902
+ end: [range.end[0], colIndex + 1]
3903
+ });
3904
+ }
3905
+ });
3906
+ }
3849
3907
  const extraCellsMap = /* @__PURE__ */ new Map();
3850
3908
  const extraCells = ranges.map(this.getExtraSpanCellsForRange).flat();
3851
3909
  if (extraCells) {
@@ -3965,9 +4023,15 @@ var ReactHeadlessTableRenderer = class extends Logger {
3965
4023
  if (cellRendered && !force && cellMappedCorrectly) {
3966
4024
  continue;
3967
4025
  }
3968
- const elementIndex = cellRendered ? mappedCells.getElementIndexForCell(row, col) : mappedCells.getElementFromListForColumn(
3969
- elementsOutsideItemRange,
3970
- col
4026
+ const elementIndex = cellRendered ? mappedCells.getElementIndexForCell(row, col) : (
4027
+ // TODO when horizontal layout, just do elementsOutsideItemRange.pop()
4028
+ horizontalLayout ? mappedCells.getElementFromListForRow(
4029
+ elementsOutsideItemRange,
4030
+ row
4031
+ ) : mappedCells.getElementFromListForColumn(
4032
+ elementsOutsideItemRange,
4033
+ col
4034
+ )
3971
4035
  );
3972
4036
  if (elementIndex == null) {
3973
4037
  if (false) {
@@ -4210,17 +4274,18 @@ var HorizontalLayoutTableRenderer = class extends ReactHeadlessTableRenderer {
4210
4274
  );
4211
4275
  const pageWidth = ThemeVars.runtime.totalVisibleColumnsWidthVar;
4212
4276
  const pageOffset = pageIndex ? `calc(${pageWidth} * ${pageIndex})` : "0px";
4213
- const columnOffsetX = `${columnOffsetAtIndex2}-${horizontalLayoutCoords.colIndex}`;
4277
+ const columnOffsetX = InternalVarUtils.columnOffsets.get(
4278
+ horizontalLayoutCoords.colIndex
4279
+ );
4214
4280
  const columnOffsetXWhileReordering = `${columnOffsetAtIndexWhileReordering2}-${horizontalLayoutCoords.colIndex}`;
4215
4281
  const currentTransformYValue = `${y}px`;
4216
4282
  if (element.__currentTransformY !== currentTransformYValue) {
4217
4283
  element.__currentTransformY = currentTransformYValue;
4218
4284
  element.style.setProperty(currentTransformY, currentTransformYValue);
4219
4285
  }
4220
- const xOffset = `calc(var(${columnOffsetX}) + ${pageOffset})`;
4221
- const transformX2 = `var(${columnOffsetXWhileReordering}, ${xOffset})`;
4286
+ const xOffset = `calc(var(${columnOffsetXWhileReordering}, ${columnOffsetX}) + ${pageOffset})`;
4222
4287
  const transformY = `var(${currentTransformY})`;
4223
- const transformValue = `translate3d(${transformX2}, ${transformY}, 0px)`;
4288
+ const transformValue = `translate3d(${xOffset}, ${transformY}, 0px)`;
4224
4289
  if (element.__transformValue !== transformValue) {
4225
4290
  element.__transformValue = transformValue;
4226
4291
  element.style.transform = transformValue;
@@ -5321,22 +5386,22 @@ var import_react18 = require("react");
5321
5386
 
5322
5387
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
5323
5388
  var CellCls = "cell_CellCls__1eexc2a5 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_absolute__16lm1iw2 utilities_willChange_transform__16lm1iw22 utilities_whiteSpace_nowrap__16lm1iw23 utilities_userSelect_none__16lm1iw17";
5324
- var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob124 utilities_height_100%__16lm1iw19 utilities_width_100%__16lm1iw1b utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_justifyContent_start__16lm1iw1v", variantClassNames: { filtered: { false: "header_HeaderCellContentRecipe_filtered_false__12zfob125", true: "header_HeaderCellContentRecipe_filtered_true__12zfob126" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob127", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob128", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob129" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob12a", end: "header_HeaderCellContentRecipe_align_end__12zfob12b", center: "header_HeaderCellContentRecipe_align_center__12zfob12c" } }, defaultVariants: {}, compoundVariants: [] });
5389
+ var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob126 utilities_height_100%__16lm1iw19 utilities_width_100%__16lm1iw1b utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_justifyContent_start__16lm1iw1v", variantClassNames: { filtered: { false: "header_HeaderCellContentRecipe_filtered_false__12zfob127", true: "header_HeaderCellContentRecipe_filtered_true__12zfob128" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob129", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob12a", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob12b" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob12c", end: "header_HeaderCellContentRecipe_align_end__12zfob12d", center: "header_HeaderCellContentRecipe_align_center__12zfob12e" } }, defaultVariants: {}, compoundVariants: [] });
5325
5390
  var HeaderCellProxy = "header_HeaderCellProxy__12zfob1n utilities_whiteSpace_nowrap__16lm1iw23 utilities_textOverflow_ellipsis__16lm1iw24 utilities_overflow_hidden__16lm1iw1x";
5326
- var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellRecipe__12zfob1o utilities_display_block__16lm1iw12", variantClassNames: { rowActive: { false: "header_HeaderCellRecipe_rowActive_false__12zfob1p", true: "header_HeaderCellRecipe_rowActive_true__12zfob1q" }, cellSelected: { false: "header_HeaderCellRecipe_cellSelected_false__12zfob1r", true: "header_HeaderCellRecipe_cellSelected_true__12zfob1s" }, rowSelected: { false: "header_HeaderCellRecipe_rowSelected_false__12zfob1t", true: "header_HeaderCellRecipe_rowSelected_true__12zfob1u", null: "header_HeaderCellRecipe_rowSelected_null__12zfob1v" }, rowDisabled: { false: "header_HeaderCellRecipe_rowDisabled_false__12zfob1w", true: "header_HeaderCellRecipe_rowDisabled_true__12zfob1x" }, firstRow: { false: "header_HeaderCellRecipe_firstRow_false__12zfob1y", true: "header_HeaderCellRecipe_firstRow_true__12zfob1z" }, firstRowInHorizontalLayoutPage: { false: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_false__12zfob110", true: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_true__12zfob111" }, groupRow: { false: "header_HeaderCellRecipe_groupRow_false__12zfob112", true: "header_HeaderCellRecipe_groupRow_true__12zfob113" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob114", true: "header_HeaderCellRecipe_groupCell_true__12zfob115" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob116", end: "header_HeaderCellRecipe_align_end__12zfob117", center: "header_HeaderCellRecipe_align_center__12zfob118" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob119", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob11a", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob11b" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob11c", even: "header_HeaderCellRecipe_zebra_even__12zfob11d", odd: "header_HeaderCellRecipe_zebra_odd__12zfob11e" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob11f", false: "header_HeaderCellRecipe_dragging_false__12zfob11g" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob11h", false: "header_HeaderCellRecipe_first_false__12zfob11i" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11j", false: "header_HeaderCellRecipe_last_false__12zfob11k" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11l", false: "header_HeaderCellRecipe_groupByField_false__12zfob11m" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11n", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11o" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11p", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11q" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11r", end: "header_HeaderCellRecipe_pinned_end__12zfob11s", false: "header_HeaderCellRecipe_pinned_false__12zfob11t" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11u", false: "header_HeaderCellRecipe_filtered_false__12zfob11v" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11w"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11x"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob11y"]] });
5391
+ var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellRecipe__12zfob1o utilities_display_block__16lm1iw12", variantClassNames: { rowActive: { false: "header_HeaderCellRecipe_rowActive_false__12zfob1p", true: "header_HeaderCellRecipe_rowActive_true__12zfob1q" }, cellSelected: { false: "header_HeaderCellRecipe_cellSelected_false__12zfob1r", true: "header_HeaderCellRecipe_cellSelected_true__12zfob1s" }, rowSelected: { false: "header_HeaderCellRecipe_rowSelected_false__12zfob1t", true: "header_HeaderCellRecipe_rowSelected_true__12zfob1u", null: "header_HeaderCellRecipe_rowSelected_null__12zfob1v" }, rowDisabled: { false: "header_HeaderCellRecipe_rowDisabled_false__12zfob1w", true: "header_HeaderCellRecipe_rowDisabled_true__12zfob1x" }, firstRow: { false: "header_HeaderCellRecipe_firstRow_false__12zfob1y", true: "header_HeaderCellRecipe_firstRow_true__12zfob1z" }, firstRowInHorizontalLayoutPage: { false: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_false__12zfob110", true: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_true__12zfob111" }, groupRow: { false: "header_HeaderCellRecipe_groupRow_false__12zfob112", true: "header_HeaderCellRecipe_groupRow_true__12zfob113" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob114", true: "header_HeaderCellRecipe_groupCell_true__12zfob115" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob116", end: "header_HeaderCellRecipe_align_end__12zfob117", center: "header_HeaderCellRecipe_align_center__12zfob118" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob119", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob11a", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob11b" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob11c", even: "header_HeaderCellRecipe_zebra_even__12zfob11d", odd: "header_HeaderCellRecipe_zebra_odd__12zfob11e" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob11f", false: "header_HeaderCellRecipe_dragging_false__12zfob11g" }, insideDisabledDraggingPage: { true: "header_HeaderCellRecipe_insideDisabledDraggingPage_true__12zfob11h", false: "header_HeaderCellRecipe_insideDisabledDraggingPage_false__12zfob11i" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob11j", false: "header_HeaderCellRecipe_first_false__12zfob11k" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11l", false: "header_HeaderCellRecipe_last_false__12zfob11m" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11n", false: "header_HeaderCellRecipe_groupByField_false__12zfob11o" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11p", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11q" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11r", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11s" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11t", end: "header_HeaderCellRecipe_pinned_end__12zfob11u", false: "header_HeaderCellRecipe_pinned_false__12zfob11v" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11w", false: "header_HeaderCellRecipe_filtered_false__12zfob11x" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11y"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11z"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob120"]] });
5327
5392
  var HeaderClsRecipe = createRuntimeFn({ defaultClassName: "header_HeaderClsRecipe__12zfob19 utilities_display_block__16lm1iw12 utilities_position_absolute__16lm1iw2", variantClassNames: { pinned: { start: "header_HeaderClsRecipe_pinned_start__12zfob1a", end: "header_HeaderClsRecipe_pinned_end__12zfob1b", false: "header_HeaderClsRecipe_pinned_false__12zfob1c" }, firstInCategory: { true: "header_HeaderClsRecipe_firstInCategory_true__12zfob1d", false: "header_HeaderClsRecipe_firstInCategory_false__12zfob1e" }, lastInCategory: { true: "header_HeaderClsRecipe_lastInCategory_true__12zfob1f", false: "header_HeaderClsRecipe_lastInCategory_false__12zfob1g" }, overflow: { true: "header_HeaderClsRecipe_overflow_true__12zfob1h", false: "header_HeaderClsRecipe_overflow_false__12zfob1i" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "header_HeaderClsRecipe_compound_0__12zfob1j"], [{ pinned: "start", firstInCategory: true }, "header_HeaderClsRecipe_compound_1__12zfob1k"], [{ overflow: true, pinned: "end" }, "header_HeaderClsRecipe_compound_2__12zfob1l"], [{ pinned: "end", lastInCategory: true }, "header_HeaderClsRecipe_compound_3__12zfob1m"]] });
5328
- var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12m utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
5393
+ var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12o utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
5329
5394
  var HeaderFilterIconIndexCls = "header_HeaderFilterIconIndexCls__12zfob17";
5330
- var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12i utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
5331
- var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob12j utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1c", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob12k", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12l" } }, defaultVariants: {}, compoundVariants: [] });
5332
- var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterRecipe__12zfob12f utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_stretch__16lm1iw1r utilities_position_relative__16lm1iw1", variantClassNames: { active: { true: "header_HeaderFilterRecipe_active_true__12zfob12g", false: "header_HeaderFilterRecipe_active_false__12zfob12h" } }, defaultVariants: {}, compoundVariants: [] });
5333
- var HeaderGroupCls = "header_HeaderGroupCls__12zfob12e utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
5334
- var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob11z utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_column__16lm1iw1m utilities_justifyContent_spaceAround__16lm1iw1u utilities_visibility_hidden__16lm1iw21", variantClassNames: { menuVisible: { true: "header_HeaderMenuIconCls_menuVisible_true__12zfob120" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob121", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob122" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob123"]] });
5395
+ var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12k utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
5396
+ var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob12l utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1c", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob12m", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12n" } }, defaultVariants: {}, compoundVariants: [] });
5397
+ var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterRecipe__12zfob12h utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_stretch__16lm1iw1r utilities_position_relative__16lm1iw1", variantClassNames: { active: { true: "header_HeaderFilterRecipe_active_true__12zfob12i", false: "header_HeaderFilterRecipe_active_false__12zfob12j" } }, defaultVariants: {}, compoundVariants: [] });
5398
+ var HeaderGroupCls = "header_HeaderGroupCls__12zfob12g utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
5399
+ var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob121 utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_column__16lm1iw1m utilities_justifyContent_spaceAround__16lm1iw1u utilities_visibility_hidden__16lm1iw21", variantClassNames: { menuVisible: { true: "header_HeaderMenuIconCls_menuVisible_true__12zfob122" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob123", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob124" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob125"]] });
5335
5400
  var HeaderScrollbarPlaceholderCls = "header_HeaderScrollbarPlaceholderCls__12zfob18 utilities_position_absolute__16lm1iw2";
5336
5401
  var HeaderSortIconCls = "utilities_position_relative__16lm1iw1";
5337
5402
  var HeaderSortIconIndexCls = "header_HeaderSortIconIndexCls__12zfob16";
5338
5403
  var HeaderSortIconRecipe = createRuntimeFn({ defaultClassName: "header__12zfob12", variantClassNames: { align: { start: "header_HeaderSortIconRecipe_align_start__12zfob13", center: "header_HeaderSortIconRecipe_align_center__12zfob14", end: "header_HeaderSortIconRecipe_align_end__12zfob15" } }, defaultVariants: {}, compoundVariants: [] });
5339
- var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12d utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
5404
+ var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12f utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
5340
5405
 
5341
5406
  // src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts
5342
5407
  var InfiniteTableIconClassName = "InfiniteTableIcon";
@@ -6778,6 +6843,7 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
6778
6843
  rowSelected: extraFlags.rowSelected ?? "null",
6779
6844
  rowActive: extraFlags.rowActive,
6780
6845
  dragging: extraFlags.dragging,
6846
+ insideDisabledDraggingPage: extraFlags.insideDisabledDraggingPage,
6781
6847
  firstRow: extraFlags.firstRow ?? false,
6782
6848
  firstRowInHorizontalLayoutPage: extraFlags.firstRowInHorizontalLayoutPage ?? false,
6783
6849
  rowDisabled: extraFlags.rowDisabled,
@@ -6845,11 +6911,11 @@ var import_react21 = require("react");
6845
6911
  // src/components/InfiniteTable/InfiniteCls.css.ts
6846
6912
  var FooterCls = "utilities_position_relative__16lm1iw1";
6847
6913
  var InfiniteCls = "InfiniteCls_InfiniteCls__1yeub2v0 utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_column__16lm1iw1m utilities_boxSizingBorderBox__16lm1iw0";
6848
- var InfiniteClsHasPinnedEnd = "InfiniteCls_InfiniteClsHasPinnedEnd__1yeub2vq";
6849
- var InfiniteClsHasPinnedStart = "InfiniteCls_InfiniteClsHasPinnedStart__1yeub2vp";
6850
- var InfiniteClsRecipe = createRuntimeFn({ defaultClassName: "InfiniteCls__1yeub2v2", variantClassNames: { focused: { true: "InfiniteCls_InfiniteClsRecipe_focused_true__1yeub2v3", false: "InfiniteCls_InfiniteClsRecipe_focused_false__1yeub2v4" }, focusedWithin: { true: "InfiniteCls_InfiniteClsRecipe_focusedWithin_true__1yeub2v5", false: "InfiniteCls_InfiniteClsRecipe_focusedWithin_false__1yeub2v6" }, hasPinnedStart: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_true__1yeub2v7", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_false__1yeub2v8" }, hasPinnedEnd: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_true__1yeub2v9", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_false__1yeub2va" }, hasPinnedStartOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_true__1yeub2vb", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_false__1yeub2vc" }, hasPinnedEndOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_true__1yeub2vd", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_false__1yeub2ve" } }, defaultVariants: {}, compoundVariants: [[{ focused: false, focusedWithin: false }, "InfiniteCls_InfiniteClsRecipe_compound_0__1yeub2vf"]] });
6851
- var InfiniteClsShiftingColumns = "InfiniteCls_shiftingcols__1yeub2vn";
6852
- var PinnedRowsContainerClsVariants = createRuntimeFn({ defaultClassName: "InfiniteCls__1yeub2vj", variantClassNames: { pinned: { start: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_start__1yeub2vk", end: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_end__1yeub2vl", false: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_false__1yeub2vm" } }, defaultVariants: {}, compoundVariants: [] });
6914
+ var InfiniteClsHasPinnedEnd = "InfiniteCls_InfiniteClsHasPinnedEnd__1yeub2vs";
6915
+ var InfiniteClsHasPinnedStart = "InfiniteCls_InfiniteClsHasPinnedStart__1yeub2vr";
6916
+ var InfiniteClsRecipe = createRuntimeFn({ defaultClassName: "InfiniteCls__1yeub2v2", variantClassNames: { horizontalLayout: { true: "InfiniteCls_InfiniteClsRecipe_horizontalLayout_true__1yeub2v3", false: "InfiniteCls_InfiniteClsRecipe_horizontalLayout_false__1yeub2v4" }, focused: { true: "InfiniteCls_InfiniteClsRecipe_focused_true__1yeub2v5", false: "InfiniteCls_InfiniteClsRecipe_focused_false__1yeub2v6" }, focusedWithin: { true: "InfiniteCls_InfiniteClsRecipe_focusedWithin_true__1yeub2v7", false: "InfiniteCls_InfiniteClsRecipe_focusedWithin_false__1yeub2v8" }, hasPinnedStart: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_true__1yeub2v9", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStart_false__1yeub2va" }, hasPinnedEnd: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_true__1yeub2vb", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEnd_false__1yeub2vc" }, hasPinnedStartOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_true__1yeub2vd", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedStartOverflow_false__1yeub2ve" }, hasPinnedEndOverflow: { true: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_true__1yeub2vf", false: "InfiniteCls_InfiniteClsRecipe_hasPinnedEndOverflow_false__1yeub2vg" } }, defaultVariants: {}, compoundVariants: [[{ focused: false, focusedWithin: false }, "InfiniteCls_InfiniteClsRecipe_compound_0__1yeub2vh"]] });
6917
+ var InfiniteClsShiftingColumns = "InfiniteCls_shiftingcols__1yeub2vp";
6918
+ var PinnedRowsContainerClsVariants = createRuntimeFn({ defaultClassName: "InfiniteCls__1yeub2vl", variantClassNames: { pinned: { start: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_start__1yeub2vm", end: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_end__1yeub2vn", false: "InfiniteCls_PinnedRowsContainerClsVariants_pinned_false__1yeub2vo" } }, defaultVariants: {}, compoundVariants: [] });
6853
6919
 
6854
6920
  // src/components/InfiniteTable/utils/rafFn.ts
6855
6921
  var rafFn = (fn) => {
@@ -6890,7 +6956,6 @@ var scrollbarWidthHorizontal = stripVar(
6890
6956
  );
6891
6957
  var scrollbarWidthVertical = stripVar(InternalVars.scrollbarWidthVertical);
6892
6958
  var columnWidthAtIndex2 = stripVar(InternalVars.columnWidthAtIndex);
6893
- var columnOffsetAtIndex3 = stripVar(InternalVars.columnOffsetAtIndex);
6894
6959
  var columnZIndexAtIndex3 = stripVar(InternalVars.columnZIndexAtIndex);
6895
6960
  var scrollLeftCSSVar = stripVar(InternalVars.scrollLeft);
6896
6961
  var activeCellColWidth = stripVar(InternalVars.activeCellColWidth);
@@ -6932,7 +6997,8 @@ function useDOMProps(initialDOMProps) {
6932
6997
  onSelfFocus,
6933
6998
  onSelfBlur,
6934
6999
  bodySize,
6935
- activeCellIndex
7000
+ activeCellIndex,
7001
+ wrapRowsHorizontally
6936
7002
  } = state;
6937
7003
  const {
6938
7004
  computedPinnedStartColumnsWidth,
@@ -6947,11 +7013,11 @@ function useDOMProps(initialDOMProps) {
6947
7013
  const cssVars = computedVisibleColumns.reduce(
6948
7014
  (vars, col) => {
6949
7015
  const index = col.computedVisibleIndex;
6950
- vars[`${columnWidthAtIndex2}-${index}`] = col.computedWidth + "px";
6951
- vars[`${columnOffsetAtIndex3}-${index}`] = col.computedPinned === "start" ? `calc( ${col.computedOffset}px + var(${scrollLeftCSSVar}) )` : col.computedPinned === "end" ? (
7016
+ vars[InternalVarUtils.columnWidths.varName.get(index)] = col.computedWidth + "px";
7017
+ vars[InternalVarUtils.columnOffsets.varName.get(index)] = col.computedPinned === "start" ? `calc( ${col.computedOffset}px + var(${scrollLeftCSSVar}) )` : col.computedPinned === "end" ? (
6952
7018
  // see #startcoloffsets-pinnedend
6953
7019
  `calc( var(${pinnedEndOffsetCSSVar}) ${prevPinnedEndCols.length ? "+" : ""} ${prevPinnedEndCols.map(
6954
- (c) => `var(${columnWidthAtIndex2}-${c.computedVisibleIndex})`
7020
+ (c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)
6955
7021
  ).join(" + ")} + var(${scrollLeftCSSVar}) )`
6956
7022
  ) : `${col.computedOffset}px`;
6957
7023
  const zIndexValue = getColumnZIndex(col, {
@@ -6976,12 +7042,12 @@ function useDOMProps(initialDOMProps) {
6976
7042
  }).join(" + ")})`;
6977
7043
  cssVars[publicRuntimeVars.visibleColumnsCount.name] = computedVisibleColumns.length;
6978
7044
  if (activeCellIndex != null) {
6979
- cssVars[activeCellColWidth] = `var(${getCSSVarNameForColWidth(
7045
+ cssVars[activeCellColWidth] = InternalVarUtils.columnWidths.get(
6980
7046
  activeCellIndex[1]
6981
- )})`;
6982
- const defaultActiveCellColOffset = `var(${getCSSVarNameForColOffset(
7047
+ );
7048
+ const defaultActiveCellColOffset = InternalVarUtils.columnOffsets.get(
6983
7049
  activeCellIndex[1]
6984
- )})`;
7050
+ );
6985
7051
  if (state.brain.isHorizontalLayoutBrain) {
6986
7052
  const pageIndex = state.brain.getPageIndexForRow(activeCellIndex[0]);
6987
7053
  cssVars[activeCellColOffset] = pageIndex ? `calc( ${ThemeVars.runtime.totalVisibleColumnsWidthVar} * ${pageIndex} + ${defaultActiveCellColOffset})` : defaultActiveCellColOffset;
@@ -6992,8 +7058,8 @@ function useDOMProps(initialDOMProps) {
6992
7058
  cssVars[computedVisibleColumnsCountCSSVar] = computedVisibleColumns.length;
6993
7059
  cssVars[scrollbarWidthHorizontal] = scrollbars.horizontal ? `${scrollbarWidth2}px` : "0px";
6994
7060
  cssVars[scrollbarWidthVertical] = scrollbars.vertical ? `${scrollbarWidth2}px` : "0px";
6995
- cssVars[pinnedStartWidthCSSVar] = `calc( ` + computedPinnedStartColumns.map((c) => `var(${getCSSVarNameForColWidth(c.computedVisibleIndex)})`).join(" + ") + ")";
6996
- cssVars[pinnedEndWidthCSSVar] = `calc( ` + computedPinnedEndColumns.map((c) => `var(${getCSSVarNameForColWidth(c.computedVisibleIndex)})`).join(" + ") + ")";
7061
+ cssVars[pinnedStartWidthCSSVar] = `calc( ` + computedPinnedStartColumns.map((c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)).join(" + ") + ")";
7062
+ cssVars[pinnedEndWidthCSSVar] = `calc( ` + computedPinnedEndColumns.map((c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)).join(" + ") + ")";
6997
7063
  cssVars[baseZIndexForCells] = computedVisibleColumns.length * 10;
6998
7064
  cssVars[pinnedEndOffsetCSSVar] = `calc( var(${bodyWidthCSSVar}) - var(${pinnedEndWidthCSSVar}) - var(${scrollbarWidthVertical}) )`;
6999
7065
  cssVars[bodyWidthCSSVar] = `${bodySize.width}px`;
@@ -7051,6 +7117,7 @@ function useDOMProps(initialDOMProps) {
7051
7117
  const className = join(
7052
7118
  InfiniteTableClassName,
7053
7119
  InfiniteCls,
7120
+ wrapRowsHorizontally ? `${InfiniteTableClassName}--horizontal-layout` : null,
7054
7121
  domProps?.className,
7055
7122
  computedPinnedStartColumnsWidth ? `${InfiniteTableClassName}--has-pinned-start ${InfiniteClsHasPinnedStart}` : null,
7056
7123
  computedPinnedEndColumnsWidth ? `${InfiniteTableClassName}--has-pinned-end ${InfiniteClsHasPinnedEnd}` : null,
@@ -7061,6 +7128,7 @@ function useDOMProps(initialDOMProps) {
7061
7128
  computed.computedPinnedStartOverflow ? `${InfiniteTableClassName}--has-pinned-start-overflow` : null,
7062
7129
  computed.computedPinnedEndOverflow ? `${InfiniteTableClassName}--has-pinned-end-overflow` : null,
7063
7130
  InfiniteClsRecipe({
7131
+ horizontalLayout: !!wrapRowsHorizontally,
7064
7132
  hasPinnedStart: !!computedPinnedStartColumnsWidth,
7065
7133
  hasPinnedEnd: !!computedPinnedEndColumnsWidth,
7066
7134
  // hasPinnedStartOverflow: !!computed.computedPinnedStartOverflow,
@@ -7090,6 +7158,68 @@ function useDOMProps(initialDOMProps) {
7090
7158
  // src/components/InfiniteTable/hooks/reorderColumnsOnDrag.ts
7091
7159
  var import_binary_search2 = __toESM(require_binary_search());
7092
7160
 
7161
+ // src/components/InfiniteTable/utils/CSSCalc.ts
7162
+ function mapToContinuation(args) {
7163
+ return args.map(
7164
+ (arg) => arg instanceof CssContinuation ? arg : new CssContinuation(null, [arg])
7165
+ );
7166
+ }
7167
+ var CssContinuation = class {
7168
+ constructor(operation, operands = []) {
7169
+ this.__operands = [];
7170
+ this.__operation = null;
7171
+ this.__operands = operands;
7172
+ this.__operation = operation;
7173
+ }
7174
+ add(...args) {
7175
+ return new CssContinuation("+", [this, ...args]);
7176
+ }
7177
+ subtract(...args) {
7178
+ return new CssContinuation("-", [this, ...args]);
7179
+ }
7180
+ minus(...args) {
7181
+ return this.subtract(...args);
7182
+ }
7183
+ multiply(...args) {
7184
+ return new CssContinuation("*", [this, ...args]);
7185
+ }
7186
+ divide(...args) {
7187
+ return new CssContinuation("/", [this, ...args]);
7188
+ }
7189
+ __get(parent) {
7190
+ const { __operation, __operands } = this;
7191
+ const result = __operands.map((operand) => operandToString(operand, this)).join(` ${__operation} `);
7192
+ const skipParens = __operands.length <= 1 ? true : parent?.__operation === "+" || parent?.__operation === "-";
7193
+ return skipParens ? result : `(${result})`;
7194
+ }
7195
+ done() {
7196
+ const str = this.__get();
7197
+ const hasParens = str.startsWith("(") && str.endsWith(")");
7198
+ const value = hasParens ? str : `(${str})`;
7199
+ return `calc${value}`;
7200
+ }
7201
+ };
7202
+ function operandToString(operand, parent) {
7203
+ if (typeof operand === "string" || typeof operand === "number") {
7204
+ return `${operand}`;
7205
+ }
7206
+ if (!parent) {
7207
+ return operand.done();
7208
+ }
7209
+ return operand.__get(parent);
7210
+ }
7211
+ var add = (...args) => new CssContinuation("+", mapToContinuation(args));
7212
+ var subtract = (...args) => new CssContinuation("-", mapToContinuation(args));
7213
+ var multiply = (...args) => new CssContinuation("*", mapToContinuation(args));
7214
+ var divide = (...args) => new CssContinuation("/", mapToContinuation(args));
7215
+ var CSSCalc = {
7216
+ add,
7217
+ subtract,
7218
+ minus: subtract,
7219
+ multiply,
7220
+ divide
7221
+ };
7222
+
7093
7223
  // src/components/InfiniteTable/utils/moveXatY.ts
7094
7224
  var moveXatY = (arr, dragIndex, dropIndex) => {
7095
7225
  arr = [...arr];
@@ -7190,8 +7320,6 @@ var PROXY_OFFSET = 10;
7190
7320
  var pinnedStartWidthCSSVar2 = stripVar(InternalVars.pinnedStartWidth);
7191
7321
  function reorderColumnsOnDrag(params) {
7192
7322
  const {
7193
- columnOffsetAtIndexCSSVar,
7194
- columnWidthAtIndexCSSVar,
7195
7323
  computedVisibleColumns,
7196
7324
  computedVisibleColumnsMap,
7197
7325
  computedPinnedEndColumns,
@@ -7203,7 +7331,9 @@ function reorderColumnsOnDrag(params) {
7203
7331
  draggableColumnsRestrictTo,
7204
7332
  tableRect,
7205
7333
  setProxyPosition,
7206
- api: imperativeApi
7334
+ api: imperativeApi,
7335
+ horizontalLayoutPageIndex,
7336
+ pageWidth
7207
7337
  } = params;
7208
7338
  function getCurrentPinnedWidth(pinned) {
7209
7339
  let currentWidth = pinned === "start" ? pinnedStartInitialWidth : pinnedEndInitialWidth;
@@ -7219,27 +7349,32 @@ function reorderColumnsOnDrag(params) {
7219
7349
  return currentWidth;
7220
7350
  }
7221
7351
  function isColumnVisible2(b) {
7222
- if (b.index === dragColumnIndex) {
7352
+ if (b.columnIndex === dragColumnIndex) {
7353
+ return true;
7354
+ }
7355
+ if (horizontalLayoutPageIndex != null) {
7223
7356
  return true;
7224
7357
  }
7225
- const col = computedVisibleColumns[b.index];
7358
+ const col = computedVisibleColumns[b.columnIndex];
7226
7359
  if (col.computedPinned) {
7227
7360
  return true;
7228
7361
  }
7229
7362
  const scrollLeft2 = brain.getScrollPosition().scrollLeft;
7230
- return col.computedOffset >= scrollLeft2 + getCurrentPinnedWidth("start") && col.computedOffset + col.computedWidth < scrollLeft2 + tableRect.width - getCurrentPinnedWidth("end");
7363
+ const colOffset = col.computedOffset + (horizontalLayoutPageIndex != null && pageWidth != null ? pageWidth * horizontalLayoutPageIndex : 0);
7364
+ const visible = colOffset >= scrollLeft2 + getCurrentPinnedWidth("start") && colOffset + col.computedWidth <= scrollLeft2 + tableRect.width - getCurrentPinnedWidth("end");
7365
+ return visible;
7231
7366
  }
7232
7367
  const getBreakPoints = (columns, options) => {
7233
7368
  const { restrictToParentGroup, dragColumn: dragColumn2 } = options;
7234
7369
  let breakpoints = [];
7235
7370
  columns.forEach((c) => {
7371
+ if (c.computedVisibleIndex === dragColumnIndex) {
7372
+ return;
7373
+ }
7236
7374
  const b = {
7237
7375
  columnId: c.id,
7238
- index: c.computedVisibleIndex,
7239
- breakpoint: (
7240
- // tableRect.left +
7241
- c.computedOffset + Math.round(c.computedWidth / 2)
7242
- )
7376
+ columnIndex: c.computedVisibleIndex,
7377
+ offsetX: c.computedOffset + Math.round(c.computedWidth / 2)
7243
7378
  };
7244
7379
  if (isColumnVisible2(b)) {
7245
7380
  breakpoints.push(b);
@@ -7351,7 +7486,7 @@ function reorderColumnsOnDrag(params) {
7351
7486
  }
7352
7487
  }
7353
7488
  function updateDropIndex(newDropIndex) {
7354
- if (newDropIndex === currentDropIndex) {
7489
+ if (newDropIndex == null || newDropIndex === currentDropIndex) {
7355
7490
  return;
7356
7491
  }
7357
7492
  currentDropIndex = newDropIndex;
@@ -7393,23 +7528,32 @@ function reorderColumnsOnDrag(params) {
7393
7528
  newPosition = isDragColumn ? (
7394
7529
  // this is the column we're dragging to the left
7395
7530
  // so we place it exactly at the offset of the currentDropIndex
7396
- `var(${columnOffsetAtIndexCSSVar}-${currentDropIndex})`
7531
+ InternalVarUtils.columnOffsets.get(currentDropIndex)
7397
7532
  ) : isOutsideCol ? (
7398
7533
  // this col should have the initial pos, so we're good
7399
- `var(${columnOffsetAtIndexCSSVar}-${colIndex})`
7534
+ InternalVarUtils.columnOffsets.get(colIndex)
7400
7535
  ) : (
7401
7536
  // place it at the default offset + the width of the drag column
7402
7537
  // as these are columns situated between the dragindex and the dropindex
7403
- `calc( var(${columnOffsetAtIndexCSSVar}-${colIndex}) + var(${columnWidthAtIndexCSSVar}-${dragColumnIndex}) )`
7538
+ CSSCalc.add(
7539
+ InternalVarUtils.columnOffsets.get(colIndex),
7540
+ InternalVarUtils.columnWidths.get(dragColumnIndex)
7541
+ ).done()
7404
7542
  );
7405
7543
  } else {
7406
7544
  newPosition = isOutsideCol ? (
7407
7545
  // this is the default value for a column
7408
- `var(${columnOffsetAtIndexCSSVar}-${colIndex})`
7546
+ InternalVarUtils.columnOffsets.get(colIndex)
7409
7547
  ) : isDragColumn ? (
7410
7548
  // this is the column we're dragging to the right
7411
- `calc( var(${columnOffsetAtIndexCSSVar}-${currentDropIndex - 1}) + var(${columnWidthAtIndexCSSVar}-${currentDropIndex - 1}) - var(${columnWidthAtIndexCSSVar}-${dragColumnIndex}) )`
7412
- ) : `calc( var(${columnOffsetAtIndexCSSVar}-${colIndex}) - var(${columnWidthAtIndexCSSVar}-${dragColumnIndex}) )`;
7549
+ CSSCalc.add(
7550
+ InternalVarUtils.columnOffsets.get(currentDropIndex - 1),
7551
+ InternalVarUtils.columnWidths.get(currentDropIndex - 1)
7552
+ ).minus(InternalVarUtils.columnWidths.get(dragColumnIndex)).done()
7553
+ ) : CSSCalc.minus(
7554
+ InternalVarUtils.columnOffsets.get(colIndex),
7555
+ InternalVarUtils.columnWidths.get(dragColumnIndex)
7556
+ ).done();
7413
7557
  }
7414
7558
  setInfiniteColumnOffsetWhileReordering(
7415
7559
  colIndex,
@@ -7449,20 +7593,25 @@ function reorderColumnsOnDrag(params) {
7449
7593
  let idx = (0, import_binary_search2.default)(
7450
7594
  breakpoints,
7451
7595
  currentPos,
7452
- ({ breakpoint }, value) => {
7453
- return breakpoint < value ? -1 : breakpoint > value ? 1 : 0;
7596
+ ({ offsetX }, value) => {
7597
+ return offsetX < value ? -1 : offsetX > value ? 1 : 0;
7454
7598
  }
7455
7599
  );
7456
7600
  if (idx < 0) {
7457
7601
  idx = ~idx;
7458
7602
  }
7459
- idx = breakpoints[idx] ? breakpoints[idx].index : breakpoints[breakpoints.length - 1].index + 1;
7460
- if (idx != null && idx !== currentDropIndex) {
7461
- if (dir === 1 && currentDropIndex === dragColumnIndex + 1) {
7462
- idx = dragColumnIndex;
7603
+ if (!breakpoints.length) {
7604
+ if (computedVisibleColumns.length > 1) {
7605
+ console.error("No breakpoints available, something is wrong!");
7463
7606
  }
7464
- updateDropIndex(idx);
7607
+ idx = 0;
7608
+ } else {
7609
+ idx = breakpoints[idx] ? breakpoints[idx].columnIndex : breakpoints[breakpoints.length - 1].columnIndex + 1;
7610
+ }
7611
+ if (idx === dragColumnIndex + 1) {
7612
+ idx = dragColumnIndex;
7465
7613
  }
7614
+ updateDropIndex(idx);
7466
7615
  const columnPinning = {};
7467
7616
  computedPinnedEndColumns.forEach((col) => {
7468
7617
  columnPinning[col.id] = "end";
@@ -7559,8 +7708,6 @@ function adjustColumnOrderForAllColumns(options) {
7559
7708
  }
7560
7709
 
7561
7710
  // src/components/InfiniteTable/hooks/useColumnPointerEvents.ts
7562
- var columnOffsetAtIndex4 = stripVar(InternalVars.columnOffsetAtIndex);
7563
- var columnWidthAtIndex3 = stripVar(InternalVars.columnWidthAtIndex);
7564
7711
  var baseZIndexForCells2 = stripVar(InternalVars.baseZIndexForCells);
7565
7712
  var equalPinning = (pinning1, pinning2) => {
7566
7713
  const empty1 = !pinning1 || Object.keys(pinning1).length === 0;
@@ -7575,7 +7722,8 @@ var equalPinning = (pinning1, pinning2) => {
7575
7722
  };
7576
7723
  var useColumnPointerEvents = ({
7577
7724
  columnId,
7578
- domRef
7725
+ domRef,
7726
+ horizontalLayoutPageIndex
7579
7727
  }) => {
7580
7728
  const [proxyPosition, setProxyPosition] = (0, import_react21.useState)(null);
7581
7729
  const {
@@ -7619,13 +7767,20 @@ var useColumnPointerEvents = ({
7619
7767
  const tableRect = rootRef.current.getBoundingClientRect();
7620
7768
  const initialAvailableSize = brain.getAvailableSize();
7621
7769
  const dragColumnIndex = dragColumn.computedVisibleIndex;
7770
+ const dragColumnIndexInHorizontalLayout = brain.getVirtualColIndex(
7771
+ dragColumn.computedVisibleIndex,
7772
+ {
7773
+ pageIndex: horizontalLayoutPageIndex || 0
7774
+ }
7775
+ );
7776
+ const pageWidth = brain.isHorizontalLayoutBrain ? brain.getPageWidth() : null;
7622
7777
  let initialCursor = target.style.cursor ?? "auto";
7623
7778
  let didDragAtLeastOnce = false;
7624
7779
  const dragger = reorderColumnsOnDrag({
7625
7780
  brain,
7781
+ horizontalLayoutPageIndex,
7782
+ pageWidth,
7626
7783
  draggableColumnsRestrictTo,
7627
- columnOffsetAtIndexCSSVar: columnOffsetAtIndex4,
7628
- columnWidthAtIndexCSSVar: columnWidthAtIndex3,
7629
7784
  computedPinnedEndColumns,
7630
7785
  computedPinnedStartColumns,
7631
7786
  computedUnpinnedColumns,
@@ -7643,6 +7798,8 @@ var useColumnPointerEvents = ({
7643
7798
  }
7644
7799
  });
7645
7800
  let reorderDragResult = null;
7801
+ let discardAlwaysRenderedColumn;
7802
+ let restoreRenderRange;
7646
7803
  function persistColumnOrder(reorderDragResult2) {
7647
7804
  const { columnPinning, columnOrder } = reorderDragResult2;
7648
7805
  if (!equalPinning(getState().columnPinning, columnPinning)) {
@@ -7671,15 +7828,35 @@ var useColumnPointerEvents = ({
7671
7828
  const { headerBrain, brain: brain2 } = getState();
7672
7829
  if (!didDragAtLeastOnce) {
7673
7830
  didDragAtLeastOnce = true;
7674
- brain2.setRenderCount({
7675
- horizontal: computedVisibleColumns.length,
7676
- vertical: void 0
7677
- });
7678
- headerBrain.setRenderCount({
7679
- horizontal: computedVisibleColumns.length,
7680
- vertical: void 0
7681
- });
7831
+ const discardForBody = brain2.keepColumnRendered(
7832
+ dragColumnIndexInHorizontalLayout
7833
+ );
7834
+ const discardForHeader = headerBrain.keepColumnRendered(
7835
+ dragColumnIndexInHorizontalLayout
7836
+ );
7837
+ if (brain2.isHorizontalLayoutBrain) {
7838
+ const extendBy = true;
7839
+ const restoreBodyRange = brain2.extendRenderRange({
7840
+ left: extendBy,
7841
+ right: extendBy
7842
+ });
7843
+ const restoreHeaderRange = headerBrain.extendRenderRange({
7844
+ left: extendBy,
7845
+ right: extendBy
7846
+ });
7847
+ restoreRenderRange = () => {
7848
+ restoreBodyRange();
7849
+ restoreHeaderRange();
7850
+ };
7851
+ }
7852
+ discardAlwaysRenderedColumn = () => {
7853
+ discardForBody();
7854
+ discardForHeader();
7855
+ };
7682
7856
  actions.columnReorderDragColumnId = dragColumn.id;
7857
+ if (horizontalLayoutPageIndex != null) {
7858
+ actions.columnReorderInPageIndex = horizontalLayoutPageIndex;
7859
+ }
7683
7860
  setInfiniteColumnZIndex(
7684
7861
  dragColumnIndex,
7685
7862
  `calc( var(${baseZIndexForCells2}) + 10000 )`,
@@ -7698,6 +7875,8 @@ var useColumnPointerEvents = ({
7698
7875
  brain.update({
7699
7876
  ...initialAvailableSize
7700
7877
  });
7878
+ discardAlwaysRenderedColumn?.();
7879
+ restoreRenderRange?.();
7701
7880
  computedVisibleColumns.forEach((col) => {
7702
7881
  clearInfiniteColumnReorderDuration(
7703
7882
  col.computedVisibleIndex,
@@ -7732,12 +7911,15 @@ var useColumnPointerEvents = ({
7732
7911
  persistColumnOrder(reorderDragResult);
7733
7912
  }
7734
7913
  actions.columnReorderDragColumnId = false;
7914
+ if (horizontalLayoutPageIndex != null) {
7915
+ actions.columnReorderInPageIndex = null;
7916
+ }
7735
7917
  };
7736
7918
  target.addEventListener("pointermove", onPointerMove);
7737
7919
  target.addEventListener("pointerup", onPointerUp);
7738
7920
  target.setPointerCapture(e.pointerId);
7739
7921
  },
7740
- [columnId]
7922
+ [columnId, horizontalLayoutPageIndex]
7741
7923
  );
7742
7924
  return {
7743
7925
  onPointerDown: computed.computedVisibleColumnsMap.get(columnId)?.computedDraggable ? onPointerDown : defaultPointerDown,
@@ -8047,7 +8229,7 @@ function objectValuesExcept(obj, exceptList) {
8047
8229
 
8048
8230
  // src/components/InfiniteTable/components/cell.css.ts
8049
8231
  var ColumnCellCls = "cell_ColumnCellCls__1eexc2a6 cell_CellCls__1eexc2a5 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_absolute__16lm1iw2 utilities_willChange_transform__16lm1iw22 utilities_whiteSpace_nowrap__16lm1iw23 utilities_userSelect_none__16lm1iw17";
8050
- var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2am", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2an", true: "cell_ColumnCellRecipe_dragging_true__1eexc2ao" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ap", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2aq" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2ar", end: "cell_ColumnCellRecipe_align_end__1eexc2as", center: "cell_ColumnCellRecipe_align_center__1eexc2at" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2au", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2av", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2aw" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2ax", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2ay" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2az", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2a10" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2a11", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2a12" }, rowDisabled: { false: "cell_ColumnCellRecipe_rowDisabled_false__1eexc2a13", true: "cell_ColumnCellRecipe_rowDisabled_true__1eexc2a14" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2a15", even: "cell_ColumnCellRecipe_zebra_even__1eexc2a16", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a17" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a18", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a19", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a1a" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a1b", false: "cell_ColumnCellRecipe_first_false__1eexc2a1c" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a1d", false: "cell_ColumnCellRecipe_last_false__1eexc2a1e" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a1f", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a1g" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1h", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1i" }, firstRow: { true: "cell_ColumnCellRecipe_firstRow_true__1eexc2a1j", false: "cell_ColumnCellRecipe_firstRow_false__1eexc2a1k" }, firstRowInHorizontalLayoutPage: { true: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_true__1eexc2a1l", false: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_false__1eexc2a1m" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1n", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1o" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1p", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1q", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1r" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1s", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1t" } }, defaultVariants: {}, compoundVariants: [[{ firstRowInHorizontalLayoutPage: true, firstRow: false }, "cell_ColumnCellRecipe_compound_0__1eexc2a1u"], [{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1v"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1w"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1x"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_4__1eexc2a1y"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_5__1eexc2a1z"], [{ rowDisabled: true, zebra: "odd" }, "cell_ColumnCellRecipe_compound_6__1eexc2a20"]] });
8232
+ var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2am", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2an", true: "cell_ColumnCellRecipe_dragging_true__1eexc2ao" }, insideDisabledDraggingPage: { true: "cell_ColumnCellRecipe_insideDisabledDraggingPage_true__1eexc2ap", false: "cell_ColumnCellRecipe_insideDisabledDraggingPage_false__1eexc2aq" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ar", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2as" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2at", end: "cell_ColumnCellRecipe_align_end__1eexc2au", center: "cell_ColumnCellRecipe_align_center__1eexc2av" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2aw", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2ax", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2ay" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2az", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2a10" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2a11", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2a12" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2a13", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2a14" }, rowDisabled: { false: "cell_ColumnCellRecipe_rowDisabled_false__1eexc2a15", true: "cell_ColumnCellRecipe_rowDisabled_true__1eexc2a16" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2a17", even: "cell_ColumnCellRecipe_zebra_even__1eexc2a18", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a19" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a1a", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a1b", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a1c" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a1d", false: "cell_ColumnCellRecipe_first_false__1eexc2a1e" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a1f", false: "cell_ColumnCellRecipe_last_false__1eexc2a1g" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a1h", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a1i" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1j", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1k" }, firstRow: { true: "cell_ColumnCellRecipe_firstRow_true__1eexc2a1l", false: "cell_ColumnCellRecipe_firstRow_false__1eexc2a1m" }, firstRowInHorizontalLayoutPage: { true: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_true__1eexc2a1n", false: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_false__1eexc2a1o" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1p", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1q" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1r", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1s", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1t" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1u", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1v" } }, defaultVariants: {}, compoundVariants: [[{ firstRowInHorizontalLayoutPage: true, firstRow: false }, "cell_ColumnCellRecipe_compound_0__1eexc2a1w"], [{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1x"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1y"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1z"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_4__1eexc2a20"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_5__1eexc2a21"], [{ rowDisabled: true, zebra: "odd" }, "cell_ColumnCellRecipe_compound_6__1eexc2a22"]] });
8051
8233
  var ColumnCellSelectionIndicatorRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellSelectionIndicatorRecipe__1eexc2ad", variantClassNames: { right: { true: "cell_ColumnCellSelectionIndicatorRecipe_right_true__1eexc2ae", false: "cell_ColumnCellSelectionIndicatorRecipe_right_false__1eexc2af" }, left: { true: "cell_ColumnCellSelectionIndicatorRecipe_left_true__1eexc2ag", false: "cell_ColumnCellSelectionIndicatorRecipe_left_false__1eexc2ah" }, top: { true: "cell_ColumnCellSelectionIndicatorRecipe_top_true__1eexc2ai", false: "cell_ColumnCellSelectionIndicatorRecipe_top_false__1eexc2aj" }, bottom: { true: "cell_ColumnCellSelectionIndicatorRecipe_bottom_true__1eexc2ak", false: "cell_ColumnCellSelectionIndicatorRecipe_bottom_false__1eexc2al" } }, defaultVariants: {}, compoundVariants: [] });
8052
8234
  var FlashingColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_FlashingColumnCellRecipe__1eexc2a9", variantClassNames: { direction: { up: "cell_FlashingColumnCellRecipe_direction_up__1eexc2aa", down: "cell_FlashingColumnCellRecipe_direction_down__1eexc2ab", neutral: "cell_FlashingColumnCellRecipe_direction_neutral__1eexc2ac" } }, defaultVariants: {}, compoundVariants: [] });
8053
8235
  var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
@@ -8440,7 +8622,7 @@ var React34 = __toESM(require("react"));
8440
8622
  var { rootClassName: rootClassName5 } = internalProps;
8441
8623
  var InfiniteTableCellClassName = `${rootClassName5}Cell`;
8442
8624
  var InfiniteTableCellContentClassName = `${rootClassName5}Cell_content`;
8443
- var columnWidthAtIndex4 = stripVar(InternalVars.columnWidthAtIndex);
8625
+ var columnWidthAtIndex3 = stripVar(InternalVars.columnWidthAtIndex);
8444
8626
  var columnReorderEffectDurationAtIndex2 = stripVar(
8445
8627
  InternalVars.columnReorderEffectDurationAtIndex
8446
8628
  );
@@ -8465,7 +8647,7 @@ function InfiniteTableCellFn(props) {
8465
8647
  } = props;
8466
8648
  const children = renderChildren();
8467
8649
  const style2 = {
8468
- width: `var(${columnWidthAtIndex4}-${column.computedVisibleIndex})`,
8650
+ width: `var(${columnWidthAtIndex3}-${column.computedVisibleIndex})`,
8469
8651
  transition: `transform var(${columnReorderEffectDurationAtIndex2}-${column.computedVisibleIndex}, 0s)`,
8470
8652
  ...domProps.style
8471
8653
  };
@@ -8655,7 +8837,7 @@ function InfiniteTableColumnCellFn(props) {
8655
8837
  api: dataSourceApi,
8656
8838
  componentActions: dataSourceActions
8657
8839
  } = useDataSourceContextValue();
8658
- const { activeRowIndex, keyboardNavigation } = getState();
8840
+ const { activeRowIndex, keyboardNavigation, columnReorderInPageIndex } = getState();
8659
8841
  const rowActive = rowIndex === activeRowIndex && keyboardNavigation === "row";
8660
8842
  const renderingContext = {
8661
8843
  getState,
@@ -8979,6 +9161,7 @@ function InfiniteTableColumnCellFn(props) {
8979
9161
  right: rightSelectionBorder,
8980
9162
  bottom: bottomSelectionBorder
8981
9163
  } : null;
9164
+ const insideDisabledDraggingPage = columnReorderInPageIndex != null ? horizontalLayoutPageIndex !== columnReorderInPageIndex : false;
8982
9165
  const afterChildren = editor;
8983
9166
  const theChildren = renderChildren();
8984
9167
  const cellProps = {
@@ -9003,6 +9186,7 @@ function InfiniteTableColumnCellFn(props) {
9003
9186
  ColumnCellRecipe,
9004
9187
  {
9005
9188
  dragging: false,
9189
+ insideDisabledDraggingPage,
9006
9190
  zebra,
9007
9191
  align: align2,
9008
9192
  verticalAlign,
@@ -9266,7 +9450,7 @@ function getColumnResizer(colIndex, {
9266
9450
  const column = columns[colIndex];
9267
9451
  return {
9268
9452
  resize(diff) {
9269
- setInfiniteColumnWidth(
9453
+ InternalVarUtils.columnWidths.set(
9270
9454
  colIndex,
9271
9455
  column.computedWidth + diff,
9272
9456
  domRef.current
@@ -9277,7 +9461,7 @@ function getColumnResizer(colIndex, {
9277
9461
  if (!nextColumn) {
9278
9462
  return;
9279
9463
  }
9280
- setInfiniteColumnWidth(
9464
+ InternalVarUtils.columnWidths.set(
9281
9465
  nextColIndex,
9282
9466
  nextColumn.computedWidth - diff,
9283
9467
  domRef.current
@@ -9285,7 +9469,7 @@ function getColumnResizer(colIndex, {
9285
9469
  if (nextColumn.computedPinned === "start") {
9286
9470
  addToInfiniteColumnOffset(nextColumn, diff, domRef.current);
9287
9471
  } else {
9288
- setInfiniteColumnOffset(
9472
+ InternalVarUtils.columnOffsets.set(
9289
9473
  nextColIndex,
9290
9474
  nextColumn.computedOffset + diff,
9291
9475
  domRef.current
@@ -9306,7 +9490,11 @@ function getColumnResizer(colIndex, {
9306
9490
  if (col.computedPinned === "end") {
9307
9491
  continue;
9308
9492
  }
9309
- setInfiniteColumnOffset(i, col.computedOffset + diff, domRef.current);
9493
+ InternalVarUtils.columnOffsets.set(
9494
+ i,
9495
+ col.computedOffset + diff,
9496
+ domRef.current
9497
+ );
9310
9498
  }
9311
9499
  return;
9312
9500
  }
@@ -9315,7 +9503,11 @@ function getColumnResizer(colIndex, {
9315
9503
  if (col.computedPinned) {
9316
9504
  continue;
9317
9505
  }
9318
- setInfiniteColumnOffset(i, col.computedOffset + diff, domRef.current);
9506
+ InternalVarUtils.columnOffsets.set(
9507
+ i,
9508
+ col.computedOffset + diff,
9509
+ domRef.current
9510
+ );
9319
9511
  }
9320
9512
  }
9321
9513
  };
@@ -9343,12 +9535,12 @@ function getColumnGroupResizer(colIndexes, config) {
9343
9535
  const colIndex = colIndexes[i];
9344
9536
  const column = columns[colIndex];
9345
9537
  const newWidth = column.computedWidth + diff;
9346
- setInfiniteColumnWidth(colIndex, newWidth, node);
9538
+ InternalVarUtils.columnWidths.set(colIndex, newWidth, node);
9347
9539
  if (column.computedPinned === "end") {
9348
9540
  return;
9349
9541
  }
9350
9542
  if (offset) {
9351
- setInfiniteColumnOffset(colIndex, offset, node);
9543
+ InternalVarUtils.columnOffsets.set(colIndex, offset, node);
9352
9544
  }
9353
9545
  offset += newWidth;
9354
9546
  });
@@ -9360,7 +9552,11 @@ function getColumnGroupResizer(colIndexes, config) {
9360
9552
  if (col.computedPinned === "end") {
9361
9553
  continue;
9362
9554
  }
9363
- setInfiniteColumnOffset(i, col.computedOffset + diffSum, node);
9555
+ InternalVarUtils.columnOffsets.set(
9556
+ i,
9557
+ col.computedOffset + diffSum,
9558
+ node
9559
+ );
9364
9560
  }
9365
9561
  }
9366
9562
  };
@@ -9615,7 +9811,8 @@ function InfiniteTableHeaderCell(props) {
9615
9811
  portalDOMRef,
9616
9812
  columnHeaderHeight,
9617
9813
  columnReorderDragColumnId,
9618
- columnMenuVisibleForColumnId
9814
+ columnMenuVisibleForColumnId,
9815
+ columnReorderInPageIndex
9619
9816
  },
9620
9817
  getDataSourceMasterContext
9621
9818
  } = useInfiniteTable();
@@ -9626,7 +9823,9 @@ function InfiniteTableHeaderCell(props) {
9626
9823
  componentState: { filterDelay, filterTypes }
9627
9824
  } = useDataSourceContextValue();
9628
9825
  const { allRowsSelected, someRowsSelected, selectionMode } = useDataSourceState();
9826
+ const horizontalLayoutPageIndex = props.horizontalLayoutPageIndex;
9629
9827
  const dragging = columnReorderDragColumnId === column.id;
9828
+ const insideDisabledDraggingPage = columnReorderInPageIndex != null ? horizontalLayoutPageIndex !== columnReorderInPageIndex : false;
9630
9829
  const { onResize, height, width, headerOptions, columnsMap } = props;
9631
9830
  const sortInfo = column.computedSortInfo;
9632
9831
  const header = column.header;
@@ -9691,7 +9890,7 @@ function InfiniteTableHeaderCell(props) {
9691
9890
  const MenuIconCmp = column.components?.MenuIcon || components2?.MenuIcon || MenuIcon;
9692
9891
  const menuIcon = /* @__PURE__ */ React42.createElement(MenuIconCmp, { ...menuIconProps });
9693
9892
  const initialRenderParam = {
9694
- horizontalLayoutPageIndex: props.horizontalLayoutPageIndex,
9893
+ horizontalLayoutPageIndex,
9695
9894
  dragging,
9696
9895
  domRef: ref,
9697
9896
  insideColumnMenu: false,
@@ -9855,7 +10054,8 @@ function InfiniteTableHeaderCell(props) {
9855
10054
  const headerClassName = typeof column.headerClassName === "function" ? column.headerClassName(renderParam) : column.headerClassName;
9856
10055
  const { onPointerDown, proxyPosition } = useColumnPointerEvents({
9857
10056
  columnId: column.id,
9858
- domRef
10057
+ domRef,
10058
+ horizontalLayoutPageIndex
9859
10059
  });
9860
10060
  let draggingProxy = null;
9861
10061
  if (dragging && proxyPosition) {
@@ -9899,7 +10099,7 @@ function InfiniteTableHeaderCell(props) {
9899
10099
  const FilterEditor = operator?.components?.FilterEditor || filterType?.components?.FilterEditor || column.components?.FilterEditor || StringFilterEditor;
9900
10100
  const FilterOperatorSwitch = filterType?.components?.FilterOperatorSwitch || column.components?.FilterOperatorSwitch;
9901
10101
  const resizeHandle = useColumnResizeHandle(column, {
9902
- horizontalLayoutPageIndex: props.horizontalLayoutPageIndex
10102
+ horizontalLayoutPageIndex
9903
10103
  });
9904
10104
  const zIndex2 = `var(${columnZIndexAtIndex5}-${column.computedVisibleIndex})`;
9905
10105
  style2.zIndex = zIndex2;
@@ -9939,6 +10139,7 @@ function InfiniteTableHeaderCell(props) {
9939
10139
  HeaderCellRecipe,
9940
10140
  {
9941
10141
  dragging,
10142
+ insideDisabledDraggingPage,
9942
10143
  align: align2,
9943
10144
  verticalAlign,
9944
10145
  rowSelected: false,
@@ -9959,7 +10160,7 @@ function InfiniteTableHeaderCell(props) {
9959
10160
  afterChildren: /* @__PURE__ */ React42.createElement(React42.Fragment, null, showColumnFilters ? column.computedFilterable ? /* @__PURE__ */ React42.createElement(
9960
10161
  InfiniteTableColumnHeaderFilter,
9961
10162
  {
9962
- horizontalLayoutPageIndex: props.horizontalLayoutPageIndex,
10163
+ horizontalLayoutPageIndex,
9963
10164
  filterEditor: FilterEditor,
9964
10165
  filterOperatorSwitch: FilterOperatorSwitch ?? InfiniteTableFilterOperatorSwitch,
9965
10166
  operator,
@@ -10277,7 +10478,7 @@ function useColumnGroupResizeHandle(groupColumns, config) {
10277
10478
 
10278
10479
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
10279
10480
  var TableHeaderGroupClassName = `${rootClassName2}HeaderGroup`;
10280
- var columnWidthAtIndex5 = stripVar(InternalVars.columnWidthAtIndex);
10481
+ var columnWidthAtIndex4 = stripVar(InternalVars.columnWidthAtIndex);
10281
10482
  var columnZIndexAtIndex6 = stripVar(InternalVars.columnZIndexAtIndex);
10282
10483
  function InfiniteTableHeaderGroup(props) {
10283
10484
  const { columnGroup, height, columns, bodyBrain, columnGroupsMaxDepth } = props;
@@ -10296,8 +10497,8 @@ function InfiniteTableHeaderGroup(props) {
10296
10497
  });
10297
10498
  const firstColumn = columns[0];
10298
10499
  const width = columns.length > 1 ? `calc( ` + columns.map(
10299
- (col) => `var(${columnWidthAtIndex5}-${col.computedVisibleIndex})`
10300
- ).join(" + ") + " )" : `var(${columnWidthAtIndex5}-${firstColumn.computedVisibleIndex})`;
10500
+ (col) => `var(${columnWidthAtIndex4}-${col.computedVisibleIndex})`
10501
+ ).join(" + ") + " )" : `var(${columnWidthAtIndex4}-${firstColumn.computedVisibleIndex})`;
10301
10502
  const zIndex2 = `calc(var(${columnZIndexAtIndex6}-${firstColumn.computedVisibleIndex}) + ${columnGroupsMaxDepth - columnGroup.depth})`;
10302
10503
  let style2 = typeof userStyle === "function" ? userStyle({
10303
10504
  columnGroup,
@@ -10653,7 +10854,7 @@ var InfiniteTableLicenseFooter = React48.forwardRef(
10653
10854
  }, []);
10654
10855
  (0, import_react33.useEffect)(() => {
10655
10856
  const forceStyle = () => {
10656
- raf(() => {
10857
+ setTimeout(() => {
10657
10858
  enforceStyle(domRef.current, defaultStyle);
10658
10859
  enforceStyle(
10659
10860
  domRef.current?.firstElementChild,
@@ -13726,12 +13927,12 @@ var DataSourceApiImpl = class {
13726
13927
  });
13727
13928
  const delay = Math.max(0, this.getState().batchOperationDelay ?? 0);
13728
13929
  if (delay === 0) {
13729
- this.batchOperationRafId = raf(() => {
13930
+ this.batchOperationRafId = setTimeout(() => {
13730
13931
  this.commit();
13731
13932
  });
13732
13933
  } else {
13733
13934
  this.batchOperationTimeoutId = setTimeout(() => {
13734
- this.batchOperationRafId = raf(() => {
13935
+ this.batchOperationRafId = setTimeout(() => {
13735
13936
  this.commit();
13736
13937
  });
13737
13938
  }, delay);
@@ -17043,6 +17244,17 @@ var InfiniteTableApiImpl = class {
17043
17244
  setColumnVisibility(columnVisibility) {
17044
17245
  this.actions.columnVisibility = columnVisibility;
17045
17246
  }
17247
+ get scrollContainer() {
17248
+ return this.getState().scrollerDOMRef.current;
17249
+ }
17250
+ get scrollLeftMax() {
17251
+ const scrollLeftMax = this.getState().brain.scrollLeftMax;
17252
+ return scrollLeftMax;
17253
+ }
17254
+ get scrollTopMax() {
17255
+ const scrollTopMax = this.getState().brain.scrollTopMax;
17256
+ return scrollTopMax;
17257
+ }
17046
17258
  get scrollLeft() {
17047
17259
  const state = this.getState();
17048
17260
  return state.brain.getScrollPosition().scrollLeft;
@@ -18200,6 +18412,9 @@ var HorizontalLayoutMatrixBrain = class extends MatrixBrain {
18200
18412
  }
18201
18413
  this._totalPageCount = value;
18202
18414
  }
18415
+ getPageWidth() {
18416
+ return this.pageWidth;
18417
+ }
18203
18418
  doUpdateRenderCount(which = ALL_DIRECTIONS) {
18204
18419
  const rowHeight = this.getInitialRowHeight();
18205
18420
  let pageWidth = 0;
@@ -18352,6 +18567,7 @@ function initSetupState2({
18352
18567
  scrollLeft: 0
18353
18568
  },
18354
18569
  columnReorderDragColumnId: false,
18570
+ columnReorderInPageIndex: null,
18355
18571
  ready: false,
18356
18572
  focused: false,
18357
18573
  focusedWithin: false,
@@ -19776,7 +19992,7 @@ var useLicense = (licenseKey = "") => {
19776
19992
  }
19777
19993
  let valid2 = isValidLicense(licenseKey, {
19778
19994
  publishedAt: 1624970570587,
19779
- version: "5.0.0-canary.7"
19995
+ version: "5.1.0-canary.0"
19780
19996
  });
19781
19997
  if (!licenseKey && !valid2 && isInsidePlayground) {
19782
19998
  return true;
@@ -23428,17 +23644,17 @@ function HScrollSyncContent(props) {
23428
23644
  }
23429
23645
 
23430
23646
  // src/components/InfiniteTable/hooks/useVisibleColumnSizes.ts
23431
- var columnWidthAtIndex6 = stripVar(InternalVars.columnWidthAtIndex);
23432
- var columnOffsetAtIndex5 = stripVar(InternalVars.columnOffsetAtIndex);
23647
+ var columnWidthAtIndex5 = stripVar(InternalVars.columnWidthAtIndex);
23648
+ var columnOffsetAtIndex3 = stripVar(InternalVars.columnOffsetAtIndex);
23433
23649
  function useVisibleColumnSizes() {
23434
23650
  const context = useInfiniteTable();
23435
23651
  return context.computed.computedVisibleColumns.map((column) => {
23436
23652
  return {
23437
23653
  id: column.id,
23438
23654
  width: column.computedWidth,
23439
- cssVarForWidth: `var(${columnWidthAtIndex6}-${column.computedVisibleIndex})`,
23655
+ cssVarForWidth: `var(${columnWidthAtIndex5}-${column.computedVisibleIndex})`,
23440
23656
  offset: column.computedOffset,
23441
- cssVarForOffset: `var(${columnOffsetAtIndex5}-${column.computedVisibleIndex})`,
23657
+ cssVarForOffset: `var(${columnOffsetAtIndex3}-${column.computedVisibleIndex})`,
23442
23658
  pinned: column.computedPinned
23443
23659
  };
23444
23660
  });