@astryxdesign/core 0.7.15 → 0.7.16-canary.g54dd64e
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/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +8 -2
- package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheet.js +11 -6
- package/dist/DateInput/DateInput.d.ts +3 -3
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +13 -2
- package/dist/DateInput/NativeDateField.d.ts +1 -1
- package/dist/DateInput/NativeDateField.d.ts.map +1 -1
- package/dist/DateInput/NativeDateField.js +48 -31
- package/dist/DateInput/useTypedDate.d.ts +66 -6
- package/dist/DateInput/useTypedDate.d.ts.map +1 -1
- package/dist/DateInput/useTypedDate.js +151 -21
- package/dist/DateTimeInput/DateTimeInput.d.ts +3 -3
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +26 -3
- package/dist/DateTimeInput/NativeDateSegment.d.ts +8 -1
- package/dist/DateTimeInput/NativeDateSegment.d.ts.map +1 -1
- package/dist/DateTimeInput/NativeDateSegment.js +20 -14
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +10 -3
- package/dist/Field/InputClearButton.d.ts.map +1 -1
- package/dist/Field/InputClearButton.js +4 -2
- package/dist/InfoTip/InfoTip.d.ts +1 -1
- package/dist/InfoTip/InfoTip.d.ts.map +1 -1
- package/dist/InfoTip/InfoTip.js +4 -1
- package/dist/Layer/layerAnimations.stylex.d.ts.map +1 -1
- package/dist/Layer/layerAnimations.stylex.js +17 -13
- package/dist/Layer/layerEntranceSide.d.ts +24 -10
- package/dist/Layer/layerEntranceSide.d.ts.map +1 -1
- package/dist/Layer/layerEntranceSide.js +28 -13
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +14 -11
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +625 -180
- package/dist/List/ListItem.d.ts +3 -2
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListReorderHandle.d.ts +7 -0
- package/dist/List/ListReorderHandle.d.ts.map +1 -1
- package/dist/List/ListReorderHandle.js +42 -58
- package/dist/List/listReorderContext.d.ts.map +1 -1
- package/dist/List/listReorderContext.js +4 -4
- package/dist/List/listReorderEngine.d.ts +50 -2
- package/dist/List/listReorderEngine.d.ts.map +1 -1
- package/dist/List/listReorderEngine.js +205 -10
- package/dist/MoreMenu/MoreMenu.d.ts +1 -1
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MoreMenu/MoreMenu.js +4 -1
- package/dist/PowerSearch/PowerSearch.d.ts +1 -1
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +8 -4
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +4 -1
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +4 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.js +7 -3
- package/dist/PowerSearch/PowerSearchToken.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +4 -1
- package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
- package/dist/Selector/useSelectorPresentation.js +13 -12
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +6 -8
- package/dist/Table/BaseTable.d.ts +1 -1
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +265 -197
- package/dist/Table/Table.d.ts +5 -1
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/index.d.ts +5 -3
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +2 -1
- package/dist/Table/plugins/infiniteScroll/TableInfiniteScrollWide.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/index.d.ts +9 -0
- package/dist/Table/plugins/infiniteScroll/index.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/index.js +9 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts +29 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.js +394 -0
- package/dist/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortableState.js +4 -4
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +21 -1
- package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts +4 -0
- package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/TableColumnWindow.js +109 -0
- package/dist/Table/plugins/virtualization/index.d.ts +3 -1
- package/dist/Table/plugins/virtualization/index.d.ts.map +1 -1
- package/dist/Table/plugins/virtualization/index.js +3 -2
- package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts +33 -0
- package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/useTableColumnWindow.js +143 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts +23 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.js +37 -0
- package/dist/Table/tableColumnWindowing.d.ts +85 -0
- package/dist/Table/tableColumnWindowing.d.ts.map +1 -0
- package/dist/Table/tableColumnWindowing.js +47 -0
- package/dist/Table/tablePinnedColumnRuns.d.ts +23 -0
- package/dist/Table/tablePinnedColumnRuns.d.ts.map +1 -0
- package/dist/Table/tablePinnedColumnRuns.js +41 -0
- package/dist/Table/tableRuntime.d.ts +14 -2
- package/dist/Table/tableRuntime.d.ts.map +1 -1
- package/dist/Table/tableRuntime.js +32 -11
- package/dist/Table/types.d.ts +28 -2
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/Table/useBaseTablePlugins.js +2 -2
- package/dist/Text/useTruncation.d.ts +6 -1
- package/dist/Text/useTruncation.d.ts.map +1 -1
- package/dist/Text/useTruncation.js +53 -35
- package/dist/TextArea/TextArea.d.ts +10 -1
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +2 -0
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +4 -2
- package/dist/astryx.css +22 -11
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +156 -0
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
- package/dist/dragToSnapPoints/createDragToSnapPoints.js +313 -97
- package/dist/gestures/createPanGesture.d.ts +41 -0
- package/dist/gestures/createPanGesture.d.ts.map +1 -1
- package/dist/gestures/createPanGesture.js +66 -22
- package/dist/hooks/useMenuPress.d.ts.map +1 -1
- package/dist/hooks/useMenuPress.js +36 -2
- package/dist/i18n/generated-english/DateInput/NativeDateField.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateInput/NativeDateField.generated.js +0 -1
- package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.js +0 -1
- package/dist/i18n/generated-english/Lightbox/Lightbox.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Lightbox/Lightbox.generated.js +2 -0
- package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts +8 -0
- package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.js +12 -0
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +32 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +32 -0
- package/dist/internal/touch.d.ts +1 -1
- package/dist/internal/touch.d.ts.map +1 -1
- package/dist/internal/touch.js +1 -1
- package/dist/motion/animator.d.ts +28 -1
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +99 -19
- package/dist/theme/generateThemeRules.d.ts.map +1 -1
- package/dist/theme/generateThemeRules.js +14 -3
- package/dist/theme/tokenReferences.d.ts +7 -15
- package/dist/theme/tokenReferences.d.ts.map +1 -1
- package/dist/theme/tokenReferences.js +49 -7
- package/dist/utils/clickGuard.d.ts +8 -1
- package/dist/utils/clickGuard.d.ts.map +1 -1
- package/dist/utils/clickGuard.js +24 -4
- package/dist/utils/sharedResizeObserver.d.ts +18 -2
- package/dist/utils/sharedResizeObserver.d.ts.map +1 -1
- package/dist/utils/sharedResizeObserver.js +43 -2
- package/dist/utils/themeProps.d.ts +8 -0
- package/dist/utils/themeProps.d.ts.map +1 -1
- package/dist/utils/themeProps.js +17 -0
- package/dist/utils/timeParser.d.ts +3 -1
- package/dist/utils/timeParser.d.ts.map +1 -1
- package/dist/utils/timeParser.js +7 -3
- package/dist/virtualization/listWindow.d.ts +18 -2
- package/dist/virtualization/listWindow.d.ts.map +1 -1
- package/dist/virtualization/listWindow.js +55 -2
- package/dist/virtualization/useInlineListWindow.d.ts +40 -0
- package/dist/virtualization/useInlineListWindow.d.ts.map +1 -0
- package/dist/virtualization/useInlineListWindow.js +58 -0
- package/locales/en.json +129 -1
- package/locales/pseudo.json +96 -0
- package/package.json +5 -5
- package/src/AppShell/AppShell.tsx +12 -3
- package/src/BottomSheet/BottomSheet.tsx +12 -8
- package/src/ButtonGroup/ButtonGroup.doc.mjs +5 -0
- package/src/CheckboxInput/CheckboxInput.doc.mjs +3 -0
- package/src/DateInput/DateInput.doc.mjs +3 -3
- package/src/DateInput/DateInput.tsx +27 -5
- package/src/DateInput/NativeDateField.tsx +58 -36
- package/src/DateInput/useTypedDate.ts +226 -55
- package/src/DateTimeInput/DateTimeInput.doc.mjs +3 -3
- package/src/DateTimeInput/DateTimeInput.tsx +38 -5
- package/src/DateTimeInput/NativeDateSegment.tsx +35 -13
- package/src/DropdownMenu/DropdownMenu.tsx +10 -3
- package/src/Field/InputClearButton.tsx +3 -1
- package/src/InfoTip/InfoTip.doc.mjs +2 -2
- package/src/InfoTip/InfoTip.tsx +3 -0
- package/src/Layer/layerAnimations.stylex.ts +13 -9
- package/src/Layer/layerEntranceSide.ts +48 -11
- package/src/Layer/useLayer.tsx +14 -12
- package/src/Lightbox/Lightbox.doc.mjs +2 -1
- package/src/Lightbox/Lightbox.tsx +864 -257
- package/src/List/ListItem.tsx +3 -2
- package/src/List/ListReorderHandle.tsx +59 -77
- package/src/List/listReorderContext.ts +3 -4
- package/src/List/listReorderEngine.tsx +246 -11
- package/src/MoreMenu/MoreMenu.doc.mjs +2 -2
- package/src/MoreMenu/MoreMenu.tsx +3 -0
- package/src/NumberInput/NumberInput.doc.mjs +3 -0
- package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
- package/src/PowerSearch/PowerSearch.tsx +7 -3
- package/src/PowerSearch/PowerSearchEditPopover.tsx +12 -2
- package/src/PowerSearch/PowerSearchFilterEditor.tsx +3 -0
- package/src/PowerSearch/PowerSearchToken.tsx +3 -0
- package/src/ProgressBar/ProgressBar.doc.mjs +3 -0
- package/src/SegmentedControl/SegmentedControl.doc.mjs +5 -0
- package/src/Selector/useSelectorPresentation.ts +16 -12
- package/src/Slider/Slider.tsx +6 -8
- package/src/StatusDot/StatusDot.doc.mjs +3 -0
- package/src/Switch/Switch.doc.mjs +3 -0
- package/src/TabList/TabList.doc.mjs +4 -0
- package/src/Table/BaseTable.tsx +406 -287
- package/src/Table/Table.doc.mjs +2 -2
- package/src/Table/Table.tsx +5 -1
- package/src/Table/index.ts +8 -1
- package/src/Table/plugins/infiniteScroll/index.ts +10 -0
- package/src/Table/plugins/infiniteScroll/useTableInfiniteScroll.tsx +523 -0
- package/src/Table/plugins/sortable/useTableSortableState.tsx +4 -4
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +31 -1
- package/src/Table/plugins/virtualization/TableColumnWindow.tsx +150 -0
- package/src/Table/plugins/virtualization/index.ts +3 -1
- package/src/Table/plugins/virtualization/useTableColumnWindow.ts +168 -0
- package/src/Table/plugins/virtualization/useTableColumnsVirtualization.ts +53 -0
- package/src/Table/tableColumnWindowing.ts +131 -0
- package/src/Table/tablePinnedColumnRuns.ts +55 -0
- package/src/Table/tableRuntime.ts +44 -11
- package/src/Table/types.ts +25 -2
- package/src/Table/useBaseTablePlugins.ts +2 -2
- package/src/Table/useTableColumnsVirtualization.doc.mjs +29 -0
- package/src/Table/useTableInfiniteScroll.doc.mjs +58 -0
- package/src/Text/Heading.doc.mjs +3 -0
- package/src/Text/useTruncation.doc.mjs +10 -0
- package/src/Text/useTruncation.ts +53 -35
- package/src/TextArea/TextArea.doc.mjs +15 -0
- package/src/TextArea/TextArea.tsx +11 -0
- package/src/TextInput/TextInput.doc.mjs +3 -0
- package/src/Toast/Toast.doc.mjs +2 -2
- package/src/Toast/Toast.tsx +3 -1
- package/src/TopNav/TopNav.doc.mjs +4 -0
- package/src/dragToSnapPoints/createDragToSnapPoints.ts +437 -119
- package/src/gestures/createPanGesture.ts +112 -39
- package/src/hooks/useMenuPress.ts +39 -0
- package/src/i18n/generated-english/DateInput/NativeDateField.generated.ts +0 -1
- package/src/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.ts +0 -1
- package/src/i18n/generated-english/Lightbox/Lightbox.generated.ts +2 -0
- package/src/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.ts +13 -0
- package/src/i18n/generated-locales/en.generated.ts +34 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +34 -0
- package/src/internal/touch.ts +5 -1
- package/src/motion/animator.ts +181 -23
- package/src/theme/generateThemeRules.ts +14 -3
- package/src/theme/tokenReferences.ts +48 -7
- package/src/utils/clickGuard.ts +30 -3
- package/src/utils/sharedResizeObserver.ts +46 -2
- package/src/utils/themeProps.ts +17 -0
- package/src/utils/timeParser.ts +7 -9
- package/src/virtualization/listWindow.ts +76 -2
- package/src/virtualization/useInlineListWindow.ts +119 -0
package/dist/Table/BaseTable.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file BaseTable.tsx
|
|
7
|
-
* @input React, canonical identity/admission, private window planning and tracked row context
|
|
7
|
+
* @input React, canonical identity/admission, private row and column window planning and tracked row context
|
|
8
8
|
* @output Exports BaseTable component and passes immutable transform contexts
|
|
9
9
|
* @position Core structural component; wrapped by Table.tsx
|
|
10
10
|
*
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
* - /packages/core/src/Table/index.ts (exports if types change)
|
|
15
15
|
* - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)
|
|
16
16
|
*/
|
|
17
|
-
import { memo, useId, useMemo } from 'react';
|
|
17
|
+
import { memo, useId, useMemo, useSyncExternalStore } from 'react';
|
|
18
18
|
import { createTableRuntime, TableRuntimeContext, isTableScrollWrapperOwned } from "./tableRuntime.js";
|
|
19
19
|
import { resolveTableIdentity, resolveTableAdmission } from "./tableIdentity.js";
|
|
20
20
|
import { useTableWindow } from "./plugins/virtualization/useTableWindow.js";
|
|
21
21
|
import { getTableVirtualizationConfig } from "./plugins/virtualization/useTableRowsVirtualization.js";
|
|
22
|
+
import { resolveTableVirtualization } from "./tableColumnWindowing.js";
|
|
22
23
|
import { TableContext } from "./TableContext.js";
|
|
23
24
|
import { use } from 'react';
|
|
24
25
|
import { isFixedHeightColumn, getLogicalPositionExtraVar, getLogicalPositionRenderer, withLogicalPositionWidths } from "./tableColumnAdmission.js";
|
|
@@ -128,6 +129,7 @@ function TableRowInner({
|
|
|
128
129
|
contextIdentity,
|
|
129
130
|
renderContext,
|
|
130
131
|
rowHeight,
|
|
132
|
+
columnLayout,
|
|
131
133
|
onRowFocus,
|
|
132
134
|
onRowBlur
|
|
133
135
|
}) {
|
|
@@ -142,9 +144,11 @@ function TableRowInner({
|
|
|
142
144
|
render: renderContext
|
|
143
145
|
}), [contextIdentity, rowIndex, renderContext]);
|
|
144
146
|
// Build cells first
|
|
145
|
-
const
|
|
147
|
+
const renderCell = (col, columnIndex) => {
|
|
146
148
|
// Apply column alignment to body cells
|
|
147
|
-
const initialCellHtmlProps = {}
|
|
149
|
+
const initialCellHtmlProps = columnLayout == null ? {} : {
|
|
150
|
+
'aria-colindex': columnIndex + 1
|
|
151
|
+
};
|
|
148
152
|
if (col.align) {
|
|
149
153
|
initialCellHtmlProps.style = {
|
|
150
154
|
textAlign: col.align
|
|
@@ -184,7 +188,8 @@ function TableRowInner({
|
|
|
184
188
|
xstyle: cellRenderProps.xstyle,
|
|
185
189
|
children: content
|
|
186
190
|
}, col.key);
|
|
187
|
-
}
|
|
191
|
+
};
|
|
192
|
+
const cells = columnLayout == null ? columns.map(renderCell) : columnLayout.mapColumns(columns, renderCell);
|
|
188
193
|
|
|
189
194
|
// Apply plugin transforms for row (with pre-rendered children).
|
|
190
195
|
// Seed `aria-rowindex` (when the table opts into ARIA row indexing) as a
|
|
@@ -237,7 +242,7 @@ function TableRowInner({
|
|
|
237
242
|
* row index. Otherwise a re-sort moves keyed rows without rebuilding cells.
|
|
238
243
|
*/
|
|
239
244
|
function areRowPropsEqual(prevProps, nextProps) {
|
|
240
|
-
if (prevProps.contextIdentity.key !== nextProps.contextIdentity.key || prevProps.contextIdentity.identityStatus !== nextProps.contextIdentity.identityStatus || prevProps.renderContext !== nextProps.renderContext && (prevProps.rowHeight != null || nextProps.rowHeight != null || prevProps.plugins.some(readsRowCount) || prevProps.renderContext.mode !== nextProps.renderContext.mode || prevProps.renderContext.rowModel !== nextProps.renderContext.rowModel || prevProps.renderContext.headerRowCount !== nextProps.renderContext.headerRowCount || prevProps.renderContext.viewport !== nextProps.renderContext.viewport) || prevProps.rowHeight !== nextProps.rowHeight || prevProps.onRowFocus !== nextProps.onRowFocus || prevProps.onRowBlur !== nextProps.onRowBlur) {
|
|
245
|
+
if (prevProps.contextIdentity.key !== nextProps.contextIdentity.key || prevProps.contextIdentity.identityStatus !== nextProps.contextIdentity.identityStatus || prevProps.renderContext !== nextProps.renderContext && (prevProps.rowHeight != null || nextProps.rowHeight != null || prevProps.plugins.some(readsRowCount) || prevProps.renderContext.mode !== nextProps.renderContext.mode || prevProps.renderContext.rowModel !== nextProps.renderContext.rowModel || prevProps.renderContext.headerRowCount !== nextProps.renderContext.headerRowCount || prevProps.renderContext.viewport !== nextProps.renderContext.viewport) || prevProps.rowHeight !== nextProps.rowHeight || prevProps.columnLayout !== nextProps.columnLayout || prevProps.onRowFocus !== nextProps.onRowFocus || prevProps.onRowBlur !== nextProps.onRowBlur) {
|
|
241
246
|
return false;
|
|
242
247
|
}
|
|
243
248
|
if (prevProps.rowKey !== nextProps.rowKey) {
|
|
@@ -366,11 +371,14 @@ function BaseTableInner({
|
|
|
366
371
|
// discards cannot leave another. No state or ref is written during render.
|
|
367
372
|
const resolvedColumns = internByIdentity(transformedColumns);
|
|
368
373
|
const headerRowCount = mode === 'data' && resolvedColumns.length > 0 ? 1 : 0;
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
+
const {
|
|
375
|
+
rows: rowsCapability,
|
|
376
|
+
columns: columnsConfig,
|
|
377
|
+
invalidReason
|
|
378
|
+
} = useMemo(() => resolveTableVirtualization(virtualization), [virtualization]);
|
|
379
|
+
const config = getTableVirtualizationConfig(rowsCapability);
|
|
380
|
+
// Conditions both axes need before any cell renders.
|
|
381
|
+
const sharedFallbackReason = useMemo(() => {
|
|
374
382
|
if (mode !== 'data') {
|
|
375
383
|
return 'windowing requires data mode';
|
|
376
384
|
}
|
|
@@ -389,22 +397,17 @@ function BaseTableInner({
|
|
|
389
397
|
if (textOverflowProp === 'wrap') {
|
|
390
398
|
return 'explicit wrapped content is not fixed-height';
|
|
391
399
|
}
|
|
392
|
-
if (rowIndexStart != null || rowCount != null) {
|
|
393
|
-
return 'legacy row offsets or counts conflict with windowed metadata';
|
|
394
|
-
}
|
|
395
|
-
if (!resolvedColumns.every(isFixedHeightColumn)) {
|
|
396
|
-
return 'a custom cell renderer has no fixed-height admission';
|
|
397
|
-
}
|
|
398
|
-
if (config == null || !Number.isFinite(config.rowHeight) || config.rowHeight <= 0 || !Number.isFinite(config.initialViewportHeight) || config.initialViewportHeight <= 0) {
|
|
399
|
-
return 'row and viewport geometry must be positive finite CSS pixels';
|
|
400
|
-
}
|
|
401
400
|
return undefined;
|
|
402
|
-
}, [mode, ScrollWrapper, admission.rowModel, identity, textOverflowProp
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
}, [mode, ScrollWrapper, admission.rowModel, identity, textOverflowProp]);
|
|
402
|
+
// Admission reads the resolved columns: widened row-number columns are new
|
|
403
|
+
// objects that the admission registry does not know.
|
|
404
|
+
const hasFixedHeightColumns = resolvedColumns.every(isFixedHeightColumn);
|
|
405
|
+
const windowFallbackReason = invalidReason ?? (config == null ? undefined : sharedFallbackReason ?? (rowIndexStart != null || rowCount != null ? 'legacy row offsets or counts conflict with windowed metadata' : !hasFixedHeightColumns ? 'a custom cell renderer has no fixed-height admission' : !Number.isFinite(config.rowHeight) || config.rowHeight <= 0 || !Number.isFinite(config.initialViewportHeight) || config.initialViewportHeight <= 0 ? 'row and viewport geometry must be positive finite CSS pixels' : undefined));
|
|
406
|
+
const windowAdmitted = config != null && windowFallbackReason === undefined;
|
|
407
|
+
useDevWarningPerMessage('Table', `Windowing disabled: ${windowFallbackReason}. Rendering all rows.`, windowFallbackReason != null);
|
|
405
408
|
const logicalPositionColumns = useMemo(() => new Set(resolvedColumns.flatMap((column, index) => getLogicalPositionRenderer(column) == null ? [] : [index])), [resolvedColumns]);
|
|
406
409
|
const windowPlan = useTableWindow({
|
|
407
|
-
capability:
|
|
410
|
+
capability: rowsCapability,
|
|
408
411
|
data: data ?? [],
|
|
409
412
|
keys,
|
|
410
413
|
isAdmitted: windowAdmitted,
|
|
@@ -421,7 +424,32 @@ function BaseTableInner({
|
|
|
421
424
|
headerRowCount,
|
|
422
425
|
viewport: runtime.viewport
|
|
423
426
|
}), [mode, admission, data?.length, headerRowCount, runtime]);
|
|
424
|
-
|
|
427
|
+
|
|
428
|
+
// A loading plugin publishes its request state through `renderState`. Table
|
|
429
|
+
// reads it before it builds the sections, and only where loading is
|
|
430
|
+
// admitted: data mode, a flat row model, and the default scroll wrapper.
|
|
431
|
+
const loadingSource = useMemo(() => {
|
|
432
|
+
const sources = plugins.flatMap(plugin => plugin.renderState ? [plugin.renderState] : []);
|
|
433
|
+
// The snapshot is a number, so the store compares it by value: bit 0 is
|
|
434
|
+
// set while a source loads, bit 1 while a source has more rows.
|
|
435
|
+
const readIsLoading = read => (sources.some(source => read(source).isLoading) ? 1 : 0) | (sources.some(source => read(source).hasMore === true) ? 2 : 0);
|
|
436
|
+
return {
|
|
437
|
+
subscribe(onChange) {
|
|
438
|
+
const cleanups = sources.map(source => source.subscribe(onChange));
|
|
439
|
+
return () => cleanups.forEach(cleanup => cleanup());
|
|
440
|
+
},
|
|
441
|
+
getSnapshot: () => readIsLoading(source => source.getSnapshot()),
|
|
442
|
+
getServerSnapshot: () => readIsLoading(source => source.getServerSnapshot())
|
|
443
|
+
};
|
|
444
|
+
}, [plugins]);
|
|
445
|
+
const loadingSnapshot = useSyncExternalStore(loadingSource.subscribe, loadingSource.getSnapshot, loadingSource.getServerSnapshot);
|
|
446
|
+
// Table admits loading only with its own scroll wrapper. The loading plugin
|
|
447
|
+
// reads this admission from the runtime context, so a caller's wrapper gets
|
|
448
|
+
// the whole loading behavior or none of it.
|
|
449
|
+
const isLoadingAdmitted = mode === 'data' && admission.rowModel === 'flat' && ScrollWrapper != null && isTableScrollWrapperOwned(ScrollWrapper);
|
|
450
|
+
const isLoading = isLoadingAdmitted && (loadingSnapshot & 1) === 1;
|
|
451
|
+
// While any admitted source may load more rows, the total is unknown.
|
|
452
|
+
const hasMoreRows = isLoadingAdmitted && (loadingSnapshot & 2) === 2;
|
|
425
453
|
|
|
426
454
|
// Resolve all column widths in a single pass — produces per-column
|
|
427
455
|
// inline styles and the aggregate table min-width.
|
|
@@ -448,187 +476,226 @@ function BaseTableInner({
|
|
|
448
476
|
htmlProps: {},
|
|
449
477
|
xstyle: children ? [styles.table, styles.tableAutoLayout] : [styles.table]
|
|
450
478
|
});
|
|
479
|
+
const mergedStyle = {
|
|
480
|
+
...tableRenderProps.htmlProps.style,
|
|
481
|
+
...style
|
|
482
|
+
};
|
|
451
483
|
|
|
452
|
-
//
|
|
484
|
+
// Windowing keeps content single-line at every width, so rows keep their
|
|
485
|
+
// height as the viewport crosses the table minimum width.
|
|
486
|
+
const textOverflow = textOverflowProp ?? (windowPlan.isWindowed || columnsConfig != null ? 'truncate' : 'wrap');
|
|
453
487
|
const headerLabelIdBase = useId();
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
//
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
488
|
+
const tableRef = useMergedRefs(ref, runtime.setTable);
|
|
489
|
+
const hasData = data != null && data.length > 0;
|
|
490
|
+
|
|
491
|
+
// Everything that reads the column layout renders inside the column
|
|
492
|
+
// window, which a columns capability supplies.
|
|
493
|
+
const renderTable = columnLayout => {
|
|
494
|
+
// --- Plugin pipeline: header cells ---
|
|
495
|
+
const renderHeaderCell = (col, columnIndex) => {
|
|
496
|
+
const headerContent = col.header ?? col.key;
|
|
497
|
+
|
|
498
|
+
// Build initial htmlProps with column alignment if specified.
|
|
499
|
+
// `scope: 'col'` is the default so every column header associates its
|
|
500
|
+
// data cells with the correct column for screen readers; a plugin's
|
|
501
|
+
// transformHeaderCell can override it via htmlProps.scope.
|
|
502
|
+
const initialHeaderHtmlProps = {
|
|
503
|
+
'data-column-key': col.key,
|
|
504
|
+
scope: 'col',
|
|
505
|
+
...(columnLayout == null ? null : {
|
|
506
|
+
'aria-colindex': columnIndex + 1
|
|
507
|
+
})
|
|
508
|
+
};
|
|
509
|
+
if (col.align) {
|
|
510
|
+
initialHeaderHtmlProps.style = {
|
|
511
|
+
textAlign: col.align
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
const initialHeaderRenderProps = {
|
|
515
|
+
htmlProps: initialHeaderHtmlProps,
|
|
516
|
+
xstyle: [],
|
|
517
|
+
content: headerContent,
|
|
518
|
+
columnIndex,
|
|
519
|
+
columns: resolvedColumns
|
|
520
|
+
};
|
|
521
|
+
const cellRenderProps = applyPlugins(plugins, p => p.transformHeaderCell, initialHeaderRenderProps, col, columnIndex, resolvedColumns);
|
|
522
|
+
|
|
523
|
+
// Apply pre-computed column width styles on the <th>.
|
|
524
|
+
// With table-layout: fixed, header cell sizing controls column widths.
|
|
525
|
+
// A windowed table renders at its minimum width, so each mounted column
|
|
526
|
+
// takes its pitch in pixels: a percentage would resolve against spacers.
|
|
527
|
+
const widthStyle = columnLayout == null ? resolvedWidths.columns.get(col.key)?.style ?? {} : columnLayout.widthOf(columnIndex);
|
|
528
|
+
const existingStyle = cellRenderProps.htmlProps.style;
|
|
529
|
+
const mergedHtmlProps = {
|
|
530
|
+
...cellRenderProps.htmlProps,
|
|
531
|
+
style: existingStyle ? {
|
|
532
|
+
...widthStyle,
|
|
533
|
+
...existingStyle
|
|
534
|
+
} : widthStyle
|
|
468
535
|
};
|
|
469
|
-
}
|
|
470
|
-
const initialHeaderRenderProps = {
|
|
471
|
-
htmlProps: initialHeaderHtmlProps,
|
|
472
|
-
xstyle: [],
|
|
473
|
-
content: headerContent,
|
|
474
|
-
columnIndex,
|
|
475
|
-
columns: resolvedColumns
|
|
476
|
-
};
|
|
477
|
-
const cellRenderProps = applyPlugins(plugins, p => p.transformHeaderCell, initialHeaderRenderProps, col, columnIndex, resolvedColumns);
|
|
478
536
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
537
|
+
// Resolve header content from slots — plugins write to named slots
|
|
538
|
+
// to avoid conflicts (e.g. sort writes `after`, resize writes `overlay`)
|
|
539
|
+
const resolvedContent = cellRenderProps.content ?? headerContent;
|
|
540
|
+
const headerTitleProp = typeof resolvedContent === 'string' && resolvedContent.length > 0 ? {
|
|
541
|
+
title: resolvedContent
|
|
542
|
+
} : {};
|
|
543
|
+
const {
|
|
544
|
+
before,
|
|
545
|
+
after,
|
|
546
|
+
overlay,
|
|
547
|
+
below
|
|
548
|
+
} = cellRenderProps;
|
|
549
|
+
const hasSlots = before != null || after != null || overlay != null || below != null;
|
|
550
|
+
const labelRow = isRenderable(after) ? /*#__PURE__*/_jsxs("div", {
|
|
551
|
+
...{
|
|
552
|
+
className: "x3nfvp2 x6s0dn4 xzye2dw xeuugli"
|
|
553
|
+
},
|
|
554
|
+
children: [resolvedContent, after]
|
|
555
|
+
}) : resolvedContent;
|
|
556
|
+
|
|
557
|
+
// The overlay is a control of its own. Keep its name and value out of the
|
|
558
|
+
// header's name.
|
|
559
|
+
const namesOwnHeader = isRenderable(overlay) && mergedHtmlProps['aria-label'] == null && mergedHtmlProps['aria-labelledby'] == null;
|
|
560
|
+
const labelId = `${headerLabelIdBase}-label-${columnIndex}`;
|
|
561
|
+
const belowId = `${headerLabelIdBase}-below-${columnIndex}`;
|
|
562
|
+
const hasBelow = isRenderable(below);
|
|
563
|
+
const headerInner = !hasSlots ? resolvedContent : namesOwnHeader ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
564
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
565
|
+
id: labelId,
|
|
566
|
+
children: [before, labelRow]
|
|
567
|
+
}), overlay, hasBelow && /*#__PURE__*/_jsx("div", {
|
|
568
|
+
id: belowId,
|
|
569
|
+
children: below
|
|
570
|
+
})]
|
|
571
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
572
|
+
children: [before, labelRow, overlay, below]
|
|
573
|
+
});
|
|
574
|
+
const headerNameProps = namesOwnHeader ? {
|
|
575
|
+
'aria-labelledby': hasBelow ? `${labelId} ${belowId}` : labelId
|
|
576
|
+
} : {};
|
|
577
|
+
return /*#__PURE__*/_jsx(HeaderCellComponent, {
|
|
578
|
+
...mergedHtmlProps,
|
|
579
|
+
...headerNameProps,
|
|
580
|
+
...headerTitleProp,
|
|
581
|
+
contextMenuActions: cellRenderProps.contextMenuActions,
|
|
582
|
+
xstyle: cellRenderProps.xstyle,
|
|
583
|
+
children: headerInner
|
|
584
|
+
}, col.key);
|
|
489
585
|
};
|
|
586
|
+
const headerCells = columnLayout == null ? resolvedColumns.map(renderHeaderCell) : columnLayout.mapColumns(resolvedColumns, renderHeaderCell);
|
|
490
587
|
|
|
491
|
-
//
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
before,
|
|
499
|
-
after,
|
|
500
|
-
overlay,
|
|
501
|
-
below
|
|
502
|
-
} = cellRenderProps;
|
|
503
|
-
const hasSlots = before != null || after != null || overlay != null || below != null;
|
|
504
|
-
const labelRow = isRenderable(after) ? /*#__PURE__*/_jsxs("div", {
|
|
505
|
-
...{
|
|
506
|
-
className: "x3nfvp2 x6s0dn4 xzye2dw xeuugli"
|
|
507
|
-
},
|
|
508
|
-
children: [resolvedContent, after]
|
|
509
|
-
}) : resolvedContent;
|
|
510
|
-
|
|
511
|
-
// The overlay is a control of its own. Keep its name and value out of the
|
|
512
|
-
// header's name.
|
|
513
|
-
const namesOwnHeader = isRenderable(overlay) && mergedHtmlProps['aria-label'] == null && mergedHtmlProps['aria-labelledby'] == null;
|
|
514
|
-
const labelId = `${headerLabelIdBase}-label-${columnIndex}`;
|
|
515
|
-
const belowId = `${headerLabelIdBase}-below-${columnIndex}`;
|
|
516
|
-
const hasBelow = isRenderable(below);
|
|
517
|
-
const headerInner = !hasSlots ? resolvedContent : namesOwnHeader ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
518
|
-
children: [/*#__PURE__*/_jsxs("span", {
|
|
519
|
-
id: labelId,
|
|
520
|
-
children: [before, labelRow]
|
|
521
|
-
}), overlay, hasBelow && /*#__PURE__*/_jsx("div", {
|
|
522
|
-
id: belowId,
|
|
523
|
-
children: below
|
|
524
|
-
})]
|
|
525
|
-
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
526
|
-
children: [before, labelRow, overlay, below]
|
|
588
|
+
// --- Plugin pipeline: header row ---
|
|
589
|
+
const headerRowRenderProps = applyPlugins(plugins, p => p.transformHeaderRow, {
|
|
590
|
+
htmlProps: {},
|
|
591
|
+
xstyle: [],
|
|
592
|
+
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
593
|
+
children: headerCells
|
|
594
|
+
})
|
|
527
595
|
});
|
|
528
|
-
const headerNameProps = namesOwnHeader ? {
|
|
529
|
-
'aria-labelledby': hasBelow ? `${labelId} ${belowId}` : labelId
|
|
530
|
-
} : {};
|
|
531
|
-
return /*#__PURE__*/_jsx(HeaderCellComponent, {
|
|
532
|
-
...mergedHtmlProps,
|
|
533
|
-
...headerNameProps,
|
|
534
|
-
...headerTitleProp,
|
|
535
|
-
contextMenuActions: cellRenderProps.contextMenuActions,
|
|
536
|
-
xstyle: cellRenderProps.xstyle,
|
|
537
|
-
children: headerInner
|
|
538
|
-
}, col.key);
|
|
539
|
-
});
|
|
540
|
-
|
|
541
|
-
// --- Plugin pipeline: header row ---
|
|
542
|
-
const headerRowRenderProps = applyPlugins(plugins, p => p.transformHeaderRow, {
|
|
543
|
-
htmlProps: {},
|
|
544
|
-
xstyle: [],
|
|
545
|
-
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
546
|
-
children: headerCells
|
|
547
|
-
})
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
// --- Render ---
|
|
551
|
-
const hasData = data != null && data.length > 0;
|
|
552
|
-
const hasColumns = resolvedColumns.length > 0;
|
|
553
596
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
597
|
+
// --- Render ---
|
|
598
|
+
const hasColumns = resolvedColumns.length > 0;
|
|
599
|
+
|
|
600
|
+
// The table is at least as wide as the column floors require and at least
|
|
601
|
+
// as wide as any minWidth the consumer (or a plugin) set: whichever is
|
|
602
|
+
// larger wins, so column floors never shrink a consumer's minimum.
|
|
603
|
+
const tableStyle = {
|
|
604
|
+
...(resolvedWidths.tableMinWidth > 0 ? {
|
|
605
|
+
...mergedStyle,
|
|
606
|
+
minWidth: resolveTableMinWidth(mergedStyle.minWidth, resolvedWidths.tableMinWidth)
|
|
607
|
+
} : mergedStyle),
|
|
608
|
+
...logicalExtraStyle
|
|
609
|
+
};
|
|
610
|
+
return /*#__PURE__*/_jsx("table", {
|
|
611
|
+
ref: tableRef,
|
|
612
|
+
...(windowPlan.isWindowed ? {
|
|
613
|
+
'aria-rowcount': hasMoreRows ? -1 : headerRowCount + (data?.length ?? 0)
|
|
614
|
+
} : ariaRowCount != null ? {
|
|
615
|
+
'aria-rowcount': ariaRowCount
|
|
616
|
+
} : null),
|
|
617
|
+
...(columnLayout == null ? null : {
|
|
618
|
+
'aria-colcount': resolvedColumns.length
|
|
619
|
+
}),
|
|
620
|
+
...tableRenderProps.htmlProps,
|
|
621
|
+
...mergeProps(themeProps('table'), stylex.props(...tableRenderProps.xstyle, xstyle), [tableRenderProps.htmlProps.className, className].filter(Boolean).join(' ') || undefined, tableStyle),
|
|
622
|
+
...rest,
|
|
623
|
+
children: children ? children : /*#__PURE__*/_jsxs(_Fragment, {
|
|
624
|
+
children: [hasColumns && /*#__PURE__*/_jsx(TableHeader, {
|
|
625
|
+
children: /*#__PURE__*/_jsx(RowComponent, {
|
|
626
|
+
...headerRowRenderProps.htmlProps,
|
|
627
|
+
"aria-rowindex": windowPlan.isWindowed ? 1 : headerRowRenderProps.htmlProps['aria-rowindex'],
|
|
628
|
+
isHeaderRow: true,
|
|
629
|
+
xstyle: headerRowRenderProps.xstyle,
|
|
630
|
+
children: headerRowRenderProps.children
|
|
631
|
+
})
|
|
632
|
+
}), /*#__PURE__*/_jsx(TableBody, {
|
|
633
|
+
ref: runtime.setBody,
|
|
634
|
+
children: hasData ? windowPlan.segments.flatMap(segment => {
|
|
635
|
+
if (segment.type === 'gap') {
|
|
636
|
+
return [/*#__PURE__*/_jsx("tr", {
|
|
637
|
+
"aria-hidden": "true",
|
|
638
|
+
children: /*#__PURE__*/_jsx("td", {
|
|
639
|
+
colSpan: resolvedColumns.length,
|
|
640
|
+
...stylex.props(styles.spacer(segment.height))
|
|
641
|
+
})
|
|
642
|
+
}, `gap:${segment.start}:${segment.end}`)];
|
|
643
|
+
}
|
|
644
|
+
const rows = [];
|
|
645
|
+
for (let rowIndex = segment.start; rowIndex < segment.end; rowIndex++) {
|
|
646
|
+
const item = data[rowIndex];
|
|
647
|
+
const rowIdentity = identity[rowIndex];
|
|
648
|
+
rows.push(/*#__PURE__*/_jsx(MemoizedTableRow, {
|
|
649
|
+
item: item,
|
|
650
|
+
rowIndex: rowIndex,
|
|
651
|
+
rowKey: rowIdentity.reactKey,
|
|
652
|
+
contextIdentity: rowIdentity,
|
|
653
|
+
renderContext: renderContext,
|
|
654
|
+
columns: resolvedColumns,
|
|
655
|
+
plugins: plugins,
|
|
656
|
+
textOverflow: textOverflow,
|
|
657
|
+
RowComponent: RowComponent,
|
|
658
|
+
CellComponent: CellComponent,
|
|
659
|
+
rowHeight: windowPlan.isWindowed ? config?.rowHeight : undefined,
|
|
660
|
+
columnLayout: columnLayout,
|
|
661
|
+
onRowFocus: windowPlan.isWindowed ? windowPlan.onRowFocus : undefined,
|
|
662
|
+
onRowBlur: windowPlan.isWindowed ? windowPlan.onRowBlur : undefined,
|
|
663
|
+
ariaRowIndex: windowPlan.isWindowed ? headerRowCount + rowIndex + 1 : ariaRowIndexingEnabled ? firstRowAriaIndex + rowIndex : undefined
|
|
664
|
+
}, rowIdentity.reactKey));
|
|
665
|
+
}
|
|
666
|
+
return rows;
|
|
667
|
+
}) : data != null && emptyState !== false &&
|
|
668
|
+
// While the first rows load, the default "no data" message
|
|
669
|
+
// would be wrong. Caller-owned empty content still shows.
|
|
670
|
+
!(isLoading && emptyState == null) && /*#__PURE__*/_jsx("tr", {
|
|
671
|
+
children: /*#__PURE__*/_jsx("td", {
|
|
672
|
+
colSpan: resolvedColumns.length,
|
|
673
|
+
children: emptyState ?? /*#__PURE__*/_jsx(EmptyState, {
|
|
674
|
+
title: t('@astryx.table.noData'),
|
|
675
|
+
isCompact: true
|
|
596
676
|
})
|
|
597
|
-
}, `gap:${segment.start}:${segment.end}`)];
|
|
598
|
-
}
|
|
599
|
-
const rows = [];
|
|
600
|
-
for (let rowIndex = segment.start; rowIndex < segment.end; rowIndex++) {
|
|
601
|
-
const item = data[rowIndex];
|
|
602
|
-
const rowIdentity = identity[rowIndex];
|
|
603
|
-
rows.push(/*#__PURE__*/_jsx(MemoizedTableRow, {
|
|
604
|
-
item: item,
|
|
605
|
-
rowIndex: rowIndex,
|
|
606
|
-
rowKey: rowIdentity.reactKey,
|
|
607
|
-
contextIdentity: rowIdentity,
|
|
608
|
-
renderContext: renderContext,
|
|
609
|
-
columns: resolvedColumns,
|
|
610
|
-
plugins: plugins,
|
|
611
|
-
textOverflow: textOverflow,
|
|
612
|
-
RowComponent: RowComponent,
|
|
613
|
-
CellComponent: CellComponent,
|
|
614
|
-
rowHeight: windowPlan.isWindowed ? config?.rowHeight : undefined,
|
|
615
|
-
onRowFocus: windowPlan.isWindowed ? windowPlan.onRowFocus : undefined,
|
|
616
|
-
onRowBlur: windowPlan.isWindowed ? windowPlan.onRowBlur : undefined,
|
|
617
|
-
ariaRowIndex: windowPlan.isWindowed ? headerRowCount + rowIndex + 1 : ariaRowIndexingEnabled ? firstRowAriaIndex + rowIndex : undefined
|
|
618
|
-
}, rowIdentity.reactKey));
|
|
619
|
-
}
|
|
620
|
-
return rows;
|
|
621
|
-
}) : data != null && emptyState !== false && /*#__PURE__*/_jsx("tr", {
|
|
622
|
-
children: /*#__PURE__*/_jsx("td", {
|
|
623
|
-
colSpan: resolvedColumns.length,
|
|
624
|
-
children: emptyState ?? /*#__PURE__*/_jsx(EmptyState, {
|
|
625
|
-
title: t('@astryx.table.noData'),
|
|
626
|
-
isCompact: true
|
|
627
677
|
})
|
|
628
678
|
})
|
|
629
|
-
})
|
|
630
|
-
})
|
|
631
|
-
})
|
|
679
|
+
})]
|
|
680
|
+
})
|
|
681
|
+
});
|
|
682
|
+
};
|
|
683
|
+
// The column window is a component from the capability, so its hooks
|
|
684
|
+
// stay behind it. Adding or removing the capability remounts the table.
|
|
685
|
+
const ColumnWindow = columnsConfig?.windowing.Window;
|
|
686
|
+
let tableElement = ColumnWindow == null ? renderTable(undefined) : /*#__PURE__*/_jsx(ColumnWindow, {
|
|
687
|
+
capability: columnsConfig,
|
|
688
|
+
input: {
|
|
689
|
+
fallbackReason: sharedFallbackReason,
|
|
690
|
+
hasFixedHeightColumns,
|
|
691
|
+
isRowsWindowing: config != null,
|
|
692
|
+
columns: sizedColumns,
|
|
693
|
+
plugins,
|
|
694
|
+
minWidth: mergedStyle.minWidth,
|
|
695
|
+
hasRows: hasData,
|
|
696
|
+
runtime
|
|
697
|
+
},
|
|
698
|
+
render: renderTable
|
|
632
699
|
});
|
|
633
700
|
|
|
634
701
|
// Wrap the <table> in a scroll container so it scrolls horizontally
|
|
@@ -678,8 +745,9 @@ function BaseTableInner({
|
|
|
678
745
|
}, [parentAppearance, textOverflow]);
|
|
679
746
|
const runtimeValue = useMemo(() => ({
|
|
680
747
|
...runtime,
|
|
681
|
-
viewportHeight: windowPlan.isWindowed ? config?.initialViewportHeight : undefined
|
|
682
|
-
|
|
748
|
+
viewportHeight: windowPlan.isWindowed ? config?.initialViewportHeight : undefined,
|
|
749
|
+
isLoadingAdmitted
|
|
750
|
+
}), [runtime, windowPlan.isWindowed, config?.initialViewportHeight, isLoadingAdmitted]);
|
|
683
751
|
return /*#__PURE__*/_jsx(TableRuntimeContext, {
|
|
684
752
|
value: runtimeValue,
|
|
685
753
|
children: effectiveAppearance == null ? tableElement : /*#__PURE__*/_jsx(TableContext, {
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -68,7 +68,11 @@ interface TableAppearanceProps<T extends Record<string, unknown>> extends Omit<B
|
|
|
68
68
|
* @template T - The row data type
|
|
69
69
|
*/
|
|
70
70
|
export interface TableProps<T extends Record<string, unknown>> extends TableAppearanceProps<T> {
|
|
71
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Windowing opt-in: a rows or columns capability, or a list with at most one
|
|
73
|
+
* of each. Requires data and explicit idKey; invalid combinations fall back
|
|
74
|
+
* with diagnostics.
|
|
75
|
+
*/
|
|
72
76
|
virtualization?: BaseTableProps<T>['virtualization'];
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAe,KAAK,YAAY,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAYhE,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,WAAW,EAEZ,MAAM,SAAS,CAAC;AAejB,oDAAoD;AAEpD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE/D,kCAAkC;AAElC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjE,8DAA8D;AAE9D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEpD,UAAU,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAE,SAAQ,IAAI,CAC5E,cAAc,CAAC,CAAC,CAAC,EACjB,SAAS,GAAG,YAAY,GAAG,gBAAgB,CAC5C;IACC,uCAAuC;IACvC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1C;AAED;;;;;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,CAAC,CAAC,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU,CACzB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACjC,SAAQ,oBAAoB,CAAC,CAAC,CAAC;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;CACtD;AAwQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,KAAK,EAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAC,KACjD,YAAY,CAAC"}
|
package/dist/Table/index.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export interface TableSemanticRowStatus {
|
|
|
22
22
|
label: string;
|
|
23
23
|
}
|
|
24
24
|
export { Table } from './Table.js';
|
|
25
|
-
export { useTableRowsVirtualization } from './plugins/virtualization/index.js';
|
|
26
|
-
export type { UseTableRowsVirtualizationConfig, TableVirtualizationCapability, } from './plugins/virtualization/index.js';
|
|
25
|
+
export { useTableColumnsVirtualization, useTableRowsVirtualization, } from './plugins/virtualization/index.js';
|
|
26
|
+
export type { UseTableColumnsVirtualizationConfig, UseTableRowsVirtualizationConfig, TableVirtualizationCapability, } from './plugins/virtualization/index.js';
|
|
27
27
|
export { TableRow } from './TableRow.js';
|
|
28
28
|
export { TableCell } from './TableCell.js';
|
|
29
29
|
export { TableHeaderCell } from './TableHeaderCell.js';
|
|
@@ -43,6 +43,7 @@ export { useTableColumnResize } from './plugins/columnResize/index.js';
|
|
|
43
43
|
export { useTableStickyColumns } from './plugins/stickyColumns/index.js';
|
|
44
44
|
export { useTableGroupedRows } from './plugins/groupedRows/index.js';
|
|
45
45
|
export { useTableRowIndex } from './plugins/rowIndex/index.js';
|
|
46
|
+
export { useTableInfiniteScroll } from './plugins/infiniteScroll/index.js';
|
|
46
47
|
export { useTableRowStatus } from './plugins/rowStatus/index.js';
|
|
47
48
|
export { useTableRowExpansion } from './plugins/rowExpansion/index.js';
|
|
48
49
|
export { useTableTreeData, useTableTreeState } from './plugins/tree/index.js';
|
|
@@ -50,7 +51,7 @@ export { resolveContextActions } from './tableContextMenu.js';
|
|
|
50
51
|
export { useTableFiltering, useTableFilterState, toSearchFilters, } from './plugins/filtering/index.js';
|
|
51
52
|
export { useBaseTablePlugins } from './useBaseTablePlugins.js';
|
|
52
53
|
export { proportional, pixel, generateColumns, resolveColumnWidths, DEFAULT_MIN_COLUMN_WIDTH, } from './columnUtils.js';
|
|
53
|
-
export type { TableColumn, TableColumnAlign, TableVerticalAlign, ColumnWidth, ProportionalWidth, PixelWidth, TablePlugin, TableContextAction, TableContextActions, TableRenderProps, HeaderRowRenderProps, HeaderCellRenderProps, BodyRowRenderProps, BodyCellRenderProps, ScrollWrapperRenderProps, BaseTableProps, TableRenderContext, TableRowContext, } from './types.js';
|
|
54
|
+
export type { TableColumn, TableColumnAlign, TableVerticalAlign, ColumnWidth, ProportionalWidth, PixelWidth, TablePlugin, TableContextAction, TableContextActions, TableRenderProps, HeaderRowRenderProps, HeaderCellRenderProps, BodyRowRenderProps, BodyCellRenderProps, ScrollWrapperRenderProps, BaseTableProps, TableRenderContext, TableRowContext, TablePluginRenderState, } from './types.js';
|
|
54
55
|
export type { TableProps, TableDensity, TableDividers, TableTextOverflow, } from './Table.js';
|
|
55
56
|
export type { TableRowProps } from './TableRow.js';
|
|
56
57
|
export type { TableCellProps } from './TableCell.js';
|
|
@@ -71,6 +72,7 @@ export type { UseTableColumnResizeConfig } from './plugins/columnResize/index.js
|
|
|
71
72
|
export type { UseTableStickyColumnsConfig } from './plugins/stickyColumns/index.js';
|
|
72
73
|
export type { UseTableRowExpansionConfig } from './plugins/rowExpansion/index.js';
|
|
73
74
|
export type { UseTableRowIndexConfig } from './plugins/rowIndex/index.js';
|
|
75
|
+
export type { UseTableInfiniteScrollConfig } from './plugins/infiniteScroll/index.js';
|
|
74
76
|
export type { UseTableGroupedRowsConfig, UseTableGroupedRowsResult, } from './plugins/groupedRows/index.js';
|
|
75
77
|
export type { UseTableRowStatusConfig } from './plugins/rowStatus/index.js';
|
|
76
78
|
export type { TableTreeRowMeta, UseTableTreeDataConfig, UseTableTreeStateConfig, UseTableTreeStateResult, } from './plugins/tree/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,uCAAuC,CAAC;AAE/E,gDAAgD;AAChD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,mBAAmB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,uCAAuC,CAAC;AAE/E,gDAAgD;AAChD,MAAM,WAAW,cAAc;IA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