@openfin/workspace-platform 9.1.6 → 9.1.7
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="@openfin/core" />
|
|
2
2
|
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
3
|
+
import { WindowIdentity } from './window';
|
|
3
4
|
export declare type LayoutComponentStateExtended = OpenFin.LayoutComponent['componentState'] & {
|
|
4
5
|
name: string;
|
|
5
6
|
uuid: string;
|
|
@@ -38,6 +39,10 @@ export interface LayoutDOMEvent {
|
|
|
38
39
|
isInitialized: boolean;
|
|
39
40
|
}
|
|
40
41
|
export declare type LayoutDOMEventListener = (ev: LayoutDOMEvent) => void;
|
|
42
|
+
export declare const getFirstViewFromLayout: (identity?: WindowIdentity) => Promise<{
|
|
43
|
+
name: any;
|
|
44
|
+
uuid: any;
|
|
45
|
+
}>;
|
|
41
46
|
/**
|
|
42
47
|
* Deep clones a layout and adds view names if they don't exist.
|
|
43
48
|
* @param layout The Layout to be cloned
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@openfin/core" />
|
|
2
|
-
import { ModalResponseContent
|
|
2
|
+
import { ModalResponseContent } from '../../../common/src/utils/menu-config';
|
|
3
3
|
import { Listener } from '../../../common/src/utils/shared-emitter';
|
|
4
4
|
import type { OptionalExceptFor } from '../../../common/src/utils/types';
|
|
5
5
|
import { _Window } from '@openfin/core/src/api/window';
|
|
@@ -37,9 +37,8 @@ export declare function createMenuPosition(windowOptions: OptionalExceptFor<Open
|
|
|
37
37
|
top: number;
|
|
38
38
|
left: number;
|
|
39
39
|
}>;
|
|
40
|
-
export declare function showChildWindow({ options, parameters }: ShowChildOptions
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions, shouldCenterOnMonitor?: boolean) => Promise<{
|
|
40
|
+
export declare function showChildWindow({ options, parameters }: ShowChildOptions): Promise<_Window>;
|
|
41
|
+
export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions) => Promise<{
|
|
43
42
|
data: ModalResponse;
|
|
44
43
|
}>;
|
|
45
44
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="@openfin/core" />
|
|
2
|
+
import { ResponseModalConfig } from './menu-config';
|
|
3
|
+
import { Point } from './window';
|
|
4
|
+
/**
|
|
5
|
+
* returns the correct bounds for the response modal to be displayed at
|
|
6
|
+
* this will return the correct bounds regardless of whether the window is maximized
|
|
7
|
+
*
|
|
8
|
+
* @param modalOptions window options including height/width so that we can calculate the correct bounds
|
|
9
|
+
* @param parentWindowIdentity the window to get the bounds from
|
|
10
|
+
* @param centerOnMonitor whether the modal should be centered on the monitor
|
|
11
|
+
* @returns a point (top/left) as to where the window should be placed
|
|
12
|
+
*/
|
|
13
|
+
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<Point>;
|
|
14
|
+
/**
|
|
15
|
+
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|
|
16
|
+
*
|
|
17
|
+
* @param bounds the bounds of the window
|
|
18
|
+
* @param monitor the monitor to check against
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|