@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.js CHANGED
@@ -4406,10 +4406,6 @@ var useRerender = () => {
4406
4406
  ];
4407
4407
  };
4408
4408
 
4409
- // src/components/InfiniteTable/components/ActiveCellIndicator.css.ts
4410
- 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" };
4411
- 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";
4412
-
4413
4409
  // ../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js
4414
4410
  function toPrimitive(t, r) {
4415
4411
  if ("object" != typeof t || !t)
@@ -4518,6 +4514,10 @@ var createRuntimeFn = (config) => {
4518
4514
  return runtimeFn;
4519
4515
  };
4520
4516
 
4517
+ // src/components/InfiniteTable/components/ActiveCellIndicator.css.ts
4518
+ 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: [] });
4519
+ 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";
4520
+
4521
4521
  // src/components/InfiniteTable/components/ActiveRowIndicator.css.ts
4522
4522
  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: [] });
4523
4523
 
@@ -4655,7 +4655,9 @@ var ActiveCellIndicatorFn = (props) => {
4655
4655
  "div",
4656
4656
  {
4657
4657
  "data-name": "active-cell-indicator",
4658
- className: `${baseCls2} ${active ? ActiveCellIndicatorCls.visible : ActiveCellIndicatorCls.hidden}`
4658
+ className: `${baseCls2} ${ActiveCellIndicatorRecipe({
4659
+ visible: active
4660
+ })}`
4659
4661
  }
4660
4662
  )
4661
4663
  )
@@ -5396,22 +5398,22 @@ var import_react18 = require("react");
5396
5398
 
5397
5399
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
5398
5400
  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";
5399
- var HeaderCellContentRecipe = createRuntimeFn({ defaultClassName: "header_HeaderCellContentRecipe__12zfob122 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__12zfob123", true: "header_HeaderCellContentRecipe_filtered_true__12zfob124" }, verticalAlign: { start: "header_HeaderCellContentRecipe_verticalAlign_start__12zfob125", end: "header_HeaderCellContentRecipe_verticalAlign_end__12zfob126", center: "header_HeaderCellContentRecipe_verticalAlign_center__12zfob127" }, align: { start: "header_HeaderCellContentRecipe_align_start__12zfob128", end: "header_HeaderCellContentRecipe_align_end__12zfob129", center: "header_HeaderCellContentRecipe_align_center__12zfob12a" } }, defaultVariants: {}, compoundVariants: [] });
5401
+ 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: [] });
5400
5402
  var HeaderCellProxy = "header_HeaderCellProxy__12zfob1n utilities_whiteSpace_nowrap__16lm1iw23 utilities_textOverflow_ellipsis__16lm1iw24 utilities_overflow_hidden__16lm1iw1x";
5401
- 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: "header_HeaderCellRecipe_groupRow_false__12zfob110", true: "header_HeaderCellRecipe_groupRow_true__12zfob111" }, groupCell: { false: "header_HeaderCellRecipe_groupCell_false__12zfob112", true: "header_HeaderCellRecipe_groupCell_true__12zfob113" }, align: { start: "header_HeaderCellRecipe_align_start__12zfob114", end: "header_HeaderCellRecipe_align_end__12zfob115", center: "header_HeaderCellRecipe_align_center__12zfob116" }, verticalAlign: { start: "header_HeaderCellRecipe_verticalAlign_start__12zfob117", end: "header_HeaderCellRecipe_verticalAlign_end__12zfob118", center: "header_HeaderCellRecipe_verticalAlign_center__12zfob119" }, zebra: { false: "header_HeaderCellRecipe_zebra_false__12zfob11a", even: "header_HeaderCellRecipe_zebra_even__12zfob11b", odd: "header_HeaderCellRecipe_zebra_odd__12zfob11c" }, dragging: { true: "header_HeaderCellRecipe_dragging_true__12zfob11d", false: "header_HeaderCellRecipe_dragging_false__12zfob11e" }, first: { true: "header_HeaderCellRecipe_first_true__12zfob11f", false: "header_HeaderCellRecipe_first_false__12zfob11g" }, last: { true: "header_HeaderCellRecipe_last_true__12zfob11h", false: "header_HeaderCellRecipe_last_false__12zfob11i" }, groupByField: { true: "header_HeaderCellRecipe_groupByField_true__12zfob11j", false: "header_HeaderCellRecipe_groupByField_false__12zfob11k" }, firstInCategory: { true: "header_HeaderCellRecipe_firstInCategory_true__12zfob11l", false: "header_HeaderCellRecipe_firstInCategory_false__12zfob11m" }, lastInCategory: { true: "header_HeaderCellRecipe_lastInCategory_true__12zfob11n", false: "header_HeaderCellRecipe_lastInCategory_false__12zfob11o" }, pinned: { start: "header_HeaderCellRecipe_pinned_start__12zfob11p", end: "header_HeaderCellRecipe_pinned_end__12zfob11q", false: "header_HeaderCellRecipe_pinned_false__12zfob11r" }, filtered: { true: "header_HeaderCellRecipe_filtered_true__12zfob11s", false: "header_HeaderCellRecipe_filtered_false__12zfob11t" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "header_HeaderCellRecipe_compound_0__12zfob11u"], [{ pinned: "end", firstInCategory: true }, "header_HeaderCellRecipe_compound_1__12zfob11v"], [{ pinned: false, lastInCategory: true }, "header_HeaderCellRecipe_compound_2__12zfob11w"]] });
5403
+ 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"]] });
5402
5404
  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"]] });
