@vertigis/viewer-spec 47.0.0 → 47.3.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.
@@ -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
- to apply them.
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")}}
@@ -474,6 +474,46 @@
474
474
  ],
475
475
  "description": "A reference to a portal item."
476
476
  },
477
+ "AddAttachmentArgs": {
478
+ "additionalProperties": false,
479
+ "description": "Arguments for the \"edit.add-attachment\" command. Supported by both Web and Mobile.",
480
+ "properties": {
481
+ "contentType": {
482
+ "description": "The MIME content type of the attachment.",
483
+ "type": "string"
484
+ },
485
+ "data": {
486
+ "description": "The binary data for the attachment.",
487
+ "items": {
488
+ "type": "number"
489
+ },
490
+ "type": "array"
491
+ },
492
+ "features": {
493
+ "description": "The feature(s) to add the attachment to.",
494
+ "items": {
495
+ "$ref": "@vertigis.arcgis-extensions.data.Feature.Feature"
496
+ },
497
+ "type": "array"
498
+ },
499
+ "maps": {
500
+ "$ref": "MapsLike",
501
+ "description": "The map."
502
+ },
503
+ "name": {
504
+ "description": "The name of the attachment.",
505
+ "type": "string"
506
+ }
507
+ },
508
+ "required": [
509
+ "contentType",
510
+ "data",
511
+ "features",
512
+ "maps",
513
+ "name"
514
+ ],
515
+ "type": "object"
516
+ },
477
517
  "AddNodeOrder": {
478
518
  "description": "Indicates whether a new point should be added before or after the active point in a sketch.",
479
519
  "enum": [
@@ -702,6 +742,31 @@
702
742
  ],
703
743
  "type": "object"
704
744
  },
745
+ "DeleteAttachmentArgs": {
746
+ "additionalProperties": false,
747
+ "description": "Arguments for the \"edit.delete-attachment\" command.",
748
+ "properties": {
749
+ "attachments": {
750
+ "description": "The attachment(s) to remove from the feature(s). This property can be populated with the title(s) or ID(s) of the attachments(s). Any and all matching attachments found on the input features will be deleted. Web only.",
751
+ "items": {
752
+ "type": "string"
753
+ },
754
+ "type": "array"
755
+ },
756
+ "features": {
757
+ "$ref": "#/definitions/Features",
758
+ "description": "The feature(s) to remove the attachment(s) from."
759
+ },
760
+ "gcxAttachment": {
761
+ "$ref": "@vertigis.arcgis-extensions.data.Attachment.Attachment",
762
+ "description": "The attachment to remove from the feature(s). Mobile only."
763
+ }
764
+ },
765
+ "required": [
766
+ "features"
767
+ ],
768
+ "type": "object"
769
+ },
705
770
  "DeleteGeometryArgs": {
706
771
  "additionalProperties": false,
707
772
  "description": "Arguments for the \"sketching.delete\" command.",
@@ -2168,6 +2233,35 @@
2168
2233
  ],
2169
2234
  "type": "object"
2170
2235
  },
2236
+ "WebAddAttachmentArgs": {
2237
+ "additionalProperties": false,
2238
+ "description": "VertiGIS Studio Web's arguments for the \"edit.add-attachment\" command. Not supported by Mobile.",
2239
+ "properties": {
2240
+ "blobs": {
2241
+ "anyOf": [
2242
+ {
2243
+ "$ref": "File"
2244
+ },
2245
+ {
2246
+ "items": {
2247
+ "$ref": "File"
2248
+ },
2249
+ "type": "array"
2250
+ }
2251
+ ],
2252
+ "description": "The blob(s) that contains the file attachment(s). If multiple attachments are specified, all attachment will be added to the feature(s)."
2253
+ },
2254
+ "features": {
2255
+ "$ref": "#/definitions/Features",
2256
+ "description": "The feature(s) to add the attachment(s) to. If multiple features are specified, the attachment(s) will be added to all features."
2257
+ }
2258
+ },
2259
+ "required": [
2260
+ "blobs",
2261
+ "features"
2262
+ ],
2263
+ "type": "object"
2264
+ },
2171
2265
  "WebOpenUrlArgs": {
2172
2266
  "additionalProperties": false,
2173
2267
  "description": "VertiGIS Studio Web's arguments for the system.open-url command.",
@@ -2314,6 +2408,22 @@
2314
2408
  "drawing.set-sync:input": {
2315
2409
  "type": "boolean"
2316
2410
  },
2411
+ "edit.add-attachment": {
2412
+ "description": "Create and add an attachment to a provided feature, using the given attachment data.",
2413
+ "enum": [
2414
+ "edit.add-attachment"
2415
+ ]
2416
+ },
2417
+ "edit.add-attachment:input": {
2418
+ "anyOf": [
2419
+ {
2420
+ "$ref": "#/definitions/AddAttachmentArgs"
2421
+ },
2422
+ {
2423
+ "$ref": "#/definitions/WebAddAttachmentArgs"
2424
+ }
2425
+ ]
2426
+ },
2317
2427
  "edit.add-feature": {
2318
2428
  "description": "Adds a feature to a particular layer. `Feature[]` and `EditCommandArgs` are not supported on Mobile.",
2319
2429
  "enum": [
@@ -2336,6 +2446,15 @@
2336
2446
  }
2337
2447
  ]
2338
2448
  },
