@vertigis/viewer-spec 47.3.0 → 47.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.
- 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/app-config/web/FeatureInfoModelProperties.d.ts +15 -0
- package/messaging/common.d.ts +1 -1
- package/messaging/registry/edit.d.ts +87 -23
- package/messaging/registry/edit.js +1 -1
- package/messaging/registry/results.d.ts +10 -6
- package/messaging/registry/ui.d.ts +0 -2
- package/messaging/schema/common-action.schema.json +169 -30
- package/messaging/schema/common-event.schema.json +50 -6
- package/messaging/schema/mobile-action.schema.json +160 -30
- package/messaging/schema/mobile-event.schema.json +50 -6
- package/messaging/schema/web-action.schema.json +264 -34
- package/messaging/schema/web-event.schema.json +598 -14
- package/package.json +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,6 +10,11 @@ export interface FeatureInfoModelProperties extends CommonFeatureDetailsModelPro
|
|
|
10
10
|
* collection.
|
|
11
11
|
*/
|
|
12
12
|
onFeatureAdd?: Action;
|
|
13
|
+
/**
|
|
14
|
+
* A command or set of commands to execute when an interactive feature
|
|
15
|
+
* editing session begins.
|
|
16
|
+
*/
|
|
17
|
+
onFeatureEdit?: Action;
|
|
13
18
|
/**
|
|
14
19
|
* A command or set of commands to execute when a feature is removed from
|
|
15
20
|
* the collection.
|
|
@@ -19,4 +24,14 @@ export interface FeatureInfoModelProperties extends CommonFeatureDetailsModelPro
|
|
|
19
24
|
* A command or set of commands to execute when a related record is clicked.
|
|
20
25
|
*/
|
|
21
26
|
onRelatedRecordClick?: Action;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the feature details instance will show a button that runs the
|
|
29
|
+
* action that places the feature in edit mode.
|
|
30
|
+
*/
|
|
31
|
+
showEditButton?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, the feature details instance will show a button that deletes the
|
|
34
|
+
* feature permanently.
|
|
35
|
+
*/
|
|
36
|
+
showDeleteButton?: boolean;
|
|
22
37
|
}
|
package/messaging/common.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type Graphic from "@arcgis/core/Graphic";
|
|
|
2
2
|
import type Viewpoint from "@arcgis/core/Viewpoint";
|
|
3
3
|
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
4
4
|
import type Layer from "@arcgis/core/layers/Layer";
|
|
5
|
+
import type EsriFeatureSet from "@arcgis/core/rest/support/FeatureSet";
|
|
5
6
|
import type LineSymbol3D from "@arcgis/core/symbols/LineSymbol3D";
|
|
6
7
|
import type PictureFillSymbol from "@arcgis/core/symbols/PictureFillSymbol";
|
|
7
8
|
import type PictureMarkerSymbol from "@arcgis/core/symbols/PictureMarkerSymbol";
|
|
@@ -10,7 +11,6 @@ import type PolygonSymbol3D from "@arcgis/core/symbols/PolygonSymbol3D";
|
|
|
10
11
|
import type SimpleFillSymbol from "@arcgis/core/symbols/SimpleFillSymbol";
|
|
11
12
|
import type SimpleLineSymbol from "@arcgis/core/symbols/SimpleLineSymbol";
|
|
12
13
|
import type SimpleMarkerSymbol from "@arcgis/core/symbols/SimpleMarkerSymbol";
|
|
13
|
-
import type EsriFeatureSet from "@arcgis/core/tasks/support/FeatureSet";
|
|
14
14
|
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";
|
|
@@ -85,7 +85,7 @@ export interface AttachmentEventArgs {
|
|
|
85
85
|
attachment: Attachment;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Options for
|
|
88
|
+
* Options for interactive feature editing sessions.
|
|
89
89
|
*/
|
|
90
90
|
export interface EditUIOptions {
|
|
91
91
|
/**
|
|
@@ -114,18 +114,29 @@ export interface EditOptions {
|
|
|
114
114
|
* Whether to allow editing of feature attributes.
|
|
115
115
|
*/
|
|
116
116
|
editAttributes?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Whether to allow editing of feature attachments.
|
|
119
|
-
*/
|
|
120
|
-
editAttachments?: boolean;
|
|
121
117
|
/**
|
|
122
118
|
* Options for the geometry editing session.
|
|
123
119
|
*/
|
|
124
120
|
editGeometryOptions?: EditGeometryOptions;
|
|
125
121
|
}
|
|
126
122
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
123
|
+
* Used to update an in-progress interactive feature editing session with new
|
|
124
|
+
* attributes, attachments or geometry. Web only.
|
|
125
|
+
*/
|
|
126
|
+
export interface UpdateSessionArgs extends HasGeometry {
|
|
127
|
+
/**
|
|
128
|
+
* A collection of attributes that apply or are to be applied to the
|
|
129
|
+
* currently edited feature.
|
|
130
|
+
*/
|
|
131
|
+
attributes?: Record<string, string | number>;
|
|
132
|
+
/**
|
|
133
|
+
* A collection of attachments that apply or are to be applied to the
|
|
134
|
+
* currently edited feature.
|
|
135
|
+
*/
|
|
136
|
+
attachments?: Attachment[];
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Arguments for the "edit.create-feature" operation. A valid feature layer is required.
|
|
129
140
|
* The geometry is required for non-tabular features. Web only.
|
|
130
141
|
*/
|
|
131
142
|
export interface CreateFeatureArgs extends HasGeometry, HasLayers, HasMaps, EditUIOptions {
|
|
@@ -138,20 +149,37 @@ export interface CreateFeatureArgs extends HasGeometry, HasLayers, HasMaps, Edit
|
|
|
138
149
|
* layer. The default or first template will be used if not set.
|
|
139
150
|
*/
|
|
140
151
|
templateName?: string;
|
|
152
|
+
/**
|
|
153
|
+
* A type id to use as a starting point for this feature. This may return
|
|
154
|
+
* one or more templates and requires a layer with types defined.
|
|
155
|
+
*/
|
|
156
|
+
typeId?: string;
|
|
141
157
|
}
|
|
142
158
|
/**
|
|
143
159
|
* Arguments for the "edit.display-add-features" command. Web only.
|
|
144
160
|
*/
|
|
145
|
-
export interface DisplayAddFeatureArgs extends CreateFeatureArgs, HasMaps,
|
|
161
|
+
export interface DisplayAddFeatureArgs extends CreateFeatureArgs, HasMaps, EditOptions, EditUIOptions {
|
|
162
|
+
/**
|
|
163
|
+
* Arguments for the display of the attribute editing form.
|
|
164
|
+
*/
|
|
165
|
+
formUITarget?: HasUITarget;
|
|
166
|
+
/**
|
|
167
|
+
* Arguments for the display of the template picker.
|
|
168
|
+
*/
|
|
169
|
+
templateUITarget?: HasUITarget;
|
|
146
170
|
}
|
|
147
171
|
/**
|
|
148
172
|
* Arguments for the "edit.display-update-features" operation. Web only.
|
|
149
173
|
*/
|
|
150
|
-
export interface DisplayUpdateFeatureArgs extends EditCommandArgs, HasGeometry, HasMaps, EditOptions {
|
|
174
|
+
export interface DisplayUpdateFeatureArgs extends EditCommandArgs, HasGeometry, HasMaps, HasUITarget, EditOptions {
|
|
151
175
|
/**
|
|
152
176
|
* A collection of attributes to automatically apply to the updated feature.
|
|
153
177
|
*/
|
|
154
178
|
featureAttributes?: Record<string, unknown>;
|
|
179
|
+
/**
|
|
180
|
+
* Whether to allow editing of feature attachments. Web only.
|
|
181
|
+
*/
|
|
182
|
+
editAttachments?: boolean;
|
|
155
183
|
}
|
|
156
184
|
/**
|
|
157
185
|
* Arguments for the "edit.add-features", "edit.update-features" and
|
|
@@ -176,34 +204,60 @@ export declare class EditCommands extends CommandRegistry {
|
|
|
176
204
|
*/
|
|
177
205
|
get deleteAttachment(): Command<DeleteAttachmentArgs>;
|
|
178
206
|
/**
|
|
179
|
-
* Adds a feature to a particular layer. `
|
|
207
|
+
* Adds a feature to a particular layer. `Features` and
|
|
180
208
|
* `EditCommandArgs` are not supported on Mobile.
|
|
181
209
|
*/
|
|
182
|
-
get addFeature(): Command<Feature |
|
|
210
|
+
get addFeature(): Command<Feature | Features | EditCommandArgs>;
|
|
211
|
+
/**
|
|
212
|
+
* Cancels active editing sessions and discards any changes. If a feature is
|
|
213
|
+
* supplied only the sessions using that feature will be cancelled.
|
|
214
|
+
*
|
|
215
|
+
* @webOnly
|
|
216
|
+
*/
|
|
217
|
+
get cancel(): Command<Features>;
|
|
218
|
+
/**
|
|
219
|
+
* Completes active editing sessions and submits any changes made to the
|
|
220
|
+
* attributes, attachments or geometry to the feature source. If a feature
|
|
221
|
+
* is supplied, only sessions using that feature will close.
|
|
222
|
+
*
|
|
223
|
+
* @webOnly
|
|
224
|
+
*/
|
|
225
|
+
get complete(): Command<Features>;
|
|
183
226
|
/**
|
|
184
227
|
* Deletes the given feature or features from their feature sources.
|
|
185
228
|
* `EditCommandArgs` is not supported on Mobile.
|
|
186
229
|
*/
|
|
187
|
-
get deleteFeatures(): Command<
|
|
230
|
+
get deleteFeatures(): Command<Features | EditCommandArgs>;
|
|
188
231
|
/**
|
|
189
|
-
*
|
|
190
|
-
* supported on Mobile.
|
|
232
|
+
* Begin an interactive feature editing session with a new feature.
|
|
233
|
+
* `DisplayAddFeatureArgs` is not supported on Mobile.
|
|
191
234
|
*/
|
|
192
235
|
get displayAddFeature(): Command<FeatureSource | DisplayAddFeatureArgs>;
|
|
193
236
|
/**
|
|
194
|
-
*
|
|
195
|
-
* supported on Mobile.
|
|
237
|
+
* Begin an interactive feature editing session with an existing feature.
|
|
238
|
+
* `DisplayUpdateFeatureArgs` is not supported on Mobile.
|
|
196
239
|
*/
|
|
197
240
|
get displayUpdateFeature(): Command<Feature | DisplayUpdateFeatureArgs>;
|
|
198
241
|
/**
|
|
199
|
-
* Updates a feature.
|
|
200
|
-
*
|
|
242
|
+
* Updates a layer feature or features. Edits to the geometry and attributes
|
|
243
|
+
* of the supplied features will be committed to their respective feature sources.
|
|
244
|
+
* `Features` and `EditCommandArgs` are not supported on Mobile.
|
|
201
245
|
*/
|
|
202
|
-
get updateFeature(): Command<Feature |
|
|
246
|
+
get updateFeature(): Command<Feature | Features | EditCommandArgs>;
|
|
247
|
+
/**
|
|
248
|
+
* Updates an in-progress interactive feature editing session with new
|
|
249
|
+
* attributes, attachments, or geometry. These will be immediately applied
|
|
250
|
+
* to the current session, if one is active.
|
|
251
|
+
*
|
|
252
|
+
* @webOnly
|
|
253
|
+
*/
|
|
254
|
+
get updateSession(): Command<UpdateSessionArgs>;
|
|
203
255
|
}
|
|
204
256
|
export declare class EditOperations extends OperationRegistry {
|
|
205
257
|
/**
|
|
206
|
-
* Creates a new
|
|
258
|
+
* Creates a new feature for the supplied feature source from the supplied
|
|
259
|
+
* configuration. This operation does not add the feature to the source, but
|
|
260
|
+
* returns the feature for further processing.
|
|
207
261
|
*
|
|
208
262
|
* @webOnly
|
|
209
263
|
*/
|
|
@@ -229,15 +283,25 @@ export declare class EditEvents extends EventRegistry {
|
|
|
229
283
|
*/
|
|
230
284
|
get attachmentDeleted(): Event<AttachmentEventArgs>;
|
|
231
285
|
/**
|
|
232
|
-
* Raised when a feature is added.
|
|
286
|
+
* Raised when a new feature is added to a feature source.
|
|
233
287
|
*/
|
|
234
288
|
get featureAdded(): Event<Feature>;
|
|
235
289
|
/**
|
|
236
|
-
* Raised when a feature is deleted.
|
|
290
|
+
* Raised when a feature is deleted from a feature source.
|
|
237
291
|
*/
|
|
238
292
|
get featureDeleted(): Event<Feature>;
|
|
239
293
|
/**
|
|
240
|
-
* Raised when a feature
|
|
294
|
+
* Raised when the attributes or geometry of a feature from a feature source
|
|
295
|
+
* are updated.
|
|
241
296
|
*/
|
|
242
297
|
get featureUpdated(): Event<Feature>;
|
|
298
|
+
/**
|
|
299
|
+
* Raised when an interactive feature editing session is updated with new
|
|
300
|
+
* attributes, attachments, or feature geometry. The payload of this event
|
|
301
|
+
* represents the current state of that session and has not yet been applied
|
|
302
|
+
* to the feature.
|
|
303
|
+
*
|
|
304
|
+
* @webOnly
|
|
305
|
+
*/
|
|
306
|
+
get sessionUpdated(): Event<UpdateSessionArgs>;
|
|
243
307
|
}
|
|
@@ -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 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
|
+
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 cancel(){return this._messages.command("edit.cancel")}get complete(){return this._messages.command("edit.complete")}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")}get updateSession(){return this._messages.command("edit.update-session")}}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")}get sessionUpdated(){return this._messages.event("edit.session-updated")}}
|
|
@@ -261,9 +261,10 @@ export declare type ShowResultsArgs = Features | (UpdateResultsFeaturesArgs & {
|
|
|
261
261
|
*/
|
|
262
262
|
export interface SetDisplayComponentArgs {
|
|
263
263
|
/**
|
|
264
|
-
* Sets the
|
|
265
|
-
*
|
|
266
|
-
*
|
|
264
|
+
* Sets the selector, using CSS selector syntax, which queries for results
|
|
265
|
+
* components in the app layout XML, such as the Results List or Results
|
|
266
|
+
* Table components. The selector is used to determine which components will
|
|
267
|
+
* be activated when displaying results using `results.display`.
|
|
267
268
|
*/
|
|
268
269
|
selector: string;
|
|
269
270
|
/**
|
|
@@ -283,9 +284,12 @@ export declare class ResultsCommands extends CommandRegistry {
|
|
|
283
284
|
*/
|
|
284
285
|
get display(): Command<Features | UpdateResultsFeaturesArgs>;
|
|
285
286
|
/**
|
|
286
|
-
* Sets the
|
|
287
|
-
*
|
|
288
|
-
*
|
|
287
|
+
* Sets the selector, using CSS selector syntax, which queries for results
|
|
288
|
+
* components in the app layout XML, such as the Results List or Results
|
|
289
|
+
* Table components. The selector is used to determine which components will
|
|
290
|
+
* be activated when displaying results using `results.display`. All other
|
|
291
|
+
* components that do not match the selector are deactivated after running
|
|
292
|
+
* this command.
|
|
289
293
|
*
|
|
290
294
|
* @webOnly
|
|
291
295
|
*/
|