@vertigis/viewer-spec 51.13.0 → 51.14.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")}}
@@ -5036,6 +5036,28 @@
5036
5036
  ],
5037
5037
  "type": "object"
5038
5038
  },
5039
+ "SetVisibilityArgs": {
5040
+ "additionalProperties": false,
5041
+ "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'.",
5042
+ "properties": {
5043
+ "layers": {
5044
+ "$ref": "#/definitions/LayersLike",
5045
+ "description": "Layer(s) to use for the command/operation."
5046
+ },
5047
+ "maps": {
5048
+ "$ref": "MapsLike",
5049
+ "description": "Map(s) to use for the command/operation."
5050
+ },
5051
+ "visible": {
5052
+ "description": "The visibility of the provided layers.",
5053
+ "type": "boolean"
5054
+ }
5055
+ },
5056
+ "required": [
5057
+ "visible"
5058
+ ],
5059
+ "type": "object"
5060
+ },
5039
5061
  "SetVisualStateArgs": {
5040
5062
  "additionalProperties": false,
5041
5063
  "description": "Arguments for the \"ui.set-visual-state\" command.",
@@ -16711,6 +16733,15 @@
16711
16733
  "layers.set-symbol:input": {
16712
16734
  "$ref": "#/definitions/SetSymbolArgs"
16713
16735
  },
16736
+ "layers.set-visibility": {
16737
+ "description": "Updates the visibility of the provided layer(s).",
16738
+ "enum": [
16739
+ "layers.set-visibility"
16740
+ ]
16741
+ },
16742
+ "layers.set-visibility:input": {
16743
+ "$ref": "#/definitions/SetVisibilityArgs"
16744
+ },
16714
16745
  "layers.show-labels": {
16715
16746
  "description": "Turns on the layer's labels on the map.",
16716
16747
  "enum": [
@@ -20167,6 +20198,22 @@
20167
20198
  ],
20168
20199
  "type": "object"
20169
20200
  },
20201
+ {
20202
+ "additionalProperties": false,
20203
+ "properties": {
20204
+ "arguments": {
20205
+ "$ref": "#/definitions/layers.set-visibility:input"
20206
+ },
20207
+ "name": {
20208
+ "$ref": "#/definitions/layers.set-visibility"
20209
+ }
20210
+ },
20211
+ "required": [
20212
+ "name",
20213
+ "arguments"
20214
+ ],
20215
+ "type": "object"
20216
+ },
20170
20217
  {
20171
20218
  "additionalProperties": false,
20172
20219
  "properties": {
@@ -21737,6 +21784,9 @@
21737
21784
  {
21738
21785
  "$ref": "#/definitions/layers.set-symbol"
21739
21786
  },
21787
+ {
21788
+ "$ref": "#/definitions/layers.set-visibility"
21789
+ },
21740
21790
  {
21741
21791
  "$ref": "#/definitions/layers.show-labels"
21742
21792
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "51.13.0",
3
+ "version": "51.14.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.14.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.14.0";