@syncfusion/ej2-splitbuttons 20.4.42 → 20.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 +7 -0
- 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 +16 -2
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +16 -2
- 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/common/common.d.ts +1 -1
- package/src/common/common.js +9 -1
- package/src/drop-down-button/drop-down-button-model.d.ts +1 -1
- package/src/drop-down-button/drop-down-button.js +7 -1
- package/src/progress-button/progress-button-model.d.ts +1 -1
- package/src/progress-button/progress-button.d.ts +1 -1
- package/styles/drop-down-button/_layout.scss +3 -0
- package/styles/drop-down-button/fluent-dark.css +1 -0
- package/styles/drop-down-button/fluent.css +1 -0
- package/styles/drop-down-button/highcontrast.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/highcontrast.css +1 -0
|
@@ -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, getComponent, 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, isRippleEnabled, 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
|
|
|
@@ -111,8 +111,16 @@ function isValidLI(ul, li, index, keyCode, count) {
|
|
|
111
111
|
* @param {HTMLElement} popup - Specifies the popup element.
|
|
112
112
|
* @returns {void}
|
|
113
113
|
*/
|
|
114
|
-
function setBlankIconStyle(popup) {
|
|
114
|
+
function setBlankIconStyle(popup, blankIcon) {
|
|
115
115
|
var blankIconList = [].slice.call(popup.getElementsByClassName('e-blank-icon'));
|
|
116
|
+
if (blankIcon) {
|
|
117
|
+
var menuItem = [].slice.call(popup.getElementsByClassName('e-item'));
|
|
118
|
+
menuItem.forEach(function (li) {
|
|
119
|
+
if (li.style.paddingLeft || li.style.paddingRight) {
|
|
120
|
+
li.removeAttribute('style');
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
116
124
|
if (!blankIconList.length) {
|
|
117
125
|
return;
|
|
118
126
|
}
|
|
@@ -576,6 +584,9 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
576
584
|
EventHandler.remove(popupElement, this.closeActionEvents, this.focusoutHandler);
|
|
577
585
|
}
|
|
578
586
|
}
|
|
587
|
+
if (isRippleEnabled && this.rippleFn) {
|
|
588
|
+
this.rippleFn();
|
|
589
|
+
}
|
|
579
590
|
};
|
|
580
591
|
/**
|
|
581
592
|
* Handles the keyboard interactions.
|
|
@@ -834,6 +845,9 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
834
845
|
break;
|
|
835
846
|
case 'cssClass':
|
|
836
847
|
if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1) {
|
|
848
|
+
if (!this.element.querySelector('span.e-caret')) {
|
|
849
|
+
this.appendArrowSpan();
|
|
850
|
+
}
|
|
837
851
|
var arrowSpan = this.element.querySelector('span.e-caret');
|
|
838
852
|
classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right']);
|
|
839
853
|
}
|