@syncfusion/ej2-splitbuttons 27.1.50 → 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.
- 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 +18 -3
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +18 -3
- 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.js +17 -2
- package/styles/bootstrap-dark-lite.css +3 -0
- package/styles/bootstrap-dark.css +3 -0
- package/styles/bootstrap-lite.css +3 -0
- package/styles/bootstrap.css +3 -0
- package/styles/bootstrap4-lite.css +3 -0
- package/styles/bootstrap4.css +3 -0
- package/styles/bootstrap5-dark-lite.css +3 -0
- package/styles/bootstrap5-dark.css +3 -0
- package/styles/bootstrap5-lite.css +3 -0
- package/styles/bootstrap5.3-lite.css +3 -0
- package/styles/bootstrap5.3.css +3 -0
- package/styles/bootstrap5.css +3 -0
- package/styles/drop-down-button/_layout.scss +4 -0
- package/styles/drop-down-button/bootstrap-dark.css +3 -0
- package/styles/drop-down-button/bootstrap.css +3 -0
- package/styles/drop-down-button/bootstrap4.css +3 -0
- package/styles/drop-down-button/bootstrap5-dark.css +3 -0
- package/styles/drop-down-button/bootstrap5.3.css +3 -0
- package/styles/drop-down-button/bootstrap5.css +3 -0
- package/styles/drop-down-button/fabric-dark.css +3 -0
- package/styles/drop-down-button/fabric.css +3 -0
- package/styles/drop-down-button/fluent-dark.css +3 -0
- package/styles/drop-down-button/fluent.css +3 -0
- package/styles/drop-down-button/fluent2.css +3 -0
- package/styles/drop-down-button/highcontrast-light.css +3 -0
- package/styles/drop-down-button/highcontrast.css +3 -0
- package/styles/drop-down-button/material-dark.css +3 -0
- package/styles/drop-down-button/material.css +3 -0
- package/styles/drop-down-button/material3-dark.css +3 -0
- package/styles/drop-down-button/material3.css +3 -0
- package/styles/drop-down-button/tailwind-dark.css +3 -0
- package/styles/drop-down-button/tailwind.css +3 -0
- package/styles/fabric-dark-lite.css +3 -0
- package/styles/fabric-dark.css +3 -0
- package/styles/fabric-lite.css +3 -0
- package/styles/fabric.css +3 -0
- package/styles/fluent-dark-lite.css +3 -0
- package/styles/fluent-dark.css +3 -0
- package/styles/fluent-lite.css +3 -0
- package/styles/fluent.css +3 -0
- package/styles/fluent2-lite.css +3 -0
- package/styles/fluent2.css +3 -0
- package/styles/highcontrast-light-lite.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast-lite.css +3 -0
- package/styles/highcontrast.css +3 -0
- package/styles/material-dark-lite.css +3 -0
- package/styles/material-dark.css +3 -0
- package/styles/material-lite.css +3 -0
- package/styles/material.css +3 -0
- package/styles/material3-dark-lite.css +3 -0
- package/styles/material3-dark.css +3 -0
- package/styles/material3-lite.css +3 -0
- package/styles/material3.css +3 -0
- package/styles/tailwind-dark-lite.css +3 -0
- package/styles/tailwind-dark.css +3 -0
- package/styles/tailwind-lite.css +3 -0
- 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,
|
|
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
|
|
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');
|