@vertigis/viewer-spec 51.14.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.
@@ -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"
@@ -18537,6 +18541,34 @@
18537
18541
  "results.from-csv:output": {
18538
18542
  "$ref": "#/definitions/Features"
18539
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
+ },
18540
18572
  "results.from-graphics": {
18541
18573
  "description": "Converts provided GraphicsLike to VertiGIS Studio Features using any available metadata.",
18542
18574
  "enum": [
@@ -22712,6 +22744,22 @@
22712
22744
  ],
22713
22745
  "type": "object"
22714
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
+ },
22715
22763
  {
22716
22764
  "additionalProperties": false,
22717
22765
  "properties": {
@@ -23243,6 +23291,9 @@
23243
23291
  {
23244
23292
  "$ref": "#/definitions/results.from-csv"
23245
23293
  },
23294
+ {
23295
+ "$ref": "#/definitions/results.from-files"
23296
+ },
23246
23297
  {
23247
23298
  "$ref": "#/definitions/results.from-graphics"
23248
23299
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "51.14.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.14.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.14.0";
4
+ export const version = "51.15.0";