@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
@@ -71,6 +71,7 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
71
71
  */
72
72
  HScroll.prototype.preRender = function () {
73
73
  this.browser = Browser.info.name;
74
+ this.resizeContext = this.resizeHandler.bind(this);
74
75
  this.browserCheck = this.browser === 'mozilla';
75
76
  this.isDevice = Browser.isDevice;
76
77
  this.customStep = true;
@@ -95,6 +96,9 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
95
96
  HScroll.prototype.render = function () {
96
97
  this.touchModule = new Touch(this.element, { scroll: this.touchHandler.bind(this), swipe: this.swipeHandler.bind(this) });
97
98
  EventHandler.add(this.scrollEle, 'scroll', this.scrollHandler, this);
99
+ if (this.element && this.element.closest('.e-toolbar')) {
100
+ window.addEventListener('resize', this.resizeContext);
101
+ }
98
102
  if (!this.isDevice) {
99
103
  this.createNavIcon(this.element);
100
104
  }
@@ -173,6 +177,10 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
173
177
  }
174
178
  }
175
179
  EventHandler.remove(this.scrollEle, 'scroll', this.scrollHandler);
180
+ if (this.element && this.element.closest('.e-toolbar')) {
181
+ window.removeEventListener('resize', this.resizeContext);
182
+ }
183
+ this.resizeContext = null;
176
184
  this.touchModule.destroy();
177
185
  this.touchModule = null;
178
186
  _super.prototype.destroy.call(this);
@@ -426,6 +434,9 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
426
434
  }
427
435
  this.repeatScroll();
428
436
  };
437
+ HScroll.prototype.resizeHandler = function (e) {
438
+ this.scrollHandler(e);
439
+ };
429
440
  HScroll.prototype.scrollHandler = function (e) {
430
441
  var target = e.target;
431
442
  var width = target.offsetWidth;
@@ -1472,6 +1483,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1472
1483
  this.leftEscKeyHandler(e);
1473
1484
  }
1474
1485
  var isDown = e.key ? (e.key === 'ArrowDown') : e.keyCode === 40;
1486
+ var isUp = e.key ? (e.key === 'ArrowUp') : e.keyCode === 38;
1487
+ if (isDown || isUp) {
1488
+ var activeEl = document.activeElement;
1489
+ if (activeEl && (closest(activeEl, '.e-' + this.getModuleName() + '-wrapper') === this.getWrapper()
1490
+ || closest(activeEl, '.e-menu-item') || closest(activeEl, '.e-menu-parent'))) {
1491
+ e.preventDefault();
1492
+ }
1493
+ }
1475
1494
  if (!isDown) {
1476
1495
  return;
1477
1496
  }
@@ -9014,6 +9033,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9014
9033
  };
9015
9034
  Tab.prototype.compileElement = function (ele, val, prop, index) {
9016
9035
  var templateFn;
9036
+ var heightAdjustMode = this.heightAdjustMode;
9037
+ var templateType = prop;
9017
9038
  if (typeof val === 'string') {
9018
9039
  val = val.trim();
9019
9040
  if (this.isVue) {
@@ -9032,6 +9053,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9032
9053
  }
9033
9054
  if (!isNullOrUndefined(templateFn) && templateFUN.length > 0) {
9034
9055
  [].slice.call(templateFUN).forEach(function (el) {
9056
+ if (templateType === 'content' && heightAdjustMode === 'Fill' && el.style) {
9057
+ el.style.height = "100%";
9058
+ }
9035
9059
  ele.appendChild(el);
9036
9060
  });
9037
9061
  }
@@ -9210,17 +9234,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9210
9234
  }
9211
9235
  else if (this.heightAdjustMode === 'Fill') {
9212
9236
  addClass([this.element], [CLS_FILL]);
9213
- var parent_1 = this.element.parentElement;
9214
- var heightVal = parent_1.style.height || parent_1.getAttribute('height');
9215
- while (parent_1 && !heightVal) {
9216
- heightVal = parent_1.style.height || parent_1.getAttribute('height');
9217
- if (!heightVal) {
9218
- parent_1 = parent_1.parentElement;
9219
- }
9220
- }
9221
- setStyleAttribute(this.element, { 'height': heightVal != null ? heightVal : '100%' });
9237
+ setStyleAttribute(this.element, { 'height': '100%' });
9222
9238
  this.loadContentElement();
9223
- this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + (this.hdrEle.offsetHeight + this.hdrEle.scrollHeight) + 'px)';
9239
+ this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';
9224
9240
  }
9225
9241
  else if (this.heightAdjustMode === 'Auto') {
9226
9242
  if (this.isTemplate === true) {