@vertigis/viewer-spec 58.4.0 → 58.6.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.
@@ -3,7 +3,7 @@ import type { Model } from "./common.js";
3
3
  /**
4
4
  * A callback that will be invoked whenever the event is published.
5
5
  */
6
- export type EventCallback<T> = (arg?: T, publisher?: Model) => void | Promise<void>;
6
+ export type EventCallback<T> = (arg?: T, publisher?: Model, eventName?: string) => void | Promise<void>;
7
7
  /**
8
8
  * A named event.
9
9
  */
@@ -1,4 +1,5 @@
1
1
  import type Point from "@arcgis/core/geometry/Point.js";
2
+ import type { Action } from "@vertigis/arcgis-extensions/support/Action.js";
2
3
  import type { ItemRef } from "app-config/common/ItemRef.js";
3
4
  import type { CoordinateOptionProperties } from "app-config/web/CoordinateModelProperties.js";
4
5
  import type { Command } from "../Command.js";
@@ -36,6 +37,21 @@ export interface DownloadArgs {
36
37
  */
37
38
  fileNameExtension?: string;
38
39
  }
40
+ /**
41
+ * Arguments for the system.repeat-action command.
42
+ */
43
+ export interface RepeatActionArgs {
44
+ /**
45
+ * The actions to be repeatedly executed.
46
+ */
47
+ action?: Action;
48
+ /**
49
+ * The number of times actions will be executed. If omitted or given a value
50
+ * of less than 1, actions will continue to be executed until manual
51
+ * termination.
52
+ */
53
+ repetitions?: number;
54
+ }
39
55
  /**
40
56
  * Arguments for the system.read-file operation.
41
57
  */
@@ -168,6 +184,13 @@ export declare class SystemCommands extends CommandRegistry {
168
184
  * @webOnly
169
185
  */
170
186
  get displaySharingLink(): Command<string>;
187
+ /**
188
+ * Executes Actions repeatedly until manually terminated or until given
189
+ * number of repetitions are fulfilled. Web only.
190
+ *
191
+ * @webOnly
192
+ */
193
+ get repeatAction(): Command<RepeatActionArgs | Action>;
171
194
  /**
172
195
  * Initiates a file download of the specified Blob to the user. Web only.
173
196
  *
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as r}from"../OperationRegistry.js";export class SystemCommands extends e{_prefix="system";get displaySharingLink(){return this._get("display-sharing-link")}get downloadFile(){return this._get("download-file")}get openUrl(){return this._get("open-url")}get keepScreenOn(){return this._get("keep-screen-on")}get enableBackgroundLocationUpdates(){return this._get("enable-background-location-updates")}get disableBackgroundLocationUpdates(){return this._get("disable-background-location-updates")}get haptics(){return this._get("haptics")}}export class SystemOperations extends r{_prefix="system";get readUrl(){return this._get("read-url")}get readFile(){return this._get("read-file")}get readFiles(){return this._get("read-files")}get getSharingLink(){return this._get("get-sharing-link")}}export class SystemEvents extends t{_prefix="system";get backgroundLocationUpdatesEnabled(){return this._get("background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._get("background-location-updates-disabled")}get urlOpened(){return this._get("url-opened")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as r}from"../OperationRegistry.js";export class SystemCommands extends e{_prefix="system";get displaySharingLink(){return this._get("display-sharing-link")}get repeatAction(){return this._get("repeat-action")}get downloadFile(){return this._get("download-file")}get openUrl(){return this._get("open-url")}get keepScreenOn(){return this._get("keep-screen-on")}get enableBackgroundLocationUpdates(){return this._get("enable-background-location-updates")}get disableBackgroundLocationUpdates(){return this._get("disable-background-location-updates")}get haptics(){return this._get("haptics")}}export class SystemOperations extends r{_prefix="system";get readUrl(){return this._get("read-url")}get readFile(){return this._get("read-file")}get readFiles(){return this._get("read-files")}get getSharingLink(){return this._get("get-sharing-link")}}export class SystemEvents extends t{_prefix="system";get backgroundLocationUpdatesEnabled(){return this._get("background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._get("background-location-updates-disabled")}get urlOpened(){return this._get("url-opened")}}
@@ -120,6 +120,11 @@ export interface DisplayNotificationArgs {
120
120
  * Defaults to true. Mobile only.
121
121
  */
122
122
  autoClose?: boolean;
123
+ /**
124
+ * Callback function that is triggered when a notification is closed. Web
125
+ * only.
126
+ */
127
+ onClose?: () => void;
123
128
  }
