@syncfusion/ej2-navigations 34.1.29 → 34.1.30

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 (79) hide show
  1. package/dist/ej2-navigations.min.js +2 -2
  2. package/dist/ej2-navigations.umd.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-navigations.es2015.js +26 -10
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +26 -10
  7. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  8. package/dist/global/ej2-navigations.min.js +2 -2
  9. package/dist/global/ej2-navigations.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +5 -5
  12. package/src/common/h-scroll.d.ts +2 -0
  13. package/src/common/h-scroll.js +11 -0
  14. package/src/common/menu-base.js +8 -0
  15. package/src/tab/tab.js +7 -10
  16. package/styles/bds-lite.css +10 -0
  17. package/styles/bds.css +10 -0
  18. package/styles/bootstrap-dark-lite.css +10 -0
  19. package/styles/bootstrap-dark.css +10 -0
  20. package/styles/bootstrap-lite.css +10 -0
  21. package/styles/bootstrap.css +10 -0
  22. package/styles/bootstrap4-lite.css +10 -0
  23. package/styles/bootstrap4.css +10 -0
  24. package/styles/bootstrap5-dark-lite.css +10 -0
  25. package/styles/bootstrap5-dark.css +10 -0
  26. package/styles/bootstrap5-lite.css +10 -0
  27. package/styles/bootstrap5.3-lite.css +10 -0
  28. package/styles/bootstrap5.3.css +10 -0
  29. package/styles/bootstrap5.css +10 -0
  30. package/styles/fabric-dark-lite.css +10 -0
  31. package/styles/fabric-dark.css +10 -0
  32. package/styles/fabric-lite.css +10 -0
  33. package/styles/fabric.css +10 -0
  34. package/styles/fluent-dark-lite.css +10 -0
  35. package/styles/fluent-dark.css +10 -0
  36. package/styles/fluent-lite.css +10 -0
  37. package/styles/fluent.css +10 -0
  38. package/styles/fluent2-lite.css +10 -0
  39. package/styles/fluent2.css +10 -0
  40. package/styles/highcontrast-light-lite.css +10 -0
  41. package/styles/highcontrast-light.css +10 -0
  42. package/styles/highcontrast-lite.css +10 -0
  43. package/styles/highcontrast.css +10 -0
  44. package/styles/material-dark-lite.css +10 -0
  45. package/styles/material-dark.css +10 -0
  46. package/styles/material-lite.css +10 -0
  47. package/styles/material.css +10 -0
  48. package/styles/material3-dark-lite.css +10 -0
  49. package/styles/material3-dark.css +10 -0
  50. package/styles/material3-lite.css +10 -0
  51. package/styles/material3.css +10 -0
  52. package/styles/pager/_layout.scss +10 -0
  53. package/styles/pager/bds.css +10 -0
  54. package/styles/pager/bootstrap-dark.css +10 -0
  55. package/styles/pager/bootstrap.css +10 -0
  56. package/styles/pager/bootstrap4.css +10 -0
  57. package/styles/pager/bootstrap5-dark.css +10 -0
  58. package/styles/pager/bootstrap5.3.css +10 -0
  59. package/styles/pager/bootstrap5.css +10 -0
  60. package/styles/pager/fabric-dark.css +10 -0
  61. package/styles/pager/fabric.css +10 -0
  62. package/styles/pager/fluent-dark.css +10 -0
  63. package/styles/pager/fluent.css +10 -0
  64. package/styles/pager/fluent2.css +10 -0
  65. package/styles/pager/highcontrast-light.css +10 -0
  66. package/styles/pager/highcontrast.css +10 -0
  67. package/styles/pager/material-dark.css +10 -0
  68. package/styles/pager/material.css +10 -0
  69. package/styles/pager/material3-dark.css +10 -0
  70. package/styles/pager/material3.css +10 -0
  71. package/styles/pager/tailwind-dark.css +10 -0
  72. package/styles/pager/tailwind.css +10 -0
  73. package/styles/pager/tailwind3.css +10 -0
  74. package/styles/tailwind-dark-lite.css +10 -0
  75. package/styles/tailwind-dark.css +10 -0
  76. package/styles/tailwind-lite.css +10 -0
  77. package/styles/tailwind.css +10 -0
  78. package/styles/tailwind3-lite.css +10 -0
  79. package/styles/tailwind3.css +10 -0
