@syncfusion/ej2-splitbuttons 24.2.3 → 24.2.7
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 +12 -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 +20 -13
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +20 -13
- 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 +7 -7
- package/src/drop-down-button/drop-down-button.d.ts +1 -0
- package/src/drop-down-button/drop-down-button.js +17 -10
- package/src/progress-button/progress-button.js +3 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.7
|
|
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-splitbuttons@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-splitbuttons@24.
|
|
3
|
+
"_id": "@syncfusion/ej2-splitbuttons@24.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-HFxtlYDnrOiSFNHWn0iAIMtM8Gd79G8AXYWW9gmNKi5jv0XQh7FMt/q6b8SBlIPnk7t9bJI/90TAEYnKktZWJw==",
|
|
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.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.2.5.tgz",
|
|
37
|
+
"_shasum": "2e25356568e1d51bb4a14150d8d32fada6f0237e",
|
|
38
38
|
"_spec": "@syncfusion/ej2-splitbuttons@*",
|
|
39
39
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"bundleDependencies": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncfusion/ej2-base": "~24.2.
|
|
49
|
-
"@syncfusion/ej2-popups": "~24.2.
|
|
48
|
+
"@syncfusion/ej2-base": "~24.2.7",
|
|
49
|
+
"@syncfusion/ej2-popups": "~24.2.5"
|
|
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": "24.2.
|
|
92
|
+
"version": "24.2.7",
|
|
93
93
|
"sideEffects": false
|
|
94
94
|
}
|
|
@@ -225,6 +225,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
|
|
|
225
225
|
private mousedownHandler;
|
|
226
226
|
private focusoutHandler;
|
|
227
227
|
protected clickHandler(e: MouseEvent | KeyboardEventArgs): void;
|
|
228
|
+
private triggerSelect;
|
|
228
229
|
private openPopUp;
|
|
229
230
|
private closePopup;
|
|
230
231
|
protected unWireEvents(): void;
|
|
@@ -496,6 +496,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
496
496
|
return;
|
|
497
497
|
}
|
|
498
498
|
if (e.keyCode === 13 && this.activeElem[0].classList.contains('e-split-btn')) {
|
|
499
|
+
this.triggerSelect(e);
|
|
499
500
|
this.activeElem[0].focus();
|
|
500
501
|
return;
|
|
501
502
|
}
|
|
@@ -562,22 +563,28 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
562
563
|
}
|
|
563
564
|
else {
|
|
564
565
|
if (closest(trgt, '[id="' + this.getPopUpElement().id + '"]')) {
|
|
565
|
-
var
|
|
566
|
-
var liIdx = void 0;
|
|
567
|
-
var item = void 0;
|
|
568
|
-
var li = this.getLI(trgt);
|
|
566
|
+
var li = this.getLI(e.target);
|
|
569
567
|
if (li) {
|
|
570
|
-
|
|
571
|
-
item = this.items[liIdx];
|
|
572
|
-
if (item) {
|
|
573
|
-
eventArgs = { element: li, item: item, event: e };
|
|
574
|
-
this.trigger('select', eventArgs);
|
|
575
|
-
}
|
|
568
|
+
this.triggerSelect(e);
|
|
576
569
|
this.closePopup(e, this.activeElem[0]);
|
|
577
570
|
}
|
|
578
571
|
}
|
|
579
572
|
}
|
|
580
573
|
};
|
|
574
|
+
DropDownButton.prototype.triggerSelect = function (e) {
|
|
575
|
+
var eventArgs;
|
|
576
|
+
var liIdx;
|
|
577
|
+
var item;
|
|
578
|
+
var li = this.getLI(e.target);
|
|
579
|
+
if (li) {
|
|
580
|
+
liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
|
|
581
|
+
item = this.items[liIdx];
|
|
582
|
+
if (item) {
|
|
583
|
+
eventArgs = { element: li, item: item, event: e };
|
|
584
|
+
this.trigger('select', eventArgs);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
};
|
|
581
588
|
DropDownButton.prototype.openPopUp = function (e) {
|
|
582
589
|
var _this = this;
|
|
583
590
|
if (e === void 0) { e = null; }
|
|
@@ -301,7 +301,7 @@ var ProgressButton = /** @class */ (function (_super) {
|
|
|
301
301
|
this.step = args.step;
|
|
302
302
|
if ((progressTime - prevProgressTime) % (this.duration * args.step / 100) === 0 || percent === 100) {
|
|
303
303
|
this.timerId = requestAnimationFrame(function () {
|
|
304
|
-
if (_this.enableProgress) {
|
|
304
|
+
if (_this.enableProgress && _this.getProgress()) {
|
|
305
305
|
_this.getProgress().style[isVertical ? 'height' : 'width'] = percent + '%';
|
|
306
306
|
}
|
|
307
307
|
_this.element.setAttribute('aria-valuenow', percent.toString());
|
|
@@ -318,7 +318,7 @@ var ProgressButton = /** @class */ (function (_super) {
|
|
|
318
318
|
else {
|
|
319
319
|
this.interval = window.setTimeout(function () {
|
|
320
320
|
_this.progressTime = _this.percent = 0;
|
|
321
|
-
if (_this.enableProgress) {
|
|
321
|
+
if (_this.enableProgress && _this.getProgress()) {
|
|
322
322
|
_this.getProgress().style[isVertical ? 'height' : 'width'] = '0%';
|
|
323
323
|
}
|
|
324
324
|
_this.element.setAttribute('aria-valuenow', '0');
|
|
@@ -359,7 +359,7 @@ var ProgressButton = /** @class */ (function (_super) {
|
|
|
359
359
|
if (i > 100) {
|
|
360
360
|
i = 100;
|
|
361
361
|
}
|
|
362
|
-
if (this.enableProgress) {
|
|
362
|
+
if (this.enableProgress && this.getProgress()) {
|
|
363
363
|
this.getProgress().style[isVertical ? 'height' : 'width'] = (this.percent < 100) ? (i + '%') : '100%';
|
|
364
364
|
}
|
|
365
365
|
}
|