@syncfusion/ej2-splitbuttons 20.4.48 → 20.4.50
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 +14 -0
- package/dist/ej2-splitbuttons.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es2015.js +7 -2
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +7 -2
- package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-splitbuttons.min.js +2 -2
- package/dist/global/ej2-splitbuttons.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/drop-down-button/drop-down-button.js +3 -2
- package/src/split-button/split-button.js +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.50
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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-splitbuttons@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-splitbuttons@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-splitbuttons@20.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-GopDCpguhkscBfgaDrL1tsxlbNFwQHWZwzosBeswNc8AIW7aj1KNBIV2XwAWpvoDYrzD/canCrO6acmth0yv5Q==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-splitbuttons",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"/@syncfusion/ej2-richtexteditor",
|
|
33
33
|
"/@syncfusion/ej2-vue-splitbuttons"
|
|
34
34
|
],
|
|
35
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.4.
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.4.48.tgz",
|
|
36
|
+
"_shasum": "a5a613d2a38d84e5ab555f50c7404a07ec8d7336",
|
|
37
37
|
"_spec": "@syncfusion/ej2-splitbuttons@*",
|
|
38
38
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@syncfusion/ej2-base": "~20.4.48",
|
|
48
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
48
|
+
"@syncfusion/ej2-popups": "~20.4.49"
|
|
49
49
|
},
|
|
50
50
|
"deprecated": false,
|
|
51
51
|
"description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
89
89
|
},
|
|
90
90
|
"typings": "index.d.ts",
|
|
91
|
-
"version": "20.4.
|
|
91
|
+
"version": "20.4.50",
|
|
92
92
|
"sideEffects": false
|
|
93
93
|
}
|
|
@@ -674,12 +674,13 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
674
674
|
}
|
|
675
675
|
break;
|
|
676
676
|
case 'cssClass':
|
|
677
|
-
if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1) {
|
|
677
|
+
if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1 || oldProp.cssClass.indexOf(classNames.VERTICAL) > -1) {
|
|
678
678
|
if (!this.element.querySelector('span.e-caret')) {
|
|
679
679
|
this.appendArrowSpan();
|
|
680
680
|
}
|
|
681
681
|
var arrowSpan = this.element.querySelector('span.e-caret');
|
|
682
|
-
classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right'])
|
|
682
|
+
newProp.cssClass.indexOf(classNames.VERTICAL) > -1 ? classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right'])
|
|
683
|
+
: classList(arrowSpan, ['e-icon-right'], ['e-icon-bottom']);
|
|
683
684
|
}
|
|
684
685
|
if (this.isPopupCreated) {
|
|
685
686
|
if (oldProp.cssClass) {
|
|
@@ -183,6 +183,10 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
183
183
|
_this.trigger('select', args);
|
|
184
184
|
};
|
|
185
185
|
dropDownBtnModel.beforeOpen = function (args) {
|
|
186
|
+
if (_this.createPopupOnClick && _this.items.length == 0) {
|
|
187
|
+
_this.secondaryBtnObj.dropDown.relateTo = _this.wrapper;
|
|
188
|
+
_this.dropDown = _this.secondaryBtnObj.dropDown;
|
|
189
|
+
}
|
|
186
190
|
var callBackPromise = new Deferred();
|
|
187
191
|
_this.trigger('beforeOpen', args, function (observedArgs) {
|
|
188
192
|
callBackPromise.resolve(observedArgs);
|