@vertigis/viewer-spec 51.0.0 → 51.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.
@@ -43,6 +43,11 @@ export interface OfflineCommandArgs {
43
43
  * The associated map for the offline command/operation.
44
44
  */
45
45
  maps: MapsLike;
46
+ /**
47
+ * Whether a prelanned map area should update after download. Defaults to
48
+ * false.
49
+ */
50
+ updatePreplannedAreaOnDownload: boolean;
46
51
  }
47
52
  /**
48
53
  * Arguments for the "offline.area-activated" event.
@@ -238,6 +243,11 @@ export interface OfflineOperationResult {
238
243
  * update) operation.
239
244
  */
240
245
  syncTableErrors: IDictionary<FeatureTable, Exception>;
246
+ /**
247
+ * An OfflineOperationResult. Can be used to capture multiple results from a
248
+ * chain of offline operations.
249
+ */
250
+ nextResult: OfflineOperationResult;
241
251
  }
242
252
  /**
243
253
  * An error code for a known offline operation error.
@@ -344,11 +344,12 @@ export declare class UIOperations extends OperationRegistry {
344
344
  */
345
345
  get confirm(): Operation<ConfirmOperationArgs, boolean>;
346
346
  /**
347
- * Prompts the user to enter a value in a popup box.
347
+ * Gets the current locale code for the application. (example: "en", "fr" or
348
+ * "de-AT").
348
349
  *
349
350
  * @webOnly
350
351
  */
351
- get prompt(): Operation<PromptOperationArgs, string>;
352
+ get getLocale(): Operation<void, string>;
352
353
  /**
353
354
  * Gets the active color theme of the viewer. Returns the theme's ID.
354
355
  *
@@ -367,6 +368,12 @@ export declare class UIOperations extends OperationRegistry {
367
368
  * @webOnly
368
369
  */
369
370
  get getVisualState(): Operation<ComponentId, VisualState | undefined>;
371
+ /**
372
+ * Prompts the user to enter a value in a popup box.
373
+ *
374
+ * @webOnly
375
+ */
376
+ get prompt(): Operation<PromptOperationArgs, string>;
370
377
  }
