@vertigis/viewer-spec 58.10.1 → 58.10.2

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.
@@ -1,6 +1,6 @@
1
1
  import type { FeatureProperties } from "@vertigis/arcgis-extensions/data/Feature";
2
2
  import type { FeatureSetProperties as ApiFeatureSetProperties } from "@vertigis/arcgis-extensions/data/FeatureSet";
3
- import type { ItemRef } from "app-config/common/ItemRef";
3
+ import type { ItemRef } from "../common/ItemRef";
4
4
  /**
5
5
  * Properties for a FeatureSet.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { Action } from "@vertigis/arcgis-extensions/support/Action";
2
- import type { ItemRef } from "app-config/common/ItemRef.js";
2
+ import type { ItemRef } from "../common/ItemRef.js";
3
3
  import type { ResultsModelProperties as CommonResultsModelProperties } from "../common/ResultsModelProperties.js";
4
4
  import type { ComponentModelProperties } from "./ComponentModelProperties.js";
5
5
  import type { FeatureListProperties } from "./FeatureListProperties.js";
@@ -31,8 +31,12 @@ import type { LayerExtension, LayerReference as LayerReferenceObject } from "@ve
31
31
  import type { MapExtension } from "@vertigis/arcgis-extensions/mapping/MapExtension";
32
32
  import type { SublayerExtension } from "@vertigis/arcgis-extensions/mapping/SublayerExtension";
33
33
  import type { SublayerLike } from "@vertigis/arcgis-extensions/support/esri";
34
- import type { ItemRef } from "app-config/common/ItemRef";
34
+ import type { ItemRef } from "../app-config/common/ItemRef";
35
35
  import type { TimeSpan } from "./DotNetTypes";
36
+ /**
37
+ * A component's ID in the layout.
38
+ */
39
+ export type ComponentId = string;
36
40
  /**
37
41
  * A model belonging to a component.
38
42
  */