2449
+ "edit.delete-attachment": {
2450
+ "description": "Deletes attachments from feature(s).",
2451
+ "enum": [
2452
+ "edit.delete-attachment"
2453
+ ]
2454
+ },
2455
+ "edit.delete-attachment:input": {
2456
+ "$ref": "#/definitions/DeleteAttachmentArgs"
2457
+ },
2339
2458
  "edit.delete-features": {
2340
2459
  "description": "Deletes the given feature or features from their feature sources. `EditCommandArgs` is not supported on Mobile.",
2341
2460
  "enum": [
@@ -10634,9 +10753,6 @@
10634
10753
  "geocode.count:input": {
10635
10754
  "$ref": "#/definitions/GeocodeArgs"
10636
10755
  },
10637
- "geocode.count:output": {
10638
- "type": "undefined"
10639
- },
10640
10756
  "geocode.geocode": {
10641
10757
  "description": "Finds one or more locations corresponding to an address.",
10642
10758
  "enum": [
@@ -10646,9 +10762,6 @@
10646
10762
  "geocode.geocode:input": {
10647
10763
  "$ref": "#/definitions/GeocodeArgs"
10648
10764
  },
10649
- "geocode.geocode:output": {
10650
- "type": "undefined"
10651
- },
10652
10765
  "geocode.reverse-geocode": {
10653
10766
  "description": "Finds the address at a particular location. The geocoder must have the supportsReverseGeocoding capability.",
10654
10767
  "enum": [
@@ -10658,9 +10771,6 @@
10658
10771
  "geocode.reverse-geocode:input": {
10659
10772
  "$ref": "#/definitions/ReverseGeocodeArgs"
10660
10773
  },
10661
- "geocode.reverse-geocode:output": {
10662
- "type": "undefined"
10663
- },
10664
10774
  "geocode.suggest": {
10665
10775
  "description": "Suggests matching addresses to search for based on some input text. The geocoder must have the supportsSuggest capability.",
10666
10776
  "enum": [
@@ -10670,9 +10780,6 @@
10670
10780
  "geocode.suggest:input": {
10671
10781
  "$ref": "#/definitions/SuggestArgs"
10672
10782
  },
10673
- "geocode.suggest:output": {
10674
- "type": "undefined"
10675
- },
10676
10783
  "geolocation.auto-recenter": {
10677
10784
  "description": "Centers the map on the user's current location and keeps the location centered as it moves around. The maps parameter is only supported in Geocortex Mobile Viewer. In Geocortex Web Viewer, all maps are affected.",
10678
10785
  "enum": [
@@ -10722,9 +10829,6 @@
10722
10829
  "geolocation.get-location-permissions-enabled:input": {
10723
10830
  "type": "boolean"
10724
10831
  },
10725
- "geolocation.get-location-permissions-enabled:output": {
10726
- "type": "undefined"
10727
- },
10728
10832
  "geolocation.get-position": {
10729
10833
  "description": "Returns the current user position. This Operation can block while the user is prompted for permission, as such it is considered best practice not to perform this during startup.",
10730
10834
  "enum": [
@@ -11479,6 +11583,22 @@
11479
11583
  ],
11480
11584
  "type": "object"
11481
11585
  },
11586
+ {
11587
+ "additionalProperties": false,
11588
+ "properties": {
11589
+ "arguments": {
11590
+ "$ref": "#/definitions/edit.add-attachment:input"
11591
+ },
11592
+ "name": {
11593
+ "$ref": "#/definitions/edit.add-attachment"
11594
+ }
11595
+ },
11596
+ "required": [
11597
+ "name",
11598
+ "arguments"
11599
+ ],
11600
+ "type": "object"
11601
+ },
11482
11602
  {
11483
11603
  "additionalProperties": false,
11484
11604
  "properties": {
@@ -11495,6 +11615,22 @@
11495
11615
  ],
11496
11616
  "type": "object"
11497
11617
  },
11618
+ {
11619
+ "additionalProperties": false,
11620
+ "properties": {
11621
+ "arguments": {
11622
+ "$ref": "#/definitions/edit.delete-attachment:input"
11623
+ },
11624
+ "name": {
11625
+ "$ref": "#/definitions/edit.delete-attachment"
11626
+ }
11627
+ },
11628
+ "required": [
11629
+ "name",
11630
+ "arguments"
11631
+ ],
11632
+ "type": "object"
11633
+ },
11498
11634
  {
11499
11635
  "additionalProperties": false,
11500
11636
  "properties": {
@@ -11559,6 +11695,70 @@
11559
11695
  ],
11560
11696
  "type": "object"
11561
11697
  },
11698
+ {
11699
+ "additionalProperties": false,
11700
+ "properties": {
11701
+ "arguments": {
11702
+ "$ref": "#/definitions/geocode.count:input"
11703
+ },
11704
+ "name": {
11705
+ "$ref": "#/definitions/geocode.count"
11706
+ }
11707
+ },
11708
+ "required": [
11709
+ "name",
11710
+ "arguments"
11711
+ ],
11712
+ "type": "object"
11713
+ },
11714
+ {
11715
+ "additionalProperties": false,
11716
+ "properties": {
11717
+ "arguments": {
11718
+ "$ref": "#/definitions/geocode.geocode:input"
11719
+ },
11720
+ "name": {
11721
+ "$ref": "#/definitions/geocode.geocode"
11722
+ }
11723
+ },
11724
+ "required": [
11725
+ "name",
11726
+ "arguments"
11727
+ ],
11728
+ "type": "object"
11729
+ },
11730
+ {
11731
+ "additionalProperties": false,
11732
+ "properties": {
11733
+ "arguments": {
11734
+ "$ref": "#/definitions/geocode.reverse-geocode:input"
11735
+ },
11736
+ "name": {
11737
+ "$ref": "#/definitions/geocode.reverse-geocode"
11738
+ }
11739
+ },
11740
+ "required": [
11741
+ "name",
11742
+ "arguments"
11743
+ ],
11744
+ "type": "object"
11745
+ },
11746
+ {
11747
+ "additionalProperties": false,
11748
+ "properties": {
11749
+ "arguments": {
11750
+ "$ref": "#/definitions/geocode.suggest:input"
11751
+ },
11752
+ "name": {
11753
+ "$ref": "#/definitions/geocode.suggest"
11754
+ }
11755
+ },
11756
+ "required": [
11757
+ "name",
11758
+ "arguments"
11759
+ ],
11760
+ "type": "object"
11761
+ },
11562
11762
  {
11563
11763
  "additionalProperties": false,
11564
11764
  "properties": {
@@ -11575,6 +11775,22 @@
11575
11775
  ],
11576
11776
  "type": "object"
11577
11777
  },
11778
+ {
11779
+ "additionalProperties": false,
11780
+ "properties": {
11781
+ "arguments": {
11782
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled:input"
11783
+ },
11784
+ "name": {
11785
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
11786
+ }
11787
+ },
11788
+ "required": [
11789
+ "name",
11790
+ "arguments"
11791
+ ],
11792
+ "type": "object"
11793
+ },
11578
11794
  {
11579
11795
  "additionalProperties": false,
11580
11796
  "properties": {
@@ -12131,9 +12347,15 @@
12131
12347
  {
12132
12348
  "$ref": "#/definitions/drawing.set-sync"
12133
12349
  },
12350
+ {
12351
+ "$ref": "#/definitions/edit.add-attachment"
12352
+ },
12134
12353
  {
12135
12354
  "$ref": "#/definitions/edit.add-feature"
12136
12355
  },
12356
+ {
12357
+ "$ref": "#/definitions/edit.delete-attachment"
12358
+ },
12137
12359
  {
12138
12360
  "$ref": "#/definitions/edit.delete-features"
12139
12361
  },
@@ -12146,12 +12368,27 @@
12146
12368
  {
12147
12369
  "$ref": "#/definitions/edit.update-feature"
12148
12370
  },
12371
+ {
12372
+ "$ref": "#/definitions/geocode.count"
12373
+ },
12374
+ {
12375
+ "$ref": "#/definitions/geocode.geocode"
12376
+ },
12377
+ {
12378
+ "$ref": "#/definitions/geocode.reverse-geocode"
12379
+ },
12380
+ {
12381
+ "$ref": "#/definitions/geocode.suggest"
12382
+ },
12149
12383
  {
12150
12384
  "$ref": "#/definitions/geolocation.auto-recenter"
12151
12385
  },
12152
12386
  {
12153
12387
  "$ref": "#/definitions/geolocation.display-location"
12154
12388
  },
12389
+ {
12390
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
12391
+ },
12155
12392
  {
12156
12393
  "$ref": "#/definitions/geolocation.turn-off-geolocation"
12157
12394
  },
@@ -12296,86 +12533,6 @@
12296
12533
  ],
12297
12534
  "type": "object"
12298
12535
  },
12299
- {
12300
- "additionalProperties": false,
12301
- "properties": {
12302
- "arguments": {
12303
- "$ref": "#/definitions/geocode.count:input"
12304
- },
12305
- "name": {
12306
- "$ref": "#/definitions/geocode.count"
12307
- }
12308
- },
12309
- "required": [
12310
- "name",
12311
- "arguments"
12312
- ],
12313
- "type": "object"
12314
- },
12315
- {
12316
- "additionalProperties": false,
12317
- "properties": {
12318
- "arguments": {
12319
- "$ref": "#/definitions/geocode.geocode:input"
12320
- },
12321
- "name": {
12322
- "$ref": "#/definitions/geocode.geocode"
12323
- }
12324
- },
12325
- "required": [
12326
- "name",
12327
- "arguments"
12328
- ],
12329
- "type": "object"
12330
- },
12331
- {
12332
- "additionalProperties": false,
12333
- "properties": {
12334
- "arguments": {
12335
- "$ref": "#/definitions/geocode.reverse-geocode:input"
12336
- },
12337
- "name": {
12338
- "$ref": "#/definitions/geocode.reverse-geocode"
12339
- }
12340
- },
12341
- "required": [
12342
- "name",
12343
- "arguments"
12344
- ],
12345
- "type": "object"
12346
- },
12347
- {
12348
- "additionalProperties": false,
12349
- "properties": {
12350
- "arguments": {
12351
- "$ref": "#/definitions/geocode.suggest:input"
12352
- },
12353
- "name": {
12354
- "$ref": "#/definitions/geocode.suggest"
12355
- }
12356
- },
12357
- "required": [
12358
- "name",
12359
- "arguments"
12360
- ],
12361
- "type": "object"
12362
- },
12363
- {
12364
- "additionalProperties": false,
12365
- "properties": {
12366
- "arguments": {
12367
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled:input"
12368
- },
12369
- "name": {
12370
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
12371
- }
12372
- },
12373
- "required": [
12374
- "name",
12375
- "arguments"
12376
- ],
12377
- "type": "object"
12378
- },
12379
12536
  {
12380
12537
  "additionalProperties": false,
12381
12538
  "properties": {
@@ -12545,24 +12702,9 @@
12545
12702
  {
12546
12703
  "$ref": "#/definitions/basemap.get-current"
12547
12704
  },
12548
- {
12549
- "$ref": "#/definitions/geocode.count"
12550
- },
12551
- {
12552
- "$ref": "#/definitions/geocode.geocode"
12553
- },
12554
- {
12555
- "$ref": "#/definitions/geocode.reverse-geocode"
12556
- },
12557
- {
12558
- "$ref": "#/definitions/geocode.suggest"
12559
- },
12560
12705
  {
12561
12706
  "$ref": "#/definitions/geolocation.get-current-state"
12562
12707
  },
12563
- {
12564
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
12565
- },
12566
12708
  {
12567
12709
  "$ref": "#/definitions/geolocation.get-position"
12568
12710
  },