@hybridcore/ui 1.0.2 → 1.1.2
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/ButtonBase-BYmh3G5j.js +967 -0
- package/dist/CardContent-C8PxkJz4.js +73 -0
- package/dist/Checkbox-DostZSwR.js +673 -0
- package/dist/DialogContent-2aPOjKE7.js +2025 -0
- package/dist/FormControl-BiAFm76F.js +1491 -0
- package/dist/IconButton-CQJ8wZE8.js +183 -0
- package/dist/Input-Bf5G3tFN.js +324 -0
- package/dist/OutlinedInput-BEVE8VZQ.js +452 -0
- package/dist/Paper-CaiWdndQ.js +162 -0
- package/dist/Select-DxpxZbJp.js +2526 -0
- package/dist/Source-CnCcu5UP.js +4374 -0
- package/dist/Text-BT5kPHOo.js +2192 -0
- package/dist/Typography-XIiVCSto.js +178 -0
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/chainPropTypes-DtBfUj5o.js +96 -0
- package/dist/components/access/helpers.js +32 -0
- package/dist/components/access/index.js +15 -0
- package/dist/components/card/index.js +159 -469
- package/dist/components/card/styled.js +75 -7
- package/dist/components/conditional-wrapper/index.js +9 -0
- package/dist/components/confirm/dialog.js +151 -0
- package/dist/components/confirm/index.js +23 -0
- package/dist/components/container/index.js +270 -0
- package/dist/components/context-menu/index.js +973 -0
- package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
- package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
- package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
- package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
- package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
- package/dist/components/data-management/instance-form/index.js +437 -0
- package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
- package/dist/components/data-security-selectors/security-level/index.js +81 -0
- package/dist/components/date-time-picker/index.js +103 -0
- package/dist/components/geometry-picker/coordinate/index.js +93 -0
- package/dist/components/geometry-picker/edit/index.js +71 -0
- package/dist/components/geometry-picker/geometry/index.js +160 -0
- package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
- package/dist/components/geometry-picker/index.js +140 -0
- package/dist/components/geometry-picker/kml/index.js +62 -0
- package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
- package/dist/components/geometry-picker/logic.js +69 -0
- package/dist/components/geometry-picker/map/index.js +42 -0
- package/dist/components/geometry-picker/map/logic.js +2360 -0
- package/dist/components/geometry-picker/map/style.js +88 -0
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
- package/dist/components/geometry-picker/parser/index.js +179 -0
- package/dist/components/geometry-picker/parser/logic.js +84 -0
- package/dist/components/geometry-picker/parser/styled.js +25 -0
- package/dist/components/geometry-picker/styled.js +48 -0
- package/dist/components/geometry-picker/wkt/index.js +59 -0
- package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
- package/dist/components/icon-button/index.js +18 -0
- package/dist/components/icon-button/styled.js +51 -0
- package/dist/components/key-protection/index.js +4 -0
- package/dist/components/key-protection/menu.js +85 -0
- package/dist/components/key-protection/utils.js +10 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/styled.js +16 -0
- package/dist/components/map/helpers/kml.js +45 -0
- package/dist/components/map/helpers/mapbox.js +48 -0
- package/dist/components/map/helpers/ol.js +25 -0
- package/dist/components/map/helpers/wkt.js +29 -0
- package/dist/components/map/index.js +8 -0
- package/dist/components/map/logic.js +140 -0
- package/dist/components/map/styled.js +8 -0
- package/dist/components/phone-input/index.js +25 -0
- package/dist/components/phone-input/styled.js +26 -0
- package/dist/components/search-input/index.js +76 -0
- package/dist/components/tree-select/index.js +70 -0
- package/dist/components/tree-select/styled.js +64 -0
- package/dist/components/treeview-filter/index.js +621 -0
- package/dist/components/treeview-filter/item/index.js +7 -0
- package/dist/components/treeview-filter/item-label/index.js +44 -0
- package/dist/createTheme-agWfFD64.js +2392 -0
- package/dist/exactProp-CI8dagM-.js +36 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/has-9_asnBxn.js +688 -0
- package/dist/hooks/useMenuLogic.js +21 -0
- package/dist/hooks/useToggle.js +23 -0
- package/dist/index-Bw_m9ult.js +1105 -0
- package/dist/index-IvOfmM1F.js +34 -0
- package/dist/index-wW2D1aTG.js +957 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/listItemTextClasses-BvXFz-Oc.js +132 -0
- package/dist/main.d.ts +1317 -0
- package/dist/main.js +41 -2
- package/dist/ol-DXmSLlWv.js +15041 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/styled-C43K9x7T.js +229 -0
- package/dist/styled-Iq9jsO4F.js +1033 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BHG98T5I.js +26 -0
- package/dist/useTheme-C0Dky5rV.js +17 -0
- package/dist/useTheme-CeyGVuQP.js +10 -0
- package/dist/useThemeProps-CzAjOL6F.js +26 -0
- package/dist/utils/ontology.js +37 -0
- package/dist/utils-Bq0ye5vf.js +115 -0
- package/dist/utils-DLpkeyhZ.js +365 -0
- package/package.json +26 -5
- package/dist/styled-BG5UIpPU.js +0 -3459
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { Collection } from 'ol';
|
|
3
|
+
import { Coordinate } from 'ol/coordinate';
|
|
4
|
+
import { Dayjs } from 'dayjs';
|
|
1
5
|
import { default as default_2 } from 'react';
|
|
6
|
+
import { default as default_3 } from 'ol/layer/Layer';
|
|
7
|
+
import { default as default_4 } from 'ol/layer/Group';
|
|
8
|
+
import { DefaultsOptions } from 'ol/interaction/defaults';
|
|
9
|
+
import { DefaultsOptions as DefaultsOptions_2 } from 'ol/control/defaults';
|
|
10
|
+
import { Extent } from 'ol/extent';
|
|
11
|
+
import { FC } from 'react';
|
|
12
|
+
import { Feature } from 'ol';
|
|
13
|
+
import { Geometry } from 'ol/geom';
|
|
14
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
15
|
+
import { Pixel } from 'ol/pixel';
|
|
16
|
+
import { Size } from 'ol/size';
|
|
17
|
+
import { SxProps } from '@mui/material/styles';
|
|
18
|
+
import { SxProps as SxProps_2 } from '@mui/material';
|
|
19
|
+
import { Theme } from '@mui/material/styles';
|
|
20
|
+
import { View } from 'ol';
|
|
21
|
+
|
|
22
|
+
export declare const Access: React.FC<Props>;
|
|
23
|
+
|
|
24
|
+
declare function alert_2(title: string, message: string): Promise<unknown>;
|
|
25
|
+
export { alert_2 as alert }
|
|
26
|
+
|
|
27
|
+
declare function authenticate(credId: BufferSource): Promise<boolean>;
|
|
2
28
|
|
|
3
29
|
declare interface AvatarType {
|
|
4
30
|
title: string;
|
|
@@ -6,6 +32,13 @@ declare interface AvatarType {
|
|
|
6
32
|
image: string;
|
|
7
33
|
}
|
|
8
34
|
|
|
35
|
+
declare interface ButtonType {
|
|
36
|
+
label: string;
|
|
37
|
+
startIcon?: React.ReactNode;
|
|
38
|
+
endIcon?: React.ReactNode;
|
|
39
|
+
onClick?(event?: React.MouseEvent<HTMLElement>): void;
|
|
40
|
+
}
|
|
41
|
+
|
|
9
42
|
export declare const Card: React.FC<CardProps>;
|
|
10
43
|
|
|
11
44
|
declare interface CardProps {
|
|
@@ -26,6 +59,1290 @@ declare interface CardProps {
|
|
|
26
59
|
stats?: default_2.ReactNode;
|
|
27
60
|
}
|
|
28
61
|
|
|
62
|
+
export declare const ConditionalWrapper: React.FC<ConditionalWrapperProps>;
|
|
63
|
+
|
|
64
|
+
declare interface ConditionalWrapperProps {
|
|
65
|
+
/**
|
|
66
|
+
* Condition to wrap
|
|
67
|
+
*/
|
|
68
|
+
condition: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @param children React.ReactElement
|
|
71
|
+
*/
|
|
72
|
+
wrapper(children: default_2.ReactElement): default_2.ReactElement;
|
|
73
|
+
/**
|
|
74
|
+
* Child components to wrap
|
|
75
|
+
*/
|
|
76
|
+
children: default_2.ReactElement;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare function confirm_2(title: string, description: string, options?: OptionsType): Promise<unknown>;
|
|
80
|
+
export { confirm_2 as confirm }
|
|
81
|
+
|
|
82
|
+
export declare const Container: React.FC<ContainerProps>;
|
|
83
|
+
|
|
84
|
+
declare interface ContainerProps {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
title?: default_2.ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
subheader?: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
action?: default_2.ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
disableHeader?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
sx?: SxProps<Theme>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
headerSx?: SxProps<Theme>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
contentSx?: SxProps<Theme>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
elevation?: number;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
children?: default_2.ReactNode;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare const ContextMenu: React.FC<Props_2>;
|
|
124
|
+
|
|
125
|
+
declare interface DataType extends ItemProps {
|
|
126
|
+
idKey?: string;
|
|
127
|
+
children?: DataType[];
|
|
128
|
+
defaultSelected?: string[];
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export declare const DateTimePicker: React.FC<Props_3>;
|
|
132
|
+
|
|
133
|
+
declare function decrypt(encryptionKey: any, base64data: string): Promise<{
|
|
134
|
+
status: string;
|
|
135
|
+
data: string;
|
|
136
|
+
message?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
status: string;
|
|
139
|
+
message: string;
|
|
140
|
+
data?: undefined;
|
|
141
|
+
}>;
|
|
142
|
+
|
|
143
|
+
declare const _default: default_2.MemoExoticComponent<(props: MAP.Props & default_2.RefAttributes<MAP.Handle>) => default_2.ReactNode | null>;
|
|
144
|
+
|
|
145
|
+
export declare const DisseminationList: React.FC<DisseminationListProps>;
|
|
146
|
+
|
|
147
|
+
declare interface DisseminationListProps {
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
selectedIds: string[];
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
memberedGroups: AUTH.MemberedGroupsType[];
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
showError?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
variant?: "standart" | "outlined";
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
onChange(value: string[]): void;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare function encrypt(encryptionKey: any, data: any): Promise<{
|
|
171
|
+
status: string;
|
|
172
|
+
data: string;
|
|
173
|
+
message?: undefined;
|
|
174
|
+
} | {
|
|
175
|
+
status: string;
|
|
176
|
+
message: string;
|
|
177
|
+
data?: undefined;
|
|
178
|
+
}>;
|
|
179
|
+
|
|
180
|
+
declare function exportKey(key: any): Promise<JsonWebKey>;
|
|
181
|
+
|
|
182
|
+
declare function generateKey(): Promise<CryptoKey>;
|
|
183
|
+
|
|
184
|
+
export declare const GeometryPicker: React.FC<Props_4>;
|
|
185
|
+
|
|
186
|
+
declare interface Handle {
|
|
187
|
+
reset: () => void;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export declare const IconButton: default_2.FC<Props_5>;
|
|
191
|
+
|
|
192
|
+
declare function importKey(jwk: any): Promise<CryptoKey>;
|
|
193
|
+
|
|
194
|
+
export declare const InstanceForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends INSTANCE.CreateObjectDTO | INSTANCE.UpdateObjectDTO | INSTANCE.CreateEventDTO | INSTANCE.UpdateEventDTO | INSTANCE.CreateAgentDTO | INSTANCE.CreateFileDTO | INSTANCE.UpdateFileDTO>(props: InstanceFormProps<T, K> & default_2.RefAttributes<InstanceFormHandle>) => default_2.ReactNode | null;
|
|
195
|
+
|
|
196
|
+
declare interface InstanceFormHandle {
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @returns
|
|
200
|
+
*/
|
|
201
|
+
resetForm: () => void;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @param name
|
|
205
|
+
* @param value
|
|
206
|
+
* @returns
|
|
207
|
+
*/
|
|
208
|
+
setFormValue: (name: any, value: any) => void;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @param name
|
|
212
|
+
* @returns
|
|
213
|
+
*/
|
|
214
|
+
getFormValue: (name: any) => any;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare interface InstanceFormProps<
|
|
218
|
+
T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File,
|
|
219
|
+
K extends
|
|
220
|
+
| INSTANCE.CreateObjectDTO
|
|
221
|
+
| INSTANCE.UpdateObjectDTO
|
|
222
|
+
| INSTANCE.CreateEventDTO
|
|
223
|
+
| INSTANCE.UpdateEventDTO
|
|
224
|
+
| INSTANCE.CreateAgentDTO
|
|
225
|
+
| INSTANCE.CreateFileDTO
|
|
226
|
+
| INSTANCE.UpdateFileDTO
|
|
227
|
+
> {
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
*/
|
|
231
|
+
variant?: "inline" | "dialog";
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
mappedTemplates: Map<string | number, T>;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
defaultValues: K;
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
loading: boolean;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
removeLoading?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
disableTemplateChange?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
*/
|
|
255
|
+
minSecurityLevel?: number;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
*/
|
|
259
|
+
saveButtons?: SubmitButton[];
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
263
|
+
mode?: "create" | "edit";
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
*/
|
|
267
|
+
keyAuth?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
271
|
+
securityLevelConfig?: SecurityLevelConfig;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
memberedGroups: AUTH.MemberedGroupsType[];
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
*/
|
|
279
|
+
ontologyId: number;
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
283
|
+
appRoles: AUTH.PermissionType;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
*/
|
|
287
|
+
securityLevels: AUTH.SecurityLevel[];
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
*/
|
|
291
|
+
policyList: POLICY.Policy[];
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @param template
|
|
295
|
+
*/
|
|
296
|
+
onSelectedTemplateChange?(template: T | undefined): void;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @param data
|
|
300
|
+
*/
|
|
301
|
+
onSubmit(data: any): void;
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
onRemove?(): void;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
*/
|
|
309
|
+
onCancel?(): void;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare interface ItemProps {
|
|
313
|
+
id: string | number;
|
|
314
|
+
name: string;
|
|
315
|
+
checked?: boolean;
|
|
316
|
+
disabled?: boolean;
|
|
317
|
+
disabledIds?: string[];
|
|
318
|
+
onChange?(id: string, checked: boolean): void;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export declare namespace KeyProductionUtils {
|
|
322
|
+
export {
|
|
323
|
+
register,
|
|
324
|
+
authenticate,
|
|
325
|
+
generateKey,
|
|
326
|
+
encrypt,
|
|
327
|
+
decrypt,
|
|
328
|
+
exportKey,
|
|
329
|
+
importKey
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare const KeyProtectionMenu: React.FC<Props_6>;
|
|
334
|
+
|
|
335
|
+
export declare const Loading: React.FC<Props_7>;
|
|
336
|
+
|
|
337
|
+
declare namespace MAP {
|
|
338
|
+
interface Coordinate {
|
|
339
|
+
latitude: number;
|
|
340
|
+
longitude: number;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface BoundingBox {
|
|
344
|
+
bottomLeft: Coordinate;
|
|
345
|
+
topRight: Coordinate;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
interface OptionsType {
|
|
349
|
+
cursor?: string;
|
|
350
|
+
cssPosition?: "absolute" | "fixed" | "relative";
|
|
351
|
+
interactions?: DefaultsOptions;
|
|
352
|
+
controls?: DefaultsOptions_2;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface Props {
|
|
356
|
+
id?: string;
|
|
357
|
+
layers?: any[];
|
|
358
|
+
center?: Coordinate;
|
|
359
|
+
zoom?: number;
|
|
360
|
+
options?: OptionsType;
|
|
361
|
+
onInit?(): void;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
interface Handle {
|
|
365
|
+
addLayer(layer: any): void;
|
|
366
|
+
addOverlay(overlay: any): void;
|
|
367
|
+
removeOverlay(overlay: any): void;
|
|
368
|
+
removeOverlayById(id: string | number): void;
|
|
369
|
+
insertLayerAt(index: number, layer: any): void;
|
|
370
|
+
getAllLayers(): Array<default_3>;
|
|
371
|
+
getBoundingBox(): BoundingBox;
|
|
372
|
+
getCoordinateFromPixel(pixel: Pixel): Coordinate;
|
|
373
|
+
getLayerGroup(): void;
|
|
374
|
+
getLayers(): Collection<default_3 | default_4>;
|
|
375
|
+
getSize(): Size;
|
|
376
|
+
getZoomLevel(): number | undefined;
|
|
377
|
+
removeLayer(layer: any): void;
|
|
378
|
+
setLayerGroup(layerGroup: any): void;
|
|
379
|
+
setLayers(layers: any[]): void;
|
|
380
|
+
addInteraction(interaction: any): void;
|
|
381
|
+
removeInteraction(interaction: any): void;
|
|
382
|
+
on(eventName: string, callback: (event?: any) => void): void;
|
|
383
|
+
getView(): View;
|
|
384
|
+
getEventPixel(event: MouseEvent): Pixel;
|
|
385
|
+
getEventCoordinate(event: MouseEvent): Coordinate;
|
|
386
|
+
forEachFeatureAtPixel(pixel: Pixel): Feature;
|
|
387
|
+
centerToFeature(feature: Feature<Geometry>, padding?: number[]): void;
|
|
388
|
+
centerToExtent(
|
|
389
|
+
extent: Extent,
|
|
390
|
+
minResolution?: number,
|
|
391
|
+
padding?: number[]
|
|
392
|
+
): void;
|
|
393
|
+
setCenter(coordinate: Coordinate): void;
|
|
394
|
+
setZoomLevel(level: number): void;
|
|
395
|
+
updateSize(): void;
|
|
396
|
+
zoomIn(): void;
|
|
397
|
+
zoomOut(): void;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
interface KMLMarker {
|
|
401
|
+
icon: string;
|
|
402
|
+
geometry: string[];
|
|
403
|
+
clusterIcon: string;
|
|
404
|
+
data?: any;
|
|
405
|
+
groupName?: string;
|
|
406
|
+
selected?: boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface WKTMarker {
|
|
410
|
+
icon: string;
|
|
411
|
+
geometry: string[];
|
|
412
|
+
clusterIcon: string;
|
|
413
|
+
data?: any;
|
|
414
|
+
groupName?: string;
|
|
415
|
+
selected?: boolean;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export declare namespace Map_2 {
|
|
420
|
+
export {
|
|
421
|
+
_default as default
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare type MousePosition = {
|
|
426
|
+
top: number;
|
|
427
|
+
left: number;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
declare interface OptionsType {
|
|
431
|
+
confirmButtonText?: string;
|
|
432
|
+
cancelButtonText?: string;
|
|
433
|
+
disableCancelButton?: boolean;
|
|
434
|
+
}
|
|
435
|
+
|
|
29
436
|
declare type OrientationType_2 = "portrait" | "landscape";
|
|
30
437
|
|
|
438
|
+
export declare const PhoneInput: React.FC<Props_8>;
|
|
439
|
+
|
|
440
|
+
declare interface Props {
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
appRoles: AUTH.PermissionType;
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
*/
|
|
448
|
+
loading?: boolean;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
pagePath?: string;
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
feature?: AUTH.ModuleType;
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
*/
|
|
460
|
+
fallback?: default_2.ReactNode;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
children?: default_2.ReactNode;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare interface Props_2 {
|
|
468
|
+
open: boolean;
|
|
469
|
+
buttons: ButtonType[];
|
|
470
|
+
position?: MousePosition;
|
|
471
|
+
width?: number | string;
|
|
472
|
+
sx?: SxProps_2;
|
|
473
|
+
onClose?(): void;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare interface Props_3 {
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
*/
|
|
480
|
+
value: string;
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
*/
|
|
484
|
+
onChange(value: string);
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
*/
|
|
488
|
+
name?: string;
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
*/
|
|
492
|
+
minDate?: Dayjs;
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
variant?: "standard" | "outlined" | "filled";
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
*/
|
|
500
|
+
size?: "small" | "medium";
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
minuteStep?: number;
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
*/
|
|
508
|
+
pattern?: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare interface Props_4 {
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
*/
|
|
515
|
+
label: string;
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
*/
|
|
519
|
+
mapboxAccessToken: string;
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
523
|
+
value?: string;
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
*/
|
|
527
|
+
disableAddCoordinate?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
*/
|
|
531
|
+
defaultExtent?: Extent;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
onChange?(value: string): void;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
declare interface Props_5 extends IconButtonProps {
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
*/
|
|
542
|
+
variant?: "default" | "vertical" | "mini";
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
startIcon?: React.ReactNode;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
*/
|
|
550
|
+
onclick?(): void;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
children: React.ReactNode;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare interface Props_6 {
|
|
558
|
+
encryptionKey: CryptoKey | null;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare interface Props_7 extends StyleProps {
|
|
562
|
+
show: boolean;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare interface Props_8 {
|
|
566
|
+
label: string;
|
|
567
|
+
value: string;
|
|
568
|
+
placeholder?: string;
|
|
569
|
+
onChange(value: string): void;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare interface Props_9 {
|
|
573
|
+
data: DataType[];
|
|
574
|
+
idKey?: string;
|
|
575
|
+
selected?: string[];
|
|
576
|
+
expanded?: string[];
|
|
577
|
+
disabled?: string[];
|
|
578
|
+
disableSearch?: boolean;
|
|
579
|
+
onChange?(id: string, checked: boolean): void;
|
|
580
|
+
onToggle?(event: React.SyntheticEvent, nodeIds: string[]): void;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
declare function register(): Promise<Credential | null>;
|
|
584
|
+
|
|
585
|
+
export declare const SearchInput: (props: SearchInputProps & default_2.RefAttributes<Handle>) => default_2.ReactNode | null;
|
|
586
|
+
|
|
587
|
+
declare interface SearchInputProps {
|
|
588
|
+
defaultValue?: string;
|
|
589
|
+
label?: string;
|
|
590
|
+
placeholder?: string;
|
|
591
|
+
fullWidth?: boolean;
|
|
592
|
+
disableLabel?: boolean;
|
|
593
|
+
iconSize?: "small" | "medium" | "large";
|
|
594
|
+
sx?: SxProps<Theme>;
|
|
595
|
+
onChange?(value: string): void;
|
|
596
|
+
onSubmit?(value: string | undefined): void;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export declare const SecurityLevel: React.FC<SecurityLevelProps>;
|
|
600
|
+
|
|
601
|
+
declare interface SecurityLevelConfig {
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
*/
|
|
605
|
+
templateKeys: string[];
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
*/
|
|
609
|
+
templateType: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare interface SecurityLevelProps {
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
*/
|
|
616
|
+
value: number;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
ontologyId: number;
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
*/
|
|
624
|
+
appRoles: AUTH.PermissionType;
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
*/
|
|
628
|
+
securityLevels: AUTH.SecurityLevel[];
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
*/
|
|
632
|
+
minLevel?: number;
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
636
|
+
minLevelId?: number;
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
*/
|
|
640
|
+
minLevelRoles?: string[];
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
*/
|
|
644
|
+
showError?: boolean;
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
*/
|
|
648
|
+
variant?: "standard" | "outlined";
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
*/
|
|
652
|
+
templateKeys?: string[];
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
*/
|
|
656
|
+
templateType?: string;
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
*/
|
|
660
|
+
onChange(value: number): void;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare interface StyleProps extends BoxProps {
|
|
664
|
+
overlay?: boolean;
|
|
665
|
+
overlayColor?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare interface SubmitButton {
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
*/
|
|
672
|
+
label: string;
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
*/
|
|
676
|
+
icon?: React.ReactNode;
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
*/
|
|
680
|
+
onClick?(): void;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export declare const TreeSelect: FC<TreeSelectProps>;
|
|
684
|
+
|
|
685
|
+
declare interface TreeSelectProps {
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
*/
|
|
689
|
+
data: any;
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
693
|
+
selected: "" | string[] | undefined;
|
|
694
|
+
disabled?: string[];
|
|
695
|
+
label?: string;
|
|
696
|
+
idKey?: string;
|
|
697
|
+
onChange(id: string, checked: boolean): void;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export declare const TreeViewFilter: FC<Props_9>;
|
|
701
|
+
|
|
31
702
|
export { }
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
declare namespace MAP {
|
|
707
|
+
interface Coordinate {
|
|
708
|
+
latitude: number;
|
|
709
|
+
longitude: number;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
interface BoundingBox {
|
|
713
|
+
bottomLeft: Coordinate;
|
|
714
|
+
topRight: Coordinate;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
interface OptionsType {
|
|
718
|
+
cursor?: string;
|
|
719
|
+
cssPosition?: "absolute" | "fixed" | "relative";
|
|
720
|
+
interactions?: InteractionDefaultsOptions;
|
|
721
|
+
controls?: ControlDefaultsOptions;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
interface Props {
|
|
725
|
+
id?: string;
|
|
726
|
+
layers?: any[];
|
|
727
|
+
center?: Coordinate;
|
|
728
|
+
zoom?: number;
|
|
729
|
+
options?: OptionsType;
|
|
730
|
+
onInit?(): void;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
interface Handle {
|
|
734
|
+
addLayer(layer: any): void;
|
|
735
|
+
addOverlay(overlay: any): void;
|
|
736
|
+
removeOverlay(overlay: any): void;
|
|
737
|
+
removeOverlayById(id: string | number): void;
|
|
738
|
+
insertLayerAt(index: number, layer: any): void;
|
|
739
|
+
getAllLayers(): Array<Layer>;
|
|
740
|
+
getBoundingBox(): BoundingBox;
|
|
741
|
+
getCoordinateFromPixel(pixel: Pixel): OlCoordinate;
|
|
742
|
+
getLayerGroup(): void;
|
|
743
|
+
getLayers(): Collection<Layer | LayerGroup>;
|
|
744
|
+
getSize(): Size;
|
|
745
|
+
getZoomLevel(): number | undefined;
|
|
746
|
+
removeLayer(layer: any): void;
|
|
747
|
+
setLayerGroup(layerGroup: any): void;
|
|
748
|
+
setLayers(layers: any[]): void;
|
|
749
|
+
addInteraction(interaction: any): void;
|
|
750
|
+
removeInteraction(interaction: any): void;
|
|
751
|
+
on(eventName: string, callback: (event?: any) => void): void;
|
|
752
|
+
getView(): View;
|
|
753
|
+
getEventPixel(event: MouseEvent): Pixel;
|
|
754
|
+
getEventCoordinate(event: MouseEvent): OlCoordinate;
|
|
755
|
+
forEachFeatureAtPixel(pixel: Pixel): Feature;
|
|
756
|
+
centerToFeature(feature: Feature<Geometry>, padding?: number[]): void;
|
|
757
|
+
centerToExtent(
|
|
758
|
+
extent: Extent,
|
|
759
|
+
minResolution?: number,
|
|
760
|
+
padding?: number[]
|
|
761
|
+
): void;
|
|
762
|
+
setCenter(coordinate: OlCoordinate): void;
|
|
763
|
+
setZoomLevel(level: number): void;
|
|
764
|
+
updateSize(): void;
|
|
765
|
+
zoomIn(): void;
|
|
766
|
+
zoomOut(): void;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
interface KMLMarker {
|
|
770
|
+
icon: string;
|
|
771
|
+
geometry: string[];
|
|
772
|
+
clusterIcon: string;
|
|
773
|
+
data?: any;
|
|
774
|
+
groupName?: string;
|
|
775
|
+
selected?: boolean;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
interface WKTMarker {
|
|
779
|
+
icon: string;
|
|
780
|
+
geometry: string[];
|
|
781
|
+
clusterIcon: string;
|
|
782
|
+
data?: any;
|
|
783
|
+
groupName?: string;
|
|
784
|
+
selected?: boolean;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
declare namespace AUTH {
|
|
789
|
+
type ModuleType =
|
|
790
|
+
| "UI"
|
|
791
|
+
| "MAIN"
|
|
792
|
+
| "ANALYTICS"
|
|
793
|
+
| "FOCUS_VISION"
|
|
794
|
+
| "FOCUS_VISION.MAP_VIEW"
|
|
795
|
+
| "FOCUS_VISION.LIST_VIEW"
|
|
796
|
+
| "NETWORK_ANALYSIS"
|
|
797
|
+
| "SIMULATION"
|
|
798
|
+
| "AGENT_BASED_SIMULATION"
|
|
799
|
+
| "DATA_MANAGEMENT"
|
|
800
|
+
| "RELATION_ENHANCER"
|
|
801
|
+
| "OBJECT_PROFILE";
|
|
802
|
+
|
|
803
|
+
type DataType = "DATA";
|
|
804
|
+
|
|
805
|
+
type PermissionKeyType = ModuleType & DataType;
|
|
806
|
+
|
|
807
|
+
interface PermissionType {
|
|
808
|
+
[key: PermissionKeyType]: {
|
|
809
|
+
access: "ALL" | "READ" | null;
|
|
810
|
+
permissions: PermissionType;
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
interface MemberedGroupsType {
|
|
815
|
+
id: string;
|
|
816
|
+
name: string;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
interface SecurityLevel {
|
|
820
|
+
id: number;
|
|
821
|
+
roleStr: string;
|
|
822
|
+
name: string;
|
|
823
|
+
level: number;
|
|
824
|
+
securityLevelGroupId: number;
|
|
825
|
+
// securityLevelGroup: SecurityLevelGroup;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
interface SecurityLevelGroup {
|
|
829
|
+
id: number;
|
|
830
|
+
name: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
interface UserProfileInfo {
|
|
834
|
+
id: string;
|
|
835
|
+
displayName: string;
|
|
836
|
+
userPrincipalName: string;
|
|
837
|
+
mail: string;
|
|
838
|
+
department: string | null;
|
|
839
|
+
jobTitle: string | null;
|
|
840
|
+
imageBase64: string;
|
|
841
|
+
securityLevels: SecurityLevel[];
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
declare namespace INSTANCE {
|
|
846
|
+
interface String {
|
|
847
|
+
[key: string | number]: string;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
interface Boolean {
|
|
851
|
+
[key: string | number]: boolean;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
interface Date {
|
|
855
|
+
[key: string | number]: string;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
interface Byte {
|
|
859
|
+
[key: string | number]: string;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
interface Coordinate {
|
|
863
|
+
[key: string | number]: string;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
interface Geometry {
|
|
867
|
+
[key: string | number]: string;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
interface Double {
|
|
871
|
+
[key: string | number]: number;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
interface Integer {
|
|
875
|
+
[key: string | number]: number;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
interface Long {
|
|
879
|
+
[key: string | number]: number;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
interface Enum {
|
|
883
|
+
[key: string | number]: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
interface List {
|
|
887
|
+
[key: string | number]: string[];
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
interface Text {
|
|
891
|
+
[key: string | number]: string;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
interface GroupedVariables {
|
|
895
|
+
string?: String;
|
|
896
|
+
boolean?: Boolean;
|
|
897
|
+
date?: Date;
|
|
898
|
+
byte?: Byte;
|
|
899
|
+
coordinate?: Coordinate;
|
|
900
|
+
geometry?: Geometry;
|
|
901
|
+
double?: Double;
|
|
902
|
+
integer?: Integer;
|
|
903
|
+
long?: Long;
|
|
904
|
+
enum?: Enum;
|
|
905
|
+
list?: List;
|
|
906
|
+
text?: Text;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
interface Variable {
|
|
910
|
+
[key: string | number]: string;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
interface Location {
|
|
914
|
+
kml?: string;
|
|
915
|
+
wkt?: string;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
interface Object {
|
|
919
|
+
id: number;
|
|
920
|
+
title: string;
|
|
921
|
+
description: string;
|
|
922
|
+
template: ONTOLOGY.GenericTemplateView;
|
|
923
|
+
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
924
|
+
variables: GroupedVariables;
|
|
925
|
+
profileImageUrl?: string;
|
|
926
|
+
securityLevelId: number;
|
|
927
|
+
disseminationList: string[];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
interface CreateObjectDTO {
|
|
931
|
+
title: string;
|
|
932
|
+
templateId: number;
|
|
933
|
+
description: string;
|
|
934
|
+
variables: Variable;
|
|
935
|
+
profileImageUrl?: string;
|
|
936
|
+
securityLevelId: number;
|
|
937
|
+
disseminationList: string[];
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
interface UpdateObjectDTO extends CreateObjectDTO {
|
|
941
|
+
id: number;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
interface Event {
|
|
945
|
+
id: number;
|
|
946
|
+
title: string;
|
|
947
|
+
description: string;
|
|
948
|
+
template: ONTOLOGY.GenericTemplateView;
|
|
949
|
+
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
950
|
+
variables: GroupedVariables;
|
|
951
|
+
securityLevelId: number;
|
|
952
|
+
disseminationList: string[];
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface CreateEventDTO {
|
|
956
|
+
title: string;
|
|
957
|
+
templateId: number;
|
|
958
|
+
description?: string;
|
|
959
|
+
variables: Variable;
|
|
960
|
+
securityLevelId: number;
|
|
961
|
+
disseminationList: string[];
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
interface UpdateEventDTO extends CreateEventDTO {
|
|
965
|
+
id: number;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
interface Agent {
|
|
969
|
+
id: number;
|
|
970
|
+
title: string;
|
|
971
|
+
description: string;
|
|
972
|
+
template: ONTOLOGY.GenericTemplateView;
|
|
973
|
+
variables: GroupedVariables;
|
|
974
|
+
aliasList: string[];
|
|
975
|
+
appliedPolicies: number[];
|
|
976
|
+
securityLevelId: number;
|
|
977
|
+
disseminationList: string[];
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
interface CreateAgentDTO {
|
|
981
|
+
title: string;
|
|
982
|
+
templateId: number;
|
|
983
|
+
description: string;
|
|
984
|
+
aliasList: string[];
|
|
985
|
+
appliedPolicies: number[];
|
|
986
|
+
variables: Variable;
|
|
987
|
+
securityLevelId: number;
|
|
988
|
+
disseminationList: string[];
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
interface UpdateAgentDTO extends CreateAgentDTO {
|
|
992
|
+
id: number;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
interface File {
|
|
996
|
+
id: number;
|
|
997
|
+
title: string;
|
|
998
|
+
description: string;
|
|
999
|
+
template: ONTOLOGY.GenericTemplateView;
|
|
1000
|
+
templateHierarchy: ONTOLOGY.GenericTemplateView[];
|
|
1001
|
+
variables: GroupedVariables;
|
|
1002
|
+
type: string;
|
|
1003
|
+
fileInBase64: string;
|
|
1004
|
+
sizeInKilobytes: number;
|
|
1005
|
+
originalFileName: string;
|
|
1006
|
+
redacted: boolean;
|
|
1007
|
+
contentEncrypted: boolean;
|
|
1008
|
+
templateHierarchy: ONTOLOGY.GenericTemplateView[];
|
|
1009
|
+
contentCreatedDate?: string;
|
|
1010
|
+
contentType: string;
|
|
1011
|
+
createDate: string;
|
|
1012
|
+
createUser: string;
|
|
1013
|
+
updateDate: string;
|
|
1014
|
+
updateUser: string;
|
|
1015
|
+
securityLevelId: number;
|
|
1016
|
+
disseminationList: string[];
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface CreateFileDTO {
|
|
1020
|
+
title: string;
|
|
1021
|
+
description: string;
|
|
1022
|
+
templateId: number;
|
|
1023
|
+
variables: Variable;
|
|
1024
|
+
type?: string;
|
|
1025
|
+
fileInBase64: string;
|
|
1026
|
+
originalFileName: string;
|
|
1027
|
+
redacted: boolean;
|
|
1028
|
+
contentEncrypted: boolean;
|
|
1029
|
+
contentType?: string;
|
|
1030
|
+
securityLevelId: number;
|
|
1031
|
+
disseminationList: string[];
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
interface UpdateFileDTO extends CreateFileDTO {
|
|
1035
|
+
id: number;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
interface GisAnnotation {
|
|
1039
|
+
id: number;
|
|
1040
|
+
title: string;
|
|
1041
|
+
description: string;
|
|
1042
|
+
style: string;
|
|
1043
|
+
location: Location;
|
|
1044
|
+
symbolId: string;
|
|
1045
|
+
imageUrl: string;
|
|
1046
|
+
securityLevelId: number;
|
|
1047
|
+
disseminationList: string[];
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
interface CreateGisAnnotationDTO {
|
|
1051
|
+
title: string;
|
|
1052
|
+
description?: string;
|
|
1053
|
+
style?: string;
|
|
1054
|
+
location: Location;
|
|
1055
|
+
symbolId?: string;
|
|
1056
|
+
imageUrl?: string;
|
|
1057
|
+
securityLevelId: number;
|
|
1058
|
+
disseminationList: string[];
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
interface UpdateGisAnnotationDTO extends CreateGisAnnotationDTO {
|
|
1062
|
+
id: number;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
interface TextAnnotation {
|
|
1066
|
+
id: number;
|
|
1067
|
+
title: string;
|
|
1068
|
+
description: string;
|
|
1069
|
+
phrase: string;
|
|
1070
|
+
originalText: string;
|
|
1071
|
+
sentence: string;
|
|
1072
|
+
startPosition: number;
|
|
1073
|
+
endPosition: number;
|
|
1074
|
+
securityLevelId: number;
|
|
1075
|
+
disseminationList: string[];
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
interface CreateTextAnnotationDTO {
|
|
1079
|
+
title: string;
|
|
1080
|
+
description: string;
|
|
1081
|
+
phrase: string;
|
|
1082
|
+
originalText: string;
|
|
1083
|
+
sentence: string;
|
|
1084
|
+
startPosition: number;
|
|
1085
|
+
endPosition: number;
|
|
1086
|
+
securityLevelId: number;
|
|
1087
|
+
disseminationList: string[];
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
interface UpdateTextAnnotationDTO extends CreateTextAnnotationDTO {
|
|
1091
|
+
id: number;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare namespace ONTOLOGY {
|
|
1096
|
+
type CalculationType =
|
|
1097
|
+
| "SUM"
|
|
1098
|
+
| "AVG"
|
|
1099
|
+
| "COUNT"
|
|
1100
|
+
| "MIN"
|
|
1101
|
+
| "MAX"
|
|
1102
|
+
| "DISTINCT_COUNT";
|
|
1103
|
+
|
|
1104
|
+
interface Property {
|
|
1105
|
+
id?: number;
|
|
1106
|
+
propertyId: string;
|
|
1107
|
+
name: string;
|
|
1108
|
+
type: string;
|
|
1109
|
+
defaultValue: string | null;
|
|
1110
|
+
dataTypeInfo?: DataTypeInfo;
|
|
1111
|
+
privacyPreservationMethod?: string | null;
|
|
1112
|
+
required: boolean;
|
|
1113
|
+
visible: boolean;
|
|
1114
|
+
editable: boolean;
|
|
1115
|
+
temporal: boolean;
|
|
1116
|
+
unique: boolean;
|
|
1117
|
+
distinctive: boolean;
|
|
1118
|
+
calculationTypes?: CalculationType[];
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
interface DataTypeInfo {
|
|
1122
|
+
datePattern?: string;
|
|
1123
|
+
coordinateFormat?: string;
|
|
1124
|
+
innerType?: {
|
|
1125
|
+
type: string;
|
|
1126
|
+
};
|
|
1127
|
+
enumValues?: string[];
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
interface RecognitionProperty {
|
|
1131
|
+
owner: string;
|
|
1132
|
+
ownerType: string;
|
|
1133
|
+
type: string;
|
|
1134
|
+
termValue: string;
|
|
1135
|
+
termMatch: string;
|
|
1136
|
+
score: number;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
interface GenericTemplateView {
|
|
1140
|
+
id: number;
|
|
1141
|
+
templateKey: string;
|
|
1142
|
+
name: string;
|
|
1143
|
+
type: string;
|
|
1144
|
+
icon: string;
|
|
1145
|
+
parentTemplateKey?: string;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
interface Object {
|
|
1149
|
+
id: number;
|
|
1150
|
+
templateKey: string;
|
|
1151
|
+
name: string;
|
|
1152
|
+
description: string;
|
|
1153
|
+
type: string;
|
|
1154
|
+
ontologyId: number;
|
|
1155
|
+
parent: string | null;
|
|
1156
|
+
icon: string;
|
|
1157
|
+
properties: Property[];
|
|
1158
|
+
version: any;
|
|
1159
|
+
creatable: boolean;
|
|
1160
|
+
editable: boolean;
|
|
1161
|
+
stationary: boolean;
|
|
1162
|
+
agentReferenceIds: number[];
|
|
1163
|
+
|
|
1164
|
+
// UI Spesific fields
|
|
1165
|
+
childrenKeys?: string[];
|
|
1166
|
+
children?: Object[];
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
interface CreateObjectDTO {
|
|
1170
|
+
templateKey: string;
|
|
1171
|
+
name: string;
|
|
1172
|
+
description: string;
|
|
1173
|
+
ontologyId: number;
|
|
1174
|
+
parent: string;
|
|
1175
|
+
icon: string;
|
|
1176
|
+
properties: Property[];
|
|
1177
|
+
version: any;
|
|
1178
|
+
creatable: boolean;
|
|
1179
|
+
editable: boolean;
|
|
1180
|
+
stationary: boolean;
|
|
1181
|
+
agentReferenceIds?: number[];
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
interface UpdateObjectDTO extends CreateObjectDTO {
|
|
1185
|
+
id: number;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
interface Event {
|
|
1189
|
+
id: number;
|
|
1190
|
+
templateKey: string;
|
|
1191
|
+
name: string;
|
|
1192
|
+
description: string;
|
|
1193
|
+
type: string;
|
|
1194
|
+
ontologyId: number;
|
|
1195
|
+
parent: string;
|
|
1196
|
+
icon: string;
|
|
1197
|
+
properties: Property[];
|
|
1198
|
+
version: any;
|
|
1199
|
+
creatable: boolean;
|
|
1200
|
+
editable: boolean;
|
|
1201
|
+
recognitionPropertyList: RecognitionProperty[];
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
interface CreateEventDTO {
|
|
1205
|
+
templateKey: string;
|
|
1206
|
+
name: string;
|
|
1207
|
+
description: string;
|
|
1208
|
+
ontologyId: number;
|
|
1209
|
+
parent: string;
|
|
1210
|
+
icon: string;
|
|
1211
|
+
properties: Property[];
|
|
1212
|
+
version: any;
|
|
1213
|
+
creatable: boolean;
|
|
1214
|
+
editable: boolean;
|
|
1215
|
+
recognitionPropertyList: RecognitionProperty[];
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
interface UpdateEventDTO extends CreateEventDTO {
|
|
1219
|
+
id: number;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
interface Agent {
|
|
1223
|
+
id: number;
|
|
1224
|
+
templateKey: string;
|
|
1225
|
+
name: string;
|
|
1226
|
+
description: string;
|
|
1227
|
+
type: string;
|
|
1228
|
+
ontologyId: number;
|
|
1229
|
+
parent: string;
|
|
1230
|
+
icon: string;
|
|
1231
|
+
properties: Property[];
|
|
1232
|
+
stationary: boolean;
|
|
1233
|
+
livingObject: boolean;
|
|
1234
|
+
version: any;
|
|
1235
|
+
creatable: boolean;
|
|
1236
|
+
editable: boolean;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
interface CreateAgentDTO {
|
|
1240
|
+
templateKey: string;
|
|
1241
|
+
name: string;
|
|
1242
|
+
description: string;
|
|
1243
|
+
ontologyId: number;
|
|
1244
|
+
parent: string;
|
|
1245
|
+
icon: string;
|
|
1246
|
+
properties: Property[];
|
|
1247
|
+
stationary: boolean;
|
|
1248
|
+
livingObject: boolean;
|
|
1249
|
+
version: any;
|
|
1250
|
+
creatable: boolean;
|
|
1251
|
+
editable: boolean;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
interface UpdateAgentDTO extends CreateAgentDTO {
|
|
1255
|
+
id: number;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
interface File {
|
|
1259
|
+
id: number;
|
|
1260
|
+
templateKey: string;
|
|
1261
|
+
name: string;
|
|
1262
|
+
description: string;
|
|
1263
|
+
type: string;
|
|
1264
|
+
ontologyId: number;
|
|
1265
|
+
parent: string;
|
|
1266
|
+
icon: string;
|
|
1267
|
+
properties: Property[];
|
|
1268
|
+
version: any;
|
|
1269
|
+
creatable: boolean;
|
|
1270
|
+
editable: boolean;
|
|
1271
|
+
storeFile: boolean;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
interface CreateFileDTO {
|
|
1275
|
+
templateKey: string;
|
|
1276
|
+
name: string;
|
|
1277
|
+
description: string;
|
|
1278
|
+
ontologyId: number;
|
|
1279
|
+
parent: string;
|
|
1280
|
+
icon: string;
|
|
1281
|
+
properties: Property[];
|
|
1282
|
+
version: any;
|
|
1283
|
+
creatable: boolean;
|
|
1284
|
+
editable: boolean;
|
|
1285
|
+
storeFile: boolean;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
interface UpdateFileDTO extends CreateFileDTO {
|
|
1289
|
+
id: number;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
type TemplateType =
|
|
1293
|
+
| ONTOLOGY.Object
|
|
1294
|
+
| ONTOLOGY.Event
|
|
1295
|
+
| ONTOLOGY.Agent
|
|
1296
|
+
| ONTOLOGY.File;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
declare namespace POLICY {
|
|
1300
|
+
interface Policy {
|
|
1301
|
+
id: number;
|
|
1302
|
+
key: string;
|
|
1303
|
+
name: string;
|
|
1304
|
+
description: string;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
interface PolicyDetails extends Policy {
|
|
1308
|
+
propertyList: PolicyProperty[];
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
interface PolicyProperty {
|
|
1312
|
+
key: string;
|
|
1313
|
+
name: string;
|
|
1314
|
+
description: string;
|
|
1315
|
+
policyKey: string;
|
|
1316
|
+
dataType: {
|
|
1317
|
+
type: string;
|
|
1318
|
+
innerType: {
|
|
1319
|
+
type: string;
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
required: boolean;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
interface PolicyPropertyMapping extends PolicyProperty {
|
|
1326
|
+
source: string | number;
|
|
1327
|
+
sourceField: string;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
interface CatalogueInstanceType {
|
|
1331
|
+
id: number;
|
|
1332
|
+
name: string;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
interface InstancePolicyMapping extends Policy {
|
|
1336
|
+
catalogInstances: CatalogueInstanceType[];
|
|
1337
|
+
propertyMappings: PolicyPropertyMapping[];
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
// Redecalare forwardRef
|
|
1344
|
+
declare module "react" {
|
|
1345
|
+
function forwardRef<T, P = {}>(
|
|
1346
|
+
render: (props: P, ref: React.Ref<T>) => React.ReactNode | null
|
|
1347
|
+
): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
|
|
1348
|
+
}
|