@evergis/react 3.1.50 → 3.1.52
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/Dashboard/containers/TaskContainer/index.d.ts +3 -0
- package/dist/components/Dashboard/containers/TaskContainer/styled.d.ts +2 -0
- package/dist/components/Dashboard/containers/UploadContainer/index.d.ts +3 -0
- package/dist/components/Dashboard/containers/UploadContainer/styled.d.ts +2 -0
- package/dist/components/Dashboard/containers/index.d.ts +1 -0
- package/dist/components/Dashboard/containers/registry.d.ts +2 -0
- package/dist/components/Dashboard/styled.d.ts +0 -1
- package/dist/components/Dashboard/types.d.ts +10 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/task/constants.d.ts +4 -0
- package/dist/hooks/task/index.d.ts +3 -0
- package/dist/hooks/task/types.d.ts +16 -0
- package/dist/hooks/task/usePythonTask.d.ts +12 -0
- package/dist/index.js +400 -224
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +400 -226
- package/dist/react.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -27,5 +27,7 @@ export declare const containerComponents: {
|
|
|
27
27
|
readonly AddFeature: import('react').FC<import('../types').ContainerProps>;
|
|
28
28
|
readonly Divider: import('react').FC<import('../types').ContainerProps>;
|
|
29
29
|
readonly ExportPdf: import('react').FC<import('../types').ContainerProps>;
|
|
30
|
+
readonly Upload: import('react').FC<import('../types').ContainerProps>;
|
|
31
|
+
readonly Task: import('react').FC<import('../types').ContainerProps>;
|
|
30
32
|
readonly default: import('react').FC<import('../types').ContainerProps>;
|
|
31
33
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const ElementValueWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
1
|
export declare const ContainerWrapper: any;
|
|
3
2
|
export declare const DashboardChip: import('styled-components').StyledComponent<any, any, any, any>;
|
|
4
3
|
export declare const DashboardPlaceholderWrap: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
@@ -27,6 +27,11 @@ export interface ConfigRelatedDataSource {
|
|
|
27
27
|
hideAxis?: boolean;
|
|
28
28
|
filterName?: string;
|
|
29
29
|
}
|
|
30
|
+
export interface ConfigRelatedResource {
|
|
31
|
+
resourceId: string;
|
|
32
|
+
parameters: Record<string, unknown>;
|
|
33
|
+
script?: string;
|
|
34
|
+
}
|
|
30
35
|
export interface BaseMapSettings {
|
|
31
36
|
opacity?: number;
|
|
32
37
|
showBuildings?: boolean;
|
|
@@ -38,10 +43,13 @@ export interface ConfigOptions {
|
|
|
38
43
|
themeName?: ThemeName;
|
|
39
44
|
relatedDataSources?: ConfigRelatedDataSource[];
|
|
40
45
|
relatedAttributes?: ConfigRelatedAttribute[];
|
|
46
|
+
relatedResources?: ConfigRelatedResource[];
|
|
41
47
|
chartType?: "bar" | "line" | "pie" | "stack";
|
|
42
48
|
layerNames?: string[];
|
|
43
49
|
layerName?: string;
|
|
44
50
|
geometryType?: GeometryType | EditGeometryType;
|
|
51
|
+
fileExtensions?: string;
|
|
52
|
+
parentResourceId?: string;
|
|
45
53
|
srid?: string;
|
|
46
54
|
title?: string;
|
|
47
55
|
label?: string;
|
|
@@ -253,6 +261,8 @@ export declare enum ContainerTemplate {
|
|
|
253
261
|
AddFeature = "AddFeature",
|
|
254
262
|
Slideshow = "Slideshow",
|
|
255
263
|
ExportPdf = "ExportPdf",
|
|
264
|
+
Upload = "Upload",
|
|
265
|
+
Task = "Task",
|
|
256
266
|
Divider = "Divider"
|
|
257
267
|
}
|
|
258
268
|
export declare enum HeaderTemplate {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RemoteTaskStatus } from '@evergis/api';
|
|
2
|
+
export interface PythonTaskProgressSubscription {
|
|
3
|
+
tag: "python_task_progress_event";
|
|
4
|
+
taskId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PythonTaskProgressNotification {
|
|
7
|
+
data: {
|
|
8
|
+
log: string;
|
|
9
|
+
progress: number;
|
|
10
|
+
status: RemoteTaskStatus;
|
|
11
|
+
subTaskId?: string;
|
|
12
|
+
taskId: string;
|
|
13
|
+
};
|
|
14
|
+
tag: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const usePythonTask: () => {
|
|
2
|
+
runTask: ({ resourceId, parameters, script, }: {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
parameters: Record<string, unknown>;
|
|
5
|
+
script: string;
|
|
6
|
+
}) => Promise<void>;
|
|
7
|
+
stopTask: () => Promise<void>;
|
|
8
|
+
result: string;
|
|
9
|
+
error: Error;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
executionTime: number;
|
|
12
|
+
};
|