igniteui-dockmanager 1.12.0 → 1.12.2-beta.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/CHANGELOG.md +9 -0
- package/dist/cjs/igc-button-component_20.cjs.entry.js +44 -11
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/{locale-9c9c5782.js → locale-d4a89130.js} +24 -0
- package/dist/collection/components/dockmanager/dockmanager-component.js +44 -13
- package/dist/collection/components/dockmanager/dockmanager.public-interfaces.js +30 -0
- package/dist/collection/components/sample-component/sample-component.js +20 -3
- package/dist/esm/igc-button-component_20.entry.js +44 -11
- package/dist/esm/index.js +1 -1
- package/dist/esm/{locale-e3a8686b.js → locale-505757c0.js} +24 -1
- package/dist/esm-es5/igc-button-component_20.entry.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/locale-505757c0.js +1 -0
- package/dist/igniteui-dockmanager/igniteui-dockmanager.esm.js +1 -1
- package/dist/igniteui-dockmanager/index.esm.js +1 -1
- package/dist/igniteui-dockmanager/p-142ceb4c.system.entry.js +1 -0
- package/dist/igniteui-dockmanager/p-8ebc07f3.js +1 -0
- package/dist/igniteui-dockmanager/p-9474145a.system.js +1 -0
- package/dist/igniteui-dockmanager/p-a48673a3.system.js +1 -0
- package/dist/igniteui-dockmanager/p-dd94290a.entry.js +1 -0
- package/dist/igniteui-dockmanager/p-f8e35aef.system.js +1 -1
- package/dist/types/components/dockmanager/dockmanager-component.d.ts +3 -3
- package/dist/types/components/dockmanager/dockmanager.public-interfaces.d.ts +20 -5
- package/dist/types/components/sample-component/sample-component.d.ts +2 -0
- package/dist/types/components.d.ts +3 -3
- package/loader/cdn.js +2 -2
- package/loader/index.cjs.js +2 -2
- package/package.json +1 -1
- package/dist/esm-es5/locale-e3a8686b.js +0 -1
- package/dist/igniteui-dockmanager/p-484a4e6e.system.js +0 -1
- package/dist/igniteui-dockmanager/p-7c30b111.system.entry.js +0 -1
- package/dist/igniteui-dockmanager/p-a03fdb35.entry.js +0 -1
- package/dist/igniteui-dockmanager/p-e7849868.system.js +0 -1
- package/dist/igniteui-dockmanager/p-ea5c9f8d.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes for each version of this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 1.12.1
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
- Include pane information in `splitterResizeStart` and `splitterResizeEnd` events
|
|
9
|
+
- `IgcDockManagerComponent` is now exported as class
|
|
10
|
+
|
|
11
|
+
### Bug fixes
|
|
12
|
+
- Contents in slots with `unpinnedHeaderId` are not updated correctly [#53](https://github.com/IgniteUI/igniteui-dockmanager/issues/53)
|
|
13
|
+
|
|
5
14
|
## 1.12.0
|
|
6
15
|
|
|
7
16
|
### Bug fixes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f11f2141.js');
|
|
6
|
-
const locale = require('./locale-
|
|
6
|
+
const locale = require('./locale-d4a89130.js');
|
|
7
7
|
|
|
8
8
|
const buttonComponentCss = "button{position:static;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;height:100%;min-width:10px;padding:2px 4px;border-radius:2px;color:var(--igc-button-text, rgba(0, 0, 0, 0.72));cursor:pointer;outline-style:none;font-size:14px;font-family:inherit;background:transparent;border:none;-webkit-tap-highlight-color:transparent;opacity:0.7;-webkit-transition:background 0.25s ease-out, opacity 0.25s ease-out, -webkit-box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, -webkit-box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, box-shadow 0.25s ease-out, -webkit-box-shadow 0.25s ease-out}:host([disabled]){pointer-events:none}:host{display:-ms-flexbox;display:flex}button{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}button:hover{opacity:1}button:focus{background:var(--igc-accent-color, #fff);-webkit-box-shadow:inset 0 0 0 1px var(--igc-active-color, cornflowerblue);box-shadow:inset 0 0 0 1px var(--igc-active-color, cornflowerblue);opacity:1}button[disabled]{opacity:0.54}";
|
|
9
9
|
|
|
@@ -2249,13 +2249,25 @@ let IgcDockManager = class {
|
|
|
2249
2249
|
document.body.style.cursor = this._isValidDrop ? 'default' : 'not-allowed';
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
|
-
handleFlyoutSplitterResizeEnd(event) {
|
|
2252
|
+
handleFlyoutSplitterResizeEnd(pane, orientation, event) {
|
|
2253
2253
|
this.service.resizeFlyoutPane(event.detail);
|
|
2254
|
-
this.
|
|
2254
|
+
let offset = this.splitterOffset * event.detail;
|
|
2255
|
+
let rect;
|
|
2256
|
+
const splitter = event.target;
|
|
2257
|
+
rect = splitter.previousElementSibling.getBoundingClientRect();
|
|
2258
|
+
const paneWidth = orientation === locale.IgcSplitPaneOrientation.horizontal ? rect.width + offset : rect.width;
|
|
2259
|
+
const paneHeight = orientation === locale.IgcSplitPaneOrientation.vertical ? rect.height + offset : rect.height;
|
|
2260
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2255
2261
|
}
|
|
2256
|
-
handleSplitterResizeStart(event) {
|
|
2262
|
+
handleSplitterResizeStart(pane, event) {
|
|
2257
2263
|
const splitter = event.target;
|
|
2258
|
-
const
|
|
2264
|
+
const orientation = splitter.splitPaneOrientation;
|
|
2265
|
+
let rect;
|
|
2266
|
+
const splitterEl = event.target;
|
|
2267
|
+
rect = pane === this.flyoutPane ? splitterEl.previousElementSibling.getBoundingClientRect() : splitterEl.nextElementSibling.getBoundingClientRect();
|
|
2268
|
+
const paneWidth = rect.width;
|
|
2269
|
+
const paneHeight = rect.height;
|
|
2270
|
+
const resizeStartEvent = this.splitterResizeStart.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2259
2271
|
if (resizeStartEvent.defaultPrevented) {
|
|
2260
2272
|
this.splitterOffset = 0;
|
|
2261
2273
|
splitter.showDragGhost = false;
|
|
@@ -2291,7 +2303,12 @@ let IgcDockManager = class {
|
|
|
2291
2303
|
offsetPercentage *= -1;
|
|
2292
2304
|
}
|
|
2293
2305
|
this.service.resizePane(pane, offsetPercentage);
|
|
2294
|
-
|
|
2306
|
+
const orientation = parentPane.orientation;
|
|
2307
|
+
let rect;
|
|
2308
|
+
rect = splitter.nextElementSibling.getBoundingClientRect();
|
|
2309
|
+
const paneWidth = orientation === locale.IgcSplitPaneOrientation.horizontal ? rect.width - offsetPercentage * sizeSum : rect.width;
|
|
2310
|
+
const paneHeight = orientation === locale.IgcSplitPaneOrientation.vertical ? rect.height - offsetPercentage * sizeSum : rect.height;
|
|
2311
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2295
2312
|
}
|
|
2296
2313
|
clearActivePane() {
|
|
2297
2314
|
if (this.activePane && this.shouldClearActivePane && this.reason !== ActionReason.drop) {
|
|
@@ -2767,7 +2784,7 @@ let IgcDockManager = class {
|
|
|
2767
2784
|
pane.header), index.h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, index.h("slot", { name: pane.contentId }))));
|
|
2768
2785
|
}
|
|
2769
2786
|
renderSplitter(parentPane, pane) {
|
|
2770
|
-
return (index.h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
2787
|
+
return (index.h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this, pane), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
2771
2788
|
}
|
|
2772
2789
|
renderDocumentHost(docHost) {
|
|
2773
2790
|
return (index.h("igc-document-host-component", { key: docHost.id, size: docHost.size, ref: el => {
|
|
@@ -2874,6 +2891,10 @@ let IgcDockManager = class {
|
|
|
2874
2891
|
};
|
|
2875
2892
|
return (index.h("div", { class: tabAreaClasses, part: Utils.partNameMap(tabAreaClasses), role: "tablist", "aria-orientation": isHorizontal ? 'horizontal' : 'vertical' }, panes.map(p => (index.h("igc-unpinned-pane-header-component", { location: location, isActive: p === this.activePane, disabled: p.disabled, onMouseDown: this.handleUnpinnedTabMouseDown.bind(this, p), onKeyDown: this.handleUnpinnedTabKeyDown.bind(this, p), onFocus: this.handleUnpinnedHeaderFocus.bind(this, p), ref: el => {
|
|
2876
2893
|
if (el) {
|
|
2894
|
+
const slot = el.querySelector('slot');
|
|
2895
|
+
if (slot && p.unpinnedHeaderId) {
|
|
2896
|
+
slot.name = p.unpinnedHeaderId;
|
|
2897
|
+
}
|
|
2877
2898
|
this.unpinnedHeadersMap.set(p, el);
|
|
2878
2899
|
}
|
|
2879
2900
|
} }, p.unpinnedHeaderId ? index.h("slot", { name: p.unpinnedHeaderId }) : p.header)))));
|
|
@@ -2891,7 +2912,7 @@ let IgcDockManager = class {
|
|
|
2891
2912
|
splitPaneOrientation = locale.IgcSplitPaneOrientation.horizontal;
|
|
2892
2913
|
}
|
|
2893
2914
|
const maximized = this.maximizedPane === this.flyoutPane;
|
|
2894
|
-
return this.flyoutPane && (index.h("div", { class: flyoutClasses, style: { 'z-index': maximized ? '10002' : '2' } }, this.renderContentPane(this.flyoutPane, false, true), index.h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this) })));
|
|
2915
|
+
return this.flyoutPane && (index.h("div", { class: flyoutClasses, style: { 'z-index': maximized ? '10002' : '2' } }, this.renderContentPane(this.flyoutPane, false, true), index.h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this, this.flyoutPane), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this, this.flyoutPane, splitPaneOrientation) })));
|
|
2895
2916
|
}
|
|
2896
2917
|
renderFloatingPanes() {
|
|
2897
2918
|
var _a, _b;
|
|
@@ -4425,7 +4446,15 @@ let SampleComponent = class {
|
|
|
4425
4446
|
type: locale.IgcDockManagerPaneType.contentPane,
|
|
4426
4447
|
header: 'Toolbox',
|
|
4427
4448
|
contentId: 'content1',
|
|
4428
|
-
isPinned: false
|
|
4449
|
+
isPinned: false,
|
|
4450
|
+
unpinnedHeaderId: "toolboxHeader"
|
|
4451
|
+
};
|
|
4452
|
+
this.unpinnedTeamExplorerPane = {
|
|
4453
|
+
type: locale.IgcDockManagerPaneType.contentPane,
|
|
4454
|
+
header: 'Team Explorer',
|
|
4455
|
+
contentId: 'content14',
|
|
4456
|
+
isPinned: false,
|
|
4457
|
+
unpinnedHeaderId: "teamExplorerHeader"
|
|
4429
4458
|
};
|
|
4430
4459
|
this.layout1 = {
|
|
4431
4460
|
rootPane: {
|
|
@@ -4433,6 +4462,7 @@ let SampleComponent = class {
|
|
|
4433
4462
|
orientation: locale.IgcSplitPaneOrientation.horizontal,
|
|
4434
4463
|
panes: [
|
|
4435
4464
|
this.unpinnedToolboxPane,
|
|
4465
|
+
this.unpinnedTeamExplorerPane,
|
|
4436
4466
|
{
|
|
4437
4467
|
type: locale.IgcDockManagerPaneType.splitPane,
|
|
4438
4468
|
orientation: locale.IgcSplitPaneOrientation.vertical,
|
|
@@ -4854,6 +4884,9 @@ let SampleComponent = class {
|
|
|
4854
4884
|
this.log(event, Object.assign({}, event.detail));
|
|
4855
4885
|
// event.preventDefault();
|
|
4856
4886
|
}
|
|
4887
|
+
handleSplitterResizeEnd(event) {
|
|
4888
|
+
this.log(event, Object.assign({}, event.detail));
|
|
4889
|
+
}
|
|
4857
4890
|
handleFloatingPaneResizeStart(event) {
|
|
4858
4891
|
this.log(event, Object.assign({}, event.detail));
|
|
4859
4892
|
// event.preventDefault();
|
|
@@ -4886,11 +4919,11 @@ let SampleComponent = class {
|
|
|
4886
4919
|
render() {
|
|
4887
4920
|
return (index.h(index.Host, null, index.h("div", null, index.h("button", { onClick: () => this.saveLayout() }, "Save Layout"), index.h("button", { onClick: () => this.loadLayout() }, "Load Layout"), index.h("button", { onClick: () => this.setActivePane() }, "Set Active Pane"), index.h("button", { onClick: () => this.addPane() }, "Add Floating Pane"), index.h("button", { onClick: () => this.addTab() }, "Add Tab Pane"), index.h("button", { onClick: () => this.disableContentPane() }, "Disable Tab Pane"), index.h("input", { id: "hideOnClose", type: "checkbox", style: { marginLeft: '20px' }, ref: el => this.hideOnCloseCheckbox = el }), index.h("label", { htmlFor: "hideOnClose" }, "Hide on close"), index.h("span", { style: { marginLeft: '20px' } }, "Hidden Panes:"), index.h("select", { style: { width: '150px' }, ref: el => this.hiddenPanesSelect = el }, this.hiddenPanes.map(p => {
|
|
4888
4921
|
return (index.h("option", { value: p.id }, p.header));
|
|
4889
|
-
})), index.h("button", { onClick: () => this.showPane() }, "Show Pane"), index.h("button", { onClick: () => this.showAllPanes() }, "Show All Panes")), index.h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
4922
|
+
})), index.h("button", { onClick: () => this.showPane() }, "Show Pane"), index.h("button", { onClick: () => this.showAllPanes() }, "Show All Panes")), index.h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onSplitterResizeEnd: this.handleSplitterResizeEnd.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
4890
4923
|
// resourceStrings={this.getCustomResourceStrings()}
|
|
4891
4924
|
ref: el => this.dockManager = el,
|
|
4892
4925
|
// allowFloatingPanesResize={false}
|
|
4893
|
-
showHeaderIconOnHover: 'closeOnly' }, index.h("div", { slot: "header1" }, index.h("span", { style: { color: 'red' } }, "Solution Explorer"), index.h("button", null, "H")), index.h("div", { slot: "tabHeader1" }, index.h("span", { style: { color: 'orange' } }, "Solution Explorer"), index.h("button", null, "T")), index.h("div", { slot: "unpinnedHeader1" }, index.h("span", { style: { color: 'blue' } }, "Solution Explorer"), index.h("button", null, "U")), index.h("button", { style: { background: 'pink' }, slot: "tabHeaderCloseButton" }, "Y"), index.h("div", { slot: "content1", style: { width: '100%', height: '100%' } }, "Content 1"), index.h("div", { slot: "content2", style: { width: '100%', height: '100%' } }, index.h("button", null, "Tests")), index.h("div", { slot: "content3", style: { width: '100%', height: '100%' } }, "Content 3"), index.h("div", { slot: "content4" }, "Content 4"), index.h("div", { slot: "content5", style: { width: '100%', height: '100%' } }, "Content 5"), index.h("div", { slot: "content6", style: { width: '100%', height: '100%' } }, "Content 6"), index.h("div", { slot: "content7", style: { width: '100%', height: '100%' } }, "Content 7"), index.h("div", { slot: "content8" }, "Content 8"), index.h("div", { slot: "content9", style: { width: '100%', height: '100%' } }, "Content 9"), index.h("div", { slot: "content10", style: { width: '100%', height: '100%' } }, index.h("button", null, "Test")), index.h("div", { slot: "content11", style: { width: '100%', height: '100%' } }, index.h("input", null)), index.h("div", { slot: "content12", style: { width: '100%', height: '100%' } }, "Content 12"), index.h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13"))));
|
|
4926
|
+
showHeaderIconOnHover: 'closeOnly' }, index.h("div", { slot: "header1" }, index.h("span", { style: { color: 'red' } }, "Solution Explorer"), index.h("button", null, "H")), index.h("div", { slot: "tabHeader1" }, index.h("span", { style: { color: 'orange' } }, "Solution Explorer"), index.h("button", null, "T")), index.h("div", { slot: "unpinnedHeader1" }, index.h("span", { style: { color: 'blue' } }, "Solution Explorer"), index.h("button", null, "U")), index.h("button", { style: { background: 'pink' }, slot: "tabHeaderCloseButton" }, "Y"), index.h("div", { slot: "content1", style: { width: '100%', height: '100%' } }, "Content 1"), index.h("div", { slot: "content2", style: { width: '100%', height: '100%' } }, index.h("button", null, "Tests")), index.h("div", { slot: "content3", style: { width: '100%', height: '100%' } }, "Content 3"), index.h("div", { slot: "content4" }, "Content 4"), index.h("div", { slot: "content5", style: { width: '100%', height: '100%' } }, "Content 5"), index.h("div", { slot: "content6", style: { width: '100%', height: '100%' } }, "Content 6"), index.h("div", { slot: "content7", style: { width: '100%', height: '100%' } }, "Content 7"), index.h("div", { slot: "content8" }, "Content 8"), index.h("div", { slot: "content9", style: { width: '100%', height: '100%' } }, "Content 9"), index.h("div", { slot: "content10", style: { width: '100%', height: '100%' } }, index.h("button", null, "Test")), index.h("div", { slot: "content11", style: { width: '100%', height: '100%' } }, index.h("input", null)), index.h("div", { slot: "content12", style: { width: '100%', height: '100%' } }, "Content 12"), index.h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13"), index.h("div", { slot: "content14", style: { width: '100%', height: '100%' } }, "Content 14"), index.h("div", { slot: "toolboxHeader" }, index.h("span", null, "[U] Toolbox")), index.h("div", { slot: "teamExplorerHeader" }, index.h("span", null, "[U] Team Explorer")))));
|
|
4894
4927
|
}
|
|
4895
4928
|
};
|
|
4896
4929
|
SampleComponent.style = sampleComponentCss;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const locale = require('./locale-
|
|
5
|
+
const locale = require('./locale-d4a89130.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
exports.IgcDockManagerComponent = locale.IgcDockManagerComponent;
|
|
9
10
|
Object.defineProperty(exports, 'IgcDockManagerPaneType', {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -38,6 +38,29 @@ exports.IgcPaneDragActionType = void 0;
|
|
|
38
38
|
IgcPaneDragActionType["dockPane"] = "dockPane";
|
|
39
39
|
IgcPaneDragActionType["moveTab"] = "moveTab";
|
|
40
40
|
})(exports.IgcPaneDragActionType || (exports.IgcPaneDragActionType = {}));
|
|
41
|
+
/**
|
|
42
|
+
* Describes a Dock Manager component.
|
|
43
|
+
*/
|
|
44
|
+
/* blazorSupportsVisualChildren */
|
|
45
|
+
class IgcDockManagerComponent extends HTMLElement {
|
|
46
|
+
/**
|
|
47
|
+
* Performs drop of the `draggedPane` into the specified `dropPosition`.
|
|
48
|
+
* Returns true if the pane has been docked otherwise returns false.
|
|
49
|
+
*/
|
|
50
|
+
dropPane() {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Removes a pane from the layout.
|
|
55
|
+
*/
|
|
56
|
+
removePane(pane) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
addEventListener(type, listener, options) {
|
|
60
|
+
}
|
|
61
|
+
removeEventListener(type, listener, options) {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
41
64
|
exports.IgcResizerLocation = void 0;
|
|
42
65
|
(function (IgcResizerLocation) {
|
|
43
66
|
IgcResizerLocation["top"] = "top";
|
|
@@ -127,6 +150,7 @@ function addResourceStrings(language, resourceStrings) {
|
|
|
127
150
|
resourceStringsMap.set(language, resourceStrings);
|
|
128
151
|
}
|
|
129
152
|
|
|
153
|
+
exports.IgcDockManagerComponent = IgcDockManagerComponent;
|
|
130
154
|
exports.IgcDockManagerResourceStringsEN = IgcDockManagerResourceStringsEN;
|
|
131
155
|
exports.IgcDockManagerResourceStringsES = IgcDockManagerResourceStringsES;
|
|
132
156
|
exports.IgcDockManagerResourceStringsJP = IgcDockManagerResourceStringsJP;
|
|
@@ -467,13 +467,25 @@ export class IgcDockManager {
|
|
|
467
467
|
document.body.style.cursor = this._isValidDrop ? 'default' : 'not-allowed';
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
handleFlyoutSplitterResizeEnd(event) {
|
|
470
|
+
handleFlyoutSplitterResizeEnd(pane, orientation, event) {
|
|
471
471
|
this.service.resizeFlyoutPane(event.detail);
|
|
472
|
-
this.
|
|
472
|
+
let offset = this.splitterOffset * event.detail;
|
|
473
|
+
let rect;
|
|
474
|
+
const splitter = event.target;
|
|
475
|
+
rect = splitter.previousElementSibling.getBoundingClientRect();
|
|
476
|
+
const paneWidth = orientation === IgcSplitPaneOrientation.horizontal ? rect.width + offset : rect.width;
|
|
477
|
+
const paneHeight = orientation === IgcSplitPaneOrientation.vertical ? rect.height + offset : rect.height;
|
|
478
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
473
479
|
}
|
|
474
|
-
handleSplitterResizeStart(event) {
|
|
480
|
+
handleSplitterResizeStart(pane, event) {
|
|
475
481
|
const splitter = event.target;
|
|
476
|
-
const
|
|
482
|
+
const orientation = splitter.splitPaneOrientation;
|
|
483
|
+
let rect;
|
|
484
|
+
const splitterEl = event.target;
|
|
485
|
+
rect = pane === this.flyoutPane ? splitterEl.previousElementSibling.getBoundingClientRect() : splitterEl.nextElementSibling.getBoundingClientRect();
|
|
486
|
+
const paneWidth = rect.width;
|
|
487
|
+
const paneHeight = rect.height;
|
|
488
|
+
const resizeStartEvent = this.splitterResizeStart.emit({ pane, orientation, paneWidth, paneHeight });
|
|
477
489
|
if (resizeStartEvent.defaultPrevented) {
|
|
478
490
|
this.splitterOffset = 0;
|
|
479
491
|
splitter.showDragGhost = false;
|
|
@@ -509,7 +521,12 @@ export class IgcDockManager {
|
|
|
509
521
|
offsetPercentage *= -1;
|
|
510
522
|
}
|
|
511
523
|
this.service.resizePane(pane, offsetPercentage);
|
|
512
|
-
|
|
524
|
+
const orientation = parentPane.orientation;
|
|
525
|
+
let rect;
|
|
526
|
+
rect = splitter.nextElementSibling.getBoundingClientRect();
|
|
527
|
+
const paneWidth = orientation === IgcSplitPaneOrientation.horizontal ? rect.width - offsetPercentage * sizeSum : rect.width;
|
|
528
|
+
const paneHeight = orientation === IgcSplitPaneOrientation.vertical ? rect.height - offsetPercentage * sizeSum : rect.height;
|
|
529
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
513
530
|
}
|
|
514
531
|
clearActivePane() {
|
|
515
532
|
if (this.activePane && this.shouldClearActivePane && this.reason !== ActionReason.drop) {
|
|
@@ -998,7 +1015,7 @@ export class IgcDockManager {
|
|
|
998
1015
|
h("slot", { name: pane.contentId }))));
|
|
999
1016
|
}
|
|
1000
1017
|
renderSplitter(parentPane, pane) {
|
|
1001
|
-
return (h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
1018
|
+
return (h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this, pane), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
1002
1019
|
}
|
|
1003
1020
|
renderDocumentHost(docHost) {
|
|
1004
1021
|
return (h("igc-document-host-component", { key: docHost.id, size: docHost.size, ref: el => {
|
|
@@ -1105,6 +1122,10 @@ export class IgcDockManager {
|
|
|
1105
1122
|
};
|
|
1106
1123
|
return (h("div", { class: tabAreaClasses, part: Utils.partNameMap(tabAreaClasses), role: "tablist", "aria-orientation": isHorizontal ? 'horizontal' : 'vertical' }, panes.map(p => (h("igc-unpinned-pane-header-component", { location: location, isActive: p === this.activePane, disabled: p.disabled, onMouseDown: this.handleUnpinnedTabMouseDown.bind(this, p), onKeyDown: this.handleUnpinnedTabKeyDown.bind(this, p), onFocus: this.handleUnpinnedHeaderFocus.bind(this, p), ref: el => {
|
|
1107
1124
|
if (el) {
|
|
1125
|
+
const slot = el.querySelector('slot');
|
|
1126
|
+
if (slot && p.unpinnedHeaderId) {
|
|
1127
|
+
slot.name = p.unpinnedHeaderId;
|
|
1128
|
+
}
|
|
1108
1129
|
this.unpinnedHeadersMap.set(p, el);
|
|
1109
1130
|
}
|
|
1110
1131
|
} }, p.unpinnedHeaderId ? h("slot", { name: p.unpinnedHeaderId }) : p.header)))));
|
|
@@ -1124,7 +1145,7 @@ export class IgcDockManager {
|
|
|
1124
1145
|
const maximized = this.maximizedPane === this.flyoutPane;
|
|
1125
1146
|
return this.flyoutPane && (h("div", { class: flyoutClasses, style: { 'z-index': maximized ? '10002' : '2' } },
|
|
1126
1147
|
this.renderContentPane(this.flyoutPane, false, true),
|
|
1127
|
-
h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this) })));
|
|
1148
|
+
h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this, this.flyoutPane), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this, this.flyoutPane, splitPaneOrientation) })));
|
|
1128
1149
|
}
|
|
1129
1150
|
renderFloatingPanes() {
|
|
1130
1151
|
var _a, _b;
|
|
@@ -1581,9 +1602,14 @@ export class IgcDockManager {
|
|
|
1581
1602
|
"text": ""
|
|
1582
1603
|
},
|
|
1583
1604
|
"complexType": {
|
|
1584
|
-
"original": "
|
|
1585
|
-
"resolved": "
|
|
1586
|
-
"references": {
|
|
1605
|
+
"original": "IgcSplitterResizeEventArgs",
|
|
1606
|
+
"resolved": "IgcSplitterResizeEventArgs",
|
|
1607
|
+
"references": {
|
|
1608
|
+
"IgcSplitterResizeEventArgs": {
|
|
1609
|
+
"location": "import",
|
|
1610
|
+
"path": "./dockmanager.public-interfaces"
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1587
1613
|
}
|
|
1588
1614
|
}, {
|
|
1589
1615
|
"method": "splitterResizeEnd",
|
|
@@ -1596,9 +1622,14 @@ export class IgcDockManager {
|
|
|
1596
1622
|
"text": ""
|
|
1597
1623
|
},
|
|
1598
1624
|
"complexType": {
|
|
1599
|
-
"original": "
|
|
1600
|
-
"resolved": "
|
|
1601
|
-
"references": {
|
|
1625
|
+
"original": "IgcSplitterResizeEventArgs",
|
|
1626
|
+
"resolved": "IgcSplitterResizeEventArgs",
|
|
1627
|
+
"references": {
|
|
1628
|
+
"IgcSplitterResizeEventArgs": {
|
|
1629
|
+
"location": "import",
|
|
1630
|
+
"path": "./dockmanager.public-interfaces"
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1602
1633
|
}
|
|
1603
1634
|
}, {
|
|
1604
1635
|
"method": "paneClose",
|
|
@@ -36,6 +36,36 @@ export var IgcPaneDragActionType;
|
|
|
36
36
|
IgcPaneDragActionType["dockPane"] = "dockPane";
|
|
37
37
|
IgcPaneDragActionType["moveTab"] = "moveTab";
|
|
38
38
|
})(IgcPaneDragActionType || (IgcPaneDragActionType = {}));
|
|
39
|
+
/**
|
|
40
|
+
* Describes a Dock Manager component.
|
|
41
|
+
*/
|
|
42
|
+
/* blazorSupportsVisualChildren */
|
|
43
|
+
export class IgcDockManagerComponent extends HTMLElement {
|
|
44
|
+
/**
|
|
45
|
+
* Performs drop of the `draggedPane` into the specified `dropPosition`.
|
|
46
|
+
* Returns true if the pane has been docked otherwise returns false.
|
|
47
|
+
*/
|
|
48
|
+
dropPane() {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Removes a pane from the layout.
|
|
53
|
+
*/
|
|
54
|
+
removePane(pane) {
|
|
55
|
+
pane = pane;
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
addEventListener(type, listener, options) {
|
|
59
|
+
type = type;
|
|
60
|
+
listener = listener;
|
|
61
|
+
options = options;
|
|
62
|
+
}
|
|
63
|
+
removeEventListener(type, listener, options) {
|
|
64
|
+
type = type;
|
|
65
|
+
listener = listener;
|
|
66
|
+
options = options;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
39
69
|
export var IgcResizerLocation;
|
|
40
70
|
(function (IgcResizerLocation) {
|
|
41
71
|
IgcResizerLocation["top"] = "top";
|
|
@@ -29,7 +29,15 @@ export class SampleComponent {
|
|
|
29
29
|
type: IgcDockManagerPaneType.contentPane,
|
|
30
30
|
header: 'Toolbox',
|
|
31
31
|
contentId: 'content1',
|
|
32
|
-
isPinned: false
|
|
32
|
+
isPinned: false,
|
|
33
|
+
unpinnedHeaderId: "toolboxHeader"
|
|
34
|
+
};
|
|
35
|
+
this.unpinnedTeamExplorerPane = {
|
|
36
|
+
type: IgcDockManagerPaneType.contentPane,
|
|
37
|
+
header: 'Team Explorer',
|
|
38
|
+
contentId: 'content14',
|
|
39
|
+
isPinned: false,
|
|
40
|
+
unpinnedHeaderId: "teamExplorerHeader"
|
|
33
41
|
};
|
|
34
42
|
this.layout1 = {
|
|
35
43
|
rootPane: {
|
|
@@ -37,6 +45,7 @@ export class SampleComponent {
|
|
|
37
45
|
orientation: IgcSplitPaneOrientation.horizontal,
|
|
38
46
|
panes: [
|
|
39
47
|
this.unpinnedToolboxPane,
|
|
48
|
+
this.unpinnedTeamExplorerPane,
|
|
40
49
|
{
|
|
41
50
|
type: IgcDockManagerPaneType.splitPane,
|
|
42
51
|
orientation: IgcSplitPaneOrientation.vertical,
|
|
@@ -472,6 +481,9 @@ export class SampleComponent {
|
|
|
472
481
|
this.log(event, Object.assign({}, event.detail));
|
|
473
482
|
// event.preventDefault();
|
|
474
483
|
}
|
|
484
|
+
handleSplitterResizeEnd(event) {
|
|
485
|
+
this.log(event, Object.assign({}, event.detail));
|
|
486
|
+
}
|
|
475
487
|
handleFloatingPaneResizeStart(event) {
|
|
476
488
|
this.log(event, Object.assign({}, event.detail));
|
|
477
489
|
// event.preventDefault();
|
|
@@ -518,7 +530,7 @@ export class SampleComponent {
|
|
|
518
530
|
})),
|
|
519
531
|
h("button", { onClick: () => this.showPane() }, "Show Pane"),
|
|
520
532
|
h("button", { onClick: () => this.showAllPanes() }, "Show All Panes")),
|
|
521
|
-
h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
533
|
+
h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onSplitterResizeEnd: this.handleSplitterResizeEnd.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
522
534
|
// resourceStrings={this.getCustomResourceStrings()}
|
|
523
535
|
ref: el => this.dockManager = el,
|
|
524
536
|
// allowFloatingPanesResize={false}
|
|
@@ -548,7 +560,12 @@ export class SampleComponent {
|
|
|
548
560
|
h("div", { slot: "content11", style: { width: '100%', height: '100%' } },
|
|
549
561
|
h("input", null)),
|
|
550
562
|
h("div", { slot: "content12", style: { width: '100%', height: '100%' } }, "Content 12"),
|
|
551
|
-
h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13")
|
|
563
|
+
h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13"),
|
|
564
|
+
h("div", { slot: "content14", style: { width: '100%', height: '100%' } }, "Content 14"),
|
|
565
|
+
h("div", { slot: "toolboxHeader" },
|
|
566
|
+
h("span", null, "[U] Toolbox")),
|
|
567
|
+
h("div", { slot: "teamExplorerHeader" },
|
|
568
|
+
h("span", null, "[U] Team Explorer")))));
|
|
552
569
|
}
|
|
553
570
|
static get is() { return "sample-component"; }
|
|
554
571
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, F as Fragment, g as getElement, f as forceUpdate } from './index-cbe7fc41.js';
|
|
2
|
-
import { h as IgcDockingIndicatorPosition, f as IgcSplitPaneOrientation, e as IgcDockManagerPaneType, g as IgcUnpinnedLocation, i as IgcPaneDragActionType,
|
|
2
|
+
import { h as IgcDockingIndicatorPosition, f as IgcSplitPaneOrientation, e as IgcDockManagerPaneType, g as IgcUnpinnedLocation, i as IgcPaneDragActionType, k as IgcResizerLocation, r as resourceStringsMap, d as addResourceStrings } from './locale-505757c0.js';
|
|
3
3
|
|
|
4
4
|
const buttonComponentCss = "button{position:static;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;height:100%;min-width:10px;padding:2px 4px;border-radius:2px;color:var(--igc-button-text, rgba(0, 0, 0, 0.72));cursor:pointer;outline-style:none;font-size:14px;font-family:inherit;background:transparent;border:none;-webkit-tap-highlight-color:transparent;opacity:0.7;-webkit-transition:background 0.25s ease-out, opacity 0.25s ease-out, -webkit-box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, -webkit-box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, box-shadow 0.25s ease-out;transition:background 0.25s ease-out, opacity 0.25s ease-out, box-shadow 0.25s ease-out, -webkit-box-shadow 0.25s ease-out}:host([disabled]){pointer-events:none}:host{display:-ms-flexbox;display:flex}button{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}button:hover{opacity:1}button:focus{background:var(--igc-accent-color, #fff);-webkit-box-shadow:inset 0 0 0 1px var(--igc-active-color, cornflowerblue);box-shadow:inset 0 0 0 1px var(--igc-active-color, cornflowerblue);opacity:1}button[disabled]{opacity:0.54}";
|
|
5
5
|
|
|
@@ -2245,13 +2245,25 @@ let IgcDockManager = class {
|
|
|
2245
2245
|
document.body.style.cursor = this._isValidDrop ? 'default' : 'not-allowed';
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
|
-
handleFlyoutSplitterResizeEnd(event) {
|
|
2248
|
+
handleFlyoutSplitterResizeEnd(pane, orientation, event) {
|
|
2249
2249
|
this.service.resizeFlyoutPane(event.detail);
|
|
2250
|
-
this.
|
|
2250
|
+
let offset = this.splitterOffset * event.detail;
|
|
2251
|
+
let rect;
|
|
2252
|
+
const splitter = event.target;
|
|
2253
|
+
rect = splitter.previousElementSibling.getBoundingClientRect();
|
|
2254
|
+
const paneWidth = orientation === IgcSplitPaneOrientation.horizontal ? rect.width + offset : rect.width;
|
|
2255
|
+
const paneHeight = orientation === IgcSplitPaneOrientation.vertical ? rect.height + offset : rect.height;
|
|
2256
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2251
2257
|
}
|
|
2252
|
-
handleSplitterResizeStart(event) {
|
|
2258
|
+
handleSplitterResizeStart(pane, event) {
|
|
2253
2259
|
const splitter = event.target;
|
|
2254
|
-
const
|
|
2260
|
+
const orientation = splitter.splitPaneOrientation;
|
|
2261
|
+
let rect;
|
|
2262
|
+
const splitterEl = event.target;
|
|
2263
|
+
rect = pane === this.flyoutPane ? splitterEl.previousElementSibling.getBoundingClientRect() : splitterEl.nextElementSibling.getBoundingClientRect();
|
|
2264
|
+
const paneWidth = rect.width;
|
|
2265
|
+
const paneHeight = rect.height;
|
|
2266
|
+
const resizeStartEvent = this.splitterResizeStart.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2255
2267
|
if (resizeStartEvent.defaultPrevented) {
|
|
2256
2268
|
this.splitterOffset = 0;
|
|
2257
2269
|
splitter.showDragGhost = false;
|
|
@@ -2287,7 +2299,12 @@ let IgcDockManager = class {
|
|
|
2287
2299
|
offsetPercentage *= -1;
|
|
2288
2300
|
}
|
|
2289
2301
|
this.service.resizePane(pane, offsetPercentage);
|
|
2290
|
-
|
|
2302
|
+
const orientation = parentPane.orientation;
|
|
2303
|
+
let rect;
|
|
2304
|
+
rect = splitter.nextElementSibling.getBoundingClientRect();
|
|
2305
|
+
const paneWidth = orientation === IgcSplitPaneOrientation.horizontal ? rect.width - offsetPercentage * sizeSum : rect.width;
|
|
2306
|
+
const paneHeight = orientation === IgcSplitPaneOrientation.vertical ? rect.height - offsetPercentage * sizeSum : rect.height;
|
|
2307
|
+
this.splitterResizeEnd.emit({ pane, orientation, paneWidth, paneHeight });
|
|
2291
2308
|
}
|
|
2292
2309
|
clearActivePane() {
|
|
2293
2310
|
if (this.activePane && this.shouldClearActivePane && this.reason !== ActionReason.drop) {
|
|
@@ -2763,7 +2780,7 @@ let IgcDockManager = class {
|
|
|
2763
2780
|
pane.header), h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, h("slot", { name: pane.contentId }))));
|
|
2764
2781
|
}
|
|
2765
2782
|
renderSplitter(parentPane, pane) {
|
|
2766
|
-
return (h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
2783
|
+
return (h("igc-splitter-component", { splitPaneOrientation: parentPane.orientation, onResizeStart: this.handleSplitterResizeStart.bind(this, pane), onResizeEnd: this.handleSplitterResizeEnd.bind(this, parentPane, pane), onFocusin: this.clearActivePane.bind(this) }));
|
|
2767
2784
|
}
|
|
2768
2785
|
renderDocumentHost(docHost) {
|
|
2769
2786
|
return (h("igc-document-host-component", { key: docHost.id, size: docHost.size, ref: el => {
|
|
@@ -2870,6 +2887,10 @@ let IgcDockManager = class {
|
|
|
2870
2887
|
};
|
|
2871
2888
|
return (h("div", { class: tabAreaClasses, part: Utils.partNameMap(tabAreaClasses), role: "tablist", "aria-orientation": isHorizontal ? 'horizontal' : 'vertical' }, panes.map(p => (h("igc-unpinned-pane-header-component", { location: location, isActive: p === this.activePane, disabled: p.disabled, onMouseDown: this.handleUnpinnedTabMouseDown.bind(this, p), onKeyDown: this.handleUnpinnedTabKeyDown.bind(this, p), onFocus: this.handleUnpinnedHeaderFocus.bind(this, p), ref: el => {
|
|
2872
2889
|
if (el) {
|
|
2890
|
+
const slot = el.querySelector('slot');
|
|
2891
|
+
if (slot && p.unpinnedHeaderId) {
|
|
2892
|
+
slot.name = p.unpinnedHeaderId;
|
|
2893
|
+
}
|
|
2873
2894
|
this.unpinnedHeadersMap.set(p, el);
|
|
2874
2895
|
}
|
|
2875
2896
|
} }, p.unpinnedHeaderId ? h("slot", { name: p.unpinnedHeaderId }) : p.header)))));
|
|
@@ -2887,7 +2908,7 @@ let IgcDockManager = class {
|
|
|
2887
2908
|
splitPaneOrientation = IgcSplitPaneOrientation.horizontal;
|
|
2888
2909
|
}
|
|
2889
2910
|
const maximized = this.maximizedPane === this.flyoutPane;
|
|
2890
|
-
return this.flyoutPane && (h("div", { class: flyoutClasses, style: { 'z-index': maximized ? '10002' : '2' } }, this.renderContentPane(this.flyoutPane, false, true), h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this) })));
|
|
2911
|
+
return this.flyoutPane && (h("div", { class: flyoutClasses, style: { 'z-index': maximized ? '10002' : '2' } }, this.renderContentPane(this.flyoutPane, false, true), h("igc-splitter-component", { flyoutLocation: location, splitPaneOrientation: splitPaneOrientation, onResizeStart: this.handleSplitterResizeStart.bind(this, this.flyoutPane), onResizeEnd: this.handleFlyoutSplitterResizeEnd.bind(this, this.flyoutPane, splitPaneOrientation) })));
|
|
2891
2912
|
}
|
|
2892
2913
|
renderFloatingPanes() {
|
|
2893
2914
|
var _a, _b;
|
|
@@ -4421,7 +4442,15 @@ let SampleComponent = class {
|
|
|
4421
4442
|
type: IgcDockManagerPaneType.contentPane,
|
|
4422
4443
|
header: 'Toolbox',
|
|
4423
4444
|
contentId: 'content1',
|
|
4424
|
-
isPinned: false
|
|
4445
|
+
isPinned: false,
|
|
4446
|
+
unpinnedHeaderId: "toolboxHeader"
|
|
4447
|
+
};
|
|
4448
|
+
this.unpinnedTeamExplorerPane = {
|
|
4449
|
+
type: IgcDockManagerPaneType.contentPane,
|
|
4450
|
+
header: 'Team Explorer',
|
|
4451
|
+
contentId: 'content14',
|
|
4452
|
+
isPinned: false,
|
|
4453
|
+
unpinnedHeaderId: "teamExplorerHeader"
|
|
4425
4454
|
};
|
|
4426
4455
|
this.layout1 = {
|
|
4427
4456
|
rootPane: {
|
|
@@ -4429,6 +4458,7 @@ let SampleComponent = class {
|
|
|
4429
4458
|
orientation: IgcSplitPaneOrientation.horizontal,
|
|
4430
4459
|
panes: [
|
|
4431
4460
|
this.unpinnedToolboxPane,
|
|
4461
|
+
this.unpinnedTeamExplorerPane,
|
|
4432
4462
|
{
|
|
4433
4463
|
type: IgcDockManagerPaneType.splitPane,
|
|
4434
4464
|
orientation: IgcSplitPaneOrientation.vertical,
|
|
@@ -4850,6 +4880,9 @@ let SampleComponent = class {
|
|
|
4850
4880
|
this.log(event, Object.assign({}, event.detail));
|
|
4851
4881
|
// event.preventDefault();
|
|
4852
4882
|
}
|
|
4883
|
+
handleSplitterResizeEnd(event) {
|
|
4884
|
+
this.log(event, Object.assign({}, event.detail));
|
|
4885
|
+
}
|
|
4853
4886
|
handleFloatingPaneResizeStart(event) {
|
|
4854
4887
|
this.log(event, Object.assign({}, event.detail));
|
|
4855
4888
|
// event.preventDefault();
|
|
@@ -4882,11 +4915,11 @@ let SampleComponent = class {
|
|
|
4882
4915
|
render() {
|
|
4883
4916
|
return (h(Host, null, h("div", null, h("button", { onClick: () => this.saveLayout() }, "Save Layout"), h("button", { onClick: () => this.loadLayout() }, "Load Layout"), h("button", { onClick: () => this.setActivePane() }, "Set Active Pane"), h("button", { onClick: () => this.addPane() }, "Add Floating Pane"), h("button", { onClick: () => this.addTab() }, "Add Tab Pane"), h("button", { onClick: () => this.disableContentPane() }, "Disable Tab Pane"), h("input", { id: "hideOnClose", type: "checkbox", style: { marginLeft: '20px' }, ref: el => this.hideOnCloseCheckbox = el }), h("label", { htmlFor: "hideOnClose" }, "Hide on close"), h("span", { style: { marginLeft: '20px' } }, "Hidden Panes:"), h("select", { style: { width: '150px' }, ref: el => this.hiddenPanesSelect = el }, this.hiddenPanes.map(p => {
|
|
4884
4917
|
return (h("option", { value: p.id }, p.header));
|
|
4885
|
-
})), h("button", { onClick: () => this.showPane() }, "Show Pane"), h("button", { onClick: () => this.showAllPanes() }, "Show All Panes")), h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
4918
|
+
})), h("button", { onClick: () => this.showPane() }, "Show Pane"), h("button", { onClick: () => this.showAllPanes() }, "Show All Panes")), h("igc-dockmanager", { layout: this.layout, onPaneClose: this.handlePaneClose.bind(this), onPanePinnedToggle: this.handlePinnedToggle.bind(this), onActivePaneChanged: this.handleActivePaneChanged.bind(this), onPaneDragStart: this.handleDragStart.bind(this), onPaneDragOver: this.handleDragOver.bind(this), onPaneDragEnd: this.handleDragEnd.bind(this), onSplitterResizeStart: this.handleSplitterResizeStart.bind(this), onSplitterResizeEnd: this.handleSplitterResizeEnd.bind(this), onFloatingPaneResizeStart: this.handleFloatingPaneResizeStart.bind(this), onFloatingPaneResizeMove: this.handleFloatingPaneResizeMove.bind(this), onFloatingPaneResizeEnd: this.handleFloatingPaneResizeEnd.bind(this), onLayoutChange: this.handleLayoutChange.bind(this),
|
|
4886
4919
|
// resourceStrings={this.getCustomResourceStrings()}
|
|
4887
4920
|
ref: el => this.dockManager = el,
|
|
4888
4921
|
// allowFloatingPanesResize={false}
|
|
4889
|
-
showHeaderIconOnHover: 'closeOnly' }, h("div", { slot: "header1" }, h("span", { style: { color: 'red' } }, "Solution Explorer"), h("button", null, "H")), h("div", { slot: "tabHeader1" }, h("span", { style: { color: 'orange' } }, "Solution Explorer"), h("button", null, "T")), h("div", { slot: "unpinnedHeader1" }, h("span", { style: { color: 'blue' } }, "Solution Explorer"), h("button", null, "U")), h("button", { style: { background: 'pink' }, slot: "tabHeaderCloseButton" }, "Y"), h("div", { slot: "content1", style: { width: '100%', height: '100%' } }, "Content 1"), h("div", { slot: "content2", style: { width: '100%', height: '100%' } }, h("button", null, "Tests")), h("div", { slot: "content3", style: { width: '100%', height: '100%' } }, "Content 3"), h("div", { slot: "content4" }, "Content 4"), h("div", { slot: "content5", style: { width: '100%', height: '100%' } }, "Content 5"), h("div", { slot: "content6", style: { width: '100%', height: '100%' } }, "Content 6"), h("div", { slot: "content7", style: { width: '100%', height: '100%' } }, "Content 7"), h("div", { slot: "content8" }, "Content 8"), h("div", { slot: "content9", style: { width: '100%', height: '100%' } }, "Content 9"), h("div", { slot: "content10", style: { width: '100%', height: '100%' } }, h("button", null, "Test")), h("div", { slot: "content11", style: { width: '100%', height: '100%' } }, h("input", null)), h("div", { slot: "content12", style: { width: '100%', height: '100%' } }, "Content 12"), h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13"))));
|
|
4922
|
+
showHeaderIconOnHover: 'closeOnly' }, h("div", { slot: "header1" }, h("span", { style: { color: 'red' } }, "Solution Explorer"), h("button", null, "H")), h("div", { slot: "tabHeader1" }, h("span", { style: { color: 'orange' } }, "Solution Explorer"), h("button", null, "T")), h("div", { slot: "unpinnedHeader1" }, h("span", { style: { color: 'blue' } }, "Solution Explorer"), h("button", null, "U")), h("button", { style: { background: 'pink' }, slot: "tabHeaderCloseButton" }, "Y"), h("div", { slot: "content1", style: { width: '100%', height: '100%' } }, "Content 1"), h("div", { slot: "content2", style: { width: '100%', height: '100%' } }, h("button", null, "Tests")), h("div", { slot: "content3", style: { width: '100%', height: '100%' } }, "Content 3"), h("div", { slot: "content4" }, "Content 4"), h("div", { slot: "content5", style: { width: '100%', height: '100%' } }, "Content 5"), h("div", { slot: "content6", style: { width: '100%', height: '100%' } }, "Content 6"), h("div", { slot: "content7", style: { width: '100%', height: '100%' } }, "Content 7"), h("div", { slot: "content8" }, "Content 8"), h("div", { slot: "content9", style: { width: '100%', height: '100%' } }, "Content 9"), h("div", { slot: "content10", style: { width: '100%', height: '100%' } }, h("button", null, "Test")), h("div", { slot: "content11", style: { width: '100%', height: '100%' } }, h("input", null)), h("div", { slot: "content12", style: { width: '100%', height: '100%' } }, "Content 12"), h("div", { slot: "content13", style: { width: '100%', height: '100%' } }, "Content 13"), h("div", { slot: "content14", style: { width: '100%', height: '100%' } }, "Content 14"), h("div", { slot: "toolboxHeader" }, h("span", null, "[U] Toolbox")), h("div", { slot: "teamExplorerHeader" }, h("span", null, "[U] Team Explorer")))));
|
|
4890
4923
|
}
|
|
4891
4924
|
};
|
|
4892
4925
|
SampleComponent.style = sampleComponentCss;
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { e as IgcDockManagerPaneType, I as IgcDockManagerResourceStringsEN, b as IgcDockManagerResourceStringsES, a as IgcDockManagerResourceStringsJP, c as IgcDockManagerResourceStringsKO, h as IgcDockingIndicatorPosition, i as IgcPaneDragActionType,
|
|
1
|
+
export { j as IgcDockManagerComponent, e as IgcDockManagerPaneType, I as IgcDockManagerResourceStringsEN, b as IgcDockManagerResourceStringsES, a as IgcDockManagerResourceStringsJP, c as IgcDockManagerResourceStringsKO, h as IgcDockingIndicatorPosition, i as IgcPaneDragActionType, k as IgcResizerLocation, f as IgcSplitPaneOrientation, g as IgcUnpinnedLocation, d as addResourceStrings } from './locale-505757c0.js';
|
|
@@ -36,6 +36,29 @@ var IgcPaneDragActionType;
|
|
|
36
36
|
IgcPaneDragActionType["dockPane"] = "dockPane";
|
|
37
37
|
IgcPaneDragActionType["moveTab"] = "moveTab";
|
|
38
38
|
})(IgcPaneDragActionType || (IgcPaneDragActionType = {}));
|
|
39
|
+
/**
|
|
40
|
+
* Describes a Dock Manager component.
|
|
41
|
+
*/
|
|
42
|
+
/* blazorSupportsVisualChildren */
|
|
43
|
+
class IgcDockManagerComponent extends HTMLElement {
|
|
44
|
+
/**
|
|
45
|
+
* Performs drop of the `draggedPane` into the specified `dropPosition`.
|
|
46
|
+
* Returns true if the pane has been docked otherwise returns false.
|
|
47
|
+
*/
|
|
48
|
+
dropPane() {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Removes a pane from the layout.
|
|
53
|
+
*/
|
|
54
|
+
removePane(pane) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
addEventListener(type, listener, options) {
|
|
58
|
+
}
|
|
59
|
+
removeEventListener(type, listener, options) {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
39
62
|
var IgcResizerLocation;
|
|
40
63
|
(function (IgcResizerLocation) {
|
|
41
64
|
IgcResizerLocation["top"] = "top";
|
|
@@ -125,4 +148,4 @@ function addResourceStrings(language, resourceStrings) {
|
|
|
125
148
|
resourceStringsMap.set(language, resourceStrings);
|
|
126
149
|
}
|
|
127
150
|
|
|
128
|
-
export { IgcDockManagerResourceStringsEN as I, IgcDockManagerResourceStringsJP as a, IgcDockManagerResourceStringsES as b, IgcDockManagerResourceStringsKO as c, addResourceStrings as d, IgcDockManagerPaneType as e, IgcSplitPaneOrientation as f, IgcUnpinnedLocation as g, IgcDockingIndicatorPosition as h, IgcPaneDragActionType as i,
|
|
151
|
+
export { IgcDockManagerResourceStringsEN as I, IgcDockManagerResourceStringsJP as a, IgcDockManagerResourceStringsES as b, IgcDockManagerResourceStringsKO as c, addResourceStrings as d, IgcDockManagerPaneType as e, IgcSplitPaneOrientation as f, IgcUnpinnedLocation as g, IgcDockingIndicatorPosition as h, IgcPaneDragActionType as i, IgcDockManagerComponent as j, IgcResizerLocation as k, resourceStringsMap as r };
|