jmapcloud-ng-types 1.0.1001 → 1.1.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/index.ts CHANGED
@@ -7,7 +7,7 @@ export interface JAppState {
7
7
  selection: JAppSelectionState
8
8
  layer: JAppLayerState
9
9
  ui: JAppUiState
10
- query: JAppQueryState
10
+ map: JAppMapState
11
11
  print: JAppPrintState
12
12
  project: JAppProjectState
13
13
  annotation: JAppAnnotationState
@@ -15,6 +15,12 @@ export interface JAppState {
15
15
  user: JAppUserState
16
16
  feature: JAppFeatureState
17
17
  geometry: JAppGeometryState
18
+ table: JAppTableState
19
+ }
20
+
21
+ export interface JAppTableState {
22
+ displayTable: boolean
23
+ activeTableDataSourceId: JId | undefined
18
24
  }
19
25
 
20
26
  export interface JAppGeometryState {
@@ -25,6 +31,9 @@ export interface JAppGeometryState {
25
31
  isUpdate: boolean
26
32
  wizardStep: JAPP_GEOMETRY_WIZARD_STEPS
27
33
  draw: JAppDrawState
34
+ lastSnap: JAppSnap
35
+ snap: JAppSnap
36
+ isAttributesEditing: boolean
28
37
  }
29
38
 
30
39
  export interface JAppFeatureState {
@@ -39,12 +48,6 @@ export interface JAppProjectState {
39
48
  showProjectList: boolean
40
49
  }
41
50
 
42
- export interface JAppQueryState {
43
- activeQuery: JQuery | undefined
44
- defaultValueById: { [id: string]: any } | undefined
45
- displayInDialog: boolean
46
- }
47
-
48
51
  export interface JAppPanelState {
49
52
  active: JAppPanel
50
53
  all: JAppPanel[]
@@ -65,8 +68,13 @@ export interface JAppUiState {
65
68
  theme: { [key: string]: any }
66
69
  }
67
70
 
71
+ export interface JAppMapState {
72
+ simpleSearchControlVisible: boolean
73
+ geocodingControlVisible: boolean
74
+ }
75
+
68
76
  export interface JAppFormState {
69
- expandedSections: { [id: string]: boolean }
77
+ dialogParams: JFormDialogParams | null
70
78
  }
71
79
 
72
80
  export interface JAppMeasureState {
@@ -75,6 +83,8 @@ export interface JAppMeasureState {
75
83
  isSelectionActive: boolean
76
84
  isNewElement: boolean
77
85
  draw: JAppDrawState
86
+ lastSnap: JAppSnap
87
+ snap: JAppSnap
78
88
  }
79
89
 
80
90
  export interface JAppDrawState {
@@ -91,6 +101,13 @@ export interface JAppAnnotationState {
91
101
  annotations: JAppAnnotation[]
92
102
  draw: JAppDrawState
93
103
  presetColors: string[]
104
+ lastSnap: JAppSnap
105
+ snap: JAppSnap
106
+ }
107
+
108
+ export interface JAppSnap {
109
+ layerId: JId | undefined
110
+ isEnabled: boolean
94
111
  }
95
112
 
96
113
  export interface JAppPrintState {
@@ -137,7 +154,6 @@ export interface JApplicationService extends JApplicationMainService {
137
154
  Layer: JAppLayerService
138
155
  Print: JAppPrintService
139
156
  UI: JApplicationUIService
140
- Query: JAppQueryService
141
157
  Event: JAppEventService
142
158
  Annotation: JAppAnnotationService
143
159
  Extension: JAppExtensionService
@@ -157,6 +173,8 @@ export interface JAppGeometryService {
157
173
  finishCreate(): void
158
174
  finishUpdate(): Promise<void>
159
175
  closePanel(): void
176
+ setSnapEnabled(isEnabled: boolean): void
177
+ setSnapLayerId(LayerId: JId): void
160
178
  }
161
179
 
162
180
  export interface JAppFeatureService {
@@ -187,6 +205,8 @@ export interface JAppAnnotationService {
187
205
  setDrawMode(drawMode: JAPP_DRAW_MODES): void
188
206
  getDrawType(): JAPP_DRAW_TYPES
189
207
  setDrawType(drawType: JAPP_DRAW_TYPES): void
208
+ setSnapEnabled(isEnabled: boolean): void
209
+ setSnapLayerId(LayerId: JId): void
190
210
  existsById(annotationId: string): boolean
191
211
  getById(annotationId: string): JAppAnnotation
192
212
  getAll(): JAppAnnotation[]
@@ -204,16 +224,6 @@ export interface JAppAnnotationService {
204
224
  deletePresetColor(presetColor: string): void
205
225
  }
206
226
 
207
- export interface JAppQueryService {
208
- activateQuery(groupId: JId, queryId: string): void
209
- deactivateQuery(): void
210
- setDefaultData(values: any): void
211
- getDefaultData(): { [id: string]: any }
212
- clearDefaultData(): void
213
- displayInDialog(isVisibleInDialog: boolean): void
214
- processQuery(values: any): Promise<GeoJSON.Feature[]>
215
- }
216
-
217
227
  export interface JApplicationUserService {
218
228
  addPopupMenuAction(action: JAppUserAction, index?: number): void
219
229
  existsPopupMenuActionById(actionId: string): boolean
@@ -255,11 +265,18 @@ export interface JApplicationUIService {
255
265
  setDark(isDark: boolean): void
256
266
  isDark(): boolean
257
267
  }
268
+ Map: {
269
+ isGeocodingControlVisible(): boolean
270
+ setGeocodingControlVisibility(isVisible: boolean): void
271
+ isSimpleSearchControlVisible(): boolean
272
+ setSimpleSearchControlVisibility(isVisible: boolean): void
273
+ }
258
274
  }
259
275
 
260
276
  export interface JAppEventService {
261
277
  Main: JAppAppEventModule
262
278
  Layer: JAppLayerEventModule
279
+ Measure: JAppMeasureEventModule
263
280
  UI: JAppUIEventModule
264
281
  Extension: JAppExtensionEventModule
265
282
  MapContext: JAppMapContextEventModule
@@ -302,6 +319,8 @@ export interface JAppMeasureService {
302
319
  deleteAllCircles(): number
303
320
  setMeasurementSystem(measurementSystem: JAPP_MEASUREMENT_SYSTEMS): void
304
321
  getMeasurementSystem(): JAPP_MEASUREMENT_SYSTEMS
322
+ setSnapEnabled(isEnabled: boolean): void
323
+ setSnapLayerId(LayerId: JId): void
305
324
  }
306
325
 
307
326
  export interface JAppExtensionService {
@@ -340,7 +359,11 @@ export interface JAppPrintService {
340
359
  getFileType(): JAPP_PRINT_FILE_TYPES
341
360
  setHiResolution(isHiResolution: boolean): void
342
361
  getHiResolution(): boolean
343
- takeCapture(): void
362
+ takeCapture(
363
+ returnAsScreenCaptureResult?: boolean,
364
+ customRatioWidth?: number,
365
+ customRatioHeight?: number
366
+ ): Promise<void | JAppPrintCaptureResult>
344
367
  }
345
368
 
346
369
  export interface JAppLayerService {
@@ -395,8 +418,7 @@ export interface JAppLayerTreeFilterService {
395
418
  }
396
419
 
397
420
  export interface JAppFormService {
398
- render(containerId: string, formParams: JFormParams): JFormMetaData
399
- destroyByContainerId(containerId: string): void
421
+ openForm(params: JFormDialogParams): void
400
422
  }
401
423
 
402
424
  export interface JAppAppEventModule extends JEventModule {
@@ -411,6 +433,12 @@ export interface JAppLayerEventModule extends JEventModule {
411
433
  }
412
434
  }
413
435
 
436
+ export interface JAppMeasureEventModule extends JEventModule {
437
+ on: {
438
+ creation(listenerId: string, fn: (params: JAppMeasureCreationEventParams) => void): void
439
+ }
440
+ }
441
+
414
442
  export interface JAppExtensionEventModule extends JEventModule {
415
443
  on: {
416
444
  registration(listenerId: string, fn: (params: JAppExtensionEventParams) => void): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-types",
3
- "version": "1.0.1001",
3
+ "version": "1.1.1",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
5
5
  "main": "src/app.ts",
6
6
  "scripts": {
@@ -22,10 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
24
24
  "devDependencies": {
25
- "@types/react": "18.2.21",
26
- "jmapcloud-ng-core-types": "1.0.1",
27
- "maplibre-gl": "^3.2.1",
28
- "react": "^18.2.0",
29
- "typedoc": "^0.24.8"
25
+ "@types/react": "^18.3.2",
26
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
27
+ "jmapcloud-ng-core-types": "../ng-core-types",
28
+ "maplibre-gl": "^4.7.1",
29
+ "react": "^18.3.1",
30
+ "typedoc": "^0.25.13"
30
31
  }
31
32
  }