@signageos/front-applet 8.1.2 → 8.1.4
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/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/docs/sos/browser.md +66 -14
- package/docs/sos/command.md +52 -6
- package/docs/sos/debug.md +21 -2
- package/docs/sos/deviceInfo.md +31 -0
- package/docs/sos/display.md +34 -3
- package/docs/sos/fileSystem.md +1135 -59
- package/docs/sos/hardware/barcodeScanner.md +58 -15
- package/docs/sos/hardware/index.md +72 -15
- package/docs/sos/hardware/led.md +32 -3
- package/docs/sos/index.md +3 -3
- package/docs/sos/input.md +42 -1
- package/docs/sos/monitors.md +8 -0
- package/docs/sos/native/mdc.md +69 -23
- package/docs/sos/offline/cache.md +376 -30
- package/docs/sos/offline/index.md +127 -24
- package/docs/sos/osd.md +8 -1
- package/docs/sos/proofOfPlay.md +28 -0
- package/docs/sos/stream.md +78 -78
- package/docs/sos/sync.md +228 -21
- package/docs/sos/video.md +73 -73
- package/docs/sos_management/app.md +11 -11
- package/docs/sos_management/audio.md +3 -3
- package/docs/sos_management/firmware.md +11 -11
- package/docs/sos_management/index.md +9 -9
- package/docs/sos_management/network.md +10 -10
- package/docs/sos_management/package.md +6 -6
- package/docs/sos_management/power.md +27 -27
- package/docs/sos_management/screen.md +17 -17
- package/docs/sos_management/security.md +3 -3
- package/docs/sos_management/time.md +8 -8
- package/docs/sos_management/wifi.md +12 -12
- package/es6/FrontApplet/Browser/Browser.d.ts +25 -9
- package/es6/FrontApplet/Browser/Browser.js +25 -9
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +7 -0
- package/es6/FrontApplet/Browser/IOpenLinkOptions.js.map +1 -1
- package/es6/FrontApplet/Browser/events.d.ts +6 -0
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +15 -6
- package/es6/FrontApplet/Command/Command.js +15 -6
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommand.d.ts +7 -0
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -0
- package/es6/FrontApplet/Debug/Debug.d.ts +11 -3
- package/es6/FrontApplet/Debug/Debug.js +11 -3
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +19 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +20 -2
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +22 -14
- package/es6/FrontApplet/Display/Display.js +22 -14
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +4 -0
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +429 -41
- package/es6/FrontApplet/FileSystem/FileSystem.js +427 -39
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +4 -1
- package/es6/FrontApplet/FileSystem/types.d.ts +46 -0
- package/es6/FrontApplet/FileSystem/types.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +36 -8
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +34 -2
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/IBarcodeScanner.d.ts +5 -0
- package/es6/FrontApplet/Hardware/Hardware.d.ts +34 -5
- package/es6/FrontApplet/Hardware/Hardware.js +33 -5
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
- package/es6/FrontApplet/Hardware/ISerialPort.d.ts +17 -1
- package/es6/FrontApplet/Hardware/ISerialPortDataMessage.d.ts +3 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.d.ts +6 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +3 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +19 -3
- package/es6/FrontApplet/Hardware/Led/Led.js +19 -3
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +9 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js +6 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +17 -1
- package/es6/FrontApplet/Input/Input.js +17 -1
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +5 -0
- package/es6/FrontApplet/Monitors/Monitors.js +5 -0
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/INativeMdcCommands.d.ts +1 -0
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +32 -11
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +14 -11
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/OSD/OSD.d.ts +5 -1
- package/es6/FrontApplet/OSD/OSD.js +5 -1
- package/es6/FrontApplet/OSD/OSD.js.map +1 -1
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +205 -28
- package/es6/FrontApplet/Offline/Cache/Cache.js +205 -28
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/IFileType.js.map +1 -1
- package/es6/FrontApplet/Offline/ISaveFile.d.ts +3 -0
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
- package/es6/FrontApplet/Offline/Offline.d.ts +58 -15
- package/es6/FrontApplet/Offline/Offline.js +56 -13
- package/es6/FrontApplet/Offline/Offline.js.map +1 -1
- package/es6/FrontApplet/ProofOfPlay/IRecordItemOptions.d.ts +3 -0
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +15 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +15 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +101 -18
- package/es6/FrontApplet/Sync/Sync.js +84 -10
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,9 +28,9 @@ setVolume(volume: number): Promise<void>;
|
|
|
28
28
|
|
|
29
29
|
#### Params
|
|
30
30
|
|
|
31
|
-
| Name | Type | Description |
|
|
32
|
-
|
|
33
|
-
| `volume` | `number` | Value between 0 and 100. |
|
|
31
|
+
| Name | Type | Required | Description |
|
|
32
|
+
|----------|----------|------------------|--------------------------|
|
|
33
|
+
| `volume` | `number` | <div>Yes</div> | Value between 0 and 100. |
|
|
34
34
|
|
|
35
35
|
## API Example
|
|
36
36
|
|
|
@@ -54,10 +54,10 @@ upgrade(baseUrl: string, version: string): Promise<void>;
|
|
|
54
54
|
|
|
55
55
|
#### Params
|
|
56
56
|
|
|
57
|
-
| Name | Type | Description |
|
|
58
|
-
|
|
59
|
-
| `baseUrl` | `string` | The server URL where firmware files are located. |
|
|
60
|
-
| `version` | `string` | The version of the firmware being installed. |
|
|
57
|
+
| Name | Type | Required | Description |
|
|
58
|
+
|-----------|----------|------------------|--------------------------------------------------|
|
|
59
|
+
| `baseUrl` | `string` | <div>Yes</div> | The server URL where firmware files are located. |
|
|
60
|
+
| `version` | `string` | <div>Yes</div> | The version of the firmware being installed. |
|
|
61
61
|
|
|
62
62
|
#### Example
|
|
63
63
|
|
|
@@ -86,9 +86,9 @@ upgrade(fwUri: string): Promise<void>;
|
|
|
86
86
|
|
|
87
87
|
#### Params
|
|
88
88
|
|
|
89
|
-
| Name | Type | Description |
|
|
90
|
-
|
|
91
|
-
| `fwUri` | `string` | FQN uri where the firmware main file is located. |
|
|
89
|
+
| Name | Type | Required | Description |
|
|
90
|
+
|---------|----------|------------------|--------------------------------------------------|
|
|
91
|
+
| `fwUri` | `string` | <div>Yes</div> | FQN uri where the firmware main file is located. |
|
|
92
92
|
|
|
93
93
|
#### Example
|
|
94
94
|
|
|
@@ -110,7 +110,7 @@ upgrade(version: string, baseUrl?: string): Promise<void>;
|
|
|
110
110
|
|
|
111
111
|
#### Params
|
|
112
112
|
|
|
113
|
-
| Name
|
|
114
|
-
|
|
115
|
-
| `version`
|
|
116
|
-
| `baseUrl`
|
|
113
|
+
| Name | Type | Required | Description |
|
|
114
|
+
|-----------|----------|------------------|-------------------------------------------------------------------------------------------------------|
|
|
115
|
+
| `version` | `string` | <div>Yes</div> | The version of the firmware being installed. |
|
|
116
|
+
| `baseUrl` | `string` | <div>No</div> | Optional server URL where firmware files are located.<br/>(Default value: `"https://2.signageos.io"`) |
|
|
@@ -136,9 +136,9 @@ setExtendedManagementUrl(url: string | null): Promise<void>;
|
|
|
136
136
|
|
|
137
137
|
#### Params
|
|
138
138
|
|
|
139
|
-
| Name | Type | Description |
|
|
140
|
-
|
|
141
|
-
| `url` | `string \| null` | The management URL to set. |
|
|
139
|
+
| Name | Type | Required | Description |
|
|
140
|
+
|-------|------------------|------------------|----------------------------|
|
|
141
|
+
| `url` | `string \| null` | <div>Yes</div> | The management URL to set. |
|
|
142
142
|
|
|
143
143
|
<Separator />
|
|
144
144
|
|
|
@@ -152,9 +152,9 @@ setHardwareAcceleration(enabled: boolean): Promise<void>;
|
|
|
152
152
|
|
|
153
153
|
#### Params
|
|
154
154
|
|
|
155
|
-
| Name | Type | Description |
|
|
156
|
-
|
|
157
|
-
| `enabled` | `boolean` | Whether hardware acceleration should be enabled. |
|
|
155
|
+
| Name | Type | Required | Description |
|
|
156
|
+
|-----------|-----------|------------------|--------------------------------------------------|
|
|
157
|
+
| `enabled` | `boolean` | <div>Yes</div> | Whether hardware acceleration should be enabled. |
|
|
158
158
|
|
|
159
159
|
<Separator />
|
|
160
160
|
|
|
@@ -173,9 +173,9 @@ type AnyString = string & {};
|
|
|
173
173
|
|
|
174
174
|
#### Params
|
|
175
175
|
|
|
176
|
-
| Name | Type | Description |
|
|
177
|
-
|
|
178
|
-
| `capability` | `ManagementCapability` | The capability to check for support. |
|
|
176
|
+
| Name | Type | Required | Description |
|
|
177
|
+
|--------------|------------------------|------------------|--------------------------------------|
|
|
178
|
+
| `capability` | `ManagementCapability` | <div>Yes</div> | The capability to check for support. |
|
|
179
179
|
|
|
180
180
|
<Separator />
|
|
181
181
|
|
|
@@ -30,9 +30,9 @@ disableInterface(interfaceName: string): Promise<void>;
|
|
|
30
30
|
|
|
31
31
|
#### Params
|
|
32
32
|
|
|
33
|
-
| Name | Type | Description |
|
|
34
|
-
|
|
35
|
-
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
33
|
+
| Name | Type | Required | Description |
|
|
34
|
+
|-----------------|----------|------------------|----------------------------------------------------------------------------------------------------|
|
|
35
|
+
| `interfaceName` | `string` | <div>Yes</div> | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
36
36
|
|
|
37
37
|
<Separator />
|
|
38
38
|
|
|
@@ -85,9 +85,9 @@ setDHCP(interfaceName: string): Promise<void>;
|
|
|
85
85
|
|
|
86
86
|
#### Params
|
|
87
87
|
|
|
88
|
-
| Name | Type | Description |
|
|
89
|
-
|
|
90
|
-
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
88
|
+
| Name | Type | Required | Description |
|
|
89
|
+
|-----------------|----------|------------------|----------------------------------------------------------------------------------------------------|
|
|
90
|
+
| `interfaceName` | `string` | <div>Yes</div> | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
91
91
|
|
|
92
92
|
<Separator />
|
|
93
93
|
|
|
@@ -115,10 +115,10 @@ interface INetworkOptions {
|
|
|
115
115
|
|
|
116
116
|
#### Params
|
|
117
117
|
|
|
118
|
-
| Name | Type | Description |
|
|
119
|
-
|
|
120
|
-
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
121
|
-
| `options` | `INetworkOptions` | The network configuration options. |
|
|
118
|
+
| Name | Type | Required | Description |
|
|
119
|
+
|-----------------|-------------------|------------------|----------------------------------------------------------------------------------------------------|
|
|
120
|
+
| `interfaceName` | `string` | <div>Yes</div> | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
121
|
+
| `options` | `INetworkOptions` | <div>Yes</div> | The network configuration options. |
|
|
122
122
|
|
|
123
123
|
<Separator />
|
|
124
124
|
|
|
@@ -18,12 +18,12 @@ install(baseUrl: string, packageName: string, version: string, build: string | n
|
|
|
18
18
|
|
|
19
19
|
#### Params
|
|
20
20
|
|
|
21
|
-
| Name | Type | Description |
|
|
22
|
-
|
|
23
|
-
| `baseUrl` | `string` | URL where the package is available |
|
|
24
|
-
| `packageName` | `string` | Name of the android package |
|
|
25
|
-
| `version` | `string` | Package version |
|
|
26
|
-
| `build` | `string \| null` | If relevant for your device |
|
|
21
|
+
| Name | Type | Required | Description |
|
|
22
|
+
|---------------|------------------|------------------|------------------------------------|
|
|
23
|
+
| `baseUrl` | `string` | <div>Yes</div> | URL where the package is available |
|
|
24
|
+
| `packageName` | `string` | <div>Yes</div> | Name of the android package |
|
|
25
|
+
| `version` | `string` | <div>Yes</div> | Package version |
|
|
26
|
+
| `build` | `string \| null` | <div>Yes</div> | If relevant for your device |
|
|
27
27
|
|
|
28
28
|
## API Example
|
|
29
29
|
|
|
@@ -128,9 +128,9 @@ removeScheduledReboot(id: string): Promise<void>;
|
|
|
128
128
|
|
|
129
129
|
#### Params
|
|
130
130
|
|
|
131
|
-
| Name | Type | Description |
|
|
132
|
-
|
|
133
|
-
| `id` | `string` | - ID of the rule to be removed. |
|
|
131
|
+
| Name | Type | Required | Description |
|
|
132
|
+
|------|----------|------------------|---------------------------------|
|
|
133
|
+
| `id` | `string` | <div>Yes</div> | - ID of the rule to be removed. |
|
|
134
134
|
|
|
135
135
|
#### Example
|
|
136
136
|
|
|
@@ -155,13 +155,13 @@ setProprietaryTimer(type: ProprietaryTimerType, timeOn: string | null, timeOff:
|
|
|
155
155
|
|
|
156
156
|
#### Params
|
|
157
157
|
|
|
158
|
-
| Name
|
|
159
|
-
|
|
160
|
-
| `type`
|
|
161
|
-
| `timeOn`
|
|
162
|
-
| `timeOff`
|
|
163
|
-
| `weekdays`
|
|
164
|
-
| `keepAppletRunning`
|
|
158
|
+
| Name | Type | Required | Description |
|
|
159
|
+
|---------------------|---------------------|------------------|-----------------------------------------------------------------------------------------|
|
|
160
|
+
| `type` | ``TIMER_${number}`` | <div>Yes</div> | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
161
|
+
| `timeOn` | `string \| null` | <div>Yes</div> | The time when the device should turn on. |
|
|
162
|
+
| `timeOff` | `string \| null` | <div>Yes</div> | The time when the device should turn off. |
|
|
163
|
+
| `weekdays` | `string[]` | <div>Yes</div> | The days of the week when the timer should be active (`mon`, ..., `sun`). |
|
|
164
|
+
| `keepAppletRunning` | `boolean` | <div>No</div> | If `true`, the applet will be kept running when the timer is active on certain devices. |
|
|
165
165
|
|
|
166
166
|
#### Example
|
|
167
167
|
|
|
@@ -190,10 +190,10 @@ type WeekdayType = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' |
|
|
|
190
190
|
|
|
191
191
|
#### Params
|
|
192
192
|
|
|
193
|
-
| Name | Type | Description |
|
|
194
|
-
|
|
195
|
-
| `weekdays` | `WeekdayType[]` | |
|
|
196
|
-
| `time` | `string` | - Time when the reboot should be executed. Format is `HH:mm:ss`. |
|
|
193
|
+
| Name | Type | Required | Description |
|
|
194
|
+
|------------|-----------------|------------------|------------------------------------------------------------------|
|
|
195
|
+
| `weekdays` | `WeekdayType[]` | <div>Yes</div> | |
|
|
196
|
+
| `time` | `string` | <div>Yes</div> | - Time when the reboot should be executed. Format is `HH:mm:ss`. |
|
|
197
197
|
|
|
198
198
|
#### Example
|
|
199
199
|
|
|
@@ -217,13 +217,13 @@ setTimer(type: keyof typeof TimerType, timeOn: string | null, timeOff: string |
|
|
|
217
217
|
|
|
218
218
|
#### Params
|
|
219
219
|
|
|
220
|
-
| Name | Type | Description |
|
|
221
|
-
|
|
222
|
-
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
223
|
-
| `timeOn` | `string \| null` | The time when the device should turn on. |
|
|
224
|
-
| `timeOff` | `string \| null` | The time when the device should turn off. |
|
|
225
|
-
| `weekdays` | `string[]` | The days of the week when the timer should be active (`mon`, ..., `sun`). |
|
|
226
|
-
| `volume` | `number` | The volume level set when the device is turned on. |
|
|
220
|
+
| Name | Type | Required | Description |
|
|
221
|
+
|------------|-------------------------------------------------------------------------------------------|------------------|---------------------------------------------------------------------------|
|
|
222
|
+
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | <div>Yes</div> | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
223
|
+
| `timeOn` | `string \| null` | <div>Yes</div> | The time when the device should turn on. |
|
|
224
|
+
| `timeOff` | `string \| null` | <div>Yes</div> | The time when the device should turn off. |
|
|
225
|
+
| `weekdays` | `string[]` | <div>Yes</div> | The days of the week when the timer should be active (`mon`, ..., `sun`). |
|
|
226
|
+
| `volume` | `number` | <div>Yes</div> | The volume level set when the device is turned on. |
|
|
227
227
|
|
|
228
228
|
#### Example
|
|
229
229
|
|
|
@@ -260,9 +260,9 @@ unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
|
|
|
260
260
|
|
|
261
261
|
#### Params
|
|
262
262
|
|
|
263
|
-
| Name | Type | Description |
|
|
264
|
-
|
|
265
|
-
| `type` | ``TIMER_${number}`` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
263
|
+
| Name | Type | Required | Description |
|
|
264
|
+
|--------|---------------------|------------------|----------------------------------------------------|
|
|
265
|
+
| `type` | ``TIMER_${number}`` | <div>Yes</div> | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
266
266
|
|
|
267
267
|
#### Example
|
|
268
268
|
|
|
@@ -282,9 +282,9 @@ unsetTimer(type: keyof typeof TimerType): Promise<void>;
|
|
|
282
282
|
|
|
283
283
|
#### Params
|
|
284
284
|
|
|
285
|
-
| Name | Type | Description |
|
|
286
|
-
|
|
287
|
-
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
285
|
+
| Name | Type | Required | Description |
|
|
286
|
+
|--------|-------------------------------------------------------------------------------------------|------------------|----------------------------------------------------|
|
|
287
|
+
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | <div>Yes</div> | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
288
288
|
|
|
289
289
|
#### Example
|
|
290
290
|
|
|
@@ -117,13 +117,13 @@ resize(baseUrl: string, orientation: string, resolution: string, currentVersion:
|
|
|
117
117
|
|
|
118
118
|
#### Params
|
|
119
119
|
|
|
120
|
-
| Name
|
|
121
|
-
|
|
122
|
-
| `baseUrl`
|
|
123
|
-
| `orientation`
|
|
124
|
-
| `resolution`
|
|
125
|
-
| `currentVersion`
|
|
126
|
-
| `videoOrientation`
|
|
120
|
+
| Name | Type | Required | Description |
|
|
121
|
+
|--------------------|----------|------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
|
122
|
+
| `baseUrl` | `string` | <div>Yes</div> | SSSP & Tizen devices requires to install a orientation-specific Core App if you want to switch orientation to portrait or landscape. |
|
|
123
|
+
| `orientation` | `string` | <div>Yes</div> | Screen orientation |
|
|
124
|
+
| `resolution` | `string` | <div>Yes</div> | Where it applies (mainly SSSP 2/3) |
|
|
125
|
+
| `currentVersion` | `string` | <div>Yes</div> | Core App version |
|
|
126
|
+
| `videoOrientation` | `string` | <div>No</div> | If the video has different orientation than the HTML5 content |
|
|
127
127
|
|
|
128
128
|
#### Example
|
|
129
129
|
|
|
@@ -163,12 +163,12 @@ setBrightness(timeFrom1: string, brightness1: number, timeFrom2: string, brightn
|
|
|
163
163
|
|
|
164
164
|
#### Params
|
|
165
165
|
|
|
166
|
-
| Name | Type | Description |
|
|
167
|
-
|
|
168
|
-
| `timeFrom1` | `string` | Time in the XX:XX format |
|
|
169
|
-
| `brightness1` | `number` | Brightness value between 0 and 100 |
|
|
170
|
-
| `timeFrom2` | `string` | Time in the XX:XX format |
|
|
171
|
-
| `brightness2` | `number` | Brightness value between 0 and 100 |
|
|
166
|
+
| Name | Type | Required | Description |
|
|
167
|
+
|---------------|----------|------------------|------------------------------------|
|
|
168
|
+
| `timeFrom1` | `string` | <div>Yes</div> | Time in the XX:XX format |
|
|
169
|
+
| `brightness1` | `number` | <div>Yes</div> | Brightness value between 0 and 100 |
|
|
170
|
+
| `timeFrom2` | `string` | <div>Yes</div> | Time in the XX:XX format |
|
|
171
|
+
| `brightness2` | `number` | <div>Yes</div> | Brightness value between 0 and 100 |
|
|
172
172
|
|
|
173
173
|
#### Example
|
|
174
174
|
|
|
@@ -206,10 +206,10 @@ takeAndUploadScreenshot(uploadBaseUrl: string, computeHash?: boolean): Promise<{
|
|
|
206
206
|
|
|
207
207
|
#### Params
|
|
208
208
|
|
|
209
|
-
| Name
|
|
210
|
-
|
|
211
|
-
| `uploadBaseUrl`
|
|
212
|
-
| `computeHash`
|
|
209
|
+
| Name | Type | Required | Description |
|
|
210
|
+
|-----------------|-----------|------------------|---------------------------------------------------------------------------------------------------------------|
|
|
211
|
+
| `uploadBaseUrl` | `string` | <div>Yes</div> | URL to which the screenshot will be uploaded. It can be either a signageOS upload url or a custom server url. |
|
|
212
|
+
| `computeHash` | `boolean` | <div>No</div> | Whether to compute a hash of the screenshot and return it in the response. |
|
|
213
213
|
|
|
214
214
|
#### Example
|
|
215
215
|
|
|
@@ -42,9 +42,9 @@ setPinCode(pinCode: string): Promise<void>;
|
|
|
42
42
|
|
|
43
43
|
#### Params
|
|
44
44
|
|
|
45
|
-
| Name | Type | Description |
|
|
46
|
-
|
|
47
|
-
| `pinCode` | `string` | The PIN code to be set. |
|
|
45
|
+
| Name | Type | Required | Description |
|
|
46
|
+
|-----------|----------|------------------|-------------------------|
|
|
47
|
+
| `pinCode` | `string` | <div>Yes</div> | The PIN code to be set. |
|
|
48
48
|
|
|
49
49
|
#### Possible errors
|
|
50
50
|
|
|
@@ -57,10 +57,10 @@ interface DateTime {
|
|
|
57
57
|
|
|
58
58
|
#### Params
|
|
59
59
|
|
|
60
|
-
| Name | Type | Description |
|
|
61
|
-
|
|
62
|
-
| `dateTime` | `DateTime` | The date and time to set. |
|
|
63
|
-
| `timezone` | `string` | The timezone to set. |
|
|
60
|
+
| Name | Type | Required | Description |
|
|
61
|
+
|------------|------------|------------------|---------------------------|
|
|
62
|
+
| `dateTime` | `DateTime` | <div>Yes</div> | The date and time to set. |
|
|
63
|
+
| `timezone` | `string` | <div>Yes</div> | The timezone to set. |
|
|
64
64
|
|
|
65
65
|
<Separator />
|
|
66
66
|
|
|
@@ -83,10 +83,10 @@ setNTP(ntpServer: string, timezone: string): Promise<void>;
|
|
|
83
83
|
|
|
84
84
|
#### Params
|
|
85
85
|
|
|
86
|
-
| Name | Type | Description |
|
|
87
|
-
|
|
88
|
-
| `ntpServer` | `string` | The NTP server to set. |
|
|
89
|
-
| `timezone` | `string` | The timezone to set. |
|
|
86
|
+
| Name | Type | Required | Description |
|
|
87
|
+
|-------------|----------|------------------|------------------------|
|
|
88
|
+
| `ntpServer` | `string` | <div>Yes</div> | The NTP server to set. |
|
|
89
|
+
| `timezone` | `string` | <div>Yes</div> | The timezone to set. |
|
|
90
90
|
|
|
91
91
|
<Separator />
|
|
92
92
|
|
|
@@ -54,11 +54,11 @@ type WifiEncryptionType = 'OPEN' | 'WEP' | 'WPA2' | 'WPA2_WPA_MIXED' | 'WPA3' |
|
|
|
54
54
|
|
|
55
55
|
#### Params
|
|
56
56
|
|
|
57
|
-
| Name
|
|
58
|
-
|
|
59
|
-
| `ssid`
|
|
60
|
-
| `password`
|
|
61
|
-
| `options`
|
|
57
|
+
| Name | Type | Required | Description |
|
|
58
|
+
|------------|-----------------------|------------------|----------------------------------------------------------------------------|
|
|
59
|
+
| `ssid` | `string` | <div>Yes</div> | Name of the network, max. allowed length is 32 characters. |
|
|
60
|
+
| `password` | `string` | <div>No</div> | Password of the device, must be between 8 and 32 characters. |
|
|
61
|
+
| `options` | `IWifiConnectOptions` | <div>No</div> | Additional options for the connection, such as `hidden` or `securityType`. |
|
|
62
62
|
|
|
63
63
|
#### Return value
|
|
64
64
|
|
|
@@ -126,10 +126,10 @@ enableAP(ssid: string, password: string): Promise<void>;
|
|
|
126
126
|
|
|
127
127
|
#### Params
|
|
128
128
|
|
|
129
|
-
| Name | Type | Description |
|
|
130
|
-
|
|
131
|
-
| `ssid` | `string` | Name of the network, max. allowed length is 32 characters. |
|
|
132
|
-
| `password` | `string` | Password of the device, must be between 8 and 32 characters. |
|
|
129
|
+
| Name | Type | Required | Description |
|
|
130
|
+
|------------|----------|------------------|--------------------------------------------------------------|
|
|
131
|
+
| `ssid` | `string` | <div>Yes</div> | Name of the network, max. allowed length is 32 characters. |
|
|
132
|
+
| `password` | `string` | <div>Yes</div> | Password of the device, must be between 8 and 32 characters. |
|
|
133
133
|
|
|
134
134
|
#### Possible errors
|
|
135
135
|
|
|
@@ -425,9 +425,9 @@ setCountry(countryCode: string): Promise<void>;
|
|
|
425
425
|
|
|
426
426
|
#### Params
|
|
427
427
|
|
|
428
|
-
| Name | Type | Description |
|
|
429
|
-
|
|
430
|
-
| `countryCode` | `string` | 2-letter country code from the ISO 3166 standard. |
|
|
428
|
+
| Name | Type | Required | Description |
|
|
429
|
+
|---------------|----------|------------------|---------------------------------------------------|
|
|
430
|
+
| `countryCode` | `string` | <div>Yes</div> | 2-letter country code from the ISO 3166 standard. |
|
|
431
431
|
|
|
432
432
|
#### Possible errors
|
|
433
433
|
|
|
@@ -4,7 +4,7 @@ import IOpenLinkOptions, { IDeprecatedOpenLinkOptions } from './IOpenLinkOptions
|
|
|
4
4
|
import { IBrowserMessage } from './messages';
|
|
5
5
|
import IBrowser from './IBrowser';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* There are several use-cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
|
|
8
8
|
*
|
|
9
9
|
* :::info
|
|
10
10
|
*
|
|
@@ -27,21 +27,28 @@ export default class Browser implements IBrowser {
|
|
|
27
27
|
/**
|
|
28
28
|
* The `open()` method opens the specified url in a browser window.
|
|
29
29
|
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param options
|
|
32
|
-
* @param options.
|
|
33
|
-
* @param options.
|
|
30
|
+
* @param uri The URL to open in the browser.
|
|
31
|
+
* @param options Optional parameters to configure the browser window.
|
|
32
|
+
* @param options.aclDomains List of domains to be interpreted according to `aclMode`. Example: `signageos.io`, `www.example.com`
|
|
33
|
+
* @param options.aclMode `blacklist` – Allow access to all domains except those in aclDomains and their subdomains, `whitelist` – Allow access only to domains in aclDomains and their subdomains.
|
|
34
|
+
* @param options.readOnlyAddressBar If `true`, the address bar is read-only, if `false` the user can navigate away by entering a URL in the address bar.
|
|
35
|
+
* @param options.idleTimeout The browser will automatically close after a specified period of inactivity (in milliseconds).
|
|
34
36
|
* @param options.coordinates Size and position of the browser window. Defaults to fullscreen.
|
|
35
37
|
* @param options.theme Specify custom UI theme. (Android only)
|
|
36
38
|
* @param options.headlessMode Headless mode hides the entire address bar. (Android only)
|
|
37
39
|
* @param options.canUserClose Whether the user can manually close the browser. (default if headless false, else true)
|
|
38
40
|
* @param options.clearData Clear cache after the browser closes. (default if headless false, else true)
|
|
39
|
-
* @param options.method
|
|
40
|
-
*
|
|
41
|
+
* @param options.method Can only be native (which opens a new, fully sandboxed fullscreen window) or iframe (which opens a configurable-sized window). (only Linux)
|
|
42
|
+
* @returns {Promise<void>} A promise that resolves when the browser is opened.
|
|
43
|
+
* @throws {Error} If the `uri` is not a valid URL or string.
|
|
44
|
+
* @throws {Error} If the `options` are not valid.
|
|
45
|
+
* @throws {Error} If unexpected error occurred when opening link.
|
|
41
46
|
* @since 4.0.0
|
|
42
47
|
*
|
|
48
|
+
* @example // {@link https://github.com/signageos/applet-examples/tree/master/examples/content-js-api/browser | Example of Applet for using browser on Android }
|
|
49
|
+
*
|
|
43
50
|
* @example
|
|
44
|
-
* sos.browser.open('https://www.signageos.io', {
|
|
51
|
+
* await sos.browser.open('https://www.signageos.io', {
|
|
45
52
|
* aclDomains: ['google.com', 'yahoo.com'],
|
|
46
53
|
* aclMode: 'blacklist', // or 'whitelist'
|
|
47
54
|
* readOnlyAddressBar: true,
|
|
@@ -59,14 +66,23 @@ export default class Browser implements IBrowser {
|
|
|
59
66
|
/**
|
|
60
67
|
* The `close()` method closes the browser window opened by the `open()` method.
|
|
61
68
|
*
|
|
69
|
+
* @returns {Promise<void>} A promise that resolves when the browser is closed.
|
|
62
70
|
* @since 4.0.0
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await sos.browser.open('https://www.signageos.io', {
|
|
74
|
+
* readOnlyAddressBar: true,
|
|
75
|
+
* });
|
|
76
|
+
* // some time later
|
|
77
|
+
* await sos.browser.close();
|
|
63
78
|
*/
|
|
64
79
|
close(): Promise<void>;
|
|
65
80
|
/**
|
|
66
81
|
* The `onClose()` method sets up a listener, which is called whenever a browser window is closed. This can happen by an API call, by a
|
|
67
82
|
* user request or after a timeout. This doesn't fire between `open` calls or on subsequent `close` calls.
|
|
68
83
|
*
|
|
69
|
-
* @
|
|
84
|
+
* @param listener The listener to be called when the browser is closed.
|
|
85
|
+
* @returns {void} A callback which removes the listener.
|
|
70
86
|
*/
|
|
71
87
|
onClose(listener: (event: CloseEvent) => void): () => void;
|
|
72
88
|
/** @internal */
|
|
@@ -8,7 +8,7 @@ const Validate_1 = __importDefault(require("../Validate/Validate"));
|
|
|
8
8
|
const events_2 = require("./events");
|
|
9
9
|
const IOpenLinkOptions_1 = require("./IOpenLinkOptions");
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* There are several use-cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
|
|
12
12
|
*
|
|
13
13
|
* :::info
|
|
14
14
|
*
|
|
@@ -33,21 +33,28 @@ class Browser {
|
|
|
33
33
|
/**
|
|
34
34
|
* The `open()` method opens the specified url in a browser window.
|
|
35
35
|
*
|
|
36
|
-
* @param
|
|
37
|
-
* @param options
|
|
38
|
-
* @param options.
|
|
39
|
-
* @param options.
|
|
36
|
+
* @param uri The URL to open in the browser.
|
|
37
|
+
* @param options Optional parameters to configure the browser window.
|
|
38
|
+
* @param options.aclDomains List of domains to be interpreted according to `aclMode`. Example: `signageos.io`, `www.example.com`
|
|
39
|
+
* @param options.aclMode `blacklist` – Allow access to all domains except those in aclDomains and their subdomains, `whitelist` – Allow access only to domains in aclDomains and their subdomains.
|
|
40
|
+
* @param options.readOnlyAddressBar If `true`, the address bar is read-only, if `false` the user can navigate away by entering a URL in the address bar.
|
|
41
|
+
* @param options.idleTimeout The browser will automatically close after a specified period of inactivity (in milliseconds).
|
|
40
42
|
* @param options.coordinates Size and position of the browser window. Defaults to fullscreen.
|
|
41
43
|
* @param options.theme Specify custom UI theme. (Android only)
|
|
42
44
|
* @param options.headlessMode Headless mode hides the entire address bar. (Android only)
|
|
43
45
|
* @param options.canUserClose Whether the user can manually close the browser. (default if headless false, else true)
|
|
44
46
|
* @param options.clearData Clear cache after the browser closes. (default if headless false, else true)
|
|
45
|
-
* @param options.method
|
|
46
|
-
*
|
|
47
|
+
* @param options.method Can only be native (which opens a new, fully sandboxed fullscreen window) or iframe (which opens a configurable-sized window). (only Linux)
|
|
48
|
+
* @returns {Promise<void>} A promise that resolves when the browser is opened.
|
|
49
|
+
* @throws {Error} If the `uri` is not a valid URL or string.
|
|
50
|
+
* @throws {Error} If the `options` are not valid.
|
|
51
|
+
* @throws {Error} If unexpected error occurred when opening link.
|
|
47
52
|
* @since 4.0.0
|
|
48
53
|
*
|
|
54
|
+
* @example // {@link https://github.com/signageos/applet-examples/tree/master/examples/content-js-api/browser | Example of Applet for using browser on Android }
|
|
55
|
+
*
|
|
49
56
|
* @example
|
|
50
|
-
* sos.browser.open('https://www.signageos.io', {
|
|
57
|
+
* await sos.browser.open('https://www.signageos.io', {
|
|
51
58
|
* aclDomains: ['google.com', 'yahoo.com'],
|
|
52
59
|
* aclMode: 'blacklist', // or 'whitelist'
|
|
53
60
|
* readOnlyAddressBar: true,
|
|
@@ -75,7 +82,15 @@ class Browser {
|
|
|
75
82
|
/**
|
|
76
83
|
* The `close()` method closes the browser window opened by the `open()` method.
|
|
77
84
|
*
|
|
85
|
+
* @returns {Promise<void>} A promise that resolves when the browser is closed.
|
|
78
86
|
* @since 4.0.0
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await sos.browser.open('https://www.signageos.io', {
|
|
90
|
+
* readOnlyAddressBar: true,
|
|
91
|
+
* });
|
|
92
|
+
* // some time later
|
|
93
|
+
* await sos.browser.close();
|
|
79
94
|
*/
|
|
80
95
|
async close() {
|
|
81
96
|
await this.exchange.postMessage({
|
|
@@ -86,7 +101,8 @@ class Browser {
|
|
|
86
101
|
* The `onClose()` method sets up a listener, which is called whenever a browser window is closed. This can happen by an API call, by a
|
|
87
102
|
* user request or after a timeout. This doesn't fire between `open` calls or on subsequent `close` calls.
|
|
88
103
|
*
|
|
89
|
-
* @
|
|
104
|
+
* @param listener The listener to be called when the browser is closed.
|
|
105
|
+
* @returns {void} A callback which removes the listener.
|
|
90
106
|
*/
|
|
91
107
|
onClose(listener) {
|
|
92
108
|
(0, Validate_1.default)({ listener }).required().function();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/Browser.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,oEAA4C;AAC5C,qCAA8D;AAC9D,yDAAqG;AAIrG;;;;;;;;;;;;;;;GAeG;AACH,MAAqB,OAAO;IAIE;IAHZ,MAAM,GAAiB,IAAI,qBAAY,EAAE,CAAC;IAE3D,gBAAgB;IAChB,YAA6B,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAAG,CAAC;IAEzD
|
|
1
|
+
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/Browser.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,oEAA4C;AAC5C,qCAA8D;AAC9D,yDAAqG;AAIrG;;;;;;;;;;;;;;;GAeG;AACH,MAAqB,OAAO;IAIE;IAHZ,MAAM,GAAiB,IAAI,qBAAY,EAAE,CAAC;IAE3D,gBAAgB;IAChB,YAA6B,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAAG,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACI,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,UAA4B,EAAE;QAC5D,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACnC,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,oCAAiB,CAAC,CAAC;QAE3D,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC;QAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,GAAG;YACH,GAAG,OAAO;YACV,YAAY;YACZ,IAAI,EAAE,MAAM;SACZ,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,KAAK,CAAC,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,IAAI,EAAE,OAAO;SACb,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CAAC,QAAqC;QACnD,IAAA,kBAAQ,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;QAE7C,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,OAAO,GAAG,EAAE;YACX,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,kBAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC,CAAC;IACH,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,IAAqB;QAC7C,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC;gBAC7C,MAAM,KAAK,GAAe;oBACzB,IAAI,EAAE,kBAAS,CAAC,KAAK;oBACrB,MAAM,EAAE,IAAI,CAAC,MAAqB;iBAClC,CAAC;gBACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBACzC,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,QAAQ,CAAC,GAAW,EAAE,UAAsC,EAAE;QAC1E,OAAO,CAAC,IAAI,CAAC,kHAAkH,CAAC,CAAC;QAEjI,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACnC,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAE1C,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,GAAG;YACH,GAAG,OAAO;YACV,YAAY,EAAE,KAAK;YACnB,IAAI,EAAE,WAAW;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AA1HD,0BA0HC"}
|
|
@@ -89,6 +89,9 @@ export interface IDeprecatedOpenLinkOptions {
|
|
|
89
89
|
idleTimeout?: number;
|
|
90
90
|
theme?: ITheme;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Interface defines the options for opening a link in the browser.
|
|
94
|
+
*/
|
|
92
95
|
interface IOpenLinkOptions {
|
|
93
96
|
aclDomains?: string[];
|
|
94
97
|
aclMode?: 'blacklist' | 'whitelist';
|
|
@@ -104,6 +107,10 @@ interface IOpenLinkOptions {
|
|
|
104
107
|
headlessMode?: boolean;
|
|
105
108
|
clearData?: boolean;
|
|
106
109
|
canUserClose?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Method of opening the link.
|
|
112
|
+
* @default 'native'
|
|
113
|
+
*/
|
|
107
114
|
method?: 'native' | 'iframe';
|
|
108
115
|
}
|
|
109
116
|
export default IOpenLinkOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOpenLinkOptions.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/IOpenLinkOptions.ts"],"names":[],"mappings":";;;AAkCa,QAAA,OAAO,GAAG;IACtB,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;IACtC,KAAK,EAAE;QACN,SAAS,EAAE;YACV,UAAU,EAAE,SAAS;SACrB;KACD;IACD,MAAM,EAAE;QACP,SAAS,EAAE;YACV,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,OAAO,EAAE,SAAS;SAClB;KACD;IACD,OAAO,EAAE;QACR,SAAS,EAAE;YACV,WAAW,EAAE;gBACZ,SAAS,EAAE;oBACV,MAAM,EAAE;wBACP,SAAS,EAAE;4BACV,UAAU,EAAE,SAAS;4BACrB,IAAI,EAAE,SAAS;yBACf;qBACD;iBACD;aACD;YACD,WAAW,EAAE;gBACZ,SAAS,EAAE;oBACV,MAAM,EAAE;wBACP,SAAS,EAAE;4BACV,UAAU,EAAE,SAAS;4BACrB,IAAI,EAAE,SAAS;4BACf,IAAI,EAAE,SAAS;yBACf;qBACD;oBACD,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE;oBAC/D,IAAI,EAAE,SAAS;iBACf;aACD;YACD,QAAQ,EAAE;gBACT,SAAS,EAAE;oBACV,KAAK,EAAE,SAAS;iBAChB;aACD;SACD;KACD;CACD,CAAC;
|
|
1
|
+
{"version":3,"file":"IOpenLinkOptions.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/IOpenLinkOptions.ts"],"names":[],"mappings":";;;AAkCa,QAAA,OAAO,GAAG;IACtB,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;IACtC,KAAK,EAAE;QACN,SAAS,EAAE;YACV,UAAU,EAAE,SAAS;SACrB;KACD;IACD,MAAM,EAAE;QACP,SAAS,EAAE;YACV,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,OAAO,EAAE,SAAS;SAClB;KACD;IACD,OAAO,EAAE;QACR,SAAS,EAAE;YACV,WAAW,EAAE;gBACZ,SAAS,EAAE;oBACV,MAAM,EAAE;wBACP,SAAS,EAAE;4BACV,UAAU,EAAE,SAAS;4BACrB,IAAI,EAAE,SAAS;yBACf;qBACD;iBACD;aACD;YACD,WAAW,EAAE;gBACZ,SAAS,EAAE;oBACV,MAAM,EAAE;wBACP,SAAS,EAAE;4BACV,UAAU,EAAE,SAAS;4BACrB,IAAI,EAAE,SAAS;4BACf,IAAI,EAAE,SAAS;yBACf;qBACD;oBACD,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE;oBAC/D,IAAI,EAAE,SAAS;iBACf;aACD;YACD,QAAQ,EAAE;gBACT,SAAS,EAAE;oBACV,KAAK,EAAE,SAAS;iBAChB;aACD;SACD;KACD;CACD,CAAC;AAwEW,QAAA,iBAAiB,GAAG;IAChC,UAAU,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;IAClC,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE;IAClD,kBAAkB,EAAE,UAAU;IAC9B,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE;QACZ,SAAS,EAAE;YACV,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;SAChB;KACD;IACD,KAAK,EAAE,EAAE,SAAS,EAAE,eAAO,EAAE;IAC7B,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,UAAU;IACrB,YAAY,EAAE,UAAU;IACxB,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;CAC3C,CAAC"}
|
|
@@ -5,7 +5,13 @@ export declare const VIEventType: string[];
|
|
|
5
5
|
export type Event<TType extends EventType = EventType> = {
|
|
6
6
|
type: TType;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Interface representing a close event in the browser.
|
|
10
|
+
*/
|
|
8
11
|
export interface CloseEvent extends Event<EventType.CLOSE> {
|
|
12
|
+
/**
|
|
13
|
+
* The reason for the browser being closed.
|
|
14
|
+
*/
|
|
9
15
|
reason: CloseReason;
|
|
10
16
|
}
|
|
11
17
|
export declare enum CloseReason {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/events.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAEX;AAFD,WAAY,SAAS;IACpB,4BAAe,CAAA;AAChB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAEY,QAAA,WAAW,GAAG,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/events.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAEX;AAFD,WAAY,SAAS;IACpB,4BAAe,CAAA;AAChB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAEY,QAAA,WAAW,GAAG,CAAC,OAAO,CAAC,CAAC;AAgBrC,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,0BAAW,CAAA;IACX,4BAAa,CAAA;IACb,kCAAmB,CAAA;AACpB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|