@@ -41,7 +45,7 @@ export interface Model extends Entity {
41
45
  /**
42
46
  * A reference to a model (using its ID or model instance).
43
47
  */
44
- export type ModelRef = string | Model;
48
+ export type ModelRef = ItemRef | Model;
45
49
  /**
46
50
  * Result of the "drawing.create-graphics" and "measurement.create-graphics"
47
51
  * operations.
@@ -217,7 +221,7 @@ export interface HasUITarget {
217
221
  * component will be the parent of the temporary UI that will be removed
218
222
  * after the command/operation completes.
219
223
  */
220
- parent?: string | ItemRef;
224
+ parent?: ComponentId | ModelRef;
221
225
  /**
222
226
  * Optional layout XML attributes to be used for the transient UI container.
223
227
  */
@@ -1,7 +1,6 @@
1
- import type { ItemRef } from "app-config/common/ItemRef.js";
2
1
  import type { Operation } from "../Operation.js";
3
2
  import { OperationRegistry } from "../OperationRegistry.js";
4
- import type { HasFeatures, HasLayers, HasMaps, Model } from "../common.js";
3
+ import type { HasFeatures, HasLayers, HasMaps, ModelRef } from "../common.js";
5
4
  /**
6
5
  * The arguments for the arcade.run operation.
7
6
  */
@@ -59,7 +58,7 @@ export interface ItemPropertyPath {
59
58
  /**
60
59
  * The item from which to access a property value.
61
60
  */
62
- item: ItemRef | Model;
61
+ item: ModelRef;
63
62
  /**
64
63
  * The path to a property on an item.
65
64
  */
@@ -102,7 +101,7 @@ export interface WatchEventHandleProperties {
102
101
  /**
103
102
  * The item whose properties will be watched for changes and/or events.
104
103
  */
105
- item: ItemRef | Model;
104
+ item: ModelRef;
106
105
  /**
107
106
  * One or more properties on the item that will be watched for changes
108
107
  * and/or events. Any strings will be used as propertyPaths that will be
@@ -1,14 +1,13 @@
1
1
  import type Point from "@arcgis/core/geometry/Point.js";
2
2
  import type { Action } from "@vertigis/arcgis-extensions/support/Action.js";
3
- import type { ItemRef } from "app-config/common/ItemRef.js";
4
- import type { CoordinateOptionProperties } from "app-config/web/CoordinateModelProperties.js";
3
+ import type { CoordinateOptionProperties } from "../../app-config/web/CoordinateModelProperties.js";
5
4
  import type { Command } from "../Command.js";
6
5
  import { CommandRegistry } from "../CommandRegistry.js";
7
6
  import type { Event } from "../Event.js";
8
7
  import { EventRegistry } from "../EventRegistry.js";
9
8
  import type { Operation } from "../Operation.js";
10
9
  import { OperationRegistry } from "../OperationRegistry.js";
11
- import type { Blob, File, HasFeatures, HasFiles, HasGeometry, HasLayers, HasMaps, HasUITarget } from "../common.js";
10
+ import type { Blob, File, HasFeatures, HasFiles, HasGeometry, HasLayers, HasMaps, HasUITarget, ModelRef } from "../common.js";
12
11
  /**
13
12
  * Arguments for the system.download-file operation.
14
13
  */
@@ -117,7 +116,7 @@ export interface OpenUrlArgs {
117
116
  * existing 'coordinate-option' item, or inline JSON defining a coordinate
118
117
  * option item.
119
118
  */
120
- coordinateOption?: ItemRef | CoordinateOptionProperties;
119
+ coordinateOption?: ModelRef | CoordinateOptionProperties;
121
120
  /**
122
121
  * An object containing arguments that this command was originally executed
123
122
  * with. This property is populated automatically when using a bound action.
@@ -1,4 +1,3 @@
1
- import type { ItemRef } from "app-config/common/ItemRef.js";
2
1
  import type { UIDensity } from "../../app-config/common/BrandingModelProperties.js";
3
2
  import type { TranslatableText, TranslateOptions } from "../../app-config/common/TranslatableText.js";
4
3
  import type { Command } from "../Command.js";
@@ -7,7 +6,8 @@ import type { Event } from "../Event.js";
7
6
  import { EventRegistry } from "../EventRegistry.js";
8
7
  import type { Operation } from "../Operation.js";
9
8
  import { OperationRegistry } from "../OperationRegistry.js";
10
- import type { Model } from "../common.js";
9
+ import type { ComponentId, Model } from "../common.js";
10
+ export type { ComponentId };
11
11
  /**
12
12
  * A category for a notification that affects the color and icon used.
13
13
  */
@@ -211,10 +211,6 @@ export interface DisplayBusyStateArgs {
211
211
  */
212
212
  maximumDisplayDurationMs?: number;
213
213
  }
214
- /**
215
- * A component's ID in the layout.
216
- */
217
- export type ComponentId = string;
218
214
  /**
219
215
  * Arguments for the "ui.focus" command.
220
216
  */
@@ -430,7 +426,7 @@ export declare class UIOperations extends OperationRegistry {
430
426
  *
431
427
  * @webOnly
432
428
  */
433
- get getComponentIds(): Operation<ItemRef, string[]>;
429
+ get getComponentIds(): Operation<ComponentId | Model, string[]>;
434
430
  /**
435
431
  * Gets the current locale code for the application. (example: "en", "fr" or
436
432
  * "de-AT"). Web only.
@@ -457,13 +453,13 @@ export declare class UIOperations extends OperationRegistry {
457
453
  *
458
454
  * @webOnly
459
455
  */
460
- get getVisualState(): Operation<ComponentId, VisualState | undefined>;
456
+ get getVisualState(): Operation<ComponentId | Model, VisualState | undefined>;
461
457
  /**
462
458
  * Gets the state of a component. Web only.
463
459
  *
464
460
  * @webOnly
465
461
  */
466
- get getComponentState(): Operation<ComponentId, State | undefined>;
462
+ get getComponentState(): Operation<ComponentId | Model, State | undefined>;
467
463
  /**
468
464
  * Prompts the user to enter a value in a popup box. Web only.
469
465
  *
@@ -1566,8 +1566,8 @@
1566
1566
  "type": "string"
1567
1567
  },
1568
1568
  "parent": {
1569
- "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.",
1570
- "type": "string"
1569
+ "$ref": "#/definitions/ModelRef",
1570
+ "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."
1571
1571
  },
1572
1572
  "pluginSettings": {
1573
1573
  "description": "Web only. Additional settings that are specific to sketching plugins, keyed by plugin ID. The only currently supported plugin is \"snapping\". A boolean value can also be assigned to completely disable, or enable with default settings."
@@ -2233,8 +2233,8 @@
2233
2233
  "type": "string"
2234
2234
  },
2235
2235
  "parent": {
2236
- "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.",
2237
- "type": "string"
2236
+ "$ref": "#/definitions/ModelRef",
2237
+ "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."
2238
2238
  }
2239
2239
  },
2240
2240
  "type": "object"
@@ -2537,6 +2537,9 @@
2537
2537
  {
2538
2538
  "$ref": "#/definitions/CoordinateOptionProperties"
2539
2539
  },
2540
+ {
2541
+ "$ref": "#/definitions/Model"
2542
+ },
2540
2543
  {
2541
2544
  "type": "string"
2542
2545
  }
@@ -3586,6 +3589,9 @@
3586
3589
  {
3587
3590
  "$ref": "#/definitions/CoordinateOptionProperties"
3588
3591
  },
3592
+ {
3593
+ "$ref": "#/definitions/Model"
3594
+ },
3589
3595
  {
3590
3596
  "type": "string"
3591
3597
  }
@@ -1821,8 +1821,8 @@
1821
1821
  "type": "string"
1822
1822
  },
1823
1823
  "parent": {
1824
- "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.",
1825
- "type": "string"
1824
+ "$ref": "#/definitions/ModelRef",
1825
+ "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."
1826
1826
  },
1827
1827
  "pluginSettings": {
1828
1828
  "description": "Web only. Additional settings that are specific to sketching plugins, keyed by plugin ID. The only currently supported plugin is \"snapping\". A boolean value can also be assigned to completely disable, or enable with default settings."
@@ -2689,8 +2689,8 @@
2689
2689
  "type": "string"
2690
2690
  },
2691
2691
  "parent": {
2692
- "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.",
2693
- "type": "string"
2692
+ "$ref": "#/definitions/ModelRef",
2693
+ "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."
2694
2694
  }
2695
2695
  },
2696
2696
  "type": "object"
@@ -3224,6 +3224,9 @@
3224
3224
  {
3225
3225
  "$ref": "#/definitions/CoordinateOptionProperties"
3226
3226
  },
3227
+ {
3228
+ "$ref": "#/definitions/Model"
3229
+ },
3227
3230
  {
3228
3231
  "type": "string"
3229
3232
  }
@@ -4608,6 +4611,9 @@
4608
4611
  {
4609
4612
  "$ref": "#/definitions/CoordinateOptionProperties"
4610
4613
  },
4614
+ {
4615
+ "$ref": "#/definitions/Model"
4616
+ },
4611
4617
  {
4612
4618
  "type": "string"
4613
4619
  }
@@ -1533,8 +1533,8 @@
1533
1533
  "description": "Map(s) to use for the command/operation."
1534
1534
  },
1535
1535
  "parent": {
1536
- "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.",
1537
- "type": "string"
1536
+ "$ref": "#/definitions/ModelRef",
1537
+ "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."
1538
1538
  },
1539
1539
  "sources": {
1540
1540
  "description": "Optionally specify the sources that we want to expose. If specified this will overwrite the configured default in the Portal Model.",
@@ -1946,8 +1946,8 @@
1946
1946
  "description": "The map that should show the created note."
1947
1947
  },
1948
1948
  "parent": {
1949
- "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.",
1950
- "type": "string"
1949
+ "$ref": "#/definitions/ModelRef",
1950
+ "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."
1951
1951
  }
1952
1952
  },
1953
1953
  "required": [
@@ -2425,8 +2425,8 @@
2425
2425
  "type": "string"
2426
2426
  },
2427
2427
  "parent": {
2428
- "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.",
2429
- "type": "string"
2428
+ "$ref": "#/definitions/ModelRef",
2429
+ "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."
2430
2430
  },
2431
2431
  "pluginSettings": {
2432
2432
  "description": "Web only. Additional settings that are specific to sketching plugins, keyed by plugin ID. The only currently supported plugin is \"snapping\". A boolean value can also be assigned to completely disable, or enable with default settings."
@@ -2747,8 +2747,8 @@
2747
2747
  "description": "The map on which to edit the result."
2748
2748
  },
2749
2749
  "parent": {
2750
- "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.",
2751
- "type": "string"
2750
+ "$ref": "#/definitions/ModelRef",
2751
+ "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."
2752
2752
  }
2753
2753
  },
2754
2754
  "required": [
@@ -2788,8 +2788,8 @@
2788
2788
  "description": "Map(s) to use for the command/operation."
2789
2789
  },
2790
2790
  "parent": {
2791
- "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.",
2792
- "type": "string"
2791
+ "$ref": "#/definitions/ModelRef",
2792
+ "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."
2793
2793
  },
2794
2794
  "showOnlySymbolPresets": {
2795
2795
  "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.",
@@ -4156,8 +4156,8 @@
4156
4156
  "description": "The map on which to select the result."
4157
4157
  },
4158
4158
  "parent": {
4159
- "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.",
4160
- "type": "string"
4159
+ "$ref": "#/definitions/ModelRef",
4160
+ "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."
4161
4161
  }
4162
4162
  },
4163
4163
  "type": "object"
@@ -4472,8 +4472,8 @@
4472
4472
  "type": "string"
4473
4473
  },
4474
4474
  "parent": {
4475
- "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.",
4476
- "type": "string"
4475
+ "$ref": "#/definitions/ModelRef",
4476
+ "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."
4477
4477
  }
4478
4478
  },
4479
4479
  "type": "object"
@@ -5309,6 +5309,9 @@
5309
5309
  {
5310
5310
  "$ref": "#/definitions/CoordinateOptionProperties"
5311
5311
  },
5312
+ {
5313
+ "$ref": "#/definitions/Model"
5314
+ },
5312
5315
  {
5313
5316
  "type": "string"
5314
5317
  }
@@ -5713,8 +5716,8 @@
5713
5716
  "type": "boolean"
5714
5717
  },
5715
5718
  "parent": {
5716
- "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.",
5717
- "type": "string"
5719
+ "$ref": "#/definitions/ModelRef",
5720
+ "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."
5718
5721
  },
5719
5722
  "promptMessage": {
5720
5723
  "description": "If present, overrides the default message of the dialog that prompts the user for a file.",
@@ -8273,14 +8276,7 @@
8273
8276
  "description": "Properties used to set a series of watch handles and/or event listeners on an item.",
8274
8277
  "properties": {
8275
8278
  "item": {
8276
- "anyOf": [
8277
- {
8278
- "$ref": "#/definitions/Model"
8279
- },
8280
- {
8281
- "type": "string"
8282
- }
8283
- ],
8279
+ "$ref": "#/definitions/ModelRef",
8284
8280
  "description": "The item whose properties will be watched for changes and/or events."
8285
8281
  },
8286
8282
  "watch": {
@@ -8370,6 +8366,9 @@
8370
8366
  {
8371
8367
  "$ref": "#/definitions/CoordinateOptionProperties"
8372
8368
  },
8369
+ {
8370
+ "$ref": "#/definitions/Model"
8371
+ },
8373
8372
  {
8374
8373
  "type": "string"
8375
8374
  }
@@ -22736,7 +22735,14 @@
22736
22735
  ]
22737
22736
  },
22738
22737
  "ui.get-component-ids:input": {
22739
- "type": "string"
22738
+ "anyOf": [
22739
+ {
22740
+ "$ref": "#/definitions/Model"
22741
+ },
22742
+ {
22743
+ "type": "string"
22744
+ }
22745
+ ]
22740
22746
  },
22741
22747
  "ui.get-component-ids:output": {
22742
22748
  "items": {
@@ -22751,7 +22757,14 @@
22751
22757
  ]
22752
22758
  },
22753
22759
  "ui.get-component-state:input": {
22754
- "type": "string"
22760
+ "anyOf": [
22761
+ {
22762
+ "$ref": "#/definitions/Model"
22763
+ },
22764
+ {
22765
+ "type": "string"
22766
+ }
22767
+ ]
22755
22768
  },
22756
22769
  "ui.get-component-state:output": {
22757
22770
  "$ref": "#/definitions/State"
@@ -22793,7 +22806,14 @@
22793
22806
  ]
22794
22807
  },
22795
22808
  "ui.get-visual-state:input": {
22796
- "type": "string"
22809
+ "anyOf": [
22810
+ {
22811
+ "$ref": "#/definitions/Model"
22812
+ },
22813
+ {
22814
+ "type": "string"
22815
+ }
22816
+ ]
22797
22817
  },
22798
22818
  "ui.get-visual-state:output": {
22799
22819
  "type": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.10.1",
3
+ "version": "58.10.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "58.10.1";
4
+ export declare const version = "58.10.2";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "58.10.1";
4
+ export const version = "58.10.2";