@syncfusion/ej2-ribbon 25.2.3 → 25.2.5
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 +8 -0
- 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 +63 -7
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +129 -7
- 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 +11 -11
- package/src/ribbon/base/ribbon.d.ts +1 -0
- package/src/ribbon/base/ribbon.js +27 -1
- package/src/ribbon/items/ribbon-button.js +16 -1
- package/src/ribbon/items/ribbon-checkbox.js +19 -1
- package/src/ribbon/items/ribbon-colorpicker.js +16 -1
- package/src/ribbon/items/ribbon-combobox.js +19 -1
- package/src/ribbon/items/ribbon-dropdown.js +16 -1
- package/src/ribbon/items/ribbon-splitbutton.js +16 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.2.
|
|
3
|
+
* version : 25.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-ribbon@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-ribbon@25.
|
|
3
|
+
"_id": "@syncfusion/ej2-ribbon@25.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-jRhLcQ+Inj69XMBQBVACW8mMiWqdu4tsG+ewYIEbTD7wLq4MlsZArRLHEC5H8vCle0mI5CEZSYLEwb/WPj7GyA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-ribbon",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-ribbon",
|
|
24
24
|
"/@syncfusion/ej2-vue-ribbon"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-25.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-25.2.3.tgz",
|
|
27
|
+
"_shasum": "62fd877cda0e1593cf4cefa5f4eb5bfce6deac1f",
|
|
28
28
|
"_spec": "@syncfusion/ej2-ribbon@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~25.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~25.2.
|
|
40
|
-
"@syncfusion/ej2-dropdowns": "~25.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~25.2.5",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~25.2.4",
|
|
40
|
+
"@syncfusion/ej2-dropdowns": "~25.2.5",
|
|
41
41
|
"@syncfusion/ej2-lists": "~25.2.3",
|
|
42
|
-
"@syncfusion/ej2-navigations": "~25.2.
|
|
43
|
-
"@syncfusion/ej2-popups": "~25.2.
|
|
44
|
-
"@syncfusion/ej2-splitbuttons": "~25.2.
|
|
42
|
+
"@syncfusion/ej2-navigations": "~25.2.4",
|
|
43
|
+
"@syncfusion/ej2-popups": "~25.2.4",
|
|
44
|
+
"@syncfusion/ej2-splitbuttons": "~25.2.4"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
47
47
|
"description": "Essential JS 2 Component",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "git+https://github.com/syncfusion/ej2-ribbon-component.git"
|
|
63
63
|
},
|
|
64
64
|
"typings": "index.d.ts",
|
|
65
|
-
"version": "25.2.
|
|
65
|
+
"version": "25.2.5",
|
|
66
66
|
"sideEffects": false
|
|
67
67
|
}
|
|
@@ -354,6 +354,7 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
|
|
|
354
354
|
private createTemplateContent;
|
|
355
355
|
private renderItemTemplate;
|
|
356
356
|
private checkID;
|
|
357
|
+
private hasHtmlAtrrID;
|
|
357
358
|
private updateCommonProperty;
|
|
358
359
|
private removeLauncherIcon;
|
|
359
360
|
private destroyTabItems;
|
|
@@ -2910,7 +2910,11 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
2910
2910
|
for (var i = 0; i < list.length; i++) {
|
|
2911
2911
|
var listitem = list[parseInt(i.toString(), 10)];
|
|
2912
2912
|
if (!listitem.id) {
|
|
2913
|
-
|
|
2913
|
+
var htmlAttrID = void 0;
|
|
2914
|
+
if (type === 'item') {
|
|
2915
|
+
htmlAttrID = this.hasHtmlAtrrID(listitem);
|
|
2916
|
+
}
|
|
2917
|
+
listitem.setProperties({ id: htmlAttrID ? htmlAttrID : initId + key + (this.idIndex++) }, true);
|
|
2914
2918
|
}
|
|
2915
2919
|
switch (type) {
|
|
2916
2920
|
case 'tab':
|
|
@@ -2928,6 +2932,28 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
2928
2932
|
}
|
|
2929
2933
|
return list;
|
|
2930
2934
|
};
|
|
2935
|
+
Ribbon.prototype.hasHtmlAtrrID = function (listItem) {
|
|
2936
|
+
var id = '';
|
|
2937
|
+
if (listItem.buttonSettings.htmlAttributes.id) {
|
|
2938
|
+
id = listItem.buttonSettings.htmlAttributes.id;
|
|
2939
|
+
}
|
|
2940
|
+
else if (listItem.checkBoxSettings.htmlAttributes.id) {
|
|
2941
|
+
id = listItem.checkBoxSettings.htmlAttributes.id;
|
|
2942
|
+
}
|
|
2943
|
+
else if (listItem.colorPickerSettings.htmlAttributes.id) {
|
|
2944
|
+
id = listItem.colorPickerSettings.htmlAttributes.id;
|
|
2945
|
+
}
|
|
2946
|
+
else if (listItem.comboBoxSettings.htmlAttributes.id) {
|
|
2947
|
+
id = listItem.comboBoxSettings.htmlAttributes.id;
|
|
2948
|
+
}
|
|
2949
|
+
else if (listItem.dropDownSettings.htmlAttributes.id) {
|
|
2950
|
+
id = listItem.dropDownSettings.htmlAttributes.id;
|
|
2951
|
+
}
|
|
2952
|
+
else if (listItem.splitButtonSettings.htmlAttributes.id) {
|
|
2953
|
+
id = listItem.splitButtonSettings.htmlAttributes.id;
|
|
2954
|
+
}
|
|
2955
|
+
return id;
|
|
2956
|
+
};
|
|
2931
2957
|
Ribbon.prototype.updateCommonProperty = function (commonProp) {
|
|
2932
2958
|
this.tabObj.setProperties(commonProp);
|
|
2933
2959
|
if (this.ribbonFileMenuModule) {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { Button } from '@syncfusion/ej2-buttons';
|
|
3
14
|
import { getItem, getItemElement, RibbonItemSize, setCustomAttributes } from '../base/index';
|
|
@@ -44,7 +55,11 @@ var RibbonButton = /** @class */ (function () {
|
|
|
44
55
|
created: btnSettings.created
|
|
45
56
|
}, buttonEle);
|
|
46
57
|
if (btnSettings.htmlAttributes) {
|
|
47
|
-
|
|
58
|
+
var htmlAttr = __assign({}, btnSettings.htmlAttributes);
|
|
59
|
+
if (htmlAttr.id) {
|
|
60
|
+
delete htmlAttr.id;
|
|
61
|
+
}
|
|
62
|
+
setCustomAttributes(buttonEle, htmlAttr);
|
|
48
63
|
}
|
|
49
64
|
buttonEle.onclick = function (e) {
|
|
50
65
|
if (btnSettings.clicked) {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
3
14
|
import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
|
|
@@ -29,6 +40,13 @@ var RibbonCheckBox = /** @class */ (function () {
|
|
|
29
40
|
});
|
|
30
41
|
itemEle.appendChild(inputEle);
|
|
31
42
|
var checkBoxSettings = item.checkBoxSettings;
|
|
43
|
+
var htmlAttr = {};
|
|
44
|
+
if (checkBoxSettings.htmlAttributes) {
|
|
45
|
+
htmlAttr = __assign({}, checkBoxSettings.htmlAttributes);
|
|
46
|
+
if (htmlAttr.id) {
|
|
47
|
+
delete htmlAttr.id;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
new CheckBox({
|
|
33
51
|
locale: this.parent.locale,
|
|
34
52
|
enableRtl: this.parent.enableRtl,
|
|
@@ -39,7 +57,7 @@ var RibbonCheckBox = /** @class */ (function () {
|
|
|
39
57
|
labelPosition: checkBoxSettings.labelPosition,
|
|
40
58
|
disabled: item.disabled,
|
|
41
59
|
created: checkBoxSettings.created,
|
|
42
|
-
htmlAttributes:
|
|
60
|
+
htmlAttributes: htmlAttr,
|
|
43
61
|
change: function (e) {
|
|
44
62
|
if (checkBoxSettings.change) {
|
|
45
63
|
checkBoxSettings.change.call(_this, e);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { EventHandler, getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { ColorPicker } from '@syncfusion/ej2-inputs';
|
|
3
14
|
import { getItem, getItemElement, setCustomAttributes } from '../base/index';
|
|
@@ -68,7 +79,11 @@ var RibbonColorPicker = /** @class */ (function () {
|
|
|
68
79
|
select: colorPickerSettings.select
|
|
69
80
|
}, inputEle);
|
|
70
81
|
if (colorPickerSettings.htmlAttributes) {
|
|
71
|
-
|
|
82
|
+
var htmlAttr = __assign({}, colorPickerSettings.htmlAttributes);
|
|
83
|
+
if (htmlAttr.id) {
|
|
84
|
+
delete htmlAttr.id;
|
|
85
|
+
}
|
|
86
|
+
setCustomAttributes(inputEle, htmlAttr);
|
|
72
87
|
}
|
|
73
88
|
var wrapper = colorPicker.element.parentElement;
|
|
74
89
|
EventHandler.add(wrapper, 'mouseenter', this.toggleWrapperHover.bind(this, wrapper, true), this);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { ComboBox } from '@syncfusion/ej2-dropdowns';
|
|
3
14
|
import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
|
|
@@ -29,6 +40,13 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
29
40
|
});
|
|
30
41
|
itemEle.appendChild(inputEle);
|
|
31
42
|
var comboBoxSettings = item.comboBoxSettings;
|
|
43
|
+
var htmlAttr = {};
|
|
44
|
+
if (comboBoxSettings.htmlAttributes) {
|
|
45
|
+
htmlAttr = __assign({}, comboBoxSettings.htmlAttributes);
|
|
46
|
+
if (htmlAttr.id) {
|
|
47
|
+
delete htmlAttr.id;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
new ComboBox({
|
|
33
51
|
locale: this.parent.locale,
|
|
34
52
|
enableRtl: this.parent.enableRtl,
|
|
@@ -60,7 +78,7 @@ var RibbonComboBox = /** @class */ (function () {
|
|
|
60
78
|
width: comboBoxSettings.width,
|
|
61
79
|
beforeOpen: comboBoxSettings.beforeOpen,
|
|
62
80
|
open: comboBoxSettings.open,
|
|
63
|
-
htmlAttributes:
|
|
81
|
+
htmlAttributes: htmlAttr,
|
|
64
82
|
close: function (e) {
|
|
65
83
|
if (comboBoxSettings.close) {
|
|
66
84
|
comboBoxSettings.close.call(_this, e);
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { closest, getComponent, isNullOrUndefined, merge, remove } from '@syncfusion/ej2-base';
|
|
2
13
|
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
3
14
|
import { Tooltip } from '@syncfusion/ej2-popups';
|
|
@@ -63,7 +74,11 @@ var RibbonDropDown = /** @class */ (function () {
|
|
|
63
74
|
select: dropDownSettings.select
|
|
64
75
|
}).appendTo(buttonEle);
|
|
65
76
|
if (dropDownSettings.htmlAttributes) {
|
|
66
|
-
|
|
77
|
+
var htmlAttr = __assign({}, dropDownSettings.htmlAttributes);
|
|
78
|
+
if (htmlAttr.id) {
|
|
79
|
+
delete htmlAttr.id;
|
|
80
|
+
}
|
|
81
|
+
setCustomAttributes(buttonEle, htmlAttr);
|
|
67
82
|
}
|
|
68
83
|
};
|
|
69
84
|
/**
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { EventHandler, getComponent, merge } from '@syncfusion/ej2-base';
|
|
2
13
|
import { SplitButton } from '@syncfusion/ej2-splitbuttons';
|
|
3
14
|
import { getItem, getItemElement, RibbonItemSize, setCustomAttributes } from '../base/index';
|
|
@@ -71,7 +82,11 @@ var RibbonSplitButton = /** @class */ (function () {
|
|
|
71
82
|
}
|
|
72
83
|
}, buttonEle);
|
|
73
84
|
if (splitButtonSettings.htmlAttributes) {
|
|
74
|
-
|
|
85
|
+
var htmlAttr = __assign({}, splitButtonSettings.htmlAttributes);
|
|
86
|
+
if (htmlAttr.id) {
|
|
87
|
+
delete htmlAttr.id;
|
|
88
|
+
}
|
|
89
|
+
setCustomAttributes(buttonEle, htmlAttr);
|
|
75
90
|
}
|
|
76
91
|
var dropdownEle = buttonEle.parentElement.querySelector('.e-dropdown-btn');
|
|
77
92
|
dropdownEle.onkeydown = function (e) {
|