@hybridcore/ui 1.0.2 → 1.1.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.
Files changed (103) hide show
  1. package/dist/Button-BZR43NHz.js +2025 -0
  2. package/dist/ButtonBase-B6WYZgVU.js +967 -0
  3. package/dist/CardContent-C8PxkJz4.js +73 -0
  4. package/dist/Checkbox-CxbQ9tJ5.js +673 -0
  5. package/dist/FormControl-C4PmH1vh.js +1491 -0
  6. package/dist/IconButton-CKHPuOyh.js +183 -0
  7. package/dist/Input-CH_JyT5B.js +324 -0
  8. package/dist/List-BX_5LP1i.js +132 -0
  9. package/dist/Object-DBPgar-D.js +688 -0
  10. package/dist/OutlinedInput-gnp48tDo.js +452 -0
  11. package/dist/Paper-CaiWdndQ.js +162 -0
  12. package/dist/Select-DOyHt8I_.js +2526 -0
  13. package/dist/Source-Bo1Eq6y-.js +4374 -0
  14. package/dist/Text-DVP2PrYM.js +2192 -0
  15. package/dist/Typography-XIiVCSto.js +178 -0
  16. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  17. package/dist/assets/index.css +1 -0
  18. package/dist/assets/index2.css +1 -0
  19. package/dist/chainPropTypes-DtBfUj5o.js +96 -0
  20. package/dist/components/access/helpers.js +32 -0
  21. package/dist/components/access/index.js +15 -0
  22. package/dist/components/card/index.js +159 -469
  23. package/dist/components/card/styled.js +75 -7
  24. package/dist/components/conditional-wrapper/index.js +9 -0
  25. package/dist/components/confirm/dialog.js +151 -0
  26. package/dist/components/confirm/index.js +23 -0
  27. package/dist/components/container/index.js +270 -0
  28. package/dist/components/context-menu/index.js +973 -0
  29. package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
  30. package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
  31. package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
  32. package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
  33. package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
  34. package/dist/components/data-management/instance-form/index.js +437 -0
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
  36. package/dist/components/data-security-selectors/security-level/index.js +81 -0
  37. package/dist/components/date-time-picker/index.js +103 -0
  38. package/dist/components/geometry-picker/coordinate/index.js +93 -0
  39. package/dist/components/geometry-picker/edit/index.js +71 -0
  40. package/dist/components/geometry-picker/geometry/index.js +160 -0
  41. package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
  42. package/dist/components/geometry-picker/index.js +140 -0
  43. package/dist/components/geometry-picker/kml/index.js +62 -0
  44. package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
  45. package/dist/components/geometry-picker/logic.js +69 -0
  46. package/dist/components/geometry-picker/map/index.js +42 -0
  47. package/dist/components/geometry-picker/map/logic.js +2360 -0
  48. package/dist/components/geometry-picker/map/style.js +88 -0
  49. package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
  51. package/dist/components/geometry-picker/parser/index.js +179 -0
  52. package/dist/components/geometry-picker/parser/logic.js +84 -0
  53. package/dist/components/geometry-picker/parser/styled.js +25 -0
  54. package/dist/components/geometry-picker/styled.js +48 -0
  55. package/dist/components/geometry-picker/wkt/index.js +59 -0
  56. package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
  57. package/dist/components/icon-button/index.js +18 -0
  58. package/dist/components/icon-button/styled.js +51 -0
  59. package/dist/components/key-protection/index.js +4 -0
  60. package/dist/components/key-protection/menu.js +85 -0
  61. package/dist/components/key-protection/utils.js +10 -0
  62. package/dist/components/loading/index.js +7 -0
  63. package/dist/components/loading/styled.js +16 -0
  64. package/dist/components/map/helpers/kml.js +45 -0
  65. package/dist/components/map/helpers/mapbox.js +48 -0
  66. package/dist/components/map/helpers/ol.js +25 -0
  67. package/dist/components/map/helpers/wkt.js +29 -0
  68. package/dist/components/map/index.js +30 -0
  69. package/dist/components/map/logic.js +140 -0
  70. package/dist/components/map/styled.js +8 -0
  71. package/dist/components/phone-input/index.js +25 -0
  72. package/dist/components/phone-input/styled.js +26 -0
  73. package/dist/components/search-input/index.js +76 -0
  74. package/dist/components/tree-select/index.js +70 -0
  75. package/dist/components/tree-select/styled.js +64 -0
  76. package/dist/components/treeview-filter/index.js +621 -0
  77. package/dist/components/treeview-filter/item/index.js +7 -0
  78. package/dist/components/treeview-filter/item-label/index.js +44 -0
  79. package/dist/createTheme-agWfFD64.js +2392 -0
  80. package/dist/exactProp-CI8dagM-.js +36 -0
  81. package/dist/extends-C3382pL0.js +22 -0
  82. package/dist/hooks/useMenuLogic.js +21 -0
  83. package/dist/hooks/useToggle.js +23 -0
  84. package/dist/index-BQE8B4sc.js +957 -0
  85. package/dist/index-DHFb1Qpn.js +1105 -0
  86. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  87. package/dist/isMuiElement-CxT3_ACP.js +13 -0
  88. package/dist/main.d.ts +646 -0
  89. package/dist/ol-CMEkXXLJ.js +15041 -0
  90. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  91. package/dist/ownerWindow-niciwP7I.js +7 -0
  92. package/dist/styled-B22KrhDR.js +229 -0
  93. package/dist/styled-Iq9jsO4F.js +1033 -0
  94. package/dist/useFormControl-CatNKXAi.js +10 -0
  95. package/dist/useId-BHG98T5I.js +26 -0
  96. package/dist/useTheme-C0Dky5rV.js +17 -0
  97. package/dist/useTheme-CeyGVuQP.js +10 -0
  98. package/dist/useThemeProps-CzAjOL6F.js +26 -0
  99. package/dist/utils/ontology.js +37 -0
  100. package/dist/utils-Bq0ye5vf.js +115 -0
  101. package/dist/utils-C13eMoWa.js +365 -0
  102. package/package.json +26 -5
  103. package/dist/styled-BG5UIpPU.js +0 -3459
