@openfin/core 40.82.21 → 40.82.22
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 +26 -2
- package/out/mock-beta.d.ts +26 -2
- package/out/mock-public.d.ts +26 -2
- package/out/mock.d.ts +26 -2
- package/out/mock.js +44 -2
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -7681,6 +7681,29 @@ declare class Layout extends Base {
|
|
|
7681
7681
|
* ```
|
|
7682
7682
|
*/
|
|
7683
7683
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
7684
|
+
/**
|
|
7685
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
7686
|
+
*
|
|
7687
|
+
* @param viewOptions - The options for creating the view.
|
|
7688
|
+
* @param options - Optional parameters for adding the view.
|
|
7689
|
+
* @param options.location - The location where the view should be added.
|
|
7690
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
7691
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
7692
|
+
*/
|
|
7693
|
+
addView(viewOptions: OpenFin_2.PlatformViewCreationOptions, { location, targetView }?: {
|
|
7694
|
+
location?: OpenFin_2.CreateViewTarget['location'];
|
|
7695
|
+
targetView?: OpenFin_2.Identity;
|
|
7696
|
+
}): Promise<{
|
|
7697
|
+
identity: OpenFin_2.Identity;
|
|
7698
|
+
}>;
|
|
7699
|
+
/**
|
|
7700
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
7701
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
7702
|
+
*
|
|
7703
|
+
* @param viewIdentity - The identity of the view to close.
|
|
7704
|
+
* @returns A promise that resolves when the view is closed.
|
|
7705
|
+
*/
|
|
7706
|
+
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
7684
7707
|
}
|
|
7685
7708
|
|
|
7686
7709
|
/**
|
|
@@ -7693,7 +7716,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
7693
7716
|
/**
|
|
7694
7717
|
* @interface
|
|
7695
7718
|
*/
|
|
7696
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
7719
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
7697
7720
|
/**
|
|
7698
7721
|
* Only a component type will have this property and it should be set to view.
|
|
7699
7722
|
*/
|
|
@@ -7702,6 +7725,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
7702
7725
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
7703
7726
|
*/
|
|
7704
7727
|
componentState?: Partial<ViewCreationOptions>;
|
|
7728
|
+
type: 'component';
|
|
7705
7729
|
};
|
|
7706
7730
|
|
|
7707
7731
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -7893,7 +7917,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
7893
7917
|
/**
|
|
7894
7918
|
* @experimental
|
|
7895
7919
|
*/
|
|
7896
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
7920
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
7897
7921
|
/**
|
|
7898
7922
|
* @experimental
|
|
7899
7923
|
*/
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -7681,6 +7681,29 @@ declare class Layout extends Base {
|
|
|
7681
7681
|
* ```
|
|
7682
7682
|
*/
|
|
7683
7683
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
7684
|
+
/**
|
|
7685
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
7686
|
+
*
|
|
7687
|
+
* @param viewOptions - The options for creating the view.
|
|
7688
|
+
* @param options - Optional parameters for adding the view.
|
|
7689
|
+
* @param options.location - The location where the view should be added.
|
|
7690
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
7691
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
7692
|
+
*/
|
|
7693
|
+
addView(viewOptions: OpenFin_2.PlatformViewCreationOptions, { location, targetView }?: {
|
|
7694
|
+
location?: OpenFin_2.CreateViewTarget['location'];
|
|
7695
|
+
targetView?: OpenFin_2.Identity;
|
|
7696
|
+
}): Promise<{
|
|
7697
|
+
identity: OpenFin_2.Identity;
|
|
7698
|
+
}>;
|
|
7699
|
+
/**
|
|
7700
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
7701
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
7702
|
+
*
|
|
7703
|
+
* @param viewIdentity - The identity of the view to close.
|
|
7704
|
+
* @returns A promise that resolves when the view is closed.
|
|
7705
|
+
*/
|
|
7706
|
+
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
7684
7707
|
}
|
|
7685
7708
|
|
|
7686
7709
|
/**
|
|
@@ -7693,7 +7716,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
7693
7716
|
/**
|
|
7694
7717
|
* @interface
|
|
7695
7718
|
*/
|
|
7696
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
7719
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
7697
7720
|
/**
|
|
7698
7721
|
* Only a component type will have this property and it should be set to view.
|
|
7699
7722
|
*/
|
|
@@ -7702,6 +7725,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
7702
7725
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
7703
7726
|
*/
|
|
7704
7727
|
componentState?: Partial<ViewCreationOptions>;
|
|
7728
|
+
type: 'component';
|
|
7705
7729
|
};
|
|
7706
7730
|
|
|
7707
7731
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -7893,7 +7917,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
7893
7917
|
/**
|
|
7894
7918
|
* @experimental
|
|
7895
7919
|
*/
|
|
7896
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
7920
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
7897
7921
|
/**
|
|
7898
7922
|
* @experimental
|
|
7899
7923
|
*/
|
package/out/mock-public.d.ts
CHANGED
|
@@ -7681,6 +7681,29 @@ declare class Layout extends Base {
|
|
|
7681
7681
|
* ```
|
|
7682
7682
|
*/
|
|
7683
7683
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
7684
|
+
/**
|
|
7685
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
7686
|
+
*
|
|
7687
|
+
* @param viewOptions - The options for creating the view.
|
|
7688
|
+
* @param options - Optional parameters for adding the view.
|
|
7689
|
+
* @param options.location - The location where the view should be added.
|
|
7690
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
7691
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
7692
|
+
*/
|
|
7693
|
+
addView(viewOptions: OpenFin_2.PlatformViewCreationOptions, { location, targetView }?: {
|
|
7694
|
+
location?: OpenFin_2.CreateViewTarget['location'];
|
|
7695
|
+
targetView?: OpenFin_2.Identity;
|
|
7696
|
+
}): Promise<{
|
|
7697
|
+
identity: OpenFin_2.Identity;
|
|
7698
|
+
}>;
|
|
7699
|
+
/**
|
|
7700
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
7701
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
7702
|
+
*
|
|
7703
|
+
* @param viewIdentity - The identity of the view to close.
|
|
7704
|
+
* @returns A promise that resolves when the view is closed.
|
|
7705
|
+
*/
|
|
7706
|
+
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
7684
7707
|
}
|
|
7685
7708
|
|
|
7686
7709
|
/**
|
|
@@ -7693,7 +7716,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
7693
7716
|
/**
|
|
7694
7717
|
* @interface
|
|
7695
7718
|
*/
|
|
7696
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
7719
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
7697
7720
|
/**
|
|
7698
7721
|
* Only a component type will have this property and it should be set to view.
|
|
7699
7722
|
*/
|
|
@@ -7702,6 +7725,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
7702
7725
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
7703
7726
|
*/
|
|
7704
7727
|
componentState?: Partial<ViewCreationOptions>;
|
|
7728
|
+
type: 'component';
|
|
7705
7729
|
};
|
|
7706
7730
|
|
|
7707
7731
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -7893,7 +7917,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
7893
7917
|
/**
|
|
7894
7918
|
* @experimental
|
|
7895
7919
|
*/
|
|
7896
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
7920
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
7897
7921
|
/**
|
|
7898
7922
|
* @experimental
|
|
7899
7923
|
*/
|
package/out/mock.d.ts
CHANGED
|
@@ -7807,6 +7807,29 @@ declare class Layout extends Base {
|
|
|
7807
7807
|
* ```
|
|
7808
7808
|
*/
|
|
7809
7809
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
7810
|
+
/**
|
|
7811
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
7812
|
+
*
|
|
7813
|
+
* @param viewOptions - The options for creating the view.
|
|
7814
|
+
* @param options - Optional parameters for adding the view.
|
|
7815
|
+
* @param options.location - The location where the view should be added.
|
|
7816
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
7817
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
7818
|
+
*/
|
|
7819
|
+
addView(viewOptions: OpenFin_2.PlatformViewCreationOptions, { location, targetView }?: {
|
|
7820
|
+
location?: OpenFin_2.CreateViewTarget['location'];
|
|
7821
|
+
targetView?: OpenFin_2.Identity;
|
|
7822
|
+
}): Promise<{
|
|
7823
|
+
identity: OpenFin_2.Identity;
|
|
7824
|
+
}>;
|
|
7825
|
+
/**
|
|
7826
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
7827
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
7828
|
+
*
|
|
7829
|
+
* @param viewIdentity - The identity of the view to close.
|
|
7830
|
+
* @returns A promise that resolves when the view is closed.
|
|
7831
|
+
*/
|
|
7832
|
+
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
7810
7833
|
}
|
|
7811
7834
|
|
|
7812
7835
|
/**
|
|
@@ -7819,7 +7842,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
7819
7842
|
/**
|
|
7820
7843
|
* @interface
|
|
7821
7844
|
*/
|
|
7822
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
7845
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
7823
7846
|
/**
|
|
7824
7847
|
* Only a component type will have this property and it should be set to view.
|
|
7825
7848
|
*/
|
|
@@ -7828,6 +7851,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
7828
7851
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
7829
7852
|
*/
|
|
7830
7853
|
componentState?: Partial<ViewCreationOptions>;
|
|
7854
|
+
type: 'component';
|
|
7831
7855
|
};
|
|
7832
7856
|
|
|
7833
7857
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -8019,7 +8043,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8019
8043
|
/**
|
|
8020
8044
|
* @experimental
|
|
8021
8045
|
*/
|
|
8022
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
8046
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
8023
8047
|
/**
|
|
8024
8048
|
* @experimental
|
|
8025
8049
|
*/
|
package/out/mock.js
CHANGED
|
@@ -11893,7 +11893,7 @@ var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
11893
11893
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11894
11894
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11895
11895
|
};
|
|
11896
|
-
var _Layout_layoutClient;
|
|
11896
|
+
var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
|
|
11897
11897
|
Object.defineProperty(Instance$1, "__esModule", { value: true });
|
|
11898
11898
|
Instance$1.Layout = void 0;
|
|
11899
11899
|
const lazy_1 = lazy;
|
|
@@ -12047,6 +12047,7 @@ class Layout extends base_1$5.Base {
|
|
|
12047
12047
|
// eslint-disable-next-line no-shadow
|
|
12048
12048
|
constructor(identity, wire) {
|
|
12049
12049
|
super(wire);
|
|
12050
|
+
_Layout_instances.add(this);
|
|
12050
12051
|
/**
|
|
12051
12052
|
* @internal
|
|
12052
12053
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
|
@@ -12286,9 +12287,50 @@ class Layout extends base_1$5.Base {
|
|
|
12286
12287
|
}
|
|
12287
12288
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
12288
12289
|
}
|
|
12290
|
+
/**
|
|
12291
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
12292
|
+
*
|
|
12293
|
+
* @param viewOptions - The options for creating the view.
|
|
12294
|
+
* @param options - Optional parameters for adding the view.
|
|
12295
|
+
* @param options.location - The location where the view should be added.
|
|
12296
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
12297
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
12298
|
+
*/
|
|
12299
|
+
async addView(viewOptions, { location, targetView } = {}) {
|
|
12300
|
+
this.wire.sendAction('layout-add-view').catch((e) => {
|
|
12301
|
+
// don't expose
|
|
12302
|
+
});
|
|
12303
|
+
const { identity } = await __classPrivateFieldGet$4(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
|
|
12304
|
+
viewOptions,
|
|
12305
|
+
location,
|
|
12306
|
+
targetView
|
|
12307
|
+
});
|
|
12308
|
+
return { identity };
|
|
12309
|
+
}
|
|
12310
|
+
/**
|
|
12311
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
12312
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
12313
|
+
*
|
|
12314
|
+
* @param viewIdentity - The identity of the view to close.
|
|
12315
|
+
* @returns A promise that resolves when the view is closed.
|
|
12316
|
+
*/
|
|
12317
|
+
async closeView(viewIdentity) {
|
|
12318
|
+
this.wire.sendAction('layout-close-view').catch((e) => {
|
|
12319
|
+
// don't expose
|
|
12320
|
+
});
|
|
12321
|
+
await __classPrivateFieldGet$4(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
|
|
12322
|
+
}
|
|
12289
12323
|
}
|
|
12290
12324
|
Instance$1.Layout = Layout;
|
|
12291
|
-
_Layout_layoutClient = new WeakMap()
|
|
12325
|
+
_Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
|
|
12326
|
+
/**
|
|
12327
|
+
* @internal
|
|
12328
|
+
* Use to type-guard actions sent to the layout via the provider.
|
|
12329
|
+
*/
|
|
12330
|
+
async function _Layout_forwardLayoutAction(action, payload) {
|
|
12331
|
+
const client = await this.platform.getClient();
|
|
12332
|
+
return client.dispatch(action, { target: this.identity, opts: payload });
|
|
12333
|
+
};
|
|
12292
12334
|
|
|
12293
12335
|
var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12294
12336
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|