@vertigis/viewer-spec 46.4.2 → 47.2.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/app-config/schema/common-app-config.schema.json +1 -1
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/layout/schema/layout-common.xsd +33 -3
- package/messaging/registry/edit.d.ts +45 -4
- package/messaging/registry/edit.js +1 -1
- package/messaging/registry/system.d.ts +60 -0
- package/messaging/registry/system.js +1 -1
- package/messaging/schema/common-action.schema.json +252 -110
- package/messaging/schema/mobile-action.schema.json +303 -158
- package/messaging/schema/web-action.schema.json +271 -132
- package/package.json +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -713,13 +713,43 @@
|
|
|
713
713
|
<element name="layer-presets" substitutionGroup="tns:component">
|
|
714
714
|
<annotation>
|
|
715
715
|
<documentation xml:lang="en">
|
|
716
|
-
A component that shows a list of layer presets and allows users
|
|
717
|
-
|
|
716
|
+
A component that shows a list of layer presets and allows users to apply
|
|
717
|
+
them.
|
|
718
718
|
</documentation>
|
|
719
719
|
</annotation>
|
|
720
720
|
<complexType>
|
|
721
721
|
<complexContent>
|
|
722
|
-
<extension base="tns:Component"
|
|
722
|
+
<extension base="tns:Component">
|
|
723
|
+
<attribute name="filter-by">
|
|
724
|
+
<annotation>
|
|
725
|
+
<documentation xml:lang="en">
|
|
726
|
+
Indicates how the filter box will behave; if the value is
|
|
727
|
+
'none', no filter box will be displayed. Web only.
|
|
728
|
+
</documentation>
|
|
729
|
+
</annotation>
|
|
730
|
+
<simpleType>
|
|
731
|
+
<restriction base="string">
|
|
732
|
+
<enumeration value="none"/>
|
|
733
|
+
<enumeration value="title"/>
|
|
734
|
+
<enumeration value="title-and-description"/>
|
|
735
|
+
</restriction>
|
|
736
|
+
</simpleType>
|
|
737
|
+
</attribute>
|
|
738
|
+
<attribute name="show-title" type="boolean" default="true">
|
|
739
|
+
<annotation>
|
|
740
|
+
<documentation xml:lang="en">
|
|
741
|
+
Indicates if the title should be displayed. Web only.
|
|
742
|
+
</documentation>
|
|
743
|
+
</annotation>
|
|
744
|
+
</attribute>
|
|
745
|
+
<attribute name="show-icon" type="boolean" default="true">
|
|
746
|
+
<annotation>
|
|
747
|
+
<documentation xml:lang="en">
|
|
748
|
+
Indicates if the icon should be displayed. Web only.
|
|
749
|
+
</documentation>
|
|
750
|
+
</annotation>
|
|
751
|
+
</attribute>
|
|
752
|
+
</extension>
|
|
723
753
|
</complexContent>
|
|
724
754
|
</complexType>
|
|
725
755
|
</element>
|
|
@@ -7,10 +7,11 @@ import type { Event } from "../Event.js";
|
|
|
7
7
|
import { EventRegistry } from "../EventRegistry.js";
|
|
8
8
|
import type { Operation } from "../Operation.js";
|
|
9
9
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
10
|
-
import type { HasFeatures, HasGeometry, HasLayers, HasMaps, HasUITarget, MapsLike } from "../common.js";
|
|
10
|
+
import type { Features, File, HasFeatures, HasGeometry, HasLayers, HasMaps, HasUITarget, MapsLike } from "../common.js";
|
|
11
11
|
import type { EditGeometryOptions } from "./sketching.js";
|
|
12
12
|
/**
|
|
13
|
-
* Arguments for the "edit.add-attachment" command.
|
|
13
|
+
* Arguments for the "edit.add-attachment" command. Supported by both Web and
|
|
14
|
+
* Mobile.
|
|
14
15
|
*/
|
|
15
16
|
export interface AddAttachmentArgs {
|
|
16
17
|
/**
|
|
@@ -34,6 +35,42 @@ export interface AddAttachmentArgs {
|
|
|
34
35
|
*/
|
|
35
36
|
data: number[];
|
|
36
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* VertiGIS Studio Web's arguments for the "edit.add-attachment" command. Not
|
|
40
|
+
* supported by Mobile.
|
|
41
|
+
*/
|
|
42
|
+
export interface WebAddAttachmentArgs {
|
|
43
|
+
/**
|
|
44
|
+
* The feature(s) to add the attachment(s) to. If multiple features are
|
|
45
|
+
* specified, the attachment(s) will be added to all features.
|
|
46
|
+
*/
|
|
47
|
+
features: Features;
|
|
48
|
+
/**
|
|
49
|
+
* The blob(s) that contains the file attachment(s). If multiple attachments
|
|
50
|
+
* are specified, all attachment will be added to the feature(s).
|
|
51
|
+
*/
|
|
52
|
+
blobs: File | File[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Arguments for the "edit.delete-attachment" command.
|
|
56
|
+
*/
|
|
57
|
+
export interface DeleteAttachmentArgs {
|
|
58
|
+
/**
|
|
59
|
+
* The feature(s) to remove the attachment(s) from.
|
|
60
|
+
*/
|
|
61
|
+
features: Features;
|
|
62
|
+
/**
|
|
63
|
+
* The attachment(s) to remove from the feature(s). This property can be
|
|
64
|
+
* populated with the title(s) or ID(s) of the attachments(s). Any and all
|
|
65
|
+
* matching attachments found on the input features will be deleted. Web
|
|
66
|
+
* only.
|
|
67
|
+
*/
|
|
68
|
+
attachments?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* The attachment to remove from the feature(s). Mobile only.
|
|
71
|
+
*/
|
|
72
|
+
gcxAttachment?: Attachment;
|
|
73
|
+
}
|
|
37
74
|
/**
|
|
38
75
|
* Arguments for various attachment events.
|
|
39
76
|
*/
|
|
@@ -131,9 +168,13 @@ export declare class EditCommands extends CommandRegistry {
|
|
|
131
168
|
* Create and add an attachment to a provided feature, using the given
|
|
132
169
|
* attachment data.
|
|
133
170
|
*
|
|
134
|
-
* @mobileOnly
|
|
135
171
|
*/
|
|
136
|
-
get addAttachment(): Command<AddAttachmentArgs>;
|
|
172
|
+
get addAttachment(): Command<AddAttachmentArgs | WebAddAttachmentArgs>;
|
|
173
|
+
/**
|
|
174
|
+
* Deletes attachments from feature(s).
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
get deleteAttachment(): Command<DeleteAttachmentArgs>;
|
|
137
178
|
/**
|
|
138
179
|
* Adds a feature to a particular layer. `Feature[]` and
|
|
139
180
|
* `EditCommandArgs` are not supported on Mobile.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class EditCommands extends CommandRegistry{get addAttachment(){return this._messages.command("edit.add-attachment")}get addFeature(){return this._messages.command("edit.add-feature")}get deleteFeatures(){return this._messages.command("edit.delete-features")}get displayAddFeature(){return this._messages.command("edit.display-add-feature")}get displayUpdateFeature(){return this._messages.command("edit.display-update-feature")}get updateFeature(){return this._messages.command("edit.update-feature")}}export class EditOperations extends OperationRegistry{get createFeature(){return this._messages.operation("edit.create-feature")}}export class EditEvents extends EventRegistry{get attachmentAdded(){return this._messages.event("edit.attachment-added")}get attachmentUpdated(){return this._messages.event("edit.attachment-updated")}get attachmentDeleted(){return this._messages.event("edit.attachment-deleted")}get featureAdded(){return this._messages.event("edit.feature-added")}get featureDeleted(){return this._messages.event("edit.feature-deleted")}get featureUpdated(){return this._messages.event("edit.feature-updated")}}
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class EditCommands extends CommandRegistry{get addAttachment(){return this._messages.command("edit.add-attachment")}get deleteAttachment(){return this._messages.command("edit.delete-attachment")}get addFeature(){return this._messages.command("edit.add-feature")}get deleteFeatures(){return this._messages.command("edit.delete-features")}get displayAddFeature(){return this._messages.command("edit.display-add-feature")}get displayUpdateFeature(){return this._messages.command("edit.display-update-feature")}get updateFeature(){return this._messages.command("edit.update-feature")}}export class EditOperations extends OperationRegistry{get createFeature(){return this._messages.operation("edit.create-feature")}}export class EditEvents extends EventRegistry{get attachmentAdded(){return this._messages.event("edit.attachment-added")}get attachmentUpdated(){return this._messages.event("edit.attachment-updated")}get attachmentDeleted(){return this._messages.event("edit.attachment-deleted")}get featureAdded(){return this._messages.event("edit.feature-added")}get featureDeleted(){return this._messages.event("edit.feature-deleted")}get featureUpdated(){return this._messages.event("edit.feature-updated")}}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Command } from "../Command.js";
|
|
2
2
|
import { CommandRegistry } from "../CommandRegistry.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 type { Blob, File, HasFeatures, HasGeometry, HasLayers, HasMaps, HasUITarget } from "../common.js";
|
|
@@ -82,6 +84,34 @@ export interface OpenUrlArgs {
|
|
|
82
84
|
*/
|
|
83
85
|
numberFormatterLocale?: string;
|
|
84
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Arguments for the system.disable-background-location-updates command.
|
|
89
|
+
*/
|
|
90
|
+
export interface BackgroundLocationUpdatesArgs {
|
|
91
|
+
/**
|
|
92
|
+
* The task ID for enabling and disabling background location updates. Once
|
|
93
|
+
* enabled using a certain task ID, background location updates can only be
|
|
94
|
+
* stopped once they are disabled with that same task ID.
|
|
95
|
+
*
|
|
96
|
+
* Cannot be set to null, but if this argument is not provided, a preset
|
|
97
|
+
* default value will be used.
|
|
98
|
+
*/
|
|
99
|
+
taskId?: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Arguments for the system.enable-background-location-updates command.
|
|
103
|
+
*/
|
|
104
|
+
export interface EnableBackgroundLocationUpdateArgs extends BackgroundLocationUpdatesArgs {
|
|
105
|
+
/**
|
|
106
|
+
* The title used in the sticky notification on Android. If null or an empty
|
|
107
|
+
* string, a default title will be used.
|
|
108
|
+
*/
|
|
109
|
+
androidNotificationTitle?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The message used in the sticky notification on Android.
|
|
112
|
+
*/
|
|
113
|
+
androidNotificationMessage?: string;
|
|
114
|
+
}
|
|
85
115
|
export declare class SystemCommands extends CommandRegistry {
|
|
86
116
|
/**
|
|
87
117
|
* Displays a sharing link to the user.
|
|
@@ -121,6 +151,22 @@ export declare class SystemCommands extends CommandRegistry {
|
|
|
121
151
|
* @mobileOnly
|
|
122
152
|
*/
|
|
123
153
|
get keepScreenOn(): Command<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* Enables background location updates. While enabled, the application will
|
|
156
|
+
* continue to execute code while running in the background.
|
|
157
|
+
*
|
|
158
|
+
* Note for iOS: If the user has not accepted location permissions for the
|
|
159
|
+
* app, no code will be allowed to execute in the background.
|
|
160
|
+
*
|
|
161
|
+
* @mobileOnly
|
|
162
|
+
*/
|
|
163
|
+
get enableBackgroundLocationUpdates(): Command<EnableBackgroundLocationUpdateArgs>;
|
|
164
|
+
/**
|
|
165
|
+
* Disables background location updates.
|
|
166
|
+
*
|
|
167
|
+
* @mobileOnly
|
|
168
|
+
*/
|
|
169
|
+
get disableBackgroundLocationUpdates(): Command<BackgroundLocationUpdatesArgs>;
|
|
124
170
|
}
|
|
125
171
|
export declare class SystemOperations extends OperationRegistry {
|
|
126
172
|
/**
|
|
@@ -143,3 +189,17 @@ export declare class SystemOperations extends OperationRegistry {
|
|
|
143
189
|
*/
|
|
144
190
|
get getSharingLink(): Operation<void, string>;
|
|
145
191
|
}
|
|
192
|
+
export declare class SystemEvents extends EventRegistry {
|
|
193
|
+
/**
|
|
194
|
+
* Raised when background location updates are enabled.
|
|
195
|
+
*
|
|
196
|
+
* @mobileOnly
|
|
197
|
+
*/
|
|
198
|
+
get backgroundLocationUpdatesEnabled(): Event;
|
|
199
|
+
/**
|
|
200
|
+
* Raised when background location updates are disabled.
|
|
201
|
+
*
|
|
202
|
+
* @mobileOnly
|
|
203
|
+
*/
|
|
204
|
+
get backgroundLocationUpdatesDisabled(): Event;
|
|
205
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.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")}}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")}}
|
|
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")}}
|