@openfin/core 33.76.27 → 33.76.36
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/openfin-core-33.76.36.tgz +0 -0
- package/package.json +1 -1
- package/src/OpenFin.d.ts +27 -16
- package/src/api/application/Factory.d.ts +148 -100
- package/src/api/application/Factory.js +148 -100
- package/src/api/application/Instance.d.ts +477 -106
- package/src/api/application/Instance.js +474 -106
- package/src/api/application/index.d.ts +9 -0
- package/src/api/application/index.js +9 -0
- package/src/api/base.d.ts +69 -0
- package/src/api/base.js +69 -0
- package/src/api/clipboard/index.d.ts +111 -31
- package/src/api/clipboard/index.js +111 -31
- package/src/api/events/application.d.ts +12 -0
- package/src/api/events/application.js +12 -0
- package/src/api/events/channel.d.ts +5 -0
- package/src/api/events/channel.js +5 -0
- package/src/api/events/externalApplication.d.ts +5 -0
- package/src/api/events/externalApplication.js +5 -0
- package/src/api/events/frame.d.ts +5 -0
- package/src/api/events/globalHotkey.d.ts +5 -0
- package/src/api/events/platform.d.ts +9 -1
- package/src/api/events/platform.js +8 -0
- package/src/api/events/system.d.ts +13 -0
- package/src/api/events/system.js +13 -0
- package/src/api/events/view.d.ts +19 -9
- package/src/api/events/view.js +10 -0
- package/src/api/events/webcontents.d.ts +21 -10
- package/src/api/events/webcontents.js +11 -0
- package/src/api/events/window.d.ts +70 -1
- package/src/api/events/window.js +10 -0
- package/src/api/external-application/Factory.d.ts +16 -9
- package/src/api/external-application/Factory.js +16 -9
- package/src/api/external-application/Instance.d.ts +40 -32
- package/src/api/external-application/Instance.js +40 -32
- package/src/api/external-application/index.d.ts +9 -0
- package/src/api/external-application/index.js +9 -0
- package/src/api/fin.d.ts +3 -0
- package/src/api/fin.js +3 -0
- package/src/api/frame/Factory.d.ts +30 -13
- package/src/api/frame/Factory.js +30 -13
- package/src/api/frame/Instance.d.ts +51 -38
- package/src/api/frame/Instance.js +51 -38
- package/src/api/frame/index.d.ts +11 -0
- package/src/api/frame/index.js +11 -0
- package/src/api/global-hotkey/index.d.ts +81 -13
- package/src/api/global-hotkey/index.js +81 -13
- package/src/api/interappbus/channel/channel.d.ts +257 -0
- package/src/api/interappbus/channel/channel.js +257 -0
- package/src/api/interappbus/channel/channels-docs.d.ts +59 -57
- package/src/api/interappbus/channel/channels-docs.js +71 -68
- package/src/api/interappbus/channel/client.d.ts +93 -0
- package/src/api/interappbus/channel/client.js +93 -1
- package/src/api/interappbus/channel/index.d.ts +164 -0
- package/src/api/interappbus/channel/index.js +165 -1
- package/src/api/interappbus/channel/provider.d.ts +172 -0
- package/src/api/interappbus/channel/provider.js +172 -0
- package/src/api/interappbus/index.d.ts +55 -20
- package/src/api/interappbus/index.js +55 -20
- package/src/api/interop/Factory.d.ts +30 -10
- package/src/api/interop/Factory.js +30 -10
- package/src/api/interop/InteropBroker.d.ts +298 -70
- package/src/api/interop/InteropBroker.js +298 -70
- package/src/api/interop/InteropClient.d.ts +286 -62
- package/src/api/interop/InteropClient.js +286 -62
- package/src/api/interop/SessionContextGroupClient.d.ts +2 -2
- package/src/api/interop/SessionContextGroupClient.js +2 -2
- package/src/api/interop/fdc3/documentationStub.d.ts +14 -0
- package/src/api/interop/fdc3/documentationStub.js +17 -0
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +31 -34
- package/src/api/interop/fdc3/fdc3-1.2.js +31 -34
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +48 -51
- package/src/api/interop/fdc3/fdc3-2.0.js +48 -51
- package/src/api/interop/index.d.ts +8 -0
- package/src/api/interop/index.js +8 -0
- package/src/api/platform/Factory.d.ts +121 -65
- package/src/api/platform/Factory.js +122 -66
- package/src/api/platform/Instance.d.ts +551 -48
- package/src/api/platform/Instance.js +551 -49
- package/src/api/platform/index.d.ts +9 -0
- package/src/api/platform/index.js +9 -0
- package/src/api/platform/layout/Factory.d.ts +53 -76
- package/src/api/platform/layout/Factory.js +53 -76
- package/src/api/platform/layout/Instance.d.ts +158 -23
- package/src/api/platform/layout/Instance.js +118 -20
- package/src/api/platform/layout/entities/layout-entities.d.ts +222 -30
- package/src/api/platform/layout/entities/layout-entities.js +222 -30
- package/src/api/platform/layout/index.d.ts +9 -0
- package/src/api/platform/layout/index.js +9 -0
- package/src/api/platform/provider.d.ts +398 -51
- package/src/api/snapshot-source/Factory.d.ts +33 -18
- package/src/api/snapshot-source/Factory.js +33 -18
- package/src/api/snapshot-source/Instance.d.ts +30 -8
- package/src/api/snapshot-source/Instance.js +30 -8
- package/src/api/snapshot-source/index.d.ts +9 -0
- package/src/api/snapshot-source/index.js +9 -0
- package/src/api/system/index.d.ts +1137 -186
- package/src/api/system/index.js +1142 -186
- package/src/api/view/Factory.d.ts +54 -16
- package/src/api/view/Factory.js +54 -16
- package/src/api/view/Instance.d.ts +330 -216
- package/src/api/view/Instance.js +331 -217
- package/src/api/view/index.d.ts +9 -0
- package/src/api/view/index.js +9 -0
- package/src/api/webcontents/main.d.ts +890 -0
- package/src/api/webcontents/main.js +890 -0
- package/src/api/window/Factory.d.ts +67 -16
- package/src/api/window/Factory.js +67 -16
- package/src/api/window/Instance.d.ts +824 -316
- package/src/api/window/Instance.js +822 -320
- package/src/api/window/index.d.ts +11 -0
- package/src/api/window/index.js +11 -0
- package/src/namespaces.d.ts +1 -0
- package/src/namespaces.js +3 -1
- package/src/shapes/protocol.d.ts +4 -0
- package/openfin-core-33.76.27.tgz +0 -0
|
@@ -38,8 +38,67 @@ class LayoutNode {
|
|
|
38
38
|
* ApiClient for {@link LayoutEntitiesController}
|
|
39
39
|
*/
|
|
40
40
|
_LayoutNode_client.set(this, void 0);
|
|
41
|
+
/**
|
|
42
|
+
* Checks if the TabStack or ColumnOrRow is the root content item
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```js
|
|
46
|
+
* if (!fin.me.isView) {
|
|
47
|
+
* throw new Error('Not running in a platform View.');
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* const stack = await fin.me.getCurrentStack();
|
|
51
|
+
* const isRoot = await stack.isRoot();
|
|
52
|
+
* // The TabStack is root: false
|
|
53
|
+
* console.log(`The TabStack is root: ${isRoot}`);
|
|
54
|
+
*
|
|
55
|
+
* // Retrieves the parent ColumnOrRow
|
|
56
|
+
* const parent = await stack.getParent();
|
|
57
|
+
* const parentIsRoot = await parent.isRoot();
|
|
58
|
+
* // The parent ColumnOrRow is root: true
|
|
59
|
+
* console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
41
62
|
this.isRoot = () => __classPrivateFieldGet(this, _LayoutNode_client, "f").isRoot(this.entityId);
|
|
63
|
+
/**
|
|
64
|
+
* Checks if the TabStack or ColumnOrRow exists
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```js
|
|
68
|
+
* if (!fin.me.isView) {
|
|
69
|
+
* throw new Error('Not running in a platform View.');
|
|
70
|
+
* }
|
|
71
|
+
*
|
|
72
|
+
* const stack = await fin.me.getCurrentStack();
|
|
73
|
+
* // Retrieves the parent ColumnOrRow
|
|
74
|
+
* const columnOrRow = await stack.getParent();
|
|
75
|
+
* let exists = await stack.exists();
|
|
76
|
+
* // or
|
|
77
|
+
* let exists = await columnOrRow.exists();
|
|
78
|
+
* // The entity exists: true
|
|
79
|
+
* console.log(`The entity exists: ${exists}`);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
42
82
|
this.exists = () => __classPrivateFieldGet(this, _LayoutNode_client, "f").exists(this.entityId);
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves the parent of the TabStack or ColumnOrRow
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```js
|
|
88
|
+
* if (!fin.me.isView) {
|
|
89
|
+
* throw new Error('Not running in a platform View.');
|
|
90
|
+
* }
|
|
91
|
+
*
|
|
92
|
+
* const stack = await fin.me.getCurrentStack();
|
|
93
|
+
* // Retrieves the parent ColumnOrRow
|
|
94
|
+
* const columnOrRow = await stack.getParent();
|
|
95
|
+
*
|
|
96
|
+
* // undefined if entity is the root item
|
|
97
|
+
* let parent = await columnOrRow.getParent();
|
|
98
|
+
* // or
|
|
99
|
+
* let parent = await stack.getParent();
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
43
102
|
this.getParent = async () => {
|
|
44
103
|
const parent = await __classPrivateFieldGet(this, _LayoutNode_client, "f").getParent(this.entityId);
|
|
45
104
|
if (!parent) {
|
|
@@ -47,10 +106,70 @@ class LayoutNode {
|
|
|
47
106
|
}
|
|
48
107
|
return LayoutNode.getEntity(parent, __classPrivateFieldGet(this, _LayoutNode_client, "f"));
|
|
49
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```js
|
|
114
|
+
* if (!fin.me.isView) {
|
|
115
|
+
* throw new Error('Not running in a platform View.');
|
|
116
|
+
* }
|
|
117
|
+
*
|
|
118
|
+
* const stack = await fin.me.getCurrentStack();
|
|
119
|
+
* const columnOrRow = await stack.getParent();
|
|
120
|
+
*
|
|
121
|
+
* // Create view references by supplying a 'name' and 'url'
|
|
122
|
+
* const views = [
|
|
123
|
+
* // if 'name' is undefined, one will be generated
|
|
124
|
+
* // if 'url' is undefined, it will default the view URL to 'about:blank'
|
|
125
|
+
* { name: 'google-view', url: 'http://google.com/'},
|
|
126
|
+
* { name: 'of-developers-view', url: 'http://developers.openfin.co/'},
|
|
127
|
+
* ];
|
|
128
|
+
*
|
|
129
|
+
* // Create a view beforehand to be included in the new tab stack
|
|
130
|
+
* const outsideView = await fin.View.create({
|
|
131
|
+
* name: 'outside-bloomberg-view',
|
|
132
|
+
* url: 'https://bloomberg.com/',
|
|
133
|
+
* target: fin.me.identity,
|
|
134
|
+
* });
|
|
135
|
+
*
|
|
136
|
+
* // Views to add can be identities, or the reference views mentioned above
|
|
137
|
+
* const viewsToAdd = [outsideView.identity, ...views];
|
|
138
|
+
*
|
|
139
|
+
* // Possible position inputs: 'right' | 'left' | 'top' | 'bottom'
|
|
140
|
+
* let stackFrom = await columnOrRow.createAdjacentStack(viewsToAdd, { position: 'right' });
|
|
141
|
+
* // Or
|
|
142
|
+
* let newStack = await stack.createAdjacentStack(viewsToAdd, { position: 'right' });
|
|
143
|
+
* console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
|
|
144
|
+
*
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
50
147
|
this.createAdjacentStack = async (views, options) => {
|
|
51
148
|
const entityId = await __classPrivateFieldGet(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
|
|
52
149
|
return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet(this, _LayoutNode_client, "f"));
|
|
53
150
|
};
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```js
|
|
156
|
+
* if (!fin.me.isView) {
|
|
157
|
+
* throw new Error('Not running in a platform View.');
|
|
158
|
+
* }
|
|
159
|
+
*
|
|
160
|
+
* const stack = await fin.me.getCurrentStack();
|
|
161
|
+
* const columnOrRow = await stack.getParent();
|
|
162
|
+
* // Possible position inputs: 'right' | 'left' | 'top' | 'bottom'
|
|
163
|
+
* let rightStacks = await columnOrRow.getAdjacentStacks('right');
|
|
164
|
+
* let leftStacks = await columnOrRow.getAdjacentStacks('left');
|
|
165
|
+
* // or
|
|
166
|
+
* let rightStacks = await stack.getAdjacentStacks('right');
|
|
167
|
+
* let leftStacks = await stack.getAdjacentStacks('left');
|
|
168
|
+
*
|
|
169
|
+
* console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
|
|
170
|
+
*
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
54
173
|
this.getAdjacentStacks = async (edge) => {
|
|
55
174
|
const adjacentStacks = await __classPrivateFieldGet(this, _LayoutNode_client, "f").getAdjacentStacks({
|
|
56
175
|
targetId: this.entityId,
|
|
@@ -117,7 +236,7 @@ class TabStack extends LayoutNode {
|
|
|
117
236
|
* @memberof TabStack
|
|
118
237
|
* @instance
|
|
119
238
|
* @tutorial TabStack.isRoot
|
|
120
|
-
* @
|
|
239
|
+
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
|
121
240
|
*/
|
|
122
241
|
/**
|
|
123
242
|
* Determines if this {@link TabStack} exists.
|
|
@@ -125,7 +244,7 @@ class TabStack extends LayoutNode {
|
|
|
125
244
|
* @instance
|
|
126
245
|
* @memberof TabStack
|
|
127
246
|
* @tutorial TabStack.exists
|
|
128
|
-
* @
|
|
247
|
+
* @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
|
|
129
248
|
*/
|
|
130
249
|
/**
|
|
131
250
|
* Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
|
|
@@ -133,7 +252,7 @@ class TabStack extends LayoutNode {
|
|
|
133
252
|
* @instance
|
|
134
253
|
* @memberof TabStack
|
|
135
254
|
* @tutorial TabStack.getParent
|
|
136
|
-
* @
|
|
255
|
+
* @returns is the root content item or does not exist.
|
|
137
256
|
*/
|
|
138
257
|
/**
|
|
139
258
|
* Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
|
|
@@ -141,7 +260,7 @@ class TabStack extends LayoutNode {
|
|
|
141
260
|
* @instance
|
|
142
261
|
* @memberof TabStack
|
|
143
262
|
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
|
144
|
-
*
|
|
263
|
+
*
|
|
145
264
|
* @tutorial TabStack.getAdjacentStacks
|
|
146
265
|
*/
|
|
147
266
|
/**
|
|
@@ -155,9 +274,9 @@ class TabStack extends LayoutNode {
|
|
|
155
274
|
* @function createAdjacentStack
|
|
156
275
|
* @instance
|
|
157
276
|
* @memberof TabStack
|
|
158
|
-
* @param
|
|
159
|
-
* @param
|
|
160
|
-
* @returns
|
|
277
|
+
* @param views - List of identities or view creation options of the views to include in the stack
|
|
278
|
+
* @param options - Creation options.
|
|
279
|
+
* @returns The created TabStack.
|
|
161
280
|
* @tutorial TabStack.createAdjacentStack
|
|
162
281
|
* @experimental
|
|
163
282
|
*/
|
|
@@ -181,45 +300,104 @@ class TabStack extends LayoutNode {
|
|
|
181
300
|
* If that happens and then getViews() is called, it will return the identities in a different order than
|
|
182
301
|
* than the currently rendered tab order.
|
|
183
302
|
*
|
|
184
|
-
*
|
|
303
|
+
*
|
|
185
304
|
* @throws If the {@link TabStack} has been destroyed.
|
|
186
|
-
* @
|
|
305
|
+
* @example
|
|
306
|
+
* ```js
|
|
307
|
+
* if (!fin.me.isView) {
|
|
308
|
+
* throw new Error('Not running in a platform View.');
|
|
309
|
+
* }
|
|
310
|
+
*
|
|
311
|
+
* const stack = await fin.me.getCurrentStack();
|
|
312
|
+
* // Alternatively, you can wrap any view and get the stack from there
|
|
313
|
+
* // const viewFromSomewhere = fin.View.wrapSync(someView.identity);
|
|
314
|
+
* // const stack = await viewFromSomewhere.getCurrentStack();
|
|
315
|
+
* const views = await stack.getViews();
|
|
316
|
+
* console.log(`Stack contains ${views.length} view(s)`);
|
|
317
|
+
* ```
|
|
187
318
|
* @experimental
|
|
188
319
|
*/
|
|
189
320
|
this.getViews = () => __classPrivateFieldGet(this, _TabStack_client, "f").getStackViews(this.entityId);
|
|
190
321
|
/**
|
|
191
322
|
* Adds or creates a view in this {@link TabStack}.
|
|
192
323
|
*
|
|
193
|
-
* Known Issue: If adding a view overflows the tab-container, the added view will be set as active
|
|
324
|
+
* @remarks Known Issue: If adding a view overflows the tab-container, the added view will be set as active
|
|
194
325
|
* and rendered at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
|
|
195
326
|
*
|
|
196
|
-
* @param
|
|
197
|
-
* @param
|
|
198
|
-
* @returns
|
|
327
|
+
* @param view The identity of an existing view to add, or options to create a view.
|
|
328
|
+
* @param options Optional view options: index number used to insert the view into the stack at that index. Defaults to 0 (front of the stack)
|
|
329
|
+
* @returns Resolves with the {@link OpenFin.Identity identity} of the added view.
|
|
199
330
|
* @throws If the view does not exist or fails to create.
|
|
200
331
|
* @throws If the {@link TabStack} has been destroyed.
|
|
201
|
-
* @
|
|
332
|
+
* @example
|
|
333
|
+
* ```js
|
|
334
|
+
* if (!fin.me.isView) {
|
|
335
|
+
* throw new Error('Not running in a platform View.');
|
|
336
|
+
* }
|
|
337
|
+
*
|
|
338
|
+
* const stack = await fin.me.getCurrentStack();
|
|
339
|
+
* // Alternatively, you can wrap any view and get the stack from there
|
|
340
|
+
* // const viewFromSomewhere = fin.View.wrapSync(someView.identity);
|
|
341
|
+
* // const stack = await viewFromSomewhere.getCurrentStack();
|
|
342
|
+
* const googleViewIdentity = await stack.addView({ name: 'google-view', url: 'http://google.com/' });
|
|
343
|
+
* console.log('Identity of the google view just added', { googleViewIdentity });
|
|
344
|
+
* // pass in { index: number } to set the index in the stack. Here 1 means, end of the stack (defaults to 0)
|
|
345
|
+
* const appleViewIdentity = await stack.addView({ name: 'apple-view', url: 'http://apple.com/' }, { index: 1 });
|
|
346
|
+
* console.log('Identity of the apple view just added', { appleViewIdentity });
|
|
347
|
+
* ```
|
|
202
348
|
* @experimental
|
|
203
349
|
*/
|
|
204
350
|
this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
|
|
205
351
|
/**
|
|
206
352
|
* Removes a view from this {@link TabStack}.
|
|
207
|
-
*
|
|
353
|
+
*
|
|
354
|
+
* @remarks Throws an exception if the view identity does not exist or was already destroyed.
|
|
355
|
+
*
|
|
356
|
+
* @param view - Identity of the view to remove.
|
|
208
357
|
* @throws If the view does not exist or does not belong to the stack.
|
|
209
358
|
* @throws If the {@link TabStack} has been destroyed.
|
|
210
|
-
*
|
|
211
|
-
* @
|
|
359
|
+
*
|
|
360
|
+
* @example
|
|
361
|
+
* ```js
|
|
362
|
+
* if (!fin.me.isView) {
|
|
363
|
+
* throw new Error('Not running in a platform View.');
|
|
364
|
+
* }
|
|
365
|
+
*
|
|
366
|
+
* const stack = await fin.me.getCurrentStack();
|
|
367
|
+
* const googleViewIdentity = await stack.addView({ name: 'google-view', url: 'http://google.com/' });
|
|
368
|
+
*
|
|
369
|
+
* await stack.removeView(googleViewIdentity);
|
|
370
|
+
*
|
|
371
|
+
* try {
|
|
372
|
+
* await stack.removeView(googleViewIdentity);
|
|
373
|
+
* } catch (error) {
|
|
374
|
+
* // Tried to remove a view ('google-view') which does not belong to the stack.
|
|
375
|
+
* console.log(error);
|
|
376
|
+
* }
|
|
377
|
+
* ```
|
|
212
378
|
*/
|
|
213
379
|
this.removeView = async (view) => {
|
|
214
380
|
await __classPrivateFieldGet(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
|
|
215
381
|
};
|
|
216
382
|
/**
|
|
217
383
|
* Sets the active view of the {@link TabStack} without focusing it.
|
|
218
|
-
* @param
|
|
219
|
-
* @returns
|
|
384
|
+
* @param view - Identity of the view to activate.
|
|
385
|
+
* @returns Promise which resolves with void once the view has been activated.
|
|
220
386
|
* @throws If the {@link TabStack} has been destroyed.
|
|
221
387
|
* @throws If the view does not exist.
|
|
222
|
-
* @
|
|
388
|
+
* @example
|
|
389
|
+
* Change the active tab of a known View's TabStack:
|
|
390
|
+
* ```js
|
|
391
|
+
* const targetView = fin.View.wrapSync({ uuid: 'uuid', name: 'view-name' });
|
|
392
|
+
* const stack = await targetView.getCurrentStack();
|
|
393
|
+
* await stack.setActiveView(targetView.identity);
|
|
394
|
+
* ```
|
|
395
|
+
*
|
|
396
|
+
* Set the current View as active within its TabStack:
|
|
397
|
+
* ```js
|
|
398
|
+
* const stack = await fin.me.getCurrentStack();
|
|
399
|
+
* await stack.setActiveView(fin.me.identity);
|
|
400
|
+
* ```
|
|
223
401
|
* @experimental
|
|
224
402
|
*/
|
|
225
403
|
this.setActiveView = async (view) => {
|
|
@@ -240,7 +418,7 @@ class ColumnOrRow extends LayoutNode {
|
|
|
240
418
|
* @memberof ColumnOrRow
|
|
241
419
|
* @instance
|
|
242
420
|
* @tutorial ColumnOrRow.isRoot
|
|
243
|
-
* @
|
|
421
|
+
* @returns Resolves true if this TabStack is the top level content item, or false if it is not.
|
|
244
422
|
*/
|
|
245
423
|
/**
|
|
246
424
|
* Determines if this {@link ColumnOrRow} exists.
|
|
@@ -248,7 +426,7 @@ class ColumnOrRow extends LayoutNode {
|
|
|
248
426
|
* @instance
|
|
249
427
|
* @memberof ColumnOrRow
|
|
250
428
|
* @tutorial ColumnOrRow.exists
|
|
251
|
-
* @
|
|
429
|
+
* @returns Resolves true if the TabStack exists, or false if it has been destroyed.
|
|
252
430
|
*/
|
|
253
431
|
/**
|
|
254
432
|
* Retrieves the parent {@link ColumnOrRow} of this {@link ColumnOrRow}, if one exists.
|
|
@@ -256,7 +434,8 @@ class ColumnOrRow extends LayoutNode {
|
|
|
256
434
|
* @instance
|
|
257
435
|
* @memberof ColumnOrRow
|
|
258
436
|
* @tutorial ColumnOrRow.getParent
|
|
259
|
-
* @
|
|
437
|
+
* @returns Promise resolving with the {@link ColumnOrRow} that contains this item, or undefined if
|
|
438
|
+
* this {@link ColumnOrRow}does not exist or is the root content item.
|
|
260
439
|
*/
|
|
261
440
|
/**
|
|
262
441
|
* Returns all the adjacent stacks that share an edge with the given {@link ColumnOrRow}.
|
|
@@ -264,7 +443,7 @@ class ColumnOrRow extends LayoutNode {
|
|
|
264
443
|
* @instance
|
|
265
444
|
* @memberof ColumnOrRow
|
|
266
445
|
* @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
|
|
267
|
-
*
|
|
446
|
+
*
|
|
268
447
|
* @tutorial ColumnOrRow.getAdjacentStacks
|
|
269
448
|
*/
|
|
270
449
|
/**
|
|
@@ -278,9 +457,9 @@ class ColumnOrRow extends LayoutNode {
|
|
|
278
457
|
* @function createAdjacentStack
|
|
279
458
|
* @instance
|
|
280
459
|
* @memberof ColumnOrRow
|
|
281
|
-
* @param
|
|
282
|
-
* @param
|
|
283
|
-
* @returns
|
|
460
|
+
* @param views - List of identities or view creation options of the views to include in the stack
|
|
461
|
+
* @param options - Creation options.
|
|
462
|
+
* @returns The created TabStack
|
|
284
463
|
* @tutorial ColumnOrRow.createAdjacentStack
|
|
285
464
|
* @experimental
|
|
286
465
|
*/
|
|
@@ -296,9 +475,22 @@ class ColumnOrRow extends LayoutNode {
|
|
|
296
475
|
*/
|
|
297
476
|
_ColumnOrRow_client.set(this, void 0);
|
|
298
477
|
/**
|
|
299
|
-
* Retrieves
|
|
300
|
-
*
|
|
301
|
-
* @
|
|
478
|
+
* Retrieves the content array of the ColumnOrRow
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* ```js
|
|
482
|
+
* if (!fin.me.isView) {
|
|
483
|
+
* throw new Error('Not running in a platform View.');
|
|
484
|
+
* }
|
|
485
|
+
*
|
|
486
|
+
* const stack = await fin.me.getCurrentStack();
|
|
487
|
+
* // Retrieves the parent ColumnOrRow
|
|
488
|
+
* const columnOrRow = await stack.getParent();
|
|
489
|
+
*
|
|
490
|
+
* // returns [TabStack]
|
|
491
|
+
* const contentArray = await columnOrRow.getContent();
|
|
492
|
+
* console.log(`The ColumnOrRow has ${contentArray.length} item(s)`);
|
|
493
|
+
* ```
|
|
302
494
|
*/
|
|
303
495
|
this.getContent = async () => {
|
|
304
496
|
const contentItemEntities = await __classPrivateFieldGet(this, _ColumnOrRow_client, "f").getContent(this.entityId);
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry point for the OpenFin Layout namespace.
|
|
3
|
+
*
|
|
4
|
+
* Because TypeDoc does not currently support multiple modules with the same name, the module alias "LayoutModule" is used for
|
|
5
|
+
* the module containing static members of the `Layout` namespace (available under `fin.Layout`), while `Layout` documents
|
|
6
|
+
* instances of the OpenFin `Layout` class.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
1
10
|
export * from './Factory';
|
|
2
11
|
export * from './Instance';
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Entry point for the OpenFin Layout namespace.
|
|
4
|
+
*
|
|
5
|
+
* Because TypeDoc does not currently support multiple modules with the same name, the module alias "LayoutModule" is used for
|
|
6
|
+
* the module containing static members of the `Layout` namespace (available under `fin.Layout`), while `Layout` documents
|
|
7
|
+
* instances of the OpenFin `Layout` class.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
2
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
12
|
if (k2 === undefined) k2 = k;
|
|
4
13
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|