igniteui-dockmanager 1.16.0-beta.6 → 1.16.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.
Files changed (38) hide show
  1. package/custom-elements.json +17 -13
  2. package/dist/cjs/igc-button-component_21.cjs.entry.js +20 -20
  3. package/dist/cjs/igc-button-component_21.cjs.entry.js.map +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/{locale-f3ee23f4.js → locale-93b1abd9.js} +12 -1
  6. package/dist/cjs/locale-93b1abd9.js.map +1 -0
  7. package/dist/collection/components/dockmanager/dockmanager-component.js +17 -16
  8. package/dist/collection/components/dockmanager/dockmanager-component.js.map +1 -1
  9. package/dist/collection/components/dockmanager/dockmanager.public-interfaces.js +11 -0
  10. package/dist/collection/components/dockmanager/dockmanager.public-interfaces.js.map +1 -1
  11. package/dist/collection/components/tabs/tab-header-component.js +11 -10
  12. package/dist/collection/components/tabs/tab-header-component.js.map +1 -1
  13. package/dist/collection/components/tabs/tabs-component.js +1 -1
  14. package/dist/collection/components/tabs/tabs-component.js.map +1 -1
  15. package/dist/esm/igc-button-component_21.entry.js +20 -20
  16. package/dist/esm/igc-button-component_21.entry.js.map +1 -1
  17. package/dist/esm/index.js +1 -1
  18. package/dist/esm/{locale-c7fb2819.js → locale-9d5d3b14.js} +12 -1
  19. package/dist/esm/locale-9d5d3b14.js.map +1 -0
  20. package/dist/igniteui-dockmanager/igniteui-dockmanager.esm.js +1 -1
  21. package/dist/igniteui-dockmanager/index.esm.js +1 -1
  22. package/dist/igniteui-dockmanager/p-7502df6d.entry.js +2 -0
  23. package/dist/igniteui-dockmanager/p-7502df6d.entry.js.map +1 -0
  24. package/dist/igniteui-dockmanager/p-e7fd6176.js +2 -0
  25. package/dist/igniteui-dockmanager/p-e7fd6176.js.map +1 -0
  26. package/dist/types/components/dockmanager/dockmanager-component.d.ts +2 -2
  27. package/dist/types/components/dockmanager/dockmanager.public-interfaces.d.ts +4 -4
  28. package/dist/types/components/tabs/tab-header-component.d.ts +1 -1
  29. package/dist/types/components.d.ts +6 -6
  30. package/loader/cdn.js +2 -2
  31. package/loader/index.cjs.js +2 -2
  32. package/package.json +1 -1
  33. package/dist/cjs/locale-f3ee23f4.js.map +0 -1
  34. package/dist/esm/locale-c7fb2819.js.map +0 -1
  35. package/dist/igniteui-dockmanager/p-04ece729.entry.js +0 -2
  36. package/dist/igniteui-dockmanager/p-04ece729.entry.js.map +0 -1
  37. package/dist/igniteui-dockmanager/p-a28f1eb4.js +0 -2
  38. package/dist/igniteui-dockmanager/p-a28f1eb4.js.map +0 -1
@@ -1558,7 +1558,7 @@
1558
1558
  "kind": "field",
1559
1559
  "name": "showPaneHeaders",
1560
1560
  "type": {
1561
- "text": "'onHoverOnly' | 'always'"
1561
+ "text": "'always' | 'onHoverOnly'"
1562
1562
  },
1563
1563
  "default": "'always'"
1564
1564
  },
@@ -1566,8 +1566,9 @@
1566
1566
  "kind": "field",
1567
1567
  "name": "showHeaderIconOnHover",
1568
1568
  "type": {
1569
- "text": "'closeOnly' | 'moreOptionsOnly' | 'all'"
1570
- }
1569
+ "text": "'none' | 'closeOnly' | 'moreOptionsOnly' | 'all'"
1570
+ },
1571
+ "default": "'none'"
1571
1572
  },
