@vertigis/viewer-spec 48.3.0 → 48.4.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.
@@ -2,6 +2,7 @@ import type { Command } from "../Command.js";
2
2
  import { CommandRegistry } from "../CommandRegistry.js";
3
3
  import type { Event } from "../Event.js";
4
4
  import { EventRegistry } from "../EventRegistry.js";
5
+ import type { Model } from "../common.js";
5
6
  /**
6
7
  * Arguments for the "panel.anchor-host-panel" command.
7
8
  */
@@ -80,6 +81,20 @@ export declare class PanelCommands extends CommandRegistry {
80
81
  * @mobileOnly
81
82
  */
82
83
  get snapHostPanel(): Command<SnapHostPanelArgs>;
84
+ /**
85
+ * Closes the popout window for a panel and restores the original
86
+ * layout.
87
+ *
88
+ * @webOnly
89
+ */
90
+ get popIn(): Command<Model["id"] | Model>;
91
+ /**
92
+ * Removes a panel from the main layout and opens it in a new popout
93
+ * window.
94
+ *
95
+ * @webOnly
96
+ */
97
+ get popOut(): Command<Model["id"] | Model>;
83
98
  }
84
99
  export declare class PanelEvents extends EventRegistry {
85
100
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export var SnapPosition;!function(e){e.HIDDEN="hidden",e.MIDDLE="middle",e.TOP="top"}(SnapPosition||(SnapPosition={}));export class PanelCommands extends CommandRegistry{get openHostPanel(){return this._messages.command("panel.open-host-panel")}get closeHostPanel(){return this._messages.command("panel.close-host-panel")}get anchorHostPanel(){return this._messages.command("panel.anchor-host-panel")}get snapHostPanel(){return this._messages.command("panel.snap-host-panel")}}export class PanelEvents extends EventRegistry{get hostPanelComponentChanged(){return this._messages.event("panel.host-panel-component-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export var SnapPosition;!function(e){e.HIDDEN="hidden",e.MIDDLE="middle",e.TOP="top"}(SnapPosition||(SnapPosition={}));export class PanelCommands extends CommandRegistry{get openHostPanel(){return this._messages.command("panel.open-host-panel")}get closeHostPanel(){return this._messages.command("panel.close-host-panel")}get anchorHostPanel(){return this._messages.command("panel.anchor-host-panel")}get snapHostPanel(){return this._messages.command("panel.snap-host-panel")}get popIn(){return this._messages.command("panel.pop-in")}get popOut(){return this._messages.command("panel.pop-out")}}export class PanelEvents extends EventRegistry{get hostPanelComponentChanged(){return this._messages.event("panel.host-panel-component-changed")}}
@@ -187,6 +187,23 @@ export interface FocusArgs {
187
187
  */
188
188
  timeout?: number;
189
189
  }
190
+ /**
191
+ * Payload for a VisualStateChangeEvent.
192
+ */
193
+ export interface VisualStateChangeEvent {
194
+ /**
195
+ * The ID of the component whose visual state has changed.
196
+ */
197
+ component: ComponentId;
198
+ /**
199
+ * The visual state of the component before the change.
200
+ */
201
+ previous: VisualState;
202
+ /**
203
+ * The new visual state of the component.
204
+ */
205
+ current: VisualState;
206
+ }
190
207
  /**
191
208
  * A component's visual state. The values will vary based on the component type.
192
209
  */
@@ -414,4 +431,10 @@ export declare class UIEvents extends EventRegistry {
414
431
  * @mobileOnly
415
432
  */
416
433
  get themeChanged(): Event;
434
+ /**
435
+ * Raised when a component's visual state is changed.
436
+ *
437
+ * @webOnly
438
+ */
439
+ get visualStateChanged(): Event<VisualStateChangeEvent>;
417
440
  }
@@ -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")}}
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")}}
@@ -16279,6 +16279,38 @@
16279
16279
  "items": {},
16280
16280
  "type": "array"
16281
16281
  },
16282
+ "panel.pop-in": {
16283
+ "description": "Closes the popout window for a panel and restores the original layout.",
16284
+ "enum": [
16285
+ "panel.pop-in"
16286
+ ]
16287
+ },
16288
+ "panel.pop-in:input": {
16289
+ "anyOf": [
16290
+ {
16291
+ "$ref": "#/definitions/Model"
16292
+ },
16293
+ {
16294
+ "type": "string"
16295
+ }
16296
+ ]
16297
+ },
16298
+ "panel.pop-out": {
16299
+ "description": "Removes a panel from the main layout and opens it in a new popout window.",
16300
+ "enum": [
16301
+ "panel.pop-out"
16302
+ ]
16303
+ },
16304
+ "panel.pop-out:input": {
16305
+ "anyOf": [
16306
+ {
16307
+ "$ref": "#/definitions/Model"
16308
+ },
16309
+ {
16310
+ "type": "string"
16311
+ }
16312
+ ]
16313
+ },
16282
16314
  "printing.run": {
16283
16315
  "description": "Run a print job with a given map and template.",
16284
16316
  "enum": [
@@ -18994,6 +19026,38 @@
18994
19026
  ],
18995
19027
  "type": "object"
18996
19028
  },
19029
+ {
19030
+ "additionalProperties": false,
19031
+ "properties": {
19032
+ "arguments": {
19033
+ "$ref": "#/definitions/panel.pop-in:input"
19034
+ },
19035
+ "name": {
19036
+ "$ref": "#/definitions/panel.pop-in"
19037
+ }
19038
+ },
19039
+ "required": [
19040
+ "name",
19041
+ "arguments"
19042
+ ],
19043
+ "type": "object"
19044
+ },
19045
+ {
19046
+ "additionalProperties": false,
19047
+ "properties": {
19048
+ "arguments": {
19049
+ "$ref": "#/definitions/panel.pop-out:input"
19050
+ },
19051
+ "name": {
19052
+ "$ref": "#/definitions/panel.pop-out"
19053
+ }
19054
+ },
19055
+ "required": [
19056
+ "name",
19057
+ "arguments"
19058
+ ],
19059
+ "type": "object"
19060
+ },
18997
19061
  {
18998
19062
  "additionalProperties": false,
18999
19063
  "properties": {
@@ -19919,6 +19983,12 @@
19919
19983
  {
19920
19984
  "$ref": "#/definitions/messaging.mix-in-args"
19921
19985
  },
19986
+ {
19987
+ "$ref": "#/definitions/panel.pop-in"
19988
+ },
19989
+ {
19990
+ "$ref": "#/definitions/panel.pop-out"
19991
+ },
19922
19992
  {
19923
19993
  "$ref": "#/definitions/printing.run"
19924
19994
  },
@@ -373,6 +373,10 @@
373
373
  ],
374
374
  "type": "string"
375
375
  },
376
+ "ComponentId": {
377
+ "description": "A component's ID in the layout.",
378
+ "type": "string"
379
+ },
376
380
  "CreateGraphicsResult": {
377
381
  "additionalProperties": false,
378
382
  "description": "Result of the \"drawing.create-graphics\" and \"measurement.create-graphics\" operations.",
@@ -1025,6 +1029,34 @@
1025
1029
  },
1026
1030
  "type": "object"
1027
1031
  },
1032
+ "VisualState": {
1033
+ "description": "A component's visual state. The values will vary based on the component type.",
1034
+ "type": "string"
1035
+ },
1036
+ "VisualStateChangeEvent": {
1037
+ "additionalProperties": false,
1038
+ "description": "Payload for a VisualStateChangeEvent.",
1039
+ "properties": {
1040
+ "component": {
1041
+ "$ref": "#/definitions/ComponentId",
1042
+ "description": "The ID of the component whose visual state has changed."
1043
+ },
1044
+ "current": {
1045
+ "$ref": "#/definitions/VisualState",
1046
+ "description": "The new visual state of the component."
1047
+ },
1048
+ "previous": {
1049
+ "$ref": "#/definitions/VisualState",
1050
+ "description": "The visual state of the component before the change."
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "component",
1055
+ "current",
1056
+ "previous"
1057
+ ],
1058
+ "type": "object"
1059
+ },
1028
1060
  "WorkflowErrorEventArgs": {
1029
1061
  "additionalProperties": false,
1030
1062
  "description": "Arguments for the \"workflow.workflow-error\" event.",
@@ -9480,6 +9512,15 @@
9480
9512
  "ui.reordered:input": {
9481
9513
  "type": "string"
9482
9514
  },
9515
+ "ui.visual-state-changed": {
9516
+ "description": "Raised when a component's visual state is changed.",
9517
+ "enum": [
9518
+ "ui.visual-state-changed"
9519
+ ]
9520
+ },
9521
+ "ui.visual-state-changed:input": {
9522
+ "$ref": "#/definitions/VisualStateChangeEvent"
9523
+ },
9483
9524
  "viewer-spec.Event": {
9484
9525
  "anyOf": [
9485
9526
  {
@@ -9620,6 +9661,9 @@
9620
9661
  {
9621
9662
  "$ref": "#/definitions/ui.reordered"
9622
9663
  },
9664
+ {
9665
+ "$ref": "#/definitions/ui.visual-state-changed"
9666
+ },
9623
9667
  {
9624
9668
  "$ref": "#/definitions/viewer.layout-changed"
9625
9669
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "48.3.0",
3
+ "version": "48.4.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 Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "48.3.0";
4
+ export declare const version = "48.4.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.3.0";
4
+ export const version = "48.4.0";