bilitoolkit-ui 0.0.3 → 0.0.4

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
 
@@ -482,637 +471,7 @@ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props:
482
471
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
483
472
  expose(exposed: ShallowUnwrapRef< {
484
473
  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>>;
474
+ tableRef: Readonly<ShallowRef<TableInstance | null>>;
1116
475
  tableData: Ref<D[]>;
1117
476
  pageData: Ref<{
1118
477
  pageNum: number;
@@ -1127,9 +486,9 @@ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props:
1127
486
  }>;
1128
487
  refresh: () => Promise<void>;
1129
488
  resetAndRefresh: () => Promise<void>;
1130
- getSelectionRows: (() => D[]) | undefined;
1131
- toggleRowSelection: ((row: D, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
1132
- setCurrentRow: ((row?: D | undefined) => void) | undefined;
489
+ getSelectionRows: (() => DefaultRow[]) | undefined;
490
+ toggleRowSelection: ((row: DefaultRow, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
491
+ setCurrentRow: ((row?: DefaultRow | undefined) => void) | undefined;
1133
492
  clearSelection: (() => void) | undefined;
1134
493
  scrollTo: ((options: ScrollToOptions | number, yCoord?: number) => void) | undefined;
1135
494
  }>): void;