5403
- var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12k utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
5405
+ var HeaderFilterEditorCls = "header_HeaderFilterEditorCls__12zfob12m utilities_width_100%__16lm1iw1b utilities_height_100%__16lm1iw19";
5404
5406
  var HeaderFilterIconIndexCls = "header_HeaderFilterIconIndexCls__12zfob17";
5405
- var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12g utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
5406
- var HeaderFilterOperatorIconRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterOperatorIconRecipe__12zfob12h utilities_position_relative__16lm1iw1 utilities_top_0__16lm1iw1c", variantClassNames: { disabled: { true: "header_HeaderFilterOperatorIconRecipe_disabled_true__12zfob12i", false: "header_HeaderFilterOperatorIconRecipe_disabled_false__12zfob12j" } }, defaultVariants: {}, compoundVariants: [] });
5407
- var HeaderFilterRecipe = createRuntimeFn({ defaultClassName: "header_HeaderFilterRecipe__12zfob12d utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_stretch__16lm1iw1r utilities_position_relative__16lm1iw1", variantClassNames: { active: { true: "header_HeaderFilterRecipe_active_true__12zfob12e", false: "header_HeaderFilterRecipe_active_false__12zfob12f" } }, defaultVariants: {}, compoundVariants: [] });
5408
- var HeaderGroupCls = "header_HeaderGroupCls__12zfob12c utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
5409
- var HeaderMenuIconCls = createRuntimeFn({ defaultClassName: "header_HeaderMenuIconCls__12zfob11x 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__12zfob11y" }, reserveSpaceWhenHidden: { true: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_true__12zfob11z", false: "header_HeaderMenuIconCls_reserveSpaceWhenHidden_false__12zfob120" } }, defaultVariants: {}, compoundVariants: [[{ menuVisible: true, reserveSpaceWhenHidden: false }, "header_HeaderMenuIconCls_compound_0__12zfob121"]] });
5407
+ var HeaderFilterOperatorCls = "header_HeaderFilterOperatorCls__12zfob12i utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q utilities_position_relative__16lm1iw1";
5408
+ 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: [] });
5409
+ 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: [] });
5410
+ var HeaderGroupCls = "header_HeaderGroupCls__12zfob12e utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o utilities_alignItems_center__16lm1iw1q";
5411
+ 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"]] });
5410
5412
  var HeaderScrollbarPlaceholderCls = "header_HeaderScrollbarPlaceholderCls__12zfob18 utilities_position_absolute__16lm1iw2";
5411
5413
  var HeaderSortIconCls = "utilities_position_relative__16lm1iw1";
5412
5414
  var HeaderSortIconIndexCls = "header_HeaderSortIconIndexCls__12zfob16";
5413
5415
  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: [] });
5414
- var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12b utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
5416
+ var HeaderWrapperCls = "header_HeaderWrapperCls__12zfob12d utilities_overflow_hidden__16lm1iw1x utilities_position_relative__16lm1iw1 utilities_display_flex__16lm1iwz utilities_flexFlow_row__16lm1iw1o";
5415
5417
 
5416
5418
  // src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts
5417
5419
  var InfiniteTableIconClassName = "InfiniteTableIcon";
@@ -6843,7 +6845,7 @@ var defaultFilterTypes2 = getFilterTypes();
6843
6845
 
6844
6846
  // src/components/InfiniteTable/hooks/useCellClassName.ts