124
129
  /**
125
130
  * The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'.
@@ -1478,6 +1478,10 @@
1478
1478
  "description": "Notifications in the same notification group are mutually exclusive, and will supersede one another. Mobile only.",
1479
1479
  "type": "string"
1480
1480
  },
1481
+ "onClose": {
1482
+ "$ref": "__type",
1483
+ "description": "Callback function that is triggered when a notification is closed. Web only."
1484
+ },
1481
1485
  "position": {
1482
1486
  "$ref": "Position",
1483
1487
  "description": "The position of the notification on the screen. Web only."
@@ -1706,6 +1706,10 @@
1706
1706
  "description": "Notifications in the same notification group are mutually exclusive, and will supersede one another. Mobile only.",
1707
1707
  "type": "string"
1708
1708
  },
1709
+ "onClose": {
1710
+ "$ref": "__type",
1711
+ "description": "Callback function that is triggered when a notification is closed. Web only."
1712
+ },
1709
1713
  "position": {
1710
1714
  "$ref": "Position",
1711
1715
  "description": "The position of the notification on the screen. Web only."
@@ -606,6 +606,31 @@
606
606
  "@vertigis.arcgis-extensions.support.Action.Action": {
607
607
  "$ref": "#/definitions/viewer-spec.Action"
608
608
  },
609
+ "@vertigis.arcgis-extensions.support.Action.BoundAction": {
610
+ "additionalProperties": false,
611
+ "description": "An action that is bound to arguments.",
612
+ "properties": {
613
+ "arguments": {
614
+ "description": "Arguments for the action. Can either be a primitive value (string, number, boolean), or a plain JSON object containing named arguments."
615
+ },
616
+ "name": {
617
+ "description": "Determines which action to perform. It is up to the calling application how it transforms an action name into actual executable code.",
618
+ "type": "string"
619
+ }
620
+ },
621
+ "required": [
622
+ "arguments",
623
+ "name"
624
+ ],
625
+ "type": "object"
626
+ },
627
+ "@vertigis.arcgis-extensions.support.Action.CompositeAction": {
628
+ "description": "A composite action that is made up of a sequence of one or more actions. The intent is that the application should execute these in the given order. If any of the actions produces an output, that should be used as the input arguments for all subsequent actions.",
629
+ "items": {
630
+ "$ref": "#/definitions/SimpleAction"
631
+ },
632
+ "type": "array"
633
+ },
609
634
  "@vertigis.arcgis-extensions.support.FormatSettings.FormatSettingsProperties": {
610
635
  "additionalProperties": false,
611
636
  "description": "Properties that can be passed into the constructor for {@link FormatSettings}.",
@@ -2312,6 +2337,10 @@
2312
2337
  "description": "Notifications in the same notification group are mutually exclusive, and will supersede one another. Mobile only.",
2313
2338
  "type": "string"
2314
2339
  },
2340
+ "onClose": {
2341
+ "$ref": "__type",
2342
+ "description": "Callback function that is triggered when a notification is closed. Web only."
2343
+ },
2315
2344
  "position": {
2316
2345
  "$ref": "Position",
2317
2346
  "description": "The position of the notification on the screen. Web only."
@@ -5696,6 +5725,21 @@
5696
5725
  },
5697
5726
  "type": "object"
5698
5727
  },
5728
+ "RepeatActionArgs": {
5729
+ "additionalProperties": false,
5730
+ "description": "Arguments for the system.repeat-action command.",
5731
+ "properties": {
5732
+ "action": {
5733
+ "$ref": "#/definitions/@vertigis.arcgis-extensions.support.Action.Action",
5734
+ "description": "The actions to be repeatedly executed."
5735
+ },
5736
+ "repetitions": {
5737
+ "description": "The number of times actions will be executed. If omitted or given a value of less than 1, actions will continue to be executed until manual termination.",
5738
+ "type": "number"
5739
+ }
5740
+ },
5741
+ "type": "object"
5742
+ },
5699
5743
  "ReportDataSource": {
5700
5744
  "additionalProperties": false,
5701
5745
  "description": "Represents a data source for VertiGIS Studio Reporting. A data source created at report design time will be replaced by this data source at runtime.",
@@ -6913,6 +6957,17 @@
6913
6957
  },
6914
6958
  "type": "object"
6915
6959
  },
6960
+ "SimpleAction": {
6961
+ "anyOf": [
6962
+ {
6963
+ "$ref": "#/definitions/@vertigis.arcgis-extensions.support.Action.BoundAction"
6964
+ },
6965
+ {
6966
+ "type": "string"
6967
+ }
6968
+ ],
6969
+ "description": "Defines a single action to perform."
6970
+ },
6916
6971
  "SketchTool": {
6917
6972
  "description": "The type of tool used for sketching.",
6918
6973
  "enum": [
@@ -22366,6 +22421,29 @@
22366
22421
  },
22367
22422
  "type": "array"
22368
22423
  },
22424
+ "system.repeat-action": {
22425
+ "description": "Executes Actions repeatedly until manually terminated or until given number of repetitions are fulfilled. Web only.",
22426
+ "enum": [
22427
+ "system.repeat-action"
22428
+ ]
22429
+ },
22430
+ "system.repeat-action:input": {
22431
+ "anyOf": [
22432
+ {
22433
+ "$ref": "#/definitions/@vertigis.arcgis-extensions.support.Action.BoundAction"
22434
+ },
22435
+ {
22436
+ "$ref": "#/definitions/@vertigis.arcgis-extensions.support.Action.CompositeAction",
22437
+ "description": "A composite action that is made up of a sequence of one or more actions. The intent is that the application should execute these in the given order. If any of the actions produces an output, that should be used as the input arguments for all subsequent actions."
22438
+ },
22439
+ {
22440
+ "$ref": "#/definitions/RepeatActionArgs"
22441
+ },
22442
+ {
22443
+ "type": "string"
22444
+ }
22445
+ ]
22446
+ },
22369
22447
  "tasks.filter-results.by-geometry-type": {
22370
22448
  "description": "Returns FeatureSources that have a geometry type that matches the supplied type. Web only.",
22371
22449
  "enum": [
@@ -25074,6 +25152,22 @@
25074
25152
  ],
25075
25153
  "type": "object"
25076
25154
  },
25155
+ {
25156
+ "additionalProperties": false,
25157
+ "properties": {
25158
+ "arguments": {
25159
+ "$ref": "#/definitions/system.repeat-action:input"
25160
+ },
25161
+ "name": {
25162
+ "$ref": "#/definitions/system.repeat-action"
25163
+ }
25164
+ },
25165
+ "required": [
25166
+ "name",
25167
+ "arguments"
25168
+ ],
25169
+ "type": "object"
25170
+ },
25077
25171
  {
25078
25172
  "additionalProperties": false,
25079
25173
  "properties": {
@@ -25826,6 +25920,9 @@
25826
25920
  {
25827
25921
  "$ref": "#/definitions/system.open-url"
25828
25922
  },
25923
+ {
25924
+ "$ref": "#/definitions/system.repeat-action"
25925
+ },
25829
25926
  {
25830
25927
  "$ref": "#/definitions/ui.activate"
25831
25928
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.4.0",
3
+ "version": "58.6.0",
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.4.0";
4
+ export declare const version = "58.6.0";
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.4.0";
4
+ export const version = "58.6.0";