@infinite-table/infinite-react 0.2.14 → 0.2.15
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.d.ts +40 -13
- package/index.esm.js +238 -169
- package/index.js +309 -245
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -633,7 +633,7 @@ function debounce(fn, { wait }) {
|
|
|
633
633
|
// src/components/InfiniteTable/index.tsx
|
|
634
634
|
import {
|
|
635
635
|
StrictMode,
|
|
636
|
-
createElement as
|
|
636
|
+
createElement as createElement33,
|
|
637
637
|
memo as memo13,
|
|
638
638
|
useEffect as useEffect25,
|
|
639
639
|
useLayoutEffect as useLayoutEffect5
|
|
@@ -2545,7 +2545,7 @@ import { useEffect as useEffect9, useMemo as useMemo5 } from "react";
|
|
|
2545
2545
|
|
|
2546
2546
|
// src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
|
|
2547
2547
|
import {
|
|
2548
|
-
createElement as
|
|
2548
|
+
createElement as createElement5
|
|
2549
2549
|
} from "react";
|
|
2550
2550
|
|
|
2551
2551
|
// src/utils/join.ts
|
|
@@ -2620,6 +2620,15 @@ var userSelect = { none: "_16lm1iwm" };
|
|
|
2620
2620
|
var willChange = { transform: "_16lm1iw19" };
|
|
2621
2621
|
var zIndex = { "1": "_16lm1iwe", "10": "_16lm1iwf", "1000": "_16lm1iwg", "10000": "_16lm1iwh", "100000": "_16lm1iwi" };
|
|
2622
2622
|
|
|
2623
|
+
// src/components/InfiniteTable/utils/RenderHookComponent.tsx
|
|
2624
|
+
import {
|
|
2625
|
+
Fragment,
|
|
2626
|
+
createElement as createElement4
|
|
2627
|
+
} from "react";
|
|
2628
|
+
function RenderHookComponent(props) {
|
|
2629
|
+
return /* @__PURE__ */ createElement4(Fragment, null, props.render(props.renderParam));
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2623
2632
|
// src/components/InfiniteTable/utils/getColumnForGroupBy.tsx
|
|
2624
2633
|
function getGroupColumnRender({
|
|
2625
2634
|
groupIndexForColumn,
|
|
@@ -2630,7 +2639,10 @@ function getGroupColumnRender({
|
|
|
2630
2639
|
var _a, _b, _c;
|
|
2631
2640
|
let { value, rowInfo, column, groupBy, pivotBy } = renderOptions;
|
|
2632
2641
|
if (column.renderValue) {
|
|
2633
|
-
value =
|
|
2642
|
+
value = /* @__PURE__ */ createElement5(RenderHookComponent, {
|
|
2643
|
+
render: column.renderValue,
|
|
2644
|
+
renderParam: renderOptions
|
|
2645
|
+
});
|
|
2634
2646
|
}
|
|
2635
2647
|
let groupRowInfo = groupRenderStrategy !== "inline" ? rowInfo : ((_a = rowInfo.parents) == null ? void 0 : _a[groupIndexForColumn]) || rowInfo;
|
|
2636
2648
|
if (!groupRowInfo) {
|
|
@@ -2656,17 +2668,20 @@ function getGroupColumnRender({
|
|
|
2656
2668
|
let icon = null;
|
|
2657
2669
|
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);
|
|
2658
2670
|
if (showExpanderIcon) {
|
|
2659
|
-
const defaultIcon = /* @__PURE__ */
|
|
2671
|
+
const defaultIcon = /* @__PURE__ */ createElement5(ExpanderIcon, {
|
|
2660
2672
|
expanded: !collapsed,
|
|
2661
2673
|
onChange: () => {
|
|
2662
2674
|
toggleGroupRow(groupKeys);
|
|
2663
2675
|
}
|
|
2664
2676
|
});
|
|
2665
|
-
icon = column.renderGroupIcon ?
|
|
2677
|
+
icon = column.renderGroupIcon ? /* @__PURE__ */ createElement5(RenderHookComponent, {
|
|
2678
|
+
render: column.renderGroupIcon,
|
|
2679
|
+
renderParam: Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)
|
|
2680
|
+
}) : defaultIcon;
|
|
2666
2681
|
}
|
|
2667
|
-
return /* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ createElement5("div", {
|
|
2668
2683
|
className: join(display.flex, alignItems.center)
|
|
2669
|
-
}, icon, /* @__PURE__ */
|
|
2684
|
+
}, icon, /* @__PURE__ */ createElement5("div", {
|
|
2670
2685
|
className: cssEllipsisClassName
|
|
2671
2686
|
}, value != null ? value : null));
|
|
2672
2687
|
};
|
|
@@ -2714,7 +2729,7 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
|
|
|
2714
2729
|
let icon = null;
|
|
2715
2730
|
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);
|
|
2716
2731
|
if (showExpanderIcon) {
|
|
2717
|
-
const defaultIcon = /* @__PURE__ */
|
|
2732
|
+
const defaultIcon = /* @__PURE__ */ createElement5(ExpanderIcon, {
|
|
2718
2733
|
expanded: !collapsed,
|
|
2719
2734
|
onChange: () => {
|
|
2720
2735
|
toggleGroupRow(rowInfo.groupKeys);
|
|
@@ -2722,9 +2737,9 @@ function getSingleGroupColumn(options, toggleGroupRow, groupColumnFromProps) {
|
|
|
2722
2737
|
});
|
|
2723
2738
|
icon = column.renderGroupIcon ? column.renderGroupIcon(Object.assign({ collapsed, groupIcon: defaultIcon }, renderOptions)) : defaultIcon;
|
|
2724
2739
|
}
|
|
2725
|
-
return /* @__PURE__ */
|
|
2740
|
+
return /* @__PURE__ */ createElement5("div", {
|
|
2726
2741
|
className: join(display.flex, alignItems.center, GroupRowExpanderCls)
|
|
2727
|
-
}, icon, /* @__PURE__ */
|
|
2742
|
+
}, icon, /* @__PURE__ */ createElement5("div", {
|
|
2728
2743
|
className: cssEllipsisClassName
|
|
2729
2744
|
}, value != null ? value : null));
|
|
2730
2745
|
}
|
|
@@ -2744,8 +2759,8 @@ import { useCallback as useCallback4 } from "react";
|
|
|
2744
2759
|
|
|
2745
2760
|
// src/components/DataSource/index.tsx
|
|
2746
2761
|
import {
|
|
2747
|
-
Fragment,
|
|
2748
|
-
createElement as
|
|
2762
|
+
Fragment as Fragment2,
|
|
2763
|
+
createElement as createElement6
|
|
2749
2764
|
} from "react";
|
|
2750
2765
|
|
|
2751
2766
|
// src/utils/multisort/sortTypes.ts
|
|
@@ -4539,7 +4554,7 @@ function DataSourceWithContext(props) {
|
|
|
4539
4554
|
if (typeof children === "function") {
|
|
4540
4555
|
children = children(computedValues);
|
|
4541
4556
|
}
|
|
4542
|
-
return /* @__PURE__ */
|
|
4557
|
+
return /* @__PURE__ */ createElement6(Fragment2, null, children);
|
|
4543
4558
|
}
|
|
4544
4559
|
var DataSourceRoot = getComponentStateRoot({
|
|
4545
4560
|
initSetupState: initSetupState2,
|
|
@@ -4562,14 +4577,14 @@ function DataSourceCmp({ children }) {
|
|
|
4562
4577
|
globalThis.getDataSourceState = getState;
|
|
4563
4578
|
}
|
|
4564
4579
|
useLoadData();
|
|
4565
|
-
return /* @__PURE__ */
|
|
4580
|
+
return /* @__PURE__ */ createElement6(DataSourceContext.Provider, {
|
|
4566
4581
|
value: contextValue
|
|
4567
|
-
}, /* @__PURE__ */
|
|
4582
|
+
}, /* @__PURE__ */ createElement6(DataSourceWithContext, {
|
|
4568
4583
|
children
|
|
4569
4584
|
}));
|
|
4570
4585
|
}
|
|
4571
4586
|
function DataSource(props) {
|
|
4572
|
-
return /* @__PURE__ */
|
|
4587
|
+
return /* @__PURE__ */ createElement6(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ createElement6(DataSourceCmp, {
|
|
4573
4588
|
children: props.children
|
|
4574
4589
|
}));
|
|
4575
4590
|
}
|
|
@@ -5107,7 +5122,7 @@ function useComputed() {
|
|
|
5107
5122
|
|
|
5108
5123
|
// src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
|
|
5109
5124
|
import {
|
|
5110
|
-
createElement as
|
|
5125
|
+
createElement as createElement7,
|
|
5111
5126
|
forwardRef
|
|
5112
5127
|
} from "react";
|
|
5113
5128
|
|
|
@@ -5119,7 +5134,7 @@ var useInternalProps = () => {
|
|
|
5119
5134
|
// src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
|
|
5120
5135
|
var InfiniteTableBody = forwardRef(function InfiniteTableBody2(props, ref) {
|
|
5121
5136
|
const { rootClassName: rootClassName12 } = useInternalProps();
|
|
5122
|
-
return /* @__PURE__ */
|
|
5137
|
+
return /* @__PURE__ */ createElement7("div", __spreadProps(__spreadValues({
|
|
5123
5138
|
ref
|
|
5124
5139
|
}, props), {
|
|
5125
5140
|
className: join(`${rootClassName12}Body`, position.relative, flex["1"], transformTranslateZero, props.className)
|
|
@@ -5128,12 +5143,12 @@ var InfiniteTableBody = forwardRef(function InfiniteTableBody2(props, ref) {
|
|
|
5128
5143
|
|
|
5129
5144
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper.tsx
|
|
5130
5145
|
import {
|
|
5131
|
-
createElement as
|
|
5146
|
+
createElement as createElement19
|
|
5132
5147
|
} from "react";
|
|
5133
5148
|
|
|
5134
5149
|
// src/components/InfiniteTable/components/ScrollbarPlaceholder.tsx
|
|
5135
5150
|
import {
|
|
5136
|
-
createElement as
|
|
5151
|
+
createElement as createElement8,
|
|
5137
5152
|
memo as memo2
|
|
5138
5153
|
} from "react";
|
|
5139
5154
|
function HorizontalScrollbarPlaceholderFn(props) {
|
|
@@ -5141,7 +5156,7 @@ function HorizontalScrollbarPlaceholderFn(props) {
|
|
|
5141
5156
|
if (!scrollbarWidth2) {
|
|
5142
5157
|
return null;
|
|
5143
5158
|
}
|
|
5144
|
-
return /* @__PURE__ */
|
|
5159
|
+
return /* @__PURE__ */ createElement8("div", {
|
|
5145
5160
|
"data-name": "horizontal-scrollbar-placeholder",
|
|
5146
5161
|
style: __spreadValues({
|
|
5147
5162
|
position: "absolute",
|
|
@@ -5157,7 +5172,7 @@ function VerticalScrollbarPlaceholderFn(props) {
|
|
|
5157
5172
|
if (!scrollbarWidth2) {
|
|
5158
5173
|
return null;
|
|
5159
5174
|
}
|
|
5160
|
-
return /* @__PURE__ */
|
|
5175
|
+
return /* @__PURE__ */ createElement8("div", {
|
|
5161
5176
|
"data-name": "vertical-scrollbar-placeholder",
|
|
5162
5177
|
style: __spreadValues({
|
|
5163
5178
|
position: "absolute",
|
|
@@ -5183,21 +5198,22 @@ var HeaderWrapperCls = "_12zfob1v _16lm1iw16 _16lm1iw1 _16lm1iwj _16lm1iw10";
|
|
|
5183
5198
|
|
|
5184
5199
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx
|
|
5185
5200
|
import {
|
|
5186
|
-
createElement as
|
|
5201
|
+
createElement as createElement15,
|
|
5187
5202
|
memo as memo6
|
|
5188
5203
|
} from "react";
|
|
5189
5204
|
import { useCallback as useCallback8, useEffect as useEffect14, useRef as useRef9 } from "react";
|
|
5190
5205
|
|
|
5191
5206
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
|
|
5192
5207
|
import {
|
|
5193
|
-
|
|
5194
|
-
createElement as
|
|
5208
|
+
createContext as createContext4,
|
|
5209
|
+
createElement as createElement11
|
|
5195
5210
|
} from "react";
|
|
5196
|
-
import { useCallback as useCallback7, useEffect as useEffect12, useRef as useRef8 } from "react";
|
|
5211
|
+
import { useCallback as useCallback7, useContext as useContext5, useEffect as useEffect12, useRef as useRef8 } from "react";
|
|
5197
5212
|
|
|
5198
5213
|
// src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell.tsx
|
|
5199
5214
|
import {
|
|
5200
|
-
|
|
5215
|
+
Fragment as Fragment3,
|
|
5216
|
+
createElement as createElement9,
|
|
5201
5217
|
memo as memo3
|
|
5202
5218
|
} from "react";
|
|
5203
5219
|
|
|
@@ -5221,7 +5237,7 @@ var { rootClassName: rootClassName2 } = internalProps;
|
|
|
5221
5237
|
var InfiniteTableCellClassName = `${rootClassName2}Cell`;
|
|
5222
5238
|
var InfiniteTableCellContentClassName = `${rootClassName2}Cell_content`;
|
|
5223
5239
|
function InfiniteTableCellFn(props) {
|
|
5224
|
-
var _b, _c;
|
|
5240
|
+
var _b, _c, _d, _e;
|
|
5225
5241
|
const _a = props, {
|
|
5226
5242
|
cssEllipsis = true,
|
|
5227
5243
|
virtualized = true,
|
|
@@ -5229,10 +5245,12 @@ function InfiniteTableCellFn(props) {
|
|
|
5229
5245
|
offsetProperty = "left",
|
|
5230
5246
|
column,
|
|
5231
5247
|
domRef,
|
|
5232
|
-
children,
|
|
5233
5248
|
afterChildren,
|
|
5234
5249
|
beforeChildren,
|
|
5235
|
-
offset
|
|
5250
|
+
offset,
|
|
5251
|
+
cellType,
|
|
5252
|
+
cssPosition: _cssPosition,
|
|
5253
|
+
renderChildren
|
|
5236
5254
|
} = _a, domProps = __objRest(_a, [
|
|
5237
5255
|
"cssEllipsis",
|
|
5238
5256
|
"virtualized",
|
|
@@ -5240,11 +5258,14 @@ function InfiniteTableCellFn(props) {
|
|
|
5240
5258
|
"offsetProperty",
|
|
5241
5259
|
"column",
|
|
5242
5260
|
"domRef",
|
|
5243
|
-
"children",
|
|
5244
5261
|
"afterChildren",
|
|
5245
5262
|
"beforeChildren",
|
|
5246
|
-
"offset"
|
|
5263
|
+
"offset",
|
|
5264
|
+
"cellType",
|
|
5265
|
+
"cssPosition",
|
|
5266
|
+
"renderChildren"
|
|
5247
5267
|
]);
|
|
5268
|
+
const children = renderChildren();
|
|
5248
5269
|
const { columnShifts } = useInfiniteTableState();
|
|
5249
5270
|
const shifting = !!columnShifts;
|
|
5250
5271
|
const style = __spreadValues({
|
|
@@ -5259,14 +5280,21 @@ function InfiniteTableCellFn(props) {
|
|
|
5259
5280
|
style.transform = `translate3d(${shiftLeft}px, 0px, 0px)`;
|
|
5260
5281
|
}
|
|
5261
5282
|
}
|
|
5262
|
-
|
|
5263
|
-
ref: domRef,
|
|
5283
|
+
const finalDOMProps = __spreadProps(__spreadValues({}, domProps), {
|
|
5264
5284
|
style,
|
|
5265
|
-
"data-name":
|
|
5266
|
-
className: join(domProps.className, columnAlignCellStyle[(_b = column.align) != null ? _b : "start"], justifyContent[(_c = column.align) != null ? _c : "start"], InfiniteTableCellClassName, ColumnCellCls, shifting ? `${InfiniteTableCellClassName}--shifting ${CellClsVariants.shifting}` : "")
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5285
|
+
"data-name": "Cell",
|
|
5286
|
+
className: join(domProps.className, columnAlignCellStyle[(_b = column.align) != null ? _b : "start"], justifyContent[(_c = column.align) != null ? _c : "start"], InfiniteTableCellClassName, ColumnCellCls, shifting ? `${InfiniteTableCellClassName}--shifting ${CellClsVariants.shifting}` : ""),
|
|
5287
|
+
children: /* @__PURE__ */ createElement9(Fragment3, null, beforeChildren, /* @__PURE__ */ createElement9("div", {
|
|
5288
|
+
className: `${InfiniteTableCellContentClassName} ${cssEllipsis ? cssEllipsisClassName : overflow.hidden}`
|
|
5289
|
+
}, children), afterChildren)
|
|
5290
|
+
});
|
|
5291
|
+
const RenderComponent = cellType === "body" ? (_d = column.components) == null ? void 0 : _d.ColumnCell : (_e = column.components) == null ? void 0 : _e.HeaderCell;
|
|
5292
|
+
if (RenderComponent) {
|
|
5293
|
+
return /* @__PURE__ */ createElement9(RenderComponent, __spreadValues({}, finalDOMProps));
|
|
5294
|
+
}
|
|
5295
|
+
return /* @__PURE__ */ createElement9("div", __spreadProps(__spreadValues({}, finalDOMProps), {
|
|
5296
|
+
ref: domRef
|
|
5297
|
+
}));
|
|
5270
5298
|
}
|
|
5271
5299
|
var InfiniteTableCell = memo3(InfiniteTableCellFn);
|
|
5272
5300
|
|
|
@@ -5469,7 +5497,7 @@ import { createPortal } from "react-dom";
|
|
|
5469
5497
|
|
|
5470
5498
|
// src/components/InfiniteTable/components/icons/SortIcon.tsx
|
|
5471
5499
|
import {
|
|
5472
|
-
createElement as
|
|
5500
|
+
createElement as createElement10
|
|
5473
5501
|
} from "react";
|
|
5474
5502
|
import { useEffect as useEffect11, useState as useState7 } from "react";
|
|
5475
5503
|
var defaultLineStyle = {
|
|
@@ -5525,23 +5553,24 @@ function SortIcon(props) {
|
|
|
5525
5553
|
if (direction === -1) {
|
|
5526
5554
|
indexStyle.top = "100%";
|
|
5527
5555
|
}
|
|
5528
|
-
return /* @__PURE__ */
|
|
5556
|
+
return /* @__PURE__ */ createElement10("div", {
|
|
5529
5557
|
style: __spreadProps(__spreadValues({}, style), { width: size }),
|
|
5530
5558
|
className: join(className, InfiniteTableIconClassName, `${InfiniteTableIconClassName}-sort`)
|
|
5531
|
-
}, showIndex ? /* @__PURE__ */
|
|
5559
|
+
}, showIndex ? /* @__PURE__ */ createElement10("div", {
|
|
5532
5560
|
"data-name": "index",
|
|
5533
5561
|
style: indexStyle
|
|
5534
|
-
}, index) : null, /* @__PURE__ */
|
|
5562
|
+
}, index) : null, /* @__PURE__ */ createElement10("div", {
|
|
5535
5563
|
style: __spreadValues({ width: sizes[0] }, lineStyle),
|
|
5536
5564
|
onTransitionEnd
|
|
5537
|
-
}), /* @__PURE__ */
|
|
5565
|
+
}), /* @__PURE__ */ createElement10("div", {
|
|
5538
5566
|
style: __spreadValues({ width: sizes[1] }, lineStyle)
|
|
5539
|
-
}), /* @__PURE__ */
|
|
5567
|
+
}), /* @__PURE__ */ createElement10("div", {
|
|
5540
5568
|
style: __spreadValues({ width: sizes[2] }, lineStyle)
|
|
5541
5569
|
}));
|
|
5542
5570
|
}
|
|
5543
5571
|
|
|
5544
5572
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
|
|
5573
|
+
var InfiniteTableHeaderCellContext = createContext4(null);
|
|
5545
5574
|
var defaultStyle = {
|
|
5546
5575
|
position: "absolute",
|
|
5547
5576
|
top: 0
|
|
@@ -5560,24 +5589,33 @@ function InfiniteTableHeaderCell(props) {
|
|
|
5560
5589
|
}
|
|
5561
5590
|
const sortInfo = column.computedSortInfo;
|
|
5562
5591
|
let header = column.header;
|
|
5563
|
-
if (header instanceof Function) {
|
|
5564
|
-
header = header({
|
|
5565
|
-
column,
|
|
5566
|
-
columnSortInfo: sortInfo
|
|
5567
|
-
});
|
|
5568
|
-
}
|
|
5569
|
-
header = header != null ? header : column.name;
|
|
5570
|
-
const sortTool = /* @__PURE__ */ createElement10(SortIcon, {
|
|
5571
|
-
index: column.computedMultiSort ? column.computedSortIndex + 1 : void 0,
|
|
5572
|
-
className: `${InfiniteTableHeaderCellClassName}__sort-icon ${HeaderSortIconCls}`,
|
|
5573
|
-
direction: column.computedSorted ? column.computedSortedAsc ? 1 : -1 : 0
|
|
5574
|
-
});
|
|
5575
|
-
const domRef = useRef8(null);
|
|
5576
5592
|
const ref = useCallback7((node) => {
|
|
5577
5593
|
var _a2;
|
|
5578
5594
|
domRef.current = node;
|
|
5579
5595
|
(_a2 = props.domRef) == null ? void 0 : _a2.call(props, node);
|
|
5580
5596
|
}, [props.domRef]);
|
|
5597
|
+
const sortTool = /* @__PURE__ */ createElement11(SortIcon, {
|
|
5598
|
+
index: column.computedMultiSort ? column.computedSortIndex + 1 : void 0,
|
|
5599
|
+
className: `${InfiniteTableHeaderCellClassName}__sort-icon ${HeaderSortIconCls}`,
|
|
5600
|
+
direction: column.computedSorted ? column.computedSortedAsc ? 1 : -1 : 0
|
|
5601
|
+
});
|
|
5602
|
+
const renderParam = {
|
|
5603
|
+
domRef: ref,
|
|
5604
|
+
column,
|
|
5605
|
+
columnSortInfo: sortInfo,
|
|
5606
|
+
sortTool
|
|
5607
|
+
};
|
|
5608
|
+
const renderChildren = () => {
|
|
5609
|
+
if (header instanceof Function) {
|
|
5610
|
+
header = /* @__PURE__ */ createElement11(RenderHookComponent, {
|
|
5611
|
+
render: header,
|
|
5612
|
+
renderParam
|
|
5613
|
+
});
|
|
5614
|
+
}
|
|
5615
|
+
header = header != null ? header : column.name;
|
|
5616
|
+
return header;
|
|
5617
|
+
};
|
|
5618
|
+
const domRef = useRef8(null);
|
|
5581
5619
|
const {
|
|
5582
5620
|
computed: { computedRemainingSpace },
|
|
5583
5621
|
componentState: { portalDOMRef }
|
|
@@ -5605,7 +5643,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
5605
5643
|
let offset = offsetFromProps != null ? offsetFromProps : virtualized ? 0 : column.computedPinningOffset;
|
|
5606
5644
|
let draggingProxy = null;
|
|
5607
5645
|
if (dragging) {
|
|
5608
|
-
draggingProxy = /* @__PURE__ */
|
|
5646
|
+
draggingProxy = /* @__PURE__ */ createElement11("div", {
|
|
5609
5647
|
className: `${InfiniteTableHeaderCellClassName}Proxy ${HeaderCellProxy}`,
|
|
5610
5648
|
style: {
|
|
5611
5649
|
position: "absolute",
|
|
@@ -5618,8 +5656,12 @@ function InfiniteTableHeaderCell(props) {
|
|
|
5618
5656
|
}, header);
|
|
5619
5657
|
draggingProxy = createPortal(draggingProxy, portalDOMRef.current);
|
|
5620
5658
|
}
|
|
5621
|
-
|
|
5659
|
+
const ContextProvider = InfiniteTableHeaderCellContext.Provider;
|
|
5660
|
+
return /* @__PURE__ */ createElement11(ContextProvider, {
|
|
5661
|
+
value: renderParam
|
|
5662
|
+
}, /* @__PURE__ */ createElement11(InfiniteTableCell, {
|
|
5622
5663
|
domRef: ref,
|
|
5664
|
+
cellType: "header",
|
|
5623
5665
|
column,
|
|
5624
5666
|
"data-name": `HeaderCell`,
|
|
5625
5667
|
"data-column-id": column.id,
|
|
@@ -5629,21 +5671,26 @@ function InfiniteTableHeaderCell(props) {
|
|
|
5629
5671
|
onPointerUp,
|
|
5630
5672
|
className: join(InfiniteTableHeaderCellClassName, userSelect.none, column.computedSortable ? cursor.pointer : "", useCellClassName(column, [InfiniteTableHeaderCellClassName, InfiniteTableCellClassName], HeaderCellRecipe, { dragging }), CellCls),
|
|
5631
5673
|
cssEllipsis: (_d = (_c = column.headerCssEllipsis) != null ? _c : column.cssEllipsis) != null ? _d : true,
|
|
5632
|
-
afterChildren: sortTool
|
|
5633
|
-
|
|
5674
|
+
afterChildren: sortTool,
|
|
5675
|
+
renderChildren
|
|
5676
|
+
}), draggingProxy);
|
|
5677
|
+
}
|
|
5678
|
+
function useInfiniteHeaderCell() {
|
|
5679
|
+
const result = useContext5(InfiniteTableHeaderCellContext);
|
|
5680
|
+
return result;
|
|
5634
5681
|
}
|
|
5635
5682
|
|
|
5636
5683
|
// src/components/RawList/index.tsx
|
|
5637
5684
|
import {
|
|
5638
|
-
createElement as
|
|
5685
|
+
createElement as createElement14,
|
|
5639
5686
|
memo as memo5
|
|
5640
5687
|
} from "react";
|
|
5641
5688
|
import { useEffect as useEffect13 } from "react";
|
|
5642
5689
|
|
|
5643
5690
|
// src/components/RawList/AvoidReactDiff.tsx
|
|
5644
5691
|
import {
|
|
5645
|
-
Fragment as
|
|
5646
|
-
createElement as
|
|
5692
|
+
Fragment as Fragment4,
|
|
5693
|
+
createElement as createElement12,
|
|
5647
5694
|
memo as memo4
|
|
5648
5695
|
} from "react";
|
|
5649
5696
|
import { useLayoutEffect as useLayoutEffect3, useState as useState8 } from "react";
|
|
@@ -5655,7 +5702,7 @@ function AvoidReactDiffFn(props) {
|
|
|
5655
5702
|
});
|
|
5656
5703
|
return remove;
|
|
5657
5704
|
}, [props.updater]);
|
|
5658
|
-
return /* @__PURE__ */
|
|
5705
|
+
return /* @__PURE__ */ createElement12(Fragment4, null, children);
|
|
5659
5706
|
}
|
|
5660
5707
|
var AvoidReactDiff = memo4(AvoidReactDiffFn);
|
|
5661
5708
|
|
|
@@ -5664,7 +5711,7 @@ import { useMemo as useMemo8 } from "react";
|
|
|
5664
5711
|
|
|
5665
5712
|
// src/components/RawList/ReactVirtualRenderer.tsx
|
|
5666
5713
|
import {
|
|
5667
|
-
createElement as
|
|
5714
|
+
createElement as createElement13
|
|
5668
5715
|
} from "react";
|
|
5669
5716
|
|
|
5670
5717
|
// src/components/RawList/MappedItems.ts
|
|
@@ -5910,7 +5957,7 @@ var ReactVirtualRenderer = class extends Logger {
|
|
|
5910
5957
|
};
|
|
5911
5958
|
this.itemDOMRefs[elementIndex] = domRef;
|
|
5912
5959
|
this.updaters[elementIndex] = buildSubscriptionCallback();
|
|
5913
|
-
const item = /* @__PURE__ */
|
|
5960
|
+
const item = /* @__PURE__ */ createElement13(AvoidReactDiff, {
|
|
5914
5961
|
key: elementIndex,
|
|
5915
5962
|
name: `${elementIndex}`,
|
|
5916
5963
|
updater: this.updaters[elementIndex]
|
|
@@ -6007,7 +6054,7 @@ function RawListFn(props) {
|
|
|
6007
6054
|
});
|
|
6008
6055
|
return remove;
|
|
6009
6056
|
}, [brain, onRenderUpdater]);
|
|
6010
|
-
return /* @__PURE__ */
|
|
6057
|
+
return /* @__PURE__ */ createElement14(AvoidReactDiff, {
|
|
6011
6058
|
updater: onRenderUpdater
|
|
6012
6059
|
});
|
|
6013
6060
|
}
|
|
@@ -6032,7 +6079,7 @@ function InfiniteTableHeaderFn(props) {
|
|
|
6032
6079
|
}
|
|
6033
6080
|
return null;
|
|
6034
6081
|
}
|
|
6035
|
-
return /* @__PURE__ */
|
|
6082
|
+
return /* @__PURE__ */ createElement15(InfiniteTableHeaderCell, {
|
|
6036
6083
|
domRef: domRef2,
|
|
6037
6084
|
column,
|
|
6038
6085
|
headerHeight,
|
|
@@ -6059,7 +6106,7 @@ function InfiniteTableHeaderFn(props) {
|
|
|
6059
6106
|
className: join(TableHeaderClassName, `${TableHeaderClassName}--virtualized`, className, headerCls),
|
|
6060
6107
|
style
|
|
6061
6108
|
};
|
|
6062
|
-
return /* @__PURE__ */
|
|
6109
|
+
return /* @__PURE__ */ createElement15("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement15(RawList, {
|
|
6063
6110
|
brain,
|
|
6064
6111
|
renderItem: renderColumn
|
|
6065
6112
|
}));
|
|
@@ -6068,7 +6115,7 @@ var InfiniteTableHeader = memo6(InfiniteTableHeaderFn);
|
|
|
6068
6115
|
|
|
6069
6116
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderUnvirtualized.tsx
|
|
6070
6117
|
import {
|
|
6071
|
-
createElement as
|
|
6118
|
+
createElement as createElement18,
|
|
6072
6119
|
memo as memo7,
|
|
6073
6120
|
useMemo as useMemo9,
|
|
6074
6121
|
useRef as useRef10
|
|
@@ -6076,7 +6123,7 @@ import {
|
|
|
6076
6123
|
|
|
6077
6124
|
// src/components/InfiniteTable/components/InfiniteTableHeader/renderColumnHeaderGroups.tsx
|
|
6078
6125
|
import {
|
|
6079
|
-
createElement as
|
|
6126
|
+
createElement as createElement17
|
|
6080
6127
|
} from "react";
|
|
6081
6128
|
|
|
6082
6129
|
// src/components/InfiniteTable/components/InfiniteTableHeader/buildColumnAndGroupTree.ts
|
|
@@ -6168,7 +6215,7 @@ function assignGroupOffsetsAndComputedWidths(items, groupOffset = 0) {
|
|
|
6168
6215
|
|
|
6169
6216
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
|
|
6170
6217
|
import {
|
|
6171
|
-
createElement as
|
|
6218
|
+
createElement as createElement16
|
|
6172
6219
|
} from "react";
|
|
6173
6220
|
var TableHeaderGroupClassName = `${rootClassName}HeaderGroup`;
|
|
6174
6221
|
function InfiniteTableHeaderGroup(props) {
|
|
@@ -6183,16 +6230,16 @@ function InfiniteTableHeaderGroup(props) {
|
|
|
6183
6230
|
width: columnGroup.computedWidth,
|
|
6184
6231
|
height
|
|
6185
6232
|
};
|
|
6186
|
-
return /* @__PURE__ */
|
|
6233
|
+
return /* @__PURE__ */ createElement16("div", {
|
|
6187
6234
|
"data-group-id": columnGroup.id,
|
|
6188
6235
|
className: join(HeaderGroupCls, TableHeaderGroupClassName, `${TableHeaderGroupClassName}--unvirtualized`),
|
|
6189
6236
|
style
|
|
6190
|
-
}, /* @__PURE__ */
|
|
6237
|
+
}, /* @__PURE__ */ createElement16("div", {
|
|
6191
6238
|
className: join(`${TableHeaderGroupClassName}__header`, HeaderGroup_Header),
|
|
6192
6239
|
style: { height: headerHeight }
|
|
6193
|
-
}, /* @__PURE__ */
|
|
6240
|
+
}, /* @__PURE__ */ createElement16("div", {
|
|
6194
6241
|
className: join(`${TableHeaderGroupClassName}__header-content`, cssEllipsisClassName)
|
|
6195
|
-
}, header)), /* @__PURE__ */
|
|
6242
|
+
}, header)), /* @__PURE__ */ createElement16("div", {
|
|
6196
6243
|
className: join(`${TableHeaderGroupClassName}__children`, HeaderGroup_Children)
|
|
6197
6244
|
}, props.children));
|
|
6198
6245
|
}
|
|
@@ -6215,7 +6262,7 @@ function renderColumnHeaderGroups(config) {
|
|
|
6215
6262
|
return items2.map((colGroupItem) => {
|
|
6216
6263
|
if (colGroupItem.type === "column") {
|
|
6217
6264
|
const col = colGroupItem.ref;
|
|
6218
|
-
return /* @__PURE__ */
|
|
6265
|
+
return /* @__PURE__ */ createElement17(InfiniteTableHeaderCell, {
|
|
6219
6266
|
key: col.id,
|
|
6220
6267
|
headerHeight: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
|
|
6221
6268
|
column: col,
|
|
@@ -6229,7 +6276,7 @@ function renderColumnHeaderGroups(config) {
|
|
|
6229
6276
|
colIds.push(col.id);
|
|
6230
6277
|
return col;
|
|
6231
6278
|
});
|
|
6232
|
-
return /* @__PURE__ */
|
|
6279
|
+
return /* @__PURE__ */ createElement17(InfiniteTableHeaderGroup, {
|
|
6233
6280
|
key: `${colGroupItem.uniqueGroupId.join("/")}`,
|
|
6234
6281
|
columns: columns2,
|
|
6235
6282
|
height: (columnGroupsMaxDepth - colGroupItem.depth + 2) * headerHeight,
|
|
@@ -6303,7 +6350,7 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
|
|
|
6303
6350
|
columnGroupsMaxDepth
|
|
6304
6351
|
]);
|
|
6305
6352
|
const children = hasColumnGroups ? columnHeaderGroups : columns.map((c) => {
|
|
6306
|
-
return /* @__PURE__ */
|
|
6353
|
+
return /* @__PURE__ */ createElement18(InfiniteTableHeaderCell, {
|
|
6307
6354
|
key: c.id,
|
|
6308
6355
|
headerHeight,
|
|
6309
6356
|
column: c,
|
|
@@ -6328,14 +6375,14 @@ function InfiniteTableHeaderUnvirtualizedFn(props) {
|
|
|
6328
6375
|
const removeOnScroll = scroller.onScroll(onScroll);
|
|
6329
6376
|
return removeOnScroll;
|
|
6330
6377
|
}, [brain, scrollListener]);
|
|
6331
|
-
return /* @__PURE__ */
|
|
6378
|
+
return /* @__PURE__ */ createElement18("div", __spreadProps(__spreadValues({}, domProps), {
|
|
6332
6379
|
className: join(TableHeaderClassName2, `${TableHeaderClassName2}--unvirtualized`, pinning ? `${TableHeaderClassName2}--pinned ${TableHeaderClassName2}-${pinning}` : "", scrollable ? `${TableHeaderClassName2}--overflow` : "", domProps.className, HeaderClsRecipe({
|
|
6333
6380
|
pinned: pinning,
|
|
6334
6381
|
virtualized: false,
|
|
6335
6382
|
overflow: scrollable
|
|
6336
6383
|
})),
|
|
6337
6384
|
style
|
|
6338
|
-
}), /* @__PURE__ */
|
|
6385
|
+
}), /* @__PURE__ */ createElement18("div", {
|
|
6339
6386
|
style: { width: totalWidth },
|
|
6340
6387
|
className: join(flexFlow.row, display.flex),
|
|
6341
6388
|
ref: domRef
|
|
@@ -6374,7 +6421,7 @@ function TableHeaderWrapper(props) {
|
|
|
6374
6421
|
const unvirtualizedStyle = !virtualizeHeader && computedPinnedStartColumnsWidth ? {
|
|
6375
6422
|
left: computedPinnedStartWidth
|
|
6376
6423
|
} : void 0;
|
|
6377
|
-
const header = virtualizeHeader ? /* @__PURE__ */
|
|
6424
|
+
const header = virtualizeHeader ? /* @__PURE__ */ createElement19(InfiniteTableHeader, {
|
|
6378
6425
|
columns: computedUnpinnedColumns,
|
|
6379
6426
|
repaintId: virtualizeHeader ? repaintId : void 0,
|
|
6380
6427
|
brain,
|
|
@@ -6387,7 +6434,7 @@ function TableHeaderWrapper(props) {
|
|
|
6387
6434
|
},
|
|
6388
6435
|
availableWidth: computedUnpinnedColumnsWidth,
|
|
6389
6436
|
totalWidth: computedUnpinnedColumnsWidth
|
|
6390
|
-
}) : /* @__PURE__ */
|
|
6437
|
+
}) : /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
|
|
6391
6438
|
style: unvirtualizedStyle,
|
|
6392
6439
|
brain,
|
|
6393
6440
|
scrollable: true,
|
|
@@ -6396,12 +6443,12 @@ function TableHeaderWrapper(props) {
|
|
|
6396
6443
|
availableWidth: computedUnpinnedColumnsWidth,
|
|
6397
6444
|
totalWidth: computedUnpinnedColumnsWidth
|
|
6398
6445
|
});
|
|
6399
|
-
return /* @__PURE__ */
|
|
6446
|
+
return /* @__PURE__ */ createElement19("div", {
|
|
6400
6447
|
className: HeaderWrapperCls,
|
|
6401
6448
|
style: {
|
|
6402
6449
|
height: virtualizeHeader ? height : void 0
|
|
6403
6450
|
}
|
|
6404
|
-
}, hasPinnedStart ? /* @__PURE__ */
|
|
6451
|
+
}, hasPinnedStart ? /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
|
|
6405
6452
|
style: {
|
|
6406
6453
|
left: 0,
|
|
6407
6454
|
position: "absolute",
|
|
@@ -6413,7 +6460,7 @@ function TableHeaderWrapper(props) {
|
|
|
6413
6460
|
scrollable: computedPinnedStartOverflow,
|
|
6414
6461
|
pinning: "start",
|
|
6415
6462
|
scrollListener: computedPinnedStartOverflow ? pinnedStartScrollListener : void 0
|
|
6416
|
-
}) : null, header, hasPinnedEnd ? /* @__PURE__ */
|
|
6463
|
+
}) : null, header, hasPinnedEnd ? /* @__PURE__ */ createElement19(InfiniteTableHeaderUnvirtualized, {
|
|
6417
6464
|
style: {
|
|
6418
6465
|
right: scrollbars.vertical ? getScrollbarWidth() : 0,
|
|
6419
6466
|
position: "absolute",
|
|
@@ -6425,7 +6472,7 @@ function TableHeaderWrapper(props) {
|
|
|
6425
6472
|
scrollable: computedPinnedEndOverflow,
|
|
6426
6473
|
pinning: "end",
|
|
6427
6474
|
scrollListener: computedPinnedEndOverflow ? pinnedEndScrollListener : void 0
|
|
6428
|
-
}) : null, scrollbars.vertical ? /* @__PURE__ */
|
|
6475
|
+
}) : null, scrollbars.vertical ? /* @__PURE__ */ createElement19(VerticalScrollbarPlaceholder, {
|
|
6429
6476
|
style: {
|
|
6430
6477
|
height: "100%",
|
|
6431
6478
|
right: 0
|
|
@@ -6435,7 +6482,7 @@ function TableHeaderWrapper(props) {
|
|
|
6435
6482
|
|
|
6436
6483
|
// src/components/VirtualScrollContainer/index.tsx
|
|
6437
6484
|
import {
|
|
6438
|
-
createElement as
|
|
6485
|
+
createElement as createElement20,
|
|
6439
6486
|
forwardRef as forwardRef2
|
|
6440
6487
|
} from "react";
|
|
6441
6488
|
import { useRef as useRef11 } from "react";
|
|
@@ -6491,7 +6538,7 @@ var VirtualScrollContainer = forwardRef2(function VirtualScrollContainer2(props,
|
|
|
6491
6538
|
} = props;
|
|
6492
6539
|
const domRef = ref != null ? ref : useRef11(null);
|
|
6493
6540
|
useOnScroll(domRef, onContainerScroll);
|
|
6494
|
-
return /* @__PURE__ */
|
|
6541
|
+
return /* @__PURE__ */ createElement20("div", {
|
|
6495
6542
|
ref: domRef,
|
|
6496
6543
|
style,
|
|
6497
6544
|
className: join(className, rootClassName6, VirtualScrollContainerCls, getScrollableClassName(scrollable))
|
|
@@ -6500,7 +6547,7 @@ var VirtualScrollContainer = forwardRef2(function VirtualScrollContainer2(props,
|
|
|
6500
6547
|
|
|
6501
6548
|
// src/components/VirtualList/SpacePlaceholder.tsx
|
|
6502
6549
|
import {
|
|
6503
|
-
createElement as
|
|
6550
|
+
createElement as createElement21,
|
|
6504
6551
|
memo as memo8
|
|
6505
6552
|
} from "react";
|
|
6506
6553
|
function SpacePlaceholderFn(props) {
|
|
@@ -6512,7 +6559,7 @@ function SpacePlaceholderFn(props) {
|
|
|
6512
6559
|
opacity: 0,
|
|
6513
6560
|
pointerEvents: "none"
|
|
6514
6561
|
};
|
|
6515
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ createElement21("div", {
|
|
6516
6563
|
"data-count": count,
|
|
6517
6564
|
"data-placeholder-width": true ? width : void 0,
|
|
6518
6565
|
"data-placeholder-height": true ? height : void 0,
|
|
@@ -6527,20 +6574,20 @@ import { useEffect as useEffect22, useMemo as useMemo11, useRef as useRef17 } fr
|
|
|
6527
6574
|
|
|
6528
6575
|
// src/components/InfiniteTable/hooks/useUnpinnedRendering.tsx
|
|
6529
6576
|
import {
|
|
6530
|
-
createElement as
|
|
6577
|
+
createElement as createElement27
|
|
6531
6578
|
} from "react";
|
|
6532
6579
|
import { useCallback as useCallback12 } from "react";
|
|
6533
6580
|
|
|
6534
6581
|
// src/components/VirtualList/VirtualRowList.tsx
|
|
6535
6582
|
import {
|
|
6536
|
-
createElement as
|
|
6583
|
+
createElement as createElement23,
|
|
6537
6584
|
useCallback as useCallback9
|
|
6538
6585
|
} from "react";
|
|
6539
6586
|
|
|
6540
6587
|
// src/components/VirtualList/VirtualList.tsx
|
|
6541
6588
|
import {
|
|
6542
|
-
Fragment as
|
|
6543
|
-
createElement as
|
|
6589
|
+
Fragment as Fragment5,
|
|
6590
|
+
createElement as createElement22
|
|
6544
6591
|
} from "react";
|
|
6545
6592
|
import { useRef as useRef12, useEffect as useEffect17, useState as useState9 } from "react";
|
|
6546
6593
|
|
|
@@ -6623,19 +6670,19 @@ var VirtualList = (props) => {
|
|
|
6623
6670
|
if (true) {
|
|
6624
6671
|
domProps["data-cmp-name"] = `VirtualList`;
|
|
6625
6672
|
}
|
|
6626
|
-
return /* @__PURE__ */
|
|
6673
|
+
return /* @__PURE__ */ createElement22(Fragment5, null, /* @__PURE__ */ createElement22("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement22(VirtualScrollContainer, {
|
|
6627
6674
|
scrollable,
|
|
6628
6675
|
onContainerScroll
|
|
6629
|
-
}, /* @__PURE__ */
|
|
6676
|
+
}, /* @__PURE__ */ createElement22("div", {
|
|
6630
6677
|
ref: domRef,
|
|
6631
6678
|
className: scrollTransformTargetCls,
|
|
6632
6679
|
"data-name": "scroll-transform-target"
|
|
6633
|
-
}, /* @__PURE__ */
|
|
6680
|
+
}, /* @__PURE__ */ createElement22(RawList, {
|
|
6634
6681
|
brain: virtualBrain,
|
|
6635
6682
|
renderItem,
|
|
6636
6683
|
repaintId,
|
|
6637
6684
|
debugChannel: "VirtualList-" + mainAxis
|
|
6638
|
-
})), children, /* @__PURE__ */
|
|
6685
|
+
})), children, /* @__PURE__ */ createElement22(SpacePlaceholder, {
|
|
6639
6686
|
count,
|
|
6640
6687
|
width,
|
|
6641
6688
|
height
|
|
@@ -6652,7 +6699,7 @@ var VirtualRowList = (props) => {
|
|
|
6652
6699
|
rowIndex: renderProps.itemIndex
|
|
6653
6700
|
});
|
|
6654
6701
|
}, [renderRow]);
|
|
6655
|
-
return /* @__PURE__ */
|
|
6702
|
+
return /* @__PURE__ */ createElement23(VirtualList, __spreadProps(__spreadValues({}, listProps), {
|
|
6656
6703
|
renderItem,
|
|
6657
6704
|
mainAxis: "vertical",
|
|
6658
6705
|
itemMainAxisSize: rowHeight,
|
|
@@ -6662,7 +6709,7 @@ var VirtualRowList = (props) => {
|
|
|
6662
6709
|
|
|
6663
6710
|
// src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow.tsx
|
|
6664
6711
|
import {
|
|
6665
|
-
createElement as
|
|
6712
|
+
createElement as createElement25,
|
|
6666
6713
|
memo as memo10,
|
|
6667
6714
|
useCallback as useCallback11
|
|
6668
6715
|
} from "react";
|
|
@@ -6670,10 +6717,13 @@ import { useRef as useRef14 } from "react";
|
|
|
6670
6717
|
|
|
6671
6718
|
// src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableColumnCell.tsx
|
|
6672
6719
|
import {
|
|
6673
|
-
|
|
6720
|
+
createContext as createContext5,
|
|
6721
|
+
createElement as createElement24,
|
|
6674
6722
|
memo as memo9
|
|
6675
6723
|
} from "react";
|
|
6724
|
+
import { useContext as useContext6 } from "react";
|
|
6676
6725
|
var { rootClassName: rootClassName8 } = internalProps;
|
|
6726
|
+
var InfiniteTableColumnCellContext = createContext5(null);
|
|
6677
6727
|
var InfiniteTableColumnCellClassName = `${rootClassName8}ColumnCell`;
|
|
6678
6728
|
function isColumnWithField(c) {
|
|
6679
6729
|
return typeof c.field === "string";
|
|
@@ -6720,24 +6770,31 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6720
6770
|
column
|
|
6721
6771
|
}, rest);
|
|
6722
6772
|
let renderValue = value;
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
renderValue = column.renderValue(renderParam);
|
|
6773
|
+
const renderParam = __spreadProps(__spreadValues({
|
|
6774
|
+
value,
|
|
6775
|
+
column,
|
|
6776
|
+
domRef,
|
|
6777
|
+
groupRowInfo
|
|
6778
|
+
}, rest), {
|
|
6779
|
+
rowIndex,
|
|
6780
|
+
toggleGroupRow,
|
|
6781
|
+
toggleCurrentGroupRow: () => toggleGroupRow(rowInfo.groupKeys),
|
|
6782
|
+
groupBy: computedDataSource.groupBy,
|
|
6783
|
+
pivotBy: computedDataSource.pivotBy
|
|
6784
|
+
});
|
|
6785
|
+
const renderChildren = () => {
|
|
6786
|
+
if (hidden) {
|
|
6787
|
+
return null;
|
|
6739
6788
|
}
|
|
6740
|
-
|
|
6789
|
+
const renderFn = column.render || column.renderValue;
|
|
6790
|
+
if (renderFn) {
|
|
6791
|
+
return /* @__PURE__ */ createElement24(RenderHookComponent, {
|
|
6792
|
+
render: renderFn,
|
|
6793
|
+
renderParam
|
|
6794
|
+
});
|
|
6795
|
+
}
|
|
6796
|
+
return renderValue;
|
|
6797
|
+
};
|
|
6741
6798
|
const colClassName = column.className ? typeof column.className === "function" ? column.className(stylingRenderParam) : column.className : void 0;
|
|
6742
6799
|
const colStyle = column.style ? typeof column.style === "function" ? column.style(stylingRenderParam) : column.style : void 0;
|
|
6743
6800
|
const style = colStyle ? __spreadProps(__spreadValues({}, colStyle), {
|
|
@@ -6765,18 +6822,28 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6765
6822
|
}
|
|
6766
6823
|
}
|
|
6767
6824
|
}
|
|
6768
|
-
|
|
6825
|
+
const cellProps = __spreadProps(__spreadValues({
|
|
6769
6826
|
domRef,
|
|
6770
6827
|
offsetProperty
|
|
6771
6828
|
}, dataset), {
|
|
6829
|
+
cellType: "body",
|
|
6772
6830
|
column,
|
|
6773
6831
|
offset: virtualized ? 0 : column.computedPinningOffset,
|
|
6774
6832
|
style,
|
|
6775
6833
|
cssEllipsis: (_a = column.cssEllipsis) != null ? _a : true,
|
|
6776
|
-
className: join(useCellClassName(column, [InfiniteTableColumnCellClassName, InfiniteTableCellClassName], ColumnCellRecipe, { dragging: false }), colClassName)
|
|
6777
|
-
|
|
6834
|
+
className: join(useCellClassName(column, [InfiniteTableColumnCellClassName, InfiniteTableCellClassName], ColumnCellRecipe, { dragging: false }), colClassName),
|
|
6835
|
+
renderChildren
|
|
6836
|
+
});
|
|
6837
|
+
const ContextProvider = InfiniteTableColumnCellContext.Provider;
|
|
6838
|
+
return /* @__PURE__ */ createElement24(ContextProvider, {
|
|
6839
|
+
value: renderParam
|
|
6840
|
+
}, /* @__PURE__ */ createElement24(InfiniteTableCell, __spreadValues({}, cellProps)));
|
|
6778
6841
|
}
|
|
6779
6842
|
var InfiniteTableColumnCell = memo9(InfiniteTableColumnCellFn);
|
|
6843
|
+
function useInfiniteColumnCell() {
|
|
6844
|
+
const result = useContext6(InfiniteTableColumnCellContext);
|
|
6845
|
+
return result;
|
|
6846
|
+
}
|
|
6780
6847
|
|
|
6781
6848
|
// src/components/InfiniteTable/components/InfiniteTableRow/useRowDOMProps.ts
|
|
6782
6849
|
import {
|
|
@@ -6916,7 +6983,7 @@ function InfiniteTableRowFn(props) {
|
|
|
6916
6983
|
if (!column) {
|
|
6917
6984
|
}
|
|
6918
6985
|
const hidden = false;
|
|
6919
|
-
return /* @__PURE__ */
|
|
6986
|
+
return /* @__PURE__ */ createElement25(InfiniteTableColumnCell, {
|
|
6920
6987
|
getData,
|
|
6921
6988
|
rowInfo,
|
|
6922
6989
|
groupRenderStrategy,
|
|
@@ -6943,9 +7010,9 @@ function InfiniteTableRowFn(props) {
|
|
|
6943
7010
|
if (true) {
|
|
6944
7011
|
domProps["data-cmp-name"] = "ITableRow";
|
|
6945
7012
|
}
|
|
6946
|
-
return /* @__PURE__ */
|
|
7013
|
+
return /* @__PURE__ */ createElement25("div", __spreadProps(__spreadValues({}, domProps), {
|
|
6947
7014
|
style
|
|
6948
|
-
}), /* @__PURE__ */
|
|
7015
|
+
}), /* @__PURE__ */ createElement25(RawList, {
|
|
6949
7016
|
brain,
|
|
6950
7017
|
renderItem: renderCell,
|
|
6951
7018
|
debugChannel: `${rowIndex}`
|
|
@@ -6955,7 +7022,7 @@ var InfiniteTableRow = memo10(InfiniteTableRowFn);
|
|
|
6955
7022
|
|
|
6956
7023
|
// src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowUnvirtualized.tsx
|
|
6957
7024
|
import {
|
|
6958
|
-
createElement as
|
|
7025
|
+
createElement as createElement26,
|
|
6959
7026
|
memo as memo11
|
|
6960
7027
|
} from "react";
|
|
6961
7028
|
function TableRowUnvirtualizedFn(props) {
|
|
@@ -6978,7 +7045,7 @@ function TableRowUnvirtualizedFn(props) {
|
|
|
6978
7045
|
}, domProps.style);
|
|
6979
7046
|
const children = columns.map((col) => {
|
|
6980
7047
|
const hidden = false;
|
|
6981
|
-
return /* @__PURE__ */
|
|
7048
|
+
return /* @__PURE__ */ createElement26(InfiniteTableColumnCell, {
|
|
6982
7049
|
key: col.id,
|
|
6983
7050
|
virtualized: false,
|
|
6984
7051
|
rowHeight,
|
|
@@ -6991,7 +7058,7 @@ function TableRowUnvirtualizedFn(props) {
|
|
|
6991
7058
|
column: col
|
|
6992
7059
|
});
|
|
6993
7060
|
});
|
|
6994
|
-
return /* @__PURE__ */
|
|
7061
|
+
return /* @__PURE__ */ createElement26("div", __spreadProps(__spreadValues({}, domProps), {
|
|
6995
7062
|
style
|
|
6996
7063
|
}), children);
|
|
6997
7064
|
}
|
|
@@ -7040,7 +7107,7 @@ function useUnpinnedRendering(params) {
|
|
|
7040
7107
|
rowProps.repaintId = repaintId;
|
|
7041
7108
|
}
|
|
7042
7109
|
const TableRowComponent = shouldVirtualizeColumns ? InfiniteTableRow : TableRowUnvirtualized;
|
|
7043
|
-
return /* @__PURE__ */
|
|
7110
|
+
return /* @__PURE__ */ createElement27(TableRowComponent, __spreadValues({}, rowProps));
|
|
7044
7111
|
}, [
|
|
7045
7112
|
repaintId,
|
|
7046
7113
|
rowHeight,
|
|
@@ -7051,7 +7118,7 @@ function useUnpinnedRendering(params) {
|
|
|
7051
7118
|
horizontalVirtualBrain,
|
|
7052
7119
|
verticalVirtualBrain
|
|
7053
7120
|
]);
|
|
7054
|
-
const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */
|
|
7121
|
+
const fakeScrollbar = getScrollbarWidth() ? /* @__PURE__ */ createElement27("div", {
|
|
7055
7122
|
"data-name": "horizontal-scrollbar-placeholder--fake",
|
|
7056
7123
|
style: {
|
|
7057
7124
|
position: "absolute",
|
|
@@ -7062,10 +7129,10 @@ function useUnpinnedRendering(params) {
|
|
|
7062
7129
|
overflow: "auto",
|
|
7063
7130
|
visibility: columnShifts ? "visible" : "hidden"
|
|
7064
7131
|
}
|
|
7065
|
-
}, /* @__PURE__ */
|
|
7132
|
+
}, /* @__PURE__ */ createElement27("div", {
|
|
7066
7133
|
style: { height: "100%", width: computedUnpinnedColumnsWidth }
|
|
7067
7134
|
})) : null;
|
|
7068
|
-
return rowHeight != 0 ? /* @__PURE__ */
|
|
7135
|
+
return rowHeight != 0 ? /* @__PURE__ */ createElement27(VirtualRowList, {
|
|
7069
7136
|
repaintId: `${repaintId}-unpinned-`,
|
|
7070
7137
|
brain: verticalVirtualBrain,
|
|
7071
7138
|
onContainerScroll: applyScrollHorizontal,
|
|
@@ -7209,14 +7276,14 @@ var useOnContainerScroll = ({
|
|
|
7209
7276
|
|
|
7210
7277
|
// src/components/InfiniteTable/hooks/usePinnedRendering.tsx
|
|
7211
7278
|
import {
|
|
7212
|
-
createElement as
|
|
7279
|
+
createElement as createElement29,
|
|
7213
7280
|
useMemo as useMemo10
|
|
7214
7281
|
} from "react";
|
|
7215
7282
|
import { useCallback as useCallback15 } from "react";
|
|
7216
7283
|
|
|
7217
7284
|
// src/components/VirtualList/RowListWithExternalScrolling.tsx
|
|
7218
7285
|
import {
|
|
7219
|
-
createElement as
|
|
7286
|
+
createElement as createElement28
|
|
7220
7287
|
} from "react";
|
|
7221
7288
|
import { useEffect as useEffect20, useCallback as useCallback14, useRef as useRef16 } from "react";
|
|
7222
7289
|
|
|
@@ -7293,7 +7360,7 @@ var RowListWithExternalScrolling = (props) => {
|
|
|
7293
7360
|
if (true) {
|
|
7294
7361
|
domProps["data-cmp-name"] = "RowListWithExternalScrolling";
|
|
7295
7362
|
}
|
|
7296
|
-
return /* @__PURE__ */
|
|
7363
|
+
return /* @__PURE__ */ createElement28("div", __spreadValues({}, domProps), /* @__PURE__ */ createElement28(RawList, {
|
|
7297
7364
|
brain,
|
|
7298
7365
|
renderItem,
|
|
7299
7366
|
repaintId
|
|
@@ -7342,7 +7409,7 @@ function PinnedRowsContainer(props) {
|
|
|
7342
7409
|
className: join(`${PinnedRowsContainerClassName}`, PinnedRowsClsVariants[pinning === "start" ? "pinnedStart" : "pinnedEnd"], `${PinnedRowsContainerClassName}--pinned-${pinning}`, `${PinnedRowsContainerClassName}--overflow`, PinnedRowsClsVariants.overflow)
|
|
7343
7410
|
};
|
|
7344
7411
|
if (hasOverflow) {
|
|
7345
|
-
return /* @__PURE__ */
|
|
7412
|
+
return /* @__PURE__ */ createElement29(VirtualScrollContainer, {
|
|
7346
7413
|
scrollable: {
|
|
7347
7414
|
horizontal: true,
|
|
7348
7415
|
vertical: false
|
|
@@ -7358,18 +7425,18 @@ function PinnedRowsContainer(props) {
|
|
|
7358
7425
|
className: join(PinnedRowsContainerClsVariants({
|
|
7359
7426
|
pinned: pinning
|
|
7360
7427
|
}), `${PinnedRowsContainerClassName}Container`, `${PinnedRowsContainerClassName}Container--pinned-${pinning}`)
|
|
7361
|
-
}, /* @__PURE__ */
|
|
7428
|
+
}, /* @__PURE__ */ createElement29(RowListWithExternalScrolling, __spreadProps(__spreadValues({}, rowListProps), {
|
|
7362
7429
|
onMount: (node) => {
|
|
7363
7430
|
pinnedScrollListener == null ? void 0 : pinnedScrollListener.onScroll((scrollPosition) => {
|
|
7364
7431
|
updateScroll(node, brain.getScrollPosition(), scrollPosition);
|
|
7365
7432
|
});
|
|
7366
7433
|
}
|
|
7367
|
-
})), /* @__PURE__ */
|
|
7434
|
+
})), /* @__PURE__ */ createElement29(SpacePlaceholder, {
|
|
7368
7435
|
width: rowWidth,
|
|
7369
7436
|
height: 1
|
|
7370
7437
|
}));
|
|
7371
7438
|
}
|
|
7372
|
-
return /* @__PURE__ */
|
|
7439
|
+
return /* @__PURE__ */ createElement29(RowListWithExternalScrolling, __spreadValues({}, rowListProps));
|
|
7373
7440
|
}
|
|
7374
7441
|
function useRenderPinnedRow(params) {
|
|
7375
7442
|
const { getData, getState, columnsWidth, columns, rowSpan, verticalBrain } = params;
|
|
@@ -7390,7 +7457,7 @@ function useRenderPinnedRow(params) {
|
|
|
7390
7457
|
rowWidth: columnsWidth,
|
|
7391
7458
|
columns
|
|
7392
7459
|
}, rowParams);
|
|
7393
|
-
return /* @__PURE__ */
|
|
7460
|
+
return /* @__PURE__ */ createElement29(TableRowUnvirtualized, __spreadValues({}, rowProps));
|
|
7394
7461
|
}, [columnsWidth, columns, verticalBrain, dataArray]);
|
|
7395
7462
|
return renderPinnedRow;
|
|
7396
7463
|
}
|
|
@@ -7436,7 +7503,7 @@ function usePinnedRenderingForSide(side, params) {
|
|
|
7436
7503
|
columns,
|
|
7437
7504
|
columnsWidth
|
|
7438
7505
|
});
|
|
7439
|
-
const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */
|
|
7506
|
+
const pinnedList = columns.length && rowHeight !== 0 ? /* @__PURE__ */ createElement29(PinnedRowsContainer, {
|
|
7440
7507
|
pinning: side,
|
|
7441
7508
|
pinnedScrollListener,
|
|
7442
7509
|
hasOverflow,
|
|
@@ -7449,7 +7516,7 @@ function usePinnedRenderingForSide(side, params) {
|
|
|
7449
7516
|
brain: verticalVirtualBrain,
|
|
7450
7517
|
renderRow: renderRowPinned
|
|
7451
7518
|
}) : null;
|
|
7452
|
-
const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */
|
|
7519
|
+
const pinnedScrollbarPlaceholder = pinnedList && hasHorizontalScrollbar && !hasOverflow ? /* @__PURE__ */ createElement29(HorizontalScrollbarPlaceholder, {
|
|
7453
7520
|
style: side === "end" ? {
|
|
7454
7521
|
width: columnsWidth,
|
|
7455
7522
|
right: hasVerticalScrollbar ? getScrollbarWidth() : 0
|
|
@@ -7677,7 +7744,7 @@ function useListRendering(param) {
|
|
|
7677
7744
|
|
|
7678
7745
|
// src/components/InfiniteTable/components/InfiniteTableLicenseFooter/index.tsx
|
|
7679
7746
|
import {
|
|
7680
|
-
createElement as
|
|
7747
|
+
createElement as createElement30,
|
|
7681
7748
|
forwardRef as forwardRef3,
|
|
7682
7749
|
useCallback as useCallback17,
|
|
7683
7750
|
useRef as useRef18
|
|
@@ -7745,12 +7812,12 @@ var InfiniteTableLicenseFooter = forwardRef3(function InfiniteTableLicenseFooter
|
|
|
7745
7812
|
clearInterval(intervalId);
|
|
7746
7813
|
};
|
|
7747
7814
|
}, []);
|
|
7748
|
-
return /* @__PURE__ */
|
|
7815
|
+
return /* @__PURE__ */ createElement30("div", __spreadProps(__spreadValues({
|
|
7749
7816
|
ref: domCallback
|
|
7750
7817
|
}, props), {
|
|
7751
7818
|
className: join(`${rootClassName12}-Footer`, FooterCls, props.className),
|
|
7752
7819
|
style: defaultStyle2
|
|
7753
|
-
}), "Powered by", " ", /* @__PURE__ */
|
|
7820
|
+
}), "Powered by", " ", /* @__PURE__ */ createElement30("a", {
|
|
7754
7821
|
href: "https://infinite-table.com",
|
|
7755
7822
|
rel: "noopener noreferrer",
|
|
7756
7823
|
role: "link",
|
|
@@ -7920,7 +7987,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
7920
7987
|
const valid = useMemo12(() => {
|
|
7921
7988
|
let valid2 = isValidLicense(licenseKey, {
|
|
7922
7989
|
publishedAt: 1624970570587,
|
|
7923
|
-
version: "0.2.
|
|
7990
|
+
version: "0.2.15"
|
|
7924
7991
|
});
|
|
7925
7992
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
7926
7993
|
return true;
|
|
@@ -7932,7 +7999,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
7932
7999
|
|
|
7933
8000
|
// src/components/CSSVariableWatch.tsx
|
|
7934
8001
|
import {
|
|
7935
|
-
createElement as
|
|
8002
|
+
createElement as createElement31,
|
|
7936
8003
|
useCallback as useCallback18,
|
|
7937
8004
|
useLayoutEffect as useLayoutEffect4
|
|
7938
8005
|
} from "react";
|
|
@@ -7973,11 +8040,11 @@ var CSSVariableWatch = (props) => {
|
|
|
7973
8040
|
useCSSVariableWatch(__spreadProps(__spreadValues({}, props), {
|
|
7974
8041
|
ref: domRef
|
|
7975
8042
|
}));
|
|
7976
|
-
return /* @__PURE__ */
|
|
8043
|
+
return /* @__PURE__ */ createElement31("div", {
|
|
7977
8044
|
"data-name": "css-variable-watcher",
|
|
7978
8045
|
"data-var": props.varName,
|
|
7979
8046
|
style: WRAPPER_STYLE
|
|
7980
|
-
}, /* @__PURE__ */
|
|
8047
|
+
}, /* @__PURE__ */ createElement31("div", {
|
|
7981
8048
|
ref: domRef,
|
|
7982
8049
|
style: {
|
|
7983
8050
|
height: props.varName.startsWith("var(") ? props.varName : `var(${props.varName})`
|
|
@@ -8071,7 +8138,7 @@ function useDOMProps(initialDOMProps) {
|
|
|
8071
8138
|
|
|
8072
8139
|
// src/components/InfiniteTable/components/LoadMask.tsx
|
|
8073
8140
|
import {
|
|
8074
|
-
createElement as
|
|
8141
|
+
createElement as createElement32,
|
|
8075
8142
|
memo as memo12
|
|
8076
8143
|
} from "react";
|
|
8077
8144
|
|
|
@@ -8085,11 +8152,11 @@ var { rootClassName: rootClassName11 } = internalProps;
|
|
|
8085
8152
|
var baseCls = `${rootClassName11}-LoadMask`;
|
|
8086
8153
|
function LoadMaskFn(props) {
|
|
8087
8154
|
const { visible, children = "Loading" } = props;
|
|
8088
|
-
return /* @__PURE__ */
|
|
8155
|
+
return /* @__PURE__ */ createElement32("div", {
|
|
8089
8156
|
className: `${LoadMaskCls[visible ? "visible" : "hidden"]} ${baseCls}`
|
|
8090
|
-
}, /* @__PURE__ */
|
|
8157
|
+
}, /* @__PURE__ */ createElement32("div", {
|
|
8091
8158
|
className: `${LoadMaskOverlayCls} ${baseCls}-Overlay`
|
|
8092
|
-
}), /* @__PURE__ */
|
|
8159
|
+
}), /* @__PURE__ */ createElement32("div", {
|
|
8093
8160
|
className: `${LoadMaskTextCls} ${baseCls}-Text`
|
|
8094
8161
|
}, children));
|
|
8095
8162
|
}
|
|
@@ -8318,31 +8385,31 @@ var InfiniteTableComponent = memo13(function InfiniteTableComponent2() {
|
|
|
8318
8385
|
dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
|
|
8319
8386
|
}, [scrollStopDelay]);
|
|
8320
8387
|
useAutoSizeColumns();
|
|
8321
|
-
return /* @__PURE__ */
|
|
8388
|
+
return /* @__PURE__ */ createElement33("div", __spreadValues({
|
|
8322
8389
|
ref: domRef
|
|
8323
|
-
}, domProps), header ? /* @__PURE__ */
|
|
8390
|
+
}, domProps), header ? /* @__PURE__ */ createElement33(TableHeaderWrapper, {
|
|
8324
8391
|
brain: horizontalVirtualBrain,
|
|
8325
8392
|
repaintId,
|
|
8326
8393
|
scrollbars
|
|
8327
|
-
}) : null, /* @__PURE__ */
|
|
8394
|
+
}) : null, /* @__PURE__ */ createElement33(InfiniteTableBody, null, /* @__PURE__ */ createElement33(VirtualScrollContainer, {
|
|
8328
8395
|
ref: scrollerDOMRef,
|
|
8329
8396
|
onContainerScroll: applyScrollVertical,
|
|
8330
8397
|
scrollable: ONLY_VERTICAL_SCROLLBAR
|
|
8331
|
-
}, /* @__PURE__ */
|
|
8398
|
+
}, /* @__PURE__ */ createElement33("div", {
|
|
8332
8399
|
className: display.flex
|
|
8333
|
-
}, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */
|
|
8400
|
+
}, pinnedStartList, centerList, pinnedEndList), /* @__PURE__ */ createElement33(SpacePlaceholder, {
|
|
8334
8401
|
count: dataArray.length,
|
|
8335
8402
|
width: 0,
|
|
8336
8403
|
height: reservedContentHeight
|
|
8337
|
-
})), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */
|
|
8404
|
+
})), pinnedStartScrollbarPlaceholder, pinnedEndScrollbarPlaceholder, /* @__PURE__ */ createElement33(LoadMaskCmp, {
|
|
8338
8405
|
visible: loading
|
|
8339
|
-
}, loadingText)), licenseValid ? null : /* @__PURE__ */
|
|
8406
|
+
}, loadingText)), licenseValid ? null : /* @__PURE__ */ createElement33(InfiniteTableLicenseFooter, null), /* @__PURE__ */ createElement33("div", {
|
|
8340
8407
|
ref: portalDOMRef,
|
|
8341
8408
|
className: join(`${rootClassName}Portal`, zIndex[1e3], position.absolute, top[0], left[0])
|
|
8342
|
-
}), rowHeightCSSVar ? /* @__PURE__ */
|
|
8409
|
+
}), rowHeightCSSVar ? /* @__PURE__ */ createElement33(CSSVariableWatch, {
|
|
8343
8410
|
varName: rowHeightCSSVar,
|
|
8344
8411
|
onChange: onRowHeightCSSVarChange
|
|
8345
|
-
}) : null, headerHeightCSSVar ? /* @__PURE__ */
|
|
8412
|
+
}) : null, headerHeightCSSVar ? /* @__PURE__ */ createElement33(CSSVariableWatch, {
|
|
8346
8413
|
varName: headerHeightCSSVar,
|
|
8347
8414
|
onChange: onHeaderHeightCSSVarChange
|
|
8348
8415
|
}) : null);
|
|
@@ -8390,13 +8457,13 @@ function InfiniteTableContextProvider() {
|
|
|
8390
8457
|
}
|
|
8391
8458
|
}, [scrollTopKey, scrollerDOMRef]);
|
|
8392
8459
|
const TableContext2 = getInfiniteTableContext();
|
|
8393
|
-
return /* @__PURE__ */
|
|
8460
|
+
return /* @__PURE__ */ createElement33(TableContext2.Provider, {
|
|
8394
8461
|
value: contextValue
|
|
8395
|
-
}, /* @__PURE__ */
|
|
8462
|
+
}, /* @__PURE__ */ createElement33(InfiniteTableComponent, null));
|
|
8396
8463
|
}
|
|
8397
8464
|
function InfiniteTable(props) {
|
|
8398
|
-
const table = /* @__PURE__ */
|
|
8399
|
-
return /* @__PURE__ */
|
|
8465
|
+
const table = /* @__PURE__ */ createElement33(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ createElement33(InfiniteTableContextProvider, null));
|
|
8466
|
+
return /* @__PURE__ */ createElement33(StrictMode, null, table);
|
|
8400
8467
|
}
|
|
8401
8468
|
InfiniteTable.defaultProps = {
|
|
8402
8469
|
rowHeight: 40,
|
|
@@ -8417,5 +8484,7 @@ export {
|
|
|
8417
8484
|
multisort,
|
|
8418
8485
|
useComponentState,
|
|
8419
8486
|
useDataSource,
|
|
8420
|
-
useEffectWithChanges
|
|
8487
|
+
useEffectWithChanges,
|
|
8488
|
+
useInfiniteColumnCell,
|
|
8489
|
+
useInfiniteHeaderCell
|
|
8421
8490
|
};
|