@infinite-table/infinite-react 0.0.2-canary.6 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -674,7 +674,7 @@ function computeColumnGroupsDepths(columnGroups) {
674
674
  while (parentGroupId) {
675
675
  const parent = columnGroups.get(parentGroupId);
676
676
  if (!parent) {
677
- if (false) {
677
+ if (true) {
678
678
  console.warn(`Cannot find column group ${parentGroupId}`);
679
679
  }
680
680
  break;
@@ -1083,7 +1083,7 @@ var Logger = class {
1083
1083
  constructor(channelName) {
1084
1084
  this.debug = emptyLogFn;
1085
1085
  this.error = emptyLogFn;
1086
- if (false) {
1086
+ if (true) {
1087
1087
  this.debug = dbg(channelName);
1088
1088
  this.error = err(channelName);
1089
1089
  }
@@ -1670,16 +1670,16 @@ function getComponentStateRoot(config) {
1670
1670
  return [__spreadProps(__spreadValues({}, initialArg), { props: props2 })];
1671
1671
  }
1672
1672
  });
1673
- propsToStateSetRef.current = new Set([
1674
- ...propsToStateSetRef.current,
1675
- ...propertyReads
1676
- ]);
1677
1673
  const stateFromProps = mapPropsToState3({
1678
1674
  props,
1679
1675
  state: state2,
1680
1676
  oldState: null,
1681
1677
  parentState
1682
1678
  });
1679
+ propsToStateSetRef.current = new Set([
1680
+ ...propsToStateSetRef.current,
1681
+ ...propertyReads
1682
+ ]);
1683
1683
  return __spreadValues(__spreadValues({}, state2), stateFromProps);
1684
1684
  }
1685
1685
  return state2;
@@ -1701,16 +1701,16 @@ function getComponentStateRoot(config) {
1701
1701
  return [__spreadProps(__spreadValues({}, initialArg), { props: props2 })];
1702
1702
  }
1703
1703
  });
1704
- propsToStateSetRef.current = new Set([
1705
- ...propsToStateSetRef.current,
1706
- ...propertyReads
1707
- ]);
1708
1704
  const stateFromProps = mapPropsToState3({
1709
1705
  props: getProps(),
1710
1706
  state: newState,
1711
1707
  oldState: previousState,
1712
1708
  parentState: parentState2
1713
1709
  });
1710
+ propsToStateSetRef.current = new Set([
1711
+ ...propsToStateSetRef.current,
1712
+ ...propertyReads
1713
+ ]);
1714
1714
  Object.assign(newState, stateFromProps);
1715
1715
  }
1716
1716
  const result = config.concludeReducer ? config.concludeReducer({
@@ -1905,31 +1905,28 @@ var React6 = __toModule(require("react"));
1905
1905
  var import_react14 = __toModule(require("react"));
1906
1906
 
1907
1907
  // src/components/InfiniteTable/utilities.css.ts
1908
- var alignItems = { center: "_16lm1iwz", stretch: "_16lm1iw10" };
1909
- var cssEllipsisClassName = "_16lm1iw18 _16lm1iw19 _16lm1iw14";
1910
- var cursor = { pointer: "_16lm1iw9" };
1911
- var display = { flex: "_16lm1iwh", block: "_16lm1iwi", inlineBlock: "_16lm1iwj" };
1908
+ var alignItems = { center: "_16lm1iw11", stretch: "_16lm1iw12" };
1909
+ var cssEllipsisClassName = "_16lm1iw1a _16lm1iw1b _16lm1iw16";
1910
+ var cursor = { pointer: "_16lm1iwb" };
1911
+ var display = { flex: "_16lm1iwj", block: "_16lm1iwk", inlineBlock: "_16lm1iwl" };
1912
1912
  var fill = { currentColor: "_16lm1iw5", accentColor: "_16lm1iw6" };
1913
- var flex = { "1": "_16lm1iwa", none: "_16lm1iwb" };
1914
- var flexFlow = { column: "_16lm1iwx", row: "_16lm1iwy" };
1915
- var justifyContent = { center: "_16lm1iw11", start: "_16lm1iw12", end: "_16lm1iw13" };
1916
- var left = { "0": "_16lm1iwr", "100%": "_16lm1iws" };
1913
+ var flex = { "1": "_16lm1iwc", none: "_16lm1iwd" };
1914
+ var flexFlow = { column: "_16lm1iwz", row: "_16lm1iw10" };
1915
+ var justifyContent = { center: "_16lm1iw13", start: "_16lm1iw14", end: "_16lm1iw15" };
1916
+ var left = { "0": "_16lm1iwt", "100%": "_16lm1iwu" };
1917
1917
  var position = { relative: "_16lm1iw1", absolute: "_16lm1iw2", sticky: "_16lm1iw3", fixed: "_16lm1iw4" };
1918
- var top = { "0": "_16lm1iwp", "100%": "_16lm1iwq" };
1918
+ var top = { "0": "_16lm1iwr", "100%": "_16lm1iws" };
1919
+ var transform = { translateZero: "_16lm1iw9", rotate90: "_16lm1iwa" };
1919
1920
  var transformTranslateZero = "_16lm1iw8";
1920
- var userSelect = { none: "_16lm1iwk" };
1921
- var willChange = { transform: "_16lm1iw17" };
1922
- var zIndex = { "1": "_16lm1iwc", "10": "_16lm1iwd", "1000": "_16lm1iwe", "10000": "_16lm1iwf", "100000": "_16lm1iwg" };
1921
+ var userSelect = { none: "_16lm1iwm" };
1922
+ var willChange = { transform: "_16lm1iw19" };
1923
+ var zIndex = { "1": "_16lm1iwe", "10": "_16lm1iwf", "1000": "_16lm1iwg", "10000": "_16lm1iwh", "100000": "_16lm1iwi" };
1923
1924
 
1924
1925
  // src/components/InfiniteTable/components/icons/ExpanderIcon.tsx
1925
1926
  function ExpanderIcon(props) {
1926
1927
  var _a;
1927
1928
  const { size = 24 } = props;
1928
- const style = __spreadValues({}, props.style);
1929
1929
  const [expanded, setExpanded] = (0, import_react14.useState)((_a = props.expanded) != null ? _a : props.defaultExpanded);
1930
- if (expanded) {
1931
- style.transform = `rotate(90deg)`;
1932
- }
1933
1930
  const onClick = () => {
1934
1931
  var _a2;
1935
1932
  (_a2 = props.onChange) == null ? void 0 : _a2.call(props, !expanded);
@@ -1948,92 +1945,14 @@ function ExpanderIcon(props) {
1948
1945
  height: `${size}px`,
1949
1946
  viewBox: "0 0 24 24",
1950
1947
  width: `${size}px`,
1951
- style,
1948
+ style: props.style,
1952
1949
  onClick,
1953
- className: join(props.className, fill.currentColor, flex.none, cursor.pointer, expanded ? fill.accentColor : "", "InfiniteIcon", "InfiniteIcon-expander", `InfiniteIcon-expander--${expanded ? "expanded" : "collapsed"}`)
1950
+ className: join(props.className, fill.accentColor, flex.none, cursor.pointer, expanded ? fill.accentColor : "", expanded ? transform.rotate90 : "", "InfiniteIcon", "InfiniteIcon-expander", `InfiniteIcon-expander--${expanded ? "expanded" : "collapsed"}`)
1954
1951
  }, /* @__PURE__ */ React6.createElement("path", {
1955
1952
  d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
1956
1953
  }));
1957
1954
  }
1958
1955
 
1959
- // src/components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns.tsx
1960
- function getComputedPivotColumnsFromDataSourcePivotColumns(pivotColumns, params) {
1961
- if (!pivotColumns) {
1962
- return void 0;
1963
- }
1964
- const {
1965
- pivotColumn,
1966
- pivotRowLabelsColumn,
1967
- pivotBy,
1968
- groupRowsBy,
1969
- pivotTotalColumnPosition,
1970
- toggleGroupRow
1971
- } = params;
1972
- const computedPivotColumns = new Map();
1973
- pivotColumns.forEach((col, key) => {
1974
- if (col.pivotTotalColumn && pivotTotalColumnPosition === false) {
1975
- return;
1976
- }
1977
- let column = __spreadValues({}, col);
1978
- if (pivotColumn) {
1979
- if (typeof pivotColumn === "function") {
1980
- column = __spreadValues(__spreadValues({}, column), pivotColumn({
1981
- column,
1982
- pivotBy,
1983
- groupRowsBy
1984
- }));
1985
- } else {
1986
- column = __spreadValues(__spreadValues({}, column), pivotColumn);
1987
- }
1988
- }
1989
- const isPivotRowLabelsColumn = !column.pivotColumn && !column.pivotTotalColumn;
1990
- if (pivotRowLabelsColumn && isPivotRowLabelsColumn) {
1991
- if (typeof pivotRowLabelsColumn === "function") {
1992
- column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn({
1993
- column,
1994
- pivotBy,
1995
- groupRowsBy
1996
- }));
1997
- } else {
1998
- column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn);
1999
- }
2000
- }
2001
- if (isPivotRowLabelsColumn && !column.render) {
2002
- column.render = (renderOptions) => {
2003
- var _a;
2004
- let { value, rowInfo, column: column2, groupRowsBy: groupRowsBy2 } = renderOptions;
2005
- if (column2.renderValue) {
2006
- value = column2.renderValue(renderOptions);
2007
- }
2008
- const showExpanderIcon = (((_a = rowInfo.groupKeys) == null ? void 0 : _a.length) || 0) < groupRowsBy2.length;
2009
- return /* @__PURE__ */ React7.createElement("div", {
2010
- className: join(display.flex, alignItems.center),
2011
- style: {
2012
- paddingInlineStart: `calc(${rowInfo.groupNesting - 1} * var(--ITableRow-group-column-nesting))`
2013
- }
2014
- }, showExpanderIcon ? /* @__PURE__ */ React7.createElement(ExpanderIcon, {
2015
- expanded: !rowInfo.collapsed,
2016
- onChange: () => {
2017
- toggleGroupRow(rowInfo.groupKeys);
2018
- }
2019
- }) : null, /* @__PURE__ */ React7.createElement("div", {
2020
- className: cssEllipsisClassName
2021
- }, value != null ? value : null));
2022
- };
2023
- }
2024
- if (!column.render && column.renderValue) {
2025
- column.render = (renderOptions) => {
2026
- return column.renderValue(renderOptions);
2027
- };
2028
- }
2029
- computedPivotColumns.set(key, column);
2030
- });
2031
- return computedPivotColumns;
2032
- }
2033
-
2034
- // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
2035
- var React8 = __toModule(require("react"));
2036
-
2037
1956
  // node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
2038
1957
  var shouldApplyCompound = (compoundCheck, selections) => {
2039
1958
  for (const key of Object.keys(compoundCheck)) {
@@ -2073,9 +1992,85 @@ var GroupRowExpanderCls = "_7pupv0b";
2073
1992
  var RowClsRecipe = createRuntimeFn({ defaultClassName: "_7pupv00", variantClassNames: { zebra: { false: "_7pupv02", even: "_7pupv03", odd: "_7pupv04" }, groupRow: { true: "_7pupv05", false: "_7pupv06" }, inlineGroupRow: { true: "_7pupv07", false: "_7pupv08" }, showHoverRows: { true: "_7pupv09", false: "_7pupv0a" } }, defaultVariants: {}, compoundVariants: [] });
2074
1993
  var RowHoverCls = "_7pupv01";
2075
1994
 
1995
+ // src/components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns.tsx
1996
+ function getComputedPivotColumnsFromDataSourcePivotColumns(pivotColumns, params) {
1997
+ if (!pivotColumns) {
1998
+ return void 0;
1999
+ }
2000
+ const {
2001
+ pivotColumn,
2002
+ pivotRowLabelsColumn,
2003
+ pivotBy,
2004
+ groupRowsBy,
2005
+ pivotTotalColumnPosition,
2006
+ toggleGroupRow
2007
+ } = params;
2008
+ const computedPivotColumns = new Map();
2009
+ pivotColumns.forEach((col, key) => {
2010
+ if (col.pivotTotalColumn && pivotTotalColumnPosition === false) {
2011
+ return;
2012
+ }
2013
+ let column = __spreadValues({}, col);
2014
+ const isPivotRowLabelsColumn = !column.pivotColumn && !column.pivotTotalColumn;
2015
+ if (!isPivotRowLabelsColumn) {
2016
+ if (pivotColumn) {
2017
+ if (typeof pivotColumn === "function") {
2018
+ column = __spreadValues(__spreadValues({}, column), pivotColumn({
2019
+ column,
2020
+ pivotBy,
2021
+ groupRowsBy
2022
+ }));
2023
+ } else {
2024
+ column = __spreadValues(__spreadValues({}, column), pivotColumn);
2025
+ }
2026
+ }
2027
+ } else {
2028
+ if (pivotRowLabelsColumn) {
2029
+ if (typeof pivotRowLabelsColumn === "function") {
2030
+ column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn({
2031
+ column,
2032
+ pivotBy,
2033
+ groupRowsBy
2034
+ }));
2035
+ } else {
2036
+ column = __spreadValues(__spreadValues({}, column), pivotRowLabelsColumn);
2037
+ }
2038
+ }
2039
+ if (!column.render) {
2040
+ column.render = (renderOptions) => {
2041
+ var _a;
2042
+ let { value, rowInfo, column: column2, groupRowsBy: groupRowsBy2 } = renderOptions;
2043
+ if (column2.renderValue) {
2044
+ value = column2.renderValue(renderOptions);
2045
+ }
2046
+ const showExpanderIcon = (((_a = rowInfo.groupKeys) == null ? void 0 : _a.length) || 0) < groupRowsBy2.length;
2047
+ return /* @__PURE__ */ React7.createElement("div", {
2048
+ className: join(display.flex, alignItems.center, GroupRowExpanderCls)
2049
+ }, showExpanderIcon ? /* @__PURE__ */ React7.createElement(ExpanderIcon, {
2050
+ expanded: !rowInfo.collapsed,
2051
+ onChange: () => {
2052
+ toggleGroupRow(rowInfo.groupKeys);
2053
+ }
2054
+ }) : null, /* @__PURE__ */ React7.createElement("div", {
2055
+ className: cssEllipsisClassName
2056
+ }, value != null ? value : null));
2057
+ };
2058
+ }
2059
+ }
2060
+ if (!column.render && column.renderValue) {
2061
+ column.render = (renderOptions) => {
2062
+ return column.renderValue(renderOptions);
2063
+ };
2064
+ }
2065
+ computedPivotColumns.set(key, column);
2066
+ });
2067
+ return computedPivotColumns;
2068
+ }
2069
+
2076
2070
  // src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
2071
+ var React8 = __toModule(require("react"));
2077
2072
  function getGroupColumnRender({
2078
- groupIndex,
2073
+ groupIndexForColumn,
2079
2074
  groupRenderStrategy,
2080
2075
  toggleGroupRow
2081
2076
  }) {
@@ -2085,7 +2080,7 @@ function getGroupColumnRender({
2085
2080
  if (column.renderValue) {
2086
2081
  value = column.renderValue(renderOptions);
2087
2082
  }
2088
- let groupRowInfo = groupRenderStrategy !== "inline" ? rowInfo : ((_a = rowInfo.parents) == null ? void 0 : _a[groupIndex]) || rowInfo;
2083
+ let groupRowInfo = groupRenderStrategy !== "inline" ? rowInfo : ((_a = rowInfo.parents) == null ? void 0 : _a[groupIndexForColumn]) || rowInfo;
2089
2084
  if (!groupRowInfo) {
2090
2085
  return null;
2091
2086
  }
@@ -2095,14 +2090,14 @@ function getGroupColumnRender({
2095
2090
  if (groupRowInfo.groupCount === 1) {
2096
2091
  return value;
2097
2092
  }
2098
- if (groupRowInfo.groupNesting === groupIndex && collapsed) {
2093
+ if (groupRowInfo.groupNesting === groupIndexForColumn && collapsed) {
2099
2094
  return null;
2100
2095
  }
2101
2096
  } else {
2102
2097
  if (!groupRowInfo.isGroupRow) {
2103
2098
  return null;
2104
2099
  }
2105
- if (groupIndex + 1 !== groupRowInfo.groupNesting) {
2100
+ if (groupIndexForColumn + 1 !== groupRowInfo.groupNesting) {
2106
2101
  return null;
2107
2102
  }
2108
2103
  }
@@ -2119,17 +2114,21 @@ function getGroupColumnRender({
2119
2114
  };
2120
2115
  }
2121
2116
  function getColumnForGroupBy(options, toggleGroupRow, groupColumnFromProps) {
2122
- const { groupBy, groupIndex, groupRenderStrategy } = options;
2117
+ const {
2118
+ groupByForColumn,
2119
+ groupIndexForColumn,
2120
+ groupRenderStrategy
2121
+ } = options;
2123
2122
  let generatedGroupColumn = __spreadValues({
2124
- header: `Group by ${groupBy.field}`,
2125
- groupByField: groupBy.field,
2123
+ header: `Group by ${groupByForColumn.field}`,
2124
+ groupByField: groupByForColumn.field,
2126
2125
  sortable: false,
2127
2126
  render: getGroupColumnRender({
2128
- groupIndex,
2127
+ groupIndexForColumn,
2129
2128
  toggleGroupRow,
2130
2129
  groupRenderStrategy
2131
2130
  })
2132
- }, groupBy.column);
2131
+ }, groupByForColumn.column);
2133
2132
  if (groupColumnFromProps) {
2134
2133
  if (typeof groupColumnFromProps === "function") {
2135
2134
  generatedGroupColumn = __spreadValues(__spreadValues({}, generatedGroupColumn), groupColumnFromProps(options, toggleGroupRow));
@@ -2670,78 +2669,6 @@ function mapPropsToState2(params) {
2670
2669
  };
2671
2670
  }
2672
2671
 
2673
- // src/utils/multisort/sortTypes.ts
2674
- var sortTypes = {
2675
- number: function(first, second) {
2676
- return first - second;
2677
- },
2678
- string: function(first, second) {
2679
- first = `${first}`;
2680
- second = `${second}`;
2681
- return first.localeCompare(second);
2682
- }
2683
- };
2684
- var sortTypes_default = sortTypes;
2685
-
2686
- // src/utils/multisort/index.ts
2687
- var multisort = (sortInfo, array, get) => {
2688
- array.sort(getMultisortFunction(sortInfo, get));
2689
- return array;
2690
- };
2691
- multisort.knownTypes = sortTypes_default;
2692
- var getSingleSortFunction = (info) => {
2693
- if (!info) {
2694
- return;
2695
- }
2696
- const field = info.field;
2697
- var dir = info.dir < 0 ? -1 : info.dir > 0 ? 1 : 0;
2698
- if (!dir) {
2699
- return;
2700
- }
2701
- let fn = info.fn;
2702
- if (!fn && info.type) {
2703
- fn = multisort.knownTypes[info.type];
2704
- if (!fn) {
2705
- console.warn(`Unknown sort type "${info.type}" - please pass one of ${Object.keys(multisort.knownTypes).join(", ")}`);
2706
- }
2707
- }
2708
- if (!fn) {
2709
- fn = sortTypes_default.string;
2710
- }
2711
- return (first, second) => {
2712
- const a = field ? first[field] : first;
2713
- const b = field ? second[field] : second;
2714
- return dir * fn(a, b);
2715
- };
2716
- };
2717
- var getSortFunctions = (sortInfo) => {
2718
- return sortInfo.map(getSingleSortFunction).filter((fn) => fn instanceof Function);
2719
- };
2720
- var getMultisortFunction = (sortInfo, get) => {
2721
- const fns = getSortFunctions(sortInfo);
2722
- return (first, second) => {
2723
- if (get) {
2724
- first = get(first);
2725
- second = get(second);
2726
- }
2727
- let result = 0;
2728
- let i = 0;
2729
- let fn;
2730
- const len = fns.length;
2731
- for (; i < len; i++) {
2732
- fn = fns[i];
2733
- if (!fn) {
2734
- continue;
2735
- }
2736
- result = fn(first, second);
2737
- if (result !== 0) {
2738
- return result;
2739
- }
2740
- }
2741
- return result;
2742
- };
2743
- };
2744
-
2745
2672
  // src/utils/groupAndPivot/index.ts
2746
2673
  function DEFAULT_TO_KEY(value) {
2747
2674
  return value;
@@ -2971,6 +2898,80 @@ function enhancedFlatten(param) {
2971
2898
  data: result
2972
2899
  };
2973
2900
  }
2901
+
2902
+ // src/utils/multisort/sortTypes.ts
2903
+ var sortTypes = {
2904
+ number: function(first, second) {
2905
+ return first - second;
2906
+ },
2907
+ string: function(first, second) {
2908
+ first = `${first}`;
2909
+ second = `${second}`;
2910
+ return first.localeCompare(second);
2911
+ }
2912
+ };
2913
+ var sortTypes_default = sortTypes;
2914
+
2915
+ // src/utils/multisort/index.ts
2916
+ var multisort = (sortInfo, array, get) => {
2917
+ array.sort(getMultisortFunction(sortInfo, get));
2918
+ return array;
2919
+ };
2920
+ multisort.knownTypes = sortTypes_default;
2921
+ var getSingleSortFunction = (info) => {
2922
+ if (!info) {
2923
+ return;
2924
+ }
2925
+ const field = info.field;
2926
+ var dir = info.dir < 0 ? -1 : info.dir > 0 ? 1 : 0;
2927
+ if (!dir) {
2928
+ return;
2929
+ }
2930
+ let fn = info.fn;
2931
+ if (!fn && info.type) {
2932
+ fn = multisort.knownTypes[info.type];
2933
+ if (!fn) {
2934
+ console.warn(`Unknown sort type "${info.type}" - please pass one of ${Object.keys(multisort.knownTypes).join(", ")}`);
2935
+ }
2936
+ }
2937
+ if (!fn) {
2938
+ fn = sortTypes_default.string;
2939
+ }
2940
+ return (first, second) => {
2941
+ const a = field ? first[field] : first;
2942
+ const b = field ? second[field] : second;
2943
+ return dir * fn(a, b);
2944
+ };
2945
+ };
2946
+ var getSortFunctions = (sortInfo) => {
2947
+ return sortInfo.map(getSingleSortFunction).filter((fn) => fn instanceof Function);
2948
+ };
2949
+ var getMultisortFunction = (sortInfo, get) => {
2950
+ const fns = getSortFunctions(sortInfo);
2951
+ return (first, second) => {
2952
+ if (get) {
2953
+ first = get(first);
2954
+ second = get(second);
2955
+ }
2956
+ let result = 0;
2957
+ let i = 0;
2958
+ let fn;
2959
+ const len = fns.length;
2960
+ for (; i < len; i++) {
2961
+ fn = fns[i];
2962
+ if (!fn) {
2963
+ continue;
2964
+ }
2965
+ result = fn(first, second);
2966
+ if (result !== 0) {
2967
+ return result;
2968
+ }
2969
+ }
2970
+ return result;
2971
+ };
2972
+ };
2973
+
2974
+ // src/utils/groupAndPivot/getPivotColumnsAndColumnGroups.ts
2974
2975
  function getPivotColumnsAndColumnGroups(deepMap, pivotBy, pivotTotalColumnPosition) {
2975
2976
  const pivotLength = pivotBy.length;
2976
2977
  const columns = new Map([
@@ -2995,10 +2996,14 @@ function getPivotColumnsAndColumnGroups(deepMap, pivotBy, pivotTotalColumnPositi
2995
2996
  if (keys.length === pivotLength) {
2996
2997
  const parentKeys = keys.slice(0, -1);
2997
2998
  let columnGroupId = parentKeys.join("/");
2998
- columns.set(`${keys.join("/")}`, {
2999
+ const pivotByForColumn = pivotBy[keys.length - 1];
3000
+ let computedPivotColumn = __spreadValues({
2999
3001
  pivotBy,
3000
3002
  pivotColumn: true,
3001
3003
  pivotGroupKeys: keys,
3004
+ pivotGroupKeyForColumn: keys[keys.length - 1],
3005
+ pivotIndexForColumn: keys.length - 1,
3006
+ pivotByForColumn,
3002
3007
  sortable: false,
3003
3008
  columnGroup: parentKeys.length ? `${columnGroupId}` : void 0,
3004
3009
  header: keys[keys.length - 1],
@@ -3007,7 +3012,15 @@ function getPivotColumnsAndColumnGroups(deepMap, pivotBy, pivotTotalColumnPositi
3007
3012
  const value = (_c = (_b = (_a = rowInfo.pivotValuesMap) == null ? void 0 : _a.get(keys)) == null ? void 0 : _b.reducerResults[0]) != null ? _c : null;
3008
3013
  return value;
3009
3014
  }
3010
- });
3015
+ }, pivotByForColumn.column);
3016
+ if (pivotByForColumn.column) {
3017
+ if (typeof pivotByForColumn.column === "function") {
3018
+ Object.assign(computedPivotColumn, pivotByForColumn.column({ column: computedPivotColumn }));
3019
+ } else {
3020
+ Object.assign(computedPivotColumn, pivotByForColumn.column);
3021
+ }
3022
+ }
3023
+ columns.set(`${keys.join("/")}`, computedPivotColumn);
3011
3024
  } else {
3012
3025
  const colGroupId = keys.join("/");
3013
3026
  const parentKeys = keys.slice(0, -1);
@@ -3016,11 +3029,15 @@ function getPivotColumnsAndColumnGroups(deepMap, pivotBy, pivotTotalColumnPositi
3016
3029
  header: keys.join(" >> ")
3017
3030
  });
3018
3031
  if (pivotTotalColumnPosition !== false) {
3019
- columns.set(`${keys.join("/")}-total`, {
3032
+ const pivotByForColumn = pivotBy[keys.length - 1];
3033
+ let computedPivotColumn = __spreadValues({
3020
3034
  columnGroup: parentKeys.length ? parentKeys.join("/") : void 0,
3021
3035
  header: `${keys.join("/")} total `,
3022
3036
  pivotTotalColumn: true,
3023
3037
  pivotGroupKeys: keys,
3038
+ pivotGroupKeyForColumn: keys[keys.length - 1],
3039
+ pivotByForColumn,
3040
+ pivotIndexForColumn: keys.length - 1,
3024
3041
  pivotBy,
3025
3042
  sortable: false,
3026
3043
  valueGetter: ({ rowInfo }) => {
@@ -3028,7 +3045,15 @@ function getPivotColumnsAndColumnGroups(deepMap, pivotBy, pivotTotalColumnPositi
3028
3045
  const value = (_c = (_b = (_a = rowInfo.pivotValuesMap) == null ? void 0 : _a.get(keys)) == null ? void 0 : _b.reducerResults[0]) != null ? _c : null;
3029
3046
  return value;
3030
3047
  }
3031
- });
3048
+ }, pivotByForColumn.column);
3049
+ if (pivotByForColumn.column) {
3050
+ if (typeof pivotByForColumn.column === "function") {
3051
+ Object.assign(computedPivotColumn, pivotByForColumn.column({ column: computedPivotColumn }));
3052
+ } else {
3053
+ Object.assign(computedPivotColumn, pivotByForColumn.column);
3054
+ }
3055
+ }
3056
+ columns.set(`${keys.join("/")}-total`, computedPivotColumn);
3032
3057
  }
3033
3058
  }
3034
3059
  if (pivotTotalColumnPosition === "start" || pivotTotalColumnPosition === false) {
@@ -3174,7 +3199,7 @@ function DataSourceCmp({ children }) {
3174
3199
  componentActions,
3175
3200
  getState
3176
3201
  };
3177
- if (false) {
3202
+ if (true) {
3178
3203
  globalThis.getDataSourceState = getState;
3179
3204
  }
3180
3205
  useLoadData();
@@ -3278,7 +3303,7 @@ function useColumnsWhenInlineGroupRenderStrategy(groupRowsMap) {
3278
3303
  return rowspan;
3279
3304
  },
3280
3305
  render: getGroupColumnRender({
3281
- groupIndex,
3306
+ groupIndexForColumn: groupIndex,
3282
3307
  groupRenderStrategy: groupRenderStrategy2,
3283
3308
  toggleGroupRow: toggleGroupRow2
3284
3309
  })
@@ -3341,7 +3366,7 @@ function useColumnsWhenGrouping() {
3341
3366
  return;
3342
3367
  }
3343
3368
  const update = () => {
3344
- componentActions.columnsWhenGrouping = getColumnsWhenGrouping({
3369
+ const columnsWhenGrouping = getColumnsWhenGrouping({
3345
3370
  columns,
3346
3371
  groupColumn,
3347
3372
  groupRenderStrategy,
@@ -3349,6 +3374,7 @@ function useColumnsWhenGrouping() {
3349
3374
  pivotColumns,
3350
3375
  toggleGroupRow
3351
3376
  });
3377
+ componentActions.columnsWhenGrouping = columnsWhenGrouping;
3352
3378
  };
3353
3379
  update();
3354
3380
  return interceptMap(columns, {
@@ -3436,11 +3462,11 @@ function getColumnsWhenGrouping(params) {
3436
3462
  }
3437
3463
  const computedColumns = new Map();
3438
3464
  if (groupRenderStrategy === "multi-column") {
3439
- groupRowsBy.forEach((groupBy, index, arr) => {
3440
- computedColumns.set(`group-by-${groupBy.field}`, getColumnForGroupBy({
3441
- groupBy,
3465
+ groupRowsBy.forEach((groupByForColumn, groupIndexForColumn, arr) => {
3466
+ computedColumns.set(`group-by-${groupByForColumn.field}`, getColumnForGroupBy({
3467
+ groupByForColumn,
3442
3468
  groupRowsBy,
3443
- groupIndex: index,
3469
+ groupIndexForColumn,
3444
3470
  groupCount: arr.length,
3445
3471
  groupRenderStrategy
3446
3472
  }, toggleGroupRow, groupColumn));
@@ -3448,7 +3474,8 @@ function getColumnsWhenGrouping(params) {
3448
3474
  } else if (groupRenderStrategy === "single-column") {
3449
3475
  computedColumns.set("group-by", getSingleGroupColumn({
3450
3476
  groupCount: groupRowsBy.length,
3451
- groupRowsBy
3477
+ groupRowsBy,
3478
+ groupRenderStrategy
3452
3479
  }, toggleGroupRow, groupColumn));
3453
3480
  }
3454
3481
  columns.forEach((col, colId) => {
@@ -3652,15 +3679,15 @@ function VerticalScrollbarPlaceholderFn(props) {
3652
3679
  var VerticalScrollbarPlaceholder = React11.memo(VerticalScrollbarPlaceholderFn);
3653
3680
 
3654
3681
  // src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts
3655
- var CellCls = "_1eexc2a5 _16lm1iwh _16lm1iwy _16lm1iwz _16lm1iw2 _16lm1iw17 _16lm1iw18";
3682
+ var CellCls = "_1eexc2a5 _16lm1iwj _16lm1iw10 _16lm1iw11 _16lm1iw2 _16lm1iw19 _16lm1iw1a";
3656
3683
  var HeaderCellProxy = "_12zfob10";
3657
3684
  var HeaderCellRecipe = createRuntimeFn({ defaultClassName: "_12zfob1c", variantClassNames: { dragging: { true: "_12zfob1d", false: "_12zfob1e" }, first: { true: "_12zfob1f", false: "_12zfob1g" }, last: { true: "_12zfob1h", false: "_12zfob1i" }, groupByField: { true: "_12zfob1j", false: "_12zfob1k" }, firstInCategory: { true: "_12zfob1l", false: "_12zfob1m" }, lastInCategory: { true: "_12zfob1n", false: "_12zfob1o" }, pinned: { start: "_12zfob1p", end: "_12zfob1q", false: "_12zfob1r" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_12zfob1s"], [{ pinned: "end", firstInCategory: true }, "_12zfob1t"], [{ pinned: false, lastInCategory: true }, "_12zfob1u"]] });
3658
- var HeaderClsRecipe = createRuntimeFn({ defaultClassName: "_12zfob12 _16lm1iwy", variantClassNames: { pinned: { start: "_12zfob13", end: "_12zfob14", false: "_12zfob15" }, virtualized: { true: "_12zfob16", false: "_12zfob17" }, overflow: { true: "_12zfob18", false: "_12zfob19" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "_12zfob1a"], [{ overflow: true, pinned: "end" }, "_12zfob1b"]] });
3659
- var HeaderGroupCls = "_16lm1iwx _16lm1iwh";
3660
- var HeaderGroup_Children = "_16lm1iwh _16lm1iwy _16lm1iw10 _16lm1iwa";
3661
- var HeaderGroup_Header = "_12zfob1x _16lm1iwh _16lm1iwy _16lm1iwz";
3685
+ var HeaderClsRecipe = createRuntimeFn({ defaultClassName: "_12zfob12 _16lm1iw10", variantClassNames: { pinned: { start: "_12zfob13", end: "_12zfob14", false: "_12zfob15" }, virtualized: { true: "_12zfob16", false: "_12zfob17" }, overflow: { true: "_12zfob18", false: "_12zfob19" } }, defaultVariants: {}, compoundVariants: [[{ overflow: true, pinned: "start" }, "_12zfob1a"], [{ overflow: true, pinned: "end" }, "_12zfob1b"]] });
3686
+ var HeaderGroupCls = "_16lm1iwz _16lm1iwj";
3687
+ var HeaderGroup_Children = "_16lm1iwj _16lm1iw10 _16lm1iw12 _16lm1iwc";
3688
+ var HeaderGroup_Header = "_12zfob1x _16lm1iwj _16lm1iw10 _16lm1iw11";
3662
3689
  var HeaderSortIconCls = "_12zfob11 _16lm1iw1";
3663
- var HeaderWrapperCls = "_12zfob1v _16lm1iw14 _16lm1iw1 _16lm1iwh _16lm1iwy";
3690
+ var HeaderWrapperCls = "_12zfob1v _16lm1iw16 _16lm1iw1 _16lm1iwj _16lm1iw10";
3664
3691
 
3665
3692
  // src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx
3666
3693
  var React18 = __toModule(require("react"));
@@ -3682,9 +3709,9 @@ var useInfiniteTableState = () => {
3682
3709
  };
3683
3710
 
3684
3711
  // src/components/InfiniteTable/components/cell.css.ts
3685
- var CellCls2 = "_1eexc2a5 _16lm1iwh _16lm1iwy _16lm1iwz _16lm1iw2 _16lm1iw17 _16lm1iw18";
3712
+ var CellCls2 = "_1eexc2a5 _16lm1iwj _16lm1iw10 _16lm1iw11 _16lm1iw2 _16lm1iw19 _16lm1iw1a";
3686
3713
  var CellClsVariants = { shifting: "_1eexc2a3", dragging: "_1eexc2a4" };
3687
- var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "_16lm1iw2 _16lm1iwm _16lm1iw7 _16lm1iwp", variantClassNames: { dragging: { false: "_1eexc2a7" }, first: { true: "_1eexc2a8", false: "_1eexc2a9" }, last: { true: "_1eexc2aa", false: "_1eexc2ab" }, groupByField: { true: "_1eexc2ac", false: "_1eexc2ad" }, firstInCategory: { true: "_1eexc2ae", false: "_1eexc2af" }, lastInCategory: { true: "_1eexc2ag", false: "_1eexc2ah" }, pinned: { start: "_1eexc2ai", end: "_1eexc2aj", false: "_1eexc2ak" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_1eexc2al"], [{ pinned: "end", firstInCategory: true }, "_1eexc2am"]] });
3714
+ var ColumnCellRecipe = createRuntimeFn({ defaultClassName: "_16lm1iw2 _16lm1iwo _16lm1iw7 _16lm1iwr", variantClassNames: { dragging: { false: "_1eexc2a7" }, first: { true: "_1eexc2a8", false: "_1eexc2a9" }, last: { true: "_1eexc2aa", false: "_1eexc2ab" }, groupByField: { true: "_1eexc2ac", false: "_1eexc2ad" }, firstInCategory: { true: "_1eexc2ae", false: "_1eexc2af" }, lastInCategory: { true: "_1eexc2ag", false: "_1eexc2ah" }, pinned: { start: "_1eexc2ai", end: "_1eexc2aj", false: "_1eexc2ak" } }, defaultVariants: {}, compoundVariants: [[{ pinned: "start", lastInCategory: true }, "_1eexc2al"], [{ pinned: "end", firstInCategory: true }, "_1eexc2am"]] });
3688
3715
  var columnAlignCellStyle = { center: "_1eexc2a0", start: "_1eexc2a1", end: "_1eexc2a2" };
3689
3716
 
3690
3717
  // src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell.tsx
@@ -4199,7 +4226,7 @@ var MappedItems = class extends Logger {
4199
4226
  this.init();
4200
4227
  }
4201
4228
  renderItemAtElement(itemIndex, elementIndex, renderNode) {
4202
- if (false) {
4229
+ if (true) {
4203
4230
  this.debug(`Render item ${itemIndex} at element ${elementIndex}`);
4204
4231
  }
4205
4232
  const currentItemIndex = this.elementIndexToItemIndex[elementIndex];
@@ -4254,7 +4281,7 @@ var ReactVirtualRenderer = class extends Logger {
4254
4281
  }
4255
4282
  const { mappedItems } = this;
4256
4283
  const { renderStartIndex, renderEndIndex } = range;
4257
- if (false) {
4284
+ if (true) {
4258
4285
  this.debug(`Render range ${renderStartIndex}-${renderEndIndex}. Force ${force}`);
4259
4286
  }
4260
4287
  const renderCount = renderEndIndex === -1 ? 0 : renderEndIndex - renderStartIndex + 1;
@@ -4267,7 +4294,7 @@ var ReactVirtualRenderer = class extends Logger {
4267
4294
  delete this.updaters[elementIndex];
4268
4295
  }
4269
4296
  delete this.items[elementIndex];
4270
- if (false) {
4297
+ if (true) {
4271
4298
  this.debug(`Discard element ${elementIndex}`);
4272
4299
  }
4273
4300
  });
@@ -4289,7 +4316,7 @@ var ReactVirtualRenderer = class extends Logger {
4289
4316
  }
4290
4317
  const elementIndex = elementsOutsideItemRange.pop();
4291
4318
  if (elementIndex == null) {
4292
- if (false) {
4319
+ if (true) {
4293
4320
  this.error(`Cannot find element to render item ${i}`);
4294
4321
  }
4295
4322
  continue;
@@ -4311,7 +4338,7 @@ var ReactVirtualRenderer = class extends Logger {
4311
4338
  const itemIndex = this.mappedItems.getItemRenderedAtElementIndex(elementIndex);
4312
4339
  const options = this.brain.getOptions();
4313
4340
  if (itemIndex == null) {
4314
- if (false) {
4341
+ if (true) {
4315
4342
  this.error(`Cannot find item for element ${elementIndex}`);
4316
4343
  }
4317
4344
  return;
@@ -4321,7 +4348,7 @@ var ReactVirtualRenderer = class extends Logger {
4321
4348
  return;
4322
4349
  }
4323
4350
  if (itemElement) {
4324
- if (false) {
4351
+ if (true) {
4325
4352
  itemElement.dataset.elementIndex = elementIndex;
4326
4353
  itemElement.dataset.itemIndex = itemIndex;
4327
4354
  }
@@ -4335,6 +4362,9 @@ var ReactVirtualRenderer = class extends Logger {
4335
4362
  }
4336
4363
  };
4337
4364
  this.destroy = () => {
4365
+ if (true) {
4366
+ return;
4367
+ }
4338
4368
  this.destroyed = true;
4339
4369
  this.mappedItems.destroy();
4340
4370
  this.itemDOMElements = [];
@@ -4394,7 +4424,7 @@ var ReactVirtualRenderer = class extends Logger {
4394
4424
  return;
4395
4425
  }
4396
4426
  this.mappedItems.renderItemAtElement(itemIndex, elementIndex, renderedNode);
4397
- if (false) {
4427
+ if (true) {
4398
4428
  this.debug(`Render item ${itemIndex} at element ${elementIndex}`);
4399
4429
  }
4400
4430
  itemUpdater(renderedNode);
@@ -4457,7 +4487,7 @@ function InfiniteTableHeaderFn(props) {
4457
4487
  const renderColumn = (0, import_react26.useCallback)(({ domRef: domRef2, itemIndex: columnIndex }) => {
4458
4488
  const column = columns[columnIndex];
4459
4489
  if (!column) {
4460
- if (false) {
4490
+ if (true) {
4461
4491
  debug3("Cannot find column to render at ", columnIndex);
4462
4492
  }
4463
4493
  return null;
@@ -4890,7 +4920,7 @@ var getScrollableClassName = (scrollable) => {
4890
4920
  };
4891
4921
 
4892
4922
  // src/components/VirtualScrollContainer/index.tsx
4893
- var rootClassName6 = "Infinite-VirtualScrollContainer";
4923
+ var rootClassName6 = "InfiniteVirtualScrollContainer";
4894
4924
  var VirtualScrollContainer = React23.forwardRef(function VirtualScrollContainer2(props, ref) {
4895
4925
  const {
4896
4926
  children,
@@ -4921,8 +4951,8 @@ function SpacePlaceholderFn(props) {
4921
4951
  };
4922
4952
  return /* @__PURE__ */ React24.createElement("div", {
4923
4953
  "data-count": count,
4924
- "data-width": width,
4925
- "data-height": height,
4954
+ "data-placeholder-width": true ? width : void 0,
4955
+ "data-placeholder-height": true ? height : void 0,
4926
4956
  "data-name": "SpacePlaceholder",
4927
4957
  style
4928
4958
  });
@@ -4991,7 +5021,7 @@ var VirtualList = (props) => {
4991
5021
  (0, import_react30.useEffect)(() => {
4992
5022
  const removeOnRenderCount = virtualBrain.onRenderCountChange((renderCount) => {
4993
5023
  renderCountRef.current = renderCount;
4994
- if (false) {
5024
+ if (true) {
4995
5025
  debug4.extend(mainAxis)(`Render count change ${renderCount}`);
4996
5026
  }
4997
5027
  rerender();
@@ -5019,7 +5049,7 @@ var VirtualList = (props) => {
5019
5049
  const domProps = __spreadProps(__spreadValues({}, restDOMProps), {
5020
5050
  className: join(props.className, rootClassName7, `${rootClassName7}--${mainAxis}`, VirtualListCls, VirtualListClsOrientation[mainAxis])
5021
5051
  });
5022
- if (false) {
5052
+ if (true) {
5023
5053
  domProps["data-cmp-name"] = `VirtualList`;
5024
5054
  }
5025
5055
  return /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React25.createElement(VirtualScrollContainer, {
@@ -5251,7 +5281,7 @@ function useRowDOMProps(props, rowProps, rowStyle, rowClassName, groupRenderStra
5251
5281
  const rows = parentNode.querySelectorAll(hoverSelector.join(","));
5252
5282
  rows.forEach((row) => row.classList.remove(InfiniteTableRowClassName__hover, RowHoverCls));
5253
5283
  }, [initialMouseLeave, showHoverRows]);
5254
- if (rowInfo.isGroupRow && groupRenderStrategy === "single-column") {
5284
+ if (rowInfo.isGroupRow) {
5255
5285
  style = style || {};
5256
5286
  style[stripVar(ThemeVars.components.Row.groupNesting)] = rowInfo.groupNesting - 1;
5257
5287
  }
@@ -5323,7 +5353,7 @@ function InfiniteTableRowFn(props) {
5323
5353
  if (renderCellRef.current !== renderCell) {
5324
5354
  renderCellRef.current = renderCell;
5325
5355
  }
5326
- if (false) {
5356
+ if (true) {
5327
5357
  domProps["data-cmp-name"] = "ITableRow";
5328
5358
  }
5329
5359
  return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, domProps), {
@@ -5467,10 +5497,10 @@ var import_react34 = __toModule(require("react"));
5467
5497
 
5468
5498
  // src/components/InfiniteTable/InfiniteCls.css.ts
5469
5499
  var FooterCls = "_16lm1iw1";
5470
- var InfiniteCls = "_1yeub2v0 _16lm1iw1 _16lm1iwh _16lm1iwx _16lm1iw0";
5500
+ var InfiniteCls = "_1yeub2v0 _16lm1iw1 _16lm1iwj _16lm1iwz _16lm1iw0";
5471
5501
  var InfiniteClsRecipe = createRuntimeFn({ defaultClassName: "", variantClassNames: { focused: { true: "_1yeub2v2", false: "_1yeub2v3" }, focusedWithin: { true: "_1yeub2v4", false: "_1yeub2v5" }, hasPinnedStart: { true: "_1yeub2v6", false: "_1yeub2v7" }, hasPinnedEnd: { true: "_1yeub2v8", false: "_1yeub2v9" }, hasPinnedStartOverflow: { true: "_1yeub2va", false: "_1yeub2vb" }, hasPinnedEndOverflow: { true: "_1yeub2vc", false: "_1yeub2vd" } }, defaultVariants: {}, compoundVariants: [] });
5472
5502
  var InfiniteClsScrolling = "_1yeub2v1";
5473
- var InfiniteClsShiftingColumns = "_16lm1iwk";
5503
+ var InfiniteClsShiftingColumns = "_16lm1iwm";
5474
5504
  var PinnedRowsClsVariants = { pinnedStart: "_1yeub2ve", pinnedEnd: "_1yeub2vf", overflow: "_1yeub2vg" };
5475
5505
  var PinnedRowsContainerClsVariants = createRuntimeFn({ defaultClassName: "", variantClassNames: { pinned: { start: "_1yeub2vh", end: "_1yeub2vi", false: "_1yeub2vj" } }, defaultVariants: {}, compoundVariants: [] });
5476
5506
 
@@ -5591,7 +5621,7 @@ var rootClassName10 = InfiniteListRootClassName;
5591
5621
  var defaultClasses = [
5592
5622
  willChange.transform,
5593
5623
  position.relative,
5594
- transformTranslateZero
5624
+ transform.translateZero
5595
5625
  ];
5596
5626
  var RowListWithExternalScrolling = (props) => {
5597
5627
  const {
@@ -5618,7 +5648,7 @@ var RowListWithExternalScrolling = (props) => {
5618
5648
  const onScroll = (scrollPosition) => {
5619
5649
  const node = domRef.current;
5620
5650
  if (node) {
5621
- if (false) {
5651
+ if (true) {
5622
5652
  const { renderStartIndex, renderEndIndex } = brain.getRenderRange();
5623
5653
  node.dataset.renderStartIndex = renderStartIndex;
5624
5654
  node.dataset.renderEndIndex = renderEndIndex;
@@ -5640,7 +5670,7 @@ var RowListWithExternalScrolling = (props) => {
5640
5670
  style,
5641
5671
  className: join(className, rootClassName10, `${rootClassName10}--vertical`, VirtualListCls, VirtualListClsOrientation.vertical, ...defaultClasses)
5642
5672
  };
5643
- if (false) {
5673
+ if (true) {
5644
5674
  domProps["data-cmp-name"] = "RowListWithExternalScrolling";
5645
5675
  }
5646
5676
  return /* @__PURE__ */ React31.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React31.createElement(RawList, {
@@ -5866,7 +5896,7 @@ var VirtualBrain = class extends Logger {
5866
5896
  this.availableSize = { width: 0, height: 0 };
5867
5897
  this.setAvailableSize = (size) => {
5868
5898
  this.availableSize = size;
5869
- if (false) {
5899
+ if (true) {
5870
5900
  this.debug("New available size %d", size[this.options.mainAxis === "vertical" ? "height" : "width"]);
5871
5901
  }
5872
5902
  this.updateRenderCount();
@@ -5903,7 +5933,7 @@ var VirtualBrain = class extends Logger {
5903
5933
  this.notifyTotalSizeChange();
5904
5934
  return;
5905
5935
  }
5906
- if (false) {
5936
+ if (true) {
5907
5937
  this.debug("set renderCount to %d", renderCount);
5908
5938
  }
5909
5939
  this.renderCount = renderCount;
@@ -5977,7 +6007,7 @@ var VirtualBrain = class extends Logger {
5977
6007
  return;
5978
6008
  }
5979
6009
  }
5980
- if (false) {
6010
+ if (true) {
5981
6011
  if (itemSizeChange && countChange) {
5982
6012
  this.debug(`Reset brain: reason itemSize changed and count changed (old ${count}, new ${newCount})`, {
5983
6013
  oldItemSize: itemSize,
@@ -6017,7 +6047,7 @@ var VirtualBrain = class extends Logger {
6017
6047
  if (cache[i] === void 0) {
6018
6048
  ItemIndexBag.itemIndex = i;
6019
6049
  let spanValue = itemSpan(ItemIndexBag);
6020
- if (false) {
6050
+ if (spanValue < 1) {
6021
6051
  this.debug("itemSpan cannot be less than 1 - got %d for index %d", spanValue, i);
6022
6052
  }
6023
6053
  cache[i] = i;
@@ -6217,7 +6247,7 @@ var VirtualBrain = class extends Logger {
6217
6247
  const { renderStartIndex, renderEndIndex } = this.renderRange;
6218
6248
  if (renderEndIndex !== renderRange.renderEndIndex || renderStartIndex !== renderRange.renderStartIndex) {
6219
6249
  this.renderRange = renderRange;
6220
- if (false) {
6250
+ if (true) {
6221
6251
  this.debug("Set renderRange to %d-%d", renderRange.renderStartIndex, renderRange.renderEndIndex);
6222
6252
  }
6223
6253
  this.notifyRenderRangeChange();
@@ -6729,7 +6759,7 @@ var useLicense = (licenseKey) => {
6729
6759
  const valid = (0, import_react42.useMemo)(() => {
6730
6760
  let valid2 = isValidLicense(licenseKey, {
6731
6761
  publishedAt: 1624970570587,
6732
- version: "0.0.2-canary.6"
6762
+ version: "0.0.5"
6733
6763
  });
6734
6764
  if (!licenseKey && !valid2 && isInsideSandbox) {
6735
6765
  return true;
@@ -6878,8 +6908,8 @@ function useDOMProps(initialDOMProps) {
6878
6908
  var React35 = __toModule(require("react"));
6879
6909
 
6880
6910
  // src/components/InfiniteTable/components/LoadMask.css.ts
6881
- var LoadMaskCls = { visible: "qy58ya1 qy58ya0 _16lm1iw2 _16lm1iwp _16lm1iwr _16lm1iwv _16lm1iwt", hidden: "qy58ya2 qy58ya0 _16lm1iw2 _16lm1iwp _16lm1iwr _16lm1iwv _16lm1iwt" };
6882
- var LoadMaskOverlayCls = "qy58ya3 _16lm1iw2 _16lm1iwp _16lm1iwr _16lm1iwv _16lm1iwt";
6911
+ var LoadMaskCls = { visible: "qy58ya1 qy58ya0 _16lm1iw2 _16lm1iwr _16lm1iwt _16lm1iwx _16lm1iwv", hidden: "qy58ya2 qy58ya0 _16lm1iw2 _16lm1iwr _16lm1iwt _16lm1iwx _16lm1iwv" };
6912
+ var LoadMaskOverlayCls = "qy58ya3 _16lm1iw2 _16lm1iwr _16lm1iwt _16lm1iwx _16lm1iwv";
6883
6913
  var LoadMaskTextCls = "qy58ya4";
6884
6914
 
6885
6915
  // src/components/InfiniteTable/components/LoadMask.tsx
@@ -6911,7 +6941,8 @@ var InfiniteTableRoot = getComponentStateRoot({
6911
6941
  rowHeight: true,
6912
6942
  headerHeight: true
6913
6943
  },
6914
- getParentState: () => useDataSource()
6944
+ getParentState: () => useDataSource(),
6945
+ debugName: "InfiniteTable"
6915
6946
  });
6916
6947
  var InfiniteTableComponent = React36.memo(function InfiniteTableComponent2() {
6917
6948
  var _a;
@@ -6989,7 +7020,7 @@ function InfiniteTableContextProvider() {
6989
7020
  const computed = useComputed();
6990
7021
  const getComputed = useLatest(computed);
6991
7022
  const getState = useLatest(componentState);
6992
- if (false) {
7023
+ if (true) {
6993
7024
  globalThis.getState = getState;
6994
7025
  globalThis.getComputed = getComputed;
6995
7026
  }