@infinite-table/infinite-react 5.0.0-canary.1 → 5.0.0-canary.3
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 +209 -38
- package/index.d.ts +11 -0
- package/index.dev.js +98 -25
- package/index.dev.mjs +98 -25
- package/index.js +98 -25
- package/index.mjs +98 -25
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -4360,10 +4360,6 @@ var useRerender = () => {
|
|
|
4360
4360
|
];
|
|
4361
4361
|
};
|
|
4362
4362
|
|
|
4363
|
-
// src/components/InfiniteTable/components/ActiveCellIndicator.css.ts
|
|
4364
|
-
var ActiveCellIndicatorCls = { visible: "ActiveCellIndicator_ActiveCellIndicatorCls_visible__nxbq1c2 ActiveCellIndicator_ActiveCellIndicator__nxbq1c1 utilities_pointerEvents_none__16lm1iwl utilities_position_absolute__16lm1iw2", hidden: "ActiveCellIndicator_ActiveCellIndicatorCls_hidden__nxbq1c3 ActiveCellIndicator_ActiveCellIndicator__nxbq1c1 utilities_pointerEvents_none__16lm1iwl utilities_position_absolute__16lm1iw2" };
|
|
4365
|
-
var ActiveIndicatorWrapperCls = "ActiveCellIndicator_ActiveIndicatorWrapperCls__nxbq1c0 utilities_pointerEvents_none__16lm1iwl utilities_position_sticky__16lm1iw4 utilities_left_0__16lm1iw1e utilities_top_0__16lm1iw1c utilities_height_0__16lm1iw18 utilities_zIndex_1000000__16lm1iwu";
|
|
4366
|
-
|
|
4367
4363
|
// ../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js
|
|
4368
4364
|
function toPrimitive(t, r) {
|
|
4369
4365
|
if ("object" != typeof t || !t)
|
|
@@ -4472,6 +4468,10 @@ var createRuntimeFn = (config) => {
|
|
|
4472
4468
|
return runtimeFn;
|
|
4473
4469
|
};
|
|
4474
4470
|
|
|
4471
|
+
// src/components/InfiniteTable/components/ActiveCellIndicator.css.ts
|
|
4472
|
+
var ActiveCellIndicatorRecipe = createRuntimeFn({ defaultClassName: "ActiveCellIndicator_ActiveCellIndicator__nxbq1c1 utilities_pointerEvents_none__16lm1iwl utilities_position_absolute__16lm1iw2", variantClassNames: { visible: { true: "ActiveCellIndicator_ActiveCellIndicatorRecipe_visible_true__nxbq1c3", false: "ActiveCellIndicator_ActiveCellIndicatorRecipe_visible_false__nxbq1c4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4473
|
+
var ActiveIndicatorWrapperCls = "ActiveCellIndicator_ActiveIndicatorWrapperCls__nxbq1c0 utilities_pointerEvents_none__16lm1iwl utilities_position_sticky__16lm1iw4 utilities_left_0__16lm1iw1e utilities_top_0__16lm1iw1c utilities_height_0__16lm1iw18 utilities_zIndex_1000000__16lm1iwu";
|
|
4474
|
+
|
|
4475
4475
|
// src/components/InfiniteTable/components/ActiveRowIndicator.css.ts
|
|
4476
4476
|
var ActiveRowIndicatorRecipe = createRuntimeFn({ defaultClassName: "ActiveRowIndicator_ActiveRowIndicator__j26lrx0 utilities_pointerEvents_none__16lm1iwl utilities_position_absolute__16lm1iw2 utilities_top_0__16lm1iw1c utilities_left_0__16lm1iw1e", variantClassNames: { active: { true: "ActiveRowIndicator_ActiveRowIndicatorRecipe_active_true__j26lrx2", false: "ActiveRowIndicator_ActiveRowIndicatorRecipe_active_false__j26lrx3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4477
4477
|
|
|
@@ -4609,7 +4609,9 @@ var ActiveCellIndicatorFn = (props) => {
|
|
|
4609
4609
|
"div",
|
|
4610
4610
|
{
|
|
4611
4611
|
"data-name": "active-cell-indicator",
|
|
4612
|
-
className: `${baseCls2} ${
|
|
4612
|
+
className: `${baseCls2} ${ActiveCellIndicatorRecipe({
|
|
4613
|
+
visible: active
|
|
4614
|
+
})}`
|
|
4613
4615
|
}
|
|
4614
4616
|
)
|
|
4615
4617
|
)
|
|
@@ -5358,22 +5360,22 @@ import { useEffect as useEffect10, useLayoutEffect as useLayoutEffect8, useState
|
|
|
5358
5360
|
|
|
5359
5361
|
// src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
|
|
5360
5362
|
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";
|
|
5361
|
-
var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "
|
|
5363
|
+
var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob124 utilities_height_100%__16lm1iw19 utilities_width_100%__16lm1iw1b utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_justifyContent_start__16lm1iw1v", variantClassNames: { filtered: { false: "header_HeaderCellContentRecipe_filtered_false__12zfob125", true: "header_HeaderCellContentRecipe_filtered_true__12zfob126" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob127", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob128", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob129" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob12a", end: "header_HeaderCellContentRecipe_align_end__12zfob12b", center: "header_HeaderCellContentRecipe_align_center__12zfob12c" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5362
5364
|
var HeaderCellProxy = "header_HeaderCellProxy__12zfob1n utilities_whiteSpace_nowrap__16lm1iw23 utilities_textOverflow_ellipsis__16lm1iw24 utilities_overflow_hidden__16lm1iw1x";
|
|
5363
|
-
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" }, groupRow: { false: "
|
|
5365
|
+
var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellRecipe__12zfob1o utilities_display_block__16lm1iw12", variantClassNames: { rowActive: { false: "header_HeaderCellRecipe_rowActive_false__12zfob1p", true: "header_HeaderCellRecipe_rowActive_true__12zfob1q" }, cellSelected: { false: "header_HeaderCellRecipe_cellSelected_false__12zfob1r", true: "header_HeaderCellRecipe_cellSelected_true__12zfob1s" }, rowSelected: { false: "header_HeaderCellRecipe_rowSelected_false__12zfob1t", true: "header_HeaderCellRecipe_rowSelected_true__12zfob1u", null: "header_HeaderCellRecipe_rowSelected_null__12zfob1v" }, rowDisabled: { false: "header_HeaderCellRecipe_rowDisabled_false__12zfob1w", true: "header_HeaderCellRecipe_rowDisabled_true__12zfob1x" }, firstRow: { false: "header_HeaderCellRecipe_firstRow_false__12zfob1y", true: "header_HeaderCellRecipe_firstRow_true__12zfob1z" }, firstRowInHorizontalLayoutPage: { false: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_false__12zfob110", true: "header_HeaderCellRecipe_firstRowInHorizontalLayoutPage_true__12zfob111" }, groupRow: { false: "header_HeaderCellRecipe_groupRow_false__12zfob112", true: "header_HeaderCellRecipe_groupRow_true__12zfob113" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob114", true: "header_HeaderCellRecipe_groupCell_true__12zfob115" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob116", end: "header_HeaderCellRecipe_align_end__12zfob117", center: "header_HeaderCellRecipe_align_center__12zfob118" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob119", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob11a", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob11b" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob11c", even: "header_HeaderCellRecipe_zebra_even__12zfob11d", odd: "header_HeaderCellRecipe_zebra_odd__12zfob11e" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob11f", false: "header_HeaderCellRecipe_dragging_false__12zfob11g" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob11h", false: "header_HeaderCellRecipe_first_false__12zfob11i" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11j", false: "header_HeaderCellRecipe_last_false__12zfob11k" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11l", false: "header_HeaderCellRecipe_groupByField_false__12zfob11m" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11n", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11o" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11p", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11q" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11r", end: "header_HeaderCellRecipe_pinned_end__12zfob11s", false: "header_HeaderCellRecipe_pinned_false__12zfob11t" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11u", false: "header_HeaderCellRecipe_filtered_false__12zfob11v" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11w"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11x"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob11y"]] });
|
|
5364
5366
|
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"]] });
|
|
5365
|
-
var HeaderFilterEditorCls = "
|
|
5367
|
+
var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12m utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
|
|
5366
5368
|
var HeaderFilterIconIndexCls = "header_HeaderFilterIconIndexCls__12zfob17";
|
|
5367
|
-
var HeaderFilterOperatorCls = "
|
|
5368
|
-
var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "
|
|
5369
|
-
var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "
|
|
5370
|
-
var HeaderGroupCls = "
|
|
5371
|
-
var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "
|
|
5369
|
+
var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12i utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
|
|
5370
|
+
var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob12j utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1c", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob12k", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12l" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5371
|
+
var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterRecipe__12zfob12f utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_stretch__16lm1iw1r utilities_position_relative__16lm1iw1", variantClassNames: { active: { true: "header_HeaderFilterRecipe_active_true__12zfob12g", false: "header_HeaderFilterRecipe_active_false__12zfob12h" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5372
|
+
var HeaderGroupCls = "header_HeaderGroupCls__12zfob12e utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
|
|
5373
|
+
var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob11z utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_column__16lm1iw1m utilities_justifyContent_spaceAround__16lm1iw1u utilities_visibility_hidden__16lm1iw21", variantClassNames: { menuVisible: { true: "header_HeaderMenuIconCls_menuVisible_true__12zfob120" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob121", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob122" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob123"]] });
|
|
5372
5374
|
var HeaderScrollbarPlaceholderCls = "header_HeaderScrollbarPlaceholderCls__12zfob18 utilities_position_absolute__16lm1iw2";
|
|
5373
5375
|
var HeaderSortIconCls = "utilities_position_relative__16lm1iw1";
|
|
5374
5376
|
var HeaderSortIconIndexCls = "header_HeaderSortIconIndexCls__12zfob16";
|
|
5375
5377
|
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: [] });
|
|
5376
|
-
var HeaderWrapperCls = "
|
|
5378
|
+
var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12d utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
|
|
5377
5379
|
|
|
5378
5380
|
// src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts
|
|
5379
5381
|
var InfiniteTableIconClassName = "InfiniteTableIcon";
|
|
@@ -6805,7 +6807,7 @@ var defaultFilterTypes2 = getFilterTypes();
|
|
|
6805
6807
|
|
|
6806
6808
|
// src/components/InfiniteTable/hooks/useCellClassName.ts
|
|
6807
6809
|
function useCellClassName(column, baseClasses, variants, extraFlags) {
|
|
6808
|
-
var _a, _b;
|
|
6810
|
+
var _a, _b, _c;
|
|
6809
6811
|
const result = [...baseClasses];
|
|
6810
6812
|
const variantObject = {
|
|
6811
6813
|
filtered: column.computedFiltered,
|
|
@@ -6820,6 +6822,7 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
|
|
|
6820
6822
|
rowActive: extraFlags.rowActive,
|
|
6821
6823
|
dragging: extraFlags.dragging,
|
|
6822
6824
|
firstRow: (_b = extraFlags.firstRow) != null ? _b : false,
|
|
6825
|
+
firstRowInHorizontalLayoutPage: (_c = extraFlags.firstRowInHorizontalLayoutPage) != null ? _c : false,
|
|
6823
6826
|
rowDisabled: extraFlags.rowDisabled,
|
|
6824
6827
|
groupRow: extraFlags.groupRow,
|
|
6825
6828
|
groupCell: extraFlags.groupCell,
|
|
@@ -6853,6 +6856,11 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
|
|
|
6853
6856
|
if (extraFlags.firstRow) {
|
|
6854
6857
|
result.push(...baseClasses.map((c) => `${c}--first-row`));
|
|
6855
6858
|
}
|
|
6859
|
+
if (extraFlags.firstRowInHorizontalLayoutPage) {
|
|
6860
|
+
result.push(
|
|
6861
|
+
...baseClasses.map((c) => `${c}--first-row-in-horizontal-layout-page`)
|
|
6862
|
+
);
|
|
6863
|
+
}
|
|
6856
6864
|
if (extraFlags.rowDisabled) {
|
|
6857
6865
|
result.push(...baseClasses.map((c) => `${c}--disabled`));
|
|
6858
6866
|
}
|
|
@@ -8078,7 +8086,7 @@ function objectValuesExcept(obj, exceptList) {
|
|
|
8078
8086
|
|
|
8079
8087
|
// src/components/InfiniteTable/components/cell.css.ts
|
|
8080
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";
|
|
8081
|
-
var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2ah", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2ai", true: "cell_ColumnCellRecipe_dragging_true__1eexc2aj" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ak", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2al" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2am", end: "cell_ColumnCellRecipe_align_end__1eexc2an", center: "cell_ColumnCellRecipe_align_center__1eexc2ao" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2ap", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2aq", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2ar" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2as", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2at" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2au", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2av" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2aw", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2ax" }, rowDisabled: { false: "cell_ColumnCellRecipe_rowDisabled_false__1eexc2ay", true: "cell_ColumnCellRecipe_rowDisabled_true__1eexc2az" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2a10", even: "cell_ColumnCellRecipe_zebra_even__1eexc2a11", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a12" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a13", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a14", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a15" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a16", false: "cell_ColumnCellRecipe_first_false__1eexc2a17" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a18", false: "cell_ColumnCellRecipe_last_false__1eexc2a19" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a1a", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a1b" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1c", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1d" }, firstRow: { true: "cell_ColumnCellRecipe_firstRow_true__1eexc2a1e", false: "cell_ColumnCellRecipe_firstRow_false__1eexc2a1f" }, lastInCategory: { true: "
|
|
8089
|
+
var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellRecipe__1eexc2ah", variantClassNames: { dragging: { false: "cell_ColumnCellRecipe_dragging_false__1eexc2ai", true: "cell_ColumnCellRecipe_dragging_true__1eexc2aj" }, cellSelected: { false: "cell_ColumnCellRecipe_cellSelected_false__1eexc2ak", true: "cell_ColumnCellRecipe_cellSelected_true__1eexc2al" }, align: { start: "cell_ColumnCellRecipe_align_start__1eexc2am", end: "cell_ColumnCellRecipe_align_end__1eexc2an", center: "cell_ColumnCellRecipe_align_center__1eexc2ao" }, verticalAlign: { start: "cell_ColumnCellRecipe_verticalAlign_start__1eexc2ap", end: "cell_ColumnCellRecipe_verticalAlign_end__1eexc2aq", center: "cell_ColumnCellRecipe_verticalAlign_center__1eexc2ar" }, rowActive: { false: "cell_ColumnCellRecipe_rowActive_false__1eexc2as", true: "cell_ColumnCellRecipe_rowActive_true__1eexc2at" }, groupRow: { false: "cell_ColumnCellRecipe_groupRow_false__1eexc2au", true: "cell_ColumnCellRecipe_groupRow_true__1eexc2av" }, groupCell: { false: "cell_ColumnCellRecipe_groupCell_false__1eexc2aw", true: "cell_ColumnCellRecipe_groupCell_true__1eexc2ax" }, rowDisabled: { false: "cell_ColumnCellRecipe_rowDisabled_false__1eexc2ay", true: "cell_ColumnCellRecipe_rowDisabled_true__1eexc2az" }, zebra: { false: "cell_ColumnCellRecipe_zebra_false__1eexc2a10", even: "cell_ColumnCellRecipe_zebra_even__1eexc2a11", odd: "cell_ColumnCellRecipe_zebra_odd__1eexc2a12" }, rowSelected: { true: "cell_ColumnCellRecipe_rowSelected_true__1eexc2a13", false: "cell_ColumnCellRecipe_rowSelected_false__1eexc2a14", null: "cell_ColumnCellRecipe_rowSelected_null__1eexc2a15" }, first: { true: "cell_ColumnCellRecipe_first_true__1eexc2a16", false: "cell_ColumnCellRecipe_first_false__1eexc2a17" }, last: { true: "cell_ColumnCellRecipe_last_true__1eexc2a18", false: "cell_ColumnCellRecipe_last_false__1eexc2a19" }, groupByField: { true: "cell_ColumnCellRecipe_groupByField_true__1eexc2a1a", false: "cell_ColumnCellRecipe_groupByField_false__1eexc2a1b" }, firstInCategory: { true: "cell_ColumnCellRecipe_firstInCategory_true__1eexc2a1c", false: "cell_ColumnCellRecipe_firstInCategory_false__1eexc2a1d" }, firstRow: { true: "cell_ColumnCellRecipe_firstRow_true__1eexc2a1e", false: "cell_ColumnCellRecipe_firstRow_false__1eexc2a1f" }, firstRowInHorizontalLayoutPage: { true: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_true__1eexc2a1g", false: "cell_ColumnCellRecipe_firstRowInHorizontalLayoutPage_false__1eexc2a1h" }, lastInCategory: { true: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1i", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1j" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1k", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1l", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1m" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1n", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1o" } }, defaultVariants: {}, compoundVariants: [[{ firstRowInHorizontalLayoutPage: true, firstRow: false }, "cell_ColumnCellRecipe_compound_0__1eexc2a1p"], [{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1q"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1r"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1s"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_4__1eexc2a1t"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_5__1eexc2a1u"], [{ rowDisabled: true, zebra: "odd" }, "cell_ColumnCellRecipe_compound_6__1eexc2a1v"]] });
|
|
8082
8090
|
var ColumnCellSelectionIndicatorRecipe = createRuntimeFn({ defaultClassName: "cell_ColumnCellSelectionIndicatorRecipe__1eexc2a8", variantClassNames: { right: { true: "cell_ColumnCellSelectionIndicatorRecipe_right_true__1eexc2a9", false: "cell_ColumnCellSelectionIndicatorRecipe_right_false__1eexc2aa" }, left: { true: "cell_ColumnCellSelectionIndicatorRecipe_left_true__1eexc2ab", false: "cell_ColumnCellSelectionIndicatorRecipe_left_false__1eexc2ac" }, top: { true: "cell_ColumnCellSelectionIndicatorRecipe_top_true__1eexc2ad", false: "cell_ColumnCellSelectionIndicatorRecipe_top_false__1eexc2ae" }, bottom: { true: "cell_ColumnCellSelectionIndicatorRecipe_bottom_true__1eexc2af", false: "cell_ColumnCellSelectionIndicatorRecipe_bottom_false__1eexc2ag" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8083
8091
|
var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
|
|
8084
8092
|
|
|
@@ -8789,6 +8797,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
8789
8797
|
if (inEdit) {
|
|
8790
8798
|
return null;
|
|
8791
8799
|
}
|
|
8800
|
+
renderParamRef.current = renderParam;
|
|
8792
8801
|
if (renderFunctions.renderGroupIcon) {
|
|
8793
8802
|
renderParam.renderBag.groupIcon = /* @__PURE__ */ React36.createElement(
|
|
8794
8803
|
RenderCellHookComponent,
|
|
@@ -9002,6 +9011,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
9002
9011
|
bottom: bottomSelectionBorder
|
|
9003
9012
|
} : null;
|
|
9004
9013
|
const afterChildren = editor;
|
|
9014
|
+
const theChildren = renderChildren();
|
|
9005
9015
|
const cellProps = {
|
|
9006
9016
|
domRef,
|
|
9007
9017
|
cellType: "body",
|
|
@@ -9032,6 +9042,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
9032
9042
|
cellSelected,
|
|
9033
9043
|
rowSelected,
|
|
9034
9044
|
firstRow: rowInfo.indexInAll === 0,
|
|
9045
|
+
firstRowInHorizontalLayoutPage: rowIndexInHorizontalLayoutPage === 0,
|
|
9035
9046
|
groupRow: rowInfo.isGroupRow,
|
|
9036
9047
|
groupCell: rowInfo.isGroupRow ? !!column.groupByForColumn : false,
|
|
9037
9048
|
rowExpanded: rowInfo.isGroupRow ? !rowInfo.collapsed : false
|
|
@@ -9040,7 +9051,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
9040
9051
|
colClassName,
|
|
9041
9052
|
rowComputedClassName
|
|
9042
9053
|
),
|
|
9043
|
-
renderChildren
|
|
9054
|
+
renderChildren: useCallback12(() => theChildren, [renderChildren])
|
|
9044
9055
|
};
|
|
9045
9056
|
const ContextProvider = InfiniteTableColumnCellContext.Provider;
|
|
9046
9057
|
return (
|
|
@@ -9942,6 +9953,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9942
9953
|
zebra: false,
|
|
9943
9954
|
rowActive: false,
|
|
9944
9955
|
firstRow: true,
|
|
9956
|
+
firstRowInHorizontalLayoutPage: true,
|
|
9945
9957
|
groupCell: false,
|
|
9946
9958
|
groupRow: false,
|
|
9947
9959
|
rowExpanded: false
|
|
@@ -10832,7 +10844,7 @@ function lazyGroup(groupParams, rootData) {
|
|
|
10832
10844
|
rootData.visitDepthFirst(
|
|
10833
10845
|
(lazyGroupRowInfo, keys, _index, next) => {
|
|
10834
10846
|
const [_rootKey, ...currentGroupKeys] = keys;
|
|
10835
|
-
|
|
10847
|
+
let dataArray = lazyGroupRowInfo.children;
|
|
10836
10848
|
const current = deepMap.get(currentGroupKeys);
|
|
10837
10849
|
if (current) {
|
|
10838
10850
|
current.cache = lazyGroupRowInfo.cache;
|
|
@@ -10855,10 +10867,11 @@ function lazyGroup(groupParams, rootData) {
|
|
|
10855
10867
|
);
|
|
10856
10868
|
}
|
|
10857
10869
|
}
|
|
10858
|
-
indexer.indexArray(dataArray, {
|
|
10870
|
+
const res = indexer.indexArray(dataArray, {
|
|
10859
10871
|
toPrimaryKey,
|
|
10860
10872
|
cache
|
|
10861
10873
|
});
|
|
10874
|
+
dataArray = res;
|
|
10862
10875
|
}
|
|
10863
10876
|
return next == null ? void 0 : next();
|
|
10864
10877
|
}
|
|
@@ -12851,11 +12864,15 @@ var Indexer = class {
|
|
|
12851
12864
|
};
|
|
12852
12865
|
this.indexArray = (arr, options) => {
|
|
12853
12866
|
const { cache, toPrimaryKey } = options;
|
|
12867
|
+
if (cache && cache.shouldResetDataSource()) {
|
|
12868
|
+
this.clear();
|
|
12869
|
+
arr = [];
|
|
12870
|
+
}
|
|
12854
12871
|
if (cache && !cache.isEmpty()) {
|
|
12855
12872
|
arr = arr.concat();
|
|
12856
12873
|
}
|
|
12857
12874
|
if (!arr.length && cache) {
|
|
12858
|
-
const cacheInfo =
|
|
12875
|
+
const cacheInfo = cache.getMutationsArray();
|
|
12859
12876
|
if (cacheInfo && cacheInfo.length) {
|
|
12860
12877
|
for (let cacheIndex = 0, cacheLength = cacheInfo.length; cacheIndex < cacheLength; cacheIndex++) {
|
|
12861
12878
|
const info = cacheInfo[cacheIndex];
|
|
@@ -13168,6 +13185,7 @@ function getPivotColumnsAndColumnGroups({
|
|
|
13168
13185
|
}
|
|
13169
13186
|
|
|
13170
13187
|
// src/components/DataSource/DataSourceCache.ts
|
|
13188
|
+
var CLEAR_SYMBOL = Symbol("CLEAR");
|
|
13171
13189
|
var DataSourceCache = class {
|
|
13172
13190
|
constructor() {
|
|
13173
13191
|
this.affectedFields = /* @__PURE__ */ new Set();
|
|
@@ -13221,6 +13239,21 @@ var DataSourceCache = class {
|
|
|
13221
13239
|
});
|
|
13222
13240
|
this.primaryKeyToData.set(primaryKey, value);
|
|
13223
13241
|
};
|
|
13242
|
+
this.resetDataSource = (metadata) => {
|
|
13243
|
+
this.clear();
|
|
13244
|
+
this.allFieldsAffected = true;
|
|
13245
|
+
const pk = CLEAR_SYMBOL;
|
|
13246
|
+
const value = this.primaryKeyToData.get(pk) || [];
|
|
13247
|
+
value.push({
|
|
13248
|
+
type: "clear-all",
|
|
13249
|
+
primaryKey: void 0,
|
|
13250
|
+
metadata
|
|
13251
|
+
});
|
|
13252
|
+
this.primaryKeyToData.set(pk, value);
|
|
13253
|
+
};
|
|
13254
|
+
this.shouldResetDataSource = () => {
|
|
13255
|
+
return this.primaryKeyToData.has(CLEAR_SYMBOL);
|
|
13256
|
+
};
|
|
13224
13257
|
this.clear = () => {
|
|
13225
13258
|
this.allFieldsAffected = false;
|
|
13226
13259
|
this.affectedFields.clear();
|
|
@@ -13236,9 +13269,15 @@ var DataSourceCache = class {
|
|
|
13236
13269
|
const data = this.primaryKeyToData.get(primaryKey);
|
|
13237
13270
|
return data;
|
|
13238
13271
|
};
|
|
13272
|
+
this.getMutationsCount = () => {
|
|
13273
|
+
return this.primaryKeyToData.size;
|
|
13274
|
+
};
|
|
13239
13275
|
this.getMutations = () => {
|
|
13240
13276
|
return new Map(this.primaryKeyToData);
|
|
13241
13277
|
};
|
|
13278
|
+
this.getMutationsArray = () => {
|
|
13279
|
+
return Array.from(this.primaryKeyToData.values()).flat();
|
|
13280
|
+
};
|
|
13242
13281
|
}
|
|
13243
13282
|
static clone(cache, { light = false } = {}) {
|
|
13244
13283
|
const clone = new DataSourceCache();
|
|
@@ -13500,6 +13539,32 @@ var DataSourceApiImpl = class {
|
|
|
13500
13539
|
const { indexer } = this.getState();
|
|
13501
13540
|
return (_a = indexer.getDataForPrimaryKey(id)) != null ? _a : null;
|
|
13502
13541
|
};
|
|
13542
|
+
/**
|
|
13543
|
+
* Replaces all data in the DataSource with the provided data.
|
|
13544
|
+
* @param data - The new data to replace the existing data with.
|
|
13545
|
+
* @param options - Additional options for the operation.
|
|
13546
|
+
* @param options.flush - If true, the mutations will be flushed immediately.
|
|
13547
|
+
* @param options.metadata - Additional metadata for the operation.
|
|
13548
|
+
* @returns A promise that resolves when the operation is complete.
|
|
13549
|
+
*/
|
|
13550
|
+
this.replaceAllData = (data, options) => {
|
|
13551
|
+
this.batchOperation({
|
|
13552
|
+
type: "replace-all",
|
|
13553
|
+
array: data,
|
|
13554
|
+
metadata: options == null ? void 0 : options.metadata
|
|
13555
|
+
});
|
|
13556
|
+
return this.addDataArray(data, options);
|
|
13557
|
+
};
|
|
13558
|
+
/**
|
|
13559
|
+
* Clears all data in the DataSource.
|
|
13560
|
+
* @param options - Additional options for the operation.
|
|
13561
|
+
* @param options.flush - If true, the mutations will be flushed immediately.
|
|
13562
|
+
* @param options.metadata - Additional metadata for the operation.
|
|
13563
|
+
* @returns A promise that resolves when the operation is complete.
|
|
13564
|
+
*/
|
|
13565
|
+
this.clearAllData = (options) => {
|
|
13566
|
+
return this.replaceAllData([], options);
|
|
13567
|
+
};
|
|
13503
13568
|
this.updateData = (data, options) => {
|
|
13504
13569
|
return this.updateDataArray([data], options);
|
|
13505
13570
|
};
|
|
@@ -13695,12 +13760,12 @@ var DataSourceApiImpl = class {
|
|
|
13695
13760
|
}, delay);
|
|
13696
13761
|
}
|
|
13697
13762
|
}
|
|
13763
|
+
if (operation.type === "replace-all") {
|
|
13764
|
+
this.pendingOperations.length = 0;
|
|
13765
|
+
}
|
|
13698
13766
|
this.pendingOperations.push(operation);
|
|
13699
13767
|
return this.pendingPromise;
|
|
13700
13768
|
}
|
|
13701
|
-
batchOperations(operations) {
|
|
13702
|
-
this.pendingOperations.push(...operations);
|
|
13703
|
-
}
|
|
13704
13769
|
commitOperations(operations) {
|
|
13705
13770
|
if (!operations.length) {
|
|
13706
13771
|
return;
|
|
@@ -13740,14 +13805,21 @@ var DataSourceApiImpl = class {
|
|
|
13740
13805
|
position2 = "after";
|
|
13741
13806
|
});
|
|
13742
13807
|
break;
|
|
13808
|
+
case "replace-all":
|
|
13809
|
+
cache.resetDataSource(operation.metadata);
|
|
13810
|
+
break;
|
|
13743
13811
|
}
|
|
13744
13812
|
});
|
|
13745
13813
|
this.actions.cache = cache;
|
|
13746
13814
|
}
|
|
13815
|
+
flush() {
|
|
13816
|
+
return this.commit();
|
|
13817
|
+
}
|
|
13747
13818
|
commit() {
|
|
13748
13819
|
this.commitOperations(this.pendingOperations);
|
|
13749
13820
|
this.pendingOperations.length = 0;
|
|
13750
|
-
|
|
13821
|
+
const pendingPromise = this.pendingPromise;
|
|
13822
|
+
if (pendingPromise && this.resolvePendingPromise) {
|
|
13751
13823
|
const resolve = this.resolvePendingPromise;
|
|
13752
13824
|
requestAnimationFrame(() => {
|
|
13753
13825
|
resolve(true);
|
|
@@ -13755,6 +13827,7 @@ var DataSourceApiImpl = class {
|
|
|
13755
13827
|
this.pendingPromise = null;
|
|
13756
13828
|
this.resolvePendingPromise = null;
|
|
13757
13829
|
}
|
|
13830
|
+
return pendingPromise || Promise.resolve(true);
|
|
13758
13831
|
}
|
|
13759
13832
|
};
|
|
13760
13833
|
function getCacheAffectedParts(state) {
|
|
@@ -19736,7 +19809,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19736
19809
|
}
|
|
19737
19810
|
let valid2 = isValidLicense(licenseKey, {
|
|
19738
19811
|
publishedAt: 1624970570587,
|
|
19739
|
-
version: "5.0.0-canary.
|
|
19812
|
+
version: "5.0.0-canary.3"
|
|
19740
19813
|
});
|
|
19741
19814
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19742
19815
|
return true;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/infinite-table/infinite-react/issues"
|
|
27
27
|
},
|
|
28
|
-
"version": "5.0.0-canary.
|
|
28
|
+
"version": "5.0.0-canary.3",
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"module": "index.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Commercial & Open Source",
|
|
36
36
|
"//": "will be updated at build time",
|
|
37
|
-
"publishedAt":
|
|
37
|
+
"publishedAt": 1727210493082
|
|
38
38
|
}
|