@vertigis/viewer-spec 49.3.1 → 49.5.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.
@@ -1,6 +1,8 @@
1
1
  import type { LayerPreset } from "@vertigis/arcgis-extensions/layer-preset/LayerPreset";
2
2
  import type { Command } from "../Command.js";
3
3
  import { CommandRegistry } from "../CommandRegistry.js";
4
+ import type { Event } from "../Event.js";
5
+ import { EventRegistry } from "../EventRegistry.js";
4
6
  import type { MapsLike } from "../common.js";
5
7
  /**
6
8
  * Arguments for the 'layer-presets.apply' command.
@@ -15,6 +17,15 @@ export interface LayerPresetsArgs {
15
17
  */
16
18
  preset: LayerPreset;
17
19
  }
20
+ /**
21
+ * Arguments for the 'layer-presets.applied' event.
22
+ */
23
+ export interface LayerPresetsEventsArgs {
24
+ /**
25
+ * The applied layer preset.
26
+ */
27
+ preset: LayerPreset;
28
+ }
18
29
  export declare class LayerPresetsCommands extends CommandRegistry {
19
30
  /**
20
31
  * Applies a layer-preset to a map. Applying a layer-preset means that the
@@ -26,3 +37,11 @@ export declare class LayerPresetsCommands extends CommandRegistry {
26
37
  */
27
38
  get apply(): Command<LayerPresetsArgs>;
28
39
  }
