flexlayout-react 0.9.0 → 0.9.2
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/README.md +5 -5
- package/dist/index.js +442 -400
- package/package.json +23 -22
- package/style/_base.scss +8 -3
- package/style/_themes.scss +0 -1
- package/style/alpha_dark.css +6 -3
- package/style/alpha_dark.css.map +1 -1
- package/style/alpha_light.css +6 -3
- package/style/alpha_light.css.map +1 -1
- package/style/alpha_rounded.css +6 -4
- package/style/alpha_rounded.css.map +1 -1
- package/style/combined.css +6 -4
- package/style/combined.css.map +1 -1
- package/style/dark.css +6 -3
- package/style/dark.css.map +1 -1
- package/style/gray.css +6 -3
- package/style/gray.css.map +1 -1
- package/style/light.css +6 -3
- package/style/light.css.map +1 -1
- package/style/rounded.css +6 -3
- package/style/rounded.css.map +1 -1
- package/style/underline.css +6 -3
- package/style/underline.css.map +1 -1
- package/types/model/IJsonModel.d.ts +2 -2
- package/types/model/Model.d.ts +1 -1
- package/types/model/TabNode.d.ts +8 -5
- package/types/view/BorderButton.d.ts +2 -1
- package/types/view/BorderTab.d.ts +2 -1
- package/types/view/BorderTabSet.d.ts +2 -1
- package/types/view/CSSClassNames.d.ts +2 -1
- package/types/view/{DragContainer.d.ts → DragTabButton.d.ts} +2 -2
- package/types/view/ErrorBoundary.d.ts +1 -1
- package/types/view/FloatWindow.d.ts +2 -1
- package/types/view/I18nLabel.d.ts +1 -1
- package/types/view/Icons.d.ts +11 -11
- package/types/view/Layout.d.ts +17 -15
- package/types/view/Overlay.d.ts +1 -1
- package/types/view/Row.d.ts +2 -1
- package/types/view/Splitter.d.ts +2 -1
- package/types/view/Tab.d.ts +2 -1
- package/types/view/TabButton.d.ts +2 -1
- package/types/view/TabButtonStamp.d.ts +1 -1
- package/types/view/TabContentRenderer.d.ts +1 -1
- package/types/view/TabLayout.d.ts +1 -1
- package/types/view/TabSet.d.ts +2 -1
- package/types/view/Utils.d.ts +9 -1
- package/types/view/layout/BorderContainer.d.ts +1 -1
- package/types/view/layout/EdgeIndicators.d.ts +2 -1
- package/types/view/layout/FloatingWindowContainer.d.ts +2 -1
- package/types/view/layout/LayoutInternal.d.ts +9 -13
package/style/underline.css
CHANGED
|
@@ -72,9 +72,12 @@
|
|
|
72
72
|
bottom: 0;
|
|
73
73
|
position: absolute;
|
|
74
74
|
display: flex;
|
|
75
|
-
overflow: hidden;
|
|
76
75
|
background-color: var(--color-background);
|
|
77
76
|
}
|
|
77
|
+
.flexlayout__layout_metrics {
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: -30000px;
|
|
80
|
+
}
|
|
78
81
|
.flexlayout__layout_overlay {
|
|
79
82
|
left: 0;
|
|
80
83
|
top: 0;
|
|
@@ -91,7 +94,7 @@
|
|
|
91
94
|
flex-direction: column;
|
|
92
95
|
align-items: flex-start;
|
|
93
96
|
}
|
|
94
|
-
.
|
|
97
|
+
.flexlayout__layout_moveables_home {
|
|
95
98
|
visibility: hidden;
|
|
96
99
|
position: absolute;
|
|
97
100
|
width: 100px;
|
|
@@ -693,6 +696,7 @@
|
|
|
693
696
|
}
|
|
694
697
|
.flexlayout__float_window_content {
|
|
695
698
|
position: relative;
|
|
699
|
+
overflow: auto;
|
|
696
700
|
flex-grow: 1;
|
|
697
701
|
display: flex;
|
|
698
702
|
flex-direction: column;
|
|
@@ -725,7 +729,6 @@
|
|
|
725
729
|
}
|
|
726
730
|
.flexlayout__border_sizer {
|
|
727
731
|
position: absolute;
|
|
728
|
-
top: -30000px;
|
|
729
732
|
padding-top: 6px;
|
|
730
733
|
padding-bottom: 5px;
|
|
731
734
|
font-size: var(--font-size);
|
package/style/underline.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["_themes.scss","_base.scss"],"names":[],"mappings":"AAkYQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;;;AC5bR;AAAA;AAAA;AAII;EApBJ;EACA;EACA;EACA;EACA;EAkBQ;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["_themes.scss","_base.scss"],"names":[],"mappings":"AAkYQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;;;AC5bR;AAAA;AAAA;AAII;EApBJ;EACA;EACA;EACA;EACA;EAkBQ;EAEA;;AAEA;EACI;EACA;;AAGJ;EA/BR;EACA;EACA;EACA;EACA;EA6BY;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAGJ;EA7CR;EACA;EACA;EACA;EA4CY;EACA;;AAIR;EApDJ;EACA;EACA;EACA;EAmDQ;;AAGJ;EAzDJ;EACA;EACA;EACA;EAwDQ;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;;AAIR;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;;AAIR;EACI;IACI;IACA;IACA;IACA;;;AAMR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI;EACA;;AAIR;EACI;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EAnMJ;EACA;EACA;EACA;EAkMQ;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EApNR;EACA;EACA;EACA;EAmNY;EACA;EACA;;AAGJ;EACI;;AAGJ;EA/NR;EACA;EACA;EACA;EA8NY;EACA;EACA;;AAGJ;EACI;;AAIA;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EAEI;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;;AAMhB;EACI;;AAGJ;EACI;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EAEI;EACA;EACA;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EAEA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;IACI;;;AAKZ;EACI;EACA;;AAGJ;EACI;IACI;;;AAIR;EACI;EACA;;AAOJ;EACI;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;;AAQR;EACI;IACI;;;AAIR;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;IACI;;;AAaZ;EACI;EACA;EACA;EACA;;AAKZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI;EACA;EACA;;AAKZ;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI;IAEI;;;AAIR;EACI;EACA;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AASJ;EACI;IACI;;;AAIR;EACI;;AAIR;EACI;EACA;EACA;;AAEA;EAEI;EACA;EACA;;AAGJ;EAEI;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;IACI;;;AAMR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAYhB;EACI;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAIR;EACI;IACI;;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKJ;EACI;;AAGJ;EA/wBR;EACA;EACA;EACA;EACA;;AAgxBI;EApxBJ;EACA;EACA;EACA;EACA;EAkxBQ;EACA;;AAGJ;EACI;EACA;;AAOJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;EACA;EACA;;AAEA;EACI;IACI;IACA;;;;AAMhB;ADxXA;AAAA;AAAA;AAKI;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EAEI;EACA;EACA;EACA;;AAGJ;EACI","file":"underline.css"}
|
|
@@ -196,7 +196,7 @@ export interface IGlobalAttributes {
|
|
|
196
196
|
/**
|
|
197
197
|
Value for TabNode attribute enablePopout if not overridden
|
|
198
198
|
|
|
199
|
-
enable popout (in popout capable browser)
|
|
199
|
+
enable window popout (in popout capable browser), to show an icon in the tabset header also set the enablePopoutIcon attribute
|
|
200
200
|
|
|
201
201
|
Default: false
|
|
202
202
|
*/
|
|
@@ -669,7 +669,7 @@ export interface ITabAttributes {
|
|
|
669
669
|
*/
|
|
670
670
|
enableDrag?: boolean;
|
|
671
671
|
/**
|
|
672
|
-
enable popout (in popout capable browser)
|
|
672
|
+
enable window popout (in popout capable browser), to show an icon in the tabset header also set the enablePopoutIcon attribute
|
|
673
673
|
|
|
674
674
|
Default: inherited from Global attribute tabEnablePopout (default false)
|
|
675
675
|
*/
|
package/types/model/Model.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare class Model {
|
|
|
46
46
|
* Update the node tree by performing the given action,
|
|
47
47
|
* Actions should be generated via static methods on the Actions class
|
|
48
48
|
* @param action the action to perform
|
|
49
|
-
* @returns added Node for Actions.
|
|
49
|
+
* @returns added Node for Actions.addTab, layoutId for createPopout
|
|
50
50
|
*/
|
|
51
51
|
doAction(action: Action): any;
|
|
52
52
|
/**
|
package/types/model/TabNode.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ export declare class TabNode extends Node implements IDraggable {
|
|
|
9
9
|
/** @internal */
|
|
10
10
|
static fromJson(json: IJsonTabNode, model: Model, addToModel?: boolean): TabNode;
|
|
11
11
|
private tabRect;
|
|
12
|
-
private moveableElement;
|
|
13
12
|
private renderedName?;
|
|
14
13
|
private extra;
|
|
15
14
|
private visible;
|
|
16
15
|
private rendered;
|
|
16
|
+
private moveableElement;
|
|
17
|
+
private tabStamp;
|
|
17
18
|
private scrollTop?;
|
|
18
19
|
private scrollLeft?;
|
|
19
|
-
private tabStamp;
|
|
20
20
|
/** @internal */
|
|
21
21
|
constructor(model: Model, json: IJsonTabNode, addToModel?: boolean);
|
|
22
22
|
getName(): string;
|
|
@@ -90,9 +90,12 @@ export declare class TabNode extends Node implements IDraggable {
|
|
|
90
90
|
/** @internal */
|
|
91
91
|
setTabStamp(stamp: HTMLElement | null): void;
|
|
92
92
|
/** @internal */
|
|
93
|
-
getMoveableElement(): HTMLElement
|
|
94
|
-
/**
|
|
95
|
-
|
|
93
|
+
getMoveableElement(): HTMLElement;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* This method is exposed to allow the workaround for issue: #524
|
|
97
|
+
*/
|
|
98
|
+
setMoveableElement(element: HTMLElement): void;
|
|
96
99
|
/** @internal */
|
|
97
100
|
setRenderedName(name: string): void;
|
|
98
101
|
/** @internal */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { TabNode } from "../model/TabNode";
|
|
2
3
|
import { IIcons } from "../view/layout/LayoutTypes";
|
|
3
4
|
import { LayoutController } from "../view/layout/LayoutInternal";
|
|
@@ -11,4 +12,4 @@ export interface IBorderButtonProps {
|
|
|
11
12
|
path: string;
|
|
12
13
|
}
|
|
13
14
|
/** @internal */
|
|
14
|
-
export declare const BorderButton: (props: IBorderButtonProps) =>
|
|
15
|
+
export declare const BorderButton: (props: IBorderButtonProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
2
3
|
import { BorderNode } from "../model/BorderNode";
|
|
3
4
|
/** @internal */
|
|
@@ -6,4 +7,4 @@ export interface IBorderTabProps {
|
|
|
6
7
|
borderNode: BorderNode;
|
|
7
8
|
show: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare function BorderTab(props: IBorderTabProps):
|
|
10
|
+
export declare function BorderTab(props: IBorderTabProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { BorderNode } from "../model/BorderNode";
|
|
2
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
3
4
|
/** @internal */
|
|
@@ -7,4 +8,4 @@ export interface IBorderTabSetProps {
|
|
|
7
8
|
size: number;
|
|
8
9
|
}
|
|
9
10
|
/** @internal */
|
|
10
|
-
export declare const BorderTabSet: (props: IBorderTabSetProps) =>
|
|
11
|
+
export declare const BorderTabSet: (props: IBorderTabSetProps) => React.JSX.Element;
|
|
@@ -35,7 +35,8 @@ export declare enum CLASSES {
|
|
|
35
35
|
FLEXLAYOUT__FLOAT_WINDOW_CONTENT = "flexlayout__float_window_content",
|
|
36
36
|
FLEXLAYOUT__FLOATING_WINDOW_CONTENT = "flexlayout__floating_window_content",
|
|
37
37
|
FLEXLAYOUT__LAYOUT = "flexlayout__layout",
|
|
38
|
-
|
|
38
|
+
FLEXLAYOUT__LAYOUT_METRICS = "flexlayout__layout_metrics",
|
|
39
|
+
FLEXLAYOUT__LAYOUT_MOVEABLES_HOME = "flexlayout__layout_moveables_home",
|
|
39
40
|
FLEXLAYOUT__LAYOUT_OVERLAY = "flexlayout__layout_overlay",
|
|
40
41
|
FLEXLAYOUT__LAYOUT_TAB_STAMPS = "flexlayout__layout_tab_stamps",
|
|
41
42
|
FLEXLAYOUT__LAYOUT_MAIN = "flexlayout__layout_main",
|
|
@@ -2,10 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
import { TabNode } from "../model/TabNode";
|
|
3
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
4
4
|
/** @internal */
|
|
5
|
-
export interface
|
|
5
|
+
export interface IDragTabButton {
|
|
6
6
|
tabNode: TabNode;
|
|
7
7
|
controller: LayoutController;
|
|
8
8
|
dragging: boolean;
|
|
9
9
|
}
|
|
10
10
|
/** @internal */
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const DragTabButton: React.MemoExoticComponent<(props: IDragTabButton) => React.JSX.Element>;
|
|
@@ -18,5 +18,5 @@ export declare class ErrorBoundary extends React.Component<IErrorBoundaryProps,
|
|
|
18
18
|
};
|
|
19
19
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
20
20
|
retry: () => void;
|
|
21
|
-
render(): string | number | bigint | boolean |
|
|
21
|
+
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
22
22
|
}
|
|
@@ -5,7 +5,8 @@ import { Layout } from "../model/Layout";
|
|
|
5
5
|
export interface IFloatWindowProps {
|
|
6
6
|
controller: LayoutController;
|
|
7
7
|
layout: Layout;
|
|
8
|
+
zIndex: number;
|
|
8
9
|
onCloseLayout: (layout: Layout) => void;
|
|
9
10
|
}
|
|
10
11
|
/** @internal */
|
|
11
|
-
export declare const FloatWindow: (props: React.PropsWithChildren<IFloatWindowProps>) =>
|
|
12
|
+
export declare const FloatWindow: (props: React.PropsWithChildren<IFloatWindowProps>) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ export declare enum I18nLabel {
|
|
|
3
3
|
Close_Tabset = "Close tab set",
|
|
4
4
|
Active_Tabset = "Active tab set",
|
|
5
5
|
Move_Tabset = "Move tab set",
|
|
6
|
-
Move_Tabs = "Move tabs(?)",
|
|
6
|
+
Move_Tabs = "Move tabs (?)",
|
|
7
7
|
Maximize = "Maximize tab set",
|
|
8
8
|
Restore = "Restore tab set",
|
|
9
9
|
Popout_Tab = "Popout selected tab",
|
package/types/view/Icons.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const CloseIcon: () => import("react
|
|
2
|
-
export declare const MaximizeIcon: () => import("react
|
|
3
|
-
export declare const OverflowIcon: () => import("react
|
|
4
|
-
export declare const EdgeIcon: () => import("react
|
|
5
|
-
export declare const PopoutIcon: () => import("react
|
|
6
|
-
export declare const PopoutFloatIcon: () => import("react
|
|
7
|
-
export declare const RestoreIcon: () => import("react
|
|
8
|
-
export declare const AsterickIcon: () => import("react
|
|
9
|
-
export declare const AddIcon: () => import("react
|
|
10
|
-
export declare const MenuIcon: () => import("react
|
|
11
|
-
export declare const SettingsIcon: (props: React.SVGProps<SVGSVGElement>) => import("react
|
|
1
|
+
export declare const CloseIcon: () => import("react").JSX.Element;
|
|
2
|
+
export declare const MaximizeIcon: () => import("react").JSX.Element;
|
|
3
|
+
export declare const OverflowIcon: () => import("react").JSX.Element;
|
|
4
|
+
export declare const EdgeIcon: () => import("react").JSX.Element;
|
|
5
|
+
export declare const PopoutIcon: () => import("react").JSX.Element;
|
|
6
|
+
export declare const PopoutFloatIcon: () => import("react").JSX.Element;
|
|
7
|
+
export declare const RestoreIcon: () => import("react").JSX.Element;
|
|
8
|
+
export declare const AsterickIcon: () => import("react").JSX.Element;
|
|
9
|
+
export declare const AddIcon: () => import("react").JSX.Element;
|
|
10
|
+
export declare const MenuIcon: () => import("react").JSX.Element;
|
|
11
|
+
export declare const SettingsIcon: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
package/types/view/Layout.d.ts
CHANGED
|
@@ -54,16 +54,18 @@ export interface ILayoutProps {
|
|
|
54
54
|
popoutWindowName?: string;
|
|
55
55
|
/** the transition speed of the drag rectangle from one position to another, default is 0.3 secs */
|
|
56
56
|
tabDragSpeed?: number;
|
|
57
|
+
/** set to constrain floating panels to within the layout control */
|
|
58
|
+
constrainFloatPanels?: boolean;
|
|
57
59
|
}
|
|
58
60
|
export interface ILayoutApi {
|
|
59
61
|
/** re-render the layout */
|
|
60
62
|
redraw(): void;
|
|
61
63
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
* Adds a new tab to the given tabset
|
|
65
|
+
* @param tabsetId the id of the tabset where the new tab will be added
|
|
66
|
+
* @param json the json for the new tab node
|
|
67
|
+
* @returns the added tab node or undefined
|
|
68
|
+
*/
|
|
67
69
|
addTabToTabSet(tabsetId: string, json: IJsonTabNode): TabNode | undefined;
|
|
68
70
|
/**
|
|
69
71
|
* Adds a new tab by dragging an item to the drop location, must be called from within an HTML
|
|
@@ -82,18 +84,18 @@ export interface ILayoutApi {
|
|
|
82
84
|
*/
|
|
83
85
|
moveTabWithDragAndDrop(event: DragEvent, node: (TabNode | TabSetNode)): void;
|
|
84
86
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
* Adds a new tab to the active tabset (if there is one)
|
|
88
|
+
* @param json the json for the new tab node
|
|
89
|
+
* @returns the added tab node or undefined
|
|
90
|
+
*/
|
|
89
91
|
addTabToActiveTabSet(json: IJsonTabNode): TabNode | undefined;
|
|
90
92
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
* Sets the drag image from a react component for a drag event
|
|
94
|
+
* @param event the drag event
|
|
95
|
+
* @param component the react component to be used for the drag image
|
|
96
|
+
* @param x the x position of the drag cursor on the image
|
|
97
|
+
* @param y the x position of the drag cursor on the image
|
|
98
|
+
*/
|
|
97
99
|
setDragComponent(event: DragEvent, component: React.ReactNode, x: number, y: number): void;
|
|
98
100
|
/** Get the root div element of the layout */
|
|
99
101
|
getRootDiv(): HTMLDivElement | null | undefined;
|
package/types/view/Overlay.d.ts
CHANGED
package/types/view/Row.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { RowNode } from "../model/RowNode";
|
|
2
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
3
4
|
/** @internal */
|
|
@@ -6,4 +7,4 @@ export interface IRowProps {
|
|
|
6
7
|
rowNode: RowNode;
|
|
7
8
|
}
|
|
8
9
|
/** @internal */
|
|
9
|
-
export declare const Row: (props: IRowProps) =>
|
|
10
|
+
export declare const Row: (props: IRowProps) => React.JSX.Element;
|
package/types/view/Splitter.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { BorderNode } from "../model/BorderNode";
|
|
2
3
|
import { RowNode } from "../model/RowNode";
|
|
3
4
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
@@ -9,4 +10,4 @@ export interface ISplitterProps {
|
|
|
9
10
|
horizontal: boolean;
|
|
10
11
|
}
|
|
11
12
|
/** @internal */
|
|
12
|
-
export declare const Splitter: (props: ISplitterProps) =>
|
|
13
|
+
export declare const Splitter: (props: ISplitterProps) => React.JSX.Element;
|
package/types/view/Tab.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { TabNode } from "../model/TabNode";
|
|
2
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
3
4
|
/** @internal */
|
|
@@ -7,4 +8,4 @@ export interface ITabProps {
|
|
|
7
8
|
selected: boolean;
|
|
8
9
|
}
|
|
9
10
|
/** @internal */
|
|
10
|
-
export declare const Tab: (props: ITabProps) =>
|
|
11
|
+
export declare const Tab: (props: ITabProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { TabNode } from "../model/TabNode";
|
|
2
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
3
4
|
/** @internal */
|
|
@@ -8,4 +9,4 @@ export interface ITabButtonProps {
|
|
|
8
9
|
path: string;
|
|
9
10
|
}
|
|
10
11
|
/** @internal */
|
|
11
|
-
export declare const TabButton: (props: ITabButtonProps) =>
|
|
12
|
+
export declare const TabButton: (props: ITabButtonProps) => React.JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface ITabButtonStampProps {
|
|
|
6
6
|
controller: LayoutController;
|
|
7
7
|
}
|
|
8
8
|
/** @internal */
|
|
9
|
-
export declare const TabButtonStamp: (props: ITabButtonStampProps) => import("react
|
|
9
|
+
export declare const TabButtonStamp: (props: ITabButtonStampProps) => import("react").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface ITabContentRenderProps {
|
|
|
11
11
|
fullRedrawRevision: number;
|
|
12
12
|
parentRedrawRevision: number;
|
|
13
13
|
}
|
|
14
|
-
export declare const TabContentRenderer: React.MemoExoticComponent<({ controller, tabNode }: ITabContentRenderProps) =>
|
|
14
|
+
export declare const TabContentRenderer: React.MemoExoticComponent<({ controller, tabNode }: ITabContentRenderProps) => React.JSX.Element>;
|
|
@@ -9,4 +9,4 @@ export interface ITabLayoutProps {
|
|
|
9
9
|
* @category Components
|
|
10
10
|
* @group Main Layout
|
|
11
11
|
*/
|
|
12
|
-
export declare const TabLayout: (props: ITabLayoutProps) => import("react
|
|
12
|
+
export declare const TabLayout: (props: ITabLayoutProps) => import("react").JSX.Element | undefined;
|
package/types/view/TabSet.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { TabSetNode } from "../model/TabSetNode";
|
|
2
3
|
import { LayoutController } from "./layout/LayoutInternal";
|
|
3
4
|
/** @internal */
|
|
@@ -6,4 +7,4 @@ export interface ITabSetProps {
|
|
|
6
7
|
tabsetNode: TabSetNode;
|
|
7
8
|
}
|
|
8
9
|
/** @internal */
|
|
9
|
-
export declare const TabSet: (props: ITabSetProps) =>
|
|
10
|
+
export declare const TabSet: (props: ITabSetProps) => React.JSX.Element;
|
package/types/view/Utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Layout } from "../model/Layout";
|
|
|
7
7
|
export declare function isDesktop(): boolean;
|
|
8
8
|
/** @internal */
|
|
9
9
|
export declare function getRenderStateEx(controller: LayoutController, tabNode: TabNode, iconAngle?: number): {
|
|
10
|
-
leading:
|
|
10
|
+
leading: React.JSX.Element | undefined;
|
|
11
11
|
content: string | Iterable<React.ReactNode>;
|
|
12
12
|
name: string;
|
|
13
13
|
buttons: React.ReactNode[];
|
|
@@ -22,3 +22,11 @@ export declare function findParentLayout(layout: Layout): Layout | undefined;
|
|
|
22
22
|
export declare function canDockToLayout(node: Node, layout: Layout): boolean;
|
|
23
23
|
export declare function copyInlineStyles(source: HTMLElement, target: HTMLElement): boolean;
|
|
24
24
|
export declare function isSafari(): boolean;
|
|
25
|
+
export declare function getPageMetrics(): {
|
|
26
|
+
scrollTop: number;
|
|
27
|
+
scrollLeft: number;
|
|
28
|
+
fullHeight: number;
|
|
29
|
+
fullWidth: number;
|
|
30
|
+
viewportHeight: number;
|
|
31
|
+
viewportWidth: number;
|
|
32
|
+
};
|
|
@@ -4,4 +4,4 @@ export interface IBorderContainerProps {
|
|
|
4
4
|
controller: LayoutController;
|
|
5
5
|
inner: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const BorderContainer: ({ controller, inner }: IBorderContainerProps) =>
|
|
7
|
+
export declare const BorderContainer: ({ controller, inner }: IBorderContainerProps) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { LayoutController } from "./LayoutInternal";
|
|
2
3
|
export interface IEdgeIndicatorsProps {
|
|
3
4
|
controller: LayoutController;
|
|
4
5
|
}
|
|
5
|
-
export declare const EdgeIndicators: ({ controller }: IEdgeIndicatorsProps) =>
|
|
6
|
+
export declare const EdgeIndicators: ({ controller }: IEdgeIndicatorsProps) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { LayoutController } from "./LayoutInternal";
|
|
2
3
|
export interface IFloatingWindowContainerProps {
|
|
3
4
|
controller: LayoutController;
|
|
4
5
|
}
|
|
5
|
-
export declare const FloatingWindowContainer: ({ controller }: IFloatingWindowContainerProps) =>
|
|
6
|
+
export declare const FloatingWindowContainer: ({ controller }: IFloatingWindowContainerProps) => React.JSX.Element;
|
|
@@ -27,10 +27,10 @@ export interface ILayoutInternalState {
|
|
|
27
27
|
showEdges: boolean;
|
|
28
28
|
showOverlay: boolean;
|
|
29
29
|
calculatedBorderBarSize: number;
|
|
30
|
+
calculatedSplitterSize: number;
|
|
30
31
|
layoutRedrawRevision: number;
|
|
31
32
|
fullRedrawRevision: number;
|
|
32
33
|
showHiddenBorder: DockLocation;
|
|
33
|
-
splitterSize: number;
|
|
34
34
|
}
|
|
35
35
|
/** @internal */
|
|
36
36
|
export declare const LayoutInternal: React.ForwardRefExoticComponent<ILayoutInternalProps & React.RefAttributes<LayoutController>>;
|
|
@@ -41,12 +41,12 @@ export declare class LayoutController {
|
|
|
41
41
|
private _state;
|
|
42
42
|
private _setState;
|
|
43
43
|
private _layoutRef;
|
|
44
|
-
private
|
|
44
|
+
private _moveablesHomeRef;
|
|
45
45
|
private _findBorderBarSizeRef;
|
|
46
|
+
private _findSplitterSizeRef;
|
|
46
47
|
private _mainRef;
|
|
47
48
|
private _orderedTabIds;
|
|
48
49
|
private _orderedTabMoveableIds;
|
|
49
|
-
private _moveableElementMap;
|
|
50
50
|
private _currentDocument?;
|
|
51
51
|
private _currentWindow?;
|
|
52
52
|
private _supportsPopout;
|
|
@@ -60,15 +60,10 @@ export declare class LayoutController {
|
|
|
60
60
|
private _cachedLayoutDOMRect;
|
|
61
61
|
private _reLayout;
|
|
62
62
|
constructor(props: ILayoutInternalProps, state: ILayoutInternalState, setState: (update: Partial<ILayoutInternalState> | ((prevState: ILayoutInternalState, props: ILayoutInternalProps) => Partial<ILayoutInternalState>)) => void);
|
|
63
|
-
renderLayout():
|
|
63
|
+
renderLayout(): React.JSX.Element;
|
|
64
64
|
renderTabContainers(): Map<string, React.ReactNode>;
|
|
65
65
|
renderTabContents(): Map<string, React.ReactNode>;
|
|
66
|
-
|
|
67
|
-
renderTabStamps(): React.ReactNode[];
|
|
68
|
-
createMoveableDivs(): void;
|
|
69
|
-
getMoveablesDiv(): HTMLDivElement | null;
|
|
70
|
-
getMoveableElement(id: string): HTMLElement;
|
|
71
|
-
tidyMoveablesMap(): void;
|
|
66
|
+
renderDragTabButtons(): React.ReactNode[];
|
|
72
67
|
redrawLayout(): void;
|
|
73
68
|
redrawLayoutAndTabContent(isLayoutRevision?: boolean): void;
|
|
74
69
|
doAction(action: Action): Node | undefined;
|
|
@@ -80,6 +75,7 @@ export declare class LayoutController {
|
|
|
80
75
|
addTabWithDragAndDrop(event: DragEvent, json: IJsonTabNode, onDrop?: (node?: Node, event?: React.DragEvent<HTMLElement>) => void): void;
|
|
81
76
|
moveTabWithDragAndDrop(event: DragEvent, node: (TabNode | TabSetNode)): void;
|
|
82
77
|
setDragComponent(event: DragEvent, component: React.ReactNode, x: number, y: number): void;
|
|
78
|
+
getMoveablesHome(): HTMLDivElement | null;
|
|
83
79
|
getProps(): ILayoutInternalProps;
|
|
84
80
|
setProps(value: ILayoutInternalProps): void;
|
|
85
81
|
getState(): ILayoutInternalState;
|
|
@@ -88,10 +84,11 @@ export declare class LayoutController {
|
|
|
88
84
|
setSetState(value: (update: Partial<ILayoutInternalState> | ((prevState: ILayoutInternalState, props: ILayoutInternalProps) => Partial<ILayoutInternalState>)) => void): void;
|
|
89
85
|
getLayoutRef(): React.RefObject<HTMLDivElement | null>;
|
|
90
86
|
setLayoutRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
91
|
-
|
|
92
|
-
setMoveablesRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
87
|
+
setMoveablesHomeRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
93
88
|
getFindBorderBarSizeRef(): React.RefObject<HTMLDivElement | null>;
|
|
94
89
|
setFindBorderBarSizeRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
90
|
+
getFindSplitterSizeRef(): React.RefObject<HTMLDivElement | null>;
|
|
91
|
+
setFindSplitterSizeRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
95
92
|
getMainRef(): React.RefObject<HTMLDivElement | null>;
|
|
96
93
|
setMainRef(value: React.RefObject<HTMLDivElement | null>): void;
|
|
97
94
|
getOrderedTabIds(): string[];
|
|
@@ -114,7 +111,6 @@ export declare class LayoutController {
|
|
|
114
111
|
isReLayout(): boolean;
|
|
115
112
|
setReLayout(value: boolean): void;
|
|
116
113
|
getBoundingClientRect(div: HTMLElement): Rect;
|
|
117
|
-
getMoveableContainer(): HTMLDivElement | null;
|
|
118
114
|
getClassName: (defaultClassName: string) => string;
|
|
119
115
|
getDomRect(): Rect;
|
|
120
116
|
getRootDiv(): HTMLDivElement | null;
|