@syncfusion/ej2-splitbuttons 28.2.3 → 29.1.33
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/README.md +2 -6
- 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 +22 -4
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +22 -4
- 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 +8 -8
- package/src/drop-down-button/drop-down-button.js +21 -3
- package/styles/bds-lite.css +10 -1
- package/styles/bds.css +22 -4
- package/styles/bootstrap-dark-lite.css +47 -38
- package/styles/bootstrap-dark.css +58 -40
- package/styles/bootstrap-lite.css +54 -45
- package/styles/bootstrap.css +65 -47
- package/styles/bootstrap4-lite.css +89 -80
- package/styles/bootstrap4.css +100 -82
- package/styles/bootstrap5-dark-lite.css +111 -102
- package/styles/bootstrap5-dark.css +121 -103
- package/styles/bootstrap5-lite.css +92 -83
- package/styles/bootstrap5.3-lite.css +10 -1
- package/styles/bootstrap5.3.css +20 -2
- package/styles/bootstrap5.css +102 -84
- package/styles/button-group/bootstrap-dark.css +36 -36
- package/styles/button-group/bootstrap.css +43 -43
- package/styles/button-group/bootstrap4.css +57 -57
- package/styles/button-group/bootstrap5-dark.css +63 -63
- package/styles/button-group/bootstrap5.css +63 -63
- package/styles/button-group/fabric-dark.css +16 -16
- package/styles/button-group/fabric.css +3 -3
- package/styles/button-group/fluent-dark.css +25 -25
- package/styles/button-group/fluent.css +25 -25
- package/styles/button-group/material-dark.css +17 -17
- package/styles/button-group/material.css +16 -16
- package/styles/drop-down-button/_bds-definition.scss +7 -3
- package/styles/drop-down-button/_bigger.scss +7 -2
- package/styles/drop-down-button/_bootstrap-dark-definition.scss +6 -2
- package/styles/drop-down-button/_bootstrap-definition.scss +6 -2
- package/styles/drop-down-button/_bootstrap4-definition.scss +10 -4
- package/styles/drop-down-button/_bootstrap5-definition.scss +6 -2
- package/styles/drop-down-button/_bootstrap5.3-definition.scss +6 -2
- package/styles/drop-down-button/_fabric-dark-definition.scss +7 -3
- package/styles/drop-down-button/_fabric-definition.scss +7 -3
- package/styles/drop-down-button/_fluent-definition.scss +8 -4
- package/styles/drop-down-button/_fluent2-definition.scss +1 -0
- package/styles/drop-down-button/_highcontrast-definition.scss +7 -3
- package/styles/drop-down-button/_highcontrast-light-definition.scss +7 -3
- package/styles/drop-down-button/_layout.scss +4 -1
- package/styles/drop-down-button/_material-dark-definition.scss +7 -3
- package/styles/drop-down-button/_material-definition.scss +7 -3
- package/styles/drop-down-button/_material3-definition.scss +6 -2
- package/styles/drop-down-button/_tailwind-definition.scss +8 -4
- package/styles/drop-down-button/_tailwind3-definition.scss +1 -0
- package/styles/drop-down-button/bds.css +21 -3
- package/styles/drop-down-button/bootstrap-dark.css +20 -2
- package/styles/drop-down-button/bootstrap.css +20 -2
- package/styles/drop-down-button/bootstrap4.css +24 -6
- package/styles/drop-down-button/bootstrap5-dark.css +28 -10
- package/styles/drop-down-button/bootstrap5.3.css +20 -2
- package/styles/drop-down-button/bootstrap5.css +24 -6
- package/styles/drop-down-button/fabric-dark.css +22 -4
- package/styles/drop-down-button/fabric.css +22 -4
- package/styles/drop-down-button/fluent-dark.css +22 -4
- package/styles/drop-down-button/fluent.css +22 -4
- package/styles/drop-down-button/fluent2.css +5 -0
- package/styles/drop-down-button/highcontrast-light.css +13 -4
- package/styles/drop-down-button/highcontrast.css +22 -4
- package/styles/drop-down-button/icons/_fabric-dark.scss +1 -1
- package/styles/drop-down-button/icons/_fabric.scss +1 -1
- package/styles/drop-down-button/icons/_highcontrast-light.scss +1 -1
- package/styles/drop-down-button/icons/_highcontrast.scss +1 -1
- package/styles/drop-down-button/material-dark.css +21 -3
- package/styles/drop-down-button/material.css +21 -3
- package/styles/drop-down-button/material3-dark.css +20 -2
- package/styles/drop-down-button/material3.css +20 -2
- package/styles/drop-down-button/tailwind-dark.css +22 -4
- package/styles/drop-down-button/tailwind.css +22 -4
- package/styles/drop-down-button/tailwind3.css +0 -1
- package/styles/fabric-dark-lite.css +27 -18
- package/styles/fabric-dark.css +39 -21
- package/styles/fabric-lite.css +14 -5
- package/styles/fabric.css +26 -8
- package/styles/fluent-dark-lite.css +37 -28
- package/styles/fluent-dark.css +49 -31
- package/styles/fluent-lite.css +37 -28
- package/styles/fluent.css +49 -31
- package/styles/fluent2.css +5 -0
- package/styles/highcontrast-light-lite.css +11 -2
- package/styles/highcontrast-light.css +14 -5
- package/styles/highcontrast-lite.css +11 -2
- package/styles/highcontrast.css +23 -5
- package/styles/material-dark-lite.css +27 -18
- package/styles/material-dark.css +39 -21
- package/styles/material-lite.css +26 -17
- package/styles/material.css +38 -20
- package/styles/material3-dark-lite.css +10 -1
- package/styles/material3-dark.css +20 -2
- package/styles/material3-lite.css +10 -1
- package/styles/material3.css +20 -2
- package/styles/progress-button/_theme.scss +44 -42
- package/styles/progress-button/bootstrap5-dark.css +15 -15
- package/styles/split-button/_bootstrap4-definition.scss +7 -5
- package/styles/split-button/bds.css +1 -1
- package/styles/split-button/bootstrap-dark.css +2 -2
- package/styles/split-button/bootstrap.css +2 -2
- package/styles/split-button/bootstrap4.css +19 -19
- package/styles/split-button/bootstrap5-dark.css +15 -15
- package/styles/split-button/bootstrap5.css +15 -15
- package/styles/split-button/fabric-dark.css +1 -1
- package/styles/split-button/fabric.css +1 -1
- package/styles/split-button/fluent-dark.css +2 -2
- package/styles/split-button/fluent.css +2 -2
- package/styles/split-button/highcontrast-light.css +1 -1
- package/styles/split-button/highcontrast.css +1 -1
- package/styles/split-button/material-dark.css +1 -1
- package/styles/split-button/material.css +1 -1
- package/styles/split-button/tailwind-dark.css +2 -2
- package/styles/split-button/tailwind.css +2 -2
- package/styles/tailwind-dark-lite.css +12 -3
- package/styles/tailwind-dark.css +24 -6
- package/styles/tailwind-lite.css +12 -3
- package/styles/tailwind.css +24 -6
- package/styles/tailwind3.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extend, deleteObject, addClass, isNullOrUndefined, Property, ChildProperty, attributes, getComponent, select, getUniqueID, append,
|
|
1
|
+
import { extend, deleteObject, addClass, isNullOrUndefined, Property, ChildProperty, attributes, getComponent, select, getUniqueID, append, SanitizeHtmlHelper, compile, detach, removeClass, EventHandler, rippleEffect, isRippleEnabled, closest, Animation, formatUnit, classList, Collection, Complex, Event, NotifyPropertyChanges, Component, getValue, setValue, remove, KeyboardEvents, getInstance, createElement, animationMode } 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
|
|
|
@@ -443,6 +443,9 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
443
443
|
else {
|
|
444
444
|
for (var i = 0; i < items.length; i++) {
|
|
445
445
|
item = items[i];
|
|
446
|
+
if (this.enableHtmlSanitizer) {
|
|
447
|
+
item.text = SanitizeHtmlHelper.sanitize(item.text);
|
|
448
|
+
}
|
|
446
449
|
var tempItem = item.text;
|
|
447
450
|
li = this.createElement('li', {
|
|
448
451
|
innerHTML: item.url ? '' : tempItem,
|
|
@@ -526,8 +529,15 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
526
529
|
return false;
|
|
527
530
|
};
|
|
528
531
|
DropDownButton.prototype.createAnchor = function (item) {
|
|
529
|
-
var tempItem =
|
|
530
|
-
|
|
532
|
+
var tempItem = item.text;
|
|
533
|
+
var anchor = this.createElement('a', { className: 'e-menu-text e-menu-url', attrs: { 'href': item.url } });
|
|
534
|
+
if (this.enableHtmlSanitizer) {
|
|
535
|
+
anchor.textContent = tempItem;
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
anchor.innerHTML = tempItem;
|
|
539
|
+
}
|
|
540
|
+
return anchor;
|
|
531
541
|
};
|
|
532
542
|
DropDownButton.prototype.initialize = function () {
|
|
533
543
|
this.button = new Button({
|
|
@@ -729,6 +739,9 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
729
739
|
if (e.target === this.element && (e.keyCode === 9 || (!e.altKey && e.keyCode === 40) || e.keyCode === 38)) {
|
|
730
740
|
return;
|
|
731
741
|
}
|
|
742
|
+
if (e.target && (e.target.classList.contains('e-item') || (e.target.parentElement && e.target.parentElement.classList.contains('e-split-btn-wrapper'))) && e.keyCode === 13) {
|
|
743
|
+
e.preventDefault();
|
|
744
|
+
}
|
|
732
745
|
switch (e.keyCode) {
|
|
733
746
|
case 38:
|
|
734
747
|
case 40:
|
|
@@ -970,7 +983,12 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
970
983
|
_this.element.setAttribute('aria-expanded', 'false');
|
|
971
984
|
_this.element.removeAttribute('aria-owns');
|
|
972
985
|
if (focusEle) {
|
|
973
|
-
|
|
986
|
+
if (!_this.isSafari()) {
|
|
987
|
+
focusEle.focus();
|
|
988
|
+
}
|
|
989
|
+
else {
|
|
990
|
+
focusEle.focus({ preventScroll: true });
|
|
991
|
+
}
|
|
974
992
|
}
|
|
975
993
|
var closeArgs = { element: ul_2, items: _this.items };
|
|
976
994
|
_this.trigger('close', closeArgs);
|