@openfin/remote-adapter 36.79.12 → 36.79.15
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.
|
@@ -4490,6 +4490,32 @@ declare type CreateLayoutOptions = {
|
|
|
4490
4490
|
container: HTMLElement;
|
|
4491
4491
|
layoutName: string;
|
|
4492
4492
|
layout: LayoutOptions;
|
|
4493
|
+
/**
|
|
4494
|
+
* @defaultValue 'default'
|
|
4495
|
+
*
|
|
4496
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4497
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4498
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4499
|
+
* View in the `layout` does not already exist, it will be created
|
|
4500
|
+
* with a name that starts with `internal-generated-`.
|
|
4501
|
+
*
|
|
4502
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4503
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4504
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4505
|
+
*
|
|
4506
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4507
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4508
|
+
* to clone a Layout to any Window.
|
|
4509
|
+
*
|
|
4510
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4511
|
+
* existing Views only if they are attached to the current Window or
|
|
4512
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4513
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4514
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4515
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4516
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4517
|
+
*/
|
|
4518
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4493
4519
|
};
|
|
4494
4520
|
|
|
4495
4521
|
/**
|
|
@@ -9446,6 +9472,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
|
9446
9472
|
type: 'monitor-info-changed';
|
|
9447
9473
|
};
|
|
9448
9474
|
|
|
9475
|
+
/**
|
|
9476
|
+
* @experimental
|
|
9477
|
+
*
|
|
9478
|
+
* Used to control view behavior for Layout.create API
|
|
9479
|
+
*/
|
|
9480
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9481
|
+
|
|
9449
9482
|
/**
|
|
9450
9483
|
* @interface
|
|
9451
9484
|
*/
|
|
@@ -10166,6 +10199,7 @@ declare namespace OpenFin {
|
|
|
10166
10199
|
LayoutManagerOverride,
|
|
10167
10200
|
LayoutManager,
|
|
10168
10201
|
CreateLayoutOptions,
|
|
10202
|
+
MultiInstanceViewBehavior,
|
|
10169
10203
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10170
10204
|
ResultBehavior,
|
|
10171
10205
|
PopupBaseBehavior,
|
|
@@ -4490,6 +4490,32 @@ declare type CreateLayoutOptions = {
|
|
|
4490
4490
|
container: HTMLElement;
|
|
4491
4491
|
layoutName: string;
|
|
4492
4492
|
layout: LayoutOptions;
|
|
4493
|
+
/**
|
|
4494
|
+
* @defaultValue 'default'
|
|
4495
|
+
*
|
|
4496
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4497
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4498
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4499
|
+
* View in the `layout` does not already exist, it will be created
|
|
4500
|
+
* with a name that starts with `internal-generated-`.
|
|
4501
|
+
*
|
|
4502
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4503
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4504
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4505
|
+
*
|
|
4506
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4507
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4508
|
+
* to clone a Layout to any Window.
|
|
4509
|
+
*
|
|
4510
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4511
|
+
* existing Views only if they are attached to the current Window or
|
|
4512
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4513
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4514
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4515
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4516
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4517
|
+
*/
|
|
4518
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4493
4519
|
};
|
|
4494
4520
|
|
|
4495
4521
|
/**
|
|
@@ -9446,6 +9472,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
|
9446
9472
|
type: 'monitor-info-changed';
|
|
9447
9473
|
};
|
|
9448
9474
|
|
|
9475
|
+
/**
|
|
9476
|
+
* @experimental
|
|
9477
|
+
*
|
|
9478
|
+
* Used to control view behavior for Layout.create API
|
|
9479
|
+
*/
|
|
9480
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9481
|
+
|
|
9449
9482
|
/**
|
|
9450
9483
|
* @interface
|
|
9451
9484
|
*/
|
|
@@ -10166,6 +10199,7 @@ declare namespace OpenFin {
|
|
|
10166
10199
|
LayoutManagerOverride,
|
|
10167
10200
|
LayoutManager,
|
|
10168
10201
|
CreateLayoutOptions,
|
|
10202
|
+
MultiInstanceViewBehavior,
|
|
10169
10203
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10170
10204
|
ResultBehavior,
|
|
10171
10205
|
PopupBaseBehavior,
|
|
@@ -4490,6 +4490,32 @@ declare type CreateLayoutOptions = {
|
|
|
4490
4490
|
container: HTMLElement;
|
|
4491
4491
|
layoutName: string;
|
|
4492
4492
|
layout: LayoutOptions;
|
|
4493
|
+
/**
|
|
4494
|
+
* @defaultValue 'default'
|
|
4495
|
+
*
|
|
4496
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4497
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4498
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4499
|
+
* View in the `layout` does not already exist, it will be created
|
|
4500
|
+
* with a name that starts with `internal-generated-`.
|
|
4501
|
+
*
|
|
4502
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4503
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4504
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4505
|
+
*
|
|
4506
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4507
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4508
|
+
* to clone a Layout to any Window.
|
|
4509
|
+
*
|
|
4510
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4511
|
+
* existing Views only if they are attached to the current Window or
|
|
4512
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4513
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4514
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4515
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4516
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4517
|
+
*/
|
|
4518
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4493
4519
|
};
|
|
4494
4520
|
|
|
4495
4521
|
/**
|
|
@@ -9446,6 +9472,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
|
9446
9472
|
type: 'monitor-info-changed';
|
|
9447
9473
|
};
|
|
9448
9474
|
|
|
9475
|
+
/**
|
|
9476
|
+
* @experimental
|
|
9477
|
+
*
|
|
9478
|
+
* Used to control view behavior for Layout.create API
|
|
9479
|
+
*/
|
|
9480
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9481
|
+
|
|
9449
9482
|
/**
|
|
9450
9483
|
* @interface
|
|
9451
9484
|
*/
|
|
@@ -10166,6 +10199,7 @@ declare namespace OpenFin {
|
|
|
10166
10199
|
LayoutManagerOverride,
|
|
10167
10200
|
LayoutManager,
|
|
10168
10201
|
CreateLayoutOptions,
|
|
10202
|
+
MultiInstanceViewBehavior,
|
|
10169
10203
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10170
10204
|
ResultBehavior,
|
|
10171
10205
|
PopupBaseBehavior,
|
package/out/remote-adapter.d.ts
CHANGED
|
@@ -4533,6 +4533,32 @@ declare type CreateLayoutOptions = {
|
|
|
4533
4533
|
container: HTMLElement;
|
|
4534
4534
|
layoutName: string;
|
|
4535
4535
|
layout: LayoutOptions;
|
|
4536
|
+
/**
|
|
4537
|
+
* @defaultValue 'default'
|
|
4538
|
+
*
|
|
4539
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4540
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4541
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4542
|
+
* View in the `layout` does not already exist, it will be created
|
|
4543
|
+
* with a name that starts with `internal-generated-`.
|
|
4544
|
+
*
|
|
4545
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4546
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4547
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4548
|
+
*
|
|
4549
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4550
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4551
|
+
* to clone a Layout to any Window.
|
|
4552
|
+
*
|
|
4553
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4554
|
+
* existing Views only if they are attached to the current Window or
|
|
4555
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4556
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4557
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4558
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4559
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4560
|
+
*/
|
|
4561
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4536
4562
|
};
|
|
4537
4563
|
|
|
4538
4564
|
/**
|
|
@@ -9723,6 +9749,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
|
9723
9749
|
type: 'monitor-info-changed';
|
|
9724
9750
|
};
|
|
9725
9751
|
|
|
9752
|
+
/**
|
|
9753
|
+
* @experimental
|
|
9754
|
+
*
|
|
9755
|
+
* Used to control view behavior for Layout.create API
|
|
9756
|
+
*/
|
|
9757
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9758
|
+
|
|
9726
9759
|
/**
|
|
9727
9760
|
* @interface
|
|
9728
9761
|
*/
|
|
@@ -10465,6 +10498,7 @@ declare namespace OpenFin {
|
|
|
10465
10498
|
LayoutManagerOverride,
|
|
10466
10499
|
LayoutManager,
|
|
10467
10500
|
CreateLayoutOptions,
|
|
10501
|
+
MultiInstanceViewBehavior,
|
|
10468
10502
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10469
10503
|
ResultBehavior,
|
|
10470
10504
|
PopupBaseBehavior,
|
package/out/remote-adapter.js
CHANGED
|
@@ -12329,7 +12329,7 @@ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
12329
12329
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
12330
12330
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12331
12331
|
};
|
|
12332
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
|
|
12332
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
|
|
12333
12333
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
|
12334
12334
|
Factory$2.LayoutModule = void 0;
|
|
12335
12335
|
const base_1$5 = base;
|
|
@@ -12401,10 +12401,31 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12401
12401
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
12402
12402
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
|
12403
12403
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
12404
|
-
return
|
|
12404
|
+
return __classPrivateFieldGet$3(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
|
|
12405
12405
|
}
|
|
12406
12406
|
return this.wrapSync(this.fin.me.identity);
|
|
12407
12407
|
};
|
|
12408
|
+
_LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
|
|
12409
|
+
const msg = '[Layout] You are using a deprecated property `layoutManager` - it will be removed in v39.';
|
|
12410
|
+
const managerProxy = new Proxy(layoutManager, {
|
|
12411
|
+
get(target, key) {
|
|
12412
|
+
console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
|
|
12413
|
+
console.warn(msg);
|
|
12414
|
+
return target[key];
|
|
12415
|
+
}
|
|
12416
|
+
});
|
|
12417
|
+
const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
|
|
12418
|
+
const layoutProxy = new Proxy(layout, {
|
|
12419
|
+
get(target, key) {
|
|
12420
|
+
if (key === 'layoutManager') {
|
|
12421
|
+
console.warn(`[Layout-proxy] accessing ${key.toString()}`);
|
|
12422
|
+
console.warn(msg);
|
|
12423
|
+
}
|
|
12424
|
+
return target[key];
|
|
12425
|
+
}
|
|
12426
|
+
});
|
|
12427
|
+
return layoutProxy;
|
|
12428
|
+
});
|
|
12408
12429
|
/**
|
|
12409
12430
|
* Returns the layout manager for the current window
|
|
12410
12431
|
* @returns
|
|
@@ -12514,7 +12535,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12514
12535
|
}
|
|
12515
12536
|
}
|
|
12516
12537
|
Factory$2.LayoutModule = LayoutModule;
|
|
12517
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
|
12538
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
|
12518
12539
|
if (!__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f")) {
|
|
12519
12540
|
throw new Error(`You must call init before using the API ${method}`);
|
|
12520
12541
|
}
|