@vertigis/viewer-spec 43.5.0 → 45.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.
@@ -3480,6 +3480,31 @@
3480
3480
  ],
3481
3481
  "type": "object"
3482
3482
  },
3483
+ "RunArcadeArgs": {
3484
+ "additionalProperties": false,
3485
+ "description": "The arguments for the arcade.run operation.",
3486
+ "properties": {
3487
+ "arguments": {
3488
+ "description": "An arguments object that provides named variables and associated values, which can be referenced from within the executeScript and canExecuteScript. NOTE: All variable keys must consist of only lowercase letters; camel-cased context variables will break the script when they are referenced at runtime."
3489
+ },
3490
+ "canExecuteScript": {
3491
+ "description": "The stringified Arcade script used to determine whether or not the executeScript can/should be run. If no executeScript is provided and the canExecuteScript returns a truthy value, the operation will return its input arguments; otherwise, if the canEecuteScript returns a falsey value, it will throw a {@link Cancellation}.",
3492
+ "type": "string"
3493
+ },
3494
+ "executeScript": {
3495
+ "description": "The stringified Arcade script to run. If this property is included, the operation will return the result of the script.",
3496
+ "type": "string"
3497
+ },
3498
+ "watchHandles": {
3499
+ "description": "Properties used to set a series of watch handles and/or event listeners on an item that will trigger the canExecuteChanged event for the 'arcade.run' operation.",
3500
+ "items": {
3501
+ "$ref": "#/definitions/WatchEventHandleProperties"
3502
+ },
3503
+ "type": "array"
3504
+ }
3505
+ },
3506
+ "type": "object"
3507
+ },
3483
3508
  "RunPrintArgs": {
3484
3509
  "additionalProperties": false,
3485
3510
  "description": "The arguments required by the printing.run command.",
@@ -4770,6 +4795,70 @@
4770
4795
  "description": "A component's visual state. The values will vary based on the component type.",
4771
4796
  "type": "string"
4772
4797
  },
4798
+ "WatchEventHandleProperties": {
4799
+ "additionalProperties": false,
4800
+ "description": "Properties used to set a series of watch handles and/or event listeners on an item.",
4801
+ "properties": {
4802
+ "item": {
4803
+ "anyOf": [
4804
+ {
4805
+ "$ref": "#/definitions/Model"
4806
+ },
4807
+ {
4808
+ "type": "string"
4809
+ }
4810
+ ],
4811
+ "description": "The item whose properties will be watched for changes and/or events."
4812
+ },
4813
+ "watch": {
4814
+ "anyOf": [
4815
+ {
4816
+ "$ref": "#/definitions/WatchEventProperty"
4817
+ },
4818
+ {
4819
+ "items": {
4820
+ "anyOf": [
4821
+ {
4822
+ "$ref": "#/definitions/WatchEventProperty"
4823
+ },
4824
+ {
4825
+ "type": "string"
4826
+ }
4827
+ ]
4828
+ },
4829
+ "type": "array"
4830
+ },
4831
+ {
4832
+ "type": "string"
4833
+ }
4834
+ ],
4835
+ "description": "One or more properties on the item that will be watched for changes and/or events. Any strings will be used as propertyPaths that will be watched for changes; for this to work, the item and all properties referenced within the path (except for the last) must implement {@link Observable}."
4836
+ }
4837
+ },
4838
+ "required": [
4839
+ "item",
4840
+ "watch"
4841
+ ],
4842
+ "type": "object"
4843
+ },
4844
+ "WatchEventProperty": {
4845
+ "additionalProperties": false,
4846
+ "description": "Properties on an item to watch, with an optional event name to listen for.",
4847
+ "properties": {
4848
+ "eventName": {
4849
+ "description": "The name of the event to listen for. If no propertyPath is included, the listener will go directly on the watched item.",
4850
+ "type": "string"
4851
+ },
4852
+ "propertyPath": {
4853
+ "description": "The path used to target a property on an item that will be watched for events. The watched property must implement {@link Evented}; this will effectively do `item[propertyPath].on(eventName)`.",
4854
+ "type": "string"
4855
+ }
4856
+ },
4857
+ "required": [
4858
+ "eventName"
4859
+ ],
4860
+ "type": "object"
4861
+ },
4773
4862
  "ZoomToLayerArgs": {
4774
4863
  "additionalProperties": false,
4775
4864
  "description": "Arguments for the map.zoom-to-layer-extent and map.zoom-to-layer-visible-scale commands.",
@@ -4880,6 +4969,22 @@
4880
4969
  }
