@openfin/node-adapter 34.78.54 → 34.78.57
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/out/node-adapter-alpha.d.ts +76 -55
- package/out/node-adapter-beta.d.ts +76 -55
- package/out/node-adapter-public.d.ts +76 -55
- package/out/node-adapter.d.ts +91 -178
- package/out/node-adapter.js +61 -146
- package/package.json +1 -1
package/out/node-adapter.d.ts
CHANGED
@@ -43,6 +43,8 @@ declare type Accelerator = {
|
|
43
43
|
};
|
44
44
|
|
45
45
|
/**
|
46
|
+
* Options to use when adding a view to a {@link TabStack}.
|
47
|
+
*
|
46
48
|
* @interface
|
47
49
|
*/
|
48
50
|
declare type AddViewOptions = CreateViewTarget & {
|
@@ -3411,57 +3413,6 @@ declare type ClosingEvent = BaseEvent_5 & {
|
|
3411
3413
|
*/
|
3412
3414
|
declare class ColumnOrRow extends LayoutNode {
|
3413
3415
|
#private;
|
3414
|
-
/**
|
3415
|
-
* Determines if this {@link ColumnOrRow} is the top level content item in the current layout.
|
3416
|
-
* @function isRoot
|
3417
|
-
* @memberof ColumnOrRow
|
3418
|
-
* @instance
|
3419
|
-
* @tutorial ColumnOrRow.isRoot
|
3420
|
-
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
3421
|
-
*/
|
3422
|
-
/**
|
3423
|
-
* Determines if this {@link ColumnOrRow} exists.
|
3424
|
-
* @function exists
|
3425
|
-
* @instance
|
3426
|
-
* @memberof ColumnOrRow
|
3427
|
-
* @tutorial ColumnOrRow.exists
|
3428
|
-
* @returns Resolves true if the TabStack exists, or false if it has been destroyed.
|
3429
|
-
*/
|
3430
|
-
/**
|
3431
|
-
* Retrieves the parent {@link ColumnOrRow} of this {@link ColumnOrRow}, if one exists.
|
3432
|
-
* @function getParent
|
3433
|
-
* @instance
|
3434
|
-
* @memberof ColumnOrRow
|
3435
|
-
* @tutorial ColumnOrRow.getParent
|
3436
|
-
* @returns Promise resolving with the {@link ColumnOrRow} that contains this item, or undefined if
|
3437
|
-
* this {@link ColumnOrRow}does not exist or is the root content item.
|
3438
|
-
*/
|
3439
|
-
/**
|
3440
|
-
* Returns all the adjacent stacks that share an edge with the given {@link ColumnOrRow}.
|
3441
|
-
* @function getAdjacentStacks
|
3442
|
-
* @instance
|
3443
|
-
* @memberof ColumnOrRow
|
3444
|
-
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
3445
|
-
*
|
3446
|
-
* @tutorial ColumnOrRow.getAdjacentStacks
|
3447
|
-
*/
|
3448
|
-
/**
|
3449
|
-
* Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the given {@link ColumnOrRow}
|
3450
|
-
*
|
3451
|
-
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
3452
|
-
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
3453
|
-
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
3454
|
-
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
3455
|
-
*
|
3456
|
-
* @function createAdjacentStack
|
3457
|
-
* @instance
|
3458
|
-
* @memberof ColumnOrRow
|
3459
|
-
* @param views - List of identities or view creation options of the views to include in the stack
|
3460
|
-
* @param options - Creation options.
|
3461
|
-
* @returns The created TabStack
|
3462
|
-
* @tutorial ColumnOrRow.createAdjacentStack
|
3463
|
-
* @experimental
|
3464
|
-
*/
|
3465
3416
|
/**
|
3466
3417
|
* @internal
|
3467
3418
|
*/
|
@@ -3734,7 +3685,7 @@ declare type ConstWindowOptions = {
|
|
3734
3685
|
/**
|
3735
3686
|
* @defaultValue true
|
3736
3687
|
*
|
3737
|
-
*
|
3688
|
+
* Setting this to false would keep the Window alive even if all its Views were closed.
|
3738
3689
|
* This is meant for advanced users and should be used with caution.
|
3739
3690
|
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
3740
3691
|
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
@@ -3744,7 +3695,8 @@ declare type ConstWindowOptions = {
|
|
3744
3695
|
/**
|
3745
3696
|
* @defaultValue 'all'
|
3746
3697
|
*
|
3747
|
-
*
|
3698
|
+
* When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
|
3699
|
+
+ * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
|
3748
3700
|
* **NOTE:** - This option is ignored in non-Platforms apps.
|
3749
3701
|
*/
|
3750
3702
|
viewsPreventingClose: 'all' | 'layout';
|
@@ -4551,7 +4503,7 @@ declare type CreateViewPayload = {
|
|
4551
4503
|
/**
|
4552
4504
|
* @interface
|
4553
4505
|
*/
|
4554
|
-
declare type CreateViewTarget = LayoutIdentity & {
|
4506
|
+
declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
|
4555
4507
|
/**
|
4556
4508
|
* If specified, view creation will not attach to a window and caller must
|
4557
4509
|
* insert the view into the layout explicitly
|
@@ -4691,6 +4643,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
|
|
4691
4643
|
type: 'destroyed';
|
4692
4644
|
};
|
4693
4645
|
|
4646
|
+
/**
|
4647
|
+
* @interface
|
4648
|
+
*/
|
4649
|
+
declare type DeviceInfo = {
|
4650
|
+
vendorId: string | number;
|
4651
|
+
productId: string | number;
|
4652
|
+
};
|
4653
|
+
|
4694
4654
|
/**
|
4695
4655
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
4696
4656
|
* @interface
|
@@ -5156,9 +5116,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
5156
5116
|
} : never;
|
5157
5117
|
|
5158
5118
|
declare interface Environment {
|
5159
|
-
|
5119
|
+
initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
|
5160
5120
|
createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
|
5161
5121
|
destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
|
5122
|
+
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
5162
5123
|
initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
|
5163
5124
|
observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
|
5164
5125
|
writeToken(path: string, token: string): Promise<string>;
|
@@ -7607,7 +7568,7 @@ declare class InteropBroker extends Base {
|
|
7607
7568
|
* // }
|
7608
7569
|
* ```
|
7609
7570
|
*
|
7610
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
7571
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
7611
7572
|
*
|
7612
7573
|
* @param contextForIntent Data passed between entities and applications.
|
7613
7574
|
* @param clientIdentity Identity of the Client making the request.
|
@@ -8789,7 +8750,7 @@ declare class Layout extends Base {
|
|
8789
8750
|
* @internal
|
8790
8751
|
*/
|
8791
8752
|
init: (options?: OpenFin.InitLayoutOptions) => Promise<Layout>;
|
8792
|
-
identity: OpenFin.LayoutIdentity;
|
8753
|
+
identity: OpenFin.Identity | OpenFin.LayoutIdentity;
|
8793
8754
|
private platform;
|
8794
8755
|
wire: Transport;
|
8795
8756
|
/**
|
@@ -9008,45 +8969,24 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
|
|
9008
8969
|
*/
|
9009
8970
|
declare type LayoutIdentity = Identity_5 & {
|
9010
8971
|
/**
|
9011
|
-
* The name of the layout
|
9012
|
-
* OpenFin attempts to resolve the instance via visibility checks.
|
8972
|
+
* The name of the layout in a given window.
|
9013
8973
|
*/
|
9014
|
-
layoutName
|
8974
|
+
layoutName: string;
|
9015
8975
|
};
|
9016
8976
|
|
9017
8977
|
/**
|
9018
|
-
* Generated when
|
8978
|
+
* Generated when the window is created, and all of its layout's views have either finished or failed
|
8979
|
+
* navigation, once per layout. Does not emit for any layouts added via Layout.create() call.
|
9019
8980
|
* @interface
|
9020
8981
|
*/
|
9021
8982
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
9022
8983
|
type: 'layout-initialized';
|
8984
|
+
layoutIdentity: OpenFin.LayoutIdentity;
|
9023
8985
|
ofViews: (OpenFin.Identity & {
|
9024
8986
|
entityType: 'view';
|
9025
8987
|
})[];
|
9026
8988
|
};
|
9027
8989
|
|
9028
|
-
/**
|
9029
|
-
* @interface @experimental @internal
|
9030
|
-
*
|
9031
|
-
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
9032
|
-
*
|
9033
|
-
* Responsible for handling all layout management and renderering
|
9034
|
-
*/
|
9035
|
-
declare type LayoutInstance = {
|
9036
|
-
identity: LayoutIdentity;
|
9037
|
-
getFrameSnapshot: () => Promise<LayoutOptions>;
|
9038
|
-
addView: (payload: AddViewOptions) => Promise<View_2>;
|
9039
|
-
closeView: (viewIdentity: Identity_5) => Promise<void>;
|
9040
|
-
removeView: (viewConfig: Identity_5 | ViewState) => Promise<View_2>;
|
9041
|
-
replaceView: (payload: ReplaceViewOptions) => Promise<View_2>;
|
9042
|
-
getViews: () => LayoutComponent[];
|
9043
|
-
getCurrentViews: () => Identity_5[];
|
9044
|
-
startReplaceLayout: (payload: ReplaceLayoutOptions) => Promise<void>;
|
9045
|
-
applyPreset: (payload: PresetLayoutOptions_2) => void;
|
9046
|
-
isVisible: () => boolean;
|
9047
|
-
destroy: () => Promise<void>;
|
9048
|
-
};
|
9049
|
-
|
9050
8990
|
/**
|
9051
8991
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
9052
8992
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
|
@@ -9074,7 +9014,7 @@ declare type LayoutItemConfig = {
|
|
9074
9014
|
*
|
9075
9015
|
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
9076
9016
|
*
|
9077
|
-
* Responsible for
|
9017
|
+
* Responsible for aggregating all layout snapshots and storing layout instances
|
9078
9018
|
*/
|
9079
9019
|
declare interface LayoutManager<T extends LayoutSnapshot> {
|
9080
9020
|
/**
|
@@ -9098,16 +9038,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
9098
9038
|
* @throws if Object.keys(snapshot).length > 1
|
9099
9039
|
*/
|
9100
9040
|
applyLayoutSnapshot(snapshot: T): Promise<void>;
|
9101
|
-
/**
|
9102
|
-
* Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
|
9103
|
-
* contains a single layout.
|
9104
|
-
*
|
9105
|
-
* Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
|
9106
|
-
* fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
|
9107
|
-
*
|
9108
|
-
* @param snapshot
|
9109
|
-
* @throws if Object.keys(snapshot).length > 1
|
9110
|
-
*/
|
9111
9041
|
/**
|
9112
9042
|
* @experimental
|
9113
9043
|
*
|
@@ -9128,31 +9058,49 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
9128
9058
|
/**
|
9129
9059
|
* @experimental
|
9130
9060
|
*
|
9131
|
-
*
|
9132
|
-
*
|
9061
|
+
* A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
|
9062
|
+
* this method to control the target layout for Layout API calls.
|
9063
|
+
*
|
9064
|
+
* Example use case: You have hidden all the layouts and are showing a dialog that will
|
9065
|
+
* execute an API call (ex: Layout.replace()) - override this method and save the
|
9066
|
+
* "last visible" layout identity and return it.
|
9067
|
+
*
|
9068
|
+
* By default, OpenFin will use a series of checks to determine which Layout the API
|
9069
|
+
* call must route to in this order of precedence:
|
9070
|
+
* - try to resolve the layout from the layoutIdentity, throws if missing
|
9071
|
+
* - if there is only 1 layout, resolves that one
|
9072
|
+
* - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
|
9073
|
+
* - returns undefined
|
9074
|
+
*
|
9075
|
+
* @param identity
|
9076
|
+
* @returns LayoutIdentity | undefined
|
9133
9077
|
*/
|
9134
|
-
|
9078
|
+
resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
|
9135
9079
|
/**
|
9136
9080
|
* @experimental
|
9137
9081
|
*
|
9138
|
-
*
|
9139
|
-
*
|
9140
|
-
*
|
9141
|
-
*
|
9082
|
+
* A hook provided to the consumer when it's time to remove a layout. Use this hook to
|
9083
|
+
* update your local state and remove the layout for the given LayoutIdentity. Note that
|
9084
|
+
* this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
|
9085
|
+
* signify to your application it's time to destroy this layout.
|
9086
|
+
*
|
9087
|
+
* Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
|
9088
|
+
*
|
9089
|
+
* @param LayoutIdentity
|
9142
9090
|
*/
|
9143
|
-
|
9091
|
+
removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
|
9144
9092
|
/**
|
9145
9093
|
* @experimental
|
9146
9094
|
*/
|
9147
|
-
|
9095
|
+
getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
|
9148
9096
|
/**
|
9149
9097
|
* @experimental
|
9150
9098
|
*/
|
9151
|
-
|
9099
|
+
isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
|
9152
9100
|
/**
|
9153
9101
|
* @experimental
|
9154
9102
|
*/
|
9155
|
-
|
9103
|
+
size(): number;
|
9156
9104
|
}
|
9157
9105
|
|
9158
9106
|
/**
|
@@ -9199,7 +9147,7 @@ declare class LayoutModule extends Base {
|
|
9199
9147
|
* const layoutConfig = await layout.getConfig();
|
9200
9148
|
* ```
|
9201
9149
|
*/
|
9202
|
-
wrap(identity: OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
|
9150
|
+
wrap(identity: OpenFin.Identity | OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
|
9203
9151
|
/**
|
9204
9152
|
* Synchronously returns a Layout object that represents a Window's layout.
|
9205
9153
|
*
|
@@ -9219,7 +9167,7 @@ declare class LayoutModule extends Base {
|
|
9219
9167
|
* const layoutConfig = await layout.getConfig();
|
9220
9168
|
* ```
|
9221
9169
|
*/
|
9222
|
-
wrapSync(identity: OpenFin.LayoutIdentity): OpenFin.Layout;
|
9170
|
+
wrapSync(identity: OpenFin.Identity | OpenFin.LayoutIdentity): OpenFin.Layout;
|
9223
9171
|
/**
|
9224
9172
|
* Asynchronously returns a Layout object that represents a Window's layout.
|
9225
9173
|
*
|
@@ -9391,6 +9339,15 @@ declare abstract class LayoutNode {
|
|
9391
9339
|
/**
|
9392
9340
|
* Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
|
9393
9341
|
*
|
9342
|
+
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
9343
|
+
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
9344
|
+
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
9345
|
+
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
9346
|
+
*
|
9347
|
+
* @param views The views that will populate the new TabStack.
|
9348
|
+
* @param options Additional options that control new TabStack creation.
|
9349
|
+
* @returns The newly-created TabStack.
|
9350
|
+
*
|
9394
9351
|
* @example
|
9395
9352
|
* ```js
|
9396
9353
|
* if (!fin.me.isView) {
|
@@ -9425,12 +9382,15 @@ declare abstract class LayoutNode {
|
|
9425
9382
|
* console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
|
9426
9383
|
*
|
9427
9384
|
* ```
|
9385
|
+
* @experimental
|
9428
9386
|
*/
|
9429
9387
|
createAdjacentStack: (views: OpenFin.PlatformViewCreationOptions[], options: {
|
9430
9388
|
position?: OpenFin.LayoutPosition;
|
9431
9389
|
}) => Promise<TabStack>;
|
9432
9390
|
/**
|
9433
|
-
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
|
9391
|
+
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
|
9392
|
+
*
|
9393
|
+
* @param edge Edge whose adjacent TabStacks will be returned.
|
9434
9394
|
*
|
9435
9395
|
* @example
|
9436
9396
|
* ```js
|
@@ -9450,6 +9410,7 @@ declare abstract class LayoutNode {
|
|
9450
9410
|
* console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
|
9451
9411
|
*
|
9452
9412
|
* ```
|
9413
|
+
* @experimental
|
9453
9414
|
*/
|
9454
9415
|
getAdjacentStacks: (edge: OpenFin.LayoutPosition) => Promise<TabStack[]>;
|
9455
9416
|
}
|
@@ -9544,6 +9505,9 @@ declare type LayoutOptions = {
|
|
9544
9505
|
};
|
9545
9506
|
};
|
9546
9507
|
|
9508
|
+
/**
|
9509
|
+
* Represents the position of an item in a layout relative to another.
|
9510
|
+
*/
|
9547
9511
|
declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
|
9548
9512
|
|
9549
9513
|
/**
|
@@ -9552,11 +9516,12 @@ declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
9552
9516
|
declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
9553
9517
|
|
9554
9518
|
/**
|
9555
|
-
* Generated when
|
9519
|
+
* Generated when the layout and all of the its views have been created and can receive API calls.
|
9556
9520
|
* @interface
|
9557
9521
|
*/
|
9558
9522
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
9559
9523
|
type: 'layout-ready';
|
9524
|
+
layoutIdentity: OpenFin.LayoutIdentity;
|
9560
9525
|
views: (OpenFin.Identity & {
|
9561
9526
|
success: boolean;
|
9562
9527
|
})[];
|
@@ -10512,6 +10477,7 @@ declare namespace OpenFin {
|
|
10512
10477
|
WebPermission,
|
10513
10478
|
VerboseWebPermission,
|
10514
10479
|
OpenExternalPermission,
|
10480
|
+
DeviceInfo,
|
10515
10481
|
Permissions_2 as Permissions,
|
10516
10482
|
PlatformWindowCreationOptions,
|
10517
10483
|
PlatformWindowOptions,
|
@@ -10669,7 +10635,6 @@ declare namespace OpenFin {
|
|
10669
10635
|
InitLayoutOptions,
|
10670
10636
|
LayoutManagerConstructor,
|
10671
10637
|
LayoutManagerOverride,
|
10672
|
-
LayoutInstance,
|
10673
10638
|
LayoutManager,
|
10674
10639
|
CreateLayoutOptions,
|
10675
10640
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
@@ -10861,6 +10826,7 @@ declare type Permissions_2 = {
|
|
10861
10826
|
Application?: Partial<ApplicationPermissions>;
|
10862
10827
|
System?: Partial<SystemPermissions>;
|
10863
10828
|
webAPIs?: WebPermission[];
|
10829
|
+
devices?: DeviceInfo[];
|
10864
10830
|
};
|
10865
10831
|
|
10866
10832
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
@@ -11815,6 +11781,17 @@ declare interface PlatformProvider {
|
|
11815
11781
|
* @param callerIdentity
|
11816
11782
|
*/
|
11817
11783
|
getInitialLayoutSnapshot(payload: undefined, callerIdentity: OpenFin.Identity): Promise<OpenFin.LayoutSnapshot | undefined>;
|
11784
|
+
/**
|
11785
|
+
* @experimental
|
11786
|
+
*
|
11787
|
+
* This API is called during the {@link PlatformProvider.getSnapshot()} call.
|
11788
|
+
* Gets the current state of a particular window and its views and returns an object that
|
11789
|
+
* can be added to the {@link OpenFin.Snapshot.windows} property. Override this function if
|
11790
|
+
* you wish to mutate each window snapshot during the {@link PlatformProvider.getSnapshot()} call
|
11791
|
+
* @param identity
|
11792
|
+
* @param callerIdentity
|
11793
|
+
*/
|
11794
|
+
getWindowSnapshot(identity: OpenFin.Identity, callerIdentity: OpenFin.Identity): Promise<OpenFin.WindowCreationOptions>;
|
11818
11795
|
/**
|
11819
11796
|
* @experimental @internal
|
11820
11797
|
*
|
@@ -11829,7 +11806,7 @@ declare interface PlatformProvider {
|
|
11829
11806
|
*/
|
11830
11807
|
createViewsForLayout(payload: {
|
11831
11808
|
layout: GoldenLayout.Config;
|
11832
|
-
target?: OpenFin.Identity;
|
11809
|
+
target?: OpenFin.Identity | OpenFin.LayoutIdentity;
|
11833
11810
|
}, callerIdentity: OpenFin.Identity): Promise<OpenFin.View>[];
|
11834
11811
|
/**
|
11835
11812
|
* **NOTE**: Internal use only. It is not recommended to manage the state of individual views.
|
@@ -13294,7 +13271,7 @@ declare type ReplaceLayoutPayload = {
|
|
13294
13271
|
/**
|
13295
13272
|
* Identity of the window whose layout will be replaced.
|
13296
13273
|
*/
|
13297
|
-
target: LayoutIdentity;
|
13274
|
+
target: Identity_5 | LayoutIdentity;
|
13298
13275
|
};
|
13299
13276
|
|
13300
13277
|
/**
|
@@ -15797,75 +15774,11 @@ declare interface TabDragListener extends EventEmitter_2 {
|
|
15797
15774
|
contentItem: ContentItem;
|
15798
15775
|
}
|
15799
15776
|
|
15800
|
-
/**
|
15801
|
-
* @typedef {string} LayoutPosition
|
15802
|
-
* @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
|
15803
|
-
*/
|
15804
|
-
/**
|
15805
|
-
* @typedef {object} StackCreationOptions
|
15806
|
-
* @summary Stack creation options.
|
15807
|
-
* @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
|
15808
|
-
*/
|
15809
|
-
/**
|
15810
|
-
* @typedef {object} TabStack~AddViewOptions
|
15811
|
-
* @summary Options to use when adding a view to a {@link TabStack}
|
15812
|
-
* @property {number} [index] - Insertion index when adding the view. Defaults to 0.
|
15813
|
-
*/
|
15814
15777
|
/**
|
15815
15778
|
* A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
|
15816
15779
|
*/
|
15817
15780
|
declare class TabStack extends LayoutNode {
|
15818
15781
|
#private;
|
15819
|
-
/**
|
15820
|
-
* Determines if this {@link TabStack} is the top level content item in the current layout.
|
15821
|
-
* @function isRoot
|
15822
|
-
* @memberof TabStack
|
15823
|
-
* @instance
|
15824
|
-
* @tutorial TabStack.isRoot
|
15825
|
-
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
15826
|
-
*/
|
15827
|
-
/**
|
15828
|
-
* Determines if this {@link TabStack} exists.
|
15829
|
-
* @function exists
|
15830
|
-
* @instance
|
15831
|
-
* @memberof TabStack
|
15832
|
-
* @tutorial TabStack.exists
|
15833
|
-
* @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
|
15834
|
-
*/
|
15835
|
-
/**
|
15836
|
-
* Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
|
15837
|
-
* @function getParent
|
15838
|
-
* @instance
|
15839
|
-
* @memberof TabStack
|
15840
|
-
* @tutorial TabStack.getParent
|
15841
|
-
* @returns is the root content item or does not exist.
|
15842
|
-
*/
|
15843
|
-
/**
|
15844
|
-
* Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
|
15845
|
-
* @function getAdjacentStacks
|
15846
|
-
* @instance
|
15847
|
-
* @memberof TabStack
|
15848
|
-
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
15849
|
-
*
|
15850
|
-
* @tutorial TabStack.getAdjacentStacks
|
15851
|
-
*/
|
15852
|
-
/**
|
15853
|
-
* Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the current {@link TabStack}
|
15854
|
-
*
|
15855
|
-
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
15856
|
-
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
15857
|
-
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
15858
|
-
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
15859
|
-
*
|
15860
|
-
* @function createAdjacentStack
|
15861
|
-
* @instance
|
15862
|
-
* @memberof TabStack
|
15863
|
-
* @param views - List of identities or view creation options of the views to include in the stack
|
15864
|
-
* @param options - Creation options.
|
15865
|
-
* @returns The created TabStack.
|
15866
|
-
* @tutorial TabStack.createAdjacentStack
|
15867
|
-
* @experimental
|
15868
|
-
*/
|
15869
15782
|
/** @internal */
|
15870
15783
|
constructor(client: LayoutEntitiesClient, entityId: string);
|
15871
15784
|
/**
|
@@ -16984,7 +16897,7 @@ declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCr
|
|
16984
16897
|
*/
|
16985
16898
|
declare type ViewDetachedEvent = BaseEvent_5 & {
|
16986
16899
|
type: 'view-detached';
|
16987
|
-
target: OpenFin.Identity;
|
16900
|
+
target: OpenFin.Identity | null;
|
16988
16901
|
previousTarget: OpenFin.Identity;
|
16989
16902
|
viewIdentity: OpenFin.Identity;
|
16990
16903
|
};
|
@@ -18220,7 +18133,7 @@ declare namespace WebContentsEvents {
|
|
18220
18133
|
* `clipboard-read`: Request access to read from the clipboard.<br>
|
18221
18134
|
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
18222
18135
|
*/
|
18223
|
-
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
|
18136
|
+
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
|
18224
18137
|
|
18225
18138
|
/**
|
18226
18139
|
* Object representing headers and their values, where the
|