@openfin/core 35.78.2 → 35.78.3
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/mock-alpha.d.ts +750 -1824
- package/out/mock-beta.d.ts +750 -1824
- package/out/mock-public.d.ts +750 -1824
- package/out/mock.d.ts +775 -2040
- package/out/mock.js +86 -1422
- package/package.json +2 -2
package/out/mock.js
CHANGED
|
@@ -36,18 +36,6 @@ var application$1 = {};
|
|
|
36
36
|
* @packageDocumentation
|
|
37
37
|
*/
|
|
38
38
|
Object.defineProperty(application$1, "__esModule", { value: true });
|
|
39
|
-
application$1.ApplicationWindowEventTypes = void 0;
|
|
40
|
-
/**
|
|
41
|
-
* Array of valid `type` values for an {@link ApplicationWindowEvent}.
|
|
42
|
-
*/
|
|
43
|
-
application$1.ApplicationWindowEventTypes = [
|
|
44
|
-
'window-alert-requested',
|
|
45
|
-
'window-created',
|
|
46
|
-
'window-end-load',
|
|
47
|
-
'window-not-responding',
|
|
48
|
-
'window-responding',
|
|
49
|
-
'window-start-load'
|
|
50
|
-
];
|
|
51
39
|
|
|
52
40
|
var base$1 = {};
|
|
53
41
|
|
|
@@ -1244,6 +1232,15 @@ class LayoutNode {
|
|
|
1244
1232
|
/**
|
|
1245
1233
|
* Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
|
|
1246
1234
|
*
|
|
1235
|
+
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
|
1236
|
+
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
|
1237
|
+
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
|
1238
|
+
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
|
1239
|
+
*
|
|
1240
|
+
* @param views The views that will populate the new TabStack.
|
|
1241
|
+
* @param options Additional options that control new TabStack creation.
|
|
1242
|
+
* @returns The newly-created TabStack.
|
|
1243
|
+
*
|
|
1247
1244
|
* @example
|
|
1248
1245
|
* ```js
|
|
1249
1246
|
* if (!fin.me.isView) {
|
|
@@ -1278,13 +1275,16 @@ class LayoutNode {
|
|
|
1278
1275
|
* console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
|
|
1279
1276
|
*
|
|
1280
1277
|
* ```
|
|
1278
|
+
* @experimental
|
|
1281
1279
|
*/
|
|
1282
1280
|
this.createAdjacentStack = async (views, options) => {
|
|
1283
1281
|
const entityId = await __classPrivateFieldGet$e(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
|
|
1284
1282
|
return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$e(this, _LayoutNode_client, "f"));
|
|
1285
1283
|
};
|
|
1286
1284
|
/**
|
|
1287
|
-
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
|
|
1285
|
+
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
|
|
1286
|
+
*
|
|
1287
|
+
* @param edge Edge whose adjacent TabStacks will be returned.
|
|
1288
1288
|
*
|
|
1289
1289
|
* @example
|
|
1290
1290
|
* ```js
|
|
@@ -1304,6 +1304,7 @@ class LayoutNode {
|
|
|
1304
1304
|
* console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
|
|
1305
1305
|
*
|
|
1306
1306
|
* ```
|
|
1307
|
+
* @experimental
|
|
1307
1308
|
*/
|
|
1308
1309
|
this.getAdjacentStacks = async (edge) => {
|
|
1309
1310
|
const adjacentStacks = await __classPrivateFieldGet$e(this, _LayoutNode_client, "f").getAdjacentStacks({
|
|
@@ -1347,74 +1348,10 @@ LayoutNode.getEntity = (definition, client) => {
|
|
|
1347
1348
|
throw new Error(`Unrecognised Layout Entity encountered ('${JSON.stringify(definition)})`);
|
|
1348
1349
|
}
|
|
1349
1350
|
};
|
|
1350
|
-
/**
|
|
1351
|
-
* @typedef {string} LayoutPosition
|
|
1352
|
-
* @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
|
|
1353
|
-
*/
|
|
1354
|
-
/**
|
|
1355
|
-
* @typedef {object} StackCreationOptions
|
|
1356
|
-
* @summary Stack creation options.
|
|
1357
|
-
* @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
|
|
1358
|
-
*/
|
|
1359
|
-
/**
|
|
1360
|
-
* @typedef {object} TabStack~AddViewOptions
|
|
1361
|
-
* @summary Options to use when adding a view to a {@link TabStack}
|
|
1362
|
-
* @property {number} [index] - Insertion index when adding the view. Defaults to 0.
|
|
1363
|
-
*/
|
|
1364
1351
|
/**
|
|
1365
1352
|
* A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
|
|
1366
1353
|
*/
|
|
1367
1354
|
class TabStack extends LayoutNode {
|
|
1368
|
-
/**
|
|
1369
|
-
* Determines if this {@link TabStack} is the top level content item in the current layout.
|
|
1370
|
-
* @function isRoot
|
|
1371
|
-
* @memberof TabStack
|
|
1372
|
-
* @instance
|
|
1373
|
-
* @tutorial TabStack.isRoot
|
|
1374
|
-
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
|
1375
|
-
*/
|
|
1376
|
-
/**
|
|
1377
|
-
* Determines if this {@link TabStack} exists.
|
|
1378
|
-
* @function exists
|
|
1379
|
-
* @instance
|
|
1380
|
-
* @memberof TabStack
|
|
1381
|
-
* @tutorial TabStack.exists
|
|
1382
|
-
* @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
|
|
1383
|
-
*/
|
|
1384
|
-
/**
|
|
1385
|
-
* Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
|
|
1386
|
-
* @function getParent
|
|
1387
|
-
* @instance
|
|
1388
|
-
* @memberof TabStack
|
|
1389
|
-
* @tutorial TabStack.getParent
|
|
1390
|
-
* @returns is the root content item or does not exist.
|
|
1391
|
-
*/
|
|
1392
|
-
/**
|
|
1393
|
-
* Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
|
|
1394
|
-
* @function getAdjacentStacks
|
|
1395
|
-
* @instance
|
|
1396
|
-
* @memberof TabStack
|
|
1397
|
-
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
|
1398
|
-
*
|
|
1399
|
-
* @tutorial TabStack.getAdjacentStacks
|
|
1400
|
-
*/
|
|
1401
|
-
/**
|
|
1402
|
-
* Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the current {@link TabStack}
|
|
1403
|
-
*
|
|
1404
|
-
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
|
1405
|
-
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
|
1406
|
-
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
|
1407
|
-
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
|
1408
|
-
*
|
|
1409
|
-
* @function createAdjacentStack
|
|
1410
|
-
* @instance
|
|
1411
|
-
* @memberof TabStack
|
|
1412
|
-
* @param views - List of identities or view creation options of the views to include in the stack
|
|
1413
|
-
* @param options - Creation options.
|
|
1414
|
-
* @returns The created TabStack.
|
|
1415
|
-
* @tutorial TabStack.createAdjacentStack
|
|
1416
|
-
* @experimental
|
|
1417
|
-
*/
|
|
1418
1355
|
/** @internal */
|
|
1419
1356
|
constructor(client, entityId) {
|
|
1420
1357
|
super(client, entityId);
|
|
@@ -1547,57 +1484,6 @@ _TabStack_client = new WeakMap();
|
|
|
1547
1484
|
* A ColumnOrRow is used to manage the state of Column and Rows within an OpenFin Layout.
|
|
1548
1485
|
*/
|
|
1549
1486
|
class ColumnOrRow extends LayoutNode {
|
|
1550
|
-
/**
|
|
1551
|
-
* Determines if this {@link ColumnOrRow} is the top level content item in the current layout.
|
|
1552
|
-
* @function isRoot
|
|
1553
|
-
* @memberof ColumnOrRow
|
|
1554
|
-
* @instance
|
|
1555
|
-
* @tutorial ColumnOrRow.isRoot
|
|
1556
|
-
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
|
1557
|
-
*/
|
|
1558
|
-
/**
|
|
1559
|
-
* Determines if this {@link ColumnOrRow} exists.
|
|
1560
|
-
* @function exists
|
|
1561
|
-
* @instance
|
|
1562
|
-
* @memberof ColumnOrRow
|
|
1563
|
-
* @tutorial ColumnOrRow.exists
|
|
1564
|
-
* @returns Resolves true if the TabStack exists, or false if it has been destroyed.
|
|
1565
|
-
*/
|
|
1566
|
-
/**
|
|
1567
|
-
* Retrieves the parent {@link ColumnOrRow} of this {@link ColumnOrRow}, if one exists.
|
|
1568
|
-
* @function getParent
|
|
1569
|
-
* @instance
|
|
1570
|
-
* @memberof ColumnOrRow
|
|
1571
|
-
* @tutorial ColumnOrRow.getParent
|
|
1572
|
-
* @returns Promise resolving with the {@link ColumnOrRow} that contains this item, or undefined if
|
|
1573
|
-
* this {@link ColumnOrRow}does not exist or is the root content item.
|
|
1574
|
-
*/
|
|
1575
|
-
/**
|
|
1576
|
-
* Returns all the adjacent stacks that share an edge with the given {@link ColumnOrRow}.
|
|
1577
|
-
* @function getAdjacentStacks
|
|
1578
|
-
* @instance
|
|
1579
|
-
* @memberof ColumnOrRow
|
|
1580
|
-
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
|
1581
|
-
*
|
|
1582
|
-
* @tutorial ColumnOrRow.getAdjacentStacks
|
|
1583
|
-
*/
|
|
1584
|
-
/**
|
|
1585
|
-
* Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the given {@link ColumnOrRow}
|
|
1586
|
-
*
|
|
1587
|
-
* Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
|
|
1588
|
-
* during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
|
1589
|
-
* This means the views you pass to createAdjacentStack() may not render in the order given by the array.
|
|
1590
|
-
* Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
|
|
1591
|
-
*
|
|
1592
|
-
* @function createAdjacentStack
|
|
1593
|
-
* @instance
|
|
1594
|
-
* @memberof ColumnOrRow
|
|
1595
|
-
* @param views - List of identities or view creation options of the views to include in the stack
|
|
1596
|
-
* @param options - Creation options.
|
|
1597
|
-
* @returns The created TabStack
|
|
1598
|
-
* @tutorial ColumnOrRow.createAdjacentStack
|
|
1599
|
-
* @experimental
|
|
1600
|
-
*/
|
|
1601
1487
|
/**
|
|
1602
1488
|
* @internal
|
|
1603
1489
|
*/
|
|
@@ -1643,7 +1529,8 @@ var layout_constants = {};
|
|
|
1643
1529
|
Object.defineProperty(layout_constants, "__esModule", { value: true });
|
|
1644
1530
|
layout_constants.DEFAULT_LAYOUT_KEY = layout_constants.LAYOUT_CONTROLLER_ID = void 0;
|
|
1645
1531
|
layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
|
|
1646
|
-
|
|
1532
|
+
// TODO: eventually export this somehow
|
|
1533
|
+
layout_constants.DEFAULT_LAYOUT_KEY = '__default__';
|
|
1647
1534
|
|
|
1648
1535
|
var main = {};
|
|
1649
1536
|
|
|
@@ -2672,10 +2559,8 @@ class WebContents extends base_1$k.EmitterBase {
|
|
|
2672
2559
|
});
|
|
2673
2560
|
const { data: { willOpen, options: popupOptions } } = tryCreatePayload;
|
|
2674
2561
|
if (willOpen) {
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
entityType: 'window'
|
|
2678
|
-
});
|
|
2562
|
+
// Solve the issue where Interop in a popup window with non cross-origin url is not working(core-1076).
|
|
2563
|
+
await this.fin.Window.create(popupOptions.initialOptions);
|
|
2679
2564
|
}
|
|
2680
2565
|
const normalizePopupResult = (payload) => {
|
|
2681
2566
|
const { name, uuid, result, data } = payload;
|
|
@@ -2737,169 +2622,6 @@ function requireInstance$2 () {
|
|
|
2737
2622
|
const layout_constants_1 = layout_constants;
|
|
2738
2623
|
const main_1 = main;
|
|
2739
2624
|
const window_1 = requireWindow();
|
|
2740
|
-
/**
|
|
2741
|
-
* @PORTED
|
|
2742
|
-
* @typedef {object} View~options
|
|
2743
|
-
* @summary View creation options.
|
|
2744
|
-
* @desc This is the options object required by {@link View.create View.create}.
|
|
2745
|
-
*
|
|
2746
|
-
* Note that `name` and `target` are the only required properties — albeit the `url` property is usually provided as well
|
|
2747
|
-
* (defaults to `"about:blank"` when omitted).
|
|
2748
|
-
*
|
|
2749
|
-
* @property {object} [experimental]
|
|
2750
|
-
* Configurations for API injection.
|
|
2751
|
-
*
|
|
2752
|
-
* @property {boolean} [experimental.childWindows] Configure if the runtime should enable child windows for views.
|
|
2753
|
-
*
|
|
2754
|
-
* @property {object} [accelerator]
|
|
2755
|
-
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
2756
|
-
*
|
|
2757
|
-
* @property {boolean} [accelerator.devtools=false]
|
|
2758
|
-
* If `true`, enables the devtools keyboard shortcut:<br>
|
|
2759
|
-
* `Ctrl` + `Shift` + `I` _(Toggles Devtools)_
|
|
2760
|
-
*
|
|
2761
|
-
* @property {boolean} [accelerator.reload=false]
|
|
2762
|
-
* If `true`, enables the reload keyboard shortcuts:<br>
|
|
2763
|
-
* `Ctrl` + `R` _(Windows)_<br>
|
|
2764
|
-
* `F5` _(Windows)_<br>
|
|
2765
|
-
* `Command` + `R` _(Mac)_
|
|
2766
|
-
*
|
|
2767
|
-
* @property {boolean} [accelerator.reloadIgnoringCache=false]
|
|
2768
|
-
* If `true`, enables the reload-from-source keyboard shortcuts:<br>
|
|
2769
|
-
* `Ctrl` + `Shift` + `R` _(Windows)_<br>
|
|
2770
|
-
* `Shift` + `F5` _(Windows)_<br>
|
|
2771
|
-
* `Command` + `Shift` + `R` _(Mac)_
|
|
2772
|
-
*
|
|
2773
|
-
* @property {boolean} [accelerator.zoom=false]
|
|
2774
|
-
* If `true`, enables the zoom keyboard shortcuts:<br>
|
|
2775
|
-
* `Ctrl` + `+` _(Zoom In)_<br>
|
|
2776
|
-
* `Ctrl` + `Shift` + `+` _(Zoom In)_<br>
|
|
2777
|
-
* `Ctrl` + `NumPad+` _(Zoom In)_<br>
|
|
2778
|
-
* `Ctrl` + `-` _(Zoom Out)_<br>
|
|
2779
|
-
* `Ctrl` + `Shift` + `-` _(Zoom Out)_<br>
|
|
2780
|
-
* `Ctrl` + `NumPad-` _(Zoom Out)_<br>
|
|
2781
|
-
* `Ctrl` + `Scroll` _(Zoom In & Out)_<br>
|
|
2782
|
-
* `Ctrl` + `0` _(Restore to 100%)_
|
|
2783
|
-
*
|
|
2784
|
-
* @property {object} [api]
|
|
2785
|
-
* Configurations for API injection.
|
|
2786
|
-
*
|
|
2787
|
-
* @property {object} [api.iframe] Configure if the the API should be injected into iframes based on domain.
|
|
2788
|
-
*
|
|
2789
|
-
* @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
|
|
2790
|
-
* @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
|
|
2791
|
-
*
|
|
2792
|
-
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
2793
|
-
* Autoplay policy to apply to content in the window, can be
|
|
2794
|
-
* `no-user-gesture-required`, `user-gesture-required`,
|
|
2795
|
-
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
2796
|
-
*
|
|
2797
|
-
* @property {object} [autoResize] AutoResize options
|
|
2798
|
-
*
|
|
2799
|
-
* @property {object} [bounds] initial bounds given relative to the window.
|
|
2800
|
-
*
|
|
2801
|
-
* @property {string} [backgroundColor="#FFF"] - _Updatable._
|
|
2802
|
-
* The view’s _backfill_ color as a hexadecimal value. Not to be confused with the content background color
|
|
2803
|
-
* (`document.body.style.backgroundColor`),
|
|
2804
|
-
* this color briefly fills a view’s (a) content area before its content is loaded as well as (b) newly exposed
|
|
2805
|
-
* areas when growing a window. Setting
|
|
2806
|
-
* this value to the anticipated content background color can help improve user experience.
|
|
2807
|
-
* Default is white.
|
|
2808
|
-
*
|
|
2809
|
-
* @property {object} [contentNavigation]
|
|
2810
|
-
* Restrict navigation to URLs that match an allowed pattern.
|
|
2811
|
-
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
|
2812
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
2813
|
-
* @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
|
|
2814
|
-
* @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
|
|
2815
|
-
*
|
|
2816
|
-
* @property {object} [contentRedirect]
|
|
2817
|
-
* Restrict redirects to URLs that match an allowed pattern.
|
|
2818
|
-
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
|
2819
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
2820
|
-
* @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
|
|
2821
|
-
* @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
|
|
2822
|
-
*
|
|
2823
|
-
* @property {object} [contextMenuSettings] - _Updatable._
|
|
2824
|
-
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
2825
|
-
* Configure the context menu when right-clicking on a view.
|
|
2826
|
-
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
2827
|
-
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
2828
|
-
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
2829
|
-
*
|
|
2830
|
-
* @property {object} [contextMenuOptions] - _Updatable._
|
|
2831
|
-
* Configure the context menu when right-clicking on a view. Supported menu items:
|
|
2832
|
-
* 'separator'
|
|
2833
|
-
* 'cut'
|
|
2834
|
-
* 'copy'
|
|
2835
|
-
* 'copyImage',
|
|
2836
|
-
* 'paste'
|
|
2837
|
-
* 'spellCheck'
|
|
2838
|
-
* 'inspect'
|
|
2839
|
-
* 'reload'
|
|
2840
|
-
* 'navigateForward'
|
|
2841
|
-
* 'navigateBack'
|
|
2842
|
-
* 'print'
|
|
2843
|
-
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
2844
|
-
* @property {string[]} [contextMenuOptions.template=[]] List of context menu items to display on right-click.
|
|
2845
|
-
*
|
|
2846
|
-
* @property {any} [customData=""] - _Updatable._
|
|
2847
|
-
* A field that the user can attach serializable data to be ferried around with the view options.
|
|
2848
|
-
* _When omitted, the default value of this property is the empty string (`""`)._
|
|
2849
|
-
*
|
|
2850
|
-
* @property {any} [customContext=""] - _Updatable._
|
|
2851
|
-
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot}
|
|
2852
|
-
* is called.
|
|
2853
|
-
* When omitted, the default value of this property is the empty string (`""`).
|
|
2854
|
-
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext}
|
|
2855
|
-
*
|
|
2856
|
-
* @property {object[]} [hotkeys=[]] - _Updatable._
|
|
2857
|
-
* Defines the list of hotkeys that will be emitted as a `hotkey` event on the view. For usage example see [example]{@tutorial hotkeys}.
|
|
2858
|
-
* Within Platform, OpenFin also implements a set of pre-defined actions called
|
|
2859
|
-
* [keyboard commands]{@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands}
|
|
2860
|
-
* that can be assigned to a specific hotkey in the platform manifest.
|
|
2861
|
-
* @property {string} hotkeys.keys The key combination of the hotkey, i.e. "Ctrl+T"
|
|
2862
|
-
* @property {boolean} [hotkeys.preventDefault=false] preventDefault will prevent the page keydown/keyup events from being emitted.
|
|
2863
|
-
*
|
|
2864
|
-
* @property {boolean} [isClosable=true] **Platforms Only.** If false, the view will be persistent and can't be closed through
|
|
2865
|
-
* either UI or `Platform.closeView`. Note that the view will still be closed if the host window is closed or
|
|
2866
|
-
* if the view isn't part of the new layout when running `Layout.replace`.
|
|
2867
|
-
*
|
|
2868
|
-
* @property {string} name
|
|
2869
|
-
* The name of the view.
|
|
2870
|
-
*
|
|
2871
|
-
* @property {boolean} [detachOnClose=false] - _Updatable._
|
|
2872
|
-
* Platforms Only. If true, will hide and detach the View from the window for later use instead of closing,
|
|
2873
|
-
* allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
|
|
2874
|
-
*
|
|
2875
|
-
* @property {string} [manifestUrl] **Platforms Only.** Url to a manifest that contains View Options. Properties other than manifestUrl can still be used
|
|
2876
|
-
* but the properties in the manifest will take precedence if there is any collision.
|
|
2877
|
-
*
|
|
2878
|
-
* @property {preloadScript[]} [preloadScripts] - _Inheritable_
|
|
2879
|
-
* A list of scripts that are eval'ed before other scripts in the page. When omitted, _inherits_
|
|
2880
|
-
* from the parent application.
|
|
2881
|
-
*
|
|
2882
|
-
* @property {boolean} [preventDragOut=false] **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
|
|
2883
|
-
*
|
|
2884
|
-
* @property {string} [processAffinity=<application uuid>]
|
|
2885
|
-
* A string to attempt to group renderers together. Will only be used if pages are on the same origin.
|
|
2886
|
-
*
|
|
2887
|
-
* @property {boolean} [spellCheck=false]
|
|
2888
|
-
* Enable spell check in input text fields for the view.
|
|
2889
|
-
*
|
|
2890
|
-
* @property {Identity} [target]
|
|
2891
|
-
* The identity of the window this view should be attached to.
|
|
2892
|
-
*
|
|
2893
|
-
* @property {string} [url="about:blank"]
|
|
2894
|
-
* The URL of the view.
|
|
2895
|
-
*
|
|
2896
|
-
* @property {string} [uuid=<application uuid>]
|
|
2897
|
-
* The `uuid` of the application, unique within the set of all `Application`s running in OpenFin Runtime.
|
|
2898
|
-
* If omitted, defaults to the `uuid` of the application spawning the view.
|
|
2899
|
-
* If given, must match the `uuid` of the application spawning the view.
|
|
2900
|
-
* In other words, the application's `uuid` is the only acceptable value, but is the default, so there's
|
|
2901
|
-
* really no need to provide it.
|
|
2902
|
-
*/
|
|
2903
2625
|
/**
|
|
2904
2626
|
* A View can be used to embed additional web content into a Window.
|
|
2905
2627
|
* It is like a child window, except it is positioned relative to its owning window.
|
|
@@ -3475,7 +3197,7 @@ function requireView () {
|
|
|
3475
3197
|
* * {@link ViewModule} contains static members of the `View` API, accessible through `fin.View`.
|
|
3476
3198
|
* * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
|
|
3477
3199
|
*
|
|
3478
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
3200
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
3479
3201
|
* both of these were documented on the same page.
|
|
3480
3202
|
*
|
|
3481
3203
|
* @packageDocumentation
|
|
@@ -3523,100 +3245,6 @@ function requireInstance$1 () {
|
|
|
3523
3245
|
});
|
|
3524
3246
|
return windowList;
|
|
3525
3247
|
}
|
|
3526
|
-
/**
|
|
3527
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
3528
|
-
* @param eventType - The type of the event.
|
|
3529
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
3530
|
-
* @param options - Option to support event timestamps.
|
|
3531
|
-
*
|
|
3532
|
-
* @function addListener
|
|
3533
|
-
* @memberof Application
|
|
3534
|
-
* @instance
|
|
3535
|
-
* @tutorial Application.EventEmitter
|
|
3536
|
-
*/
|
|
3537
|
-
/**
|
|
3538
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
3539
|
-
* @param eventType - The type of the event.
|
|
3540
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
3541
|
-
* @param options - Option to support event timestamps.
|
|
3542
|
-
*
|
|
3543
|
-
* @function on
|
|
3544
|
-
* @memberof Application
|
|
3545
|
-
* @instance
|
|
3546
|
-
* @tutorial Application.EventEmitter
|
|
3547
|
-
*/
|
|
3548
|
-
/**
|
|
3549
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
3550
|
-
* @param eventType - The type of the event.
|
|
3551
|
-
* @param listener - The callback function.
|
|
3552
|
-
* @param options - Option to support event timestamps.
|
|
3553
|
-
*
|
|
3554
|
-
* @function once
|
|
3555
|
-
* @memberof Application
|
|
3556
|
-
* @instance
|
|
3557
|
-
* @tutorial Application.EventEmitter
|
|
3558
|
-
*/
|
|
3559
|
-
/**
|
|
3560
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
3561
|
-
* @param eventType - The type of the event.
|
|
3562
|
-
* @param listener - The callback function.
|
|
3563
|
-
* @param options - Option to support event timestamps.
|
|
3564
|
-
*
|
|
3565
|
-
* @function prependListener
|
|
3566
|
-
* @memberof Application
|
|
3567
|
-
* @instance
|
|
3568
|
-
* @tutorial Application.EventEmitter
|
|
3569
|
-
*/
|
|
3570
|
-
/**
|
|
3571
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
3572
|
-
* The listener is added to the beginning of the listeners array.
|
|
3573
|
-
* @param eventType - The type of the event.
|
|
3574
|
-
* @param listener - The callback function.
|
|
3575
|
-
* @param options - Option to support event timestamps.
|
|
3576
|
-
*
|
|
3577
|
-
* @function prependOnceListener
|
|
3578
|
-
* @memberof Application
|
|
3579
|
-
* @instance
|
|
3580
|
-
* @tutorial Application.EventEmitter
|
|
3581
|
-
*/
|
|
3582
|
-
/**
|
|
3583
|
-
* Remove a listener from the listener array for the specified event.
|
|
3584
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
3585
|
-
* @param eventType - The type of the event.
|
|
3586
|
-
* @param listener - The callback function.
|
|
3587
|
-
* @param options - Option to support event timestamps.
|
|
3588
|
-
*
|
|
3589
|
-
* @function removeListener
|
|
3590
|
-
* @memberof Application
|
|
3591
|
-
* @instance
|
|
3592
|
-
* @tutorial Application.EventEmitter
|
|
3593
|
-
*/
|
|
3594
|
-
/**
|
|
3595
|
-
* Removes all listeners, or those of the specified event.
|
|
3596
|
-
* @param eventType - The type of the event.
|
|
3597
|
-
*
|
|
3598
|
-
* @function removeAllListeners
|
|
3599
|
-
* @memberof Application
|
|
3600
|
-
* @instance
|
|
3601
|
-
* @tutorial Application.EventEmitter
|
|
3602
|
-
*/
|
|
3603
|
-
/**
|
|
3604
|
-
* JumpListCategory interface
|
|
3605
|
-
* @typedef { object } JumpListCategory
|
|
3606
|
-
* @property { string } name The display title for the category. If omitted, items in this category will be placed into the standard 'Tasks' category. There can be only one such category, and it will always be displayed at the bottom of the JumpList.
|
|
3607
|
-
* @property { JumpListItem[] } items Array of JumpListItem objects
|
|
3608
|
-
*/
|
|
3609
|
-
/**
|
|
3610
|
-
* @PORTED
|
|
3611
|
-
* JumpListItem interface
|
|
3612
|
-
* @typedef { object } JumpListItem
|
|
3613
|
-
* @property { string } type One of the following: "task" or "separator". Defaults to task.
|
|
3614
|
-
* @property { string } title The text to be displayed for the JumpList Item. Should only be set if type is "task".
|
|
3615
|
-
* @property { string } description Description of the task (displayed in a tooltip). Should only be set if type is "task".
|
|
3616
|
-
* @property { string } deepLink Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1. See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
|
|
3617
|
-
* @property { string } iconPath The absolute path to an icon to be displayed for the item, which can be an arbitrary resource file that contains an icon (e.g. .ico, .exe, .dll).
|
|
3618
|
-
* @property { number } iconIndex The index of the icon in the resource file. If a resource file contains multiple icons this value can be used to specify the zero-based index of the icon that should be displayed for this task. If a resource file contains only one icon, this property should be set to zero.
|
|
3619
|
-
*/
|
|
3620
3248
|
/**
|
|
3621
3249
|
* Determines if the application is currently running.
|
|
3622
3250
|
*
|
|
@@ -4616,7 +4244,7 @@ function requireApplication () {
|
|
|
4616
4244
|
* * {@link ApplicationModule} contains static members of the `Application` API, accessible through `fin.Application`.
|
|
4617
4245
|
* * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
|
|
4618
4246
|
*
|
|
4619
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
4247
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
4620
4248
|
* both of these were documented on the same page.
|
|
4621
4249
|
*
|
|
4622
4250
|
* @packageDocumentation
|
|
@@ -4642,476 +4270,6 @@ function requireInstance () {
|
|
|
4642
4270
|
const main_1 = main;
|
|
4643
4271
|
const view_1 = requireView();
|
|
4644
4272
|
const warnings_1 = warnings;
|
|
4645
|
-
/**
|
|
4646
|
-
* @PORTED
|
|
4647
|
-
* @typedef { object } Margins
|
|
4648
|
-
* @property { string } [marginType]
|
|
4649
|
-
* Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen,
|
|
4650
|
-
* you will also need to specify `top`, `bottom`, `left`, and `right`.
|
|
4651
|
-
*
|
|
4652
|
-
* @property { number } [top] The top margin of the printed web page, in pixels.
|
|
4653
|
-
* @property { number } [bottom] The bottom margin of the printed web page, in pixels.
|
|
4654
|
-
* @property { number } [left] The left margin of the printed web page, in pixels.
|
|
4655
|
-
* @property { number } [right] The right margin of the printed web page, in pixels.
|
|
4656
|
-
*/
|
|
4657
|
-
/**
|
|
4658
|
-
* @PORTED
|
|
4659
|
-
* @typedef { object } Dpi
|
|
4660
|
-
* @property { number } [horizontal] The horizontal dpi
|
|
4661
|
-
* @property { number } [vertical] The vertical dpi
|
|
4662
|
-
*/
|
|
4663
|
-
/**
|
|
4664
|
-
* @PORTED
|
|
4665
|
-
* @typedef { object } PrintOptions
|
|
4666
|
-
* @property { boolean } [silent=false] Don't ask user for print settings.
|
|
4667
|
-
* @property { boolean } [printBackground=false] Prints the background color and image of the web page.
|
|
4668
|
-
* @property { string } [deviceName=''] Set the printer device name to use.
|
|
4669
|
-
* @property { boolean } [color=true] Set whether the printed web page will be in color or grayscale.
|
|
4670
|
-
* @property { Margins } [margins] Set margins for the printed web page
|
|
4671
|
-
* @property { boolean } [landscape=false] Whether the web page should be printed in landscape mode.
|
|
4672
|
-
* @property { number } [scaleFactor] The scale factor of the web page.
|
|
4673
|
-
* @property { number } [pagesPerSheet] The number of pages to print per page sheet.
|
|
4674
|
-
* @property { boolean } [collate] Whether the web page should be collated.
|
|
4675
|
-
* @property { number } [copies] The number of copies of the web page to print.
|
|
4676
|
-
* @property { Record<string, number> } [pageRanges] The page range to print. Should have two keys: from and to.
|
|
4677
|
-
* @property { string } [duplexMode] Set the duplex mode of the printed web page. Can be simplex, shortEdge, or longEdge.
|
|
4678
|
-
* @property { Dpi } [dpi] Set dpi for the printed web page
|
|
4679
|
-
*/
|
|
4680
|
-
/**
|
|
4681
|
-
* @REMOVED
|
|
4682
|
-
* PrinterInfo interface
|
|
4683
|
-
* @typedef { object } PrinterInfo
|
|
4684
|
-
* @property { string } name Printer Name
|
|
4685
|
-
* @property { string } description Printer Description
|
|
4686
|
-
* @property { number } status Printer Status
|
|
4687
|
-
* @property { boolean } isDefault Indicates that system's default printer
|
|
4688
|
-
*/
|
|
4689
|
-
/**
|
|
4690
|
-
* @REMOVED
|
|
4691
|
-
* SharedWorkerInfo interface
|
|
4692
|
-
* @typedef { object } SharedWorkerInfo
|
|
4693
|
-
* @property { string } id The unique id of the shared worker.
|
|
4694
|
-
* @property { string } url The url of the shared worker.
|
|
4695
|
-
*/
|
|
4696
|
-
/**
|
|
4697
|
-
* @PORTED
|
|
4698
|
-
* ContentCreationRule interface
|
|
4699
|
-
* @typedef { object } ContentCreationRule
|
|
4700
|
-
* @property { string } behavior 'view' | 'window' | 'browser' | 'block'
|
|
4701
|
-
* @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
|
|
4702
|
-
* @property { object } options Window creation options or View creation options.
|
|
4703
|
-
*/
|
|
4704
|
-
/**
|
|
4705
|
-
* @PORTED
|
|
4706
|
-
* @typedef {object} Window~options
|
|
4707
|
-
* @summary Window creation options.
|
|
4708
|
-
* @desc This is the options object required by {@link Window.create Window.create}.
|
|
4709
|
-
*
|
|
4710
|
-
* Note that `name` is the only required property — albeit the `url` property is usually provided as well
|
|
4711
|
-
* (defaults to `"about:blank"` when omitted).
|
|
4712
|
-
*
|
|
4713
|
-
* _This jsdoc typedef mirrors the `WindowOptions` TypeScript interface in `@types/openfin`._
|
|
4714
|
-
*
|
|
4715
|
-
* @property {object} [accelerator]
|
|
4716
|
-
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
4717
|
-
*
|
|
4718
|
-
* @property {boolean} [accelerator.devtools=false]
|
|
4719
|
-
* If `true`, enables the devtools keyboard shortcut:<br>
|
|
4720
|
-
* `Ctrl` + `Shift` + `I` _(Toggles Devtools)_
|
|
4721
|
-
*
|
|
4722
|
-
* @property {boolean} [accelerator.reload=false]
|
|
4723
|
-
* If `true`, enables the reload keyboard shortcuts:<br>
|
|
4724
|
-
* `Ctrl` + `R` _(Windows)_<br>
|
|
4725
|
-
* `F5` _(Windows)_<br>
|
|
4726
|
-
* `Command` + `R` _(Mac)_
|
|
4727
|
-
*
|
|
4728
|
-
* @property {boolean} [accelerator.reloadIgnoringCache=false]
|
|
4729
|
-
* If `true`, enables the reload-from-source keyboard shortcuts:<br>
|
|
4730
|
-
* `Ctrl` + `Shift` + `R` _(Windows)_<br>
|
|
4731
|
-
* `Shift` + `F5` _(Windows)_<br>
|
|
4732
|
-
* `Command` + `Shift` + `R` _(Mac)_
|
|
4733
|
-
*
|
|
4734
|
-
* @property {boolean} [accelerator.zoom=false]
|
|
4735
|
-
* NOTE: It is not recommended to set this value to true for Windows in Platforms as that may lead to unexpected visual shifts in layout.
|
|
4736
|
-
* If `true`, enables the zoom keyboard shortcuts:<br>
|
|
4737
|
-
* `Ctrl` + `+` _(Zoom In)_<br>
|
|
4738
|
-
* `Ctrl` + `Shift` + `+` _(Zoom In)_<br>
|
|
4739
|
-
* `Ctrl` + `NumPad+` _(Zoom In)_<br>
|
|
4740
|
-
* `Ctrl` + `-` _(Zoom Out)_<br>
|
|
4741
|
-
* `Ctrl` + `Shift` + `-` _(Zoom Out)_<br>
|
|
4742
|
-
* `Ctrl` + `NumPad-` _(Zoom Out)_<br>
|
|
4743
|
-
* `Ctrl` + `Scroll` _(Zoom In & Out)_<br>
|
|
4744
|
-
* `Ctrl` + `0` _(Restore to 100%)_
|
|
4745
|
-
*
|
|
4746
|
-
* @property {object} [alphaMask] - _Experimental._ _Updatable._
|
|
4747
|
-
* <br>
|
|
4748
|
-
* alphaMask turns anything of matching RGB value transparent.
|
|
4749
|
-
* <br>
|
|
4750
|
-
* Caveats:
|
|
4751
|
-
* * Runtime flags --disable-gpu and --allow-unsafe-compositing are required. Note: Unclear behavior on remote Desktop support
|
|
4752
|
-
* * User cannot click-through transparent regions
|
|
4753
|
-
* * Not supported on Mac
|
|
4754
|
-
* * Windows Aero must be enabled
|
|
4755
|
-
* * Won't make visual sense on Pixel-pushed environments such as Citrix
|
|
4756
|
-
* * Not supported on rounded corner windows
|
|
4757
|
-
* @property {number} [alphaMask.red=-1] 0-255
|
|
4758
|
-
* @property {number} [alphaMask.green=-1] 0-255
|
|
4759
|
-
* @property {number} [alphaMask.blue=-1] 0-255
|
|
4760
|
-
*
|
|
4761
|
-
* @property {boolean} [alwaysOnTop=false] - _Updatable._
|
|
4762
|
-
* A flag to always position the window at the top of the window stack.
|
|
4763
|
-
*
|
|
4764
|
-
* @property {object} [api]
|
|
4765
|
-
* Configurations for API injection.
|
|
4766
|
-
*
|
|
4767
|
-
* @property {object} [api.iframe] Configure if the the API should be injected into iframes based on domain.
|
|
4768
|
-
*
|
|
4769
|
-
* @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
|
|
4770
|
-
* @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
|
|
4771
|
-
*
|
|
4772
|
-
* @property {string} [applicationIcon = ""] - _Deprecated_ - use `icon` instead.
|
|
4773
|
-
*
|
|
4774
|
-
* @property {number} [aspectRatio=0] - _Updatable._
|
|
4775
|
-
* The aspect ratio of width to height to enforce for the window. If this value is equal to or less than zero,
|
|
4776
|
-
* an aspect ratio will not be enforced.
|
|
4777
|
-
*
|
|
4778
|
-
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
4779
|
-
* Autoplay policy to apply to content in the window, can be
|
|
4780
|
-
* `no-user-gesture-required`, `user-gesture-required`,
|
|
4781
|
-
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
4782
|
-
*
|
|
4783
|
-
* @property {boolean} [autoShow=true]
|
|
4784
|
-
* A flag to automatically show the window when it is created.
|
|
4785
|
-
*
|
|
4786
|
-
* @property {string} [backgroundColor="#FFF"]
|
|
4787
|
-
* The window’s _backfill_ color as a hexadecimal value. Not to be confused with the content background color
|
|
4788
|
-
* (`document.body.style.backgroundColor`),
|
|
4789
|
-
* this color briefly fills a window’s (a) content area before its content is loaded as well as (b) newly exposed
|
|
4790
|
-
* areas when growing a window. Setting
|
|
4791
|
-
* this value to the anticipated content background color can help improve user experience.
|
|
4792
|
-
* Default is white.
|
|
4793
|
-
*
|
|
4794
|
-
* @property {object} [contentCreation]
|
|
4795
|
-
* Apply rules that determine how user interaction (`window.open` and links) creates content.
|
|
4796
|
-
* @property {ContentCreationRule[]} [contentCreation.rules = []] List of content creation rules.
|
|
4797
|
-
*
|
|
4798
|
-
* @property {object} [contentNavigation]
|
|
4799
|
-
* Restrict navigation to URLs that match an allowed pattern.
|
|
4800
|
-
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
|
4801
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
4802
|
-
* @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
|
|
4803
|
-
* @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
|
|
4804
|
-
*
|
|
4805
|
-
* @property {object} [contentRedirect]
|
|
4806
|
-
* Restrict redirects to URLs that match an allowed pattern.
|
|
4807
|
-
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
|
4808
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
4809
|
-
* @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
|
|
4810
|
-
* @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
|
|
4811
|
-
*
|
|
4812
|
-
* @property {boolean} [contextMenu=true] - _Updatable._
|
|
4813
|
-
* A flag to show the context menu when right-clicking on a window.
|
|
4814
|
-
* Gives access to the devtools for the window.
|
|
4815
|
-
*
|
|
4816
|
-
* @property {object} [contextMenuSettings] - _Updatable._
|
|
4817
|
-
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
4818
|
-
* Configure the context menu when right-clicking on a window.
|
|
4819
|
-
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
4820
|
-
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
4821
|
-
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
4822
|
-
*
|
|
4823
|
-
* @property {object} [contextMenuOptions] - _Updatable._
|
|
4824
|
-
* Configure the context menu when right-clicking on a window. Supported menu items:
|
|
4825
|
-
* 'separator'
|
|
4826
|
-
* 'cut'
|
|
4827
|
-
* 'copy'
|
|
4828
|
-
* 'paste'
|
|
4829
|
-
* 'spellCheck'
|
|
4830
|
-
* 'inspect'
|
|
4831
|
-
* 'reload'
|
|
4832
|
-
* 'navigateForward'
|
|
4833
|
-
* 'navigateBack'
|
|
4834
|
-
* 'print'
|
|
4835
|
-
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
4836
|
-
* @property {string[]} [contextMenuSettings.template=[]] List of context menu items to display on right-click.
|
|
4837
|
-
*
|
|
4838
|
-
* @property {object} [cornerRounding] - _Updatable._
|
|
4839
|
-
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
4840
|
-
* average of _height_ and _width_.
|
|
4841
|
-
* @property {number} [cornerRounding.height=0] The height in pixels.
|
|
4842
|
-
* @property {number} [cornerRounding.width=0] The width in pixels.
|
|
4843
|
-
*
|
|
4844
|
-
* @property {any} [customContext=""] - _Updatable. Inheritable._
|
|
4845
|
-
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot}
|
|
4846
|
-
* is called. If a window in a Platform is trying to update or retrieve its own context, it can use the
|
|
4847
|
-
* {@link Platform#setWindowContext Platform.setWindowContext} and {@link Platform#getWindowContext Platform.getWindowContext} calls.
|
|
4848
|
-
* _When omitted, _inherits_ from the parent application._
|
|
4849
|
-
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext}
|
|
4850
|
-
*
|
|
4851
|
-
* @property {any} [customData=""] - _Updatable. Inheritable._
|
|
4852
|
-
* A field that the user can attach serializable data to be ferried around with the window options.
|
|
4853
|
-
* _When omitted, _inherits_ from the parent application._
|
|
4854
|
-
*
|
|
4855
|
-
* @property {object[]} [customRequestHeaders]
|
|
4856
|
-
* Defines list of custom headers for requests sent by the window.
|
|
4857
|
-
* @property {string[]} [customRequestHeaders.urlPatterns=[]] The URL patterns for which the headers will be applied
|
|
4858
|
-
* @property {object[]} [customRequestHeaders.headers=[]] Objects representing headers and their values,
|
|
4859
|
-
* where the object key is the name of header and value at key is the value of the header
|
|
4860
|
-
*
|
|
4861
|
-
* @property {boolean} [closeOnLastViewRemoved=true] - _Experimental._ _Updatable._
|
|
4862
|
-
* Toggling off would keep the Window alive even if all its Views were closed.
|
|
4863
|
-
* This is meant for advanced users and should be used with caution.
|
|
4864
|
-
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
4865
|
-
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
4866
|
-
* ** note ** - This option is ignored in non-Platforms apps.
|
|
4867
|
-
*
|
|
4868
|
-
* @property {boolean} [defaultCentered=false]
|
|
4869
|
-
* Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
|
|
4870
|
-
* this value will be ignored for subsequent launches in favor of the cached value. **NOTE:** On macOS _defaultCenter_ is
|
|
4871
|
-
* somewhat above center vertically.
|
|
4872
|
-
*
|
|
4873
|
-
* @property {number} [defaultHeight=500]
|
|
4874
|
-
* The default height of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent launches
|
|
4875
|
-
* in favor of the cached value.
|
|
4876
|
-
*
|
|
4877
|
-
* @property {number} [defaultLeft=100]
|
|
4878
|
-
* The default left position of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
4879
|
-
* launches in favor of the cached value.
|
|
4880
|
-
*
|
|
4881
|
-
* @property {number} [defaultTop=100]
|
|
4882
|
-
* The default top position of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
4883
|
-
* launches in favor of the cached value.
|
|
4884
|
-
*
|
|
4885
|
-
* @property {number} [defaultWidth=800]
|
|
4886
|
-
* The default width of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
4887
|
-
* launches in favor of the cached value.
|
|
4888
|
-
*
|
|
4889
|
-
* @property {boolean} [includeInSnapshots=true] - _Updatable._
|
|
4890
|
-
* When true, the window will be be included in snapshots returned by Platform.getSnapshot(). Turning this off may be desirable when dealing with
|
|
4891
|
-
* inherently temporary windows whose state shouldn't be preserved, such as modals, menus, or popups.
|
|
4892
|
-
*
|
|
4893
|
-
* @property {boolean} [frame=true] - _Updatable._
|
|
4894
|
-
* A flag to show the frame.
|
|
4895
|
-
*
|
|
4896
|
-
* @hidden-property {boolean} [hideOnClose=false] - A flag to allow a window to be hidden when the close button is clicked.
|
|
4897
|
-
*
|
|
4898
|
-
* @property {object[]} [hotkeys=[]] - _Updatable._
|
|
4899
|
-
* Defines the list of hotkeys that will be emitted as a `hotkey` event on the window. For usage example see [example]{@tutorial hotkeys}.
|
|
4900
|
-
* Within Platform, OpenFin also implements a set of pre-defined actions called
|
|
4901
|
-
* [keyboard commands]{@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands}
|
|
4902
|
-
* that can be assigned to a specific hotkey in the platform manifest.
|
|
4903
|
-
* @property {string} hotkeys.keys The key combination of the hotkey, i.e. "Ctrl+T"
|
|
4904
|
-
* @property {boolean} [hotkeys.preventDefault=false] Whether or not to prevent default key handling before emitting the event
|
|
4905
|
-
*
|
|
4906
|
-
* @property {string} [icon] - _Updatable. Inheritable._
|
|
4907
|
-
* A URL for the icon to be shown in the window title bar and the taskbar.
|
|
4908
|
-
* When omitted, inherits from the parent application._
|
|
4909
|
-
* note: Window OS caches taskbar icons, therefore an icon change might only be visible after the cache is removed or the uuid is changed.
|
|
4910
|
-
*
|
|
4911
|
-
* @property {number} [maxHeight=-1] - _Updatable._
|
|
4912
|
-
* The maximum height of a window. Will default to the OS defined value if set to -1.
|
|
4913
|
-
*
|
|
4914
|
-
* @property {boolean} [maximizable=true] - _Updatable._
|
|
4915
|
-
* A flag that lets the window be maximized.
|
|
4916
|
-
*
|
|
4917
|
-
* @property {number} [maxWidth=-1] - _Updatable._
|
|
4918
|
-
* The maximum width of a window. Will default to the OS defined value if set to -1.
|
|
4919
|
-
*
|
|
4920
|
-
* @property {number} [minHeight=0] - _Updatable._
|
|
4921
|
-
* The minimum height of a window.
|
|
4922
|
-
*
|
|
4923
|
-
* @property {boolean} [minimizable=true] - _Updatable._
|
|
4924
|
-
* A flag that lets the window be minimized.
|
|
4925
|
-
*
|
|
4926
|
-
* @property {number} [minWidth=0] - _Updatable._
|
|
4927
|
-
* The minimum width of a window.
|
|
4928
|
-
*
|
|
4929
|
-
* @property {Identity} [modalParentIdentity]
|
|
4930
|
-
* Parent identity of a modal window. It will create a modal child window when this option is set.
|
|
4931
|
-
*
|
|
4932
|
-
* @property {string} name
|
|
4933
|
-
* The name of the window.
|
|
4934
|
-
*
|
|
4935
|
-
* @property {number} [opacity=1.0] - _Updatable._
|
|
4936
|
-
* A flag that specifies how transparent the window will be.
|
|
4937
|
-
* Changing opacity doesn't work on Windows 7 without Aero so setting this value will have no effect there.
|
|
4938
|
-
* This value is clamped between `0.0` and `1.0`.
|
|
4939
|
-
* * In software composition mode, the runtime flag --allow-unsafe-compositing is required.
|
|
4940
|
-
*
|
|
4941
|
-
* @property {preloadScript[]} [preloadScripts] - _Inheritable_
|
|
4942
|
-
* A list of scripts that are eval'ed before other scripts in the page. When omitted, _inherits_
|
|
4943
|
-
* from the parent application.
|
|
4944
|
-
*
|
|
4945
|
-
* @property {string} [processAffinity]
|
|
4946
|
-
* A string to attempt to group renderers together. Will only be used if pages are on the same origin.
|
|
4947
|
-
*
|
|
4948
|
-
* @property {boolean} [resizable=true] - _Updatable._
|
|
4949
|
-
* A flag to allow the user to resize the window.
|
|
4950
|
-
*
|
|
4951
|
-
* @property {object} [resizeRegion] - _Updatable._
|
|
4952
|
-
* Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.
|
|
4953
|
-
* @property {number} [resizeRegion.bottomRightCorner=9]
|
|
4954
|
-
* The size in pixels of an additional square resizable region located at the bottom right corner of a frameless window.
|
|
4955
|
-
* @property {number} [resizeRegion.size=7]
|
|
4956
|
-
* The size in pixels.
|
|
4957
|
-
* @property {object} [resizeRegion.sides={top:true,right:true,bottom:true,left:true}]
|
|
4958
|
-
* Sides that a window can be resized from.
|
|
4959
|
-
*
|
|
4960
|
-
* @property {boolean} [saveWindowState=true]
|
|
4961
|
-
* A flag to cache the location of the window.
|
|
4962
|
-
* ** note ** - This option is ignored in Platforms as it would cause inconsistent {@link Platform#applySnapshot applySnapshot} behavior.
|
|
4963
|
-
*
|
|
4964
|
-
* @property {boolean} [ignoreSavedWindowState]
|
|
4965
|
-
* A flag to ignore previously cached state of the window. It defaults the opposite value of `saveWindowState` to maintain backwards compatibility.
|
|
4966
|
-
*
|
|
4967
|
-
* @property {boolean} [shadow=false]
|
|
4968
|
-
* A flag to display a shadow on frameless windows.
|
|
4969
|
-
* `shadow` and `cornerRounding` are mutually exclusive.
|
|
4970
|
-
* On Windows 7, Aero theme is required.
|
|
4971
|
-
*
|
|
4972
|
-
* @property {boolean} [showBackgroundImages=false] - _Updatable._
|
|
4973
|
-
* Platforms Only. If true, will show background images in the layout when the Views are hidden.
|
|
4974
|
-
* This occurs when the window is resizing or a tab is being dragged within the layout.
|
|
4975
|
-
*
|
|
4976
|
-
* @property {boolean} [showTaskbarIcon=true] - _Updatable._ _Windows_.
|
|
4977
|
-
* A flag to show the window's icon in the taskbar.
|
|
4978
|
-
*
|
|
4979
|
-
* @property {boolean} [smallWindow=false]
|
|
4980
|
-
* A flag to specify a frameless window that can be be created and resized to less than 41x36 px (width x height).
|
|
4981
|
-
* _Note: Caveats of small windows are no Aero Snap and drag to/from maximize._
|
|
4982
|
-
* _Windows 10: Requires `maximizable` to be false. Resizing with the mouse is only possible down to 38x39 px._
|
|
4983
|
-
*
|
|
4984
|
-
* @property {boolean} [spellCheck=false]
|
|
4985
|
-
* Enable spell check in input text fields for the window.
|
|
4986
|
-
*
|
|
4987
|
-
* @property {string} [state="normal"]
|
|
4988
|
-
* The visible state of the window on creation.
|
|
4989
|
-
* One of:
|
|
4990
|
-
* * `"maximized"`
|
|
4991
|
-
* * `"minimized"`
|
|
4992
|
-
* * `"normal"`
|
|
4993
|
-
*
|
|
4994
|
-
* @property {string} [taskbarIcon=string] - Deprecated - use `icon` instead._Windows_.
|
|
4995
|
-
*
|
|
4996
|
-
* @property {string} [taskbarIconGroup=<application uuid>] - _Windows_.
|
|
4997
|
-
* Specify a taskbar group for the window.
|
|
4998
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
4999
|
-
*
|
|
5000
|
-
* @property {string} [url="about:blank"]
|
|
5001
|
-
* The URL of the window.
|
|
5002
|
-
*
|
|
5003
|
-
* @property {string} [uuid=<application uuid>]
|
|
5004
|
-
* The `uuid` of the application, unique within the set of all `Application`s running in OpenFin Runtime.
|
|
5005
|
-
* If omitted, defaults to the `uuid` of the application spawning the window.
|
|
5006
|
-
* If given, must match the `uuid` of the application spawning the window.
|
|
5007
|
-
* In other words, the application's `uuid` is the only acceptable value, but is the default, so there's
|
|
5008
|
-
* really no need to provide it.
|
|
5009
|
-
*
|
|
5010
|
-
* @property {boolean} [waitForPageLoad=false]
|
|
5011
|
-
* When set to `true`, the window will not appear until the `window` object's `load` event fires.
|
|
5012
|
-
* When set to `false`, the window will appear immediately without waiting for content to be loaded.
|
|
5013
|
-
*
|
|
5014
|
-
* @property {ViewVisibility} [viewVisibility]
|
|
5015
|
-
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
5016
|
-
*/
|
|
5017
|
-
/**
|
|
5018
|
-
* @PORTED
|
|
5019
|
-
* @typedef {Object} ViewVisibility _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
5020
|
-
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
|
|
5021
|
-
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
5022
|
-
* @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
|
|
5023
|
-
*/
|
|
5024
|
-
/**
|
|
5025
|
-
* @PORTED
|
|
5026
|
-
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
5027
|
-
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
|
|
5028
|
-
* @property {number} [paintIntervalMs=0] Number of miliseconds to wait between view repaints.
|
|
5029
|
-
*/
|
|
5030
|
-
/**
|
|
5031
|
-
* @REMOVED
|
|
5032
|
-
* @typedef {Object} ShowViewsOnSplitterDrag _Platform Windows Only_. Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
5033
|
-
* @property {boolean} [enabled=false] Enables or disables showing views when the layout splitter is being dragged.
|
|
5034
|
-
*/
|
|
5035
|
-
/**
|
|
5036
|
-
* @REMOVED
|
|
5037
|
-
* @typedef {Object} ShowViewsOnTabDrag _Platform Windows Only_. Allows views to be shown when the user is manipulating the layout by repositioning a tab.
|
|
5038
|
-
* @property {boolean} [enabled=false] Enables or disables showing views when a tab is being dragged.
|
|
5039
|
-
*/
|
|
5040
|
-
/**
|
|
5041
|
-
* @PORTED
|
|
5042
|
-
* @typedef {object} CapturePageOptions
|
|
5043
|
-
* @property { Area } [area] The area of the window to be captured.
|
|
5044
|
-
* @property { string } [format='png'] The format of the captured image. Can be 'png', 'jpg', or 'bmp'.
|
|
5045
|
-
* @property { number } [quality=100] Number representing quality of JPEG image only. Between 0 - 100.
|
|
5046
|
-
*/
|
|
5047
|
-
/**
|
|
5048
|
-
* @PORTED
|
|
5049
|
-
* @typedef { object } Area
|
|
5050
|
-
* @property { number } height Area's height
|
|
5051
|
-
* @property { number } width Area's width
|
|
5052
|
-
* @property { number } x X coordinate of area's starting point
|
|
5053
|
-
* @property { number } y Y coordinate of area's starting point
|
|
5054
|
-
*/
|
|
5055
|
-
/**
|
|
5056
|
-
* @PORTED
|
|
5057
|
-
* @typedef {object} FindInPageOptions
|
|
5058
|
-
* @property {boolean} [forward=true] Whether to search forward or backward.
|
|
5059
|
-
* @property {boolean} [findNext=false] Whether to begin a new text finding session. Should be true for first requests, and false for subsequent requests. Defaults to false.
|
|
5060
|
-
* @property {boolean} [matchCase=false] Whether search should be case-sensitive.
|
|
5061
|
-
* @property {boolean} [wordStart=false] Whether to look only at the start of words.
|
|
5062
|
-
* @property {boolean} [medialCapitalAsWordStart=false]
|
|
5063
|
-
* When combined with wordStart, accepts a match in the middle of a word if the match begins with an uppercase letter followed by a<br>
|
|
5064
|
-
* lowercase or non-letter. Accepts several other intra-word matches.
|
|
5065
|
-
*/
|
|
5066
|
-
/**
|
|
5067
|
-
* @REMOVED
|
|
5068
|
-
* @typedef {object} Transition
|
|
5069
|
-
* @property {Opacity} opacity - The Opacity transition
|
|
5070
|
-
* @property {Position} position - The Position transition
|
|
5071
|
-
* @property {Size} size - The Size transition
|
|
5072
|
-
*/
|
|
5073
|
-
/**
|
|
5074
|
-
* @PORTED
|
|
5075
|
-
* @typedef {object} TransitionOptions
|
|
5076
|
-
* @property {boolean} interrupt - This option interrupts the current animation. When false it pushes
|
|
5077
|
-
this animation onto the end of the animation queue.
|
|
5078
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
5079
|
-
*/
|
|
5080
|
-
/**
|
|
5081
|
-
* @PORTED
|
|
5082
|
-
* @typedef {object} Size
|
|
5083
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
5084
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
5085
|
-
* @property {number} width - Optional if height is present. Defaults to the window's current width.
|
|
5086
|
-
* @property {number} height - Optional if width is present. Defaults to the window's current height.
|
|
5087
|
-
*/
|
|
5088
|
-
/**
|
|
5089
|
-
* @PORTED
|
|
5090
|
-
* @typedef {object} Position
|
|
5091
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
5092
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
5093
|
-
* @property {number} left - Defaults to the window's current left position in virtual screen coordinates.
|
|
5094
|
-
* @property {number} top - Defaults to the window's current top position in virtual screen coordinates.
|
|
5095
|
-
*/
|
|
5096
|
-
/**
|
|
5097
|
-
* @PORTED
|
|
5098
|
-
* @typedef {object} Opacity
|
|
5099
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
5100
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
5101
|
-
* @property {number} opacity - This value is clamped from 0.0 to 1.0.
|
|
5102
|
-
*/
|
|
5103
|
-
/**
|
|
5104
|
-
* @REMOVED
|
|
5105
|
-
* Bounds is a interface that has the properties of height,
|
|
5106
|
-
* width, left, top which are all numbers
|
|
5107
|
-
* @typedef { object } Bounds
|
|
5108
|
-
* @property { number } height Get the application height bound
|
|
5109
|
-
* @property { number } width Get the application width bound
|
|
5110
|
-
* @property { number } top Get the application top bound
|
|
5111
|
-
* @property { number } left Get the application left bound
|
|
5112
|
-
* @property { number } right Get the application right bound
|
|
5113
|
-
* @property { number } bottom Get the application bottom bound
|
|
5114
|
-
*/
|
|
5115
4273
|
/**
|
|
5116
4274
|
* A basic window that wraps a native HTML window. Provides more fine-grained
|
|
5117
4275
|
* control over the window state such as the ability to minimize, maximize, restore, etc.
|
|
@@ -5127,83 +4285,6 @@ function requireInstance () {
|
|
|
5127
4285
|
constructor(wire, identity) {
|
|
5128
4286
|
super(wire, identity, 'window');
|
|
5129
4287
|
}
|
|
5130
|
-
/**
|
|
5131
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
5132
|
-
* @param eventType - The type of the event.
|
|
5133
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
5134
|
-
* @param options - Option to support event timestamps.
|
|
5135
|
-
*
|
|
5136
|
-
* @function addListener
|
|
5137
|
-
* @memberof Window
|
|
5138
|
-
* @instance
|
|
5139
|
-
* @tutorial Window.EventEmitter
|
|
5140
|
-
*/
|
|
5141
|
-
/**
|
|
5142
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
5143
|
-
* @param eventType - The type of the event.
|
|
5144
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
5145
|
-
* @param options - Option to support event timestamps.
|
|
5146
|
-
*
|
|
5147
|
-
* @function on
|
|
5148
|
-
* @memberof Window
|
|
5149
|
-
* @instance
|
|
5150
|
-
* @tutorial Window.EventEmitter
|
|
5151
|
-
*/
|
|
5152
|
-
/**
|
|
5153
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
5154
|
-
* @param eventType - The type of the event.
|
|
5155
|
-
* @param listener - The callback function.
|
|
5156
|
-
* @param options - Option to support event timestamps.
|
|
5157
|
-
*
|
|
5158
|
-
* @function once
|
|
5159
|
-
* @memberof Window
|
|
5160
|
-
* @instance
|
|
5161
|
-
* @tutorial Window.EventEmitter
|
|
5162
|
-
*/
|
|
5163
|
-
/**
|
|
5164
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
5165
|
-
* @param eventType - The type of the event.
|
|
5166
|
-
* @param listener - The callback function.
|
|
5167
|
-
* @param options - Option to support event timestamps.
|
|
5168
|
-
*
|
|
5169
|
-
* @function prependListener
|
|
5170
|
-
* @memberof Window
|
|
5171
|
-
* @instance
|
|
5172
|
-
* @tutorial Window.EventEmitter
|
|
5173
|
-
*/
|
|
5174
|
-
/**
|
|
5175
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
5176
|
-
* The listener is added to the beginning of the listeners array.
|
|
5177
|
-
* @param eventType - The type of the event.
|
|
5178
|
-
* @param listener - The callback function.
|
|
5179
|
-
* @param options - Option to support event timestamps.
|
|
5180
|
-
*
|
|
5181
|
-
* @function prependOnceListener
|
|
5182
|
-
* @memberof Window
|
|
5183
|
-
* @instance
|
|
5184
|
-
* @tutorial Window.EventEmitter
|
|
5185
|
-
*/
|
|
5186
|
-
/**
|
|
5187
|
-
* Remove a listener from the listener array for the specified event.
|
|
5188
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
5189
|
-
* @param eventType - The type of the event.
|
|
5190
|
-
* @param listener - The callback function.
|
|
5191
|
-
* @param options - Option to support event timestamps.
|
|
5192
|
-
*
|
|
5193
|
-
* @function removeListener
|
|
5194
|
-
* @memberof Window
|
|
5195
|
-
* @instance
|
|
5196
|
-
* @tutorial Window.EventEmitter
|
|
5197
|
-
*/
|
|
5198
|
-
/**
|
|
5199
|
-
* Removes all listeners, or those of the specified event.
|
|
5200
|
-
* @param eventType - The type of the event.
|
|
5201
|
-
*
|
|
5202
|
-
* @function removeAllListeners
|
|
5203
|
-
* @memberof Window
|
|
5204
|
-
* @instance
|
|
5205
|
-
* @tutorial Window.EventEmitter
|
|
5206
|
-
*/
|
|
5207
4288
|
/**
|
|
5208
4289
|
* create a new window
|
|
5209
4290
|
* @internal
|
|
@@ -6195,10 +5276,9 @@ function requireInstance () {
|
|
|
6195
5276
|
}
|
|
6196
5277
|
/**
|
|
6197
5278
|
* Shows the window if it is hidden at the specified location.
|
|
6198
|
-
*
|
|
6199
|
-
*
|
|
6200
|
-
* @param
|
|
6201
|
-
* @param top The right position of the window
|
|
5279
|
+
*
|
|
5280
|
+
* @param left The left position of the window in pixels
|
|
5281
|
+
* @param top The top position of the window in pixels
|
|
6202
5282
|
* @param force Show will be prevented from closing when force is false and
|
|
6203
5283
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
6204
5284
|
*
|
|
@@ -6275,28 +5355,6 @@ function requireInstance () {
|
|
|
6275
5355
|
.sendAction('window-authenticate', { userName, password, ...this.identity })
|
|
6276
5356
|
.then(() => undefined);
|
|
6277
5357
|
}
|
|
6278
|
-
/**
|
|
6279
|
-
* @typedef {object} ShowPopupMenuOptions
|
|
6280
|
-
* @property {Array<MenuItemTemplate>} template - An array describing the menu to show.
|
|
6281
|
-
* @property {number} [x] - The window x coordinate where to show the menu. Defaults to mouse position. If using must also use `y`.
|
|
6282
|
-
* @property {number} [y] - The window y coordinate where to show the menu. Defaults to mouse position. If using must also use `x`
|
|
6283
|
-
*/
|
|
6284
|
-
/**
|
|
6285
|
-
* @typedef {object} MenuItemTemplate
|
|
6286
|
-
* @property {*} data - Data to be returned if the user selects the element. Must be serializable. Large objects can have a performance impact.
|
|
6287
|
-
* @property {'normal' | 'separator' | 'submenu' | 'checkbox'} [type] - Defaults to 'normal' unless a 'submenu' key exists
|
|
6288
|
-
* @property {string} [label] - The text to show on the menu item. Should be left undefined for `type: 'separator'`
|
|
6289
|
-
* @property {boolean} [enabled] - If false, the menu item will be greyed out and unclickable.
|
|
6290
|
-
* @property {boolean} [visible] - If false, the menu item will be entirely hidden.
|
|
6291
|
-
* @property {boolean} [checked] - Should only be specified for `checkbox` type menu items.
|
|
6292
|
-
* @property {string} [icon] - Image Data URI with image dimensions inferred from the encoded string
|
|
6293
|
-
* @property {Array<MenuItemTemplate>} [submenu] Should be specified for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted.
|
|
6294
|
-
*/
|
|
6295
|
-
/**
|
|
6296
|
-
* @typedef {object} MenuResult
|
|
6297
|
-
* @property {'clicked' | 'closed'} result - Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
|
|
6298
|
-
* @property {* | undefined} [data] - The data property of the menu item clicked by the user. Only defined if result was `clicked`.
|
|
6299
|
-
*/
|
|
6300
5358
|
/**
|
|
6301
5359
|
* Shows a menu on the window.
|
|
6302
5360
|
*
|
|
@@ -6397,31 +5455,6 @@ function requireInstance () {
|
|
|
6397
5455
|
async closePopupMenu() {
|
|
6398
5456
|
return this.wire.sendAction('close-popup-menu', { ...this.identity }).then(() => undefined);
|
|
6399
5457
|
}
|
|
6400
|
-
/**
|
|
6401
|
-
* @PORTED
|
|
6402
|
-
* @typedef {object} PopupOptions
|
|
6403
|
-
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
6404
|
-
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
6405
|
-
* @property {Window~options} [initialOptions] - Window creation options when using `showPopupWindow` to create a new window.
|
|
6406
|
-
* @property {Window~options} [additionalOptions] - Updatable window options applied to new and existing windows when shown as popups.
|
|
6407
|
-
* @property {function} [onPopupResult] - Executed when this window's popup calls `dispatchPopupResult`. Note: if this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
6408
|
-
* @property {function} [onPopupReady] - Executed when the popup window is shown. Provides the popup window to the provided function, and allows for easy access the popup window for additional behavior customization.
|
|
6409
|
-
* @property {number} [height] - Height of the popup window (takes priority over `intialOptions` size properties).
|
|
6410
|
-
* @property {number} [width] - Width of the popup window (takes priority over `intialOptions` size properties).
|
|
6411
|
-
* @property {number} [x] - Left position where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
6412
|
-
* @property {number} [y] - Top position where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
6413
|
-
* @property {'modal' | 'hide' | 'close'} [blurBehavior] - Determines what happens if the popup window is blurred. 'modal' restricts resizing and positioning in the caller, 'hide' hides the popup window on blur and 'close' closes the popup window on blur.
|
|
6414
|
-
* @property {'none' | 'hide' | 'close'} [resultDispatchBehavior] - Determines what happens when the popup window calls `dispatchPopupResult`. 'none' will do nothing, 'hide' hides the popup window on `dispatchPopupResult` and 'close' closes the popup window on `dispatchPopupResult`.
|
|
6415
|
-
* @property {boolean} [focus] - Determines if the popup window should or should not be focused when it is shown.
|
|
6416
|
-
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
6417
|
-
*/
|
|
6418
|
-
/**
|
|
6419
|
-
* @PORTED
|
|
6420
|
-
* @typedef {object} PopupResult
|
|
6421
|
-
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
|
6422
|
-
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
|
6423
|
-
* @property {* | undefined} [data] - Data passed to `dispatchPopupResult`.
|
|
6424
|
-
*/
|
|
6425
5458
|
/**
|
|
6426
5459
|
* Dispatch a result to the caller of `showPopupWindow`.
|
|
6427
5460
|
*
|
|
@@ -6673,7 +5706,7 @@ function requireWindow () {
|
|
|
6673
5706
|
* * {@link _WindowModule} contains static members of the `Window` API, accessible through `fin.Window`.
|
|
6674
5707
|
* * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
|
|
6675
5708
|
*
|
|
6676
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
5709
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
6677
5710
|
* both of these were documented on the same page.
|
|
6678
5711
|
*
|
|
6679
5712
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
|
@@ -6757,83 +5790,6 @@ class System extends base_1$j.EmitterBase {
|
|
|
6757
5790
|
});
|
|
6758
5791
|
});
|
|
6759
5792
|
}
|
|
6760
|
-
/**
|
|
6761
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
6762
|
-
* @param eventType - The type of the event.
|
|
6763
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
6764
|
-
* @param options - Option to support event timestamps.
|
|
6765
|
-
*
|
|
6766
|
-
* @function addListener
|
|
6767
|
-
* @memberof System
|
|
6768
|
-
* @instance
|
|
6769
|
-
* @tutorial System.EventEmitter
|
|
6770
|
-
*/
|
|
6771
|
-
/**
|
|
6772
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
6773
|
-
* @param eventType - The type of the event.
|
|
6774
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
6775
|
-
* @param options - Option to support event timestamps.
|
|
6776
|
-
*
|
|
6777
|
-
* @function on
|
|
6778
|
-
* @memberof System
|
|
6779
|
-
* @instance
|
|
6780
|
-
* @tutorial System.EventEmitter
|
|
6781
|
-
*/
|
|
6782
|
-
/**
|
|
6783
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
6784
|
-
* @param eventType - The type of the event.
|
|
6785
|
-
* @param listener - The callback function.
|
|
6786
|
-
* @param options - Option to support event timestamps.
|
|
6787
|
-
*
|
|
6788
|
-
* @function once
|
|
6789
|
-
* @memberof System
|
|
6790
|
-
* @instance
|
|
6791
|
-
* @tutorial System.EventEmitter
|
|
6792
|
-
*/
|
|
6793
|
-
/**
|
|
6794
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
6795
|
-
* @param eventType - The type of the event.
|
|
6796
|
-
* @param listener - The callback function.
|
|
6797
|
-
* @param options - Option to support event timestamps.
|
|
6798
|
-
*
|
|
6799
|
-
* @function prependListener
|
|
6800
|
-
* @memberof System
|
|
6801
|
-
* @instance
|
|
6802
|
-
* @tutorial System.EventEmitter
|
|
6803
|
-
*/
|
|
6804
|
-
/**
|
|
6805
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
6806
|
-
* The listener is added to the beginning of the listeners array.
|
|
6807
|
-
* @param eventType - The type of the event.
|
|
6808
|
-
* @param listener - The callback function.
|
|
6809
|
-
* @param options - Option to support event timestamps.
|
|
6810
|
-
*
|
|
6811
|
-
* @function prependOnceListener
|
|
6812
|
-
* @memberof System
|
|
6813
|
-
* @instance
|
|
6814
|
-
* @tutorial System.EventEmitter
|
|
6815
|
-
*/
|
|
6816
|
-
/**
|
|
6817
|
-
* Remove a listener from the listener array for the specified event.
|
|
6818
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
6819
|
-
* @param eventType - The type of the event.
|
|
6820
|
-
* @param listener - The callback function.
|
|
6821
|
-
* @param options - Option to support event timestamps.
|
|
6822
|
-
*
|
|
6823
|
-
* @function removeListener
|
|
6824
|
-
* @memberof System
|
|
6825
|
-
* @instance
|
|
6826
|
-
* @tutorial System.EventEmitter
|
|
6827
|
-
*/
|
|
6828
|
-
/**
|
|
6829
|
-
* Removes all listeners, or those of the specified event.
|
|
6830
|
-
* @param eventType - The type of the event.
|
|
6831
|
-
*
|
|
6832
|
-
* @function removeAllListeners
|
|
6833
|
-
* @memberof System
|
|
6834
|
-
* @instance
|
|
6835
|
-
* @tutorial System.EventEmitter
|
|
6836
|
-
*/
|
|
6837
5793
|
/**
|
|
6838
5794
|
* Returns the version of the runtime. The version contains the major, minor,
|
|
6839
5795
|
* build and revision numbers.
|
|
@@ -9318,7 +8274,8 @@ function errorToPOJO(error) {
|
|
|
9318
8274
|
stack: error.stack,
|
|
9319
8275
|
name: error.name,
|
|
9320
8276
|
message: error.message,
|
|
9321
|
-
|
|
8277
|
+
// support the case where stack is empty or missing
|
|
8278
|
+
toString: () => error.stack || error.toString()
|
|
9322
8279
|
};
|
|
9323
8280
|
}
|
|
9324
8281
|
errors.errorToPOJO = errorToPOJO;
|
|
@@ -11035,20 +9992,6 @@ var clipboard = {};
|
|
|
11035
9992
|
Object.defineProperty(clipboard, "__esModule", { value: true });
|
|
11036
9993
|
clipboard.Clipboard = void 0;
|
|
11037
9994
|
const base_1$d = base;
|
|
11038
|
-
/**
|
|
11039
|
-
* @PORTED
|
|
11040
|
-
* WriteRequestType interface
|
|
11041
|
-
* @typedef { object } WriteRequestType
|
|
11042
|
-
* @property { string } data Data to be written
|
|
11043
|
-
* @property { string } [type] Clipboard Type
|
|
11044
|
-
*/
|
|
11045
|
-
/**
|
|
11046
|
-
* @PORTED
|
|
11047
|
-
* OpenFin.WriteAnyClipboardRequest interface
|
|
11048
|
-
* @typedef { object } OpenFin.WriteAnyClipboardRequest
|
|
11049
|
-
* @property { string } data Data to be written
|
|
11050
|
-
* @property { OpenFin.ClipboardSelectionType } [type] Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
11051
|
-
*/
|
|
11052
9995
|
/**
|
|
11053
9996
|
* The Clipboard API allows reading and writing to the clipboard in multiple formats.
|
|
11054
9997
|
*
|
|
@@ -11261,83 +10204,6 @@ class ExternalApplication extends base_1$c.EmitterBase {
|
|
|
11261
10204
|
super(wire, 'external-application', identity.uuid);
|
|
11262
10205
|
this.identity = identity;
|
|
11263
10206
|
}
|
|
11264
|
-
/**
|
|
11265
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
11266
|
-
* @param eventType - The type of the event.
|
|
11267
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
11268
|
-
* @param options - Option to support event timestamps.
|
|
11269
|
-
*
|
|
11270
|
-
* @function addListener
|
|
11271
|
-
* @memberof ExternalApplication
|
|
11272
|
-
* @instance
|
|
11273
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11274
|
-
*/
|
|
11275
|
-
/**
|
|
11276
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
11277
|
-
* @param eventType - The type of the event.
|
|
11278
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
11279
|
-
* @param options - Option to support event timestamps.
|
|
11280
|
-
*
|
|
11281
|
-
* @function on
|
|
11282
|
-
* @memberof ExternalApplication
|
|
11283
|
-
* @instance
|
|
11284
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11285
|
-
*/
|
|
11286
|
-
/**
|
|
11287
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
11288
|
-
* @param eventType - The type of the event.
|
|
11289
|
-
* @param listener - The callback function.
|
|
11290
|
-
* @param options - Option to support event timestamps.
|
|
11291
|
-
*
|
|
11292
|
-
* @function once
|
|
11293
|
-
* @memberof ExternalApplication
|
|
11294
|
-
* @instance
|
|
11295
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11296
|
-
*/
|
|
11297
|
-
/**
|
|
11298
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
11299
|
-
* @param eventType - The type of the event.
|
|
11300
|
-
* @param listener - The callback function.
|
|
11301
|
-
* @param options - Option to support event timestamps.
|
|
11302
|
-
*
|
|
11303
|
-
* @function prependListener
|
|
11304
|
-
* @memberof ExternalApplication
|
|
11305
|
-
* @instance
|
|
11306
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11307
|
-
*/
|
|
11308
|
-
/**
|
|
11309
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
11310
|
-
* The listener is added to the beginning of the listeners array.
|
|
11311
|
-
* @param eventType - The type of the event.
|
|
11312
|
-
* @param listener - The callback function.
|
|
11313
|
-
* @param options - Option to support event timestamps.
|
|
11314
|
-
*
|
|
11315
|
-
* @function prependOnceListener
|
|
11316
|
-
* @memberof ExternalApplication
|
|
11317
|
-
* @instance
|
|
11318
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11319
|
-
*/
|
|
11320
|
-
/**
|
|
11321
|
-
* Remove a listener from the listener array for the specified event.
|
|
11322
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
11323
|
-
* @param eventType - The type of the event.
|
|
11324
|
-
* @param listener - The callback function.
|
|
11325
|
-
* @param options - Option to support event timestamps.
|
|
11326
|
-
*
|
|
11327
|
-
* @function removeListener
|
|
11328
|
-
* @memberof ExternalApplication
|
|
11329
|
-
* @instance
|
|
11330
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11331
|
-
*/
|
|
11332
|
-
/**
|
|
11333
|
-
* Removes all listeners, or those of the specified event.
|
|
11334
|
-
* @param eventType - The type of the event.
|
|
11335
|
-
*
|
|
11336
|
-
* @function removeAllListeners
|
|
11337
|
-
* @memberof ExternalApplication
|
|
11338
|
-
* @instance
|
|
11339
|
-
* @tutorial ExternalApplication.EventEmitter
|
|
11340
|
-
*/
|
|
11341
10207
|
/**
|
|
11342
10208
|
* Retrieves information about the external application.
|
|
11343
10209
|
*
|
|
@@ -11427,7 +10293,7 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
|
11427
10293
|
* * {@link ExternalApplicationModule} contains static members of the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
|
|
11428
10294
|
* * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
|
|
11429
10295
|
*
|
|
11430
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
10296
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
11431
10297
|
* both of these were documented on the same page.
|
|
11432
10298
|
*
|
|
11433
10299
|
* @packageDocumentation
|
|
@@ -11474,83 +10340,6 @@ class _Frame extends base_1$a.EmitterBase {
|
|
|
11474
10340
|
super(wire, 'frame', identity.uuid, identity.name);
|
|
11475
10341
|
this.identity = identity;
|
|
11476
10342
|
}
|
|
11477
|
-
/**
|
|
11478
|
-
* Adds the listener function to the end of the listeners array for the specified event type.
|
|
11479
|
-
* @param eventType - The type of the event.
|
|
11480
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
11481
|
-
* @param options - Option to support event timestamps.
|
|
11482
|
-
*
|
|
11483
|
-
* @function addListener
|
|
11484
|
-
* @memberof Frame
|
|
11485
|
-
* @instance
|
|
11486
|
-
* @tutorial Frame.EventEmitter
|
|
11487
|
-
*/
|
|
11488
|
-
/**
|
|
11489
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
11490
|
-
* @param eventType - The type of the event.
|
|
11491
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
|
11492
|
-
* @param options - Option to support event timestamps.
|
|
11493
|
-
*
|
|
11494
|
-
* @function on
|
|
11495
|
-
* @memberof Frame
|
|
11496
|
-
* @instance
|
|
11497
|
-
* @tutorial Frame.EventEmitter
|
|
11498
|
-
*/
|
|
11499
|
-
/**
|
|
11500
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
11501
|
-
* @param eventType - The type of the event.
|
|
11502
|
-
* @param listener - The callback function.
|
|
11503
|
-
* @param options - Option to support event timestamps.
|
|
11504
|
-
*
|
|
11505
|
-
* @function once
|
|
11506
|
-
* @memberof Frame
|
|
11507
|
-
* @instance
|
|
11508
|
-
* @tutorial Frame.EventEmitter
|
|
11509
|
-
*/
|
|
11510
|
-
/**
|
|
11511
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
11512
|
-
* @param eventType - The type of the event.
|
|
11513
|
-
* @param listener - The callback function.
|
|
11514
|
-
* @param options - Option to support event timestamps.
|
|
11515
|
-
*
|
|
11516
|
-
* @function prependListener
|
|
11517
|
-
* @memberof Frame
|
|
11518
|
-
* @instance
|
|
11519
|
-
* @tutorial Frame.EventEmitter
|
|
11520
|
-
*/
|
|
11521
|
-
/**
|
|
11522
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
11523
|
-
* The listener is added to the beginning of the listeners array.
|
|
11524
|
-
* @param eventType - The type of the event.
|
|
11525
|
-
* @param listener - The callback function.
|
|
11526
|
-
* @param options - Option to support event timestamps.
|
|
11527
|
-
*
|
|
11528
|
-
* @function prependOnceListener
|
|
11529
|
-
* @memberof Frame
|
|
11530
|
-
* @instance
|
|
11531
|
-
* @tutorial Frame.EventEmitter
|
|
11532
|
-
*/
|
|
11533
|
-
/**
|
|
11534
|
-
* Remove a listener from the listener array for the specified event.
|
|
11535
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
11536
|
-
* @param eventType - The type of the event.
|
|
11537
|
-
* @param listener - The callback function.
|
|
11538
|
-
* @param options - Option to support event timestamps.
|
|
11539
|
-
*
|
|
11540
|
-
* @function removeListener
|
|
11541
|
-
* @memberof Frame
|
|
11542
|
-
* @instance
|
|
11543
|
-
* @tutorial Frame.EventEmitter
|
|
11544
|
-
*/
|
|
11545
|
-
/**
|
|
11546
|
-
* Removes all listeners, or those of the specified event.
|
|
11547
|
-
* @param eventType - The type of the event.
|
|
11548
|
-
*
|
|
11549
|
-
* @function removeAllListeners
|
|
11550
|
-
* @memberof Frame
|
|
11551
|
-
* @instance
|
|
11552
|
-
* @tutorial Frame.EventEmitter
|
|
11553
|
-
*/
|
|
11554
10343
|
/**
|
|
11555
10344
|
* Returns a frame info object for the represented frame.
|
|
11556
10345
|
*
|
|
@@ -11678,7 +10467,7 @@ Factory$4._FrameModule = _FrameModule;
|
|
|
11678
10467
|
* * {@link _FrameModule} contains static members of the `Frame` API, accessible through `fin.Frame`.
|
|
11679
10468
|
* * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
|
|
11680
10469
|
*
|
|
11681
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
10470
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
11682
10471
|
* both of these were documented on the same page.
|
|
11683
10472
|
*
|
|
11684
10473
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
|
@@ -13024,7 +11813,6 @@ class Layout extends base_1$6.Base {
|
|
|
13024
11813
|
// don't expose
|
|
13025
11814
|
});
|
|
13026
11815
|
const client = await this.platform.getClient();
|
|
13027
|
-
console.log(`Layout::toConfig() called!`);
|
|
13028
11816
|
return client.dispatch('get-frame-snapshot', {
|
|
13029
11817
|
target: this.identity
|
|
13030
11818
|
});
|
|
@@ -13074,7 +11862,7 @@ class Layout extends base_1$6.Base {
|
|
|
13074
11862
|
// don't expose
|
|
13075
11863
|
});
|
|
13076
11864
|
const client = await __classPrivateFieldGet$5(this, _Layout_layoutClient, "f").getValue();
|
|
13077
|
-
const root = await client.getRoot(this.identity);
|
|
11865
|
+
const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
|
|
13078
11866
|
return layout_entities_1.LayoutNode.getEntity(root, client);
|
|
13079
11867
|
}
|
|
13080
11868
|
}
|
|
@@ -13092,7 +11880,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
13092
11880
|
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");
|
|
13093
11881
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
13094
11882
|
};
|
|
13095
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager,
|
|
11883
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_waitForBackCompatLayoutManager, _LayoutModule_getSafeLayoutManager;
|
|
13096
11884
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
|
13097
11885
|
Factory$2.LayoutModule = void 0;
|
|
13098
11886
|
const base_1$5 = base;
|
|
@@ -13145,7 +11933,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13145
11933
|
* ```
|
|
13146
11934
|
*/
|
|
13147
11935
|
this.init = async (options = {}) => {
|
|
13148
|
-
this.wire.sendAction('layout-init').catch((
|
|
11936
|
+
this.wire.sendAction('layout-init').catch(() => {
|
|
13149
11937
|
// don't expose
|
|
13150
11938
|
});
|
|
13151
11939
|
if (!this.fin.me.isWindow) {
|
|
@@ -13155,40 +11943,57 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13155
11943
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
|
13156
11944
|
}
|
|
13157
11945
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
13158
|
-
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.
|
|
13159
|
-
//
|
|
11946
|
+
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
11947
|
+
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
11948
|
+
let backCompatLayoutPromise;
|
|
13160
11949
|
if (!options.layoutManagerOverride) {
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
11950
|
+
backCompatLayoutPromise = __classPrivateFieldGet$4(this, _LayoutModule_waitForBackCompatLayoutManager, "f").call(this, this.fin);
|
|
11951
|
+
}
|
|
11952
|
+
// apply the initial snapshot which in turn will call fin.Platform.Layout.create()
|
|
11953
|
+
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
|
11954
|
+
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
|
11955
|
+
await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
|
11956
|
+
if (backCompatLayoutPromise) {
|
|
11957
|
+
return backCompatLayoutPromise;
|
|
13165
11958
|
}
|
|
13166
|
-
//
|
|
11959
|
+
// warn user if they do not call create() in the next 30 seconds
|
|
13167
11960
|
setTimeout(() => {
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
console.warn(`[Layout.init] Layout.init was called but no layouts have been created yet. Make sure you ` +
|
|
11961
|
+
if (__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")?.size() === 0) {
|
|
11962
|
+
console.warn(`[Layout.init] Layout.init was called 30s ago, but no layouts have been created yet. Make sure you ` +
|
|
13171
11963
|
`override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
|
|
13172
11964
|
}
|
|
13173
|
-
},
|
|
11965
|
+
}, 30000);
|
|
13174
11966
|
return this.wrapSync(this.fin.me.identity);
|
|
13175
11967
|
};
|
|
11968
|
+
// deprecate with CORE-1081
|
|
11969
|
+
_LayoutModule_waitForBackCompatLayoutManager.set(this, async (fin) => {
|
|
11970
|
+
let layoutManager;
|
|
11971
|
+
let resolve;
|
|
11972
|
+
const layoutResolved = new Promise((r) => {
|
|
11973
|
+
resolve = r;
|
|
11974
|
+
});
|
|
11975
|
+
// wait for a layout to be created
|
|
11976
|
+
await fin.me.once('layout-ready', async ({ layoutIdentity }) => {
|
|
11977
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11978
|
+
layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
11979
|
+
// Backward compat - undocumented / not typed openfin-layout as layoutManager
|
|
11980
|
+
// TODO: eventually deprecate this
|
|
11981
|
+
resolve(Object.assign(this.wrapSync(layoutIdentity), { layoutManager }));
|
|
11982
|
+
});
|
|
11983
|
+
return layoutResolved;
|
|
11984
|
+
});
|
|
13176
11985
|
/**
|
|
13177
11986
|
* Returns the layout manager for the current window
|
|
13178
11987
|
* @returns
|
|
13179
11988
|
*/
|
|
13180
11989
|
this.getCurrentLayoutManagerSync = () => {
|
|
13181
|
-
__classPrivateFieldGet$4(this, _LayoutModule_instances, "m",
|
|
13182
|
-
// @ts-expect-error User may have implemented their own snapshot type when overriding LayoutManager
|
|
13183
|
-
return __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f");
|
|
11990
|
+
return __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
|
|
13184
11991
|
};
|
|
13185
11992
|
this.create = async (options) => {
|
|
13186
|
-
__classPrivateFieldGet$4(this, _LayoutModule_instances, "m",
|
|
13187
|
-
return this.wire.environment.createLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
|
|
11993
|
+
return this.wire.environment.createLayout(__classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
|
|
13188
11994
|
};
|
|
13189
11995
|
this.destroy = async (layoutIdentity) => {
|
|
13190
|
-
__classPrivateFieldGet$4(this, _LayoutModule_instances, "m",
|
|
13191
|
-
return this.wire.environment.destroyLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
11996
|
+
return this.wire.environment.destroyLayout(__classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
|
|
13192
11997
|
};
|
|
13193
11998
|
}
|
|
13194
11999
|
/**
|
|
@@ -13211,7 +12016,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13211
12016
|
* ```
|
|
13212
12017
|
*/
|
|
13213
12018
|
async wrap(identity) {
|
|
13214
|
-
this.wire.sendAction('layout-wrap').catch((
|
|
12019
|
+
this.wire.sendAction('layout-wrap').catch(() => {
|
|
13215
12020
|
// don't expose
|
|
13216
12021
|
});
|
|
13217
12022
|
return new Instance_1$2.Layout(identity, this.wire);
|
|
@@ -13236,7 +12041,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13236
12041
|
* ```
|
|
13237
12042
|
*/
|
|
13238
12043
|
wrapSync(identity) {
|
|
13239
|
-
this.wire.sendAction('layout-wrap-sync').catch((
|
|
12044
|
+
this.wire.sendAction('layout-wrap-sync').catch(() => {
|
|
13240
12045
|
// don't expose
|
|
13241
12046
|
});
|
|
13242
12047
|
return new Instance_1$2.Layout(identity, this.wire);
|
|
@@ -13252,7 +12057,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13252
12057
|
* ```
|
|
13253
12058
|
*/
|
|
13254
12059
|
async getCurrent() {
|
|
13255
|
-
this.wire.sendAction('layout-get-current').catch((
|
|
12060
|
+
this.wire.sendAction('layout-get-current').catch(() => {
|
|
13256
12061
|
// don't expose
|
|
13257
12062
|
});
|
|
13258
12063
|
if (!this.fin.me.isWindow) {
|
|
@@ -13275,7 +12080,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13275
12080
|
* ```
|
|
13276
12081
|
*/
|
|
13277
12082
|
getCurrentSync() {
|
|
13278
|
-
this.wire.sendAction('layout-get-current-sync').catch((
|
|
12083
|
+
this.wire.sendAction('layout-get-current-sync').catch(() => {
|
|
13279
12084
|
// don't expose
|
|
13280
12085
|
});
|
|
13281
12086
|
if (!this.fin.me.isWindow) {
|
|
@@ -13286,10 +12091,11 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13286
12091
|
}
|
|
13287
12092
|
}
|
|
13288
12093
|
Factory$2.LayoutModule = LayoutModule;
|
|
13289
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(),
|
|
12094
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_waitForBackCompatLayoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
|
13290
12095
|
if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
|
|
13291
|
-
throw new Error(
|
|
12096
|
+
throw new Error(`You must call init before using the API ${method}`);
|
|
13292
12097
|
}
|
|
12098
|
+
return __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f");
|
|
13293
12099
|
};
|
|
13294
12100
|
|
|
13295
12101
|
(function (exports) {
|
|
@@ -13299,7 +12105,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
|
13299
12105
|
* * {@link LayoutModule} contains static members of the `Layout` API, accessible through `fin.Platform.Layout`.
|
|
13300
12106
|
* * {@link Layout} describes an instance of an OpenFin Layout, e.g. as returned by `fin.Platform.Layout.getCurrent`.
|
|
13301
12107
|
*
|
|
13302
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
12108
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
13303
12109
|
* both of these were documented on the same page.
|
|
13304
12110
|
*
|
|
13305
12111
|
* @packageDocumentation
|
|
@@ -13580,7 +12386,7 @@ Factory$3.PlatformModule = PlatformModule;
|
|
|
13580
12386
|
* * {@link PlatformModule} contains static members of the `Platform` API, accessible through `fin.Platform`.
|
|
13581
12387
|
* * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
|
|
13582
12388
|
*
|
|
13583
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
12389
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
13584
12390
|
* both of these were documented on the same page.
|
|
13585
12391
|
*
|
|
13586
12392
|
* @packageDocumentation
|
|
@@ -14468,57 +13274,6 @@ function requireInteropBroker () {
|
|
|
14468
13274
|
/*
|
|
14469
13275
|
Client API
|
|
14470
13276
|
*/
|
|
14471
|
-
/**
|
|
14472
|
-
* @REMOVED
|
|
14473
|
-
* SetContextOptions interface
|
|
14474
|
-
* @typedef { object } SetContextOptions
|
|
14475
|
-
* @property { Context } {context} - New context to set.
|
|
14476
|
-
*/
|
|
14477
|
-
/**
|
|
14478
|
-
* @REMOVED
|
|
14479
|
-
* GetContextOptions interface
|
|
14480
|
-
* @typedef { object } GetContextOptions
|
|
14481
|
-
* @property { string } [contextType] - Context Type
|
|
14482
|
-
*/
|
|
14483
|
-
// TODO: extract inline type and do proper comments
|
|
14484
|
-
/**
|
|
14485
|
-
* @REMOVED
|
|
14486
|
-
* JoinContextGroupOptions interface
|
|
14487
|
-
* @typedef { object } JoinContextGroupOptions
|
|
14488
|
-
* @property { string } contextGroupId - Id of the context group.
|
|
14489
|
-
* @property { Identity | ClientIdentity } [target] - Identity of the entity you wish to join to a context group.
|
|
14490
|
-
*/
|
|
14491
|
-
/**
|
|
14492
|
-
* @REMOVED
|
|
14493
|
-
* AddClientToContextGroupOptions interface
|
|
14494
|
-
* @typedef { object } AddClientToContextGroupOptions
|
|
14495
|
-
* @property { string } contextGroupId - Name of the context group.
|
|
14496
|
-
*/
|
|
14497
|
-
/**
|
|
14498
|
-
* @REMOVED
|
|
14499
|
-
* RemoveFromContextGroupOptions interface
|
|
14500
|
-
* @typedef { object } RemoveFromContextGroupOptions
|
|
14501
|
-
* @property { Identity | ClientIdentity } target - Identity of the entity you wish to join to a context group.
|
|
14502
|
-
*/
|
|
14503
|
-
/**
|
|
14504
|
-
* @REMOVED
|
|
14505
|
-
* GetInfoForContextGroupOptions interface
|
|
14506
|
-
* @typedef { object } GetInfoForContextGroupOptions
|
|
14507
|
-
* @property { string } contextGroupId - Name of the context group to get info for.
|
|
14508
|
-
*/
|
|
14509
|
-
/**
|
|
14510
|
-
* @REMOVED
|
|
14511
|
-
* GetAllClientsInContextGroupOptions interface
|
|
14512
|
-
* @typedef { object } GetAllClientsInContextGroupOptions
|
|
14513
|
-
* @property { string } contextGroupId - Name of the context group to get info for.
|
|
14514
|
-
*/
|
|
14515
|
-
/**
|
|
14516
|
-
* @PORTED
|
|
14517
|
-
* InfoForIntentOptions interface
|
|
14518
|
-
* @typedef { object } InfoForIntentOptions
|
|
14519
|
-
* @property { string } name Name of the intent to get info for.
|
|
14520
|
-
* @property { Context } [context] Optional context.
|
|
14521
|
-
*/
|
|
14522
13277
|
/**
|
|
14523
13278
|
* Sets a context for the context group of the incoming current entity.
|
|
14524
13279
|
* @param setContextOptions - New context to set.
|
|
@@ -14987,7 +13742,7 @@ function requireInteropBroker () {
|
|
|
14987
13742
|
* // }
|
|
14988
13743
|
* ```
|
|
14989
13744
|
*
|
|
14990
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
13745
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
14991
13746
|
*
|
|
14992
13747
|
* @param contextForIntent Data passed between entities and applications.
|
|
14993
13748
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -15678,97 +14433,6 @@ const base_1$2 = base;
|
|
|
15678
14433
|
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
|
15679
14434
|
const utils_1$2 = utils$1;
|
|
15680
14435
|
/**
|
|
15681
|
-
* @PORTED
|
|
15682
|
-
* @typedef { object } Intent
|
|
15683
|
-
* @summary The combination of an action and a context that is passed to an application for resolution.
|
|
15684
|
-
* @property { string } name Name of the intent.
|
|
15685
|
-
* @property { Context } context Data associated with the intent
|
|
15686
|
-
*/
|
|
15687
|
-
/**
|
|
15688
|
-
* @REMOVED
|
|
15689
|
-
* @typedef { object } Subscription
|
|
15690
|
-
* @summary Object returned when subscribing a handler.
|
|
15691
|
-
* @property { function } unsubscribe Function to unsubscribe the handler.
|
|
15692
|
-
*/
|
|
15693
|
-
/**
|
|
15694
|
-
* @typedef { function } ContextHandler
|
|
15695
|
-
* @summary Subscription function for addContextHandler.
|
|
15696
|
-
*/
|
|
15697
|
-
/**
|
|
15698
|
-
* @typedef { function } IntentHandler
|
|
15699
|
-
* @summary Subscription function for registerIntentHandler
|
|
15700
|
-
*/
|
|
15701
|
-
/**
|
|
15702
|
-
* @PORTED
|
|
15703
|
-
* @typedef { object } ClientIdentity
|
|
15704
|
-
* @summary The Identity for a Channel Client. Includes endpointId to differentiate between different connections for an entity.
|
|
15705
|
-
* @property {string} uuid GUID of an application.
|
|
15706
|
-
* @property {string} name Name of an entity in an application.
|
|
15707
|
-
* @property {string} endpointId Unique differentiator for different Channel connections for an entity.
|
|
15708
|
-
*/
|
|
15709
|
-
/**
|
|
15710
|
-
* @PORTED
|
|
15711
|
-
* @typedef { object } ContextGroupInfo
|
|
15712
|
-
* @summary Information for a Context Group. Contains metadata for displaying the group properly.
|
|
15713
|
-
* @property {string} id Name of the context group
|
|
15714
|
-
* @property {DisplayMetadata} displayMetadata Metadata for the Context Group. Contains the group's human-readable name, color, and an image, as defined by the Interop Broker.
|
|
15715
|
-
*/
|
|
15716
|
-
/**
|
|
15717
|
-
* @PORTED
|
|
15718
|
-
* @typedef { object } DisplayMetadata
|
|
15719
|
-
* @summary The display data for a Context Group.
|
|
15720
|
-
* @property {string} name A user-readable name for this context group, e.g: `"Red"`
|
|
15721
|
-
* @property {string} [color] The color that should be associated within this context group when displaying this context group in a UI, e.g: `0xFF0000`.
|
|
15722
|
-
* @property {string} [glyph] A URL of an image that can be used to display this context group
|
|
15723
|
-
*/
|
|
15724
|
-
/**
|
|
15725
|
-
* @PORTED
|
|
15726
|
-
* @typedef { object } Context
|
|
15727
|
-
* @summary Data passed between entities and applications.
|
|
15728
|
-
* @property {object} [id] An object containing string key-value pairs for the bulk of the data for the context. Differs between context types.
|
|
15729
|
-
* @property {string} [name] User-readable name for the incoming context.
|
|
15730
|
-
* @property {string} type Conserved type for the context (e.g. `instrument` or `country`)
|
|
15731
|
-
*/
|
|
15732
|
-
/**
|
|
15733
|
-
* @REMOVED
|
|
15734
|
-
* @typedef { object } ContextForIntent
|
|
15735
|
-
* @summary Data passed between entities and applications, including an optional metadata.
|
|
15736
|
-
* @property {object} [id] An object containing string key-value pairs for the bulk of the data for the context. Differs between context types.
|
|
15737
|
-
* @property {string} [name] User-readable name for the incoming context.
|
|
15738
|
-
* @property {string} type Conserved type for the context (e.g. `instrument` or `country`)
|
|
15739
|
-
* @property {any} [metadata]
|
|
15740
|
-
*/
|
|
15741
|
-
/**
|
|
15742
|
-
* @REMOVED
|
|
15743
|
-
* @typedef { object } SessionContextGroup
|
|
15744
|
-
* @summary An instance of a SessionContextGroup
|
|
15745
|
-
* @property {string} id The SessionContextGroup's id.
|
|
15746
|
-
* @property {setContext} setContext Sets a context of a certain type
|
|
15747
|
-
* @property {getCurrentContext} getCurrentContext Gets the currently set context of a certain type
|
|
15748
|
-
* @property {addContextHandler} addContextHandler Adds a handler for context change.
|
|
15749
|
-
*/
|
|
15750
|
-
/**
|
|
15751
|
-
* @typedef {function} setContext
|
|
15752
|
-
* @summary A SessionContextGroup instance method for setting a context in the SessionContextGroup.
|
|
15753
|
-
* @param context The Context to be set.
|
|
15754
|
-
*
|
|
15755
|
-
*/
|
|
15756
|
-
/**
|
|
15757
|
-
* @typedef {function} getCurrentContext
|
|
15758
|
-
* @summary A SessionContextGroup instance method for getting the current context of a certain type.
|
|
15759
|
-
* @param contextType The Context Type to get. If not specified the last contextType set would get used.
|
|
15760
|
-
*
|
|
15761
|
-
*/
|
|
15762
|
-
/**
|
|
15763
|
-
* @typedef {function} addContextHandler
|
|
15764
|
-
* @summary A SessionContextGroup instance method for adding a handler for context change.
|
|
15765
|
-
* @param contextHandler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
|
|
15766
|
-
* @param contextType The context type this handler should listen to. If not specified, a global handler for all context types will get created. Only one global handler is allowed per SessionContextGroup.
|
|
15767
|
-
*
|
|
15768
|
-
*/
|
|
15769
|
-
/**
|
|
15770
|
-
* {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
|
|
15771
|
-
*
|
|
15772
14436
|
* The Interop Client API is broken up into two groups:
|
|
15773
14437
|
*
|
|
15774
14438
|
* **Content Facing APIs** - For Application Developers putting Views into a Platform Window, who care about Context. These are APIs that send out and receive the Context data that flows between applications. Think of this as the Water in the Interop Pipes.
|
|
@@ -16334,7 +14998,11 @@ class InteropClient extends base_1$2.Base {
|
|
|
16334
14998
|
listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
|
|
16335
14999
|
});
|
|
16336
15000
|
}
|
|
16337
|
-
|
|
15001
|
+
/**
|
|
15002
|
+
* @internal
|
|
15003
|
+
*
|
|
15004
|
+
* Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
|
|
15005
|
+
*/
|
|
16338
15006
|
static async ferryFdc3Call(interopClient, action, payload) {
|
|
16339
15007
|
const client = await __classPrivateFieldGet$2(interopClient, _InteropClient_clientPromise, "f");
|
|
16340
15008
|
return client.dispatch(action, payload || null);
|
|
@@ -16399,13 +15067,6 @@ function requireFactory () {
|
|
|
16399
15067
|
const common_utils_1 = commonUtils;
|
|
16400
15068
|
const defaultOverride = (Class) => new Class();
|
|
16401
15069
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|
|
16402
|
-
/**
|
|
16403
|
-
* @PORTED
|
|
16404
|
-
* @typedef { object } InteropConfig
|
|
16405
|
-
* @summary Information relevant to the Interop Broker.
|
|
16406
|
-
* @property {string} [currentContextGroup] Context Group for the client. (green, yellow, red, etc.)
|
|
16407
|
-
* @property {string} [providerId] When provided, automatically connects the client to the specified provider uuid
|
|
16408
|
-
*/
|
|
16409
15070
|
/**
|
|
16410
15071
|
* Manages creation of Interop Brokers and Interop Clients. These APIs are called under-the-hood in Platforms.
|
|
16411
15072
|
*
|
|
@@ -16790,7 +15451,7 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
|
16790
15451
|
* * {@link SnapshotSourceModule} contains static members of the `SnapshotSource` API, accessible through `fin.SnapshotSource`.
|
|
16791
15452
|
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.wrap`.
|
|
16792
15453
|
*
|
|
16793
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
15454
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
16794
15455
|
* both of these were documented on the same page.
|
|
16795
15456
|
*
|
|
16796
15457
|
* @packageDocumentation
|
|
@@ -17224,7 +15885,7 @@ class MockEnvironment {
|
|
|
17224
15885
|
getRtcPeer() {
|
|
17225
15886
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17226
15887
|
}
|
|
17227
|
-
|
|
15888
|
+
initLayoutManager() {
|
|
17228
15889
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17229
15890
|
}
|
|
17230
15891
|
async createLayout() {
|
|
@@ -17233,6 +15894,9 @@ class MockEnvironment {
|
|
|
17233
15894
|
async destroyLayout() {
|
|
17234
15895
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17235
15896
|
}
|
|
15897
|
+
async resolveLayout() {
|
|
15898
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
15899
|
+
}
|
|
17236
15900
|
initPlatform() {
|
|
17237
15901
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17238
15902
|
}
|