40
+ export declare class LayerPresetsEvents extends EventRegistry {
41
+ /**
42
+ * Raised when a layer preset is applied.
43
+ *
44
+ * @mobileOnly
45
+ */
46
+ get applied(): Event<LayerPresetsEventsArgs>;
47
+ }
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";export class LayerPresetsCommands extends CommandRegistry{get apply(){return this._messages.command("layer-presets.apply")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class LayerPresetsCommands extends CommandRegistry{get apply(){return this._messages.command("layer-presets.apply")}}export class LayerPresetsEvents extends EventRegistry{get applied(){return this._messages.event("layer-presets.applied")}}
@@ -39,7 +39,8 @@ export interface SnapHostPanelArgs {
39
39
  export declare enum SnapPosition {
40
40
  HIDDEN = "hidden",
41
41
  MIDDLE = "middle",
42
- TOP = "top"
42
+ TOP = "top",
43
+ COLLAPSED = "collapsed"
43
44
  }
44
45
  /**
45
46
  * Corresponds to `VertiGIS.Mobile.Composition.Layout.ComponentBase` in the
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export var SnapPosition;!function(e){e.HIDDEN="hidden",e.MIDDLE="middle",e.TOP="top"}(SnapPosition||(SnapPosition={}));export class PanelCommands extends CommandRegistry{get openHostPanel(){return this._messages.command("panel.open-host-panel")}get closeHostPanel(){return this._messages.command("panel.close-host-panel")}get anchorHostPanel(){return this._messages.command("panel.anchor-host-panel")}get snapHostPanel(){return this._messages.command("panel.snap-host-panel")}get popIn(){return this._messages.command("panel.pop-in")}get popOut(){return this._messages.command("panel.pop-out")}}export class PanelEvents extends EventRegistry{get hostPanelComponentChanged(){return this._messages.event("panel.host-panel-component-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export var SnapPosition;!function(e){e.HIDDEN="hidden",e.MIDDLE="middle",e.TOP="top",e.COLLAPSED="collapsed"}(SnapPosition||(SnapPosition={}));export class PanelCommands extends CommandRegistry{get openHostPanel(){return this._messages.command("panel.open-host-panel")}get closeHostPanel(){return this._messages.command("panel.close-host-panel")}get anchorHostPanel(){return this._messages.command("panel.anchor-host-panel")}get snapHostPanel(){return this._messages.command("panel.snap-host-panel")}get popIn(){return this._messages.command("panel.pop-in")}get popOut(){return this._messages.command("panel.pop-out")}}export class PanelEvents extends EventRegistry{get hostPanelComponentChanged(){return this._messages.event("panel.host-panel-component-changed")}}
@@ -55,6 +55,17 @@ export declare type LocationToken = "Location.Geolocation.Latitude" | "Location.
55
55
  * and/or min/max zoom levels.
56
56
  */
57
57
  export declare type LayerToken = "Layer.Extent.TopLeft.Latitude" | "Layer.Extent.TopLeft.Longitude" | "Layer.Extent.TopRight.Latitude" | "Layer.Extent.TopRight.Longitude" | "Layer.Extent.BottomLeft.Latitude" | "Layer.Extent.BottomLeft.Longitude" | "Layer.Extent.BottomRight.Latitude" | "Layer.Extent.BottomRight.Longitude" | "Layer.Extent.MaxScale" | "Layer.Extent.MinScale" | "Layer.Extent.MaxZoomLevel" | "Layer.Extent.MinZoomLevel" | "Layer.ID" | "Layer.Title" | "Layer.URL";
58
+ /**
59
+ * The haptic style.
60
+ */
61
+ export declare enum HapticStyle {
62
+ LIGHT = "light",
63
+ MEDIUM = "medium",
64
+ HEAVY = "heavy",
65
+ SUCCESS = "success",
66
+ WARNING = "warning",
67
+ ERROR = "error"
68
+ }
58
69
  /**
59
70
  * VertiGIS Studio Web's arguments for the system.open-url command.
60
71
  */
@@ -167,6 +178,13 @@ export declare class SystemCommands extends CommandRegistry {
167
178
  * @mobileOnly
168
179
  */
169
180
  get disableBackgroundLocationUpdates(): Command<BackgroundLocationUpdatesArgs>;
181
+ /**
182
+ * Performs system haptics with a given style, if the device supports it.
183
+ * Uses 'taptics' when available, otherwise uses vibration.
184
+ *
185
+ * @mobileOnly
186
+ */
187
+ get haptics(): Command<HapticStyle>;
170
188
  }
171
189
  export declare class SystemOperations extends OperationRegistry {
172
190
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class SystemCommands extends CommandRegistry{get displaySharingLink(){return this._messages.command("system.display-sharing-link")}get downloadFile(){return this._messages.command("system.download-file")}get openUrl(){return this._messages.command("system.open-url")}get keepScreenOn(){return this._messages.command("system.keep-screen-on")}get enableBackgroundLocationUpdates(){return this._messages.command("system.enable-background-location-updates")}get disableBackgroundLocationUpdates(){return this._messages.command("system.disable-background-location-updates")}}export class SystemOperations extends OperationRegistry{get readUrl(){return this._messages.operation("system.read-url")}get readFile(){return this._messages.operation("system.read-file")}get getSharingLink(){return this._messages.operation("system.get-sharing-link")}}export class SystemEvents extends EventRegistry{get backgroundLocationUpdatesEnabled(){return this._messages.event("system.background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._messages.event("system.background-location-updates-disabled")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var HapticStyle;!function(e){e.LIGHT="light",e.MEDIUM="medium",e.HEAVY="heavy",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(HapticStyle||(HapticStyle={}));export class SystemCommands extends CommandRegistry{get displaySharingLink(){return this._messages.command("system.display-sharing-link")}get downloadFile(){return this._messages.command("system.download-file")}get openUrl(){return this._messages.command("system.open-url")}get keepScreenOn(){return this._messages.command("system.keep-screen-on")}get enableBackgroundLocationUpdates(){return this._messages.command("system.enable-background-location-updates")}get disableBackgroundLocationUpdates(){return this._messages.command("system.disable-background-location-updates")}get haptics(){return this._messages.command("system.haptics")}}export class SystemOperations extends OperationRegistry{get readUrl(){return this._messages.operation("system.read-url")}get readFile(){return this._messages.operation("system.read-file")}get getSharingLink(){return this._messages.operation("system.get-sharing-link")}}export class SystemEvents extends EventRegistry{get backgroundLocationUpdatesEnabled(){return this._messages.event("system.background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._messages.event("system.background-location-updates-disabled")}}
@@ -2991,6 +2991,7 @@
2991
2991
  "SnapPosition": {
2992
2992
  "description": "A snapping position.",
2993
2993
  "enum": [
2994
+ "collapsed",
2994
2995
  "hidden",
2995
2996
  "middle",
2996
2997
  "top"
@@ -13782,6 +13783,24 @@
13782
13783
  "system.enable-background-location-updates:input": {
13783
13784
  "$ref": "#/definitions/EnableBackgroundLocationUpdateArgs"
13784
13785
  },
13786
+ "system.haptics": {
13787
+ "description": "Performs system haptics with a given style, if the device supports it. Uses 'taptics' when available, otherwise uses vibration.",
13788
+ "enum": [
13789
+ "system.haptics"
13790
+ ]
13791
+ },
13792
+ "system.haptics:input": {
13793
+ "description": "The haptic style.",
13794
+ "enum": [
13795
+ "error",
13796
+ "heavy",
13797
+ "light",
13798
+ "medium",
13799
+ "success",
13800
+ "warning"
13801
+ ],
13802
+ "type": "string"
13803
+ },
13785
13804
  "system.keep-screen-on": {
13786
13805
  "description": "Allows to control if the screen should be kept on. Passing true as parameter will keep the screen on, ignoring possible system settings for screen timeouts. Passing false as parameter will make the app respect system settings again.",
13787
13806
  "enum": [
@@ -15581,6 +15600,22 @@
15581
15600
  ],
15582
15601
  "type": "object"
15583
15602
  },
15603
+ {
15604
+ "additionalProperties": false,
15605
+ "properties": {
15606
+ "arguments": {
15607
+ "$ref": "#/definitions/system.haptics:input"
15608
+ },
15609
+ "name": {
15610
+ "$ref": "#/definitions/system.haptics"
15611
+ }
15612
+ },
15613
+ "required": [
15614
+ "name",
15615
+ "arguments"
15616
+ ],
15617
+ "type": "object"
15618
+ },
15584
15619
  {
15585
15620
  "additionalProperties": false,
15586
15621
  "properties": {
@@ -16153,6 +16188,9 @@
16153
16188
  {
16154
16189
  "$ref": "#/definitions/system.enable-background-location-updates"
16155
16190
  },
16191
+ {
16192
+ "$ref": "#/definitions/system.haptics"
16193
+ },
16156
16194
  {
16157
16195
  "$ref": "#/definitions/system.keep-screen-on"
16158
16196
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "49.3.1",
3
+ "version": "49.5.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 Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "49.3.1";
4
+ export declare const version = "49.5.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 = "49.3.1";
4
+ export const version = "49.5.0";