@vertigis/viewer-spec 43.3.1 → 43.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.
- package/messaging/registry/ui.d.ts +34 -0
- package/messaging/registry/ui.js +1 -1
- package/messaging/schema/common-action.schema.json +17 -0
- package/messaging/schema/mobile-action.schema.json +17 -0
- package/messaging/schema/web-action.schema.json +17 -0
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -94,6 +94,40 @@ export interface DisplayNotificationArgs {
|
|
|
94
94
|
* and will supersede one another. Mobile only.
|
|
95
95
|
*/
|
|
96
96
|
notificationGroup?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The notification title - only shown for system notifications. Mobile
|
|
99
|
+
* only.
|
|
100
|
+
*/
|
|
101
|
+
title?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The type of notification - 'app', 'system', or 'auto'. Defaults to
|
|
104
|
+
* 'auto'. Mobile only.
|
|
105
|
+
*/
|
|
106
|
+
type?: NotificationType;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'.
|
|
110
|
+
* Mobile only.
|
|
111
|
+
*/
|
|
112
|
+
export declare enum NotificationType {
|
|
113
|
+
/**
|
|
114
|
+
* Automatically choose whether to display an app notification or system
|
|
115
|
+
* notification. If the app is in the background, a system notification will
|
|
116
|
+
* be shown. If the app is in the foreground, an in-app notificaiton will be
|
|
117
|
+
* shown. If notifications are unauthorized at the OS level, an in-app
|
|
118
|
+
* notification will always be shown.
|
|
119
|
+
*/
|
|
120
|
+
AUTO = "auto",
|
|
121
|
+
/**
|
|
122
|
+
* Display the notification in-app.
|
|
123
|
+
*/
|
|
124
|
+
APP = "app",
|
|
125
|
+
/**
|
|
126
|
+
* Display the notification as a system notification using the device's
|
|
127
|
+
* operating system. If system notifications are turned off/disabled in the
|
|
128
|
+
* OS settings, then it will fall back to using an in-app notification.
|
|
129
|
+
*/
|
|
130
|
+
SYSTEM = "system"
|
|
97
131
|
}
|
|
98
132
|
/**
|
|
99
133
|
* Arguments for the "ui.set-visual-state" command.
|
package/messaging/registry/ui.js
CHANGED
|
@@ -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 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")}}
|
|
@@ -693,6 +693,14 @@
|
|
|
693
693
|
"position": {
|
|
694
694
|
"$ref": "Position",
|
|
695
695
|
"description": "The position of the notification on the screen."
|
|
696
|
+
},
|
|
697
|
+
"title": {
|
|
698
|
+
"description": "The notification title - only shown for system notifications. Mobile only.",
|
|
699
|
+
"type": "string"
|
|
700
|
+
},
|
|
701
|
+
"type": {
|
|
702
|
+
"$ref": "#/definitions/NotificationType",
|
|
703
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only."
|
|
696
704
|
}
|
|
697
705
|
},
|
|
698
706
|
"required": [
|
|
@@ -1289,6 +1297,15 @@
|
|
|
1289
1297
|
],
|
|
1290
1298
|
"type": "string"
|
|
1291
1299
|
},
|
|
1300
|
+
"NotificationType": {
|
|
1301
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only.",
|
|
1302
|
+
"enum": [
|
|
1303
|
+
"app",
|
|
1304
|
+
"auto",
|
|
1305
|
+
"system"
|
|
1306
|
+
],
|
|
1307
|
+
"type": "string"
|
|
1308
|
+
},
|
|
1292
1309
|
"Results": {
|
|
1293
1310
|
"additionalProperties": false,
|
|
1294
1311
|
"description": "Feature results from an operation.",
|
|
@@ -821,6 +821,14 @@
|
|
|
821
821
|
"position": {
|
|
822
822
|
"$ref": "Position",
|
|
823
823
|
"description": "The position of the notification on the screen."
|
|
824
|
+
},
|
|
825
|
+
"title": {
|
|
826
|
+
"description": "The notification title - only shown for system notifications. Mobile only.",
|
|
827
|
+
"type": "string"
|
|
828
|
+
},
|
|
829
|
+
"type": {
|
|
830
|
+
"$ref": "#/definitions/NotificationType",
|
|
831
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only."
|
|
824
832
|
}
|
|
825
833
|
},
|
|
826
834
|
"required": [
|
|
@@ -1651,6 +1659,15 @@
|
|
|
1651
1659
|
],
|
|
1652
1660
|
"type": "string"
|
|
1653
1661
|
},
|
|
1662
|
+
"NotificationType": {
|
|
1663
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only.",
|
|
1664
|
+
"enum": [
|
|
1665
|
+
"app",
|
|
1666
|
+
"auto",
|
|
1667
|
+
"system"
|
|
1668
|
+
],
|
|
1669
|
+
"type": "string"
|
|
1670
|
+
},
|
|
1654
1671
|
"OfflineCommandArgs": {
|
|
1655
1672
|
"additionalProperties": false,
|
|
1656
1673
|
"description": "Arguments for various offline commands.",
|
|
@@ -1336,6 +1336,14 @@
|
|
|
1336
1336
|
"position": {
|
|
1337
1337
|
"$ref": "Position",
|
|
1338
1338
|
"description": "The position of the notification on the screen."
|
|
1339
|
+
},
|
|
1340
|
+
"title": {
|
|
1341
|
+
"description": "The notification title - only shown for system notifications. Mobile only.",
|
|
1342
|
+
"type": "string"
|
|
1343
|
+
},
|
|
1344
|
+
"type": {
|
|
1345
|
+
"$ref": "#/definitions/NotificationType",
|
|
1346
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only."
|
|
1339
1347
|
}
|
|
1340
1348
|
},
|
|
1341
1349
|
"required": [
|
|
@@ -3230,6 +3238,15 @@
|
|
|
3230
3238
|
],
|
|
3231
3239
|
"type": "string"
|
|
3232
3240
|
},
|
|
3241
|
+
"NotificationType": {
|
|
3242
|
+
"description": "The type of notification - 'app', 'system', or 'auto'. Defaults to 'auto'. Mobile only.",
|
|
3243
|
+
"enum": [
|
|
3244
|
+
"app",
|
|
3245
|
+
"auto",
|
|
3246
|
+
"system"
|
|
3247
|
+
],
|
|
3248
|
+
"type": "string"
|
|
3249
|
+
},
|
|
3233
3250
|
"Orientation": {
|
|
3234
3251
|
"description": "An orientation for the layout.",
|
|
3235
3252
|
"enum": [
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED