@syncfusion/ej2-splitbuttons 28.1.41 → 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, ChildProperty, Property, Component, attributes, getComponent, select, getUniqueID, append,
|
|
1
|
+
import { extend, deleteObject, addClass, isNullOrUndefined, ChildProperty, Property, Component, attributes, getComponent, select, getUniqueID, append, SanitizeHtmlHelper, compile, detach, removeClass, EventHandler, rippleEffect, isRippleEnabled, closest, Animation, formatUnit, classList, Collection, Complex, Event, NotifyPropertyChanges, 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
|
|
|
@@ -400,6 +400,9 @@ let DropDownButton = class DropDownButton extends Component {
|
|
|
400
400
|
else {
|
|
401
401
|
for (let i = 0; i < items.length; i++) {
|
|
402
402
|
item = items[i];
|
|
403
|
+
if (this.enableHtmlSanitizer) {
|
|
404
|
+
item.text = SanitizeHtmlHelper.sanitize(item.text);
|
|
405
|
+
}
|
|
403
406
|
const tempItem = item.text;
|
|
404
407
|
li = this.createElement('li', {
|
|
405
408
|
innerHTML: item.url ? '' : tempItem,
|
|
@@ -483,8 +486,15 @@ let DropDownButton = class DropDownButton extends Component {
|
|
|
483
486
|
return false;
|
|
484
487
|
}
|
|
485
488
|
createAnchor(item) {
|
|
486
|
-
const tempItem =
|
|
487
|
-
|
|
489
|
+
const tempItem = item.text;
|
|
490
|
+
const anchor = this.createElement('a', { className: 'e-menu-text e-menu-url', attrs: { 'href': item.url } });
|
|
491
|
+
if (this.enableHtmlSanitizer) {
|
|
492
|
+
anchor.textContent = tempItem;
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
anchor.innerHTML = tempItem;
|
|
496
|
+
}
|
|
497
|
+
return anchor;
|
|
488
498
|
}
|
|
489
499
|
initialize() {
|
|
490
500
|
this.button = new Button({
|
|
@@ -685,6 +695,9 @@ let DropDownButton = class DropDownButton extends Component {
|
|
|
685
695
|
if (e.target === this.element && (e.keyCode === 9 || (!e.altKey && e.keyCode === 40) || e.keyCode === 38)) {
|
|
686
696
|
return;
|
|
687
697
|
}
|
|
698
|
+
if (e.target && (e.target.classList.contains('e-item') || (e.target.parentElement && e.target.parentElement.classList.contains('e-split-btn-wrapper'))) && e.keyCode === 13) {
|
|
699
|
+
e.preventDefault();
|
|
700
|
+
}
|
|
688
701
|
switch (e.keyCode) {
|
|
689
702
|
case 38:
|
|
690
703
|
case 40:
|
|
@@ -922,7 +935,12 @@ let DropDownButton = class DropDownButton extends Component {
|
|
|
922
935
|
this.element.setAttribute('aria-expanded', 'false');
|
|
923
936
|
this.element.removeAttribute('aria-owns');
|
|
924
937
|
if (focusEle) {
|
|
925
|
-
|
|
938
|
+
if (!this.isSafari()) {
|
|
939
|
+
focusEle.focus();
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
focusEle.focus({ preventScroll: true });
|
|
943
|
+
}
|
|
926
944
|
}
|
|
927
945
|
const closeArgs = { element: ul, items: this.items };
|
|
928
946
|
this.trigger('close', closeArgs);
|