1572
1573
  {
1573
1574
  "kind": "field",
@@ -1650,7 +1651,7 @@
1650
1651
  "type": {
1651
1652
  "text": "boolean"
1652
1653
  },
1653
- "default": "true"
1654
+ "default": "false"
1654
1655
  },
1655
1656
  {
1656
1657
  "kind": "method",
@@ -3125,14 +3126,14 @@
3125
3126
  "name": "show-pane-headers",
3126
3127
  "fieldName": "showPaneHeaders",
3127
3128
  "type": {
3128
- "text": "'onHoverOnly' | 'always'"
3129
+ "text": "'always' | 'onHoverOnly'"
3129
3130
  }
3130
3131
  },
3131
3132
  {
3132
3133
  "name": "show-header-icon-on-hover",
3133
3134
  "fieldName": "showHeaderIconOnHover",
3134
3135
  "type": {
3135
- "text": "'closeOnly' | 'moreOptionsOnly' | 'all'"
3136
+ "text": "'none' | 'closeOnly' | 'moreOptionsOnly' | 'all'"
3136
3137
  }
3137
3138
  },
3138
3139
  {
@@ -3515,9 +3516,10 @@
3515
3516
  "kind": "field",
3516
3517
  "name": "showHeaderIconOnHover",
3517
3518
  "type": {
3518
- "text": "'closeOnly' | 'moreOptionsOnly' | 'all'"
3519
+ "text": "'none' | 'closeOnly' | 'moreOptionsOnly' | 'all'"
3519
3520
  },
3520
- "description": "Determines which tab header icons should show when hovering over the tab with the mouse. Defaults to undefined."
3521
+ "default": "'none'",
3522
+ "description": "Determines which tab header icons should show when hovering over the tab with the mouse. Defaults to none."
3521
3523
  },
3522
3524
  {
3523
3525
  "kind": "field",
@@ -3563,8 +3565,9 @@
3563
3565
  "kind": "field",
3564
3566
  "name": "showPaneHeaders",
3565
3567
  "type": {
3566
- "text": "'onHoverOnly' | 'always'"
3568
+ "text": "'always' | 'onHoverOnly'"
3567
3569
  },
3570
+ "default": "'always'",
3568
3571
  "description": "Determines whether pane headers are only shown on hover or always visible. Defaults to 'always'."
3569
3572
  },
3570
3573
  {
@@ -3597,7 +3600,7 @@
3597
3600
  "type": {
3598
3601
  "text": "boolean | undefined"
3599
3602
  },
3600
- "description": "Determines whether the end user can dock the dragged pane directly in the parent split pane by dragging it over a splitter.\r\nIf enabled, a docking indicator will be shown over the splitter's drag handler. Defaults to true."
3603
+ "description": "Determines whether the end user can dock the dragged pane directly in the parent split pane by dragging it over a splitter.\r\nIf enabled, a docking indicator will be shown over the splitter's drag handler. Defaults to false."
3601
3604
  },
3602
3605
  {
3603
3606
  "kind": "method",
@@ -6094,8 +6097,9 @@
6094
6097
  "kind": "field",
6095
6098
  "name": "showHeaderIconOnHover",
6096
6099
  "type": {
6097
- "text": "'closeOnly' | 'moreOptionsOnly' | 'all'"
6098
- }
6100
+ "text": "'none' | 'closeOnly' | 'moreOptionsOnly' | 'all'"
6101
+ },
6102
+ "default": "'none'"
6099
6103
  },
6100
6104
  {
6101
6105
  "kind": "method",
@@ -6218,7 +6222,7 @@
6218
6222
  "name": "show-header-icon-on-hover",
6219
6223
  "fieldName": "showHeaderIconOnHover",
6220
6224
  "type": {
6221
- "text": "'closeOnly' | 'moreOptionsOnly' | 'all'"
6225
+ "text": "'none' | 'closeOnly' | 'moreOptionsOnly' | 'all'"
6222
6226
  }
6223
6227
  }
6224
6228
  ],
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-050356a8.js');
6
- const locale = require('./locale-f3ee23f4.js');
6
+ const locale = require('./locale-93b1abd9.js');
7
7
 
