@vertigis/viewer-spec 48.5.0 → 48.7.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/app-config/common/CoordinateFormat.d.ts +4 -0
- package/app-config/common/CoordinateFormat.js +1 -0
- package/app-config/common/CoordinateModelProperties.d.ts +14 -5
- package/app-config/mobile/CoordinateModelProperties.d.ts +10 -0
- package/app-config/mobile/CoordinateModelProperties.js +1 -0
- package/app-config/schema/common-app-config.schema.json +1 -1
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/app-config/web/CoordinateModelProperties.d.ts +42 -0
- package/app-config/web/MapCoordinatesModelProperties.d.ts +11 -4
- package/messaging/registry/edit.d.ts +4 -4
- package/messaging/registry/panel.d.ts +2 -4
- package/messaging/schema/common-action.schema.json +5 -1
- package/messaging/schema/mobile-action.schema.json +5 -1
- package/messaging/schema/web-action.schema.json +5 -1
- package/package.json +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,7 +1,49 @@
|
|
|
1
|
+
import type { SpatialReference } from "@vertigis/arcgis-extensions/portal/SpatialReference";
|
|
2
|
+
import type { CoordinateFormat } from "../common/CoordinateFormat.js";
|
|
1
3
|
import type { CoordinateModelProperties as CommonCoordinateModelProperties } from "../common/CoordinateModelProperties.js";
|
|
2
4
|
import type { ServiceModelProperties } from "../common/ServiceModelProperties.js";
|
|
3
5
|
/**
|
|
4
6
|
* @inheritdoc
|
|
5
7
|
*/
|
|
6
8
|
export interface CoordinateModelProperties extends CommonCoordinateModelProperties, ServiceModelProperties {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the active coordinate option being used in the application.
|
|
11
|
+
* Defaults to the first item in the list of coordinateOptions.
|
|
12
|
+
*/
|
|
13
|
+
activeCoordinateOption?: string;
|
|
14
|
+
/**
|
|
15
|
+
* A list of configuration options for displaying map coordinates in the application.
|
|
16
|
+
*/
|
|
17
|
+
coordinateOptions?: CoordinateOptionProperties[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Options for configuring the display of map coordinates.
|
|
21
|
+
*/
|
|
22
|
+
export interface CoordinateOptionProperties {
|
|
23
|
+
/**
|
|
24
|
+
* The unique ID of the Coordinate Option.
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The display name of the CoordinateOption.
|
|
29
|
+
*/
|
|
30
|
+
title: string;
|
|
31
|
+
/**
|
|
32
|
+
* The format to display map coordinates in.
|
|
33
|
+
*/
|
|
34
|
+
format: CoordinateFormat;
|
|
35
|
+
/**
|
|
36
|
+
* The spatial reference to display map coordinates in. If this property is
|
|
37
|
+
* not defined, the spatial reference of the map will be used.
|
|
38
|
+
*/
|
|
39
|
+
spatialReference?: SpatialReference;
|
|
40
|
+
/**
|
|
41
|
+
* For LAT_LONG and XY coordinate formats, this property depicts the number
|
|
42
|
+
* of decimal places displayed. For MGRS and USNG coordinate formats, this
|
|
43
|
+
* property depicts the precision of the coordinates using an integer
|
|
44
|
+
* between 0 and 8 (inclusive). This Value is ignored by UTM coordinate
|
|
45
|
+
* formats. The default values for coordinate formats are as follows:
|
|
46
|
+
* LAT_LONG=4, XY=2, MGRS=5, and USNG=5.
|
|
47
|
+
*/
|
|
48
|
+
precision?: number;
|
|
7
49
|
}
|
|
@@ -1,37 +1,44 @@
|
|
|
1
|
+
import type { CoordinateFormat } from "../common/CoordinateFormat.js";
|
|
1
2
|
import type { MapCoordinatesModelProperties as CommonMapCoordinatesModelProperties } from "../common/MapCoordinatesModelProperties.js";
|
|
2
3
|
import type { ComponentModelProperties } from "./ComponentModelProperties.js";
|
|
3
|
-
/**
|
|
4
|
-
* The coordinate formats that can be shown by the MapCoordinates component.
|
|
5
|
-
*/
|
|
6
|
-
export declare type CoordinateFormat = "xy" | "lat-long-dd" | "lat-long-ddm" | "lat-long-dms" | "mgrs" | "usng" | "utm";
|
|
7
4
|
/**
|
|
8
5
|
* @inheritdoc
|
|
9
6
|
*/
|
|
10
7
|
export interface MapCoordinatesModelProperties extends CommonMapCoordinatesModelProperties, ComponentModelProperties {
|
|
11
8
|
/**
|
|
12
9
|
* The coordinate format that is displayed. The default is XY.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
13
12
|
*/
|
|
14
13
|
coordinateFormat?: CoordinateFormat;
|
|
15
14
|
/**
|
|
16
15
|
* The number of decimal places displayed for LAT_LONG coordinate formats.
|
|
17
16
|
* The value must be an integer between 0 and 8 (inclusive). The default is 4.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
18
19
|
*/
|
|
19
20
|
decimalPlacesLatLong?: number;
|
|
20
21
|
/**
|
|
21
22
|
* The number of decimal places displayed for the XY coordinate format. The
|
|
22
23
|
* value must be an integer between 0 and 8 (inclusive). The default is 2.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated
|
|
23
26
|
*/
|
|
24
27
|
decimalPlacesXY?: number;
|
|
25
28
|
/**
|
|
26
29
|
* The precision with which to represent the coordinates, when using the
|
|
27
30
|
* MGRS format. The value must be an integer between 0 and 8 (inclusive).
|
|
28
31
|
* The default is 5.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated
|
|
29
34
|
*/
|
|
30
35
|
precisionMGRS?: number;
|
|
31
36
|
/**
|
|
32
37
|
* The precision with which to represent the coordinates, when using the
|
|
33
38
|
* USNG format. The value must be an integer between 0 and 8 (inclusive).
|
|
34
39
|
* The default is 5.
|
|
40
|
+
*
|
|
41
|
+
* @deprecated
|
|
35
42
|
*/
|
|
36
43
|
precisionUSNG?: number;
|
|
37
44
|
/**
|
|
@@ -111,6 +111,10 @@ export interface EditOptions {
|
|
|
111
111
|
* Whether to allow editing of feature attributes.
|
|
112
112
|
*/
|
|
113
113
|
editAttributes?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to allow editing of feature attachments.
|
|
116
|
+
*/
|
|
117
|
+
editAttachments?: boolean;
|
|
114
118
|
/**
|
|
115
119
|
* Options for the geometry editing session.
|
|
116
120
|
*/
|
|
@@ -173,10 +177,6 @@ export interface DisplayUpdateFeatureArgs extends EditCommandArgs, HasGeometry,
|
|
|
173
177
|
* A collection of attributes to automatically apply to the updated feature.
|
|
174
178
|
*/
|
|
175
179
|
featureAttributes?: Record<string, unknown>;
|
|
176
|
-
/**
|
|
177
|
-
* Whether to allow editing of feature attachments. Web only.
|
|
178
|
-
*/
|
|
179
|
-
editAttachments?: boolean;
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* Arguments for the "edit.add-features", "edit.update-features" and
|
|
@@ -82,15 +82,13 @@ export declare class PanelCommands extends CommandRegistry {
|
|
|
82
82
|
*/
|
|
83
83
|
get snapHostPanel(): Command<SnapHostPanelArgs>;
|
|
84
84
|
/**
|
|
85
|
-
* Closes the popout window for a panel and restores the original
|
|
86
|
-
* layout.
|
|
85
|
+
* Closes the popout window for a panel and restores the original layout.
|
|
87
86
|
*
|
|
88
87
|
* @webOnly
|
|
89
88
|
*/
|
|
90
89
|
get popIn(): Command<Model["id"] | Model>;
|
|
91
90
|
/**
|
|
92
|
-
* Removes a panel from the main layout and opens it in a new popout
|
|
93
|
-
* window.
|
|
91
|
+
* Removes a panel from the main layout and opens it in a new popout window.
|
|
94
92
|
*
|
|
95
93
|
* @webOnly
|
|
96
94
|
*/
|
|
@@ -801,6 +801,10 @@
|
|
|
801
801
|
"additionalProperties": false,
|
|
802
802
|
"description": "Arguments for the \"edit.display-add-features\" command. Web only.",
|
|
803
803
|
"properties": {
|
|
804
|
+
"editAttachments": {
|
|
805
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
806
|
+
"type": "boolean"
|
|
807
|
+
},
|
|
804
808
|
"editAttributes": {
|
|
805
809
|
"description": "Whether to allow editing of feature attributes.",
|
|
806
810
|
"type": "boolean"
|
|
@@ -909,7 +913,7 @@
|
|
|
909
913
|
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
910
914
|
},
|
|
911
915
|
"editAttachments": {
|
|
912
|
-
"description": "Whether to allow editing of feature attachments.
|
|
916
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
913
917
|
"type": "boolean"
|
|
914
918
|
},
|
|
915
919
|
"editAttributes": {
|
|
@@ -958,6 +958,10 @@
|
|
|
958
958
|
"additionalProperties": false,
|
|
959
959
|
"description": "Arguments for the \"edit.display-add-features\" command. Web only.",
|
|
960
960
|
"properties": {
|
|
961
|
+
"editAttachments": {
|
|
962
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
963
|
+
"type": "boolean"
|
|
964
|
+
},
|
|
961
965
|
"editAttributes": {
|
|
962
966
|
"description": "Whether to allow editing of feature attributes.",
|
|
963
967
|
"type": "boolean"
|
|
@@ -1136,7 +1140,7 @@
|
|
|
1136
1140
|
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
1137
1141
|
},
|
|
1138
1142
|
"editAttachments": {
|
|
1139
|
-
"description": "Whether to allow editing of feature attachments.
|
|
1143
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
1140
1144
|
"type": "boolean"
|
|
1141
1145
|
},
|
|
1142
1146
|
"editAttributes": {
|
|
@@ -1378,6 +1378,10 @@
|
|
|
1378
1378
|
"additionalProperties": false,
|
|
1379
1379
|
"description": "Arguments for the \"edit.display-add-features\" command. Web only.",
|
|
1380
1380
|
"properties": {
|
|
1381
|
+
"editAttachments": {
|
|
1382
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
1383
|
+
"type": "boolean"
|
|
1384
|
+
},
|
|
1381
1385
|
"editAttributes": {
|
|
1382
1386
|
"description": "Whether to allow editing of feature attributes.",
|
|
1383
1387
|
"type": "boolean"
|
|
@@ -1486,7 +1490,7 @@
|
|
|
1486
1490
|
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
1487
1491
|
},
|
|
1488
1492
|
"editAttachments": {
|
|
1489
|
-
"description": "Whether to allow editing of feature attachments.
|
|
1493
|
+
"description": "Whether to allow editing of feature attachments.",
|
|
1490
1494
|
"type": "boolean"
|
|
1491
1495
|
},
|
|
1492
1496
|
"editAttributes": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertigis/viewer-spec",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.7.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "VertiGIS Viewer Specification",
|
|
6
6
|
"type": "module",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"app-schema": "npm run -s prepare && node build/js/appConfigSchema.js",
|
|
17
|
+
"audit": "npx audit-ci@^6 --config ./audit-ci.jsonc",
|
|
17
18
|
"build": "npm run -s delete-js-folders && npm run update-version && tsc -d -p src && npm run minify && npm run -s lint && npm run -s build-schema",
|
|
18
19
|
"build-debug": "npm run -s delete-js-folders && npm run update-version && tsc -d --sourceMap true -p src && npm run -s lint && npm run build-schema",
|
|
19
20
|
"build-schema": "node build/js/appConfigSchema.js && node build/js/messageSchema.js",
|
package/version.d.ts
CHANGED
package/version.js
CHANGED