@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.css +64 -54
- package/index.d.ts +11 -2
- package/index.dev.js +405 -189
- package/index.dev.mjs +405 -189
- package/index.js +405 -189
- package/index.mjs +405 -189
- package/package.json +2 -2
package/index.dev.mjs
CHANGED
|
@@ -1253,49 +1253,6 @@ function buildSubscriptionCallback(withRaf = false) {
|
|
|
1253
1253
|
return updater;
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
// src/components/InfiniteTable/vars.css.ts
|
|
1257
|
-
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)" } } };
|
|
1258
|
-
var columnHeaderHeightName = "column-header-height";
|
|
1259
|
-
|
|
1260
|
-
// src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx
|
|
1261
|
-
import * as React9 from "react";
|
|
1262
|
-
|
|
1263
|
-
// src/utils/mathIntersection.ts
|
|
1264
|
-
function arrayIntersection(...arrays) {
|
|
1265
|
-
if (!arrays.length) {
|
|
1266
|
-
return [];
|
|
1267
|
-
}
|
|
1268
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
1269
|
-
arrays.forEach((arr) => {
|
|
1270
|
-
for (let i = 0, len2 = arr.length; i < len2; i++) {
|
|
1271
|
-
const item = arr[i];
|
|
1272
|
-
const count = map2.get(item) ?? 0;
|
|
1273
|
-
map2.set(item, count + 1);
|
|
1274
|
-
}
|
|
1275
|
-
return map2;
|
|
1276
|
-
});
|
|
1277
|
-
const len = arrays.length;
|
|
1278
|
-
return arrays[0].filter((x) => {
|
|
1279
|
-
return map2.get(x) === len;
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
// src/utils/raf.ts
|
|
1284
|
-
var raf = getGlobal().requestAnimationFrame || ((fn) => {
|
|
1285
|
-
return setTimeout(fn, 16);
|
|
1286
|
-
});
|
|
1287
|
-
var cancelRaf = getGlobal().cancelAnimationFrame || ((timeoutId) => {
|
|
1288
|
-
return clearTimeout(timeoutId);
|
|
1289
|
-
});
|
|
1290
|
-
|
|
1291
|
-
// src/utils/stripVar.ts
|
|
1292
|
-
function stripVar(cssVariableWithVarString) {
|
|
1293
|
-
return cssVariableWithVarString.slice(4, -1);
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
// src/components/InfiniteTable/internalVars.css.ts
|
|
1297
|
-
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)" };
|
|
1298
|
-
|
|
1299
1256
|
// src/utils/selectParent.ts
|
|
1300
1257
|
function selectParent(el, selector2) {
|
|
1301
1258
|
let node = el;
|
|
@@ -1331,12 +1288,24 @@ function selectParentUntil(el, selector2, root) {
|
|
|
1331
1288
|
return null;
|
|
1332
1289
|
}
|
|
1333
1290
|
|
|
1291
|
+
// src/utils/stripVar.ts
|
|
1292
|
+
function stripVar(cssVariableWithVarString) {
|
|
1293
|
+
return cssVariableWithVarString.slice(4, -1);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1334
1296
|
// src/components/InfiniteTable/internalProps.ts
|
|
1335
1297
|
var rootClassName2 = "Infinite";
|
|
1336
1298
|
var internalProps = {
|
|
1337
1299
|
rootClassName: rootClassName2
|
|
1338
1300
|
};
|
|
1339
1301
|
|
|
1302
|
+
// src/components/InfiniteTable/internalVars.css.ts
|
|
1303
|
+
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)" };
|
|
1304
|
+
|
|
1305
|
+
// src/components/InfiniteTable/vars.css.ts
|
|
1306
|
+
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)" } } };
|
|
1307
|
+
var columnHeaderHeightName = "column-header-height";
|
|
1308
|
+
|
|
1340
1309
|
// src/components/InfiniteTable/utils/infiniteDOMUtils.ts
|
|
1341
1310
|
var InfiniteSelector = `.${internalProps.rootClassName}`;
|
|
1342
1311
|
function getParentInfiniteNode(node) {
|
|
@@ -1359,34 +1328,20 @@ function setInfiniteVarOnRoot(varName, varValue, node) {
|
|
|
1359
1328
|
}
|
|
1360
1329
|
function setInfiniteVarOnNode(varName, varValue, node) {
|
|
1361
1330
|
if (node) {
|
|
1362
|
-
const
|
|
1331
|
+
const name = varName;
|
|
1332
|
+
const prop = InternalVars[name] ? stripVar(InternalVars[name]) : varName;
|
|
1363
1333
|
node.style.setProperty(prop, `${varValue}`);
|
|
1364
1334
|
}
|
|
1365
1335
|
}
|
|
1366
1336
|
function setInfiniteVarsOnNode(vars, node) {
|
|
1367
1337
|
if (node) {
|
|
1368
1338
|
for (var varName in vars) {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
);
|
|
1339
|
+
const propName = InternalVars[varName] ? stripVar(InternalVars[varName]) : varName;
|
|
1340
|
+
const propValue = `${vars[varName]}`;
|
|
1341
|
+
node.style.setProperty(propName, propValue);
|
|
1373
1342
|
}
|
|
1374
1343
|
}
|
|
1375
1344
|
}
|
|
1376
|
-
function setInfiniteColumnWidth(colIndex, colWidth, node) {
|
|
1377
|
-
setInfiniteVarOnRoot(
|
|
1378
|
-
`${columnWidthAtIndex}-${colIndex}`,
|
|
1379
|
-
typeof colWidth === "number" ? colWidth + "px" : colWidth,
|
|
1380
|
-
node
|
|
1381
|
-
);
|
|
1382
|
-
}
|
|
1383
|
-
function setInfiniteColumnOffset(colIndex, colOffset, node) {
|
|
1384
|
-
setInfiniteVarOnRoot(
|
|
1385
|
-
`${columnOffsetAtIndex}-${colIndex}`,
|
|
1386
|
-
typeof colOffset === "number" ? colOffset + "px" : colOffset,
|
|
1387
|
-
node
|
|
1388
|
-
);
|
|
1389
|
-
}
|
|
1390
1345
|
function addToInfiniteColumnOffset(column, amountToAdd, node) {
|
|
1391
1346
|
setInfiniteVarOnRoot(
|
|
1392
1347
|
`${columnOffsetAtIndex}-${column.computedVisibleIndex}`,
|
|
@@ -1423,12 +1378,42 @@ function restoreInfiniteColumnReorderDuration(colIndex, node) {
|
|
|
1423
1378
|
node
|
|
1424
1379
|
);
|
|
1425
1380
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1381
|
+
var InternalVarUtils = {
|
|
1382
|
+
columnWidths: {
|
|
1383
|
+
get(index) {
|
|
1384
|
+
return `var(${this.getVarName(index)})`;
|
|
1385
|
+
},
|
|
1386
|
+
getVarName(index) {
|
|
1387
|
+
return this.varName.get(index);
|
|
1388
|
+
},
|
|
1389
|
+
varName: {
|
|
1390
|
+
get(index) {
|
|
1391
|
+
return `${columnWidthAtIndex}-${index}`;
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
set(index, value, node) {
|
|
1395
|
+
value = typeof value === "number" ? value + "px" : value;
|
|
1396
|
+
setInfiniteVarOnRoot(this.varName.get(index), value, node);
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
columnOffsets: {
|
|
1400
|
+
get(index) {
|
|
1401
|
+
return `var(${this.getVarName(index)})`;
|
|
1402
|
+
},
|
|
1403
|
+
getVarName(index) {
|
|
1404
|
+
return this.varName.get(index);
|
|
1405
|
+
},
|
|
1406
|
+
varName: {
|
|
1407
|
+
get(index) {
|
|
1408
|
+
return `${columnOffsetAtIndex}-${index}`;
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
set(index, value, node) {
|
|
1412
|
+
value = typeof value === "number" ? value + "px" : value;
|
|
1413
|
+
setInfiniteVarOnRoot(this.varName.get(index), value, node);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1432
1417
|
function setInfiniteScrollPosition(scrollPosition, node) {
|
|
1433
1418
|
setInfiniteVarsOnNode(
|
|
1434
1419
|
{
|
|
@@ -1439,6 +1424,37 @@ function setInfiniteScrollPosition(scrollPosition, node) {
|
|
|
1439
1424
|
);
|
|
1440
1425
|
}
|
|
1441
1426
|
|
|
1427
|
+
// src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx
|
|
1428
|
+
import * as React9 from "react";
|
|
1429
|
+
|
|
1430
|
+
// src/utils/mathIntersection.ts
|
|
1431
|
+
function arrayIntersection(...arrays) {
|
|
1432
|
+
if (!arrays.length) {
|
|
1433
|
+
return [];
|
|
1434
|
+
}
|
|
1435
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
1436
|
+
arrays.forEach((arr) => {
|
|
1437
|
+
for (let i = 0, len2 = arr.length; i < len2; i++) {
|
|
1438
|
+
const item = arr[i];
|
|
1439
|
+
const count = map2.get(item) ?? 0;
|
|
1440
|
+
map2.set(item, count + 1);
|
|
1441
|
+
}
|
|
1442
|
+
return map2;
|
|
1443
|
+
});
|
|
1444
|
+
const len = arrays.length;
|
|
1445
|
+
return arrays[0].filter((x) => {
|
|
1446
|
+
return map2.get(x) === len;
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
// src/utils/raf.ts
|
|
1451
|
+
var raf = getGlobal().requestAnimationFrame || ((fn) => {
|
|
1452
|
+
return setTimeout(fn, 16);
|
|
1453
|
+
});
|
|
1454
|
+
var cancelRaf = getGlobal().cancelAnimationFrame || ((timeoutId) => {
|
|
1455
|
+
return clearTimeout(timeoutId);
|
|
1456
|
+
});
|
|
1457
|
+
|
|
1442
1458
|
// src/components/VirtualBrain/MatrixBrain.ts
|
|
1443
1459
|
var import_binary_search = __toESM(require_binary_search());
|
|
1444
1460
|
|
|
@@ -1482,6 +1498,7 @@ var MatrixBrain = class extends Logger {
|
|
|
1482
1498
|
this.availableRenderHeight = 0;
|
|
1483
1499
|
this.cols = 0;
|
|
1484
1500
|
this.rows = 0;
|
|
1501
|
+
this.alwaysRenderedColumns = /* @__PURE__ */ new Set();
|
|
1485
1502
|
this._rowsPerPage = 0;
|
|
1486
1503
|
this.rowHeight = 0;
|
|
1487
1504
|
this.colWidth = 0;
|
|
@@ -1826,7 +1843,7 @@ var MatrixBrain = class extends Logger {
|
|
|
1826
1843
|
this.setRenderCount = ({
|
|
1827
1844
|
horizontal,
|
|
1828
1845
|
vertical
|
|
1829
|
-
}) => {
|
|
1846
|
+
}, force) => {
|
|
1830
1847
|
if (horizontal === void 0) {
|
|
1831
1848
|
horizontal = this.horizontalRenderCount;
|
|
1832
1849
|
}
|
|
@@ -1835,14 +1852,14 @@ var MatrixBrain = class extends Logger {
|
|
|
1835
1852
|
}
|
|
1836
1853
|
const horizontalSame = horizontal === this.horizontalRenderCount;
|
|
1837
1854
|
const verticalSame = vertical === this.verticalRenderCount;
|
|
1838
|
-
if (horizontalSame && verticalSame) {
|
|
1855
|
+
if (horizontalSame && verticalSame && !force) {
|
|
1839
1856
|
return;
|
|
1840
1857
|
}
|
|
1841
1858
|
this.horizontalRenderCount = horizontal;
|
|
1842
1859
|
this.verticalRenderCount = vertical;
|
|
1843
1860
|
this.updateRenderRange({
|
|
1844
|
-
horizontal: !horizontalSame,
|
|
1845
|
-
vertical: !verticalSame
|
|
1861
|
+
horizontal: force ? true : !horizontalSame,
|
|
1862
|
+
vertical: force ? true : !verticalSame
|
|
1846
1863
|
});
|
|
1847
1864
|
this.notifyRenderCountChange();
|
|
1848
1865
|
};
|
|
@@ -2142,6 +2159,15 @@ var MatrixBrain = class extends Logger {
|
|
|
2142
2159
|
}
|
|
2143
2160
|
return cachedSize;
|
|
2144
2161
|
};
|
|
2162
|
+
this.keepColumnRendered = (colIndex) => {
|
|
2163
|
+
this.alwaysRenderedColumns.add(colIndex);
|
|
2164
|
+
return () => {
|
|
2165
|
+
this.alwaysRenderedColumns.delete(colIndex);
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
this.getAlwaysRenderedColumns = () => {
|
|
2169
|
+
return Array.from(this.alwaysRenderedColumns);
|
|
2170
|
+
};
|
|
2145
2171
|
this.setRenderRange = ({
|
|
2146
2172
|
horizontal,
|
|
2147
2173
|
vertical,
|
|
@@ -2415,10 +2441,13 @@ var MatrixBrain = class extends Logger {
|
|
|
2415
2441
|
const rightAmount = typeof options.right === "number" ? options.right : options.right === true ? this.getInitialCols() : 0;
|
|
2416
2442
|
const currentRenderCount = this.horizontalRenderCount;
|
|
2417
2443
|
const restore = () => {
|
|
2418
|
-
this.setRenderCount(
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2444
|
+
this.setRenderCount(
|
|
2445
|
+
{
|
|
2446
|
+
horizontal: currentRenderCount,
|
|
2447
|
+
vertical: void 0
|
|
2448
|
+
},
|
|
2449
|
+
true
|
|
2450
|
+
);
|
|
2422
2451
|
};
|
|
2423
2452
|
const { start, end } = this.getRenderRange();
|
|
2424
2453
|
const [startRow, startCol] = start;
|
|
@@ -2617,6 +2646,7 @@ var MatrixBrain = class extends Logger {
|
|
|
2617
2646
|
this.reset();
|
|
2618
2647
|
this.rowspanParent.clear();
|
|
2619
2648
|
this.colspanParent.clear();
|
|
2649
|
+
this.alwaysRenderedColumns.clear();
|
|
2620
2650
|
this.destroyed = true;
|
|
2621
2651
|
this.onDestroyFns = [];
|
|
2622
2652
|
this.onScrollFns = [];
|
|
@@ -2650,6 +2680,9 @@ var MappedCells = class extends Logger {
|
|
|
2650
2680
|
}
|
|
2651
2681
|
return elementsOutsideItemRange.pop();
|
|
2652
2682
|
};
|
|
2683
|
+
this.getElementFromListForRow = (elementsOutsideItemRange, _rowIndex) => {
|
|
2684
|
+
return elementsOutsideItemRange.pop();
|
|
2685
|
+
};
|
|
2653
2686
|
/**
|
|
2654
2687
|
* Retrieves the elements that contain rendered cells that are outside
|
|
2655
2688
|
* of the specified range
|
|
@@ -2947,7 +2980,8 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
2947
2980
|
this.detailRowUpdaters = [];
|
|
2948
2981
|
this.items = [];
|
|
2949
2982
|
this.detailItems = [];
|
|
2950
|
-
this.
|
|
2983
|
+
this.lastEnteredRow = -1;
|
|
2984
|
+
this.lastExitedRow = -1;
|
|
2951
2985
|
this.hoverRowUpdatesInProgress = /* @__PURE__ */ new Map();
|
|
2952
2986
|
this.infiniteNode = null;
|
|
2953
2987
|
this.setDetailTransform = (element, _rowIndex, {
|
|
@@ -2969,14 +3003,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
2969
3003
|
scrollLeft: scrollLeft2,
|
|
2970
3004
|
scrollTop: scrollTop2
|
|
2971
3005
|
}, zIndex2) => {
|
|
2972
|
-
const columnOffsetX =
|
|
3006
|
+
const columnOffsetX = InternalVarUtils.columnOffsets.get(colIndex);
|
|
2973
3007
|
const columnOffsetXWhileReordering = `${columnOffsetAtIndexWhileReordering2}-${colIndex}`;
|
|
2974
3008
|
const currentTransformYValue = scrollTop2 ? `calc( ${y}px + var(${scrollTopCSSVar}) )` : `${y}px`;
|
|
2975
3009
|
if (element.__currentTransformY !== currentTransformYValue) {
|
|
2976
3010
|
element.__currentTransformY = currentTransformYValue;
|
|
2977
3011
|
element.style.setProperty(currentTransformY, currentTransformYValue);
|
|
2978
3012
|
}
|
|
2979
|
-
const transformValue = `translate3d(var(${columnOffsetXWhileReordering},
|
|
3013
|
+
const transformValue = `translate3d(var(${columnOffsetXWhileReordering}, ${columnOffsetX}), var(${currentTransformY}), 0)`;
|
|
2980
3014
|
if (element.__transformValue !== transformValue) {
|
|
2981
3015
|
element.__transformValue = transformValue;
|
|
2982
3016
|
element.style.transform = transformValue;
|
|
@@ -3376,11 +3410,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3376
3410
|
return covered ? [rowspanParent, colspanParent] : false;
|
|
3377
3411
|
};
|
|
3378
3412
|
this.onMouseEnter = (rowIndex) => {
|
|
3379
|
-
this.
|
|
3413
|
+
this.lastEnteredRow = rowIndex;
|
|
3414
|
+
this.lastExitedRow = -1;
|
|
3380
3415
|
if (this.scrolling) {
|
|
3381
3416
|
return;
|
|
3382
3417
|
}
|
|
3383
|
-
|
|
3418
|
+
if (rowIndex != -1) {
|
|
3419
|
+
this.addHoverClass(rowIndex);
|
|
3420
|
+
}
|
|
3384
3421
|
};
|
|
3385
3422
|
this.addHoverClass = (rowIndex) => {
|
|
3386
3423
|
this.mappedCells.getElementsForRowIndex(rowIndex).forEach((elIndex) => {
|
|
@@ -3393,14 +3430,14 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3393
3430
|
});
|
|
3394
3431
|
};
|
|
3395
3432
|
this.onMouseLeave = (rowIndex) => {
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
}
|
|
3399
|
-
this.currentHoveredRow = -1;
|
|
3433
|
+
this.lastExitedRow = rowIndex;
|
|
3434
|
+
this.lastEnteredRow = -1;
|
|
3400
3435
|
if (this.scrolling) {
|
|
3401
3436
|
return;
|
|
3402
3437
|
}
|
|
3403
|
-
|
|
3438
|
+
if (rowIndex != -1) {
|
|
3439
|
+
this.removeHoverClass(rowIndex);
|
|
3440
|
+
}
|
|
3404
3441
|
};
|
|
3405
3442
|
this.removeHoverClass = (rowIndex) => {
|
|
3406
3443
|
this.mappedCells.getElementsForRowIndex(rowIndex).forEach((elIndex) => {
|
|
@@ -3424,8 +3461,8 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3424
3461
|
}
|
|
3425
3462
|
this.hoverRowUpdatesInProgress.set(rowIndex, true);
|
|
3426
3463
|
const checkHoverClass = () => {
|
|
3427
|
-
if (this.
|
|
3428
|
-
if (this.
|
|
3464
|
+
if (!this.scrolling && this.lastEnteredRow != -1) {
|
|
3465
|
+
if (this.lastEnteredRow === rowIndex) {
|
|
3429
3466
|
this.addHoverClass(rowIndex);
|
|
3430
3467
|
} else {
|
|
3431
3468
|
this.removeHoverClass(rowIndex);
|
|
@@ -3518,11 +3555,17 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3518
3555
|
};
|
|
3519
3556
|
this.onScrollStart = () => {
|
|
3520
3557
|
this.scrolling = true;
|
|
3558
|
+
if (this.lastEnteredRow != -1) {
|
|
3559
|
+
this.removeHoverClass(this.lastEnteredRow);
|
|
3560
|
+
}
|
|
3521
3561
|
};
|
|
3522
3562
|
this.onScrollStop = () => {
|
|
3523
3563
|
this.scrolling = false;
|
|
3524
|
-
if (this.
|
|
3525
|
-
this.addHoverClass(this.
|
|
3564
|
+
if (this.lastEnteredRow != -1) {
|
|
3565
|
+
this.addHoverClass(this.lastEnteredRow);
|
|
3566
|
+
}
|
|
3567
|
+
if (this.lastExitedRow != -1) {
|
|
3568
|
+
this.removeHoverClass(this.lastExitedRow);
|
|
3526
3569
|
}
|
|
3527
3570
|
};
|
|
3528
3571
|
this.adjustFixedElementsOnScroll = (scrollPosition = this.brain.getScrollPosition()) => {
|
|
@@ -3789,12 +3832,27 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3789
3832
|
return [];
|
|
3790
3833
|
}
|
|
3791
3834
|
const { start, end } = range;
|
|
3835
|
+
const horizontalLayout = this.brain.isHorizontalLayoutBrain;
|
|
3792
3836
|
if (false) {
|
|
3793
3837
|
this.debug(`Render range ${start}-${end}. Force ${force}`);
|
|
3794
3838
|
}
|
|
3795
3839
|
const { mappedCells, mappedDetailRows } = this;
|
|
3796
3840
|
const fixedRanges = this.getFixedRanges(range);
|
|
3797
3841
|
const ranges = [range, ...fixedRanges];
|
|
3842
|
+
const alwaysRenderedColumns = this.brain.getAlwaysRenderedColumns();
|
|
3843
|
+
if (alwaysRenderedColumns.length > 0) {
|
|
3844
|
+
const startCol = range.start[1];
|
|
3845
|
+
const endCol = range.end[1];
|
|
3846
|
+
alwaysRenderedColumns.forEach((colIndex) => {
|
|
3847
|
+
const colInRange = startCol <= colIndex && colIndex < endCol;
|
|
3848
|
+
if (!colInRange) {
|
|
3849
|
+
ranges.push({
|
|
3850
|
+
start: [range.start[0], colIndex],
|
|
3851
|
+
end: [range.end[0], colIndex + 1]
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3854
|
+
});
|
|
3855
|
+
}
|
|
3798
3856
|
const extraCellsMap = /* @__PURE__ */ new Map();
|
|
3799
3857
|
const extraCells = ranges.map(this.getExtraSpanCellsForRange).flat();
|
|
3800
3858
|
if (extraCells) {
|
|
@@ -3914,9 +3972,15 @@ var ReactHeadlessTableRenderer = class extends Logger {
|
|
|
3914
3972
|
if (cellRendered && !force && cellMappedCorrectly) {
|
|
3915
3973
|
continue;
|
|
3916
3974
|
}
|
|
3917
|
-
const elementIndex = cellRendered ? mappedCells.getElementIndexForCell(row, col) :
|
|
3918
|
-
elementsOutsideItemRange
|
|
3919
|
-
|
|
3975
|
+
const elementIndex = cellRendered ? mappedCells.getElementIndexForCell(row, col) : (
|
|
3976
|
+
// TODO when horizontal layout, just do elementsOutsideItemRange.pop()
|
|
3977
|
+
horizontalLayout ? mappedCells.getElementFromListForRow(
|
|
3978
|
+
elementsOutsideItemRange,
|
|
3979
|
+
row
|
|
3980
|
+
) : mappedCells.getElementFromListForColumn(
|
|
3981
|
+
elementsOutsideItemRange,
|
|
3982
|
+
col
|
|
3983
|
+
)
|
|
3920
3984
|
);
|
|
3921
3985
|
if (elementIndex == null) {
|
|
3922
3986
|
if (false) {
|
|
@@ -4159,17 +4223,18 @@ var HorizontalLayoutTableRenderer = class extends ReactHeadlessTableRenderer {
|
|
|
4159
4223
|
);
|
|
4160
4224
|
const pageWidth = ThemeVars.runtime.totalVisibleColumnsWidthVar;
|
|
4161
4225
|
const pageOffset = pageIndex ? `calc(${pageWidth} * ${pageIndex})` : "0px";
|
|
4162
|
-
const columnOffsetX =
|
|
4226
|
+
const columnOffsetX = InternalVarUtils.columnOffsets.get(
|
|
4227
|
+
horizontalLayoutCoords.colIndex
|
|
4228
|
+
);
|
|
4163
4229
|
const columnOffsetXWhileReordering = `${columnOffsetAtIndexWhileReordering2}-${horizontalLayoutCoords.colIndex}`;
|
|
4164
4230
|
const currentTransformYValue = `${y}px`;
|
|
4165
4231
|
if (element.__currentTransformY !== currentTransformYValue) {
|
|
4166
4232
|
element.__currentTransformY = currentTransformYValue;
|
|
4167
4233
|
element.style.setProperty(currentTransformY, currentTransformYValue);
|
|
4168
4234
|
}
|
|
4169
|
-
const xOffset = `calc(var(${columnOffsetX}) + ${pageOffset})`;
|
|
4170
|
-
const transformX2 = `var(${columnOffsetXWhileReordering}, ${xOffset})`;
|
|
4235
|
+
const xOffset = `calc(var(${columnOffsetXWhileReordering}, ${columnOffsetX}) + ${pageOffset})`;
|
|
4171
4236
|
const transformY = `var(${currentTransformY})`;
|
|
4172
|
-
const transformValue = `translate3d(${
|
|
4237
|
+
const transformValue = `translate3d(${xOffset}, ${transformY}, 0px)`;
|
|
4173
4238
|
if (element.__transformValue !== transformValue) {
|
|
4174
4239
|
element.__transformValue = transformValue;
|
|
4175
4240
|
element.style.transform = transformValue;
|
|
@@ -5278,22 +5343,22 @@ import { useEffect as useEffect10, useLayoutEffect as useLayoutEffect8, useState
|
|
|
5278
5343
|
|
|
5279
5344
|
// src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
|
|
5280
5345
|
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";
|
|
5281
|
-
var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "
|
|
5346
|
+
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: [] });
|
|
5282
5347
|
var HeaderCellProxy = "header_HeaderCellProxy__12zfob1n utilities_whiteSpace_nowrap__16lm1iw23 utilities_textOverflow_ellipsis__16lm1iw24 utilities_overflow_hidden__16lm1iw1x";
|
|
5283
|
-
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: "
|
|
5348
|
+
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"]] });
|
|
5284
5349
|
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"]] });
|
|
5285
|
-
var HeaderFilterEditorCls = "
|
|
5350
|
+
var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12o utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
|
|
5286
5351
|
var HeaderFilterIconIndexCls = "header_HeaderFilterIconIndexCls__12zfob17";
|
|
5287
|
-
var HeaderFilterOperatorCls = "
|
|
5288
|
-
var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "
|
|
5289
|
-
var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "
|
|
5290
|
-
var HeaderGroupCls = "
|
|
5291
|
-
var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "
|
|
5352
|
+
var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12k utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
|
|
5353
|
+
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: [] });
|
|
5354
|
+
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: [] });
|
|
5355
|
+
var HeaderGroupCls = "header_HeaderGroupCls__12zfob12g utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
|
|
5356
|
+
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"]] });
|
|
5292
5357
|
var HeaderScrollbarPlaceholderCls = "header_HeaderScrollbarPlaceholderCls__12zfob18 utilities_position_absolute__16lm1iw2";
|
|
5293
5358
|
var HeaderSortIconCls = "utilities_position_relative__16lm1iw1";
|
|
5294
5359
|
var HeaderSortIconIndexCls = "header_HeaderSortIconIndexCls__12zfob16";
|
|
5295
5360
|
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: [] });
|
|
5296
|
-
var HeaderWrapperCls = "
|
|
5361
|
+
var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12f utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
|
|
5297
5362
|
|
|
5298
5363
|
// src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts
|
|
5299
5364
|
var InfiniteTableIconClassName = "InfiniteTableIcon";
|
|
@@ -6735,6 +6800,7 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
|
|
|
6735
6800
|
rowSelected: extraFlags.rowSelected ?? "null",
|
|
6736
6801
|
rowActive: extraFlags.rowActive,
|
|
6737
6802
|
dragging: extraFlags.dragging,
|
|
6803
|
+
insideDisabledDraggingPage: extraFlags.insideDisabledDraggingPage,
|
|
6738
6804
|
firstRow: extraFlags.firstRow ?? false,
|
|
6739
6805
|
firstRowInHorizontalLayoutPage: extraFlags.firstRowInHorizontalLayoutPage ?? false,
|
|
6740
6806
|
rowDisabled: extraFlags.rowDisabled,
|
|
@@ -6802,11 +6868,11 @@ import { useCallback as useCallback8, useState as useState7 } from "react";
|
|
|
6802
6868
|
// src/components/InfiniteTable/InfiniteCls.css.ts
|
|
6803
6869
|
var FooterCls = "utilities_position_relative__16lm1iw1";
|
|
6804
6870
|
var InfiniteCls = "InfiniteCls_InfiniteCls__1yeub2v0 utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_column__16lm1iw1m utilities_boxSizingBorderBox__16lm1iw0";
|
|
6805
|
-
var InfiniteClsHasPinnedEnd = "
|
|
6806
|
-
var InfiniteClsHasPinnedStart = "
|
|
6807
|
-
var InfiniteClsRecipe = createRuntimeFn({ defaultClassName: "InfiniteCls__1yeub2v2", variantClassNames: { focused: { true: "
|
|
6808
|
-
var InfiniteClsShiftingColumns = "
|
|
6809
|
-
var PinnedRowsContainerClsVariants = createRuntimeFn({ defaultClassName: "
|
|
6871
|
+
var InfiniteClsHasPinnedEnd = "InfiniteCls_InfiniteClsHasPinnedEnd__1yeub2vs";
|
|
6872
|
+
var InfiniteClsHasPinnedStart = "InfiniteCls_InfiniteClsHasPinnedStart__1yeub2vr";
|
|
6873
|
+
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"]] });
|
|
6874
|
+
var InfiniteClsShiftingColumns = "InfiniteCls_shiftingcols__1yeub2vp";
|
|
6875
|
+
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: [] });
|
|
6810
6876
|
|
|
6811
6877
|
// src/components/InfiniteTable/utils/rafFn.ts
|
|
6812
6878
|
var rafFn = (fn) => {
|
|
@@ -6847,7 +6913,6 @@ var scrollbarWidthHorizontal = stripVar(
|
|
|
6847
6913
|
);
|
|
6848
6914
|
var scrollbarWidthVertical = stripVar(InternalVars.scrollbarWidthVertical);
|
|
6849
6915
|
var columnWidthAtIndex2 = stripVar(InternalVars.columnWidthAtIndex);
|
|
6850
|
-
var columnOffsetAtIndex3 = stripVar(InternalVars.columnOffsetAtIndex);
|
|
6851
6916
|
var columnZIndexAtIndex3 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
6852
6917
|
var scrollLeftCSSVar = stripVar(InternalVars.scrollLeft);
|
|
6853
6918
|
var activeCellColWidth = stripVar(InternalVars.activeCellColWidth);
|
|
@@ -6889,7 +6954,8 @@ function useDOMProps(initialDOMProps) {
|
|
|
6889
6954
|
onSelfFocus,
|
|
6890
6955
|
onSelfBlur,
|
|
6891
6956
|
bodySize,
|
|
6892
|
-
activeCellIndex
|
|
6957
|
+
activeCellIndex,
|
|
6958
|
+
wrapRowsHorizontally
|
|
6893
6959
|
} = state;
|
|
6894
6960
|
const {
|
|
6895
6961
|
computedPinnedStartColumnsWidth,
|
|
@@ -6904,11 +6970,11 @@ function useDOMProps(initialDOMProps) {
|
|
|
6904
6970
|
const cssVars = computedVisibleColumns.reduce(
|
|
6905
6971
|
(vars, col) => {
|
|
6906
6972
|
const index = col.computedVisibleIndex;
|
|
6907
|
-
vars[
|
|
6908
|
-
vars[
|
|
6973
|
+
vars[InternalVarUtils.columnWidths.varName.get(index)] = col.computedWidth + "px";
|
|
6974
|
+
vars[InternalVarUtils.columnOffsets.varName.get(index)] = col.computedPinned === "start" ? `calc( ${col.computedOffset}px + var(${scrollLeftCSSVar}) )` : col.computedPinned === "end" ? (
|
|
6909
6975
|
// see #startcoloffsets-pinnedend
|
|
6910
6976
|
`calc( var(${pinnedEndOffsetCSSVar}) ${prevPinnedEndCols.length ? "+" : ""} ${prevPinnedEndCols.map(
|
|
6911
|
-
(c) =>
|
|
6977
|
+
(c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)
|
|
6912
6978
|
).join(" + ")} + var(${scrollLeftCSSVar}) )`
|
|
6913
6979
|
) : `${col.computedOffset}px`;
|
|
6914
6980
|
const zIndexValue = getColumnZIndex(col, {
|
|
@@ -6933,12 +6999,12 @@ function useDOMProps(initialDOMProps) {
|
|
|
6933
6999
|
}).join(" + ")})`;
|
|
6934
7000
|
cssVars[publicRuntimeVars.visibleColumnsCount.name] = computedVisibleColumns.length;
|
|
6935
7001
|
if (activeCellIndex != null) {
|
|
6936
|
-
cssVars[activeCellColWidth] =
|
|
7002
|
+
cssVars[activeCellColWidth] = InternalVarUtils.columnWidths.get(
|
|
6937
7003
|
activeCellIndex[1]
|
|
6938
|
-
)
|
|
6939
|
-
const defaultActiveCellColOffset =
|
|
7004
|
+
);
|
|
7005
|
+
const defaultActiveCellColOffset = InternalVarUtils.columnOffsets.get(
|
|
6940
7006
|
activeCellIndex[1]
|
|
6941
|
-
)
|
|
7007
|
+
);
|
|
6942
7008
|
if (state.brain.isHorizontalLayoutBrain) {
|
|
6943
7009
|
const pageIndex = state.brain.getPageIndexForRow(activeCellIndex[0]);
|
|
6944
7010
|
cssVars[activeCellColOffset] = pageIndex ? `calc( ${ThemeVars.runtime.totalVisibleColumnsWidthVar} * ${pageIndex} + ${defaultActiveCellColOffset})` : defaultActiveCellColOffset;
|
|
@@ -6949,8 +7015,8 @@ function useDOMProps(initialDOMProps) {
|
|
|
6949
7015
|
cssVars[computedVisibleColumnsCountCSSVar] = computedVisibleColumns.length;
|
|
6950
7016
|
cssVars[scrollbarWidthHorizontal] = scrollbars.horizontal ? `${scrollbarWidth2}px` : "0px";
|
|
6951
7017
|
cssVars[scrollbarWidthVertical] = scrollbars.vertical ? `${scrollbarWidth2}px` : "0px";
|
|
6952
|
-
cssVars[pinnedStartWidthCSSVar] = `calc( ` + computedPinnedStartColumns.map((c) =>
|
|
6953
|
-
cssVars[pinnedEndWidthCSSVar] = `calc( ` + computedPinnedEndColumns.map((c) =>
|
|
7018
|
+
cssVars[pinnedStartWidthCSSVar] = `calc( ` + computedPinnedStartColumns.map((c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)).join(" + ") + ")";
|
|
7019
|
+
cssVars[pinnedEndWidthCSSVar] = `calc( ` + computedPinnedEndColumns.map((c) => InternalVarUtils.columnWidths.get(c.computedVisibleIndex)).join(" + ") + ")";
|
|
6954
7020
|
cssVars[baseZIndexForCells] = computedVisibleColumns.length * 10;
|
|
6955
7021
|
cssVars[pinnedEndOffsetCSSVar] = `calc( var(${bodyWidthCSSVar}) - var(${pinnedEndWidthCSSVar}) - var(${scrollbarWidthVertical}) )`;
|
|
6956
7022
|
cssVars[bodyWidthCSSVar] = `${bodySize.width}px`;
|
|
@@ -7008,6 +7074,7 @@ function useDOMProps(initialDOMProps) {
|
|
|
7008
7074
|
const className = join(
|
|
7009
7075
|
InfiniteTableClassName,
|
|
7010
7076
|
InfiniteCls,
|
|
7077
|
+
wrapRowsHorizontally ? `${InfiniteTableClassName}--horizontal-layout` : null,
|
|
7011
7078
|
domProps?.className,
|
|
7012
7079
|
computedPinnedStartColumnsWidth ? `${InfiniteTableClassName}--has-pinned-start ${InfiniteClsHasPinnedStart}` : null,
|
|
7013
7080
|
computedPinnedEndColumnsWidth ? `${InfiniteTableClassName}--has-pinned-end ${InfiniteClsHasPinnedEnd}` : null,
|
|
@@ -7018,6 +7085,7 @@ function useDOMProps(initialDOMProps) {
|
|
|
7018
7085
|
computed.computedPinnedStartOverflow ? `${InfiniteTableClassName}--has-pinned-start-overflow` : null,
|
|
7019
7086
|
computed.computedPinnedEndOverflow ? `${InfiniteTableClassName}--has-pinned-end-overflow` : null,
|
|
7020
7087
|
InfiniteClsRecipe({
|
|
7088
|
+
horizontalLayout: !!wrapRowsHorizontally,
|
|
7021
7089
|
hasPinnedStart: !!computedPinnedStartColumnsWidth,
|
|
7022
7090
|
hasPinnedEnd: !!computedPinnedEndColumnsWidth,
|
|
7023
7091
|
// hasPinnedStartOverflow: !!computed.computedPinnedStartOverflow,
|
|
@@ -7047,6 +7115,68 @@ function useDOMProps(initialDOMProps) {
|
|
|
7047
7115
|
// src/components/InfiniteTable/hooks/reorderColumnsOnDrag.ts
|
|
7048
7116
|
var import_binary_search2 = __toESM(require_binary_search());
|
|
7049
7117
|
|
|
7118
|
+
// src/components/InfiniteTable/utils/CSSCalc.ts
|
|
7119
|
+
function mapToContinuation(args) {
|
|
7120
|
+
return args.map(
|
|
7121
|
+
(arg) => arg instanceof CssContinuation ? arg : new CssContinuation(null, [arg])
|
|
7122
|
+
);
|
|
7123
|
+
}
|
|
7124
|
+
var CssContinuation = class {
|
|
7125
|
+
constructor(operation, operands = []) {
|
|
7126
|
+
this.__operands = [];
|
|
7127
|
+
this.__operation = null;
|
|
7128
|
+
this.__operands = operands;
|
|
7129
|
+
this.__operation = operation;
|
|
7130
|
+
}
|
|
7131
|
+
add(...args) {
|
|
7132
|
+
return new CssContinuation("+", [this, ...args]);
|
|
7133
|
+
}
|
|
7134
|
+
subtract(...args) {
|
|
7135
|
+
return new CssContinuation("-", [this, ...args]);
|
|
7136
|
+
}
|
|
7137
|
+
minus(...args) {
|
|
7138
|
+
return this.subtract(...args);
|
|
7139
|
+
}
|
|
7140
|
+
multiply(...args) {
|
|
7141
|
+
return new CssContinuation("*", [this, ...args]);
|
|
7142
|
+
}
|
|
7143
|
+
divide(...args) {
|
|
7144
|
+
return new CssContinuation("/", [this, ...args]);
|
|
7145
|
+
}
|
|
7146
|
+
__get(parent) {
|
|
7147
|
+
const { __operation, __operands } = this;
|
|
7148
|
+
const result = __operands.map((operand) => operandToString(operand, this)).join(` ${__operation} `);
|
|
7149
|
+
const skipParens = __operands.length <= 1 ? true : parent?.__operation === "+" || parent?.__operation === "-";
|
|
7150
|
+
return skipParens ? result : `(${result})`;
|
|
7151
|
+
}
|
|
7152
|
+
done() {
|
|
7153
|
+
const str = this.__get();
|
|
7154
|
+
const hasParens = str.startsWith("(") && str.endsWith(")");
|
|
7155
|
+
const value = hasParens ? str : `(${str})`;
|
|
7156
|
+
return `calc${value}`;
|
|
7157
|
+
}
|
|
7158
|
+
};
|
|
7159
|
+
function operandToString(operand, parent) {
|
|
7160
|
+
if (typeof operand === "string" || typeof operand === "number") {
|
|
7161
|
+
return `${operand}`;
|
|
7162
|
+
}
|
|
7163
|
+
if (!parent) {
|
|
7164
|
+
return operand.done();
|
|
7165
|
+
}
|
|
7166
|
+
return operand.__get(parent);
|
|
7167
|
+
}
|
|
7168
|
+
var add = (...args) => new CssContinuation("+", mapToContinuation(args));
|
|
7169
|
+
var subtract = (...args) => new CssContinuation("-", mapToContinuation(args));
|
|
7170
|
+
var multiply = (...args) => new CssContinuation("*", mapToContinuation(args));
|
|
7171
|
+
var divide = (...args) => new CssContinuation("/", mapToContinuation(args));
|
|
7172
|
+
var CSSCalc = {
|
|
7173
|
+
add,
|
|
7174
|
+
subtract,
|
|
7175
|
+
minus: subtract,
|
|
7176
|
+
multiply,
|
|
7177
|
+
divide
|
|
7178
|
+
};
|
|
7179
|
+
|
|
7050
7180
|
// src/components/InfiniteTable/utils/moveXatY.ts
|
|
7051
7181
|
var moveXatY = (arr, dragIndex, dropIndex) => {
|
|
7052
7182
|
arr = [...arr];
|
|
@@ -7147,8 +7277,6 @@ var PROXY_OFFSET = 10;
|
|
|
7147
7277
|
var pinnedStartWidthCSSVar2 = stripVar(InternalVars.pinnedStartWidth);
|
|
7148
7278
|
function reorderColumnsOnDrag(params) {
|
|
7149
7279
|
const {
|
|
7150
|
-
columnOffsetAtIndexCSSVar,
|
|
7151
|
-
columnWidthAtIndexCSSVar,
|
|
7152
7280
|
computedVisibleColumns,
|
|
7153
7281
|
computedVisibleColumnsMap,
|
|
7154
7282
|
computedPinnedEndColumns,
|
|
@@ -7160,7 +7288,9 @@ function reorderColumnsOnDrag(params) {
|
|
|
7160
7288
|
draggableColumnsRestrictTo,
|
|
7161
7289
|
tableRect,
|
|
7162
7290
|
setProxyPosition,
|
|
7163
|
-
api: imperativeApi
|
|
7291
|
+
api: imperativeApi,
|
|
7292
|
+
horizontalLayoutPageIndex,
|
|
7293
|
+
pageWidth
|
|
7164
7294
|
} = params;
|
|
7165
7295
|
function getCurrentPinnedWidth(pinned) {
|
|
7166
7296
|
let currentWidth = pinned === "start" ? pinnedStartInitialWidth : pinnedEndInitialWidth;
|
|
@@ -7176,27 +7306,32 @@ function reorderColumnsOnDrag(params) {
|
|
|
7176
7306
|
return currentWidth;
|
|
7177
7307
|
}
|
|
7178
7308
|
function isColumnVisible2(b) {
|
|
7179
|
-
if (b.
|
|
7309
|
+
if (b.columnIndex === dragColumnIndex) {
|
|
7310
|
+
return true;
|
|
7311
|
+
}
|
|
7312
|
+
if (horizontalLayoutPageIndex != null) {
|
|
7180
7313
|
return true;
|
|
7181
7314
|
}
|
|
7182
|
-
const col = computedVisibleColumns[b.
|
|
7315
|
+
const col = computedVisibleColumns[b.columnIndex];
|
|
7183
7316
|
if (col.computedPinned) {
|
|
7184
7317
|
return true;
|
|
7185
7318
|
}
|
|
7186
7319
|
const scrollLeft2 = brain.getScrollPosition().scrollLeft;
|
|
7187
|
-
|
|
7320
|
+
const colOffset = col.computedOffset + (horizontalLayoutPageIndex != null && pageWidth != null ? pageWidth * horizontalLayoutPageIndex : 0);
|
|
7321
|
+
const visible = colOffset >= scrollLeft2 + getCurrentPinnedWidth("start") && colOffset + col.computedWidth <= scrollLeft2 + tableRect.width - getCurrentPinnedWidth("end");
|
|
7322
|
+
return visible;
|
|
7188
7323
|
}
|
|
7189
7324
|
const getBreakPoints = (columns, options) => {
|
|
7190
7325
|
const { restrictToParentGroup, dragColumn: dragColumn2 } = options;
|
|
7191
7326
|
let breakpoints = [];
|
|
7192
7327
|
columns.forEach((c) => {
|
|
7328
|
+
if (c.computedVisibleIndex === dragColumnIndex) {
|
|
7329
|
+
return;
|
|
7330
|
+
}
|
|
7193
7331
|
const b = {
|
|
7194
7332
|
columnId: c.id,
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
// tableRect.left +
|
|
7198
|
-
c.computedOffset + Math.round(c.computedWidth / 2)
|
|
7199
|
-
)
|
|
7333
|
+
columnIndex: c.computedVisibleIndex,
|
|
7334
|
+
offsetX: c.computedOffset + Math.round(c.computedWidth / 2)
|
|
7200
7335
|
};
|
|
7201
7336
|
if (isColumnVisible2(b)) {
|
|
7202
7337
|
breakpoints.push(b);
|
|
@@ -7308,7 +7443,7 @@ function reorderColumnsOnDrag(params) {
|
|
|
7308
7443
|
}
|
|
7309
7444
|
}
|
|
7310
7445
|
function updateDropIndex(newDropIndex) {
|
|
7311
|
-
if (newDropIndex === currentDropIndex) {
|
|
7446
|
+
if (newDropIndex == null || newDropIndex === currentDropIndex) {
|
|
7312
7447
|
return;
|
|
7313
7448
|
}
|
|
7314
7449
|
currentDropIndex = newDropIndex;
|
|
@@ -7350,23 +7485,32 @@ function reorderColumnsOnDrag(params) {
|
|
|
7350
7485
|
newPosition = isDragColumn ? (
|
|
7351
7486
|
// this is the column we're dragging to the left
|
|
7352
7487
|
// so we place it exactly at the offset of the currentDropIndex
|
|
7353
|
-
|
|
7488
|
+
InternalVarUtils.columnOffsets.get(currentDropIndex)
|
|
7354
7489
|
) : isOutsideCol ? (
|
|
7355
7490
|
// this col should have the initial pos, so we're good
|
|
7356
|
-
|
|
7491
|
+
InternalVarUtils.columnOffsets.get(colIndex)
|
|
7357
7492
|
) : (
|
|
7358
7493
|
// place it at the default offset + the width of the drag column
|
|
7359
7494
|
// as these are columns situated between the dragindex and the dropindex
|
|
7360
|
-
|
|
7495
|
+
CSSCalc.add(
|
|
7496
|
+
InternalVarUtils.columnOffsets.get(colIndex),
|
|
7497
|
+
InternalVarUtils.columnWidths.get(dragColumnIndex)
|
|
7498
|
+
).done()
|
|
7361
7499
|
);
|
|
7362
7500
|
} else {
|
|
7363
7501
|
newPosition = isOutsideCol ? (
|
|
7364
7502
|
// this is the default value for a column
|
|
7365
|
-
|
|
7503
|
+
InternalVarUtils.columnOffsets.get(colIndex)
|
|
7366
7504
|
) : isDragColumn ? (
|
|
7367
7505
|
// this is the column we're dragging to the right
|
|
7368
|
-
|
|
7369
|
-
|
|
7506
|
+
CSSCalc.add(
|
|
7507
|
+
InternalVarUtils.columnOffsets.get(currentDropIndex - 1),
|
|
7508
|
+
InternalVarUtils.columnWidths.get(currentDropIndex - 1)
|
|
7509
|
+
).minus(InternalVarUtils.columnWidths.get(dragColumnIndex)).done()
|
|
7510
|
+
) : CSSCalc.minus(
|
|
7511
|
+
InternalVarUtils.columnOffsets.get(colIndex),
|
|
7512
|
+
InternalVarUtils.columnWidths.get(dragColumnIndex)
|
|
7513
|
+
).done();
|
|
7370
7514
|
}
|
|
7371
7515
|
setInfiniteColumnOffsetWhileReordering(
|
|
7372
7516
|
colIndex,
|
|
@@ -7406,20 +7550,25 @@ function reorderColumnsOnDrag(params) {
|
|
|
7406
7550
|
let idx = (0, import_binary_search2.default)(
|
|
7407
7551
|
breakpoints,
|
|
7408
7552
|
currentPos,
|
|
7409
|
-
({
|
|
7410
|
-
return
|
|
7553
|
+
({ offsetX }, value) => {
|
|
7554
|
+
return offsetX < value ? -1 : offsetX > value ? 1 : 0;
|
|
7411
7555
|
}
|
|
7412
7556
|
);
|
|
7413
7557
|
if (idx < 0) {
|
|
7414
7558
|
idx = ~idx;
|
|
7415
7559
|
}
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
idx = dragColumnIndex;
|
|
7560
|
+
if (!breakpoints.length) {
|
|
7561
|
+
if (computedVisibleColumns.length > 1) {
|
|
7562
|
+
console.error("No breakpoints available, something is wrong!");
|
|
7420
7563
|
}
|
|
7421
|
-
|
|
7564
|
+
idx = 0;
|
|
7565
|
+
} else {
|
|
7566
|
+
idx = breakpoints[idx] ? breakpoints[idx].columnIndex : breakpoints[breakpoints.length - 1].columnIndex + 1;
|
|
7567
|
+
}
|
|
7568
|
+
if (idx === dragColumnIndex + 1) {
|
|
7569
|
+
idx = dragColumnIndex;
|
|
7422
7570
|
}
|
|
7571
|
+
updateDropIndex(idx);
|
|
7423
7572
|
const columnPinning = {};
|
|
7424
7573
|
computedPinnedEndColumns.forEach((col) => {
|
|
7425
7574
|
columnPinning[col.id] = "end";
|
|
@@ -7516,8 +7665,6 @@ function adjustColumnOrderForAllColumns(options) {
|
|
|
7516
7665
|
}
|
|
7517
7666
|
|
|
7518
7667
|
// src/components/InfiniteTable/hooks/useColumnPointerEvents.ts
|
|
7519
|
-
var columnOffsetAtIndex4 = stripVar(InternalVars.columnOffsetAtIndex);
|
|
7520
|
-
var columnWidthAtIndex3 = stripVar(InternalVars.columnWidthAtIndex);
|
|
7521
7668
|
var baseZIndexForCells2 = stripVar(InternalVars.baseZIndexForCells);
|
|
7522
7669
|
var equalPinning = (pinning1, pinning2) => {
|
|
7523
7670
|
const empty1 = !pinning1 || Object.keys(pinning1).length === 0;
|
|
@@ -7532,7 +7679,8 @@ var equalPinning = (pinning1, pinning2) => {
|
|
|
7532
7679
|
};
|
|
7533
7680
|
var useColumnPointerEvents = ({
|
|
7534
7681
|
columnId,
|
|
7535
|
-
domRef
|
|
7682
|
+
domRef,
|
|
7683
|
+
horizontalLayoutPageIndex
|
|
7536
7684
|
}) => {
|
|
7537
7685
|
const [proxyPosition, setProxyPosition] = useState7(null);
|
|
7538
7686
|
const {
|
|
@@ -7576,13 +7724,20 @@ var useColumnPointerEvents = ({
|
|
|
7576
7724
|
const tableRect = rootRef.current.getBoundingClientRect();
|
|
7577
7725
|
const initialAvailableSize = brain.getAvailableSize();
|
|
7578
7726
|
const dragColumnIndex = dragColumn.computedVisibleIndex;
|
|
7727
|
+
const dragColumnIndexInHorizontalLayout = brain.getVirtualColIndex(
|
|
7728
|
+
dragColumn.computedVisibleIndex,
|
|
7729
|
+
{
|
|
7730
|
+
pageIndex: horizontalLayoutPageIndex || 0
|
|
7731
|
+
}
|
|
7732
|
+
);
|
|
7733
|
+
const pageWidth = brain.isHorizontalLayoutBrain ? brain.getPageWidth() : null;
|
|
7579
7734
|
let initialCursor = target.style.cursor ?? "auto";
|
|
7580
7735
|
let didDragAtLeastOnce = false;
|
|
7581
7736
|
const dragger = reorderColumnsOnDrag({
|
|
7582
7737
|
brain,
|
|
7738
|
+
horizontalLayoutPageIndex,
|
|
7739
|
+
pageWidth,
|
|
7583
7740
|
draggableColumnsRestrictTo,
|
|
7584
|
-
columnOffsetAtIndexCSSVar: columnOffsetAtIndex4,
|
|
7585
|
-
columnWidthAtIndexCSSVar: columnWidthAtIndex3,
|
|
7586
7741
|
computedPinnedEndColumns,
|
|
7587
7742
|
computedPinnedStartColumns,
|
|
7588
7743
|
computedUnpinnedColumns,
|
|
@@ -7600,6 +7755,8 @@ var useColumnPointerEvents = ({
|
|
|
7600
7755
|
}
|
|
7601
7756
|
});
|
|
7602
7757
|
let reorderDragResult = null;
|
|
7758
|
+
let discardAlwaysRenderedColumn;
|
|
7759
|
+
let restoreRenderRange;
|
|
7603
7760
|
function persistColumnOrder(reorderDragResult2) {
|
|
7604
7761
|
const { columnPinning, columnOrder } = reorderDragResult2;
|
|
7605
7762
|
if (!equalPinning(getState().columnPinning, columnPinning)) {
|
|
@@ -7628,15 +7785,35 @@ var useColumnPointerEvents = ({
|
|
|
7628
7785
|
const { headerBrain, brain: brain2 } = getState();
|
|
7629
7786
|
if (!didDragAtLeastOnce) {
|
|
7630
7787
|
didDragAtLeastOnce = true;
|
|
7631
|
-
brain2.
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7788
|
+
const discardForBody = brain2.keepColumnRendered(
|
|
7789
|
+
dragColumnIndexInHorizontalLayout
|
|
7790
|
+
);
|
|
7791
|
+
const discardForHeader = headerBrain.keepColumnRendered(
|
|
7792
|
+
dragColumnIndexInHorizontalLayout
|
|
7793
|
+
);
|
|
7794
|
+
if (brain2.isHorizontalLayoutBrain) {
|
|
7795
|
+
const extendBy = true;
|
|
7796
|
+
const restoreBodyRange = brain2.extendRenderRange({
|
|
7797
|
+
left: extendBy,
|
|
7798
|
+
right: extendBy
|
|
7799
|
+
});
|
|
7800
|
+
const restoreHeaderRange = headerBrain.extendRenderRange({
|
|
7801
|
+
left: extendBy,
|
|
7802
|
+
right: extendBy
|
|
7803
|
+
});
|
|
7804
|
+
restoreRenderRange = () => {
|
|
7805
|
+
restoreBodyRange();
|
|
7806
|
+
restoreHeaderRange();
|
|
7807
|
+
};
|
|
7808
|
+
}
|
|
7809
|
+
discardAlwaysRenderedColumn = () => {
|
|
7810
|
+
discardForBody();
|
|
7811
|
+
discardForHeader();
|
|
7812
|
+
};
|
|
7639
7813
|
actions.columnReorderDragColumnId = dragColumn.id;
|
|
7814
|
+
if (horizontalLayoutPageIndex != null) {
|
|
7815
|
+
actions.columnReorderInPageIndex = horizontalLayoutPageIndex;
|
|
7816
|
+
}
|
|
7640
7817
|
setInfiniteColumnZIndex(
|
|
7641
7818
|
dragColumnIndex,
|
|
7642
7819
|
`calc( var(${baseZIndexForCells2}) + 10000 )`,
|
|
@@ -7655,6 +7832,8 @@ var useColumnPointerEvents = ({
|
|
|
7655
7832
|
brain.update({
|
|
7656
7833
|
...initialAvailableSize
|
|
7657
7834
|
});
|
|
7835
|
+
discardAlwaysRenderedColumn?.();
|
|
7836
|
+
restoreRenderRange?.();
|
|
7658
7837
|
computedVisibleColumns.forEach((col) => {
|
|
7659
7838
|
clearInfiniteColumnReorderDuration(
|
|
7660
7839
|
col.computedVisibleIndex,
|
|
@@ -7689,12 +7868,15 @@ var useColumnPointerEvents = ({
|
|
|
7689
7868
|
persistColumnOrder(reorderDragResult);
|
|
7690
7869
|
}
|
|
7691
7870
|
actions.columnReorderDragColumnId = false;
|
|
7871
|
+
if (horizontalLayoutPageIndex != null) {
|
|
7872
|
+
actions.columnReorderInPageIndex = null;
|
|
7873
|
+
}
|
|
7692
7874
|
};
|
|
7693
7875
|
target.addEventListener("pointermove", onPointerMove);
|
|
7694
7876
|
target.addEventListener("pointerup", onPointerUp);
|
|
7695
7877
|
target.setPointerCapture(e.pointerId);
|
|
7696
7878
|
},
|
|
7697
|
-
[columnId]
|
|
7879
|
+
[columnId, horizontalLayoutPageIndex]
|
|
7698
7880
|
);
|
|
7699
7881
|
return {
|
|
7700
7882
|
onPointerDown: computed.computedVisibleColumnsMap.get(columnId)?.computedDraggable ? onPointerDown : defaultPointerDown,
|
|
@@ -8004,7 +8186,7 @@ function objectValuesExcept(obj, exceptList) {
|
|
|
8004
8186
|
|
|
8005
8187
|
// src/components/InfiniteTable/components/cell.css.ts
|
|
8006
8188
|
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";
|
|
8007
|
-
var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2am", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2an", true: "cell_ColumnCellRecipe_dragging_true__1eexc2ao" }, cellSelected: { false: "
|
|
8189
|
+
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"]] });
|
|
8008
8190
|
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: [] });
|
|
8009
8191
|
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: [] });
|
|
8010
8192
|
var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
|
|
@@ -8397,7 +8579,7 @@ import * as React34 from "react";
|
|
|
8397
8579
|
var { rootClassName: rootClassName5 } = internalProps;
|
|
8398
8580
|
var InfiniteTableCellClassName = `${rootClassName5}Cell`;
|
|
8399
8581
|
var InfiniteTableCellContentClassName = `${rootClassName5}Cell_content`;
|
|
8400
|
-
var
|
|
8582
|
+
var columnWidthAtIndex3 = stripVar(InternalVars.columnWidthAtIndex);
|
|
8401
8583
|
var columnReorderEffectDurationAtIndex2 = stripVar(
|
|
8402
8584
|
InternalVars.columnReorderEffectDurationAtIndex
|
|
8403
8585
|
);
|
|
@@ -8422,7 +8604,7 @@ function InfiniteTableCellFn(props) {
|
|
|
8422
8604
|
} = props;
|
|
8423
8605
|
const children = renderChildren();
|
|
8424
8606
|
const style2 = {
|
|
8425
|
-
width: `var(${
|
|
8607
|
+
width: `var(${columnWidthAtIndex3}-${column.computedVisibleIndex})`,
|
|
8426
8608
|
transition: `transform var(${columnReorderEffectDurationAtIndex2}-${column.computedVisibleIndex}, 0s)`,
|
|
8427
8609
|
...domProps.style
|
|
8428
8610
|
};
|
|
@@ -8612,7 +8794,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
8612
8794
|
api: dataSourceApi,
|
|
8613
8795
|
componentActions: dataSourceActions
|
|
8614
8796
|
} = useDataSourceContextValue();
|
|
8615
|
-
const { activeRowIndex, keyboardNavigation } = getState();
|
|
8797
|
+
const { activeRowIndex, keyboardNavigation, columnReorderInPageIndex } = getState();
|
|
8616
8798
|
const rowActive = rowIndex === activeRowIndex && keyboardNavigation === "row";
|
|
8617
8799
|
const renderingContext = {
|
|
8618
8800
|
getState,
|
|
@@ -8936,6 +9118,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
8936
9118
|
right: rightSelectionBorder,
|
|
8937
9119
|
bottom: bottomSelectionBorder
|
|
8938
9120
|
} : null;
|
|
9121
|
+
const insideDisabledDraggingPage = columnReorderInPageIndex != null ? horizontalLayoutPageIndex !== columnReorderInPageIndex : false;
|
|
8939
9122
|
const afterChildren = editor;
|
|
8940
9123
|
const theChildren = renderChildren();
|
|
8941
9124
|
const cellProps = {
|
|
@@ -8960,6 +9143,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
8960
9143
|
ColumnCellRecipe,
|
|
8961
9144
|
{
|
|
8962
9145
|
dragging: false,
|
|
9146
|
+
insideDisabledDraggingPage,
|
|
8963
9147
|
zebra,
|
|
8964
9148
|
align: align2,
|
|
8965
9149
|
verticalAlign,
|
|
@@ -9223,7 +9407,7 @@ function getColumnResizer(colIndex, {
|
|
|
9223
9407
|
const column = columns[colIndex];
|
|
9224
9408
|
return {
|
|
9225
9409
|
resize(diff) {
|
|
9226
|
-
|
|
9410
|
+
InternalVarUtils.columnWidths.set(
|
|
9227
9411
|
colIndex,
|
|
9228
9412
|
column.computedWidth + diff,
|
|
9229
9413
|
domRef.current
|
|
@@ -9234,7 +9418,7 @@ function getColumnResizer(colIndex, {
|
|
|
9234
9418
|
if (!nextColumn) {
|
|
9235
9419
|
return;
|
|
9236
9420
|
}
|
|
9237
|
-
|
|
9421
|
+
InternalVarUtils.columnWidths.set(
|
|
9238
9422
|
nextColIndex,
|
|
9239
9423
|
nextColumn.computedWidth - diff,
|
|
9240
9424
|
domRef.current
|
|
@@ -9242,7 +9426,7 @@ function getColumnResizer(colIndex, {
|
|
|
9242
9426
|
if (nextColumn.computedPinned === "start") {
|
|
9243
9427
|
addToInfiniteColumnOffset(nextColumn, diff, domRef.current);
|
|
9244
9428
|
} else {
|
|
9245
|
-
|
|
9429
|
+
InternalVarUtils.columnOffsets.set(
|
|
9246
9430
|
nextColIndex,
|
|
9247
9431
|
nextColumn.computedOffset + diff,
|
|
9248
9432
|
domRef.current
|
|
@@ -9263,7 +9447,11 @@ function getColumnResizer(colIndex, {
|
|
|
9263
9447
|
if (col.computedPinned === "end") {
|
|
9264
9448
|
continue;
|
|
9265
9449
|
}
|
|
9266
|
-
|
|
9450
|
+
InternalVarUtils.columnOffsets.set(
|
|
9451
|
+
i,
|
|
9452
|
+
col.computedOffset + diff,
|
|
9453
|
+
domRef.current
|
|
9454
|
+
);
|
|
9267
9455
|
}
|
|
9268
9456
|
return;
|
|
9269
9457
|
}
|
|
@@ -9272,7 +9460,11 @@ function getColumnResizer(colIndex, {
|
|
|
9272
9460
|
if (col.computedPinned) {
|
|
9273
9461
|
continue;
|
|
9274
9462
|
}
|
|
9275
|
-
|
|
9463
|
+
InternalVarUtils.columnOffsets.set(
|
|
9464
|
+
i,
|
|
9465
|
+
col.computedOffset + diff,
|
|
9466
|
+
domRef.current
|
|
9467
|
+
);
|
|
9276
9468
|
}
|
|
9277
9469
|
}
|
|
9278
9470
|
};
|
|
@@ -9300,12 +9492,12 @@ function getColumnGroupResizer(colIndexes, config) {
|
|
|
9300
9492
|
const colIndex = colIndexes[i];
|
|
9301
9493
|
const column = columns[colIndex];
|
|
9302
9494
|
const newWidth = column.computedWidth + diff;
|
|
9303
|
-
|
|
9495
|
+
InternalVarUtils.columnWidths.set(colIndex, newWidth, node);
|
|
9304
9496
|
if (column.computedPinned === "end") {
|
|
9305
9497
|
return;
|
|
9306
9498
|
}
|
|
9307
9499
|
if (offset) {
|
|
9308
|
-
|
|
9500
|
+
InternalVarUtils.columnOffsets.set(colIndex, offset, node);
|
|
9309
9501
|
}
|
|
9310
9502
|
offset += newWidth;
|
|
9311
9503
|
});
|
|
@@ -9317,7 +9509,11 @@ function getColumnGroupResizer(colIndexes, config) {
|
|
|
9317
9509
|
if (col.computedPinned === "end") {
|
|
9318
9510
|
continue;
|
|
9319
9511
|
}
|
|
9320
|
-
|
|
9512
|
+
InternalVarUtils.columnOffsets.set(
|
|
9513
|
+
i,
|
|
9514
|
+
col.computedOffset + diffSum,
|
|
9515
|
+
node
|
|
9516
|
+
);
|
|
9321
9517
|
}
|
|
9322
9518
|
}
|
|
9323
9519
|
};
|
|
@@ -9572,7 +9768,8 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9572
9768
|
portalDOMRef,
|
|
9573
9769
|
columnHeaderHeight,
|
|
9574
9770
|
columnReorderDragColumnId,
|
|
9575
|
-
columnMenuVisibleForColumnId
|
|
9771
|
+
columnMenuVisibleForColumnId,
|
|
9772
|
+
columnReorderInPageIndex
|
|
9576
9773
|
},
|
|
9577
9774
|
getDataSourceMasterContext
|
|
9578
9775
|
} = useInfiniteTable();
|
|
@@ -9583,7 +9780,9 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9583
9780
|
componentState: { filterDelay, filterTypes }
|
|
9584
9781
|
} = useDataSourceContextValue();
|
|
9585
9782
|
const { allRowsSelected, someRowsSelected, selectionMode } = useDataSourceState();
|
|
9783
|
+
const horizontalLayoutPageIndex = props.horizontalLayoutPageIndex;
|
|
9586
9784
|
const dragging = columnReorderDragColumnId === column.id;
|
|
9785
|
+
const insideDisabledDraggingPage = columnReorderInPageIndex != null ? horizontalLayoutPageIndex !== columnReorderInPageIndex : false;
|
|
9587
9786
|
const { onResize, height, width, headerOptions, columnsMap } = props;
|
|
9588
9787
|
const sortInfo = column.computedSortInfo;
|
|
9589
9788
|
const header = column.header;
|
|
@@ -9648,7 +9847,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9648
9847
|
const MenuIconCmp = column.components?.MenuIcon || components2?.MenuIcon || MenuIcon;
|
|
9649
9848
|
const menuIcon = /* @__PURE__ */ React42.createElement(MenuIconCmp, { ...menuIconProps });
|
|
9650
9849
|
const initialRenderParam = {
|
|
9651
|
-
horizontalLayoutPageIndex
|
|
9850
|
+
horizontalLayoutPageIndex,
|
|
9652
9851
|
dragging,
|
|
9653
9852
|
domRef: ref,
|
|
9654
9853
|
insideColumnMenu: false,
|
|
@@ -9812,7 +10011,8 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9812
10011
|
const headerClassName = typeof column.headerClassName === "function" ? column.headerClassName(renderParam) : column.headerClassName;
|
|
9813
10012
|
const { onPointerDown, proxyPosition } = useColumnPointerEvents({
|
|
9814
10013
|
columnId: column.id,
|
|
9815
|
-
domRef
|
|
10014
|
+
domRef,
|
|
10015
|
+
horizontalLayoutPageIndex
|
|
9816
10016
|
});
|
|
9817
10017
|
let draggingProxy = null;
|
|
9818
10018
|
if (dragging && proxyPosition) {
|
|
@@ -9856,7 +10056,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9856
10056
|
const FilterEditor = operator?.components?.FilterEditor || filterType?.components?.FilterEditor || column.components?.FilterEditor || StringFilterEditor;
|
|
9857
10057
|
const FilterOperatorSwitch = filterType?.components?.FilterOperatorSwitch || column.components?.FilterOperatorSwitch;
|
|
9858
10058
|
const resizeHandle = useColumnResizeHandle(column, {
|
|
9859
|
-
horizontalLayoutPageIndex
|
|
10059
|
+
horizontalLayoutPageIndex
|
|
9860
10060
|
});
|
|
9861
10061
|
const zIndex2 = `var(${columnZIndexAtIndex5}-${column.computedVisibleIndex})`;
|
|
9862
10062
|
style2.zIndex = zIndex2;
|
|
@@ -9896,6 +10096,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9896
10096
|
HeaderCellRecipe,
|
|
9897
10097
|
{
|
|
9898
10098
|
dragging,
|
|
10099
|
+
insideDisabledDraggingPage,
|
|
9899
10100
|
align: align2,
|
|
9900
10101
|
verticalAlign,
|
|
9901
10102
|
rowSelected: false,
|
|
@@ -9916,7 +10117,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9916
10117
|
afterChildren: /* @__PURE__ */ React42.createElement(React42.Fragment, null, showColumnFilters ? column.computedFilterable ? /* @__PURE__ */ React42.createElement(
|
|
9917
10118
|
InfiniteTableColumnHeaderFilter,
|
|
9918
10119
|
{
|
|
9919
|
-
horizontalLayoutPageIndex
|
|
10120
|
+
horizontalLayoutPageIndex,
|
|
9920
10121
|
filterEditor: FilterEditor,
|
|
9921
10122
|
filterOperatorSwitch: FilterOperatorSwitch ?? InfiniteTableFilterOperatorSwitch,
|
|
9922
10123
|
operator,
|
|
@@ -10234,7 +10435,7 @@ function useColumnGroupResizeHandle(groupColumns, config) {
|
|
|
10234
10435
|
|
|
10235
10436
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
|
|
10236
10437
|
var TableHeaderGroupClassName = `${rootClassName2}HeaderGroup`;
|
|
10237
|
-
var
|
|
10438
|
+
var columnWidthAtIndex4 = stripVar(InternalVars.columnWidthAtIndex);
|
|
10238
10439
|
var columnZIndexAtIndex6 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
10239
10440
|
function InfiniteTableHeaderGroup(props) {
|
|
10240
10441
|
const { columnGroup, height, columns, bodyBrain, columnGroupsMaxDepth } = props;
|
|
@@ -10253,8 +10454,8 @@ function InfiniteTableHeaderGroup(props) {
|
|
|
10253
10454
|
});
|
|
10254
10455
|
const firstColumn = columns[0];
|
|
10255
10456
|
const width = columns.length > 1 ? `calc( ` + columns.map(
|
|
10256
|
-
(col) => `var(${
|
|
10257
|
-
).join(" + ") + " )" : `var(${
|
|
10457
|
+
(col) => `var(${columnWidthAtIndex4}-${col.computedVisibleIndex})`
|
|
10458
|
+
).join(" + ") + " )" : `var(${columnWidthAtIndex4}-${firstColumn.computedVisibleIndex})`;
|
|
10258
10459
|
const zIndex2 = `calc(var(${columnZIndexAtIndex6}-${firstColumn.computedVisibleIndex}) + ${columnGroupsMaxDepth - columnGroup.depth})`;
|
|
10259
10460
|
let style2 = typeof userStyle === "function" ? userStyle({
|
|
10260
10461
|
columnGroup,
|
|
@@ -10610,7 +10811,7 @@ var InfiniteTableLicenseFooter = React48.forwardRef(
|
|
|
10610
10811
|
}, []);
|
|
10611
10812
|
useEffect17(() => {
|
|
10612
10813
|
const forceStyle = () => {
|
|
10613
|
-
|
|
10814
|
+
setTimeout(() => {
|
|
10614
10815
|
enforceStyle(domRef.current, defaultStyle);
|
|
10615
10816
|
enforceStyle(
|
|
10616
10817
|
domRef.current?.firstElementChild,
|
|
@@ -13683,12 +13884,12 @@ var DataSourceApiImpl = class {
|
|
|
13683
13884
|
});
|
|
13684
13885
|
const delay = Math.max(0, this.getState().batchOperationDelay ?? 0);
|
|
13685
13886
|
if (delay === 0) {
|
|
13686
|
-
this.batchOperationRafId =
|
|
13887
|
+
this.batchOperationRafId = setTimeout(() => {
|
|
13687
13888
|
this.commit();
|
|
13688
13889
|
});
|
|
13689
13890
|
} else {
|
|
13690
13891
|
this.batchOperationTimeoutId = setTimeout(() => {
|
|
13691
|
-
this.batchOperationRafId =
|
|
13892
|
+
this.batchOperationRafId = setTimeout(() => {
|
|
13692
13893
|
this.commit();
|
|
13693
13894
|
});
|
|
13694
13895
|
}, delay);
|
|
@@ -17005,6 +17206,17 @@ var InfiniteTableApiImpl = class {
|
|
|
17005
17206
|
setColumnVisibility(columnVisibility) {
|
|
17006
17207
|
this.actions.columnVisibility = columnVisibility;
|
|
17007
17208
|
}
|
|
17209
|
+
get scrollContainer() {
|
|
17210
|
+
return this.getState().scrollerDOMRef.current;
|
|
17211
|
+
}
|
|
17212
|
+
get scrollLeftMax() {
|
|
17213
|
+
const scrollLeftMax = this.getState().brain.scrollLeftMax;
|
|
17214
|
+
return scrollLeftMax;
|
|
17215
|
+
}
|
|
17216
|
+
get scrollTopMax() {
|
|
17217
|
+
const scrollTopMax = this.getState().brain.scrollTopMax;
|
|
17218
|
+
return scrollTopMax;
|
|
17219
|
+
}
|
|
17008
17220
|
get scrollLeft() {
|
|
17009
17221
|
const state = this.getState();
|
|
17010
17222
|
return state.brain.getScrollPosition().scrollLeft;
|
|
@@ -18166,6 +18378,9 @@ var HorizontalLayoutMatrixBrain = class extends MatrixBrain {
|
|
|
18166
18378
|
}
|
|
18167
18379
|
this._totalPageCount = value;
|
|
18168
18380
|
}
|
|
18381
|
+
getPageWidth() {
|
|
18382
|
+
return this.pageWidth;
|
|
18383
|
+
}
|
|
18169
18384
|
doUpdateRenderCount(which = ALL_DIRECTIONS) {
|
|
18170
18385
|
const rowHeight = this.getInitialRowHeight();
|
|
18171
18386
|
let pageWidth = 0;
|
|
@@ -18318,6 +18533,7 @@ function initSetupState2({
|
|
|
18318
18533
|
scrollLeft: 0
|
|
18319
18534
|
},
|
|
18320
18535
|
columnReorderDragColumnId: false,
|
|
18536
|
+
columnReorderInPageIndex: null,
|
|
18321
18537
|
ready: false,
|
|
18322
18538
|
focused: false,
|
|
18323
18539
|
focusedWithin: false,
|
|
@@ -19742,7 +19958,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19742
19958
|
}
|
|
19743
19959
|
let valid2 = isValidLicense(licenseKey, {
|
|
19744
19960
|
publishedAt: 1624970570587,
|
|
19745
|
-
version: "5.
|
|
19961
|
+
version: "5.1.0-canary.0"
|
|
19746
19962
|
});
|
|
19747
19963
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19748
19964
|
return true;
|
|
@@ -23404,17 +23620,17 @@ function HScrollSyncContent(props) {
|
|
|
23404
23620
|
}
|
|
23405
23621
|
|
|
23406
23622
|
// src/components/InfiniteTable/hooks/useVisibleColumnSizes.ts
|
|
23407
|
-
var
|
|
23408
|
-
var
|
|
23623
|
+
var columnWidthAtIndex5 = stripVar(InternalVars.columnWidthAtIndex);
|
|
23624
|
+
var columnOffsetAtIndex3 = stripVar(InternalVars.columnOffsetAtIndex);
|
|
23409
23625
|
function useVisibleColumnSizes() {
|
|
23410
23626
|
const context = useInfiniteTable();
|
|
23411
23627
|
return context.computed.computedVisibleColumns.map((column) => {
|
|
23412
23628
|
return {
|
|
23413
23629
|
id: column.id,
|
|
23414
23630
|
width: column.computedWidth,
|
|
23415
|
-
cssVarForWidth: `var(${
|
|
23631
|
+
cssVarForWidth: `var(${columnWidthAtIndex5}-${column.computedVisibleIndex})`,
|
|
23416
23632
|
offset: column.computedOffset,
|
|
23417
|
-
cssVarForOffset: `var(${
|
|
23633
|
+
cssVarForOffset: `var(${columnOffsetAtIndex3}-${column.computedVisibleIndex})`,
|
|
23418
23634
|
pinned: column.computedPinned
|
|
23419
23635
|
};
|
|
23420
23636
|
});
|