@vertigis/viewer-spec 51.13.0 → 51.15.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.
@@ -810,6 +810,23 @@
810
810
  </documentation>
811
811
  </annotation>
812
812
  </attribute>
813
+ <attribute name="show-filter-control" type="boolean" default="false">
814
+ <annotation>
815
+ <documentation xml:lang="en">
816
+ Whether to show an text input control for
817
+ filtering layers by title. Web only.
818
+ </documentation>
819
+ </annotation>
820
+ </attribute>
821
+ <attribute name="show-action-menu" type="boolean" default="true">
822
+ <annotation>
823
+ <documentation xml:lang="en">
824
+ Whether to show a menu button that can be used
825
+ to execute actions on all layers that are
826
+ currently displayed in the layer list. Web only.
827
+ </documentation>
828
+ </annotation>
829
+ </attribute>
813
830
  </extension>
814
831
  </complexContent>
815
832
  </complexType>
@@ -30,6 +30,19 @@ export interface SetLabelVisibilityArgs extends HasLayers, HasMaps {
30
30
  * Arguments for the layer.set-symbol command.
31
31
  */
32
32
  export type SetSymbolArgs = Required<HasSymbol & HasLayers> & Partial<HasMaps>;
33
+ /**
34
+ * Arguments for the layer.set-visibility command. If no 'maps' are specified,
35
+ * all active maps in the layout will be targeted. If no 'layers' are specified,
36
+ * all viable layers and sublayers within the 'maps' will be affected. If the
37
+ * 'layers' property includes (Sub)Layer references or ESRI (Sub)Layers, they
38
+ * must exist within one of the 'maps'.
39
+ */
40
+ export interface SetVisibilityArgs extends HasLayers, HasMaps {
41
+ /**
42
+ * The visibility of the provided layers.
43
+ */
44
+ visible: boolean;
45
+ }
33
46
  export declare class LayersCommands extends CommandRegistry {
34
47
  /**
35
48
  * Guard command for enabling the layers.set-symbol command.
@@ -43,6 +56,12 @@ export declare class LayersCommands extends CommandRegistry {
43
56
  * @webOnly
44
57
  */
45
58
  get setSymbol(): Command<SetSymbolArgs>;
59
+ /**
60
+ * Updates the visibility of the provided layer(s).
61
+ *
62
+ * @webOnly
63
+ */
64
+ get setVisibility(): Command<SetVisibilityArgs>;
46
65
  /**
47
66
  * Turns on the layer's labels on the map.
48
67
  *
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as s}from"../EventRegistry.js";export class LayersCommands extends e{get ensureCanSetSymbol(){return this._messages.command("layers.ensure-can-set-symbol")}get setSymbol(){return this._messages.command("layers.set-symbol")}get showLabels(){return this._messages.command("layers.show-labels")}get hideLabels(){return this._messages.command("layers.hide-labels")}}export class LayersEvents extends s{get visibilityChanged(){return this._messages.event("layers.visibility-changed")}}
1
+ import{CommandRegistry as s}from"../CommandRegistry.js";import{EventRegistry as e}from"../EventRegistry.js";export class LayersCommands extends s{get ensureCanSetSymbol(){return this._messages.command("layers.ensure-can-set-symbol")}get setSymbol(){return this._messages.command("layers.set-symbol")}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 LayersEvents extends e{get visibilityChanged(){return this._messages.event("layers.visibility-changed")}}
@@ -16,7 +16,7 @@ import type { Event } from "../Event.js";
16
16
  import { EventRegistry } from "../EventRegistry.js";
17
17
  import type { Operation } from "../Operation.js";
18
18
  import { OperationRegistry } from "../OperationRegistry.js";
19
- import type { Blob, Features, FeaturesLike, GraphicsLike, HasFeatures, MapsLike, ModelRef } from "../common.js";
19
+ import type { Blob, Features, FeaturesLike, File, GraphicsLike, HasFeatures, MapsLike, ModelRef } from "../common.js";
20
20
  import type { VisualElement } from "../mobile.js";
21
21
  /**
22
22
  * Well known Results Set Ids.
@@ -24,6 +24,10 @@ import type { VisualElement } from "../mobile.js";
24
24
  export declare enum KnownResultSetIds {
25
25
  STARRED = "vgs-starred"
26
26
  }
27
+ /**
28
+ * Args for `results.from-files`.
29
+ */
30
+ export type FromConverterArgs = FromCsvConversionArgs | FromShapefileConversionArgs | FromXLSXConversionArgs;
27
31
  /**
28
32
  * Arguments for various commands that target a result set of features.
29
33
  */
@@ -514,6 +518,12 @@ export declare class ResultsOperations extends OperationRegistry {
514
518
  * @webOnly
515
519
  */
516
520
  get fromCsv(): Operation<FromCsvConversionArgs | Blob | Blob[], Features>;
521
+ /**
522
+ * Convert the specified csv, xlsx or shapefile files to Features.
523
+ *
524
+ * @webOnly
525
+ */
526
+ get fromFiles(): Operation<File[] | FromConverterArgs, Features>;
517
527
  /**
518
528
  * Convert the specified Shapefile blob to Features.
519
529
  *
@@ -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 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 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")}}
@@ -42,6 +42,11 @@ export interface ReadFileArgs extends HasUITarget {
42
42
  * user for a file.
43
43
  */
44
44
  promptMessage?: string;
45
+ /**
46
+ * If present, provides information about what file types are accepted by
47
+ * this dialog, eg: "*.jpg, *.gif and *.bmp files accepted".
48
+ */
49
+ fileTypeDescription?: string;
45
50
  }
46
51
  /**
47
52
  * Well-known location-based tokens that can be used in the system.open-url
@@ -4302,6 +4302,10 @@
4302
4302
  "attributes": {
4303
4303
  "description": "Optional layout XML attributes to be used for the transient UI container."
4304
4304
  },
4305
+ "fileTypeDescription": {
4306
+ "description": "If present, provides information about what file types are accepted by this dialog, eg: \"*.jpg, *.gif and *.bmp files accepted\".",
4307
+ "type": "string"
4308
+ },
4305
4309
  "icon": {
4306
4310
  "description": "Optional icon that may be used by the transient UI container.",
4307
4311
  "type": "string"
@@ -5036,6 +5040,28 @@
5036
5040
  ],
5037
5041
  "type": "object"
5038
5042
  },
5043
+ "SetVisibilityArgs": {
5044
+ "additionalProperties": false,
5045
+ "description": "Arguments for the layer.set-visibility command. If no 'maps' are specified, all active maps in the layout will be targeted. If no 'layers' are specified, all viable layers and sublayers within the 'maps' will be affected. If the 'layers' property includes (Sub)Layer references or ESRI (Sub)Layers, they must exist within one of the 'maps'.",
5046
+ "properties": {
5047
+ "layers": {
5048
+ "$ref": "#/definitions/LayersLike",
5049
+ "description": "Layer(s) to use for the command/operation."
5050
+ },
5051
+ "maps": {
5052
+ "$ref": "MapsLike",
5053
+ "description": "Map(s) to use for the command/operation."
5054
+ },
5055
+ "visible": {
5056
+ "description": "The visibility of the provided layers.",
5057
+ "type": "boolean"
5058
+ }
5059
+ },
5060
+ "required": [
5061
+ "visible"
5062
+ ],
5063
+ "type": "object"
5064
+ },
5039
5065
  "SetVisualStateArgs": {
5040
5066
  "additionalProperties": false,
5041
5067
  "description": "Arguments for the \"ui.set-visual-state\" command.",
@@ -16711,6 +16737,15 @@
16711
16737
  "layers.set-symbol:input": {
16712
16738
  "$ref": "#/definitions/SetSymbolArgs"
16713
16739
  },
16740
+ "layers.set-visibility": {
16741
+ "description": "Updates the visibility of the provided layer(s).",
16742
+ "enum": [
16743
+ "layers.set-visibility"
16744
+ ]
16745
+ },
16746
+ "layers.set-visibility:input": {
16747
+ "$ref": "#/definitions/SetVisibilityArgs"
16748
+ },
16714
16749
  "layers.show-labels": {
16715
16750
  "description": "Turns on the layer's labels on the map.",
16716
16751
  "enum": [
@@ -18506,6 +18541,34 @@
18506
18541
  "results.from-csv:output": {
18507
18542
  "$ref": "#/definitions/Features"
18508
18543
  },
18544
+ "results.from-files": {
18545
+ "description": "Convert the specified csv, xlsx or shapefile files to Features.",
18546
+ "enum": [
18547
+ "results.from-files"
18548
+ ]
18549
+ },
18550
+ "results.from-files:input": {
18551
+ "anyOf": [
18552
+ {
18553
+ "items": {
18554
+ "$ref": "File"
18555
+ },
18556
+ "type": "array"
18557
+ },
18558
+ {
18559
+ "$ref": "#/definitions/FromCsvConversionArgs"
18560
+ },
18561
+ {
18562
+ "$ref": "#/definitions/FromShapefileConversionArgs"
18563
+ },
18564
+ {
18565
+ "$ref": "#/definitions/FromXLSXConversionArgs"
18566
+ }
18567
+ ]
18568
+ },
18569
+ "results.from-files:output": {
18570
+ "$ref": "#/definitions/Features"
18571
+ },
18509
18572
  "results.from-graphics": {
18510
18573
  "description": "Converts provided GraphicsLike to VertiGIS Studio Features using any available metadata.",
18511
18574
  "enum": [
@@ -20167,6 +20230,22 @@
20167
20230
  ],
20168
20231
  "type": "object"
20169
20232
  },
20233
+ {
20234
+ "additionalProperties": false,
20235
+ "properties": {
20236
+ "arguments": {
20237
+ "$ref": "#/definitions/layers.set-visibility:input"
20238
+ },
20239
+ "name": {
20240
+ "$ref": "#/definitions/layers.set-visibility"
20241
+ }
20242
+ },
20243
+ "required": [
20244
+ "name",
20245
+ "arguments"
20246
+ ],
20247
+ "type": "object"
20248
+ },
20170
20249
  {
20171
20250
  "additionalProperties": false,
20172
20251
  "properties": {
@@ -21737,6 +21816,9 @@
21737
21816
  {
21738
21817
  "$ref": "#/definitions/layers.set-symbol"
21739
21818
  },
21819
+ {
21820
+ "$ref": "#/definitions/layers.set-visibility"
21821
+ },
21740
21822
  {
21741
21823
  "$ref": "#/definitions/layers.show-labels"
21742
21824
  },
@@ -22662,6 +22744,22 @@
22662
22744
  ],
22663
22745
  "type": "object"
22664
22746
  },
22747
+ {
22748
+ "additionalProperties": false,
22749
+ "properties": {
22750
+ "arguments": {
22751
+ "$ref": "#/definitions/results.from-files:input"
22752
+ },
22753
+ "name": {
22754
+ "$ref": "#/definitions/results.from-files"
22755
+ }
22756
+ },
22757
+ "required": [
22758
+ "name",
22759
+ "arguments"
22760
+ ],
22761
+ "type": "object"
22762
+ },
22665
22763
  {
22666
22764
  "additionalProperties": false,
22667
22765
  "properties": {
@@ -23193,6 +23291,9 @@
23193
23291
  {
23194
23292
  "$ref": "#/definitions/results.from-csv"
23195
23293
  },
23294
+ {
23295
+ "$ref": "#/definitions/results.from-files"
23296
+ },
23196
23297
  {
23197
23298
  "$ref": "#/definitions/results.from-graphics"
23198
23299
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "51.13.0",
3
+ "version": "51.15.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "51.13.0";
4
+ export declare const version = "51.15.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "51.13.0";
4
+ export const version = "51.15.0";