@infinite-table/infinite-react 5.0.0-canary.3 → 5.0.0-canary.4
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 +89 -30
- package/index.d.ts +25 -2
- package/index.dev.js +191 -6
- package/index.dev.mjs +186 -6
- package/index.js +191 -6
- package/index.mjs +186 -6
- package/package.json +2 -2
package/index.dev.mjs
CHANGED
|
@@ -1323,7 +1323,7 @@ function buildSubscriptionCallback(withRaf = false) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
// src/components/InfiniteTable/vars.css.ts
|
|
1326
|
-
var ThemeVars = { color: { accent: "var(--infinite-accent-color)", error: "var(--infinite-error-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", background: "var(--infinite-background)", iconSize: "var(--infinite-icon-size)", 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: { 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)" } } };
|
|
1326
|
+
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)" } } };
|
|
1327
1327
|
var columnHeaderHeightName = "column-header-height";
|
|
1328
1328
|
|
|
1329
1329
|
// src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx
|
|
@@ -1364,7 +1364,7 @@ function stripVar(cssVariableWithVarString) {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
1366
|
// src/components/InfiniteTable/internalVars.css.ts
|
|
1367
|
-
var InternalVars = { currentColumnTransformX: "var(--currentColumnTransformX__16hkbkc0)", y: "var(--y__16hkbkc1)", activeCellRowOffset: "var(--
|
|
1367
|
+
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)" };
|
|
1368
1368
|
|
|
1369
1369
|
// src/utils/selectParent.ts
|
|
1370
1370
|
function selectParent(el, selector2) {
|
|
@@ -8086,8 +8086,9 @@ function objectValuesExcept(obj, exceptList) {
|
|
|
8086
8086
|
|
|
8087
8087
|
// src/components/InfiniteTable/components/cell.css.ts
|
|
8088
8088
|
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";
|
|
8089
|
-
var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "
|
|
8090
|
-
var ColumnCellSelectionIndicatorRecipe = createRuntimeFn({ defaultClassName: "
|
|
8089
|
+
var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2am", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2an", true: "cell_ColumnCellRecipe_dragging_true__1eexc2ao" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ap", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2aq" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2ar", end: "cell_ColumnCellRecipe_align_end__1eexc2as", center: "cell_ColumnCellRecipe_align_center__1eexc2at" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2au", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2av", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2aw" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2ax", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2ay" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2az", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2a10" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2a11", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2a12" }, rowDisabled: { false: "cell_ColumnCellRecipe_rowDisabled_false__1eexc2a13", true: "cell_ColumnCellRecipe_rowDisabled_true__1eexc2a14" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2a15", even: "cell_ColumnCellRecipe_zebra_even__1eexc2a16", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a17" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a18", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a19", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a1a" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a1b", false: "cell_ColumnCellRecipe_first_false__1eexc2a1c" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a1d", false: "cell_ColumnCellRecipe_last_false__1eexc2a1e" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a1f", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a1g" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1h", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1i" }, firstRow: { true: "cell_ColumnCellRecipe_firstRow_true__1eexc2a1j", false: "cell_ColumnCellRecipe_firstRow_false__1eexc2a1k" }, firstRowInHorizontalLayoutPage: { true: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_true__1eexc2a1l", false: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_false__1eexc2a1m" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1n", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1o" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1p", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1q", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1r" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1s", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1t" } }, defaultVariants: {}, compoundVariants: [[{ firstRowInHorizontalLayoutPage: true, firstRow: false }, "cell_ColumnCellRecipe_compound_0__1eexc2a1u"], [{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1v"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1w"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1x"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_4__1eexc2a1y"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_5__1eexc2a1z"], [{ rowDisabled: true, zebra: "odd" }, "cell_ColumnCellRecipe_compound_6__1eexc2a20"]] });
|
|
8090
|
+
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: [] });
|
|
8091
|
+
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: [] });
|
|
8091
8092
|
var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
|
|
8092
8093
|
|
|
8093
8094
|
// src/components/InfiniteTable/components/CheckBox.tsx
|
|
@@ -18376,6 +18377,8 @@ function initSetupState2({
|
|
|
18376
18377
|
cellContextMenu: buildSubscriptionCallback(),
|
|
18377
18378
|
contextMenu: buildSubscriptionCallback(),
|
|
18378
18379
|
onFilterOperatorMenuClick: buildSubscriptionCallback(),
|
|
18380
|
+
flashingDurationCSSVarValue: null,
|
|
18381
|
+
onFlashingDurationCSSVarChange: buildSubscriptionCallback(),
|
|
18379
18382
|
onRowHeightCSSVarChange: buildSubscriptionCallback(),
|
|
18380
18383
|
onRowDetailHeightCSSVarChange: buildSubscriptionCallback(),
|
|
18381
18384
|
onColumnHeaderHeightCSSVarChange: buildSubscriptionCallback(),
|
|
@@ -18529,6 +18532,7 @@ var cleanupState = (state) => {
|
|
|
18529
18532
|
state.headerBrain.destroy();
|
|
18530
18533
|
state.renderer.destroy();
|
|
18531
18534
|
state.onRenderUpdater.destroy();
|
|
18535
|
+
state.onFlashingDurationCSSVarChange.destroy();
|
|
18532
18536
|
state.onRowHeightCSSVarChange.destroy();
|
|
18533
18537
|
state.onColumnHeaderHeightCSSVarChange.destroy();
|
|
18534
18538
|
state.onColumnMenuClick.destroy();
|
|
@@ -19485,6 +19489,14 @@ function useComputed() {
|
|
|
19485
19489
|
componentActions.rowHeight = rowHeight2;
|
|
19486
19490
|
}
|
|
19487
19491
|
});
|
|
19492
|
+
componentState.onFlashingDurationCSSVarChange.onChange(
|
|
19493
|
+
(flashingDuration) => {
|
|
19494
|
+
const num = flashingDuration ? flashingDuration * 1 : null;
|
|
19495
|
+
if (num != null && !isNaN(num)) {
|
|
19496
|
+
componentActions.flashingDurationCSSVarValue = num;
|
|
19497
|
+
}
|
|
19498
|
+
}
|
|
19499
|
+
);
|
|
19488
19500
|
componentState.onRowDetailHeightCSSVarChange.onChange((rowDetailHeight2) => {
|
|
19489
19501
|
if (rowDetailHeight2) {
|
|
19490
19502
|
componentActions.rowDetailHeight = rowDetailHeight2;
|
|
@@ -19809,7 +19821,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19809
19821
|
}
|
|
19810
19822
|
let valid2 = isValidLicense(licenseKey, {
|
|
19811
19823
|
publishedAt: 1624970570587,
|
|
19812
|
-
version: "5.0.0-canary.
|
|
19824
|
+
version: "5.0.0-canary.4"
|
|
19813
19825
|
});
|
|
19814
19826
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19815
19827
|
return true;
|
|
@@ -23722,6 +23734,7 @@ var InfiniteTableComponent = React68.memo(
|
|
|
23722
23734
|
domRef,
|
|
23723
23735
|
portalDOMRef,
|
|
23724
23736
|
onRowHeightCSSVarChange,
|
|
23737
|
+
onFlashingDurationCSSVarChange,
|
|
23725
23738
|
onRowDetailHeightCSSVarChange,
|
|
23726
23739
|
onColumnHeaderHeightCSSVarChange,
|
|
23727
23740
|
rowHeightCSSVar,
|
|
@@ -23812,18 +23825,29 @@ var InfiniteTableComponent = React68.memo(
|
|
|
23812
23825
|
), rowHeightCSSVar ? /* @__PURE__ */ React68.createElement(
|
|
23813
23826
|
CSSNumericVariableWatch,
|
|
23814
23827
|
{
|
|
23828
|
+
key: "row-height",
|
|
23815
23829
|
varName: rowHeightCSSVar,
|
|
23816
23830
|
onChange: onRowHeightCSSVarChange
|
|
23817
23831
|
}
|
|
23818
|
-
) : null,
|
|
23832
|
+
) : null, /* @__PURE__ */ React68.createElement(
|
|
23833
|
+
CSSNumericVariableWatch,
|
|
23834
|
+
{
|
|
23835
|
+
key: "flashing-duration",
|
|
23836
|
+
allowInts: true,
|
|
23837
|
+
varName: ThemeVars.components.Cell.flashingDuration,
|
|
23838
|
+
onChange: onFlashingDurationCSSVarChange
|
|
23839
|
+
}
|
|
23840
|
+
), rowDetailHeightCSSVar ? /* @__PURE__ */ React68.createElement(
|
|
23819
23841
|
CSSNumericVariableWatch,
|
|
23820
23842
|
{
|
|
23843
|
+
key: "row-detail-height",
|
|
23821
23844
|
varName: rowDetailHeightCSSVar,
|
|
23822
23845
|
onChange: onRowDetailHeightCSSVarChange
|
|
23823
23846
|
}
|
|
23824
23847
|
) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React68.createElement(
|
|
23825
23848
|
CSSNumericVariableWatch,
|
|
23826
23849
|
{
|
|
23850
|
+
key: "column-header-height",
|
|
23827
23851
|
varName: columnHeaderHeightCSSVar,
|
|
23828
23852
|
onChange: onColumnHeaderHeightCSSVarChange
|
|
23829
23853
|
}
|
|
@@ -24321,6 +24345,157 @@ var _WeakFixedSizeSet = class {
|
|
|
24321
24345
|
var WeakFixedSizeSet = _WeakFixedSizeSet;
|
|
24322
24346
|
WeakFixedSizeSet.DEFAULT_SIZE = 10;
|
|
24323
24347
|
|
|
24348
|
+
// src/components/hooks/useEffectWhenSameDeps.ts
|
|
24349
|
+
import { useEffect as useEffect40, useRef as useRef31 } from "react";
|
|
24350
|
+
var isSameDeps = (deps, prevDeps) => {
|
|
24351
|
+
return deps.every((dep, index) => dep === prevDeps[index]);
|
|
24352
|
+
};
|
|
24353
|
+
var useEffectWhenSameDeps = (callback, deps) => {
|
|
24354
|
+
const depsRef = useRef31(deps);
|
|
24355
|
+
const sameDeps = isSameDeps(deps, depsRef.current);
|
|
24356
|
+
const isInitialRef = useRef31(true);
|
|
24357
|
+
depsRef.current = deps;
|
|
24358
|
+
const effectDepsRef = useRef31(["same"]);
|
|
24359
|
+
const effectDeps = sameDeps ? [Date.now()] : effectDepsRef.current;
|
|
24360
|
+
effectDepsRef.current = effectDeps;
|
|
24361
|
+
const callbackRef = useRef31(callback);
|
|
24362
|
+
callbackRef.current = callback;
|
|
24363
|
+
useEffect40(() => {
|
|
24364
|
+
if (isInitialRef.current) {
|
|
24365
|
+
isInitialRef.current = false;
|
|
24366
|
+
return;
|
|
24367
|
+
}
|
|
24368
|
+
return callbackRef.current();
|
|
24369
|
+
}, effectDeps);
|
|
24370
|
+
};
|
|
24371
|
+
|
|
24372
|
+
// src/components/hooks/useEffectWhen.ts
|
|
24373
|
+
import { useEffect as useEffect41, useRef as useRef32 } from "react";
|
|
24374
|
+
var isSameDeps2 = (deps, prevDeps, compare) => {
|
|
24375
|
+
return deps.every((dep, index) => {
|
|
24376
|
+
if (compare) {
|
|
24377
|
+
return compare(dep, prevDeps[index]);
|
|
24378
|
+
}
|
|
24379
|
+
return dep === prevDeps[index];
|
|
24380
|
+
});
|
|
24381
|
+
};
|
|
24382
|
+
var useEffectWhen = (callback, options) => {
|
|
24383
|
+
const { same: depsForSame, different: depsForDifferent, compare } = options;
|
|
24384
|
+
const sameDepsRef = useRef32(depsForSame);
|
|
24385
|
+
const differentDepsRef = useRef32(depsForDifferent);
|
|
24386
|
+
const sameRespected = isSameDeps2(depsForSame, sameDepsRef.current, compare);
|
|
24387
|
+
const differentRespected = !isSameDeps2(
|
|
24388
|
+
depsForDifferent,
|
|
24389
|
+
differentDepsRef.current,
|
|
24390
|
+
compare
|
|
24391
|
+
);
|
|
24392
|
+
const isInitialRef = useRef32(true);
|
|
24393
|
+
sameDepsRef.current = depsForSame;
|
|
24394
|
+
differentDepsRef.current = depsForDifferent;
|
|
24395
|
+
const effectDepsRef = useRef32(["same"]);
|
|
24396
|
+
const effectDeps = sameRespected && differentRespected ? [Date.now()] : effectDepsRef.current;
|
|
24397
|
+
effectDepsRef.current = effectDeps;
|
|
24398
|
+
const callbackRef = useRef32(callback);
|
|
24399
|
+
callbackRef.current = callback;
|
|
24400
|
+
if (sameRespected && differentRespected) {
|
|
24401
|
+
isInitialRef.current = false;
|
|
24402
|
+
}
|
|
24403
|
+
useEffect41(() => {
|
|
24404
|
+
if (isInitialRef.current) {
|
|
24405
|
+
return;
|
|
24406
|
+
}
|
|
24407
|
+
return callbackRef.current();
|
|
24408
|
+
}, effectDeps);
|
|
24409
|
+
};
|
|
24410
|
+
|
|
24411
|
+
// src/components/InfiniteTable/components/InfiniteTableRow/FlashingColumnCell.tsx
|
|
24412
|
+
import * as React69 from "react";
|
|
24413
|
+
var currentFlashingDurationVar = stripVar(
|
|
24414
|
+
InternalVars.currentFlashingDuration
|
|
24415
|
+
);
|
|
24416
|
+
var defaultRender = ({ children }) => {
|
|
24417
|
+
return /* @__PURE__ */ React69.createElement(React69.Fragment, null, children);
|
|
24418
|
+
};
|
|
24419
|
+
var DEFAULT_FLASH_DURATION = 1e3;
|
|
24420
|
+
var createFlashingColumnCellComponent = (options = {}) => {
|
|
24421
|
+
const {
|
|
24422
|
+
flashDuration: FLASH_DURATION,
|
|
24423
|
+
// fadeDuration,
|
|
24424
|
+
flashClassName,
|
|
24425
|
+
// fadeClassName,
|
|
24426
|
+
render = defaultRender
|
|
24427
|
+
} = options;
|
|
24428
|
+
const FlashingColumnCell2 = React69.forwardRef(
|
|
24429
|
+
(props, _ref) => {
|
|
24430
|
+
var _a;
|
|
24431
|
+
const cellContext = useInfiniteColumnCell();
|
|
24432
|
+
const {
|
|
24433
|
+
state: { flashingDurationCSSVarValue }
|
|
24434
|
+
} = useInfiniteTable();
|
|
24435
|
+
const duration = typeof flashingDurationCSSVarValue === "number" ? (_a = flashingDurationCSSVarValue != null ? flashingDurationCSSVarValue : FLASH_DURATION) != null ? _a : DEFAULT_FLASH_DURATION : FLASH_DURATION != null ? FLASH_DURATION : DEFAULT_FLASH_DURATION;
|
|
24436
|
+
const { domRef, value, column, rowInfo, htmlElementRef } = cellContext;
|
|
24437
|
+
const rowId = rowInfo.id;
|
|
24438
|
+
const columnId = column.id;
|
|
24439
|
+
const initialRef = React69.useRef(true);
|
|
24440
|
+
const oldValueRef = React69.useRef(value);
|
|
24441
|
+
const oldValue = initialRef.current ? null : oldValueRef.current;
|
|
24442
|
+
initialRef.current = false;
|
|
24443
|
+
const flashTimeoutIdRef = React69.useRef();
|
|
24444
|
+
const fadeTimeoutIdRef = React69.useRef();
|
|
24445
|
+
useEffectWhen(
|
|
24446
|
+
() => {
|
|
24447
|
+
if (value === oldValueRef.current) {
|
|
24448
|
+
return;
|
|
24449
|
+
}
|
|
24450
|
+
if (flashTimeoutIdRef.current) {
|
|
24451
|
+
clearTimeout(flashTimeoutIdRef.current);
|
|
24452
|
+
}
|
|
24453
|
+
if (fadeTimeoutIdRef.current) {
|
|
24454
|
+
clearTimeout(fadeTimeoutIdRef.current);
|
|
24455
|
+
}
|
|
24456
|
+
const el = htmlElementRef.current;
|
|
24457
|
+
oldValueRef.current = value;
|
|
24458
|
+
if (!el) {
|
|
24459
|
+
return;
|
|
24460
|
+
}
|
|
24461
|
+
const flashDirection = typeof value === "number" ? value > oldValue ? "up" : "down" : "neutral";
|
|
24462
|
+
const internalflashCls = FlashingColumnCellRecipe({
|
|
24463
|
+
direction: flashDirection
|
|
24464
|
+
}).split(" ");
|
|
24465
|
+
el.style.setProperty(currentFlashingDurationVar, `${duration}`);
|
|
24466
|
+
if (flashClassName) {
|
|
24467
|
+
el.classList.add(flashClassName);
|
|
24468
|
+
}
|
|
24469
|
+
el.classList.add(...internalflashCls);
|
|
24470
|
+
flashTimeoutIdRef.current = setTimeout(() => {
|
|
24471
|
+
flashTimeoutIdRef.current = void 0;
|
|
24472
|
+
if (flashClassName) {
|
|
24473
|
+
el.classList.remove(flashClassName);
|
|
24474
|
+
}
|
|
24475
|
+
el.classList.remove(...internalflashCls);
|
|
24476
|
+
el.style.removeProperty(currentFlashingDurationVar);
|
|
24477
|
+
}, duration);
|
|
24478
|
+
return () => {
|
|
24479
|
+
if (flashTimeoutIdRef.current) {
|
|
24480
|
+
clearTimeout(flashTimeoutIdRef.current);
|
|
24481
|
+
}
|
|
24482
|
+
if (fadeTimeoutIdRef.current) {
|
|
24483
|
+
clearTimeout(fadeTimeoutIdRef.current);
|
|
24484
|
+
}
|
|
24485
|
+
};
|
|
24486
|
+
},
|
|
24487
|
+
{
|
|
24488
|
+
same: [columnId, rowId],
|
|
24489
|
+
different: [value]
|
|
24490
|
+
}
|
|
24491
|
+
);
|
|
24492
|
+
return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({ ref: domRef }, props), { className: join(props.className) }), render({ children: props.children, oldValue }));
|
|
24493
|
+
}
|
|
24494
|
+
);
|
|
24495
|
+
return FlashingColumnCell2;
|
|
24496
|
+
};
|
|
24497
|
+
var FlashingColumnCell = createFlashingColumnCellComponent();
|
|
24498
|
+
|
|
24324
24499
|
// src/index.tsx
|
|
24325
24500
|
var components = {
|
|
24326
24501
|
CheckBox: InfiniteCheckBox,
|
|
@@ -24336,6 +24511,7 @@ export {
|
|
|
24336
24511
|
DataSourceActionType,
|
|
24337
24512
|
DeepMap,
|
|
24338
24513
|
FixedSizeSet,
|
|
24514
|
+
FlashingColumnCell,
|
|
24339
24515
|
GroupRowsState,
|
|
24340
24516
|
InfiniteTable,
|
|
24341
24517
|
InfiniteTableClassName,
|
|
@@ -24347,6 +24523,7 @@ export {
|
|
|
24347
24523
|
RowSelectionState,
|
|
24348
24524
|
WeakFixedSizeSet,
|
|
24349
24525
|
components,
|
|
24526
|
+
createFlashingColumnCellComponent,
|
|
24350
24527
|
debounce,
|
|
24351
24528
|
debug,
|
|
24352
24529
|
defaultFilterTypes2 as defaultFilterTypes,
|
|
@@ -24362,6 +24539,8 @@ export {
|
|
|
24362
24539
|
useManagedComponentState as useComponentState,
|
|
24363
24540
|
useDataSourceInternal,
|
|
24364
24541
|
useDataSourceState,
|
|
24542
|
+
useEffectWhen,
|
|
24543
|
+
useEffectWhenSameDeps,
|
|
24365
24544
|
useEffectWithChanges,
|
|
24366
24545
|
useEffectWithObject,
|
|
24367
24546
|
useGridScroll,
|
|
@@ -24373,6 +24552,7 @@ export {
|
|
|
24373
24552
|
useMasterRowInfo,
|
|
24374
24553
|
useOverlay,
|
|
24375
24554
|
useOverlayPortal,
|
|
24555
|
+
usePrevious,
|
|
24376
24556
|
useRowInfoReducers,
|
|
24377
24557
|
useVisibleColumnSizes
|
|
24378
24558
|
};
|