@syncfusion/ej2-navigations 35.1.40 → 35.1.42

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.
@@ -1,4 +1,4 @@
1
- import { Component, Browser, getUniqueID, Touch, EventHandler, isNullOrUndefined, selectAll, detach, classList, Property, NotifyPropertyChanges, createElement, removeClass, select, ChildProperty, Collection, Event, Complex, Animation, getValue, setValue, append, closest, addClass, isBlazor, rippleEffect, KeyboardEvents, getInstance, isVisible, SanitizeHtmlHelper, formatUnit, setStyleAttribute, attributes, compile, isRippleEnabled, animationMode, remove, getRandomId, L10n, Draggable, isUndefined, getElement, Droppable, matches, extend, merge, initializeCSPTemplate } from '@syncfusion/ej2-base';
1
+ import { Component, Browser, getUniqueID, Touch, EventHandler, isNullOrUndefined, selectAll, detach, classList, Property, NotifyPropertyChanges, createElement, removeClass, select, ChildProperty, Collection, Event, Complex, Animation, getValue, setValue, append, closest, addClass, isBlazor, rippleEffect, KeyboardEvents, getInstance, isVisible, SanitizeHtmlHelper, L10n, formatUnit, setStyleAttribute, attributes, compile, isRippleEnabled, animationMode, remove, getRandomId, Draggable, isUndefined, getElement, Droppable, matches, extend, merge, initializeCSPTemplate } from '@syncfusion/ej2-base';
2
2
  import { ListBase } from '@syncfusion/ej2-lists';
3
3
  import { getScrollableParent, Popup, getZindexPartial, fit, isCollide, calculatePosition, createSpinner, showSpinner, hideSpinner, Tooltip } from '@syncfusion/ej2-popups';
4
4
  import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
@@ -1594,7 +1594,7 @@ let MenuBase = class MenuBase extends Component {
1594
1594
  const popups = [];
1595
1595
  const allPopup = selectAll('.' + POPUP);
1596
1596
  allPopup.forEach((elem) => {
1597
- if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
1597
+ if (this.element.id === elem.id.split('-')[2] || (this.element.id.includes('-') && elem.id.includes(this.element.id))) {
1598
1598
  popups.push(elem);
1599
1599
  }
1600
1600
  });
@@ -3920,6 +3920,8 @@ let Toolbar = class Toolbar extends Component {
3920
3920
  this.isVertical = this.element.classList.contains(CLS_VERTICAL) ? true : false;
3921
3921
  this.isExtendedOpen = false;
3922
3922
  this.popupPriCount = 0;
3923
+ const localeText = { overflow: 'overflow' };
3924
+ this.l10n = new L10n(this.getModuleName(), localeText, this.locale);
3923
3925
  if (this.enableRtl) {
3924
3926
  this.add(this.element, CLS_RTL$2);
3925
3927
  }
@@ -4691,7 +4693,7 @@ let Toolbar = class Toolbar extends Component {
4691
4693
  this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
4692
4694
  const ariaAttr = {
4693
4695
  'tabindex': '0', 'role': 'button', 'aria-haspopup': 'true',
4694
- 'aria-label': 'overflow'
4696
+ 'aria-label': this.l10n.getConstant('overflow')
4695
4697
  };
4696
4698
  attributes(this.element.querySelector('.' + CLS_TBARNAV), ariaAttr);
4697
4699
  }