@infinite-table/infinite-react 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/index.css +896 -0
- package/index.d.ts +2264 -0
- package/index.esm.css +896 -0
- package/index.esm.js +15404 -0
- package/index.js +15240 -0
- package/package.json +2 -94
- package/.vscode/settings.json +0 -3
- package/API.md +0 -0
- package/build/buildPackageJson.js +0 -43
- package/build/scripts/test.js +0 -37
- package/bundler.config.js +0 -25
- package/globals.d.ts +0 -7
- package/rollup.config.js +0 -15
- package/run-build-deepmap.js +0 -47
- package/run-build.js +0 -45
- package/run-dts-concat.js +0 -21
- package/src/components/CSSVariableWatch.tsx +0 -82
- package/src/components/DataSource/BooleanCollectionState.ts +0 -214
- package/src/components/DataSource/BooleanDeepCollectionState.ts +0 -208
- package/src/components/DataSource/DataSourceContext.ts +0 -20
- package/src/components/DataSource/GroupRowsState.ts +0 -74
- package/src/components/DataSource/Indexer.ts +0 -27
- package/src/components/DataSource/RowSelectionState.ts +0 -763
- package/src/components/DataSource/defaultFilterTypes.ts +0 -64
- package/src/components/DataSource/index.tsx +0 -108
- package/src/components/DataSource/privateHooks/getChangeDetect.ts +0 -7
- package/src/components/DataSource/privateHooks/useLoadData.ts +0 -783
- package/src/components/DataSource/publicHooks/useDataSource.ts +0 -19
- package/src/components/DataSource/publicHooks/useDataSourceActions.ts +0 -14
- package/src/components/DataSource/state/getInitialState.ts +0 -494
- package/src/components/DataSource/state/normalizeSortInfo.ts +0 -35
- package/src/components/DataSource/state/reducer.ts +0 -466
- package/src/components/DataSource/state/rowInfoStatus.ts +0 -27
- package/src/components/DataSource/types.ts +0 -548
- package/src/components/HeadlessTable/HeadlessTableWithPinnedContainers.tsx +0 -142
- package/src/components/HeadlessTable/MappedCells.ts +0 -251
- package/src/components/HeadlessTable/RawTable.tsx +0 -98
- package/src/components/HeadlessTable/ReactHeadlessTableRenderer.tsx +0 -1516
- package/src/components/HeadlessTable/index.tsx +0 -234
- package/src/components/InfiniteTable/InfiniteCls.css.ts +0 -164
- package/src/components/InfiniteTable/InfiniteTableContext.ts +0 -16
- package/src/components/InfiniteTable/api/getImperativeApi.ts +0 -391
- package/src/components/InfiniteTable/api/getSelectionApi.ts +0 -364
- package/src/components/InfiniteTable/api/type.ts +0 -11
- package/src/components/InfiniteTable/components/ActiveCellIndicator.css.ts +0 -51
- package/src/components/InfiniteTable/components/ActiveCellIndicator.tsx +0 -116
- package/src/components/InfiniteTable/components/ActiveRowIndicator.css.ts +0 -56
- package/src/components/InfiniteTable/components/ActiveRowIndicator.tsx +0 -94
- package/src/components/InfiniteTable/components/CheckBox.css.ts +0 -13
- package/src/components/InfiniteTable/components/CheckBox.tsx +0 -96
- package/src/components/InfiniteTable/components/FilterEditors.tsx +0 -52
- package/src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx +0 -27
- package/src/components/InfiniteTable/components/InfiniteTableBody/index.tsx +0 -1
- package/src/components/InfiniteTable/components/InfiniteTableFooter/InfiniteTableFooter.tsx +0 -31
- package/src/components/InfiniteTable/components/InfiniteTableFooter/index.tsx +0 -1
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableColumnHeaderFilter.tsx +0 -102
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader.tsx +0 -163
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx +0 -574
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx +0 -79
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderTypes.tsx +0 -25
- package/src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper.tsx +0 -185
- package/src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/GroupResizeHandle.tsx +0 -159
- package/src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/ResizeHandle.css.ts +0 -124
- package/src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/columnResizer.ts +0 -166
- package/src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/index.tsx +0 -146
- package/src/components/InfiniteTable/components/InfiniteTableHeader/buildColumnAndGroupTree.ts +0 -240
- package/src/components/InfiniteTable/components/InfiniteTableHeader/header.css.ts +0 -358
- package/src/components/InfiniteTable/components/InfiniteTableHeader/index.tsx +0 -1
- package/src/components/InfiniteTable/components/InfiniteTableHeader/useColumnGroupResizeHandle.tsx +0 -114
- package/src/components/InfiniteTable/components/InfiniteTableHeader/useColumnResizeHandle.tsx +0 -146
- package/src/components/InfiniteTable/components/InfiniteTableLicenseFooter/footer.css.ts +0 -7
- package/src/components/InfiniteTable/components/InfiniteTableLicenseFooter/index.tsx +0 -110
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell.tsx +0 -120
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCellTypes.ts +0 -74
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableColumnCell.tsx +0 -457
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow.tsx +0 -107
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowClassName.ts +0 -6
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowTypes.ts +0 -32
- package/src/components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowUnvirtualized.tsx +0 -75
- package/src/components/InfiniteTable/components/InfiniteTableRow/columnRendering.tsx +0 -263
- package/src/components/InfiniteTable/components/InfiniteTableRow/index.tsx +0 -1
- package/src/components/InfiniteTable/components/InfiniteTableRow/row.css.ts +0 -74
- package/src/components/InfiniteTable/components/InfiniteTableRow/useRowDOMProps.ts +0 -199
- package/src/components/InfiniteTable/components/LoadMask.css.ts +0 -34
- package/src/components/InfiniteTable/components/LoadMask.tsx +0 -27
- package/src/components/InfiniteTable/components/ScrollbarPlaceholder.tsx +0 -56
- package/src/components/InfiniteTable/components/cell.css.ts +0 -192
- package/src/components/InfiniteTable/components/icons/ArrowDown.tsx +0 -14
- package/src/components/InfiniteTable/components/icons/ArrowUp.tsx +0 -14
- package/src/components/InfiniteTable/components/icons/ExpanderIcon.css.ts +0 -31
- package/src/components/InfiniteTable/components/icons/ExpanderIcon.tsx +0 -63
- package/src/components/InfiniteTable/components/icons/Icon.tsx +0 -18
- package/src/components/InfiniteTable/components/icons/InfiniteTableIconClassName.ts +0 -1
- package/src/components/InfiniteTable/components/icons/LoadingIcon.css.ts +0 -8
- package/src/components/InfiniteTable/components/icons/LoadingIcon.tsx +0 -45
- package/src/components/InfiniteTable/components/icons/MenuIcon.tsx +0 -50
- package/src/components/InfiniteTable/components/icons/SortIcon.tsx +0 -113
- package/src/components/InfiniteTable/eventHandlers/eventHandlerTypes.ts +0 -57
- package/src/components/InfiniteTable/eventHandlers/index.ts +0 -95
- package/src/components/InfiniteTable/eventHandlers/keyboardNavigation.ts +0 -232
- package/src/components/InfiniteTable/eventHandlers/keyboardSelection.ts +0 -110
- package/src/components/InfiniteTable/eventHandlers/onCellClick.ts +0 -94
- package/src/components/InfiniteTable/eventHandlers/onKeyDown.ts +0 -25
- package/src/components/InfiniteTable/hooks/adjustColumnOrderForAllColumns.ts +0 -70
- package/src/components/InfiniteTable/hooks/reorderColumnsOnDrag.ts +0 -476
- package/src/components/InfiniteTable/hooks/useAutoSizeColumns.ts +0 -206
- package/src/components/InfiniteTable/hooks/useCellClassName.ts +0 -80
- package/src/components/InfiniteTable/hooks/useCellRendering.tsx +0 -217
- package/src/components/InfiniteTable/hooks/useColumnGroups.ts +0 -71
- package/src/components/InfiniteTable/hooks/useColumnMenu.ts +0 -72
- package/src/components/InfiniteTable/hooks/useColumnPointerEvents.ts +0 -258
- package/src/components/InfiniteTable/hooks/useColumnRowspan.ts +0 -43
- package/src/components/InfiniteTable/hooks/useColumnSizeFn.ts +0 -24
- package/src/components/InfiniteTable/hooks/useColumnsWhen.ts +0 -582
- package/src/components/InfiniteTable/hooks/useComputed.ts +0 -186
- package/src/components/InfiniteTable/hooks/useComputedVisibleColumns.ts +0 -219
- package/src/components/InfiniteTable/hooks/useDOMProps.ts +0 -306
- package/src/components/InfiniteTable/hooks/useEffectWithRaf.ts +0 -47
- package/src/components/InfiniteTable/hooks/useInfiniteTable.ts +0 -10
- package/src/components/InfiniteTable/hooks/useInfiniteTableState.ts +0 -11
- package/src/components/InfiniteTable/hooks/useInternalProps.ts +0 -8
- package/src/components/InfiniteTable/hooks/useLicense/LicenseDetails.ts +0 -13
- package/src/components/InfiniteTable/hooks/useLicense/crc32.ts +0 -56
- package/src/components/InfiniteTable/hooks/useLicense/decode.ts +0 -147
- package/src/components/InfiniteTable/hooks/useLicense/useLicense.ts +0 -39
- package/src/components/InfiniteTable/hooks/useRerenderOnKeyChange.ts +0 -21
- package/src/components/InfiniteTable/hooks/useRowHover.ts +0 -18
- package/src/components/InfiniteTable/hooks/useScrollToActiveCell.ts +0 -48
- package/src/components/InfiniteTable/hooks/useScrollToActiveRow.ts +0 -44
- package/src/components/InfiniteTable/hooks/useScrollbars.ts +0 -51
- package/src/components/InfiniteTable/hooks/useToggleGroupRow.ts +0 -56
- package/src/components/InfiniteTable/hooks/useUnpinnedRendering.tsx +0 -165
- package/src/components/InfiniteTable/hooks/useYourBrain.ts +0 -55
- package/src/components/InfiniteTable/index.tsx +0 -352
- package/src/components/InfiniteTable/internalProps.ts +0 -4
- package/src/components/InfiniteTable/state/computeColumnGroupsDepths.ts +0 -29
- package/src/components/InfiniteTable/state/getColumnVisibilityForHideEmptyGroupColumns.ts +0 -127
- package/src/components/InfiniteTable/state/getInitialState.ts +0 -375
- package/src/components/InfiniteTable/theme.css.ts +0 -556
- package/src/components/InfiniteTable/types/InfiniteTableAction.ts +0 -6
- package/src/components/InfiniteTable/types/InfiniteTableActionType.ts +0 -12
- package/src/components/InfiniteTable/types/InfiniteTableColumn.ts +0 -478
- package/src/components/InfiniteTable/types/InfiniteTableComputedValues.ts +0 -43
- package/src/components/InfiniteTable/types/InfiniteTableContextValue.ts +0 -12
- package/src/components/InfiniteTable/types/InfiniteTableInternalProps.ts +0 -3
- package/src/components/InfiniteTable/types/InfiniteTableProps.ts +0 -511
- package/src/components/InfiniteTable/types/InfiniteTableState.ts +0 -195
- package/src/components/InfiniteTable/types/Utility.ts +0 -35
- package/src/components/InfiniteTable/types/index.ts +0 -96
- package/src/components/InfiniteTable/utilities.css.ts +0 -179
- package/src/components/InfiniteTable/utils/MultiRowSelector.ts +0 -111
- package/src/components/InfiniteTable/utils/RenderHookComponentForInfinite.tsx +0 -52
- package/src/components/InfiniteTable/utils/adjustColumnOrderForPinning.ts +0 -33
- package/src/components/InfiniteTable/utils/assignFiltered.ts +0 -29
- package/src/components/InfiniteTable/utils/defaultGetColumContextMenuItems.tsx +0 -108
- package/src/components/InfiniteTable/utils/getColumnComputedType.ts +0 -33
- package/src/components/InfiniteTable/utils/getColumnForGroupBy.tsx +0 -313
- package/src/components/InfiniteTable/utils/getComputedVisibleColumns.ts +0 -773
- package/src/components/InfiniteTable/utils/getContextMenuForColumn.tsx +0 -72
- package/src/components/InfiniteTable/utils/infiniteDOMUtils.ts +0 -189
- package/src/components/InfiniteTable/utils/mapToObject.ts +0 -20
- package/src/components/InfiniteTable/utils/moveXatY.ts +0 -25
- package/src/components/InfiniteTable/utils/objectValuesExcept.ts +0 -9
- package/src/components/InfiniteTable/utils/progressiveSpeedScroller.ts +0 -158
- package/src/components/InfiniteTable/utils/rafFn.ts +0 -13
- package/src/components/InfiniteTable/utils/toCSSVarName.ts +0 -1
- package/src/components/InfiniteTable/utils/toMap.ts +0 -24
- package/src/components/Menu/Menu.tsx +0 -750
- package/src/components/Menu/MenuCls.css.ts +0 -139
- package/src/components/Menu/MenuContext.ts +0 -10
- package/src/components/Menu/MenuContextValue.ts +0 -15
- package/src/components/Menu/MenuProps.ts +0 -98
- package/src/components/Menu/MenuState.ts +0 -56
- package/src/components/Menu/MenuTriangleContext.ts +0 -352
- package/src/components/Menu/childrenToRuntimeItems.tsx +0 -103
- package/src/components/Menu/getMenuState.tsx +0 -119
- package/src/components/Menu/index.tsx +0 -88
- package/src/components/Menu/propToIdentifyMenu.ts +0 -1
- package/src/components/RawList/AvoidReactDiff.tsx +0 -48
- package/src/components/RawList/MappedItems.ts +0 -143
- package/src/components/RawList/ReactVirtualRenderer.tsx +0 -307
- package/src/components/RawList/index.tsx +0 -42
- package/src/components/RawList/types.ts +0 -23
- package/src/components/RawList/useVirtualRenderer.ts +0 -36
- package/src/components/RenderHookComponent.tsx +0 -10
- package/src/components/ResizeObserver/index.tsx +0 -170
- package/src/components/VirtualBrain/MatrixBrain.ts +0 -1621
- package/src/components/VirtualBrain/ScrollListener.ts +0 -39
- package/src/components/VirtualBrain/index.ts +0 -664
- package/src/components/VirtualList/ColumnListWithExternalScrolling.tsx +0 -78
- package/src/components/VirtualList/InfiniteListRootClassName.ts +0 -1
- package/src/components/VirtualList/RowListWithExternalScrolling.tsx +0 -120
- package/src/components/VirtualList/SpacePlaceholder.tsx +0 -32
- package/src/components/VirtualList/VirtualList.css.ts +0 -29
- package/src/components/VirtualList/VirtualList.tsx +0 -141
- package/src/components/VirtualList/VirtualRowList.tsx +0 -34
- package/src/components/VirtualList/types.ts +0 -56
- package/src/components/VirtualList/useCorrectHeightForRowElements.ts +0 -14
- package/src/components/VirtualScrollContainer/VirtualScrollContainer.css.ts +0 -51
- package/src/components/VirtualScrollContainer/getScrollableClassName.ts +0 -30
- package/src/components/VirtualScrollContainer/index.tsx +0 -63
- package/src/components/flexbox/index.ts +0 -562
- package/src/components/hooks/useComponentState/index.tsx +0 -562
- package/src/components/hooks/useComponentState/types.ts +0 -32
- package/src/components/hooks/useEffectOnceWithProperUnmount.ts +0 -33
- package/src/components/hooks/useEffectWithChanges.ts +0 -56
- package/src/components/hooks/useImmutableRef.ts +0 -7
- package/src/components/hooks/useInterceptedMap.ts +0 -71
- package/src/components/hooks/useLatest.tsx +0 -8
- package/src/components/hooks/useLazyLatest.ts +0 -23
- package/src/components/hooks/useMemoShallowObjectMerge.ts +0 -16
- package/src/components/hooks/useMounted.ts +0 -18
- package/src/components/hooks/useOnMount.ts +0 -21
- package/src/components/hooks/useOnScroll.ts +0 -34
- package/src/components/hooks/useOnce.ts +0 -10
- package/src/components/hooks/useOverlay/index.tsx +0 -418
- package/src/components/hooks/usePrevious.ts +0 -8
- package/src/components/hooks/usePropertyOld.ts +0 -168
- package/src/components/hooks/useRerender.ts +0 -12
- package/src/components/hooks/xuseProperty.ts +0 -165
- package/src/components/types/CellPosition.ts +0 -4
- package/src/components/types/NonUndefined.ts +0 -1
- package/src/components/types/RemoveObject.ts +0 -22
- package/src/components/types/Renderable.ts +0 -3
- package/src/components/types/ScrollPosition.ts +0 -7
- package/src/components/types/Setter.ts +0 -2
- package/src/components/types/Size.ts +0 -6
- package/src/components/types/SubscriptionCallback.ts +0 -10
- package/src/components/types/VoidFn.ts +0 -1
- package/src/components/utils/buildSubscriptionCallback.tsx +0 -60
- package/src/components/utils/clamp.ts +0 -3
- package/src/components/utils/debounce.ts +0 -16
- package/src/components/utils/decamelize.ts +0 -11
- package/src/components/utils/discardCallsWithEqualArg.ts +0 -42
- package/src/components/utils/getRenderIndexes.ts +0 -33
- package/src/components/utils/getScrollbarWidth.ts +0 -31
- package/src/components/utils/getVirtualRenderCount.ts +0 -21
- package/src/components/utils/isControlled.ts +0 -12
- package/src/components/utils/isControlledValue.ts +0 -5
- package/src/index.tsx +0 -34
- package/src/test.tsx +0 -18
- package/src/utils/DeepMap/index.ts +0 -588
- package/src/utils/DeepMap/once.ts +0 -16
- package/src/utils/DeepMap/sortAscending.ts +0 -1
- package/src/utils/DeepMap/tsconfig.deepmap.json +0 -17
- package/src/utils/DeepMap/xpackage.json +0 -26
- package/src/utils/debug.ts +0 -40
- package/src/utils/deepClone.ts +0 -38
- package/src/utils/getGlobal.ts +0 -3
- package/src/utils/groupAndPivot/defaultToKey.ts +0 -3
- package/src/utils/groupAndPivot/getGroupKeysForDataItem.ts +0 -19
- package/src/utils/groupAndPivot/getPivotColumnsAndColumnGroups.ts +0 -361
- package/src/utils/groupAndPivot/index.ts +0 -1229
- package/src/utils/groupAndPivot/types.ts +0 -10
- package/src/utils/join.ts +0 -4
- package/src/utils/mathIntersection.ts +0 -21
- package/src/utils/minified.d.ts +0 -2
- package/src/utils/minified.js +0 -6
- package/src/utils/multisort/index.ts +0 -151
- package/src/utils/multisort/sortTypes.ts +0 -25
- package/src/utils/notes-status.md +0 -92
- package/src/utils/pageGeometry/ConvexPoly.ts +0 -34
- package/src/utils/pageGeometry/Point.ts +0 -51
- package/src/utils/pageGeometry/PolyWithPoints.ts +0 -52
- package/src/utils/pageGeometry/Rectangle.ts +0 -98
- package/src/utils/pageGeometry/Triangle.ts +0 -16
- package/src/utils/pageGeometry/alignment/index.ts +0 -221
- package/src/utils/pageGeometry/polyContainsPoint.ts +0 -182
- package/src/utils/pageGeometry/types.ts +0 -3
- package/src/utils/proxyFnCall.ts +0 -46
- package/src/utils/raf.ts +0 -13
- package/src/utils/selectParent.ts +0 -18
- package/src/utils/shallowEqualObjects.ts +0 -49
- package/src/utils/stripVar.ts +0 -3
- package/src/utils/toUpperFirst.ts +0 -5
- package/todo.md +0 -2
- package/tsconfig.build.json +0 -8
- package/tsconfig.dev.json +0 -7
- package/tsconfig.json +0 -30
- package/tsconfig.typebundler.json +0 -13
- package/typedoc.json +0 -4
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, HTMLProps } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
AggregationReducer,
|
|
5
|
-
InfiniteTableRowInfo,
|
|
6
|
-
InfiniteTableRowInfoDataDiscriminator,
|
|
7
|
-
InfiniteTable_HasGrouping_RowInfoGroup,
|
|
8
|
-
PivotBy,
|
|
9
|
-
} from '../../../utils/groupAndPivot';
|
|
10
|
-
import type {
|
|
11
|
-
ColumnTypeWithInherit,
|
|
12
|
-
DataSourceFilterValueItem,
|
|
13
|
-
DataSourcePivotBy,
|
|
14
|
-
DataSourcePropSelectionMode,
|
|
15
|
-
DataSourceSingleSortInfo,
|
|
16
|
-
DataSourceState,
|
|
17
|
-
} from '../../DataSource/types';
|
|
18
|
-
import type { Renderable } from '../../types/Renderable';
|
|
19
|
-
import { InfiniteTableCellProps } from '../components/InfiniteTableRow/InfiniteTableCellTypes';
|
|
20
|
-
|
|
21
|
-
import {
|
|
22
|
-
InfiniteTableColumnPinnedValues,
|
|
23
|
-
InfiniteTableColumnType,
|
|
24
|
-
} from './InfiniteTableProps';
|
|
25
|
-
import type {
|
|
26
|
-
DiscriminatedUnion,
|
|
27
|
-
KeyOfNoSymbol,
|
|
28
|
-
RequireAtLeastOne,
|
|
29
|
-
} from './Utility';
|
|
30
|
-
|
|
31
|
-
import type { InfiniteTableApi, InfiniteTableColumnGroup } from '.';
|
|
32
|
-
|
|
33
|
-
export type { DiscriminatedUnion, RequireAtLeastOne };
|
|
34
|
-
|
|
35
|
-
export type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
|
|
36
|
-
export type InfiniteTableSelectRowFn = (id: any) => void;
|
|
37
|
-
export type InfiniteTableIsRowSelectedFn = (id: any) => boolean;
|
|
38
|
-
export type InfiniteTableIsGroupRowSelectedFn = (groupKeys: any[]) => boolean;
|
|
39
|
-
|
|
40
|
-
export type InfiniteTableColumnHeaderParam<
|
|
41
|
-
DATA_TYPE,
|
|
42
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
43
|
-
> = {
|
|
44
|
-
domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
|
|
45
|
-
dragging: boolean;
|
|
46
|
-
column: COL_TYPE;
|
|
47
|
-
columnsMap: Map<string, COL_TYPE>;
|
|
48
|
-
columnSortInfo: DataSourceSingleSortInfo<DATA_TYPE> | null;
|
|
49
|
-
columnFilterValue: DataSourceFilterValueItem<DATA_TYPE> | null;
|
|
50
|
-
selectionMode: DataSourcePropSelectionMode;
|
|
51
|
-
allRowsSelected: boolean;
|
|
52
|
-
someRowsSelected: boolean;
|
|
53
|
-
api: InfiniteTableApi<DATA_TYPE>;
|
|
54
|
-
|
|
55
|
-
renderBag: {
|
|
56
|
-
header: string | number | Renderable;
|
|
57
|
-
sortIcon?: Renderable;
|
|
58
|
-
menuIcon?: Renderable;
|
|
59
|
-
selectionCheckBox?: Renderable;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export type InfiniteTableColumnRenderBag = {
|
|
64
|
-
value: string | number | Renderable;
|
|
65
|
-
groupIcon?: Renderable;
|
|
66
|
-
selectionCheckBox?: Renderable;
|
|
67
|
-
};
|
|
68
|
-
export type InfiniteTableColumnRenderParamBase<
|
|
69
|
-
DATA_TYPE,
|
|
70
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
71
|
-
> = {
|
|
72
|
-
domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
|
|
73
|
-
|
|
74
|
-
// TODO type this to be the type of DATA_TYPE[column.field] if possible
|
|
75
|
-
value: string | number | Renderable;
|
|
76
|
-
|
|
77
|
-
renderBag: InfiniteTableColumnRenderBag;
|
|
78
|
-
rowIndex: number;
|
|
79
|
-
rowActive: boolean;
|
|
80
|
-
|
|
81
|
-
api: InfiniteTableApi<DATA_TYPE>;
|
|
82
|
-
|
|
83
|
-
column: COL_TYPE;
|
|
84
|
-
columnsMap: Map<string, COL_TYPE>;
|
|
85
|
-
fieldsToColumn: Map<keyof DATA_TYPE, COL_TYPE>;
|
|
86
|
-
groupByColumn?: InfiniteTableComputedColumn<DATA_TYPE>;
|
|
87
|
-
toggleCurrentGroupRow: () => void;
|
|
88
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
89
|
-
toggleCurrentGroupRowSelection: () => void;
|
|
90
|
-
toggleCurrentRowSelection: () => void;
|
|
91
|
-
|
|
92
|
-
selectCurrentRow: () => void;
|
|
93
|
-
selectRow: InfiniteTableSelectRowFn;
|
|
94
|
-
deselectRow: InfiniteTableSelectRowFn;
|
|
95
|
-
deselectCurrentRow: () => void;
|
|
96
|
-
|
|
97
|
-
toggleRowSelection: InfiniteTableSelectRowFn;
|
|
98
|
-
toggleGroupRowSelection: InfiniteTableToggleGroupRowFn;
|
|
99
|
-
selectionMode: DataSourcePropSelectionMode | undefined;
|
|
100
|
-
rootGroupBy: DataSourceState<DATA_TYPE>['groupBy'];
|
|
101
|
-
pivotBy?: DataSourceState<DATA_TYPE>['pivotBy'];
|
|
102
|
-
};
|
|
103
|
-
export type InfiniteTableColumnRenderParam<
|
|
104
|
-
DATA_TYPE,
|
|
105
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
106
|
-
> = InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE> &
|
|
107
|
-
InfiniteTableRowInfoDataDiscriminator<DATA_TYPE>;
|
|
108
|
-
|
|
109
|
-
export type InfiniteTableGroupColumnRenderParams<
|
|
110
|
-
DATA_TYPE,
|
|
111
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
112
|
-
> = InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE> & {
|
|
113
|
-
rowInfo: InfiniteTable_HasGrouping_RowInfoGroup<DATA_TYPE>;
|
|
114
|
-
isGroupRow: true;
|
|
115
|
-
data: Partial<DATA_TYPE> | null;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export type InfiniteTableColumnCellContextType<DATA_TYPE> =
|
|
119
|
-
InfiniteTableColumnRenderParam<DATA_TYPE> & {};
|
|
120
|
-
export type InfiniteTableHeaderCellContextType<DATA_TYPE> =
|
|
121
|
-
InfiniteTableColumnHeaderParam<DATA_TYPE> & {};
|
|
122
|
-
|
|
123
|
-
export type InfiniteTableGroupColumnRenderIconParam<
|
|
124
|
-
DATA_TYPE,
|
|
125
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
126
|
-
> = InfiniteTableGroupColumnRenderParams<DATA_TYPE, COL_TYPE> & {
|
|
127
|
-
collapsed: boolean;
|
|
128
|
-
groupIcon: Renderable;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export type InfiniteTableColumnRenderValueParam<
|
|
132
|
-
DATA_TYPE,
|
|
133
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
134
|
-
> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
135
|
-
|
|
136
|
-
export type InfiniteTableColumnRowspanParam<
|
|
137
|
-
DATA_TYPE,
|
|
138
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
139
|
-
> = {
|
|
140
|
-
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
141
|
-
data: DATA_TYPE | Partial<DATA_TYPE> | null;
|
|
142
|
-
dataArray: InfiniteTableRowInfo<DATA_TYPE>[];
|
|
143
|
-
rowIndex: number;
|
|
144
|
-
column: COL_TYPE;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export type InfiniteTableColumnColspanParam<
|
|
148
|
-
DATA_TYPE,
|
|
149
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
150
|
-
> = {
|
|
151
|
-
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
152
|
-
data: DATA_TYPE | Partial<DATA_TYPE> | null;
|
|
153
|
-
dataArray: InfiniteTableRowInfo<DATA_TYPE>[];
|
|
154
|
-
rowIndex: number;
|
|
155
|
-
column: COL_TYPE;
|
|
156
|
-
computedVisibleIndex: number;
|
|
157
|
-
computedVisibleColumns: COL_TYPE[];
|
|
158
|
-
computedPinnedStartColumns: COL_TYPE[];
|
|
159
|
-
computedPinnedEndColumns: COL_TYPE[];
|
|
160
|
-
computedUnpinnedColumns: COL_TYPE[];
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type InfiniteTableColumnRenderFunctionForGroupRows<
|
|
164
|
-
DATA_TYPE,
|
|
165
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
166
|
-
> = (
|
|
167
|
-
renderParams: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE> & {
|
|
168
|
-
isGroupRow: true;
|
|
169
|
-
},
|
|
170
|
-
) => Renderable | null;
|
|
171
|
-
|
|
172
|
-
export type InfiniteTableColumnRenderFunctionForNormalRows<
|
|
173
|
-
DATA_TYPE,
|
|
174
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
175
|
-
> = (
|
|
176
|
-
renderParams: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE> & {
|
|
177
|
-
isGroupRow: false;
|
|
178
|
-
},
|
|
179
|
-
) => Renderable | null;
|
|
180
|
-
export type InfiniteTableColumnRenderFunction<
|
|
181
|
-
DATA_TYPE,
|
|
182
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
183
|
-
> = (
|
|
184
|
-
renderParams: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>,
|
|
185
|
-
) => Renderable | null;
|
|
186
|
-
|
|
187
|
-
export type InfiniteTableGroupColumnRenderFunction<
|
|
188
|
-
DATA_TYPE,
|
|
189
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
190
|
-
> = (
|
|
191
|
-
renderParams: InfiniteTableGroupColumnRenderParams<DATA_TYPE, COL_TYPE>,
|
|
192
|
-
) => Renderable | null;
|
|
193
|
-
|
|
194
|
-
export type InfiniteTableColumnRenderValueFunction<
|
|
195
|
-
DATA_TYPE,
|
|
196
|
-
COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>,
|
|
197
|
-
> = InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE>;
|
|
198
|
-
|
|
199
|
-
export type InfiniteTableColumnHeaderRenderFunction<T> = (
|
|
200
|
-
headerParams: InfiniteTableColumnHeaderParam<T>,
|
|
201
|
-
) => Renderable;
|
|
202
|
-
|
|
203
|
-
export type InfiniteTableColumnWithField<T> = {
|
|
204
|
-
field: keyof T;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
export type InfiniteTableColumnWithRender<T> = {
|
|
208
|
-
render: InfiniteTableColumnRenderFunction<T>;
|
|
209
|
-
};
|
|
210
|
-
export type InfiniteTableColumnWithRenderValue<T> = {
|
|
211
|
-
renderValue: InfiniteTableColumnRenderFunction<T>;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export type InfiniteTableColumnAlign = 'start' | 'center' | 'end';
|
|
215
|
-
export type InfiniteTableColumnVerticalAlign = 'start' | 'center' | 'end';
|
|
216
|
-
|
|
217
|
-
export type InfiniteTableColumnHeader<T> =
|
|
218
|
-
| Renderable
|
|
219
|
-
| InfiniteTableColumnHeaderRenderFunction<T>;
|
|
220
|
-
|
|
221
|
-
export type InfiniteTableDataTypeNames = 'string' | 'number' | 'date' | string;
|
|
222
|
-
|
|
223
|
-
export type InfiniteTableColumnTypeNames =
|
|
224
|
-
| 'string'
|
|
225
|
-
| 'number'
|
|
226
|
-
| 'date'
|
|
227
|
-
| string;
|
|
228
|
-
|
|
229
|
-
// field|valueGetter => THE_VALUE
|
|
230
|
-
// |
|
|
231
|
-
// \/
|
|
232
|
-
export type InfiniteTableColumnWithRenderDescriptor<T> = RequireAtLeastOne<
|
|
233
|
-
{
|
|
234
|
-
/**
|
|
235
|
-
* Determines the field property of the column.
|
|
236
|
-
*/
|
|
237
|
-
field?: keyof T;
|
|
238
|
-
render?: InfiniteTableColumnRenderFunction<T>;
|
|
239
|
-
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
240
|
-
valueGetter?: InfiniteTableColumnValueGetter<T>;
|
|
241
|
-
valueFormatter?: InfiniteTableColumnValueFormatter<T>;
|
|
242
|
-
},
|
|
243
|
-
'render' | 'renderValue' | 'field' | 'valueGetter' | 'valueFormatter'
|
|
244
|
-
>;
|
|
245
|
-
|
|
246
|
-
export type InfiniteTableColumnStyleFnParams<T> = {
|
|
247
|
-
value: Renderable;
|
|
248
|
-
column: InfiniteTableComputedColumn<T>;
|
|
249
|
-
} & InfiniteTableRowInfoDataDiscriminator<T>;
|
|
250
|
-
|
|
251
|
-
export type InfiniteTableColumnStyleFn<T> = (
|
|
252
|
-
params: InfiniteTableColumnStyleFnParams<T>,
|
|
253
|
-
) => undefined | React.CSSProperties;
|
|
254
|
-
|
|
255
|
-
export type InfiniteTableColumnHeaderClassNameFn<T> = (
|
|
256
|
-
params: InfiniteTableColumnHeaderParam<T>,
|
|
257
|
-
) => undefined | string;
|
|
258
|
-
|
|
259
|
-
export type InfiniteTableColumnHeaderStyleFn<T> = (
|
|
260
|
-
params: InfiniteTableColumnHeaderParam<T>,
|
|
261
|
-
) => undefined | React.CSSProperties;
|
|
262
|
-
|
|
263
|
-
export type InfiniteTableColumnClassNameFn<T> = (
|
|
264
|
-
params: InfiniteTableColumnStyleFnParams<T>,
|
|
265
|
-
) => undefined | string;
|
|
266
|
-
|
|
267
|
-
export type InfiniteTableColumnStyle<T> =
|
|
268
|
-
| CSSProperties
|
|
269
|
-
| InfiniteTableColumnStyleFn<T>;
|
|
270
|
-
|
|
271
|
-
export type InfiniteTableColumnHeaderStyle<T> =
|
|
272
|
-
| CSSProperties
|
|
273
|
-
| InfiniteTableColumnHeaderStyleFn<T>;
|
|
274
|
-
export type InfiniteTableColumnClassName<T> =
|
|
275
|
-
| string
|
|
276
|
-
| InfiniteTableColumnClassNameFn<T>;
|
|
277
|
-
export type InfiniteTableColumnHeaderClassName<T> =
|
|
278
|
-
| string
|
|
279
|
-
| InfiniteTableColumnHeaderClassNameFn<T>;
|
|
280
|
-
|
|
281
|
-
export type InfiniteTableColumnValueGetterParams<T> = {
|
|
282
|
-
data: T;
|
|
283
|
-
field?: keyof T;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export type InfiniteTableColumnValueFormatterParams<T> =
|
|
287
|
-
InfiniteTableRowInfoDataDiscriminator<T>;
|
|
288
|
-
|
|
289
|
-
export type InfiniteTableColumnValueGetter<
|
|
290
|
-
T,
|
|
291
|
-
VALUE_GETTER_TYPE = string | number | boolean | Date | null | undefined,
|
|
292
|
-
> = (params: InfiniteTableColumnValueGetterParams<T>) => VALUE_GETTER_TYPE;
|
|
293
|
-
export type InfiniteTableColumnValueFormatter<
|
|
294
|
-
T,
|
|
295
|
-
VALUE_FORMATTER_TYPE = string | number | boolean | Date | null | undefined,
|
|
296
|
-
> = (
|
|
297
|
-
params: InfiniteTableColumnValueFormatterParams<T>,
|
|
298
|
-
) => VALUE_FORMATTER_TYPE;
|
|
299
|
-
|
|
300
|
-
export type InfiniteTableColumnRowspanFn<T> = (
|
|
301
|
-
params: InfiniteTableColumnRowspanParam<T>,
|
|
302
|
-
) => number;
|
|
303
|
-
export type InfiniteTableColumnColspanFn<T> = (
|
|
304
|
-
params: InfiniteTableColumnColspanParam<T>,
|
|
305
|
-
) => number;
|
|
306
|
-
|
|
307
|
-
export type InfiniteTableColumnComparer<T> = (a: T, b: T) => number;
|
|
308
|
-
|
|
309
|
-
export type InfiniteTableColumnSortableFn<T> = (context: {
|
|
310
|
-
column: InfiniteTableComputedColumn<T>;
|
|
311
|
-
columns: Map<string, InfiniteTableComputedColumn<T>>;
|
|
312
|
-
}) => boolean;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Defines a column in the table.
|
|
316
|
-
*
|
|
317
|
-
* @typeParam DATA_TYPE The type of the data in the table.
|
|
318
|
-
*
|
|
319
|
-
* Can be bound to a field which is a `keyof DATA_TYPE`.
|
|
320
|
-
*/
|
|
321
|
-
export type InfiniteTableColumn<DATA_TYPE> = {
|
|
322
|
-
sortable?: boolean;
|
|
323
|
-
draggable?: boolean;
|
|
324
|
-
resizable?: boolean;
|
|
325
|
-
|
|
326
|
-
comparer?: InfiniteTableColumnComparer<DATA_TYPE>;
|
|
327
|
-
defaultHiddenWhenGroupedBy?:
|
|
328
|
-
| '*'
|
|
329
|
-
| true
|
|
330
|
-
| keyof DATA_TYPE
|
|
331
|
-
| { [k in keyof Partial<DATA_TYPE>]: true };
|
|
332
|
-
|
|
333
|
-
align?: InfiniteTableColumnAlign;
|
|
334
|
-
verticalAlign?: InfiniteTableColumnVerticalAlign;
|
|
335
|
-
columnGroup?: string;
|
|
336
|
-
|
|
337
|
-
header?: InfiniteTableColumnHeader<DATA_TYPE>;
|
|
338
|
-
renderHeader?: InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
|
|
339
|
-
name?: Renderable;
|
|
340
|
-
cssEllipsis?: boolean;
|
|
341
|
-
headerCssEllipsis?: boolean;
|
|
342
|
-
type?: InfiniteTableColumnTypeNames | InfiniteTableColumnTypeNames[] | null;
|
|
343
|
-
dataType?: InfiniteTableDataTypeNames;
|
|
344
|
-
sortType?: string;
|
|
345
|
-
filterType?: string;
|
|
346
|
-
|
|
347
|
-
style?: InfiniteTableColumnStyle<DATA_TYPE>;
|
|
348
|
-
headerStyle?: InfiniteTableColumnHeaderStyle<DATA_TYPE>;
|
|
349
|
-
headerClassName?: InfiniteTableColumnHeaderClassName<DATA_TYPE>;
|
|
350
|
-
className?: InfiniteTableColumnClassName<DATA_TYPE>;
|
|
351
|
-
|
|
352
|
-
rowspan?: InfiniteTableColumnRowspanFn<DATA_TYPE>;
|
|
353
|
-
// colspan?: InfiniteTableColumnColspanFn<T>;
|
|
354
|
-
|
|
355
|
-
field?: KeyOfNoSymbol<DATA_TYPE>;
|
|
356
|
-
render?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
|
|
357
|
-
renderValue?: InfiniteTableColumnRenderFunction<DATA_TYPE>;
|
|
358
|
-
renderGroupValue?: InfiniteTableColumnRenderFunctionForGroupRows<DATA_TYPE>;
|
|
359
|
-
renderLeafValue?: InfiniteTableColumnRenderFunctionForNormalRows<DATA_TYPE>;
|
|
360
|
-
valueGetter?: InfiniteTableColumnValueGetter<DATA_TYPE>;
|
|
361
|
-
valueFormatter?: InfiniteTableColumnValueFormatter<DATA_TYPE, Renderable>;
|
|
362
|
-
|
|
363
|
-
defaultWidth?: number;
|
|
364
|
-
defaultFlex?: number;
|
|
365
|
-
defaultFilterable?: boolean;
|
|
366
|
-
|
|
367
|
-
minWidth?: number;
|
|
368
|
-
maxWidth?: number;
|
|
369
|
-
|
|
370
|
-
renderGroupIcon?: InfiniteTableColumnRenderFunctionForGroupRows<DATA_TYPE>;
|
|
371
|
-
renderSortIcon?: InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
|
|
372
|
-
renderSelectionCheckBox?:
|
|
373
|
-
| boolean
|
|
374
|
-
| InfiniteTableColumnRenderFunction<DATA_TYPE>;
|
|
375
|
-
renderMenuIcon?: boolean | InfiniteTableColumnRenderFunction<DATA_TYPE>;
|
|
376
|
-
renderHeaderSelectionCheckBox?:
|
|
377
|
-
| boolean
|
|
378
|
-
| InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
|
|
379
|
-
|
|
380
|
-
components?: {
|
|
381
|
-
ColumnCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
|
|
382
|
-
HeaderCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
export type InfiniteTableGeneratedGroupColumn<T> = Omit<
|
|
387
|
-
InfiniteTableColumn<T>,
|
|
388
|
-
'sortable'
|
|
389
|
-
> & {
|
|
390
|
-
groupByField: string | string[];
|
|
391
|
-
id?: string;
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
export type InfiniteTablePivotColumn<T> = InfiniteTableColumn<T> &
|
|
395
|
-
ColumnTypeWithInherit<Partial<InfiniteTablePivotFinalColumnVariant<T, any>>>;
|
|
396
|
-
|
|
397
|
-
export type InfiniteTablePivotFinalColumnGroup<
|
|
398
|
-
DataType,
|
|
399
|
-
KeyType extends any = any,
|
|
400
|
-
> = InfiniteTableColumnGroup & {
|
|
401
|
-
pivotBy: DataSourcePivotBy<DataType>[];
|
|
402
|
-
pivotTotalColumnGroup?: true;
|
|
403
|
-
pivotGroupKeys: KeyType[];
|
|
404
|
-
pivotByAtIndex: PivotBy<DataType, KeyType>;
|
|
405
|
-
pivotGroupKey: KeyType;
|
|
406
|
-
pivotIndex: number;
|
|
407
|
-
};
|
|
408
|
-
export type InfiniteTablePivotFinalColumn<
|
|
409
|
-
DataType,
|
|
410
|
-
KeyType extends any = any,
|
|
411
|
-
> = InfiniteTableColumn<DataType> & {
|
|
412
|
-
pivotBy: DataSourcePivotBy<DataType>[];
|
|
413
|
-
pivotColumn: true;
|
|
414
|
-
pivotTotalColumn: boolean;
|
|
415
|
-
pivotAggregator: AggregationReducer<DataType, any>;
|
|
416
|
-
pivotAggregatorIndex: number;
|
|
417
|
-
|
|
418
|
-
pivotGroupKeys: KeyType[];
|
|
419
|
-
pivotByAtIndex?: PivotBy<DataType, KeyType>;
|
|
420
|
-
pivotIndex: number;
|
|
421
|
-
pivotGroupKey: KeyType;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export type InfiniteTablePivotFinalColumnVariant<
|
|
425
|
-
DataType,
|
|
426
|
-
KeyType extends any = any,
|
|
427
|
-
> = InfiniteTablePivotFinalColumn<DataType, KeyType>;
|
|
428
|
-
// export type InfiniteTablePivotFinalColumnVariant<
|
|
429
|
-
// DataType,
|
|
430
|
-
// KeyType extends any = any,
|
|
431
|
-
// > = Omit<InfiniteTablePivotFinalColumn<DataType, KeyType>, 'pivotByAtIndex'> & {
|
|
432
|
-
// pivotByAtIndex?: PivotBy<DataType, KeyType>;
|
|
433
|
-
// };
|
|
434
|
-
|
|
435
|
-
type InfiniteTableComputedColumnBase<T> = {
|
|
436
|
-
computedFilterType: string;
|
|
437
|
-
computedSortType: string;
|
|
438
|
-
computedDataType: string;
|
|
439
|
-
computedWidth: number;
|
|
440
|
-
computedFlex: number | null;
|
|
441
|
-
computedMinWidth: number;
|
|
442
|
-
computedMaxWidth: number;
|
|
443
|
-
computedOffset: number;
|
|
444
|
-
computedPinningOffset: number;
|
|
445
|
-
computedAbsoluteOffset: number;
|
|
446
|
-
computedSortable: boolean;
|
|
447
|
-
computedSortInfo: DataSourceSingleSortInfo<T> | null;
|
|
448
|
-
computedSorted: boolean;
|
|
449
|
-
computedSortedAsc: boolean;
|
|
450
|
-
computedSortedDesc: boolean;
|
|
451
|
-
computedSortIndex: number;
|
|
452
|
-
computedVisible: boolean;
|
|
453
|
-
computedVisibleIndex: number;
|
|
454
|
-
computedVisibleIndexInCategory: number;
|
|
455
|
-
computedMultiSort: boolean;
|
|
456
|
-
computedFiltered: boolean;
|
|
457
|
-
computedFilterable: boolean;
|
|
458
|
-
computedFilterValue: DataSourceFilterValueItem<T> | null;
|
|
459
|
-
|
|
460
|
-
computedPinned: InfiniteTableColumnPinnedValues;
|
|
461
|
-
computedDraggable: boolean;
|
|
462
|
-
computedResizable: boolean;
|
|
463
|
-
computedFirstInCategory: boolean;
|
|
464
|
-
computedLastInCategory: boolean;
|
|
465
|
-
computedFirst: boolean;
|
|
466
|
-
computedLast: boolean;
|
|
467
|
-
toggleSort: () => void;
|
|
468
|
-
colType: InfiniteTableColumnType<T>;
|
|
469
|
-
id: string;
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
export type InfiniteTableComputedColumn<T> = InfiniteTableColumn<T> &
|
|
473
|
-
InfiniteTableComputedColumnBase<T> &
|
|
474
|
-
Partial<InfiniteTablePivotFinalColumn<T>> &
|
|
475
|
-
Partial<InfiniteTableGeneratedGroupColumn<T>>;
|
|
476
|
-
|
|
477
|
-
export type InfiniteTableComputedPivotFinalColumn<T> =
|
|
478
|
-
InfiniteTableComputedColumn<T> & InfiniteTablePivotFinalColumn<T>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { MatrixBrainOptions } from '../../VirtualBrain/MatrixBrain';
|
|
2
|
-
import { MultiRowSelector } from '../utils/MultiRowSelector';
|
|
3
|
-
|
|
4
|
-
import type { InfiniteTableComputedColumn } from './InfiniteTableColumn';
|
|
5
|
-
import type { InfiniteTablePropColumnOrderNormalized } from './InfiniteTableProps';
|
|
6
|
-
|
|
7
|
-
export interface InfiniteTableComputedValues<T> {
|
|
8
|
-
scrollbars: {
|
|
9
|
-
vertical: boolean;
|
|
10
|
-
horizontal: boolean;
|
|
11
|
-
};
|
|
12
|
-
multiRowSelector: MultiRowSelector;
|
|
13
|
-
showColumnFilters: boolean;
|
|
14
|
-
renderSelectionCheckBox: boolean;
|
|
15
|
-
rowspan?: MatrixBrainOptions['rowspan'];
|
|
16
|
-
computedPinnedStartOverflow: boolean;
|
|
17
|
-
computedPinnedEndOverflow: boolean;
|
|
18
|
-
computedPinnedStartColumns: InfiniteTableComputedColumn<T>[];
|
|
19
|
-
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
20
|
-
computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
|
|
21
|
-
computedVisibleColumns: InfiniteTableComputedColumn<T>[];
|
|
22
|
-
computedVisibleColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
|
|
23
|
-
computedColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
|
|
24
|
-
computedColumnsMapInInitialOrder: Map<string, InfiniteTableComputedColumn<T>>;
|
|
25
|
-
// computedColumnVisibility: InfiniteTablePropColumnVisibility;
|
|
26
|
-
computedColumnOrder: InfiniteTablePropColumnOrderNormalized;
|
|
27
|
-
computedPinnedStartColumnsWidth: number;
|
|
28
|
-
computedPinnedStartWidth: number;
|
|
29
|
-
computedPinnedEndColumnsWidth: number;
|
|
30
|
-
computedPinnedEndWidth: number;
|
|
31
|
-
computedUnpinnedColumnsWidth: number;
|
|
32
|
-
computedUnpinnedOffset: number;
|
|
33
|
-
computedPinnedEndOffset: number;
|
|
34
|
-
computedRemainingSpace: number;
|
|
35
|
-
fieldsToColumn: Map<keyof T, InfiniteTableComputedColumn<T>>;
|
|
36
|
-
toggleGroupRow: (groupKeys: any[]) => void;
|
|
37
|
-
columnSize: (colIndex: number) => number;
|
|
38
|
-
// setColumnPinning: (columnPinning: InfiniteTablePropColumnPinning) => void;
|
|
39
|
-
// setColumnOrder: (columnOrder: InfiniteTablePropColumnOrder) => void;
|
|
40
|
-
// setColumnVisibility: (
|
|
41
|
-
// columnVisibility: InfiniteTablePropColumnVisibility,
|
|
42
|
-
// ) => void;
|
|
43
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InfiniteTableActions, InfiniteTableState } from './InfiniteTableState';
|
|
2
|
-
import { InfiniteTableComputedValues } from './InfiniteTableComputedValues';
|
|
3
|
-
import { InfiniteTableApi } from './InfiniteTableProps';
|
|
4
|
-
|
|
5
|
-
export interface InfiniteTableContextValue<T> {
|
|
6
|
-
imperativeApi: InfiniteTableApi<T>;
|
|
7
|
-
componentState: InfiniteTableState<T>;
|
|
8
|
-
componentActions: InfiniteTableActions<T>;
|
|
9
|
-
computed: InfiniteTableComputedValues<T>;
|
|
10
|
-
getComputed: () => InfiniteTableComputedValues<T>;
|
|
11
|
-
getState: () => InfiniteTableState<T>;
|
|
12
|
-
}
|