@aptre/flex-layout 0.2.4 → 0.3.0-beta.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 +154 -311
- package/dist/DockLocation.d.ts +2 -2
- package/dist/DropInfo.d.ts +4 -4
- package/dist/I18nLabel.d.ts +7 -9
- package/dist/Rect.d.ts +14 -1
- package/dist/Types.d.ts +16 -0
- package/dist/index.d.ts +21 -22
- package/dist/index.mjs +4529 -4618
- package/dist/model/Actions.d.ts +40 -23
- package/dist/model/BorderNode.d.ts +10 -14
- package/dist/model/BorderSet.d.ts +1 -2
- package/dist/model/IJsonModel.d.ts +697 -35
- package/dist/model/LayoutWindow.d.ts +28 -0
- package/dist/model/Model.d.ts +29 -24
- package/dist/model/Node.d.ts +5 -5
- package/dist/model/RowNode.d.ts +5 -6
- package/dist/model/TabNode.d.ts +15 -8
- package/dist/model/TabSetNode.d.ts +13 -10
- package/dist/view/BorderTab.d.ts +2 -0
- package/dist/view/Icons.d.ts +1 -0
- package/dist/view/Layout.d.ts +95 -116
- package/dist/view/Row.d.ts +1 -0
- package/dist/view/SizeTracker.d.ts +10 -0
- package/dist/view/Utils.d.ts +11 -1
- package/package.json +21 -25
- package/style/_base.scss +138 -32
- package/style/dark.css +145 -40
- package/style/dark.css.map +1 -1
- package/style/dark.scss +3 -1
- package/style/gray.css +144 -39
- package/style/gray.css.map +1 -1
- package/style/gray.scss +2 -0
- package/style/light.css +147 -42
- package/style/light.css.map +1 -1
- package/style/light.scss +4 -2
- package/style/rounded.css +697 -0
- package/style/rounded.css.map +1 -0
- package/style/rounded.scss +193 -0
- package/style/underline.css +145 -40
- package/style/underline.css.map +1 -1
- package/style/underline.scss +2 -0
- package/tsconfig.json +3 -3
- package/typedoc/assets/hierarchy.js +1 -0
- package/typedoc/assets/highlight.css +18 -18
- package/typedoc/assets/icons.js +17 -14
- package/typedoc/assets/icons.svg +1 -1
- package/typedoc/assets/main.js +5 -4
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/assets/style.css +1422 -1224
- package/typedoc/classes/Action.html +2 -2
- package/typedoc/classes/Actions.html +65 -52
- package/typedoc/classes/BorderNode.html +26 -30
- package/typedoc/classes/BorderSet.html +2 -2
- package/typedoc/classes/DockLocation.html +9 -9
- package/typedoc/classes/DropInfo.html +3 -3
- package/typedoc/classes/Layout.html +99 -83
- package/typedoc/classes/LayoutWindow.html +12 -0
- package/typedoc/classes/Model.html +44 -40
- package/typedoc/classes/Node.html +12 -12
- package/typedoc/classes/Orientation.html +5 -5
- package/typedoc/classes/Rect.html +18 -11
- package/typedoc/classes/RowNode.html +16 -17
- package/typedoc/classes/TabNode.html +40 -34
- package/typedoc/classes/TabSetNode.html +40 -41
- package/typedoc/enums/CLASSES.html +94 -78
- package/typedoc/enums/I18nLabel.html +11 -13
- package/typedoc/enums/ICloseType.html +4 -4
- package/typedoc/hierarchy.html +1 -1
- package/typedoc/index.html +1 -51
- package/typedoc/interfaces/IBorderAttributes.html +32 -9
- package/typedoc/interfaces/IDraggable.html +1 -1
- package/typedoc/interfaces/IDropTarget.html +1 -1
- package/typedoc/interfaces/IGlobalAttributes.html +190 -47
- package/typedoc/interfaces/IIcons.html +5 -4
- package/typedoc/interfaces/IJsonBorderNode.html +32 -9
- package/typedoc/interfaces/IJsonModel.html +3 -2
- package/typedoc/interfaces/IJsonPopout.html +3 -0
- package/typedoc/interfaces/IJsonRect.html +5 -0
- package/typedoc/interfaces/IJsonRowNode.html +8 -5
- package/typedoc/interfaces/IJsonTabNode.html +73 -15
- package/typedoc/interfaces/IJsonTabSetNode.html +68 -23
- package/typedoc/interfaces/ILayoutProps.html +36 -22
- package/typedoc/interfaces/IRowAttributes.html +8 -5
- package/typedoc/interfaces/ITabAttributes.html +73 -15
- package/typedoc/interfaces/ITabRenderValues.html +5 -3
- package/typedoc/interfaces/ITabSetAttributes.html +63 -24
- package/typedoc/interfaces/ITabSetRenderValues.html +8 -7
- package/typedoc/types/DragRectRenderCallback.html +1 -1
- package/typedoc/types/IBorderLocation.html +1 -1
- package/typedoc/types/ITabLocation.html +1 -1
- package/typedoc/types/NodeMouseEvent.html +1 -1
- package/typedoc/types/ShowOverflowMenuCallback.html +1 -1
- package/typedoc/types/TabSetPlaceHolderCallback.html +1 -1
- package/typedoc/variables/FlexLayoutVersion.html +1 -0
- package/dist/DragDrop.d.ts +0 -15
- package/dist/model/SplitterNode.d.ts +0 -5
- package/typedoc/classes/DragDrop.html +0 -10
- package/typedoc/classes/SplitterNode.html +0 -13
- package/typedoc/interfaces/ICustomDropDestination.html +0 -10
- package/typedoc/interfaces/IFontValues.html +0 -5
- package/typedoc/interfaces/ILayoutState.html +0 -9
- package/typedoc/interfaces/ITitleObject.html +0 -3
- package/typedoc/types/CustomDragCallback.html +0 -1
- package/typedoc/types/FloatingTabPlaceholderRenderCallback.html +0 -1
- package/typedoc/types/IInsets.html +0 -1
- package/typedoc/types/IconFactory.html +0 -1
- package/typedoc/types/TitleFactory.html +0 -1
- /package/dist/{PopupMenu.d.ts → view/DragContainer.d.ts} +0 -0
- /package/dist/view/{FloatingWindow.d.ts → Overlay.d.ts} +0 -0
- /package/dist/view/{FloatingWindowTab.d.ts → PopoutWindow.d.ts} +0 -0
- /package/dist/view/{TabFloating.d.ts → PopupMenu.d.ts} +0 -0
package/dist/model/Actions.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DockLocation } from "../DockLocation
|
|
2
|
-
import { Action } from "./Action
|
|
1
|
+
import { DockLocation } from "../DockLocation";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
import { IJsonRect, IJsonRowNode } from "./IJsonModel";
|
|
3
4
|
/**
|
|
4
5
|
* The Action creator class for FlexLayout model actions
|
|
5
6
|
*/
|
|
@@ -11,13 +12,15 @@ export declare class Actions {
|
|
|
11
12
|
static RENAME_TAB: string;
|
|
12
13
|
static SELECT_TAB: string;
|
|
13
14
|
static SET_ACTIVE_TABSET: string;
|
|
14
|
-
static
|
|
15
|
+
static ADJUST_WEIGHTS: string;
|
|
15
16
|
static ADJUST_BORDER_SPLIT: string;
|
|
16
17
|
static MAXIMIZE_TOGGLE: string;
|
|
17
18
|
static UPDATE_MODEL_ATTRIBUTES: string;
|
|
18
19
|
static UPDATE_NODE_ATTRIBUTES: string;
|
|
19
|
-
static
|
|
20
|
-
static
|
|
20
|
+
static POPOUT_TAB: string;
|
|
21
|
+
static POPOUT_TABSET: string;
|
|
22
|
+
static CLOSE_WINDOW: string;
|
|
23
|
+
static CREATE_WINDOW: string;
|
|
21
24
|
/**
|
|
22
25
|
* Adds a tab node to the given tabset node
|
|
23
26
|
* @param json the json for the new tab node e.g {type:"tab", component:"table"}
|
|
@@ -40,7 +43,7 @@ export declare class Actions {
|
|
|
40
43
|
static moveNode(fromNodeId: string, toNodeId: string, location: DockLocation, index: number, select?: boolean): Action;
|
|
41
44
|
/**
|
|
42
45
|
* Deletes a tab node from the layout
|
|
43
|
-
* @param
|
|
46
|
+
* @param tabNodeId the id of the tab node to delete
|
|
44
47
|
* @returns {Action} the action
|
|
45
48
|
*/
|
|
46
49
|
static deleteTab(tabNodeId: string): Action;
|
|
@@ -68,30 +71,21 @@ export declare class Actions {
|
|
|
68
71
|
* @param tabsetNodeId the id of the tabset node to set as active
|
|
69
72
|
* @returns {Action} the action
|
|
70
73
|
*/
|
|
71
|
-
static setActiveTabset(tabsetNodeId: string | undefined): Action;
|
|
74
|
+
static setActiveTabset(tabsetNodeId: string | undefined, windowId?: string | undefined): Action;
|
|
72
75
|
/**
|
|
73
|
-
* Adjust the splitter
|
|
74
|
-
* @
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @param splitSpec an object the defines the new split between two tabsets, see example below.
|
|
76
|
+
* Adjust the weights of a row, used when the splitter is moved
|
|
77
|
+
* @param nodeId the row node whose childrens weights are being adjusted
|
|
78
|
+
* @param weights an array of weights to be applied to the children
|
|
78
79
|
* @returns {Action} the action
|
|
79
80
|
*/
|
|
80
|
-
static
|
|
81
|
-
node1Id: string;
|
|
82
|
-
weight1: number;
|
|
83
|
-
pixelWidth1: number;
|
|
84
|
-
node2Id: string;
|
|
85
|
-
weight2: number;
|
|
86
|
-
pixelWidth2: number;
|
|
87
|
-
}): Action;
|
|
81
|
+
static adjustWeights(nodeId: string, weights: number[]): Action;
|
|
88
82
|
static adjustBorderSplit(nodeId: string, pos: number): Action;
|
|
89
83
|
/**
|
|
90
84
|
* Maximizes the given tabset
|
|
91
85
|
* @param tabsetNodeId the id of the tabset to maximize
|
|
92
86
|
* @returns {Action} the action
|
|
93
87
|
*/
|
|
94
|
-
static maximizeToggle(tabsetNodeId: string): Action;
|
|
88
|
+
static maximizeToggle(tabsetNodeId: string, windowId?: string | undefined): Action;
|
|
95
89
|
/**
|
|
96
90
|
* Updates the global model jsone attributes
|
|
97
91
|
* @param attributes the json for the model attributes to update (merge into the existing attributes)
|
|
@@ -105,6 +99,29 @@ export declare class Actions {
|
|
|
105
99
|
* @returns {Action} the action
|
|
106
100
|
*/
|
|
107
101
|
static updateNodeAttributes(nodeId: string, attributes: any): Action;
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Pops out the given tab node into a new browser window
|
|
104
|
+
* @param nodeId the tab node to popout
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
static popoutTab(nodeId: string): Action;
|
|
108
|
+
/**
|
|
109
|
+
* Pops out the given tab set node into a new browser window
|
|
110
|
+
* @param nodeId the tab set node to popout
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
static popoutTabset(nodeId: string): Action;
|
|
114
|
+
/**
|
|
115
|
+
* Closes the popout window
|
|
116
|
+
* @param windowId the id of the popout window to close
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
static closeWindow(windowId: string): Action;
|
|
120
|
+
/**
|
|
121
|
+
* Creates a new empty popout window with the given layout
|
|
122
|
+
* @param layout the json layout for the new window
|
|
123
|
+
* @param rect the window rectangle in screen coordinates
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
static createWindow(layout: IJsonRowNode, rect: IJsonRect): Action;
|
|
110
127
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { DockLocation } from "../DockLocation
|
|
2
|
-
import { Orientation } from "../Orientation
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { DockLocation } from "../DockLocation";
|
|
2
|
+
import { Orientation } from "../Orientation";
|
|
3
|
+
import { IDropTarget } from "./IDropTarget";
|
|
4
|
+
import { IJsonBorderNode } from "./IJsonModel";
|
|
5
|
+
import { Node } from "./Node";
|
|
6
|
+
import { TabNode } from "./TabNode";
|
|
7
7
|
export declare class BorderNode extends Node implements IDropTarget {
|
|
8
8
|
static readonly TYPE = "border";
|
|
9
9
|
getLocation(): DockLocation;
|
|
10
|
-
getTabHeaderRect(): Rect | undefined;
|
|
11
|
-
getRect(): Rect;
|
|
12
|
-
getContentRect(): Rect | undefined;
|
|
13
|
-
isEnableDrop(): boolean;
|
|
14
|
-
isAutoSelectTab(whenOpen?: boolean): boolean;
|
|
15
10
|
getClassName(): string | undefined;
|
|
16
|
-
|
|
11
|
+
isHorizontal(): boolean;
|
|
17
12
|
getSize(): any;
|
|
18
13
|
getMinSize(): number;
|
|
14
|
+
getMaxSize(): number;
|
|
19
15
|
getSelected(): number;
|
|
20
|
-
|
|
16
|
+
isAutoHide(): boolean;
|
|
17
|
+
getSelectedNode(): TabNode | undefined;
|
|
21
18
|
getOrientation(): Orientation;
|
|
22
19
|
/**
|
|
23
20
|
* Returns the config attribute that can be used to store node specific data that
|
|
@@ -29,6 +26,5 @@ export declare class BorderNode extends Node implements IDropTarget {
|
|
|
29
26
|
getConfig(): any;
|
|
30
27
|
isMaximized(): boolean;
|
|
31
28
|
isShowing(): boolean;
|
|
32
|
-
isAutoHide(): boolean;
|
|
33
29
|
toJson(): IJsonBorderNode;
|
|
34
30
|
}
|