@syncfusion/ej2-splitbuttons 19.4.47 → 19.4.48
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/CHANGELOG.md +8 -0
- 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 +17 -1
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +17 -1
- 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-model.d.ts +1 -1
- package/src/drop-down-button/drop-down-button.js +22 -1
- package/styles/bootstrap5-dark.css +8 -8
- package/styles/bootstrap5.css +8 -8
- package/styles/progress-button/_bootstrap5-definition.scss +7 -7
- package/styles/progress-button/_tailwind-definition.scss +7 -7
- package/styles/progress-button/bootstrap5-dark.css +8 -8
- package/styles/progress-button/bootstrap5.css +8 -8
- package/styles/progress-button/tailwind-dark.css +8 -8
- package/styles/progress-button/tailwind.css +8 -8
- package/styles/tailwind-dark.css +8 -8
- package/styles/tailwind.css +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animation, ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, attributes, classList, closest, createElement, deleteObject, detach, extend, getInstance, getUniqueID, getValue, isNullOrUndefined, remove, removeClass, rippleEffect, select, setValue } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Animation, ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, attributes, classList, closest, createElement, deleteObject, detach, extend, getComponent, getInstance, getUniqueID, getValue, isNullOrUndefined, remove, removeClass, rippleEffect, select, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { Button } from '@syncfusion/ej2-buttons';
|
|
3
3
|
import { Popup, createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
|
|
4
4
|
|
|
@@ -670,9 +670,25 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
670
670
|
DropDownButton.prototype.openPopUp = function (e) {
|
|
671
671
|
var _this = this;
|
|
672
672
|
if (e === void 0) { e = null; }
|
|
673
|
+
var popupElem = this.getPopUpElement();
|
|
673
674
|
if (!this.target) {
|
|
674
675
|
this.createItems(true);
|
|
675
676
|
}
|
|
677
|
+
else {
|
|
678
|
+
if (this.activeElem.length > 1) {
|
|
679
|
+
var splitButton = getComponent(this.activeElem[0], 'split-btn');
|
|
680
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
681
|
+
if (splitButton.isReact && popupElem.childNodes.length < 1) {
|
|
682
|
+
splitButton.appendReactElement(this.getTargetElement(), this.getPopUpElement());
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
687
|
+
if (this.isReact && popupElem.childNodes.length < 1) {
|
|
688
|
+
this.appendReactElement(this.getTargetElement(), this.getPopUpElement());
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
676
692
|
var ul = this.getULElement();
|
|
677
693
|
this.popupWireEvents();
|
|
678
694
|
var beforeOpenArgs = { element: ul, items: this.items, event: e, cancel: false };
|