igniteui-dockmanager 1.6.0 → 1.7.0-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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes for each version of this project will be documented in this file.
4
4
 
5
+ ## 1.7.0
6
+
7
+ ### New features
8
+ - Customizable floating pane header
9
+
10
+ ### Bug fixes
11
+ - Docking indicators appear over the currently dragged floating pane
12
+
5
13
  ## 1.6.0
6
14
 
7
15
  ### New features
@@ -2037,7 +2037,7 @@ const IgcDockManager = class {
2037
2037
  const draggedFloatingPane = draggedHeader.closest('igc-floating-pane-component');
2038
2038
  const topFloatingPane = elements.find(e => e.tagName.toLowerCase() === 'igc-floating-pane-component');
2039
2039
  if (topFloatingPane === draggedFloatingPane) {
2040
- const index = elements.indexOf(draggedFloatingPane);
2040
+ const index = elements.lastIndexOf(draggedFloatingPane);
2041
2041
  elements.splice(0, index + 1);
2042
2042
  }
2043
2043
  }
@@ -2224,7 +2224,9 @@ const IgcDockManager = class {
2224
2224
  }
2225
2225
  }, class: {
2226
2226
  'maximized': this.maximizedPane === pane
2227
- }, header: pane.header, onFocusin: this.handleContentPaneFocus.bind(this, pane) }, index.h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, pane.headerId ? index.h("slot", { name: pane.headerId }) : pane.header), index.h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, index.h("slot", { name: pane.contentId }))));
2227
+ }, header: pane.header, onFocusin: this.handleContentPaneFocus.bind(this, pane) }, index.h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, (isFloating && pane.floatingHeaderId) ? index.h("slot", { name: pane.floatingHeaderId }) :
2228
+ pane.headerId ? index.h("slot", { name: pane.headerId }) :
2229
+ pane.header), index.h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, index.h("slot", { name: pane.contentId }))));
2228
2230
  }
2229
2231
  renderSplitter(parentPane, pane) {
2230
2232
  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) }));
@@ -432,7 +432,7 @@ export class IgcDockManager {
432
432
  const draggedFloatingPane = draggedHeader.closest('igc-floating-pane-component');
433
433
  const topFloatingPane = elements.find(e => e.tagName.toLowerCase() === 'igc-floating-pane-component');
434
434
  if (topFloatingPane === draggedFloatingPane) {
435
- const index = elements.indexOf(draggedFloatingPane);
435
+ const index = elements.lastIndexOf(draggedFloatingPane);
436
436
  elements.splice(0, index + 1);
437
437
  }
438
438
  }
@@ -620,7 +620,9 @@ export class IgcDockManager {
620
620
  }, class: {
621
621
  'maximized': this.maximizedPane === pane
622
622
  }, header: pane.header, onFocusin: this.handleContentPaneFocus.bind(this, pane) },
623
- h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, pane.headerId ? h("slot", { name: pane.headerId }) : pane.header),
623
+ h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, (isFloating && pane.floatingHeaderId) ? h("slot", { name: pane.floatingHeaderId }) :
624
+ pane.headerId ? h("slot", { name: pane.headerId }) :
625
+ pane.header),
624
626
  h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) },
625
627
  h("slot", { name: pane.contentId }))));
626
628
  }
@@ -2033,7 +2033,7 @@ const IgcDockManager = class {
2033
2033
  const draggedFloatingPane = draggedHeader.closest('igc-floating-pane-component');
2034
2034
  const topFloatingPane = elements.find(e => e.tagName.toLowerCase() === 'igc-floating-pane-component');
2035
2035
  if (topFloatingPane === draggedFloatingPane) {
2036
- const index = elements.indexOf(draggedFloatingPane);
2036
+ const index = elements.lastIndexOf(draggedFloatingPane);
2037
2037
  elements.splice(0, index + 1);
2038
2038
  }
2039
2039
  }
@@ -2220,7 +2220,9 @@ const IgcDockManager = class {
2220
2220
  }
2221
2221
  }, class: {
2222
2222
  'maximized': this.maximizedPane === pane
2223
- }, header: pane.header, onFocusin: this.handleContentPaneFocus.bind(this, pane) }, h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, pane.headerId ? h("slot", { name: pane.headerId }) : pane.header), h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, h("slot", { name: pane.contentId }))));
2223
+ }, header: pane.header, onFocusin: this.handleContentPaneFocus.bind(this, pane) }, h("igc-pane-header-component", { slot: "header", pane: pane, isActive: pane === this.activePane, pinned: this.service.getActualIsPinned(pane), allowMaximize: this.resolveAllowMaximize(pane), maximized: maximized, allowClose: this.service.getActualAllowClose(pane), allowPinning: pane.allowPinning !== false, isFloating: isFloating, forcedDrag: forceDrag, resourceStrings: this.resourceStrings, onPinToggle: this.handlePinToggle.bind(this, pane), onMaximize: this.handleMaximize.bind(this, pane), onDragMoved: this.handlePaneDragMove.bind(this), onDragStarted: this.handlePaneDragStart.bind(this, isSingleFloatingContentPane ? floatingPane : pane), onDragEnded: this.handlePaneDragEnd.bind(this), onClose: this.handlePaneClose.bind(this, pane), onElementConnected: this.emitPaneHeaderConnected.bind(this, pane), onElementDisconnected: this.emitPaneHeaderDisconnected.bind(this, pane), onMouseDown: this.handlePaneHeaderMouseDown.bind(this, pane) }, (isFloating && pane.floatingHeaderId) ? h("slot", { name: pane.floatingHeaderId }) :
2224
+ pane.headerId ? h("slot", { name: pane.headerId }) :
2225
+ pane.header), h("div", { class: "content", onMouseDown: this.handlePaneContentMouseDown.bind(this, pane) }, h("slot", { name: pane.contentId }))));
2224
2226
  }
2225
2227
  renderSplitter(parentPane, pane) {
2226
2228
  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) }));