4881
4970
  ]
4882
4971
  },
4972
+ "arcade.run": {
4973
+ "description": "Runs a stringified Arcade script. If only a string is passed in as an argument, it is interpreted as an executeScript. If an executeSript is provided, the operation will return its result. If only a canExecute script is provided and it returns a truthy result, the operation will return its input arguments. If a canExecuteScript returns a falsey value, the operation will throw a {@link Cancellation}.",
4974
+ "enum": [
4975
+ "arcade.run"
4976
+ ]
4977
+ },
4978
+ "arcade.run:input": {
4979
+ "anyOf": [
4980
+ {
4981
+ "$ref": "#/definitions/RunArcadeArgs"
4982
+ },
4983
+ {
4984
+ "type": "string"
4985
+ }
4986
+ ]
4987
+ },
4883
4988
  "auth.get-current-user": {
4884
4989
  "description": "Gets the user that is currently signed into the application.",
4885
4990
  "enum": [
@@ -15698,6 +15803,15 @@
15698
15803
  "measurement.create-graphics:output": {
15699
15804
  "$ref": "#/definitions/CreateMeasurementGraphicsResult"
15700
15805
  },
15806
+ "measurement.display-settings": {
15807
+ "description": "Display the measurements settings dialog. This allows you to configure measurements system, area and length units.",
15808
+ "enum": [
15809
+ "measurement.display-settings"
15810
+ ]
15811
+ },
15812
+ "measurement.display-settings:input": {
15813
+ "$ref": "#/definitions/HasUITarget"
15814
+ },
15701
15815
  "measurement.get-area-units": {
15702
15816
  "description": "Gets the area units used for measurements. If undefined the units will be selected intelligently based on dimensions.",
15703
15817
  "enum": [
@@ -15903,15 +16017,6 @@
15903
16017
  }
15904
16018
  ]
15905
16019
  },
15906
- "measurement.show-settings": {
15907
- "description": "Show the measurements settings dialog. This allows you to configure measurements system, area and length units.",
15908
- "enum": [
15909
- "measurement.show-settings"
15910
- ]
15911
- },
15912
- "measurement.show-settings:input": {
15913
- "$ref": "#/definitions/HasUITarget"
15914
- },
15915
16020
  "messaging.mix-in-args": {
15916
16021
  "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.",
15917
16022
  "enum": [
@@ -16543,7 +16648,7 @@
16543
16648
  ]
16544
16649
  },
16545
16650
  "sketching.add-node-to-geometry": {
16546
- "description": "Adds a point to a given polyline or polygon geometry. Returns the resulting geometry.",
16651
+ "description": "Adds a point to a given polyline or polygon geometry. Returns the resulting geometry. Deprecated in Mobile, use geometry.add-point instead.",
16547
16652
  "enum": [
16548
16653
  "sketching.add-node-to-geometry"
16549
16654
  ]
@@ -17075,6 +17180,22 @@
17075
17180
  ],
17076
17181
  "type": "object"
17077
17182
  },
