@syncfusion/ej2-ribbon 21.1.35 → 21.1.37
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/CHANGELOG.md +3 -1
- package/README.md +61 -1
- 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 +42 -21
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +42 -21
- 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 +12 -12
- package/src/ribbon/base/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.js +18 -10
- package/src/ribbon/base/utils.d.ts +15 -1
- package/src/ribbon/base/utils.js +16 -1
- package/src/ribbon/items/ribbon-button.d.ts +0 -1
- package/src/ribbon/items/ribbon-button.js +2 -1
- package/src/ribbon/items/ribbon-checkbox.d.ts +0 -1
- package/src/ribbon/items/ribbon-checkbox.js +0 -1
- package/src/ribbon/items/ribbon-colorpicker.d.ts +0 -1
- package/src/ribbon/items/ribbon-colorpicker.js +0 -1
- package/src/ribbon/items/ribbon-combobox.d.ts +0 -1
- package/src/ribbon/items/ribbon-combobox.js +0 -1
- package/src/ribbon/items/ribbon-dropdown.d.ts +0 -1
- package/src/ribbon/items/ribbon-dropdown.js +0 -1
- package/src/ribbon/items/ribbon-splitbutton.d.ts +0 -1
- package/src/ribbon/items/ribbon-splitbutton.js +0 -1
- package/src/ribbon/modules/ribbon-filemenu.js +6 -4
- package/styles/bootstrap-dark.css +11 -0
- package/styles/bootstrap.css +11 -0
- package/styles/bootstrap4.css +11 -0
- package/styles/bootstrap5-dark.css +11 -0
- package/styles/bootstrap5.css +11 -0
- package/styles/fabric-dark.css +11 -0
- package/styles/fabric.css +11 -0
- package/styles/fluent-dark.css +11 -0
- package/styles/fluent.css +11 -0
- package/styles/highcontrast-light.css +11 -0
- package/styles/highcontrast.css +11 -0
- package/styles/material-dark.css +11 -0
- package/styles/material.css +11 -0
- package/styles/ribbon/_layout.scss +16 -0
- package/styles/ribbon/bootstrap-dark.css +11 -0
- package/styles/ribbon/bootstrap.css +11 -0
- package/styles/ribbon/bootstrap4.css +11 -0
- package/styles/ribbon/bootstrap5-dark.css +11 -0
- package/styles/ribbon/bootstrap5.css +11 -0
- package/styles/ribbon/fabric-dark.css +11 -0
- package/styles/ribbon/fabric.css +11 -0
- package/styles/ribbon/fluent-dark.css +11 -0
- package/styles/ribbon/fluent.css +11 -0
- package/styles/ribbon/highcontrast-light.css +11 -0
- package/styles/ribbon/highcontrast.css +11 -0
- package/styles/ribbon/material-dark.css +11 -0
- package/styles/ribbon/material.css +11 -0
- package/styles/ribbon/tailwind-dark.css +11 -0
- package/styles/ribbon/tailwind.css +11 -0
- package/styles/tailwind-dark.css +11 -0
- package/styles/tailwind.css +11 -0
|
@@ -1177,6 +1177,7 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
|
|
|
1177
1177
|
btnSettings.clicked.call(_this, e);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
+
buttonEle.setAttribute('aria-label', btnSettings.content);
|
|
1180
1181
|
};
|
|
1181
1182
|
/**
|
|
1182
1183
|
* Adds the additional event handlers as the item moved into overflow popup.
|
|
@@ -1204,7 +1205,6 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
|
|
|
1204
1205
|
*
|
|
1205
1206
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
1206
1207
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
1207
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
1208
1208
|
* @returns {void}
|
|
1209
1209
|
* @hidden
|
|
1210
1210
|
*/
|
|
@@ -1258,6 +1258,7 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
if (prop.content) {
|
|
1260
1260
|
prop.content = itemProp.item.activeSize === RibbonItemSize.Small ? '' : prop.content;
|
|
1261
|
+
buttonEle.setAttribute('aria-label', prop.content);
|
|
1261
1262
|
}
|
|
1262
1263
|
delete prop.clicked;
|
|
1263
1264
|
buttonObj.setProperties(prop);
|
|
@@ -1352,7 +1353,6 @@ var RibbonCheckBox = /** @__PURE__ @class */ (function () {
|
|
|
1352
1353
|
*
|
|
1353
1354
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
1354
1355
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
1355
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
1356
1356
|
* @returns {void}
|
|
1357
1357
|
* @hidden
|
|
1358
1358
|
*/
|
|
@@ -1499,7 +1499,6 @@ var RibbonColorPicker = /** @__PURE__ @class */ (function () {
|
|
|
1499
1499
|
*
|
|
1500
1500
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
1501
1501
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
1502
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
1503
1502
|
* @returns {void}
|
|
1504
1503
|
* @hidden
|
|
1505
1504
|
*/
|
|
@@ -1666,7 +1665,6 @@ var RibbonComboBox = /** @__PURE__ @class */ (function () {
|
|
|
1666
1665
|
*
|
|
1667
1666
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
1668
1667
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
1669
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
1670
1668
|
* @returns {void}
|
|
1671
1669
|
* @hidden
|
|
1672
1670
|
*/
|
|
@@ -1834,7 +1832,6 @@ var RibbonDropDown = /** @__PURE__ @class */ (function () {
|
|
|
1834
1832
|
*
|
|
1835
1833
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
1836
1834
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
1837
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
1838
1835
|
* @returns {void}
|
|
1839
1836
|
* @hidden
|
|
1840
1837
|
*/
|
|
@@ -2118,7 +2115,6 @@ var RibbonSplitButton = /** @__PURE__ @class */ (function () {
|
|
|
2118
2115
|
*
|
|
2119
2116
|
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
2120
2117
|
* @param {HTMLElement} itemEle - Gets the ribbon item element.
|
|
2121
|
-
* @param {DropDownButton} overflowButton - Gets the overflow button.
|
|
2122
2118
|
* @returns {void}
|
|
2123
2119
|
* @hidden
|
|
2124
2120
|
*/
|
|
@@ -2244,6 +2240,7 @@ var RibbonSplitButton = /** @__PURE__ @class */ (function () {
|
|
|
2244
2240
|
* @param {Array} arr - Gets the array to find index.
|
|
2245
2241
|
* @param {boolean} condition - Defines whether index matches with the value.
|
|
2246
2242
|
* @returns {number} - Gets the index value.
|
|
2243
|
+
* @hidden
|
|
2247
2244
|
*/
|
|
2248
2245
|
function getIndex(arr, condition) {
|
|
2249
2246
|
for (var i = 0; i < arr.length; i++) {
|
|
@@ -2258,6 +2255,7 @@ function getIndex(arr, condition) {
|
|
|
2258
2255
|
*
|
|
2259
2256
|
* @param {string | HTMLElement} template - Template property value.
|
|
2260
2257
|
* @returns {Function} - Return template function.
|
|
2258
|
+
* @hidden
|
|
2261
2259
|
*/
|
|
2262
2260
|
function getTemplateFunction(template) {
|
|
2263
2261
|
if (typeof template === 'string') {
|
|
@@ -2288,6 +2286,7 @@ function getTemplateFunction(template) {
|
|
|
2288
2286
|
* @param {RibbonTabModel} tabs - Gets the ribbon tab model.
|
|
2289
2287
|
* @param {string} id - Gets the ID of the tab.
|
|
2290
2288
|
* @returns {itemProps} - Gets the ribbon item.
|
|
2289
|
+
* @hidden
|
|
2291
2290
|
*/
|
|
2292
2291
|
function getItem(tabs, id) {
|
|
2293
2292
|
for (var i = 0; i < tabs.length; i++) {
|
|
@@ -2316,6 +2315,7 @@ function getItem(tabs, id) {
|
|
|
2316
2315
|
* @param {RibbonTabModel} tabs - Gets the ribbon tab model.
|
|
2317
2316
|
* @param {string} id - Gets the ID of the tab.
|
|
2318
2317
|
* @returns {itemProps} - Gets the ribbon collection.
|
|
2318
|
+
* @hidden
|
|
2319
2319
|
*/
|
|
2320
2320
|
function getCollection(tabs, id) {
|
|
2321
2321
|
for (var i = 0; i < tabs.length; i++) {
|
|
@@ -2341,6 +2341,7 @@ function getCollection(tabs, id) {
|
|
|
2341
2341
|
* @param {RibbonTabModel} tabs - Gets the ribbon tab model.
|
|
2342
2342
|
* @param {string} id - Gets the ID of the tab.
|
|
2343
2343
|
* @returns {itemProps} - Gets the ribbon group.
|
|
2344
|
+
* @hidden
|
|
2344
2345
|
*/
|
|
2345
2346
|
function getGroup(tabs, id) {
|
|
2346
2347
|
for (var i = 0; i < tabs.length; i++) {
|
|
@@ -2360,6 +2361,7 @@ function getGroup(tabs, id) {
|
|
|
2360
2361
|
* @param {HTMLElement} element - Gets the element to be destroyed.
|
|
2361
2362
|
* @param {string} moduleName - Gets the module name.
|
|
2362
2363
|
* @returns {void}
|
|
2364
|
+
* @hidden
|
|
2363
2365
|
*/
|
|
2364
2366
|
function destroyControl(element, moduleName) {
|
|
2365
2367
|
var control = getComponent(element, moduleName);
|
|
@@ -2372,6 +2374,7 @@ function destroyControl(element, moduleName) {
|
|
|
2372
2374
|
* @param {string} moduleName - Gets the module name.
|
|
2373
2375
|
* @param {commonProperties} commonProp - Gets the common properties to be updated.
|
|
2374
2376
|
* @returns {void}
|
|
2377
|
+
* @hidden
|
|
2375
2378
|
*/
|
|
2376
2379
|
function updateCommonProperty(element, moduleName, commonProp) {
|
|
2377
2380
|
var control = getComponent(element, moduleName);
|
|
@@ -2384,6 +2387,7 @@ function updateCommonProperty(element, moduleName, commonProp) {
|
|
|
2384
2387
|
* @param {string} moduleName - Gets the module name.
|
|
2385
2388
|
* @param {boolean} disable - Defines whether the control to be disabled or not.
|
|
2386
2389
|
* @returns {void}
|
|
2390
|
+
* @hidden
|
|
2387
2391
|
*/
|
|
2388
2392
|
function updateControlDisabled(element, moduleName, disable) {
|
|
2389
2393
|
var control = getComponent(element, moduleName);
|
|
@@ -2393,9 +2397,10 @@ function updateControlDisabled(element, moduleName, disable) {
|
|
|
2393
2397
|
* Gets the ribbon item element.
|
|
2394
2398
|
*
|
|
2395
2399
|
* @param {Ribbon} parent - Gets the parent element.
|
|
2396
|
-
* @param {itemProps} itemProp - Gets the ribbon item.
|
|
2397
2400
|
* @param {string} id - Gets the ID of the item.
|
|
2401
|
+
* @param {itemProps} itemProp - Gets the ribbon item.
|
|
2398
2402
|
* @returns {HTMLElement} - Gets the ribbon item element.
|
|
2403
|
+
* @hidden
|
|
2399
2404
|
*/
|
|
2400
2405
|
function getItemElement(parent, id, itemProp) {
|
|
2401
2406
|
if (!itemProp) {
|
|
@@ -2430,6 +2435,7 @@ function getItemElement(parent, id, itemProp) {
|
|
|
2430
2435
|
/**
|
|
2431
2436
|
* @param {RibbonTooltipModel} tooltip - Gets the property of tooltip.
|
|
2432
2437
|
* @returns {boolean} - Gets whether the tooltip is present or not.
|
|
2438
|
+
* @hidden
|
|
2433
2439
|
*/
|
|
2434
2440
|
function isTooltipPresent(tooltip) {
|
|
2435
2441
|
return (tooltip.content || tooltip.iconCss || tooltip.title || tooltip.id || tooltip.cssClass) ? true : false;
|
|
@@ -2441,6 +2447,7 @@ function isTooltipPresent(tooltip) {
|
|
|
2441
2447
|
* @param {Tooltip} tooltip - Gets the tooltip to set the content.
|
|
2442
2448
|
* @param {ribbonTooltipData} tooltipData - Gets the tooltip data.
|
|
2443
2449
|
* @returns {void}
|
|
2450
|
+
* @hidden
|
|
2444
2451
|
*/
|
|
2445
2452
|
function setToolTipContent(args, tooltip, tooltipData) {
|
|
2446
2453
|
var targetId = args.target.getAttribute('id');
|
|
@@ -2484,6 +2491,7 @@ function setToolTipContent(args, tooltip, tooltipData) {
|
|
|
2484
2491
|
* @param {HTMLElement} element - Gets the element to add tooltip.
|
|
2485
2492
|
* @param {Ribbon} ribbon - Gets the ribbon.
|
|
2486
2493
|
* @returns {void}
|
|
2494
|
+
* @hidden
|
|
2487
2495
|
*/
|
|
2488
2496
|
function createTooltip(element, ribbon) {
|
|
2489
2497
|
var ribbonTooltip = new Tooltip({
|
|
@@ -2495,6 +2503,7 @@ function createTooltip(element, ribbon) {
|
|
|
2495
2503
|
/**
|
|
2496
2504
|
* @param {TooltipEventArgs} args - Gets the tooltip argument.
|
|
2497
2505
|
* @returns {void}
|
|
2506
|
+
* @hidden
|
|
2498
2507
|
*/
|
|
2499
2508
|
function beforeTooltipRender(args) {
|
|
2500
2509
|
setToolTipContent(args, ribbonTooltip, ribbon.tooltipData);
|
|
@@ -2505,6 +2514,7 @@ function createTooltip(element, ribbon) {
|
|
|
2505
2514
|
*
|
|
2506
2515
|
* @param {HTMLElement} element - Gets the element in which the tooltip needs to be destroyed.
|
|
2507
2516
|
* @returns {void}
|
|
2517
|
+
* @hidden
|
|
2508
2518
|
*/
|
|
2509
2519
|
function destroyTooltip(element) {
|
|
2510
2520
|
var control = getComponent(element, Tooltip);
|
|
@@ -2516,6 +2526,7 @@ function destroyTooltip(element) {
|
|
|
2516
2526
|
* @param {HTMLElement} element - Gets the element in which the tooltip needs to be Updated.
|
|
2517
2527
|
* @param {commonProperties} prop - Gets the property to be updated.
|
|
2518
2528
|
* @returns {void}
|
|
2529
|
+
* @hidden
|
|
2519
2530
|
*/
|
|
2520
2531
|
function updateTooltipProp(element, prop) {
|
|
2521
2532
|
var control = getComponent(element, Tooltip);
|
|
@@ -2735,7 +2746,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
2735
2746
|
}
|
|
2736
2747
|
//Adds Scroll if the tabwidth is less the content width even after adding overflow dropdown.
|
|
2737
2748
|
if ((tabContent.offsetWidth < activeContent.offsetWidth) && (!this.scrollModule)) {
|
|
2738
|
-
this.scrollModule = new HScroll({
|
|
2749
|
+
this.scrollModule = new HScroll({
|
|
2750
|
+
enableRtl: this.enableRtl
|
|
2751
|
+
}, this.tabObj.element.querySelector('.' + TAB_CONTENT));
|
|
2739
2752
|
}
|
|
2740
2753
|
}
|
|
2741
2754
|
else if (!isOverFlow) {
|
|
@@ -2816,8 +2829,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
2816
2829
|
var group = orderedGroups[parseInt(i.toString(), 10)];
|
|
2817
2830
|
var groupEle = tabContent.querySelector('#' + group.id);
|
|
2818
2831
|
var groupContainer = groupEle.querySelector('#' + group.id + CONTAINER_ID);
|
|
2819
|
-
for (var j =
|
|
2820
|
-
var collection = group.collections[parseInt(j.toString(), 10)];
|
|
2832
|
+
for (var j = group.collections.length; ((j >= 1) && (tabContent.offsetWidth < activeContent.offsetWidth)); j--) {
|
|
2833
|
+
var collection = group.collections[parseInt((j - 1).toString(), 10)];
|
|
2821
2834
|
var collectionEle = groupEle.querySelector('#' + collection.id);
|
|
2822
2835
|
for (var k = collection.items.length; ((k >= 1) && (tabContent.offsetWidth < activeContent.offsetWidth)); k--) {
|
|
2823
2836
|
var item = collection.items[k - 1];
|
|
@@ -2884,8 +2897,8 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
2884
2897
|
overflowDDB = this.overflowDDB;
|
|
2885
2898
|
overflowtarget = this.overflowDDB ? this.overflowDDB.target : null;
|
|
2886
2899
|
}
|
|
2887
|
-
for (var j =
|
|
2888
|
-
var collection = group.collections[parseInt(
|
|
2900
|
+
for (var j = 0; ((j < group.collections.length) && flag); j++) {
|
|
2901
|
+
var collection = group.collections[parseInt(j.toString(), 10)];
|
|
2889
2902
|
// eslint-disable-next-line max-len
|
|
2890
2903
|
for (var k = 0; ((k < collection.items.length) && flag && !isClear && (tabContent.offsetWidth > activeContent.offsetWidth)); k++) {
|
|
2891
2904
|
var item = collection.items[parseInt(k.toString(), 10)];
|
|
@@ -3709,11 +3722,11 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
3709
3722
|
this.collapseButton = this.createElement('span', {
|
|
3710
3723
|
className: RIBBON_COLLAPSE_BUTTON + SPACE + EXPAND_COLLAPSE_ICON,
|
|
3711
3724
|
id: this.tabObj.element.id + COLLAPSE_BUTTON_ID,
|
|
3712
|
-
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher' }
|
|
3725
|
+
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher', 'role': 'button' }
|
|
3713
3726
|
});
|
|
3714
3727
|
this.collapseButton.onclick = function () { _this.toggleLayout(); };
|
|
3715
3728
|
this.collapseButton.onkeydown = function (e) {
|
|
3716
|
-
if (e.key ===
|
|
3729
|
+
if (e.key === 'Enter') {
|
|
3717
3730
|
_this.toggleLayout();
|
|
3718
3731
|
}
|
|
3719
3732
|
};
|
|
@@ -3959,13 +3972,13 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
3959
3972
|
var launcherIcon = this_3.createElement('div', {
|
|
3960
3973
|
className: RIBBON_LAUNCHER_ICON_ELE + ' ' + (this_3.launcherIconCss ? this_3.launcherIconCss : RIBBON_LAUNCHER_ICON),
|
|
3961
3974
|
id: group.id + LAUNCHER_ID,
|
|
3962
|
-
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Launcher Icon' }
|
|
3975
|
+
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Launcher Icon', 'role': 'button' }
|
|
3963
3976
|
});
|
|
3964
3977
|
groupContainer.appendChild(launcherIcon);
|
|
3965
3978
|
groupContainer.classList.add(RIBBON_LAUNCHER);
|
|
3966
3979
|
EventHandler.add(launcherIcon, 'click', this_3.launcherIconClicked.bind(this_3, group.id), this_3);
|
|
3967
3980
|
EventHandler.add(launcherIcon, 'keydown', function (e) {
|
|
3968
|
-
if (e.key ===
|
|
3981
|
+
if (e.key === 'Enter') {
|
|
3969
3982
|
_this.launcherIconClicked(group.id);
|
|
3970
3983
|
}
|
|
3971
3984
|
}, this_3);
|
|
@@ -3993,7 +4006,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
3993
4006
|
for (var j = 0; j < items.length; j++) {
|
|
3994
4007
|
var ribbonitem = items[parseInt(j.toString(), 10)];
|
|
3995
4008
|
if (!ribbonitem.allowedSizes || (ribbonitem.allowedSizes === 0)) {
|
|
3996
|
-
ribbonitem.setProperties({
|
|
4009
|
+
ribbonitem.setProperties({
|
|
4010
|
+
allowedSizes: (RibbonItemSize.Small | RibbonItemSize.Medium | RibbonItemSize.Large)
|
|
4011
|
+
}, true);
|
|
3997
4012
|
}
|
|
3998
4013
|
if ((ribbonitem.type === 'ColorPicker') && (ribbonitem.allowedSizes !== RibbonItemSize.Small)) {
|
|
3999
4014
|
ribbonitem.setProperties({ allowedSizes: RibbonItemSize.Small }, true);
|
|
@@ -4807,6 +4822,7 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
4807
4822
|
break;
|
|
4808
4823
|
case 'isMinimized':
|
|
4809
4824
|
this.element.classList.toggle(RIBBON_MINIMIZE, this.isMinimized);
|
|
4825
|
+
this.tabObj.element.querySelector('.e-content').style.display = this.isMinimized ? 'none' : 'block';
|
|
4810
4826
|
break;
|
|
4811
4827
|
case 'locale':
|
|
4812
4828
|
this.updateCommonProperty({ locale: this.locale });
|
|
@@ -4817,6 +4833,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
|
|
|
4817
4833
|
case 'enableRtl':
|
|
4818
4834
|
this.element.classList.toggle(RTL_CSS, this.enableRtl);
|
|
4819
4835
|
this.updateCommonProperty({ enableRtl: newProp.enableRtl });
|
|
4836
|
+
if (this.scrollModule) {
|
|
4837
|
+
this.scrollModule.setProperties({ enableRtl: newProp.enableRtl });
|
|
4838
|
+
}
|
|
4820
4839
|
break;
|
|
4821
4840
|
case 'launcherIconCss':
|
|
4822
4841
|
for (var i = 0; i < this.tabs.length; i++) {
|
|
@@ -4958,7 +4977,7 @@ var RibbonFileMenu = /** @__PURE__ @class */ (function () {
|
|
|
4958
4977
|
return;
|
|
4959
4978
|
}
|
|
4960
4979
|
this.ddbElement = this.parent.createElement('button', {
|
|
4961
|
-
id: this.parent.element.id + RIBBON_FILE_MENU_ID
|
|
4980
|
+
id: this.parent.element.id + RIBBON_FILE_MENU_ID
|
|
4962
4981
|
});
|
|
4963
4982
|
var tabEle = this.parent.tabObj.element;
|
|
4964
4983
|
var toolbarEle = tabEle.querySelector('.e-toolbar');
|
|
@@ -5050,7 +5069,7 @@ var RibbonFileMenu = /** @__PURE__ @class */ (function () {
|
|
|
5050
5069
|
select: this.menuSelect.bind(this)
|
|
5051
5070
|
}, ulElem);
|
|
5052
5071
|
EventHandler.add(ulElem, 'keydown', function (e) {
|
|
5053
|
-
if (e.key ===
|
|
5072
|
+
if (e.key === 'Tab') {
|
|
5054
5073
|
_this.fileMenuDDB.toggle();
|
|
5055
5074
|
}
|
|
5056
5075
|
}, this);
|
|
@@ -5059,8 +5078,10 @@ var RibbonFileMenu = /** @__PURE__ @class */ (function () {
|
|
|
5059
5078
|
var event = isOpen ? this.parent.fileMenu.beforeOpen :
|
|
5060
5079
|
this.parent.fileMenu.beforeClose;
|
|
5061
5080
|
if (event) {
|
|
5062
|
-
var eventArgs = {
|
|
5063
|
-
|
|
5081
|
+
var eventArgs = {
|
|
5082
|
+
cancel: args.cancel, element: args.element, event: args.event,
|
|
5083
|
+
items: args.items, parentItem: args.parentItem
|
|
5084
|
+
};
|
|
5064
5085
|
event.call(this, eventArgs);
|
|
5065
5086
|
args.cancel = eventArgs.cancel;
|
|
5066
5087
|
}
|