@syncfusion/ej2-splitbuttons 27.1.48 → 27.1.56

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 -8
  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, ChildProperty, Property, Component, attributes, select, getUniqueID, SanitizeHtmlHelper, detach, removeClass, EventHandler, getComponent, rippleEffect, isRippleEnabled, closest, classList, Collection, Event, NotifyPropertyChanges, getValue, setValue, remove, KeyboardEvents, getInstance, createElement, Animation, animationMode, Complex } from '@syncfusion/ej2-base';
1
+ import { extend, deleteObject, addClass, isNullOrUndefined, ChildProperty, Property, Component, attributes, getComponent, select, getUniqueID, SanitizeHtmlHelper, detach, removeClass, EventHandler, rippleEffect, isRippleEnabled, closest, classList, Collection, Event, NotifyPropertyChanges, 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
 
@@ -324,6 +324,12 @@ let DropDownButton = class DropDownButton extends Component {
324
324
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
325
325
  }
326
326
  this.isPopupCreated = true;
327
+ if (this.createPopupOnClick) {
328
+ const splitButton = getComponent(this.activeElem[0], 'split-btn');
329
+ if (splitButton) {
330
+ splitButton.isPopupCreated = true;
331
+ }
332
+ }
327
333
  }
328
334
  getTargetElement() {
329
335
  if (this.createPopupOnClick && !this.isColorPicker() && !isNullOrUndefined(this.popupContent)) {
@@ -528,6 +534,13 @@ let DropDownButton = class DropDownButton extends Component {
528
534
  }
529
535
  }
530
536
  this.isPopupCreated = false;
537
+ const splitButton = getComponent(this.activeElem[0], 'split-btn');
538
+ if (this.createPopupOnClick && splitButton) {
539
+ const dropDownButton = getComponent(this.activeElem[1], 'dropdown-btn');
540
+ if (dropDownButton) {
541
+ dropDownButton.isPopupCreated = false;
542
+ }
543
+ }
531
544
  }
532
545
  getPopUpElement() {
533
546
  let val = null;
@@ -665,7 +678,7 @@ let DropDownButton = class DropDownButton extends Component {
665
678
  }
666
679
  mousedownHandler(e) {
667
680
  const trgt = e.target;
668
- if (this.dropDown && !this.canOpen() && !(closest(trgt, '[id="' + this.getPopUpElement().id + '"]')
681
+ if (this.dropDown && !this.canOpen() && this.getPopUpElement() && !(closest(trgt, '[id="' + this.getPopUpElement().id + '"]')
669
682
  || closest(trgt, '[id="' + this.element.id + '"]'))) {
670
683
  this.closePopup(e);
671
684
  }
@@ -814,7 +827,9 @@ let DropDownButton = class DropDownButton extends Component {
814
827
  if (selectedLi) {
815
828
  selectedLi.classList.remove('e-selected');
816
829
  }
817
- this.dropDown.hide();
830
+ if (this.dropDown) {
831
+ this.dropDown.hide();
832
+ }
818
833
  removeClass(this.activeElem, 'e-active');
819
834
  this.element.setAttribute('aria-expanded', 'false');
820
835
  this.element.removeAttribute('aria-owns');