17183
+ {
17184
+ "additionalProperties": false,
17185
+ "properties": {
17186
+ "arguments": {
17187
+ "$ref": "#/definitions/arcade.run:input"
17188
+ },
17189
+ "name": {
17190
+ "$ref": "#/definitions/arcade.run"
17191
+ }
17192
+ },
17193
+ "required": [
17194
+ "name",
17195
+ "arguments"
17196
+ ],
17197
+ "type": "object"
17198
+ },
17078
17199
  {
17079
17200
  "additionalProperties": false,
17080
17201
  "properties": {
@@ -18263,10 +18384,10 @@
18263
18384
  "additionalProperties": false,
18264
18385
  "properties": {
18265
18386
  "arguments": {
18266
- "$ref": "#/definitions/measurement.set-area-units:input"
18387
+ "$ref": "#/definitions/measurement.display-settings:input"
18267
18388
  },
18268
18389
  "name": {
18269
- "$ref": "#/definitions/measurement.set-area-units"
18390
+ "$ref": "#/definitions/measurement.display-settings"
18270
18391
  }
18271
18392
  },
18272
18393
  "required": [
@@ -18279,10 +18400,10 @@
18279
18400
  "additionalProperties": false,
18280
18401
  "properties": {
18281
18402
  "arguments": {
18282
- "$ref": "#/definitions/measurement.set-default-symbol:input"
18403
+ "$ref": "#/definitions/measurement.set-area-units:input"
18283
18404
  },
18284
18405
  "name": {
18285
- "$ref": "#/definitions/measurement.set-default-symbol"
18406
+ "$ref": "#/definitions/measurement.set-area-units"
18286
18407
  }
18287
18408
  },
18288
18409
  "required": [
@@ -18295,10 +18416,10 @@
18295
18416
  "additionalProperties": false,
18296
18417
  "properties": {
18297
18418
  "arguments": {
18298
- "$ref": "#/definitions/measurement.set-length-units:input"
18419
+ "$ref": "#/definitions/measurement.set-default-symbol:input"
18299
18420
  },
18300
18421
  "name": {
18301
- "$ref": "#/definitions/measurement.set-length-units"
18422
+ "$ref": "#/definitions/measurement.set-default-symbol"
18302
18423
  }
18303
18424
  },
18304
18425
  "required": [
@@ -18311,10 +18432,10 @@
18311
18432
  "additionalProperties": false,
18312
18433
  "properties": {
18313
18434
  "arguments": {
18314
- "$ref": "#/definitions/measurement.show-settings:input"
18435
+ "$ref": "#/definitions/measurement.set-length-units:input"
18315
18436
  },
18316
18437
  "name": {
18317
- "$ref": "#/definitions/measurement.show-settings"
18438
+ "$ref": "#/definitions/measurement.set-length-units"
18318
18439
  }
18319
18440
  },
18320
18441
  "required": [
@@ -18902,6 +19023,9 @@
18902
19023
  {
18903
19024
  "$ref": "#/definitions/app.load-project"
18904
19025
  },
19026
+ {
19027
+ "$ref": "#/definitions/arcade.run"
19028
+ },
18905
19029
  {
18906
19030
  "$ref": "#/definitions/auth.sign-in"
18907
19031
  },
@@ -19130,6 +19254,9 @@
19130
19254
  {
19131
19255
  "$ref": "#/definitions/map.zoom-to-viewpoint"
19132
19256
  },
19257
+ {
19258
+ "$ref": "#/definitions/measurement.display-settings"
19259
+ },
19133
19260
  {
19134
19261
  "$ref": "#/definitions/measurement.set-area-units"
19135
19262
  },
@@ -19139,9 +19266,6 @@
19139
19266
  {
19140
19267
  "$ref": "#/definitions/measurement.set-length-units"
19141
19268
  },
19142
- {
19143
- "$ref": "#/definitions/measurement.show-settings"
19144
- },
19145
19269
  {
19146
19270
  "$ref": "#/definitions/messaging.mix-in-args"
19147
19271
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "43.5.0",
3
+ "version": "45.1.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "author": "VertiGIS Ltd.",
36
36
  "peerDependencies": {
37
- "@vertigis/arcgis-extensions": ">= 33.5.4 < 34.0.0"
37
+ "@vertigis/arcgis-extensions": ">= 34.1.0 < 35.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arcgis/core": "4.21.2",
41
- "@vertigis/arcgis-extensions": "33.5.4 ",
41
+ "@vertigis/arcgis-extensions": "34.1.0 ",
42
42
  "@types/glob": "7.1.4",
43
43
  "@types/json-stable-stringify": "1.0.33",
44
44
  "@types/node": "14.14.41",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "43.5.0";
4
+ export declare const version = "45.1.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "43.5.0";
4
+ export const version = "45.1.0";