@@ -57,6 +57,7 @@ let HScroll = class HScroll extends Component {
57
57
  */
58
58
  preRender() {
59
59
  this.browser = Browser.info.name;
60
+ this.resizeContext = this.resizeHandler.bind(this);
60
61
  this.browserCheck = this.browser === 'mozilla';
61
62
  this.isDevice = Browser.isDevice;
62
63
  this.customStep = true;
@@ -81,6 +82,9 @@ let HScroll = class HScroll extends Component {
81
82
  render() {
82
83
  this.touchModule = new Touch(this.element, { scroll: this.touchHandler.bind(this), swipe: this.swipeHandler.bind(this) });
83
84
  EventHandler.add(this.scrollEle, 'scroll', this.scrollHandler, this);
85
+ if (this.element && this.element.closest('.e-toolbar')) {
86
+ window.addEventListener('resize', this.resizeContext);
87
+ }
84
88
  if (!this.isDevice) {
85
89
  this.createNavIcon(this.element);
86
90
  }
@@ -157,6 +161,10 @@ let HScroll = class HScroll extends Component {
157
161
  }
158
162
  }
159
163
  EventHandler.remove(this.scrollEle, 'scroll', this.scrollHandler);
164
+ if (this.element && this.element.closest('.e-toolbar')) {
165
+ window.removeEventListener('resize', this.resizeContext);
166
+ }
167
+ this.resizeContext = null;
160
168
  this.touchModule.destroy();
161
169
  this.touchModule = null;
162
170
  super.destroy();
@@ -406,6 +414,9 @@ let HScroll = class HScroll extends Component {
406
414
  }
407
415
  this.repeatScroll();
408
416
  }
417
+ resizeHandler(e) {
418
+ this.scrollHandler(e);
419
+ }
409
420
  scrollHandler(e) {
410
421
  const target = e.target;
411
422
  const width = target.offsetWidth;
@@ -1396,6 +1407,14 @@ let MenuBase = class MenuBase extends Component {
1396
1407
  this.leftEscKeyHandler(e);
1397
1408
  }
1398
1409
  const isDown = e.key ? (e.key === 'ArrowDown') : e.keyCode === 40;
1410
+ const isUp = e.key ? (e.key === 'ArrowUp') : e.keyCode === 38;
1411
+ if (isDown || isUp) {
1412
+ const activeEl = document.activeElement;
1413
+ if (activeEl && (closest(activeEl, '.e-' + this.getModuleName() + '-wrapper') === this.getWrapper()
1414
+ || closest(activeEl, '.e-menu-item') || closest(activeEl, '.e-menu-parent'))) {
1415
+ e.preventDefault();
1416
+ }
1417
+ }
1399
1418
  if (!isDown) {
1400
1419
  return;
1401
1420
  }
@@ -8733,6 +8752,8 @@ let Tab = class Tab extends Component {
8733
8752
  }
8734
8753
  compileElement(ele, val, prop, index) {
8735
8754
  let templateFn;
8755
+ const heightAdjustMode = this.heightAdjustMode;
8756
+ const templateType = prop;
8736
8757
  if (typeof val === 'string') {
8737
8758
  val = val.trim();
8738
8759
  if (this.isVue) {
@@ -8751,6 +8772,9 @@ let Tab = class Tab extends Component {
8751
8772
  }
8752
8773
  if (!isNullOrUndefined(templateFn) && templateFUN.length > 0) {
8753
8774
  [].slice.call(templateFUN).forEach((el) => {
8775
+ if (templateType === 'content' && heightAdjustMode === 'Fill' && el.style) {
8776
+ el.style.height = "100%";
8777
+ }
8754
8778
  ele.appendChild(el);
8755
8779
  });
8756
8780
  }
@@ -8929,17 +8953,9 @@ let Tab = class Tab extends Component {
8929
8953
  }
8930
8954
  else if (this.heightAdjustMode === 'Fill') {
8931
8955
  addClass([this.element], [CLS_FILL]);
8932
- let parent = this.element.parentElement;
8933
- let heightVal = parent.style.height || parent.getAttribute('height');
8934
- while (parent && !heightVal) {
8935
- heightVal = parent.style.height || parent.getAttribute('height');
8936
- if (!heightVal) {
8937
- parent = parent.parentElement;
8938
- }
8939
- }
8940
- setStyleAttribute(this.element, { 'height': heightVal != null ? heightVal : '100%' });
8956
+ setStyleAttribute(this.element, { 'height': '100%' });
8941
8957
  this.loadContentElement();
8942
- this.cntEle.style.height = heightVal != null ? `calc(${heightVal} - ${this.hdrEle.offsetHeight}px)` : 'calc(100vh - ' + (this.hdrEle.offsetHeight + this.hdrEle.scrollHeight) + 'px)';
8958
+ this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';
8943
8959
  }
8944
8960
  else if (this.heightAdjustMode === 'Auto') {
8945
8961
  if (this.isTemplate === true) {