@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.
- package/dist/ej2-ribbon.umd.min.js +2 -2
- package/dist/ej2-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-ribbon.es2015.js +12 -1
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +12 -1
- package/dist/es6/ej2-ribbon.es5.js.map +1 -1
- package/dist/global/ej2-ribbon.min.js +2 -2
- package/dist/global/ej2-ribbon.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/ribbon/base/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.d.ts +2 -0
- package/src/ribbon/base/ribbon.js +12 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChildProperty, Property, Event, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, setValue, formatUnit, append, Component, getUniqueID, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges } from '@syncfusion/ej2-base';
|
|
1
|
+
import { ChildProperty, Property, Event, Complex, Collection, getComponent, merge, EventHandler, isNullOrUndefined, closest, remove, select, compile, addClass, setValue, formatUnit, append, Component, getUniqueID, L10n, KeyboardEvents, getInstance, isUndefined, removeClass, NotifyPropertyChanges } 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';
|
|
@@ -4512,6 +4512,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4512
4512
|
}
|
|
4513
4513
|
initialize() {
|
|
4514
4514
|
this.element.id = this.element.id || getUniqueID('e-' + this.getModuleName());
|
|
4515
|
+
this.initializeLocale();
|
|
4515
4516
|
addClass([this.element], ['e-rbn', ...(this.cssClass ? this.cssClass.split(SPACE) : [])]);
|
|
4516
4517
|
if (this.enableRtl) {
|
|
4517
4518
|
this.element.classList.add(RTL_CSS);
|
|
@@ -4537,6 +4538,13 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4537
4538
|
this.wireKeyboardEvent();
|
|
4538
4539
|
this.currentControlIndex = 0;
|
|
4539
4540
|
}
|
|
4541
|
+
initializeLocale() {
|
|
4542
|
+
this.l10n = new L10n('ribbon', {
|
|
4543
|
+
groupOverflow: 'More Group Options',
|
|
4544
|
+
overflow: 'More Options'
|
|
4545
|
+
}, this.locale);
|
|
4546
|
+
this.l10n.setLocale(this.locale);
|
|
4547
|
+
}
|
|
4540
4548
|
wireEvents() {
|
|
4541
4549
|
this.resizeListener = this.resizeHandler.bind(this);
|
|
4542
4550
|
EventHandler.add(window, 'resize', this.resizeListener);
|
|
@@ -6462,6 +6470,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6462
6470
|
className: RIBBON_OVERFLOW_TARGET,
|
|
6463
6471
|
attrs: { 'tabindex': '0' }
|
|
6464
6472
|
});
|
|
6473
|
+
overflowButton.setAttribute('title', isGroupOF ? this.l10n.getConstant('groupOverflow') : this.l10n.getConstant('overflow'));
|
|
6465
6474
|
const overFlowCss = this.cssClass ? SPACE + this.cssClass : '';
|
|
6466
6475
|
const overflowDDB = new DropDownButton({
|
|
6467
6476
|
iconCss: OVERFLOW_ICON,
|
|
@@ -9140,6 +9149,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
9140
9149
|
super.destroy();
|
|
9141
9150
|
this.tabObj.destroy();
|
|
9142
9151
|
this.tabObj = undefined;
|
|
9152
|
+
this.l10n = null;
|
|
9143
9153
|
this.initialPropsData = {};
|
|
9144
9154
|
this.hiddenGroups = [];
|
|
9145
9155
|
this.hiddenElements = {};
|
|
@@ -9186,6 +9196,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
9186
9196
|
}
|
|
9187
9197
|
break;
|
|
9188
9198
|
case 'locale':
|
|
9199
|
+
this.l10n.setLocale(this.locale);
|
|
9189
9200
|
this.updateCommonProperty({ locale: this.locale });
|
|
9190
9201
|
break;
|
|
9191
9202
|
case 'enablePersistence':
|