flexlayout-react 0.9.1 → 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/dist/index.js +22 -40
- package/package.json +19 -19
- package/types/model/TabNode.d.ts +5 -0
- 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/DragTabButton.d.ts +1 -1
- package/types/view/ErrorBoundary.d.ts +1 -1
- package/types/view/FloatWindow.d.ts +1 -1
- package/types/view/Icons.d.ts +11 -11
- 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 +1 -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 +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* flexlayout-react
|
|
3
|
-
* @version 0.9.
|
|
3
|
+
* @version 0.9.2
|
|
4
4
|
*/
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { useEffect, useImperativeHandle, useRef } from "react";
|
|
@@ -1161,6 +1161,13 @@ var TabNode = class TabNode extends Node {
|
|
|
1161
1161
|
getMoveableElement() {
|
|
1162
1162
|
return this.moveableElement;
|
|
1163
1163
|
}
|
|
1164
|
+
/**
|
|
1165
|
+
* @internal
|
|
1166
|
+
* This method is exposed to allow the workaround for issue: #524
|
|
1167
|
+
*/
|
|
1168
|
+
setMoveableElement(element) {
|
|
1169
|
+
this.moveableElement = element;
|
|
1170
|
+
}
|
|
1164
1171
|
/** @internal */
|
|
1165
1172
|
setRenderedName(name) {
|
|
1166
1173
|
this.renderedName = name;
|
|
@@ -2163,7 +2170,7 @@ function adjustSelectedIndex(parent, removedIndex) {
|
|
|
2163
2170
|
}
|
|
2164
2171
|
}
|
|
2165
2172
|
function randomUUID() {
|
|
2166
|
-
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
|
|
2173
|
+
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (c ^ crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
|
|
2167
2174
|
}
|
|
2168
2175
|
//#endregion
|
|
2169
2176
|
//#region src/model/BorderNode.ts
|
|
@@ -4596,13 +4603,13 @@ var DragDropManager = class DragDropManager {
|
|
|
4596
4603
|
}
|
|
4597
4604
|
addTabWithDragAndDrop(event, json, onDrop) {
|
|
4598
4605
|
const tempNode = TabNode.fromJson(json, this._controller.getModel(), false);
|
|
4599
|
-
DragDropManager.dragState = new DragState(this._controller.getMainController(),
|
|
4606
|
+
DragDropManager.dragState = new DragState(this._controller.getMainController(), "add", tempNode, json, onDrop);
|
|
4600
4607
|
}
|
|
4601
4608
|
moveTabWithDragAndDrop(event, node) {
|
|
4602
4609
|
this.setDragNode(event, node);
|
|
4603
4610
|
}
|
|
4604
4611
|
setDragNode = (event, node) => {
|
|
4605
|
-
DragDropManager.dragState = new DragState(this._controller.getMainController(),
|
|
4612
|
+
DragDropManager.dragState = new DragState(this._controller.getMainController(), "internal", node, void 0, void 0);
|
|
4606
4613
|
event.dataTransfer.setData("text/plain", "--flexlayout--");
|
|
4607
4614
|
event.dataTransfer.effectAllowed = "copyMove";
|
|
4608
4615
|
event.dataTransfer.dropEffect = "move";
|
|
@@ -4727,7 +4734,7 @@ var DragDropManager = class DragDropManager {
|
|
|
4727
4734
|
const externalDrag = this._controller.getProps().onExternalDrag(event);
|
|
4728
4735
|
if (externalDrag) {
|
|
4729
4736
|
const tempNode = TabNode.fromJson(externalDrag.json, this._controller.getModel(), false);
|
|
4730
|
-
DragDropManager.dragState = new DragState(this._controller.getMainController(),
|
|
4737
|
+
DragDropManager.dragState = new DragState(this._controller.getMainController(), "external", tempNode, externalDrag.json, externalDrag.onDrop);
|
|
4731
4738
|
}
|
|
4732
4739
|
}
|
|
4733
4740
|
if (this._mainController !== DragDropManager.dragState?.mainLayoutController) return;
|
|
@@ -4807,12 +4814,6 @@ var DragDropManager = class DragDropManager {
|
|
|
4807
4814
|
return this._dragging;
|
|
4808
4815
|
}
|
|
4809
4816
|
};
|
|
4810
|
-
var DragSource = /* @__PURE__ */ function(DragSource) {
|
|
4811
|
-
DragSource["Internal"] = "internal";
|
|
4812
|
-
DragSource["External"] = "external";
|
|
4813
|
-
DragSource["Add"] = "add";
|
|
4814
|
-
return DragSource;
|
|
4815
|
-
}({});
|
|
4816
4817
|
var DragState = class {
|
|
4817
4818
|
mainLayoutController;
|
|
4818
4819
|
dragSource;
|
|
@@ -4961,15 +4962,7 @@ var PopoutWindow = (props) => {
|
|
|
4961
4962
|
popoutWindow.current?.close();
|
|
4962
4963
|
popoutWindow.current = null;
|
|
4963
4964
|
};
|
|
4964
|
-
}, [
|
|
4965
|
-
controller,
|
|
4966
|
-
layout,
|
|
4967
|
-
url,
|
|
4968
|
-
title,
|
|
4969
|
-
onCloseLayout,
|
|
4970
|
-
onSetLayout,
|
|
4971
|
-
styleMap
|
|
4972
|
-
]);
|
|
4965
|
+
}, []);
|
|
4973
4966
|
if (content !== void 0) return createPortal(children, content);
|
|
4974
4967
|
else return null;
|
|
4975
4968
|
};
|
|
@@ -5006,17 +4999,6 @@ function copyStyle(popoutDoc, element, styleMap, promises) {
|
|
|
5006
4999
|
}
|
|
5007
5000
|
//#endregion
|
|
5008
5001
|
//#region src/view/FloatWindow.tsx
|
|
5009
|
-
var FloatWindowResizeDirection = /* @__PURE__ */ function(FloatWindowResizeDirection) {
|
|
5010
|
-
FloatWindowResizeDirection["North"] = "n";
|
|
5011
|
-
FloatWindowResizeDirection["South"] = "s";
|
|
5012
|
-
FloatWindowResizeDirection["East"] = "e";
|
|
5013
|
-
FloatWindowResizeDirection["West"] = "w";
|
|
5014
|
-
FloatWindowResizeDirection["NorthWest"] = "nw";
|
|
5015
|
-
FloatWindowResizeDirection["NorthEast"] = "ne";
|
|
5016
|
-
FloatWindowResizeDirection["SouthWest"] = "sw";
|
|
5017
|
-
FloatWindowResizeDirection["SouthEast"] = "se";
|
|
5018
|
-
return FloatWindowResizeDirection;
|
|
5019
|
-
}(FloatWindowResizeDirection || {});
|
|
5020
5002
|
var RESIZE_ZINDEX = 10;
|
|
5021
5003
|
var RESIZE_MARGIN = -4;
|
|
5022
5004
|
var RESIZE_EDGE_SIZE = 8;
|
|
@@ -5221,7 +5203,7 @@ var FloatWindow = (props) => {
|
|
|
5221
5203
|
height: RESIZE_EDGE_SIZE,
|
|
5222
5204
|
cursor: "ns-resize"
|
|
5223
5205
|
},
|
|
5224
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5206
|
+
onPointerDown: (e) => onPointerDownResize(e, "n")
|
|
5225
5207
|
}),
|
|
5226
5208
|
/* @__PURE__ */ jsx("div", {
|
|
5227
5209
|
ref: sRef,
|
|
@@ -5234,7 +5216,7 @@ var FloatWindow = (props) => {
|
|
|
5234
5216
|
height: RESIZE_EDGE_SIZE,
|
|
5235
5217
|
cursor: "ns-resize"
|
|
5236
5218
|
},
|
|
5237
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5219
|
+
onPointerDown: (e) => onPointerDownResize(e, "s")
|
|
5238
5220
|
}),
|
|
5239
5221
|
/* @__PURE__ */ jsx("div", {
|
|
5240
5222
|
ref: eRef,
|
|
@@ -5247,7 +5229,7 @@ var FloatWindow = (props) => {
|
|
|
5247
5229
|
width: RESIZE_EDGE_SIZE,
|
|
5248
5230
|
cursor: "ew-resize"
|
|
5249
5231
|
},
|
|
5250
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5232
|
+
onPointerDown: (e) => onPointerDownResize(e, "e")
|
|
5251
5233
|
}),
|
|
5252
5234
|
/* @__PURE__ */ jsx("div", {
|
|
5253
5235
|
ref: wRef,
|
|
@@ -5260,7 +5242,7 @@ var FloatWindow = (props) => {
|
|
|
5260
5242
|
width: RESIZE_EDGE_SIZE,
|
|
5261
5243
|
cursor: "ew-resize"
|
|
5262
5244
|
},
|
|
5263
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5245
|
+
onPointerDown: (e) => onPointerDownResize(e, "w")
|
|
5264
5246
|
}),
|
|
5265
5247
|
/* @__PURE__ */ jsx("div", {
|
|
5266
5248
|
ref: nwRef,
|
|
@@ -5273,7 +5255,7 @@ var FloatWindow = (props) => {
|
|
|
5273
5255
|
height: RESIZE_CORNER_SIZE,
|
|
5274
5256
|
cursor: "nwse-resize"
|
|
5275
5257
|
},
|
|
5276
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5258
|
+
onPointerDown: (e) => onPointerDownResize(e, "nw")
|
|
5277
5259
|
}),
|
|
5278
5260
|
/* @__PURE__ */ jsx("div", {
|
|
5279
5261
|
ref: neRef,
|
|
@@ -5286,7 +5268,7 @@ var FloatWindow = (props) => {
|
|
|
5286
5268
|
height: RESIZE_CORNER_SIZE,
|
|
5287
5269
|
cursor: "nesw-resize"
|
|
5288
5270
|
},
|
|
5289
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5271
|
+
onPointerDown: (e) => onPointerDownResize(e, "ne")
|
|
5290
5272
|
}),
|
|
5291
5273
|
/* @__PURE__ */ jsx("div", {
|
|
5292
5274
|
ref: swRef,
|
|
@@ -5299,7 +5281,7 @@ var FloatWindow = (props) => {
|
|
|
5299
5281
|
height: RESIZE_CORNER_SIZE,
|
|
5300
5282
|
cursor: "nesw-resize"
|
|
5301
5283
|
},
|
|
5302
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5284
|
+
onPointerDown: (e) => onPointerDownResize(e, "sw")
|
|
5303
5285
|
}),
|
|
5304
5286
|
/* @__PURE__ */ jsx("div", {
|
|
5305
5287
|
ref: seRef,
|
|
@@ -5312,7 +5294,7 @@ var FloatWindow = (props) => {
|
|
|
5312
5294
|
height: RESIZE_SE_CORNER_SIZE,
|
|
5313
5295
|
cursor: "nwse-resize"
|
|
5314
5296
|
},
|
|
5315
|
-
onPointerDown: (e) => onPointerDownResize(e,
|
|
5297
|
+
onPointerDown: (e) => onPointerDownResize(e, "se")
|
|
5316
5298
|
})
|
|
5317
5299
|
]
|
|
5318
5300
|
});
|
|
@@ -6552,7 +6534,7 @@ var Layout = React.forwardRef((props, ref) => {
|
|
|
6552
6534
|
parentRedrawRevision: renderRevision.current++
|
|
6553
6535
|
}, key.current);
|
|
6554
6536
|
});
|
|
6555
|
-
var FlexLayoutVersion = "0.9.
|
|
6537
|
+
var FlexLayoutVersion = "0.9.2";
|
|
6556
6538
|
//#endregion
|
|
6557
6539
|
//#region src/view/TabLayout.tsx
|
|
6558
6540
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flexlayout-react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "A multi-tab docking layout manager",
|
|
5
5
|
"author": "Caplin Systems Ltd",
|
|
6
6
|
"repository": {
|
|
@@ -65,35 +65,35 @@
|
|
|
65
65
|
"@emotion/react": "^11.14.0",
|
|
66
66
|
"@emotion/styled": "^11.14.1",
|
|
67
67
|
"@eslint/js": "^10.0.1",
|
|
68
|
-
"@mui/material": "^9.
|
|
69
|
-
"@mui/x-data-grid": "^9.0
|
|
70
|
-
"@playwright/test": "^1.
|
|
71
|
-
"@types/node": "^25.
|
|
68
|
+
"@mui/material": "^9.1.2",
|
|
69
|
+
"@mui/x-data-grid": "^9.7.0",
|
|
70
|
+
"@playwright/test": "^1.61.1",
|
|
71
|
+
"@types/node": "^25.9.4",
|
|
72
72
|
"@types/prismjs": "^1.26.6",
|
|
73
|
-
"@types/react": "^19.2.
|
|
73
|
+
"@types/react": "^19.2.17",
|
|
74
74
|
"@types/react-dom": "^19.2.3",
|
|
75
|
-
"@vitejs/plugin-react": "^6.0.
|
|
76
|
-
"ag-grid-community": "^35.
|
|
77
|
-
"ag-grid-react": "^35.
|
|
75
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
76
|
+
"ag-grid-community": "^35.3.1",
|
|
77
|
+
"ag-grid-react": "^35.3.1",
|
|
78
78
|
"chart.js": "^4.5.1",
|
|
79
|
-
"eslint": "^10.
|
|
79
|
+
"eslint": "^10.6.0",
|
|
80
80
|
"eslint-plugin-react": "^7.37.5",
|
|
81
81
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
82
|
-
"globals": "^17.
|
|
82
|
+
"globals": "^17.7.0",
|
|
83
83
|
"ol": "^10.9.0",
|
|
84
|
-
"prettier": "^3.
|
|
84
|
+
"prettier": "^3.9.1",
|
|
85
85
|
"prismjs": "^1.30.0",
|
|
86
|
-
"react": "^19.2.
|
|
86
|
+
"react": "^19.2.7",
|
|
87
87
|
"react-chartjs-2": "^5.3.1",
|
|
88
|
-
"react-dom": "^19.2.
|
|
88
|
+
"react-dom": "^19.2.7",
|
|
89
89
|
"react-scripts": "5.0.1",
|
|
90
90
|
"rimraf": "^6.1.3",
|
|
91
|
-
"sass": "^1.
|
|
92
|
-
"styled-components": "^6.4.
|
|
91
|
+
"sass": "^1.101.0",
|
|
92
|
+
"styled-components": "^6.4.3",
|
|
93
93
|
"typedoc": "^0.28.19",
|
|
94
94
|
"typescript": "^6.0.3",
|
|
95
|
-
"typescript-eslint": "^8.
|
|
96
|
-
"vite": "^8.0
|
|
97
|
-
"vitest": "^4.1.
|
|
95
|
+
"typescript-eslint": "^8.62.0",
|
|
96
|
+
"vite": "^8.1.0",
|
|
97
|
+
"vitest": "^4.1.9"
|
|
98
98
|
}
|
|
99
99
|
}
|
package/types/model/TabNode.d.ts
CHANGED
|
@@ -91,6 +91,11 @@ export declare class TabNode extends Node implements IDraggable {
|
|
|
91
91
|
setTabStamp(stamp: HTMLElement | null): void;
|
|
92
92
|
/** @internal */
|
|
93
93
|
getMoveableElement(): HTMLElement;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* This method is exposed to allow the workaround for issue: #524
|
|
97
|
+
*/
|
|
98
|
+
setMoveableElement(element: HTMLElement): void;
|
|
94
99
|
/** @internal */
|
|
95
100
|
setRenderedName(name: string): void;
|
|
96
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;
|
|
@@ -8,4 +8,4 @@ export interface IDragTabButton {
|
|
|
8
8
|
dragging: boolean;
|
|
9
9
|
}
|
|
10
10
|
/** @internal */
|
|
11
|
-
export declare const DragTabButton: React.MemoExoticComponent<(props: IDragTabButton) =>
|
|
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
|
}
|
|
@@ -9,4 +9,4 @@ export interface IFloatWindowProps {
|
|
|
9
9
|
onCloseLayout: (layout: Layout) => void;
|
|
10
10
|
}
|
|
11
11
|
/** @internal */
|
|
12
|
-
export declare const FloatWindow: (props: React.PropsWithChildren<IFloatWindowProps>) =>
|
|
12
|
+
export declare const FloatWindow: (props: React.PropsWithChildren<IFloatWindowProps>) => React.JSX.Element;
|
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/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[];
|
|
@@ -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;
|
|
@@ -60,7 +60,7 @@ 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
66
|
renderDragTabButtons(): React.ReactNode[];
|