@vertigis/viewer-spec 53.0.0 → 53.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/messaging/common.d.ts +22 -0
- package/messaging/registry/drawing.d.ts +3 -12
- package/messaging/registry/layers.d.ts +83 -2
- package/messaging/registry/layers.js +1 -1
- package/messaging/registry/results.d.ts +33 -17
- package/messaging/registry/results.js +1 -1
- package/messaging/registry/system.d.ts +8 -1
- package/messaging/registry/system.js +1 -1
- package/messaging/schema/common-action.schema.json +151 -2
- package/messaging/schema/mobile-action.schema.json +151 -2
- package/messaging/schema/mobile-event.schema.json +2 -2
- package/messaging/schema/web-action.schema.json +753 -29
- package/messaging/schema/web-event.schema.json +2 -2
- package/package.json +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/messaging/common.d.ts
CHANGED
|
@@ -270,6 +270,15 @@ export interface HasSymbol {
|
|
|
270
270
|
*/
|
|
271
271
|
symbol?: SymbolLike;
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* An object that has a `symbols`property.
|
|
275
|
+
*/
|
|
276
|
+
export interface HasSymbols {
|
|
277
|
+
/**
|
|
278
|
+
* The symbols to use for the command/operation.
|
|
279
|
+
*/
|
|
280
|
+
symbols?: SymbolLike | SymbolLike[];
|
|
281
|
+
}
|
|
273
282
|
/**
|
|
274
283
|
* An object that is convertible to an Esri Viewpoint, or that has a viewpoint
|
|
275
284
|
* property.
|
|
@@ -324,3 +333,16 @@ export interface File extends Blob {
|
|
|
324
333
|
*/
|
|
325
334
|
readonly name: string;
|
|
326
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* A data containing object that may or may not be named.
|
|
338
|
+
*/
|
|
339
|
+
export type FileLike = File | Blob;
|
|
340
|
+
/**
|
|
341
|
+
* An object that has a `blobs` property containing data files.
|
|
342
|
+
*/
|
|
343
|
+
export interface HasFiles {
|
|
344
|
+
/**
|
|
345
|
+
* The data files to use for the command/operation.
|
|
346
|
+
*/
|
|
347
|
+
blobs?: FileLike[];
|
|
348
|
+
}
|
|
@@ -22,7 +22,7 @@ import type { Command } from "../Command.js";
|
|
|
22
22
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
23
23
|
import type { Operation } from "../Operation.js";
|
|
24
24
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
25
|
-
import type { CreateGraphicsResult, FeaturesLike, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, HasUITarget, SymbolLike } from "../common.js";
|
|
25
|
+
import type { CreateGraphicsResult, FeaturesLike, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, HasSymbols, HasUITarget, SymbolLike } from "../common.js";
|
|
26
26
|
import type { CaptureGeometryArgs } from "./sketching.js";
|
|
27
27
|
/**
|
|
28
28
|
* Symbols supported for drawing.
|
|
@@ -42,16 +42,11 @@ export interface GetDefaultSymbolArgs {
|
|
|
42
42
|
* Arguments for the drawing.edit-symbol operation. Only available in VertiGIS
|
|
43
43
|
* Studio Web.
|
|
44
44
|
*/
|
|
45
|
-
export interface EditSymbolArgs extends HasMaps, HasLayers, HasGraphics, HasFeatures, HasUITarget {
|
|
45
|
+
export interface EditSymbolArgs extends HasSymbol, HasSymbols, HasMaps, HasLayers, HasGraphics, HasFeatures, HasUITarget {
|
|
46
46
|
/**
|
|
47
47
|
* The geometry type for the symbol to create.
|
|
48
48
|
*/
|
|
49
49
|
geometryType?: GeometryType;
|
|
50
|
-
/**
|
|
51
|
-
* The symbol to edit. (Currently supports only SimpleLineSymbol and
|
|
52
|
-
* SimpleFillSymbol).
|
|
53
|
-
*/
|
|
54
|
-
symbol?: Symbol;
|
|
55
50
|
/**
|
|
56
51
|
* Symbol presets that can be assigned to a graphic. If defined, these
|
|
57
52
|
* presets will override any that are configured in the DrawService.
|
|
@@ -69,11 +64,7 @@ export interface EditSymbolArgs extends HasMaps, HasLayers, HasGraphics, HasFeat
|
|
|
69
64
|
* Arguments for the drawing.edit-symbol operation. Only available in VertiGIS
|
|
70
65
|
* Studio Web.
|
|
71
66
|
*/
|
|
72
|
-
export interface EditSymbolResult extends HasMaps, HasLayers, HasGraphics, HasFeatures {
|
|
73
|
-
/**
|
|
74
|
-
* The symbol that is the result of the operation.
|
|
75
|
-
*/
|
|
76
|
-
symbol: Symbol;
|
|
67
|
+
export interface EditSymbolResult extends HasMaps, HasLayers, HasGraphics, HasFeatures, HasSymbols, HasSymbol {
|
|
77
68
|
}
|
|
78
69
|
/**
|
|
79
70
|
* Arguments for the "drawing.create-graphics" operation. `GeometryLike`,
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import type { TaskSettingsProperties } from "@vertigis/arcgis-extensions/data/TaskSettings.js";
|
|
2
|
+
import type { PopupInfo } from "@vertigis/arcgis-extensions/portal/PopupInfo.js";
|
|
1
3
|
import type { Command } from "../Command.js";
|
|
2
4
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
3
5
|
import type { Event } from "../Event.js";
|
|
4
6
|
import { EventRegistry } from "../EventRegistry.js";
|
|
5
|
-
import type {
|
|
7
|
+
import type { Operation } from "../Operation.js";
|
|
8
|
+
import { OperationRegistry } from "../OperationRegistry.js";
|
|
9
|
+
import type { HasLayers, HasMaps, HasSymbol, HasSymbols } from "../common.js";
|
|
6
10
|
/**
|
|
7
11
|
* Arguments for the "layer.visibility-changed" event.
|
|
8
12
|
*/
|
|
@@ -29,7 +33,7 @@ export interface SetLabelVisibilityArgs extends HasLayers, HasMaps {
|
|
|
29
33
|
/**
|
|
30
34
|
* Arguments for the layer.set-symbol command.
|
|
31
35
|
*/
|
|
32
|
-
export type SetSymbolArgs =
|
|
36
|
+
export type SetSymbolArgs = HasSymbol & HasSymbols & HasLayers & HasMaps;
|
|
33
37
|
/**
|
|
34
38
|
* Arguments for the layer.set-visibility command. If no 'maps' are specified,
|
|
35
39
|
* all active maps in the layout will be targeted. If no 'layers' are specified,
|
|
@@ -43,6 +47,28 @@ export interface SetVisibilityArgs extends HasLayers, HasMaps {
|
|
|
43
47
|
*/
|
|
44
48
|
visible: boolean;
|
|
45
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Common settings for a layer.
|
|
52
|
+
*/
|
|
53
|
+
export interface HasLayerSettings {
|
|
54
|
+
/**
|
|
55
|
+
* Settings relevant to layer tasks.
|
|
56
|
+
*/
|
|
57
|
+
taskSettings?: TaskSettingsProperties | TaskSettingsProperties[];
|
|
58
|
+
/**
|
|
59
|
+
* Configuration for a popup template to be used by features in the layer.
|
|
60
|
+
*/
|
|
61
|
+
popupTemplate?: PopupInfo | PopupInfo[];
|
|
62
|
+
/**
|
|
63
|
+
* The title of the layer.
|
|
64
|
+
*/
|
|
65
|
+
title?: string | string[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Arguments for a `layers.edit-settings` operation.
|
|
69
|
+
*/
|
|
70
|
+
export interface LayerSettingsArgs extends HasLayerSettings, HasLayers, HasSymbols, HasMaps {
|
|
71
|
+
}
|
|
46
72
|
export declare class LayersCommands extends CommandRegistry {
|
|
47
73
|
/**
|
|
48
74
|
* Guard command for enabling the layers.set-symbol command.
|
|
@@ -50,12 +76,30 @@ export declare class LayersCommands extends CommandRegistry {
|
|
|
50
76
|
* @webOnly
|
|
51
77
|
*/
|
|
52
78
|
get ensureCanSetSymbol(): Command<SetSymbolArgs>;
|
|
79
|
+
/**
|
|
80
|
+
* Updates the provided layer(s) with new popup template configuration.
|
|
81
|
+
*
|
|
82
|
+
* @webOnly
|
|
83
|
+
*/
|
|
84
|
+
get setPopupTemplate(): Command<LayerSettingsArgs>;
|
|
53
85
|
/**
|
|
54
86
|
* Updates the symbol for the provided layer(s).
|
|
55
87
|
*
|
|
56
88
|
* @webOnly
|
|
57
89
|
*/
|
|
58
90
|
get setSymbol(): Command<SetSymbolArgs>;
|
|
91
|
+
/**
|
|
92
|
+
* Updates the provided layer(s) with new task settings.
|
|
93
|
+
*
|
|
94
|
+
* @webOnly
|
|
95
|
+
*/
|
|
96
|
+
get setTaskSettings(): Command<LayerSettingsArgs>;
|
|
97
|
+
/**
|
|
98
|
+
* Changes the title of the provided layer(s).
|
|
99
|
+
*
|
|
100
|
+
* @webOnly
|
|
101
|
+
*/
|
|
102
|
+
get setTitle(): Command<LayerSettingsArgs>;
|
|
59
103
|
/**
|
|
60
104
|
* Updates the visibility of the provided layer(s).
|
|
61
105
|
*
|
|
@@ -75,6 +119,43 @@ export declare class LayersCommands extends CommandRegistry {
|
|
|
75
119
|
*/
|
|
76
120
|
get hideLabels(): Command<SetLabelVisibilityArgs>;
|
|
77
121
|
}
|
|
122
|
+
export declare class LayersOperations extends OperationRegistry {
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves the popup configuration applied to the supplied layer(s).
|
|
125
|
+
*
|
|
126
|
+
* @webOnly
|
|
127
|
+
*/
|
|
128
|
+
get getPopupTemplate(): Operation<HasLayers, LayerSettingsArgs>;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves the values for the 'taskSettings' applied to the supplied
|
|
131
|
+
* layer(s).
|
|
132
|
+
*
|
|
133
|
+
* @webOnly
|
|
134
|
+
*/
|
|
135
|
+
get getTaskSettings(): Operation<HasLayers, LayerSettingsArgs>;
|
|
136
|
+
/**
|
|
137
|
+
* Retrieves the titles of the supplied layer(s).
|
|
138
|
+
*
|
|
139
|
+
* @webOnly
|
|
140
|
+
*/
|
|
141
|
+
get getTitle(): Operation<HasLayers, LayerSettingsArgs>;
|
|
142
|
+
/**
|
|
143
|
+
* Shows a UI for editing the settings on an existing layer or layers. Note
|
|
144
|
+
* that changes will not be applied to the supplied layers by this
|
|
145
|
+
* operation. Use `layers.set-*` for this.
|
|
146
|
+
*
|
|
147
|
+
* @webOnly
|
|
148
|
+
*/
|
|
149
|
+
get editSettings(): Operation<LayerSettingsArgs, LayerSettingsArgs>;
|
|
150
|
+
/**
|
|
151
|
+
* Edit the symbol from an existing layer or layers. Note that changes to
|
|
152
|
+
* these symbols will not be applied to the layers by this operation. Use
|
|
153
|
+
* `layers.set-symbol` for this.
|
|
154
|
+
*
|
|
155
|
+
* @webOnly
|
|
156
|
+
*/
|
|
157
|
+
get editSymbols(): Operation<SetSymbolArgs, HasLayers & HasMaps & HasSymbols>;
|
|
158
|
+
}
|
|
78
159
|
export declare class LayersEvents extends EventRegistry {
|
|
79
160
|
/**
|
|
80
161
|
* Raised when a layer's visibility changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry as
|
|
1
|
+
import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export class LayersCommands extends e{get ensureCanSetSymbol(){return this._messages.command("layers.ensure-can-set-symbol")}get setPopupTemplate(){return this._messages.command("layers.set-popup-template")}get setSymbol(){return this._messages.command("layers.set-symbol")}get setTaskSettings(){return this._messages.command("layers.set-task-settings")}get setTitle(){return this._messages.command("layers.set-title")}get setVisibility(){return this._messages.command("layers.set-visibility")}get showLabels(){return this._messages.command("layers.show-labels")}get hideLabels(){return this._messages.command("layers.hide-labels")}}export class LayersOperations extends t{get getPopupTemplate(){return this._messages.operation("layers.get-popup-template")}get getTaskSettings(){return this._messages.operation("layers.get-task-settings")}get getTitle(){return this._messages.operation("layers.get-title")}get editSettings(){return this._messages.operation("layers.edit-settings")}get editSymbols(){return this._messages.operation("layers.edit-symbols")}}export class LayersEvents extends s{get visibilityChanged(){return this._messages.event("layers.visibility-changed")}}
|
|
@@ -6,8 +6,9 @@ import type { Attachment } from "@vertigis/arcgis-extensions/data/Attachment";
|
|
|
6
6
|
import type { Feature } from "@vertigis/arcgis-extensions/data/Feature";
|
|
7
7
|
import type { FeatureSettingsProperties } from "@vertigis/arcgis-extensions/data/FeatureSettings";
|
|
8
8
|
import type { FeatureSource } from "@vertigis/arcgis-extensions/data/FeatureSource";
|
|
9
|
+
import type { FeatureStream } from "@vertigis/arcgis-extensions/data/FeatureStream.js";
|
|
9
10
|
import type { SchemaProperties } from "@vertigis/arcgis-extensions/data/Schema";
|
|
10
|
-
import type { FromCsvOptions, FromShapefileOptions, FromXLSXOptions, ToCsvOptions, ToShapefileOptions, ToXLSXOptions } from "@vertigis/arcgis-extensions/data/convert";
|
|
11
|
+
import type { FromCsvOptions, FromShapefileOptions, FromXLSXOptions, ToCsvOptions, ToShapefileOptions, ToXLSXOptions, UploadDataOptions } from "@vertigis/arcgis-extensions/data/convert";
|
|
11
12
|
import type { QueryOptions } from "@vertigis/arcgis-extensions/tasks/query/QueryOptions";
|
|
12
13
|
import type { CardSize, ViewMode } from "../../app-config/web/ResultsModelProperties.js";
|
|
13
14
|
import type { Command } from "../Command.js";
|
|
@@ -16,7 +17,7 @@ import type { Event } from "../Event.js";
|
|
|
16
17
|
import { EventRegistry } from "../EventRegistry.js";
|
|
17
18
|
import type { Operation } from "../Operation.js";
|
|
18
19
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
19
|
-
import type { Blob, Features, FeaturesLike, File, GraphicsLike, HasFeatures, MapsLike, ModelRef } from "../common.js";
|
|
20
|
+
import type { Blob, Features, FeaturesLike, File, GraphicsLike, HasFeatures, HasFiles, MapsLike, ModelRef } from "../common.js";
|
|
20
21
|
import type { VisualElement } from "../mobile.js";
|
|
21
22
|
/**
|
|
22
23
|
* Well known Results Set Ids.
|
|
@@ -63,13 +64,18 @@ export interface ToCsvConversionArgs extends ToCsvOptions {
|
|
|
63
64
|
features: Features;
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
+
* Arguements for the "results.upload-data-args-to-feature" operation.
|
|
67
68
|
*/
|
|
68
|
-
export interface
|
|
69
|
+
export interface UploadDataArgs extends UploadDataOptions {
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
+
* A title for this dataset.
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
|
+
title?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Arguments for the "results.from-csv" operation.
|
|
77
|
+
*/
|
|
78
|
+
export interface FromCsvConversionArgs extends FromCsvOptions, HasFiles {
|
|
73
79
|
}
|
|
74
80
|
/**
|
|
75
81
|
* Arguments for the "results.convert-to-xlsx" operation.
|
|
@@ -83,11 +89,7 @@ export interface ToXLSXConversionArgs extends ToXLSXOptions {
|
|
|
83
89
|
/**
|
|
84
90
|
* Arguments for the "results.from-xlsx" operation.
|
|
85
91
|
*/
|
|
86
|
-
export interface FromXLSXConversionArgs extends FromXLSXOptions {
|
|
87
|
-
/**
|
|
88
|
-
* The blob(s) that contains the xlsx file.
|
|
89
|
-
*/
|
|
90
|
-
blobs: Blob[];
|
|
92
|
+
export interface FromXLSXConversionArgs extends FromXLSXOptions, HasFiles {
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
95
|
* Arguments for the "results.convert-to-shapefile" operation.
|
|
@@ -101,11 +103,7 @@ export interface ToShapefileConversionArgs extends ToShapefileOptions {
|
|
|
101
103
|
/**
|
|
102
104
|
* Arguments for the "results.from-shapefile" operation.
|
|
103
105
|
*/
|
|
104
|
-
export interface FromShapefileConversionArgs extends FromShapefileOptions {
|
|
105
|
-
/**
|
|
106
|
-
* The blob(s) that contains the Shapefile file.
|
|
107
|
-
*/
|
|
108
|
-
blobs: Blob[];
|
|
106
|
+
export interface FromShapefileConversionArgs extends FromShapefileOptions, HasFiles {
|
|
109
107
|
}
|
|
110
108
|
/**
|
|
111
109
|
* Arguments for the "results.convert-to-layers" operation.
|
|
@@ -477,6 +475,13 @@ export declare class ResultsEvents extends EventRegistry {
|
|
|
477
475
|
get relatedDetailsShown(): Event<FeatureDetailsEvent>;
|
|
478
476
|
}
|
|
479
477
|
export declare class ResultsOperations extends OperationRegistry {
|
|
478
|
+
/**
|
|
479
|
+
* Display a dialog to configure the arguements for the upload layer
|
|
480
|
+
* operation.
|
|
481
|
+
*
|
|
482
|
+
* @webOnly
|
|
483
|
+
*/
|
|
484
|
+
get configureUploadData(): Operation<UploadDataArgs[], UploadDataArgs[]>;
|
|
480
485
|
/**
|
|
481
486
|
* Check if features are contained in the specified results.
|
|
482
487
|
*
|
|
@@ -523,7 +528,18 @@ export declare class ResultsOperations extends OperationRegistry {
|
|
|
523
528
|
*
|
|
524
529
|
* @webOnly
|
|
525
530
|
*/
|
|
526
|
-
get fromFiles(): Operation<File[]
|
|
531
|
+
get fromFiles(): Operation<FromConverterArgs | File[], Features>;
|
|
532
|
+
/**
|
|
533
|
+
* Convert the specified csv, xlsx or shapefile files to args that can be
|
|
534
|
+
* used to create Features.
|
|
535
|
+
*
|
|
536
|
+
* @webOnly
|
|
537
|
+
*/
|
|
538
|
+
get uploadDataFromFiles(): Operation<FromConverterArgs | File[], UploadDataArgs[]>;
|
|
539
|
+
/**
|
|
540
|
+
* Convert the supplied upload data args to features.
|
|
541
|
+
*/
|
|
542
|
+
get uploadDataToFeatures(): Operation<UploadDataArgs[], FeatureStream[]>;
|
|
527
543
|
/**
|
|
528
544
|
* Convert the specified Shapefile blob to Features.
|
|
529
545
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export var KnownResultSetIds;!function(e){e.STARRED="vgs-starred"}(KnownResultSetIds||(KnownResultSetIds={}));export class ResultsCommands extends e{get activateDisplayComponents(){return this._messages.command("results.activate-display-components")}get display(){return this._messages.command("results.display")}get setDisplayComponents(){return this._messages.command("results.set-display-components")}get displayDetails(){return this._messages.command("results.display-details")}get displaySummary(){return this._messages.command("results.display-summary")}get displayNewDetails(){return this._messages.command("results.display-new-details")}get add(){return this._messages.command("results.add")}get intersect(){return this._messages.command("results.intersect")}get remove(){return this._messages.command("results.remove")}get clear(){return this._messages.command("results.clear")}get clearDetails(){return this._messages.command("results.clear-details")}get hideDetails(){return this._messages.command("results.hide-details")}get openAttachment(){return this._messages.command("results.open-attachment")}get refresh(){return this._messages.command("results.refresh")}get setListViewMode(){return this._messages.command("results.set-list-view-mode")}get setListCardSize(){return this._messages.command("results.set-list-card-size")}}export class ResultsEvents extends s{get changed(){return this._messages.event("results.changed")}get displayed(){return this._messages.event("results.displayed")}get attachmentOpened(){return this._messages.event("results.attachment-opened")}get detailsShown(){return this._messages.event("results.details-shown")}get relatedDetailsShown(){return this._messages.event("results.related-details-shown")}}export class ResultsOperations extends t{get contains(){return this._messages.operation("results.contains")}get convertToCsv(){return this._messages.operation("results.convert-to-csv")}get convertToXlsx(){return this._messages.operation("results.convert-to-xlsx")}get convertToShapefile(){return this._messages.operation("results.convert-to-shapefile")}get convertToLayers(){return this._messages.operation("results.convert-to-layers")}get fromCsv(){return this._messages.operation("results.from-csv")}get fromFiles(){return this._messages.operation("results.from-files")}get fromShapefile(){return this._messages.operation("results.from-shapefile")}get fromXlsx(){return this._messages.operation("results.from-xlsx")}get fromGraphics(){return this._messages.operation("results.from-graphics")}get toGraphics(){return this._messages.operation("results.to-graphics")}get getFeatures(){return this._messages.operation("results.get-features")}get filter(){return this._messages.operation("results.filter")}}
|
|
1
|
+
import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export var KnownResultSetIds;!function(e){e.STARRED="vgs-starred"}(KnownResultSetIds||(KnownResultSetIds={}));export class ResultsCommands extends e{get activateDisplayComponents(){return this._messages.command("results.activate-display-components")}get display(){return this._messages.command("results.display")}get setDisplayComponents(){return this._messages.command("results.set-display-components")}get displayDetails(){return this._messages.command("results.display-details")}get displaySummary(){return this._messages.command("results.display-summary")}get displayNewDetails(){return this._messages.command("results.display-new-details")}get add(){return this._messages.command("results.add")}get intersect(){return this._messages.command("results.intersect")}get remove(){return this._messages.command("results.remove")}get clear(){return this._messages.command("results.clear")}get clearDetails(){return this._messages.command("results.clear-details")}get hideDetails(){return this._messages.command("results.hide-details")}get openAttachment(){return this._messages.command("results.open-attachment")}get refresh(){return this._messages.command("results.refresh")}get setListViewMode(){return this._messages.command("results.set-list-view-mode")}get setListCardSize(){return this._messages.command("results.set-list-card-size")}}export class ResultsEvents extends s{get changed(){return this._messages.event("results.changed")}get displayed(){return this._messages.event("results.displayed")}get attachmentOpened(){return this._messages.event("results.attachment-opened")}get detailsShown(){return this._messages.event("results.details-shown")}get relatedDetailsShown(){return this._messages.event("results.related-details-shown")}}export class ResultsOperations extends t{get configureUploadData(){return this._messages.operation("results.configure-upload-data")}get contains(){return this._messages.operation("results.contains")}get convertToCsv(){return this._messages.operation("results.convert-to-csv")}get convertToXlsx(){return this._messages.operation("results.convert-to-xlsx")}get convertToShapefile(){return this._messages.operation("results.convert-to-shapefile")}get convertToLayers(){return this._messages.operation("results.convert-to-layers")}get fromCsv(){return this._messages.operation("results.from-csv")}get fromFiles(){return this._messages.operation("results.from-files")}get uploadDataFromFiles(){return this._messages.operation("results.upload-data-from-files")}get uploadDataToFeatures(){return this._messages.operation("results.upload-data-to-features")}get fromShapefile(){return this._messages.operation("results.from-shapefile")}get fromXlsx(){return this._messages.operation("results.from-xlsx")}get fromGraphics(){return this._messages.operation("results.from-graphics")}get toGraphics(){return this._messages.operation("results.to-graphics")}get getFeatures(){return this._messages.operation("results.get-features")}get filter(){return this._messages.operation("results.filter")}}
|
|
@@ -5,7 +5,7 @@ import type { Event } from "../Event.js";
|
|
|
5
5
|
import { EventRegistry } from "../EventRegistry.js";
|
|
6
6
|
import type { Operation } from "../Operation.js";
|
|
7
7
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
8
|
-
import type { Blob, File, HasFeatures, HasGeometry, HasLayers, HasMaps, HasUITarget } from "../common.js";
|
|
8
|
+
import type { Blob, File, HasFeatures, HasFiles, HasGeometry, HasLayers, HasMaps, HasUITarget } from "../common.js";
|
|
9
9
|
/**
|
|
10
10
|
* Arguments for the system.download-file operation.
|
|
11
11
|
*/
|
|
@@ -234,6 +234,13 @@ export declare class SystemOperations extends OperationRegistry {
|
|
|
234
234
|
* @webOnly
|
|
235
235
|
*/
|
|
236
236
|
get readFile(): Operation<ReadFileArgs, File[]>;
|
|
237
|
+
/**
|
|
238
|
+
* A synonym for `system.read-file` that attaches the output to an args
|
|
239
|
+
* object for use in command chains.
|
|
240
|
+
*
|
|
241
|
+
* @webOnly
|
|
242
|
+
*/
|
|
243
|
+
get readFiles(): Operation<ReadFileArgs, HasFiles>;
|
|
237
244
|
/**
|
|
238
245
|
* Creates a link to share the shallow state of the application, including
|
|
239
246
|
* map position and scale, layer visibility and current basemap.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";import{OperationRegistry as t}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 e{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 t{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 s{get backgroundLocationUpdatesEnabled(){return this._messages.event("system.background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._messages.event("system.background-location-updates-disabled")}get urlOpened(){return this._messages.event("system.url-opened")}}
|
|
1
|
+
import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";import{OperationRegistry as t}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 e{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 t{get readUrl(){return this._messages.operation("system.read-url")}get readFile(){return this._messages.operation("system.read-file")}get readFiles(){return this._messages.operation("system.read-files")}get getSharingLink(){return this._messages.operation("system.get-sharing-link")}}export class SystemEvents extends s{get backgroundLocationUpdatesEnabled(){return this._messages.event("system.background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._messages.event("system.background-location-updates-disabled")}get urlOpened(){return this._messages.event("system.url-opened")}}
|
|
@@ -154,10 +154,10 @@
|
|
|
154
154
|
"popupTemplate": {
|
|
155
155
|
"anyOf": [
|
|
156
156
|
{
|
|
157
|
-
"$ref": "#/definitions/esri.
|
|
157
|
+
"$ref": "#/definitions/esri.rest-api.PopupInfo.PopupInfo"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
-
"$ref": "#/definitions/esri.
|
|
160
|
+
"$ref": "#/definitions/esri.PopupTemplate"
|
|
161
161
|
}
|
|
162
162
|
],
|
|
163
163
|
"description": "The template for displaying content in a pop-up when the feature is selected. If not explicitly set, it will be inherited from the associated layer extension if there is one."
|
|
@@ -453,6 +453,36 @@
|
|
|
453
453
|
},
|
|
454
454
|
"type": "object"
|
|
455
455
|
},
|
|
456
|
+
"@vertigis.arcgis-extensions.data.convert.CellData": {
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"description": "Data for a cell in a table.",
|
|
459
|
+
"properties": {
|
|
460
|
+
"formatted": {
|
|
461
|
+
"description": "The formatted value of the cell.",
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
"raw": {
|
|
465
|
+
"anyOf": [
|
|
466
|
+
{
|
|
467
|
+
"format": "date-time",
|
|
468
|
+
"type": "string"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"type": [
|
|
472
|
+
"string",
|
|
473
|
+
"number",
|
|
474
|
+
"boolean"
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"description": "The raw value of the cell."
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"required": [
|
|
482
|
+
"raw"
|
|
483
|
+
],
|
|
484
|
+
"type": "object"
|
|
485
|
+
},
|
|
456
486
|
"@vertigis.arcgis-extensions.mapping.Bookmark.BookmarkProperties": {
|
|
457
487
|
"additionalProperties": false,
|
|
458
488
|
"description": "Properties that can be passed into the constructor for {@link mapping /Bookmark!Bookmark}.",
|
|
@@ -3007,6 +3037,88 @@
|
|
|
3007
3037
|
},
|
|
3008
3038
|
"type": "object"
|
|
3009
3039
|
},
|
|
3040
|
+
"UploadDataArgs": {
|
|
3041
|
+
"additionalProperties": false,
|
|
3042
|
+
"description": "Arguements for the \"results.upload-data-args-to-feature\" operation.",
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"data": {
|
|
3045
|
+
"description": "The cells in the table.",
|
|
3046
|
+
"items": {
|
|
3047
|
+
"items": {
|
|
3048
|
+
"$ref": "#/definitions/@vertigis.arcgis-extensions.data.convert.CellData"
|
|
3049
|
+
},
|
|
3050
|
+
"type": "array"
|
|
3051
|
+
},
|
|
3052
|
+
"type": "array"
|
|
3053
|
+
},
|
|
3054
|
+
"dateFormat": {
|
|
3055
|
+
"description": "The format for dates. The default is DateFormat.ROUND_TRIP. This can be a defined DateFormat string, the \"timestamp\" pseudo-format, or a custom format string.",
|
|
3056
|
+
"type": "string"
|
|
3057
|
+
},
|
|
3058
|
+
"displayField": {
|
|
3059
|
+
"description": "Typically a string field with text formatted for display.",
|
|
3060
|
+
"type": "string"
|
|
3061
|
+
},
|
|
3062
|
+
"escapeFormulaChars": {
|
|
3063
|
+
"description": "Whether to a prefix values that start with typical formula triggering chars (=,-,+,@).",
|
|
3064
|
+
"type": "boolean"
|
|
3065
|
+
},
|
|
3066
|
+
"generatePrimaryKey": {
|
|
3067
|
+
"description": "Indicates if a primary key should be generated if not found, defaults to true.",
|
|
3068
|
+
"type": "boolean"
|
|
3069
|
+
},
|
|
3070
|
+
"geometryFields": {
|
|
3071
|
+
"description": "The names of the geometry field(s).",
|
|
3072
|
+
"items": {
|
|
3073
|
+
"type": "string"
|
|
3074
|
+
},
|
|
3075
|
+
"type": "array"
|
|
3076
|
+
},
|
|
3077
|
+
"geometryFormat": {
|
|
3078
|
+
"$ref": "@vertigis.arcgis-extensions.data.convert.GeometryFormat",
|
|
3079
|
+
"description": "The format of the geometry in this table."
|
|
3080
|
+
},
|
|
3081
|
+
"inSpatialReference": {
|
|
3082
|
+
"$ref": "#/definitions/esri.SpatialReference",
|
|
3083
|
+
"description": "The spatial reference of the geometry in this table."
|
|
3084
|
+
},
|
|
3085
|
+
"includeHeaderRow": {
|
|
3086
|
+
"description": "The header row contains column names.",
|
|
3087
|
+
"type": "boolean"
|
|
3088
|
+
},
|
|
3089
|
+
"numberFormat": {
|
|
3090
|
+
"description": "The format for numbers. The default is NumberFormat.ROUND_TRIP.",
|
|
3091
|
+
"type": "string"
|
|
3092
|
+
},
|
|
3093
|
+
"outFields": {
|
|
3094
|
+
"description": "A list of fields to include. Defaults to the FeatureSources PopupTemplate outfields if available, otherwise \"*\" meaning all fields.",
|
|
3095
|
+
"items": {
|
|
3096
|
+
"type": "string"
|
|
3097
|
+
},
|
|
3098
|
+
"type": "array"
|
|
3099
|
+
},
|
|
3100
|
+
"outSpatialReference": {
|
|
3101
|
+
"$ref": "#/definitions/esri.SpatialReference",
|
|
3102
|
+
"description": "The output spatial reference of the converted table."
|
|
3103
|
+
},
|
|
3104
|
+
"primaryKeyField": {
|
|
3105
|
+
"description": "Optionally the primary key field.",
|
|
3106
|
+
"type": "string"
|
|
3107
|
+
},
|
|
3108
|
+
"title": {
|
|
3109
|
+
"description": "A title for this dataset.",
|
|
3110
|
+
"type": "string"
|
|
3111
|
+
},
|
|
3112
|
+
"useFormattedValues": {
|
|
3113
|
+
"description": "If true, the configured formatters will be run on the raw values in the supplied data and these values will be output with type information if possible. If false, the formatted or presentable values already present in the supplied data will be taken 'as-is'. Field types configured on the input will be ignored and all values will be output as strings.",
|
|
3114
|
+
"type": "boolean"
|
|
3115
|
+
}
|
|
3116
|
+
},
|
|
3117
|
+
"required": [
|
|
3118
|
+
"data"
|
|
3119
|
+
],
|
|
3120
|
+
"type": "object"
|
|
3121
|
+
},
|
|
3010
3122
|
"WebAddAttachmentArgs": {
|
|
3011
3123
|
"additionalProperties": false,
|
|
3012
3124
|
"description": "VertiGIS Studio Web's arguments for the \"edit.add-attachment\" command. Not supported by Mobile.",
|
|
@@ -12938,6 +13050,24 @@
|
|
|
12938
13050
|
},
|
|
12939
13051
|
"type": "array"
|
|
12940
13052
|
},
|
|
13053
|
+
"results.upload-data-to-features": {
|
|
13054
|
+
"description": "Convert the supplied upload data args to features.",
|
|
13055
|
+
"enum": [
|
|
13056
|
+
"results.upload-data-to-features"
|
|
13057
|
+
]
|
|
13058
|
+
},
|
|
13059
|
+
"results.upload-data-to-features:input": {
|
|
13060
|
+
"items": {
|
|
13061
|
+
"$ref": "#/definitions/UploadDataArgs"
|
|
13062
|
+
},
|
|
13063
|
+
"type": "array"
|
|
13064
|
+
},
|
|
13065
|
+
"results.upload-data-to-features:output": {
|
|
13066
|
+
"items": {
|
|
13067
|
+
"$ref": "@vertigis.arcgis-extensions.data.FeatureStream.FeatureStream"
|
|
13068
|
+
},
|
|
13069
|
+
"type": "array"
|
|
13070
|
+
},
|
|
12941
13071
|
"search.clear": {
|
|
12942
13072
|
"description": "Clears the search input.",
|
|
12943
13073
|
"enum": [
|
|
@@ -14406,6 +14536,22 @@
|
|
|
14406
14536
|
],
|
|
14407
14537
|
"type": "object"
|
|
14408
14538
|
},
|
|
14539
|
+
{
|
|
14540
|
+
"additionalProperties": false,
|
|
14541
|
+
"properties": {
|
|
14542
|
+
"arguments": {
|
|
14543
|
+
"$ref": "#/definitions/results.upload-data-to-features:input"
|
|
14544
|
+
},
|
|
14545
|
+
"name": {
|
|
14546
|
+
"$ref": "#/definitions/results.upload-data-to-features"
|
|
14547
|
+
}
|
|
14548
|
+
},
|
|
14549
|
+
"required": [
|
|
14550
|
+
"name",
|
|
14551
|
+
"arguments"
|
|
14552
|
+
],
|
|
14553
|
+
"type": "object"
|
|
14554
|
+
},
|
|
14409
14555
|
{
|
|
14410
14556
|
"additionalProperties": false,
|
|
14411
14557
|
"properties": {
|
|
@@ -14557,6 +14703,9 @@
|
|
|
14557
14703
|
{
|
|
14558
14704
|
"$ref": "#/definitions/results.to-graphics"
|
|
14559
14705
|
},
|
|
14706
|
+
{
|
|
14707
|
+
"$ref": "#/definitions/results.upload-data-to-features"
|
|
14708
|
+
},
|
|
14560
14709
|
{
|
|
14561
14710
|
"$ref": "#/definitions/sketching.add-node-to-geometry"
|
|
14562
14711
|
},
|