@vertigis/viewer-spec 43.2.0 → 43.3.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.
- package/messaging/common.d.ts +21 -0
- package/messaging/registry/drawing.d.ts +2 -2
- package/messaging/registry/geometry.d.ts +2 -2
- package/messaging/registry/map.d.ts +4 -4
- package/messaging/registry/measurement.d.ts +2 -2
- package/messaging/registry/portal.d.ts +2 -2
- package/messaging/registry/system.d.ts +2 -2
- package/messaging/schema/web-action.schema.json +92 -0
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/messaging/common.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import type { SimpleLineSymbol as SimpleLineSymbolProperties } from "@vertigis/a
|
|
|
33
33
|
import type { SimpleMarkerSymbol as SimpleMarkerSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleMarkerSymbol";
|
|
34
34
|
import type { Viewpoint as ViewpointJson } from "@vertigis/arcgis-extensions/portal/Viewpoint";
|
|
35
35
|
import type { SublayerLike } from "@vertigis/arcgis-extensions/support/esri";
|
|
36
|
+
import type { ItemRef } from "app-config/common/ItemRef";
|
|
36
37
|
/**
|
|
37
38
|
* A model belonging to a component.
|
|
38
39
|
*/
|
|
@@ -143,6 +144,26 @@ export interface HasGraphics {
|
|
|
143
144
|
*/
|
|
144
145
|
graphics?: GraphicsLike;
|
|
145
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* An object with arguments for a command or operation that can display
|
|
149
|
+
* temporary UI.
|
|
150
|
+
*/
|
|
151
|
+
export interface HasUITarget {
|
|
152
|
+
/**
|
|
153
|
+
* The layout ID or ItemRef to target for the command/operation. This
|
|
154
|
+
* component will be the parent of the temporary UI that will be removed
|
|
155
|
+
* after the command/operation completes.
|
|
156
|
+
*/
|
|
157
|
+
parent?: string | ItemRef;
|
|
158
|
+
/**
|
|
159
|
+
* Optional layout XML attributes to be used for the transient UI container.
|
|
160
|
+
*/
|
|
161
|
+
attributes?: Record<string, string | number | boolean | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Optional icon that may be used by the transient UI container.
|
|
164
|
+
*/
|
|
165
|
+
icon?: string;
|
|
166
|
+
}
|
|
146
167
|
/**
|
|
147
168
|
* An object that is convertible to Esri Graphic or set of graphics, or an
|
|
148
169
|
* object that has graphics.
|
|
@@ -21,7 +21,7 @@ import type { Command } from "../Command.js";
|
|
|
21
21
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
22
22
|
import type { Operation } from "../Operation.js";
|
|
23
23
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
24
|
-
import type { CreateGraphicsResult, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, SymbolLike } from "../common.js";
|
|
24
|
+
import type { CreateGraphicsResult, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, HasUITarget, SymbolLike } from "../common.js";
|
|
25
25
|
/**
|
|
26
26
|
* Symbols supported for drawing.
|
|
27
27
|
*/
|
|
@@ -40,7 +40,7 @@ export interface GetDefaultSymbolArgs {
|
|
|
40
40
|
* Arguments for the drawing.edit-symbol operation. Only available in Geocortex
|
|
41
41
|
* Web.
|
|
42
42
|
*/
|
|
43
|
-
export interface EditSymbolArgs extends HasMaps, HasLayers, HasGraphics, HasFeatures {
|
|
43
|
+
export interface EditSymbolArgs extends HasMaps, HasLayers, HasGraphics, HasFeatures, HasUITarget {
|
|
44
44
|
/**
|
|
45
45
|
* The geometry type for the symbol to create.
|
|
46
46
|
*/
|
|
@@ -5,7 +5,7 @@ import type { Command } from "../Command.js";
|
|
|
5
5
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
6
6
|
import type { Operation } from "../Operation.js";
|
|
7
7
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
8
|
-
import type { Geometries, HasFeatures, HasGeometry, HasMaps, MapsLike } from "../common.js";
|
|
8
|
+
import type { Geometries, HasFeatures, HasGeometry, HasMaps, HasUITarget, MapsLike } from "../common.js";
|
|
9
9
|
import type { CaptureGeometryResult } from "./sketching.js";
|
|
10
10
|
/**
|
|
11
11
|
* Arguments for the geometry.project operation.
|
|
@@ -97,5 +97,5 @@ export declare class GeometryCommands extends CommandRegistry {
|
|
|
97
97
|
*
|
|
98
98
|
* @webOnly
|
|
99
99
|
*/
|
|
100
|
-
get showSettings(): Command<
|
|
100
|
+
get showSettings(): Command<HasUITarget>;
|
|
101
101
|
}
|
|
@@ -19,7 +19,7 @@ import type { Event } from "../Event.js";
|
|
|
19
19
|
import { EventRegistry } from "../EventRegistry.js";
|
|
20
20
|
import type { Operation } from "../Operation.js";
|
|
21
21
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
22
|
-
import type { Features, FeaturesLike, Geometries, GeometryLike, GraphicsLike, Layers, LayersLike, Maps, MapsLike, ViewpointLike } from "../common.js";
|
|
22
|
+
import type { Features, FeaturesLike, Geometries, GeometryLike, GraphicsLike, HasUITarget, Layers, LayersLike, Maps, MapsLike, ViewpointLike } from "../common.js";
|
|
23
23
|
import type { MapExtensionArgs } from "../mobile.js";
|
|
24
24
|
import type { EnhancedFileData } from "./file.js";
|
|
25
25
|
import type { GeometryEditorSettings } from "./sketching.js";
|
|
@@ -200,7 +200,7 @@ export interface UpdateLayerArgs {
|
|
|
200
200
|
/**
|
|
201
201
|
* Arguments for the map.create-note command.
|
|
202
202
|
*/
|
|
203
|
-
export interface CreateMapNoteArgs {
|
|
203
|
+
export interface CreateMapNoteArgs extends HasUITarget {
|
|
204
204
|
/**
|
|
205
205
|
* Optionally the features that can be referenced for inserting snippets.
|
|
206
206
|
*/
|
|
@@ -217,7 +217,7 @@ export interface CreateMapNoteArgs {
|
|
|
217
217
|
/**
|
|
218
218
|
* Arguments for the map.edit-note command.
|
|
219
219
|
*/
|
|
220
|
-
export interface EditMapNotesArgs {
|
|
220
|
+
export interface EditMapNotesArgs extends HasUITarget {
|
|
221
221
|
/**
|
|
222
222
|
* Optionally the features that can be referenced for inserting snippets.
|
|
223
223
|
*/
|
|
@@ -234,7 +234,7 @@ export interface EditMapNotesArgs {
|
|
|
234
234
|
/**
|
|
235
235
|
* Arguments for the map.get-user-coordinates-input operation.
|
|
236
236
|
*/
|
|
237
|
-
export interface GetCoordinateArgs {
|
|
237
|
+
export interface GetCoordinateArgs extends HasUITarget {
|
|
238
238
|
/**
|
|
239
239
|
* The map on which to select the result.
|
|
240
240
|
*/
|
|
@@ -4,7 +4,7 @@ import type { Command } from "../Command.js";
|
|
|
4
4
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
5
5
|
import type { Operation } from "../Operation.js";
|
|
6
6
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
7
|
-
import type { CreateGraphicsResult, Geometries, HasSymbol, Maps, SymbolLike } from "../common.js";
|
|
7
|
+
import type { CreateGraphicsResult, Geometries, HasSymbol, HasUITarget, Maps, SymbolLike } from "../common.js";
|
|
8
8
|
import type { MapExtensionArgs } from "../mobile.js";
|
|
9
9
|
import type { DrawingSymbolConfig } from "./drawing.js";
|
|
10
10
|
import type { CaptureGeometryArgs, CaptureGeometryResult } from "./sketching.js";
|
|
@@ -66,7 +66,7 @@ export declare class MeasurementCommands extends CommandRegistry {
|
|
|
66
66
|
*
|
|
67
67
|
* @webOnly
|
|
68
68
|
*/
|
|
69
|
-
get showSettings(): Command<
|
|
69
|
+
get showSettings(): Command<HasUITarget>;
|
|
70
70
|
/**
|
|
71
71
|
* Starts drawing a measurement on the map. If a drawing has previously been
|
|
72
72
|
* started and stopped it will be resumed.
|
|
@@ -2,7 +2,7 @@ import type { Event } from "../Event.js";
|
|
|
2
2
|
import { EventRegistry } from "../EventRegistry.js";
|
|
3
3
|
import type { Operation } from "../Operation.js";
|
|
4
4
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
5
|
-
import type { HasMaps, LayersLike } from "../common.js";
|
|
5
|
+
import type { HasMaps, HasUITarget, LayersLike } from "../common.js";
|
|
6
6
|
/**
|
|
7
7
|
* Corresponds to `VertiGIS.Mobile.Infrastructure.Portal.ArcGISPortalExtension`
|
|
8
8
|
* in the VertiGIS.Mobile SDK.
|
|
@@ -12,7 +12,7 @@ export interface ArcGISPortalExtension {
|
|
|
12
12
|
/**
|
|
13
13
|
* Arguments for the "portal.choose-layers" operation.
|
|
14
14
|
*/
|
|
15
|
-
export interface ChooseLayersOptions extends HasMaps {
|
|
15
|
+
export interface ChooseLayersOptions extends HasMaps, HasUITarget {
|
|
16
16
|
/**
|
|
17
17
|
* Whether the user can choose multiple layers, or just one. Default is
|
|
18
18
|
* `false`.
|
|
@@ -2,7 +2,7 @@ import type { Command } from "../Command.js";
|
|
|
2
2
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
3
3
|
import type { Operation } from "../Operation.js";
|
|
4
4
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
5
|
-
import type { Blob, File } from "../common.js";
|
|
5
|
+
import type { Blob, File, HasUITarget } from "../common.js";
|
|
6
6
|
/**
|
|
7
7
|
* Arguments for the system.download-file operation.
|
|
8
8
|
*/
|
|
@@ -19,7 +19,7 @@ export interface DownloadArgs {
|
|
|
19
19
|
/**
|
|
20
20
|
* Arguments for the system.read-file operation.
|
|
21
21
|
*/
|
|
22
|
-
export interface ReadFileArgs {
|
|
22
|
+
export interface ReadFileArgs extends HasUITarget {
|
|
23
23
|
/**
|
|
24
24
|
* The accept parameter for the file input.
|
|
25
25
|
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept}.
|
|
@@ -1247,6 +1247,9 @@
|
|
|
1247
1247
|
"additionalProperties": false,
|
|
1248
1248
|
"description": "Arguments for the map.create-note command.",
|
|
1249
1249
|
"properties": {
|
|
1250
|
+
"attributes": {
|
|
1251
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
1252
|
+
},
|
|
1250
1253
|
"features": {
|
|
1251
1254
|
"$ref": "#/definitions/FeaturesLike",
|
|
1252
1255
|
"description": "Optionally the features that can be referenced for inserting snippets."
|
|
@@ -1255,9 +1258,17 @@
|
|
|
1255
1258
|
"$ref": "#/definitions/esri.Point",
|
|
1256
1259
|
"description": "The location for the map note."
|
|
1257
1260
|
},
|
|
1261
|
+
"icon": {
|
|
1262
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
1263
|
+
"type": "string"
|
|
1264
|
+
},
|
|
1258
1265
|
"maps": {
|
|
1259
1266
|
"$ref": "MapsLike",
|
|
1260
1267
|
"description": "The map that should show the created note."
|
|
1268
|
+
},
|
|
1269
|
+
"parent": {
|
|
1270
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
1271
|
+
"type": "string"
|
|
1261
1272
|
}
|
|
1262
1273
|
},
|
|
1263
1274
|
"required": [
|
|
@@ -1566,6 +1577,9 @@
|
|
|
1566
1577
|
"additionalProperties": false,
|
|
1567
1578
|
"description": "Arguments for the map.edit-note command.",
|
|
1568
1579
|
"properties": {
|
|
1580
|
+
"attributes": {
|
|
1581
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
1582
|
+
},
|
|
1569
1583
|
"features": {
|
|
1570
1584
|
"$ref": "#/definitions/FeaturesLike",
|
|
1571
1585
|
"description": "Optionally the features that can be referenced for inserting snippets."
|
|
@@ -1574,9 +1588,17 @@
|
|
|
1574
1588
|
"$ref": "#/definitions/esri.Point",
|
|
1575
1589
|
"description": "The geometry from which to attempt to select the Note."
|
|
1576
1590
|
},
|
|
1591
|
+
"icon": {
|
|
1592
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
1593
|
+
"type": "string"
|
|
1594
|
+
},
|
|
1577
1595
|
"maps": {
|
|
1578
1596
|
"$ref": "MapsLike",
|
|
1579
1597
|
"description": "The map on which to edit the result."
|
|
1598
|
+
},
|
|
1599
|
+
"parent": {
|
|
1600
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
1601
|
+
"type": "string"
|
|
1580
1602
|
}
|
|
1581
1603
|
},
|
|
1582
1604
|
"required": [
|
|
@@ -1588,6 +1610,9 @@
|
|
|
1588
1610
|
"additionalProperties": false,
|
|
1589
1611
|
"description": "Arguments for the drawing.edit-symbol operation. Only available in Geocortex Web.",
|
|
1590
1612
|
"properties": {
|
|
1613
|
+
"attributes": {
|
|
1614
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
1615
|
+
},
|
|
1591
1616
|
"features": {
|
|
1592
1617
|
"$ref": "#/definitions/FeaturesLike",
|
|
1593
1618
|
"description": "Features to use for the command/operation."
|
|
@@ -1600,6 +1625,10 @@
|
|
|
1600
1625
|
"$ref": "#/definitions/GraphicsLike",
|
|
1601
1626
|
"description": "Graphics to use for the command/operation."
|
|
1602
1627
|
},
|
|
1628
|
+
"icon": {
|
|
1629
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
1630
|
+
"type": "string"
|
|
1631
|
+
},
|
|
1603
1632
|
"layers": {
|
|
1604
1633
|
"$ref": "#/definitions/LayersLike",
|
|
1605
1634
|
"description": "Layer(s) to use for the command/operation."
|
|
@@ -1608,6 +1637,10 @@
|
|
|
1608
1637
|
"$ref": "MapsLike",
|
|
1609
1638
|
"description": "Map(s) to use for the command/operation."
|
|
1610
1639
|
},
|
|
1640
|
+
"parent": {
|
|
1641
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
1642
|
+
"type": "string"
|
|
1643
|
+
},
|
|
1611
1644
|
"showOnlySymbolPresets": {
|
|
1612
1645
|
"description": "If the fine-grain controls should be hidden and only the symbol presets should be shown. If no valid symbol presets are configured, this property will be ignored. Default is false. If defined, this will override the value of the DrawService's 'showOnlySymbolPresets' property.",
|
|
1613
1646
|
"type": "boolean"
|
|
@@ -2476,13 +2509,24 @@
|
|
|
2476
2509
|
"description": "Indicates if the user should be given the option to select a point from the map.",
|
|
2477
2510
|
"type": "boolean"
|
|
2478
2511
|
},
|
|
2512
|
+
"attributes": {
|
|
2513
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
2514
|
+
},
|
|
2479
2515
|
"geometry": {
|
|
2480
2516
|
"$ref": "#/definitions/esri.Point",
|
|
2481
2517
|
"description": "An optional starting coordinate."
|
|
2482
2518
|
},
|
|
2519
|
+
"icon": {
|
|
2520
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
2521
|
+
"type": "string"
|
|
2522
|
+
},
|
|
2483
2523
|
"maps": {
|
|
2484
2524
|
"$ref": "MapsLike",
|
|
2485
2525
|
"description": "The map on which to select the result."
|
|
2526
|
+
},
|
|
2527
|
+
"parent": {
|
|
2528
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
2529
|
+
"type": "string"
|
|
2486
2530
|
}
|
|
2487
2531
|
},
|
|
2488
2532
|
"type": "object"
|
|
@@ -2713,6 +2757,24 @@
|
|
|
2713
2757
|
},
|
|
2714
2758
|
"type": "object"
|
|
2715
2759
|
},
|
|
2760
|
+
"HasUITarget": {
|
|
2761
|
+
"additionalProperties": false,
|
|
2762
|
+
"description": "An object with arguments for a command or operation that can display temporary UI.",
|
|
2763
|
+
"properties": {
|
|
2764
|
+
"attributes": {
|
|
2765
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
2766
|
+
},
|
|
2767
|
+
"icon": {
|
|
2768
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
2769
|
+
"type": "string"
|
|
2770
|
+
},
|
|
2771
|
+
"parent": {
|
|
2772
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
2773
|
+
"type": "string"
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
"type": "object"
|
|
2777
|
+
},
|
|
2716
2778
|
"IdentifyArgs": {
|
|
2717
2779
|
"additionalProperties": false,
|
|
2718
2780
|
"description": "Arguments for the tasks.identify operation.",
|
|
@@ -3244,10 +3306,21 @@
|
|
|
3244
3306
|
"description": "The accept parameter for the file input. {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept}.",
|
|
3245
3307
|
"type": "string"
|
|
3246
3308
|
},
|
|
3309
|
+
"attributes": {
|
|
3310
|
+
"description": "Optional layout XML attributes to be used for the transient UI container."
|
|
3311
|
+
},
|
|
3312
|
+
"icon": {
|
|
3313
|
+
"description": "Optional icon that may be used by the transient UI container.",
|
|
3314
|
+
"type": "string"
|
|
3315
|
+
},
|
|
3247
3316
|
"multiple": {
|
|
3248
3317
|
"description": "If present, indicates that the user may choose more than one file.",
|
|
3249
3318
|
"type": "boolean"
|
|
3250
3319
|
},
|
|
3320
|
+
"parent": {
|
|
3321
|
+
"description": "The layout ID or ItemRef to target for the command/operation. This component will be the parent of the temporary UI that will be removed after the command/operation completes.",
|
|
3322
|
+
"type": "string"
|
|
3323
|
+
},
|
|
3251
3324
|
"promptMessage": {
|
|
3252
3325
|
"description": "If present, overrides the default message of the dialog that prompts the user for a file.",
|
|
3253
3326
|
"type": "string"
|
|
@@ -15819,6 +15892,9 @@
|
|
|
15819
15892
|
"measurement.show-settings"
|
|
15820
15893
|
]
|
|
15821
15894
|
},
|
|
15895
|
+
"measurement.show-settings:input": {
|
|
15896
|
+
"$ref": "#/definitions/HasUITarget"
|
|
15897
|
+
},
|
|
15822
15898
|
"messaging.mix-in-args": {
|
|
15823
15899
|
"description": "Attempts to merge an array of values into a single value that can be used as an argument for a command or operation. For example: ``` [features, { chart: \"average-household-income\" }] ``` This would mix `features` obtained from some other source into arguments intended for the \"charts.display\" command. If the values cannot be merged, then the leftmost value is returned. Note that argument merging already occurs automatically in command chains; this explicit operation exists for advanced scenarios like Geocortex Workflow or custom code written using the SDK.",
|
|
15824
15900
|
"enum": [
|
|
@@ -18168,6 +18244,22 @@
|
|
|
18168
18244
|
],
|
|
18169
18245
|
"type": "object"
|
|
18170
18246
|
},
|
|
18247
|
+
{
|
|
18248
|
+
"additionalProperties": false,
|
|
18249
|
+
"properties": {
|
|
18250
|
+
"arguments": {
|
|
18251
|
+
"$ref": "#/definitions/measurement.show-settings:input"
|
|
18252
|
+
},
|
|
18253
|
+
"name": {
|
|
18254
|
+
"$ref": "#/definitions/measurement.show-settings"
|
|
18255
|
+
}
|
|
18256
|
+
},
|
|
18257
|
+
"required": [
|
|
18258
|
+
"name",
|
|
18259
|
+
"arguments"
|
|
18260
|
+
],
|
|
18261
|
+
"type": "object"
|
|
18262
|
+
},
|
|
18171
18263
|
{
|
|
18172
18264
|
"additionalProperties": false,
|
|
18173
18265
|
"properties": {
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED