@syncfusion/ej2-ribbon 32.2.3 → 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 +8 -8
- 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
- package/styles/bds-lite.css +4 -3
- package/styles/bds.css +4 -3
- package/styles/bootstrap-dark-lite.css +4 -2
- package/styles/bootstrap-dark.css +4 -2
- package/styles/bootstrap-lite.css +4 -2
- package/styles/bootstrap.css +4 -2
- package/styles/bootstrap4-lite.css +4 -2
- package/styles/bootstrap4.css +4 -2
- package/styles/bootstrap5-dark-lite.css +4 -2
- package/styles/bootstrap5-dark.css +4 -2
- package/styles/bootstrap5-lite.css +4 -2
- package/styles/bootstrap5.3-lite.css +4 -3
- package/styles/bootstrap5.3.css +4 -3
- package/styles/bootstrap5.css +4 -2
- package/styles/fabric-dark-lite.css +4 -2
- package/styles/fabric-dark.css +4 -2
- package/styles/fabric-lite.css +4 -2
- package/styles/fabric.css +4 -2
- package/styles/fluent-dark-lite.css +4 -2
- package/styles/fluent-dark.css +4 -2
- package/styles/fluent-lite.css +4 -2
- package/styles/fluent.css +4 -2
- package/styles/fluent2-lite.css +4 -2
- package/styles/fluent2.css +4 -2
- package/styles/highcontrast-light-lite.css +4 -2
- package/styles/highcontrast-light.css +4 -2
- package/styles/highcontrast-lite.css +4 -2
- package/styles/highcontrast.css +4 -2
- package/styles/material-dark-lite.css +4 -2
- package/styles/material-dark.css +4 -2
- package/styles/material-lite.css +4 -2
- package/styles/material.css +4 -2
- package/styles/material3-dark-lite.css +4 -20
- package/styles/material3-dark.css +4 -20
- package/styles/material3-lite.css +4 -20
- package/styles/material3.css +4 -20
- package/styles/ribbon/bds.css +4 -3
- package/styles/ribbon/bootstrap-dark.css +4 -2
- package/styles/ribbon/bootstrap.css +4 -2
- package/styles/ribbon/bootstrap4.css +4 -2
- package/styles/ribbon/bootstrap5-dark.css +4 -2
- package/styles/ribbon/bootstrap5.3.css +4 -3
- package/styles/ribbon/bootstrap5.css +4 -2
- package/styles/ribbon/fabric-dark.css +4 -2
- package/styles/ribbon/fabric.css +4 -2
- package/styles/ribbon/fluent-dark.css +4 -2
- package/styles/ribbon/fluent.css +4 -2
- package/styles/ribbon/fluent2.css +4 -2
- package/styles/ribbon/highcontrast-light.css +4 -2
- package/styles/ribbon/highcontrast.css +4 -2
- package/styles/ribbon/material-dark.css +4 -2
- package/styles/ribbon/material.css +4 -2
- package/styles/ribbon/material3-dark.css +4 -20
- package/styles/ribbon/material3.css +4 -20
- package/styles/ribbon/tailwind-dark.css +4 -2
- package/styles/ribbon/tailwind.css +4 -2
- package/styles/ribbon/tailwind3.css +4 -3
- package/styles/tailwind-dark-lite.css +4 -2
- package/styles/tailwind-dark.css +4 -2
- package/styles/tailwind-lite.css +4 -2
- package/styles/tailwind.css +4 -2
- package/styles/tailwind3-lite.css +4 -3
- package/styles/tailwind3.css +4 -3
|
@@ -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':
|