@canvas-components/react-list-table 0.3.76 → 0.3.78
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 +77 -0
- package/dist/index.cjs +1045 -245
- package/dist/index.d.cts +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +1045 -245
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { EXPAND_COLUMN, ListTableCSSProperties, ListTableCacheCategory, ListTableCachePreferences, ListTableConditionalFormatCondition, ListTableConditionalFormatRule, ListTableConditionalOperator, ListTableExternalValidationError, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, ListTableValidationErrorTarget, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
1
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableDensity, ListTable, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions, ListTableFreezeRowTarget, ListTableFrozenRow, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN, ListTableExportNameRequest, ListTableExportSummarySettings } from '@canvas-components/list-table';
|
|
2
|
+
export { EXPAND_COLUMN, FormulaAlignedOptions, FormulaBracket, FormulaMatrixOptions, FormulaNodeStyle, FormulaOperatorName, FormulaOperatorOptions, ListTableCSSProperties, ListTableCacheCategory, ListTableCachePreferences, ListTableConditionalFormatCondition, ListTableConditionalFormatRule, ListTableConditionalOperator, ListTableExternalValidationError, ListTableFormulaCellContent, ListTableFormulaInput, ListTableFormulaNode, ListTableHighlightApplyResult, ListTableHighlightOptions, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, ListTableValidationErrorTarget, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
4
3
|
import * as react from 'react';
|
|
5
4
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
6
5
|
import { ReactListTablePrintPreset } from '@canvas-components/print-design-plugin/list-table-print';
|
|
@@ -49,7 +48,7 @@ interface ReactListTableToolbarOptions {
|
|
|
49
48
|
exportOptions?: ListTableExportXlsxOptions;
|
|
50
49
|
onRefresh?: () => void;
|
|
51
50
|
/** 表格密度变化回调,支持超紧凑、紧凑、中等、宽松和自适应。 */
|
|
52
|
-
onDensityChange?: (density:
|
|
51
|
+
onDensityChange?: (density: ListTableDensity) => void;
|
|
53
52
|
/** 自定义导出行为;未配置时默认异步导出全量 XLSX 数据。 */
|
|
54
53
|
onExport?: () => void;
|
|
55
54
|
/** 自定义全屏节点,默认使用表格根容器。 */
|
|
@@ -60,6 +59,18 @@ interface ReactListTableToolbarOptions {
|
|
|
60
59
|
* React 表格实例透出方法。
|
|
61
60
|
*/
|
|
62
61
|
interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
62
|
+
/** 获取选中高亮模式与颜色。 */
|
|
63
|
+
/** 字体加载后显式刷新公式度量与行高。 */
|
|
64
|
+
refreshFormulaLayout: () => void;
|
|
65
|
+
getHighlightConfig: ListTable<RecordType>["getHighlightConfig"];
|
|
66
|
+
/** 更新选中高亮模式、颜色和缓存。 */
|
|
67
|
+
setHighlightConfig: ListTable<RecordType>["setHighlightConfig"];
|
|
68
|
+
/** 获取表格级重复项配置。 */
|
|
69
|
+
getDuplicateHighlightConfig: ListTable<RecordType>["getDuplicateHighlightConfig"];
|
|
70
|
+
/** 应用表格级重复项配置。 */
|
|
71
|
+
setDuplicateHighlightConfig: ListTable<RecordType>["setDuplicateHighlightConfig"];
|
|
72
|
+
/** 清除重复项高亮。 */
|
|
73
|
+
clearDuplicateHighlight: ListTable<RecordType>["clearDuplicateHighlight"];
|
|
63
74
|
/** 获取实时分页配置与外部恢复基线。 */
|
|
64
75
|
getPaginationConfig: ListTable<RecordType>["getPaginationConfig"];
|
|
65
76
|
/** 原子应用分页配置。 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { EXPAND_COLUMN, ListTableCSSProperties, ListTableCacheCategory, ListTableCachePreferences, ListTableConditionalFormatCondition, ListTableConditionalFormatRule, ListTableConditionalOperator, ListTableExternalValidationError, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, ListTableValidationErrorTarget, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
1
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableDensity, ListTable, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions, ListTableFreezeRowTarget, ListTableFrozenRow, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN, ListTableExportNameRequest, ListTableExportSummarySettings } from '@canvas-components/list-table';
|
|
2
|
+
export { EXPAND_COLUMN, FormulaAlignedOptions, FormulaBracket, FormulaMatrixOptions, FormulaNodeStyle, FormulaOperatorName, FormulaOperatorOptions, ListTableCSSProperties, ListTableCacheCategory, ListTableCachePreferences, ListTableConditionalFormatCondition, ListTableConditionalFormatRule, ListTableConditionalOperator, ListTableExternalValidationError, ListTableFormulaCellContent, ListTableFormulaInput, ListTableFormulaNode, ListTableHighlightApplyResult, ListTableHighlightOptions, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, ListTableValidationErrorTarget, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
4
3
|
import * as react from 'react';
|
|
5
4
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
6
5
|
import { ReactListTablePrintPreset } from '@canvas-components/print-design-plugin/list-table-print';
|
|
@@ -49,7 +48,7 @@ interface ReactListTableToolbarOptions {
|
|
|
49
48
|
exportOptions?: ListTableExportXlsxOptions;
|
|
50
49
|
onRefresh?: () => void;
|
|
51
50
|
/** 表格密度变化回调,支持超紧凑、紧凑、中等、宽松和自适应。 */
|
|
52
|
-
onDensityChange?: (density:
|
|
51
|
+
onDensityChange?: (density: ListTableDensity) => void;
|
|
53
52
|
/** 自定义导出行为;未配置时默认异步导出全量 XLSX 数据。 */
|
|
54
53
|
onExport?: () => void;
|
|
55
54
|
/** 自定义全屏节点,默认使用表格根容器。 */
|
|
@@ -60,6 +59,18 @@ interface ReactListTableToolbarOptions {
|
|
|
60
59
|
* React 表格实例透出方法。
|
|
61
60
|
*/
|
|
62
61
|
interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
62
|
+
/** 获取选中高亮模式与颜色。 */
|
|
63
|
+
/** 字体加载后显式刷新公式度量与行高。 */
|
|
64
|
+
refreshFormulaLayout: () => void;
|
|
65
|
+
getHighlightConfig: ListTable<RecordType>["getHighlightConfig"];
|
|
66
|
+
/** 更新选中高亮模式、颜色和缓存。 */
|
|
67
|
+
setHighlightConfig: ListTable<RecordType>["setHighlightConfig"];
|
|
68
|
+
/** 获取表格级重复项配置。 */
|
|
69
|
+
getDuplicateHighlightConfig: ListTable<RecordType>["getDuplicateHighlightConfig"];
|
|
70
|
+
/** 应用表格级重复项配置。 */
|
|
71
|
+
setDuplicateHighlightConfig: ListTable<RecordType>["setDuplicateHighlightConfig"];
|
|
72
|
+
/** 清除重复项高亮。 */
|
|
73
|
+
clearDuplicateHighlight: ListTable<RecordType>["clearDuplicateHighlight"];
|
|
63
74
|
/** 获取实时分页配置与外部恢复基线。 */
|
|
64
75
|
getPaginationConfig: ListTable<RecordType>["getPaginationConfig"];
|
|
65
76
|
/** 原子应用分页配置。 */
|