@canvas-components/react-list-table 0.3.28 → 0.3.30

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/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, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
2
+ import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, 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, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, 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';
@@ -98,6 +98,25 @@ interface ReactListTableComponent {
98
98
  }
99
99
  declare const ReactListTable: ReactListTableComponent;
100
100
 
101
+ interface ExportDialogRow {
102
+ key: string;
103
+ title: string;
104
+ sortOrder: "default" | "ascend" | "descend";
105
+ sortIndex?: number;
106
+ sortPriority?: number;
107
+ summaryType: ListTableExportSummarySettings["type"];
108
+ showTypePrefix: "yes" | "no";
109
+ precision?: number;
110
+ roundingMode: ListTableExportSummarySettings["roundingMode"];
111
+ preserveTrailingZeros: "yes" | "no";
112
+ }
113
+ /** 使用 ReactListTable 承载大量导出列的弹窗。 */
114
+ declare function ReactListTableExportNameDialog({ request, onClose, renderTable, }: {
115
+ request: ListTableExportNameRequest;
116
+ onClose?: () => void;
117
+ renderTable: (props: ReactListTableProps<ExportDialogRow>) => ReactNode;
118
+ }): react.JSX.Element;
119
+
101
120
  /** ReactListTable 调试模式上下文属性。 */
102
121
  interface ReactListTableDebugProviderProps extends PropsWithChildren {
103
122
  enabled: boolean;
@@ -110,4 +129,4 @@ interface ReactListTableDebugProviderProps extends PropsWithChildren {
110
129
  */
111
130
  declare function ReactListTableDebugProvider(props: ReactListTableDebugProviderProps): react.JSX.Element;
112
131
 
113
- export { ReactListTable, type ReactListTableColumnType, type ReactListTableColumnsType, ReactListTableDebugProvider, type ReactListTableDebugProviderProps, type ReactListTableLocale, type ReactListTablePagination, type ReactListTableProps, type ReactListTableQuery, type ReactListTableRef, type ReactListTableRowSelection, type ReactListTableScrollConfig, type ReactListTableTableProps, type ReactListTableToolbarOptions };
132
+ export { ReactListTable, type ReactListTableColumnType, type ReactListTableColumnsType, ReactListTableDebugProvider, type ReactListTableDebugProviderProps, ReactListTableExportNameDialog, type ReactListTableLocale, type ReactListTablePagination, type ReactListTableProps, type ReactListTableQuery, type ReactListTableRef, type ReactListTableRowSelection, type ReactListTableScrollConfig, type ReactListTableTableProps, type ReactListTableToolbarOptions };
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, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
2
+ import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, 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, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableSorter, ListTableStyles, 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';
@@ -98,6 +98,25 @@ interface ReactListTableComponent {
98
98
  }
99
99
  declare const ReactListTable: ReactListTableComponent;
100
100
 
101
+ interface ExportDialogRow {
102
+ key: string;
103
+ title: string;
104
+ sortOrder: "default" | "ascend" | "descend";
105
+ sortIndex?: number;
106
+ sortPriority?: number;
107
+ summaryType: ListTableExportSummarySettings["type"];
108
+ showTypePrefix: "yes" | "no";
109
+ precision?: number;
110
+ roundingMode: ListTableExportSummarySettings["roundingMode"];
111
+ preserveTrailingZeros: "yes" | "no";
112
+ }
113
+ /** 使用 ReactListTable 承载大量导出列的弹窗。 */
114
+ declare function ReactListTableExportNameDialog({ request, onClose, renderTable, }: {
115
+ request: ListTableExportNameRequest;
116
+ onClose?: () => void;
117
+ renderTable: (props: ReactListTableProps<ExportDialogRow>) => ReactNode;
118
+ }): react.JSX.Element;
119
+
101
120
  /** ReactListTable 调试模式上下文属性。 */
102
121
  interface ReactListTableDebugProviderProps extends PropsWithChildren {
103
122
  enabled: boolean;
@@ -110,4 +129,4 @@ interface ReactListTableDebugProviderProps extends PropsWithChildren {
110
129
  */
111
130
  declare function ReactListTableDebugProvider(props: ReactListTableDebugProviderProps): react.JSX.Element;
112
131
 
113
- export { ReactListTable, type ReactListTableColumnType, type ReactListTableColumnsType, ReactListTableDebugProvider, type ReactListTableDebugProviderProps, type ReactListTableLocale, type ReactListTablePagination, type ReactListTableProps, type ReactListTableQuery, type ReactListTableRef, type ReactListTableRowSelection, type ReactListTableScrollConfig, type ReactListTableTableProps, type ReactListTableToolbarOptions };
132
+ export { ReactListTable, type ReactListTableColumnType, type ReactListTableColumnsType, ReactListTableDebugProvider, type ReactListTableDebugProviderProps, ReactListTableExportNameDialog, type ReactListTableLocale, type ReactListTablePagination, type ReactListTableProps, type ReactListTableQuery, type ReactListTableRef, type ReactListTableRowSelection, type ReactListTableScrollConfig, type ReactListTableTableProps, type ReactListTableToolbarOptions };