@openfin/core 39.82.1 → 39.82.2
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +59 -1
- package/out/mock-beta.d.ts +59 -1
- package/out/mock-public.d.ts +59 -1
- package/out/mock.d.ts +59 -1
- package/out/mock.js +14 -2
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -8596,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8596
8596
|
preventDragOut: boolean;
|
8597
8597
|
interop?: InteropConfig;
|
8598
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8599
8605
|
};
|
8600
8606
|
|
8601
8607
|
/**
|
@@ -8839,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8839
8845
|
interop: InteropConfig;
|
8840
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8841
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8842
8856
|
};
|
8843
8857
|
|
8844
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9042,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9042
9056
|
AutoResizeOptions,
|
9043
9057
|
InteropConfig,
|
9044
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9045
9061
|
UpdatableViewOptions,
|
9046
9062
|
ViewCreationOptions,
|
9047
9063
|
MutableViewOptions,
|
@@ -9289,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9289
9305
|
ChannelProviderDisconnectionListener,
|
9290
9306
|
RoutingInfo,
|
9291
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9292
9309
|
ApplicationEvents,
|
9293
9310
|
BaseEvents,
|
9294
9311
|
ExternalApplicationEvents,
|
@@ -11418,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11418
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11419
11436
|
'hide-view': IdentityCall;
|
11420
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11421
11443
|
'update-view-options': IdentityCall<{
|
11422
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11423
11445
|
}>;
|
@@ -14646,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14646
14668
|
* left: 100,
|
14647
14669
|
* width: 300,
|
14648
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14649
14673
|
* });
|
14650
14674
|
* }
|
14651
14675
|
*
|
@@ -14655,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14655
14679
|
* ```
|
14656
14680
|
* @experimental
|
14657
14681
|
*/
|
14658
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14659
14691
|
/**
|
14660
14692
|
* Hides the current view if it is currently visible.
|
14661
14693
|
*
|
@@ -15127,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15127
15159
|
*/
|
15128
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15129
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15130
15170
|
/**
|
15131
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15132
15172
|
* @interface
|
@@ -15179,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15179
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15180
15220
|
}
|
15181
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15182
15230
|
/**
|
15183
15231
|
* Configuration for view visibility settings
|
15184
15232
|
*
|
@@ -17722,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17722
17770
|
*/
|
17723
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17724
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17725
17783
|
/**
|
17726
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17727
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock-beta.d.ts
CHANGED
@@ -8596,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8596
8596
|
preventDragOut: boolean;
|
8597
8597
|
interop?: InteropConfig;
|
8598
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8599
8605
|
};
|
8600
8606
|
|
8601
8607
|
/**
|
@@ -8839,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8839
8845
|
interop: InteropConfig;
|
8840
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8841
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8842
8856
|
};
|
8843
8857
|
|
8844
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9042,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9042
9056
|
AutoResizeOptions,
|
9043
9057
|
InteropConfig,
|
9044
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9045
9061
|
UpdatableViewOptions,
|
9046
9062
|
ViewCreationOptions,
|
9047
9063
|
MutableViewOptions,
|
@@ -9289,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9289
9305
|
ChannelProviderDisconnectionListener,
|
9290
9306
|
RoutingInfo,
|
9291
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9292
9309
|
ApplicationEvents,
|
9293
9310
|
BaseEvents,
|
9294
9311
|
ExternalApplicationEvents,
|
@@ -11418,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11418
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11419
11436
|
'hide-view': IdentityCall;
|
11420
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11421
11443
|
'update-view-options': IdentityCall<{
|
11422
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11423
11445
|
}>;
|
@@ -14646,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14646
14668
|
* left: 100,
|
14647
14669
|
* width: 300,
|
14648
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14649
14673
|
* });
|
14650
14674
|
* }
|
14651
14675
|
*
|
@@ -14655,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14655
14679
|
* ```
|
14656
14680
|
* @experimental
|
14657
14681
|
*/
|
14658
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14659
14691
|
/**
|
14660
14692
|
* Hides the current view if it is currently visible.
|
14661
14693
|
*
|
@@ -15127,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15127
15159
|
*/
|
15128
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15129
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15130
15170
|
/**
|
15131
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15132
15172
|
* @interface
|
@@ -15179,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15179
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15180
15220
|
}
|
15181
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15182
15230
|
/**
|
15183
15231
|
* Configuration for view visibility settings
|
15184
15232
|
*
|
@@ -17722,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17722
17770
|
*/
|
17723
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17724
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17725
17783
|
/**
|
17726
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17727
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock-public.d.ts
CHANGED
@@ -8596,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8596
8596
|
preventDragOut: boolean;
|
8597
8597
|
interop?: InteropConfig;
|
8598
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8599
8605
|
};
|
8600
8606
|
|
8601
8607
|
/**
|
@@ -8839,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8839
8845
|
interop: InteropConfig;
|
8840
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8841
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8842
8856
|
};
|
8843
8857
|
|
8844
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9042,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9042
9056
|
AutoResizeOptions,
|
9043
9057
|
InteropConfig,
|
9044
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9045
9061
|
UpdatableViewOptions,
|
9046
9062
|
ViewCreationOptions,
|
9047
9063
|
MutableViewOptions,
|
@@ -9289,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9289
9305
|
ChannelProviderDisconnectionListener,
|
9290
9306
|
RoutingInfo,
|
9291
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9292
9309
|
ApplicationEvents,
|
9293
9310
|
BaseEvents,
|
9294
9311
|
ExternalApplicationEvents,
|
@@ -11418,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11418
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11419
11436
|
'hide-view': IdentityCall;
|
11420
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11421
11443
|
'update-view-options': IdentityCall<{
|
11422
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11423
11445
|
}>;
|
@@ -14646,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14646
14668
|
* left: 100,
|
14647
14669
|
* width: 300,
|
14648
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14649
14673
|
* });
|
14650
14674
|
* }
|
14651
14675
|
*
|
@@ -14655,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14655
14679
|
* ```
|
14656
14680
|
* @experimental
|
14657
14681
|
*/
|
14658
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14659
14691
|
/**
|
14660
14692
|
* Hides the current view if it is currently visible.
|
14661
14693
|
*
|
@@ -15127,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15127
15159
|
*/
|
15128
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15129
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15130
15170
|
/**
|
15131
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15132
15172
|
* @interface
|
@@ -15179,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15179
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15180
15220
|
}
|
15181
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15182
15230
|
/**
|
15183
15231
|
* Configuration for view visibility settings
|
15184
15232
|
*
|
@@ -17722,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17722
17770
|
*/
|
17723
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17724
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17725
17783
|
/**
|
17726
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17727
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock.d.ts
CHANGED
@@ -8893,6 +8893,12 @@ declare type MutableViewOptions = {
|
|
8893
8893
|
* Used by Workspace to store custom data. Overwriting or modifying this field may impact the functionality of Workspace
|
8894
8894
|
*/
|
8895
8895
|
_internalWorkspaceData: any;
|
8896
|
+
/**
|
8897
|
+
* {@inheritDoc ViewThrottling}
|
8898
|
+
*
|
8899
|
+
* @defaultValue 'enabled'
|
8900
|
+
*/
|
8901
|
+
throttling: ViewThrottling;
|
8896
8902
|
};
|
8897
8903
|
|
8898
8904
|
/**
|
@@ -9144,6 +9150,14 @@ declare type MutableWindowOptions = {
|
|
9144
9150
|
* Used by workspace to stork platform specific options. Overwriting or modifying this field may impact the functionality of Workspace
|
9145
9151
|
*/
|
9146
9152
|
workspacePlatform: WorkspacePlatformOptions;
|
9153
|
+
/**
|
9154
|
+
* {@inheritDoc WindowThrottling}
|
9155
|
+
*
|
9156
|
+
* @defaultValue 'enabled'
|
9157
|
+
*
|
9158
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
9159
|
+
*/
|
9160
|
+
throttling: WindowThrottling;
|
9147
9161
|
};
|
9148
9162
|
|
9149
9163
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9357,6 +9371,8 @@ declare namespace OpenFin_2 {
|
|
9357
9371
|
AutoResizeOptions,
|
9358
9372
|
InteropConfig,
|
9359
9373
|
ViewInfo,
|
9374
|
+
WindowThrottling,
|
9375
|
+
ViewThrottling,
|
9360
9376
|
UpdatableViewOptions,
|
9361
9377
|
ViewCreationOptions,
|
9362
9378
|
MutableViewOptions,
|
@@ -9604,6 +9620,7 @@ declare namespace OpenFin_2 {
|
|
9604
9620
|
ChannelProviderDisconnectionListener,
|
9605
9621
|
RoutingInfo,
|
9606
9622
|
DownloadShelfOptions,
|
9623
|
+
ViewShowAtOptions,
|
9607
9624
|
ApplicationEvents,
|
9608
9625
|
BaseEvents,
|
9609
9626
|
ExternalApplicationEvents,
|
@@ -11811,6 +11828,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11811
11828
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11812
11829
|
'hide-view': IdentityCall;
|
11813
11830
|
'show-view': IdentityCall;
|
11831
|
+
'show-view-at': IdentityCall<{
|
11832
|
+
bounds: OpenFin_2.Bounds;
|
11833
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11834
|
+
}>;
|
11835
|
+
'bring-view-to-front': IdentityCall;
|
11814
11836
|
'update-view-options': IdentityCall<{
|
11815
11837
|
options: OpenFin_2.UpdatableViewOptions;
|
11816
11838
|
}>;
|
@@ -15055,6 +15077,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
15055
15077
|
* left: 100,
|
15056
15078
|
* width: 300,
|
15057
15079
|
* height: 300
|
15080
|
+
* }, {
|
15081
|
+
* bringToFront : true
|
15058
15082
|
* });
|
15059
15083
|
* }
|
15060
15084
|
*
|
@@ -15064,7 +15088,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
15064
15088
|
* ```
|
15065
15089
|
* @experimental
|
15066
15090
|
*/
|
15067
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
15091
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
15092
|
+
/**
|
15093
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
15094
|
+
* which have overlapping bounds with it.
|
15095
|
+
*
|
15096
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
15097
|
+
* in the window that share bounds with it.
|
15098
|
+
*/
|
15099
|
+
bringToFront: () => Promise<void>;
|
15068
15100
|
/**
|
15069
15101
|
* Hides the current view if it is currently visible.
|
15070
15102
|
*
|
@@ -15570,6 +15602,14 @@ declare class ViewModule extends Base {
|
|
15570
15602
|
*/
|
15571
15603
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15572
15604
|
|
15605
|
+
declare type ViewShowAtOptions = {
|
15606
|
+
/**
|
15607
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15608
|
+
* @default false
|
15609
|
+
*/
|
15610
|
+
bringToFront?: true;
|
15611
|
+
};
|
15612
|
+
|
15573
15613
|
/**
|
15574
15614
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15575
15615
|
* @interface
|
@@ -15622,6 +15662,14 @@ declare interface ViewStatuses {
|
|
15622
15662
|
viewsNotPreventingUnload: Identity_5[];
|
15623
15663
|
}
|
15624
15664
|
|
15665
|
+
/**
|
15666
|
+
* View throttling state.
|
15667
|
+
*
|
15668
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15669
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15670
|
+
*/
|
15671
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15672
|
+
|
15625
15673
|
/**
|
15626
15674
|
* Configuration for view visibility settings
|
15627
15675
|
*
|
@@ -18168,6 +18216,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
18168
18216
|
*/
|
18169
18217
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
18170
18218
|
|
18219
|
+
/**
|
18220
|
+
*
|
18221
|
+
* Window throttling state.
|
18222
|
+
*
|
18223
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
18224
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
18225
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
18226
|
+
*/
|
18227
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
18228
|
+
|
18171
18229
|
/**
|
18172
18230
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
18173
18231
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock.js
CHANGED
@@ -2818,6 +2818,8 @@ function requireInstance$2 () {
|
|
2818
2818
|
* left: 100,
|
2819
2819
|
* width: 300,
|
2820
2820
|
* height: 300
|
2821
|
+
* }, {
|
2822
|
+
* bringToFront : true
|
2821
2823
|
* });
|
2822
2824
|
* }
|
2823
2825
|
*
|
@@ -2827,8 +2829,18 @@ function requireInstance$2 () {
|
|
2827
2829
|
* ```
|
2828
2830
|
* @experimental
|
2829
2831
|
*/
|
2830
|
-
this.showAt = async (bounds) => {
|
2831
|
-
await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
|
2832
|
+
this.showAt = async (bounds, options = {}) => {
|
2833
|
+
await this.wire.sendAction('show-view-at', { bounds, ...this.identity, options });
|
2834
|
+
};
|
2835
|
+
/**
|
2836
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
2837
|
+
* which have overlapping bounds with it.
|
2838
|
+
*
|
2839
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
2840
|
+
* in the window that share bounds with it.
|
2841
|
+
*/
|
2842
|
+
this.bringToFront = async () => {
|
2843
|
+
await this.wire.sendAction('bring-view-to-front', { ...this.identity });
|
2832
2844
|
};
|
2833
2845
|
/**
|
2834
2846
|
* Hides the current view if it is currently visible.
|