@aptre/flex-layout 0.2.0 → 0.2.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/dist/Attribute.d.ts +1 -0
- package/dist/AttributeDefinitions.d.ts +1 -0
- package/dist/DockLocation.d.ts +12 -0
- package/dist/DragDrop.d.ts +15 -0
- package/dist/DropInfo.d.ts +12 -0
- package/dist/I18nLabel.d.ts +14 -0
- package/dist/Orientation.d.ts +7 -0
- package/dist/PopupMenu.d.ts +1 -0
- package/dist/Rect.d.ts +28 -0
- package/dist/Types.d.ts +79 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.mjs +260 -52
- package/dist/model/Action.d.ts +5 -0
- package/dist/model/Actions.d.ts +110 -0
- package/dist/model/BorderNode.d.ts +34 -0
- package/dist/model/BorderSet.d.ts +4 -0
- package/dist/model/ICloseType.d.ts +5 -0
- package/dist/model/IDraggable.d.ts +2 -0
- package/dist/model/IDropTarget.d.ts +2 -0
- package/dist/model/IJsonModel.d.ts +149 -0
- package/dist/model/Model.d.ts +86 -0
- package/dist/model/Node.d.ts +17 -0
- package/dist/model/RowNode.d.ts +11 -0
- package/dist/model/SplitterNode.d.ts +5 -0
- package/dist/model/TabNode.d.ts +37 -0
- package/dist/model/TabSetNode.d.ts +41 -0
- package/dist/model/Utils.d.ts +1 -0
- package/dist/view/BorderButton.d.ts +1 -0
- package/dist/view/BorderTabSet.d.ts +1 -0
- package/dist/view/ErrorBoundary.d.ts +1 -0
- package/dist/view/FloatingWindow.d.ts +1 -0
- package/dist/view/FloatingWindowTab.d.ts +1 -0
- package/dist/view/Icons.d.ts +7 -0
- package/dist/view/Layout.d.ts +161 -0
- package/dist/view/Splitter.d.ts +1 -0
- package/dist/view/Tab.d.ts +1 -0
- package/dist/view/TabButton.d.ts +1 -0
- package/dist/view/TabButtonStamp.d.ts +1 -0
- package/dist/view/TabFloating.d.ts +1 -0
- package/dist/view/TabOverflowHook.d.ts +1 -0
- package/dist/view/TabSet.d.ts +1 -0
- package/dist/view/Utils.d.ts +1 -0
- package/package.json +11 -8
- package/tsconfig.json +1 -0
- package/typedoc/assets/main.js +2 -2
- package/typedoc/assets/style.css +35 -15
- package/typedoc/classes/Action.html +1 -1
- package/typedoc/classes/Actions.html +1 -1
- package/typedoc/classes/BorderNode.html +2 -2
- package/typedoc/classes/BorderSet.html +1 -1
- package/typedoc/classes/DockLocation.html +1 -1
- package/typedoc/classes/DragDrop.html +1 -1
- package/typedoc/classes/DropInfo.html +1 -1
- package/typedoc/classes/Layout.html +13 -13
- package/typedoc/classes/Model.html +1 -1
- package/typedoc/classes/Node.html +2 -2
- package/typedoc/classes/Orientation.html +1 -1
- package/typedoc/classes/Rect.html +1 -1
- package/typedoc/classes/RowNode.html +2 -2
- package/typedoc/classes/SplitterNode.html +2 -2
- package/typedoc/classes/TabNode.html +3 -3
- package/typedoc/classes/TabSetNode.html +2 -2
- package/typedoc/enums/CLASSES.html +1 -1
- package/typedoc/enums/I18nLabel.html +1 -1
- package/typedoc/enums/ICloseType.html +1 -1
- package/typedoc/hierarchy.html +1 -0
- package/typedoc/index.html +1 -1
- package/typedoc/interfaces/IBorderAttributes.html +2 -2
- package/typedoc/interfaces/ICustomDropDestination.html +2 -2
- package/typedoc/interfaces/IDraggable.html +1 -1
- package/typedoc/interfaces/IDropTarget.html +1 -1
- package/typedoc/interfaces/IFontValues.html +2 -2
- package/typedoc/interfaces/IGlobalAttributes.html +2 -2
- package/typedoc/interfaces/IIcons.html +2 -2
- package/typedoc/interfaces/IJsonBorderNode.html +2 -2
- package/typedoc/interfaces/IJsonModel.html +2 -2
- package/typedoc/interfaces/IJsonRowNode.html +2 -2
- package/typedoc/interfaces/IJsonTabNode.html +2 -2
- package/typedoc/interfaces/IJsonTabSetNode.html +2 -2
- package/typedoc/interfaces/ILayoutProps.html +2 -2
- package/typedoc/interfaces/ILayoutState.html +2 -2
- package/typedoc/interfaces/IRowAttributes.html +2 -2
- package/typedoc/interfaces/ITabAttributes.html +2 -2
- package/typedoc/interfaces/ITabRenderValues.html +2 -2
- package/typedoc/interfaces/ITabSetAttributes.html +2 -2
- package/typedoc/interfaces/ITabSetRenderValues.html +2 -2
- package/typedoc/interfaces/ITitleObject.html +2 -2
- package/typedoc/types/CustomDragCallback.html +1 -1
- package/typedoc/types/DragRectRenderCallback.html +1 -1
- package/typedoc/types/FloatingTabPlaceholderRenderCallback.html +1 -1
- package/typedoc/types/IBorderLocation.html +1 -1
- package/typedoc/types/IInsets.html +1 -1
- package/typedoc/types/ITabLocation.html +1 -1
- package/typedoc/types/IconFactory.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/types/TitleFactory.html +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Orientation } from "./Orientation";
|
|
2
|
+
export declare class DockLocation {
|
|
3
|
+
static values: Record<string, DockLocation>;
|
|
4
|
+
static TOP: DockLocation;
|
|
5
|
+
static BOTTOM: DockLocation;
|
|
6
|
+
static LEFT: DockLocation;
|
|
7
|
+
static RIGHT: DockLocation;
|
|
8
|
+
static CENTER: DockLocation;
|
|
9
|
+
getName(): string;
|
|
10
|
+
getOrientation(): Orientation;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare class DragDrop {
|
|
3
|
+
static instance: DragDrop;
|
|
4
|
+
addGlass(fCancel: ((wasDragging: boolean) => void) | undefined): void;
|
|
5
|
+
resizeGlass(): void;
|
|
6
|
+
hideGlass(): void;
|
|
7
|
+
setGlassCursorOverride(cursor: string | undefined): void;
|
|
8
|
+
startDrag(event: Event | React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement> | React.DragEvent<Element> | undefined, fDragStart: ((pos: {
|
|
9
|
+
clientX: number;
|
|
10
|
+
clientY: number;
|
|
11
|
+
}) => boolean) | undefined, fDragMove: ((event: React.MouseEvent<Element>) => void) | undefined, fDragEnd: ((event: Event) => void) | undefined, fDragCancel?: ((wasDragging: boolean) => void) | undefined, fClick?: ((event: Event) => void) | undefined, fDblClick?: ((event: Event) => void) | undefined, currentDocument?: Document, rootElement?: HTMLDivElement): void;
|
|
12
|
+
isDragging(): boolean;
|
|
13
|
+
isActive(): boolean;
|
|
14
|
+
toString(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DockLocation } from "./DockLocation";
|
|
2
|
+
import { IDropTarget } from "./model/IDropTarget";
|
|
3
|
+
import { Node } from "./model/Node";
|
|
4
|
+
import { Rect } from "./Rect";
|
|
5
|
+
export declare class DropInfo {
|
|
6
|
+
node: Node & IDropTarget;
|
|
7
|
+
rect: Rect;
|
|
8
|
+
location: DockLocation;
|
|
9
|
+
index: number;
|
|
10
|
+
className: string;
|
|
11
|
+
constructor(node: Node & IDropTarget, rect: Rect, location: DockLocation, index: number, className: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum I18nLabel {
|
|
2
|
+
Close_Tab = "Close",
|
|
3
|
+
Close_Tabset = "Close tabset",
|
|
4
|
+
Move_Tab = "Move: ",// no longer used
|
|
5
|
+
Move_Tabset = "Move tabset",
|
|
6
|
+
Maximize = "Maximize tabset",
|
|
7
|
+
Restore = "Restore tabset",
|
|
8
|
+
Float_Tab = "Show selected tab in floating window",
|
|
9
|
+
Overflow_Menu_Tooltip = "Hidden tabs",
|
|
10
|
+
Floating_Window_Message = "This panel is shown in a floating window",
|
|
11
|
+
Floating_Window_Show_Window = "Show window",
|
|
12
|
+
Floating_Window_Dock_Window = "Dock window",
|
|
13
|
+
Error_rendering_component = "Error rendering component"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Rect.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class Rect {
|
|
2
|
+
static empty(): Rect;
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
8
|
+
static fromElement(element: Element): Rect;
|
|
9
|
+
clone(): Rect;
|
|
10
|
+
equals(rect: Rect | null | undefined): boolean;
|
|
11
|
+
getBottom(): number;
|
|
12
|
+
getRight(): number;
|
|
13
|
+
getCenter(): {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
positionElement(element: HTMLElement, position?: string): void;
|
|
18
|
+
styleWithPosition(style: Record<string, any>, position?: string): Record<string, any>;
|
|
19
|
+
contains(x: number, y: number): boolean;
|
|
20
|
+
removeInsets(insets: {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
right: number;
|
|
25
|
+
}): Rect;
|
|
26
|
+
centerInRect(outerRect: Rect): void;
|
|
27
|
+
toString(): string;
|
|
28
|
+
}
|
package/dist/Types.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare enum CLASSES {
|
|
2
|
+
FLEXLAYOUT__BORDER = "flexlayout__border",
|
|
3
|
+
FLEXLAYOUT__BORDER_ = "flexlayout__border_",
|
|
4
|
+
FLEXLAYOUT__BORDER_BUTTON = "flexlayout__border_button",
|
|
5
|
+
FLEXLAYOUT__BORDER_BUTTON_ = "flexlayout__border_button_",
|
|
6
|
+
FLEXLAYOUT__BORDER_BUTTON_CONTENT = "flexlayout__border_button_content",
|
|
7
|
+
FLEXLAYOUT__BORDER_BUTTON_LEADING = "flexlayout__border_button_leading",
|
|
8
|
+
FLEXLAYOUT__BORDER_BUTTON_TRAILING = "flexlayout__border_button_trailing",
|
|
9
|
+
FLEXLAYOUT__BORDER_BUTTON__SELECTED = "flexlayout__border_button--selected",
|
|
10
|
+
FLEXLAYOUT__BORDER_BUTTON__UNSELECTED = "flexlayout__border_button--unselected",
|
|
11
|
+
FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW = "flexlayout__border_toolbar_button_overflow",
|
|
12
|
+
FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_ = "flexlayout__border_toolbar_button_overflow_",
|
|
13
|
+
FLEXLAYOUT__BORDER_INNER = "flexlayout__border_inner",
|
|
14
|
+
FLEXLAYOUT__BORDER_INNER_ = "flexlayout__border_inner_",
|
|
15
|
+
FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER = "flexlayout__border_inner_tab_container",
|
|
16
|
+
FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_ = "flexlayout__border_inner_tab_container_",
|
|
17
|
+
FLEXLAYOUT__BORDER_TAB_DIVIDER = "flexlayout__border_tab_divider",
|
|
18
|
+
FLEXLAYOUT__BORDER_SIZER = "flexlayout__border_sizer",
|
|
19
|
+
FLEXLAYOUT__BORDER_TOOLBAR = "flexlayout__border_toolbar",
|
|
20
|
+
FLEXLAYOUT__BORDER_TOOLBAR_ = "flexlayout__border_toolbar_",
|
|
21
|
+
FLEXLAYOUT__BORDER_TOOLBAR_BUTTON = "flexlayout__border_toolbar_button",
|
|
22
|
+
FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT = "flexlayout__border_toolbar_button-float",
|
|
23
|
+
FLEXLAYOUT__DRAG_RECT = "flexlayout__drag_rect",
|
|
24
|
+
FLEXLAYOUT__EDGE_RECT = "flexlayout__edge_rect",
|
|
25
|
+
FLEXLAYOUT__EDGE_RECT_TOP = "flexlayout__edge_rect_top",
|
|
26
|
+
FLEXLAYOUT__EDGE_RECT_LEFT = "flexlayout__edge_rect_left",
|
|
27
|
+
FLEXLAYOUT__EDGE_RECT_BOTTOM = "flexlayout__edge_rect_bottom",
|
|
28
|
+
FLEXLAYOUT__EDGE_RECT_RIGHT = "flexlayout__edge_rect_right",
|
|
29
|
+
FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER = "flexlayout__error_boundary_container",
|
|
30
|
+
FLEXLAYOUT__ERROR_BOUNDARY_CONTENT = "flexlayout__error_boundary_content",
|
|
31
|
+
FLEXLAYOUT__FLOATING_WINDOW_CONTENT = "flexlayout__floating_window_content",
|
|
32
|
+
FLEXLAYOUT__FLOATING_WINDOW_TAB = "flexlayout__floating_window_tab",
|
|
33
|
+
FLEXLAYOUT__LAYOUT = "flexlayout__layout",
|
|
34
|
+
FLEXLAYOUT__OUTLINE_RECT = "flexlayout__outline_rect",
|
|
35
|
+
FLEXLAYOUT__OUTLINE_RECT_EDGE = "flexlayout__outline_rect_edge",
|
|
36
|
+
FLEXLAYOUT__SPLITTER = "flexlayout__splitter",
|
|
37
|
+
FLEXLAYOUT__SPLITTER_EXTRA = "flexlayout__splitter_extra",
|
|
38
|
+
FLEXLAYOUT__SPLITTER_ = "flexlayout__splitter_",
|
|
39
|
+
FLEXLAYOUT__SPLITTER_BORDER = "flexlayout__splitter_border",
|
|
40
|
+
FLEXLAYOUT__SPLITTER_DRAG = "flexlayout__splitter_drag",
|
|
41
|
+
FLEXLAYOUT__TAB = "flexlayout__tab",
|
|
42
|
+
FLEXLAYOUT__TABSET = "flexlayout__tabset",
|
|
43
|
+
FLEXLAYOUT__TABSET_HEADER = "flexlayout__tabset_header",
|
|
44
|
+
FLEXLAYOUT__TABSET_HEADER_SIZER = "flexlayout__tabset_header_sizer",
|
|
45
|
+
FLEXLAYOUT__TABSET_HEADER_CONTENT = "flexlayout__tabset_header_content",
|
|
46
|
+
FLEXLAYOUT__TABSET_MAXIMIZED = "flexlayout__tabset-maximized",
|
|
47
|
+
FLEXLAYOUT__TABSET_SELECTED = "flexlayout__tabset-selected",
|
|
48
|
+
FLEXLAYOUT__TABSET_SIZER = "flexlayout__tabset_sizer",
|
|
49
|
+
FLEXLAYOUT__TABSET_TAB_DIVIDER = "flexlayout__tabset_tab_divider",
|
|
50
|
+
FLEXLAYOUT__TABSET_CONTENT = "flexlayout__tabset_content",
|
|
51
|
+
FLEXLAYOUT__TABSET_TABBAR_INNER = "flexlayout__tabset_tabbar_inner",
|
|
52
|
+
FLEXLAYOUT__TABSET_TABBAR_INNER_ = "flexlayout__tabset_tabbar_inner_",
|
|
53
|
+
FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER = "flexlayout__tabset_tabbar_inner_tab_container",
|
|
54
|
+
FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_ = "flexlayout__tabset_tabbar_inner_tab_container_",
|
|
55
|
+
FLEXLAYOUT__TABSET_TABBAR_OUTER = "flexlayout__tabset_tabbar_outer",
|
|
56
|
+
FLEXLAYOUT__TABSET_TABBAR_OUTER_ = "flexlayout__tabset_tabbar_outer_",
|
|
57
|
+
FLEXLAYOUT__TAB_BORDER = "flexlayout__tab_border",
|
|
58
|
+
FLEXLAYOUT__TAB_BORDER_ = "flexlayout__tab_border_",
|
|
59
|
+
FLEXLAYOUT__TAB_BUTTON = "flexlayout__tab_button",
|
|
60
|
+
FLEXLAYOUT__TAB_BUTTON_STRETCH = "flexlayout__tab_button_stretch",
|
|
61
|
+
FLEXLAYOUT__TAB_BUTTON_CONTENT = "flexlayout__tab_button_content",
|
|
62
|
+
FLEXLAYOUT__TAB_BUTTON_LEADING = "flexlayout__tab_button_leading",
|
|
63
|
+
FLEXLAYOUT__TAB_BUTTON_OVERFLOW = "flexlayout__tab_button_overflow",
|
|
64
|
+
FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT = "flexlayout__tab_button_overflow_count",
|
|
65
|
+
FLEXLAYOUT__TAB_BUTTON_TEXTBOX = "flexlayout__tab_button_textbox",
|
|
66
|
+
FLEXLAYOUT__TAB_BUTTON_TRAILING = "flexlayout__tab_button_trailing",
|
|
67
|
+
FLEXLAYOUT__TAB_BUTTON_STAMP = "flexlayout__tab_button_stamp",
|
|
68
|
+
FLEXLAYOUT__TAB_FLOATING = "flexlayout__tab_floating",
|
|
69
|
+
FLEXLAYOUT__TAB_FLOATING_INNER = "flexlayout__tab_floating_inner",
|
|
70
|
+
FLEXLAYOUT__TAB_TOOLBAR = "flexlayout__tab_toolbar",
|
|
71
|
+
FLEXLAYOUT__TAB_TOOLBAR_BUTTON = "flexlayout__tab_toolbar_button",
|
|
72
|
+
FLEXLAYOUT__TAB_TOOLBAR_BUTTON_ = "flexlayout__tab_toolbar_button-",
|
|
73
|
+
FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT = "flexlayout__tab_toolbar_button-float",
|
|
74
|
+
FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER = "flexlayout__tab_toolbar_sticky_buttons_container",
|
|
75
|
+
FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE = "flexlayout__tab_toolbar_button-close",
|
|
76
|
+
FLEXLAYOUT__POPUP_MENU_CONTAINER = "flexlayout__popup_menu_container",
|
|
77
|
+
FLEXLAYOUT__POPUP_MENU_ITEM = "flexlayout__popup_menu_item",
|
|
78
|
+
FLEXLAYOUT__POPUP_MENU = "flexlayout__popup_menu"
|
|
79
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./view/Layout";
|
|
2
|
+
export * from "./model/Action";
|
|
3
|
+
export * from "./model/Actions";
|
|
4
|
+
export * from "./model/BorderNode";
|
|
5
|
+
export * from "./model/BorderSet";
|
|
6
|
+
export * from "./model/ICloseType";
|
|
7
|
+
export * from "./model/IDraggable";
|
|
8
|
+
export * from "./model/IDropTarget";
|
|
9
|
+
export * from "./model/IJsonModel";
|
|
10
|
+
export * from "./model/Model";
|
|
11
|
+
export * from "./model/Node";
|
|
12
|
+
export * from "./model/RowNode";
|
|
13
|
+
export * from "./model/SplitterNode";
|
|
14
|
+
export * from "./model/TabNode";
|
|
15
|
+
export * from "./model/TabSetNode";
|
|
16
|
+
export * from "./DockLocation";
|
|
17
|
+
export * from "./DragDrop";
|
|
18
|
+
export * from "./DropInfo";
|
|
19
|
+
export * from "./I18nLabel";
|
|
20
|
+
export * from "./Orientation";
|
|
21
|
+
export * from "./Rect";
|
|
22
|
+
export * from "./Types";
|