@@ -0,0 +1,6 @@
1
+ function n(t) {
2
+ return typeof t == "string";
3
+ }
4
+ export {
5
+ n as i
6
+ };
@@ -0,0 +1,13 @@
1
+ import * as u from "react";
2
+ function m(i, a) {
3
+ var l, e;
4
+ return /* @__PURE__ */ u.isValidElement(i) && a.indexOf(
5
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
6
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
7
+ // eslint-disable-next-line no-underscore-dangle
8
+ (l = i.type.muiName) != null ? l : (e = i.type) == null || (e = e._payload) == null || (e = e.value) == null ? void 0 : e.muiName
9
+ ) !== -1;
10
+ }
11
+ export {
12
+ m as i
13
+ };
package/dist/main.d.ts CHANGED
@@ -29,3 +29,649 @@ declare interface CardProps {
29
29
  declare type OrientationType_2 = "portrait" | "landscape";
30
30
 
31
31
  export { }
32
+
33
+
34
+
35
+ declare namespace MAP {
36
+ interface Coordinate {
37
+ latitude: number;
38
+ longitude: number;
39
+ }
40
+
41
+ interface BoundingBox {
42
+ bottomLeft: Coordinate;
43
+ topRight: Coordinate;
44
+ }
45
+
46
+ interface OptionsType {
47
+ cursor?: string;
48
+ cssPosition?: 'absolute' | 'fixed' | 'relative';
49
+ interactions?: InteractionDefaultsOptions;
50
+ controls?: ControlDefaultsOptions;
51
+ }
52
+
53
+ interface Props {
54
+ id?: string;
55
+ layers?: any[];
56
+ center?: CoordinateType;
57
+ zoom?: number;
58
+ options?: OptionsType;
59
+ onInit?(): void;
60
+ }
61
+
62
+ interface Handle {
63
+ addLayer(layer: any): void;
64
+ addOverlay(overlay: any): void;
65
+ removeOverlay(overlay: any): void;
66
+ removeOverlayById(id: string | number): void;
67
+ insertLayerAt(index: number, layer: any): void;
68
+ getAllLayers(): Array<Layer>;
69
+ getBoundingBox(): BoundingBox;
70
+ getCoordinateFromPixel(pixel: Pixel): OlCoordinate;
71
+ getLayerGroup(): void;
72
+ getLayers(): Collection<Layer | LayerGroup>;
73
+ getSize(): Size;
74
+ getZoomLevel(): number | undefined;
75
+ removeLayer(layer: any): void;
76
+ setLayerGroup(layerGroup: any): void;
77
+ setLayers(layers: any[]): void;
78
+ addInteraction(interaction: any): void;
79
+ removeInteraction(interaction: any): void;
80
+ on(eventName: string, callback: (event?: any) => void): void;
81
+ getView(): View;
82
+ getEventPixel(event: MouseEvent): Pixel;
83
+ getEventCoordinate(event: MouseEvent): CoordinateFormat;
84
+ forEachFeatureAtPixel(pixel: Pixel): Feature;
85
+ centerToFeature(feature: Feature<Geometry>, padding?: number[]): void;
86
+ centerToExtent(
87
+ extent: Extent,
88
+ minResolution?: number,
89
+ padding?: number[],
90
+ ): void;
91
+ setCenter(coordinate: OlCoordinate): void;
92
+ setZoomLevel(level: number): void;
93
+ updateSize(): void;
94
+ zoomIn(): void;
95
+ zoomOut(): void;
96
+ }
97
+
98
+ interface KMLMarker {
99
+ icon: string;
100
+ geometry: string[];
101
+ clusterIcon: string;
102
+ data?: FV.SearchResult;
103
+ groupName?: string;
104
+ selected?: boolean;
105
+ }
106
+
107
+ interface WKTMarker {
108
+ icon: string;
109
+ geometry: string[];
110
+ clusterIcon: string;
111
+ data?: FV.SearchResult;
112
+ groupName?: string;
113
+ selected?: boolean;
114
+ }
115
+ }
116
+
117
+ declare namespace AUTH {
118
+ type ModuleType =
119
+ | "UI"
120
+ | "MAIN"
121
+ | "ANALYTICS"
122
+ | "FOCUS_VISION"
123
+ | "FOCUS_VISION.MAP_VIEW"
124
+ | "FOCUS_VISION.LIST_VIEW"
125
+ | "NETWORK_ANALYSIS"
126
+ | "SIMULATION"
127
+ | "AGENT_BASED_SIMULATION"
128
+ | "DATA_MANAGEMENT"
129
+ | "RELATION_ENHANCER"
130
+ | "OBJECT_PROFILE";
131
+
132
+ type DataType = "DATA";
133
+
134
+ type PermissionKeyType = ModuleType & DataType;
135
+
136
+ interface PermissionType {
137
+ [key: PermissionKeyType]: {
138
+ access: "ALL" | "READ" | null;
139
+ permissions: PermissionType;
140
+ };
141
+ }
142
+
143
+ interface MemberedGroupsType {
144
+ id: string;
145
+ name: string;
146
+ }
147
+
148
+ interface SecurityLevel {
149
+ id: number;
150
+ roleStr: string;
151
+ name: string;
152
+ level: number;
153
+ securityLevelGroupId: number;
154
+ // securityLevelGroup: SecurityLevelGroup;
155
+ }
156
+
157
+ interface SecurityLevelGroup {
158
+ id: number;
159
+ name: string;
160
+ }
161
+
162
+ interface UserProfileInfo {
163
+ id: string;
164
+ displayName: string;
165
+ userPrincipalName: string;
166
+ mail: string;
167
+ department: string | null;
168
+ jobTitle: string | null;
169
+ imageBase64: string;
170
+ securityLevels: SecurityLevel[];
171
+ }
172
+ }
173
+
174
+ declare namespace INSTANCE {
175
+ interface String {
176
+ [key: string | number]: string;
177
+ }
178
+
179
+ interface Boolean {
180
+ [key: string | number]: boolean;
181
+ }
182
+
183
+ interface Date {
184
+ [key: string | number]: string;
185
+ }
186
+
187
+ interface Byte {
188
+ [key: string | number]: string;
189
+ }
190
+
191
+ interface Coordinate {
192
+ [key: string | number]: string;
193
+ }
194
+
195
+ interface Geometry {
196
+ [key: string | number]: string;
197
+ }
198
+
199
+ interface Double {
200
+ [key: string | number]: number;
201
+ }
202
+
203
+ interface Integer {
204
+ [key: string | number]: number;
205
+ }
206
+
207
+ interface Long {
208
+ [key: string | number]: number;
209
+ }
210
+
211
+ interface Enum {
212
+ [key: string | number]: string;
213
+ }
214
+
215
+ interface List {
216
+ [key: string | number]: string[];
217
+ }
218
+
219
+ interface Text {
220
+ [key: string | number]: string;
221
+ }
222
+
223
+ interface GroupedVariables {
224
+ string?: String;
225
+ boolean?: Boolean;
226
+ date?: Date;
227
+ byte?: Byte;
228
+ coordinate?: Coordinate;
229
+ geometry?: Geometry;
230
+ double?: Double;
231
+ integer?: Integer;
232
+ long?: Long;
233
+ enum?: Enum;
234
+ list?: List;
235
+ text?: Text;
236
+ }
237
+
238
+ interface Variable {
239
+ [key: string | number]: string;
240
+ }
241
+
242
+ interface Location {
243
+ kml?: string;
244
+ wkt?: string;
245
+ }
246
+
247
+ interface Object {
248
+ id: number;
249
+ title: string;
250
+ description: string;
251
+ template: ONTOLOGY.GenericTemplateView;
252
+ templateHierarchy?: ONTOLOGY.GenericTemplateView[];
253
+ variables: GroupedVariables;
254
+ profileImageUrl?: string;
255
+ securityLevelId: number;
256
+ disseminationList: string[];
257
+ }
258
+
259
+ interface CreateObjectDTO {
260
+ title: string;
261
+ templateId: number;
262
+ description: string;
263
+ variables: Variable;
264
+ profileImageUrl?: string;
265
+ securityLevelId: number;
266
+ disseminationList: string[];
267
+ }
268
+
269
+ interface UpdateObjectDTO extends CreateObjectDTO {
270
+ id: number;
271
+ }
272
+
273
+ interface Event {
274
+ id: number;
275
+ title: string;
276
+ description: string;
277
+ template: ONTOLOGY.GenericTemplateView;
278
+ templateHierarchy?: ONTOLOGY.GenericTemplateView[];
279
+ variables: GroupedVariables;
280
+ securityLevelId: number;
281
+ disseminationList: string[];
282
+ }
283
+
284
+ interface CreateEventDTO {
285
+ title: string;
286
+ templateId: number;
287
+ description?: string;
288
+ variables: Variable;
289
+ securityLevelId: number;
290
+ disseminationList: string[];
291
+ }
292
+
293
+ interface UpdateEventDTO extends CreateEventDTO {
294
+ id: number;
295
+ }
296
+
297
+ interface Agent {
298
+ id: number;
299
+ title: string;
300
+ description: string;
301
+ template: ONTOLOGY.GenericTemplateView;
302
+ variables: GroupedVariables;
303
+ aliasList: string[];
304
+ appliedPolicies: number[];
305
+ securityLevelId: number;
306
+ disseminationList: string[];
307
+ }
308
+
309
+ interface CreateAgentDTO {
310
+ title: string;
311
+ templateId: number;
312
+ description: string;
313
+ aliasList: string[];
314
+ appliedPolicies: number[];
315
+ variables: Variable;
316
+ securityLevelId: number;
317
+ disseminationList: string[];
318
+ }
319
+
320
+ interface UpdateAgentDTO extends CreateAgentDTO {
321
+ id: number;
322
+ }
323
+
324
+ interface File {
325
+ id: number;
326
+ title: string;
327
+ description: string;
328
+ template: ONTOLOGY.GenericTemplateView;
329
+ templateHierarchy: ONTOLOGY.GenericTemplateView[];
330
+ variables: GroupedVariables;
331
+ type: string;
332
+ fileInBase64: string;
333
+ sizeInKilobytes: number;
334
+ originalFileName: string;
335
+ redacted: boolean;
336
+ contentEncrypted: boolean;
337
+ templateHierarchy: ONTOLOGY.GenericTemplateView[];
338
+ contentCreatedDate?: string;
339
+ contentType: string;
340
+ createDate: string;
341
+ createUser: string;
342
+ updateDate: string;
343
+ updateUser: string;
344
+ securityLevelId: number;
345
+ disseminationList: string[];
346
+ }
347
+
348
+ interface CreateFileDTO {
349
+ title: string;
350
+ description: string;
351
+ templateId: number;
352
+ variables: Variable;
353
+ type?: string;
354
+ fileInBase64: string;
355
+ originalFileName: string;
356
+ redacted: boolean;
357
+ contentEncrypted: boolean;
358
+ contentType?: string;
359
+ securityLevelId: number;
360
+ disseminationList: string[];
361
+ }
362
+
363
+ interface UpdateFileDTO extends CreateFileDTO {
364
+ id: number;
365
+ }
366
+
367
+ interface GisAnnotation {
368
+ id: number;
369
+ title: string;
370
+ description: string;
371
+ style: string;
372
+ location: Location;
373
+ symbolId: string;
374
+ imageUrl: string;
375
+ securityLevelId: number;
376
+ disseminationList: string[];
377
+ }
378
+
379
+ interface CreateGisAnnotationDTO {
380
+ title: string;
381
+ description?: string;
382
+ style?: string;
383
+ location: Location;
384
+ symbolId?: string;
385
+ imageUrl?: string;
386
+ securityLevelId: number;
387
+ disseminationList: string[];
388
+ }
389
+
390
+ interface UpdateGisAnnotationDTO extends CreateGisAnnotationDTO {
391
+ id: number;
392
+ }
393
+
394
+ interface TextAnnotation {
395
+ id: number;
396
+ title: string;
397
+ description: string;
398
+ phrase: string;
399
+ originalText: string;
400
+ sentence: string;
401
+ startPosition: number;
402
+ endPosition: number;
403
+ securityLevelId: number;
404
+ disseminationList: string[];
405
+ }
406
+
407
+ interface CreateTextAnnotationDTO {
408
+ title: string;
409
+ description: string;
410
+ phrase: string;
411
+ originalText: string;
412
+ sentence: string;
413
+ startPosition: number;
414
+ endPosition: number;
415
+ securityLevelId: number;
416
+ disseminationList: string[];
417
+ }
418
+
419
+ interface UpdateTextAnnotationDTO extends CreateTextAnnotationDTO {
420
+ id: number;
421
+ }
422
+ }
423
+
424
+ declare namespace ONTOLOGY {
425
+ type CalculationType =
426
+ | "SUM"
427
+ | "AVG"
428
+ | "COUNT"
429
+ | "MIN"
430
+ | "MAX"
431
+ | "DISTINCT_COUNT";
432
+
433
+ interface Property {
434
+ id?: number;
435
+ propertyId: string;
436
+ name: string;
437
+ type: string;
438
+ defaultValue: string | null;
439
+ dataTypeInfo?: DataTypeInfo;
440
+ privacyPreservationMethod?: string | null;
441
+ required: boolean;
442
+ visible: boolean;
443
+ editable: boolean;
444
+ temporal: boolean;
445
+ unique: boolean;
446
+ distinctive: boolean;
447
+ calculationTypes?: CalculationType[];
448
+ }
449
+
450
+ interface DataTypeInfo {
451
+ datePattern?: string;
452
+ coordinateFormat?: string;
453
+ innerType?: {
454
+ type: string;
455
+ };
456
+ enumValues?: string[];
457
+ }
458
+
459
+ interface RecognitionProperty {
460
+ owner: string;
461
+ ownerType: string;
462
+ type: string;
463
+ termValue: string;
464
+ termMatch: string;
465
+ score: number;
466
+ }
467
+
468
+ interface GenericTemplateView {
469
+ id: number;
470
+ templateKey: string;
471
+ name: string;
472
+ type: string;
473
+ icon: string;
474
+ parentTemplateKey?: string;
475
+ }
476
+
477
+ interface Object {
478
+ id: number;
479
+ templateKey: string;
480
+ name: string;
481
+ description: string;
482
+ type: string;
483
+ ontologyId: number;
484
+ parent: string | null;
485
+ icon: string;
486
+ properties: Property[];
487
+ version: any;
488
+ creatable: boolean;
489
+ editable: boolean;
490
+ stationary: boolean;
491
+ agentReferenceIds: number[];
492
+
493
+ // UI Spesific fields
494
+ childrenKeys?: string[];
495
+ children?: Object[];
496
+ }
497
+
498
+ interface CreateObjectDTO {
499
+ templateKey: string;
500
+ name: string;
501
+ description: string;
502
+ ontologyId: number;
503
+ parent: string;
504
+ icon: string;
505
+ properties: Property[];
506
+ version: any;
507
+ creatable: boolean;
508
+ editable: boolean;
509
+ stationary: boolean;
510
+ agentReferenceIds?: number[];
511
+ }
512
+
513
+ interface UpdateObjectDTO extends CreateObjectDTO {
514
+ id: number;
515
+ }
516
+
517
+ interface Event {
518
+ id: number;
519
+ templateKey: string;
520
+ name: string;
521
+ description: string;
522
+ type: string;
523
+ ontologyId: number;
524
+ parent: string;
525
+ icon: string;
526
+ properties: Property[];
527
+ version: any;
528
+ creatable: boolean;
529
+ editable: boolean;
530
+ recognitionPropertyList: RecognitionProperty[];
531
+ }
532
+
533
+ interface CreateEventDTO {
534
+ templateKey: string;
535
+ name: string;
536
+ description: string;
537
+ ontologyId: number;
538
+ parent: string;
539
+ icon: string;
540
+ properties: Property[];
541
+ version: any;
542
+ creatable: boolean;
543
+ editable: boolean;
544
+ recognitionPropertyList: RecognitionProperty[];
545
+ }
546
+
547
+ interface UpdateEventDTO extends CreateEventDTO {
548
+ id: number;
549
+ }
550
+
551
+ interface Agent {
552
+ id: number;
553
+ templateKey: string;
554
+ name: string;
555
+ description: string;
556
+ type: string;
557
+ ontologyId: number;
558
+ parent: string;
559
+ icon: string;
560
+ properties: Property[];
561
+ stationary: boolean;
562
+ livingObject: boolean;
563
+ version: any;
564
+ creatable: boolean;
565
+ editable: boolean;
566
+ }
567
+
568
+ interface CreateAgentDTO {
569
+ templateKey: string;
570
+ name: string;
571
+ description: string;
572
+ ontologyId: number;
573
+ parent: string;
574
+ icon: string;
575
+ properties: Property[];
576
+ stationary: boolean;
577
+ livingObject: boolean;
578
+ version: any;
579
+ creatable: boolean;
580
+ editable: boolean;
581
+ }
582
+
583
+ interface UpdateAgentDTO extends CreateAgentDTO {
584
+ id: number;
585
+ }
586
+
587
+ interface File {
588
+ id: number;
589
+ templateKey: string;
590
+ name: string;
591
+ description: string;
592
+ type: string;
593
+ ontologyId: number;
594
+ parent: string;
595
+ icon: string;
596
+ properties: Property[];
597
+ version: any;
598
+ creatable: boolean;
599
+ editable: boolean;
600
+ storeFile: boolean;
601
+ }
602
+
603
+ interface CreateFileDTO {
604
+ templateKey: string;
605
+ name: string;
606
+ description: string;
607
+ ontologyId: number;
608
+ parent: string;
609
+ icon: string;
610
+ properties: Property[];
611
+ version: any;
612
+ creatable: boolean;
613
+ editable: boolean;
614
+ storeFile: boolean;
615
+ }
616
+
617
+ interface UpdateFileDTO extends CreateFileDTO {
618
+ id: number;
619
+ }
620
+
621
+ type TemplateType =
622
+ | ONTOLOGY.Object
623
+ | ONTOLOGY.Event
624
+ | ONTOLOGY.Agent
625
+ | ONTOLOGY.File;
626
+ }
627
+
628
+ declare namespace POLICY {
629
+ interface Policy {
630
+ id: number;
631
+ key: string;
632
+ name: string;
633
+ description: string;
634
+ }
635
+
636
+ interface PolicyDetails extends Policy {
637
+ propertyList: PolicyProperty[];
638
+ }
639
+
640
+ interface PolicyProperty {
641
+ key: string;
642
+ name: string;
643
+ description: string;
644
+ policyKey: string;
645
+ dataType: {
646
+ type: string;
647
+ innerType: {
648
+ type: string;
649
+ };
650
+ };
651
+ required: boolean;
652
+ }
653
+
654
+ interface PolicyPropertyMapping extends PolicyProperty {
655
+ source: string | number;
656
+ sourceField: string;
657
+ }
658
+
659
+ interface CatalogueInstanceType {
660
+ id: number;
661
+ name: string;
662
+ }
663
+
664
+ interface InstancePolicyMapping extends Policy {
665
+ catalogInstances: CatalogueInstanceType[];
666
+ propertyMappings: PolicyPropertyMapping[];
667
+ }
668
+ }
669
+
670
+
671
+
672
+ // Redecalare forwardRef
673
+ declare module "react" {
674
+ function forwardRef<T, P = {}>(
675
+ render: (props: P, ref: React.Ref<T>) => React.ReactNode | null
676
+ ): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
677
+ }