jmapcloud-ng-types 2.0.20-qa.5 → 2.0.20-qa.6
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 +25 -25
- package/package.json +1 -1
- package/public/app.d.ts +26 -21
- package/public/form.d.ts +2 -2
- package/public/geometry.d.ts +1 -1
- package/public/layer.d.ts +3 -3
package/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface JAppState {
|
|
|
21
21
|
dataGrid: JAppDataGridState
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export type JAppActiveDataGrid = { type: "table"; id:
|
|
24
|
+
export type JAppActiveDataGrid = { type: "table"; id: string } | { type: "layer"; id: string }
|
|
25
25
|
|
|
26
26
|
export interface JAppDataGridState {
|
|
27
27
|
activeDataGrid: JAppActiveDataGrid | undefined
|
|
@@ -34,8 +34,8 @@ export type JAppCoordinateInputMode = "project" | "web-mercator" | "wgs84-decima
|
|
|
34
34
|
export interface JAppGeometryState {
|
|
35
35
|
/** Selected CRS and format; undefined uses the project default. */
|
|
36
36
|
coordinateInputMode: JAppCoordinateInputMode | undefined
|
|
37
|
-
layerId:
|
|
38
|
-
featureId:
|
|
37
|
+
layerId: string | undefined
|
|
38
|
+
featureId: number | undefined // needed for update
|
|
39
39
|
hasChanged: boolean
|
|
40
40
|
feature: GeoJSON.Feature | undefined
|
|
41
41
|
isUpdate: boolean
|
|
@@ -43,7 +43,7 @@ export interface JAppGeometryState {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface JAppFeatureState {
|
|
46
|
-
layerId:
|
|
46
|
+
layerId: string | undefined
|
|
47
47
|
isLoading: boolean
|
|
48
48
|
hasLoadingError: boolean
|
|
49
49
|
features: GeoJSON.Feature[]
|
|
@@ -63,11 +63,11 @@ export interface JAppLayerState {
|
|
|
63
63
|
isLayerOrderActive: boolean
|
|
64
64
|
treeFilter: JAppLayerTreeFilterState
|
|
65
65
|
editionActiveTab: JAPP_LAYER_EDITION_TABS
|
|
66
|
-
inEditionLayerId:
|
|
66
|
+
inEditionLayerId: string | undefined
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export interface JAppTableState {
|
|
70
|
-
inEditionTableId:
|
|
70
|
+
inEditionTableId: string | undefined
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface JAppUiState {
|
|
@@ -120,7 +120,7 @@ export interface JAppAnnotationState {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export interface JAppSnapState {
|
|
123
|
-
layerId:
|
|
123
|
+
layerId: string | undefined
|
|
124
124
|
isEnabled: boolean
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ export interface JAppPrintState {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export interface JAppSelectionState {
|
|
145
|
-
displayedLayerId:
|
|
145
|
+
displayedLayerId: string | null
|
|
146
146
|
isNewElement: boolean
|
|
147
147
|
tableVisibility: boolean
|
|
148
148
|
/** @deprecated Always false. Use tableVisibility for the in-app selection table. */
|
|
@@ -173,10 +173,10 @@ export interface JAppGeometryService {
|
|
|
173
173
|
/** @deprecated Use JMap.Draw.setSnapping("geometry", ...) instead. */
|
|
174
174
|
setSnapEnabled(isEnabled: boolean): void
|
|
175
175
|
/** @deprecated Use JMap.Draw.setSnapping("geometry", ...) instead. */
|
|
176
|
-
setSnapLayerId(layerId:
|
|
176
|
+
setSnapLayerId(layerId: string): void
|
|
177
177
|
openPanelForCreation(): void
|
|
178
178
|
openPanelForUpdate(params: JAppGeometryUpdateParams): void
|
|
179
|
-
selectLayer(layerId:
|
|
179
|
+
selectLayer(layerId: string): void
|
|
180
180
|
startCreationDrawing(): void
|
|
181
181
|
stopCreationDrawing(): void
|
|
182
182
|
finishUpdate(): Promise<void>
|
|
@@ -184,14 +184,14 @@ export interface JAppGeometryService {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
export interface JAppFeatureService {
|
|
187
|
-
openEditMenuById(layerId:
|
|
188
|
-
openEditMenuByIds(layerId:
|
|
187
|
+
openEditMenuById(layerId: string, featureId: number): Promise<GeoJSON.Feature>
|
|
188
|
+
openEditMenuByIds(layerId: string, featureIds: number[]): Promise<GeoJSON.Feature[]>
|
|
189
189
|
closeEditMenu(): void
|
|
190
|
-
deleteByIds(layerId:
|
|
190
|
+
deleteByIds(layerId: string, featureIds: number[]): Promise<number[]>
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
export interface JAppProjectService {
|
|
194
|
-
activateById(projectId:
|
|
194
|
+
activateById(projectId: string): JProject
|
|
195
195
|
setSelectionPanelVisibility(isVisible: boolean): void
|
|
196
196
|
setPresentationShowOnOpen(value: boolean): void
|
|
197
197
|
}
|
|
@@ -208,7 +208,7 @@ export interface JAppAnnotationService {
|
|
|
208
208
|
/** @deprecated Use JMap.Draw.setSnapping("annotation", ...) instead. */
|
|
209
209
|
setSnapEnabled(isEnabled: boolean): void
|
|
210
210
|
/** @deprecated Use JMap.Draw.setSnapping("annotation", ...) instead. */
|
|
211
|
-
setSnapLayerId(layerId:
|
|
211
|
+
setSnapLayerId(layerId: string): void
|
|
212
212
|
existsById(annotationId: string): boolean
|
|
213
213
|
getById(annotationId: string): JAppAnnotation
|
|
214
214
|
getAll(): JAppAnnotation[]
|
|
@@ -285,8 +285,8 @@ export interface JAppEventService {
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
export interface JAppSelectionService {
|
|
288
|
-
getDisplayedLayerId():
|
|
289
|
-
setDisplayedLayerId(layerId:
|
|
288
|
+
getDisplayedLayerId(): string | null
|
|
289
|
+
setDisplayedLayerId(layerId: string | null): void
|
|
290
290
|
activateSelectionType(selectionType: JAPP_SELECTION_TYPES): void
|
|
291
291
|
getActiveSelectionType(): JAPP_SELECTION_TYPES
|
|
292
292
|
getTableVisibility(): boolean
|
|
@@ -297,7 +297,7 @@ export interface JAppSelectionService {
|
|
|
297
297
|
openTableInTab(): void
|
|
298
298
|
/** @deprecated No-op that warns once. Use setTableVisibility(false) for the in-app selection table. */
|
|
299
299
|
closeTableTab(): void
|
|
300
|
-
clearSelectionForLayer(layerId:
|
|
300
|
+
clearSelectionForLayer(layerId: string): void
|
|
301
301
|
clearSelection(): void
|
|
302
302
|
selectFromFeature(feature: GeoJSON.Feature, selectionType?: JAPP_SELECTION_TYPES): void
|
|
303
303
|
exportAsExcelFile(): void
|
|
@@ -308,7 +308,7 @@ export interface JAppMeasureService {
|
|
|
308
308
|
/** @deprecated Use JMap.Draw.setSnapping("measure", ...) instead. */
|
|
309
309
|
setSnapEnabled(isEnabled: boolean): void
|
|
310
310
|
/** @deprecated Use JMap.Draw.setSnapping("measure", ...) instead. */
|
|
311
|
-
setSnapLayerId(layerId:
|
|
311
|
+
setSnapLayerId(layerId: string): void
|
|
312
312
|
getAll(): JAppMeasure[]
|
|
313
313
|
existsById(measureId: string): boolean
|
|
314
314
|
getById(measureId: string): JAppMeasure
|
|
@@ -385,26 +385,26 @@ export interface JAppLayerService {
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
export interface JAppDynamicFilterService {
|
|
388
|
-
openPanel(layerId:
|
|
388
|
+
openPanel(layerId: string): void
|
|
389
389
|
closePanel(): void
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
export interface JAppTableService {
|
|
393
393
|
Edition: {
|
|
394
394
|
DynamicFilter: {
|
|
395
|
-
openPanel(tableId:
|
|
395
|
+
openPanel(tableId: string): void
|
|
396
396
|
closePanel(): void
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
export interface JAppLayerEditionInfoService {
|
|
402
|
-
openPanel(layerId:
|
|
402
|
+
openPanel(layerId: string): void
|
|
403
403
|
closePanel(): void
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
export interface JAppLayerEditionThematicService {
|
|
407
|
-
openPanel(layerId:
|
|
407
|
+
openPanel(layerId: string): void
|
|
408
408
|
closePanel(): void
|
|
409
409
|
}
|
|
410
410
|
|
|
@@ -412,7 +412,7 @@ export interface JAppLayerEditionService {
|
|
|
412
412
|
DynamicFilter: JAppDynamicFilterService
|
|
413
413
|
Info: JAppLayerEditionInfoService
|
|
414
414
|
Thematic: JAppLayerEditionThematicService
|
|
415
|
-
openPanel(layerId:
|
|
415
|
+
openPanel(layerId: string, tab: JAPP_LAYER_EDITION_TABS): void
|
|
416
416
|
closePanel(): void
|
|
417
417
|
}
|
|
418
418
|
|
|
@@ -429,7 +429,7 @@ export interface JAppLayerTreeFilterService {
|
|
|
429
429
|
/** @deprecated Removed API. This method now does nothing and always returns false. */
|
|
430
430
|
existById(filterId: number): boolean
|
|
431
431
|
/** @deprecated Removed API. This method now does nothing and always returns false. */
|
|
432
|
-
oneFilterExistForMetadataId(metadataId:
|
|
432
|
+
oneFilterExistForMetadataId(metadataId: string): boolean
|
|
433
433
|
/** @deprecated Removed API. This method now returns an empty result. */
|
|
434
434
|
getAll(): JAppGetAllFiltersResult
|
|
435
435
|
/** @deprecated Removed API. Filters no longer exist, so this method always throws "Filter id not found", matching the original error contract. */
|
package/package.json
CHANGED
package/public/app.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ declare global {
|
|
|
162
162
|
* JMap.Application.Annotation.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91")
|
|
163
163
|
* ```
|
|
164
164
|
*/
|
|
165
|
-
function setSnapLayerId(layerId:
|
|
165
|
+
function setSnapLayerId(layerId: string): void
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* **JMap.Application.Annotation.existsById**
|
|
@@ -548,7 +548,7 @@ declare global {
|
|
|
548
548
|
* JMap.Application.Feature.openEditMenuById(5, 234)
|
|
549
549
|
* ```
|
|
550
550
|
*/
|
|
551
|
-
function openEditMenuById(layerId:
|
|
551
|
+
function openEditMenuById(layerId: string, featureId: number): Promise<GeoJSON.Feature>
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* **JMap.Application.Feature.openEditMenuByIds**
|
|
@@ -563,7 +563,7 @@ declare global {
|
|
|
563
563
|
* JMap.Application.Feature.openEditMenuByIds(5, [234, 452, 176])
|
|
564
564
|
* ```
|
|
565
565
|
*/
|
|
566
|
-
function openEditMenuByIds(layerId:
|
|
566
|
+
function openEditMenuByIds(layerId: string, featureIds: number[]): Promise<GeoJSON.Feature[]>
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
569
|
* **JMap.Application.Feature.closeEditMenu**
|
|
@@ -593,7 +593,7 @@ declare global {
|
|
|
593
593
|
* JMap.Application.Feature.deleteByIds(4, [23, 76]).then(result => console.log("Delete result", result))
|
|
594
594
|
* ```
|
|
595
595
|
*/
|
|
596
|
-
function deleteByIds(layerId:
|
|
596
|
+
function deleteByIds(layerId: string, featureIds: number[]): Promise<number[]>
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
/**
|
|
@@ -628,7 +628,7 @@ declare global {
|
|
|
628
628
|
* JMap.Application.Geometry.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91")
|
|
629
629
|
* ```
|
|
630
630
|
*/
|
|
631
|
-
function setSnapLayerId(layerId:
|
|
631
|
+
function setSnapLayerId(layerId: string): void
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
634
|
* **JMap.Application.Geometry.openPanelForCreation**
|
|
@@ -672,7 +672,7 @@ declare global {
|
|
|
672
672
|
* JMap.Application.Geometry.selectLayer(3)
|
|
673
673
|
* ```
|
|
674
674
|
*/
|
|
675
|
-
function selectLayer(layerId:
|
|
675
|
+
function selectLayer(layerId: string): void
|
|
676
676
|
|
|
677
677
|
/**
|
|
678
678
|
* **JMap.Application.Geometry.startCreationDrawing**
|
|
@@ -761,7 +761,7 @@ declare global {
|
|
|
761
761
|
* JMap.Application.Measure.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91")
|
|
762
762
|
* ```
|
|
763
763
|
*/
|
|
764
|
-
function setSnapLayerId(layerId:
|
|
764
|
+
function setSnapLayerId(layerId: string): void
|
|
765
765
|
|
|
766
766
|
/**
|
|
767
767
|
* **JMap.Application.Measure.getAll**
|
|
@@ -1064,7 +1064,7 @@ declare global {
|
|
|
1064
1064
|
*
|
|
1065
1065
|
* The selection of only one layer can be diplayed at a time.
|
|
1066
1066
|
*
|
|
1067
|
-
* This function returns the id of the layer for which the selection is displayed.
|
|
1067
|
+
* This function returns the id of the layer for which the selection is displayed, or null when none is.
|
|
1068
1068
|
*
|
|
1069
1069
|
* @example
|
|
1070
1070
|
* ```ts
|
|
@@ -1072,7 +1072,7 @@ declare global {
|
|
|
1072
1072
|
* JMap.Application.Selection.getDisplayedLayerId()
|
|
1073
1073
|
* ```
|
|
1074
1074
|
*/
|
|
1075
|
-
function getDisplayedLayerId():
|
|
1075
|
+
function getDisplayedLayerId(): string | null
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* **JMap.Application.Selection.setDisplayedLayerId**
|
|
@@ -1081,14 +1081,19 @@ declare global {
|
|
|
1081
1081
|
*
|
|
1082
1082
|
* If layer selection has no selection, hides the layer selection list.
|
|
1083
1083
|
*
|
|
1084
|
+
* Pass null to display no layer. Passing -1 for that still works but is deprecated and logs a warning.
|
|
1085
|
+
*
|
|
1084
1086
|
* @throws if layer not found for the given layer id
|
|
1085
1087
|
* @example
|
|
1086
1088
|
* ```ts
|
|
1087
|
-
* // display the
|
|
1088
|
-
* JMap.Application.Selection.setDisplayedLayerId(
|
|
1089
|
+
* // display the selection of the layer
|
|
1090
|
+
* JMap.Application.Selection.setDisplayedLayerId("f3af01ab-4042-4ccf-be04-33dc96228ce7")
|
|
1091
|
+
*
|
|
1092
|
+
* // display no layer selection
|
|
1093
|
+
* JMap.Application.Selection.setDisplayedLayerId(null)
|
|
1089
1094
|
* ```
|
|
1090
1095
|
*/
|
|
1091
|
-
function setDisplayedLayerId(layerId:
|
|
1096
|
+
function setDisplayedLayerId(layerId: string | null): void
|
|
1092
1097
|
|
|
1093
1098
|
/**
|
|
1094
1099
|
* **JMap.Application.Selection.activateSelectionType**
|
|
@@ -1201,7 +1206,7 @@ declare global {
|
|
|
1201
1206
|
* JMap.Application.Selection.clearSelectionForLayer(2)
|
|
1202
1207
|
* ```
|
|
1203
1208
|
*/
|
|
1204
|
-
function clearSelectionForLayer(layerId:
|
|
1209
|
+
function clearSelectionForLayer(layerId: string): void
|
|
1205
1210
|
|
|
1206
1211
|
/**
|
|
1207
1212
|
* **JMap.Application.Selection.clearSelection**
|
|
@@ -1285,7 +1290,7 @@ declare global {
|
|
|
1285
1290
|
* JMap.Application.Project.activateById(33)
|
|
1286
1291
|
* ```
|
|
1287
1292
|
*/
|
|
1288
|
-
function activateById(projectId:
|
|
1293
|
+
function activateById(projectId: string): JProject
|
|
1289
1294
|
|
|
1290
1295
|
/**
|
|
1291
1296
|
* **JMap.Application.Project.setSelectionPanelVisibility**
|
|
@@ -1334,7 +1339,7 @@ declare global {
|
|
|
1334
1339
|
* JMap.Application.Table.Edition.DynamicFilter.openPanel("table-id")
|
|
1335
1340
|
* ```
|
|
1336
1341
|
*/
|
|
1337
|
-
function openPanel(tableId:
|
|
1342
|
+
function openPanel(tableId: string): void
|
|
1338
1343
|
|
|
1339
1344
|
/**
|
|
1340
1345
|
* Closes the table filter sub-panel and returns to the layer/table list.
|
|
@@ -1512,7 +1517,7 @@ declare global {
|
|
|
1512
1517
|
* @param metadataId Unused
|
|
1513
1518
|
* @returns Always false
|
|
1514
1519
|
*/
|
|
1515
|
-
function oneFilterExistForMetadataId(metadataId:
|
|
1520
|
+
function oneFilterExistForMetadataId(metadataId: string): boolean
|
|
1516
1521
|
|
|
1517
1522
|
/**
|
|
1518
1523
|
* **JMap.Application.Layer.Tree.Filter.getAll**
|
|
@@ -1604,7 +1609,7 @@ declare global {
|
|
|
1604
1609
|
* JMap.Application.Layer.Edition.DynamicFilter.openPanel(3)
|
|
1605
1610
|
* ```
|
|
1606
1611
|
*/
|
|
1607
|
-
function openPanel(layerId:
|
|
1612
|
+
function openPanel(layerId: string): void
|
|
1608
1613
|
|
|
1609
1614
|
/**
|
|
1610
1615
|
* **JMap.Application.Layer.Edition.DynamicFilter.closePanel**
|
|
@@ -1639,7 +1644,7 @@ declare global {
|
|
|
1639
1644
|
* JMap.Application.Layer.Edition.Info.openPanel(3)
|
|
1640
1645
|
* ```
|
|
1641
1646
|
*/
|
|
1642
|
-
function openPanel(layerId:
|
|
1647
|
+
function openPanel(layerId: string): void
|
|
1643
1648
|
|
|
1644
1649
|
/**
|
|
1645
1650
|
* **JMap.Application.Layer.Edition.Info.closePanel**
|
|
@@ -1674,7 +1679,7 @@ declare global {
|
|
|
1674
1679
|
* JMap.Application.Layer.Edition.Thematic.openPanel(3)
|
|
1675
1680
|
* ```
|
|
1676
1681
|
*/
|
|
1677
|
-
function openPanel(layerId:
|
|
1682
|
+
function openPanel(layerId: string): void
|
|
1678
1683
|
|
|
1679
1684
|
/**
|
|
1680
1685
|
* **JMap.Application.Layer.Edition.Thematic.closePanel**
|
|
@@ -1711,7 +1716,7 @@ declare global {
|
|
|
1711
1716
|
* JMap.Application.Layer.Edition.openPanel(2, "dynamic-filter")
|
|
1712
1717
|
* ```
|
|
1713
1718
|
*/
|
|
1714
|
-
function openPanel(layerId:
|
|
1719
|
+
function openPanel(layerId: string, activeTab: JAPP_LAYER_EDITION_TABS): void
|
|
1715
1720
|
|
|
1716
1721
|
/**
|
|
1717
1722
|
* **JMap.Application.Layer.Edition.closePanel**
|
|
@@ -3519,7 +3524,7 @@ declare global {
|
|
|
3519
3524
|
*
|
|
3520
3525
|
* @param params The parameters that configure which sub-form to open:
|
|
3521
3526
|
* - `dataSourceId` (string): The data source ID that provides the form.
|
|
3522
|
-
* - For `layerUpdate`: `featureId` (
|
|
3527
|
+
* - For `layerUpdate`: `featureId` (number), `isReadOnly` (boolean).
|
|
3523
3528
|
* - For `tableUpdate`: `rowId` (number), `isReadOnly` (boolean).
|
|
3524
3529
|
* - For `tableCreate`: `isReadOnly` is always `false`.
|
|
3525
3530
|
* - `onSubmit?` (() => void): (Optional) Callback invoked after submit.
|
package/public/form.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type JFormDialogParams =
|
|
|
3
3
|
| {
|
|
4
4
|
type: "layerUpdate"
|
|
5
5
|
layer: JLayer
|
|
6
|
-
featureId:
|
|
6
|
+
featureId: number
|
|
7
7
|
isReadOnly: boolean
|
|
8
8
|
onSubmit?: () => void
|
|
9
9
|
}
|
|
@@ -33,7 +33,7 @@ export type JSubFormDialogParams =
|
|
|
33
33
|
type: "layerUpdate"
|
|
34
34
|
dataSourceId: string
|
|
35
35
|
organizationId: string
|
|
36
|
-
featureId:
|
|
36
|
+
featureId: number
|
|
37
37
|
isReadOnly: boolean
|
|
38
38
|
onSubmit?: () => void
|
|
39
39
|
}
|
package/public/geometry.d.ts
CHANGED
package/public/layer.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ export type JAppLayerAnyFilterOperatorType = JAPP_LAYER_DATE_FILTER_OPERATOR_TYP
|
|
|
49
49
|
export interface JAppLayerTreeFilterState {
|
|
50
50
|
active: boolean
|
|
51
51
|
nameFilter: string
|
|
52
|
-
exactlyMatchedTreeItemIds:
|
|
53
|
-
expandedMatchedTreeItemIds:
|
|
52
|
+
exactlyMatchedTreeItemIds: string[]
|
|
53
|
+
expandedMatchedTreeItemIds: string[]
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
@@ -65,7 +65,7 @@ export type JAppAnyLayerFilter = JAppNumberLayerFilter | JAppTextLayerFilter | J
|
|
|
65
65
|
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
66
66
|
export interface JAppBaseLayerFilter {
|
|
67
67
|
id: number
|
|
68
|
-
metadataItemId:
|
|
68
|
+
metadataItemId: string
|
|
69
69
|
type: JLAYER_METADATA_TYPES
|
|
70
70
|
}
|
|
71
71
|
|