@infinite-table/infinite-react 0.2.1 → 0.2.2

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 +29 -29
  2. package/index.esm.js +252 -286
  3. package/index.js +277 -309
  4. package/package.json +2 -2
package/index.esm.js CHANGED
@@ -619,7 +619,7 @@ var require_binary_search = __commonJS({
619
619
  // src/components/InfiniteTable/index.tsx
620
620
  import {
621
621
  StrictMode,
622
- createElement as createElement33,
622
+ createElement as createElement32,
623
623
  memo as memo13,
624
624
  useEffect as useEffect24,
625
625
  useLayoutEffect as useLayoutEffect5
@@ -768,7 +768,6 @@ function initSetupState() {
768
768
  draggingColumnId: null,
769
769
  pinnedStartScrollListener: new ScrollListener(),
770
770
  pinnedEndScrollListener: new ScrollListener(),
771
- computedPivotColumns: void 0,
772
771
  columnsWhenInlineGroupRenderStrategy: void 0
773
772
  };
774
773
  }
@@ -799,7 +798,6 @@ var forwardProps = (setupState) => {
799
798
  pinnedStartMaxWidth: 1,
800
799
  pinnedEndMaxWidth: 1,
801
800
  pivotColumn: 1,
802
- pivotRowLabelsColumn: 1,
803
801
  pivotColumnGroups: 1,
804
802
  onScrollbarsChange: 1,
805
803
  scrollStopDelay: (scrollStopDelay) => scrollStopDelay != null ? scrollStopDelay : 100,
@@ -856,7 +854,7 @@ var mapPropsToState = (params) => {
856
854
  groupBy,
857
855
  groupColumn: props.groupColumn
858
856
  });
859
- const computedColumns = state.computedPivotColumns || state.columnsWhenGrouping || state.columnsWhenInlineGroupRenderStrategy || state.columns;
857
+ const computedColumns = state.columnsWhenGrouping || state.columnsWhenInlineGroupRenderStrategy || state.columns;
860
858
  return {
861
859
  groupRenderStrategy,
862
860
  groupBy,
@@ -2050,7 +2048,7 @@ function useColumnGroups() {
2050
2048
  // src/components/InfiniteTable/hooks/useColumnsWhen.ts
2051
2049
  import { useEffect as useEffect9, useMemo as useMemo5 } from "react";
2052
2050
 
2053
- // src/components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns.tsx
2051
+ // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
2054
2052
  import {
2055
2053
  createElement as createElement4
2056
2054
  } from "react";
@@ -2126,93 +2124,15 @@ var userSelect = { none: "_16lm1iwm" };
2126
2124
  var willChange = { transform: "_16lm1iw19" };
2127
2125
  var zIndex = { "1": "_16lm1iwe", "10": "_16lm1iwf", "1000": "_16lm1iwg", "10000": "_16lm1iwh", "100000": "_16lm1iwi" };
2128
2126
 
2129
- // src/components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns.tsx
2130
- function getComputedPivotColumnsFromDataSourcePivotColumns(pivotColumns, params) {
2131
- if (!pivotColumns) {
2132
- return void 0;
2133
- }
2134
- const {
2135
- pivotColumn,
2136
- pivotRowLabelsColumn,
2137
- pivotBy,
2138
- groupBy,
2139
- pivotTotalColumnPosition,
2140
- toggleGroupRow
2141
- } = params;
2142
- const computedPivotColumns = new Map();
2143
- pivotColumns.forEach((col, key) => {
2144
- if (col.pivotTotalColumn && pivotTotalColumnPosition === false) {
2145
- return;
2146
- }
2147
- let column = __spreadValues({}, col);
2148
- const isPivotRowLabelsColumn = !column.pivotColumn && !column.pivotTotalColumn;
2149
- if (!isPivotRowLabelsColumn) {
2150
- if (pivotColumn) {
2151
- if (typeof pivotColumn === "function") {
2152
- column = __spreadValues(__spreadValues({}, column), pivotColumn({
2153
- column,
2154
- pivotBy,
2155
- groupBy
2156
- }));
2157
- } else {
2158
- column = __spreadValues(__spreadValues({}, column), pivotColumn);
2159
- }
2160
- }
2161
- } else {
2162
- if (pivotRowLabelsColumn) {
2163
- if (typeof pivotRowLabelsColumn === "function") {
2164
- column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn({
2165
- column,
2166
- pivotBy,
2167
- groupBy
2168
- }));
2169
- } else {
2170
- column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn);
2171
- }
2172
- }
2173
- if (!column.render) {
2174
- column.render = (renderOptions) => {
2175
- var _a;
2176
- let { value, rowInfo, column: column2, groupBy: groupBy2 } = renderOptions;
2177
- if (column2.renderValue) {
2178
- value = column2.renderValue(renderOptions);
2179
- }
2180
- const showExpanderIcon = (((_a = rowInfo.groupKeys) == null ? void 0 : _a.length) || 0) < groupBy2.length;
2181
- return /* @__PURE__ */ createElement4("div", {
2182
- className: join(display.flex, alignItems.center, GroupRowExpanderCls)
2183
- }, showExpanderIcon ? /* @__PURE__ */ createElement4(ExpanderIcon, {
2184
- expanded: !rowInfo.collapsed,
2185
- onChange: () => {
2186
- toggleGroupRow(rowInfo.groupKeys);
2187
- }
2188
- }) : null, /* @__PURE__ */ createElement4("div", {
2189
- className: cssEllipsisClassName
2190
- }, value != null ? value : null));
2191
- };
2192
- }
2193
- }
2194
- if (!column.render && column.renderValue) {
2195
- column.render = (renderOptions) => {
2196
- return column.renderValue(renderOptions);
2197
- };
2198
- }
2199
- computedPivotColumns.set(key, column);
2200
- });
2201
- return computedPivotColumns;
2202
- }
2203
-
2204
2127
  // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
2205
- import {
2206
- createElement as createElement5
2207
- } from "react";
2208
2128
  function getGroupColumnRender({
2209
2129
  groupIndexForColumn,
2210
2130
  groupRenderStrategy,
2211
2131
  toggleGroupRow
2212
2132
  }) {
2213
2133
  return (renderOptions) => {
2214
- var _a;
2215
- let { value, rowInfo, column } = renderOptions;
2134
+ var _a, _b, _c;
2135
+ let { value, rowInfo, column, groupBy, pivotBy } = renderOptions;
2216
2136
  if (column.renderValue) {
2217
2137
  value = column.renderValue(renderOptions);
2218
2138
  }
@@ -2237,14 +2157,20 @@ function getGroupColumnRender({
2237
2157
  return null;
2238
2158
  }
2239
2159
  }
2240
- return /* @__PURE__ */ createElement5("div", {
2160
+ let icon = null;
2161
+ 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);
2162
+ if (showExpanderIcon) {
2163
+ const defaultIcon = /* @__PURE__ */ createElement4(ExpanderIcon, {
2164
+ expanded: !collapsed,
2165
+ onChange: () => {
2166
+ toggleGroupRow(groupKeys);
2167
+ }
2168
+ });
2169
+ icon = column.renderGroupIcon ? column.renderGroupIcon(Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)) : defaultIcon;
2170
+ }
2171
+ return /* @__PURE__ */ createElement4("div", {
2241
2172
  className: join(display.flex, alignItems.center)
2242
- }, /* @__PURE__ */ createElement5(ExpanderIcon, {
2243
- expanded: !collapsed,
2244
- onChange: () => {
2245
- toggleGroupRow(groupKeys);
2246
- }
2247
- }), /* @__PURE__ */ createElement5("div", {
2173
+ }, icon, /* @__PURE__ */ createElement4("div", {
2248
2174
  className: cssEllipsisClassName
2249
2175
  }, value != null ? value : null));
2250
2176
  };
@@ -2280,21 +2206,29 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
2280
2206
  groupByField: options.groupBy.map((g) => g.field),
2281
2207
  sortable: false,
2282
2208
  render: (renderOptions) => {
2283
- let { value, rowInfo, column } = renderOptions;
2209
+ var _a, _b;
2210
+ let { value, rowInfo, column, groupBy, pivotBy } = renderOptions;
2284
2211
  if (!rowInfo.isGroupRow) {
2285
2212
  return null;
2286
2213
  }
2287
2214
  if (column.renderValue) {
2288
2215
  value = column.renderValue(renderOptions);
2289
2216
  }
2290
- return /* @__PURE__ */ createElement5("div", {
2217
+ const collapsed = rowInfo.collapsed;
2218
+ let icon = null;
2219
+ 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);
2220
+ if (showExpanderIcon) {
2221
+ const defaultIcon = /* @__PURE__ */ createElement4(ExpanderIcon, {
2222
+ expanded: !collapsed,
2223
+ onChange: () => {
2224
+ toggleGroupRow(rowInfo.groupKeys);
2225
+ }
2226
+ });
2227
+ icon = column.renderGroupIcon ? column.renderGroupIcon(Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)) : defaultIcon;
2228
+ }
2229
+ return /* @__PURE__ */ createElement4("div", {
2291
2230
  className: join(display.flex, alignItems.center, GroupRowExpanderCls)
2292
- }, /* @__PURE__ */ createElement5(ExpanderIcon, {
2293
- expanded: !rowInfo.collapsed,
2294
- onChange: () => {
2295
- toggleGroupRow(rowInfo.groupKeys);
2296
- }
2297
- }), /* @__PURE__ */ createElement5("div", {
2231
+ }, icon, /* @__PURE__ */ createElement4("div", {
2298
2232
  className: cssEllipsisClassName
2299
2233
  }, value != null ? value : null));
2300
2234
  }
@@ -2315,7 +2249,7 @@ import { useCallback as useCallback4 } from "react";
2315
2249
  // src/components/DataSource/index.tsx
2316
2250
  import {
2317
2251
  Fragment,
2318
- createElement as createElement6
2252
+ createElement as createElement5
2319
2253
  } from "react";
2320
2254
 
2321
2255
  // src/utils/multisort/sortTypes.ts
@@ -2664,6 +2598,7 @@ var DeepMap = class {
2664
2598
 
2665
2599
  // src/utils/groupAndPivot/index.ts
2666
2600
  var LAZY_ROOT_KEY_FOR_GROUPS = "____root____";
2601
+ var NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
2667
2602
  function DEFAULT_TO_KEY(value) {
2668
2603
  return value;
2669
2604
  }
@@ -2733,7 +2668,10 @@ function lazyGroup(groupParams, rootData) {
2733
2668
  items: [],
2734
2669
  reducerResults: {}
2735
2670
  };
2736
- deepMap.set([...currentGroupKeys, `not-loaded-yet-${i}`], deepMapGroupValue2);
2671
+ deepMap.set([
2672
+ ...currentGroupKeys,
2673
+ `${NOT_LOADED_YET_KEY_PREFIX}${i}`
2674
+ ], deepMapGroupValue2);
2737
2675
  continue;
2738
2676
  }
2739
2677
  const dataObject = dataArray[i].data;
@@ -2892,6 +2830,10 @@ function getEnhancedGroupData(options, deepMapValue) {
2892
2830
  }
2893
2831
  }
2894
2832
  }
2833
+ let theValue = groupKeys[groupKeys.length - 1];
2834
+ if (typeof theValue === "string" && theValue.startsWith(NOT_LOADED_YET_KEY_PREFIX)) {
2835
+ theValue = null;
2836
+ }
2895
2837
  const enhancedGroupData = {
2896
2838
  data,
2897
2839
  groupCount: groupItems.length,
@@ -2905,7 +2847,7 @@ function getEnhancedGroupData(options, deepMapValue) {
2905
2847
  indexInParentGroups: options.indexInParentGroups,
2906
2848
  indexInGroup: options.indexInGroup,
2907
2849
  indexInAll: options.indexInAll,
2908
- value: groupKeys[groupKeys.length - 1],
2850
+ value: theValue,
2909
2851
  rootGroupBy: groupBy,
2910
2852
  groupBy: groupNesting === groupBy.length ? groupBy : groupBy.slice(0, groupNesting),
2911
2853
  isGroupRow: true,
@@ -3095,6 +3037,25 @@ function buildDataSourceDataParams(componentState, overrides) {
3095
3037
  }
3096
3038
  function loadData(data, componentState, actions, overrides) {
3097
3039
  const dataParams = buildDataSourceDataParams(componentState, overrides);
3040
+ if (componentState.fullLazyLoad && dataParams.groupKeys) {
3041
+ const lazyGroupData = componentState.originalLazyGroupData;
3042
+ const key = [LAZY_ROOT_KEY_FOR_GROUPS, ...dataParams.groupKeys];
3043
+ const existingGroupRowInfo = lazyGroupData.get(key);
3044
+ if (existingGroupRowInfo && existingGroupRowInfo.cache) {
3045
+ const items = existingGroupRowInfo.items;
3046
+ const len = items.length;
3047
+ let allLoaded = true;
3048
+ for (let i = 0; i < len; i++) {
3049
+ if (items[i] == null) {
3050
+ allLoaded = false;
3051
+ break;
3052
+ }
3053
+ }
3054
+ if (allLoaded) {
3055
+ return Promise.resolve(true);
3056
+ }
3057
+ }
3058
+ }
3098
3059
  if (typeof data === "function") {
3099
3060
  data = data(dataParams);
3100
3061
  }
@@ -3103,7 +3064,7 @@ function loadData(data, componentState, actions, overrides) {
3103
3064
  actions.loading = true;
3104
3065
  }
3105
3066
  return Promise.resolve(data).then((dataParam) => {
3106
- var _a, _b, _c;
3067
+ var _a, _b, _c, _d;
3107
3068
  let dataArray = [];
3108
3069
  let skipAssign = false;
3109
3070
  if (Array.isArray(dataParam.data)) {
@@ -3119,6 +3080,7 @@ function loadData(data, componentState, actions, overrides) {
3119
3080
  const lazyGroupData = componentState.originalLazyGroupData;
3120
3081
  const key = [LAZY_ROOT_KEY_FOR_GROUPS, ...dataParams.groupKeys];
3121
3082
  const newGroupRowInfo = {
3083
+ cache: !!remoteData.cache,
3122
3084
  totalCount: (_a = remoteData.totalCount) != null ? _a : dataArray.length,
3123
3085
  items: dataArray
3124
3086
  };
@@ -3126,11 +3088,15 @@ function loadData(data, componentState, actions, overrides) {
3126
3088
  const existingGroupRowInfo = lazyGroupData.get(key);
3127
3089
  const currentGroupRowInfo = existingGroupRowInfo != null ? existingGroupRowInfo : {
3128
3090
  items: [],
3129
- totalCount: newGroupRowInfo.totalCount
3091
+ totalCount: newGroupRowInfo.totalCount,
3092
+ cache: (_b = newGroupRowInfo.cache) != null ? _b : true
3130
3093
  };
3094
+ if (existingGroupRowInfo) {
3095
+ existingGroupRowInfo.cache = newGroupRowInfo.cache;
3096
+ }
3131
3097
  currentGroupRowInfo.items.length = currentGroupRowInfo.totalCount;
3132
- const start = (_b = dataParams.lazyLoadStartIndex) != null ? _b : 0;
3133
- const end = Math.min((_c = remoteData.totalCount) != null ? _c : start + dataParams.lazyLoadBatchSize);
3098
+ const start = (_c = dataParams.lazyLoadStartIndex) != null ? _c : 0;
3099
+ const end = Math.min((_d = remoteData.totalCount) != null ? _d : start + dataParams.lazyLoadBatchSize);
3134
3100
  for (let i = start; i < end; i++) {
3135
3101
  currentGroupRowInfo.items[i] = newGroupRowInfo.items[i - start];
3136
3102
  }
@@ -3738,23 +3704,7 @@ function getPivotColumnsAndColumnGroups({
3738
3704
  const aggregationReducers = Object.keys(reducers).map((key) => {
3739
3705
  return __spreadProps(__spreadValues({}, reducers[key]), { id: key });
3740
3706
  });
3741
- const columns = new Map([
3742
- [
3743
- "labels",
3744
- {
3745
- header: "Row labels",
3746
- pivotBy,
3747
- valueGetter: (params) => {
3748
- var _a;
3749
- const { rowInfo } = params;
3750
- if (!rowInfo.data) {
3751
- return "Loading ...";
3752
- }
3753
- return rowInfo.groupKeys ? rowInfo.groupKeys[((_a = rowInfo.groupKeys) == null ? void 0 : _a.length) - 1] : null;
3754
- }
3755
- }
3756
- ]
3757
- ]);
3707
+ const columns = new Map([]);
3758
3708
  const columnGroups = new Map();
3759
3709
  const isSingleAggregationColumn = !showSeparatePivotColumnForSingleAggregation && aggregationReducers.length === 1;
3760
3710
  deepMap.visitDepthFirst((_value, keys, _indexInGroup, next) => {
@@ -4017,7 +3967,7 @@ function DataSourceWithContext(props) {
4017
3967
  if (typeof children === "function") {
4018
3968
  children = children(computedValues);
4019
3969
  }
4020
- return /* @__PURE__ */ createElement6(Fragment, null, children);
3970
+ return /* @__PURE__ */ createElement5(Fragment, null, children);
4021
3971
  }
4022
3972
  var DataSourceRoot = getComponentStateRoot({
4023
3973
  initSetupState: initSetupState2,
@@ -4040,14 +3990,14 @@ function DataSourceCmp({ children }) {
4040
3990
  globalThis.getDataSourceState = getState;
4041
3991
  }
4042
3992
  useLoadData();
4043
- return /* @__PURE__ */ createElement6(DataSourceContext.Provider, {
3993
+ return /* @__PURE__ */ createElement5(DataSourceContext.Provider, {
4044
3994
  value: contextValue
4045
- }, /* @__PURE__ */ createElement6(DataSourceWithContext, {
3995
+ }, /* @__PURE__ */ createElement5(DataSourceWithContext, {
4046
3996
  children
4047
3997
  }));
4048
3998
  }
4049
3999
  function DataSource(props) {
4050
- return /* @__PURE__ */ createElement6(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ createElement6(DataSourceCmp, {
4000
+ return /* @__PURE__ */ createElement5(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ createElement5(DataSourceCmp, {
4051
4001
  children: props.children
4052
4002
  }));
4053
4003
  }
@@ -4098,9 +4048,9 @@ function useColumnsWhen() {
4098
4048
  dataSourceActions.pivotTotalColumnPosition = pivotTotalColumnPosition;
4099
4049
  }, [pivotTotalColumnPosition]);
4100
4050
  useColumnsWhenInlineGroupRenderStrategy(groupByMap);
4101
- useColumnsWhenPivoting();
4102
- useColumnsWhenGrouping();
4051
+ const { toggleGroupRow } = useColumnsWhenGrouping();
4103
4052
  useHideEmptyGroupColumns(groupByMap);
4053
+ return { toggleGroupRow };
4104
4054
  }
4105
4055
  function useColumnsWhenInlineGroupRenderStrategy(groupByMap) {
4106
4056
  const toggleGroupRow = useToggleGroupRow();
@@ -4110,6 +4060,9 @@ function useColumnsWhenInlineGroupRenderStrategy(groupByMap) {
4110
4060
  } = useComponentState();
4111
4061
  function computeColumnsWhenInlineGroupRenderStrategy(columns2, groupByMap2, groupRenderStrategy2, toggleGroupRow2) {
4112
4062
  const computedColumns = new Map();
4063
+ if (groupRenderStrategy2 !== "inline") {
4064
+ return;
4065
+ }
4113
4066
  columns2.forEach((column, id) => {
4114
4067
  let base = {};
4115
4068
  const groupByForColumn = groupByMap2.get(column.field);
@@ -4169,51 +4122,32 @@ function useColumnsWhenInlineGroupRenderStrategy(groupByMap) {
4169
4122
  });
4170
4123
  }, [columns, groupByMap, groupRenderStrategy, toggleGroupRow]);
4171
4124
  }
4172
- function useColumnsWhenPivoting() {
4125
+ function useColumnsWhenGrouping() {
4173
4126
  const {
4174
4127
  componentState: { groupBy, pivotBy }
4175
4128
  } = useDataSourceContextValue();
4176
4129
  const {
4177
4130
  componentActions,
4178
4131
  componentState: {
4132
+ columns,
4133
+ groupColumn,
4134
+ groupRenderStrategy,
4179
4135
  pivotColumns,
4180
4136
  pivotColumn,
4181
- pivotRowLabelsColumn,
4182
4137
  pivotTotalColumnPosition
4183
4138
  }
4184
4139
  } = useComponentState();
4185
4140
  const toggleGroupRow = useToggleGroupRow();
4186
4141
  useEffect9(() => {
4187
- const computedPivotColumns = getComputedPivotColumnsFromDataSourcePivotColumns(pivotColumns, {
4188
- pivotColumn,
4189
- pivotRowLabelsColumn,
4190
- pivotTotalColumnPosition,
4191
- pivotBy,
4192
- groupBy,
4193
- toggleGroupRow
4194
- });
4195
- componentActions.computedPivotColumns = computedPivotColumns;
4196
- }, [pivotColumns, pivotColumn, pivotRowLabelsColumn]);
4197
- }
4198
- function useColumnsWhenGrouping() {
4199
- const {
4200
- componentState: { groupBy }
4201
- } = useDataSourceContextValue();
4202
- const {
4203
- componentActions,
4204
- componentState: { columns, groupColumn, groupRenderStrategy, pivotColumns }
4205
- } = useComponentState();
4206
- const toggleGroupRow = useToggleGroupRow();
4207
- useEffect9(() => {
4208
- if (pivotColumns) {
4209
- return;
4210
- }
4211
4142
  const update = () => {
4212
4143
  const columnsWhenGrouping = getColumnsWhenGrouping({
4213
4144
  columns,
4214
4145
  groupColumn,
4215
- groupRenderStrategy,
4146
+ pivotColumn,
4147
+ pivotTotalColumnPosition,
4148
+ groupRenderStrategy: groupRenderStrategy === "inline" ? "single-column" : groupRenderStrategy,
4216
4149
  groupBy,
4150
+ pivotBy,
4217
4151
  pivotColumns,
4218
4152
  toggleGroupRow
4219
4153
  });
@@ -4225,7 +4159,17 @@ function useColumnsWhenGrouping() {
4225
4159
  delete: update,
4226
4160
  clear: update
4227
4161
  });
4228
- }, [columns, groupBy, groupColumn, groupRenderStrategy, pivotColumns]);
4162
+ }, [
4163
+ columns,
4164
+ groupBy,
4165
+ pivotBy,
4166
+ groupColumn,
4167
+ groupRenderStrategy,
4168
+ pivotColumns,
4169
+ pivotTotalColumnPosition,
4170
+ pivotColumn
4171
+ ]);
4172
+ return { toggleGroupRow };
4229
4173
  }
4230
4174
  function useHideEmptyGroupColumns(groupRowsMap) {
4231
4175
  const {
@@ -4292,14 +4236,14 @@ function getColumnsWhenGrouping(params) {
4292
4236
  const {
4293
4237
  pivotColumns,
4294
4238
  groupBy,
4239
+ pivotBy,
4295
4240
  groupColumn,
4241
+ pivotTotalColumnPosition,
4242
+ pivotColumn,
4296
4243
  groupRenderStrategy,
4297
4244
  toggleGroupRow,
4298
4245
  columns
4299
4246
  } = params;
4300
- if (pivotColumns) {
4301
- return void 0;
4302
- }
4303
4247
  if (groupRenderStrategy === "inline") {
4304
4248
  return void 0;
4305
4249
  }
@@ -4309,6 +4253,7 @@ function getColumnsWhenGrouping(params) {
4309
4253
  const generatedGroupColumn = getColumnForGroupBy({
4310
4254
  groupByForColumn,
4311
4255
  groupBy,
4256
+ pivotBy,
4312
4257
  groupIndexForColumn,
4313
4258
  groupCount: arr.length,
4314
4259
  groupRenderStrategy
@@ -4319,13 +4264,40 @@ function getColumnsWhenGrouping(params) {
4319
4264
  const singleGroupColumn = getSingleGroupColumn({
4320
4265
  groupCount: groupBy.length,
4321
4266
  groupBy,
4267
+ pivotBy,
4322
4268
  groupRenderStrategy
4323
4269
  }, toggleGroupRow, groupColumn);
4324
4270
  computedColumns.set(singleGroupColumn.id || "group-by", singleGroupColumn);
4325
4271
  }
4326
- columns.forEach((col, colId) => {
4327
- computedColumns.set(colId, col);
4328
- });
4272
+ if (pivotColumns) {
4273
+ pivotColumns.forEach((col, key) => {
4274
+ if (col.pivotTotalColumn && pivotTotalColumnPosition === false) {
4275
+ return;
4276
+ }
4277
+ let column = __spreadValues({}, col);
4278
+ if (pivotColumn) {
4279
+ if (typeof pivotColumn === "function") {
4280
+ column = __spreadValues(__spreadValues({}, column), pivotColumn({
4281
+ column,
4282
+ pivotBy,
4283
+ groupBy
4284
+ }));
4285
+ } else {
4286
+ column = __spreadValues(__spreadValues({}, column), pivotColumn);
4287
+ }
4288
+ }
4289
+ if (!column.render && column.renderValue) {
4290
+ column.render = (renderOptions) => {
4291
+ return column.renderValue(renderOptions);
4292
+ };
4293
+ }
4294
+ computedColumns.set(key, column);
4295
+ });
4296
+ } else {
4297
+ columns.forEach((col, colId) => {
4298
+ computedColumns.set(colId, col);
4299
+ });
4300
+ }
4329
4301
  return computedColumns.size ? computedColumns : void 0;
4330
4302
  }
4331
4303
 
@@ -4364,7 +4336,7 @@ function useComputed() {
4364
4336
  }, [showSeparatePivotColumnForSingleAggregation]);
4365
4337
  const { multiSort } = dataSourceState;
4366
4338
  useColumnGroups();
4367
- useColumnsWhen();
4339
+ const { toggleGroupRow } = useColumnsWhen();
4368
4340
  const setSortInfo = useCallback5((sortInfo) => {
4369
4341
  var _a2;
4370
4342
  const newSortInfo = multiSort ? sortInfo : (_a2 = sortInfo[0]) != null ? _a2 : null;
@@ -4433,6 +4405,7 @@ function useComputed() {
4433
4405
  const computedPinnedStartOverflow = computedPinnedStartWidth ? computedPinnedStartColumnsWidth > computedPinnedStartWidth : false;
4434
4406
  const computedPinnedEndOverflow = computedPinnedEndWidth ? computedPinnedEndColumnsWidth > computedPinnedEndWidth : false;
4435
4407
  return {
4408
+ toggleGroupRow,
4436
4409
  computedPinnedStartOverflow,
4437
4410
  computedPinnedEndOverflow,
4438
4411
  computedPinnedStartWidth,
@@ -4457,7 +4430,7 @@ function useComputed() {
4457
4430
 
4458
4431
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
4459
4432
  import {
4460
- createElement as createElement7,
4433
+ createElement as createElement6,
4461
4434
  forwardRef
4462
4435
  } from "react";
4463
4436
 
@@ -4469,7 +4442,7 @@ var useInternalProps = () => {
4469
4442
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
4470
4443
  var InfiniteTableBody = forwardRef(function InfiniteTableBody2(props, ref) {
4471
4444
  const { rootClassName: rootClassName12 } = useInternalProps();
4472
- return /* @__PURE__ */ createElement7("div", __spreadProps(__spreadValues({
4445
+ return /* @__PURE__ */ createElement6("div", __spreadProps(__spreadValues({
4473
4446
  ref
4474
4447
  }, props), {
4475
4448
  className: join(`${rootClassName12}Body`, position.relative, flex["1"], transformTranslateZero, props.className)
@@ -4478,12 +4451,12 @@ var InfiniteTableBody = forwardRef(function InfiniteTableBody2(props, ref) {
4478
4451
 
4479
4452
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper.tsx
4480
4453
  import {
4481
- createElement as createElement19
4454
+ createElement as createElement18
4482
4455
  } from "react";
4483
4456
 
4484
4457
  // src/components/InfiniteTable/components/ScrollbarPlaceholder.tsx
4485
4458
  import {
4486
- createElement as createElement8,
4459
+ createElement as createElement7,
4487
4460
  memo as memo2
4488
4461
  } from "react";
4489
4462
  function HorizontalScrollbarPlaceholderFn(props) {
@@ -4491,7 +4464,7 @@ function HorizontalScrollbarPlaceholderFn(props) {
4491
4464
  if (!scrollbarWidth2) {
4492
4465
  return null;
4493
4466
  }
4494
- return /* @__PURE__ */ createElement8("div", {
4467
+ return /* @__PURE__ */ createElement7("div", {
4495
4468
  "data-name": "horizontal-scrollbar-placeholder",
4496
4469
  style: __spreadValues({
4497
4470
  position: "absolute",
@@ -4507,7 +4480,7 @@ function VerticalScrollbarPlaceholderFn(props) {
4507
4480
  if (!scrollbarWidth2) {
4508
4481
  return null;
4509
4482
  }
4510
- return /* @__PURE__ */ createElement8("div", {
4483
+ return /* @__PURE__ */ createElement7("div", {
4511
4484
  "data-name": "vertical-scrollbar-placeholder",
4512
4485
  style: __spreadValues({
4513
4486
  position: "absolute",
@@ -4533,7 +4506,7 @@ var HeaderWrapperCls = "_12zfob1v _16lm1iw16 _16lm1iw1 _16lm1iwj _16lm1iw10";
4533
4506
 
4534
4507
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx
4535
4508
  import {
4536
- createElement as createElement15,
4509
+ createElement as createElement14,
4537
4510
  memo as memo6
4538
4511
  } from "react";
4539
4512
  import { useCallback as useCallback8, useEffect as useEffect14, useRef as useRef9 } from "react";
@@ -4541,13 +4514,13 @@ import { useCallback as useCallback8, useEffect as useEffect14, useRef as useRef
4541
4514
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
4542
4515
  import {
4543
4516
  Fragment as Fragment2,
4544
- createElement as createElement11
4517
+ createElement as createElement10
4545
4518
  } from "react";
4546
4519
  import { useCallback as useCallback7, useEffect as useEffect12, useRef as useRef8 } from "react";
4547
4520
 
4548
4521
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell.tsx
4549
4522
  import {
4550
- createElement as createElement9,
4523
+ createElement as createElement8,
4551
4524
  memo as memo3
4552
4525
  } from "react";
4553
4526
 
@@ -4608,12 +4581,12 @@ function InfiniteTableCellFn(props) {
4608
4581
  style.transform = `translate3d(${shiftLeft}px, 0px, 0px)`;
4609
4582
  }
4610
4583
  }
4611
- return /* @__PURE__ */ createElement9("div", __spreadProps(__spreadValues({}, domProps), {
4584
+ return /* @__PURE__ */ createElement8("div", __spreadProps(__spreadValues({}, domProps), {
4612
4585
  ref: domRef,
4613
4586
  style,
4614
4587
  "data-name": `Cell`,
4615
4588
  className: join(domProps.className, columnAlignCellStyle[(_b = column.align) != null ? _b : "start"], justifyContent[(_c = column.align) != null ? _c : "start"], InfiniteTableCellClassName, CellCls2, shifting ? `${InfiniteTableCellClassName}--shifting ${CellClsVariants.shifting}` : "")
4616
- }), beforeChildren, cssEllipsis ? /* @__PURE__ */ createElement9("div", {
4589
+ }), beforeChildren, cssEllipsis ? /* @__PURE__ */ createElement8("div", {
4617
4590
  className: `${rootClassName2}Cell_content ${cssEllipsisClassName}`
4618
4591
  }, children) : children, afterChildren);
4619
4592
  }
@@ -4818,7 +4791,7 @@ import { createPortal } from "react-dom";
4818
4791
 
4819
4792
  // src/components/InfiniteTable/components/icons/SortIcon.tsx
4820
4793
  import {
4821
- createElement as createElement10
4794
+ createElement as createElement9
4822
4795
  } from "react";
4823
4796
  import { useEffect as useEffect11, useState as useState7 } from "react";
4824
4797
  var defaultLineStyle = {
@@ -4873,18 +4846,18 @@ function SortIcon(props) {
4873
4846
  if (direction === -1) {
4874
4847
  indexStyle.top = "100%";
4875
4848
  }
4876
- return /* @__PURE__ */ createElement10("div", {
4849
+ return /* @__PURE__ */ createElement9("div", {
4877
4850
  style: __spreadProps(__spreadValues({}, style), { width: size }),
4878
4851
  className: join(className, "ITableIcon", "ITableIcon-sort")
4879
- }, showIndex ? /* @__PURE__ */ createElement10("div", {
4852
+ }, showIndex ? /* @__PURE__ */ createElement9("div", {
4880
4853
  "data-name": "index",
4881
4854
  style: indexStyle
4882
- }, index) : null, /* @__PURE__ */ createElement10("div", {
4855
+ }, index) : null, /* @__PURE__ */ createElement9("div", {
4883
4856
  style: __spreadValues({ width: sizes[0] }, lineStyle),
4884
4857
  onTransitionEnd
4885
- }), /* @__PURE__ */ createElement10("div", {
4858
+ }), /* @__PURE__ */ createElement9("div", {
4886
4859
  style: __spreadValues({ width: sizes[1] }, lineStyle)
4887
- }), /* @__PURE__ */ createElement10("div", {
4860
+ }), /* @__PURE__ */ createElement9("div", {
4888
4861
  style: __spreadValues({ width: sizes[2] }, lineStyle)
4889
4862
  }));
4890
4863
  }
@@ -4915,7 +4888,7 @@ function InfiniteTableHeaderCell(props) {
4915
4888
  });
4916
4889
  }
4917
4890
  header = header != null ? header : column.name;
4918
- const sortTool = /* @__PURE__ */ createElement11(SortIcon, {
4891
+ const sortTool = /* @__PURE__ */ createElement10(SortIcon, {
4919
4892
  index: column.computedMultiSort ? column.computedSortIndex + 1 : void 0,
4920
4893
  className: `${baseCls}__sort-icon ${HeaderSortIconCls}`,
4921
4894
  direction: column.computedSorted ? column.computedSortedAsc ? 1 : -1 : 0
@@ -4953,7 +4926,7 @@ function InfiniteTableHeaderCell(props) {
4953
4926
  let offset = offsetFromProps != null ? offsetFromProps : virtualized ? 0 : column.computedPinningOffset;
4954
4927
  let draggingProxy = null;
4955
4928
  if (dragging) {
4956
- draggingProxy = /* @__PURE__ */ createElement11("div", {
4929
+ draggingProxy = /* @__PURE__ */ createElement10("div", {
4957
4930
  className: `${baseCls}Proxy ${HeaderCellProxy}`,
4958
4931
  style: {
4959
4932
  position: "absolute",
@@ -4966,7 +4939,7 @@ function InfiniteTableHeaderCell(props) {
4966
4939
  }, header);
4967
4940
  draggingProxy = createPortal(draggingProxy, portalDOMRef.current);
4968
4941
  }
4969
- return /* @__PURE__ */ createElement11(Fragment2, null, /* @__PURE__ */ createElement11(InfiniteTableCell, {
4942
+ return /* @__PURE__ */ createElement10(Fragment2, null, /* @__PURE__ */ createElement10(InfiniteTableCell, {
4970
4943
  domRef: ref,
4971
4944
  column,
4972
4945
  "data-name": `HeaderCell`,
@@ -4983,7 +4956,7 @@ function InfiniteTableHeaderCell(props) {
4983
4956
 
4984
4957
  // src/components/RawList/index.tsx
4985
4958
  import {
4986
- createElement as createElement14,
4959
+ createElement as createElement13,
4987
4960
  memo as memo5
4988
4961
  } from "react";
4989
4962
  import { useEffect as useEffect13 } from "react";
@@ -4991,7 +4964,7 @@ import { useEffect as useEffect13 } from "react";
4991
4964
  // src/components/RawList/AvoidReactDiff.tsx
4992
4965
  import {
4993
4966
  Fragment as Fragment3,
4994
- createElement as createElement12,
4967
+ createElement as createElement11,
4995
4968
  memo as memo4
4996
4969
  } from "react";
4997
4970
  import { useLayoutEffect as useLayoutEffect3, useState as useState8 } from "react";
@@ -5003,7 +4976,7 @@ function AvoidReactDiffFn(props) {
5003
4976
  });
5004
4977
  return remove;
5005
4978
  }, [props.updater]);
5006
- return /* @__PURE__ */ createElement12(Fragment3, null, children);
4979
+ return /* @__PURE__ */ createElement11(Fragment3, null, children);
5007
4980
  }
5008
4981
  var AvoidReactDiff = memo4(AvoidReactDiffFn);
5009
4982
 
@@ -5012,7 +4985,7 @@ import { useMemo as useMemo7 } from "react";
5012
4985
 
5013
4986
  // src/components/RawList/ReactVirtualRenderer.tsx
5014
4987
  import {
5015
- createElement as createElement13
4988
+ createElement as createElement12
5016
4989
  } from "react";
5017
4990
 
5018
4991
  // src/components/RawList/MappedItems.ts
@@ -5258,7 +5231,7 @@ var ReactVirtualRenderer = class extends Logger {
5258
5231
  };
5259
5232
  this.itemDOMRefs[elementIndex] = domRef;
5260
5233
  this.updaters[elementIndex] = buildSubscriptionCallback();
5261
- const item = /* @__PURE__ */ createElement13(AvoidReactDiff, {
5234
+ const item = /* @__PURE__ */ createElement12(AvoidReactDiff, {
5262
5235
  key: elementIndex,
5263
5236
  name: `${elementIndex}`,
5264
5237
  updater: this.updaters[elementIndex]
@@ -5355,7 +5328,7 @@ function RawListFn(props) {
5355
5328
  });
5356
5329
  return remove;
5357
5330
  }, [brain, onRenderUpdater]);
5358
- return /* @__PURE__ */ createElement14(AvoidReactDiff, {
5331
+ return /* @__PURE__ */ createElement13(AvoidReactDiff, {
5359
5332
  updater: onRenderUpdater
5360
5333
  });
5361
5334
  }
@@ -5380,7 +5353,7 @@ function InfiniteTableHeaderFn(props) {
5380
5353
  }
5381
5354
  return null;
5382
5355
  }
5383
- return /* @__PURE__ */ createElement15(InfiniteTableHeaderCell, {
5356
+ return /* @__PURE__ */ createElement14(InfiniteTableHeaderCell, {
5384
5357
  domRef: domRef2,
5385
5358
  column,
5386
5359
  headerHeight,
@@ -5405,7 +5378,7 @@ function InfiniteTableHeaderFn(props) {
5405
5378
  className: join(TableHeaderClassName, `${TableHeaderClassName}--virtualized`, className, headerCls),
5406
5379
  style
5407
5380
  };
5408
- return /* @__PURE__ */ createElement15("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement15(RawList, {
5381
+ return /* @__PURE__ */ createElement14("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement14(RawList, {
5409
5382
  brain,
5410
5383
  renderItem: renderColumn
5411
5384
  }));
@@ -5414,7 +5387,7 @@ var InfiniteTableHeader = memo6(InfiniteTableHeaderFn);
5414
5387
 
5415
5388
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderUnvirtualized.tsx
5416
5389
  import {
5417
- createElement as createElement18,
5390
+ createElement as createElement17,
5418
5391
  memo as memo7,
5419
5392
  useMemo as useMemo8,
5420
5393
  useRef as useRef10
@@ -5422,7 +5395,7 @@ import {
5422
5395
 
5423
5396
  // src/components/InfiniteTable/components/InfiniteTableHeader/renderColumnHeaderGroups.tsx
5424
5397
  import {
5425
- createElement as createElement17
5398
+ createElement as createElement16
5426
5399
  } from "react";
5427
5400
 
5428
5401
  // src/components/InfiniteTable/components/InfiniteTableHeader/buildColumnAndGroupTree.ts
@@ -5514,7 +5487,7 @@ function assignGroupOffsetsAndComputedWidths(items, groupOffset = 0) {
5514
5487
 
5515
5488
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
5516
5489
  import {
5517
- createElement as createElement16
5490
+ createElement as createElement15
5518
5491
  } from "react";
5519
5492
  var TableHeaderGroupClassName = `${rootClassName}HeaderGroup`;
5520
5493
  function InfiniteTableHeaderGroup(props) {
@@ -5529,16 +5502,16 @@ function InfiniteTableHeaderGroup(props) {
5529
5502
  width: columnGroup.computedWidth,
5530
5503
  height
5531
5504
  };
5532
- return /* @__PURE__ */ createElement16("div", {
5505
+ return /* @__PURE__ */ createElement15("div", {
5533
5506
  "data-group-id": columnGroup.id,
5534
5507
  className: join(HeaderGroupCls, TableHeaderGroupClassName, `${TableHeaderGroupClassName}--unvirtualized`),
5535
5508
  style
5536
- }, /* @__PURE__ */ createElement16("div", {
5509
+ }, /* @__PURE__ */ createElement15("div", {
5537
5510
  className: join(`${TableHeaderGroupClassName}__header`, HeaderGroup_Header),
5538
5511
  style: { height: headerHeight }
5539
- }, /* @__PURE__ */ createElement16("div", {
5512
+ }, /* @__PURE__ */ createElement15("div", {
5540
5513
  className: join(`${TableHeaderGroupClassName}__header-content`, cssEllipsisClassName)
5541
- }, header)), /* @__PURE__ */ createElement16("div", {
5514
+ }, header)), /* @__PURE__ */ createElement15("div", {
5542
5515
  className: join(`${TableHeaderGroupClassName}__children`, HeaderGroup_Children)
5543
5516
  }, props.children));
5544
5517
  }
@@ -5561,7 +5534,7 @@ function renderColumnHeaderGroups(config) {
5561
5534
  return items2.map((colGroupItem) => {
5562
5535
  if (colGroupItem.type === "column") {
5563
5536
  const col = colGroupItem.ref;
5564
- return /* @__PURE__ */ createElement17(InfiniteTableHeaderCell, {
5537
+ return /* @__PURE__ */ createElement16(InfiniteTableHeaderCell, {
5565
5538
  key: col.id,
5566
5539
  headerHeight: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
5567
5540
  column: col,
@@ -5575,7 +5548,7 @@ function renderColumnHeaderGroups(config) {
5575
5548
  colIds.push(col.id);
5576
5549
  return col;
5577
5550
  });
5578
- return /* @__PURE__ */ createElement17(InfiniteTableHeaderGroup, {
5551
+ return /* @__PURE__ */ createElement16(InfiniteTableHeaderGroup, {
5579
5552
  key: `${colGroupItem.uniqueGroupId.join("/")}`,
5580
5553
  columns: columns2,
5581
5554
  height: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
@@ -5649,7 +5622,7 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
5649
5622
  columnGroupsMaxDepth
5650
5623
  ]);
5651
5624
  const children = hasColumnGroups ? columnHeaderGroups : columns.map((c) => {
5652
- return /* @__PURE__ */ createElement18(InfiniteTableHeaderCell, {
5625
+ return /* @__PURE__ */ createElement17(InfiniteTableHeaderCell, {
5653
5626
  key: c.id,
5654
5627
  headerHeight,
5655
5628
  column: c,
@@ -5672,14 +5645,14 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
5672
5645
  const removeOnScroll = scroller.onScroll(onScroll);
5673
5646
  return removeOnScroll;
5674
5647
  }, [brain, scrollListener]);
5675
- return /* @__PURE__ */ createElement18("div", __spreadProps(__spreadValues({}, domProps), {
5648
+ return /* @__PURE__ */ createElement17("div", __spreadProps(__spreadValues({}, domProps), {
5676
5649
  className: join(TableHeaderClassName2, `${TableHeaderClassName2}--unvirtualized`, pinning ? `${TableHeaderClassName2}--pinned ${TableHeaderClassName2}-${pinning}` : "", scrollable ? `${TableHeaderClassName2}--overflow` : "", domProps.className, HeaderClsRecipe({
5677
5650
  pinned: pinning,
5678
5651
  virtualized: false,
5679
5652
  overflow: scrollable
5680
5653
  })),
5681
5654
  style
5682
- }), /* @__PURE__ */ createElement18("div", {
5655
+ }), /* @__PURE__ */ createElement17("div", {
5683
5656
  style: { width: totalWidth },
5684
5657
  className: join(flexFlow.row, display.flex),
5685
5658
  ref: domRef
@@ -5718,7 +5691,7 @@ function TableHeaderWrapper(props) {
5718
5691
  const unvirtualizedStyle = !virtualizeHeader && computedPinnedStartColumnsWidth ? {
5719
5692
  left: computedPinnedStartWidth
5720
5693
  } : void 0;
5721
- const header = virtualizeHeader ? /* @__PURE__ */ createElement19(InfiniteTableHeader, {
5694
+ const header = virtualizeHeader ? /* @__PURE__ */ createElement18(InfiniteTableHeader, {
5722
5695
  columns: computedUnpinnedColumns,
5723
5696
  repaintId: virtualizeHeader ? repaintId : void 0,
5724
5697
  brain,
@@ -5731,7 +5704,7 @@ function TableHeaderWrapper(props) {
5731
5704
  },
5732
5705
  availableWidth: computedUnpinnedColumnsWidth,
5733
5706
  totalWidth: computedUnpinnedColumnsWidth
5734
- }) : /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
5707
+ }) : /* @__PURE__ */ createElement18(InfiniteTableHeaderUnvirtualized, {
5735
5708
  style: unvirtualizedStyle,
5736
5709
  brain,
5737
5710
  scrollable: true,
@@ -5740,12 +5713,12 @@ function TableHeaderWrapper(props) {
5740
5713
  availableWidth: computedUnpinnedColumnsWidth,
5741
5714
  totalWidth: computedUnpinnedColumnsWidth
5742
5715
  });
5743
- return /* @__PURE__ */ createElement19("div", {
5716
+ return /* @__PURE__ */ createElement18("div", {
5744
5717
  className: HeaderWrapperCls,
5745
5718
  style: {
5746
5719
  height: virtualizeHeader ? height : void 0
5747
5720
  }
5748
- }, hasPinnedStart ? /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
5721
+ }, hasPinnedStart ? /* @__PURE__ */ createElement18(InfiniteTableHeaderUnvirtualized, {
5749
5722
  style: {
5750
5723
  left: 0,
5751
5724
  position: "absolute",
@@ -5757,7 +5730,7 @@ function TableHeaderWrapper(props) {
5757
5730
  scrollable: computedPinnedStartOverflow,
5758
5731
  pinning: "start",
5759
5732
  scrollListener: computedPinnedStartOverflow ? pinnedStartScrollListener : void 0
5760
- }) : null, header, hasPinnedEnd ? /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
5733
+ }) : null, header, hasPinnedEnd ? /* @__PURE__ */ createElement18(InfiniteTableHeaderUnvirtualized, {
5761
5734
  style: {
5762
5735
  right: scrollbars.vertical ? getScrollbarWidth() : 0,
5763
5736
  position: "absolute",
@@ -5769,7 +5742,7 @@ function TableHeaderWrapper(props) {
5769
5742
  scrollable: computedPinnedEndOverflow,
5770
5743
  pinning: "end",
5771
5744
  scrollListener: computedPinnedEndOverflow ? pinnedEndScrollListener : void 0
5772
- }) : null, scrollbars.vertical ? /* @__PURE__ */ createElement19(VerticalScrollbarPlaceholder, {
5745
+ }) : null, scrollbars.vertical ? /* @__PURE__ */ createElement18(VerticalScrollbarPlaceholder, {
5773
5746
  style: {
5774
5747
  height: "100%",
5775
5748
  right: 0
@@ -5779,7 +5752,7 @@ function TableHeaderWrapper(props) {
5779
5752
 
5780
5753
  // src/components/VirtualScrollContainer/index.tsx
5781
5754
  import {
5782
- createElement as createElement20,
5755
+ createElement as createElement19,
5783
5756
  forwardRef as forwardRef2
5784
5757
  } from "react";
5785
5758
  import { useRef as useRef11 } from "react";
@@ -5835,7 +5808,7 @@ var VirtualScrollContainer = forwardRef2(function VirtualScrollContainer2(props,
5835
5808
  } = props;
5836
5809
  const domRef = ref != null ? ref : useRef11(null);
5837
5810
  useOnScroll(domRef, onContainerScroll);
5838
- return /* @__PURE__ */ createElement20("div", {
5811
+ return /* @__PURE__ */ createElement19("div", {
5839
5812
  ref: domRef,
5840
5813
  style,
5841
5814
  className: join(className, rootClassName6, VirtualScrollContainerCls, getScrollableClassName(scrollable))
@@ -5844,7 +5817,7 @@ var VirtualScrollContainer = forwardRef2(function VirtualScrollContainer2(props,
5844
5817
 
5845
5818
  // src/components/VirtualList/SpacePlaceholder.tsx
5846
5819
  import {
5847
- createElement as createElement21,
5820
+ createElement as createElement20,
5848
5821
  memo as memo8
5849
5822
  } from "react";
5850
5823
  function SpacePlaceholderFn(props) {
@@ -5856,7 +5829,7 @@ function SpacePlaceholderFn(props) {
5856
5829
  opacity: 0,
5857
5830
  pointerEvents: "none"
5858
5831
  };
5859
- return /* @__PURE__ */ createElement21("div", {
5832
+ return /* @__PURE__ */ createElement20("div", {
5860
5833
  "data-count": count,
5861
5834
  "data-placeholder-width": true ? width : void 0,
5862
5835
  "data-placeholder-height": true ? height : void 0,
@@ -5867,24 +5840,24 @@ function SpacePlaceholderFn(props) {
5867
5840
  var SpacePlaceholder = memo8(SpacePlaceholderFn);
5868
5841
 
5869
5842
  // src/components/InfiniteTable/hooks/useListRendering.tsx
5870
- import { useCallback as useCallback17, useEffect as useEffect22, useMemo as useMemo11, useRef as useRef17 } from "react";
5843
+ import { useEffect as useEffect22, useMemo as useMemo11, useRef as useRef17 } from "react";
5871
5844
 
5872
5845
  // src/components/InfiniteTable/hooks/useUnpinnedRendering.tsx
5873
5846
  import {
5874
- createElement as createElement27
5847
+ createElement as createElement26
5875
5848
  } from "react";
5876
5849
  import { useCallback as useCallback12 } from "react";
5877
5850
 
5878
5851
  // src/components/VirtualList/VirtualRowList.tsx
5879
5852
  import {
5880
- createElement as createElement23,
5853
+ createElement as createElement22,
5881
5854
  useCallback as useCallback9
5882
5855
  } from "react";
5883
5856
 
5884
5857
  // src/components/VirtualList/VirtualList.tsx
5885
5858
  import {
5886
5859
  Fragment as Fragment4,
5887
- createElement as createElement22
5860
+ createElement as createElement21
5888
5861
  } from "react";
5889
5862
  import { useRef as useRef12, useEffect as useEffect17, useState as useState9 } from "react";
5890
5863
 
@@ -5967,19 +5940,19 @@ var VirtualList = (props) => {
5967
5940
  if (true) {
5968
5941
  domProps["data-cmp-name"] = `VirtualList`;
5969
5942
  }
5970
- return /* @__PURE__ */ createElement22(Fragment4, null, /* @__PURE__ */ createElement22("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement22(VirtualScrollContainer, {
5943
+ return /* @__PURE__ */ createElement21(Fragment4, null, /* @__PURE__ */ createElement21("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement21(VirtualScrollContainer, {
5971
5944
  scrollable,
5972
5945
  onContainerScroll
5973
- }, /* @__PURE__ */ createElement22("div", {
5946
+ }, /* @__PURE__ */ createElement21("div", {
5974
5947
  ref: domRef,
5975
5948
  className: scrollTransformTargetCls,
5976
5949
  "data-name": "scroll-transform-target"
5977
- }, /* @__PURE__ */ createElement22(RawList, {
5950
+ }, /* @__PURE__ */ createElement21(RawList, {
5978
5951
  brain: virtualBrain,
5979
5952
  renderItem,
5980
5953
  repaintId,
5981
5954
  debugChannel: "VirtualList-" + mainAxis
5982
- })), children, /* @__PURE__ */ createElement22(SpacePlaceholder, {
5955
+ })), children, /* @__PURE__ */ createElement21(SpacePlaceholder, {
5983
5956
  count,
5984
5957
  width,
5985
5958
  height
@@ -5996,7 +5969,7 @@ var VirtualRowList = (props) => {
5996
5969
  rowIndex: renderProps.itemIndex
5997
5970
  });
5998
5971
  }, [renderRow]);
5999
- return /* @__PURE__ */ createElement23(VirtualList, __spreadProps(__spreadValues({}, listProps), {
5972
+ return /* @__PURE__ */ createElement22(VirtualList, __spreadProps(__spreadValues({}, listProps), {
6000
5973
  renderItem,
6001
5974
  mainAxis: "vertical",
6002
5975
  itemMainAxisSize: rowHeight,
@@ -6006,7 +5979,7 @@ var VirtualRowList = (props) => {
6006
5979
 
6007
5980
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow.tsx
6008
5981
  import {
6009
- createElement as createElement25,
5982
+ createElement as createElement24,
6010
5983
  memo as memo10,
6011
5984
  useCallback as useCallback11
6012
5985
  } from "react";
@@ -6014,7 +5987,7 @@ import { useRef as useRef14 } from "react";
6014
5987
 
6015
5988
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableColumnCell.tsx
6016
5989
  import {
6017
- createElement as createElement24,
5990
+ createElement as createElement23,
6018
5991
  memo as memo9
6019
5992
  } from "react";
6020
5993
  var { rootClassName: rootClassName8 } = internalProps;
@@ -6041,9 +6014,6 @@ function InfiniteTableColumnCellFn(props) {
6041
6014
  }
6042
6015
  const { data, isGroupRow, groupBy } = rowInfo;
6043
6016
  const groupRowInfo = null;
6044
- if (rowInfo.indexInAll === 0 && column.groupByField && column.groupByField === "stack") {
6045
- debugger;
6046
- }
6047
6017
  let value = isGroupRow && groupBy && column.groupByField ? rowInfo.value : isColumnWithField(column) ? data == null ? void 0 : data[column.field] : null;
6048
6018
  if (column.valueGetter) {
6049
6019
  value = column.valueGetter(isGroupRow ? {
@@ -6076,7 +6046,8 @@ function InfiniteTableColumnCellFn(props) {
6076
6046
  rowIndex,
6077
6047
  toggleGroupRow,
6078
6048
  toggleCurrentGroupRow: () => toggleGroupRow(rowInfo.groupKeys),
6079
- groupBy: computedDataSource.groupBy
6049
+ groupBy: computedDataSource.groupBy,
6050
+ pivotBy: computedDataSource.pivotBy
6080
6051
  });
6081
6052
  if (column.render) {
6082
6053
  renderValue = column.render(renderParam);
@@ -6112,7 +6083,7 @@ function InfiniteTableColumnCellFn(props) {
6112
6083
  }
6113
6084
  }
6114
6085
  }
6115
- return /* @__PURE__ */ createElement24(InfiniteTableCell, __spreadProps(__spreadValues({
6086
+ return /* @__PURE__ */ createElement23(InfiniteTableCell, __spreadProps(__spreadValues({
6116
6087
  domRef,
6117
6088
  offsetProperty
6118
6089
  }, dataset), {
@@ -6262,7 +6233,7 @@ function InfiniteTableRowFn(props) {
6262
6233
  if (!column) {
6263
6234
  }
6264
6235
  const hidden = false;
6265
- return /* @__PURE__ */ createElement25(InfiniteTableColumnCell, {
6236
+ return /* @__PURE__ */ createElement24(InfiniteTableColumnCell, {
6266
6237
  getData,
6267
6238
  rowInfo,
6268
6239
  groupRenderStrategy,
@@ -6289,9 +6260,9 @@ function InfiniteTableRowFn(props) {
6289
6260
  if (true) {
6290
6261
  domProps["data-cmp-name"] = "ITableRow";
6291
6262
  }
6292
- return /* @__PURE__ */ createElement25("div", __spreadProps(__spreadValues({}, domProps), {
6263
+ return /* @__PURE__ */ createElement24("div", __spreadProps(__spreadValues({}, domProps), {
6293
6264
  style
6294
- }), /* @__PURE__ */ createElement25(RawList, {
6265
+ }), /* @__PURE__ */ createElement24(RawList, {
6295
6266
  brain,
6296
6267
  renderItem: renderCell,
6297
6268
  debugChannel: `${rowIndex}`
@@ -6301,7 +6272,7 @@ var InfiniteTableRow = memo10(InfiniteTableRowFn);
6301
6272
 
6302
6273
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowUnvirtualized.tsx
6303
6274
  import {
6304
- createElement as createElement26,
6275
+ createElement as createElement25,
6305
6276
  memo as memo11
6306
6277
  } from "react";
6307
6278
  function TableRowUnvirtualizedFn(props) {
@@ -6324,7 +6295,7 @@ function TableRowUnvirtualizedFn(props) {
6324
6295
  }, domProps.style);
6325
6296
  const children = columns.map((col) => {
6326
6297
  const hidden = false;
6327
- return /* @__PURE__ */ createElement26(InfiniteTableColumnCell, {
6298
+ return /* @__PURE__ */ createElement25(InfiniteTableColumnCell, {
6328
6299
  key: col.id,
6329
6300
  virtualized: false,
6330
6301
  rowHeight,
@@ -6337,7 +6308,7 @@ function TableRowUnvirtualizedFn(props) {
6337
6308
  column: col
6338
6309
  });
6339
6310
  });
6340
- return /* @__PURE__ */ createElement26("div", __spreadProps(__spreadValues({}, domProps), {
6311
+ return /* @__PURE__ */ createElement25("div", __spreadProps(__spreadValues({}, domProps), {
6341
6312
  style
6342
6313
  }), children);
6343
6314
  }
@@ -6384,7 +6355,7 @@ function useUnpinnedRendering(params) {
6384
6355
  rowProps.repaintId = repaintId;
6385
6356
  }
6386
6357
  const TableRowComponent = shouldVirtualizeColumns ? InfiniteTableRow : TableRowUnvirtualized;
6387
- return /* @__PURE__ */ createElement27(TableRowComponent, __spreadValues({}, rowProps));
6358
+ return /* @__PURE__ */ createElement26(TableRowComponent, __spreadValues({}, rowProps));
6388
6359
  }, [
6389
6360
  repaintId,
6390
6361
  rowHeight,
@@ -6394,7 +6365,7 @@ function useUnpinnedRendering(params) {
6394
6365
  horizontalVirtualBrain,
6395
6366
  verticalVirtualBrain
6396
6367
  ]);
6397
- const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */ createElement27("div", {
6368
+ const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */ createElement26("div", {
6398
6369
  "data-name": "horizontal-scrollbar-placeholder--fake",
6399
6370
  style: {
6400
6371
  position: "absolute",
@@ -6405,10 +6376,10 @@ function useUnpinnedRendering(params) {
6405
6376
  overflow: "auto",
6406
6377
  visibility: columnShifts ? "visible" : "hidden"
6407
6378
  }
6408
- }, /* @__PURE__ */ createElement27("div", {
6379
+ }, /* @__PURE__ */ createElement26("div", {
6409
6380
  style: { height: "100%", width: computedUnpinnedColumnsWidth }
6410
6381
  })) : null;
6411
- return rowHeight != 0 ? /* @__PURE__ */ createElement27(VirtualRowList, {
6382
+ return rowHeight != 0 ? /* @__PURE__ */ createElement26(VirtualRowList, {
6412
6383
  repaintId: `${repaintId}-unpinned-`,
6413
6384
  brain: verticalVirtualBrain,
6414
6385
  onContainerScroll: applyScrollHorizontal,
@@ -6552,14 +6523,14 @@ var useOnContainerScroll = ({
6552
6523
 
6553
6524
  // src/components/InfiniteTable/hooks/usePinnedRendering.tsx
6554
6525
  import {
6555
- createElement as createElement29,
6526
+ createElement as createElement28,
6556
6527
  useMemo as useMemo9
6557
6528
  } from "react";
6558
6529
  import { useCallback as useCallback15 } from "react";
6559
6530
 
6560
6531
  // src/components/VirtualList/RowListWithExternalScrolling.tsx
6561
6532
  import {
6562
- createElement as createElement28
6533
+ createElement as createElement27
6563
6534
  } from "react";
6564
6535
  import { useEffect as useEffect20, useCallback as useCallback14, useRef as useRef16 } from "react";
6565
6536
 
@@ -6636,7 +6607,7 @@ var RowListWithExternalScrolling = (props) => {
6636
6607
  if (true) {
6637
6608
  domProps["data-cmp-name"] = "RowListWithExternalScrolling";
6638
6609
  }
6639
- return /* @__PURE__ */ createElement28("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement28(RawList, {
6610
+ return /* @__PURE__ */ createElement27("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement27(RawList, {
6640
6611
  brain,
6641
6612
  renderItem,
6642
6613
  repaintId
@@ -6685,7 +6656,7 @@ function PinnedRowsContainer(props) {
6685
6656
  className: join(`${PinnedRowsContainerClassName}`, PinnedRowsClsVariants[pinning === "start" ? "pinnedStart" : "pinnedEnd"], `${PinnedRowsContainerClassName}--pinned-${pinning}`, `${PinnedRowsContainerClassName}--overflow`, PinnedRowsClsVariants.overflow)
6686
6657
  };
6687
6658
  if (hasOverflow) {
6688
- return /* @__PURE__ */ createElement29(VirtualScrollContainer, {
6659
+ return /* @__PURE__ */ createElement28(VirtualScrollContainer, {
6689
6660
  scrollable: {
6690
6661
  horizontal: true,
6691
6662
  vertical: false
@@ -6701,18 +6672,18 @@ function PinnedRowsContainer(props) {
6701
6672
  className: join(PinnedRowsContainerClsVariants({
6702
6673
  pinned: pinning
6703
6674
  }), `${PinnedRowsContainerClassName}Container`, `${PinnedRowsContainerClassName}Container--pinned-${pinning}`)
6704
- }, /* @__PURE__ */ createElement29(RowListWithExternalScrolling, __spreadProps(__spreadValues({}, rowListProps), {
6675
+ }, /* @__PURE__ */ createElement28(RowListWithExternalScrolling, __spreadProps(__spreadValues({}, rowListProps), {
6705
6676
  onMount: (node) => {
6706
6677
  pinnedScrollListener == null ? void 0 : pinnedScrollListener.onScroll((scrollPosition) => {
6707
6678
  updateScroll(node, brain.getScrollPosition(), scrollPosition);
6708
6679
  });
6709
6680
  }
6710
- })), /* @__PURE__ */ createElement29(SpacePlaceholder, {
6681
+ })), /* @__PURE__ */ createElement28(SpacePlaceholder, {
6711
6682
  width: rowWidth,
6712
6683
  height: 1
6713
6684
  }));
6714
6685
  }
6715
- return /* @__PURE__ */ createElement29(RowListWithExternalScrolling, __spreadValues({}, rowListProps));
6686
+ return /* @__PURE__ */ createElement28(RowListWithExternalScrolling, __spreadValues({}, rowListProps));
6716
6687
  }
6717
6688
  function useRenderPinnedRow(params) {
6718
6689
  const { getData, getState, columnsWidth, columns, verticalBrain } = params;
@@ -6732,7 +6703,7 @@ function useRenderPinnedRow(params) {
6732
6703
  rowWidth: columnsWidth,
6733
6704
  columns
6734
6705
  }, rowParams);
6735
- return /* @__PURE__ */ createElement29(TableRowUnvirtualized, __spreadValues({}, rowProps));
6706
+ return /* @__PURE__ */ createElement28(TableRowUnvirtualized, __spreadValues({}, rowProps));
6736
6707
  }, [columnsWidth, columns, verticalBrain]);
6737
6708
  return renderPinnedRow;
6738
6709
  }
@@ -6775,7 +6746,7 @@ function usePinnedRenderingForSide(side, params) {
6775
6746
  columns,
6776
6747
  columnsWidth
6777
6748
  });
6778
- const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */ createElement29(PinnedRowsContainer, {
6749
+ const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */ createElement28(PinnedRowsContainer, {
6779
6750
  pinning: side,
6780
6751
  pinnedScrollListener,
6781
6752
  hasOverflow,
@@ -6788,7 +6759,7 @@ function usePinnedRenderingForSide(side, params) {
6788
6759
  brain: verticalVirtualBrain,
6789
6760
  renderRow: renderRowPinned
6790
6761
  }) : null;
6791
- const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */ createElement29(HorizontalScrollbarPlaceholder, {
6762
+ const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */ createElement28(HorizontalScrollbarPlaceholder, {
6792
6763
  style: side === "end" ? {
6793
6764
  width: columnsWidth,
6794
6765
  right: hasVerticalScrollbar ? getScrollbarWidth() : 0
@@ -7357,7 +7328,8 @@ function useListRendering(param) {
7357
7328
  computedUnpinnedColumnsWidth,
7358
7329
  computedPinnedStartOverflow,
7359
7330
  computedPinnedEndOverflow,
7360
- computedVisibleColumns
7331
+ computedVisibleColumns,
7332
+ toggleGroupRow
7361
7333
  } = computed;
7362
7334
  const { componentState: dataSourceState, getState: getDataSourceState } = useDataSourceContextValue();
7363
7335
  const { dataArray } = dataSourceState;
@@ -7441,12 +7413,6 @@ function useListRendering(param) {
7441
7413
  horizontalVirtualBrain,
7442
7414
  reservedContentHeight
7443
7415
  });
7444
- const { componentActions: dataSourceActions } = useDataSourceContextValue();
7445
- const toggleGroupRow = useCallback17((groupKeys) => {
7446
- const newState = new GroupRowsState(getDataSourceState().groupRowsState);
7447
- newState.toggleGroupRow(groupKeys);
7448
- dataSourceActions.groupRowsState = newState;
7449
- }, []);
7450
7416
  const pinnedRenderingParams = {
7451
7417
  bodySize,
7452
7418
  scrollbars,
@@ -7501,9 +7467,9 @@ function useListRendering(param) {
7501
7467
 
7502
7468
  // src/components/InfiniteTable/components/InfiniteTableLicenseFooter/index.tsx
7503
7469
  import {
7504
- createElement as createElement30,
7470
+ createElement as createElement29,
7505
7471
  forwardRef as forwardRef3,
7506
- useCallback as useCallback18,
7472
+ useCallback as useCallback17,
7507
7473
  useRef as useRef18
7508
7474
  } from "react";
7509
7475
  import { useEffect as useEffect23 } from "react";
@@ -7544,7 +7510,7 @@ var enforceStyle = (node, style) => {
7544
7510
  var InfiniteTableLicenseFooter = forwardRef3(function InfiniteTableLicenseFooter2(props, ref) {
7545
7511
  const { rootClassName: rootClassName12 } = useInternalProps();
7546
7512
  const domRef = useRef18(null);
7547
- const domCallback = useCallback18((node) => {
7513
+ const domCallback = useCallback17((node) => {
7548
7514
  domRef.current = node;
7549
7515
  if (!ref) {
7550
7516
  return;
@@ -7569,12 +7535,12 @@ var InfiniteTableLicenseFooter = forwardRef3(function InfiniteTableLicenseFooter
7569
7535
  clearInterval(intervalId);
7570
7536
  };
7571
7537
  }, []);
7572
- return /* @__PURE__ */ createElement30("div", __spreadProps(__spreadValues({
7538
+ return /* @__PURE__ */ createElement29("div", __spreadProps(__spreadValues({
7573
7539
  ref: domCallback
7574
7540
  }, props), {
7575
7541
  className: join(`${rootClassName12}-Footer`, FooterCls, props.className),
7576
7542
  style: defaultStyle2
7577
- }), "Powered by", " ", /* @__PURE__ */ createElement30("a", {
7543
+ }), "Powered by", " ", /* @__PURE__ */ createElement29("a", {
7578
7544
  href: "https://infinite-table.com",
7579
7545
  rel: "noopener noreferrer",
7580
7546
  role: "link",
@@ -7736,7 +7702,7 @@ var useLicense = (licenseKey = "") => {
7736
7702
  const valid = useMemo12(() => {
7737
7703
  let valid2 = isValidLicense(licenseKey, {
7738
7704
  publishedAt: 1624970570587,
7739
- version: "0.2.1"
7705
+ version: "0.2.2"
7740
7706
  });
7741
7707
  if (!licenseKey && !valid2 && isInsideSandbox) {
7742
7708
  return true;
@@ -7748,8 +7714,8 @@ var useLicense = (licenseKey = "") => {
7748
7714
 
7749
7715
  // src/components/CSSVariableWatch.tsx
7750
7716
  import {
7751
- createElement as createElement31,
7752
- useCallback as useCallback19,
7717
+ createElement as createElement30,
7718
+ useCallback as useCallback18,
7753
7719
  useLayoutEffect as useLayoutEffect4
7754
7720
  } from "react";
7755
7721
  import { useRef as useRef19 } from "react";
@@ -7766,7 +7732,7 @@ var WRAPPER_STYLE = {
7766
7732
  };
7767
7733
  var useCSSVariableWatch = (params) => {
7768
7734
  const lastValueRef = useRef19(0);
7769
- const onResize = useCallback19(({ height }) => {
7735
+ const onResize = useCallback18(({ height }) => {
7770
7736
  if (height && height !== lastValueRef.current) {
7771
7737
  lastValueRef.current = height;
7772
7738
  params.onChange(height);
@@ -7789,11 +7755,11 @@ var CSSVariableWatch = (props) => {
7789
7755
  useCSSVariableWatch(__spreadProps(__spreadValues({}, props), {
7790
7756
  ref: domRef
7791
7757
  }));
7792
- return /* @__PURE__ */ createElement31("div", {
7758
+ return /* @__PURE__ */ createElement30("div", {
7793
7759
  "data-name": "css-variable-watcher",
7794
7760
  "data-var": props.varName,
7795
7761
  style: WRAPPER_STYLE
7796
- }, /* @__PURE__ */ createElement31("div", {
7762
+ }, /* @__PURE__ */ createElement30("div", {
7797
7763
  ref: domRef,
7798
7764
  style: {
7799
7765
  height: props.varName.startsWith("var(") ? props.varName : `var(${props.varName})`
@@ -7887,7 +7853,7 @@ function useDOMProps(initialDOMProps) {
7887
7853
 
7888
7854
  // src/components/InfiniteTable/components/LoadMask.tsx
7889
7855
  import {
7890
- createElement as createElement32,
7856
+ createElement as createElement31,
7891
7857
  memo as memo12
7892
7858
  } from "react";
7893
7859
 
@@ -7901,11 +7867,11 @@ var { rootClassName: rootClassName11 } = internalProps;
7901
7867
  var baseCls2 = `${rootClassName11}-LoadMask`;
7902
7868
  function LoadMaskFn(props) {
7903
7869
  const { visible, children = "Loading" } = props;
7904
- return /* @__PURE__ */ createElement32("div", {
7870
+ return /* @__PURE__ */ createElement31("div", {
7905
7871
  className: `${LoadMaskCls[visible ? "visible" : "hidden"]} ${baseCls2}`
7906
- }, /* @__PURE__ */ createElement32("div", {
7872
+ }, /* @__PURE__ */ createElement31("div", {
7907
7873
  className: `${LoadMaskOverlayCls} ${baseCls2}-Overlay`
7908
- }), /* @__PURE__ */ createElement32("div", {
7874
+ }), /* @__PURE__ */ createElement31("div", {
7909
7875
  className: `${LoadMaskTextCls} ${baseCls2}-Text`
7910
7876
  }, children));
7911
7877
  }
@@ -7997,31 +7963,31 @@ var InfiniteTableComponent = memo13(function InfiniteTableComponent2() {
7997
7963
  useEffect24(() => {
7998
7964
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
7999
7965
  }, [scrollStopDelay]);
8000
- return /* @__PURE__ */ createElement33("div", __spreadValues({
7966
+ return /* @__PURE__ */ createElement32("div", __spreadValues({
8001
7967
  ref: domRef
8002
- }, domProps), header ? /* @__PURE__ */ createElement33(TableHeaderWrapper, {
7968
+ }, domProps), header ? /* @__PURE__ */ createElement32(TableHeaderWrapper, {
8003
7969
  brain: horizontalVirtualBrain,
8004
7970
  repaintId,
8005
7971
  scrollbars
8006
- }) : null, /* @__PURE__ */ createElement33(InfiniteTableBody, null, /* @__PURE__ */ createElement33(VirtualScrollContainer, {
7972
+ }) : null, /* @__PURE__ */ createElement32(InfiniteTableBody, null, /* @__PURE__ */ createElement32(VirtualScrollContainer, {
8007
7973
  ref: scrollerDOMRef,
8008
7974
  onContainerScroll: applyScrollVertical,
8009
7975
  scrollable: ONLY_VERTICAL_SCROLLBAR
8010
- }, /* @__PURE__ */ createElement33("div", {
7976
+ }, /* @__PURE__ */ createElement32("div", {
8011
7977
  className: display.flex
8012
- }, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */ createElement33(SpacePlaceholder, {
7978
+ }, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */ createElement32(SpacePlaceholder, {
8013
7979
  count: dataArray.length,
8014
7980
  width: 0,
8015
7981
  height: reservedContentHeight
8016
- })), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */ createElement33(LoadMaskCmp, {
7982
+ })), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */ createElement32(LoadMaskCmp, {
8017
7983
  visible: loading
8018
- }, loadingText)), licenseValid ? null : /* @__PURE__ */ createElement33(InfiniteTableLicenseFooter, null), /* @__PURE__ */ createElement33("div", {
7984
+ }, loadingText)), licenseValid ? null : /* @__PURE__ */ createElement32(InfiniteTableLicenseFooter, null), /* @__PURE__ */ createElement32("div", {
8019
7985
  ref: portalDOMRef,
8020
7986
  className: join(`${rootClassName}Portal`, zIndex[1e3], position.absolute, top[0], left[0])
8021
- }), rowHeightCSSVar ? /* @__PURE__ */ createElement33(CSSVariableWatch, {
7987
+ }), rowHeightCSSVar ? /* @__PURE__ */ createElement32(CSSVariableWatch, {
8022
7988
  varName: rowHeightCSSVar,
8023
7989
  onChange: onRowHeightCSSVarChange
8024
- }) : null, headerHeightCSSVar ? /* @__PURE__ */ createElement33(CSSVariableWatch, {
7990
+ }) : null, headerHeightCSSVar ? /* @__PURE__ */ createElement32(CSSVariableWatch, {
8025
7991
  varName: headerHeightCSSVar,
8026
7992
  onChange: onHeaderHeightCSSVarChange
8027
7993
  }) : null);
@@ -8069,13 +8035,13 @@ function InfiniteTableContextProvider() {
8069
8035
  }
8070
8036
  }, [scrollTopId, scrollerDOMRef]);
8071
8037
  const TableContext2 = getInfiniteTableContext();
8072
- return /* @__PURE__ */ createElement33(TableContext2.Provider, {
8038
+ return /* @__PURE__ */ createElement32(TableContext2.Provider, {
8073
8039
  value: contextValue
8074
- }, /* @__PURE__ */ createElement33(InfiniteTableComponent, null));
8040
+ }, /* @__PURE__ */ createElement32(InfiniteTableComponent, null));
8075
8041
  }
8076
8042
  function InfiniteTable(props) {
8077
- const table = /* @__PURE__ */ createElement33(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ createElement33(InfiniteTableContextProvider, null));
8078
- return /* @__PURE__ */ createElement33(StrictMode, null, table);
8043
+ const table = /* @__PURE__ */ createElement32(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ createElement32(InfiniteTableContextProvider, null));
8044
+ return /* @__PURE__ */ createElement32(StrictMode, null, table);
8079
8045
  }
8080
8046
  InfiniteTable.defaultProps = {
8081
8047
  rowHeight: 40,