@openfin/core 30.73.10 → 30.73.12
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.d.ts +38 -23
- package/package.json +1 -1
- package/src/api/platform/layout/Instance.d.ts +1 -1
package/OpenFin.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ declare namespace OpenFin {
|
|
|
284
284
|
defaultTop: number;
|
|
285
285
|
defaultWidth: number;
|
|
286
286
|
height: number;
|
|
287
|
-
layout:
|
|
287
|
+
layout: LayoutOptions;
|
|
288
288
|
modalParentIdentity: Identity;
|
|
289
289
|
name: string;
|
|
290
290
|
permissions: Partial<Permissions>;
|
|
@@ -725,35 +725,50 @@ declare namespace OpenFin {
|
|
|
725
725
|
};
|
|
726
726
|
};
|
|
727
727
|
|
|
728
|
+
export type LayoutContent = (LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent)[];
|
|
729
|
+
|
|
730
|
+
export type LayoutItemConfig = {
|
|
731
|
+
type: string;
|
|
732
|
+
content?: LayoutContent;
|
|
733
|
+
width?: number;
|
|
734
|
+
height?: number;
|
|
735
|
+
id?: string | string[];
|
|
736
|
+
isClosable?: boolean;
|
|
737
|
+
title?: string;
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
export interface LayoutRow extends LayoutItemConfig {
|
|
741
|
+
type: 'row';
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export interface LayoutColumn extends LayoutItemConfig {
|
|
745
|
+
type: 'column';
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export interface LayoutComponent extends LayoutItemConfig {
|
|
749
|
+
componentName: 'view';
|
|
750
|
+
componentState?: Partial<ViewCreationOptions>;
|
|
751
|
+
}
|
|
752
|
+
|
|
728
753
|
export type LayoutOptions = {
|
|
729
|
-
settings
|
|
754
|
+
settings?: {
|
|
730
755
|
popoutWholeStack?: boolean;
|
|
731
756
|
constrainDragToContainer?: boolean;
|
|
732
757
|
showPopoutIcon?: boolean;
|
|
733
758
|
showMaximiseIcon?: boolean;
|
|
734
759
|
showCloseIcon?: boolean;
|
|
735
760
|
constrainDragToHeaders?: boolean;
|
|
761
|
+
hasHeaders?: boolean;
|
|
762
|
+
reorderEnabled?: boolean;
|
|
763
|
+
preventDragOut?: boolean;
|
|
764
|
+
preventDragIn?: boolean;
|
|
736
765
|
};
|
|
737
|
-
content
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
type: 'row';
|
|
744
|
-
content: LayoutContent;
|
|
745
|
-
};
|
|
746
|
-
export type LayoutColumn = {
|
|
747
|
-
type: 'column';
|
|
748
|
-
content: LayoutContent;
|
|
749
|
-
};
|
|
750
|
-
export type LayoutComponent = {
|
|
751
|
-
type: 'component';
|
|
752
|
-
componentName: 'view';
|
|
753
|
-
componentState: {
|
|
754
|
-
name: string;
|
|
755
|
-
url: string;
|
|
756
|
-
title?: string;
|
|
766
|
+
content?: LayoutContent;
|
|
767
|
+
dimensions?: {
|
|
768
|
+
borderWidth?: number;
|
|
769
|
+
minItemHeight?: number;
|
|
770
|
+
minItemWidth?: number;
|
|
771
|
+
headerHeight?: number;
|
|
757
772
|
};
|
|
758
773
|
};
|
|
759
774
|
|
|
@@ -1553,7 +1568,7 @@ declare namespace OpenFin {
|
|
|
1553
1568
|
topic: string,
|
|
1554
1569
|
payload: unknown,
|
|
1555
1570
|
senderIdentity: ProviderIdentity | OpenFin.ClientIdentity
|
|
1556
|
-
) => Promise<unknown> |unknown;
|
|
1571
|
+
) => Promise<unknown> | unknown;
|
|
1557
1572
|
|
|
1558
1573
|
export type ErrorMiddleware = (
|
|
1559
1574
|
topic: string,
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export declare class Layout extends Base {
|
|
|
26
26
|
* @return { Promise<void> }
|
|
27
27
|
* @tutorial Layout.replace
|
|
28
28
|
*/
|
|
29
|
-
replace: (layout:
|
|
29
|
+
replace: (layout: OpenFin.LayoutOptions) => Promise<void>;
|
|
30
30
|
/**
|
|
31
31
|
* Replaces the specified view with a view with the provided configuration.
|
|
32
32
|
* The old view is stripped of its listeners and either closed or attached to the provider window
|