bilitoolkit-ui 0.0.3 → 0.0.5

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.ts CHANGED
@@ -6,32 +6,21 @@ import { AppThemeState } from 'bilitoolkit-types';
6
6
  import { ComponentCustomProps } from 'vue';
7
7
  import { ComponentOptionsMixin } from 'vue';
8
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';
9
+ import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults.mjs';
12
10
  import { DefineComponent } from 'vue';
13
11
  import { ElMessageBoxOptions } from 'element-plus';
14
- import { Filter } from 'element-plus';
15
12
  import { MaybeRefOrGetter } from 'vue';
16
13
  import { Pinia } from 'pinia';
17
14
  import { PublicProps } from 'vue';
18
15
  import { Ref } from 'vue';
19
- import { RenderExpanded } from 'element-plus/es/components/table/src/table/defaults.mjs';
20
16
  import { ShallowRef } from 'vue';
21
17
  import { ShallowUnwrapRef } from 'vue';
22
- import { Sort } from 'element-plus';
23
18
  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';
19
+ import { TableInstance } from 'element-plus';
28
20
  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
21
  import { UnwrapRefSimple } from '@vue/reactivity';
32
22
  import { UserInfo } from '@ybgnb/bili-api';
33
23
  import { UserInfoWithCookie } from '@ybgnb/bili-api';
34
- import { UseTooltipProps } from 'element-plus';
35
24
  import { VNode } from 'vue';
36
25
  import { VNodeProps } from 'vue';
37
26
 
@@ -46,9 +35,9 @@ ellipsis: "right" | "left";
46
35
  refContent: HTMLDivElement;
47
36
  }, HTMLDivElement>;
48
37
 
49
- declare const __VLS_component_4: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
38
+ declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
50
39
 
51
- declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
40
+ declare const __VLS_component_5: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
52
41
 
53
42
  declare const __VLS_component_6: DefineComponent<BiliUserCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BiliUserCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
54
43
 
@@ -82,25 +71,23 @@ declare type __VLS_Props_3 = CountdownDialogProps;
82
71
 
83
72
  declare type __VLS_Props_4 = PageRangeDialogProps;
84
73
 
85
- declare type __VLS_Props_5 = LoadingDialogProps;
86
-
87
74
  /**
88
75
  * remix 图标
89
76
  * 根据应用主题自动切换图标类型
90
77
  */
