@infinite-table/infinite-react 0.2.16 → 0.2.17

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.
Files changed (4) hide show
  1. package/index.d.ts +4 -0
  2. package/index.esm.js +306 -264
  3. package/index.js +374 -329
  4. package/package.json +2 -2
package/index.js CHANGED
@@ -657,7 +657,7 @@ function debounce(fn, { wait }) {
657
657
  }
658
658
 
659
659
  // src/components/InfiniteTable/index.tsx
660
- var React35 = __toModule(require("react"));
660
+ var React34 = __toModule(require("react"));
661
661
 
662
662
  // src/components/InfiniteTable/internalProps.ts
663
663
  var rootClassName = "Infinite";
@@ -1321,6 +1321,7 @@ var forwardProps = (setupState) => {
1321
1321
  sortable: (sortable) => sortable != null ? sortable : true,
1322
1322
  hideEmptyGroupColumns: (hideEmptyGroupColumns) => hideEmptyGroupColumns != null ? hideEmptyGroupColumns : false,
1323
1323
  pivotTotalColumnPosition: (pivotTotalColumnPosition) => pivotTotalColumnPosition != null ? pivotTotalColumnPosition : "end",
1324
+ pivotGrandTotalColumnPosition: 1,
1324
1325
  licenseKey: (licenseKey) => licenseKey || "",
1325
1326
  columnOrder: (columnOrder) => columnOrder != null ? columnOrder : true,
1326
1327
  header: (header) => header != null ? header : true,
@@ -2155,7 +2156,7 @@ var useComputedVisibleColumns = ({
2155
2156
  var sortAscending = (a, b) => a - b;
2156
2157
 
2157
2158
  // src/components/InfiniteTable/hooks/useComputed.ts
2158
- var import_react18 = __toModule(require("react"));
2159
+ var import_react19 = __toModule(require("react"));
2159
2160
 
2160
2161
  // src/components/hooks/useComponentState/index.tsx
2161
2162
  var React2 = __toModule(require("react"));
@@ -2539,10 +2540,10 @@ function useColumnGroups() {
2539
2540
  }
2540
2541
 
2541
2542
  // src/components/InfiniteTable/hooks/useColumnsWhen.ts
2542
- var import_react17 = __toModule(require("react"));
2543
+ var import_react18 = __toModule(require("react"));
2543
2544
 
2544
2545
  // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
2545
- var React7 = __toModule(require("react"));
2546
+ var React6 = __toModule(require("react"));
2546
2547
 
2547
2548
  // src/utils/join.ts
2548
2549
  var join = (...args) => args.filter((x) => !!`${x}`).join(" ");
@@ -2614,9 +2615,8 @@ var willChange = { transform: "_16lm1iw19" };
2614
2615
  var zIndex = { "1": "_16lm1iwe", "10": "_16lm1iwf", "1000": "_16lm1iwg", "10000": "_16lm1iwh", "100000": "_16lm1iwi" };
2615
2616
 
2616
2617
  // src/components/InfiniteTable/utils/RenderHookComponent.tsx
2617
- var React6 = __toModule(require("react"));
2618
2618
  function RenderHookComponent(props) {
2619
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, props.render(props.renderParam));
2619
+ return props.render(props.renderParam);
2620
2620
  }
2621
2621
 
2622
2622
  // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
@@ -2629,7 +2629,7 @@ function getGroupColumnRender({
2629
2629
  var _a, _b, _c;
2630
2630
  let { value, rowInfo, column, groupBy, pivotBy } = renderOptions;
2631
2631
  if (column.renderValue) {
2632
- value = /* @__PURE__ */ React7.createElement(RenderHookComponent, {
2632
+ value = /* @__PURE__ */ React6.createElement(RenderHookComponent, {
2633
2633
  render: column.renderValue,
2634
2634
  renderParam: renderOptions
2635
2635
  });
@@ -2658,20 +2658,20 @@ function getGroupColumnRender({
2658
2658
  let icon = null;
2659
2659
  const showExpanderIcon = pivotBy ? (((_b = groupRowInfo.groupKeys) == null ? void 0 : _b.length) || 0) < (groupBy == null ? void 0 : groupBy.length) : (((_c = groupRowInfo.groupKeys) == null ? void 0 : _c.length) || 0) <= (groupBy == null ? void 0 : groupBy.length);
2660
2660
  if (showExpanderIcon) {
2661
- const defaultIcon = /* @__PURE__ */ React7.createElement(ExpanderIcon, {
2661
+ const defaultIcon = /* @__PURE__ */ React6.createElement(ExpanderIcon, {
2662
2662
  expanded: !collapsed,
2663
2663
  onChange: () => {
2664
2664
  toggleGroupRow(groupKeys);
2665
2665
  }
2666
2666
  });
2667
- icon = column.renderGroupIcon ? /* @__PURE__ */ React7.createElement(RenderHookComponent, {
2667
+ icon = column.renderGroupIcon ? /* @__PURE__ */ React6.createElement(RenderHookComponent, {
2668
2668
  render: column.renderGroupIcon,
2669
2669
  renderParam: Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)
2670
2670
  }) : defaultIcon;
2671
2671
  }
2672
- return /* @__PURE__ */ React7.createElement("div", {
2672
+ return /* @__PURE__ */ React6.createElement("div", {
2673
2673
  className: join(display.flex, alignItems.center)
2674
- }, icon, /* @__PURE__ */ React7.createElement("div", {
2674
+ }, icon, /* @__PURE__ */ React6.createElement("div", {
2675
2675
  className: cssEllipsisClassName
2676
2676
  }, value != null ? value : null));
2677
2677
  };
@@ -2719,7 +2719,7 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
2719
2719
  let icon = null;
2720
2720
  const showExpanderIcon = pivotBy ? (((_a = rowInfo.groupKeys) == null ? void 0 : _a.length) || 0) < (groupBy == null ? void 0 : groupBy.length) : (((_b = rowInfo.groupKeys) == null ? void 0 : _b.length) || 0) <= (groupBy == null ? void 0 : groupBy.length);
2721
2721
  if (showExpanderIcon) {
2722
- const defaultIcon = /* @__PURE__ */ React7.createElement(ExpanderIcon, {
2722
+ const defaultIcon = /* @__PURE__ */ React6.createElement(ExpanderIcon, {
2723
2723
  expanded: !collapsed,
2724
2724
  onChange: () => {
2725
2725
  toggleGroupRow(rowInfo.groupKeys);
@@ -2727,9 +2727,9 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
2727
2727
  });
2728
2728
  icon = column.renderGroupIcon ? column.renderGroupIcon(Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)) : defaultIcon;
2729
2729
  }
2730
- return /* @__PURE__ */ React7.createElement("div", {
2730
+ return /* @__PURE__ */ React6.createElement("div", {
2731
2731
  className: join(display.flex, alignItems.center, GroupRowExpanderCls)
2732
- }, icon, /* @__PURE__ */ React7.createElement("div", {
2732
+ }, icon, /* @__PURE__ */ React6.createElement("div", {
2733
2733
  className: cssEllipsisClassName
2734
2734
  }, value != null ? value : null));
2735
2735
  }
@@ -2744,11 +2744,32 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
2744
2744
  return generatedGroupColumn;
2745
2745
  }
2746
2746
 
2747
+ // src/components/InfiniteTable/hooks/useEffectWithRaf.ts
2748
+ var import_react14 = __toModule(require("react"));
2749
+ function useEffectWithRaf(fn, deps) {
2750
+ const rafId = (0, import_react14.useRef)(0);
2751
+ const removeFnRaf = (0, import_react14.useRef)();
2752
+ (0, import_react14.useEffect)(() => {
2753
+ rafId.current = requestAnimationFrame(() => {
2754
+ removeFnRaf.current = fn();
2755
+ });
2756
+ return () => {
2757
+ if (rafId.current) {
2758
+ cancelAnimationFrame(rafId.current);
2759
+ }
2760
+ if (typeof removeFnRaf.current === "function") {
2761
+ removeFnRaf.current();
2762
+ removeFnRaf.current = void 0;
2763
+ }
2764
+ };
2765
+ }, deps);
2766
+ }
2767
+
2747
2768
  // src/components/InfiniteTable/hooks/useToggleGroupRow.ts
2748
- var import_react16 = __toModule(require("react"));
2769
+ var import_react17 = __toModule(require("react"));
2749
2770
 
2750
2771
  // src/components/DataSource/index.tsx
2751
- var React8 = __toModule(require("react"));
2772
+ var React7 = __toModule(require("react"));
2752
2773
 
2753
2774
  // src/utils/multisort/sortTypes.ts
2754
2775
  var numberComparator = function(first, second) {
@@ -2825,7 +2846,7 @@ var getMultisortFunction = (sortInfo, get) => {
2825
2846
  };
2826
2847
 
2827
2848
  // src/components/DataSource/privateHooks/useLoadData.ts
2828
- var import_react15 = __toModule(require("react"));
2849
+ var import_react16 = __toModule(require("react"));
2829
2850
 
2830
2851
  // src/utils/DeepMap/once.ts
2831
2852
  function once(fn) {
@@ -2911,14 +2932,13 @@ var DeepMap = class {
2911
2932
  for (let i = 0, len = keys.length; i < len; i++) {
2912
2933
  const key = keys[i];
2913
2934
  const last = i === len - 1;
2935
+ const pair = currentMap.get(key) || {};
2914
2936
  if (last) {
2915
- const pair = currentMap.has(key) ? currentMap.get(key) : {};
2916
2937
  pair.revision = this.revision++;
2917
2938
  pair.value = value;
2918
2939
  currentMap.set(key, pair);
2919
2940
  this.length++;
2920
2941
  } else {
2921
- const pair = currentMap.has(key) ? currentMap.get(key) : {};
2922
2942
  if (!pair.map) {
2923
2943
  pair.map = new Map();
2924
2944
  currentMap.set(key, pair);
@@ -2929,7 +2949,6 @@ var DeepMap = class {
2929
2949
  return this;
2930
2950
  }
2931
2951
  get(keys) {
2932
- var _a;
2933
2952
  let currentMap = this.map;
2934
2953
  if (!keys.length) {
2935
2954
  keys = [this.emptyKey];
@@ -2937,10 +2956,10 @@ var DeepMap = class {
2937
2956
  for (let i = 0, len = keys.length; i < len; i++) {
2938
2957
  const key = keys[i];
2939
2958
  const last = i === len - 1;
2959
+ const pair = currentMap.get(key);
2940
2960
  if (last) {
2941
- return (_a = currentMap.get(key)) == null ? void 0 : _a.value;
2961
+ return pair ? pair.value : void 0;
2942
2962
  } else {
2943
- const pair = currentMap.get(key);
2944
2963
  if (!pair || !pair.map) {
2945
2964
  return;
2946
2965
  }
@@ -2978,8 +2997,8 @@ var DeepMap = class {
2978
2997
  for (let i = 0, len = keys.length; i < len; i++) {
2979
2998
  const key = keys[i];
2980
2999
  const last = i === len - 1;
3000
+ const pair = currentMap.get(key);
2981
3001
  if (last) {
2982
- const pair = currentMap.get(key);
2983
3002
  if (pair) {
2984
3003
  if (pair.hasOwnProperty("value")) {
2985
3004
  delete pair.value;
@@ -2996,7 +3015,6 @@ var DeepMap = class {
2996
3015
  }
2997
3016
  break;
2998
3017
  } else {
2999
- const pair = currentMap.get(key);
3000
3018
  if (!pair || !pair.map) {
3001
3019
  result = false;
3002
3020
  break;
@@ -3006,11 +3024,11 @@ var DeepMap = class {
3006
3024
  }
3007
3025
  }
3008
3026
  while (maps.length) {
3009
- let map2 = maps.pop();
3010
- let key = keys.pop();
3027
+ const map2 = maps.pop();
3028
+ const key = keys.pop();
3011
3029
  if (key && (map2 == null ? void 0 : map2.size) === 0) {
3012
- let parentMap = maps[maps.length - 1];
3013
- let pair = parentMap == null ? void 0 : parentMap.get(key);
3030
+ const parentMap = maps[maps.length - 1];
3031
+ const pair = parentMap == null ? void 0 : parentMap.get(key);
3014
3032
  if (pair) {
3015
3033
  delete pair.map;
3016
3034
  if (!pair.hasOwnProperty("value")) {
@@ -3029,11 +3047,10 @@ var DeepMap = class {
3029
3047
  for (let i = 0, len = keys.length; i < len; i++) {
3030
3048
  const key = keys[i];
3031
3049
  const last = i === len - 1;
3050
+ const pair = currentMap.get(key);
3032
3051
  if (last) {
3033
- const pair = currentMap.get(key);
3034
- return !!pair && pair.hasOwnProperty("value");
3052
+ return pair ? pair.hasOwnProperty("value") : false;
3035
3053
  } else {
3036
- const pair = currentMap.get(key);
3037
3054
  if (!pair || !pair.map) {
3038
3055
  return false;
3039
3056
  }
@@ -3501,12 +3518,12 @@ function enhancedFlatten(param) {
3501
3518
  }
3502
3519
 
3503
3520
  // src/components/hooks/useEffectWithChanges.ts
3504
- var import_react14 = __toModule(require("react"));
3521
+ var import_react15 = __toModule(require("react"));
3505
3522
  function useEffectWithChanges(fn, deps) {
3506
- const prevRef = (0, import_react14.useRef)({});
3507
- const oldValuesRef = (0, import_react14.useRef)({});
3523
+ const prevRef = (0, import_react15.useRef)({});
3524
+ const oldValuesRef = (0, import_react15.useRef)({});
3508
3525
  const oldValues = oldValuesRef.current;
3509
- const changesRef = (0, import_react14.useRef)({});
3526
+ const changesRef = (0, import_react15.useRef)({});
3510
3527
  const changes = changesRef.current;
3511
3528
  const useEffectDeps = [];
3512
3529
  for (let k in deps) {
@@ -3519,7 +3536,7 @@ function useEffectWithChanges(fn, deps) {
3519
3536
  }
3520
3537
  }
3521
3538
  prevRef.current = deps;
3522
- (0, import_react14.useEffect)(() => {
3539
+ (0, import_react15.useEffect)(() => {
3523
3540
  const changes2 = changesRef.current;
3524
3541
  const result = fn(changes2, oldValues);
3525
3542
  changesRef.current = {};
@@ -3687,12 +3704,12 @@ function useLoadData() {
3687
3704
  livePaginationCursor,
3688
3705
  cursorId: stateCursorId
3689
3706
  } = componentState;
3690
- const [scrollbars, setScrollbars] = (0, import_react15.useState)({
3707
+ const [scrollbars, setScrollbars] = (0, import_react16.useState)({
3691
3708
  vertical: false,
3692
3709
  horizontal: false
3693
3710
  });
3694
- const scrollbarsRef = (0, import_react15.useRef)(scrollbars);
3695
- (0, import_react15.useEffect)(() => {
3711
+ const scrollbarsRef = (0, import_react16.useRef)(scrollbars);
3712
+ (0, import_react16.useEffect)(() => {
3696
3713
  notifyScrollbarsChange.onChange((scrollbars2) => {
3697
3714
  if (!scrollbars2) {
3698
3715
  return;
@@ -3702,7 +3719,7 @@ function useLoadData() {
3702
3719
  });
3703
3720
  return () => notifyScrollbarsChange.destroy();
3704
3721
  }, [notifyScrollbarsChange]);
3705
- (0, import_react15.useEffect)(() => {
3722
+ (0, import_react16.useEffect)(() => {
3706
3723
  const frameId = requestAnimationFrame(() => {
3707
3724
  var _a;
3708
3725
  if (!((_a = scrollbarsRef.current) == null ? void 0 : _a.vertical) && livePaginationCursor) {
@@ -3711,7 +3728,7 @@ function useLoadData() {
3711
3728
  });
3712
3729
  return () => cancelAnimationFrame(frameId);
3713
3730
  }, [livePaginationCursor]);
3714
- (0, import_react15.useEffect)(() => {
3731
+ (0, import_react16.useEffect)(() => {
3715
3732
  const { livePaginationCursor: livePaginationCursor2, livePagination: livePagination2 } = getComponentState();
3716
3733
  if (!scrollbars.vertical && livePagination2) {
3717
3734
  if (livePaginationCursor2) {
@@ -3725,7 +3742,7 @@ function useLoadData() {
3725
3742
  pivotBy,
3726
3743
  cursorId: livePagination ? stateCursorId : null
3727
3744
  };
3728
- const initialRef = (0, import_react15.useRef)(true);
3745
+ const initialRef = (0, import_react16.useRef)(true);
3729
3746
  useLazyLoadRange();
3730
3747
  useEffectWithChanges(() => {
3731
3748
  const componentState2 = getComponentState();
@@ -3754,7 +3771,7 @@ function useLazyLoadRange() {
3754
3771
  componentActions: actions,
3755
3772
  componentState
3756
3773
  } = useComponentState();
3757
- const loadingCache = (0, import_react15.useMemo)(() => {
3774
+ const loadingCache = (0, import_react16.useMemo)(() => {
3758
3775
  return new Map();
3759
3776
  }, [componentState.data]);
3760
3777
  const {
@@ -3763,7 +3780,7 @@ function useLazyLoadRange() {
3763
3780
  dataArray,
3764
3781
  scrollStopDelayUpdatedByTable
3765
3782
  } = componentState;
3766
- const latestRenderRangeRef = (0, import_react15.useRef)(null);
3783
+ const latestRenderRangeRef = (0, import_react16.useRef)(null);
3767
3784
  const loadRange = (renderRange, cache = loadingCache) => {
3768
3785
  const componentState2 = getComponentState();
3769
3786
  renderRange = renderRange || latestRenderRangeRef.current;
@@ -3782,8 +3799,8 @@ function useLazyLoadRange() {
3782
3799
  componentActions: actions
3783
3800
  }, cache);
3784
3801
  };
3785
- const debouncedLoadRange = (0, import_react15.useMemo)(() => debounce(loadRange, { wait: scrollStopDelayUpdatedByTable }), [scrollStopDelayUpdatedByTable]);
3786
- (0, import_react15.useEffect)(() => {
3802
+ const debouncedLoadRange = (0, import_react16.useMemo)(() => debounce(loadRange, { wait: scrollStopDelayUpdatedByTable }), [scrollStopDelayUpdatedByTable]);
3803
+ (0, import_react16.useEffect)(() => {
3787
3804
  if (lazyLoadBatchSize && lazyLoadBatchSize > 0) {
3788
3805
  return notifyRenderRangeChange.onChange((renderRange) => {
3789
3806
  latestRenderRangeRef.current = renderRange;
@@ -3792,7 +3809,7 @@ function useLazyLoadRange() {
3792
3809
  }
3793
3810
  return;
3794
3811
  }, [lazyLoadBatchSize, loadingCache]);
3795
- (0, import_react15.useEffect)(() => {
3812
+ (0, import_react16.useEffect)(() => {
3796
3813
  if (lazyLoadBatchSize && lazyLoadBatchSize > 0) {
3797
3814
  debouncedLoadRange();
3798
3815
  }
@@ -4068,6 +4085,7 @@ function initSetupState2() {
4068
4085
  notifyScrollStop: buildSubscriptionCallback(),
4069
4086
  notifyRenderRangeChange: buildSubscriptionCallback(),
4070
4087
  pivotTotalColumnPosition: "end",
4088
+ pivotGrandTotalColumnPosition: false,
4071
4089
  scrollStopDelayUpdatedByTable: 100,
4072
4090
  originalLazyGroupData,
4073
4091
  originalLazyGroupDataChangeDetect: 0,
@@ -4255,6 +4273,7 @@ function getPivotColumnsAndColumnGroups({
4255
4273
  deepMap,
4256
4274
  pivotBy,
4257
4275
  pivotTotalColumnPosition,
4276
+ pivotGrandTotalColumnPosition,
4258
4277
  reducers = {},
4259
4278
  showSeparatePivotColumnForSingleAggregation = false
4260
4279
  }) {
@@ -4264,6 +4283,28 @@ function getPivotColumnsAndColumnGroups({
4264
4283
  });
4265
4284
  const columns = new Map([]);
4266
4285
  const columnGroups = new Map();
4286
+ const addGrandTotalColumns = once(function() {
4287
+ aggregationReducers.forEach((reducer, index) => {
4288
+ columns.set(`total:${reducer.id}`, prepareColumn({
4289
+ header: `${reducer.name || reducer.id} total`,
4290
+ pivotBy,
4291
+ pivotColumn: true,
4292
+ pivotTotalColumn: true,
4293
+ pivotAggregator: reducer,
4294
+ pivotAggregatorIndex: index,
4295
+ pivotGroupKeys: [],
4296
+ pivotGroupKey: "",
4297
+ pivotIndex: -1,
4298
+ valueGetter: ({ rowInfo }) => {
4299
+ var _a;
4300
+ return (_a = rowInfo.reducerResults) == null ? void 0 : _a[reducer.id];
4301
+ }
4302
+ }));
4303
+ });
4304
+ });
4305
+ if (!pivotLength && pivotTotalColumnPosition === "start" || pivotGrandTotalColumnPosition === "start") {
4306
+ addGrandTotalColumns();
4307
+ }
4267
4308
  const isSingleAggregationColumn = !showSeparatePivotColumnForSingleAggregation && aggregationReducers.length === 1;
4268
4309
  deepMap.visitDepthFirst((_value, keys, _indexInGroup, next) => {
4269
4310
  keys = [...keys];
@@ -4368,25 +4409,10 @@ function getPivotColumnsAndColumnGroups({
4368
4409
  next == null ? void 0 : next();
4369
4410
  }
4370
4411
  });
4371
- if (!pivotLength) {
4372
- aggregationReducers.forEach((reducer, index) => {
4373
- columns.set(`total:${reducer.id}`, prepareColumn({
4374
- header: `${reducer.name || reducer.id} total`,
4375
- pivotBy,
4376
- pivotColumn: true,
4377
- pivotTotalColumn: true,
4378
- pivotAggregator: reducer,
4379
- pivotAggregatorIndex: index,
4380
- pivotGroupKeys: [],
4381
- pivotGroupKey: "",
4382
- pivotIndex: -1,
4383
- valueGetter: ({ rowInfo }) => {
4384
- var _a;
4385
- return (_a = rowInfo.reducerResults) == null ? void 0 : _a[reducer.id];
4386
- }
4387
- }));
4388
- });
4412
+ if (!pivotLength && pivotTotalColumnPosition === "end" || pivotGrandTotalColumnPosition === "end") {
4413
+ addGrandTotalColumns();
4389
4414
  }
4415
+ console.log(columns.keys());
4390
4416
  const result = {
4391
4417
  columns,
4392
4418
  columnGroups
@@ -4417,7 +4443,7 @@ function toRowInfo(data, id, index) {
4417
4443
  };
4418
4444
  }
4419
4445
  function concludeReducer(params) {
4420
- var _a;
4446
+ var _a, _b;
4421
4447
  const { state, previousState } = params;
4422
4448
  const sortInfo = state.sortInfo;
4423
4449
  let shouldSort = !!(sortInfo == null ? void 0 : sortInfo.length) && !state.controlledSort;
@@ -4452,6 +4478,7 @@ function concludeReducer(params) {
4452
4478
  "pivotBy",
4453
4479
  "aggregationReducers",
4454
4480
  "pivotTotalColumnPosition",
4481
+ "pivotGrandTotalColumnPosition",
4455
4482
  "showSeparatePivotColumnForSingleAggregation",
4456
4483
  "sortInfo"
4457
4484
  ]);
@@ -4498,6 +4525,7 @@ function concludeReducer(params) {
4498
4525
  deepMap: groupResult.topLevelPivotColumns,
4499
4526
  pivotBy,
4500
4527
  pivotTotalColumnPosition: (_a = state.pivotTotalColumnPosition) != null ? _a : "end",
4528
+ pivotGrandTotalColumnPosition: (_b = state.pivotGrandTotalColumnPosition) != null ? _b : false,
4501
4529
  reducers: state.aggregationReducers,
4502
4530
  showSeparatePivotColumnForSingleAggregation: state.showSeparatePivotColumnForSingleAggregation
4503
4531
  }) : void 0;
@@ -4541,7 +4569,7 @@ function DataSourceWithContext(props) {
4541
4569
  if (typeof children === "function") {
4542
4570
  children = children(computedValues);
4543
4571
  }
4544
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, children);
4572
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, children);
4545
4573
  }
4546
4574
  var DataSourceRoot = getComponentStateRoot({
4547
4575
  initSetupState: initSetupState2,
@@ -4564,14 +4592,14 @@ function DataSourceCmp({ children }) {
4564
4592
  globalThis.getDataSourceState = getState;
4565
4593
  }
4566
4594
  useLoadData();
4567
- return /* @__PURE__ */ React8.createElement(DataSourceContext.Provider, {
4595
+ return /* @__PURE__ */ React7.createElement(DataSourceContext.Provider, {
4568
4596
  value: contextValue
4569
- }, /* @__PURE__ */ React8.createElement(DataSourceWithContext, {
4597
+ }, /* @__PURE__ */ React7.createElement(DataSourceWithContext, {
4570
4598
  children
4571
4599
  }));
4572
4600
  }
4573
4601
  function DataSource(props) {
4574
- return /* @__PURE__ */ React8.createElement(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(DataSourceCmp, {
4602
+ return /* @__PURE__ */ React7.createElement(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(DataSourceCmp, {
4575
4603
  children: props.children
4576
4604
  }));
4577
4605
  }
@@ -4579,7 +4607,7 @@ function DataSource(props) {
4579
4607
  // src/components/InfiniteTable/hooks/useToggleGroupRow.ts
4580
4608
  function useToggleGroupRow() {
4581
4609
  const { getState: getDataSourceState, componentActions: dataSourceActions } = useDataSourceContextValue();
4582
- const toggleGroupRow = (0, import_react16.useCallback)((groupKeys) => {
4610
+ const toggleGroupRow = (0, import_react17.useCallback)((groupKeys) => {
4583
4611
  const state = getDataSourceState();
4584
4612
  const newState = new GroupRowsState(state.groupRowsState);
4585
4613
  newState.toggleGroupRow(groupKeys);
@@ -4595,7 +4623,7 @@ function useToggleGroupRow() {
4595
4623
 
4596
4624
  // src/components/InfiniteTable/hooks/useColumnsWhen.ts
4597
4625
  function useGroupByMap(groupBy) {
4598
- const groupByMap = (0, import_react17.useMemo)(() => {
4626
+ const groupByMap = (0, import_react18.useMemo)(() => {
4599
4627
  return groupBy.reduce((acc, groupBy2, index) => {
4600
4628
  acc.set(groupBy2.field, {
4601
4629
  groupBy: groupBy2,
@@ -4612,15 +4640,24 @@ function useColumnsWhen() {
4612
4640
  componentActions: dataSourceActions
4613
4641
  } = useDataSourceContextValue();
4614
4642
  const {
4615
- componentState: { groupRenderStrategy, pivotTotalColumnPosition }
4643
+ componentState: {
4644
+ groupRenderStrategy,
4645
+ pivotTotalColumnPosition,
4646
+ pivotGrandTotalColumnPosition
4647
+ }
4616
4648
  } = useComponentState();
4617
4649
  const groupByMap = useGroupByMap(groupBy);
4618
- (0, import_react17.useEffect)(() => {
4650
+ (0, import_react18.useEffect)(() => {
4619
4651
  dataSourceActions.generateGroupRows = groupRenderStrategy !== "inline";
4620
4652
  }, [groupRenderStrategy]);
4621
- (0, import_react17.useEffect)(() => {
4653
+ (0, import_react18.useEffect)(() => {
4622
4654
  dataSourceActions.pivotTotalColumnPosition = pivotTotalColumnPosition;
4623
4655
  }, [pivotTotalColumnPosition]);
4656
+ (0, import_react18.useEffect)(() => {
4657
+ if (pivotGrandTotalColumnPosition != void 0) {
4658
+ dataSourceActions.pivotGrandTotalColumnPosition = pivotGrandTotalColumnPosition;
4659
+ }
4660
+ }, [pivotGrandTotalColumnPosition]);
4624
4661
  useColumnsWhenInlineGroupRenderStrategy(groupByMap);
4625
4662
  const { toggleGroupRow } = useColumnsWhenGrouping();
4626
4663
  useHideColumns(groupByMap);
@@ -4684,7 +4721,7 @@ function useColumnsWhenInlineGroupRenderStrategy(groupByMap) {
4684
4721
  });
4685
4722
  return computedColumns.size === 0 ? void 0 : computedColumns;
4686
4723
  }
4687
- (0, import_react17.useEffect)(() => {
4724
+ (0, import_react18.useEffect)(() => {
4688
4725
  const update = () => {
4689
4726
  componentActions.columnsWhenInlineGroupRenderStrategy = computeColumnsWhenInlineGroupRenderStrategy(columns, groupByMap, groupRenderStrategy, toggleGroupRow);
4690
4727
  };
@@ -4708,17 +4745,19 @@ function useColumnsWhenGrouping() {
4708
4745
  groupRenderStrategy,
4709
4746
  pivotColumns,
4710
4747
  pivotColumn,
4711
- pivotTotalColumnPosition
4748
+ pivotTotalColumnPosition,
4749
+ pivotGrandTotalColumnPosition
4712
4750
  }
4713
4751
  } = useComponentState();
4714
4752
  const toggleGroupRow = useToggleGroupRow();
4715
- (0, import_react17.useEffect)(() => {
4753
+ (0, import_react18.useEffect)(() => {
4716
4754
  const update = () => {
4717
4755
  const columnsWhenGrouping = getColumnsWhenGrouping({
4718
4756
  columns,
4719
4757
  groupColumn,
4720
4758
  pivotColumn,
4721
4759
  pivotTotalColumnPosition,
4760
+ pivotGrandTotalColumnPosition,
4722
4761
  groupRenderStrategy: groupRenderStrategy === "inline" ? "single-column" : groupRenderStrategy,
4723
4762
  groupBy,
4724
4763
  pivotBy,
@@ -4766,7 +4805,7 @@ function useHideColumns(groupByMap) {
4766
4805
  }
4767
4806
  } = useComponentState();
4768
4807
  const prevHideEmptyGroupColumns = usePrevious(hideEmptyGroupColumns);
4769
- (0, import_react17.useEffect)(() => {
4808
+ useEffectWithRaf(() => {
4770
4809
  if (groupRenderStrategy !== "multi-column") {
4771
4810
  return;
4772
4811
  }
@@ -4844,7 +4883,7 @@ function useHideColumns(groupByMap) {
4844
4883
  hideEmptyGroupColumns ? groupRowsState : null,
4845
4884
  hideEmptyGroupColumns
4846
4885
  ]);
4847
- (0, import_react17.useEffect)(() => {
4886
+ (0, import_react18.useEffect)(() => {
4848
4887
  const isGrouped = groupBy.length > 0;
4849
4888
  const currentState = getComponentState();
4850
4889
  const { controlledColumnVisibility, columnVisibility } = currentState;
@@ -4879,6 +4918,7 @@ function getColumnsWhenGrouping(params) {
4879
4918
  pivotBy,
4880
4919
  groupColumn,
4881
4920
  pivotTotalColumnPosition,
4921
+ pivotGrandTotalColumnPosition,
4882
4922
  pivotColumn,
4883
4923
  groupRenderStrategy,
4884
4924
  toggleGroupRow,
@@ -4918,7 +4958,12 @@ function getColumnsWhenGrouping(params) {
4918
4958
  });
4919
4959
  pivotColumns.forEach((col, key) => {
4920
4960
  var _a, _b;
4921
- if (col.pivotTotalColumn && pivotTotalColumnPosition === false) {
4961
+ const isSimpleTotalColumn = col.pivotTotalColumn && col.columnGroup;
4962
+ const isGrandTotalColumn = col.pivotTotalColumn && !col.columnGroup;
4963
+ if (isSimpleTotalColumn && pivotTotalColumnPosition === false) {
4964
+ return;
4965
+ }
4966
+ if (isGrandTotalColumn && pivotGrandTotalColumnPosition === false) {
4922
4967
  return;
4923
4968
  }
4924
4969
  let column = __spreadValues({}, col);
@@ -4970,7 +5015,7 @@ function useComputed() {
4970
5015
  bodySize,
4971
5016
  showSeparatePivotColumnForSingleAggregation
4972
5017
  } = componentState;
4973
- (0, import_react18.useState)(() => {
5018
+ (0, import_react19.useState)(() => {
4974
5019
  componentState.onRowHeightCSSVarChange.onChange((rowHeight) => {
4975
5020
  if (rowHeight) {
4976
5021
  componentActions.rowHeight = rowHeight;
@@ -4982,13 +5027,13 @@ function useComputed() {
4982
5027
  }
4983
5028
  });
4984
5029
  });
4985
- (0, import_react18.useEffect)(() => {
5030
+ (0, import_react19.useEffect)(() => {
4986
5031
  dataSourceActions.showSeparatePivotColumnForSingleAggregation = showSeparatePivotColumnForSingleAggregation;
4987
5032
  }, [showSeparatePivotColumnForSingleAggregation]);
4988
5033
  const { multiSort } = dataSourceState;
4989
5034
  useColumnGroups();
4990
5035
  const { toggleGroupRow } = useColumnsWhen();
4991
- const setSortInfo = (0, import_react18.useCallback)((sortInfo) => {
5036
+ const setSortInfo = (0, import_react19.useCallback)((sortInfo) => {
4992
5037
  var _a2;
4993
5038
  const newSortInfo = multiSort ? sortInfo : (_a2 = sortInfo[0]) != null ? _a2 : null;
4994
5039
  dataSourceActions.sortInfo = newSortInfo;
@@ -5032,7 +5077,7 @@ function useComputed() {
5032
5077
  columnSizing,
5033
5078
  columnTypes
5034
5079
  });
5035
- const rowSpan = (0, import_react18.useMemo)(() => {
5080
+ const rowSpan = (0, import_react19.useMemo)(() => {
5036
5081
  const colsWithRowspan = computedVisibleColumns.filter((col) => typeof col.rowspan === "function");
5037
5082
  return colsWithRowspan.length ? ({ itemIndex }) => {
5038
5083
  let maxSpan = 1;
@@ -5108,7 +5153,7 @@ function useComputed() {
5108
5153
  }
5109
5154
 
5110
5155
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
5111
- var React9 = __toModule(require("react"));
5156
+ var React8 = __toModule(require("react"));
5112
5157
 
5113
5158
  // src/components/InfiniteTable/hooks/useInternalProps.ts
5114
5159
  var useInternalProps = () => {
@@ -5116,9 +5161,9 @@ var useInternalProps = () => {
5116
5161
  };
5117
5162
 
5118
5163
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
5119
- var InfiniteTableBody = React9.forwardRef(function InfiniteTableBody2(props, ref) {
5164
+ var InfiniteTableBody = React8.forwardRef(function InfiniteTableBody2(props, ref) {
5120
5165
  const { rootClassName: rootClassName12 } = useInternalProps();
5121
- return /* @__PURE__ */ React9.createElement("div", __spreadProps(__spreadValues({
5166
+ return /* @__PURE__ */ React8.createElement("div", __spreadProps(__spreadValues({
5122
5167
  ref
5123
5168
  }, props), {
5124
5169
  className: join(`${rootClassName12}Body`, position.relative, flex["1"], transformTranslateZero, props.className)
@@ -5126,16 +5171,16 @@ var InfiniteTableBody = React9.forwardRef(function InfiniteTableBody2(props, ref
5126
5171
  });
5127
5172
 
5128
5173
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper.tsx
5129
- var React21 = __toModule(require("react"));
5174
+ var React20 = __toModule(require("react"));
5130
5175
 
5131
5176
  // src/components/InfiniteTable/components/ScrollbarPlaceholder.tsx
5132
- var React10 = __toModule(require("react"));
5177
+ var React9 = __toModule(require("react"));
5133
5178
  function HorizontalScrollbarPlaceholderFn(props) {
5134
5179
  const scrollbarWidth2 = getScrollbarWidth();
5135
5180
  if (!scrollbarWidth2) {
5136
5181
  return null;
5137
5182
  }
5138
- return /* @__PURE__ */ React10.createElement("div", {
5183
+ return /* @__PURE__ */ React9.createElement("div", {
5139
5184
  "data-name": "horizontal-scrollbar-placeholder",
5140
5185
  style: __spreadValues({
5141
5186
  position: "absolute",
@@ -5145,13 +5190,13 @@ function HorizontalScrollbarPlaceholderFn(props) {
5145
5190
  }, props.style)
5146
5191
  });
5147
5192
  }
5148
- var HorizontalScrollbarPlaceholder = React10.memo(HorizontalScrollbarPlaceholderFn);
5193
+ var HorizontalScrollbarPlaceholder = React9.memo(HorizontalScrollbarPlaceholderFn);
5149
5194
  function VerticalScrollbarPlaceholderFn(props) {
5150
5195
  const scrollbarWidth2 = getScrollbarWidth();
5151
5196
  if (!scrollbarWidth2) {
5152
5197
  return null;
5153
5198
  }
5154
- return /* @__PURE__ */ React10.createElement("div", {
5199
+ return /* @__PURE__ */ React9.createElement("div", {
5155
5200
  "data-name": "vertical-scrollbar-placeholder",
5156
5201
  style: __spreadValues({
5157
5202
  position: "absolute",
@@ -5161,7 +5206,7 @@ function VerticalScrollbarPlaceholderFn(props) {
5161
5206
  }, props.style)
5162
5207
  });
5163
5208
  }
5164
- var VerticalScrollbarPlaceholder = React10.memo(VerticalScrollbarPlaceholderFn);
5209
+ var VerticalScrollbarPlaceholder = React9.memo(VerticalScrollbarPlaceholderFn);
5165
5210
 
5166
5211
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
5167
5212
  var import_createRuntimeFn3 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
@@ -5176,21 +5221,21 @@ var HeaderSortIconCls = "_12zfob11 _16lm1iw1";
5176
5221
  var HeaderWrapperCls = "_12zfob1v _16lm1iw16 _16lm1iw1 _16lm1iwj _16lm1iw10";
5177
5222
 
5178
5223
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx
5179
- var React17 = __toModule(require("react"));
5180
- var import_react26 = __toModule(require("react"));
5224
+ var React16 = __toModule(require("react"));
5225
+ var import_react27 = __toModule(require("react"));
5181
5226
 
5182
5227
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
5183
- var React13 = __toModule(require("react"));
5184
- var import_react22 = __toModule(require("react"));
5228
+ var React12 = __toModule(require("react"));
5229
+ var import_react23 = __toModule(require("react"));
5185
5230
 
5186
5231
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell.tsx
5187
- var React11 = __toModule(require("react"));
5232
+ var React10 = __toModule(require("react"));
5188
5233
 
5189
5234
  // src/components/InfiniteTable/hooks/useInfiniteTableState.ts
5190
- var import_react19 = __toModule(require("react"));
5235
+ var import_react20 = __toModule(require("react"));
5191
5236
  var useInfiniteTableState = () => {
5192
5237
  const TableContext2 = getInfiniteTableContext();
5193
- const { componentState } = (0, import_react19.useContext)(TableContext2);
5238
+ const { componentState } = (0, import_react20.useContext)(TableContext2);
5194
5239
  return componentState;
5195
5240
  };
5196
5241
 
@@ -5253,23 +5298,23 @@ function InfiniteTableCellFn(props) {
5253
5298
  style,
5254
5299
  "data-name": "Cell",
5255
5300
  className: join(domProps.className, columnAlignCellStyle[(_b = column.align) != null ? _b : "start"], justifyContent[(_c = column.align) != null ? _c : "start"], InfiniteTableCellClassName, ColumnCellCls, shifting ? `${InfiniteTableCellClassName}--shifting ${CellClsVariants.shifting}` : ""),
5256
- children: /* @__PURE__ */ React11.createElement(React11.Fragment, null, beforeChildren, /* @__PURE__ */ React11.createElement("div", {
5301
+ children: /* @__PURE__ */ React10.createElement(React10.Fragment, null, beforeChildren, /* @__PURE__ */ React10.createElement("div", {
5257
5302
  className: `${InfiniteTableCellContentClassName} ${cssEllipsis ? cssEllipsisClassName : overflow.hidden}`
5258
5303
  }, children), afterChildren)
5259
5304
  });
5260
5305
  const RenderComponent = cellType === "body" ? (_d = column.components) == null ? void 0 : _d.ColumnCell : (_e = column.components) == null ? void 0 : _e.HeaderCell;
5261
5306
  if (RenderComponent) {
5262
- return /* @__PURE__ */ React11.createElement(RenderComponent, __spreadValues({}, finalDOMProps));
5307
+ return /* @__PURE__ */ React10.createElement(RenderComponent, __spreadValues({}, finalDOMProps));
5263
5308
  }
5264
- return /* @__PURE__ */ React11.createElement("div", __spreadProps(__spreadValues({}, finalDOMProps), {
5309
+ return /* @__PURE__ */ React10.createElement("div", __spreadProps(__spreadValues({}, finalDOMProps), {
5265
5310
  ref: domRef
5266
5311
  }));
5267
5312
  }
5268
- var InfiniteTableCell = React11.memo(InfiniteTableCellFn);
5313
+ var InfiniteTableCell = React10.memo(InfiniteTableCellFn);
5269
5314
 
5270
5315
  // src/components/InfiniteTable/hooks/useColumnPointerEvents.ts
5271
5316
  var import_binary_search2 = __toModule(require_binary_search());
5272
- var import_react20 = __toModule(require("react"));
5317
+ var import_react21 = __toModule(require("react"));
5273
5318
 
5274
5319
  // src/components/InfiniteTable/utils/moveXatY.ts
5275
5320
  var moveXatY = (arr, dragIndex, dropIndex) => {
@@ -5303,18 +5348,18 @@ var useColumnPointerEvents = ({
5303
5348
  columns,
5304
5349
  computedRemainingSpace
5305
5350
  }) => {
5306
- const [draggingDiff, setDraggingDiff] = (0, import_react20.useState)(null);
5307
- const [proxyOffset, setProxyOffset] = (0, import_react20.useState)(null);
5308
- const breakpointsRef = (0, import_react20.useRef)([]);
5309
- const pointerMoveRef = (0, import_react20.useRef)(null);
5310
- const didDragRef = (0, import_react20.useRef)(false);
5311
- const initialClientPos = (0, import_react20.useRef)(null);
5312
- const currentDropIndexRef = (0, import_react20.useRef)(null);
5351
+ const [draggingDiff, setDraggingDiff] = (0, import_react21.useState)(null);
5352
+ const [proxyOffset, setProxyOffset] = (0, import_react21.useState)(null);
5353
+ const breakpointsRef = (0, import_react21.useRef)([]);
5354
+ const pointerMoveRef = (0, import_react21.useRef)(null);
5355
+ const didDragRef = (0, import_react21.useRef)(false);
5356
+ const initialClientPos = (0, import_react21.useRef)(null);
5357
+ const currentDropIndexRef = (0, import_react21.useRef)(null);
5313
5358
  const dragging = draggingDiff != null;
5314
5359
  const { componentActions, computed } = useInfiniteTable();
5315
5360
  const { computedColumnOrder } = computed;
5316
- const column = (0, import_react20.useMemo)(() => columns.get(columnId), [columnId, columns]);
5317
- const { columnIndex, columnWidth, columnsArray } = (0, import_react20.useMemo)(() => {
5361
+ const column = (0, import_react21.useMemo)(() => columns.get(columnId), [columnId, columns]);
5362
+ const { columnIndex, columnWidth, columnsArray } = (0, import_react21.useMemo)(() => {
5318
5363
  const columnsArray2 = Array.from(columns.values());
5319
5364
  return {
5320
5365
  columnsArray: columnsArray2,
@@ -5322,8 +5367,8 @@ var useColumnPointerEvents = ({
5322
5367
  columnWidth: column.computedWidth
5323
5368
  };
5324
5369
  }, [columns, columnId, column]);
5325
- let cursorRef = (0, import_react20.useRef)("auto");
5326
- const onPointerDown = (0, import_react20.useCallback)((e) => {
5370
+ let cursorRef = (0, import_react21.useRef)("auto");
5371
+ const onPointerDown = (0, import_react21.useCallback)((e) => {
5327
5372
  const target = domRef.current;
5328
5373
  cursorRef.current = target.style.cursor;
5329
5374
  didDragRef.current = false;
@@ -5386,7 +5431,7 @@ var useColumnPointerEvents = ({
5386
5431
  target.addEventListener("pointermove", onPointerMove);
5387
5432
  target.setPointerCapture(e.pointerId);
5388
5433
  }, [columns, column, columnIndex, columnsArray, computedRemainingSpace]);
5389
- const onPointerUp = (0, import_react20.useCallback)((e) => {
5434
+ const onPointerUp = (0, import_react21.useCallback)((e) => {
5390
5435
  const target = domRef.current;
5391
5436
  target.style.cursor = cursorRef.current;
5392
5437
  target.releasePointerCapture(e.pointerId);
@@ -5460,8 +5505,8 @@ function useCellClassName(column, baseClasses, variants, extraFlags) {
5460
5505
  var import_react_dom = __toModule(require("react-dom"));
5461
5506
 
5462
5507
  // src/components/InfiniteTable/components/icons/SortIcon.tsx
5463
- var React12 = __toModule(require("react"));
5464
- var import_react21 = __toModule(require("react"));
5508
+ var React11 = __toModule(require("react"));
5509
+ var import_react22 = __toModule(require("react"));
5465
5510
  var defaultLineStyle = {
5466
5511
  marginTop: 2,
5467
5512
  marginBottom: 2,
@@ -5470,8 +5515,8 @@ var defaultLineStyle = {
5470
5515
  var InfiniteTableIconClassName = "InfiniteTableIcon";
5471
5516
  function SortIcon(props) {
5472
5517
  var _a;
5473
- const [rendered, setRendered] = (0, import_react21.useState)(true);
5474
- const [opacity, setOpacity] = (0, import_react21.useState)(0);
5518
+ const [rendered, setRendered] = (0, import_react22.useState)(true);
5519
+ const [opacity, setOpacity] = (0, import_react22.useState)(0);
5475
5520
  const { direction, lineWidth = 1, style, className, index } = props;
5476
5521
  const showIndex = index != null && index > 0;
5477
5522
  const size = (_a = props.size) != null ? _a : 16;
@@ -5485,7 +5530,7 @@ function SortIcon(props) {
5485
5530
  }), props.lineStyle), {
5486
5531
  opacity
5487
5532
  });
5488
- (0, import_react21.useEffect)(() => {
5533
+ (0, import_react22.useEffect)(() => {
5489
5534
  const newOpacity = direction != 0 ? 1 : 0;
5490
5535
  if (!rendered && newOpacity) {
5491
5536
  setRendered(true);
@@ -5515,24 +5560,24 @@ function SortIcon(props) {
5515
5560
  if (direction === -1) {
5516
5561
  indexStyle.top = "100%";
5517
5562
  }
5518
- return /* @__PURE__ */ React12.createElement("div", {
5563
+ return /* @__PURE__ */ React11.createElement("div", {
5519
5564
  style: __spreadProps(__spreadValues({}, style), { width: size }),
5520
5565
  className: join(className, InfiniteTableIconClassName, `${InfiniteTableIconClassName}-sort`)
5521
- }, showIndex ? /* @__PURE__ */ React12.createElement("div", {
5566
+ }, showIndex ? /* @__PURE__ */ React11.createElement("div", {
5522
5567
  "data-name": "index",
5523
5568
  style: indexStyle
5524
- }, index) : null, /* @__PURE__ */ React12.createElement("div", {
5569
+ }, index) : null, /* @__PURE__ */ React11.createElement("div", {
5525
5570
  style: __spreadValues({ width: sizes[0] }, lineStyle),
5526
5571
  onTransitionEnd
5527
- }), /* @__PURE__ */ React12.createElement("div", {
5572
+ }), /* @__PURE__ */ React11.createElement("div", {
5528
5573
  style: __spreadValues({ width: sizes[1] }, lineStyle)
5529
- }), /* @__PURE__ */ React12.createElement("div", {
5574
+ }), /* @__PURE__ */ React11.createElement("div", {
5530
5575
  style: __spreadValues({ width: sizes[2] }, lineStyle)
5531
5576
  }));
5532
5577
  }
5533
5578
 
5534
5579
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
5535
- var InfiniteTableHeaderCellContext = React13.createContext(null);
5580
+ var InfiniteTableHeaderCellContext = React12.createContext(null);
5536
5581
  var defaultStyle = {
5537
5582
  position: "absolute",
5538
5583
  top: 0
@@ -5551,12 +5596,12 @@ function InfiniteTableHeaderCell(props) {
5551
5596
  }
5552
5597
  const sortInfo = column.computedSortInfo;
5553
5598
  let header = column.header;
5554
- const ref = (0, import_react22.useCallback)((node) => {
5599
+ const ref = (0, import_react23.useCallback)((node) => {
5555
5600
  var _a2;
5556
5601
  domRef.current = node;
5557
5602
  (_a2 = props.domRef) == null ? void 0 : _a2.call(props, node);
5558
5603
  }, [props.domRef]);
5559
- const sortTool = /* @__PURE__ */ React13.createElement(SortIcon, {
5604
+ const sortTool = /* @__PURE__ */ React12.createElement(SortIcon, {
5560
5605
  index: column.computedMultiSort ? column.computedSortIndex + 1 : void 0,
5561
5606
  className: `${InfiniteTableHeaderCellClassName}__sort-icon ${HeaderSortIconCls}`,
5562
5607
  direction: column.computedSorted ? column.computedSortedAsc ? 1 : -1 : 0
@@ -5569,7 +5614,7 @@ function InfiniteTableHeaderCell(props) {
5569
5614
  };
5570
5615
  const renderChildren = () => {
5571
5616
  if (header instanceof Function) {
5572
- header = /* @__PURE__ */ React13.createElement(RenderHookComponent, {
5617
+ header = /* @__PURE__ */ React12.createElement(RenderHookComponent, {
5573
5618
  render: header,
5574
5619
  renderParam
5575
5620
  });
@@ -5577,12 +5622,12 @@ function InfiniteTableHeaderCell(props) {
5577
5622
  header = header != null ? header : column.name;
5578
5623
  return header;
5579
5624
  };
5580
- const domRef = (0, import_react22.useRef)(null);
5625
+ const domRef = (0, import_react23.useRef)(null);
5581
5626
  const {
5582
5627
  computed: { computedRemainingSpace },
5583
5628
  componentState: { portalDOMRef }
5584
5629
  } = useInfiniteTable();
5585
- (0, import_react22.useEffect)(() => {
5630
+ (0, import_react23.useEffect)(() => {
5586
5631
  let clearOnResize = null;
5587
5632
  const node = domRef.current;
5588
5633
  if (onResize && node) {
@@ -5605,7 +5650,7 @@ function InfiniteTableHeaderCell(props) {
5605
5650
  let offset = offsetFromProps != null ? offsetFromProps : virtualized ? 0 : column.computedPinningOffset;
5606
5651
  let draggingProxy = null;
5607
5652
  if (dragging) {
5608
- draggingProxy = /* @__PURE__ */ React13.createElement("div", {
5653
+ draggingProxy = /* @__PURE__ */ React12.createElement("div", {
5609
5654
  className: `${InfiniteTableHeaderCellClassName}Proxy ${HeaderCellProxy}`,
5610
5655
  style: {
5611
5656
  position: "absolute",
@@ -5619,9 +5664,9 @@ function InfiniteTableHeaderCell(props) {
5619
5664
  draggingProxy = (0, import_react_dom.createPortal)(draggingProxy, portalDOMRef.current);
5620
5665
  }
5621
5666
  const ContextProvider = InfiniteTableHeaderCellContext.Provider;
5622
- return /* @__PURE__ */ React13.createElement(ContextProvider, {
5667
+ return /* @__PURE__ */ React12.createElement(ContextProvider, {
5623
5668
  value: renderParam
5624
- }, /* @__PURE__ */ React13.createElement(InfiniteTableCell, {
5669
+ }, /* @__PURE__ */ React12.createElement(InfiniteTableCell, {
5625
5670
  domRef: ref,
5626
5671
  cellType: "header",
5627
5672
  column,
@@ -5638,34 +5683,34 @@ function InfiniteTableHeaderCell(props) {
5638
5683
  }), draggingProxy);
5639
5684
  }
5640
5685
  function useInfiniteHeaderCell() {
5641
- const result = (0, import_react22.useContext)(InfiniteTableHeaderCellContext);
5686
+ const result = (0, import_react23.useContext)(InfiniteTableHeaderCellContext);
5642
5687
  return result;
5643
5688
  }
5644
5689
 
5645
5690
  // src/components/RawList/index.tsx
5646
- var React16 = __toModule(require("react"));
5647
- var import_react25 = __toModule(require("react"));
5691
+ var React15 = __toModule(require("react"));
5692
+ var import_react26 = __toModule(require("react"));
5648
5693
 
5649
5694
  // src/components/RawList/AvoidReactDiff.tsx
5650
- var React14 = __toModule(require("react"));
5651
- var import_react23 = __toModule(require("react"));
5695
+ var React13 = __toModule(require("react"));
5696
+ var import_react24 = __toModule(require("react"));
5652
5697
  function AvoidReactDiffFn(props) {
5653
- const [children, setChildren] = (0, import_react23.useState)(props.updater.get());
5654
- (0, import_react23.useLayoutEffect)(() => {
5698
+ const [children, setChildren] = (0, import_react24.useState)(props.updater.get());
5699
+ (0, import_react24.useLayoutEffect)(() => {
5655
5700
  const remove = props.updater.onChange((children2) => {
5656
5701
  setChildren(children2);
5657
5702
  });
5658
5703
  return remove;
5659
5704
  }, [props.updater]);
5660
- return /* @__PURE__ */ React14.createElement(React14.Fragment, null, children);
5705
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, children);
5661
5706
  }
5662
- var AvoidReactDiff = React14.memo(AvoidReactDiffFn);
5707
+ var AvoidReactDiff = React13.memo(AvoidReactDiffFn);
5663
5708
 
5664
5709
  // src/components/RawList/useVirtualRenderer.ts
5665
- var import_react24 = __toModule(require("react"));
5710
+ var import_react25 = __toModule(require("react"));
5666
5711
 
5667
5712
  // src/components/RawList/ReactVirtualRenderer.tsx
5668
- var React15 = __toModule(require("react"));
5713
+ var React14 = __toModule(require("react"));
5669
5714
 
5670
5715
  // src/components/RawList/MappedItems.ts
5671
5716
  var MappedItems = class extends Logger {
@@ -5910,7 +5955,7 @@ var ReactVirtualRenderer = class extends Logger {
5910
5955
  };
5911
5956
  this.itemDOMRefs[elementIndex] = domRef;
5912
5957
  this.updaters[elementIndex] = buildSubscriptionCallback();
5913
- const item = /* @__PURE__ */ React15.createElement(AvoidReactDiff, {
5958
+ const item = /* @__PURE__ */ React14.createElement(AvoidReactDiff, {
5914
5959
  key: elementIndex,
5915
5960
  name: `${elementIndex}`,
5916
5961
  updater: this.updaters[elementIndex]
@@ -5946,7 +5991,7 @@ var ReactVirtualRenderer = class extends Logger {
5946
5991
  }
5947
5992
  this.mappedItems.renderItemAtElement(itemIndex, elementIndex, renderedNode);
5948
5993
  if (true) {
5949
- this.debug(`Render item ${itemIndex} at element ${elementIndex}`);
5994
+ dbg(`ReactVirtualRenderer:${this.brain.getOptions().mainAxis}`)(`Render item ${itemIndex} at element ${elementIndex}`);
5950
5995
  }
5951
5996
  itemUpdater(renderedNode);
5952
5997
  this.updateElementPosition(elementIndex);
@@ -5976,7 +6021,7 @@ function createRenderer(brain) {
5976
6021
  function useVirtualRenderer({
5977
6022
  brain
5978
6023
  }) {
5979
- return (0, import_react24.useMemo)(() => {
6024
+ return (0, import_react25.useMemo)(() => {
5980
6025
  return createRenderer(brain);
5981
6026
  }, [brain]);
5982
6027
  }
@@ -5989,7 +6034,7 @@ function RawListFn(props) {
5989
6034
  debugChannel
5990
6035
  });
5991
6036
  const getRenderItem = useLatest(renderItem);
5992
- (0, import_react25.useEffect)(() => {
6037
+ (0, import_react26.useEffect)(() => {
5993
6038
  const renderRange = brain.getRenderRange();
5994
6039
  renderer.renderRange(renderRange, {
5995
6040
  renderItem,
@@ -5997,7 +6042,7 @@ function RawListFn(props) {
5997
6042
  onRender: onRenderUpdater
5998
6043
  });
5999
6044
  }, [brain, renderItem, onRenderUpdater]);
6000
- (0, import_react25.useEffect)(() => {
6045
+ (0, import_react26.useEffect)(() => {
6001
6046
  const remove = brain.onRenderRangeChange((renderRange) => {
6002
6047
  renderer.renderRange(renderRange, {
6003
6048
  force: false,
@@ -6007,11 +6052,11 @@ function RawListFn(props) {
6007
6052
  });
6008
6053
  return remove;
6009
6054
  }, [brain, onRenderUpdater]);
6010
- return /* @__PURE__ */ React16.createElement(AvoidReactDiff, {
6055
+ return /* @__PURE__ */ React15.createElement(AvoidReactDiff, {
6011
6056
  updater: onRenderUpdater
6012
6057
  });
6013
6058
  }
6014
- var RawList = React16.memo(RawListFn);
6059
+ var RawList = React15.memo(RawListFn);
6015
6060
 
6016
6061
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx
6017
6062
  var debug3 = dbg("Header");
@@ -6024,7 +6069,7 @@ function InfiniteTableHeaderFn(props) {
6024
6069
  componentState: { headerHeight }
6025
6070
  } = useInfiniteTable();
6026
6071
  const { computedVisibleColumnsMap } = computed;
6027
- const renderColumn = (0, import_react26.useCallback)(({ domRef: domRef2, itemIndex: columnIndex }) => {
6072
+ const renderColumn = (0, import_react27.useCallback)(({ domRef: domRef2, itemIndex: columnIndex }) => {
6028
6073
  const column = columns[columnIndex];
6029
6074
  if (!column) {
6030
6075
  if (true) {
@@ -6032,14 +6077,14 @@ function InfiniteTableHeaderFn(props) {
6032
6077
  }
6033
6078
  return null;
6034
6079
  }
6035
- return /* @__PURE__ */ React17.createElement(InfiniteTableHeaderCell, {
6080
+ return /* @__PURE__ */ React16.createElement(InfiniteTableHeaderCell, {
6036
6081
  domRef: domRef2,
6037
6082
  column,
6038
6083
  headerHeight,
6039
6084
  columns: computedVisibleColumnsMap
6040
6085
  });
6041
6086
  }, [computedVisibleColumnsMap, columns, repaintId, headerHeight]);
6042
- (0, import_react26.useEffect)(() => {
6087
+ (0, import_react27.useEffect)(() => {
6043
6088
  const onScroll = (scrollPosition) => {
6044
6089
  if (domRef.current) {
6045
6090
  domRef.current.style.transform = `translate3d(-${scrollPosition.scrollLeft}px, 0px, 0px)`;
@@ -6048,7 +6093,7 @@ function InfiniteTableHeaderFn(props) {
6048
6093
  const removeOnScroll = brain.onScroll(onScroll);
6049
6094
  return removeOnScroll;
6050
6095
  }, [brain]);
6051
- const domRef = (0, import_react26.useRef)(null);
6096
+ const domRef = (0, import_react27.useRef)(null);
6052
6097
  const headerCls = HeaderClsRecipe({
6053
6098
  pinned: pinning,
6054
6099
  overflow: false,
@@ -6059,18 +6104,18 @@ function InfiniteTableHeaderFn(props) {
6059
6104
  className: join(TableHeaderClassName, `${TableHeaderClassName}--virtualized`, className, headerCls),
6060
6105
  style
6061
6106
  };
6062
- return /* @__PURE__ */ React17.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React17.createElement(RawList, {
6107
+ return /* @__PURE__ */ React16.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React16.createElement(RawList, {
6063
6108
  brain,
6064
6109
  renderItem: renderColumn
6065
6110
  }));
6066
6111
  }
6067
- var InfiniteTableHeader = React17.memo(InfiniteTableHeaderFn);
6112
+ var InfiniteTableHeader = React16.memo(InfiniteTableHeaderFn);
6068
6113
 
6069
6114
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderUnvirtualized.tsx
6070
- var React20 = __toModule(require("react"));
6115
+ var React19 = __toModule(require("react"));
6071
6116
 
6072
6117
  // src/components/InfiniteTable/components/InfiniteTableHeader/renderColumnHeaderGroups.tsx
6073
- var React19 = __toModule(require("react"));
6118
+ var React18 = __toModule(require("react"));
6074
6119
 
6075
6120
  // src/components/InfiniteTable/components/InfiniteTableHeader/buildColumnAndGroupTree.ts
6076
6121
  function buildColumnAndGroupTree(columns, columnGroups, columnGroupsDepthsMap) {
@@ -6160,7 +6205,7 @@ function assignGroupOffsetsAndComputedWidths(items, groupOffset = 0) {
6160
6205
  }
6161
6206
 
6162
6207
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
6163
- var React18 = __toModule(require("react"));
6208
+ var React17 = __toModule(require("react"));
6164
6209
  var TableHeaderGroupClassName = `${rootClassName}HeaderGroup`;
6165
6210
  function InfiniteTableHeaderGroup(props) {
6166
6211
  const { columnGroup, height, headerHeight } = props;
@@ -6174,16 +6219,16 @@ function InfiniteTableHeaderGroup(props) {
6174
6219
  width: columnGroup.computedWidth,
6175
6220
  height
6176
6221
  };
6177
- return /* @__PURE__ */ React18.createElement("div", {
6222
+ return /* @__PURE__ */ React17.createElement("div", {
6178
6223
  "data-group-id": columnGroup.id,
6179
6224
  className: join(HeaderGroupCls, TableHeaderGroupClassName, `${TableHeaderGroupClassName}--unvirtualized`),
6180
6225
  style
6181
- }, /* @__PURE__ */ React18.createElement("div", {
6226
+ }, /* @__PURE__ */ React17.createElement("div", {
6182
6227
  className: join(`${TableHeaderGroupClassName}__header`, HeaderGroup_Header),
6183
6228
  style: { height: headerHeight }
6184
- }, /* @__PURE__ */ React18.createElement("div", {
6229
+ }, /* @__PURE__ */ React17.createElement("div", {
6185
6230
  className: join(`${TableHeaderGroupClassName}__header-content`, cssEllipsisClassName)
6186
- }, header)), /* @__PURE__ */ React18.createElement("div", {
6231
+ }, header)), /* @__PURE__ */ React17.createElement("div", {
6187
6232
  className: join(`${TableHeaderGroupClassName}__children`, HeaderGroup_Children)
6188
6233
  }, props.children));
6189
6234
  }
@@ -6206,7 +6251,7 @@ function renderColumnHeaderGroups(config) {
6206
6251
  return items2.map((colGroupItem) => {
6207
6252
  if (colGroupItem.type === "column") {
6208
6253
  const col = colGroupItem.ref;
6209
- return /* @__PURE__ */ React19.createElement(InfiniteTableHeaderCell, {
6254
+ return /* @__PURE__ */ React18.createElement(InfiniteTableHeaderCell, {
6210
6255
  key: col.id,
6211
6256
  headerHeight: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
6212
6257
  column: col,
@@ -6220,7 +6265,7 @@ function renderColumnHeaderGroups(config) {
6220
6265
  colIds.push(col.id);
6221
6266
  return col;
6222
6267
  });
6223
- return /* @__PURE__ */ React19.createElement(InfiniteTableHeaderGroup, {
6268
+ return /* @__PURE__ */ React18.createElement(InfiniteTableHeaderGroup, {
6224
6269
  key: `${colGroupItem.uniqueGroupId.join("/")}`,
6225
6270
  columns: columns2,
6226
6271
  height: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
@@ -6240,7 +6285,7 @@ function renderColumnHeaderGroups(config) {
6240
6285
  }
6241
6286
 
6242
6287
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderUnvirtualized.tsx
6243
- var import_react27 = __toModule(require("react"));
6288
+ var import_react28 = __toModule(require("react"));
6244
6289
  var { rootClassName: rootClassName5 } = internalProps;
6245
6290
  var TableHeaderClassName2 = `${rootClassName5}Header`;
6246
6291
  var UPDATE_SCROLL = (node, scrollPosition) => {
@@ -6273,9 +6318,9 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
6273
6318
  },
6274
6319
  computed: { computedVisibleColumnsMap: columnsMap }
6275
6320
  } = useInfiniteTable();
6276
- const domRef = React20.useRef(null);
6321
+ const domRef = React19.useRef(null);
6277
6322
  const hasColumnGroups = computedColumnGroups.size > 0;
6278
- const columnHeaderGroups = React20.useMemo(() => {
6323
+ const columnHeaderGroups = React19.useMemo(() => {
6279
6324
  return hasColumnGroups ? renderColumnHeaderGroups({
6280
6325
  columnGroups: computedColumnGroups,
6281
6326
  columnGroupsDepthsMap,
@@ -6294,7 +6339,7 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
6294
6339
  columnGroupsMaxDepth
6295
6340
  ]);
6296
6341
  const children = hasColumnGroups ? columnHeaderGroups : columns.map((c) => {
6297
- return /* @__PURE__ */ React20.createElement(InfiniteTableHeaderCell, {
6342
+ return /* @__PURE__ */ React19.createElement(InfiniteTableHeaderCell, {
6298
6343
  key: c.id,
6299
6344
  headerHeight,
6300
6345
  column: c,
@@ -6306,7 +6351,7 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
6306
6351
  if (totalWidth != null) {
6307
6352
  style.width = availableWidth;
6308
6353
  }
6309
- (0, import_react27.useEffect)(() => {
6354
+ (0, import_react28.useEffect)(() => {
6310
6355
  const scroller = brain || scrollListener;
6311
6356
  if (!scroller || !scrollable) {
6312
6357
  return;
@@ -6319,20 +6364,20 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
6319
6364
  const removeOnScroll = scroller.onScroll(onScroll);
6320
6365
  return removeOnScroll;
6321
6366
  }, [brain, scrollListener]);
6322
- return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, domProps), {
6367
+ return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, domProps), {
6323
6368
  className: join(TableHeaderClassName2, `${TableHeaderClassName2}--unvirtualized`, pinning ? `${TableHeaderClassName2}--pinned ${TableHeaderClassName2}-${pinning}` : "", scrollable ? `${TableHeaderClassName2}--overflow` : "", domProps.className, HeaderClsRecipe({
6324
6369
  pinned: pinning,
6325
6370
  virtualized: false,
6326
6371
  overflow: scrollable
6327
6372
  })),
6328
6373
  style
6329
- }), /* @__PURE__ */ React20.createElement("div", {
6374
+ }), /* @__PURE__ */ React19.createElement("div", {
6330
6375
  style: { width: totalWidth },
6331
6376
  className: join(flexFlow.row, display.flex),
6332
6377
  ref: domRef
6333
6378
  }, children));
6334
6379
  }
6335
- var InfiniteTableHeaderUnvirtualized = React20.memo(InfiniteTableHeaderUnvirtualizedFn);
6380
+ var InfiniteTableHeaderUnvirtualized = React19.memo(InfiniteTableHeaderUnvirtualizedFn);
6336
6381
 
6337
6382
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper.tsx
6338
6383
  function TableHeaderWrapper(props) {
@@ -6365,7 +6410,7 @@ function TableHeaderWrapper(props) {
6365
6410
  const unvirtualizedStyle = !virtualizeHeader && computedPinnedStartColumnsWidth ? {
6366
6411
  left: computedPinnedStartWidth
6367
6412
  } : void 0;
6368
- const header = virtualizeHeader ? /* @__PURE__ */ React21.createElement(InfiniteTableHeader, {
6413
+ const header = virtualizeHeader ? /* @__PURE__ */ React20.createElement(InfiniteTableHeader, {
6369
6414
  columns: computedUnpinnedColumns,
6370
6415
  repaintId: virtualizeHeader ? repaintId : void 0,
6371
6416
  brain,
@@ -6378,7 +6423,7 @@ function TableHeaderWrapper(props) {
6378
6423
  },
6379
6424
  availableWidth: computedUnpinnedColumnsWidth,
6380
6425
  totalWidth: computedUnpinnedColumnsWidth
6381
- }) : /* @__PURE__ */ React21.createElement(InfiniteTableHeaderUnvirtualized, {
6426
+ }) : /* @__PURE__ */ React20.createElement(InfiniteTableHeaderUnvirtualized, {
6382
6427
  style: unvirtualizedStyle,
6383
6428
  brain,
6384
6429
  scrollable: true,
@@ -6387,12 +6432,12 @@ function TableHeaderWrapper(props) {
6387
6432
  availableWidth: computedUnpinnedColumnsWidth,
6388
6433
  totalWidth: computedUnpinnedColumnsWidth
6389
6434
  });
6390
- return /* @__PURE__ */ React21.createElement("div", {
6435
+ return /* @__PURE__ */ React20.createElement("div", {
6391
6436
  className: HeaderWrapperCls,
6392
6437
  style: {
6393
6438
  height: virtualizeHeader ? height : void 0
6394
6439
  }
6395
- }, hasPinnedStart ? /* @__PURE__ */ React21.createElement(InfiniteTableHeaderUnvirtualized, {
6440
+ }, hasPinnedStart ? /* @__PURE__ */ React20.createElement(InfiniteTableHeaderUnvirtualized, {
6396
6441
  style: {
6397
6442
  left: 0,
6398
6443
  position: "absolute",
@@ -6404,7 +6449,7 @@ function TableHeaderWrapper(props) {
6404
6449
  scrollable: computedPinnedStartOverflow,
6405
6450
  pinning: "start",
6406
6451
  scrollListener: computedPinnedStartOverflow ? pinnedStartScrollListener : void 0
6407
- }) : null, header, hasPinnedEnd ? /* @__PURE__ */ React21.createElement(InfiniteTableHeaderUnvirtualized, {
6452
+ }) : null, header, hasPinnedEnd ? /* @__PURE__ */ React20.createElement(InfiniteTableHeaderUnvirtualized, {
6408
6453
  style: {
6409
6454
  right: scrollbars.vertical ? getScrollbarWidth() : 0,
6410
6455
  position: "absolute",
@@ -6416,7 +6461,7 @@ function TableHeaderWrapper(props) {
6416
6461
  scrollable: computedPinnedEndOverflow,
6417
6462
  pinning: "end",
6418
6463
  scrollListener: computedPinnedEndOverflow ? pinnedEndScrollListener : void 0
6419
- }) : null, scrollbars.vertical ? /* @__PURE__ */ React21.createElement(VerticalScrollbarPlaceholder, {
6464
+ }) : null, scrollbars.vertical ? /* @__PURE__ */ React20.createElement(VerticalScrollbarPlaceholder, {
6420
6465
  style: {
6421
6466
  height: "100%",
6422
6467
  right: 0
@@ -6425,13 +6470,13 @@ function TableHeaderWrapper(props) {
6425
6470
  }
6426
6471
 
6427
6472
  // src/components/VirtualScrollContainer/index.tsx
6428
- var React22 = __toModule(require("react"));
6429
- var import_react29 = __toModule(require("react"));
6473
+ var React21 = __toModule(require("react"));
6474
+ var import_react30 = __toModule(require("react"));
6430
6475
 
6431
6476
  // src/components/hooks/useOnScroll.ts
6432
- var import_react28 = __toModule(require("react"));
6477
+ var import_react29 = __toModule(require("react"));
6433
6478
  var useOnScroll = (domRef, onScroll) => {
6434
- (0, import_react28.useEffect)(() => {
6479
+ (0, import_react29.useEffect)(() => {
6435
6480
  const domNode = domRef == null ? void 0 : domRef.current;
6436
6481
  const scrollFn = (event) => {
6437
6482
  const node = event.target;
@@ -6469,7 +6514,7 @@ var getScrollableClassName = (scrollable) => {
6469
6514
 
6470
6515
  // src/components/VirtualScrollContainer/index.tsx
6471
6516
  var rootClassName6 = "InfiniteVirtualScrollContainer";
6472
- var VirtualScrollContainer = React22.forwardRef(function VirtualScrollContainer2(props, ref) {
6517
+ var VirtualScrollContainer = React21.forwardRef(function VirtualScrollContainer2(props, ref) {
6473
6518
  const {
6474
6519
  children,
6475
6520
  scrollable = true,
@@ -6477,9 +6522,9 @@ var VirtualScrollContainer = React22.forwardRef(function VirtualScrollContainer2
6477
6522
  className,
6478
6523
  style
6479
6524
  } = props;
6480
- const domRef = ref != null ? ref : (0, import_react29.useRef)(null);
6525
+ const domRef = ref != null ? ref : (0, import_react30.useRef)(null);
6481
6526
  useOnScroll(domRef, onContainerScroll);
6482
- return /* @__PURE__ */ React22.createElement("div", {
6527
+ return /* @__PURE__ */ React21.createElement("div", {
6483
6528
  ref: domRef,
6484
6529
  style,
6485
6530
  className: join(className, rootClassName6, VirtualScrollContainerCls, getScrollableClassName(scrollable))
@@ -6487,7 +6532,7 @@ var VirtualScrollContainer = React22.forwardRef(function VirtualScrollContainer2
6487
6532
  });
6488
6533
 
6489
6534
  // src/components/VirtualList/SpacePlaceholder.tsx
6490
- var React23 = __toModule(require("react"));
6535
+ var React22 = __toModule(require("react"));
6491
6536
  function SpacePlaceholderFn(props) {
6492
6537
  const { height, width, count } = props;
6493
6538
  const style = {
@@ -6497,7 +6542,7 @@ function SpacePlaceholderFn(props) {
6497
6542
  opacity: 0,
6498
6543
  pointerEvents: "none"
6499
6544
  };
6500
- return /* @__PURE__ */ React23.createElement("div", {
6545
+ return /* @__PURE__ */ React22.createElement("div", {
6501
6546
  "data-count": count,
6502
6547
  "data-placeholder-width": true ? width : void 0,
6503
6548
  "data-placeholder-height": true ? height : void 0,
@@ -6505,21 +6550,21 @@ function SpacePlaceholderFn(props) {
6505
6550
  style
6506
6551
  });
6507
6552
  }
6508
- var SpacePlaceholder = React23.memo(SpacePlaceholderFn);
6553
+ var SpacePlaceholder = React22.memo(SpacePlaceholderFn);
6509
6554
 
6510
6555
  // src/components/InfiniteTable/hooks/useListRendering.tsx
6511
- var import_react41 = __toModule(require("react"));
6556
+ var import_react42 = __toModule(require("react"));
6512
6557
 
6513
6558
  // src/components/InfiniteTable/hooks/useUnpinnedRendering.tsx
6514
- var React29 = __toModule(require("react"));
6515
- var import_react34 = __toModule(require("react"));
6559
+ var React28 = __toModule(require("react"));
6560
+ var import_react35 = __toModule(require("react"));
6516
6561
 
6517
6562
  // src/components/VirtualList/VirtualRowList.tsx
6518
- var React25 = __toModule(require("react"));
6563
+ var React24 = __toModule(require("react"));
6519
6564
 
6520
6565
  // src/components/VirtualList/VirtualList.tsx
6521
- var React24 = __toModule(require("react"));
6522
- var import_react30 = __toModule(require("react"));
6566
+ var React23 = __toModule(require("react"));
6567
+ var import_react31 = __toModule(require("react"));
6523
6568
 
6524
6569
  // src/components/VirtualList/VirtualList.css.ts
6525
6570
  var VirtualListCls = "_16lm1iw1 _16lm1iw8 _16lm1iw0";
@@ -6562,11 +6607,11 @@ var VirtualList = (props) => {
6562
6607
  "onContainerScroll",
6563
6608
  "children"
6564
6609
  ]);
6565
- const domRef = (0, import_react30.useRef)(null);
6610
+ const domRef = (0, import_react31.useRef)(null);
6566
6611
  const [, rerender] = useRerender();
6567
- const [totalSize, setTotalSize] = (0, import_react30.useState)(0);
6568
- const renderCountRef = (0, import_react30.useRef)(0);
6569
- (0, import_react30.useEffect)(() => {
6612
+ const [totalSize, setTotalSize] = (0, import_react31.useState)(0);
6613
+ const renderCountRef = (0, import_react31.useRef)(0);
6614
+ (0, import_react31.useEffect)(() => {
6570
6615
  const removeOnRenderCount = virtualBrain.onRenderCountChange((renderCount) => {
6571
6616
  renderCountRef.current = renderCount;
6572
6617
  if (true) {
@@ -6585,7 +6630,7 @@ var VirtualList = (props) => {
6585
6630
  removeOnTotalSizeChange();
6586
6631
  };
6587
6632
  }, [virtualBrain]);
6588
- (0, import_react30.useEffect)(() => {
6633
+ (0, import_react31.useEffect)(() => {
6589
6634
  const onScroll = (scrollPosition) => {
6590
6635
  UPDATE_SCROLL2(domRef.current, scrollPosition);
6591
6636
  };
@@ -6600,19 +6645,19 @@ var VirtualList = (props) => {
6600
6645
  if (true) {
6601
6646
  domProps["data-cmp-name"] = `VirtualList`;
6602
6647
  }
6603
- return /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React24.createElement(VirtualScrollContainer, {
6648
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React23.createElement(VirtualScrollContainer, {
6604
6649
  scrollable,
6605
6650
  onContainerScroll
6606
- }, /* @__PURE__ */ React24.createElement("div", {
6651
+ }, /* @__PURE__ */ React23.createElement("div", {
6607
6652
  ref: domRef,
6608
6653
  className: scrollTransformTargetCls,
6609
6654
  "data-name": "scroll-transform-target"
6610
- }, /* @__PURE__ */ React24.createElement(RawList, {
6655
+ }, /* @__PURE__ */ React23.createElement(RawList, {
6611
6656
  brain: virtualBrain,
6612
6657
  renderItem,
6613
6658
  repaintId,
6614
6659
  debugChannel: "VirtualList-" + mainAxis
6615
- })), children, /* @__PURE__ */ React24.createElement(SpacePlaceholder, {
6660
+ })), children, /* @__PURE__ */ React23.createElement(SpacePlaceholder, {
6616
6661
  count,
6617
6662
  width,
6618
6663
  height
@@ -6622,14 +6667,14 @@ var VirtualList = (props) => {
6622
6667
  // src/components/VirtualList/VirtualRowList.tsx
6623
6668
  var VirtualRowList = (props) => {
6624
6669
  const _a = props, { rowWidth, rowHeight, renderRow } = _a, listProps = __objRest(_a, ["rowWidth", "rowHeight", "renderRow"]);
6625
- const renderItem = React25.useCallback((renderProps) => {
6670
+ const renderItem = React24.useCallback((renderProps) => {
6626
6671
  return renderRow({
6627
6672
  domRef: renderProps.domRef,
6628
6673
  rowHeight: renderProps.itemSize,
6629
6674
  rowIndex: renderProps.itemIndex
6630
6675
  });
6631
6676
  }, [renderRow]);
6632
- return /* @__PURE__ */ React25.createElement(VirtualList, __spreadProps(__spreadValues({}, listProps), {
6677
+ return /* @__PURE__ */ React24.createElement(VirtualList, __spreadProps(__spreadValues({}, listProps), {
6633
6678
  renderItem,
6634
6679
  mainAxis: "vertical",
6635
6680
  itemMainAxisSize: rowHeight,
@@ -6638,14 +6683,14 @@ var VirtualRowList = (props) => {
6638
6683
  };
6639
6684
 
6640
6685
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow.tsx
6641
- var React27 = __toModule(require("react"));
6642
- var import_react33 = __toModule(require("react"));
6686
+ var React26 = __toModule(require("react"));
6687
+ var import_react34 = __toModule(require("react"));
6643
6688
 
6644
6689
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableColumnCell.tsx
6645
- var React26 = __toModule(require("react"));
6646
- var import_react31 = __toModule(require("react"));
6690
+ var React25 = __toModule(require("react"));
6691
+ var import_react32 = __toModule(require("react"));
6647
6692
  var { rootClassName: rootClassName8 } = internalProps;
6648
- var InfiniteTableColumnCellContext = React26.createContext(null);
6693
+ var InfiniteTableColumnCellContext = React25.createContext(null);
6649
6694
  var InfiniteTableColumnCellClassName = `${rootClassName8}ColumnCell`;
6650
6695
  function isColumnWithField(c) {
6651
6696
  return typeof c.field === "string";
@@ -6710,7 +6755,7 @@ function InfiniteTableColumnCellFn(props) {
6710
6755
  }
6711
6756
  const renderFn = column.render || column.renderValue;
6712
6757
  if (renderFn) {
6713
- return /* @__PURE__ */ React26.createElement(RenderHookComponent, {
6758
+ return /* @__PURE__ */ React25.createElement(RenderHookComponent, {
6714
6759
  render: renderFn,
6715
6760
  renderParam
6716
6761
  });
@@ -6757,18 +6802,18 @@ function InfiniteTableColumnCellFn(props) {
6757
6802
  renderChildren
6758
6803
  });
6759
6804
  const ContextProvider = InfiniteTableColumnCellContext.Provider;
6760
- return /* @__PURE__ */ React26.createElement(ContextProvider, {
6805
+ return /* @__PURE__ */ React25.createElement(ContextProvider, {
6761
6806
  value: renderParam
6762
- }, /* @__PURE__ */ React26.createElement(InfiniteTableCell, __spreadValues({}, cellProps)));
6807
+ }, /* @__PURE__ */ React25.createElement(InfiniteTableCell, __spreadValues({}, cellProps)));
6763
6808
  }
6764
- var InfiniteTableColumnCell = React26.memo(InfiniteTableColumnCellFn);
6809
+ var InfiniteTableColumnCell = React25.memo(InfiniteTableColumnCellFn);
6765
6810
  function useInfiniteColumnCell() {
6766
- const result = (0, import_react31.useContext)(InfiniteTableColumnCellContext);
6811
+ const result = (0, import_react32.useContext)(InfiniteTableColumnCellContext);
6767
6812
  return result;
6768
6813
  }
6769
6814
 
6770
6815
  // src/components/InfiniteTable/components/InfiniteTableRow/useRowDOMProps.ts
6771
- var import_react32 = __toModule(require("react"));
6816
+ var import_react33 = __toModule(require("react"));
6772
6817
 
6773
6818
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowClassName.ts
6774
6819
  var { rootClassName: rootClassName9 } = internalProps;
@@ -6794,8 +6839,8 @@ function useRowDOMProps(props, rowProps, rowStyle, rowClassName, groupRenderStra
6794
6839
  rowInfo,
6795
6840
  rowSpan
6796
6841
  } = props;
6797
- const domRef = (0, import_react32.useRef)(null);
6798
- const rowDOMRef = (0, import_react32.useCallback)((node) => {
6842
+ const domRef = (0, import_react33.useRef)(null);
6843
+ const rowDOMRef = (0, import_react33.useCallback)((node) => {
6799
6844
  domRefFromProps(node);
6800
6845
  domRef.current = node;
6801
6846
  }, []);
@@ -6826,7 +6871,7 @@ function useRowDOMProps(props, rowProps, rowStyle, rowClassName, groupRenderStra
6826
6871
  }), `${InfiniteTableRowClassName}--${rowInfo.isGroupRow ? "group" : "normal"}-row`, inlineGroupRoot ? `${InfiniteTableRowClassName}--inline-group-row` : "", showZebraRows ? `${InfiniteTableRowClassName}--${odd ? "odd" : "even"}` : null, showHoverRows ? `${InfiniteTableRowClassName}--show-hover` : null, domProps == null ? void 0 : domProps.className, rowProps == null ? void 0 : rowProps.className, rowComputedClassName);
6827
6872
  const initialMouseEnter = rowProps == null ? void 0 : rowProps.onMouseEnter;
6828
6873
  const initialMouseLeave = rowProps == null ? void 0 : rowProps.onMouseLeave;
6829
- const onMouseEnter = (0, import_react32.useCallback)((event) => {
6874
+ const onMouseEnter = (0, import_react33.useCallback)((event) => {
6830
6875
  var _a;
6831
6876
  initialMouseEnter == null ? void 0 : initialMouseEnter(event);
6832
6877
  const rowIndex2 = ((_a = event.currentTarget) == null ? void 0 : _a.dataset.rowIndex) * 1;
@@ -6840,7 +6885,7 @@ function useRowDOMProps(props, rowProps, rowStyle, rowClassName, groupRenderStra
6840
6885
  const rows = parentNode.querySelectorAll(hoverSelector.join(","));
6841
6886
  rows.forEach((row) => row.classList.add(InfiniteTableRowClassName__hover, RowHoverCls));
6842
6887
  }, [initialMouseEnter, showHoverRows]);
6843
- const onMouseLeave = (0, import_react32.useCallback)((event) => {
6888
+ const onMouseLeave = (0, import_react33.useCallback)((event) => {
6844
6889
  var _a;
6845
6890
  initialMouseLeave == null ? void 0 : initialMouseLeave(event);
6846
6891
  const rowIndex2 = (_a = event.currentTarget) == null ? void 0 : _a.dataset.rowIndex;
@@ -6896,13 +6941,13 @@ function InfiniteTableRowFn(props) {
6896
6941
  width: rowWidth,
6897
6942
  height: rowHeight
6898
6943
  }, domProps.style);
6899
- const renderCellRef = (0, import_react33.useRef)(null);
6900
- const renderCell = React27.useCallback(({ domRef, itemIndex }) => {
6944
+ const renderCellRef = (0, import_react34.useRef)(null);
6945
+ const renderCell = React26.useCallback(({ domRef, itemIndex }) => {
6901
6946
  const column = columns[itemIndex];
6902
6947
  if (!column) {
6903
6948
  }
6904
6949
  const hidden = false;
6905
- return /* @__PURE__ */ React27.createElement(InfiniteTableColumnCell, {
6950
+ return /* @__PURE__ */ React26.createElement(InfiniteTableColumnCell, {
6906
6951
  getData,
6907
6952
  rowInfo,
6908
6953
  groupRenderStrategy,
@@ -6929,18 +6974,18 @@ function InfiniteTableRowFn(props) {
6929
6974
  if (true) {
6930
6975
  domProps["data-cmp-name"] = "ITableRow";
6931
6976
  }
6932
- return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, domProps), {
6977
+ return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, domProps), {
6933
6978
  style
6934
- }), /* @__PURE__ */ React27.createElement(RawList, {
6979
+ }), /* @__PURE__ */ React26.createElement(RawList, {
6935
6980
  brain,
6936
6981
  renderItem: renderCell,
6937
6982
  debugChannel: `${rowIndex}`
6938
6983
  }));
6939
6984
  }
6940
- var InfiniteTableRow = React27.memo(InfiniteTableRowFn);
6985
+ var InfiniteTableRow = React26.memo(InfiniteTableRowFn);
6941
6986
 
6942
6987
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowUnvirtualized.tsx
6943
- var React28 = __toModule(require("react"));
6988
+ var React27 = __toModule(require("react"));
6944
6989
  function TableRowUnvirtualizedFn(props) {
6945
6990
  const {
6946
6991
  rowHeight,
@@ -6961,7 +7006,7 @@ function TableRowUnvirtualizedFn(props) {
6961
7006
  }, domProps.style);
6962
7007
  const children = columns.map((col) => {
6963
7008
  const hidden = false;
6964
- return /* @__PURE__ */ React28.createElement(InfiniteTableColumnCell, {
7009
+ return /* @__PURE__ */ React27.createElement(InfiniteTableColumnCell, {
6965
7010
  key: col.id,
6966
7011
  virtualized: false,
6967
7012
  rowHeight,
@@ -6974,11 +7019,11 @@ function TableRowUnvirtualizedFn(props) {
6974
7019
  column: col
6975
7020
  });
6976
7021
  });
6977
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, domProps), {
7022
+ return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, domProps), {
6978
7023
  style
6979
7024
  }), children);
6980
7025
  }
6981
- var TableRowUnvirtualized = React28.memo(TableRowUnvirtualizedFn);
7026
+ var TableRowUnvirtualized = React27.memo(TableRowUnvirtualizedFn);
6982
7027
 
6983
7028
  // src/components/InfiniteTable/hooks/useUnpinnedRendering.tsx
6984
7029
  function useUnpinnedRendering(params) {
@@ -7001,7 +7046,7 @@ function useUnpinnedRendering(params) {
7001
7046
  } = params;
7002
7047
  const { virtualizeColumns } = getState();
7003
7048
  const shouldVirtualizeColumns = typeof virtualizeColumns === "function" ? virtualizeColumns(computedUnpinnedColumns) : virtualizeColumns != null ? virtualizeColumns : true;
7004
- const renderRowUnpinned = (0, import_react34.useCallback)((rowParams) => {
7049
+ const renderRowUnpinned = (0, import_react35.useCallback)((rowParams) => {
7005
7050
  const dataArray = getData();
7006
7051
  const rowInfo = dataArray[rowParams.rowIndex];
7007
7052
  const { showZebraRows, showHoverRows } = getState();
@@ -7023,7 +7068,7 @@ function useUnpinnedRendering(params) {
7023
7068
  rowProps.repaintId = repaintId;
7024
7069
  }
7025
7070
  const TableRowComponent = shouldVirtualizeColumns ? InfiniteTableRow : TableRowUnvirtualized;
7026
- return /* @__PURE__ */ React29.createElement(TableRowComponent, __spreadValues({}, rowProps));
7071
+ return /* @__PURE__ */ React28.createElement(TableRowComponent, __spreadValues({}, rowProps));
7027
7072
  }, [
7028
7073
  repaintId,
7029
7074
  rowHeight,
@@ -7034,7 +7079,7 @@ function useUnpinnedRendering(params) {
7034
7079
  horizontalVirtualBrain,
7035
7080
  verticalVirtualBrain
7036
7081
  ]);
7037
- const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */ React29.createElement("div", {
7082
+ const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */ React28.createElement("div", {
7038
7083
  "data-name": "horizontal-scrollbar-placeholder--fake",
7039
7084
  style: {
7040
7085
  position: "absolute",
@@ -7045,10 +7090,10 @@ function useUnpinnedRendering(params) {
7045
7090
  overflow: "auto",
7046
7091
  visibility: columnShifts ? "visible" : "hidden"
7047
7092
  }
7048
- }, /* @__PURE__ */ React29.createElement("div", {
7093
+ }, /* @__PURE__ */ React28.createElement("div", {
7049
7094
  style: { height: "100%", width: computedUnpinnedColumnsWidth }
7050
7095
  })) : null;
7051
- return rowHeight != 0 ? /* @__PURE__ */ React29.createElement(VirtualRowList, {
7096
+ return rowHeight != 0 ? /* @__PURE__ */ React28.createElement(VirtualRowList, {
7052
7097
  repaintId: `${repaintId}-unpinned-`,
7053
7098
  brain: verticalVirtualBrain,
7054
7099
  onContainerScroll: applyScrollHorizontal,
@@ -7069,7 +7114,7 @@ function useUnpinnedRendering(params) {
7069
7114
  }
7070
7115
 
7071
7116
  // src/components/InfiniteTable/hooks/useOnContainerScroll.ts
7072
- var import_react35 = __toModule(require("react"));
7117
+ var import_react36 = __toModule(require("react"));
7073
7118
 
7074
7119
  // src/components/InfiniteTable/InfiniteCls.css.ts
7075
7120
  var import_createRuntimeFn5 = __toModule(require_vanilla_extract_recipes_createRuntimeFn_cjs());
@@ -7107,18 +7152,18 @@ var useOnContainerScroll = ({
7107
7152
  getState: getDataSourceState,
7108
7153
  componentState: { notifyScrollStop }
7109
7154
  } = useDataSourceContextValue();
7110
- const onScrollStop = (0, import_react35.useCallback)((param) => {
7155
+ const onScrollStop = (0, import_react36.useCallback)((param) => {
7111
7156
  onScrollStopFromProps == null ? void 0 : onScrollStopFromProps(param);
7112
7157
  notifyScrollStop(param);
7113
7158
  }, [onScrollStopFromProps, notifyScrollStop]);
7114
- const timeoutIdRef = (0, import_react35.useRef)(0);
7115
- const scrollingRef = (0, import_react35.useRef)(false);
7116
- const scrollTopMaxRef = (0, import_react35.useRef)(0);
7117
- (0, import_react35.useEffect)(() => {
7159
+ const timeoutIdRef = (0, import_react36.useRef)(0);
7160
+ const scrollingRef = (0, import_react36.useRef)(false);
7161
+ const scrollTopMaxRef = (0, import_react36.useRef)(0);
7162
+ (0, import_react36.useEffect)(() => {
7118
7163
  const { current: node } = scrollerDOMRef;
7119
7164
  scrollTopMaxRef.current = node.scrollHeight - node.clientHeight;
7120
7165
  }, [reservedContentHeight, bodySize.height]);
7121
- const setScrolling = (0, import_react35.useCallback)((scrolling) => {
7166
+ const setScrolling = (0, import_react36.useCallback)((scrolling) => {
7122
7167
  var _a;
7123
7168
  const prevScrolling = scrollingRef.current;
7124
7169
  scrollingRef.current = scrolling;
@@ -7151,7 +7196,7 @@ var useOnContainerScroll = ({
7151
7196
  }
7152
7197
  }
7153
7198
  }, [scrollStopDelay, onScrollStop]);
7154
- const onContainerScroll = (0, import_react35.useCallback)((scrollInfo) => {
7199
+ const onContainerScroll = (0, import_react36.useCallback)((scrollInfo) => {
7155
7200
  verticalVirtualBrain.setScrollPosition(scrollInfo);
7156
7201
  horizontalVirtualBrain.setScrollPosition(scrollInfo);
7157
7202
  setScrolling(true);
@@ -7161,15 +7206,15 @@ var useOnContainerScroll = ({
7161
7206
  domRef.current,
7162
7207
  setScrolling
7163
7208
  ]);
7164
- const scrollPositionRef = (0, import_react35.useRef)({
7209
+ const scrollPositionRef = (0, import_react36.useRef)({
7165
7210
  scrollLeft: 0,
7166
7211
  scrollTop: 0
7167
7212
  });
7168
- const applyScrollHorizontal = (0, import_react35.useCallback)(({ scrollLeft }) => {
7213
+ const applyScrollHorizontal = (0, import_react36.useCallback)(({ scrollLeft }) => {
7169
7214
  scrollPositionRef.current.scrollLeft = scrollLeft;
7170
7215
  onContainerScroll(scrollPositionRef.current);
7171
7216
  }, [onContainerScroll]);
7172
- const applyScrollVertical = (0, import_react35.useCallback)(({ scrollTop }) => {
7217
+ const applyScrollVertical = (0, import_react36.useCallback)(({ scrollTop }) => {
7173
7218
  scrollPositionRef.current.scrollTop = scrollTop;
7174
7219
  onContainerScroll(scrollPositionRef.current);
7175
7220
  if (scrollTop === 0) {
@@ -7191,17 +7236,17 @@ var useOnContainerScroll = ({
7191
7236
  };
7192
7237
 
7193
7238
  // src/components/InfiniteTable/hooks/usePinnedRendering.tsx
7194
- var React31 = __toModule(require("react"));
7195
- var import_react38 = __toModule(require("react"));
7239
+ var React30 = __toModule(require("react"));
7240
+ var import_react39 = __toModule(require("react"));
7196
7241
 
7197
7242
  // src/components/VirtualList/RowListWithExternalScrolling.tsx
7198
- var React30 = __toModule(require("react"));
7199
- var import_react37 = __toModule(require("react"));
7243
+ var React29 = __toModule(require("react"));
7244
+ var import_react38 = __toModule(require("react"));
7200
7245
 
7201
7246
  // src/components/hooks/useOnMount.ts
7202
- var import_react36 = __toModule(require("react"));
7247
+ var import_react37 = __toModule(require("react"));
7203
7248
  function useOnMount(domRef, props) {
7204
- (0, import_react36.useEffect)(() => {
7249
+ (0, import_react37.useEffect)(() => {
7205
7250
  const { onMount, onUnmount } = props;
7206
7251
  const node = domRef == null ? void 0 : domRef.current;
7207
7252
  onMount == null ? void 0 : onMount(node);
@@ -7232,8 +7277,8 @@ var RowListWithExternalScrolling = (props) => {
7232
7277
  onMount,
7233
7278
  onUnmount
7234
7279
  } = props;
7235
- const domRef = (0, import_react37.useRef)(null);
7236
- const renderItem = (0, import_react37.useCallback)((renderProps) => renderRow({
7280
+ const domRef = (0, import_react38.useRef)(null);
7281
+ const renderItem = (0, import_react38.useCallback)((renderProps) => renderRow({
7237
7282
  domRef: renderProps.domRef,
7238
7283
  rowHeight: renderProps.itemSize,
7239
7284
  rowIndex: renderProps.itemIndex
@@ -7242,7 +7287,7 @@ var RowListWithExternalScrolling = (props) => {
7242
7287
  onMount,
7243
7288
  onUnmount
7244
7289
  });
7245
- (0, import_react37.useEffect)(() => {
7290
+ (0, import_react38.useEffect)(() => {
7246
7291
  const onScroll = (scrollPosition) => {
7247
7292
  const node = domRef.current;
7248
7293
  if (node) {
@@ -7271,7 +7316,7 @@ var RowListWithExternalScrolling = (props) => {
7271
7316
  if (true) {
7272
7317
  domProps["data-cmp-name"] = "RowListWithExternalScrolling";
7273
7318
  }
7274
- return /* @__PURE__ */ React30.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React30.createElement(RawList, {
7319
+ return /* @__PURE__ */ React29.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React29.createElement(RawList, {
7275
7320
  brain,
7276
7321
  renderItem,
7277
7322
  repaintId
@@ -7294,7 +7339,7 @@ function PinnedRowsContainer(props) {
7294
7339
  brain,
7295
7340
  renderRow
7296
7341
  } = props;
7297
- const style = React31.useMemo(() => {
7342
+ const style = React30.useMemo(() => {
7298
7343
  const result = pinning === "end" ? {
7299
7344
  width: rowWidth,
7300
7345
  height,
@@ -7309,7 +7354,7 @@ function PinnedRowsContainer(props) {
7309
7354
  }
7310
7355
  return result;
7311
7356
  }, [height, rowWidth, pinning, hasOverflow]);
7312
- const updateScroll = (0, import_react38.useCallback)((node, scrollPosition) => {
7357
+ const updateScroll = (0, import_react39.useCallback)((node, scrollPosition) => {
7313
7358
  UPDATE_SCROLL3(node, scrollPosition, hasOverflow ? pinnedScrollListener.getScrollPosition() : void 0);
7314
7359
  }, [hasOverflow, pinnedScrollListener]);
7315
7360
  const rowListProps = {
@@ -7320,7 +7365,7 @@ function PinnedRowsContainer(props) {
7320
7365
  className: join(`${PinnedRowsContainerClassName}`, PinnedRowsClsVariants[pinning === "start" ? "pinnedStart" : "pinnedEnd"], `${PinnedRowsContainerClassName}--pinned-${pinning}`, `${PinnedRowsContainerClassName}--overflow`, PinnedRowsClsVariants.overflow)
7321
7366
  };
7322
7367
  if (hasOverflow) {
7323
- return /* @__PURE__ */ React31.createElement(VirtualScrollContainer, {
7368
+ return /* @__PURE__ */ React30.createElement(VirtualScrollContainer, {
7324
7369
  scrollable: {
7325
7370
  horizontal: true,
7326
7371
  vertical: false
@@ -7336,23 +7381,23 @@ function PinnedRowsContainer(props) {
7336
7381
  className: join(PinnedRowsContainerClsVariants({
7337
7382
  pinned: pinning
7338
7383
  }), `${PinnedRowsContainerClassName}Container`, `${PinnedRowsContainerClassName}Container--pinned-${pinning}`)
7339
- }, /* @__PURE__ */ React31.createElement(RowListWithExternalScrolling, __spreadProps(__spreadValues({}, rowListProps), {
7384
+ }, /* @__PURE__ */ React30.createElement(RowListWithExternalScrolling, __spreadProps(__spreadValues({}, rowListProps), {
7340
7385
  onMount: (node) => {
7341
7386
  pinnedScrollListener == null ? void 0 : pinnedScrollListener.onScroll((scrollPosition) => {
7342
7387
  updateScroll(node, brain.getScrollPosition(), scrollPosition);
7343
7388
  });
7344
7389
  }
7345
- })), /* @__PURE__ */ React31.createElement(SpacePlaceholder, {
7390
+ })), /* @__PURE__ */ React30.createElement(SpacePlaceholder, {
7346
7391
  width: rowWidth,
7347
7392
  height: 1
7348
7393
  }));
7349
7394
  }
7350
- return /* @__PURE__ */ React31.createElement(RowListWithExternalScrolling, __spreadValues({}, rowListProps));
7395
+ return /* @__PURE__ */ React30.createElement(RowListWithExternalScrolling, __spreadValues({}, rowListProps));
7351
7396
  }
7352
7397
  function useRenderPinnedRow(params) {
7353
7398
  const { getData, getState, columnsWidth, columns, rowSpan, verticalBrain } = params;
7354
7399
  const dataArray = getData();
7355
- const renderPinnedRow = (0, import_react38.useCallback)((rowParams) => {
7400
+ const renderPinnedRow = (0, import_react39.useCallback)((rowParams) => {
7356
7401
  const rowInfo = dataArray[rowParams.rowIndex];
7357
7402
  const { showZebraRows, showHoverRows } = getState();
7358
7403
  const rowProps = __spreadValues({
@@ -7368,7 +7413,7 @@ function useRenderPinnedRow(params) {
7368
7413
  rowWidth: columnsWidth,
7369
7414
  columns
7370
7415
  }, rowParams);
7371
- return /* @__PURE__ */ React31.createElement(TableRowUnvirtualized, __spreadValues({}, rowProps));
7416
+ return /* @__PURE__ */ React30.createElement(TableRowUnvirtualized, __spreadValues({}, rowProps));
7372
7417
  }, [columnsWidth, columns, verticalBrain, dataArray]);
7373
7418
  return renderPinnedRow;
7374
7419
  }
@@ -7414,7 +7459,7 @@ function usePinnedRenderingForSide(side, params) {
7414
7459
  columns,
7415
7460
  columnsWidth
7416
7461
  });
7417
- const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */ React31.createElement(PinnedRowsContainer, {
7462
+ const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */ React30.createElement(PinnedRowsContainer, {
7418
7463
  pinning: side,
7419
7464
  pinnedScrollListener,
7420
7465
  hasOverflow,
@@ -7427,7 +7472,7 @@ function usePinnedRenderingForSide(side, params) {
7427
7472
  brain: verticalVirtualBrain,
7428
7473
  renderRow: renderRowPinned
7429
7474
  }) : null;
7430
- const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */ React31.createElement(HorizontalScrollbarPlaceholder, {
7475
+ const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */ React30.createElement(HorizontalScrollbarPlaceholder, {
7431
7476
  style: side === "end" ? {
7432
7477
  width: columnsWidth,
7433
7478
  right: hasVerticalScrollbar ? getScrollbarWidth() : 0
@@ -7469,13 +7514,13 @@ function usePinnedStartRendering(params) {
7469
7514
  }
7470
7515
 
7471
7516
  // src/components/InfiniteTable/hooks/useYourBrain.ts
7472
- var import_react40 = __toModule(require("react"));
7517
+ var import_react41 = __toModule(require("react"));
7473
7518
 
7474
7519
  // src/components/InfiniteTable/hooks/useColumnSizeFn.ts
7475
- var import_react39 = __toModule(require("react"));
7520
+ var import_react40 = __toModule(require("react"));
7476
7521
  var debug5 = dbg("useColumnSizeFn");
7477
7522
  function useColumnSizeFn(computedUnpinnedColumns) {
7478
- const columnSize = (0, import_react39.useCallback)((index) => {
7523
+ const columnSize = (0, import_react40.useCallback)((index) => {
7479
7524
  const column = computedUnpinnedColumns[index];
7480
7525
  if (!column) {
7481
7526
  debug5("cannot find column at index", index, computedUnpinnedColumns);
@@ -7505,13 +7550,13 @@ function useYourBrain(param) {
7505
7550
  globalThis.verticalVirtualBrain = verticalVirtualBrain;
7506
7551
  globalThis.horizontalVirtualBrain = horizontalVirtualBrain;
7507
7552
  }
7508
- (0, import_react40.useEffect)(() => {
7553
+ (0, import_react41.useEffect)(() => {
7509
7554
  verticalVirtualBrain.setAvailableSize({
7510
7555
  height: bodySize.height,
7511
7556
  width: 0
7512
7557
  });
7513
7558
  }, [bodySize, verticalVirtualBrain]);
7514
- (0, import_react40.useEffect)(() => {
7559
+ (0, import_react41.useEffect)(() => {
7515
7560
  horizontalVirtualBrain.setAvailableSize({
7516
7561
  height: 0,
7517
7562
  width: Math.max(bodySize.width - computedPinnedStartWidth - computedPinnedEndWidth, 0)
@@ -7552,7 +7597,7 @@ function useListRendering(param) {
7552
7597
  horizontalVirtualBrain
7553
7598
  } = componentState;
7554
7599
  const prevDataSourceTimestamp = usePrevious(dataSourceState.updatedAt);
7555
- const repaintIdRef = (0, import_react41.useRef)(0);
7600
+ const repaintIdRef = (0, import_react42.useRef)(0);
7556
7601
  if (prevDataSourceTimestamp !== dataSourceState.updatedAt || !shallowEqualObjects(prevComputed, computed)) {
7557
7602
  repaintIdRef.current++;
7558
7603
  }
@@ -7571,11 +7616,11 @@ function useListRendering(param) {
7571
7616
  const hasHorizontalScrollbar = computedUnpinnedColumnsWidth > bodySize.width - computedPinnedStartColumnsWidth - computedPinnedEndColumnsWidth;
7572
7617
  const reservedContentHeight = verticalVirtualBrain.getTotalSize() + (hasHorizontalScrollbar ? getScrollbarWidth() : 0);
7573
7618
  const hasVerticalScrollbar = bodySize.height > 0 && bodySize.height < reservedContentHeight;
7574
- const scrollbars = (0, import_react41.useMemo)(() => ({
7619
+ const scrollbars = (0, import_react42.useMemo)(() => ({
7575
7620
  vertical: hasVerticalScrollbar,
7576
7621
  horizontal: hasHorizontalScrollbar
7577
7622
  }), [hasVerticalScrollbar, hasHorizontalScrollbar]);
7578
- (0, import_react41.useEffect)(() => {
7623
+ (0, import_react42.useEffect)(() => {
7579
7624
  if (!bodySize.height) {
7580
7625
  return;
7581
7626
  }
@@ -7631,7 +7676,7 @@ function useListRendering(param) {
7631
7676
  computedUnpinnedColumns
7632
7677
  });
7633
7678
  const [, rerender] = useRerender();
7634
- (0, import_react41.useEffect)(() => {
7679
+ (0, import_react42.useEffect)(() => {
7635
7680
  rerender();
7636
7681
  }, [dataSourceState]);
7637
7682
  const { pinnedStartList, pinnedStartScrollbarPlaceholder } = usePinnedStartRendering(pinnedRenderingParams);
@@ -7654,8 +7699,8 @@ function useListRendering(param) {
7654
7699
  }
7655
7700
 
7656
7701
  // src/components/InfiniteTable/components/InfiniteTableLicenseFooter/index.tsx
7657
- var React32 = __toModule(require("react"));
7658
- var import_react42 = __toModule(require("react"));
7702
+ var React31 = __toModule(require("react"));
7703
+ var import_react43 = __toModule(require("react"));
7659
7704
 
7660
7705
  // src/components/utils/decamelize.ts
7661
7706
  function decamelize(str, options) {
@@ -7690,10 +7735,10 @@ var enforceStyle = (node, style) => {
7690
7735
  node.style.setProperty(decamelize(propertyName), propertyValue, "important");
7691
7736
  }
7692
7737
  };
7693
- var InfiniteTableLicenseFooter = React32.forwardRef(function InfiniteTableLicenseFooter2(props, ref) {
7738
+ var InfiniteTableLicenseFooter = React31.forwardRef(function InfiniteTableLicenseFooter2(props, ref) {
7694
7739
  const { rootClassName: rootClassName12 } = useInternalProps();
7695
- const domRef = React32.useRef(null);
7696
- const domCallback = React32.useCallback((node) => {
7740
+ const domRef = React31.useRef(null);
7741
+ const domCallback = React31.useCallback((node) => {
7697
7742
  domRef.current = node;
7698
7743
  if (!ref) {
7699
7744
  return;
@@ -7704,7 +7749,7 @@ var InfiniteTableLicenseFooter = React32.forwardRef(function InfiniteTableLicens
7704
7749
  ref.current = node;
7705
7750
  }
7706
7751
  }, []);
7707
- (0, import_react42.useEffect)(() => {
7752
+ (0, import_react43.useEffect)(() => {
7708
7753
  const forceStyle = () => {
7709
7754
  requestAnimationFrame(() => {
7710
7755
  var _a;
@@ -7718,12 +7763,12 @@ var InfiniteTableLicenseFooter = React32.forwardRef(function InfiniteTableLicens
7718
7763
  clearInterval(intervalId);
7719
7764
  };
7720
7765
  }, []);
7721
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({
7766
+ return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({
7722
7767
  ref: domCallback
7723
7768
  }, props), {
7724
7769
  className: join(`${rootClassName12}-Footer`, FooterCls, props.className),
7725
7770
  style: defaultStyle2
7726
- }), "Powered by", " ", /* @__PURE__ */ React32.createElement("a", {
7771
+ }), "Powered by", " ", /* @__PURE__ */ React31.createElement("a", {
7727
7772
  href: "https://infinite-table.com",
7728
7773
  rel: "noopener noreferrer",
7729
7774
  role: "link",
@@ -7732,7 +7777,7 @@ var InfiniteTableLicenseFooter = React32.forwardRef(function InfiniteTableLicens
7732
7777
  });
7733
7778
 
7734
7779
  // src/components/InfiniteTable/hooks/useLicense/useLicense.ts
7735
- var import_react43 = __toModule(require("react"));
7780
+ var import_react44 = __toModule(require("react"));
7736
7781
 
7737
7782
  // src/components/InfiniteTable/hooks/useLicense/crc32.ts
7738
7783
  var DEFAULT_ReversedPolynomial = 3988292384;
@@ -7890,10 +7935,10 @@ var isInsideSandbox = () => {
7890
7935
  };
7891
7936
  var isInsidePlayground = isInsideSandbox() || isInsideSandpack();
7892
7937
  var useLicense = (licenseKey = "") => {
7893
- const valid = (0, import_react43.useMemo)(() => {
7938
+ const valid = (0, import_react44.useMemo)(() => {
7894
7939
  let valid2 = isValidLicense(licenseKey, {
7895
7940
  publishedAt: 1624970570587,
7896
- version: "0.2.16"
7941
+ version: "0.2.17"
7897
7942
  });
7898
7943
  if (!licenseKey && !valid2 && isInsidePlayground) {
7899
7944
  return true;
@@ -7904,8 +7949,8 @@ var useLicense = (licenseKey = "") => {
7904
7949
  };
7905
7950
 
7906
7951
  // src/components/CSSVariableWatch.tsx
7907
- var React33 = __toModule(require("react"));
7908
- var import_react44 = __toModule(require("react"));
7952
+ var React32 = __toModule(require("react"));
7953
+ var import_react45 = __toModule(require("react"));
7909
7954
  var error = err("CSSVariableWatch");
7910
7955
  var debug6 = dbg("CSSVariableWatch");
7911
7956
  var WRAPPER_STYLE = {
@@ -7918,15 +7963,15 @@ var WRAPPER_STYLE = {
7918
7963
  overflow: "hidden"
7919
7964
  };
7920
7965
  var useCSSVariableWatch = (params) => {
7921
- const lastValueRef = (0, import_react44.useRef)(0);
7922
- const onResize = React33.useCallback(({ height }) => {
7966
+ const lastValueRef = (0, import_react45.useRef)(0);
7967
+ const onResize = React32.useCallback(({ height }) => {
7923
7968
  if (height && height !== lastValueRef.current) {
7924
7969
  lastValueRef.current = height;
7925
7970
  params.onChange(height);
7926
7971
  }
7927
7972
  }, [params.onChange]);
7928
7973
  useResizeObserver(params.ref, onResize, { earlyAttach: true });
7929
- React33.useLayoutEffect(() => {
7974
+ React32.useLayoutEffect(() => {
7930
7975
  const value = params.ref.current.getBoundingClientRect().height;
7931
7976
  if (value) {
7932
7977
  lastValueRef.current = value;
@@ -7938,15 +7983,15 @@ var useCSSVariableWatch = (params) => {
7938
7983
  }, []);
7939
7984
  };
7940
7985
  var CSSVariableWatch = (props) => {
7941
- const domRef = (0, import_react44.useRef)(null);
7986
+ const domRef = (0, import_react45.useRef)(null);
7942
7987
  useCSSVariableWatch(__spreadProps(__spreadValues({}, props), {
7943
7988
  ref: domRef
7944
7989
  }));
7945
- return /* @__PURE__ */ React33.createElement("div", {
7990
+ return /* @__PURE__ */ React32.createElement("div", {
7946
7991
  "data-name": "css-variable-watcher",
7947
7992
  "data-var": props.varName,
7948
7993
  style: WRAPPER_STYLE
7949
- }, /* @__PURE__ */ React33.createElement("div", {
7994
+ }, /* @__PURE__ */ React32.createElement("div", {
7950
7995
  ref: domRef,
7951
7996
  style: {
7952
7997
  height: props.varName.startsWith("var(") ? props.varName : `var(${props.varName})`
@@ -8039,7 +8084,7 @@ function useDOMProps(initialDOMProps) {
8039
8084
  }
8040
8085
 
8041
8086
  // src/components/InfiniteTable/components/LoadMask.tsx
8042
- var React34 = __toModule(require("react"));
8087
+ var React33 = __toModule(require("react"));
8043
8088
 
8044
8089
  // src/components/InfiniteTable/components/LoadMask.css.ts
8045
8090
  var LoadMaskCls = { visible: "qy58ya1 qy58ya0 _16lm1iw2 _16lm1iwr _16lm1iwt _16lm1iwx _16lm1iwv", hidden: "qy58ya2 qy58ya0 _16lm1iw2 _16lm1iwr _16lm1iwt _16lm1iwx _16lm1iwv" };
@@ -8051,18 +8096,18 @@ var { rootClassName: rootClassName11 } = internalProps;
8051
8096
  var baseCls = `${rootClassName11}-LoadMask`;
8052
8097
  function LoadMaskFn(props) {
8053
8098
  const { visible, children = "Loading" } = props;
8054
- return /* @__PURE__ */ React34.createElement("div", {
8099
+ return /* @__PURE__ */ React33.createElement("div", {
8055
8100
  className: `${LoadMaskCls[visible ? "visible" : "hidden"]} ${baseCls}`
8056
- }, /* @__PURE__ */ React34.createElement("div", {
8101
+ }, /* @__PURE__ */ React33.createElement("div", {
8057
8102
  className: `${LoadMaskOverlayCls} ${baseCls}-Overlay`
8058
- }), /* @__PURE__ */ React34.createElement("div", {
8103
+ }), /* @__PURE__ */ React33.createElement("div", {
8059
8104
  className: `${LoadMaskTextCls} ${baseCls}-Text`
8060
8105
  }, children));
8061
8106
  }
8062
- var LoadMask = React34.memo(LoadMaskFn);
8107
+ var LoadMask = React33.memo(LoadMaskFn);
8063
8108
 
8064
8109
  // src/components/InfiniteTable/hooks/useAutoSizeColumns.ts
8065
- var import_react45 = __toModule(require("react"));
8110
+ var import_react46 = __toModule(require("react"));
8066
8111
  var OFFSET = 10;
8067
8112
  function getColumnContentMaxWidths(domRef, options) {
8068
8113
  var _a;
@@ -8127,11 +8172,11 @@ function useAutoSizeColumns() {
8127
8172
  horizontalVirtualBrain
8128
8173
  }
8129
8174
  } = useComponentState();
8130
- const [refreshId, setRefreshId] = (0, import_react45.useState)(0);
8175
+ const [refreshId, setRefreshId] = (0, import_react46.useState)(0);
8131
8176
  const theKey = typeof autoSizeColumnsKey === "object" ? autoSizeColumnsKey.key : autoSizeColumnsKey;
8132
8177
  const getTheKey = useLatest(theKey);
8133
- const lastExecutedIdentifierRef = (0, import_react45.useRef)(null);
8134
- (0, import_react45.useEffect)(() => {
8178
+ const lastExecutedIdentifierRef = (0, import_react46.useRef)(null);
8179
+ (0, import_react46.useEffect)(() => {
8135
8180
  const key = getTheKey();
8136
8181
  if (key == null) {
8137
8182
  return;
@@ -8149,7 +8194,7 @@ function useAutoSizeColumns() {
8149
8194
  removeHorizontal();
8150
8195
  };
8151
8196
  }, [verticalVirtualBrain, horizontalVirtualBrain]);
8152
- (0, import_react45.useEffect)(() => {
8197
+ (0, import_react46.useEffect)(() => {
8153
8198
  var _a;
8154
8199
  if (theKey == null) {
8155
8200
  return;
@@ -8210,7 +8255,7 @@ var InfiniteTableRoot = getComponentStateRoot({
8210
8255
  getParentState: () => useDataSource(),
8211
8256
  debugName: "InfiniteTable"
8212
8257
  });
8213
- var InfiniteTableComponent = React35.memo(function InfiniteTableComponent2() {
8258
+ var InfiniteTableComponent = React34.memo(function InfiniteTableComponent2() {
8214
8259
  var _a;
8215
8260
  const {
8216
8261
  componentState,
@@ -8257,7 +8302,7 @@ var InfiniteTableComponent = React35.memo(function InfiniteTableComponent2() {
8257
8302
  bodySize,
8258
8303
  computed
8259
8304
  });
8260
- React35.useEffect(() => {
8305
+ React34.useEffect(() => {
8261
8306
  const dataSourceState = getDataSourceState();
8262
8307
  const onChange = debounce((renderRange) => {
8263
8308
  dataSourceState.notifyRenderRangeChange(renderRange);
@@ -8267,7 +8312,7 @@ var InfiniteTableComponent = React35.memo(function InfiniteTableComponent2() {
8267
8312
  const licenseValid = useLicense(licenseKey);
8268
8313
  const domProps = useDOMProps(componentState.domProps);
8269
8314
  const LoadMaskCmp = (_a = components == null ? void 0 : components.LoadMask) != null ? _a : LoadMask;
8270
- React35.useLayoutEffect(() => {
8315
+ React34.useLayoutEffect(() => {
8271
8316
  const dataSourceState = getDataSourceState();
8272
8317
  const { onScrollbarsChange } = getInfiniteTableState();
8273
8318
  const { notifyScrollbarsChange } = dataSourceState;
@@ -8276,35 +8321,35 @@ var InfiniteTableComponent = React35.memo(function InfiniteTableComponent2() {
8276
8321
  }
8277
8322
  notifyScrollbarsChange(scrollbars);
8278
8323
  }, [scrollbars]);
8279
- React35.useEffect(() => {
8324
+ React34.useEffect(() => {
8280
8325
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
8281
8326
  }, [scrollStopDelay]);
8282
8327
  useAutoSizeColumns();
8283
- return /* @__PURE__ */ React35.createElement("div", __spreadValues({
8328
+ return /* @__PURE__ */ React34.createElement("div", __spreadValues({
8284
8329
  ref: domRef
8285
- }, domProps), header ? /* @__PURE__ */ React35.createElement(TableHeaderWrapper, {
8330
+ }, domProps), header ? /* @__PURE__ */ React34.createElement(TableHeaderWrapper, {
8286
8331
  brain: horizontalVirtualBrain,
8287
8332
  repaintId,
8288
8333
  scrollbars
8289
- }) : null, /* @__PURE__ */ React35.createElement(InfiniteTableBody, null, /* @__PURE__ */ React35.createElement(VirtualScrollContainer, {
8334
+ }) : null, /* @__PURE__ */ React34.createElement(InfiniteTableBody, null, /* @__PURE__ */ React34.createElement(VirtualScrollContainer, {
8290
8335
  ref: scrollerDOMRef,
8291
8336
  onContainerScroll: applyScrollVertical,
8292
8337
  scrollable: ONLY_VERTICAL_SCROLLBAR
8293
- }, /* @__PURE__ */ React35.createElement("div", {
8338
+ }, /* @__PURE__ */ React34.createElement("div", {
8294
8339
  className: display.flex
8295
- }, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */ React35.createElement(SpacePlaceholder, {
8340
+ }, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */ React34.createElement(SpacePlaceholder, {
8296
8341
  count: dataArray.length,
8297
8342
  width: 0,
8298
8343
  height: reservedContentHeight
8299
- })), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */ React35.createElement(LoadMaskCmp, {
8344
+ })), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */ React34.createElement(LoadMaskCmp, {
8300
8345
  visible: loading
8301
- }, loadingText)), licenseValid ? null : /* @__PURE__ */ React35.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React35.createElement("div", {
8346
+ }, loadingText)), licenseValid ? null : /* @__PURE__ */ React34.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React34.createElement("div", {
8302
8347
  ref: portalDOMRef,
8303
8348
  className: join(`${rootClassName}Portal`, zIndex[1e3], position.absolute, top[0], left[0])
8304
- }), rowHeightCSSVar ? /* @__PURE__ */ React35.createElement(CSSVariableWatch, {
8349
+ }), rowHeightCSSVar ? /* @__PURE__ */ React34.createElement(CSSVariableWatch, {
8305
8350
  varName: rowHeightCSSVar,
8306
8351
  onChange: onRowHeightCSSVarChange
8307
- }) : null, headerHeightCSSVar ? /* @__PURE__ */ React35.createElement(CSSVariableWatch, {
8352
+ }) : null, headerHeightCSSVar ? /* @__PURE__ */ React34.createElement(CSSVariableWatch, {
8308
8353
  varName: headerHeightCSSVar,
8309
8354
  onChange: onHeaderHeightCSSVarChange
8310
8355
  }) : null);
@@ -8340,25 +8385,25 @@ function InfiniteTableContextProvider() {
8340
8385
  }
8341
8386
  componentActions.bodySize = bodySize;
8342
8387
  }, { earlyAttach: true });
8343
- React35.useEffect(() => {
8388
+ React34.useEffect(() => {
8344
8389
  return () => {
8345
8390
  componentState.onRowHeightCSSVarChange.destroy();
8346
8391
  componentState.onHeaderHeightCSSVarChange.destroy();
8347
8392
  };
8348
8393
  }, []);
8349
- React35.useEffect(() => {
8394
+ React34.useEffect(() => {
8350
8395
  if (scrollerDOMRef.current) {
8351
8396
  scrollerDOMRef.current.scrollTop = 0;
8352
8397
  }
8353
8398
  }, [scrollTopKey, scrollerDOMRef]);
8354
8399
  const TableContext2 = getInfiniteTableContext();
8355
- return /* @__PURE__ */ React35.createElement(TableContext2.Provider, {
8400
+ return /* @__PURE__ */ React34.createElement(TableContext2.Provider, {
8356
8401
  value: contextValue
8357
- }, /* @__PURE__ */ React35.createElement(InfiniteTableComponent, null));
8402
+ }, /* @__PURE__ */ React34.createElement(InfiniteTableComponent, null));
8358
8403
  }
8359
8404
  function InfiniteTable(props) {
8360
- const table = /* @__PURE__ */ React35.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React35.createElement(InfiniteTableContextProvider, null));
8361
- return /* @__PURE__ */ React35.createElement(React35.StrictMode, null, table);
8405
+ const table = /* @__PURE__ */ React34.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React34.createElement(InfiniteTableContextProvider, null));
8406
+ return /* @__PURE__ */ React34.createElement(React34.StrictMode, null, table);
8362
8407
  }
8363
8408
  InfiniteTable.defaultProps = {
8364
8409
  rowHeight: 40,