bilitoolkit-ui 0.0.1 → 0.0.3

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.
Files changed (47) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +1 -1
  3. package/dist/bilitoolkit-ui.css +1 -6
  4. package/dist/common.d.ts +26 -0
  5. package/dist/common.js +22 -0
  6. package/dist/favicon.ico +0 -0
  7. package/dist/index.d.ts +1445 -28
  8. package/dist/index.js +1472 -0
  9. package/dist/styles/animations.scss +9 -0
  10. package/dist/styles/mixins.scss +36 -13
  11. package/package.json +40 -40
  12. package/dist/api/toolkit-api.d.ts +0 -2
  13. package/dist/bilitoolkit-ui.js +0 -117707
  14. package/dist/bilitoolkit-ui.umd.cjs +0 -85
  15. package/dist/common/ui-constants.d.ts +0 -9
  16. package/dist/components/bili/BiliAccountCard.vue.d.ts +0 -18
  17. package/dist/components/bili/types.d.ts +0 -7
  18. package/dist/components/common/AppIcon.vue.d.ts +0 -9
  19. package/dist/components/common/AppTooltip.vue.d.ts +0 -25
  20. package/dist/components/common/ExternalLink.vue.d.ts +0 -20
  21. package/dist/components/common/IconButton.vue.d.ts +0 -27
  22. package/dist/components/common/IconLabel.vue.d.ts +0 -20
  23. package/dist/components/common/LogPrint.vue.d.ts +0 -5
  24. package/dist/components/dialog/countdown/CountdownDialog.vue.d.ts +0 -22
  25. package/dist/components/dialog/countdown/types.d.ts +0 -11
  26. package/dist/components/dialog/countdown/useCountdown.d.ts +0 -9
  27. package/dist/components/dialog/loading/LoadingDialog.vue.d.ts +0 -16
  28. package/dist/components/dialog/loading/loadingService.d.ts +0 -12
  29. package/dist/components/dialog/loading/types.d.ts +0 -21
  30. package/dist/components/plugin/PluginMenuItem.vue.d.ts +0 -3
  31. package/dist/components/plugin/PluginMenus.vue.d.ts +0 -25
  32. package/dist/components/plugin/PluginPageContent.vue.d.ts +0 -17
  33. package/dist/components/plugin/PluginPageHeader.vue.d.ts +0 -7
  34. package/dist/components/plugin/types.d.ts +0 -12
  35. package/dist/components/settings/SettingGroup.vue.d.ts +0 -20
  36. package/dist/components/settings/SettingItem.vue.d.ts +0 -22
  37. package/dist/composables/useLoadingData.d.ts +0 -4
  38. package/dist/main.d.ts +0 -0
  39. package/dist/stores/app-theme.d.ts +0 -31
  40. package/dist/stores/selected-account.d.ts +0 -26
  41. package/dist/stores/test-data.d.ts +0 -70
  42. package/dist/test/menus.d.ts +0 -2
  43. package/dist/test/user.d.ts +0 -12
  44. package/dist/ui.d.ts +0 -10
  45. package/dist/utils/app-utils.d.ts +0 -20
  46. package/dist/utils/theme-utils.d.ts +0 -10
  47. package/dist/views/HomeView.vue.d.ts +0 -2
