dockview 1.8.4 → 1.9.0
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 +56 -51
- package/dist/cjs/dockview/defaultTab.d.ts +7 -7
- package/dist/cjs/dockview/defaultTab.js +79 -79
- package/dist/cjs/dockview/defaultTab.js.map +1 -1
- package/dist/cjs/dockview/dockview.d.ts +44 -42
- package/dist/cjs/dockview/dockview.d.ts.map +1 -1
- package/dist/cjs/dockview/dockview.js +237 -232
- package/dist/cjs/dockview/dockview.js.map +1 -1
- package/dist/cjs/dockview/headerActionsRenderer.d.ts +33 -33
- package/dist/cjs/dockview/headerActionsRenderer.js +87 -87
- package/dist/cjs/dockview/reactContentPart.d.ts +22 -22
- package/dist/cjs/dockview/reactContentPart.js +50 -50
- package/dist/cjs/dockview/reactHeaderPart.d.ts +18 -18
- package/dist/cjs/dockview/reactHeaderPart.js +43 -43
- package/dist/cjs/dockview/reactWatermarkPart.d.ts +24 -24
- package/dist/cjs/dockview/reactWatermarkPart.js +53 -53
- package/dist/cjs/dockview/reactWatermarkPart.js.map +1 -1
- package/dist/cjs/gridview/gridview.d.ts +22 -22
- package/dist/cjs/gridview/gridview.d.ts.map +1 -1
- package/dist/cjs/gridview/gridview.js +98 -96
- package/dist/cjs/gridview/gridview.js.map +1 -1
- package/dist/cjs/gridview/view.d.ts +10 -10
- package/dist/cjs/gridview/view.js +39 -39
- package/dist/cjs/gridview/view.js.map +1 -1
- package/dist/cjs/index.d.ts +10 -10
- package/dist/cjs/index.js +24 -24
- package/dist/cjs/paneview/paneview.d.ts +24 -24
- package/dist/cjs/paneview/paneview.d.ts.map +1 -1
- package/dist/cjs/paneview/paneview.js +140 -139
- package/dist/cjs/paneview/paneview.js.map +1 -1
- package/dist/cjs/paneview/view.d.ts +19 -19
- package/dist/cjs/paneview/view.js +44 -44
- package/dist/cjs/react.d.ts +35 -35
- package/dist/cjs/react.d.ts.map +1 -1
- package/dist/cjs/react.js +196 -196
- package/dist/cjs/react.js.map +1 -1
- package/dist/cjs/splitview/splitview.d.ts +22 -22
- package/dist/cjs/splitview/splitview.d.ts.map +1 -1
- package/dist/cjs/splitview/splitview.js +93 -91
- package/dist/cjs/splitview/splitview.js.map +1 -1
- package/dist/cjs/splitview/view.d.ts +10 -10
- package/dist/cjs/splitview/view.js +39 -39
- package/dist/cjs/splitview/view.js.map +1 -1
- package/dist/cjs/svg.d.ts +3 -3
- package/dist/cjs/svg.js +35 -35
- package/dist/cjs/types.d.ts +8 -8
- package/dist/cjs/types.js +2 -2
- package/dist/dockview.amd.js +9097 -8027
- package/dist/dockview.amd.js.map +1 -1
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.js.map +1 -1
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.min.noStyle.js.map +1 -1
- package/dist/dockview.amd.noStyle.js +9122 -8052
- package/dist/dockview.amd.noStyle.js.map +1 -1
- package/dist/dockview.cjs.js +9092 -8022
- package/dist/dockview.cjs.js.map +1 -1
- package/dist/dockview.esm.js +9094 -8024
- package/dist/dockview.esm.js.map +1 -1
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.esm.min.js.map +1 -1
- package/dist/dockview.js +9097 -8027
- package/dist/dockview.js.map +1 -1
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.js.map +1 -1
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.min.noStyle.js.map +1 -1
- package/dist/dockview.noStyle.js +9122 -8052
- package/dist/dockview.noStyle.js.map +1 -1
- package/dist/esm/dockview/defaultTab.d.ts +7 -7
- package/dist/esm/dockview/defaultTab.js +41 -41
- package/dist/esm/dockview/defaultTab.js.map +1 -1
- package/dist/esm/dockview/dockview.d.ts +44 -42
- package/dist/esm/dockview/dockview.d.ts.map +1 -1
- package/dist/esm/dockview/dockview.js +195 -190
- package/dist/esm/dockview/dockview.js.map +1 -1
- package/dist/esm/dockview/headerActionsRenderer.d.ts +33 -33
- package/dist/esm/dockview/headerActionsRenderer.js +69 -69
- package/dist/esm/dockview/reactContentPart.d.ts +22 -22
- package/dist/esm/dockview/reactContentPart.js +41 -41
- package/dist/esm/dockview/reactHeaderPart.d.ts +18 -18
- package/dist/esm/dockview/reactHeaderPart.js +34 -34
- package/dist/esm/dockview/reactWatermarkPart.d.ts +24 -24
- package/dist/esm/dockview/reactWatermarkPart.js +44 -44
- package/dist/esm/dockview/reactWatermarkPart.js.map +1 -1
- package/dist/esm/gridview/gridview.d.ts +22 -22
- package/dist/esm/gridview/gridview.d.ts.map +1 -1
- package/dist/esm/gridview/gridview.js +56 -54
- package/dist/esm/gridview/gridview.js.map +1 -1
- package/dist/esm/gridview/view.d.ts +10 -10
- package/dist/esm/gridview/view.js +17 -17
- package/dist/esm/gridview/view.js.map +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +8 -8
- package/dist/esm/paneview/paneview.d.ts +24 -24
- package/dist/esm/paneview/paneview.d.ts.map +1 -1
- package/dist/esm/paneview/paneview.js +85 -84
- package/dist/esm/paneview/paneview.js.map +1 -1
- package/dist/esm/paneview/view.d.ts +19 -19
- package/dist/esm/paneview/view.js +35 -35
- package/dist/esm/react.d.ts +35 -35
- package/dist/esm/react.d.ts.map +1 -1
- package/dist/esm/react.js +127 -127
- package/dist/esm/react.js.map +1 -1
- package/dist/esm/splitview/splitview.d.ts +22 -22
- package/dist/esm/splitview/splitview.d.ts.map +1 -1
- package/dist/esm/splitview/splitview.js +51 -49
- package/dist/esm/splitview/splitview.js.map +1 -1
- package/dist/esm/splitview/view.d.ts +10 -10
- package/dist/esm/splitview/view.js +17 -17
- package/dist/esm/splitview/view.js.map +1 -1
- package/dist/esm/svg.d.ts +3 -3
- package/dist/esm/svg.js +7 -7
- package/dist/esm/types.d.ts +8 -8
- package/dist/esm/types.js +1 -1
- package/package.json +32 -50
- package/LICENSE +0 -21
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactHeaderActionsRendererPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var dockview_core_1 = require("dockview-core");
|
|
6
|
-
var ReactHeaderActionsRendererPart = /** @class */ (function () {
|
|
7
|
-
function ReactHeaderActionsRendererPart(component, reactPortalStore, _group) {
|
|
8
|
-
this.component = component;
|
|
9
|
-
this.reactPortalStore = reactPortalStore;
|
|
10
|
-
this._group = _group;
|
|
11
|
-
this.mutableDisposable = new dockview_core_1.DockviewMutableDisposable();
|
|
12
|
-
this._element = document.createElement('div');
|
|
13
|
-
this._element.className = 'dockview-react-part';
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "element", {
|
|
16
|
-
get: function () {
|
|
17
|
-
return this._element;
|
|
18
|
-
},
|
|
19
|
-
enumerable: false,
|
|
20
|
-
configurable: true
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "part", {
|
|
23
|
-
get: function () {
|
|
24
|
-
return this._part;
|
|
25
|
-
},
|
|
26
|
-
enumerable: false,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "group", {
|
|
30
|
-
get: function () {
|
|
31
|
-
return this._group;
|
|
32
|
-
},
|
|
33
|
-
enumerable: false,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
ReactHeaderActionsRendererPart.prototype.focus = function () {
|
|
37
|
-
// TODO
|
|
38
|
-
};
|
|
39
|
-
ReactHeaderActionsRendererPart.prototype.init = function (parameters) {
|
|
40
|
-
var _this = this;
|
|
41
|
-
this.mutableDisposable.value = new dockview_core_1.DockviewCompositeDisposable(this._group.model.onDidAddPanel(function () {
|
|
42
|
-
_this.updatePanels();
|
|
43
|
-
}), this._group.model.onDidRemovePanel(function () {
|
|
44
|
-
_this.updatePanels();
|
|
45
|
-
}), this._group.model.onDidActivePanelChange(function () {
|
|
46
|
-
_this.updateActivePanel();
|
|
47
|
-
}), parameters.api.onDidActiveChange(function () {
|
|
48
|
-
_this.updateGroupActive();
|
|
49
|
-
}));
|
|
50
|
-
this._part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
51
|
-
api: parameters.api,
|
|
52
|
-
containerApi: parameters.containerApi,
|
|
53
|
-
panels: this._group.model.panels,
|
|
54
|
-
activePanel: this._group.model.activePanel,
|
|
55
|
-
isGroupActive: this._group.api.isActive,
|
|
56
|
-
group: this._group,
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
ReactHeaderActionsRendererPart.prototype.update = function (event) {
|
|
60
|
-
var _a;
|
|
61
|
-
(_a = this._part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
62
|
-
};
|
|
63
|
-
ReactHeaderActionsRendererPart.prototype.dispose = function () {
|
|
64
|
-
var _a;
|
|
65
|
-
this.mutableDisposable.dispose();
|
|
66
|
-
(_a = this._part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
67
|
-
};
|
|
68
|
-
ReactHeaderActionsRendererPart.prototype.updatePanels = function () {
|
|
69
|
-
this.update({ params: { panels: this._group.model.panels } });
|
|
70
|
-
};
|
|
71
|
-
ReactHeaderActionsRendererPart.prototype.updateActivePanel = function () {
|
|
72
|
-
this.update({
|
|
73
|
-
params: {
|
|
74
|
-
activePanel: this._group.model.activePanel,
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
ReactHeaderActionsRendererPart.prototype.updateGroupActive = function () {
|
|
79
|
-
this.update({
|
|
80
|
-
params: {
|
|
81
|
-
isGroupActive: this._group.api.isActive,
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
return ReactHeaderActionsRendererPart;
|
|
86
|
-
}());
|
|
87
|
-
exports.ReactHeaderActionsRendererPart = ReactHeaderActionsRendererPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactHeaderActionsRendererPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var dockview_core_1 = require("dockview-core");
|
|
6
|
+
var ReactHeaderActionsRendererPart = /** @class */ (function () {
|
|
7
|
+
function ReactHeaderActionsRendererPart(component, reactPortalStore, _group) {
|
|
8
|
+
this.component = component;
|
|
9
|
+
this.reactPortalStore = reactPortalStore;
|
|
10
|
+
this._group = _group;
|
|
11
|
+
this.mutableDisposable = new dockview_core_1.DockviewMutableDisposable();
|
|
12
|
+
this._element = document.createElement('div');
|
|
13
|
+
this._element.className = 'dockview-react-part';
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "element", {
|
|
16
|
+
get: function () {
|
|
17
|
+
return this._element;
|
|
18
|
+
},
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "part", {
|
|
23
|
+
get: function () {
|
|
24
|
+
return this._part;
|
|
25
|
+
},
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(ReactHeaderActionsRendererPart.prototype, "group", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._group;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
ReactHeaderActionsRendererPart.prototype.focus = function () {
|
|
37
|
+
// TODO
|
|
38
|
+
};
|
|
39
|
+
ReactHeaderActionsRendererPart.prototype.init = function (parameters) {
|
|
40
|
+
var _this = this;
|
|
41
|
+
this.mutableDisposable.value = new dockview_core_1.DockviewCompositeDisposable(this._group.model.onDidAddPanel(function () {
|
|
42
|
+
_this.updatePanels();
|
|
43
|
+
}), this._group.model.onDidRemovePanel(function () {
|
|
44
|
+
_this.updatePanels();
|
|
45
|
+
}), this._group.model.onDidActivePanelChange(function () {
|
|
46
|
+
_this.updateActivePanel();
|
|
47
|
+
}), parameters.api.onDidActiveChange(function () {
|
|
48
|
+
_this.updateGroupActive();
|
|
49
|
+
}));
|
|
50
|
+
this._part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
51
|
+
api: parameters.api,
|
|
52
|
+
containerApi: parameters.containerApi,
|
|
53
|
+
panels: this._group.model.panels,
|
|
54
|
+
activePanel: this._group.model.activePanel,
|
|
55
|
+
isGroupActive: this._group.api.isActive,
|
|
56
|
+
group: this._group,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
ReactHeaderActionsRendererPart.prototype.update = function (event) {
|
|
60
|
+
var _a;
|
|
61
|
+
(_a = this._part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
62
|
+
};
|
|
63
|
+
ReactHeaderActionsRendererPart.prototype.dispose = function () {
|
|
64
|
+
var _a;
|
|
65
|
+
this.mutableDisposable.dispose();
|
|
66
|
+
(_a = this._part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
67
|
+
};
|
|
68
|
+
ReactHeaderActionsRendererPart.prototype.updatePanels = function () {
|
|
69
|
+
this.update({ params: { panels: this._group.model.panels } });
|
|
70
|
+
};
|
|
71
|
+
ReactHeaderActionsRendererPart.prototype.updateActivePanel = function () {
|
|
72
|
+
this.update({
|
|
73
|
+
params: {
|
|
74
|
+
activePanel: this._group.model.activePanel,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
ReactHeaderActionsRendererPart.prototype.updateGroupActive = function () {
|
|
79
|
+
this.update({
|
|
80
|
+
params: {
|
|
81
|
+
isGroupActive: this._group.api.isActive,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
return ReactHeaderActionsRendererPart;
|
|
86
|
+
}());
|
|
87
|
+
exports.ReactHeaderActionsRendererPart = ReactHeaderActionsRendererPart;
|
|
88
88
|
//# sourceMappingURL=headerActionsRenderer.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactPortalStore } from '../react';
|
|
3
|
-
import { IDockviewPanelProps } from '../dockview/dockview';
|
|
4
|
-
import { DockviewEvent, PanelUpdateEvent, IContentRenderer, GroupPanelContentPartInitParameters } from 'dockview-core';
|
|
5
|
-
export declare class ReactPanelContentPart implements IContentRenderer {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
private readonly component;
|
|
8
|
-
private readonly reactPortalStore;
|
|
9
|
-
private _element;
|
|
10
|
-
private part?;
|
|
11
|
-
private readonly _onDidFocus;
|
|
12
|
-
readonly onDidFocus: DockviewEvent<void>;
|
|
13
|
-
private readonly _onDidBlur;
|
|
14
|
-
readonly onDidBlur: DockviewEvent<void>;
|
|
15
|
-
get element(): HTMLElement;
|
|
16
|
-
constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
|
|
17
|
-
focus(): void;
|
|
18
|
-
init(parameters: GroupPanelContentPartInitParameters): void;
|
|
19
|
-
update(event: PanelUpdateEvent): void;
|
|
20
|
-
layout(_width: number, _height: number): void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactPortalStore } from '../react';
|
|
3
|
+
import { IDockviewPanelProps } from '../dockview/dockview';
|
|
4
|
+
import { DockviewEvent, PanelUpdateEvent, IContentRenderer, GroupPanelContentPartInitParameters } from 'dockview-core';
|
|
5
|
+
export declare class ReactPanelContentPart implements IContentRenderer {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
private readonly component;
|
|
8
|
+
private readonly reactPortalStore;
|
|
9
|
+
private _element;
|
|
10
|
+
private part?;
|
|
11
|
+
private readonly _onDidFocus;
|
|
12
|
+
readonly onDidFocus: DockviewEvent<void>;
|
|
13
|
+
private readonly _onDidBlur;
|
|
14
|
+
readonly onDidBlur: DockviewEvent<void>;
|
|
15
|
+
get element(): HTMLElement;
|
|
16
|
+
constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
|
|
17
|
+
focus(): void;
|
|
18
|
+
init(parameters: GroupPanelContentPartInitParameters): void;
|
|
19
|
+
update(event: PanelUpdateEvent): void;
|
|
20
|
+
layout(_width: number, _height: number): void;
|
|
21
|
+
dispose(): void;
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=reactContentPart.d.ts.map
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactPanelContentPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var dockview_core_1 = require("dockview-core");
|
|
6
|
-
var ReactPanelContentPart = /** @class */ (function () {
|
|
7
|
-
function ReactPanelContentPart(id, component, reactPortalStore) {
|
|
8
|
-
this.id = id;
|
|
9
|
-
this.component = component;
|
|
10
|
-
this.reactPortalStore = reactPortalStore;
|
|
11
|
-
this._onDidFocus = new dockview_core_1.DockviewEmitter();
|
|
12
|
-
this.onDidFocus = this._onDidFocus.event;
|
|
13
|
-
this._onDidBlur = new dockview_core_1.DockviewEmitter();
|
|
14
|
-
this.onDidBlur = this._onDidBlur.event;
|
|
15
|
-
this._element = document.createElement('div');
|
|
16
|
-
this._element.className = 'dockview-react-part';
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(ReactPanelContentPart.prototype, "element", {
|
|
19
|
-
get: function () {
|
|
20
|
-
return this._element;
|
|
21
|
-
},
|
|
22
|
-
enumerable: false,
|
|
23
|
-
configurable: true
|
|
24
|
-
});
|
|
25
|
-
ReactPanelContentPart.prototype.focus = function () {
|
|
26
|
-
// TODO
|
|
27
|
-
};
|
|
28
|
-
ReactPanelContentPart.prototype.init = function (parameters) {
|
|
29
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
30
|
-
params: parameters.params,
|
|
31
|
-
api: parameters.api,
|
|
32
|
-
containerApi: parameters.containerApi,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
ReactPanelContentPart.prototype.update = function (event) {
|
|
36
|
-
var _a;
|
|
37
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
38
|
-
};
|
|
39
|
-
ReactPanelContentPart.prototype.layout = function (_width, _height) {
|
|
40
|
-
// noop
|
|
41
|
-
};
|
|
42
|
-
ReactPanelContentPart.prototype.dispose = function () {
|
|
43
|
-
var _a;
|
|
44
|
-
this._onDidFocus.dispose();
|
|
45
|
-
this._onDidBlur.dispose();
|
|
46
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47
|
-
};
|
|
48
|
-
return ReactPanelContentPart;
|
|
49
|
-
}());
|
|
50
|
-
exports.ReactPanelContentPart = ReactPanelContentPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactPanelContentPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var dockview_core_1 = require("dockview-core");
|
|
6
|
+
var ReactPanelContentPart = /** @class */ (function () {
|
|
7
|
+
function ReactPanelContentPart(id, component, reactPortalStore) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.component = component;
|
|
10
|
+
this.reactPortalStore = reactPortalStore;
|
|
11
|
+
this._onDidFocus = new dockview_core_1.DockviewEmitter();
|
|
12
|
+
this.onDidFocus = this._onDidFocus.event;
|
|
13
|
+
this._onDidBlur = new dockview_core_1.DockviewEmitter();
|
|
14
|
+
this.onDidBlur = this._onDidBlur.event;
|
|
15
|
+
this._element = document.createElement('div');
|
|
16
|
+
this._element.className = 'dockview-react-part';
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(ReactPanelContentPart.prototype, "element", {
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._element;
|
|
21
|
+
},
|
|
22
|
+
enumerable: false,
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
ReactPanelContentPart.prototype.focus = function () {
|
|
26
|
+
// TODO
|
|
27
|
+
};
|
|
28
|
+
ReactPanelContentPart.prototype.init = function (parameters) {
|
|
29
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
30
|
+
params: parameters.params,
|
|
31
|
+
api: parameters.api,
|
|
32
|
+
containerApi: parameters.containerApi,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
ReactPanelContentPart.prototype.update = function (event) {
|
|
36
|
+
var _a;
|
|
37
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
38
|
+
};
|
|
39
|
+
ReactPanelContentPart.prototype.layout = function (_width, _height) {
|
|
40
|
+
// noop
|
|
41
|
+
};
|
|
42
|
+
ReactPanelContentPart.prototype.dispose = function () {
|
|
43
|
+
var _a;
|
|
44
|
+
this._onDidFocus.dispose();
|
|
45
|
+
this._onDidBlur.dispose();
|
|
46
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47
|
+
};
|
|
48
|
+
return ReactPanelContentPart;
|
|
49
|
+
}());
|
|
50
|
+
exports.ReactPanelContentPart = ReactPanelContentPart;
|
|
51
51
|
//# sourceMappingURL=reactContentPart.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactPortalStore } from '../react';
|
|
3
|
-
import { IGroupPanelBaseProps } from './dockview';
|
|
4
|
-
import { PanelUpdateEvent, ITabRenderer, GroupPanelPartInitParameters } from 'dockview-core';
|
|
5
|
-
export declare class ReactPanelHeaderPart implements ITabRenderer {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
private readonly component;
|
|
8
|
-
private readonly reactPortalStore;
|
|
9
|
-
private _element;
|
|
10
|
-
private part?;
|
|
11
|
-
get element(): HTMLElement;
|
|
12
|
-
constructor(id: string, component: React.FunctionComponent<IGroupPanelBaseProps>, reactPortalStore: ReactPortalStore);
|
|
13
|
-
focus(): void;
|
|
14
|
-
init(parameters: GroupPanelPartInitParameters): void;
|
|
15
|
-
update(event: PanelUpdateEvent): void;
|
|
16
|
-
layout(_width: number, _height: number): void;
|
|
17
|
-
dispose(): void;
|
|
18
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactPortalStore } from '../react';
|
|
3
|
+
import { IGroupPanelBaseProps } from './dockview';
|
|
4
|
+
import { PanelUpdateEvent, ITabRenderer, GroupPanelPartInitParameters } from 'dockview-core';
|
|
5
|
+
export declare class ReactPanelHeaderPart implements ITabRenderer {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
private readonly component;
|
|
8
|
+
private readonly reactPortalStore;
|
|
9
|
+
private _element;
|
|
10
|
+
private part?;
|
|
11
|
+
get element(): HTMLElement;
|
|
12
|
+
constructor(id: string, component: React.FunctionComponent<IGroupPanelBaseProps>, reactPortalStore: ReactPortalStore);
|
|
13
|
+
focus(): void;
|
|
14
|
+
init(parameters: GroupPanelPartInitParameters): void;
|
|
15
|
+
update(event: PanelUpdateEvent): void;
|
|
16
|
+
layout(_width: number, _height: number): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
19
19
|
//# sourceMappingURL=reactHeaderPart.d.ts.map
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactPanelHeaderPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var ReactPanelHeaderPart = /** @class */ (function () {
|
|
6
|
-
function ReactPanelHeaderPart(id, component, reactPortalStore) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.component = component;
|
|
9
|
-
this.reactPortalStore = reactPortalStore;
|
|
10
|
-
this._element = document.createElement('div');
|
|
11
|
-
this._element.className = 'dockview-react-part';
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(ReactPanelHeaderPart.prototype, "element", {
|
|
14
|
-
get: function () {
|
|
15
|
-
return this._element;
|
|
16
|
-
},
|
|
17
|
-
enumerable: false,
|
|
18
|
-
configurable: true
|
|
19
|
-
});
|
|
20
|
-
ReactPanelHeaderPart.prototype.focus = function () {
|
|
21
|
-
//noop
|
|
22
|
-
};
|
|
23
|
-
ReactPanelHeaderPart.prototype.init = function (parameters) {
|
|
24
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
25
|
-
params: parameters.params,
|
|
26
|
-
api: parameters.api,
|
|
27
|
-
containerApi: parameters.containerApi,
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
ReactPanelHeaderPart.prototype.update = function (event) {
|
|
31
|
-
var _a;
|
|
32
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
33
|
-
};
|
|
34
|
-
ReactPanelHeaderPart.prototype.layout = function (_width, _height) {
|
|
35
|
-
// noop - retrieval from api
|
|
36
|
-
};
|
|
37
|
-
ReactPanelHeaderPart.prototype.dispose = function () {
|
|
38
|
-
var _a;
|
|
39
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
40
|
-
};
|
|
41
|
-
return ReactPanelHeaderPart;
|
|
42
|
-
}());
|
|
43
|
-
exports.ReactPanelHeaderPart = ReactPanelHeaderPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactPanelHeaderPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var ReactPanelHeaderPart = /** @class */ (function () {
|
|
6
|
+
function ReactPanelHeaderPart(id, component, reactPortalStore) {
|
|
7
|
+
this.id = id;
|
|
8
|
+
this.component = component;
|
|
9
|
+
this.reactPortalStore = reactPortalStore;
|
|
10
|
+
this._element = document.createElement('div');
|
|
11
|
+
this._element.className = 'dockview-react-part';
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(ReactPanelHeaderPart.prototype, "element", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this._element;
|
|
16
|
+
},
|
|
17
|
+
enumerable: false,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
ReactPanelHeaderPart.prototype.focus = function () {
|
|
21
|
+
//noop
|
|
22
|
+
};
|
|
23
|
+
ReactPanelHeaderPart.prototype.init = function (parameters) {
|
|
24
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
25
|
+
params: parameters.params,
|
|
26
|
+
api: parameters.api,
|
|
27
|
+
containerApi: parameters.containerApi,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
ReactPanelHeaderPart.prototype.update = function (event) {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
33
|
+
};
|
|
34
|
+
ReactPanelHeaderPart.prototype.layout = function (_width, _height) {
|
|
35
|
+
// noop - retrieval from api
|
|
36
|
+
};
|
|
37
|
+
ReactPanelHeaderPart.prototype.dispose = function () {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
40
|
+
};
|
|
41
|
+
return ReactPanelHeaderPart;
|
|
42
|
+
}());
|
|
43
|
+
exports.ReactPanelHeaderPart = ReactPanelHeaderPart;
|
|
44
44
|
//# sourceMappingURL=reactHeaderPart.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactPortalStore } from '../react';
|
|
3
|
-
import { PanelUpdateEvent, DockviewGroupPanel, IWatermarkRenderer, WatermarkRendererInitParameters, DockviewApi, IDockviewGroupPanel } from 'dockview-core';
|
|
4
|
-
export interface IWatermarkPanelProps {
|
|
5
|
-
containerApi: DockviewApi;
|
|
6
|
-
group?: IDockviewGroupPanel;
|
|
7
|
-
close: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class ReactWatermarkPart implements IWatermarkRenderer {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
private readonly component;
|
|
12
|
-
private readonly reactPortalStore;
|
|
13
|
-
private _element;
|
|
14
|
-
private part?;
|
|
15
|
-
private parameters;
|
|
16
|
-
get element(): HTMLElement;
|
|
17
|
-
constructor(id: string, component: React.FunctionComponent<IWatermarkPanelProps>, reactPortalStore: ReactPortalStore);
|
|
18
|
-
init(parameters: WatermarkRendererInitParameters): void;
|
|
19
|
-
focus(): void;
|
|
20
|
-
update(params: PanelUpdateEvent): void;
|
|
21
|
-
layout(_width: number, _height: number): void;
|
|
22
|
-
updateParentGroup(_group: DockviewGroupPanel, _isPanelVisible: boolean): void;
|
|
23
|
-
dispose(): void;
|
|
24
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactPortalStore } from '../react';
|
|
3
|
+
import { PanelUpdateEvent, DockviewGroupPanel, IWatermarkRenderer, WatermarkRendererInitParameters, DockviewApi, IDockviewGroupPanel } from 'dockview-core';
|
|
4
|
+
export interface IWatermarkPanelProps {
|
|
5
|
+
containerApi: DockviewApi;
|
|
6
|
+
group?: IDockviewGroupPanel;
|
|
7
|
+
close: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare class ReactWatermarkPart implements IWatermarkRenderer {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
private readonly component;
|
|
12
|
+
private readonly reactPortalStore;
|
|
13
|
+
private _element;
|
|
14
|
+
private part?;
|
|
15
|
+
private parameters;
|
|
16
|
+
get element(): HTMLElement;
|
|
17
|
+
constructor(id: string, component: React.FunctionComponent<IWatermarkPanelProps>, reactPortalStore: ReactPortalStore);
|
|
18
|
+
init(parameters: WatermarkRendererInitParameters): void;
|
|
19
|
+
focus(): void;
|
|
20
|
+
update(params: PanelUpdateEvent): void;
|
|
21
|
+
layout(_width: number, _height: number): void;
|
|
22
|
+
updateParentGroup(_group: DockviewGroupPanel, _isPanelVisible: boolean): void;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|
|
25
25
|
//# sourceMappingURL=reactWatermarkPart.d.ts.map
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactWatermarkPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var ReactWatermarkPart = /** @class */ (function () {
|
|
6
|
-
function ReactWatermarkPart(id, component, reactPortalStore) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.component = component;
|
|
9
|
-
this.reactPortalStore = reactPortalStore;
|
|
10
|
-
this._element = document.createElement('div');
|
|
11
|
-
this._element.className = 'dockview-react-part';
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(ReactWatermarkPart.prototype, "element", {
|
|
14
|
-
get: function () {
|
|
15
|
-
return this._element;
|
|
16
|
-
},
|
|
17
|
-
enumerable: false,
|
|
18
|
-
configurable: true
|
|
19
|
-
});
|
|
20
|
-
ReactWatermarkPart.prototype.init = function (parameters) {
|
|
21
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
22
|
-
group: parameters.group,
|
|
23
|
-
containerApi: parameters.containerApi,
|
|
24
|
-
close: function () {
|
|
25
|
-
if (parameters.group) {
|
|
26
|
-
parameters.containerApi.removeGroup(parameters.group);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
ReactWatermarkPart.prototype.focus = function () {
|
|
32
|
-
// noop
|
|
33
|
-
};
|
|
34
|
-
ReactWatermarkPart.prototype.update = function (params) {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
if (this.parameters) {
|
|
37
|
-
this.parameters.params = params.params;
|
|
38
|
-
}
|
|
39
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params)
|
|
40
|
-
};
|
|
41
|
-
ReactWatermarkPart.prototype.layout = function (_width, _height) {
|
|
42
|
-
// noop - retrieval from api
|
|
43
|
-
};
|
|
44
|
-
ReactWatermarkPart.prototype.updateParentGroup = function (_group, _isPanelVisible) {
|
|
45
|
-
// noop
|
|
46
|
-
};
|
|
47
|
-
ReactWatermarkPart.prototype.dispose = function () {
|
|
48
|
-
var _a;
|
|
49
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
50
|
-
};
|
|
51
|
-
return ReactWatermarkPart;
|
|
52
|
-
}());
|
|
53
|
-
exports.ReactWatermarkPart = ReactWatermarkPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactWatermarkPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var ReactWatermarkPart = /** @class */ (function () {
|
|
6
|
+
function ReactWatermarkPart(id, component, reactPortalStore) {
|
|
7
|
+
this.id = id;
|
|
8
|
+
this.component = component;
|
|
9
|
+
this.reactPortalStore = reactPortalStore;
|
|
10
|
+
this._element = document.createElement('div');
|
|
11
|
+
this._element.className = 'dockview-react-part';
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(ReactWatermarkPart.prototype, "element", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this._element;
|
|
16
|
+
},
|
|
17
|
+
enumerable: false,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
ReactWatermarkPart.prototype.init = function (parameters) {
|
|
21
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
22
|
+
group: parameters.group,
|
|
23
|
+
containerApi: parameters.containerApi,
|
|
24
|
+
close: function () {
|
|
25
|
+
if (parameters.group) {
|
|
26
|
+
parameters.containerApi.removeGroup(parameters.group);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
ReactWatermarkPart.prototype.focus = function () {
|
|
32
|
+
// noop
|
|
33
|
+
};
|
|
34
|
+
ReactWatermarkPart.prototype.update = function (params) {
|
|
35
|
+
var _a, _b, _c;
|
|
36
|
+
if (this.parameters) {
|
|
37
|
+
this.parameters.params = params.params;
|
|
38
|
+
}
|
|
39
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: (_c = (_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) !== null && _c !== void 0 ? _c : {} });
|
|
40
|
+
};
|
|
41
|
+
ReactWatermarkPart.prototype.layout = function (_width, _height) {
|
|
42
|
+
// noop - retrieval from api
|
|
43
|
+
};
|
|
44
|
+
ReactWatermarkPart.prototype.updateParentGroup = function (_group, _isPanelVisible) {
|
|
45
|
+
// noop
|
|
46
|
+
};
|
|
47
|
+
ReactWatermarkPart.prototype.dispose = function () {
|
|
48
|
+
var _a;
|
|
49
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
50
|
+
};
|
|
51
|
+
return ReactWatermarkPart;
|
|
52
|
+
}());
|
|
53
|
+
exports.ReactWatermarkPart = ReactWatermarkPart;
|
|
54
54
|
//# sourceMappingURL=reactWatermarkPart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactWatermarkPart.js","sourceRoot":"","sources":["../../../src/dockview/reactWatermarkPart.ts"],"names":[],"mappings":";;;AACA,kCAAuD;AAiBvD;IASI,4BACoB,EAAU,EACT,SAAwD,EACxD,gBAAkC;QAFnC,OAAE,GAAF,EAAE,CAAQ;QACT,cAAS,GAAT,SAAS,CAA+C;QACxD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAEnD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,qBAAqB,CAAC;IACpD,CAAC;IAXD,sBAAI,uCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAWD,iCAAI,GAAJ,UAAK,UAA2C;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,iBAAS,CACrB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,SAAS,EACd;YACI,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,KAAK,EAAE;gBACH,IAAI,UAAU,CAAC,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"reactWatermarkPart.js","sourceRoot":"","sources":["../../../src/dockview/reactWatermarkPart.ts"],"names":[],"mappings":";;;AACA,kCAAuD;AAiBvD;IASI,4BACoB,EAAU,EACT,SAAwD,EACxD,gBAAkC;QAFnC,OAAE,GAAF,EAAE,CAAQ;QACT,cAAS,GAAT,SAAS,CAA+C;QACxD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAEnD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,qBAAqB,CAAC;IACpD,CAAC;IAXD,sBAAI,uCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAWD,iCAAI,GAAJ,UAAK,UAA2C;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,iBAAS,CACrB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,SAAS,EACd;YACI,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,KAAK,EAAE;gBACH,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;oBACnB,UAAU,CAAC,YAAY,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;gBAC1D,CAAC;YACL,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;IAED,kCAAK,GAAL;QACI,OAAO;IACX,CAAC;IAED,mCAAM,GAAN,UAAO,MAAwB;;QAC3B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC3C,CAAC;QAED,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,MAAM,mCAAI,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,mCAAM,GAAN,UAAO,MAAc,EAAE,OAAe;QAClC,4BAA4B;IAChC,CAAC;IAED,8CAAiB,GAAjB,UACI,MAA0B,EAC1B,eAAwB;QAExB,OAAO;IACX,CAAC;IAED,oCAAO,GAAP;;QACI,MAAA,IAAI,CAAC,IAAI,0CAAE,OAAO,EAAE,CAAC;IACzB,CAAC;IACL,yBAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DY,gDAAkB"}
|