igniteui-dockmanager 1.10.0-beta.1 → 1.10.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 +11 -0
- package/dist/cjs/igc-button-component_20.cjs.entry.js +212 -27
- package/dist/cjs/igniteui-dockmanager.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/dockmanager/dockmanager-component.js +173 -13
- package/dist/collection/components/dockmanager/panes/content-pane-component.js +24 -1
- package/dist/collection/components/dockmanager/panes/floating-pane-component.js +17 -0
- package/dist/collection/components/dockmanager/panes/split-pane-component.js +24 -1
- package/dist/collection/components/dockmanager/panes/unpinned-pane-header-component.js +5 -2
- package/dist/collection/components/sample-component/sample-component.js +16 -10
- package/dist/collection/components/tabs/tabs-component.js +40 -1
- package/dist/esm/igc-button-component_20.entry.js +212 -27
- package/dist/esm/igniteui-dockmanager.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/igc-button-component_20.entry.js +1 -1
- package/dist/esm-es5/igniteui-dockmanager.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/igniteui-dockmanager/igniteui-dockmanager.esm.js +1 -1
- package/dist/igniteui-dockmanager/p-4c252393.system.entry.js +1 -0
- package/dist/igniteui-dockmanager/p-85b739d6.entry.js +1 -0
- package/dist/igniteui-dockmanager/p-f8e35aef.system.js +1 -1
- package/dist/types/components/dockmanager/dockmanager-component.d.ts +8 -0
- package/dist/types/components/dockmanager/panes/content-pane-component.d.ts +3 -0
- package/dist/types/components/dockmanager/panes/floating-pane-component.d.ts +1 -0
- package/dist/types/components/dockmanager/panes/split-pane-component.d.ts +3 -0
- package/dist/types/components/sample-component/sample-component.d.ts +2 -0
- package/dist/types/components/tabs/tabs-component.d.ts +3 -0
- package/dist/types/components.d.ts +5 -0
- package/loader/cdn.js +2 -2
- package/loader/index.cjs.js +2 -2
- package/package.json +1 -1
- package/dist/igniteui-dockmanager/p-939d835f.entry.js +0 -1
- package/dist/igniteui-dockmanager/p-d5d35a28.system.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes for each version of this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 1.10.0
|
|
6
|
+
|
|
7
|
+
### New features
|
|
8
|
+
- Add `showHeaderIconOnHover` property
|
|
9
|
+
|
|
10
|
+
### Bug fixes
|
|
11
|
+
- Active pane is not retained on float/dock
|
|
12
|
+
- Splitter styles are not applied [#36](https://github.com/IgniteUI/igniteui-dockmanager/issues/36)
|
|
13
|
+
- `click` event on customized header buttons is not working [#37](https://github.com/IgniteUI/igniteui-dockmanager/issues/37)
|
|
14
|
+
- Removed erroneous dock indicators while dragging over splitter
|
|
15
|
+
|
|
5
16
|
## 1.9.0
|
|
6
17
|
|
|
7
18
|
### Bug fixes
|
|
@@ -105,9 +105,13 @@ const contentPaneComponentCss = ":host{--min-pane-size:0px;position:relative;dis
|
|
|
105
105
|
let IgcContentPaneComponent = class {
|
|
106
106
|
constructor(hostRef) {
|
|
107
107
|
index.registerInstance(this, hostRef);
|
|
108
|
+
this.rendered = index.createEvent(this, "rendered", 7);
|
|
108
109
|
this.disabled = false;
|
|
109
110
|
this.isSingleFloating = false;
|
|
110
111
|
}
|
|
112
|
+
componentDidRender() {
|
|
113
|
+
this.rendered.emit();
|
|
114
|
+
}
|
|
111
115
|
render() {
|
|
112
116
|
const size = this.size || this.size === 0 ? this.size : IGC_DEFAULT_PANE_SIZE;
|
|
113
117
|
const unpinnedSize = this.unpinnedSize ? this.unpinnedSize : IGC_DEFAULT_UNPIN_PANE_SIZE;
|
|
@@ -1737,6 +1741,12 @@ class IgcDockManagerKeyboardService {
|
|
|
1737
1741
|
|
|
1738
1742
|
const dockmanagerComponentCss = ":host{position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;background:var(--igc-dock-background, var(--igc-background-color, #E5E7E9));color:var(--igc-dock-text, var(--igc-text-color, rgba(0, 0, 0, 0.72)));font-family:var(--igc-font-family, \"Titillium Web\", \"Roboto\", \"Helvetica Neue\", sans-serif);outline-style:none;--unpinned-tab-area-size:30px}:host igc-icon-component svg{width:17px;height:17px}.pane-container--vertical,.pane-container--horizontal,.pane-container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;height:100%;width:100%;overflow:hidden}.pane-container--vertical{-ms-flex-direction:column;flex-direction:column}.unpinned-tab-area{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--unpinned-tab-area-size);height:auto}.unpinned-tab-area--left{padding:8px 8px 8px 0}.unpinned-tab-area--right{padding:8px 0 8px 8px}.unpinned-tab-area--bottom{padding-top:8px}.unpinned-tab-area--horizontal{-ms-flex-direction:row;flex-direction:row;width:auto;height:var(--unpinned-tab-area-size)}.unpinned-tab-area--hidden{display:none}.flyout-pane{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;width:100%;height:100%;pointer-events:none;z-index:2}.flyout-pane igc-content-pane-component{-webkit-box-shadow:0 12px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08));box-shadow:0 12px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08))}.flyout-pane--right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flyout-pane--right igc-content-pane-component{-webkit-box-shadow:-12px 0px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08));box-shadow:-12px 0px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08))}.flyout-pane--bottom{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flyout-pane--bottom igc-content-pane-component{-webkit-box-shadow:0 -12px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08));box-shadow:0 -12px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08))}.flyout-pane--left{-ms-flex-direction:row;flex-direction:row}.flyout-pane--left igc-content-pane-component{-webkit-box-shadow:12px 0px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08));box-shadow:12px 0px 8px var(--igc-flyout-shadow-color, rgba(0, 0, 0, 0.08))}.floating-panes{position:fixed;top:0;left:0;bottom:0;right:0;pointer-events:none;z-index:10000}.docking-indicators-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;pointer-events:none;z-index:10004}.content{overflow:auto;height:100%;-ms-flex-positive:1;flex-grow:1;color:var(--igc-pane-content-text, var(--igc-text-color, rgba(0, 0, 0, 0.72)));background:var(--igc-pane-content-background, var(--igc-border-color, #F3F5F7))}.maximized{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10002}igc-tab-header-component>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.drop-shadow{background-color:var(--igc-drop-shadow-background, rgba(100, 149, 237, 0.2));position:fixed;z-index:10003;display:block;pointer-events:none}";
|
|
1739
1743
|
|
|
1744
|
+
var ActionReason;
|
|
1745
|
+
(function (ActionReason) {
|
|
1746
|
+
ActionReason["click"] = "click";
|
|
1747
|
+
ActionReason["drop"] = "drop";
|
|
1748
|
+
ActionReason["maximizeOrMinimize"] = "maximizeOrMinimize";
|
|
1749
|
+
})(ActionReason || (ActionReason = {}));
|
|
1740
1750
|
let IgcDockManager = class {
|
|
1741
1751
|
constructor(hostRef) {
|
|
1742
1752
|
index.registerInstance(this, hostRef);
|
|
@@ -1763,6 +1773,7 @@ let IgcDockManager = class {
|
|
|
1763
1773
|
this.domObserver = new MutationObserver(this.mutationCallback.bind(this));
|
|
1764
1774
|
this.shouldMovePane = false;
|
|
1765
1775
|
this.scheduledCallbacks = [];
|
|
1776
|
+
this.shouldClearActivePane = true;
|
|
1766
1777
|
this.isDragging = false;
|
|
1767
1778
|
this.templatableComponents = [
|
|
1768
1779
|
{
|
|
@@ -1884,7 +1895,7 @@ let IgcDockManager = class {
|
|
|
1884
1895
|
}
|
|
1885
1896
|
const rootNode = this.getRootNode();
|
|
1886
1897
|
requestAnimationFrame(() => {
|
|
1887
|
-
if (!this.element.shadowRoot.activeElement && rootNode.activeElement === this.element) {
|
|
1898
|
+
if (!this.element.shadowRoot.activeElement && rootNode.activeElement === this.element && this.reason !== ActionReason.maximizeOrMinimize) {
|
|
1888
1899
|
this.clearActivePane();
|
|
1889
1900
|
}
|
|
1890
1901
|
});
|
|
@@ -1923,10 +1934,13 @@ let IgcDockManager = class {
|
|
|
1923
1934
|
activePaneChange(newValue, oldValue) {
|
|
1924
1935
|
var _a;
|
|
1925
1936
|
const args = { newPane: newValue, oldPane: oldValue };
|
|
1926
|
-
if (this.flyoutPane &&
|
|
1937
|
+
if (this.flyoutPane &&
|
|
1938
|
+
newValue !== this.flyoutPane &&
|
|
1939
|
+
(!newValue || newValue.isPinned !== false || this.activePaneInternalSet)) {
|
|
1927
1940
|
this.service.flyoutPane(this.flyoutPane);
|
|
1928
1941
|
}
|
|
1929
1942
|
this.activePaneChanged.emit(args);
|
|
1943
|
+
this.contentPaneId = (newValue === null || newValue === void 0 ? void 0 : newValue.contentId) || this.contentPaneId;
|
|
1930
1944
|
if (this.activePaneInternalSet) {
|
|
1931
1945
|
this.activePaneInternalSet = false;
|
|
1932
1946
|
return;
|
|
@@ -1966,17 +1980,17 @@ let IgcDockManager = class {
|
|
|
1966
1980
|
}
|
|
1967
1981
|
}
|
|
1968
1982
|
}
|
|
1969
|
-
this.scheduleAfterRender(() => {
|
|
1970
|
-
this.setFocus(newValue);
|
|
1971
|
-
});
|
|
1972
1983
|
}
|
|
1984
|
+
this.scheduleAfterRender(() => {
|
|
1985
|
+
this.setFocus(newValue);
|
|
1986
|
+
});
|
|
1973
1987
|
}
|
|
1974
1988
|
handleFocusOut(_event) {
|
|
1975
1989
|
if (this.paneToFocus) {
|
|
1976
1990
|
return;
|
|
1977
1991
|
}
|
|
1978
1992
|
const rootNode = this.getRootNode();
|
|
1979
|
-
if (!this._tabHeaderIconClicked) {
|
|
1993
|
+
if (!this._tabHeaderIconClicked && !this.isDragging) {
|
|
1980
1994
|
requestAnimationFrame(() => {
|
|
1981
1995
|
if (!this.element.contains(rootNode.activeElement)) {
|
|
1982
1996
|
this.clearActivePane();
|
|
@@ -1988,6 +2002,17 @@ let IgcDockManager = class {
|
|
|
1988
2002
|
handleKeyDown(event) {
|
|
1989
2003
|
this.keyboardService.handleKeydown(event);
|
|
1990
2004
|
}
|
|
2005
|
+
handlePointerDown(event) {
|
|
2006
|
+
const pathHTMLElements = event.composedPath().filter(e => e instanceof HTMLElement).map(e => e);
|
|
2007
|
+
const isMaximizeOrMinimize = pathHTMLElements.filter(e => e.attributes.getNamedItem('part') &&
|
|
2008
|
+
(e.attributes.getNamedItem('part').value === 'tabs-minimize-button' || e.attributes.getNamedItem('part').value === 'tabs-maximize-button')).length > 0;
|
|
2009
|
+
if (isMaximizeOrMinimize) {
|
|
2010
|
+
this.reason = ActionReason.maximizeOrMinimize;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
handlePointerUp() {
|
|
2014
|
+
this.reason = null;
|
|
2015
|
+
}
|
|
1991
2016
|
async dropPane() {
|
|
1992
2017
|
const docked = this.handlePaneDragEnd();
|
|
1993
2018
|
return Promise.resolve(docked);
|
|
@@ -2031,6 +2056,62 @@ let IgcDockManager = class {
|
|
|
2031
2056
|
focusElement() {
|
|
2032
2057
|
this.element.focus();
|
|
2033
2058
|
}
|
|
2059
|
+
handleTabsRendered(pane) {
|
|
2060
|
+
var _a;
|
|
2061
|
+
if (this.reason !== ActionReason.drop) {
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2064
|
+
if (((_a = pane.panes) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2065
|
+
const focusablePane = this.findFocusablePane(pane.panes);
|
|
2066
|
+
if ((focusablePane === null || focusablePane === void 0 ? void 0 : focusablePane.contentId) === this.contentPaneId) {
|
|
2067
|
+
pane.selectedIndex = pane.panes.indexOf(focusablePane);
|
|
2068
|
+
this.setActivePane(focusablePane);
|
|
2069
|
+
this.setFocus(focusablePane);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
handleSplitPaneRendered(panes) {
|
|
2074
|
+
if (this.reason !== ActionReason.drop) {
|
|
2075
|
+
return;
|
|
2076
|
+
}
|
|
2077
|
+
const focusablePane = this.findFocusablePane(panes);
|
|
2078
|
+
if ((focusablePane === null || focusablePane === void 0 ? void 0 : focusablePane.contentId) === this.contentPaneId) {
|
|
2079
|
+
this.setActivePane(focusablePane);
|
|
2080
|
+
this.setFocus(focusablePane);
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
findFocusablePane(panes, candidate) {
|
|
2084
|
+
const splitPanes = panes.filter(p => p.type === locale.IgcDockManagerPaneType.splitPane);
|
|
2085
|
+
for (const pane of splitPanes) {
|
|
2086
|
+
if (candidate) {
|
|
2087
|
+
return candidate;
|
|
2088
|
+
}
|
|
2089
|
+
const splitPane = pane;
|
|
2090
|
+
candidate = this.findFocusablePane(splitPane.panes);
|
|
2091
|
+
}
|
|
2092
|
+
const tabGroupPanes = panes.filter(p => p.type === locale.IgcDockManagerPaneType.tabGroupPane);
|
|
2093
|
+
for (const pane of tabGroupPanes) {
|
|
2094
|
+
if (candidate) {
|
|
2095
|
+
return candidate;
|
|
2096
|
+
}
|
|
2097
|
+
const tabGroupPane = pane;
|
|
2098
|
+
candidate = tabGroupPane.selectedIndex ? tabGroupPane.panes[tabGroupPane.selectedIndex] : this.findFocusablePane(tabGroupPane.panes);
|
|
2099
|
+
}
|
|
2100
|
+
const docHost = panes.filter(p => p.type === locale.IgcDockManagerPaneType.documentHost);
|
|
2101
|
+
for (const pane of docHost) {
|
|
2102
|
+
if (candidate) {
|
|
2103
|
+
return candidate;
|
|
2104
|
+
}
|
|
2105
|
+
const docHostPane = pane;
|
|
2106
|
+
candidate = this.findFocusablePane([docHostPane.rootPane]);
|
|
2107
|
+
}
|
|
2108
|
+
candidate = panes.find(p => p.type === locale.IgcDockManagerPaneType.contentPane
|
|
2109
|
+
&& p.contentId === this.contentPaneId) || candidate;
|
|
2110
|
+
if (candidate) {
|
|
2111
|
+
return candidate;
|
|
2112
|
+
}
|
|
2113
|
+
return panes.find(p => p.type === locale.IgcDockManagerPaneType.contentPane);
|
|
2114
|
+
}
|
|
2034
2115
|
processTemplates() {
|
|
2035
2116
|
if (this.templates.size === 0) {
|
|
2036
2117
|
return;
|
|
@@ -2154,13 +2235,17 @@ let IgcDockManager = class {
|
|
|
2154
2235
|
this.splitterResizeEnd.emit();
|
|
2155
2236
|
}
|
|
2156
2237
|
clearActivePane() {
|
|
2157
|
-
if (this.activePane) {
|
|
2238
|
+
if (this.activePane && this.shouldClearActivePane && this.reason !== ActionReason.drop) {
|
|
2158
2239
|
this.setActivePane(null);
|
|
2159
2240
|
}
|
|
2160
2241
|
}
|
|
2161
2242
|
handlePinToggle(pane) {
|
|
2162
|
-
this.
|
|
2243
|
+
this.shouldClearActivePane = false;
|
|
2163
2244
|
this.service.togglePin(pane);
|
|
2245
|
+
this.scheduleAfterRender(() => {
|
|
2246
|
+
this.shouldClearActivePane = true;
|
|
2247
|
+
this.setFocus(pane);
|
|
2248
|
+
});
|
|
2164
2249
|
}
|
|
2165
2250
|
handlePaneClose(pane) {
|
|
2166
2251
|
this.focusElement();
|
|
@@ -2172,10 +2257,15 @@ let IgcDockManager = class {
|
|
|
2172
2257
|
}
|
|
2173
2258
|
handleMaximize(pane) {
|
|
2174
2259
|
this.service.maximizePane(pane);
|
|
2260
|
+
this.scheduleAfterRender(() => {
|
|
2261
|
+
const paneToFocus = this.findFocusablePane([pane]);
|
|
2262
|
+
this.setFocus(paneToFocus);
|
|
2263
|
+
});
|
|
2175
2264
|
}
|
|
2176
2265
|
handleUnpinnedTabMouseDown(pane, event) {
|
|
2177
2266
|
const target = event.currentTarget;
|
|
2178
2267
|
const rootNode = this.getRootNode();
|
|
2268
|
+
this.contentPaneId = pane.id;
|
|
2179
2269
|
requestAnimationFrame(() => {
|
|
2180
2270
|
if (this.element === rootNode.activeElement || !this.element.contains(rootNode.activeElement)) {
|
|
2181
2271
|
target.focus();
|
|
@@ -2199,9 +2289,26 @@ let IgcDockManager = class {
|
|
|
2199
2289
|
rect = (pane !== this.flyoutPane && parent.type === locale.IgcDockManagerPaneType.tabGroupPane) ?
|
|
2200
2290
|
header.closest('igc-tabs-component').getBoundingClientRect() :
|
|
2201
2291
|
header.parentElement.getBoundingClientRect();
|
|
2292
|
+
this.contentPaneId = pane.contentId;
|
|
2202
2293
|
}
|
|
2294
|
+
this.shouldClearActivePane = false;
|
|
2295
|
+
this.focusElement();
|
|
2203
2296
|
const dragStarted = this.service.dragPaneStart(pane, rect, event.detail.clientX, event.detail.clientY);
|
|
2204
2297
|
this.isDragging = true;
|
|
2298
|
+
this.scheduleAfterRender(() => {
|
|
2299
|
+
this.shouldClearActivePane = true;
|
|
2300
|
+
if (pane.type === locale.IgcDockManagerPaneType.contentPane) {
|
|
2301
|
+
this.contentPaneId = pane.contentId;
|
|
2302
|
+
return;
|
|
2303
|
+
}
|
|
2304
|
+
if (pane.type === locale.IgcDockManagerPaneType.splitPane) {
|
|
2305
|
+
const targetPane = this.findFocusablePane(pane.panes);
|
|
2306
|
+
if (targetPane) {
|
|
2307
|
+
this.contentPaneId = targetPane.contentId;
|
|
2308
|
+
this.setActivePane(targetPane);
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2205
2312
|
if (!dragStarted) {
|
|
2206
2313
|
this.isDragging = false;
|
|
2207
2314
|
event.detail.cancel = true;
|
|
@@ -2221,7 +2328,21 @@ let IgcDockManager = class {
|
|
|
2221
2328
|
const docked = this.service.dragPaneEnd();
|
|
2222
2329
|
this.isDragging = false;
|
|
2223
2330
|
if (docked) {
|
|
2331
|
+
const activePane = this.activePane;
|
|
2332
|
+
this.shouldClearActivePane = false;
|
|
2333
|
+
this.reason = ActionReason.drop;
|
|
2224
2334
|
this.focusElement();
|
|
2335
|
+
if (activePane) {
|
|
2336
|
+
this.scheduleAfterRender(() => {
|
|
2337
|
+
this.setActivePane(activePane);
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
this.scheduleAfterRender(() => {
|
|
2341
|
+
this.shouldClearActivePane = true;
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
if (this.activePane) {
|
|
2345
|
+
this.setFocus(this.activePane);
|
|
2225
2346
|
}
|
|
2226
2347
|
return docked;
|
|
2227
2348
|
}
|
|
@@ -2238,9 +2359,13 @@ let IgcDockManager = class {
|
|
|
2238
2359
|
return this.handlePaneDragStart(rootParent, event);
|
|
2239
2360
|
}
|
|
2240
2361
|
}
|
|
2362
|
+
this.shouldClearActivePane = false;
|
|
2241
2363
|
this.focusElement();
|
|
2242
2364
|
const dragStarted = this.service.dragTabStart(pane);
|
|
2243
2365
|
this.isDragging = true;
|
|
2366
|
+
this.scheduleAfterRender(() => {
|
|
2367
|
+
this.shouldClearActivePane = true;
|
|
2368
|
+
});
|
|
2244
2369
|
if (!dragStarted) {
|
|
2245
2370
|
this.isDragging = false;
|
|
2246
2371
|
event.detail.cancel = true;
|
|
@@ -2298,7 +2423,16 @@ let IgcDockManager = class {
|
|
|
2298
2423
|
const elements = clientX && clientY ?
|
|
2299
2424
|
this.element.shadowRoot.elementsFromPoint(clientX, clientY) :
|
|
2300
2425
|
null;
|
|
2301
|
-
|
|
2426
|
+
let isOverSplitter = false;
|
|
2427
|
+
const splitter = elements.filter(e => e.tagName.toLowerCase() === 'igc-splitter-component');
|
|
2428
|
+
if (splitter.length > 0) {
|
|
2429
|
+
const splitterIndex = elements.indexOf(splitter[0]);
|
|
2430
|
+
const adjacentElement = elements[splitterIndex - 1];
|
|
2431
|
+
isOverSplitter = adjacentElement &&
|
|
2432
|
+
adjacentElement.tagName.toLowerCase() === 'igc-floating-pane-component' &&
|
|
2433
|
+
adjacentElement.floatingId === this.draggedPane.id; // if not equal - splitter is below another element, not directly over
|
|
2434
|
+
}
|
|
2435
|
+
if (!elements || !elements.length || isOverSplitter) {
|
|
2302
2436
|
this.service.dockingIndicator = null;
|
|
2303
2437
|
this.dropTargetPaneInfo = null;
|
|
2304
2438
|
return;
|
|
@@ -2412,12 +2546,14 @@ let IgcDockManager = class {
|
|
|
2412
2546
|
const rootNode = this.getRootNode();
|
|
2413
2547
|
if (this.element === rootNode.activeElement || !this.element.contains(rootNode.activeElement)) {
|
|
2414
2548
|
this.setFocus(pane);
|
|
2549
|
+
this.contentPaneId = pane.contentId;
|
|
2415
2550
|
}
|
|
2416
2551
|
});
|
|
2417
2552
|
}
|
|
2418
2553
|
handlePaneHeaderMouseDown(pane) {
|
|
2419
2554
|
const rootNode = this.getRootNode();
|
|
2420
2555
|
requestAnimationFrame(() => {
|
|
2556
|
+
this.contentPaneId = pane.contentId;
|
|
2421
2557
|
if (this.element === rootNode.activeElement || !this.element.contains(rootNode.activeElement)) {
|
|
2422
2558
|
const paneElement = this.contentPanesElementMap.get(pane);
|
|
2423
2559
|
paneElement.focus();
|
|
@@ -2434,6 +2570,8 @@ let IgcDockManager = class {
|
|
|
2434
2570
|
this._tabHeaderIconClicked = this.showHeaderIconOnHover &&
|
|
2435
2571
|
pathHTMLElements.filter(el => el.attributes.getNamedItem('part') && el.attributes.getNamedItem('part').value === 'tab-header-more-options floating').length > 0;
|
|
2436
2572
|
requestAnimationFrame(() => {
|
|
2573
|
+
this.contentPaneId = pane.contentId;
|
|
2574
|
+
this.reason = ActionReason.click;
|
|
2437
2575
|
if (this.element === rootNode.activeElement || !this.element.contains(rootNode.activeElement)) {
|
|
2438
2576
|
target.focus();
|
|
2439
2577
|
}
|
|
@@ -2442,8 +2580,22 @@ let IgcDockManager = class {
|
|
|
2442
2580
|
}
|
|
2443
2581
|
});
|
|
2444
2582
|
}
|
|
2445
|
-
handleFloatingPaneMouseDown(pane) {
|
|
2583
|
+
handleFloatingPaneMouseDown(pane, event) {
|
|
2584
|
+
const pathHTMLElements = event.composedPath().filter(e => e instanceof HTMLElement).map(e => e);
|
|
2585
|
+
const isContextMenu = pathHTMLElements.filter(e => e.attributes.getNamedItem('part') && e.attributes.getNamedItem('part').value === 'context-menu').length > 0;
|
|
2586
|
+
if (isContextMenu) {
|
|
2587
|
+
return;
|
|
2588
|
+
}
|
|
2446
2589
|
this.service.bringFloatingPaneOnTop(pane);
|
|
2590
|
+
requestAnimationFrame(() => {
|
|
2591
|
+
let targetPane = this.findFocusablePane(pane.panes);
|
|
2592
|
+
if (!targetPane) {
|
|
2593
|
+
targetPane = pane.panes[0];
|
|
2594
|
+
}
|
|
2595
|
+
this.setActivePane(targetPane);
|
|
2596
|
+
this.setFocus(targetPane);
|
|
2597
|
+
this.contentPaneId = targetPane.contentId;
|
|
2598
|
+
});
|
|
2447
2599
|
}
|
|
2448
2600
|
handleTabIconClick(p, position, isFloating, event) {
|
|
2449
2601
|
if (!this.showHeaderIconOnHover) {
|
|
@@ -2569,7 +2721,7 @@ let IgcDockManager = class {
|
|
|
2569
2721
|
const isSingleTab = tabs.length === 1 && position === IgcTabHeadersPosition.bottom;
|
|
2570
2722
|
const allowEmpty = pane.type === locale.IgcDockManagerPaneType.tabGroupPane ? pane.allowEmpty : false;
|
|
2571
2723
|
const allowMaximize = this.resolveAllowMaximize(pane);
|
|
2572
|
-
return (allowEmpty || tabs.length > 0) && (index.h("igc-tabs-component", { key: pane.id, size: pane.size, selectedIndex: selectedIndex, hasHeaders: !isSingleTab, maximized: this.maximizedPane === pane, allowMaximize: position === IgcTabHeadersPosition.top && allowMaximize, onMaximizeMinimizeFocus: this.clearActivePane.bind(this), onMaximize: this.handleMaximize.bind(this, pane), onSelectedIndexChanged: this.handleTabSelectedIndexChanged.bind(this, pane), onHiddenTabSelected: this.handleHiddenTabSelected.bind(this, pane), onSelectedTabOutOfView: this.handleSelectedTabOutOfView.bind(this, pane), tabHeadersPosition: position, resourceStrings: this.resourceStrings, ref: el => {
|
|
2724
|
+
return (allowEmpty || tabs.length > 0) && (index.h("igc-tabs-component", { key: pane.id, size: pane.size, selectedIndex: selectedIndex, hasHeaders: !isSingleTab, maximized: this.maximizedPane === pane, allowMaximize: position === IgcTabHeadersPosition.top && allowMaximize, onMaximizeMinimizeFocus: this.clearActivePane.bind(this), onMaximize: this.handleMaximize.bind(this, pane), onSelectedIndexChanged: this.handleTabSelectedIndexChanged.bind(this, pane), onHiddenTabSelected: this.handleHiddenTabSelected.bind(this, pane), onSelectedTabOutOfView: this.handleSelectedTabOutOfView.bind(this, pane), onRendered: this.handleTabsRendered.bind(this, pane), tabHeadersPosition: position, resourceStrings: this.resourceStrings, ref: el => {
|
|
2573
2725
|
if (el) {
|
|
2574
2726
|
this.panesElementMap.set(pane, el);
|
|
2575
2727
|
}
|
|
@@ -2612,7 +2764,7 @@ let IgcDockManager = class {
|
|
|
2612
2764
|
}
|
|
2613
2765
|
renderSplitPane(splitPane, isFloating, isInDocumentHost) {
|
|
2614
2766
|
const panes = this.service.getSplitPaneVisibleChildren(splitPane);
|
|
2615
|
-
return (splitPane.allowEmpty || panes.length > 0) && (index.h("igc-split-pane-component", { key: splitPane.id, orientation: splitPane.orientation, size: splitPane.size, ref: el => {
|
|
2767
|
+
return (splitPane.allowEmpty || panes.length > 0) && (index.h("igc-split-pane-component", { key: splitPane.id, orientation: splitPane.orientation, size: splitPane.size, onRendered: this.handleSplitPaneRendered.bind(this, panes), ref: el => {
|
|
2616
2768
|
if (el) {
|
|
2617
2769
|
this.panesElementMap.set(splitPane, el);
|
|
2618
2770
|
}
|
|
@@ -2692,7 +2844,7 @@ let IgcDockManager = class {
|
|
|
2692
2844
|
forceDrag = true;
|
|
2693
2845
|
}
|
|
2694
2846
|
const containsMaximizedPane = this.maximizedPane && this.service.getRootParent(this.maximizedPane) === p;
|
|
2695
|
-
return (index.h("igc-floating-pane-component", { key: p.id, style: { zIndex: this.floatingPaneZIndicesMap.get(p).toString() }, floatingLocation: p.floatingLocation ? p.floatingLocation : { x: 0, y: 0 }, floatingWidth: p.floatingWidth ? p.floatingWidth : IGC_DEFAULT_PANE_SIZE, floatingHeight: p.floatingHeight ? p.floatingHeight : IGC_DEFAULT_PANE_SIZE, hasHeader: hasHeader, onWndResizeStart: this.handleFloatingPaneResizeStart.bind(this, p), onWndResizeMove: this.handleFloatingPaneResizeMove.bind(this, p), onWndResizeEnd: this.handleFloatingPaneResizeEnd.bind(this, p), onMouseDown: this.handleFloatingPaneMouseDown.bind(this, p), class: {
|
|
2847
|
+
return (index.h("igc-floating-pane-component", { key: p.id, floatingId: p.id, style: { zIndex: this.floatingPaneZIndicesMap.get(p).toString() }, floatingLocation: p.floatingLocation ? p.floatingLocation : { x: 0, y: 0 }, floatingWidth: p.floatingWidth ? p.floatingWidth : IGC_DEFAULT_PANE_SIZE, floatingHeight: p.floatingHeight ? p.floatingHeight : IGC_DEFAULT_PANE_SIZE, hasHeader: hasHeader, onWndResizeStart: this.handleFloatingPaneResizeStart.bind(this, p), onWndResizeMove: this.handleFloatingPaneResizeMove.bind(this, p), onWndResizeEnd: this.handleFloatingPaneResizeEnd.bind(this, p), onMouseDown: this.handleFloatingPaneMouseDown.bind(this, p), class: {
|
|
2696
2848
|
'maximized': this.maximizedPane === p
|
|
2697
2849
|
}, maximized: this.maximizedPane === p || containsMaximizedPane, allowResize: (_a = p.floatingResizable) !== null && _a !== void 0 ? _a : this.allowFloatingPanesResize }, hasHeader ?
|
|
2698
2850
|
index.h("igc-pane-header-component", { slot: "header", isFloating: true, isFloatingPaneHeader: true, forcedDrag: forceDrag, allowMaximize: this.resolveAllowMaximize(p), maximized: this.maximizedPane === p, resourceStrings: this.resourceStrings, onDragStarted: this.handlePaneDragStart.bind(this, p), onDragMoved: this.handlePaneDragMove.bind(this), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handleFloatingPaneClose.bind(this, p), onMaximize: this.handleMaximize.bind(this, p), onFocusin: (this.clearActivePane.bind(this)) }) : null, this.renderSplitPane(p, true, false)));
|
|
@@ -3505,6 +3657,10 @@ const splitPaneComponentCss = ".sc-igc-split-pane-component-h{height:100%;displa
|
|
|
3505
3657
|
let IgcSplitPaneComponent = class {
|
|
3506
3658
|
constructor(hostRef) {
|
|
3507
3659
|
index.registerInstance(this, hostRef);
|
|
3660
|
+
this.rendered = index.createEvent(this, "rendered", 7);
|
|
3661
|
+
}
|
|
3662
|
+
componentDidRender() {
|
|
3663
|
+
this.rendered.emit();
|
|
3508
3664
|
}
|
|
3509
3665
|
render() {
|
|
3510
3666
|
const size = this.size || this.size === 0 ? this.size : IGC_DEFAULT_PANE_SIZE;
|
|
@@ -3871,6 +4027,7 @@ let IgcTabsComponent = class {
|
|
|
3871
4027
|
this.selectedIndexChanged = index.createEvent(this, "selectedIndexChanged", 3);
|
|
3872
4028
|
this.hiddenTabSelected = index.createEvent(this, "hiddenTabSelected", 3);
|
|
3873
4029
|
this.selectedTabOutOfView = index.createEvent(this, "selectedTabOutOfView", 3);
|
|
4030
|
+
this.rendered = index.createEvent(this, "rendered", 7);
|
|
3874
4031
|
this.forcedUpdate = false;
|
|
3875
4032
|
this.hasHiddenTabs = false;
|
|
3876
4033
|
this.allowMaximize = true;
|
|
@@ -3921,6 +4078,10 @@ let IgcTabsComponent = class {
|
|
|
3921
4078
|
componentWillLoad() {
|
|
3922
4079
|
this.hiddenTabsMenuMeta = null;
|
|
3923
4080
|
this.updateSelectedIndex();
|
|
4081
|
+
this.checkForActivePane();
|
|
4082
|
+
}
|
|
4083
|
+
componentDidRender() {
|
|
4084
|
+
this.rendered.emit();
|
|
3924
4085
|
}
|
|
3925
4086
|
componentDidLoad() {
|
|
3926
4087
|
this.setTabsAttributes();
|
|
@@ -3932,8 +4093,9 @@ let IgcTabsComponent = class {
|
|
|
3932
4093
|
componentDidUpdate() {
|
|
3933
4094
|
if (this.forcedUpdate) {
|
|
3934
4095
|
this.forcedUpdate = false;
|
|
3935
|
-
this.
|
|
4096
|
+
this.checkForActivePane();
|
|
3936
4097
|
}
|
|
4098
|
+
this.setHasHiddenTabs();
|
|
3937
4099
|
}
|
|
3938
4100
|
setTabsAttributes() {
|
|
3939
4101
|
const tabHeaders = this.tabHeaders;
|
|
@@ -4010,6 +4172,19 @@ let IgcTabsComponent = class {
|
|
|
4010
4172
|
setHasHiddenTabs() {
|
|
4011
4173
|
this.hasHiddenTabs = this.hiddenTabHeaders.length > 0;
|
|
4012
4174
|
}
|
|
4175
|
+
checkForActivePane() {
|
|
4176
|
+
const activeTabHeader = this.tabHeaders.filter(t => t.isActive);
|
|
4177
|
+
if (activeTabHeader.length > 0) {
|
|
4178
|
+
const hiddenActiveTabIndex = this.hiddenTabHeaders.indexOf(activeTabHeader[0]);
|
|
4179
|
+
const activeTabIndex = this.tabHeaders.indexOf(activeTabHeader[0]);
|
|
4180
|
+
if (hiddenActiveTabIndex >= 0) {
|
|
4181
|
+
this.selectedTabOutOfView.emit(activeTabIndex);
|
|
4182
|
+
}
|
|
4183
|
+
else if (activeTabIndex >= 0) {
|
|
4184
|
+
this.selectedIndex = activeTabIndex;
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4013
4188
|
handleHiddenTabsMenuClick(ev) {
|
|
4014
4189
|
const button = ev.currentTarget;
|
|
4015
4190
|
const items = this.hiddenTabHeaders.map(header => ({
|
|
@@ -4044,7 +4219,8 @@ let IgcTabsComponent = class {
|
|
|
4044
4219
|
'tab-headers-container': true,
|
|
4045
4220
|
'tab-headers-container--wrapped': this.showHiddenTabsMenu
|
|
4046
4221
|
} }, index.h("slot", { name: "tabHeader" })), index.h("div", { part: tabStripActionsParts, class: "tab-header-icon-container" }, this.showHiddenTabsMenu && this.hasHiddenTabs &&
|
|
4047
|
-
index.h("div", { onClick: this.handleHiddenTabsMenuClick.bind(this) }, this.renderMoreTabsButton()), this.
|
|
4222
|
+
index.h("div", { onClick: this.handleHiddenTabsMenuClick.bind(this) }, this.renderMoreTabsButton()), !(this.showHiddenTabsMenu && this.hasHiddenTabs) &&
|
|
4223
|
+
index.h("span", { style: { width: '25px' } }), this.allowMaximize &&
|
|
4048
4224
|
index.h("div", { onClick: this.maximizeButtonClick, onFocusin: this.handleMaximizeMinimizeFocus }, this.maximized ? this.renderMinimizeButton() : this.renderMaximizeButton()))));
|
|
4049
4225
|
}
|
|
4050
4226
|
renderMoreTabsButton() {
|
|
@@ -4095,12 +4271,15 @@ let IgcUnpinnedPaneHeaderComponent = class {
|
|
|
4095
4271
|
render() {
|
|
4096
4272
|
const isHorizontal = this.location === locale.IgcUnpinnedLocation.top || this.location === locale.IgcUnpinnedLocation.bottom;
|
|
4097
4273
|
const isLeft = this.location === locale.IgcUnpinnedLocation.left;
|
|
4274
|
+
const isRight = this.location === locale.IgcUnpinnedLocation.right;
|
|
4275
|
+
const isTop = this.location === locale.IgcUnpinnedLocation.top;
|
|
4276
|
+
const isBottom = this.location === locale.IgcUnpinnedLocation.bottom;
|
|
4098
4277
|
const parts = Utils.partNameMap({
|
|
4099
4278
|
'unpinned-pane-header': true,
|
|
4100
4279
|
horizontal: isHorizontal,
|
|
4101
4280
|
vertical: !isHorizontal,
|
|
4102
|
-
start: isLeft,
|
|
4103
|
-
end:
|
|
4281
|
+
start: isLeft || isTop,
|
|
4282
|
+
end: isRight || isBottom,
|
|
4104
4283
|
active: this.isActive,
|
|
4105
4284
|
disabled: this.disabled,
|
|
4106
4285
|
});
|
|
@@ -4423,6 +4602,7 @@ let SampleComponent = class {
|
|
|
4423
4602
|
]
|
|
4424
4603
|
};
|
|
4425
4604
|
this.layout = this.layout1;
|
|
4605
|
+
this.logEnabled = false;
|
|
4426
4606
|
this.id = 100;
|
|
4427
4607
|
this.foundElem = [];
|
|
4428
4608
|
}
|
|
@@ -4519,7 +4699,7 @@ let SampleComponent = class {
|
|
|
4519
4699
|
return divContent;
|
|
4520
4700
|
}
|
|
4521
4701
|
handlePaneClose(event) {
|
|
4522
|
-
|
|
4702
|
+
this.log(event);
|
|
4523
4703
|
if (this.hideOnCloseCheckbox.checked) {
|
|
4524
4704
|
for (const pane of event.detail.panes) {
|
|
4525
4705
|
pane.hidden = true;
|
|
@@ -4541,38 +4721,38 @@ let SampleComponent = class {
|
|
|
4541
4721
|
// }
|
|
4542
4722
|
}
|
|
4543
4723
|
handlePinnedToggle(event) {
|
|
4544
|
-
|
|
4724
|
+
this.log(event);
|
|
4545
4725
|
// if (event.detail.sourcePane.type === IgcDockManagerPaneType.contentPane) {
|
|
4546
4726
|
// event.detail.panes = [event.detail.sourcePane];
|
|
4547
4727
|
// }
|
|
4548
4728
|
// event.preventDefault();
|
|
4549
4729
|
}
|
|
4550
4730
|
handleActivePaneChanged(event) {
|
|
4551
|
-
|
|
4731
|
+
this.log(event);
|
|
4552
4732
|
}
|
|
4553
4733
|
handleDragStart(event) {
|
|
4554
|
-
|
|
4734
|
+
this.log(event);
|
|
4555
4735
|
// event.preventDefault();
|
|
4556
4736
|
}
|
|
4557
4737
|
handleDragOver(event) {
|
|
4558
4738
|
const args = event.detail;
|
|
4559
|
-
|
|
4739
|
+
this.log(args.action);
|
|
4560
4740
|
}
|
|
4561
4741
|
handleDragEnd(event) {
|
|
4562
|
-
|
|
4742
|
+
this.log(event);
|
|
4563
4743
|
}
|
|
4564
4744
|
handleFloatingPaneResizeStart(event) {
|
|
4565
|
-
|
|
4745
|
+
this.log(event, Object.assign({}, event.detail));
|
|
4566
4746
|
// event.preventDefault();
|
|
4567
4747
|
}
|
|
4568
4748
|
handleFloatingPaneResizeMove(event) {
|
|
4569
|
-
|
|
4749
|
+
this.log(event, Object.assign({}, event.detail));
|
|
4570
4750
|
}
|
|
4571
4751
|
handleFloatingPaneResizeEnd(event) {
|
|
4572
|
-
|
|
4752
|
+
this.log(event, Object.assign({}, event.detail));
|
|
4573
4753
|
}
|
|
4574
4754
|
handleLayoutChange(event) {
|
|
4575
|
-
|
|
4755
|
+
this.log(event);
|
|
4576
4756
|
}
|
|
4577
4757
|
// private getCustomResourceStrings(): IgcDockManagerResourceStrings {
|
|
4578
4758
|
// const customResourceStrings: IgcDockManagerResourceStrings = {
|
|
@@ -4585,6 +4765,11 @@ let SampleComponent = class {
|
|
|
4585
4765
|
// };
|
|
4586
4766
|
// return customResourceStrings;
|
|
4587
4767
|
// }
|
|
4768
|
+
log(message, ...optionalParams) {
|
|
4769
|
+
if (this.logEnabled) {
|
|
4770
|
+
console.log(message, optionalParams);
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4588
4773
|
render() {
|
|
4589
4774
|
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 => {
|
|
4590
4775
|
return (index.h("option", { value: p.id }, p.header));
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["igc-button-component_20.cjs",[[2,"sample-component",{"hiddenPanes":[1040]}],[1,"igc-dockmanager",{"navigationPaneMeta":[1040],"allowMaximize":[4,"allow-maximize"],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"],"maximizedPane":[1040],"resourceStrings":[1040],"allowFloatingPanesResize":[4,"allow-floating-panes-resize"],"disableKeyboardNavigation":[4,"disable-keyboard-navigation"],"layout":[1040],"draggedPane":[1040],"dropPosition":[16],"activePane":[1040],"dropTargetPaneInfo":[32],"flyoutPane":[32],"floatingPaneZIndicesMap":[32],"contextMenuMeta":[32],"dropShadowRect":[32],"templates":[32],"hasCustomMaximizeButton":[32],"hasCustomMinimizeButton":[32],"dropPane":[64],"removePane":[64]},[[0,"focusout","handleFocusOut"],[0,"keydown","handleKeyDown"]]],[1,"igc-tabs-component",{"size":[2],"maximized":[4],"allowMaximize":[4,"allow-maximize"],"tabHeadersPosition":[1,"tab-headers-position"],"selectedIndex":[1026,"selected-index"],"hasHeaders":[4,"has-headers"],"showHiddenTabsMenu":[4,"show-hidden-tabs-menu"],"resourceStrings":[16],"hiddenTabsMenuMeta":[32],"hasHiddenTabs":[32]},[[0,"tabMouseDown","handleTabMouseDown"]]],[2,"igc-joystick-indicator-component",{"dropTargetPaneInfo":[16],"documentOnlyDrag":[4,"document-only-drag"]}],[1,"igc-pane-header-component",{"dragService":[1040],"pinned":[4],"maximized":[4],"isFloating":[4,"is-floating"],"forcedDrag":[4,"forced-drag"],"isFloatingPaneHeader":[4,"is-floating-pane-header"],"allowClose":[4,"allow-close"],"allowMaximize":[4,"allow-maximize"],"allowPinning":[4,"allow-pinning"],"pane":[16],"isActive":[4,"is-active"],"disabled":[4],"resourceStrings":[16]}],[1,"igc-tab-header-component",{"dragService":[1040],"selected":[4],"position":[1],"iconName":[1,"icon-name"],"header":[1],"isActive":[4,"is-active"],"resourceStrings":[16],"forcedDrag":[4,"forced-drag"],"disabled":[4],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"]},[[1,"mousedown","handleMouseDown"]]],[1,"igc-floating-pane-component",{"allowResize":[4,"allow-resize"],"floatingLocation":[16],"floatingWidth":[2,"floating-width"],"floatingHeight":[2,"floating-height"],"hasHeader":[4,"has-header"],"maximized":[4],"floatingMinHeight":[2,"floating-min-height"],"floatingMinWidth":[2,"floating-min-width"]}],[2,"igc-root-docking-indicator-component",{"position":[1]}],[1,"igc-content-pane-component",{"size":[2],"isFlyout":[4,"is-flyout"],"unpinnedSize":[2,"unpinned-size"],"header":[1],"disabled":[4],"isSingleFloating":[4,"is-single-floating"]}],[2,"igc-document-host-component",{"size":[2]}],[1,"igc-pane-navigator-component",{"activeDocuments":[16],"activePanes":[16],"selectedIndex":[1026,"selected-index"],"previousActivePaneIndex":[2,"previous-active-pane-index"],"resourceStrings":[16]},[[0,"keyup","handleKeyUp"],[0,"keydown","handleKeydown"]]],[2,"igc-split-pane-component",{"orientation":[1],"size":[2]}],[1,"igc-splitter-component",{"splitPaneOrientation":[1,"split-pane-orientation"],"flyoutLocation":[1,"flyout-location"],"showDragGhost":[32],"dragOffset":[32],"hasCustomSplitterHandle":[32]},[[0,"keydown","handleKeydownEvent"],[1,"mousedown","handleMouseDown"]]],[1,"igc-tab-panel-component",{"selected":[4],"disabled":[4]}],[1,"igc-unpinned-pane-header-component",{"location":[1],"isActive":[4,"is-active"],"disabled":[4]}],[1,"igc-context-menu-component",{"orientation":[1],"target":[16],"items":[16],"activeIndex":[1026,"active-index"]},[[0,"focusout","emitMenuClosed"]]],[2,"igc-joystick-icon-component",{"isDocHost":[4,"is-doc-host"],"position":[1],"empty":[4]}],[2,"igc-resizer-component",{"orientation":[1],"dragOffsetX":[32],"dragOffsetY":[32]}],[1,"igc-button-component",{"disabled":[4],"name":[513],"type":[513],"value":[513]}],[2,"igc-icon-component",{"name":[1]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["igc-button-component_20.cjs",[[2,"sample-component",{"hiddenPanes":[1040]}],[1,"igc-dockmanager",{"navigationPaneMeta":[1040],"allowMaximize":[4,"allow-maximize"],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"],"maximizedPane":[1040],"resourceStrings":[1040],"allowFloatingPanesResize":[4,"allow-floating-panes-resize"],"disableKeyboardNavigation":[4,"disable-keyboard-navigation"],"layout":[1040],"draggedPane":[1040],"dropPosition":[16],"activePane":[1040],"dropTargetPaneInfo":[32],"flyoutPane":[32],"floatingPaneZIndicesMap":[32],"contextMenuMeta":[32],"dropShadowRect":[32],"templates":[32],"hasCustomMaximizeButton":[32],"hasCustomMinimizeButton":[32],"dropPane":[64],"removePane":[64]},[[0,"focusout","handleFocusOut"],[0,"keydown","handleKeyDown"],[1,"pointerdown","handlePointerDown"],[1,"pointerup","handlePointerUp"]]],[1,"igc-tabs-component",{"size":[2],"maximized":[4],"allowMaximize":[4,"allow-maximize"],"tabHeadersPosition":[1,"tab-headers-position"],"selectedIndex":[1026,"selected-index"],"hasHeaders":[4,"has-headers"],"showHiddenTabsMenu":[4,"show-hidden-tabs-menu"],"resourceStrings":[16],"hiddenTabsMenuMeta":[32],"hasHiddenTabs":[32]},[[0,"tabMouseDown","handleTabMouseDown"]]],[2,"igc-joystick-indicator-component",{"dropTargetPaneInfo":[16],"documentOnlyDrag":[4,"document-only-drag"]}],[1,"igc-pane-header-component",{"dragService":[1040],"pinned":[4],"maximized":[4],"isFloating":[4,"is-floating"],"forcedDrag":[4,"forced-drag"],"isFloatingPaneHeader":[4,"is-floating-pane-header"],"allowClose":[4,"allow-close"],"allowMaximize":[4,"allow-maximize"],"allowPinning":[4,"allow-pinning"],"pane":[16],"isActive":[4,"is-active"],"disabled":[4],"resourceStrings":[16]}],[1,"igc-tab-header-component",{"dragService":[1040],"selected":[4],"position":[1],"iconName":[1,"icon-name"],"header":[1],"isActive":[4,"is-active"],"resourceStrings":[16],"forcedDrag":[4,"forced-drag"],"disabled":[4],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"]},[[1,"mousedown","handleMouseDown"]]],[1,"igc-floating-pane-component",{"allowResize":[4,"allow-resize"],"floatingLocation":[16],"floatingWidth":[2,"floating-width"],"floatingHeight":[2,"floating-height"],"hasHeader":[4,"has-header"],"maximized":[4],"floatingMinHeight":[2,"floating-min-height"],"floatingMinWidth":[2,"floating-min-width"],"floatingId":[1,"floating-id"]}],[2,"igc-root-docking-indicator-component",{"position":[1]}],[1,"igc-content-pane-component",{"size":[2],"isFlyout":[4,"is-flyout"],"unpinnedSize":[2,"unpinned-size"],"header":[1],"disabled":[4],"isSingleFloating":[4,"is-single-floating"]}],[2,"igc-document-host-component",{"size":[2]}],[1,"igc-pane-navigator-component",{"activeDocuments":[16],"activePanes":[16],"selectedIndex":[1026,"selected-index"],"previousActivePaneIndex":[2,"previous-active-pane-index"],"resourceStrings":[16]},[[0,"keyup","handleKeyUp"],[0,"keydown","handleKeydown"]]],[2,"igc-split-pane-component",{"orientation":[1],"size":[2]}],[1,"igc-splitter-component",{"splitPaneOrientation":[1,"split-pane-orientation"],"flyoutLocation":[1,"flyout-location"],"showDragGhost":[32],"dragOffset":[32],"hasCustomSplitterHandle":[32]},[[0,"keydown","handleKeydownEvent"],[1,"mousedown","handleMouseDown"]]],[1,"igc-tab-panel-component",{"selected":[4],"disabled":[4]}],[1,"igc-unpinned-pane-header-component",{"location":[1],"isActive":[4,"is-active"],"disabled":[4]}],[1,"igc-context-menu-component",{"orientation":[1],"target":[16],"items":[16],"activeIndex":[1026,"active-index"]},[[0,"focusout","emitMenuClosed"]]],[2,"igc-joystick-icon-component",{"isDocHost":[4,"is-doc-host"],"position":[1],"empty":[4]}],[2,"igc-resizer-component",{"orientation":[1],"dragOffsetX":[32],"dragOffsetY":[32]}],[1,"igc-button-component",{"disabled":[4],"name":[513],"type":[513],"value":[513]}],[2,"igc-icon-component",{"name":[1]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["igc-button-component_20.cjs",[[2,"sample-component",{"hiddenPanes":[1040]}],[1,"igc-dockmanager",{"navigationPaneMeta":[1040],"allowMaximize":[4,"allow-maximize"],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"],"maximizedPane":[1040],"resourceStrings":[1040],"allowFloatingPanesResize":[4,"allow-floating-panes-resize"],"disableKeyboardNavigation":[4,"disable-keyboard-navigation"],"layout":[1040],"draggedPane":[1040],"dropPosition":[16],"activePane":[1040],"dropTargetPaneInfo":[32],"flyoutPane":[32],"floatingPaneZIndicesMap":[32],"contextMenuMeta":[32],"dropShadowRect":[32],"templates":[32],"hasCustomMaximizeButton":[32],"hasCustomMinimizeButton":[32],"dropPane":[64],"removePane":[64]},[[0,"focusout","handleFocusOut"],[0,"keydown","handleKeyDown"]]],[1,"igc-tabs-component",{"size":[2],"maximized":[4],"allowMaximize":[4,"allow-maximize"],"tabHeadersPosition":[1,"tab-headers-position"],"selectedIndex":[1026,"selected-index"],"hasHeaders":[4,"has-headers"],"showHiddenTabsMenu":[4,"show-hidden-tabs-menu"],"resourceStrings":[16],"hiddenTabsMenuMeta":[32],"hasHiddenTabs":[32]},[[0,"tabMouseDown","handleTabMouseDown"]]],[2,"igc-joystick-indicator-component",{"dropTargetPaneInfo":[16],"documentOnlyDrag":[4,"document-only-drag"]}],[1,"igc-pane-header-component",{"dragService":[1040],"pinned":[4],"maximized":[4],"isFloating":[4,"is-floating"],"forcedDrag":[4,"forced-drag"],"isFloatingPaneHeader":[4,"is-floating-pane-header"],"allowClose":[4,"allow-close"],"allowMaximize":[4,"allow-maximize"],"allowPinning":[4,"allow-pinning"],"pane":[16],"isActive":[4,"is-active"],"disabled":[4],"resourceStrings":[16]}],[1,"igc-tab-header-component",{"dragService":[1040],"selected":[4],"position":[1],"iconName":[1,"icon-name"],"header":[1],"isActive":[4,"is-active"],"resourceStrings":[16],"forcedDrag":[4,"forced-drag"],"disabled":[4],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"]},[[1,"mousedown","handleMouseDown"]]],[1,"igc-floating-pane-component",{"allowResize":[4,"allow-resize"],"floatingLocation":[16],"floatingWidth":[2,"floating-width"],"floatingHeight":[2,"floating-height"],"hasHeader":[4,"has-header"],"maximized":[4],"floatingMinHeight":[2,"floating-min-height"],"floatingMinWidth":[2,"floating-min-width"]}],[2,"igc-root-docking-indicator-component",{"position":[1]}],[1,"igc-content-pane-component",{"size":[2],"isFlyout":[4,"is-flyout"],"unpinnedSize":[2,"unpinned-size"],"header":[1],"disabled":[4],"isSingleFloating":[4,"is-single-floating"]}],[2,"igc-document-host-component",{"size":[2]}],[1,"igc-pane-navigator-component",{"activeDocuments":[16],"activePanes":[16],"selectedIndex":[1026,"selected-index"],"previousActivePaneIndex":[2,"previous-active-pane-index"],"resourceStrings":[16]},[[0,"keyup","handleKeyUp"],[0,"keydown","handleKeydown"]]],[2,"igc-split-pane-component",{"orientation":[1],"size":[2]}],[1,"igc-splitter-component",{"splitPaneOrientation":[1,"split-pane-orientation"],"flyoutLocation":[1,"flyout-location"],"showDragGhost":[32],"dragOffset":[32],"hasCustomSplitterHandle":[32]},[[0,"keydown","handleKeydownEvent"],[1,"mousedown","handleMouseDown"]]],[1,"igc-tab-panel-component",{"selected":[4],"disabled":[4]}],[1,"igc-unpinned-pane-header-component",{"location":[1],"isActive":[4,"is-active"],"disabled":[4]}],[1,"igc-context-menu-component",{"orientation":[1],"target":[16],"items":[16],"activeIndex":[1026,"active-index"]},[[0,"focusout","emitMenuClosed"]]],[2,"igc-joystick-icon-component",{"isDocHost":[4,"is-doc-host"],"position":[1],"empty":[4]}],[2,"igc-resizer-component",{"orientation":[1],"dragOffsetX":[32],"dragOffsetY":[32]}],[1,"igc-button-component",{"disabled":[4],"name":[513],"type":[513],"value":[513]}],[2,"igc-icon-component",{"name":[1]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["igc-button-component_20.cjs",[[2,"sample-component",{"hiddenPanes":[1040]}],[1,"igc-dockmanager",{"navigationPaneMeta":[1040],"allowMaximize":[4,"allow-maximize"],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"],"maximizedPane":[1040],"resourceStrings":[1040],"allowFloatingPanesResize":[4,"allow-floating-panes-resize"],"disableKeyboardNavigation":[4,"disable-keyboard-navigation"],"layout":[1040],"draggedPane":[1040],"dropPosition":[16],"activePane":[1040],"dropTargetPaneInfo":[32],"flyoutPane":[32],"floatingPaneZIndicesMap":[32],"contextMenuMeta":[32],"dropShadowRect":[32],"templates":[32],"hasCustomMaximizeButton":[32],"hasCustomMinimizeButton":[32],"dropPane":[64],"removePane":[64]},[[0,"focusout","handleFocusOut"],[0,"keydown","handleKeyDown"],[1,"pointerdown","handlePointerDown"],[1,"pointerup","handlePointerUp"]]],[1,"igc-tabs-component",{"size":[2],"maximized":[4],"allowMaximize":[4,"allow-maximize"],"tabHeadersPosition":[1,"tab-headers-position"],"selectedIndex":[1026,"selected-index"],"hasHeaders":[4,"has-headers"],"showHiddenTabsMenu":[4,"show-hidden-tabs-menu"],"resourceStrings":[16],"hiddenTabsMenuMeta":[32],"hasHiddenTabs":[32]},[[0,"tabMouseDown","handleTabMouseDown"]]],[2,"igc-joystick-indicator-component",{"dropTargetPaneInfo":[16],"documentOnlyDrag":[4,"document-only-drag"]}],[1,"igc-pane-header-component",{"dragService":[1040],"pinned":[4],"maximized":[4],"isFloating":[4,"is-floating"],"forcedDrag":[4,"forced-drag"],"isFloatingPaneHeader":[4,"is-floating-pane-header"],"allowClose":[4,"allow-close"],"allowMaximize":[4,"allow-maximize"],"allowPinning":[4,"allow-pinning"],"pane":[16],"isActive":[4,"is-active"],"disabled":[4],"resourceStrings":[16]}],[1,"igc-tab-header-component",{"dragService":[1040],"selected":[4],"position":[1],"iconName":[1,"icon-name"],"header":[1],"isActive":[4,"is-active"],"resourceStrings":[16],"forcedDrag":[4,"forced-drag"],"disabled":[4],"showHeaderIconOnHover":[4,"show-header-icon-on-hover"]},[[1,"mousedown","handleMouseDown"]]],[1,"igc-floating-pane-component",{"allowResize":[4,"allow-resize"],"floatingLocation":[16],"floatingWidth":[2,"floating-width"],"floatingHeight":[2,"floating-height"],"hasHeader":[4,"has-header"],"maximized":[4],"floatingMinHeight":[2,"floating-min-height"],"floatingMinWidth":[2,"floating-min-width"],"floatingId":[1,"floating-id"]}],[2,"igc-root-docking-indicator-component",{"position":[1]}],[1,"igc-content-pane-component",{"size":[2],"isFlyout":[4,"is-flyout"],"unpinnedSize":[2,"unpinned-size"],"header":[1],"disabled":[4],"isSingleFloating":[4,"is-single-floating"]}],[2,"igc-document-host-component",{"size":[2]}],[1,"igc-pane-navigator-component",{"activeDocuments":[16],"activePanes":[16],"selectedIndex":[1026,"selected-index"],"previousActivePaneIndex":[2,"previous-active-pane-index"],"resourceStrings":[16]},[[0,"keyup","handleKeyUp"],[0,"keydown","handleKeydown"]]],[2,"igc-split-pane-component",{"orientation":[1],"size":[2]}],[1,"igc-splitter-component",{"splitPaneOrientation":[1,"split-pane-orientation"],"flyoutLocation":[1,"flyout-location"],"showDragGhost":[32],"dragOffset":[32],"hasCustomSplitterHandle":[32]},[[0,"keydown","handleKeydownEvent"],[1,"mousedown","handleMouseDown"]]],[1,"igc-tab-panel-component",{"selected":[4],"disabled":[4]}],[1,"igc-unpinned-pane-header-component",{"location":[1],"isActive":[4,"is-active"],"disabled":[4]}],[1,"igc-context-menu-component",{"orientation":[1],"target":[16],"items":[16],"activeIndex":[1026,"active-index"]},[[0,"focusout","emitMenuClosed"]]],[2,"igc-joystick-icon-component",{"isDocHost":[4,"is-doc-host"],"position":[1],"empty":[4]}],[2,"igc-resizer-component",{"orientation":[1],"dragOffsetX":[32],"dragOffsetY":[32]}],[1,"igc-button-component",{"disabled":[4],"name":[513],"type":[513],"value":[513]}],[2,"igc-icon-component",{"name":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|