@vertigis/viewer-spec 48.8.0 → 48.11.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.
@@ -1,7 +1,18 @@
1
+ import type { ItemRef } from "../common/ItemRef.js";
1
2
  import type { LayerListModelProperties as CommonLayerListModelProperties } from "../common/LayerListModelProperties.js";
2
3
  import type { ComponentModelProperties } from "./ComponentModelProperties.js";
3
4
  /**
4
5
  * @inheritdoc
5
6
  */
6
7
  export interface LayerListModelProperties extends CommonLayerListModelProperties, ComponentModelProperties {
8
+ /**
9
+ * Whether or not the layer list will allow the drawing order of layers to
10
+ * be changed. Defaults to true.
11
+ */
12
+ canReorder?: boolean;
13
+ /**
14
+ * A reference to a Menu containing layer actions (menu items that take a
15
+ * layer as context).
16
+ */
17
+ layerActions?: ItemRef;
7
18
  }
@@ -716,7 +716,21 @@
716
716
  </annotation>
717
717
  <complexType>
718
718
  <complexContent>
719
- <extension base="tns:Component" />
719
+ <extension base="tns:Component">
720
+ <attribute name="show-reorder-buttons" type="boolean" default="true">
721
+ <annotation>
722
+ <documentation xml:lang="en">
723
+ Whether to show the arrow buttons used for
724
+ moving layers up and down within the drawing
725
+ order. If the LayerListModel.canReorder property
726
+ is true, drag-and-drop functionality will be
727
+ available regardless of this property. If the
728
+ LayerListModel.canReorder property is false,
729
+ this property is ignored. Web only.
730
+ </documentation>
731
+ </annotation>
732
+ </attribute>
733
+ </extension>
720
734
  </complexContent>
721
735
  </complexType>
722
736
  </element>
@@ -6,6 +6,11 @@ import { EventRegistry } from "../EventRegistry.js";
6
6
  import type { Operation } from "../Operation.js";
7
7
  import { OperationRegistry } from "../OperationRegistry.js";
8
8
  import type { Blob } from "../common.js";
9
+ /**
10
+ * Information about a specific app. Only available in the Geocortex Mobile Viewer.
11
+ */
12
+ export interface GcxAppInfo {
13
+ }
9
14
  /**
10
15
  * Arguments for the app started events. Only available in the Geocortex Mobile Viewer.
11
16
  */
@@ -91,6 +96,25 @@ export declare class AppEvents extends EventRegistry {
91
96
  * @mobileOnly
92
97
  */
93
98
  get backgrounded(): Event;
99
+ /**
100
+ * Raised when the app is interrupted temporarily (eg. Pull down
101
+ * notifications, control center, or OS level prompt or alert).
102
+ *
103
+ * @mobileOnly
104
+ */
105
+ get interrupted(): Event;
106
+ /**
107
+ * Raised when a custom app is started.
108
+ *
109
+ * @mobileOnly
110
+ */
111
+ get customStarted(): Event<SpecificAppArgs>;
112
+ /**
113
+ * Raised when a generic app is started.
114
+ *
115
+ * @mobileOnly
116
+ */
117
+ get genericAppStarted(): Event;
94
118
  /**
95
119
  * Raised when a specific app is started within the generic app.
96
120
  *
@@ -98,12 +122,35 @@ export declare class AppEvents extends EventRegistry {
98
122
  */
99
123
  get specificAppStarted(): Event<SpecificAppArgs>;
100
124
  /**
101
- * Raised when the app is interrupted temporarily (eg. Pull down
102
- * notifications, control center, or OS level prompt or alert).
125
+ * Raised when returning to the app selector screen from a specific app in Go.
103
126
  *
104
127
  * @mobileOnly
105
128
  */
106
- get interrupted(): Event;
129
+ get goingToAppSelector(): Event;
130
+ /**
131
+ * Raised when an app has been refreshed.
132
+ *
133
+ * @mobileOnly
134
+ */
135
+ get refreshed(): Event<SpecificAppArgs>;
136
+ /**
137
+ * Raised when an app refresh is beginning.
138
+ *
139
+ * @mobileOnly
140
+ */
141
+ get refreshing(): Event;
142
+ /**
143
+ * Raised when an app is favorited.
144
+ *
145
+ * @mobileOnly
146
+ */
147
+ get favorited(): Event<GcxAppInfo>;
148
+ /**
149
+ * Raised when an app is unfavorited.
150
+ *
151
+ * @mobileOnly
152
+ */
153
+ get unfavorited(): Event<GcxAppInfo>;
107
154
  }
