@vertigis/viewer-spec 49.9.0 → 50.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.
- package/README.md +1 -1
- package/analytics/MobileAction.d.ts +102 -0
- package/analytics/MobileAction.js +1 -0
- package/app-config/mobile/BasemapModelProperties.d.ts +1 -1
- package/app-config/mobile/VertigisMobileModelProperties.d.ts +2 -2
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/app-config/web/ResultsModelProperties.d.ts +1 -1
- package/app-config/web/VertigisWebModelProperties.d.ts +2 -3
- package/docs/presentation.md +30 -23
- package/messaging/DotNetTypes.d.ts +4 -0
- package/messaging/DotNetTypes.js +1 -0
- package/messaging/common.d.ts +53 -2
- package/messaging/common.js +1 -1
- package/messaging/mobile.d.ts +1 -8
- package/messaging/registry/Events.d.ts +6 -0
- package/messaging/registry/Events.js +1 -1
- package/messaging/registry/app.d.ts +32 -32
- package/messaging/registry/app.js +1 -1
- package/messaging/registry/auth.d.ts +44 -11
- package/messaging/registry/auth.js +1 -1
- package/messaging/registry/basemap.d.ts +19 -1
- package/messaging/registry/basemap.js +1 -1
- package/messaging/registry/bookmark.d.ts +41 -0
- package/messaging/registry/bookmark.js +1 -0
- package/messaging/registry/device.d.ts +12 -0
- package/messaging/registry/device.js +1 -1
- package/messaging/registry/file.d.ts +10 -0
- package/messaging/registry/file.js +1 -1
- package/messaging/registry/geolocation.d.ts +163 -7
- package/messaging/registry/geolocation.js +1 -1
- package/messaging/registry/geometry-toolbar.d.ts +5 -5
- package/messaging/registry/highlights.d.ts +6 -7
- package/messaging/registry/map.d.ts +85 -14
- package/messaging/registry/map.js +1 -1
- package/messaging/registry/measurement.d.ts +36 -4
- package/messaging/registry/measurement.js +1 -1
- package/messaging/registry/offline.d.ts +106 -9
- package/messaging/registry/offline.js +1 -1
- package/messaging/registry/panel.d.ts +8 -1
- package/messaging/registry/panel.js +1 -1
- package/messaging/registry/photos.js +1 -1
- package/messaging/registry/results.d.ts +40 -0
- package/messaging/registry/results.js +1 -1
- package/messaging/registry/search.d.ts +31 -7
- package/messaging/registry/search.js +1 -1
- package/messaging/registry/settings.d.ts +40 -0
- package/messaging/registry/settings.js +1 -0
- package/messaging/registry/shortcut.d.ts +40 -0
- package/messaging/registry/shortcut.js +1 -0
- package/messaging/registry/sketching.d.ts +4 -4
- package/messaging/registry/system.d.ts +21 -0
- package/messaging/registry/system.js +1 -1
- package/messaging/registry/tasks.d.ts +26 -16
- package/messaging/registry/tasks.js +1 -1
- package/messaging/registry/ui.d.ts +4 -4
- package/messaging/registry/workflow.d.ts +6 -9
- package/messaging/schema/common-action.schema.json +43 -38
- package/messaging/schema/common-event.schema.json +193 -11
- package/messaging/schema/mobile-action.schema.json +101 -79
- package/messaging/schema/mobile-event.schema.json +1186 -98
- package/messaging/schema/web-action.schema.json +67 -62
- package/messaging/schema/web-event.schema.json +130 -20
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -8,7 +8,7 @@ import type { FeatureListProperties } from "./FeatureListProperties.js";
|
|
|
8
8
|
export interface ResultsModelProperties extends CommonResultsModelProperties, ComponentModelProperties {
|
|
9
9
|
/**
|
|
10
10
|
* A command or set of commands to execute when all features have been
|
|
11
|
-
* removed. This action is only supported in
|
|
11
|
+
* removed. This action is only supported in VertiGIS Studio Mobile.
|
|
12
12
|
*/
|
|
13
13
|
onAllFeaturesRemoved?: Action;
|
|
14
14
|
/**
|
|
@@ -53,12 +53,11 @@ export interface VertigisWebModelProperties extends ApplicationModelProperties {
|
|
|
53
53
|
*/
|
|
54
54
|
trustedServers?: string[];
|
|
55
55
|
/**
|
|
56
|
-
* The version of
|
|
57
|
-
* configuration.
|
|
56
|
+
* The version of VertiGIS Studio Web that was used to create this app configuration.
|
|
58
57
|
*/
|
|
59
58
|
version?: string;
|
|
60
59
|
/**
|
|
61
|
-
* The active layout of
|
|
60
|
+
* The active layout of VertiGIS Studio Web. This property is only
|
|
62
61
|
* serialized to saved projects.
|
|
63
62
|
*/
|
|
64
63
|
layout?: ItemRef;
|
package/docs/presentation.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Presentation
|
|
2
2
|
|
|
3
3
|
This document describes the syntax and semantics for presentation attributes:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
|
|
5
|
+
- Margin
|
|
6
|
+
- Padding
|
|
7
|
+
- Width
|
|
8
|
+
- Height
|
|
9
|
+
- Grow
|
|
10
|
+
- Horizontal alignment
|
|
11
|
+
- Vertical alignment
|
|
11
12
|
|
|
12
13
|
## Applicability
|
|
13
14
|
|
|
@@ -15,15 +16,16 @@ All attributes apply to all components unless otherwise stated.
|
|
|
15
16
|
|
|
16
17
|
## Units
|
|
17
18
|
|
|
18
|
-
All dimensional units are expressed in 'em's, unless specified otherwise, where 1 em is equal to the current font size.
|
|
19
|
+
All dimensional units are expressed in 'em's, unless specified otherwise, where 1 em is equal to the current font size.
|
|
19
20
|
|
|
20
21
|
## Margin
|
|
21
22
|
|
|
22
23
|
**Attribute name**: "margin".
|
|
23
24
|
**Expected value**: Either 0 or a positive number (integer or floating point).
|
|
24
|
-
**Description**: Sets the size of the white space outside of the component.
|
|
25
|
+
**Description**: Sets the size of the white space outside of the component.
|
|
25
26
|
|
|
26
27
|
**Example**:
|
|
28
|
+
|
|
27
29
|
```
|
|
28
30
|
<map margin="1.5"/> <!-- Sets the margin on a map to be equal to 1.5x the current font size -->
|
|
29
31
|
```
|
|
@@ -33,9 +35,10 @@ All dimensional units are expressed in 'em's, unless specified otherwise, where
|
|
|
33
35
|
**Attribute name**: "padding".
|
|
34
36
|
**Expected value**: Either 0 or a positive number (integer or floating point).
|
|
35
37
|
**Description**: Sets the size of the white space between a component and its content.
|
|
36
|
-
**Applies to**: In
|
|
38
|
+
**Applies to**: In VertiGIS Studio Mobile, this attribute will only apply to components with children, due to technical restrictions.
|
|
37
39
|
|
|
38
40
|
**Example**:
|
|
41
|
+
|
|
39
42
|
```
|
|
40
43
|
<stack padding="0.5"/> <!-- Sets the padding on a stack to be equal to 0.5x the current font size -->
|
|
41
44
|
```
|
|
@@ -43,35 +46,38 @@ All dimensional units are expressed in 'em's, unless specified otherwise, where
|
|
|
43
46
|
## Width and Height
|
|
44
47
|
|
|
45
48
|
**Attribute name**: "width".
|
|
46
|
-
**Expected value**: Em units: Either 0 or a positive number (integer or floating point). Example: 12.
|
|
49
|
+
**Expected value**: Em units: Either 0 or a positive number (integer or floating point). Example: 12.
|
|
47
50
|
|
|
48
51
|
**Default value**: If a width is not set, then the width shall be the natural width of the component (however much space it needs).
|
|
49
|
-
**Description**: Sets the width of a component. If em units, then the width is a literal value.
|
|
52
|
+
**Description**: Sets the width of a component. If em units, then the width is a literal value.
|
|
50
53
|
|
|
51
54
|
**Attribute name**: "height".
|
|
52
|
-
**Expected value**: Em units: Either 0 or a positive number (integer or floating point). Example: 12.
|
|
55
|
+
**Expected value**: Em units: Either 0 or a positive number (integer or floating point). Example: 12.
|
|
53
56
|
|
|
54
|
-
**Description**: Sets the height of a component. If em units, then the height is a literal value.
|
|
57
|
+
**Description**: Sets the height of a component. If em units, then the height is a literal value.
|
|
55
58
|
|
|
56
59
|
**Example**:
|
|
60
|
+
|
|
57
61
|
```
|
|
58
62
|
<!-- Sets the width of a map to 30em, and the height to 20em. -->
|
|
59
|
-
<map width="30em" height="20"/>
|
|
63
|
+
<map width="30em" height="20"/>
|
|
60
64
|
```
|
|
61
65
|
|
|
62
66
|
## Grow
|
|
63
67
|
|
|
64
68
|
**Attribute name**: "grow".
|
|
65
69
|
**Expected value**: Either 0 or a positive number (integer or floating point).
|
|
66
|
-
**Description**: Sets whether or not a component's width or height will grow over its parents primary axis. Components with a grow of 0 will fill to their natural or requested height. Components with a specified grow will fill up a
|
|
70
|
+
**Description**: Sets whether or not a component's width or height will grow over its parents primary axis. Components with a grow of 0 will fill to their natural or requested height. Components with a specified grow will fill up a percentage of the remaining space equal to their grow value divided by the total grow of all sibling components (including the component in question).
|
|
67
71
|
The default value for a component varies by component. For most components, if no grow value is specified, they will default to a grow value of "0". The following components however will have a default grow value of "1":
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
|
|
73
|
+
- Map
|
|
74
|
+
- Stack
|
|
75
|
+
- Split
|
|
71
76
|
|
|
72
77
|
**Applies to**: All components may specify this value, but it will only take effect if the component is a child of a split or a stack. For stacks, grow indicates how the child grows along the vertical axis. For splits, grow indicates how the child grows along the horizontal axis.
|
|
73
78
|
|
|
74
79
|
**Example**:
|
|
80
|
+
|
|
75
81
|
```
|
|
76
82
|
<stack>
|
|
77
83
|
<!-- Heading will take up whatever vertical space it requires, and will occupy its natural width. -->
|
|
@@ -83,16 +89,17 @@ The default value for a component varies by component. For most components, if n
|
|
|
83
89
|
</stack>
|
|
84
90
|
```
|
|
85
91
|
|
|
86
|
-
## Alignment
|
|
92
|
+
## Alignment
|
|
87
93
|
|
|
88
94
|
**Attribute name**: "halign".
|
|
89
95
|
**Expected value**: One of: "start", "center", or "end"
|
|
90
|
-
**Description**: Describes how the content of a component is aligned. For stacks and splits, the content is the child components. For a component like text, the content is the text itself.
|
|
96
|
+
**Description**: Describes how the content of a component is aligned. For stacks and splits, the content is the child components. For a component like text, the content is the text itself.
|
|
91
97
|
|
|
92
98
|
**Attribute name**: "valign".
|
|
93
99
|
**Expected value**: One of: "start", "center", or "end"
|
|
94
|
-
**Description**: Describes how the content of a component is aligned. For stacks and splits, the content is the child components. For a component like text, the content is the text itself.
|
|
100
|
+
**Description**: Describes how the content of a component is aligned. For stacks and splits, the content is the child components. For a component like text, the content is the text itself.
|
|
95
101
|
|
|
96
102
|
### Effect on cross-axis stretching
|
|
103
|
+
|
|
97
104
|
All components will stretch across the cross-axis if the corresponding alignment attribute (halign for stacks, valign for splits) is not set on the parent of that componet. But if a cross-axis alignment is set, then they will no longer stretch across the cross axis (otherwise the effect of alignment would not be observed).
|
|
98
|
-
Some components will stretch across the cross-axis even if the cross-axis alignment is set on the parent: map, stack, split.
|
|
105
|
+
Some components will stretch across the cross-axis even if the cross-axis alignment is set on the parent: map, stack, split.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
package/messaging/common.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type { Entity } from "@vertigis/arcgis-extensions/Entity";
|
|
|
15
15
|
import type { Feature, FeatureProperties } from "@vertigis/arcgis-extensions/data/Feature";
|
|
16
16
|
import type { FeatureList } from "@vertigis/arcgis-extensions/data/FeatureList";
|
|
17
17
|
import type { FeatureSet } from "@vertigis/arcgis-extensions/data/FeatureSet";
|
|
18
|
+
import type { FeatureSource } from "@vertigis/arcgis-extensions/data/FeatureSource";
|
|
18
19
|
import type { FeatureStream } from "@vertigis/arcgis-extensions/data/FeatureStream";
|
|
19
20
|
import type { BasemapExtension } from "@vertigis/arcgis-extensions/mapping/BasemapExtension";
|
|
20
21
|
import type { Bookmark, BookmarkProperties } from "@vertigis/arcgis-extensions/mapping/Bookmark";
|
|
@@ -34,6 +35,7 @@ import type { SimpleMarkerSymbol as SimpleMarkerSymbolProperties } from "@vertig
|
|
|
34
35
|
import type { Viewpoint as ViewpointJson } from "@vertigis/arcgis-extensions/portal/Viewpoint";
|
|
35
36
|
import type { SublayerLike } from "@vertigis/arcgis-extensions/support/esri";
|
|
36
37
|
import type { ItemRef } from "app-config/common/ItemRef";
|
|
38
|
+
import type { TimeSpan } from "./DotNetTypes";
|
|
37
39
|
/**
|
|
38
40
|
* A model belonging to a component.
|
|
39
41
|
*/
|
|
@@ -60,6 +62,11 @@ export interface CreateGraphicsResult {
|
|
|
60
62
|
* Represents one or more features.
|
|
61
63
|
*/
|
|
62
64
|
export declare type FeaturesLike = Feature | FeatureSet | FeatureList | FeatureStream | (Feature | FeatureProperties)[];
|
|
65
|
+
/**
|
|
66
|
+
* Feature results from an operation.
|
|
67
|
+
*/
|
|
68
|
+
export interface Results extends HasFeatures, HasMaps {
|
|
69
|
+
}
|
|
63
70
|
/**
|
|
64
71
|
* Defines an object that has a `features` property.
|
|
65
72
|
*/
|
|
@@ -70,9 +77,53 @@ export interface HasFeatures {
|
|
|
70
77
|
features?: FeaturesLike;
|
|
71
78
|
}
|
|
72
79
|
/**
|
|
73
|
-
*
|
|
80
|
+
* Defines an object that has a `maps` property and a `features` property.
|
|
74
81
|
*/
|
|
75
|
-
export interface
|
|
82
|
+
export interface HasMapsAndFeatures extends HasMaps, HasFeatures {
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Event args for any events that contain results that were obtained for from a
|
|
86
|
+
* map operation.
|
|
87
|
+
*/
|
|
88
|
+
export interface MapsFeatureResultArgs extends HasMapsAndFeatures {
|
|
89
|
+
/**
|
|
90
|
+
* The type of operation that created these results.
|
|
91
|
+
*/
|
|
92
|
+
sourceOperation: SourceOperation;
|
|
93
|
+
/**
|
|
94
|
+
* The error associated with these results if there is one.
|
|
95
|
+
*/
|
|
96
|
+
error: Error;
|
|
97
|
+
/**
|
|
98
|
+
* The original geometry associated with the event. The original geometry
|
|
99
|
+
* pertains to the original input geometry that was passed into the
|
|
100
|
+
* operation before the event was generated.
|
|
101
|
+
*/
|
|
102
|
+
originalGeometry: Geometry;
|
|
103
|
+
/**
|
|
104
|
+
* The geometry associated with the event. This may be an alteration of the
|
|
105
|
+
* original geometry (eg. Buffered).
|
|
106
|
+
*/
|
|
107
|
+
geometry: Geometry;
|
|
108
|
+
/**
|
|
109
|
+
* The feature sources that were used to produce the result.
|
|
110
|
+
*/
|
|
111
|
+
sources: FeatureSource[];
|
|
112
|
+
/**
|
|
113
|
+
* The amount of time that it took to perform the operation.
|
|
114
|
+
*/
|
|
115
|
+
duration: TimeSpan;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Describes the source of results.
|
|
119
|
+
*/
|
|
120
|
+
export declare enum SourceOperation {
|
|
121
|
+
UNKNOWN = "Unknown",
|
|
122
|
+
IDENTIFY = "Identify",
|
|
123
|
+
SEARCH = "Search",
|
|
124
|
+
ADD = "Add",
|
|
125
|
+
WORKFLOW = "Workflow",
|
|
126
|
+
GEOCODE = "Geocode"
|
|
76
127
|
}
|
|
77
128
|
/**
|
|
78
129
|
* One or more features, or an object that has features.
|
package/messaging/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
export var SourceOperation;!function(o){o.UNKNOWN="Unknown",o.IDENTIFY="Identify",o.SEARCH="Search",o.ADD="Add",o.WORKFLOW="Workflow",o.GEOCODE="Geocode"}(SourceOperation||(SourceOperation={}));
|
package/messaging/mobile.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { MapsLike } from "./common.js";
|
|
2
1
|
export interface Photo {
|
|
3
2
|
}
|
|
4
3
|
export interface VisualElement {
|
|
5
4
|
}
|
|
6
|
-
|
|
7
|
-
* One or more map extensions.
|
|
8
|
-
*/
|
|
9
|
-
export interface MapExtensionArgs {
|
|
10
|
-
maps: MapsLike;
|
|
11
|
-
}
|
|
12
|
-
export interface MapExtensionFeatureArgs {
|
|
5
|
+
export interface ArcGISPortalIdentity {
|
|
13
6
|
}
|
|
@@ -2,6 +2,7 @@ import { EventRegistry } from "../EventRegistry.js";
|
|
|
2
2
|
import { AppConfigEvents } from "./app-config.js";
|
|
3
3
|
import { AppEvents } from "./app.js";
|
|
4
4
|
import { AuthEvents } from "./auth.js";
|
|
5
|
+
import { BookmarkEvents } from "./bookmark.js";
|
|
5
6
|
import { DeviceEvents } from "./device.js";
|
|
6
7
|
import { DisplayEvents } from "./display.js";
|
|
7
8
|
import { EditEvents } from "./edit.js";
|
|
@@ -20,6 +21,8 @@ import { RegionEvents } from "./region.js";
|
|
|
20
21
|
import { ReportEvents } from "./reports.js";
|
|
21
22
|
import { ResultsEvents } from "./results.js";
|
|
22
23
|
import { SearchEvents } from "./search.js";
|
|
24
|
+
import { SettingsEvents } from "./settings.js";
|
|
25
|
+
import { ShortcutEvents } from "./shortcut.js";
|
|
23
26
|
import { TasksEvents } from "./tasks.js";
|
|
24
27
|
import { UIEvents } from "./ui.js";
|
|
25
28
|
import { ViewerEvents } from "./viewer.js";
|
|
@@ -28,6 +31,7 @@ export declare class Events extends EventRegistry {
|
|
|
28
31
|
readonly app: AppEvents;
|
|
29
32
|
readonly appConfig: AppConfigEvents;
|
|
30
33
|
readonly auth: AuthEvents;
|
|
34
|
+
readonly bookmarks: BookmarkEvents;
|
|
31
35
|
readonly device: DeviceEvents;
|
|
32
36
|
readonly display: DisplayEvents;
|
|
33
37
|
readonly edit: EditEvents;
|
|
@@ -46,6 +50,8 @@ export declare class Events extends EventRegistry {
|
|
|
46
50
|
readonly reports: ReportEvents;
|
|
47
51
|
readonly results: ResultsEvents;
|
|
48
52
|
readonly search: SearchEvents;
|
|
53
|
+
readonly settings: SettingsEvents;
|
|
54
|
+
readonly shortcuts: ShortcutEvents;
|
|
49
55
|
readonly tasks: TasksEvents;
|
|
50
56
|
readonly ui: UIEvents;
|
|
51
57
|
readonly viewer: ViewerEvents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EventRegistry}from"../EventRegistry.js";import{AppConfigEvents}from"./app-config.js";import{AppEvents}from"./app.js";import{AuthEvents}from"./auth.js";import{DeviceEvents}from"./device.js";import{DisplayEvents}from"./display.js";import{EditEvents}from"./edit.js";import{GeolocationEvents}from"./geolocation.js";import{InputEvents}from"./input.js";import{LayersEvents}from"./layers.js";import{LayoutEvents}from"./layout.js";import{LocationMarkerEvents}from"./location-marker.js";import{MapEvents}from"./map.js";import{OfflineEvents}from"./offline.js";import{PanelEvents}from"./panel.js";import{PhotosEvents}from"./photos.js";import{PortalEvents}from"./portal.js";import{PrintEvents}from"./printing.js";import{RegionEvents}from"./region.js";import{ReportEvents}from"./reports.js";import{ResultsEvents}from"./results.js";import{SearchEvents}from"./search.js";import{TasksEvents}from"./tasks.js";import{UIEvents}from"./ui.js";import{ViewerEvents}from"./viewer.js";import{WorkflowEvents}from"./workflow.js";export class Events extends EventRegistry{constructor(){super(...arguments),this.app=new AppEvents(this._messages),this.appConfig=new AppConfigEvents(this._messages),this.auth=new AuthEvents(this._messages),this.device=new DeviceEvents(this._messages),this.display=new DisplayEvents(this._messages),this.edit=new EditEvents(this._messages),this.geolocation=new GeolocationEvents(this._messages),this.input=new InputEvents(this._messages),this.layers=new LayersEvents(this._messages),this.layout=new LayoutEvents(this._messages),this.locationMarker=new LocationMarkerEvents(this._messages),this.map=new MapEvents(this._messages),this.offline=new OfflineEvents(this._messages),this.panel=new PanelEvents(this._messages),this.photos=new PhotosEvents(this._messages),this.portal=new PortalEvents(this._messages),this.printing=new PrintEvents(this._messages),this.region=new RegionEvents(this._messages),this.reports=new ReportEvents(this._messages),this.results=new ResultsEvents(this._messages),this.search=new SearchEvents(this._messages),this.tasks=new TasksEvents(this._messages),this.ui=new UIEvents(this._messages),this.viewer=new ViewerEvents(this._messages),this.workflow=new WorkflowEvents(this._messages)}}
|
|
1
|
+
import{EventRegistry}from"../EventRegistry.js";import{AppConfigEvents}from"./app-config.js";import{AppEvents}from"./app.js";import{AuthEvents}from"./auth.js";import{BookmarkEvents}from"./bookmark.js";import{DeviceEvents}from"./device.js";import{DisplayEvents}from"./display.js";import{EditEvents}from"./edit.js";import{GeolocationEvents}from"./geolocation.js";import{InputEvents}from"./input.js";import{LayersEvents}from"./layers.js";import{LayoutEvents}from"./layout.js";import{LocationMarkerEvents}from"./location-marker.js";import{MapEvents}from"./map.js";import{OfflineEvents}from"./offline.js";import{PanelEvents}from"./panel.js";import{PhotosEvents}from"./photos.js";import{PortalEvents}from"./portal.js";import{PrintEvents}from"./printing.js";import{RegionEvents}from"./region.js";import{ReportEvents}from"./reports.js";import{ResultsEvents}from"./results.js";import{SearchEvents}from"./search.js";import{SettingsEvents}from"./settings.js";import{ShortcutEvents}from"./shortcut.js";import{TasksEvents}from"./tasks.js";import{UIEvents}from"./ui.js";import{ViewerEvents}from"./viewer.js";import{WorkflowEvents}from"./workflow.js";export class Events extends EventRegistry{constructor(){super(...arguments),this.app=new AppEvents(this._messages),this.appConfig=new AppConfigEvents(this._messages),this.auth=new AuthEvents(this._messages),this.bookmarks=new BookmarkEvents(this._messages),this.device=new DeviceEvents(this._messages),this.display=new DisplayEvents(this._messages),this.edit=new EditEvents(this._messages),this.geolocation=new GeolocationEvents(this._messages),this.input=new InputEvents(this._messages),this.layers=new LayersEvents(this._messages),this.layout=new LayoutEvents(this._messages),this.locationMarker=new LocationMarkerEvents(this._messages),this.map=new MapEvents(this._messages),this.offline=new OfflineEvents(this._messages),this.panel=new PanelEvents(this._messages),this.photos=new PhotosEvents(this._messages),this.portal=new PortalEvents(this._messages),this.printing=new PrintEvents(this._messages),this.region=new RegionEvents(this._messages),this.reports=new ReportEvents(this._messages),this.results=new ResultsEvents(this._messages),this.search=new SearchEvents(this._messages),this.settings=new SettingsEvents(this._messages),this.shortcuts=new ShortcutEvents(this._messages),this.tasks=new TasksEvents(this._messages),this.ui=new UIEvents(this._messages),this.viewer=new ViewerEvents(this._messages),this.workflow=new WorkflowEvents(this._messages)}}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import type { AppConfig } from "../../app-config/index.js";
|
|
2
2
|
import type { Command } from "../Command.js";
|
|
3
3
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
4
|
+
import type * as DotNetTypes from "../DotNetTypes.js";
|
|
4
5
|
import type { Event } from "../Event.js";
|
|
5
6
|
import { EventRegistry } from "../EventRegistry.js";
|
|
6
7
|
import type { Operation } from "../Operation.js";
|
|
7
8
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
8
9
|
import type { Blob } from "../common.js";
|
|
9
10
|
/**
|
|
10
|
-
* Information about a specific app. Only available in
|
|
11
|
+
* Information about a specific app. Only available in VertiGIS Studio Mobile.
|
|
11
12
|
*/
|
|
12
13
|
export interface GcxAppInfo {
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
|
-
* Arguments for the app started events. Only available in
|
|
16
|
+
* Arguments for the app started events. Only available in VertiGIS Studio Mobile.
|
|
16
17
|
*/
|
|
17
18
|
export interface SpecificAppArgs {
|
|
18
19
|
/**
|
|
19
20
|
* A unique identifier for the app.
|
|
20
21
|
*/
|
|
21
22
|
uniqueKey: string;
|
|
23
|
+
/**
|
|
24
|
+
* The amount of time that the app took to load.
|
|
25
|
+
*/
|
|
26
|
+
loadTime: DotNetTypes.TimeSpan;
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
|
-
* Arguments for the app.generic.apps-listed event. Only available in
|
|
25
|
-
*
|
|
29
|
+
* Arguments for the app.generic.apps-listed event. Only available in VertiGIS
|
|
30
|
+
* Studio Mobile.
|
|
26
31
|
*/
|
|
27
32
|
export interface GenericAppsListedArgs {
|
|
28
33
|
/**
|
|
@@ -48,8 +53,8 @@ export interface GenericAppsListedArgs {
|
|
|
48
53
|
}
|
|
49
54
|
export declare class AppCommands extends CommandRegistry {
|
|
50
55
|
/**
|
|
51
|
-
* Returns to the
|
|
52
|
-
* app. Only enabled if the current app was launched through
|
|
56
|
+
* Returns to the app selector view where the user can select a different
|
|
57
|
+
* app. Only enabled if the current app was launched through VertiGIS Studio Go.
|
|
53
58
|
*
|
|
54
59
|
* @mobileOnly
|
|
55
60
|
*/
|
|
@@ -116,25 +121,8 @@ export declare class AppEvents extends EventRegistry {
|
|
|
116
121
|
*/
|
|
117
122
|
get interrupted(): Event;
|
|
118
123
|
/**
|
|
119
|
-
* Raised when a
|
|
120
|
-
*
|
|
121
|
-
* @mobileOnly
|
|
122
|
-
*/
|
|
123
|
-
get customStarted(): Event<SpecificAppArgs>;
|
|
124
|
-
/**
|
|
125
|
-
* Raised when a generic app is started.
|
|
126
|
-
*
|
|
127
|
-
* @mobileOnly
|
|
128
|
-
*/
|
|
129
|
-
get genericAppStarted(): Event;
|
|
130
|
-
/**
|
|
131
|
-
* Raised when a specific app is started within the generic app.
|
|
132
|
-
*
|
|
133
|
-
* @mobileOnly
|
|
134
|
-
*/
|
|
135
|
-
get specificAppStarted(): Event<SpecificAppArgs>;
|
|
136
|
-
/**
|
|
137
|
-
* Raised when returning to the app selector screen from a specific app in Go.
|
|
124
|
+
* Raised when returning to the app selector screen from a specific app in
|
|
125
|
+
* VertiGIS Studio Go.
|
|
138
126
|
*
|
|
139
127
|
* @mobileOnly
|
|
140
128
|
*/
|
|
@@ -174,17 +162,29 @@ export declare class AppCustomEvents extends EventRegistry {
|
|
|
174
162
|
}
|
|
175
163
|
export declare class AppGenericEvents extends EventRegistry {
|
|
176
164
|
/**
|
|
177
|
-
* Raised when
|
|
165
|
+
* Raised when apps are listed within VertiGIS Studio Go.
|
|
178
166
|
*
|
|
179
167
|
* @mobileOnly
|
|
180
168
|
*/
|
|
181
|
-
get
|
|
169
|
+
get appsListed(): Event<GenericAppsListedArgs>;
|
|
182
170
|
/**
|
|
183
|
-
* Raised
|
|
171
|
+
* Raised before a specific app starts within VertiGIS Studio Go.
|
|
184
172
|
*
|
|
185
173
|
* @mobileOnly
|
|
186
174
|
*/
|
|
187
|
-
get
|
|
175
|
+
get specificAppStarting(): Event<SpecificAppArgs>;
|
|
176
|
+
/**
|
|
177
|
+
* Raised when a specific app is started within VertiGIS Studio Go.
|
|
178
|
+
*
|
|
179
|
+
* @mobileOnly
|
|
180
|
+
*/
|
|
181
|
+
get specificAppStarted(): Event<SpecificAppArgs>;
|
|
182
|
+
/**
|
|
183
|
+
* Raised when a generic app is started.
|
|
184
|
+
*
|
|
185
|
+
* @mobileOnly
|
|
186
|
+
*/
|
|
187
|
+
get started(): Event;
|
|
188
188
|
}
|
|
189
189
|
export declare class AppOperations extends OperationRegistry {
|
|
190
190
|
/**
|
|
@@ -207,7 +207,7 @@ export declare class AppOperations extends OperationRegistry {
|
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* Arguments for the reading app.*-persistent-data operations. Only available in
|
|
210
|
-
*
|
|
210
|
+
* VertiGIS Studio Mobile.
|
|
211
211
|
*/
|
|
212
212
|
export interface StorageDataArgs {
|
|
213
213
|
/**
|
|
@@ -220,8 +220,8 @@ export interface StorageDataArgs {
|
|
|
220
220
|
scope?: StorageScope;
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
223
|
-
* Arguments for the app.set-persistent-data operations. Only available in
|
|
224
|
-
*
|
|
223
|
+
* Arguments for the app.set-persistent-data operations. Only available in
|
|
224
|
+
* VertiGIS Studio Mobile.
|
|
225
225
|
*/
|
|
226
226
|
export interface SaveStorageDataArgs extends StorageDataArgs {
|
|
227
227
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get setPersistentData(){return this._messages.command("app.set-persistent-data")}get removePersistentData(){return this._messages.command("app.remove-persistent-data")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get interrupted(){return this._messages.event("app.interrupted")}get
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get setPersistentData(){return this._messages.command("app.set-persistent-data")}get removePersistentData(){return this._messages.command("app.remove-persistent-data")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get interrupted(){return this._messages.event("app.interrupted")}get goingToAppSelector(){return this._messages.event("app.navigating-to-app-selector")}get refreshed(){return this._messages.event("app.refreshed")}get refreshing(){return this._messages.event("app.refreshing")}get favorited(){return this._messages.event("app.favorited")}get unfavorited(){return this._messages.event("app.unfavorited")}}export class AppCustomEvents extends EventRegistry{get started(){return this._messages.event("app.custom.started")}}export class AppGenericEvents extends EventRegistry{get appsListed(){return this._messages.event("app.generic.apps-listed")}get specificAppStarting(){return this._messages.event("app.generic.specific-app-starting")}get specificAppStarted(){return this._messages.event("app.generic.specific-app-started")}get started(){return this._messages.event("app.generic.started")}}export class AppOperations extends OperationRegistry{get getVersion(){return this._messages.operation("app.get-version")}get createProject(){return this._messages.operation("app.create-project")}get getPersistentData(){return this._messages.operation("app.get-persistent-data")}}var StorageScope;!function(e){e.GLOBAL="global",e.APP="app",e.MEMORY="memory"}(StorageScope||(StorageScope={}));
|
|
@@ -8,6 +8,7 @@ import type { Event } from "../Event.js";
|
|
|
8
8
|
import { EventRegistry } from "../EventRegistry.js";
|
|
9
9
|
import type { Operation } from "../Operation.js";
|
|
10
10
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
11
|
+
import type { ArcGISPortalIdentity } from "../mobile.js";
|
|
11
12
|
/**
|
|
12
13
|
* A type of authentication.
|
|
13
14
|
*/
|
|
@@ -27,20 +28,45 @@ export interface Principal {
|
|
|
27
28
|
portalUser: PortalUser;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
|
-
* Arguments for the auth.sign-in events. Only available in
|
|
31
|
+
* Arguments for the auth.sign-in events. Only available in VertiGIS Studio Mobile.
|
|
31
32
|
*/
|
|
32
33
|
export interface SignInEventArgs {
|
|
33
34
|
/**
|
|
34
35
|
* The authentication method used for the sign in process. Not available in
|
|
35
|
-
*
|
|
36
|
+
* VertiGIS Studio Web.
|
|
36
37
|
*/
|
|
37
38
|
authenticationType: AuthenticationType;
|
|
38
39
|
/**
|
|
39
40
|
* Information about the resource that is required to sign in. Not available
|
|
40
|
-
* in
|
|
41
|
-
* esri.security.CredentialRequestInfo for
|
|
41
|
+
* in VertiGIS Studio Web. Will be an instance of
|
|
42
|
+
* esri.security.CredentialRequestInfo for VertiGIS Studio Mobile.
|
|
42
43
|
*/
|
|
43
44
|
requestInfo: unknown;
|
|
45
|
+
/**
|
|
46
|
+
* The type of Portal: AGOL or Enterprise.
|
|
47
|
+
*/
|
|
48
|
+
portalType: PortalType;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The type of Portal.
|
|
52
|
+
*/
|
|
53
|
+
export declare enum PortalType {
|
|
54
|
+
ARCGIS_ENTERPRISE = "ArcGISEnterprise",
|
|
55
|
+
AGOL = "AGOL"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Arguments for the auth.sign-in-completed and auth.portal-sign-in-completed
|
|
59
|
+
* events. Only available in VertiGIS Studio Mobile.
|
|
60
|
+
*/
|
|
61
|
+
export interface SignInCompletedEventArgs {
|
|
62
|
+
/**
|
|
63
|
+
* The credential resulting from the sign in.
|
|
64
|
+
*/
|
|
65
|
+
credential: Credential;
|
|
66
|
+
/**
|
|
67
|
+
* The identity that was obtained from the sign in.
|
|
68
|
+
*/
|
|
69
|
+
identity: ArcGISPortalIdentity;
|
|
44
70
|
}
|
|
45
71
|
/**
|
|
46
72
|
* Arguments for the auth.sign-in-failed event. Only available in the Geocortex
|
|
@@ -48,8 +74,8 @@ export interface SignInEventArgs {
|
|
|
48
74
|
*/
|
|
49
75
|
export interface SignInFailedEventArgs extends SignInEventArgs {
|
|
50
76
|
/**
|
|
51
|
-
* The exception that occurred during the sign in. Not available in
|
|
52
|
-
*
|
|
77
|
+
* The exception that occurred during the sign in. Not available in VertiGIS
|
|
78
|
+
* Studio Web.
|
|
53
79
|
*/
|
|
54
80
|
exception: unknown;
|
|
55
81
|
}
|
|
@@ -57,13 +83,13 @@ export declare class AuthCommands extends CommandRegistry {
|
|
|
57
83
|
/**
|
|
58
84
|
* Initiates user sign-in if they aren't already signed in. The argument
|
|
59
85
|
* indicates whether or not the map should be reloaded when the sign-in is
|
|
60
|
-
* complete. This argument is optional and only supported by
|
|
86
|
+
* complete. This argument is optional and only supported by VertiGIS Studio Mobile.
|
|
61
87
|
*/
|
|
62
88
|
get signIn(): Command<boolean | void>;
|
|
63
89
|
/**
|
|
64
90
|
* Signs the user out. The argument indicates whether or not the map should
|
|
65
91
|
* be reloaded when the sign-out is complete. This argument is optional and
|
|
66
|
-
* only supported by
|
|
92
|
+
* only supported by VertiGIS Studio Mobile.
|
|
67
93
|
*/
|
|
68
94
|
get signOut(): Command<boolean | void>;
|
|
69
95
|
}
|
|
@@ -94,9 +120,16 @@ export declare class AuthEvents extends EventRegistry {
|
|
|
94
120
|
*/
|
|
95
121
|
get signInCancelled(): Event<SignInEventArgs>;
|
|
96
122
|
/**
|
|
97
|
-
* Raised when successfully signed in.
|
|
123
|
+
* Raised when successfully signed in. Principal event type used in Web,
|
|
124
|
+
* SignInCompletedEventArgs used in Mobile.
|
|
125
|
+
*/
|
|
126
|
+
get signInCompleted(): Event<Principal | SignInCompletedEventArgs>;
|
|
127
|
+
/**
|
|
128
|
+
* Raised when the user has signed into a Portal (AGOL or Portal for ArcGIS).
|
|
129
|
+
*
|
|
130
|
+
* @mobileOnly
|
|
98
131
|
*/
|
|
99
|
-
get
|
|
132
|
+
get portalSignInCompleted(): Event<SignInCompletedEventArgs>;
|
|
100
133
|
/**
|
|
101
134
|
* Raised when a sign-in attempt fails.
|
|
102
135
|
*/
|
|
@@ -115,7 +148,7 @@ export declare class AuthEvents extends EventRegistry {
|
|
|
115
148
|
get signOutRequested(): Event;
|
|
116
149
|
/**
|
|
117
150
|
* Raised when the user's token is refreshed. Will be the new token in the
|
|
118
|
-
*
|
|
151
|
+
* VertiGIS Studio Web, and a TokenCredential object in VertiGIS Studio Mobile.
|
|
119
152
|
*/
|
|
120
153
|
get tokenRefreshed(): Event<string>;
|
|
121
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var AuthenticationType;!function(e){e.UNKNOWN="Unknown",e.OAUTH_2="OAuth2",e.NETWORK="Network",e.TOKEN="Token"}(AuthenticationType||(AuthenticationType={}));export class AuthCommands extends CommandRegistry{get signIn(){return this._messages.command("auth.sign-in")}get signOut(){return this._messages.command("auth.sign-out")}}export class AuthOperations extends OperationRegistry{get getCurrentUser(){return this._messages.operation("auth.get-current-user")}get getExistingCredential(){return this._messages.operation("auth.get-existing-credential")}get isSignInAvailable(){return this._messages.operation("auth.is-sign-in-available")}}export class AuthEvents extends EventRegistry{get signInCancelled(){return this._messages.event("auth.sign-in-cancelled")}get signInCompleted(){return this._messages.event("auth.sign-in-completed")}get signInFailed(){return this._messages.event("auth.sign-in-failed")}get signInRequested(){return this._messages.event("auth.sign-in-requested")}get signOutCompleted(){return this._messages.event("auth.sign-out-completed")}get signOutRequested(){return this._messages.event("auth.sign-out-requested")}get tokenRefreshed(){return this._messages.event("auth.token-refreshed")}}
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var AuthenticationType;!function(e){e.UNKNOWN="Unknown",e.OAUTH_2="OAuth2",e.NETWORK="Network",e.TOKEN="Token"}(AuthenticationType||(AuthenticationType={}));export var PortalType;!function(e){e.ARCGIS_ENTERPRISE="ArcGISEnterprise",e.AGOL="AGOL"}(PortalType||(PortalType={}));export class AuthCommands extends CommandRegistry{get signIn(){return this._messages.command("auth.sign-in")}get signOut(){return this._messages.command("auth.sign-out")}}export class AuthOperations extends OperationRegistry{get getCurrentUser(){return this._messages.operation("auth.get-current-user")}get getExistingCredential(){return this._messages.operation("auth.get-existing-credential")}get isSignInAvailable(){return this._messages.operation("auth.is-sign-in-available")}}export class AuthEvents extends EventRegistry{get signInCancelled(){return this._messages.event("auth.sign-in-cancelled")}get signInCompleted(){return this._messages.event("auth.sign-in-completed")}get portalSignInCompleted(){return this._messages.event("auth.portal-sign-in-completed")}get signInFailed(){return this._messages.event("auth.sign-in-failed")}get signInRequested(){return this._messages.event("auth.sign-in-requested")}get signOutCompleted(){return this._messages.event("auth.sign-out-completed")}get signOutRequested(){return this._messages.event("auth.sign-out-requested")}get tokenRefreshed(){return this._messages.event("auth.token-refreshed")}}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { BasemapExtension } from "@vertigis/arcgis-extensions/mapping/BasemapExtension";
|
|
2
2
|
import type { Command } from "../Command.js";
|
|
3
|
+
import type { Event } from "../Event.js";
|
|
4
|
+
import { EventRegistry } from "../EventRegistry.js";
|
|
3
5
|
import type { Operation } from "../Operation.js";
|
|
4
6
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
5
7
|
import { CommandRegistry } from "./../CommandRegistry.js";
|
|
6
8
|
import type { BasemapsLike, MapsLike } from "./../common.js";
|
|
9
|
+
import type { MapEvent } from "./map.js";
|
|
7
10
|
export declare class BasemapCommands extends CommandRegistry {
|
|
8
11
|
/**
|
|
9
12
|
* Switch to a configured basemap.
|
|
@@ -34,7 +37,7 @@ export declare class BasemapOperations extends OperationRegistry {
|
|
|
34
37
|
export declare type SetBasemapArg = string | BasemapsLike;
|
|
35
38
|
/**
|
|
36
39
|
* Argument used in case when we have more than 1 map in the app, and we need to
|
|
37
|
-
* pass the target map from outside (eg basemap picker in
|
|
40
|
+
* pass the target map from outside (eg basemap picker in VertiGIS Studio Web).
|
|
38
41
|
*/
|
|
39
42
|
export interface SetBasemapWithTargetMapArg {
|
|
40
43
|
/**
|
|
@@ -50,3 +53,18 @@ export interface SetBasemapWithTargetMapArg {
|
|
|
50
53
|
* Argument used when setting current basemap in the app.
|
|
51
54
|
*/
|
|
52
55
|
export declare type SetBasemapArgs = SetBasemapArg | SetBasemapWithTargetMapArg;
|
|
56
|
+
export declare class BasemapEvents extends EventRegistry {
|
|
57
|
+
/**
|
|
58
|
+
* Raised when the basemap is changed by any means.
|
|
59
|
+
*
|
|
60
|
+
* @mobileOnly
|
|
61
|
+
*/
|
|
62
|
+
get changed(): Event<MapEvent>;
|
|
63
|
+
/**
|
|
64
|
+
* Raised when the basemap is explicitly changed via the 'basemap.set'
|
|
65
|
+
* command or the 'layer-presets.apply' command.
|
|
66
|
+
*
|
|
67
|
+
* @mobileOnly
|
|
68
|
+
*/
|
|
69
|
+
get set(): Event<MapEvent>;
|
|
70
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OperationRegistry}from"../OperationRegistry.js";import{CommandRegistry}from"./../CommandRegistry.js";export class BasemapCommands extends CommandRegistry{get set(){return this._messages.command("basemap.set")}}export class BasemapOperations extends OperationRegistry{get getAll(){return this._messages.operation("basemap.get-all")}get getCurrent(){return this._messages.operation("basemap.get-current")}}
|
|
1
|
+
import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";import{CommandRegistry}from"./../CommandRegistry.js";export class BasemapCommands extends CommandRegistry{get set(){return this._messages.command("basemap.set")}}export class BasemapOperations extends OperationRegistry{get getAll(){return this._messages.operation("basemap.get-all")}get getCurrent(){return this._messages.operation("basemap.get-current")}}export class BasemapEvents extends EventRegistry{get changed(){return this._messages.event("basemap.changed")}get set(){return this._messages.event("basemap.set")}}
|