371
378
  export declare class UIEvents extends EventRegistry {
372
379
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var NotificationCategory;!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(NotificationCategory||(NotificationCategory={}));export var NotificationType;!function(e){e.AUTO="auto",e.APP="app",e.SYSTEM="system"}(NotificationType||(NotificationType={}));export var Position;!function(e){e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.TOP="top"}(Position||(Position={}));export class UICommands extends CommandRegistry{get activate(){return this._messages.command("ui.activate")}get activeToggle(){return this._messages.command("ui.active-toggle")}get alert(){return this._messages.command("ui.alert")}get await(){return this._messages.command("ui.await")}get deactivate(){return this._messages.command("ui.deactivate")}get displayBusyState(){return this._messages.command("ui.display-busy-state")}get displayNotification(){return this._messages.command("ui.display-notification")}get pauseNotifications(){return this._messages.command("ui.pause-notifications")}get resumeNotifications(){return this._messages.command("ui.resume-notifications")}get focus(){return this._messages.command("ui.focus")}get hideBusyState(){return this._messages.command("ui.hide-busy-state")}get hideNotification(){return this._messages.command("ui.hide-notification")}get narrate(){return this._messages.command("ui.narrate")}get setDensity(){return this._messages.command("ui.set-density")}get setLocale(){return this._messages.command("ui.set-locale")}get setTheme(){return this._messages.command("ui.set-theme")}get setVisualState(){return this._messages.command("ui.set-visual-state")}}export class UIOperations extends OperationRegistry{get confirm(){return this._messages.operation("ui.confirm")}get prompt(){return this._messages.operation("ui.prompt")}get getTheme(){return this._messages.operation("ui.get-theme")}get getThemes(){return this._messages.operation("ui.get-themes")}get getVisualState(){return this._messages.operation("ui.get-visual-state")}}export class UIEvents extends EventRegistry{get activated(){return this._messages.event("ui.activated")}get added(){return this._messages.event("ui.added")}get ancestorActivated(){return this._messages.event("ui.ancestor-activated")}get ancestorDeactivated(){return this._messages.event("ui.ancestor-deactivated")}get deactivated(){return this._messages.event("ui.deactivated")}get densityChanged(){return this._messages.event("ui.density-changed")}get localeChanged(){return this._messages.event("ui.locale-changed")}get initializing(){return this._messages.event("ui.initializing")}get initialized(){return this._messages.event("ui.initialized")}get removed(){return this._messages.event("ui.removed")}get reordered(){return this._messages.event("ui.reordered")}get themeChanged(){return this._messages.event("ui.theme-changed")}get visualStateChanged(){return this._messages.event("ui.visual-state-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var NotificationCategory;!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(NotificationCategory||(NotificationCategory={}));export var NotificationType;!function(e){e.AUTO="auto",e.APP="app",e.SYSTEM="system"}(NotificationType||(NotificationType={}));export var Position;!function(e){e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.TOP="top"}(Position||(Position={}));export class UICommands extends CommandRegistry{get activate(){return this._messages.command("ui.activate")}get activeToggle(){return this._messages.command("ui.active-toggle")}get alert(){return this._messages.command("ui.alert")}get await(){return this._messages.command("ui.await")}get deactivate(){return this._messages.command("ui.deactivate")}get displayBusyState(){return this._messages.command("ui.display-busy-state")}get displayNotification(){return this._messages.command("ui.display-notification")}get pauseNotifications(){return this._messages.command("ui.pause-notifications")}get resumeNotifications(){return this._messages.command("ui.resume-notifications")}get focus(){return this._messages.command("ui.focus")}get hideBusyState(){return this._messages.command("ui.hide-busy-state")}get hideNotification(){return this._messages.command("ui.hide-notification")}get narrate(){return this._messages.command("ui.narrate")}get setDensity(){return this._messages.command("ui.set-density")}get setLocale(){return this._messages.command("ui.set-locale")}get setTheme(){return this._messages.command("ui.set-theme")}get setVisualState(){return this._messages.command("ui.set-visual-state")}}export class UIOperations extends OperationRegistry{get confirm(){return this._messages.operation("ui.confirm")}get getLocale(){return this._messages.operation("ui.get-locale")}get getTheme(){return this._messages.operation("ui.get-theme")}get getThemes(){return this._messages.operation("ui.get-themes")}get getVisualState(){return this._messages.operation("ui.get-visual-state")}get prompt(){return this._messages.operation("ui.prompt")}}export class UIEvents extends EventRegistry{get activated(){return this._messages.event("ui.activated")}get added(){return this._messages.event("ui.added")}get ancestorActivated(){return this._messages.event("ui.ancestor-activated")}get ancestorDeactivated(){return this._messages.event("ui.ancestor-deactivated")}get deactivated(){return this._messages.event("ui.deactivated")}get densityChanged(){return this._messages.event("ui.density-changed")}get localeChanged(){return this._messages.event("ui.locale-changed")}get initializing(){return this._messages.event("ui.initializing")}get initialized(){return this._messages.event("ui.initialized")}get removed(){return this._messages.event("ui.removed")}get reordered(){return this._messages.event("ui.reordered")}get themeChanged(){return this._messages.event("ui.theme-changed")}get visualStateChanged(){return this._messages.event("ui.visual-state-changed")}}
@@ -2479,11 +2479,16 @@
2479
2479
  "offlineArea": {
2480
2480
  "$ref": "OfflineAreaBase",
2481
2481
  "description": "The offline area to use."
2482
+ },
2483
+ "updatePreplannedAreaOnDownload": {
2484
+ "description": "Whether a prelanned map area should update after download. Defaults to false.",
2485
+ "type": "boolean"
2482
2486
  }
2483
2487
  },
2484
2488
  "required": [
2485
2489
  "maps",
2486
- "offlineArea"
2490
+ "offlineArea",
2491
+ "updatePreplannedAreaOnDownload"
2487
2492
  ],
2488
2493
  "type": "object"
2489
2494
  },
@@ -2532,6 +2537,10 @@
2532
2537
  "description": "A localized, end-user presentable error message, or null if the operation was successful.",
2533
2538
  "type": "string"
2534
2539
  },
2540
+ "nextResult": {
2541
+ "$ref": "#/definitions/OfflineOperationResult",
2542
+ "description": "An OfflineOperationResult. Can be used to capture multiple results from a chain of offline operations."
2543
+ },
2535
2544
  "success": {
2536
2545
  "description": "Whether or not the operation was successful.",
2537
2546
  "type": "boolean"
@@ -2567,6 +2576,7 @@
2567
2576
  "errorCode",
2568
2577
  "errorCodeString",
2569
2578
  "errorMessage",
2579
+ "nextResult",
2570
2580
  "success",
2571
2581
  "syncLayerErrors",
2572
2582
  "syncLayerResults",
@@ -18824,6 +18824,15 @@
18824
18824
  "ui.focus:input": {
18825
18825
  "$ref": "#/definitions/FocusArgs"
18826
18826
  },
18827
+ "ui.get-locale": {
18828
+ "description": "Gets the current locale code for the application. (example: \"en\", \"fr\" or \"de-AT\").",
18829
+ "enum": [
18830
+ "ui.get-locale"
18831
+ ]
18832
+ },
18833
+ "ui.get-locale:output": {
18834
+ "type": "string"
18835
+ },
18827
18836
  "ui.get-theme": {
18828
18837
  "description": "Gets the active color theme of the viewer. Returns the theme's ID.",
18829
18838
  "enum": [
@@ -22845,6 +22854,9 @@
22845
22854
  {
22846
22855
  "$ref": "#/definitions/ui.confirm"
22847
22856
  },
22857
+ {
22858
+ "$ref": "#/definitions/ui.get-locale"
22859
+ },
22848
22860
  {
22849
22861
  "$ref": "#/definitions/ui.get-theme"
22850
22862
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "51.0.0",
3
+ "version": "51.2.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.0.0";
4
+ export declare const version = "51.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 = "51.0.0";
4
+ export const version = "51.2.0";