@devtable/dashboard 10.40.0 → 10.42.0
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/api-caller/index.d.ts +5 -2
- package/dist/api-caller/request.d.ts +25 -8
- package/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +70 -10
- package/dist/components/plugins/plugin-context.d.ts +70 -10
- package/dist/components/plugins/viz-manager/components.d.ts +1 -3
- package/dist/contexts/panel-context.d.ts +140 -20
- package/dist/dashboard-editor/model/datasources/columns.d.ts +0 -1
- package/dist/dashboard-editor/model/datasources/datasource.d.ts +10 -7
- package/dist/dashboard-editor/model/datasources/index.d.ts +13 -16
- package/dist/dashboard-editor/model/datasources/indexes.d.ts +0 -1
- package/dist/dashboard-editor/model/datasources/table-data.d.ts +1 -1
- package/dist/dashboard-editor/model/datasources/tables.d.ts +0 -1
- package/dist/dashboard-editor/model/panels/panel.d.ts +31 -5
- package/dist/dashboard-editor/model/panels/panels.d.ts +290 -41
- package/dist/dashboard-editor/model/queries/index.d.ts +7 -7
- package/dist/dashboard-editor/ui/settings/content/data-preview/index.d.ts +2 -1
- package/dist/dashboard-editor/ui/settings/content/edit-panel/panel-config/name.d.ts +3 -0
- package/dist/dashboard.es.js +2302 -2295
- package/dist/dashboard.umd.js +61 -121
- package/dist/model/meta-model/dashboard/content/panel/index.d.ts +1 -0
- package/dist/model/meta-model/dashboard/content/panel/panel.d.ts +29 -3
- package/dist/model/meta-model/dashboard/content/panel/title.d.ts +9 -0
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +31 -5
- package/dist/model/render-model/dashboard/content/panels/panels.d.ts +259 -36
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +5 -5
- package/dist/model/render-model/dashboard/content/queries/query.d.ts +2 -1
- package/dist/stats.html +1 -1
- package/dist/types/dashboard.d.ts +4 -1
- package/dist/types/plugin/index.d.ts +0 -9
- package/package.json +1 -1
|
@@ -11,7 +11,24 @@ export declare const PanelContextProvider: React.Provider<{
|
|
|
11
11
|
export declare const useRenderPanelContext: () => {
|
|
12
12
|
panel: {
|
|
13
13
|
id: string;
|
|
14
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
title: {
|
|
16
|
+
show: boolean;
|
|
17
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
18
|
+
readonly json: {
|
|
19
|
+
show: boolean;
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
setShow(v: boolean): void;
|
|
23
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
24
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
25
|
+
}, {
|
|
26
|
+
readonly json: {
|
|
27
|
+
show: boolean;
|
|
28
|
+
};
|
|
29
|
+
} & {
|
|
30
|
+
setShow(v: boolean): void;
|
|
31
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
15
32
|
description: string;
|
|
16
33
|
layout: {
|
|
17
34
|
x: number;
|
|
@@ -773,12 +790,29 @@ export declare const useRenderPanelContext: () => {
|
|
|
773
790
|
conf: import("..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>>;
|
|
774
791
|
type: string;
|
|
775
792
|
};
|
|
793
|
+
name: string;
|
|
776
794
|
style: {
|
|
777
795
|
border: {
|
|
778
796
|
enabled: boolean;
|
|
779
797
|
};
|
|
780
798
|
};
|
|
781
|
-
title:
|
|
799
|
+
title: {
|
|
800
|
+
show: boolean;
|
|
801
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
802
|
+
readonly json: {
|
|
803
|
+
show: boolean;
|
|
804
|
+
};
|
|
805
|
+
} & {
|
|
806
|
+
setShow(v: boolean): void;
|
|
807
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
808
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
809
|
+
}, {
|
|
810
|
+
readonly json: {
|
|
811
|
+
show: boolean;
|
|
812
|
+
};
|
|
813
|
+
} & {
|
|
814
|
+
setShow(v: boolean): void;
|
|
815
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
782
816
|
layout: {
|
|
783
817
|
h: number;
|
|
784
818
|
w: number;
|
|
@@ -1036,7 +1070,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
1036
1070
|
readonly queryIDSet: Set<string>;
|
|
1037
1071
|
} & {
|
|
1038
1072
|
setID(id: string): void;
|
|
1039
|
-
|
|
1073
|
+
setName(name: string): void;
|
|
1040
1074
|
setDescription(description: string): void;
|
|
1041
1075
|
addQueryID(queryID: string): void;
|
|
1042
1076
|
removeQueryID(queryID: string): void;
|
|
@@ -1985,12 +2019,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
1985
2019
|
readonly rootModel: any;
|
|
1986
2020
|
readonly contentModel: any;
|
|
1987
2021
|
readonly payload: any;
|
|
1988
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
1989
2022
|
readonly formattedSQL: any;
|
|
1990
2023
|
readonly typedAsSQL: boolean;
|
|
1991
2024
|
readonly typedAsHTTP: boolean;
|
|
1992
2025
|
readonly datasource: any;
|
|
1993
2026
|
readonly httpConfigString: string;
|
|
2027
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
1994
2028
|
} & {
|
|
1995
2029
|
readonly stateMessage: string;
|
|
1996
2030
|
} & {
|
|
@@ -2055,12 +2089,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
2055
2089
|
readonly rootModel: any;
|
|
2056
2090
|
readonly contentModel: any;
|
|
2057
2091
|
readonly payload: any;
|
|
2058
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
2059
2092
|
readonly formattedSQL: any;
|
|
2060
2093
|
readonly typedAsSQL: boolean;
|
|
2061
2094
|
readonly typedAsHTTP: boolean;
|
|
2062
2095
|
readonly datasource: any;
|
|
2063
2096
|
readonly httpConfigString: string;
|
|
2097
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
2064
2098
|
} & {
|
|
2065
2099
|
readonly stateMessage: string;
|
|
2066
2100
|
} & {
|
|
@@ -2084,7 +2118,16 @@ export declare const useRenderPanelContext: () => {
|
|
|
2084
2118
|
downloadData(): void;
|
|
2085
2119
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
2086
2120
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
2087
|
-
|
|
2121
|
+
name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
2122
|
+
title: import("mobx-state-tree").IModelType<{
|
|
2123
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
2124
|
+
}, {
|
|
2125
|
+
readonly json: {
|
|
2126
|
+
show: boolean;
|
|
2127
|
+
};
|
|
2128
|
+
} & {
|
|
2129
|
+
setShow(v: boolean): void;
|
|
2130
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
2088
2131
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
2089
2132
|
layout: import("mobx-state-tree").IModelType<{
|
|
2090
2133
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
@@ -2468,12 +2511,29 @@ export declare const useRenderPanelContext: () => {
|
|
|
2468
2511
|
conf: import("..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>>;
|
|
2469
2512
|
type: string;
|
|
2470
2513
|
};
|
|
2514
|
+
name: string;
|
|
2471
2515
|
style: {
|
|
2472
2516
|
border: {
|
|
2473
2517
|
enabled: boolean;
|
|
2474
2518
|
};
|
|
2475
2519
|
};
|
|
2476
|
-
title:
|
|
2520
|
+
title: {
|
|
2521
|
+
show: boolean;
|
|
2522
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2523
|
+
readonly json: {
|
|
2524
|
+
show: boolean;
|
|
2525
|
+
};
|
|
2526
|
+
} & {
|
|
2527
|
+
setShow(v: boolean): void;
|
|
2528
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
2529
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
2530
|
+
}, {
|
|
2531
|
+
readonly json: {
|
|
2532
|
+
show: boolean;
|
|
2533
|
+
};
|
|
2534
|
+
} & {
|
|
2535
|
+
setShow(v: boolean): void;
|
|
2536
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
2477
2537
|
layout: {
|
|
2478
2538
|
h: number;
|
|
2479
2539
|
w: number;
|
|
@@ -2731,7 +2791,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
2731
2791
|
readonly queryIDSet: Set<string>;
|
|
2732
2792
|
} & {
|
|
2733
2793
|
setID(id: string): void;
|
|
2734
|
-
|
|
2794
|
+
setName(name: string): void;
|
|
2735
2795
|
setDescription(description: string): void;
|
|
2736
2796
|
addQueryID(queryID: string): void;
|
|
2737
2797
|
removeQueryID(queryID: string): void;
|
|
@@ -3680,12 +3740,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
3680
3740
|
readonly rootModel: any;
|
|
3681
3741
|
readonly contentModel: any;
|
|
3682
3742
|
readonly payload: any;
|
|
3683
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3684
3743
|
readonly formattedSQL: any;
|
|
3685
3744
|
readonly typedAsSQL: boolean;
|
|
3686
3745
|
readonly typedAsHTTP: boolean;
|
|
3687
3746
|
readonly datasource: any;
|
|
3688
3747
|
readonly httpConfigString: string;
|
|
3748
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
3689
3749
|
} & {
|
|
3690
3750
|
readonly stateMessage: string;
|
|
3691
3751
|
} & {
|
|
@@ -3750,12 +3810,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
3750
3810
|
readonly rootModel: any;
|
|
3751
3811
|
readonly contentModel: any;
|
|
3752
3812
|
readonly payload: any;
|
|
3753
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3754
3813
|
readonly formattedSQL: any;
|
|
3755
3814
|
readonly typedAsSQL: boolean;
|
|
3756
3815
|
readonly typedAsHTTP: boolean;
|
|
3757
3816
|
readonly datasource: any;
|
|
3758
3817
|
readonly httpConfigString: string;
|
|
3818
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
3759
3819
|
} & {
|
|
3760
3820
|
readonly stateMessage: string;
|
|
3761
3821
|
} & {
|
|
@@ -3786,7 +3846,24 @@ export declare const useRenderPanelContext: () => {
|
|
|
3786
3846
|
export declare const useEditPanelContext: () => {
|
|
3787
3847
|
panel: {
|
|
3788
3848
|
id: string;
|
|
3789
|
-
|
|
3849
|
+
name: string;
|
|
3850
|
+
title: {
|
|
3851
|
+
show: boolean;
|
|
3852
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3853
|
+
readonly json: {
|
|
3854
|
+
show: boolean;
|
|
3855
|
+
};
|
|
3856
|
+
} & {
|
|
3857
|
+
setShow(v: boolean): void;
|
|
3858
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
3859
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
3860
|
+
}, {
|
|
3861
|
+
readonly json: {
|
|
3862
|
+
show: boolean;
|
|
3863
|
+
};
|
|
3864
|
+
} & {
|
|
3865
|
+
setShow(v: boolean): void;
|
|
3866
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
3790
3867
|
description: string;
|
|
3791
3868
|
layout: {
|
|
3792
3869
|
x: number;
|
|
@@ -4548,12 +4625,29 @@ export declare const useEditPanelContext: () => {
|
|
|
4548
4625
|
conf: import("..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>>;
|
|
4549
4626
|
type: string;
|
|
4550
4627
|
};
|
|
4628
|
+
name: string;
|
|
4551
4629
|
style: {
|
|
4552
4630
|
border: {
|
|
4553
4631
|
enabled: boolean;
|
|
4554
4632
|
};
|
|
4555
4633
|
};
|
|
4556
|
-
title:
|
|
4634
|
+
title: {
|
|
4635
|
+
show: boolean;
|
|
4636
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
4637
|
+
readonly json: {
|
|
4638
|
+
show: boolean;
|
|
4639
|
+
};
|
|
4640
|
+
} & {
|
|
4641
|
+
setShow(v: boolean): void;
|
|
4642
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
4643
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
4644
|
+
}, {
|
|
4645
|
+
readonly json: {
|
|
4646
|
+
show: boolean;
|
|
4647
|
+
};
|
|
4648
|
+
} & {
|
|
4649
|
+
setShow(v: boolean): void;
|
|
4650
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
4557
4651
|
layout: {
|
|
4558
4652
|
h: number;
|
|
4559
4653
|
w: number;
|
|
@@ -4811,7 +4905,7 @@ export declare const useEditPanelContext: () => {
|
|
|
4811
4905
|
readonly queryIDSet: Set<string>;
|
|
4812
4906
|
} & {
|
|
4813
4907
|
setID(id: string): void;
|
|
4814
|
-
|
|
4908
|
+
setName(name: string): void;
|
|
4815
4909
|
setDescription(description: string): void;
|
|
4816
4910
|
addQueryID(queryID: string): void;
|
|
4817
4911
|
removeQueryID(queryID: string): void;
|
|
@@ -5760,12 +5854,12 @@ export declare const useEditPanelContext: () => {
|
|
|
5760
5854
|
readonly rootModel: any;
|
|
5761
5855
|
readonly contentModel: any;
|
|
5762
5856
|
readonly payload: any;
|
|
5763
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
5764
5857
|
readonly formattedSQL: any;
|
|
5765
5858
|
readonly typedAsSQL: boolean;
|
|
5766
5859
|
readonly typedAsHTTP: boolean;
|
|
5767
5860
|
readonly datasource: any;
|
|
5768
5861
|
readonly httpConfigString: string;
|
|
5862
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
5769
5863
|
} & {
|
|
5770
5864
|
readonly stateMessage: string;
|
|
5771
5865
|
} & {
|
|
@@ -5830,12 +5924,12 @@ export declare const useEditPanelContext: () => {
|
|
|
5830
5924
|
readonly rootModel: any;
|
|
5831
5925
|
readonly contentModel: any;
|
|
5832
5926
|
readonly payload: any;
|
|
5833
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
5834
5927
|
readonly formattedSQL: any;
|
|
5835
5928
|
readonly typedAsSQL: boolean;
|
|
5836
5929
|
readonly typedAsHTTP: boolean;
|
|
5837
5930
|
readonly datasource: any;
|
|
5838
5931
|
readonly httpConfigString: string;
|
|
5932
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
5839
5933
|
} & {
|
|
5840
5934
|
readonly stateMessage: string;
|
|
5841
5935
|
} & {
|
|
@@ -5869,7 +5963,16 @@ export declare const useEditPanelContext: () => {
|
|
|
5869
5963
|
moveToView(sourceViewID: string, targetViewID: string): void;
|
|
5870
5964
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
5871
5965
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5872
|
-
|
|
5966
|
+
name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5967
|
+
title: import("mobx-state-tree").IModelType<{
|
|
5968
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
5969
|
+
}, {
|
|
5970
|
+
readonly json: {
|
|
5971
|
+
show: boolean;
|
|
5972
|
+
};
|
|
5973
|
+
} & {
|
|
5974
|
+
setShow(v: boolean): void;
|
|
5975
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
5873
5976
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
5874
5977
|
layout: import("mobx-state-tree").IModelType<{
|
|
5875
5978
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
@@ -6253,12 +6356,29 @@ export declare const useEditPanelContext: () => {
|
|
|
6253
6356
|
conf: import("..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>>;
|
|
6254
6357
|
type: string;
|
|
6255
6358
|
};
|
|
6359
|
+
name: string;
|
|
6256
6360
|
style: {
|
|
6257
6361
|
border: {
|
|
6258
6362
|
enabled: boolean;
|
|
6259
6363
|
};
|
|
6260
6364
|
};
|
|
6261
|
-
title:
|
|
6365
|
+
title: {
|
|
6366
|
+
show: boolean;
|
|
6367
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
6368
|
+
readonly json: {
|
|
6369
|
+
show: boolean;
|
|
6370
|
+
};
|
|
6371
|
+
} & {
|
|
6372
|
+
setShow(v: boolean): void;
|
|
6373
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
6374
|
+
show: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
6375
|
+
}, {
|
|
6376
|
+
readonly json: {
|
|
6377
|
+
show: boolean;
|
|
6378
|
+
};
|
|
6379
|
+
} & {
|
|
6380
|
+
setShow(v: boolean): void;
|
|
6381
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
6262
6382
|
layout: {
|
|
6263
6383
|
h: number;
|
|
6264
6384
|
w: number;
|
|
@@ -6516,7 +6636,7 @@ export declare const useEditPanelContext: () => {
|
|
|
6516
6636
|
readonly queryIDSet: Set<string>;
|
|
6517
6637
|
} & {
|
|
6518
6638
|
setID(id: string): void;
|
|
6519
|
-
|
|
6639
|
+
setName(name: string): void;
|
|
6520
6640
|
setDescription(description: string): void;
|
|
6521
6641
|
addQueryID(queryID: string): void;
|
|
6522
6642
|
removeQueryID(queryID: string): void;
|
|
@@ -7465,12 +7585,12 @@ export declare const useEditPanelContext: () => {
|
|
|
7465
7585
|
readonly rootModel: any;
|
|
7466
7586
|
readonly contentModel: any;
|
|
7467
7587
|
readonly payload: any;
|
|
7468
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
7469
7588
|
readonly formattedSQL: any;
|
|
7470
7589
|
readonly typedAsSQL: boolean;
|
|
7471
7590
|
readonly typedAsHTTP: boolean;
|
|
7472
7591
|
readonly datasource: any;
|
|
7473
7592
|
readonly httpConfigString: string;
|
|
7593
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
7474
7594
|
} & {
|
|
7475
7595
|
readonly stateMessage: string;
|
|
7476
7596
|
} & {
|
|
@@ -7535,12 +7655,12 @@ export declare const useEditPanelContext: () => {
|
|
|
7535
7655
|
readonly rootModel: any;
|
|
7536
7656
|
readonly contentModel: any;
|
|
7537
7657
|
readonly payload: any;
|
|
7538
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
7539
7658
|
readonly formattedSQL: any;
|
|
7540
7659
|
readonly typedAsSQL: boolean;
|
|
7541
7660
|
readonly typedAsHTTP: boolean;
|
|
7542
7661
|
readonly datasource: any;
|
|
7543
7662
|
readonly httpConfigString: string;
|
|
7663
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
7544
7664
|
} & {
|
|
7545
7665
|
readonly stateMessage: string;
|
|
7546
7666
|
} & {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { ColumnInfoType } from './columns';
|
|
4
|
+
import { IndexInfoType } from './indexes';
|
|
2
5
|
export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
3
6
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
4
7
|
type: import("mobx-state-tree").ISimpleType<import("../../../model").DataSourceType>;
|
|
@@ -12,21 +15,19 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
12
15
|
}, {
|
|
13
16
|
readonly loading: boolean;
|
|
14
17
|
readonly empty: boolean;
|
|
15
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
16
18
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
17
19
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
18
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
20
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ColumnInfoType[], ColumnInfoType[], ColumnInfoType[]>, [undefined]>;
|
|
19
21
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
20
22
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
21
23
|
}, {
|
|
22
24
|
readonly loading: boolean;
|
|
23
25
|
readonly empty: boolean;
|
|
24
|
-
readonly sql: string;
|
|
25
26
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
26
27
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
27
28
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
28
29
|
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
29
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
30
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<AnyObject[], AnyObject[], AnyObject[]>, [undefined]>;
|
|
30
31
|
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
31
32
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
32
33
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -40,7 +41,7 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
40
41
|
readonly loading: boolean;
|
|
41
42
|
readonly empty: boolean;
|
|
42
43
|
readonly maxPage: number;
|
|
43
|
-
readonly
|
|
44
|
+
readonly offset: number;
|
|
44
45
|
readonly countSql: string;
|
|
45
46
|
} & {
|
|
46
47
|
setPage(page: number): void;
|
|
@@ -50,17 +51,19 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
50
51
|
afterCreate(): void;
|
|
51
52
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
52
53
|
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
53
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
54
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<IndexInfoType[], IndexInfoType[], IndexInfoType[]>, [undefined]>;
|
|
54
55
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
55
56
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
56
57
|
}, {
|
|
57
58
|
readonly loading: boolean;
|
|
58
59
|
readonly empty: boolean;
|
|
59
|
-
readonly sql: string;
|
|
60
60
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
61
61
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
62
62
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
63
|
}, {
|
|
64
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
65
|
+
readonly reloadConditionString: string;
|
|
66
|
+
} & {
|
|
64
67
|
controllers: {
|
|
65
68
|
tables: AbortController;
|
|
66
69
|
columns: AbortController;
|
|
@@ -14,7 +14,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
14
14
|
}, {
|
|
15
15
|
readonly loading: boolean;
|
|
16
16
|
readonly empty: boolean;
|
|
17
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
18
17
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
19
18
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
20
19
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
@@ -23,7 +22,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
23
22
|
}, {
|
|
24
23
|
readonly loading: boolean;
|
|
25
24
|
readonly empty: boolean;
|
|
26
|
-
readonly sql: string;
|
|
27
25
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
28
26
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
29
27
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -42,7 +40,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
42
40
|
readonly loading: boolean;
|
|
43
41
|
readonly empty: boolean;
|
|
44
42
|
readonly maxPage: number;
|
|
45
|
-
readonly
|
|
43
|
+
readonly offset: number;
|
|
46
44
|
readonly countSql: string;
|
|
47
45
|
} & {
|
|
48
46
|
setPage(page: number): void;
|
|
@@ -58,11 +56,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
58
56
|
}, {
|
|
59
57
|
readonly loading: boolean;
|
|
60
58
|
readonly empty: boolean;
|
|
61
|
-
readonly sql: string;
|
|
62
59
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
63
60
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
64
61
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
65
62
|
}, {
|
|
63
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
64
|
+
readonly reloadConditionString: string;
|
|
65
|
+
} & {
|
|
66
66
|
controllers: {
|
|
67
67
|
tables: AbortController;
|
|
68
68
|
columns: AbortController;
|
|
@@ -100,7 +100,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
100
100
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
101
101
|
readonly loading: boolean;
|
|
102
102
|
readonly empty: boolean;
|
|
103
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
104
103
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
105
104
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType>, [undefined]>;
|
|
106
105
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -108,7 +107,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
108
107
|
}, {
|
|
109
108
|
readonly loading: boolean;
|
|
110
109
|
readonly empty: boolean;
|
|
111
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
112
110
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
113
111
|
columns: {
|
|
114
112
|
data: import("./columns").ColumnInfoType[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>>;
|
|
@@ -117,7 +115,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
117
115
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
118
116
|
readonly loading: boolean;
|
|
119
117
|
readonly empty: boolean;
|
|
120
|
-
readonly sql: string;
|
|
121
118
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
122
119
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
123
120
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -125,7 +122,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
125
122
|
}, {
|
|
126
123
|
readonly loading: boolean;
|
|
127
124
|
readonly empty: boolean;
|
|
128
|
-
readonly sql: string;
|
|
129
125
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
130
126
|
tableData: {
|
|
131
127
|
page: number;
|
|
@@ -144,7 +140,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
144
140
|
readonly loading: boolean;
|
|
145
141
|
readonly empty: boolean;
|
|
146
142
|
readonly maxPage: number;
|
|
147
|
-
readonly
|
|
143
|
+
readonly offset: number;
|
|
148
144
|
readonly countSql: string;
|
|
149
145
|
} & {
|
|
150
146
|
setPage(page: number): void;
|
|
@@ -169,7 +165,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
169
165
|
readonly loading: boolean;
|
|
170
166
|
readonly empty: boolean;
|
|
171
167
|
readonly maxPage: number;
|
|
172
|
-
readonly
|
|
168
|
+
readonly offset: number;
|
|
173
169
|
readonly countSql: string;
|
|
174
170
|
} & {
|
|
175
171
|
setPage(page: number): void;
|
|
@@ -185,7 +181,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
185
181
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
186
182
|
readonly loading: boolean;
|
|
187
183
|
readonly empty: boolean;
|
|
188
|
-
readonly sql: string;
|
|
189
184
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
190
185
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./indexes").IndexInfoType[], import("./indexes").IndexInfoType[], import("./indexes").IndexInfoType[]>, [undefined]>;
|
|
191
186
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -193,11 +188,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
193
188
|
}, {
|
|
194
189
|
readonly loading: boolean;
|
|
195
190
|
readonly empty: boolean;
|
|
196
|
-
readonly sql: string;
|
|
197
191
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
198
192
|
table_schema: string;
|
|
199
193
|
table_name: string;
|
|
200
194
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
195
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
196
|
+
readonly reloadConditionString: string;
|
|
197
|
+
} & {
|
|
201
198
|
controllers: {
|
|
202
199
|
tables: AbortController;
|
|
203
200
|
columns: AbortController;
|
|
@@ -231,7 +228,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
231
228
|
}, {
|
|
232
229
|
readonly loading: boolean;
|
|
233
230
|
readonly empty: boolean;
|
|
234
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
235
231
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
236
232
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
237
233
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
@@ -240,7 +236,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
240
236
|
}, {
|
|
241
237
|
readonly loading: boolean;
|
|
242
238
|
readonly empty: boolean;
|
|
243
|
-
readonly sql: string;
|
|
244
239
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
245
240
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
246
241
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -259,7 +254,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
259
254
|
readonly loading: boolean;
|
|
260
255
|
readonly empty: boolean;
|
|
261
256
|
readonly maxPage: number;
|
|
262
|
-
readonly
|
|
257
|
+
readonly offset: number;
|
|
263
258
|
readonly countSql: string;
|
|
264
259
|
} & {
|
|
265
260
|
setPage(page: number): void;
|
|
@@ -275,11 +270,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
275
270
|
}, {
|
|
276
271
|
readonly loading: boolean;
|
|
277
272
|
readonly empty: boolean;
|
|
278
|
-
readonly sql: string;
|
|
279
273
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
280
274
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
281
275
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
282
276
|
}, {
|
|
277
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
278
|
+
readonly reloadConditionString: string;
|
|
279
|
+
} & {
|
|
283
280
|
controllers: {
|
|
284
281
|
tables: AbortController;
|
|
285
282
|
columns: AbortController;
|
|
@@ -16,7 +16,7 @@ export declare const TableDataModel: import("mobx-state-tree").IModelType<{
|
|
|
16
16
|
readonly loading: boolean;
|
|
17
17
|
readonly empty: boolean;
|
|
18
18
|
readonly maxPage: number;
|
|
19
|
-
readonly
|
|
19
|
+
readonly offset: number;
|
|
20
20
|
readonly countSql: string;
|
|
21
21
|
} & {
|
|
22
22
|
setPage(page: number): void;
|
|
@@ -11,5 +11,4 @@ export declare const TablesModel: import("mobx-state-tree").IModelType<{
|
|
|
11
11
|
}, {
|
|
12
12
|
readonly loading: boolean;
|
|
13
13
|
readonly empty: boolean;
|
|
14
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
15
14
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|