@vertigis/viewer-spec 55.0.0 → 55.2.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.
@@ -400,6 +400,14 @@ export declare class ResultsCommands extends CommandRegistry {
400
400
  * Removes features from a currently shown set of features.
401
401
  */
402
402
  get remove(): Command<ShowResultsArgs>;
403
+ /**
404
+ * Replaces feature(s) in the shown set of features. If a feature is not
405
+ * contained in the current set it is ignored. Features are uniquely
406
+ * identified by ID and not by object quality. Web only.
407
+ *
408
+ * @webOnly
409
+ */
410
+ get replace(): Command<ShowResultsArgs>;
403
411
  /**
404
412
  * Clear features from results list, results table, and results details. If
405
413
  * a component model or model ID is given, then only the specified component
@@ -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 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")}}
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 replace(){return this._messages.command("results.replace")}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")}}
@@ -22,13 +22,22 @@ export declare enum NotificationCategory {
22
22
  */
23
23
  export interface MessageBoxArgs {
24
24
  /**
25
- * The title of the Dialog.
25
+ * The title of the dialog.
26
26
  */
27
27
  title?: string;
28
28
  /**
29
- * The message to be displayed in the Dialog.
29
+ * The message to be displayed in the dialog.
30
30
  */
31
31
  message?: string;
32
+ /**
33
+ * Whether the dialog is draggable or not. Defaults to true. Web only.
34
+ */
35
+ isDraggable?: boolean;
36
+ /**
37
+ * Where the dialog appears in the app when it is created. Defaults to
38
+ * center position. Web only.
39
+ */
40
+ initialPosition?: MessageBoxPosition;
32
41
  }
33
42
  /**
34
43
  * Arguments for the 'ui.alert' command.
@@ -225,6 +234,10 @@ export declare enum Position {
225
234
  RIGHT = "right",
226
235
  TOP = "top"
227
236
  }
237
+ /**
238
+ * A position for the MessageBox dialog.
239
+ */
240
+ export type MessageBoxPosition = "bottom" | "start" | "end" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "center";
228
241
  /**
229
242
  * Arguments for the ui.narrate command.
230
243
  */
@@ -821,12 +821,20 @@
821
821
  "description": "The text to display on the dismiss button.",
822
822
  "type": "string"
823
823
  },
824
+ "initialPosition": {
825
+ "$ref": "MessageBoxPosition",
826
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
827
+ },
828
+ "isDraggable": {
829
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
830
+ "type": "boolean"
831
+ },
824
832
  "message": {
825
- "description": "The message to be displayed in the Dialog.",
833
+ "description": "The message to be displayed in the dialog.",
826
834
  "type": "string"
827
835
  },
828
836
  "title": {
829
- "description": "The title of the Dialog.",
837
+ "description": "The title of the dialog.",
830
838
  "type": "string"
831
839
  }
832
840
  },
@@ -964,8 +972,16 @@
964
972
  "description": "The text to display on the cancel button.",
965
973
  "type": "string"
966
974
  },
975
+ "initialPosition": {
976
+ "$ref": "MessageBoxPosition",
977
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
978
+ },
979
+ "isDraggable": {
980
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
981
+ "type": "boolean"
982
+ },
967
983
  "message": {
968
- "description": "The message to be displayed in the Dialog.",
984
+ "description": "The message to be displayed in the dialog.",
969
985
  "type": "string"
970
986
  },
971
987
  "okButtonText": {
@@ -973,7 +989,7 @@
973
989
  "type": "string"
974
990
  },
975
991
  "title": {
976
- "description": "The title of the Dialog.",
992
+ "description": "The title of the dialog.",
977
993
  "type": "string"
978
994
  }
979
995
  },
@@ -846,12 +846,20 @@
846
846
  "description": "The text to display on the dismiss button.",
847
847
  "type": "string"
848
848
  },
849
+ "initialPosition": {
850
+ "$ref": "MessageBoxPosition",
851
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
852
+ },
853
+ "isDraggable": {
854
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
855
+ "type": "boolean"
856
+ },
849
857
  "message": {
850
- "description": "The message to be displayed in the Dialog.",
858
+ "description": "The message to be displayed in the dialog.",
851
859
  "type": "string"
852
860
  },
853
861
  "title": {
854
- "description": "The title of the Dialog.",
862
+ "description": "The title of the dialog.",
855
863
  "type": "string"
856
864
  }
857
865
  },
@@ -1084,8 +1092,16 @@
1084
1092
  "description": "The text to display on the cancel button.",
1085
1093
  "type": "string"
1086
1094
  },
1095
+ "initialPosition": {
1096
+ "$ref": "MessageBoxPosition",
1097
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
1098
+ },
1099
+ "isDraggable": {
1100
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
1101
+ "type": "boolean"
1102
+ },
1087
1103
  "message": {
1088
- "description": "The message to be displayed in the Dialog.",
1104
+ "description": "The message to be displayed in the dialog.",
1089
1105
  "type": "string"
1090
1106
  },
1091
1107
  "okButtonText": {
@@ -1093,7 +1109,7 @@
1093
1109
  "type": "string"
1094
1110
  },
1095
1111
  "title": {
1096
- "description": "The title of the Dialog.",
1112
+ "description": "The title of the dialog.",
1097
1113
  "type": "string"
1098
1114
  }
1099
1115
  },
