@canvas-components/list-table 0.3.23 → 0.3.25
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 +3 -0
- package/dist/index.cjs +50 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +50 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1128,6 +1128,8 @@ interface ListTableColumn<RecordType = Record<string, unknown>> {
|
|
|
1128
1128
|
initialHide?: boolean;
|
|
1129
1129
|
/** 是否不在列设置中展示该列及其子列。 */
|
|
1130
1130
|
hideInSetting?: boolean;
|
|
1131
|
+
/** 是否参与文件导出;操作列默认不导出,可显式覆盖。 */
|
|
1132
|
+
exportable?: boolean;
|
|
1131
1133
|
/** 是否禁止用户通过列设置隐藏该列。 */
|
|
1132
1134
|
disableHide?: boolean;
|
|
1133
1135
|
ellipsis?: boolean;
|
|
@@ -2121,6 +2123,19 @@ interface ListTableRowSelectorOptions {
|
|
|
2121
2123
|
*/
|
|
2122
2124
|
width?: number;
|
|
2123
2125
|
}
|
|
2126
|
+
/** 键盘活动单元格的边界导航配置。 */
|
|
2127
|
+
interface ListTableKeyboardNavigationOptions {
|
|
2128
|
+
/**
|
|
2129
|
+
* Tab / Shift+Tab 到行尾或行首时是否进入相邻行。
|
|
2130
|
+
* @default true
|
|
2131
|
+
*/
|
|
2132
|
+
tabWrap?: boolean;
|
|
2133
|
+
/**
|
|
2134
|
+
* ↑/↓ 到列首或列尾时是否进入相邻列。
|
|
2135
|
+
* @default true
|
|
2136
|
+
*/
|
|
2137
|
+
verticalWrap?: boolean;
|
|
2138
|
+
}
|
|
2124
2139
|
interface ListTableImagePreviewRequest {
|
|
2125
2140
|
src: string;
|
|
2126
2141
|
alt?: string;
|
|
@@ -2178,6 +2193,8 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
2178
2193
|
* @default "row"
|
|
2179
2194
|
*/
|
|
2180
2195
|
highlightMode?: ListTableHighlightMode;
|
|
2196
|
+
/** 键盘活动单元格的边界导航配置。 */
|
|
2197
|
+
keyboardNavigation?: ListTableKeyboardNavigationOptions;
|
|
2181
2198
|
/**
|
|
2182
2199
|
* 数据行高度。
|
|
2183
2200
|
*
|
|
@@ -2438,4 +2455,4 @@ interface ListTableValidationTarget {
|
|
|
2438
2455
|
columnKey: string;
|
|
2439
2456
|
}
|
|
2440
2457
|
|
|
2441
|
-
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnDraft, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAntdIconName, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableBuiltinIconName, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCSSProperties, type ListTableCacheCategory, type ListTableCachePreferences, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartData, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableConditionalFormatCondition, type ListTableConditionalFormatRule, type ListTableConditionalOperator, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableEmojiCellContent, type ListTableExperimentalOptions, type ListTableExportNameRequest, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGaugeChartCellContent, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationCSSProperties, type ListTablePaginationOptions, type ListTablePaginationStyleSlot, type ListTablePaginationStyles, type ListTablePerformanceMetric, type ListTablePieChartCellContent, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRadarChartCellContent, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarCSSProperties, type ListTableScrollbarOptions, type ListTableSearchMode, type ListTableSearchOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSorter, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableStyles, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTimelineCellContent, type ListTableTimelineItem, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableTreeSelectNode, type ListTableUiOptions, type ListTableUploadConfig, type ListTableUploadFile, type ListTableUploadRequest, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, getListTableStoredPageSize, listTableAntdIconNames, listTableBuiltinIconNames, listTableIconNames, resetListTableStoredColumnConfig };
|
|
2458
|
+
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnDraft, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAntdIconName, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableBuiltinIconName, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCSSProperties, type ListTableCacheCategory, type ListTableCachePreferences, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartData, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableConditionalFormatCondition, type ListTableConditionalFormatRule, type ListTableConditionalOperator, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableEmojiCellContent, type ListTableExperimentalOptions, type ListTableExportNameRequest, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGaugeChartCellContent, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableKeyboardNavigationOptions, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationCSSProperties, type ListTablePaginationOptions, type ListTablePaginationStyleSlot, type ListTablePaginationStyles, type ListTablePerformanceMetric, type ListTablePieChartCellContent, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRadarChartCellContent, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarCSSProperties, type ListTableScrollbarOptions, type ListTableSearchMode, type ListTableSearchOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSorter, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableStyles, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTimelineCellContent, type ListTableTimelineItem, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableTreeSelectNode, type ListTableUiOptions, type ListTableUploadConfig, type ListTableUploadFile, type ListTableUploadRequest, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, getListTableStoredPageSize, listTableAntdIconNames, listTableBuiltinIconNames, listTableIconNames, resetListTableStoredColumnConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1128,6 +1128,8 @@ interface ListTableColumn<RecordType = Record<string, unknown>> {
|
|
|
1128
1128
|
initialHide?: boolean;
|
|
1129
1129
|
/** 是否不在列设置中展示该列及其子列。 */
|
|
1130
1130
|
hideInSetting?: boolean;
|
|
1131
|
+
/** 是否参与文件导出;操作列默认不导出,可显式覆盖。 */
|
|
1132
|
+
exportable?: boolean;
|
|
1131
1133
|
/** 是否禁止用户通过列设置隐藏该列。 */
|
|
1132
1134
|
disableHide?: boolean;
|
|
1133
1135
|
ellipsis?: boolean;
|
|
@@ -2121,6 +2123,19 @@ interface ListTableRowSelectorOptions {
|
|
|
2121
2123
|
*/
|
|
2122
2124
|
width?: number;
|
|
2123
2125
|
}
|
|
2126
|
+
/** 键盘活动单元格的边界导航配置。 */
|
|
2127
|
+
interface ListTableKeyboardNavigationOptions {
|
|
2128
|
+
/**
|
|
2129
|
+
* Tab / Shift+Tab 到行尾或行首时是否进入相邻行。
|
|
2130
|
+
* @default true
|
|
2131
|
+
*/
|
|
2132
|
+
tabWrap?: boolean;
|
|
2133
|
+
/**
|
|
2134
|
+
* ↑/↓ 到列首或列尾时是否进入相邻列。
|
|
2135
|
+
* @default true
|
|
2136
|
+
*/
|
|
2137
|
+
verticalWrap?: boolean;
|
|
2138
|
+
}
|
|
2124
2139
|
interface ListTableImagePreviewRequest {
|
|
2125
2140
|
src: string;
|
|
2126
2141
|
alt?: string;
|
|
@@ -2178,6 +2193,8 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
2178
2193
|
* @default "row"
|
|
2179
2194
|
*/
|
|
2180
2195
|
highlightMode?: ListTableHighlightMode;
|
|
2196
|
+
/** 键盘活动单元格的边界导航配置。 */
|
|
2197
|
+
keyboardNavigation?: ListTableKeyboardNavigationOptions;
|
|
2181
2198
|
/**
|
|
2182
2199
|
* 数据行高度。
|
|
2183
2200
|
*
|
|
@@ -2438,4 +2455,4 @@ interface ListTableValidationTarget {
|
|
|
2438
2455
|
columnKey: string;
|
|
2439
2456
|
}
|
|
2440
2457
|
|
|
2441
|
-
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnDraft, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAntdIconName, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableBuiltinIconName, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCSSProperties, type ListTableCacheCategory, type ListTableCachePreferences, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartData, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableConditionalFormatCondition, type ListTableConditionalFormatRule, type ListTableConditionalOperator, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableEmojiCellContent, type ListTableExperimentalOptions, type ListTableExportNameRequest, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGaugeChartCellContent, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationCSSProperties, type ListTablePaginationOptions, type ListTablePaginationStyleSlot, type ListTablePaginationStyles, type ListTablePerformanceMetric, type ListTablePieChartCellContent, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRadarChartCellContent, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarCSSProperties, type ListTableScrollbarOptions, type ListTableSearchMode, type ListTableSearchOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSorter, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableStyles, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTimelineCellContent, type ListTableTimelineItem, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableTreeSelectNode, type ListTableUiOptions, type ListTableUploadConfig, type ListTableUploadFile, type ListTableUploadRequest, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, getListTableStoredPageSize, listTableAntdIconNames, listTableBuiltinIconNames, listTableIconNames, resetListTableStoredColumnConfig };
|
|
2458
|
+
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnDraft, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAntdIconName, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableBuiltinIconName, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCSSProperties, type ListTableCacheCategory, type ListTableCachePreferences, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartData, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableConditionalFormatCondition, type ListTableConditionalFormatRule, type ListTableConditionalOperator, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableEmojiCellContent, type ListTableExperimentalOptions, type ListTableExportNameRequest, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGaugeChartCellContent, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableKeyboardNavigationOptions, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationCSSProperties, type ListTablePaginationOptions, type ListTablePaginationStyleSlot, type ListTablePaginationStyles, type ListTablePerformanceMetric, type ListTablePieChartCellContent, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRadarChartCellContent, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarCSSProperties, type ListTableScrollbarOptions, type ListTableSearchMode, type ListTableSearchOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSorter, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableStyles, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTimelineCellContent, type ListTableTimelineItem, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableTreeSelectNode, type ListTableUiOptions, type ListTableUploadConfig, type ListTableUploadFile, type ListTableUploadRequest, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, getListTableStoredPageSize, listTableAntdIconNames, listTableBuiltinIconNames, listTableIconNames, resetListTableStoredColumnConfig };
|
package/dist/index.js
CHANGED
|
@@ -2112,7 +2112,7 @@ function createEmptySelection() {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
2114
|
function resolveAdjacentCellSelection(params) {
|
|
2115
|
-
const { selection, rowCount, columnKeys, direction } = params;
|
|
2115
|
+
const { selection, rowCount, columnKeys, direction, verticalWrap = true } = params;
|
|
2116
2116
|
if (selection.rowIndex == null || selection.columnKey == null || selection.rowIndex < 0 || selection.rowIndex >= rowCount) {
|
|
2117
2117
|
return null;
|
|
2118
2118
|
}
|
|
@@ -2121,6 +2121,10 @@ function resolveAdjacentCellSelection(params) {
|
|
|
2121
2121
|
return null;
|
|
2122
2122
|
}
|
|
2123
2123
|
if (direction === "up" || direction === "down") {
|
|
2124
|
+
const nextRowIndex = selection.rowIndex + (direction === "up" ? -1 : 1);
|
|
2125
|
+
if (!verticalWrap) {
|
|
2126
|
+
return nextRowIndex < 0 || nextRowIndex >= rowCount ? null : { rowIndex: nextRowIndex, columnKey: selection.columnKey };
|
|
2127
|
+
}
|
|
2124
2128
|
const flatIndex = columnIndex * rowCount + selection.rowIndex;
|
|
2125
2129
|
const nextFlatIndex = flatIndex + (direction === "up" ? -1 : 1);
|
|
2126
2130
|
const cellCount = rowCount * columnKeys.length;
|
|
@@ -2143,7 +2147,7 @@ function resolveAdjacentCellSelection(params) {
|
|
|
2143
2147
|
};
|
|
2144
2148
|
}
|
|
2145
2149
|
function resolveTabCellSelection(params) {
|
|
2146
|
-
const { selection, rowCount, columnKeys, reverse = false } = params;
|
|
2150
|
+
const { selection, rowCount, columnKeys, reverse = false, tabWrap = true } = params;
|
|
2147
2151
|
if (selection.rowIndex == null || selection.columnKey == null || selection.rowIndex < 0 || selection.rowIndex >= rowCount || columnKeys.length === 0) {
|
|
2148
2152
|
return null;
|
|
2149
2153
|
}
|
|
@@ -2151,6 +2155,13 @@ function resolveTabCellSelection(params) {
|
|
|
2151
2155
|
if (columnIndex < 0) {
|
|
2152
2156
|
return null;
|
|
2153
2157
|
}
|
|
2158
|
+
if (!tabWrap) {
|
|
2159
|
+
const nextColumnIndex = columnIndex + (reverse ? -1 : 1);
|
|
2160
|
+
return nextColumnIndex < 0 || nextColumnIndex >= columnKeys.length ? null : {
|
|
2161
|
+
rowIndex: selection.rowIndex,
|
|
2162
|
+
columnKey: columnKeys[nextColumnIndex]
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2154
2165
|
const flatIndex = selection.rowIndex * columnKeys.length + columnIndex;
|
|
2155
2166
|
const nextFlatIndex = flatIndex + (reverse ? -1 : 1);
|
|
2156
2167
|
const cellCount = rowCount * columnKeys.length;
|
|
@@ -8689,6 +8700,7 @@ function drawHeaderCell(params, cell, clipRect) {
|
|
|
8689
8700
|
rect: getHeaderSelectionRect(rect),
|
|
8690
8701
|
columnKey: cell.node.key,
|
|
8691
8702
|
controlType: params.rowSelection.type,
|
|
8703
|
+
cursor: params.rowSelection.disabled ? "not-allowed" : "pointer",
|
|
8692
8704
|
fixed: cell.node.fixed
|
|
8693
8705
|
});
|
|
8694
8706
|
}
|
|
@@ -8878,6 +8890,7 @@ function drawHeaderActions(params, rect, columnKey, visibilityState, fixed, visi
|
|
|
8878
8890
|
rect: hitRect,
|
|
8879
8891
|
columnKey,
|
|
8880
8892
|
actionType,
|
|
8893
|
+
cursor: "pointer",
|
|
8881
8894
|
visibilityState,
|
|
8882
8895
|
fixed
|
|
8883
8896
|
});
|
|
@@ -11077,7 +11090,7 @@ function drawBodySelectionContent(params) {
|
|
|
11077
11090
|
controlType: content.type,
|
|
11078
11091
|
contentIndex,
|
|
11079
11092
|
contentKey: content.key,
|
|
11080
|
-
cursor: content.disabled === true ? "not-allowed" : content.cursor ?? (content.onClick ? "pointer" : void 0)
|
|
11093
|
+
cursor: content.disabled === true ? "not-allowed" : content.cursor ?? (content.onClick || column.key === ROW_SELECTION_COLUMN_KEY ? "pointer" : void 0)
|
|
11081
11094
|
});
|
|
11082
11095
|
return controlRect.width;
|
|
11083
11096
|
}
|
|
@@ -11093,7 +11106,14 @@ function drawSelectionControl(ctx, rect, type, checked, disabled, indeterminate
|
|
|
11093
11106
|
ctx.fillStyle = fillColor;
|
|
11094
11107
|
ctx.strokeStyle = strokeColor;
|
|
11095
11108
|
ctx.lineWidth = 1.5;
|
|
11096
|
-
roundRectPath2(
|
|
11109
|
+
roundRectPath2(
|
|
11110
|
+
ctx,
|
|
11111
|
+
rect.x + 1,
|
|
11112
|
+
rect.y + 1,
|
|
11113
|
+
Math.max(rect.width - 2, 0),
|
|
11114
|
+
Math.max(rect.height - 2, 0),
|
|
11115
|
+
4
|
|
11116
|
+
);
|
|
11097
11117
|
ctx.fill();
|
|
11098
11118
|
ctx.stroke();
|
|
11099
11119
|
if (indeterminate) {
|
|
@@ -17968,9 +17988,7 @@ async function exportAllRowsTxtContent(params) {
|
|
|
17968
17988
|
});
|
|
17969
17989
|
}
|
|
17970
17990
|
async function exportAllRowsXlsxContent(params) {
|
|
17971
|
-
const columns = params.columns.filter(
|
|
17972
|
-
(column) => column.key !== ROW_SELECTION_COLUMN_KEY && column.key !== ROW_SELECTOR_COLUMN_KEY
|
|
17973
|
-
);
|
|
17991
|
+
const columns = params.columns.filter(isExportableColumn);
|
|
17974
17992
|
const footerRows = [];
|
|
17975
17993
|
if (params.includeSummary) {
|
|
17976
17994
|
const values = await computeSummaryValuesAsync({
|
|
@@ -18069,14 +18087,21 @@ function resolveProgressClipboardPercent(content) {
|
|
|
18069
18087
|
return Math.min(Math.max((content.value - min) / range * 100, 0), 100);
|
|
18070
18088
|
}
|
|
18071
18089
|
function buildExportColumns(columns) {
|
|
18072
|
-
return columns.filter(
|
|
18073
|
-
(column) => column.key !== ROW_SELECTION_COLUMN_KEY && column.key !== ROW_SELECTOR_COLUMN_KEY
|
|
18074
|
-
).map((column) => ({
|
|
18090
|
+
return columns.filter(isExportableColumn).map((column) => ({
|
|
18075
18091
|
key: column.key,
|
|
18076
18092
|
title: column.title ?? column.key,
|
|
18077
18093
|
value: (row, rowIndex) => getCellClipboardText(row, rowIndex, column)
|
|
18078
18094
|
}));
|
|
18079
18095
|
}
|
|
18096
|
+
function isExportableColumn(column) {
|
|
18097
|
+
if (column.key === ROW_SELECTION_COLUMN_KEY || column.key === ROW_SELECTOR_COLUMN_KEY || column.key === EXPAND_COLUMN_KEY) {
|
|
18098
|
+
return false;
|
|
18099
|
+
}
|
|
18100
|
+
if (column.exportable !== void 0) return column.exportable;
|
|
18101
|
+
return !(/^(?:action|actions|operate|operation|operations)$/i.test(column.key) || /^(?:操作|操作列|操作按钮|action|actions|operation|operations)$/i.test(
|
|
18102
|
+
column.title.trim()
|
|
18103
|
+
));
|
|
18104
|
+
}
|
|
18080
18105
|
function buildTableExportFileName(extension) {
|
|
18081
18106
|
const now2 = /* @__PURE__ */ new Date();
|
|
18082
18107
|
const stamp = [
|
|
@@ -18252,13 +18277,14 @@ var ListTableContentActionController = class {
|
|
|
18252
18277
|
* 异步导出全部原始数据为 XLSX。
|
|
18253
18278
|
*/
|
|
18254
18279
|
exportXlsx(options) {
|
|
18280
|
+
const includeSummary = options?.includeSummary ?? this.options.getSummaryVisible?.() ?? false;
|
|
18255
18281
|
options = { ...this.options.getOptions().exportOptions, ...options };
|
|
18256
18282
|
this.startExportTask(
|
|
18257
18283
|
(fileName) => exportAllRowsXlsxContent({
|
|
18258
18284
|
rows: this.options.getOptions().dataSource,
|
|
18259
18285
|
columns: this.options.getLeafColumns(),
|
|
18260
18286
|
...options,
|
|
18261
|
-
includeSummary
|
|
18287
|
+
includeSummary,
|
|
18262
18288
|
fileName: fileName ?? options?.fileName,
|
|
18263
18289
|
onProgress: (progress) => {
|
|
18264
18290
|
const fileLabel = progress.fileCount && progress.fileCount > 1 ? `\uFF08\u7B2C ${progress.fileIndex}/${progress.fileCount} \u4EFD\uFF09` : "";
|
|
@@ -19217,7 +19243,7 @@ function resolveScrollTopToRevealRow(params) {
|
|
|
19217
19243
|
if (frozenRows.top.rowIndexMap?.includes(rowIndex) || frozenRows.bottom.rowIndexMap?.includes(rowIndex)) {
|
|
19218
19244
|
return null;
|
|
19219
19245
|
}
|
|
19220
|
-
const scrollSectionIndex = frozenRows.scroll.rowIndexMap ? frozenRows.scroll.rowIndexMap.indexOf(rowIndex) : rowIndex;
|
|
19246
|
+
const scrollSectionIndex = frozenRows.scroll.dataRowIndexAligned ? rowIndex : frozenRows.scroll.rowIndexMap ? frozenRows.scroll.rowIndexMap.indexOf(rowIndex) : rowIndex;
|
|
19221
19247
|
if (scrollSectionIndex < 0) {
|
|
19222
19248
|
return null;
|
|
19223
19249
|
}
|
|
@@ -19460,7 +19486,7 @@ var ListTableEditingController = class {
|
|
|
19460
19486
|
});
|
|
19461
19487
|
const nextTop = resolveScrollTopToRevealRow({
|
|
19462
19488
|
rowIndex,
|
|
19463
|
-
rowCount: snapshot.visibleRows.length,
|
|
19489
|
+
rowCount: snapshot.frozenRows.scroll.dataRowIndexAligned ? snapshot.dataRowCount : snapshot.visibleRows.length,
|
|
19464
19490
|
rowHeight: snapshot.rowHeight,
|
|
19465
19491
|
bodyHeight: snapshot.bodyLayout.scrollBodyHeight,
|
|
19466
19492
|
scrollTop: scroll.top,
|
|
@@ -20165,6 +20191,7 @@ function drawSegmentRows(params, segment, columns, startRowIndex, endRowIndex, r
|
|
|
20165
20191
|
kind: "body",
|
|
20166
20192
|
rect,
|
|
20167
20193
|
columnKey: cell.column.key,
|
|
20194
|
+
cursor: cell.column.key === ROW_SELECTOR_COLUMN_KEY ? "pointer" : void 0,
|
|
20168
20195
|
rowIndex: cell.sourceRowIndex,
|
|
20169
20196
|
rowSpan: cell.rowSpan,
|
|
20170
20197
|
fixed: cell.column.fixed,
|
|
@@ -28441,11 +28468,19 @@ var ListTableEventController = class {
|
|
|
28441
28468
|
rowCount: this.host.getDisplayData().length,
|
|
28442
28469
|
columnKeys: this.host.leafColumns.filter((column) => !isSystemColumnKey(column.key)).map((column) => column.key)
|
|
28443
28470
|
};
|
|
28444
|
-
const target = direction ? resolveAdjacentCellSelection({
|
|
28471
|
+
const target = direction ? resolveAdjacentCellSelection({
|
|
28445
28472
|
...navigationParams,
|
|
28446
|
-
|
|
28473
|
+
direction,
|
|
28474
|
+
verticalWrap: this.host.options.keyboardNavigation?.verticalWrap
|
|
28475
|
+
}) : resolveTabCellSelection({
|
|
28476
|
+
...navigationParams,
|
|
28477
|
+
reverse: event.shiftKey,
|
|
28478
|
+
tabWrap: this.host.options.keyboardNavigation?.tabWrap
|
|
28447
28479
|
});
|
|
28448
28480
|
if (!target) {
|
|
28481
|
+
if (event.key === "Tab" && this.host.options.keyboardNavigation?.tabWrap === false) {
|
|
28482
|
+
event.preventDefault();
|
|
28483
|
+
}
|
|
28449
28484
|
return;
|
|
28450
28485
|
}
|
|
28451
28486
|
event.preventDefault();
|