foggy-data-viewer 1.0.1-beta.28 → 1.0.1-beta.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.
@@ -73,6 +73,10 @@ type __VLS_Slots = {
73
73
  onCommit: (val: SliceRequestDef[] | null) => void;
74
74
  }) => unknown;
75
75
  };
76
+ interface ClearSelectionOptions {
77
+ emitChange?: boolean;
78
+ }
79
+ declare function clearTableSelection(options?: ClearSelectionOptions): void;
76
80
  declare function getAllFilterSlices(): SliceRequestDef[];
77
81
  declare function updateFilter(columnName: string, value: SliceRequestDef[] | null): void;
78
82
  declare function resetPagination(): void;
@@ -91,7 +95,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
91
95
  /** 获取当前选中行数量 */
92
96
  getSelectedCount: () => number;
93
97
  /** 清空选中行 */
94
- clearSelection: () => void;
98
+ clearSelection: typeof clearTableSelection;
95
99
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
96
100
  "page-change": (page: number, size: number) => any;
97
101
  "sort-change": (field: string, order: "asc" | "desc") => any;
@@ -67,14 +67,18 @@ interface SearchToolbarExpose {
67
67
  clearFilters: () => void;
68
68
  getFilters: () => SliceRequestDef[];
69
69
  }
70
+ interface ClearSelectionOptions {
71
+ emitChange?: boolean;
72
+ }
70
73
  interface DataTableExpose {
71
74
  resetPagination: () => void;
72
75
  clearFilters: () => void;
73
76
  getGridInstance: () => unknown;
74
77
  getSelectedRows: () => Record<string, unknown>[];
75
78
  getSelectedCount: () => number;
76
- clearSelection: () => void;
79
+ clearSelection: (options?: ClearSelectionOptions) => void;
77
80
  }
81
+ declare function clearSelectionState(options?: ClearSelectionOptions): void;
78
82
  declare function searchQueryPanel(): void;
79
83
  declare function resetQueryPanel(): void;
80
84
  declare function getListViewState(): ListViewState;
@@ -130,9 +134,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
130
134
  /** 重置分页 */
131
135
  resetPagination: () => void;
132
136
  /** 刷新数据(仅 Schema 模式) */
133
- refresh: () => void;
137
+ refresh: () => Promise<void>;
134
138
  /** 重新加载(重置分页后刷新,仅 Schema 模式) */
135
- reload: () => void;
139
+ reload: () => Promise<void>;
136
140
  /** 注册查询钩子(运行时) */
137
141
  addQueryHook: <N extends import("@/types").QueryHookName>(name: N, fn: {
138
142
  onBeforeQuery: import("@/types").BeforeQueryHookFn;
@@ -150,7 +154,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
150
154
  /** 获取当前选中行数量(代理 DataTable) */
151
155
  getSelectedCount: () => number;
152
156
  /** 清空选中行(代理 DataTable) */
153
- clearSelection: () => void;
157
+ clearSelection: typeof clearSelectionState;
154
158
  /** 获取 useTableQuery 实例(高级用法) */
155
159
  getQuery: () => import("./composables/useTableQuery").UseTableQueryReturn;
156
160
  /** 获取当前列表视图状态(用于保存自定义列表) */
@@ -10,7 +10,7 @@ export declare function useTableSummary(columns: Ref<ColumnSchema[]>): {
10
10
  generateFooterData: (visibleColumns: {
11
11
  field?: string;
12
12
  type?: string;
13
- }[], selectedSummary: Record<string, unknown>) => (string | number | null)[][];
13
+ }[], selectedSummary: Record<string, unknown>, fallbackTotal?: number) => (string | number | null)[][];
14
14
  setServerSummary: (data: Record<string, unknown> | null) => void;
15
15
  formatValue: (value: unknown, type?: string) => string;
16
16
  };