6845
6847
  function useCellClassName(column, baseClasses, variants, extraFlags) {
6846
- var _a, _b;
6848
+ var _a, _b, _c;
6847
6849
  const result = [...baseClasses];
6848
6850
  const variantObject = {
6849
6851
  filtered: column.computedFiltered,
@@ -6858,6 +6860,7 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
6858
6860
  rowActive: extraFlags.rowActive,
6859
6861
  dragging: extraFlags.dragging,
6860
6862
  firstRow: (_b = extraFlags.firstRow) != null ? _b : false,
6863
+ firstRowInHorizontalLayoutPage: (_c = extraFlags.firstRowInHorizontalLayoutPage) != null ? _c : false,
6861
6864
  rowDisabled: extraFlags.rowDisabled,
6862
6865
  groupRow: extraFlags.groupRow,
6863
6866
  groupCell: extraFlags.groupCell,
@@ -6891,6 +6894,11 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
6891
6894
  if (extraFlags.firstRow) {
6892
6895
  result.push(...baseClasses.map((c) => `${c}--first-row`));
6893
6896
  }
6897
+ if (extraFlags.firstRowInHorizontalLayoutPage) {
6898
+ result.push(
6899
+ ...baseClasses.map((c) => `${c}--first-row-in-horizontal-layout-page`)
6900
+ );
6901
+ }
6894
6902
  if (extraFlags.rowDisabled) {
6895
6903
  result.push(...baseClasses.map((c) => `${c}--disabled`));
6896
6904
  }
@@ -8116,7 +8124,7 @@ function objectValuesExcept(obj, exceptList) {
8116
8124
 
8117
8125
  // src/components/InfiniteTable/components/cell.css.ts
8118
8126
  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";
8119
- 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: "cell_ColumnCellRecipe_lastInCategory_true__1eexc2a1g", false: "cell_ColumnCellRecipe_lastInCategory_false__1eexc2a1h" }, pinned: { start: "cell_ColumnCellRecipe_pinned_start__1eexc2a1i", end: "cell_ColumnCellRecipe_pinned_end__1eexc2a1j", false: "cell_ColumnCellRecipe_pinned_false__1eexc2a1k" }, filtered: { true: "cell_ColumnCellRecipe_filtered_true__1eexc2a1l", false: "cell_ColumnCellRecipe_filtered_false__1eexc2a1m" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "cell_ColumnCellRecipe_compound_0__1eexc2a1n"], [{ pinned: "start", firstInCategory: true }, "cell_ColumnCellRecipe_compound_1__1eexc2a1o"], [{ pinned: "end", firstInCategory: true }, "cell_ColumnCellRecipe_compound_2__1eexc2a1p"], [{ pinned: "end", lastInCategory: true }, "cell_ColumnCellRecipe_compound_3__1eexc2a1q"], [{ align: "center", groupCell: false }, "cell_ColumnCellRecipe_compound_4__1eexc2a1r"], [{ rowDisabled: true, zebra: "odd" }, "cell_ColumnCellRecipe_compound_5__1eexc2a1s"]] });
8127
+ 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"]] });
8120
8128
  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: [] });
8121
8129
  var SelectionCheckboxCls = "cell_SelectionCheckboxCls__1eexc2a7";
8122
8130
 
