@devtable/dashboard 10.55.1 → 10.56.1
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/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +284 -0
- package/dist/components/panel/settings/common/data-field-selector.d.ts +1 -1
- package/dist/components/plugins/plugin-context.d.ts +318 -2
- package/dist/contexts/panel-context.d.ts +608 -8
- package/dist/dashboard-editor/model/panels/panel.d.ts +159 -1
- package/dist/dashboard.es.js +508 -461
- package/dist/dashboard.umd.js +74 -74
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +142 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -1879,6 +1879,148 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
1879
1879
|
} & {
|
|
1880
1880
|
afterCreate(): void;
|
|
1881
1881
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
1882
|
+
queryByID(queryID: string): ({
|
|
1883
|
+
id: string;
|
|
1884
|
+
name: string;
|
|
1885
|
+
type: import('../../../model').DataSourceType;
|
|
1886
|
+
key: string;
|
|
1887
|
+
sql: string;
|
|
1888
|
+
pre_process: string;
|
|
1889
|
+
post_process: string;
|
|
1890
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1891
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1892
|
+
state: string;
|
|
1893
|
+
data: (string[][] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<string[][] | number[][] | null | undefined, string[][] | number[][], string[][] | number[][]>, [undefined]>>) | (number[][] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<string[][] | number[][] | null | undefined, string[][] | number[][], string[][] | number[][]>, [undefined]>>);
|
|
1894
|
+
error: any;
|
|
1895
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1896
|
+
readonly valid: boolean;
|
|
1897
|
+
readonly json: {
|
|
1898
|
+
id: string;
|
|
1899
|
+
key: string;
|
|
1900
|
+
sql: string;
|
|
1901
|
+
name: string;
|
|
1902
|
+
type: import('../../../model').DataSourceType;
|
|
1903
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1904
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1905
|
+
pre_process: string;
|
|
1906
|
+
post_process: string;
|
|
1907
|
+
};
|
|
1908
|
+
} & {
|
|
1909
|
+
setName(name: string): void;
|
|
1910
|
+
setKey(key: string): void;
|
|
1911
|
+
setType(type: import('../../../model').DataSourceType): void;
|
|
1912
|
+
setSQL(sql: string): void;
|
|
1913
|
+
setRunBy(v: string[]): void;
|
|
1914
|
+
setReactTo(v: string[]): void;
|
|
1915
|
+
setPreProcess(v: string): void;
|
|
1916
|
+
setPostProcess(v: string): void;
|
|
1917
|
+
} & {
|
|
1918
|
+
readonly rootModel: any;
|
|
1919
|
+
readonly contentModel: any;
|
|
1920
|
+
readonly conditionOptions: import("@mantine/core").SelectItem[];
|
|
1921
|
+
readonly unmetRunByConditions: string[];
|
|
1922
|
+
} & {
|
|
1923
|
+
readonly payload: any;
|
|
1924
|
+
readonly formattedSQL: any;
|
|
1925
|
+
readonly httpConfigString: string;
|
|
1926
|
+
readonly typedAsSQL: boolean;
|
|
1927
|
+
readonly typedAsHTTP: boolean;
|
|
1928
|
+
readonly reQueryKey: string;
|
|
1929
|
+
readonly runByConditionsMet: boolean;
|
|
1930
|
+
readonly conditionNames: {
|
|
1931
|
+
context: string[];
|
|
1932
|
+
filters: any[];
|
|
1933
|
+
};
|
|
1934
|
+
readonly queries: any;
|
|
1935
|
+
readonly inUse: any;
|
|
1936
|
+
readonly dependencies: import("../../../utils/usage").DependencyInfo[];
|
|
1937
|
+
} & {
|
|
1938
|
+
readonly datasource: any;
|
|
1939
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
1940
|
+
} & {
|
|
1941
|
+
readonly stateMessage: string;
|
|
1942
|
+
} & {
|
|
1943
|
+
controller: AbortController;
|
|
1944
|
+
} & {
|
|
1945
|
+
runSQL: () => Promise<void>;
|
|
1946
|
+
runHTTP: () => Promise<void>;
|
|
1947
|
+
} & {
|
|
1948
|
+
fetchData: (force: boolean) => Promise<void> | undefined;
|
|
1949
|
+
beforeDestroy(): void;
|
|
1950
|
+
} & {
|
|
1951
|
+
afterCreate(): void;
|
|
1952
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1953
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
1954
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
1955
|
+
type: import("mobx-state-tree").ISimpleType<import('../../../model').DataSourceType>;
|
|
1956
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
1957
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
1958
|
+
pre_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
1959
|
+
post_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
1960
|
+
run_by: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
1961
|
+
react_to: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
1962
|
+
} & {
|
|
1963
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
1964
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<string[][] | number[][] | null | undefined, string[][] | number[][], string[][] | number[][]>, [undefined]>;
|
|
1965
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly valid: boolean;
|
|
1968
|
+
readonly json: {
|
|
1969
|
+
id: string;
|
|
1970
|
+
key: string;
|
|
1971
|
+
sql: string;
|
|
1972
|
+
name: string;
|
|
1973
|
+
type: import('../../../model').DataSourceType;
|
|
1974
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1975
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
1976
|
+
pre_process: string;
|
|
1977
|
+
post_process: string;
|
|
1978
|
+
};
|
|
1979
|
+
} & {
|
|
1980
|
+
setName(name: string): void;
|
|
1981
|
+
setKey(key: string): void;
|
|
1982
|
+
setType(type: import('../../../model').DataSourceType): void;
|
|
1983
|
+
setSQL(sql: string): void;
|
|
1984
|
+
setRunBy(v: string[]): void;
|
|
1985
|
+
setReactTo(v: string[]): void;
|
|
1986
|
+
setPreProcess(v: string): void;
|
|
1987
|
+
setPostProcess(v: string): void;
|
|
1988
|
+
} & {
|
|
1989
|
+
readonly rootModel: any;
|
|
1990
|
+
readonly contentModel: any;
|
|
1991
|
+
readonly conditionOptions: import("@mantine/core").SelectItem[];
|
|
1992
|
+
readonly unmetRunByConditions: string[];
|
|
1993
|
+
} & {
|
|
1994
|
+
readonly payload: any;
|
|
1995
|
+
readonly formattedSQL: any;
|
|
1996
|
+
readonly httpConfigString: string;
|
|
1997
|
+
readonly typedAsSQL: boolean;
|
|
1998
|
+
readonly typedAsHTTP: boolean;
|
|
1999
|
+
readonly reQueryKey: string;
|
|
2000
|
+
readonly runByConditionsMet: boolean;
|
|
2001
|
+
readonly conditionNames: {
|
|
2002
|
+
context: string[];
|
|
2003
|
+
filters: any[];
|
|
2004
|
+
};
|
|
2005
|
+
readonly queries: any;
|
|
2006
|
+
readonly inUse: any;
|
|
2007
|
+
readonly dependencies: import("../../../utils/usage").DependencyInfo[];
|
|
2008
|
+
} & {
|
|
2009
|
+
readonly datasource: any;
|
|
2010
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
2011
|
+
} & {
|
|
2012
|
+
readonly stateMessage: string;
|
|
2013
|
+
} & {
|
|
2014
|
+
controller: AbortController;
|
|
2015
|
+
} & {
|
|
2016
|
+
runSQL: () => Promise<void>;
|
|
2017
|
+
runHTTP: () => Promise<void>;
|
|
2018
|
+
} & {
|
|
2019
|
+
fetchData: (force: boolean) => Promise<void> | undefined;
|
|
2020
|
+
beforeDestroy(): void;
|
|
2021
|
+
} & {
|
|
2022
|
+
afterCreate(): void;
|
|
2023
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
1882
2024
|
readonly data: TPanelData;
|
|
1883
2025
|
readonly variableStrings: Record<string, import('./react').ReactNode>;
|
|
1884
2026
|
readonly dataLoading: boolean;
|
|
@@ -2202,11 +2344,27 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
2202
2344
|
};
|
|
2203
2345
|
downloadSchema(): void;
|
|
2204
2346
|
} & {
|
|
2205
|
-
readonly
|
|
2347
|
+
readonly realDataFieldOptions: {
|
|
2206
2348
|
label: string;
|
|
2207
2349
|
value: string;
|
|
2208
2350
|
group: string;
|
|
2351
|
+
disabled: boolean;
|
|
2209
2352
|
}[];
|
|
2353
|
+
dataFieldOptions(selected: TDataKey, clearable: boolean): {
|
|
2354
|
+
label: string;
|
|
2355
|
+
value: string;
|
|
2356
|
+
group: string;
|
|
2357
|
+
disabled: boolean;
|
|
2358
|
+
}[];
|
|
2359
|
+
explainDataKey(dataKey: TDataKey): {
|
|
2360
|
+
queryID: string;
|
|
2361
|
+
queryName: null;
|
|
2362
|
+
columnKey: string;
|
|
2363
|
+
} | {
|
|
2364
|
+
queryID: string;
|
|
2365
|
+
queryName: string;
|
|
2366
|
+
columnKey: string;
|
|
2367
|
+
};
|
|
2210
2368
|
} & {
|
|
2211
2369
|
removeSelf(): void;
|
|
2212
2370
|
} & {
|