@canvas-components/react-list-table 0.3.73 → 0.3.75
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 +38 -1
- package/dist/index.cjs +1880 -180
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +1883 -183
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _canvas_components_list_table from '@canvas-components/list-table';
|
|
2
|
-
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions,
|
|
2
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTable, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions, ListTableFreezeRowTarget, ListTableFrozenRow, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN, ListTableExportNameRequest, ListTableExportSummarySettings } from '@canvas-components/list-table';
|
|
3
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';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
@@ -60,6 +60,10 @@ interface ReactListTableToolbarOptions {
|
|
|
60
60
|
* React 表格实例透出方法。
|
|
61
61
|
*/
|
|
62
62
|
interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
63
|
+
/** 获取实时分页配置与外部恢复基线。 */
|
|
64
|
+
getPaginationConfig: ListTable<RecordType>["getPaginationConfig"];
|
|
65
|
+
/** 原子应用分页配置。 */
|
|
66
|
+
setPaginationConfig: ListTable<RecordType>["setPaginationConfig"];
|
|
63
67
|
/** 获取当前原始数据的数组浅拷贝,包含实例内编辑后的记录。 */
|
|
64
68
|
getDataSource: () => RecordType[];
|
|
65
69
|
/** 获取过滤并排序后的完整数据浅拷贝;不受分页影响,查询期间返回已有异步结果或原始数据。 */
|
|
@@ -69,6 +73,11 @@ interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
|
69
73
|
clearValidationErrors: (targets?: ListTableValidationErrorTarget[]) => void;
|
|
70
74
|
exportXlsx: (options?: ListTableExportXlsxOptions) => void;
|
|
71
75
|
scrollTo: (options: ListTableScrollToOptions) => void;
|
|
76
|
+
freezeRow: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
77
|
+
freezeRows: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
78
|
+
unfreezeRow: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
79
|
+
unfreezeRows: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
80
|
+
getFrozenRows: () => ListTableFrozenRow[];
|
|
72
81
|
getDebugSnapshot: () => ReturnType<ListTable<RecordType>["getDebugSnapshot"]>;
|
|
73
82
|
resetSorter: () => void;
|
|
74
83
|
resetFilter: () => void;
|
|
@@ -80,7 +89,7 @@ interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
|
80
89
|
retryQuery: () => boolean;
|
|
81
90
|
}
|
|
82
91
|
/**
|
|
83
|
-
*
|
|
92
|
+
* 表格 props 类型别名。
|
|
84
93
|
*/
|
|
85
94
|
type ReactListTableTableProps<RecordType = Record<string, unknown>> = ReactListTableProps<RecordType>;
|
|
86
95
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _canvas_components_list_table from '@canvas-components/list-table';
|
|
2
|
-
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions,
|
|
2
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTable, ListTableExternalValidationError, ListTableValidationErrorTarget, ListTableScrollToOptions, ListTableFreezeRowTarget, ListTableFrozenRow, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN, ListTableExportNameRequest, ListTableExportSummarySettings } from '@canvas-components/list-table';
|
|
3
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';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
@@ -60,6 +60,10 @@ interface ReactListTableToolbarOptions {
|
|
|
60
60
|
* React 表格实例透出方法。
|
|
61
61
|
*/
|
|
62
62
|
interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
63
|
+
/** 获取实时分页配置与外部恢复基线。 */
|
|
64
|
+
getPaginationConfig: ListTable<RecordType>["getPaginationConfig"];
|
|
65
|
+
/** 原子应用分页配置。 */
|
|
66
|
+
setPaginationConfig: ListTable<RecordType>["setPaginationConfig"];
|
|
63
67
|
/** 获取当前原始数据的数组浅拷贝,包含实例内编辑后的记录。 */
|
|
64
68
|
getDataSource: () => RecordType[];
|
|
65
69
|
/** 获取过滤并排序后的完整数据浅拷贝;不受分页影响,查询期间返回已有异步结果或原始数据。 */
|
|
@@ -69,6 +73,11 @@ interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
|
69
73
|
clearValidationErrors: (targets?: ListTableValidationErrorTarget[]) => void;
|
|
70
74
|
exportXlsx: (options?: ListTableExportXlsxOptions) => void;
|
|
71
75
|
scrollTo: (options: ListTableScrollToOptions) => void;
|
|
76
|
+
freezeRow: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
77
|
+
freezeRows: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
78
|
+
unfreezeRow: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
79
|
+
unfreezeRows: (targets: ListTableFreezeRowTarget | ListTableFreezeRowTarget[]) => void;
|
|
80
|
+
getFrozenRows: () => ListTableFrozenRow[];
|
|
72
81
|
getDebugSnapshot: () => ReturnType<ListTable<RecordType>["getDebugSnapshot"]>;
|
|
73
82
|
resetSorter: () => void;
|
|
74
83
|
resetFilter: () => void;
|
|
@@ -80,7 +89,7 @@ interface ReactListTableRef<RecordType = Record<string, unknown>> {
|
|
|
80
89
|
retryQuery: () => boolean;
|
|
81
90
|
}
|
|
82
91
|
/**
|
|
83
|
-
*
|
|
92
|
+
* 表格 props 类型别名。
|
|
84
93
|
*/
|
|
85
94
|
type ReactListTableTableProps<RecordType = Record<string, unknown>> = ReactListTableProps<RecordType>;
|
|
86
95
|
/**
|