8
8
  const buttonComponentCss = "button{position:static;display:inline-flex;align-items: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;transition:background 0.25s ease-out, opacity 0.25s ease-out, box-shadow 0.25s ease-out}:host([disabled]){pointer-events:none}:host{display:flex}button{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}button:hover{opacity:1}button:focus{background:var(--igc-accent-color, #fff);box-shadow:inset 0 0 0 1px var(--igc-active-color, cornflowerblue);opacity:1}button[disabled]{opacity:0.54}";
9
9
 
@@ -2321,7 +2321,7 @@ const IgcDockManager = class {
2321
2321
  this.navigationPaneMeta = undefined;
2322
2322
  this.allowMaximize = true;
2323
2323
  this.showPaneHeaders = 'always';
2324
- this.showHeaderIconOnHover = undefined;
2324
+ this.showHeaderIconOnHover = 'none';
2325
2325
  this.maximizedPane = undefined;
2326
2326
  this.resourceStrings = undefined;
2327
2327
  this.allowFloatingPanesResize = true;
@@ -2332,7 +2332,7 @@ const IgcDockManager = class {
2332
2332
  this.proximityDock = false;
2333
2333
  this.closeBehavior = locale.IgcPaneActionBehavior.allPanes;
2334
2334
  this.unpinBehavior = locale.IgcPaneActionBehavior.allPanes;
2335
- this.allowSplitterDock = true;
2335
+ this.allowSplitterDock = false;
2336
2336
  this.layout = undefined;
2337
2337
  this.draggedPane = undefined;
2338
2338
  this.dropPosition = undefined;
@@ -3305,8 +3305,8 @@ const IgcDockManager = class {
3305
3305
  splitterFound = true;
3306
3306
  const splitterCenterX = splitterRect.left + splitterRect.width / 2;
3307
3307
  const splitterCenterY = splitterRect.top + splitterRect.height / 2;
3308
- this.splitterDockingIndicator.style.left = `${splitterCenterX - this.splitterDockingIndicator.clientWidth + 2}px`;
3309
- this.splitterDockingIndicator.style.top = `${splitterCenterY - this.splitterDockingIndicator.clientHeight + 2}px`;
3308
+ this.splitterDockingIndicator.style.left = `${splitterCenterX - this.splitterDockingIndicator.clientWidth / 2 - 1}px`;
3309
+ this.splitterDockingIndicator.style.top = `${splitterCenterY - this.splitterDockingIndicator.clientHeight / 2 - 1}px`;
3310
3310
  this.splitterDockingIndicator.position = isSplitterHorizontal ? locale.IgcDockingIndicatorPosition.splitterHorizontal : locale.IgcDockingIndicatorPosition.splitterVertical;
3311
3311
  this.setSplitterDockingIndicatorVisibility('visible');
3312
3312
  // check if cursor is over splitterIndicator
@@ -3454,7 +3454,7 @@ const IgcDockManager = class {
3454
3454
  const target = event.currentTarget;
3455
3455
  const rootNode = this.getRootNode();
3456
3456
  const pathHTMLElements = event.composedPath().filter(et => et instanceof HTMLElement).map(et => et);
3457
- this._tabHeaderIconClicked = this.showHeaderIconOnHover &&
3457
+ this._tabHeaderIconClicked = this.showHeaderIconOnHover !== 'none' &&
3458
3458
  pathHTMLElements.filter(el => el.attributes.getNamedItem('part') && el.attributes.getNamedItem('part').value === 'tab-header-more-options floating').length > 0;
3459
3459
  requestAnimationFrame(() => {
3460
3460
  this.contentPaneId = pane.contentId;
@@ -3506,7 +3506,7 @@ const IgcDockManager = class {
3506
3506
  }
3507
3507
  }
3508
3508
  handleTabIconClick(p, position, isFloating, event) {
3509
- if (!this.showHeaderIconOnHover) {
3509
+ if (this.showHeaderIconOnHover === 'none') {
3510
3510
  this.focusElement();
3511
3511
  }
3512
3512
  if (!isFloating && position === IgcTabHeadersPosition.bottom) {
@@ -3796,13 +3796,13 @@ const IgcDockManager = class {
3796
3796
  return (index.h("igc-root-docking-indicator-component", { position: position }));
3797
3797
  }
3798
3798
  renderDockingIndicators() {
3799
- var _a, _b;
3799
+ var _a, _b, _c;
3800
3800
  const startPosition = this.direction !== 'rtl' ? locale.IgcDockingIndicatorPosition.left : locale.IgcDockingIndicatorPosition.right;
3801
3801
  const endPosition = this.direction !== 'rtl' ? locale.IgcDockingIndicatorPosition.right : locale.IgcDockingIndicatorPosition.left;
3802
3802
  // Only show the joystick indicator if the target drop location is an empty split pane
3803
3803
  const hideJoystickIndicator = this.dropTargetPaneInfo &&
3804
- ((_a = this.dropTargetPaneInfo.pane) === null || _a === void 0 ? void 0 : _a.type) == "splitPane" &&
3805
- this.service.getSplitPaneVisibleChildren(this.dropTargetPaneInfo.pane).length;
3804
+ (((_a = this.dropTargetPaneInfo.pane) === null || _a === void 0 ? void 0 : _a.type) == "documentHost" ||
3805
+ (((_b = this.dropTargetPaneInfo.pane) === null || _b === void 0 ? void 0 : _b.type) == "splitPane" && this.service.getSplitPaneVisibleChildren(this.dropTargetPaneInfo.pane).length));
3806
3806
  return (index.h("div", { class: "docking-indicators-container", style: {
3807
3807
  display: this.showDockingIndicators ? 'flex' : 'none'
3808
3808
  } }, !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(locale.IgcDockingIndicatorPosition.top), index.h("div", { style: {
@@ -3810,10 +3810,10 @@ const IgcDockManager = class {
3810
3810
  display: 'flex',
3811
3811
  flexDirection: 'row',
3812
3812
  justifyContent: 'space-between'
3813
- } }, !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(startPosition), !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(endPosition)), !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(locale.IgcDockingIndicatorPosition.bottom), this.dropTargetPaneInfo && !this.proximityDock && !hideJoystickIndicator && ((_b = this.splitterDockingIndicator) === null || _b === void 0 ? void 0 : _b.style.visibility) !== 'visible' &&
3813
+ } }, !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(startPosition), !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(endPosition)), !this.documentOnlyDrag && !this.proximityDock && this.renderRootDockingIndicator(locale.IgcDockingIndicatorPosition.bottom), this.dropTargetPaneInfo && !this.proximityDock && !hideJoystickIndicator && ((_c = this.splitterDockingIndicator) === null || _c === void 0 ? void 0 : _c.style.visibility) !== 'visible' &&
3814
3814
  index.h("igc-joystick-indicator-component", { dropTargetPaneInfo: this.dropTargetPaneInfo, documentOnlyDrag: this.documentOnlyDrag, allowCenterDock: this.allowInnerDock }), this.allowSplitterDock && !this.proximityDock &&
3815
3815
  index.h("igc-splitter-docking-indicator-component", { style: {
3816
- position: 'absolute',
3816
+ position: 'fixed',
3817
3817
  zIndex: '10010',
3818
3818
  visibility: 'hidden'
3819
3819
  } })));
@@ -4977,7 +4977,7 @@ const IgcTabHeaderComponent = class {
4977
4977
  this.resourceStrings = undefined;
4978
4978
  this.forcedDrag = undefined;
4979
4979
  this.disabled = false;
4980
- this.showHeaderIconOnHover = undefined;
4980
+ this.showHeaderIconOnHover = 'none';
4981
4981
  }
4982
4982
  connectedCallback() {
4983
4983
  this.dragService = new IgcDragService(this.element);
@@ -5030,24 +5030,24 @@ const IgcTabHeaderComponent = class {
5030
5030
  button === null || button === void 0 ? void 0 : button.setAttribute('part', parts);
5031
5031
  }
5032
5032
  renderCloseButton() {
5033
- const showHeaderIconOnHover = this.showHeaderIconOnHover && (this.showHeaderIconOnHover === 'closeOnly' || this.showHeaderIconOnHover === 'all');
5033
+ const showHeaderIconOnHover = this.showHeaderIconOnHover === 'closeOnly' || this.showHeaderIconOnHover === 'all';
5034
5034
  const shouldShowButton = this.selected || showHeaderIconOnHover;
5035
- const pointerEvents = (this.selected && !this.disabled) || this.showHeaderIconOnHover ? 'all' : 'none';
5035
+ const pointerEvents = (this.selected && !this.disabled) || this.showHeaderIconOnHover !== 'none' ? 'all' : 'none';
5036
5036
  return (shouldShowButton && index.h("slot", { name: "tabHeaderCloseButton" }, index.h("igc-button-component", { part: "tab-header-close-button", style: {
5037
5037
  pointerEvents
5038
5038
  } }, index.h("igc-icon-component", { name: this.iconName, "aria-label": this.resourceStrings.close, title: this.resourceStrings.close }))));
5039
5039
  }
5040
5040
  renderMoreOptionsButton() {
5041
- const showHeaderIconOnHover = this.showHeaderIconOnHover && (this.showHeaderIconOnHover === 'moreOptionsOnly' || this.showHeaderIconOnHover === 'all');
5041
+ const showHeaderIconOnHover = this.showHeaderIconOnHover === 'moreOptionsOnly' || this.showHeaderIconOnHover === 'all';
5042
5042
  const shouldShowButton = this.selected || showHeaderIconOnHover;
5043
- const pointerEvents = (this.selected && !this.disabled) || this.showHeaderIconOnHover ? 'all' : 'none';
5043
+ const pointerEvents = (this.selected && !this.disabled) || this.showHeaderIconOnHover !== 'none' ? 'all' : 'none';
5044
5044
  return (shouldShowButton && index.h("slot", { name: "tabHeaderMoreOptionsButton" }, index.h("igc-button-component", { part: "tab-header-more-options-button", style: {
5045
5045
  pointerEvents
5046
5046
  } }, index.h("igc-icon-component", { name: this.iconName, "aria-label": this.resourceStrings.moreOptions, title: this.resourceStrings.moreOptions }))));
5047
5047
  }
5048
5048
  render() {
5049
- const showCloseOnHover = this.iconName === 'close' && this.showHeaderIconOnHover && (this.showHeaderIconOnHover === 'closeOnly' || this.showHeaderIconOnHover === 'all');
5050
- const showMoreOptionsOnHover = this.iconName !== 'close' && this.showHeaderIconOnHover && (this.showHeaderIconOnHover === 'moreOptionsOnly' || this.showHeaderIconOnHover === 'all');
5049
+ const showCloseOnHover = this.iconName === 'close' && (this.showHeaderIconOnHover === 'closeOnly' || this.showHeaderIconOnHover === 'all');
5050
+ const showMoreOptionsOnHover = this.iconName !== 'close' && (this.showHeaderIconOnHover === 'moreOptionsOnly' || this.showHeaderIconOnHover === 'all');
5051
5051
  const parts = Utils.partNameMap({
5052
5052
  'tab-header': true,
5053
5053
  top: this.position === IgcTabHeadersPosition.top,
@@ -5281,7 +5281,7 @@ const IgcTabsComponent = class {
5281
5281
  const tabHeader = ev.target;
5282
5282
  const tabHeaders = this.tabHeaders;
5283
5283
  const headerIndex = tabHeaders.indexOf(tabHeader);
5284
- if (headerIndex >= 0 && (!ev.detail.showHeaderIconOnHover || !ev.detail.isIconClicked)) {
5284
+ if (headerIndex >= 0 && (ev.detail.showHeaderIconOnHover === 'none' || !ev.detail.isIconClicked)) {
5285
5285
  this.selectedIndex = headerIndex;
5286
5286
  }
5287
5287
  }