@syncfusion/ej2-splitbuttons 24.2.3 → 24.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.2.3
3
+ * version : 24.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-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@24.1.46",
3
+ "_id": "@syncfusion/ej2-splitbuttons@24.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-DU8BVPV71gpYFmU0q3+V9UFjYiGaaUr06Fx1lFAdoDyKCTZPTizI6K2LRj0zM8gJawOw18Vtbyx3/pjl6c8+Iw==",
5
+ "_integrity": "sha512-9EFXAAUttC3Rak9Vpf2iRK5Tjpsj5P/Z9BuvrzRAP2p48Yl9wYyYj1T7+ZNNlPflJ/QxTVWrQ6K5AM6n7r4LlA==",
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-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.1.46.tgz",
37
- "_shasum": "f20683f086babbd4f5e1d1d42f1de39b64242ef7",
36
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.2.3.tgz",
37
+ "_shasum": "205454b9e84e403e636e3604f3201db058a73b30",
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.3",
49
- "@syncfusion/ej2-popups": "~24.2.3"
48
+ "@syncfusion/ej2-base": "~24.2.5",
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.3",
92
+ "version": "24.2.5",
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 eventArgs = void 0;
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
- liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
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; }