@@ -8827,6 +8835,7 @@ function InfiniteTableColumnCellFn(props) {
8827
8835
  if (inEdit) {
8828
8836
  return null;
8829
8837
  }
8838
+ renderParamRef.current = renderParam;
8830
8839
  if (renderFunctions.renderGroupIcon) {
8831
8840
  renderParam.renderBag.groupIcon = /* @__PURE__ */ React36.createElement(
8832
8841
  RenderCellHookComponent,
@@ -9040,6 +9049,7 @@ function InfiniteTableColumnCellFn(props) {
9040
9049
  bottom: bottomSelectionBorder
9041
9050
  } : null;
9042
9051
  const afterChildren = editor;
9052
+ const theChildren = renderChildren();
9043
9053
  const cellProps = {
9044
9054
  domRef,
9045
9055
  cellType: "body",
@@ -9070,6 +9080,7 @@ function InfiniteTableColumnCellFn(props) {
9070
9080
  cellSelected,
9071
9081
  rowSelected,
9072
9082
  firstRow: rowInfo.indexInAll === 0,
9083
+ firstRowInHorizontalLayoutPage: rowIndexInHorizontalLayoutPage === 0,
9073
9084
  groupRow: rowInfo.isGroupRow,
9074
9085
  groupCell: rowInfo.isGroupRow ? !!column.groupByForColumn : false,
9075
9086
  rowExpanded: rowInfo.isGroupRow ? !rowInfo.collapsed : false
@@ -9078,7 +9089,7 @@ function InfiniteTableColumnCellFn(props) {
9078
9089
  colClassName,
9079
9090
  rowComputedClassName
9080
9091
  ),
9081
- renderChildren
9092
+ renderChildren: (0, import_react25.useCallback)(() => theChildren, [renderChildren])
9082
9093
  };
9083
9094
  const ContextProvider = InfiniteTableColumnCellContext.Provider;
9084
9095
  return (
@@ -9980,6 +9991,7 @@ function InfiniteTableHeaderCell(props) {
9980
9991
  zebra: false,
9981
9992
  rowActive: false,
9982
9993
  firstRow: true,
9994
+ firstRowInHorizontalLayoutPage: true,
9983
9995
  groupCell: false,
9984
9996
  groupRow: false,
9985
9997
  rowExpanded: false
@@ -10870,7 +10882,7 @@ function lazyGroup(groupParams, rootData) {
10870
10882
  rootData.visitDepthFirst(
10871
10883
  (lazyGroupRowInfo, keys, _index, next) => {
10872
10884
  const [_rootKey, ...currentGroupKeys] = keys;
10873
- const dataArray = lazyGroupRowInfo.children;
10885
+ let dataArray = lazyGroupRowInfo.children;
10874
10886
  const current = deepMap.get(currentGroupKeys);
10875
10887
  if (current) {
10876
10888
  current.cache = lazyGroupRowInfo.cache;
@@ -10893,10 +10905,11 @@ function lazyGroup(groupParams, rootData) {
10893
10905
  );
10894
10906
  }
10895
10907
  }
10896
- indexer.indexArray(dataArray, {
10908
+ const res = indexer.indexArray(dataArray, {
10897
10909
  toPrimaryKey,
10898
10910
  cache
10899
10911
  });
10912
+ dataArray = res;
10900
10913
  }
10901
10914
  return next == null ? void 0 : next();
10902
10915
  }
@@ -12889,11 +12902,15 @@ var Indexer = class {
12889
12902
  };
12890
12903
  this.indexArray = (arr, options) => {
12891
12904
  const { cache, toPrimaryKey } = options;
12905
+ if (cache && cache.shouldResetDataSource()) {
12906
+ this.clear();
12907
+ arr = [];
12908
+ }
12892
12909
  if (cache && !cache.isEmpty()) {
12893
12910
  arr = arr.concat();
12894
12911
  }
12895
12912
  if (!arr.length && cache) {
12896
- const cacheInfo = [...cache.getMutations().values()].flatMap((x) => x);
12913
+ const cacheInfo = cache.getMutationsArray();
12897
12914
  if (cacheInfo && cacheInfo.length) {
12898
12915
  for (let cacheIndex = 0, cacheLength = cacheInfo.length; cacheIndex < cacheLength; cacheIndex++) {
12899
12916
  const info = cacheInfo[cacheIndex];
@@ -13206,6 +13223,7 @@ function getPivotColumnsAndColumnGroups({
13206
13223
  }
13207
13224
 
13208
13225
  // src/components/DataSource/DataSourceCache.ts
13226
+ var CLEAR_SYMBOL = Symbol("CLEAR");
13209
13227
  var DataSourceCache = class {
13210
13228
  constructor() {
13211
13229
  this.affectedFields = /* @__PURE__ */ new Set();
@@ -13259,6 +13277,21 @@ var DataSourceCache = class {
13259
13277
  });
13260
13278
  this.primaryKeyToData.set(primaryKey, value);
13261
13279
  };
13280
+ this.resetDataSource = (metadata) => {
13281
+ this.clear();
13282
+ this.allFieldsAffected = true;
13283
+ const pk = CLEAR_SYMBOL;
13284
+ const value = this.primaryKeyToData.get(pk) || [];
13285
+ value.push({
13286
+ type: "clear-all",
13287
+ primaryKey: void 0,
13288
+ metadata
13289
+ });
13290
+ this.primaryKeyToData.set(pk, value);
13291
+ };
13292
+ this.shouldResetDataSource = () => {
13293
+ return this.primaryKeyToData.has(CLEAR_SYMBOL);
13294
+ };
13262
13295
  this.clear = () => {
13263
13296
  this.allFieldsAffected = false;
13264
13297
  this.affectedFields.clear();
@@ -13274,9 +13307,15 @@ var DataSourceCache = class {
13274
13307
  const data = this.primaryKeyToData.get(primaryKey);
13275
13308
  return data;
13276
13309
  };
13310
+ this.getMutationsCount = () => {
13311
+ return this.primaryKeyToData.size;
13312
+ };
13277
13313
  this.getMutations = () => {
13278
13314
  return new Map(this.primaryKeyToData);
13279
13315
  };
13316
+ this.getMutationsArray = () => {
13317
+ return Array.from(this.primaryKeyToData.values()).flat();
13318
+ };
13280
13319
  }
13281
13320
  static clone(cache, { light = false } = {}) {
13282
13321
  const clone = new DataSourceCache();
@@ -13538,6 +13577,32 @@ var DataSourceApiImpl = class {
13538
13577
  const { indexer } = this.getState();
13539
13578
  return (_a = indexer.getDataForPrimaryKey(id)) != null ? _a : null;
13540
13579
  };
13580
+ /**
13581
+ * Replaces all data in the DataSource with the provided data.
13582
+ * @param data - The new data to replace the existing data with.
13583
+ * @param options - Additional options for the operation.
13584
+ * @param options.flush - If true, the mutations will be flushed immediately.
13585
+ * @param options.metadata - Additional metadata for the operation.
13586
+ * @returns A promise that resolves when the operation is complete.
13587
+ */
13588
+ this.replaceAllData = (data, options) => {
13589
+ this.batchOperation({
13590
+ type: "replace-all",
13591
+ array: data,
13592
+ metadata: options == null ? void 0 : options.metadata
13593
+ });
13594
+ return this.addDataArray(data, options);
13595
+ };
13596
+ /**
13597
+ * Clears all data in the DataSource.
13598
+ * @param options - Additional options for the operation.
13599
+ * @param options.flush - If true, the mutations will be flushed immediately.
13600
+ * @param options.metadata - Additional metadata for the operation.
13601
+ * @returns A promise that resolves when the operation is complete.
13602
+ */
13603
+ this.clearAllData = (options) => {
13604
+ return this.replaceAllData([], options);
13605
+ };
13541
13606
  this.updateData = (data, options) => {
13542
13607
  return this.updateDataArray([data], options);
13543
13608
  };
@@ -13733,12 +13798,12 @@ var DataSourceApiImpl = class {
13733
13798
  }, delay);
13734
13799
  }
13735
13800
  }
13801
+ if (operation.type === "replace-all") {
13802
+ this.pendingOperations.length = 0;
13803
+ }
13736
13804
  this.pendingOperations.push(operation);
13737
13805
  return this.pendingPromise;
13738
13806
  }
13739
- batchOperations(operations) {
13740
- this.pendingOperations.push(...operations);
13741
- }
13742
13807
  commitOperations(operations) {
13743
13808
  if (!operations.length) {
13744
13809
  return;
@@ -13778,14 +13843,21 @@ var DataSourceApiImpl = class {
13778
13843
  position2 = "after";
13779
13844
  });
13780
13845
  break;
13846
+ case "replace-all":
13847
+ cache.resetDataSource(operation.metadata);
13848
+ break;
13781
13849
  }
13782
13850
  });
13783
13851
  this.actions.cache = cache;
13784
13852
  }
13853
+ flush() {
13854
+ return this.commit();
13855
+ }
13785
13856
  commit() {
13786
13857
  this.commitOperations(this.pendingOperations);
13787
13858
  this.pendingOperations.length = 0;
13788
- if (this.pendingPromise && this.resolvePendingPromise) {
13859
+ const pendingPromise = this.pendingPromise;
13860
+ if (pendingPromise && this.resolvePendingPromise) {
13789
13861
  const resolve = this.resolvePendingPromise;
13790
13862
  requestAnimationFrame(() => {
13791
13863
  resolve(true);
@@ -13793,6 +13865,7 @@ var DataSourceApiImpl = class {
13793
13865
  this.pendingPromise = null;
13794
13866
  this.resolvePendingPromise = null;
13795
13867
  }
13868
+ return pendingPromise || Promise.resolve(true);
13796
13869
  }
13797
13870
  };
13798
13871
  function getCacheAffectedParts(state) {
@@ -19765,7 +19838,7 @@ var useLicense = (licenseKey = "") => {
19765
19838
  }
19766
19839
  let valid2 = isValidLicense(licenseKey, {
19767
19840
  publishedAt: 1624970570587,
19768
- version: "5.0.0-canary.1"
19841
+ version: "5.0.0-canary.3"
19769
19842
  });
19770
19843
  if (!licenseKey && !valid2 && isInsidePlayground) {
19771
19844
  return true;