@@ -1069,12 +1069,20 @@
1069
1069
  "description": "The text to display on the dismiss button.",
1070
1070
  "type": "string"
1071
1071
  },
1072
+ "initialPosition": {
1073
+ "$ref": "MessageBoxPosition",
1074
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
1075
+ },
1076
+ "isDraggable": {
1077
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
1078
+ "type": "boolean"
1079
+ },
1072
1080
  "message": {
1073
- "description": "The message to be displayed in the Dialog.",
1081
+ "description": "The message to be displayed in the dialog.",
1074
1082
  "type": "string"
1075
1083
  },
1076
1084
  "title": {
1077
- "description": "The title of the Dialog.",
1085
+ "description": "The title of the dialog.",
1078
1086
  "type": "string"
1079
1087
  }
1080
1088
  },
@@ -1411,8 +1419,16 @@
1411
1419
  "description": "The text to display on the cancel button.",
1412
1420
  "type": "string"
1413
1421
  },
1422
+ "initialPosition": {
1423
+ "$ref": "MessageBoxPosition",
1424
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
1425
+ },
1426
+ "isDraggable": {
1427
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
1428
+ "type": "boolean"
1429
+ },
1414
1430
  "message": {
1415
- "description": "The message to be displayed in the Dialog.",
1431
+ "description": "The message to be displayed in the dialog.",
1416
1432
  "type": "string"
1417
1433
  },
1418
1434
  "okButtonText": {
@@ -1420,7 +1436,7 @@
1420
1436
  "type": "string"
1421
1437
  },
1422
1438
  "title": {
1423
- "description": "The title of the Dialog.",
1439
+ "description": "The title of the dialog.",
1424
1440
  "type": "string"
1425
1441
  }
1426
1442
  },
@@ -4918,8 +4934,16 @@
4918
4934
  "description": "The default value to display in the input box.",
4919
4935
  "type": "string"
4920
4936
  },
4937
+ "initialPosition": {
4938
+ "$ref": "MessageBoxPosition",
4939
+ "description": "Where the dialog appears in the app when it is created. Defaults to center position. Web only."
4940
+ },
4941
+ "isDraggable": {
4942
+ "description": "Whether the dialog is draggable or not. Defaults to true. Web only.",
4943
+ "type": "boolean"
4944
+ },
4921
4945
  "message": {
4922
- "description": "The message to be displayed in the Dialog.",
4946
+ "description": "The message to be displayed in the dialog.",
4923
4947
  "type": "string"
4924
4948
  },
4925
4949
  "okButtonText": {
@@ -4927,7 +4951,7 @@
4927
4951
  "type": "string"
4928
4952
  },
4929
4953
  "title": {
4930
- "description": "The title of the Dialog.",
4954
+ "description": "The title of the dialog.",
4931
4955
  "type": "string"
4932
4956
  }
4933
4957
  },
@@ -20069,6 +20093,15 @@
20069
20093
  "results.remove:input": {
20070
20094
  "$ref": "#/definitions/ShowResultsArgs"
20071
20095
  },
20096
+ "results.replace": {
20097
+ "description": "Replaces feature(s) in the shown set of features. If a feature is not contained in the current set it is ignored. Features are uniquely identified by ID and not by object quality. Web only.",
20098
+ "enum": [
20099
+ "results.replace"
20100
+ ]
20101
+ },
20102
+ "results.replace:input": {
20103
+ "$ref": "#/definitions/ShowResultsArgs"
20104
+ },
20072
20105
  "results.set-display-components": {
20073
20106
  "description": "Sets the selector, using CSS selector syntax, which queries for results components in the app layout XML, such as the Results List or Results Table components. The selector is used to determine which components will be activated when displaying results using `results.display`. All other components that do not match the selector are deactivated after running this command. Web only.",
20074
20107
  "enum": [
@@ -22860,6 +22893,22 @@
22860
22893
  ],
22861
22894
  "type": "object"
22862
22895
  },
22896
+ {
22897
+ "additionalProperties": false,
22898
+ "properties": {
22899
+ "arguments": {
22900
+ "$ref": "#/definitions/results.replace:input"
22901
+ },
22902
+ "name": {
22903
+ "$ref": "#/definitions/results.replace"
22904
+ }
22905
+ },
22906
+ "required": [
22907
+ "name",
22908
+ "arguments"
22909
+ ],
22910
+ "type": "object"
22911
+ },
22863
22912
  {
22864
22913
  "additionalProperties": false,
22865
22914
  "properties": {
@@ -23750,6 +23799,9 @@
23750
23799
  {
23751
23800
  "$ref": "#/definitions/results.remove"
23752
23801
  },
23802
+ {
23803
+ "$ref": "#/definitions/results.replace"
23804
+ },
23753
23805
  {
23754
23806
  "$ref": "#/definitions/results.set-display-components"
23755
23807
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "55.0.0",
3
+ "version": "55.2.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "peerDependencies": {
45
45
  "@arcgis/core": "*",
46
- "@vertigis/arcgis-extensions": ">= 40.5.0 < 41.0.0"
46
+ "@vertigis/arcgis-extensions": ">= 40.6.1 < 41.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@prettier/plugin-xml": "2.2.0",
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 = "55.0.0";
4
+ export declare const version = "55.2.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 = "55.0.0";
4
+ export const version = "55.2.0";