@syncfusion/ej2-splitbuttons 27.1.50 → 27.2.2

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.
Files changed (70) hide show
  1. package/dist/ej2-splitbuttons.min.js +2 -2
  2. package/dist/ej2-splitbuttons.umd.min.js +2 -2
  3. package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-splitbuttons.es2015.js +18 -3
  5. package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
  6. package/dist/es6/ej2-splitbuttons.es5.js +18 -3
  7. package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
  8. package/dist/global/ej2-splitbuttons.min.js +2 -2
  9. package/dist/global/ej2-splitbuttons.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +7 -7
  12. package/src/drop-down-button/drop-down-button.js +17 -2
  13. package/styles/bootstrap-dark-lite.css +3 -0
  14. package/styles/bootstrap-dark.css +3 -0
  15. package/styles/bootstrap-lite.css +3 -0
  16. package/styles/bootstrap.css +3 -0
  17. package/styles/bootstrap4-lite.css +3 -0
  18. package/styles/bootstrap4.css +3 -0
  19. package/styles/bootstrap5-dark-lite.css +3 -0
  20. package/styles/bootstrap5-dark.css +3 -0
  21. package/styles/bootstrap5-lite.css +3 -0
  22. package/styles/bootstrap5.3-lite.css +3 -0
  23. package/styles/bootstrap5.3.css +3 -0
  24. package/styles/bootstrap5.css +3 -0
  25. package/styles/drop-down-button/_layout.scss +4 -0
  26. package/styles/drop-down-button/bootstrap-dark.css +3 -0
  27. package/styles/drop-down-button/bootstrap.css +3 -0
  28. package/styles/drop-down-button/bootstrap4.css +3 -0
  29. package/styles/drop-down-button/bootstrap5-dark.css +3 -0
  30. package/styles/drop-down-button/bootstrap5.3.css +3 -0
  31. package/styles/drop-down-button/bootstrap5.css +3 -0
  32. package/styles/drop-down-button/fabric-dark.css +3 -0
  33. package/styles/drop-down-button/fabric.css +3 -0
  34. package/styles/drop-down-button/fluent-dark.css +3 -0
  35. package/styles/drop-down-button/fluent.css +3 -0
  36. package/styles/drop-down-button/fluent2.css +3 -0
  37. package/styles/drop-down-button/highcontrast-light.css +3 -0
  38. package/styles/drop-down-button/highcontrast.css +3 -0
  39. package/styles/drop-down-button/material-dark.css +3 -0
  40. package/styles/drop-down-button/material.css +3 -0
  41. package/styles/drop-down-button/material3-dark.css +3 -0
  42. package/styles/drop-down-button/material3.css +3 -0
  43. package/styles/drop-down-button/tailwind-dark.css +3 -0
  44. package/styles/drop-down-button/tailwind.css +3 -0
  45. package/styles/fabric-dark-lite.css +3 -0
  46. package/styles/fabric-dark.css +3 -0
  47. package/styles/fabric-lite.css +3 -0
  48. package/styles/fabric.css +3 -0
  49. package/styles/fluent-dark-lite.css +3 -0
  50. package/styles/fluent-dark.css +3 -0
  51. package/styles/fluent-lite.css +3 -0
  52. package/styles/fluent.css +3 -0
  53. package/styles/fluent2-lite.css +3 -0
  54. package/styles/fluent2.css +3 -0
  55. package/styles/highcontrast-light-lite.css +3 -0
  56. package/styles/highcontrast-light.css +3 -0
  57. package/styles/highcontrast-lite.css +3 -0
  58. package/styles/highcontrast.css +3 -0
  59. package/styles/material-dark-lite.css +3 -0
  60. package/styles/material-dark.css +3 -0
  61. package/styles/material-lite.css +3 -0
  62. package/styles/material.css +3 -0
  63. package/styles/material3-dark-lite.css +3 -0
  64. package/styles/material3-dark.css +3 -0
  65. package/styles/material3-lite.css +3 -0
  66. package/styles/material3.css +3 -0
  67. package/styles/tailwind-dark-lite.css +3 -0
  68. package/styles/tailwind-dark.css +3 -0
  69. package/styles/tailwind-lite.css +3 -0
  70. package/styles/tailwind.css +3 -0
@@ -1,4 +1,4 @@
1
- import { extend, deleteObject, addClass, isNullOrUndefined, Property, ChildProperty, attributes, select, getUniqueID, SanitizeHtmlHelper, detach, removeClass, EventHandler, getComponent, rippleEffect, isRippleEnabled, closest, classList, Collection, Event, NotifyPropertyChanges, Component, getValue, setValue, remove, KeyboardEvents, getInstance, createElement, Animation, animationMode, Complex } from '@syncfusion/ej2-base';
1
+ import { extend, deleteObject, addClass, isNullOrUndefined, Property, ChildProperty, attributes, getComponent, select, getUniqueID, SanitizeHtmlHelper, detach, removeClass, EventHandler, rippleEffect, isRippleEnabled, closest, classList, Collection, Event, NotifyPropertyChanges, Component, getValue, setValue, remove, KeyboardEvents, getInstance, createElement, Animation, animationMode, Complex } from '@syncfusion/ej2-base';
2
2
  import { Button } from '@syncfusion/ej2-buttons';
3
3
  import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
4
4
 
@@ -361,6 +361,12 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
361
361
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
362
362
  }
363
363
  this.isPopupCreated = true;
364
+ if (this.createPopupOnClick) {
365
+ var splitButton = getComponent(this.activeElem[0], 'split-btn');
366
+ if (splitButton) {
367
+ splitButton.isPopupCreated = true;
368
+ }
369
+ }
364
370
  };
365
371
  DropDownButton.prototype.getTargetElement = function () {
366
372
  if (this.createPopupOnClick && !this.isColorPicker() && !isNullOrUndefined(this.popupContent)) {
@@ -566,6 +572,13 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
566
572
  }
567
573
  }
568
574
  this.isPopupCreated = false;
575
+ var splitButton = getComponent(this.activeElem[0], 'split-btn');
576
+ if (this.createPopupOnClick && splitButton) {
577
+ var dropDownButton = getComponent(this.activeElem[1], 'dropdown-btn');
578
+ if (dropDownButton) {
579
+ dropDownButton.isPopupCreated = false;
580
+ }
581
+ }
569
582
  };
570
583
  DropDownButton.prototype.getPopUpElement = function () {
571
584
  var val = null;
@@ -703,7 +716,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
703
716
  };
704
717
  DropDownButton.prototype.mousedownHandler = function (e) {
705
718
  var trgt = e.target;
706
- if (this.dropDown && !this.canOpen() && !(closest(trgt, '[id="' + this.getPopUpElement().id + '"]')
719
+ if (this.dropDown && !this.canOpen() && this.getPopUpElement() && !(closest(trgt, '[id="' + this.getPopUpElement().id + '"]')
707
720
  || closest(trgt, '[id="' + this.element.id + '"]'))) {
708
721
  this.closePopup(e);
709
722
  }
@@ -856,7 +869,9 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
856
869
  if (selectedLi) {
857
870
  selectedLi.classList.remove('e-selected');
858
871
  }
859
- _this.dropDown.hide();
872
+ if (_this.dropDown) {
873
+ _this.dropDown.hide();
874
+ }
860
875
  removeClass(_this.activeElem, 'e-active');
861
876
  _this.element.setAttribute('aria-expanded', 'false');
862
877
  _this.element.removeAttribute('aria-owns');