@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.
- 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 -8
- 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, Property, ChildProperty, attributes, select, getUniqueID, SanitizeHtmlHelper, detach, removeClass, EventHandler,
|
|
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
|
|
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');
|