108
155
  export declare class AppCustomEvents extends EventRegistry {
109
156
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get specificAppStarted(){return this._messages.event("app.specific-app-started")}get interrupted(){return this._messages.event("app.interrupted")}}export class AppCustomEvents extends EventRegistry{get started(){return this._messages.event("app.custom.started")}}export class AppGenericEvents extends EventRegistry{get started(){return this._messages.event("app.generic.started")}get appsListed(){return this._messages.event("app.generic.apps-listed")}}export class AppOperations extends OperationRegistry{get getVersion(){return this._messages.operation("app.get-version")}get createProject(){return this._messages.operation("app.create-project")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get interrupted(){return this._messages.event("app.interrupted")}get customStarted(){return this._messages.event("app.custom.started")}get genericAppStarted(){return this._messages.event("app.generic.started")}get specificAppStarted(){return this._messages.event("app.generic.specific-app-started")}get goingToAppSelector(){return this._messages.event("app.navigating-to-app-selector")}get refreshed(){return this._messages.event("app.refreshed")}get refreshing(){return this._messages.event("app.refreshing")}get favorited(){return this._messages.event("app.favorited")}get unfavorited(){return this._messages.event("app.unfavorited")}}export class AppCustomEvents extends EventRegistry{get started(){return this._messages.event("app.custom.started")}}export class AppGenericEvents extends EventRegistry{get started(){return this._messages.event("app.generic.started")}get appsListed(){return this._messages.event("app.generic.apps-listed")}}export class AppOperations extends OperationRegistry{get getVersion(){return this._messages.operation("app.get-version")}get createProject(){return this._messages.operation("app.create-project")}}
@@ -694,7 +694,6 @@ export declare class MapCommands extends CommandRegistry {
694
694
  /**
695
695
  * Clears all markup from the map(s).
696
696
  *
697
- * @webOnly
698
697
  */
699
698
  get clearMarkup(): Command<Maps | void>;
700
699
  /**
@@ -11328,6 +11328,31 @@
11328
11328
  }
11329
11329
  ]
11330
11330
  },
11331
+ "map.clear-markup": {
11332
+ "description": "Clears all markup from the map(s).",
11333
+ "enum": [
11334
+ "map.clear-markup"
11335
+ ]
11336
+ },
11337
+ "map.clear-markup:input": {
11338
+ "anyOf": [
11339
+ {
11340
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
11341
+ },
11342
+ {
11343
+ "$ref": "#/definitions/HasMaps"
11344
+ },
11345
+ {
11346
+ "items": {
11347
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
11348
+ },
11349
+ "type": "array"
11350
+ },
11351
+ {
11352
+ "type": "null"
11353
+ }
11354
+ ]
11355
+ },
11331
11356
  "map.get-spatial-reference": {
11332
11357
  "description": "If a map extension ID is specified, returns the spatial reference for that map. If no map extension ID is specified, returns the spatial reference of the first available map.",
11333
11358
  "enum": [
@@ -12314,6 +12339,22 @@
12314
12339
  ],
12315
12340
  "type": "object"
12316
12341
  },
12342
+ {
12343
+ "additionalProperties": false,
12344
+ "properties": {
12345
+ "arguments": {
12346
+ "$ref": "#/definitions/map.clear-markup:input"
12347
+ },
12348
+ "name": {
12349
+ "$ref": "#/definitions/map.clear-markup"
12350
+ }
12351
+ },
12352
+ "required": [
12353
+ "name",
12354
+ "arguments"
12355
+ ],
12356
+ "type": "object"
12357
+ },
12317
12358
  {
12318
12359
  "additionalProperties": false,
12319
12360
  "properties": {
@@ -12827,6 +12868,9 @@
12827
12868
  {
12828
12869
  "$ref": "#/definitions/map.add-markup"
12829
12870
  },
12871
+ {
12872
+ "$ref": "#/definitions/map.clear-markup"
12873
+ },
12830
12874
  {
12831
12875
  "$ref": "#/definitions/map.pan-to-features"
12832
12876
  },
@@ -12488,6 +12488,31 @@
12488
12488
  }
12489
12489
  ]
12490
12490
  },
12491
+ "map.clear-markup": {
12492
+ "description": "Clears all markup from the map(s).",
12493
+ "enum": [
12494
+ "map.clear-markup"
12495
+ ]
12496
+ },
12497
+ "map.clear-markup:input": {
12498
+ "anyOf": [
12499
+ {
12500
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
12501
+ },
12502
+ {
12503
+ "$ref": "#/definitions/HasMaps"
12504
+ },
12505
+ {
12506
+ "items": {
12507
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
12508
+ },
12509
+ "type": "array"
12510
+ },
12511
+ {
12512
+ "type": "null"
12513
+ }
12514
+ ]
12515
+ },
12491
12516
  "map.disable-map-click": {
12492
12517
  "description": "Disables the click event handler on the map, so that if the user clicks on the map, the configured handler will not be invoked.",
12493
12518
  "enum": [
@@ -14475,6 +14500,22 @@
14475
14500
  ],
14476
14501
  "type": "object"
14477
14502
  },
14503
+ {
14504
+ "additionalProperties": false,
14505
+ "properties": {
14506
+ "arguments": {
14507
+ "$ref": "#/definitions/map.clear-markup:input"
14508
+ },
14509
+ "name": {
14510
+ "$ref": "#/definitions/map.clear-markup"
14511
+ }
14512
+ },
14513
+ "required": [
14514
+ "name",
14515
+ "arguments"
14516
+ ],
14517
+ "type": "object"
14518
+ },
14478
14519
  {
14479
14520
  "additionalProperties": false,
14480
14521
  "properties": {
@@ -15735,6 +15776,9 @@
15735
15776
  {
15736
15777
  "$ref": "#/definitions/map.add-markup"
15737
15778
  },
15779
+ {
15780
+ "$ref": "#/definitions/map.clear-markup"
15781
+ },
15738
15782
  {
15739
15783
  "$ref": "#/definitions/map.disable-map-click"
15740
15784
  },
@@ -928,6 +928,15 @@
928
928
  "app.backgrounded"
929
929
  ]
930
930
  },
931
+ "app.custom-started": {
932
+ "description": "Raised when a custom app is started.",
933
+ "enum": [
934
+ "app.custom-started"
935
+ ]
936
+ },
937
+ "app.custom-started:input": {
938
+ "$ref": "#/definitions/SpecificAppArgs"
939
+ },
931
940
  "app.custom.started": {
932
941
  "description": "Raised when a custom app is started.",
933
942
  "enum": [
@@ -937,6 +946,21 @@
937
946
  "app.custom.started:input": {
938
947
  "$ref": "#/definitions/SpecificAppArgs"
939
948
  },
949
+ "app.favorited": {
950
+ "description": "Raised when an app is favorited.",
951
+ "enum": [
952
+ "app.favorited"
953
+ ]
954
+ },
955
+ "app.favorited:input": {
956
+ "$ref": "GcxAppInfo"
957
+ },
958
+ "app.generic-app-started": {
959
+ "description": "Raised when a generic app is started.",
960
+ "enum": [
961
+ "app.generic-app-started"
962
+ ]
963
+ },
940
964
  "app.generic.apps-listed": {
941
965
  "description": "Raised when apps are listed within the generic app.",
942
966
  "enum": [
@@ -952,12 +976,33 @@
952
976
  "app.generic.started"
953
977
  ]
954
978
  },
979
+ "app.going-to-app-selector": {
980
+ "description": "Raised when returning to the app selector screen from a specific app in Go.",
981
+ "enum": [
982
+ "app.going-to-app-selector"
983
+ ]
984
+ },
955
985
  "app.interrupted": {
956
986
  "description": "Raised when the app is interrupted temporarily (eg. Pull down notifications, control center, or OS level prompt or alert).",
957
987
  "enum": [
958
988
  "app.interrupted"
959
989
  ]
960
990
  },
991
+ "app.refreshed": {
992
+ "description": "Raised when an app has been refreshed.",
993
+ "enum": [
994
+ "app.refreshed"
995
+ ]
996
+ },
997
+ "app.refreshed:input": {
998
+ "$ref": "#/definitions/SpecificAppArgs"
999
+ },
1000
+ "app.refreshing": {
1001
+ "description": "Raised when an app refresh is beginning.",
1002
+ "enum": [
1003
+ "app.refreshing"
1004
+ ]
1005
+ },
961
1006
  "app.specific-app-started": {
962
1007
  "description": "Raised when a specific app is started within the generic app.",
963
1008
  "enum": [
@@ -967,6 +1012,15 @@
967
1012
  "app.specific-app-started:input": {
968
1013
  "$ref": "#/definitions/SpecificAppArgs"
969
1014
  },
1015
+ "app.unfavorited": {
1016
+ "description": "Raised when an app is unfavorited.",
1017
+ "enum": [
1018
+ "app.unfavorited"
1019
+ ]
1020
+ },
1021
+ "app.unfavorited:input": {
1022
+ "$ref": "GcxAppInfo"
1023
+ },
970
1024
  "auth.sign-in-cancelled": {
971
1025
  "description": "Raised when the user cancels a sign-in challenge.",
972
1026
  "enum": [
@@ -9559,21 +9613,42 @@
9559
9613
  {
9560
9614
  "$ref": "#/definitions/app.backgrounded"
9561
9615
  },
9616
+ {
9617
+ "$ref": "#/definitions/app.custom-started"
9618
+ },
9562
9619
  {
9563
9620
  "$ref": "#/definitions/app.custom.started"
9564
9621
  },
9622
+ {
9623
+ "$ref": "#/definitions/app.favorited"
9624
+ },
9625
+ {
9626
+ "$ref": "#/definitions/app.generic-app-started"
9627
+ },
9565
9628
  {
9566
9629
  "$ref": "#/definitions/app.generic.apps-listed"
9567
9630
  },
9568
9631
  {
9569
9632
  "$ref": "#/definitions/app.generic.started"
9570
9633
  },
9634
+ {
9635
+ "$ref": "#/definitions/app.going-to-app-selector"
9636
+ },
9571
9637
  {
9572
9638
  "$ref": "#/definitions/app.interrupted"
9573
9639
  },
9640
+ {
9641
+ "$ref": "#/definitions/app.refreshed"
9642
+ },
9643
+ {
9644
+ "$ref": "#/definitions/app.refreshing"
9645
+ },
9574
9646
  {
9575
9647
  "$ref": "#/definitions/app.specific-app-started"
9576
9648
  },
9649
+ {
9650
+ "$ref": "#/definitions/app.unfavorited"
9651
+ },
9577
9652
  {
9578
9653
  "$ref": "#/definitions/auth.sign-in-cancelled"
9579
9654
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "48.8.0",
3
+ "version": "48.11.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "author": "VertiGIS Ltd.",
36
36
  "peerDependencies": {
37
- "@vertigis/arcgis-extensions": ">= 35.5.0 < 36.0.0"
37
+ "@vertigis/arcgis-extensions": ">= 35.6.0 < 36.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arcgis/core": "4.23.3",
41
- "@vertigis/arcgis-extensions": "35.5.0",
41
+ "@vertigis/arcgis-extensions": "35.6.0",
42
42
  "@prettier/plugin-xml": "2.2.0",
43
43
  "@types/glob": "7.2.0",
44
44
  "@types/node": "14.14.41",
@@ -59,7 +59,7 @@
59
59
  "prettier": "2.6.2",
60
60
  "prettier-plugin-jsdoc": "0.3.38",
61
61
  "simple-git-hooks": "2.7.0",
62
- "terser": "5.13.1",
62
+ "terser": "5.14.2",
63
63
  "typescript": "4.6.4",
64
64
  "weaktuplemap": "1.0.0"
65
65
  },
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "48.8.0";
4
+ export declare const version = "48.11.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "48.8.0";
4
+ export const version = "48.11.0";