@syncfusion/ej2-ribbon 28.2.3 → 29.1.34
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/README.md +1 -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 -13
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +42 -13
- 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 +21 -23
- package/src/ribbon/items/ribbon-button.js +3 -1
- package/src/ribbon/items/ribbon-checkbox.js +3 -1
- package/src/ribbon/items/ribbon-colorpicker.js +3 -1
- package/src/ribbon/items/ribbon-dropdown.js +7 -1
- package/src/ribbon/items/ribbon-splitbutton.js +7 -1
- package/src/ribbon/modules/ribbon-keytip.d.ts +1 -0
- package/src/ribbon/modules/ribbon-keytip.js +19 -8
- package/styles/bds-lite.css +546 -451
- package/styles/bds.css +709 -590
- package/styles/bootstrap-dark-lite.css +531 -472
- package/styles/bootstrap-dark.css +694 -611
- package/styles/bootstrap-lite.css +511 -452
- package/styles/bootstrap.css +674 -591
- package/styles/bootstrap4-lite.css +517 -458
- package/styles/bootstrap4.css +680 -597
- package/styles/bootstrap5-dark-lite.css +559 -500
- package/styles/bootstrap5-dark.css +722 -639
- package/styles/bootstrap5-lite.css +539 -480
- package/styles/bootstrap5.3-lite.css +518 -459
- package/styles/bootstrap5.3.css +683 -600
- package/styles/bootstrap5.css +702 -619
- package/styles/fabric-dark-lite.css +527 -468
- package/styles/fabric-dark.css +690 -607
- package/styles/fabric-lite.css +518 -459
- package/styles/fabric.css +681 -598
- package/styles/fluent-dark-lite.css +517 -458
- package/styles/fluent-dark.css +680 -597
- package/styles/fluent-lite.css +517 -458
- package/styles/fluent.css +680 -597
- package/styles/fluent2-lite.css +530 -469
- package/styles/fluent2.css +721 -636
- package/styles/highcontrast-light-lite.css +514 -451
- package/styles/highcontrast-light.css +677 -590
- package/styles/highcontrast-lite.css +514 -451
- package/styles/highcontrast.css +677 -590
- package/styles/material-dark-lite.css +512 -453
- package/styles/material-dark.css +676 -593
- package/styles/material-lite.css +511 -452
- package/styles/material.css +674 -591
- package/styles/material3-dark-lite.css +511 -452
- package/styles/material3-dark.css +674 -591
- package/styles/material3-lite.css +511 -452
- package/styles/material3.css +674 -591
- package/styles/ribbon/_bds-definition.scss +6 -1
- package/styles/ribbon/_bigger.scss +79 -56
- package/styles/ribbon/_bootstrap-dark-definition.scss +10 -3
- package/styles/ribbon/_bootstrap-definition.scss +7 -2
- package/styles/ribbon/_bootstrap4-definition.scss +12 -5
- package/styles/ribbon/_bootstrap5-definition.scss +7 -2
- package/styles/ribbon/_bootstrap5.3-definition.scss +10 -5
- package/styles/ribbon/_fabric-dark-definition.scss +7 -2
- package/styles/ribbon/_fabric-definition.scss +7 -2
- package/styles/ribbon/_fluent-definition.scss +7 -2
- package/styles/ribbon/_fluent2-definition.scss +8 -3
- package/styles/ribbon/_fusionnew-definition.scss +6 -1
- package/styles/ribbon/_highcontrast-definition.scss +7 -2
- package/styles/ribbon/_highcontrast-light-definition.scss +7 -2
- package/styles/ribbon/_layout.scss +100 -58
- package/styles/ribbon/_material-dark-definition.scss +9 -4
- package/styles/ribbon/_material-definition.scss +7 -2
- package/styles/ribbon/_material3-definition.scss +7 -2
- package/styles/ribbon/_tailwind-definition.scss +7 -2
- package/styles/ribbon/_tailwind3-definition.scss +13 -8
- package/styles/ribbon/_theme.scss +108 -51
- package/styles/ribbon/bds.css +709 -590
- package/styles/ribbon/bootstrap-dark.css +694 -611
- package/styles/ribbon/bootstrap.css +674 -591
- package/styles/ribbon/bootstrap4.css +680 -597
- package/styles/ribbon/bootstrap5-dark.css +722 -639
- package/styles/ribbon/bootstrap5.3.css +683 -600
- package/styles/ribbon/bootstrap5.css +702 -619
- package/styles/ribbon/fabric-dark.css +690 -607
- package/styles/ribbon/fabric.css +681 -598
- package/styles/ribbon/fluent-dark.css +680 -597
- package/styles/ribbon/fluent.css +680 -597
- package/styles/ribbon/fluent2.css +721 -636
- package/styles/ribbon/highcontrast-light.css +677 -590
- package/styles/ribbon/highcontrast.css +677 -590
- package/styles/ribbon/material-dark.css +676 -593
- package/styles/ribbon/material.css +674 -591
- package/styles/ribbon/material3-dark.css +674 -591
- package/styles/ribbon/material3.css +674 -591
- package/styles/ribbon/tailwind-dark.css +710 -591
- package/styles/ribbon/tailwind.css +710 -591
- package/styles/ribbon/tailwind3.css +716 -597
- package/styles/tailwind-dark-lite.css +547 -452
- package/styles/tailwind-dark.css +710 -591
- package/styles/tailwind-lite.css +547 -452
- package/styles/tailwind.css +710 -591
- package/styles/tailwind3-lite.css +553 -458
- package/styles/tailwind3.css +716 -597
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 29.1.33
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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,32 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "@syncfusion/ej2-ribbon
|
|
3
|
-
"_id": "@syncfusion/ej2-ribbon@
|
|
2
|
+
"_from": "@syncfusion/ej2-ribbon@29.1.33",
|
|
3
|
+
"_id": "@syncfusion/ej2-ribbon@29.1.33",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-deL3H0cN+gm6owujV1VPMIu3LekzchV867ThU9w+0hq3smMS/gmbJP+gnqjAQjUYQ+W/5yYJoENGtKv1DN9IcA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-ribbon",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
|
-
"type": "
|
|
9
|
+
"type": "version",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "@syncfusion/ej2-ribbon
|
|
11
|
+
"raw": "@syncfusion/ej2-ribbon@29.1.33",
|
|
12
12
|
"name": "@syncfusion/ej2-ribbon",
|
|
13
13
|
"escapedName": "@syncfusion%2fej2-ribbon",
|
|
14
14
|
"scope": "@syncfusion",
|
|
15
|
-
"rawSpec": "
|
|
15
|
+
"rawSpec": "29.1.34",
|
|
16
16
|
"saveSpec": null,
|
|
17
|
-
"fetchSpec": "
|
|
17
|
+
"fetchSpec": "29.1.34"
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
|
-
"/",
|
|
21
|
-
"/@syncfusion/ej2",
|
|
22
20
|
"/@syncfusion/ej2-angular-ribbon",
|
|
23
21
|
"/@syncfusion/ej2-react-ribbon",
|
|
24
22
|
"/@syncfusion/ej2-vue-ribbon"
|
|
25
23
|
],
|
|
26
|
-
"_resolved": "https://
|
|
27
|
-
"_shasum": "
|
|
28
|
-
"_spec": "@syncfusion/ej2-ribbon
|
|
29
|
-
"_where": "
|
|
24
|
+
"_resolved": "https://registry.npmjs.org/@syncfusion/ej2-ribbon/-/ej2-ribbon-29.1.33.tgz",
|
|
25
|
+
"_shasum": "c8d35dba484385467e183cdba3f856466125568c",
|
|
26
|
+
"_spec": "@syncfusion/ej2-ribbon@29.1.33",
|
|
27
|
+
"_where": "E:\\march2025\\memory-leaks\\node_modules\\@syncfusion\\ej2-angular-ribbon",
|
|
30
28
|
"author": {
|
|
31
29
|
"name": "Syncfusion Inc."
|
|
32
30
|
},
|
|
@@ -35,13 +33,13 @@
|
|
|
35
33
|
},
|
|
36
34
|
"bundleDependencies": false,
|
|
37
35
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~
|
|
39
|
-
"@syncfusion/ej2-buttons": "~
|
|
40
|
-
"@syncfusion/ej2-dropdowns": "~
|
|
41
|
-
"@syncfusion/ej2-lists": "~
|
|
42
|
-
"@syncfusion/ej2-navigations": "~
|
|
43
|
-
"@syncfusion/ej2-popups": "~
|
|
44
|
-
"@syncfusion/ej2-splitbuttons": "~
|
|
36
|
+
"@syncfusion/ej2-base": "~29.1.33",
|
|
37
|
+
"@syncfusion/ej2-buttons": "~29.1.33",
|
|
38
|
+
"@syncfusion/ej2-dropdowns": "~29.1.33",
|
|
39
|
+
"@syncfusion/ej2-lists": "~29.1.33",
|
|
40
|
+
"@syncfusion/ej2-navigations": "~29.1.33",
|
|
41
|
+
"@syncfusion/ej2-popups": "~29.1.33",
|
|
42
|
+
"@syncfusion/ej2-splitbuttons": "~29.1.33"
|
|
45
43
|
},
|
|
46
44
|
"deprecated": false,
|
|
47
45
|
"description": "Essential JS 2 Component",
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
"type": "git",
|
|
62
60
|
"url": "git+https://github.com/syncfusion/ej2-ribbon-component.git"
|
|
63
61
|
},
|
|
62
|
+
"sideEffects": false,
|
|
64
63
|
"typings": "index.d.ts",
|
|
65
|
-
"version": "
|
|
66
|
-
|
|
67
|
-
}
|
|
64
|
+
"version": "29.1.34"
|
|
65
|
+
}
|
|
@@ -118,7 +118,9 @@ var RibbonButton = /** @class */ (function () {
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
var buttonObj = getComponent(buttonEle, Button);
|
|
121
|
-
buttonObj.
|
|
121
|
+
if (!buttonObj.disabled) {
|
|
122
|
+
buttonObj.click();
|
|
123
|
+
}
|
|
122
124
|
};
|
|
123
125
|
/**
|
|
124
126
|
* Updates the button properties.
|
|
@@ -111,7 +111,9 @@ var RibbonCheckBox = /** @class */ (function () {
|
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
var checkBoxObj = getComponent(inputEle, CheckBox);
|
|
114
|
-
checkBoxObj.
|
|
114
|
+
if (!checkBoxObj.disabled) {
|
|
115
|
+
checkBoxObj.click();
|
|
116
|
+
}
|
|
115
117
|
};
|
|
116
118
|
/**
|
|
117
119
|
* Updates the checkbox.
|
|
@@ -186,7 +186,9 @@ var RibbonColorPicker = /** @class */ (function () {
|
|
|
186
186
|
if (!colorPickerObj) {
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
-
colorPickerObj.
|
|
189
|
+
if (!colorPickerObj.disabled) {
|
|
190
|
+
colorPickerObj.toggle();
|
|
191
|
+
}
|
|
190
192
|
};
|
|
191
193
|
/**
|
|
192
194
|
* Updates the colorpicker properties.
|
|
@@ -389,7 +389,13 @@ var RibbonDropDown = /** @class */ (function () {
|
|
|
389
389
|
* @returns {void}
|
|
390
390
|
*/
|
|
391
391
|
RibbonDropDown.prototype.toggle = function (controlId) {
|
|
392
|
-
this.getDropDownObj(controlId)
|
|
392
|
+
var dropdownObj = this.getDropDownObj(controlId);
|
|
393
|
+
if (!dropdownObj) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
if (!dropdownObj.disabled) {
|
|
397
|
+
dropdownObj.toggle();
|
|
398
|
+
}
|
|
393
399
|
};
|
|
394
400
|
/**
|
|
395
401
|
* Updates the dropdown.
|
|
@@ -218,7 +218,13 @@ var RibbonSplitButton = /** @class */ (function () {
|
|
|
218
218
|
* @returns {void}
|
|
219
219
|
*/
|
|
220
220
|
RibbonSplitButton.prototype.toggle = function (controlId) {
|
|
221
|
-
this.getSplitButtonObj(controlId)
|
|
221
|
+
var splitBtnObj = this.getSplitButtonObj(controlId);
|
|
222
|
+
if (!splitBtnObj) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
if (!splitBtnObj.disabled) {
|
|
226
|
+
splitBtnObj.toggle();
|
|
227
|
+
}
|
|
222
228
|
};
|
|
223
229
|
/**
|
|
224
230
|
* Updates the splitbutton.
|
|
@@ -190,7 +190,8 @@ var RibbonKeyTip = /** @class */ (function () {
|
|
|
190
190
|
if ((isPopUpItem && isPopUpPresent) || !isPopUpItem) {
|
|
191
191
|
var keytipElement = this.parent.createElement('div', {
|
|
192
192
|
className: constants.RIBBON_KEYTIP,
|
|
193
|
-
id: id + constants.RIBBON_KEYTIP_ID
|
|
193
|
+
id: id + constants.RIBBON_KEYTIP_ID,
|
|
194
|
+
attrs: { role: 'dialog', 'aria-label': 'ribbon-keytip' }
|
|
194
195
|
});
|
|
195
196
|
document.body.append(keytipElement);
|
|
196
197
|
var keytipPopup = new Popup(keytipElement, {
|
|
@@ -199,7 +200,8 @@ var RibbonKeyTip = /** @class */ (function () {
|
|
|
199
200
|
collision: { X: 'fit', Y: 'flip' },
|
|
200
201
|
targetType: 'relative',
|
|
201
202
|
position: { X: xOffset, Y: yOffset },
|
|
202
|
-
enableRtl: this.parent.enableRtl
|
|
203
|
+
enableRtl: this.parent.enableRtl,
|
|
204
|
+
actionOnScroll: 'hide'
|
|
203
205
|
});
|
|
204
206
|
keytipPopup.show();
|
|
205
207
|
this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset);
|
|
@@ -364,24 +366,30 @@ var RibbonKeyTip = /** @class */ (function () {
|
|
|
364
366
|
break;
|
|
365
367
|
case 'combobox': {
|
|
366
368
|
var itemEle_1 = document.querySelector('#' + itemID);
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
if (this.isInteractableElement(itemEle_1)) {
|
|
370
|
+
setTimeout(function () {
|
|
371
|
+
itemEle_1.focus();
|
|
372
|
+
}, 100);
|
|
373
|
+
}
|
|
370
374
|
break;
|
|
371
375
|
}
|
|
372
376
|
case 'gallery': {
|
|
373
377
|
var galleryEle = document.querySelector('#' + itemID);
|
|
374
|
-
|
|
378
|
+
if (this.isInteractableElement(galleryEle)) {
|
|
379
|
+
galleryEle.click();
|
|
380
|
+
}
|
|
375
381
|
break;
|
|
376
382
|
}
|
|
377
383
|
case 'template': {
|
|
378
384
|
var templateEle = document.querySelector('#' + itemID);
|
|
379
|
-
|
|
385
|
+
if (this.isInteractableElement(templateEle)) {
|
|
386
|
+
templateEle.focus();
|
|
387
|
+
}
|
|
380
388
|
break;
|
|
381
389
|
}
|
|
382
390
|
case 'group-btn': {
|
|
383
391
|
var itemElement = document.querySelector('#' + itemID);
|
|
384
|
-
if (itemElement) {
|
|
392
|
+
if (this.isInteractableElement(itemElement)) {
|
|
385
393
|
var item = getInstance(itemElement, DropDownButton);
|
|
386
394
|
item.toggle();
|
|
387
395
|
for (var i = 0; i < itemProp.item.groupButtonSettings.items.length; i++) {
|
|
@@ -395,6 +403,9 @@ var RibbonKeyTip = /** @class */ (function () {
|
|
|
395
403
|
}
|
|
396
404
|
}
|
|
397
405
|
};
|
|
406
|
+
RibbonKeyTip.prototype.isInteractableElement = function (element) {
|
|
407
|
+
return element && !element.closest('.e-ribbon-item').classList.contains('e-disabled');
|
|
408
|
+
};
|
|
398
409
|
RibbonKeyTip.prototype.commonItemsKeyTipPress = function (keyPress, key, isMethod) {
|
|
399
410
|
var _this = this;
|
|
400
411
|
if (this.parent.keyTipElements["" + key]) {
|