@syncfusion/ej2-ribbon 33.1.44 → 33.2.3

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 { Property, Event, ChildProperty, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, formatUnit, append, setValue, getUniqueID, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges, Component } from '@syncfusion/ej2-base';
1
+ import { Property, Event, ChildProperty, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, formatUnit, append, setValue, getUniqueID, L10n, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges, Component } from '@syncfusion/ej2-base';
2
2
  import { MenuItem, MenuAnimationSettings, Tab, Toolbar, HScroll, TabAnimationSettings, Menu } from '@syncfusion/ej2-navigations';
3
3
  import { FieldSettings, ComboBox } from '@syncfusion/ej2-dropdowns';
4
4
  import { Item, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';
@@ -4952,6 +4952,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
4952
4952
  };
4953
4953
  Ribbon.prototype.initialize = function () {
4954
4954
  this.element.id = this.element.id || getUniqueID('e-' + this.getModuleName());
4955
+ this.initializeLocale();
4955
4956
  addClass([this.element], ['e-rbn'].concat((this.cssClass ? this.cssClass.split(SPACE) : [])));
4956
4957
  if (this.enableRtl) {
4957
4958
  this.element.classList.add(RTL_CSS);
@@ -4977,6 +4978,13 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
4977
4978
  this.wireKeyboardEvent();
4978
4979
  this.currentControlIndex = 0;
4979
4980
  };
4981
+ Ribbon.prototype.initializeLocale = function () {
4982
+ this.l10n = new L10n('ribbon', {
4983
+ groupOverflow: 'More Group Options',
4984
+ overflow: 'More Options'
4985
+ }, this.locale);
4986
+ this.l10n.setLocale(this.locale);
4987
+ };
4980
4988
  Ribbon.prototype.wireEvents = function () {
4981
4989
  this.resizeListener = this.resizeHandler.bind(this);
4982
4990
  EventHandler.add(window, 'resize', this.resizeListener);
@@ -6934,6 +6942,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
6934
6942
  className: RIBBON_OVERFLOW_TARGET,
6935
6943
  attrs: { 'tabindex': '0' }
6936
6944
  });
6945
+ overflowButton.setAttribute('title', isGroupOF ? this.l10n.getConstant('groupOverflow') : this.l10n.getConstant('overflow'));
6937
6946
  var overFlowCss = this.cssClass ? SPACE + this.cssClass : '';
6938
6947
  var overflowDDB = new DropDownButton({
6939
6948
  iconCss: OVERFLOW_ICON,
@@ -9654,6 +9663,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9654
9663
  _super.prototype.destroy.call(this);
9655
9664
  this.tabObj.destroy();
9656
9665
  this.tabObj = undefined;
9666
+ this.l10n = null;
9657
9667
  this.initialPropsData = {};
9658
9668
  this.hiddenGroups = [];
9659
9669
  this.hiddenElements = {};
@@ -9702,6 +9712,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9702
9712
  }
9703
9713
  break;
9704
9714
  case 'locale':
9715
+ this.l10n.setLocale(this.locale);
9705
9716
  this.updateCommonProperty({ locale: this.locale });
9706
9717
  break;
9707
9718
  case 'enablePersistence':