@syncfusion/ej2-splitbuttons 22.1.34 → 22.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 +8 -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 +17 -5
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +17 -5
- 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 +14 -4
- package/src/split-button/split-button.js +3 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.37
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-splitbuttons@22.1.34",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-YAjYQpnVZZjv1FiJCt8xoz00RuY4K9BJQWl/z6tyfatY8hO7447X+qaTyzf4Em89XO7VgxDYvMIBXl+IlgccuQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-splitbuttons",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-richtexteditor",
|
|
34
34
|
"/@syncfusion/ej2-vue-splitbuttons"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-22.1.34.tgz",
|
|
37
|
+
"_shasum": "d20d7c3376735a21d23f4c3e5901431b61c98391",
|
|
38
38
|
"_spec": "@syncfusion/ej2-splitbuttons@*",
|
|
39
39
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"bundleDependencies": false,
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@syncfusion/ej2-base": "~22.1.34",
|
|
49
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
49
|
+
"@syncfusion/ej2-popups": "~22.1.37"
|
|
50
50
|
},
|
|
51
51
|
"deprecated": false,
|
|
52
52
|
"description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
90
90
|
},
|
|
91
91
|
"typings": "index.d.ts",
|
|
92
|
-
"version": "22.1.
|
|
92
|
+
"version": "22.1.37",
|
|
93
93
|
"sideEffects": false
|
|
94
94
|
}
|
|
@@ -82,6 +82,10 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
82
82
|
if (this.canOpen()) {
|
|
83
83
|
this.openPopUp();
|
|
84
84
|
}
|
|
85
|
+
else if (this.createPopupOnClick && !this.isPopupCreated) {
|
|
86
|
+
this.createPopup();
|
|
87
|
+
this.openPopUp();
|
|
88
|
+
}
|
|
85
89
|
else {
|
|
86
90
|
this.closePopup();
|
|
87
91
|
}
|
|
@@ -364,6 +368,12 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
364
368
|
};
|
|
365
369
|
DropDownButton.prototype.getPopUpElement = function () {
|
|
366
370
|
var val = null;
|
|
371
|
+
if (!this.dropDown && this.activeElem[0].classList.contains('e-split-btn')) {
|
|
372
|
+
var dropDownBtn = getComponent(this.activeElem[1], 'dropdown-btn');
|
|
373
|
+
if (dropDownBtn) {
|
|
374
|
+
this.dropDown = dropDownBtn.dropDown;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
367
377
|
if (this.dropDown) {
|
|
368
378
|
val = this.dropDown.element;
|
|
369
379
|
}
|
|
@@ -385,6 +395,9 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
385
395
|
EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
|
|
386
396
|
};
|
|
387
397
|
DropDownButton.prototype.popupWireEvents = function () {
|
|
398
|
+
if (!this.delegateMousedownHandler) {
|
|
399
|
+
this.delegateMousedownHandler = this.mousedownHandler.bind(this);
|
|
400
|
+
}
|
|
388
401
|
var popupElement = this.getPopUpElement();
|
|
389
402
|
if (this.createPopupOnClick) {
|
|
390
403
|
EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);
|
|
@@ -503,7 +516,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
503
516
|
DropDownButton.prototype.clickHandler = function (e) {
|
|
504
517
|
var trgt = e.target;
|
|
505
518
|
if (closest(trgt, '[id="' + this.element.id + '"]')) {
|
|
506
|
-
if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
|
|
519
|
+
if (!this.createPopupOnClick || (this.target && this.target !== '' && !this.isColorPicker())) {
|
|
507
520
|
if (this.getPopUpElement().classList.contains('e-popup-close')) {
|
|
508
521
|
this.openPopUp(e);
|
|
509
522
|
}
|
|
@@ -636,9 +649,6 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
636
649
|
_this.destroyPopup();
|
|
637
650
|
}
|
|
638
651
|
}
|
|
639
|
-
if (_this.target) {
|
|
640
|
-
_this.isPopupCreated = _this.createPopupOnClick ? false : true;
|
|
641
|
-
}
|
|
642
652
|
}
|
|
643
653
|
else {
|
|
644
654
|
if (ul) {
|
|
@@ -207,6 +207,8 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
207
207
|
this.secondaryBtnObj.dropDown.relateTo = this.wrapper;
|
|
208
208
|
this.dropDown = this.secondaryBtnObj.dropDown;
|
|
209
209
|
}
|
|
210
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
211
|
+
this.isPopupCreated = this.secondaryBtnObj.isPopupCreated;
|
|
210
212
|
this.secondaryBtnObj.activeElem = [this.element, this.secondaryBtnObj.element];
|
|
211
213
|
this.secondaryBtnObj.element.querySelector('.e-btn-icon').classList.remove('e-icon-right');
|
|
212
214
|
if (this.disabled) {
|
|
@@ -292,7 +294,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
292
294
|
break;
|
|
293
295
|
case 'enter':
|
|
294
296
|
this.clickHandler(e);
|
|
295
|
-
if (!this.getPopUpElement().classList.contains('e-popup-close')) {
|
|
297
|
+
if (this.getPopUpElement() && !this.getPopUpElement().classList.contains('e-popup-close')) {
|
|
296
298
|
this.element.classList.remove('e-active');
|
|
297
299
|
this.secondaryBtnObj.element.classList.add('e-active');
|
|
298
300
|
}
|