91
- declare type __VLS_Props_6 = {
78
+ declare type __VLS_Props_5 = {
92
79
  icon: string;
93
80
  };
94
81
 
95
- declare type __VLS_Props_7 = {
82
+ declare type __VLS_Props_6 = {
96
83
  icon: string;
97
84
  };
98
85
 
99
- declare type __VLS_Props_8 = {
86
+ declare type __VLS_Props_7 = {
100
87
  url: string;
101
88
  };
102
89
 
103
- declare type __VLS_Props_9 = {
90
+ declare type __VLS_Props_8 = {
104
91
  user: Pick<UserInfoWithCookie, 'mid' | 'face' | 'name'>;
105
92
  };
106
93
 
@@ -112,10 +99,6 @@ declare type __VLS_PublicProps_2 = {
112
99
  modelValue: boolean;
113
100
  } & __VLS_Props_4;
114
101
 
115
- declare type __VLS_PublicProps_3 = {
116
- modelValue: boolean;
117
- } & __VLS_Props_5;
118
-
119
102
  declare function __VLS_template(): {
120
103
  attrs: Partial<{}>;
121
104
  slots: {
@@ -260,21 +243,9 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
260
243
 
261
244
  declare function addLog(msg: string): void;
262
245
 
263
- declare const AppIcon_2: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
246
+ declare const AppIcon_2: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
264
247
  export { AppIcon_2 as AppIcon }
265
248
 
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
249
  export declare type AppThemeCssVars = Record<string, string>;
279
250
 
280
251
  declare const AppTooltip_2: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
@@ -295,7 +266,7 @@ export declare interface BiliUserCardProps {
295
266
  user: UserInfo;
296
267
  }
297
268
 
298
- declare const BiliUserInfo_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
269
+ declare const BiliUserInfo_2: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
299
270
  export { BiliUserInfo_2 as BiliUserInfo }
300
271
 
301
272
  export declare const blackColor = "#000000";
@@ -335,13 +306,6 @@ export { ExternalLink_2 as ExternalLink }
335
306
 
336
307
  export declare type FetchPage<D, Q = undefined> = Q extends undefined ? (pageParams: PageParams) => Promise<PageResult<D>> : (pageParams: PageParams, queryParams: Q) => Promise<PageResult<D>>;
337
308
 
338
- /**
339
- * 全局加载框的参数
340
- */
341
- export declare type GlobalLoadingDialogProps = {
342
- autoCloseDelay?: number;
343
- } & LoadingDialogProps;
344
-
345
309
  /**
346
310
  * 统一处理错误
347
311
  */
@@ -396,33 +360,30 @@ export declare const initTransparentColors: (primaryColor: string, vars: AppThem
396
360
  */
397
361
  export declare const isDarkTheme: (themeMode?: AppThemeMode) => Promise<boolean>;
398
362
 
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
363
  /**
412
- * 加载框暴露的方法
364
+ * 全局加载框
413
365
  */
414
- export declare type LoadingDialogExposed = {
415
- show: (options?: LoadingDialogProps) => void;
416
- hide: () => void;
366
+ export declare const loadingDialog: {
367
+ show(options?: LoadingDialogOptions): void;
368
+ update(message: string): void;
369
+ close(): void;
417
370
  };
418
371
 
372
+ declare const LoadingDialog_2: DefineComponent< {}, {
373
+ show: (options?: LoadingDialogOptions) => void;
374
+ update: (text: string) => void;
375
+ close: () => void;
376
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
377
+ export { LoadingDialog_2 as LoadingDialog }
378
+
419
379
  /**
420
380
  * 加载框
421
381
  */
422
- export declare interface LoadingDialogProps {
423
- canCancel?: boolean;
424
- onCancel?: () => void;
425
- loadingText?: string;
382
+ export declare interface LoadingDialogOptions {
383
+ showCancel?: boolean;
384
+ onCancel?: () => void | Promise<void>;
385
+ message?: string;
386
+ autoCloseDelay?: number;
426
387
  }
427
388
 
428
389
  declare const LogPrint_2: DefineComponent< {}, {
@@ -482,637 +443,7 @@ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props:
482
443
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
483
444
  expose(exposed: ShallowUnwrapRef< {
484
445
  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>>;
446
+ tableRef: Readonly<ShallowRef<TableInstance | null>>;
1116
447
  tableData: Ref<D[]>;
1117
448
  pageData: Ref<{
1118
449
  pageNum: number;
@@ -1127,9 +458,9 @@ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props:
1127
458
  }>;
1128
459
  refresh: () => Promise<void>;
1129
460
  resetAndRefresh: () => Promise<void>;
1130
- getSelectionRows: (() => D[]) | undefined;
1131
- toggleRowSelection: ((row: D, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
1132
- setCurrentRow: ((row?: D | undefined) => void) | undefined;
461
+ getSelectionRows: (() => DefaultRow[]) | undefined;
462
+ toggleRowSelection: ((row: DefaultRow, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
463
+ setCurrentRow: ((row?: DefaultRow | undefined) => void) | undefined;
1133
464
  clearSelection: (() => void) | undefined;
1134
465
  scrollTo: ((options: ScrollToOptions | number, yCoord?: number) => void) | undefined;
1135
466
  }>): void;
@@ -1205,6 +536,39 @@ onHandleMenuSelect?: ((menu: PluginMenuData) => any) | undefined;
1205
536
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1206
537
  export { PluginPageHeader_2 as PluginPageHeader }
1207
538
 
539
+ /**
540
+ * 任务进度弹窗
541
+ */
542
+ export declare const processDialog: {
543
+ show(options?: ProcessDialogOptions): void;
544
+ update(currPct?: number, text?: string): void;
545
+ success(message?: string): void;
546
+ error(message?: string): void;
547
+ close(): void;
548
+ };
549
+
550
+ declare const ProcessDialog_2: DefineComponent< {}, {
551
+ show: (options?: ProcessDialogOptions) => void;
552
+ update: (currPct?: number, text?: string) => void;
553
+ setSuccess: (text?: string) => void;
554
+ setError: (text?: string) => void;
555
+ close: () => void;
556
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
557
+ export { ProcessDialog_2 as ProcessDialog }
558
+
559
+ /**
560
+ * 任务进度弹窗
561
+ */
562
+ export declare interface ProcessDialogOptions {
563
+ showCancel?: boolean;
564
+ onCancel?: () => void | Promise<void>;
565
+ onConfirm?: (status: ProcessDialogStatus) => void | Promise<void>;
566
+ percentage?: number;
567
+ message?: string;
568
+ }
569
+
570
+ export declare type ProcessDialogStatus = 'loading' | 'success' | 'error';
571
+
1208
572
  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
573
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
1210
574
  readonly onConfirm?: ((list: T[]) => any) | undefined;
@@ -1363,6 +727,26 @@ export declare function useCountdown(initial: number): {
1363
727
  stop: () => void;
1364
728
  };
1365
729
 
730
+ /**
731
+ * 监听指定模板元素的高度变化,并同步其当前高度。
732
+ *
733
+ * 基于 ResizeObserver 实现,
734
+ * 内部使用 requestAnimationFrame 合并高频更新,避免连续触发造成重复计算。
735
+ *
736
+ * @template H 元素类型,默认 HTMLElement
737
+ * @param refName 模板 ref 名称
738
+ *
739
+ * @returns
740
+ * - elementRef: 绑定的模板元素引用
741
+ * - height: 当前元素高度(clientHeight)
742
+ * - updateHeight: 手动同步一次高度
743
+ */
744
+ export declare const useElementHeight: <H extends HTMLElement = HTMLElement>(refName: string) => {
745
+ elementRef: Readonly<ShallowRef<H | null>>;
746
+ height: Ref<number, number>;
747
+ updateHeight: () => void;
748
+ };
749
+
1366
750
  /**
1367
751
  * 封装的数据加载函数,方便关联返回的 loading
1368
752
  */
@@ -1428,17 +812,20 @@ init: () => Promise<void>;
1428
812
  user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1429
813
  deleteUser: () => void;
1430
814
  setUser: (user: UserInfoWithCookie) => void;
815
+ assertLoggedIn: () => void;
1431
816
  }, "user">, Pick<{
1432
817
  init: () => Promise<void>;
1433
818
  user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1434
819
  deleteUser: () => void;
1435
820
  setUser: (user: UserInfoWithCookie) => void;
821
+ assertLoggedIn: () => void;
1436
822
  }, never>, Pick<{
1437
823
  init: () => Promise<void>;
1438
824
  user: Ref<UserInfoWithCookie | null, UserInfoWithCookie | null>;
1439
825
  deleteUser: () => void;
1440
826
  setUser: (user: UserInfoWithCookie) => void;
1441
- }, "init" | "deleteUser" | "setUser">>;
827
+ assertLoggedIn: () => void;
828
+ }, "init" | "deleteUser" | "setUser" | "assertLoggedIn">>;
1442
829
 
1443
830
  export declare const whiteColor = "#ffffff";
1444
831