@syncfusion/ej2-ribbon 33.1.44 → 33.1.49

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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.44
3
+ * version : 33.1.49
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-ribbon",
3
- "version": "33.1.44",
3
+ "version": "33.1.49",
4
4
  "description": "Essential JS 2 Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,13 +9,13 @@
9
9
  "es2015": "./dist/es6/ej2-ribbon.es5.js",
10
10
  "typings": "index.d.ts",
11
11
  "dependencies": {
12
- "@syncfusion/ej2-base": "~33.1.44",
13
- "@syncfusion/ej2-buttons": "~33.1.44",
14
- "@syncfusion/ej2-dropdowns": "~33.1.44",
15
- "@syncfusion/ej2-lists": "~33.1.44",
16
- "@syncfusion/ej2-navigations": "~33.1.44",
12
+ "@syncfusion/ej2-base": "~33.1.45",
13
+ "@syncfusion/ej2-buttons": "~33.1.49",
14
+ "@syncfusion/ej2-dropdowns": "~33.1.49",
15
+ "@syncfusion/ej2-lists": "~33.1.47",
16
+ "@syncfusion/ej2-navigations": "~33.1.49",
17
17
  "@syncfusion/ej2-popups": "~33.1.44",
18
- "@syncfusion/ej2-splitbuttons": "~33.1.44"
18
+ "@syncfusion/ej2-splitbuttons": "~33.1.49"
19
19
  },
20
20
  "devDependencies": {},
21
21
  "keywords": [
@@ -1,4 +1,4 @@
1
- import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { ColorPicker } from '@syncfusion/ej2-inputs';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
1
+ import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass, L10n } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { ColorPicker } from '@syncfusion/ej2-inputs';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -222,6 +222,7 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
222
222
  * The `ribbonKeytipModule` is used to create and manipulate the ribbon keytip.
223
223
  */
224
224
  ribbonKeyTipModule: RibbonKeyTip;
225
+ private l10n;
225
226
  private itemIndex;
226
227
  private idIndex;
227
228
  private isAddRemove;
@@ -290,6 +291,7 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
290
291
  */
291
292
  protected requiredModules(): ModuleDeclaration[];
292
293
  private initialize;
294
+ private initializeLocale;
293
295
  private wireEvents;
294
296
  private wireKeyboardEvent;
295
297
  private keyActionHandler;
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { addClass, append, Event, Collection, Complex, Component, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEvents } from '@syncfusion/ej2-base';
21
- import { isNullOrUndefined, isUndefined, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';
21
+ import { isNullOrUndefined, isUndefined, NotifyPropertyChanges, Property, remove, removeClass, L10n } from '@syncfusion/ej2-base';
22
22
  import { Tab, TabAnimationSettings, HScroll, Toolbar } from '@syncfusion/ej2-navigations';
23
23
  import { RibbonTab, FileMenuSettings, BackStageMenu, RibbonContextualTabSettings } from '../models/index';
24
24
  import { DisplayMode, RibbonLayout } from './interface';
@@ -126,6 +126,7 @@ var Ribbon = /** @class */ (function (_super) {
126
126
  };
127
127
  Ribbon.prototype.initialize = function () {
128
128
  this.element.id = this.element.id || getUniqueID('e-' + this.getModuleName());
129
+ this.initializeLocale();
129
130
  addClass([this.element], ['e-rbn'].concat((this.cssClass ? this.cssClass.split(constants.SPACE) : [])));
130
131
  if (this.enableRtl) {
131
132
  this.element.classList.add(constants.RTL_CSS);
@@ -151,6 +152,13 @@ var Ribbon = /** @class */ (function (_super) {
151
152
  this.wireKeyboardEvent();
152
153
  this.currentControlIndex = 0;
153
154
  };
155
+ Ribbon.prototype.initializeLocale = function () {
156
+ this.l10n = new L10n('ribbon', {
157
+ groupOverflow: 'More Group Options',
158
+ overflow: 'More Options'
159
+ }, this.locale);
160
+ this.l10n.setLocale(this.locale);
161
+ };
154
162
  Ribbon.prototype.wireEvents = function () {
155
163
  this.resizeListener = this.resizeHandler.bind(this);
156
164
  EventHandler.add(window, 'resize', this.resizeListener);
@@ -2108,6 +2116,7 @@ var Ribbon = /** @class */ (function (_super) {
2108
2116
  className: constants.RIBBON_OVERFLOW_TARGET,
2109
2117
  attrs: { 'tabindex': '0' }
2110
2118
  });
2119
+ overflowButton.setAttribute('title', isGroupOF ? this.l10n.getConstant('groupOverflow') : this.l10n.getConstant('overflow'));
2111
2120
  var overFlowCss = this.cssClass ? constants.SPACE + this.cssClass : '';
2112
2121
  var overflowDDB = new DropDownButton({
2113
2122
  iconCss: constants.OVERFLOW_ICON,
@@ -4830,6 +4839,7 @@ var Ribbon = /** @class */ (function (_super) {
4830
4839
  _super.prototype.destroy.call(this);
4831
4840
  this.tabObj.destroy();
4832
4841
  this.tabObj = undefined;
4842
+ this.l10n = null;
4833
4843
  this.initialPropsData = {};
4834
4844
  this.hiddenGroups = [];
4835
4845
  this.hiddenElements = {};
@@ -4878,6 +4888,7 @@ var Ribbon = /** @class */ (function (_super) {
4878
4888
  }
4879
4889
  break;
4880
4890
  case 'locale':
4891
+ this.l10n.setLocale(this.locale);
4881
4892
  this.updateCommonProperty({ locale: this.locale });
4882
4893
  break;
4883
4894
  case 'enablePersistence':