package/dist/index.d.ts CHANGED
@@ -1,28 +1,1445 @@
1
- export * from './ui';
2
- export * from './utils/app-utils';
3
- export * from './utils/theme-utils';
4
- export * from './stores/test-data.ts';
5
- export * from './stores/app-theme.ts';
6
- export * from './stores/selected-account.ts';
7
- export { useLoadingData } from './composables/useLoadingData';
8
- export { default as SettingGroup } from './components/settings/SettingGroup.vue';
9
- export { default as SettingItem } from './components/settings/SettingItem.vue';
10
- export * from './components/dialog/countdown/types';
11
- export * from './components/dialog/countdown/useCountdown';
12
- export { default as CountdownDialog } from './components/dialog/countdown/CountdownDialog.vue';
13
- export * from './components/dialog/loading/types';
14
- export * from './components/dialog/loading/loadingService';
15
- export { default as LoadingDialog } from './components/dialog/loading/LoadingDialog.vue';
16
- export { default as AppIcon } from './components/common/AppIcon.vue';
17
- export { default as AppTooltip } from './components/common/AppTooltip.vue';
18
- export { default as IconButton } from './components/common/IconButton.vue';
19
- export { default as IconLabel } from './components/common/IconLabel.vue';
20
- export { default as ExternalLink } from './components/common/ExternalLink.vue';
21
- export { default as LogPrint } from './components/common/LogPrint.vue';
22
- export * from './components/bili/types.ts';
23
- export { default as BiliAccountCard } from './components/bili/BiliAccountCard.vue';
24
- export * from './components/plugin/types';
25
- export { default as PluginMenuItem } from './components/plugin/PluginMenuItem.vue';
26
- export { default as PluginMenus } from './components/plugin/PluginMenus.vue';
27
- export { default as PluginPageHeader } from './components/plugin/PluginPageHeader.vue';
28
- export { default as PluginPageContent } from './components/plugin/PluginPageContent.vue';
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { AppThemeBackgroundMode } from 'bilitoolkit-types';
4
+ import { AppThemeMode } from 'bilitoolkit-types';
5
+ import { AppThemeState } from 'bilitoolkit-types';
6
+ import { ComponentCustomProps } from 'vue';
7
+ import { ComponentOptionsMixin } from 'vue';
8
+ import { ComponentProvideOptions } from 'vue';
9
+ import { ComputedRef } from 'vue';
10
+ import { DebouncedFunc } from 'lodash';
11
+ import { default as default_2 } from 'element-plus/es/components/table/src/table-layout.mjs';
12
+ import { DefineComponent } from 'vue';
13
+ import { ElMessageBoxOptions } from 'element-plus';
14
+ import { Filter } from 'element-plus';
15
+ import { MaybeRefOrGetter } from 'vue';
16
+ import { Pinia } from 'pinia';
17
+ import { PublicProps } from 'vue';
18
+ import { Ref } from 'vue';
19
+ import { RenderExpanded } from 'element-plus/es/components/table/src/table/defaults.mjs';
20
+ import { ShallowRef } from 'vue';
21
+ import { ShallowUnwrapRef } from 'vue';
22
+ import { Sort } from 'element-plus';
23
+ import { StoreDefinition } from 'pinia';
24
+ import { StoreFilter } from 'element-plus/es/components/table/src/store/index.mjs';
25
+ import { Table } from 'element-plus';
26
+ import { TableColumnCtx } from 'element-plus';
27
+ import { TableSortOrder } from 'element-plus/es/components/table/src/table/defaults.mjs';
28
+ import { ToolkitApi } from 'bilitoolkit-types';
29
+ import { Translator } from 'element-plus';
30
+ import { TreeData } from 'element-plus/es/components/table/src/store/tree.mjs';
31
+ import { UnwrapRefSimple } from '@vue/reactivity';
32
+ import { UserInfo } from '@ybgnb/bili-api';
33
+ import { UserInfoWithCookie } from '@ybgnb/bili-api';
34
+ import { UseTooltipProps } from 'element-plus';
35
+ import { VNode } from 'vue';
36
+ import { VNodeProps } from 'vue';
37
+
38
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
39
+
40
+ declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+
42
+ declare const __VLS_component_3: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
43
+ lines: number;
44
+ ellipsis: "right" | "left";
45
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
46
+ refContent: HTMLDivElement;
47
+ }, HTMLDivElement>;
48
+
49
+ declare const __VLS_component_4: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
50
+
51
+ declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
52
+
53
+ declare const __VLS_component_6: DefineComponent<BiliUserCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BiliUserCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
54
+
55
+ declare const __VLS_component_7: DefineComponent<PluginMenusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
+ handleSelect: (menu: PluginMenuData) => any;
57
+ }, string, PublicProps, Readonly<PluginMenusProps> & Readonly<{
58
+ onHandleSelect?: ((menu: PluginMenuData) => any) | undefined;
59
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
60
+
61
+ declare const __VLS_component_8: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
62
+
63
+ declare type __VLS_PrettifyLocal<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
66
+
67
+ declare type __VLS_PrettifyLocal_2<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+
71
+ declare type __VLS_Props = {
72
+ name: string;
73
+ };
74
+
75
+ declare type __VLS_Props_2 = {
76
+ title: string;
77
+ desc?: string;
78
+ iconClass?: string;
79
+ };
80
+
81
+ declare type __VLS_Props_3 = CountdownDialogProps;
82
+
83
+ declare type __VLS_Props_4 = PageRangeDialogProps;
84
+
85
+ declare type __VLS_Props_5 = LoadingDialogProps;
86
+
87
+ /**
88
+ * remix 图标
89
+ * 根据应用主题自动切换图标类型
90
+ */
91
+ declare type __VLS_Props_6 = {
92
+ icon: string;
93
+ };
94
+
95
+ declare type __VLS_Props_7 = {
96
+ icon: string;
97
+ };
98
+
99
+ declare type __VLS_Props_8 = {
100
+ url: string;
101
+ };
102
+
103
+ declare type __VLS_Props_9 = {
104
+ user: Pick<UserInfoWithCookie, 'mid' | 'face' | 'name'>;
105
+ };
106
+
107
+ declare type __VLS_PublicProps = {
108
+ modelValue: boolean;
109
+ } & __VLS_Props_3;
110
+
111
+ declare type __VLS_PublicProps_2 = {
112
+ modelValue: boolean;
113
+ } & __VLS_Props_4;
114
+
115
+ declare type __VLS_PublicProps_3 = {
116
+ modelValue: boolean;
117
+ } & __VLS_Props_5;
118
+
119
+ declare function __VLS_template(): {
120
+ attrs: Partial<{}>;
121
+ slots: {
122
+ default?(_: {}): any;
123
+ };
124
+ refs: {};
125
+ rootEl: HTMLDivElement;
126
+ };
127
+
128
+ declare function __VLS_template_2(): {
129
+ attrs: Partial<{}>;
130
+ slots: {
131
+ default?(_: {}): any;
132
+ };
133
+ refs: {};
134
+ rootEl: HTMLDivElement;
135
+ };
136
+
137
+ declare function __VLS_template_3(): {
138
+ attrs: Partial<{}>;
139
+ slots: {
140
+ tooltipContent?(_: {}): any;
141
+ default?(_: {}): any;
142
+ };
143
+ refs: {
144
+ refContent: HTMLDivElement;
145
+ };
146
+ rootEl: HTMLDivElement;
147
+ };
148
+
149
+ declare function __VLS_template_4(): {
150
+ attrs: Partial<{}>;
151
+ slots: {
152
+ default?(_: {}): any;
153
+ };
154
+ refs: {};
155
+ rootEl: HTMLDivElement;
156
+ };
157
+
158
+ declare function __VLS_template_5(): {
159
+ attrs: Partial<{}>;
160
+ slots: {
161
+ default?(_: {}): any;
162
+ };
163
+ refs: {};
164
+ rootEl: HTMLSpanElement;
165
+ };
166
+
167
+ declare function __VLS_template_6(): {
168
+ attrs: Partial<{}>;
169
+ slots: {
170
+ default?(_: {}): any;
171
+ };
172
+ refs: {};
173
+ rootEl: HTMLDivElement;
174
+ };
175
+
176
+ declare function __VLS_template_7(): {
177
+ attrs: Partial<{}>;
178
+ slots: {
179
+ 'left-item'?(_: {}): any;
180
+ left?(_: {}): any;
181
+ 'right-item'?(_: {}): any;
182
+ right?(_: {}): any;
183
+ };
184
+ refs: {};
185
+ rootEl: any;
186
+ };
187
+
188
+ declare function __VLS_template_8(): {
189
+ attrs: Partial<{}>;
190
+ slots: {
191
+ default?(_: {}): any;
192
+ };
193
+ refs: {};
194
+ rootEl: HTMLDivElement;
195
+ };
196
+
197
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
198
+
199
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
200
+
201
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
202
+
203
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
204
+
205
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
206
+
207
+ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
208
+
209
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
210
+
211
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
212
+
213
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
214
+ new (): {
215
+ $slots: S;
216
+ };
217
+ };
218
+
219
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
220
+ new (): {
221
+ $slots: S;
222
+ };
223
+ };
224
+
225
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
226
+ new (): {
227
+ $slots: S;
228
+ };
229
+ };
230
+
231
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
232
+ new (): {
233
+ $slots: S;
234
+ };
235
+ };
236
+
237
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
238
+ new (): {
239
+ $slots: S;
240
+ };
241
+ };
242
+
243
+ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
244
+ new (): {
245
+ $slots: S;
246
+ };
247
+ };
248
+
249
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
250
+ new (): {
251
+ $slots: S;
252
+ };
253
+ };
254
+
255
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
256
+ new (): {
257
+ $slots: S;
258
+ };
259
+ };
260
+
261
+ declare function addLog(msg: string): void;
262
+
263
+ declare const AppIcon_2: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
264
+ export { AppIcon_2 as AppIcon }
265
+
266
+ /**
267
+ * APP 全局加载框
268
+ */
269
+ export declare const AppLoadingDialog: {
270
+ /**
271
+ * 显示,返回一个Promise,解析为是否成功,false为用户取消
272
+ * @param options
273
+ */
274
+ show(options?: Omit<GlobalLoadingDialogProps, "onCancel">): Promise<boolean>;
275
+ hide(): void;
276
+ };
277
+
278
+ export declare type AppThemeCssVars = Record<string, string>;
279
+
280
+ declare const AppTooltip_2: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
281
+ export { AppTooltip_2 as AppTooltip }
282
+
283
+ /**
284
+ * 更新主题色的基本方法
285
+ */
286
+ export declare const baseUpdateThemeColor: (primaryColor: string, themeMode: AppThemeMode, isDark: boolean) => void;
287
+
288
+ declare const BiliUserCard_2: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
289
+ export { BiliUserCard_2 as BiliUserCard }
290
+
291
+ /**
292
+ * 用户卡片信息
293
+ */
294
+ export declare interface BiliUserCardProps {
295
+ user: UserInfo;
296
+ }
297
+
298
+ declare const BiliUserInfo_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
299
+ export { BiliUserInfo_2 as BiliUserInfo }
300
+
301
+ export declare const blackColor = "#000000";
302
+
303
+ declare const CountdownDialog_2: DefineComponent<__VLS_PublicProps, {
304
+ show: () => void;
305
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
306
+ onConfirm: (...args: any[]) => void;
307
+ onCancel: (...args: any[]) => void;
308
+ "update:modelValue": (value: boolean) => void;
309
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
310
+ onOnConfirm?: ((...args: any[]) => any) | undefined;
311
+ onOnCancel?: ((...args: any[]) => any) | undefined;
312
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
313
+ }>, {
314
+ title: string;
315
+ confirmBtnText: string;
316
+ cancelBtnText: string;
317
+ width: number;
318
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
319
+ export { CountdownDialog_2 as CountdownDialog }
320
+
321
+ /**
322
+ * 倒计时弹窗
323
+ */
324
+ export declare interface CountdownDialogProps {
325
+ content: string;
326
+ countdown: number;
327
+ title?: string;
328
+ confirmBtnText?: string;
329
+ cancelBtnText?: string;
330
+ width?: number;
331
+ }
332
+
333
+ declare const ExternalLink_2: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
334
+ export { ExternalLink_2 as ExternalLink }
335
+
336
+ export declare type FetchPage<D, Q = undefined> = Q extends undefined ? (pageParams: PageParams) => Promise<PageResult<D>> : (pageParams: PageParams, queryParams: Q) => Promise<PageResult<D>>;
337
+
338
+ /**
339
+ * 全局加载框的参数
340
+ */
341
+ export declare type GlobalLoadingDialogProps = {
342
+ autoCloseDelay?: number;
343
+ } & LoadingDialogProps;
344
+
345
+ /**
346
+ * 统一处理错误
347
+ */
348
+ export declare const handleError: (error: unknown) => void;
349
+
350
+ declare const IconButton_2: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
351
+ click: (...args: any[]) => void;
352
+ }, string, PublicProps, Readonly<IconButtonProps> & Readonly<{
353
+ onClick?: ((...args: any[]) => any) | undefined;
354
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
355
+ export { IconButton_2 as IconButton }
356
+
357
+ declare interface IconButtonProps {
358
+ confirm?: string;
359
+ icon: string;
360
+ tip?: string;
361
+ }
362
+
363
+ declare const IconLabel_2: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
364
+ export { IconLabel_2 as IconLabel }
365
+
366
+ /**
367
+ * 初始化应用主题
368
+ */
369
+ export declare const initAppTheme: () => Promise<void>;
370
+
371
+ /**
372
+ * 初始化UI
373
+ */
374
+ export declare const initBilitoolkitUi: (pinia: Pinia, options?: InitOptions) => Promise<{
375
+ install(_app: App): void;
376
+ }>;
377
+
378
+ declare interface InitOptions {
379
+ /** core 环境特有 */
380
+ appThemeDBName?: string;
381
+ /** core 环境特有 */
382
+ appThemeUpdateEvent?: string;
383
+ }
384
+
385
+ /**
386
+ * 初始化透明颜色变量集合
387
+ * @param primaryColor 主题色
388
+ * @param vars 目标保存对象
389
+ * @param preKey 透明色前缀
390
+ */
391
+ export declare const initTransparentColors: (primaryColor: string, vars: AppThemeCssVars, preKey: string) => void;
392
+
393
+ /**
394
+ * 是否为暗黑模式主题
395
+ * @param themeMode
396
+ */
397
+ export declare const isDarkTheme: (themeMode?: AppThemeMode) => Promise<boolean>;
398
+
399
+ declare const LoadingDialog_2: DefineComponent<__VLS_PublicProps_3, {
400
+ show: (options?: LoadingDialogProps) => void;
401
+ hide: () => void;
402
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
403
+ "update:modelValue": (value: boolean) => any;
404
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
405
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
406
+ }>, {
407
+ canCancel: boolean;
408
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
409
+ export { LoadingDialog_2 as LoadingDialog }
410
+
411
+ /**
412
+ * 加载框暴露的方法
413
+ */
414
+ export declare type LoadingDialogExposed = {
415
+ show: (options?: LoadingDialogProps) => void;
416
+ hide: () => void;
417
+ };
418
+
419
+ /**
420
+ * 加载框
421
+ */
422
+ export declare interface LoadingDialogProps {
423
+ canCancel?: boolean;
424
+ onCancel?: () => void;
425
+ loadingText?: string;
426
+ }
427
+
428
+ declare const LogPrint_2: DefineComponent< {}, {
429
+ addLog: typeof addLog;
430
+ reset: () => void;
431
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
432
+ logBoxRef: HTMLDivElement;
433
+ }, HTMLDivElement>;
434
+ export { LogPrint_2 as LogPrint }
435
+
436
+ export declare interface PageData {
437
+ pageNum: number;
438
+ pageSize: number;
439
+ totalPages: number;
440
+ total: number;
441
+ }
442
+
443
+ export declare type PageParams = {
444
+ pageSize: number;
445
+ pageNum: number;
446
+ };
447
+
448
+ declare const PageRangeDialog_2: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
449
+ confirm: (range: [number, number]) => any;
450
+ "update:modelValue": (value: boolean) => any;
451
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
452
+ onConfirm?: ((range: [number, number]) => any) | undefined;
453
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
454
+ }>, {
455
+ title: string;
456
+ confirmText: string;
457
+ cancelText: string;
458
+ defaultRange: [number, number];
459
+ minPage: number;
460
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
461
+ export { PageRangeDialog_2 as PageRangeDialog }
462
+
463
+ export declare interface PageRangeDialogProps {
464
+ title?: string;
465
+ defaultRange?: [number, number];
466
+ total?: number;
467
+ minPage?: number;
468
+ maxPage?: number;
469
+ pageSize: number;
470
+ confirmText?: string;
471
+ cancelText?: string;
472
+ }
473
+
474
+ export declare interface PageResult<D> extends PageData {
475
+ data: D[];
476
+ }
477
+
478
+ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
479
+ props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
480
+ readonly onSearch?: (() => any) | undefined;
481
+ readonly onReset?: (() => any) | undefined;
482
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
483
+ expose(exposed: ShallowUnwrapRef< {
484
+ loading: Ref<boolean, boolean>;
485
+ tableRef: Readonly<ShallowRef< {
486
+ ns: {
487
+ namespace: ComputedRef<string>;
488
+ b: (blockSuffix?: string) => string;
489
+ e: (element?: string) => string;
490
+ m: (modifier?: string) => string;
491
+ be: (blockSuffix?: string, element?: string) => string;
492
+ em: (element?: string, modifier?: string) => string;
493
+ bm: (blockSuffix?: string, modifier?: string) => string;
494
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
495
+ is: {
496
+ (name: string, state: boolean | undefined): string;
497
+ (name: string): string;
498
+ };
499
+ cssVar: (object: Record<string, string>) => Record<string, string>;
500
+ cssVarName: (name: string) => string;
501
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
502
+ cssVarBlockName: (name: string) => string;
503
+ };
504
+ layout: default_2<D>;
505
+ store: {
506
+ mutations: {
507
+ setData(states: {
508
+ _currentRowKey: Ref<string | null, string | null>;
509
+ currentRow: Ref<D | null, D | null>;
510
+ expandRowKeys: Ref<string[], string[]>;
511
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
512
+ indent: Ref<number, number>;
513
+ lazy: Ref<boolean, boolean>;
514
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
515
+ lazyColumnIdentifier: Ref<string, string>;
516
+ childrenColumnName: Ref<string, string>;
517
+ checkStrictly: Ref<boolean, boolean>;
518
+ expandRows: Ref<D[], D[]>;
519
+ defaultExpandAll: Ref<boolean, boolean>;
520
+ tableSize: Ref<any, any>;
521
+ rowKey: Ref<string | null, string | null>;
522
+ data: Ref<D[], D[]>;
523
+ _data: Ref<D[], D[]>;
524
+ isComplex: Ref<boolean, boolean>;
525
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
526
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
527
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
528
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
529
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
530
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
531
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
532
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
533
+ updateOrderFns: (() => void)[];
534
+ leafColumnsLength: Ref<number, number>;
535
+ fixedLeafColumnsLength: Ref<number, number>;
536
+ rightFixedLeafColumnsLength: Ref<number, number>;
537
+ isAllSelected: Ref<boolean, boolean>;
538
+ selection: Ref<D[], D[]>;
539
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
540
+ reserveSelection: Ref<boolean, boolean>;
541
+ selectOnIndeterminate: Ref<boolean, boolean>;
542
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
543
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
544
+ filters: Ref<StoreFilter, StoreFilter>;
545
+ filteredData: Ref<D[] | null, D[] | null>;
546
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
547
+ sortProp: Ref<string | null, string | null>;
548
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
549
+ hoverRow: Ref<D | null, D | null>;
550
+ }, data: D[]): void;
551
+ insertColumn(states: {
552
+ _currentRowKey: Ref<string | null, string | null>;
553
+ currentRow: Ref<D | null, D | null>;
554
+ expandRowKeys: Ref<string[], string[]>;
555
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
556
+ indent: Ref<number, number>;
557
+ lazy: Ref<boolean, boolean>;
558
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
559
+ lazyColumnIdentifier: Ref<string, string>;
560
+ childrenColumnName: Ref<string, string>;
561
+ checkStrictly: Ref<boolean, boolean>;
562
+ expandRows: Ref<D[], D[]>;
563
+ defaultExpandAll: Ref<boolean, boolean>;
564
+ tableSize: Ref<any, any>;
565
+ rowKey: Ref<string | null, string | null>;
566
+ data: Ref<D[], D[]>;
567
+ _data: Ref<D[], D[]>;
568
+ isComplex: Ref<boolean, boolean>;
569
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
570
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
571
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
572
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
573
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
574
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
575
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
576
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
577
+ updateOrderFns: (() => void)[];
578
+ leafColumnsLength: Ref<number, number>;
579
+ fixedLeafColumnsLength: Ref<number, number>;
580
+ rightFixedLeafColumnsLength: Ref<number, number>;
581
+ isAllSelected: Ref<boolean, boolean>;
582
+ selection: Ref<D[], D[]>;
583
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
584
+ reserveSelection: Ref<boolean, boolean>;
585
+ selectOnIndeterminate: Ref<boolean, boolean>;
586
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
587
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
588
+ filters: Ref<StoreFilter, StoreFilter>;
589
+ filteredData: Ref<D[] | null, D[] | null>;
590
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
591
+ sortProp: Ref<string | null, string | null>;
592
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
593
+ hoverRow: Ref<D | null, D | null>;
594
+ }, column: TableColumnCtx<D>, parent: TableColumnCtx<D>, updateColumnOrder: () => void): void;
595
+ updateColumnOrder(states: {
596
+ _currentRowKey: Ref<string | null, string | null>;
597
+ currentRow: Ref<D | null, D | null>;
598
+ expandRowKeys: Ref<string[], string[]>;
599
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
600
+ indent: Ref<number, number>;
601
+ lazy: Ref<boolean, boolean>;
602
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
603
+ lazyColumnIdentifier: Ref<string, string>;
604
+ childrenColumnName: Ref<string, string>;
605
+ checkStrictly: Ref<boolean, boolean>;
606
+ expandRows: Ref<D[], D[]>;
607
+ defaultExpandAll: Ref<boolean, boolean>;
608
+ tableSize: Ref<any, any>;
609
+ rowKey: Ref<string | null, string | null>;
610
+ data: Ref<D[], D[]>;
611
+ _data: Ref<D[], D[]>;
612
+ isComplex: Ref<boolean, boolean>;
613
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
614
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
615
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
616
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
617
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
618
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
619
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
620
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
621
+ updateOrderFns: (() => void)[];
622
+ leafColumnsLength: Ref<number, number>;
623
+ fixedLeafColumnsLength: Ref<number, number>;
624
+ rightFixedLeafColumnsLength: Ref<number, number>;
625
+ isAllSelected: Ref<boolean, boolean>;
626
+ selection: Ref<D[], D[]>;
627
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
628
+ reserveSelection: Ref<boolean, boolean>;
629
+ selectOnIndeterminate: Ref<boolean, boolean>;
630
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
631
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
632
+ filters: Ref<StoreFilter, StoreFilter>;
633
+ filteredData: Ref<D[] | null, D[] | null>;
634
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
635
+ sortProp: Ref<string | null, string | null>;
636
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
637
+ hoverRow: Ref<D | null, D | null>;
638
+ }, column: TableColumnCtx<D>): void;
639
+ removeColumn(states: {
640
+ _currentRowKey: Ref<string | null, string | null>;
641
+ currentRow: Ref<D | null, D | null>;
642
+ expandRowKeys: Ref<string[], string[]>;
643
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
644
+ indent: Ref<number, number>;
645
+ lazy: Ref<boolean, boolean>;
646
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
647
+ lazyColumnIdentifier: Ref<string, string>;
648
+ childrenColumnName: Ref<string, string>;
649
+ checkStrictly: Ref<boolean, boolean>;
650
+ expandRows: Ref<D[], D[]>;
651
+ defaultExpandAll: Ref<boolean, boolean>;
652
+ tableSize: Ref<any, any>;
653
+ rowKey: Ref<string | null, string | null>;
654
+ data: Ref<D[], D[]>;
655
+ _data: Ref<D[], D[]>;
656
+ isComplex: Ref<boolean, boolean>;
657
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
658
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
659
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
660
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
661
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
662
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
663
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
664
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
665
+ updateOrderFns: (() => void)[];
666
+ leafColumnsLength: Ref<number, number>;
667
+ fixedLeafColumnsLength: Ref<number, number>;
668
+ rightFixedLeafColumnsLength: Ref<number, number>;
669
+ isAllSelected: Ref<boolean, boolean>;
670
+ selection: Ref<D[], D[]>;
671
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
672
+ reserveSelection: Ref<boolean, boolean>;
673
+ selectOnIndeterminate: Ref<boolean, boolean>;
674
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
675
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
676
+ filters: Ref<StoreFilter, StoreFilter>;
677
+ filteredData: Ref<D[] | null, D[] | null>;
678
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
679
+ sortProp: Ref<string | null, string | null>;
680
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
681
+ hoverRow: Ref<D | null, D | null>;
682
+ }, column: TableColumnCtx<D>, parent: TableColumnCtx<D>, updateColumnOrder: () => void): void;
683
+ sort(states: {
684
+ _currentRowKey: Ref<string | null, string | null>;
685
+ currentRow: Ref<D | null, D | null>;
686
+ expandRowKeys: Ref<string[], string[]>;
687
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
688
+ indent: Ref<number, number>;
689
+ lazy: Ref<boolean, boolean>;
690
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
691
+ lazyColumnIdentifier: Ref<string, string>;
692
+ childrenColumnName: Ref<string, string>;
693
+ checkStrictly: Ref<boolean, boolean>;
694
+ expandRows: Ref<D[], D[]>;
695
+ defaultExpandAll: Ref<boolean, boolean>;
696
+ tableSize: Ref<any, any>;
697
+ rowKey: Ref<string | null, string | null>;
698
+ data: Ref<D[], D[]>;
699
+ _data: Ref<D[], D[]>;
700
+ isComplex: Ref<boolean, boolean>;
701
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
702
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
703
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
704
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
705
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
706
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
707
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
708
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
709
+ updateOrderFns: (() => void)[];
710
+ leafColumnsLength: Ref<number, number>;
711
+ fixedLeafColumnsLength: Ref<number, number>;
712
+ rightFixedLeafColumnsLength: Ref<number, number>;
713
+ isAllSelected: Ref<boolean, boolean>;
714
+ selection: Ref<D[], D[]>;
715
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
716
+ reserveSelection: Ref<boolean, boolean>;
717
+ selectOnIndeterminate: Ref<boolean, boolean>;
718
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
719
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
720
+ filters: Ref<StoreFilter, StoreFilter>;
721
+ filteredData: Ref<D[] | null, D[] | null>;
722
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
723
+ sortProp: Ref<string | null, string | null>;
724
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
725
+ hoverRow: Ref<D | null, D | null>;
726
+ }, options: Sort): void;
727
+ changeSortCondition(states: {
728
+ _currentRowKey: Ref<string | null, string | null>;
729
+ currentRow: Ref<D | null, D | null>;
730
+ expandRowKeys: Ref<string[], string[]>;
731
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
732
+ indent: Ref<number, number>;
733
+ lazy: Ref<boolean, boolean>;
734
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
735
+ lazyColumnIdentifier: Ref<string, string>;
736
+ childrenColumnName: Ref<string, string>;
737
+ checkStrictly: Ref<boolean, boolean>;
738
+ expandRows: Ref<D[], D[]>;
739
+ defaultExpandAll: Ref<boolean, boolean>;
740
+ tableSize: Ref<any, any>;
741
+ rowKey: Ref<string | null, string | null>;
742
+ data: Ref<D[], D[]>;
743
+ _data: Ref<D[], D[]>;
744
+ isComplex: Ref<boolean, boolean>;
745
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
746
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
747
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
748
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
749
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
750
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
751
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
752
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
753
+ updateOrderFns: (() => void)[];
754
+ leafColumnsLength: Ref<number, number>;
755
+ fixedLeafColumnsLength: Ref<number, number>;
756
+ rightFixedLeafColumnsLength: Ref<number, number>;
757
+ isAllSelected: Ref<boolean, boolean>;
758
+ selection: Ref<D[], D[]>;
759
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
760
+ reserveSelection: Ref<boolean, boolean>;
761
+ selectOnIndeterminate: Ref<boolean, boolean>;
762
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
763
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
764
+ filters: Ref<StoreFilter, StoreFilter>;
765
+ filteredData: Ref<D[] | null, D[] | null>;
766
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
767
+ sortProp: Ref<string | null, string | null>;
768
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
769
+ hoverRow: Ref<D | null, D | null>;
770
+ }, options: Sort): void;
771
+ filterChange(_states: {
772
+ _currentRowKey: Ref<string | null, string | null>;
773
+ currentRow: Ref<D | null, D | null>;
774
+ expandRowKeys: Ref<string[], string[]>;
775
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
776
+ indent: Ref<number, number>;
777
+ lazy: Ref<boolean, boolean>;
778
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
779
+ lazyColumnIdentifier: Ref<string, string>;
780
+ childrenColumnName: Ref<string, string>;
781
+ checkStrictly: Ref<boolean, boolean>;
782
+ expandRows: Ref<D[], D[]>;
783
+ defaultExpandAll: Ref<boolean, boolean>;
784
+ tableSize: Ref<any, any>;
785
+ rowKey: Ref<string | null, string | null>;
786
+ data: Ref<D[], D[]>;
787
+ _data: Ref<D[], D[]>;
788
+ isComplex: Ref<boolean, boolean>;
789
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
790
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
791
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
792
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
793
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
794
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
795
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
796
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
797
+ updateOrderFns: (() => void)[];
798
+ leafColumnsLength: Ref<number, number>;
799
+ fixedLeafColumnsLength: Ref<number, number>;
800
+ rightFixedLeafColumnsLength: Ref<number, number>;
801
+ isAllSelected: Ref<boolean, boolean>;
802
+ selection: Ref<D[], D[]>;
803
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
804
+ reserveSelection: Ref<boolean, boolean>;
805
+ selectOnIndeterminate: Ref<boolean, boolean>;
806
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
807
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
808
+ filters: Ref<StoreFilter, StoreFilter>;
809
+ filteredData: Ref<D[] | null, D[] | null>;
810
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
811
+ sortProp: Ref<string | null, string | null>;
812
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
813
+ hoverRow: Ref<D | null, D | null>;
814
+ }, options: Filter<D>): void;
815
+ toggleAllSelection(): void;
816
+ rowSelectedChanged(_states: {
817
+ _currentRowKey: Ref<string | null, string | null>;
818
+ currentRow: Ref<D | null, D | null>;
819
+ expandRowKeys: Ref<string[], string[]>;
820
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
821
+ indent: Ref<number, number>;
822
+ lazy: Ref<boolean, boolean>;
823
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
824
+ lazyColumnIdentifier: Ref<string, string>;
825
+ childrenColumnName: Ref<string, string>;
826
+ checkStrictly: Ref<boolean, boolean>;
827
+ expandRows: Ref<D[], D[]>;
828
+ defaultExpandAll: Ref<boolean, boolean>;
829
+ tableSize: Ref<any, any>;
830
+ rowKey: Ref<string | null, string | null>;
831
+ data: Ref<D[], D[]>;
832
+ _data: Ref<D[], D[]>;
833
+ isComplex: Ref<boolean, boolean>;
834
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
835
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
836
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
837
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
838
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
839
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
840
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
841
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
842
+ updateOrderFns: (() => void)[];
843
+ leafColumnsLength: Ref<number, number>;
844
+ fixedLeafColumnsLength: Ref<number, number>;
845
+ rightFixedLeafColumnsLength: Ref<number, number>;
846
+ isAllSelected: Ref<boolean, boolean>;
847
+ selection: Ref<D[], D[]>;
848
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
849
+ reserveSelection: Ref<boolean, boolean>;
850
+ selectOnIndeterminate: Ref<boolean, boolean>;
851
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
852
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
853
+ filters: Ref<StoreFilter, StoreFilter>;
854
+ filteredData: Ref<D[] | null, D[] | null>;
855
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
856
+ sortProp: Ref<string | null, string | null>;
857
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
858
+ hoverRow: Ref<D | null, D | null>;
859
+ }, row: D): void;
860
+ setHoverRow(states: {
861
+ _currentRowKey: Ref<string | null, string | null>;
862
+ currentRow: Ref<D | null, D | null>;
863
+ expandRowKeys: Ref<string[], string[]>;
864
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
865
+ indent: Ref<number, number>;
866
+ lazy: Ref<boolean, boolean>;
867
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
868
+ lazyColumnIdentifier: Ref<string, string>;
869
+ childrenColumnName: Ref<string, string>;
870
+ checkStrictly: Ref<boolean, boolean>;
871
+ expandRows: Ref<D[], D[]>;
872
+ defaultExpandAll: Ref<boolean, boolean>;
873
+ tableSize: Ref<any, any>;
874
+ rowKey: Ref<string | null, string | null>;
875
+ data: Ref<D[], D[]>;
876
+ _data: Ref<D[], D[]>;
877
+ isComplex: Ref<boolean, boolean>;
878
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
879
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
880
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
881
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
882
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
883
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
884
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
885
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
886
+ updateOrderFns: (() => void)[];
887
+ leafColumnsLength: Ref<number, number>;
888
+ fixedLeafColumnsLength: Ref<number, number>;
889
+ rightFixedLeafColumnsLength: Ref<number, number>;
890
+ isAllSelected: Ref<boolean, boolean>;
891
+ selection: Ref<D[], D[]>;
892
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
893
+ reserveSelection: Ref<boolean, boolean>;
894
+ selectOnIndeterminate: Ref<boolean, boolean>;
895
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
896
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
897
+ filters: Ref<StoreFilter, StoreFilter>;
898
+ filteredData: Ref<D[] | null, D[] | null>;
899
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
900
+ sortProp: Ref<string | null, string | null>;
901
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
902
+ hoverRow: Ref<D | null, D | null>;
903
+ }, row: D): void;
904
+ setCurrentRow(_states: {
905
+ _currentRowKey: Ref<string | null, string | null>;
906
+ currentRow: Ref<D | null, D | null>;
907
+ expandRowKeys: Ref<string[], string[]>;
908
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
909
+ indent: Ref<number, number>;
910
+ lazy: Ref<boolean, boolean>;
911
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
912
+ lazyColumnIdentifier: Ref<string, string>;
913
+ childrenColumnName: Ref<string, string>;
914
+ checkStrictly: Ref<boolean, boolean>;
915
+ expandRows: Ref<D[], D[]>;
916
+ defaultExpandAll: Ref<boolean, boolean>;
917
+ tableSize: Ref<any, any>;
918
+ rowKey: Ref<string | null, string | null>;
919
+ data: Ref<D[], D[]>;
920
+ _data: Ref<D[], D[]>;
921
+ isComplex: Ref<boolean, boolean>;
922
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
923
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
924
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
925
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
926
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
927
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
928
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
929
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
930
+ updateOrderFns: (() => void)[];
931
+ leafColumnsLength: Ref<number, number>;
932
+ fixedLeafColumnsLength: Ref<number, number>;
933
+ rightFixedLeafColumnsLength: Ref<number, number>;
934
+ isAllSelected: Ref<boolean, boolean>;
935
+ selection: Ref<D[], D[]>;
936
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
937
+ reserveSelection: Ref<boolean, boolean>;
938
+ selectOnIndeterminate: Ref<boolean, boolean>;
939
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
940
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
941
+ filters: Ref<StoreFilter, StoreFilter>;
942
+ filteredData: Ref<D[] | null, D[] | null>;
943
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
944
+ sortProp: Ref<string | null, string | null>;
945
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
946
+ hoverRow: Ref<D | null, D | null>;
947
+ }, row: D): void;
948
+ };
949
+ commit: (name: "sort" | "setData" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
950
+ updateTableScrollY: () => void;
951
+ assertRowKey: () => void;
952
+ updateColumns: () => void;
953
+ scheduleLayout: (needUpdateColumns?: boolean, immediate?: boolean) => void;
954
+ isSelected: (row: D) => boolean;
955
+ clearSelection: () => void;
956
+ cleanSelection: () => void;
957
+ getSelectionRows: () => D[];
958
+ getHalfSelectionRows: () => D[];
959
+ toggleRowSelection: (row: D, selected?: boolean, emitChange?: boolean, ignoreSelectable?: boolean) => void;
960
+ _toggleAllSelection: () => void;
961
+ toggleAllSelection: (() => void) | null;
962
+ updateAllSelected: () => void;
963
+ updateSelectionByChildren: (options?: {
964
+ emitChange?: boolean;
965
+ rowIndexMap?: Map<string, number>;
966
+ }) => void;
967
+ getRowIndeterminate: (row: D) => boolean;
968
+ updateFilters: (column: TableColumnCtx<D>, values: string[]) => Record<string, string[]>;
969
+ updateCurrentRow: (_currentRow: D) => void;
970
+ updateSort: (column: TableColumnCtx<D> | null, prop: string | null, order: TableSortOrder | null) => void;
971
+ execFilter: () => void;
972
+ execSort: () => void;
973
+ execQuery: (ignore?: {
974
+ filter: boolean;
975
+ } | undefined) => void;
976
+ clearFilter: (columnKeys?: string[] | string) => void;
977
+ clearSort: () => void;
978
+ toggleRowExpansion: (row: D, expanded?: boolean) => void;
979
+ setExpandRowKeysAdapter: (val: string[]) => void;
980
+ setCurrentRowKey: (key: string) => void;
981
+ toggleRowExpansionAdapter: (row: D, expanded?: boolean) => void;
982
+ isRowExpanded: (row: D) => boolean;
983
+ updateExpandRows: () => void;
984
+ updateCurrentRowData: () => void;
985
+ loadOrToggle: (row: D) => void;
986
+ updateTreeData: (ifChangeExpandRowKeys?: boolean, ifExpandAll?: boolean) => void;
987
+ updateKeyChildren: (key: string, data: D[]) => void;
988
+ states: {
989
+ _currentRowKey: Ref<string | null, string | null>;
990
+ currentRow: Ref<D | null, D | null>;
991
+ expandRowKeys: Ref<string[], string[]>;
992
+ treeData: Ref<Record<string, TreeData>, Record<string, TreeData>>;
993
+ indent: Ref<number, number>;
994
+ lazy: Ref<boolean, boolean>;
995
+ lazyTreeNodeMap: Ref<Record<string, D[]>, Record<string, D[]>>;
996
+ lazyColumnIdentifier: Ref<string, string>;
997
+ childrenColumnName: Ref<string, string>;
998
+ checkStrictly: Ref<boolean, boolean>;
999
+ expandRows: Ref<D[], D[]>;
1000
+ defaultExpandAll: Ref<boolean, boolean>;
1001
+ tableSize: Ref<any, any>;
1002
+ rowKey: Ref<string | null, string | null>;
1003
+ data: Ref<D[], D[]>;
1004
+ _data: Ref<D[], D[]>;
1005
+ isComplex: Ref<boolean, boolean>;
1006
+ _columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1007
+ originColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1008
+ columns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1009
+ fixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1010
+ rightFixedColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1011
+ leafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1012
+ fixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1013
+ rightFixedLeafColumns: Ref<TableColumnCtx<D>[], TableColumnCtx<D>[]>;
1014
+ updateOrderFns: (() => void)[];
1015
+ leafColumnsLength: Ref<number, number>;
1016
+ fixedLeafColumnsLength: Ref<number, number>;
1017
+ rightFixedLeafColumnsLength: Ref<number, number>;
1018
+ isAllSelected: Ref<boolean, boolean>;
1019
+ selection: Ref<D[], D[]>;
1020
+ selectionIndeterminate: Ref<Record<string, boolean>, Record<string, boolean>>;
1021
+ reserveSelection: Ref<boolean, boolean>;
1022
+ selectOnIndeterminate: Ref<boolean, boolean>;
1023
+ selectable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
1024
+ rowExpandable: Ref<((row: D, index: number) => boolean) | null, ((row: D, index: number) => boolean) | null>;
1025
+ filters: Ref<StoreFilter, StoreFilter>;
1026
+ filteredData: Ref<D[] | null, D[] | null>;
1027
+ sortingColumn: Ref<TableColumnCtx<D> | null, TableColumnCtx<D> | null>;
1028
+ sortProp: Ref<string | null, string | null>;
1029
+ sortOrder: Ref<TableSortOrder | null, TableSortOrder | null>;
1030
+ hoverRow: Ref<D | null, D | null>;
1031
+ };
1032
+ ns: {
1033
+ namespace: ComputedRef<string>;
1034
+ b: (blockSuffix?: string) => string;
1035
+ e: (element?: string) => string;
1036
+ m: (modifier?: string) => string;
1037
+ be: (blockSuffix?: string, element?: string) => string;
1038
+ em: (element?: string, modifier?: string) => string;
1039
+ bm: (blockSuffix?: string, modifier?: string) => string;
1040
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
1041
+ is: {
1042
+ (name: string, state: boolean | undefined): string;
1043
+ (name: string): string;
1044
+ };
1045
+ cssVar: (object: Record<string, string>) => Record<string, string>;
1046
+ cssVarName: (name: string) => string;
1047
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
1048
+ cssVarBlockName: (name: string) => string;
1049
+ };
1050
+ t: Translator;
1051
+ };
1052
+ columns: TableColumnCtx<D>[];
1053
+ handleHeaderFooterMousewheel: (_event: WheelEvent, data: any) => void;
1054
+ handleMouseLeave: () => void;
1055
+ tableId: string;
1056
+ tableSize: "" | "default" | "small" | "large";
1057
+ isHidden: boolean;
1058
+ isEmpty: boolean;
1059
+ renderExpanded: RenderExpanded<D> | null;
1060
+ resizeProxyVisible: boolean;
1061
+ resizeState: {
1062
+ width: null | number;
1063
+ height: null | number;
1064
+ headerHeight: null | number;
1065
+ };
1066
+ isGroup: boolean;
1067
+ bodyWidth: string;
1068
+ tableBodyStyles: {
1069
+ width: string;
1070
+ };
1071
+ emptyBlockStyle: {
1072
+ width: string;
1073
+ height: string;
1074
+ } | undefined;
1075
+ debouncedUpdateLayout: DebouncedFunc<() => void>;
1076
+ setCurrentRow: (row?: D | undefined) => void;
1077
+ getSelectionRows: () => D[];
1078
+ getHalfSelectionRows: () => D[];
1079
+ toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void;
1080
+ clearSelection: () => void;
1081
+ clearFilter: (columnKeys?: string[] | string) => void;
1082
+ toggleAllSelection: () => void;
1083
+ toggleRowExpansion: (row: D, expanded?: boolean) => void;
1084
+ clearSort: () => void;
1085
+ doLayout: () => void;
1086
+ sort: (prop: string, order: string) => void;
1087
+ updateKeyChildren: (key: string, data: D[]) => void;
1088
+ t: Translator;
1089
+ setDragVisible: (visible: boolean) => void;
1090
+ context: Table<D>;
1091
+ computedSumText: string;
1092
+ computedEmptyText: string;
1093
+ computedTooltipEffect: string | undefined;
1094
+ computedTooltipOptions: Partial<Omit<UseTooltipProps, "content" | "visible" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "rawContent" | "persistent" | "autoClose" | "virtualRef">> | undefined;
1095
+ tableLayout: "fixed" | "auto";
1096
+ scrollbarViewStyle: {
1097
+ display: string;
1098
+ verticalAlign: string;
1099
+ };
1100
+ scrollbarStyle: {
1101
+ height: string;
1102
+ maxHeight?: undefined;
1103
+ } | {
1104
+ maxHeight: string;
1105
+ height?: undefined;
1106
+ } | {
1107
+ height?: undefined;
1108
+ maxHeight?: undefined;
1109
+ };
1110
+ scrollBarRef: any;
1111
+ scrollTo: (options: ScrollToOptions | number, yCoord?: number) => void;
1112
+ setScrollLeft: (left?: number) => void;
1113
+ setScrollTop: (top?: number) => void;
1114
+ allowDragLastColumn: boolean;
1115
+ } | null>>;
1116
+ tableData: Ref<D[]>;
1117
+ pageData: Ref<{
1118
+ pageNum: number;
1119
+ pageSize: number;
1120
+ totalPages: number;
1121
+ total: number;
1122
+ }, PageData | {
1123
+ pageNum: number;
1124
+ pageSize: number;
1125
+ totalPages: number;
1126
+ total: number;
1127
+ }>;
1128
+ refresh: () => Promise<void>;
1129
+ resetAndRefresh: () => Promise<void>;
1130
+ getSelectionRows: (() => D[]) | undefined;
1131
+ toggleRowSelection: ((row: D, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
1132
+ setCurrentRow: ((row?: D | undefined) => void) | undefined;
1133
+ clearSelection: (() => void) | undefined;
1134
+ scrollTo: ((options: ScrollToOptions | number, yCoord?: number) => void) | undefined;
1135
+ }>): void;
1136
+ attrs: any;
1137
+ slots: {
1138
+ query?(_: {}): any;
1139
+ actions?(_: {}): any;
1140
+ default?(_: {}): any;
1141
+ empty?(_: {}): any;
1142
+ };
1143
+ emit: ((evt: "search") => void) & ((evt: "reset") => void);
1144
+ }>) => VNode & {
1145
+ __ctx?: Awaited<typeof __VLS_setup>;
1146
+ };
1147
+ export { PageTable_2 as PageTable }
1148
+
1149
+ export declare type PageTableAction = 'search' | 'resetQuery';
1150
+
1151
+ export declare type PageTableProps<D, Q = undefined> = {
1152
+ /**
1153
+ * 自动加载数据
1154
+ * @default true
1155
+ */
1156
+ autoLoad?: boolean;
1157
+ /** 搜索按钮的文本 */
1158
+ searchActionLabel?: string;
1159
+ /** 顶部栏按钮 */
1160
+ actions?: PageTableAction[];
1161
+ /** 获取分页数据的方法 */
1162
+ fetchPage: FetchPage<D, Q>;
1163
+ /** 分页参数 */
1164
+ pageParams?: PageParams;
1165
+ /** 查询参数 */
1166
+ queryParams?: Q;
1167
+ /** 分页大小切换选项 */
1168
+ pageSizes: number[];
1169
+ /** 表格选择行为模式 */
1170
+ selectionMode?: SelectionMode_2;
1171
+ /** 表格高度,为空则占据页面最大可用高度 */
1172
+ tableHeight?: number | string;
1173
+ /** 设置表格单元、行和列的布局方式 */
1174
+ tableLayout?: 'auto' | 'fixed';
1175
+ };
1176
+
1177
+ export declare interface PluginMenuData {
1178
+ title: string;
1179
+ path: string;
1180
+ children?: Array<PluginMenuData>;
1181
+ }
1182
+
1183
+ declare const PluginMenuItem_2: DefineComponent<PluginMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PluginMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1184
+ export { PluginMenuItem_2 as PluginMenuItem }
1185
+
1186
+ export declare interface PluginMenuItemProps {
1187
+ menu: PluginMenuData;
1188
+ }
1189
+
1190
+ declare const PluginMenus_2: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1191
+ export { PluginMenus_2 as PluginMenus }
1192
+
1193
+ export declare interface PluginMenusProps {
1194
+ menus: Array<PluginMenuData>;
1195
+ activeIndex: string;
1196
+ }
1197
+
1198
+ declare const PluginPageContent_2: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1199
+ export { PluginPageContent_2 as PluginPageContent }
1200
+
1201
+ declare const PluginPageHeader_2: DefineComponent<PluginMenusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1202
+ handleMenuSelect: (menu: PluginMenuData) => any;
1203
+ }, string, PublicProps, Readonly<PluginMenusProps> & Readonly<{
1204
+ onHandleMenuSelect?: ((menu: PluginMenuData) => any) | undefined;
1205
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1206
+ export { PluginPageHeader_2 as PluginPageHeader }
1207
+
1208
+ declare const SelectDialog_2: <T = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1209
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
1210
+ readonly onConfirm?: ((list: T[]) => any) | undefined;
1211
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1212
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onConfirm" | "onUpdate:modelValue"> & ({
1213
+ modelValue: boolean;
1214
+ } & SelectDialogProps<T>) & Partial<{}>> & PublicProps;
1215
+ expose(exposed: ShallowUnwrapRef< {}>): void;
1216
+ attrs: any;
1217
+ slots: {
1218
+ item?(_: {}): any;
1219
+ 'item-label'?(_: {}): any;
1220
+ };
1221
+ emit: ((evt: "confirm", list: T[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
1222
+ }>) => VNode & {
1223
+ __ctx?: Awaited<typeof __VLS_setup>;
1224
+ };
1225
+ export { SelectDialog_2 as SelectDialog }
1226
+
1227
+ export declare interface SelectDialogProps<T = unknown> {
1228
+ title?: string;
1229
+ options: T[] | (() => Promise<T[]>);
1230
+ defaultSelectedList?: T[];
1231
+ getDataLabel: (data: T) => string;
1232
+ getDataId: (data: T) => string | number;
1233
+ multiple?: boolean;
1234
+ canSelectAll?: boolean;
1235
+ showCurrentSelection?: boolean;
1236
+ confirmText?: string;
1237
+ cancelText?: string;
1238
+ noSelectionTip?: string;
1239
+ }
1240
+
1241
+ declare type SelectionMode_2 = 'none' | 'single' | 'multiple';
1242
+ export { SelectionMode_2 as SelectionMode }
1243
+
1244
+ declare const SettingGroup_2: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1245
+ export { SettingGroup_2 as SettingGroup }
1246
+
1247
+ declare const SettingItem_2: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1248
+ export { SettingItem_2 as SettingItem }
1249
+
1250
+ /**
1251
+ * 显示确认提示
1252
+ */
1253
+ export declare function showConfirm(message: string, title?: string, options?: ElMessageBoxOptions): Promise<void>;
1254
+
1255
+ /**
1256
+ * 按顺序依次显示多个确认弹窗,任意一步取消都会中断后续确认。
1257
+ */
1258
+ export declare function showConfirmSequence(confirms: Array<Parameters<typeof showConfirm>>): Promise<void>;
1259
+
1260
+ /**
1261
+ * 显示错误提示
1262
+ */
1263
+ export declare function showError(msg: string): void;
1264
+
1265
+ export declare const showPageRangeDialog: (options: PageRangeDialogProps) => Promise<[number, number] | undefined>;
1266
+
1267
+ export declare const showSelectDialog: <T>(options: SelectDialogProps<T>) => Promise<T[] | undefined>;
1268
+
1269
+ /**
1270
+ * 显示提示
1271
+ * @param message
1272
+ */
1273
+ export declare function showToast(message: string): void;
1274
+
1275
+ export declare function showToast({ message, type, duration, }: {
1276
+ message: string;
1277
+ type?: 'success' | 'warning' | 'info' | 'error';
1278
+ duration?: number;
1279
+ }): void;
1280
+
1281
+ /**
1282
+ * 显示警告提示
1283
+ */
1284
+ export declare function showWarning(msg: string): void;
1285
+
1286
+ /**
1287
+ * 切换为默认主题
1288
+ */
1289
+ export declare const switchDefaultTheme: () => Promise<void>;
1290
+
1291
+ export declare const switchThemeMode: (themeMode: AppThemeMode) => Promise<void>;
1292
+
1293
+ export declare const toolkitApi: ToolkitApi;
1294
+
1295
+ /**
1296
+ * 内容溢出提示
1297
+ */
1298
+ declare interface TooltipProps {
1299
+ content?: string;
1300
+ lines?: number;
1301
+ ellipsis?: 'right' | 'left';
1302
+ iconClass?: string;
1303
+ }
1304
+
1305
+ /**
1306
+ * 更新应用主题
1307
+ */
1308
+ export declare const updateAppTheme: (appThemeState?: AppThemeState) => Promise<void>;
1309
+
1310
+ export declare const updatePrimaryColor: (primaryColor: string) => Promise<void>;
1311
+
1312
+ /**
1313
+ * 应用主题状态 Store
1314
+ */
1315
+ export declare const useAppThemeStore: StoreDefinition<"biliToolkit-ui-theme", Pick<{
1316
+ init: (dbName?: string, updateEvent?: string) => Promise<void>;
1317
+ state: {
1318
+ primaryColorIndex: number;
1319
+ primaryColor: string;
1320
+ themeMode: AppThemeMode;
1321
+ bgMode: AppThemeBackgroundMode;
1322
+ dark: boolean;
1323
+ };
1324
+ switchThemeColor: () => string;
1325
+ setPrimaryColor: (color: string) => string;
1326
+ }, "state">, Pick<{
1327
+ init: (dbName?: string, updateEvent?: string) => Promise<void>;
1328
+ state: {
1329
+ primaryColorIndex: number;
1330
+ primaryColor: string;
1331
+ themeMode: AppThemeMode;
1332
+ bgMode: AppThemeBackgroundMode;
1333
+ dark: boolean;
1334
+ };
1335
+ switchThemeColor: () => string;
1336
+ setPrimaryColor: (color: string) => string;
1337
+ }, never>, Pick<{
1338
+ init: (dbName?: string, updateEvent?: string) => Promise<void>;
1339
+ state: {
1340
+ primaryColorIndex: number;
1341
+ primaryColor: string;
1342
+ themeMode: AppThemeMode;
1343
+ bgMode: AppThemeBackgroundMode;
1344
+ dark: boolean;
1345
+ };
1346
+ switchThemeColor: () => string;
1347
+ setPrimaryColor: (color: string) => string;
1348
+ }, "init" | "switchThemeColor" | "setPrimaryColor">>;
1349
+
1350
+ export declare const useAutoRefreshData: (doneFn: Promise<void> | (() => void | Promise<void>), intervalTimeMs?: number) => {
1351
+ loading: Ref<boolean, boolean>;
1352
+ refreshTableData: () => Promise<void>;
1353
+ reset: () => void;
1354
+ };
1355
+
1356
+ /**
1357
+ * 使用倒计时
1358
+ * @param initial
1359
+ */
1360
+ export declare function useCountdown(initial: number): {
1361
+ countdown: Ref<number, number>;
1362
+ start: (callback: () => void) => void;
1363
+ stop: () => void;
1364
+ };
1365
+
1366
+ /**
1367
+ * 封装的数据加载函数,方便关联返回的 loading
1368
+ */
1369
+ export declare const useLoadingData: (options?: UseLoadingDataOptions) => {
1370
+ loading: Ref<boolean, boolean>;
1371
+ hasLoaded: Ref<boolean, boolean>;
1372
+ loadingData: <TArgs extends any[] = [], TReturn = void>(doneFn: ((...args: TArgs) => TReturn | Promise<TReturn>) | Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
1373
+ };
1374
+
1375
+ declare interface UseLoadingDataOptions {
1376
+ loading?: Ref<boolean>;
1377
+ /** 是否限制同一时刻只能有一次加载 */
1378
+ singleFlight?: boolean;
1379
+ }
1380
+
1381
+ export declare const usePageTable: <D, Q = undefined>(options: UsePageTableOptions<D, Q>) => {
1382
+ pageData: Ref< {
1383
+ pageNum: number;
1384
+ pageSize: number;
1385
+ totalPages: number;
1386
+ total: number;
1387
+ }, PageData | {
1388
+ pageNum: number;
1389
+ pageSize: number;
1390
+ totalPages: number;
1391
+ total: number;
1392
+ }>;
1393
+ tableData: Ref<UnwrapRefSimple<D>[], D[] | UnwrapRefSimple<D>[]>;
1394
+ loading: Ref<boolean, boolean>;
1395
+ refresh: () => Promise<void>;
1396
+ resetAndRefresh: () => Promise<void>;
1397
+ handleSizeChange: () => Promise<void>;
1398
+ handleCurrPageChange: () => Promise<void>;
1399
+ };
1400
+
1401
+ declare interface UsePageTableOptions<D, Q = undefined> {
1402
+ /** 获取分页数据的方法 */
1403
+ fetchPage: FetchPage<D, Q>;
1404
+ /** 分页参数 */
1405
+ pageParams?: MaybeRefOrGetter<PageParams | undefined>;
1406
+ /** 查询参数 */
1407
+ queryParams?: MaybeRefOrGetter<Q>;
1408
+ /** 是否自动加载数据 */
1409
+ autoLoad?: boolean;
1410
+ /** 数据加载完成后的回调 */
1411
+ onLoaded?: () => void | Promise<void>;
1412
+ }
1413
+
1414
+ export declare const useSelectData: <Data, ID>(dataList: MaybeRefOrGetter<Data[]>, getId: (data: Data) => ID) => {
1415
+ selectedIds: ShallowRef<ID[], ID[]>;
1416
+ isSelected: (id: ID) => boolean;
1417
+ toggleSelect: (id: ID) => void;
1418
+ isAllSelected: Ref<boolean, boolean>;
1419
+ toggleAll: () => void;
1420
+ getSelectedData: () => Data[];
1421
+ };
1422
+
1423
+ /**
1424
+ * 选择的用户 状态 Store
1425
+ */
1426
+ export declare const useSelectedUserStore: StoreDefinition<"biliToolkit-ui-selected-user", Pick<{
1427
+ init: () => Promise<void>;
1428
+ user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1429
+ deleteUser: () => void;
1430
+ setUser: (user: UserInfoWithCookie) => void;
1431
+ }, "user">, Pick<{
1432
+ init: () => Promise<void>;
1433
+ user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1434
+ deleteUser: () => void;
1435
+ setUser: (user: UserInfoWithCookie) => void;
1436
+ }, never>, Pick<{
1437
+ init: () => Promise<void>;
1438
+ user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1439
+ deleteUser: () => void;
1440
+ setUser: (user: UserInfoWithCookie) => void;
1441
+ }, "init" | "deleteUser" | "setUser">>;
1442
+
1443
+ export declare const whiteColor = "#ffffff";
1444
+
1445
+ export { }