@syncfusion/ej2-navigations 25.1.38 → 25.1.40
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 +26 -0
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +33 -8
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +33 -8
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/accordion/accordion.js +3 -2
- package/src/common/menu-base.js +4 -1
- package/src/stepper/stepper.js +2 -2
- package/src/toolbar/toolbar.js +2 -1
- package/src/treeview/treeview.js +22 -2
- package/styles/bootstrap-dark.css +311 -296
- package/styles/bootstrap.css +311 -296
- package/styles/bootstrap4.css +311 -296
- package/styles/bootstrap5-dark.css +311 -296
- package/styles/bootstrap5.css +311 -296
- package/styles/fabric-dark.css +311 -296
- package/styles/fabric.css +311 -296
- package/styles/fluent-dark.css +311 -296
- package/styles/fluent.css +311 -296
- package/styles/highcontrast-light.css +311 -296
- package/styles/highcontrast.css +311 -296
- package/styles/material-dark.css +311 -296
- package/styles/material.css +311 -296
- package/styles/material3-dark.css +311 -296
- package/styles/material3.css +311 -296
- package/styles/stepper/_layout.scss +162 -242
- package/styles/stepper/_theme.scss +158 -184
- package/styles/stepper/bootstrap-dark.css +311 -296
- package/styles/stepper/bootstrap.css +311 -296
- package/styles/stepper/bootstrap4.css +311 -296
- package/styles/stepper/bootstrap5-dark.css +311 -296
- package/styles/stepper/bootstrap5.css +311 -296
- package/styles/stepper/fabric-dark.css +311 -296
- package/styles/stepper/fabric.css +311 -296
- package/styles/stepper/fluent-dark.css +311 -296
- package/styles/stepper/fluent.css +311 -296
- package/styles/stepper/highcontrast-light.css +311 -296
- package/styles/stepper/highcontrast.css +311 -296
- package/styles/stepper/material-dark.css +311 -296
- package/styles/stepper/material.css +311 -296
- package/styles/stepper/material3-dark.css +311 -296
- package/styles/stepper/material3.css +311 -296
- package/styles/stepper/tailwind-dark.css +311 -296
- package/styles/stepper/tailwind.css +311 -296
- package/styles/tailwind-dark.css +311 -296
- package/styles/tailwind.css +311 -296
|
@@ -1450,12 +1450,15 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1450
1450
|
else if ((action === DOWNARROW) || (action === RIGHTARROW)) {
|
|
1451
1451
|
index++;
|
|
1452
1452
|
}
|
|
1453
|
+
else if (action === 'tab' && cli.classList.contains(SEPARATOR)) {
|
|
1454
|
+
index++;
|
|
1455
|
+
}
|
|
1453
1456
|
else {
|
|
1454
1457
|
index--;
|
|
1455
1458
|
}
|
|
1456
1459
|
}
|
|
1457
1460
|
cli = cul.children[index];
|
|
1458
|
-
if (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE)) {
|
|
1461
|
+
if (cli && (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE))) {
|
|
1459
1462
|
index = this.isValidLI(cli, index, action);
|
|
1460
1463
|
}
|
|
1461
1464
|
return index;
|
|
@@ -3914,7 +3917,8 @@ let Toolbar = class Toolbar extends Component {
|
|
|
3914
3917
|
itemObj = tempItem;
|
|
3915
3918
|
}
|
|
3916
3919
|
const eventArgs = { originalEvent: e, item: itemObj };
|
|
3917
|
-
|
|
3920
|
+
let isClickBinded = itemObj && !isNullOrUndefined(itemObj.click) && typeof itemObj.click == 'object' ? !isNullOrUndefined(itemObj.click.observers) && itemObj.click.observers.length > 0 : !isNullOrUndefined(itemObj) && !isNullOrUndefined(itemObj.click);
|
|
3921
|
+
if (isClickBinded) {
|
|
3918
3922
|
this.trigger('items[' + this.tbarEle.indexOf(clst) + '].click', eventArgs);
|
|
3919
3923
|
}
|
|
3920
3924
|
if (!eventArgs.cancel) {
|
|
@@ -6183,13 +6187,14 @@ let Accordion = class Accordion extends Component {
|
|
|
6183
6187
|
return innerEle;
|
|
6184
6188
|
}
|
|
6185
6189
|
if (item.header && this.angularnativeCondiCheck(item, 'header')) {
|
|
6190
|
+
let header = item.header;
|
|
6186
6191
|
if (this.enableHtmlSanitizer && typeof (item.header) === 'string') {
|
|
6187
|
-
|
|
6192
|
+
header = SanitizeHtmlHelper.sanitize(item.header);
|
|
6188
6193
|
}
|
|
6189
6194
|
const ctnEle = this.headerEleGenerate();
|
|
6190
6195
|
const hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
|
|
6191
6196
|
ctnEle.appendChild(hdrEle);
|
|
6192
|
-
ctnEle.appendChild(this.fetchElement(hdrEle,
|
|
6197
|
+
ctnEle.appendChild(this.fetchElement(hdrEle, header, index));
|
|
6193
6198
|
innerEle.appendChild(ctnEle);
|
|
6194
6199
|
}
|
|
6195
6200
|
let hdr = select('.' + CLS_HEADER, innerEle);
|
|
@@ -10498,14 +10503,23 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10498
10503
|
select('.' + CHECKBOXFRAME, checkboxEle).classList.add(CHECK);
|
|
10499
10504
|
e.item.setAttribute('aria-checked', 'true');
|
|
10500
10505
|
this.addCheck(e.item);
|
|
10506
|
+
if (Browser.userAgent.indexOf("Edg") > -1) {
|
|
10507
|
+
checkboxEle.setAttribute('aria-label', "checked");
|
|
10508
|
+
}
|
|
10501
10509
|
}
|
|
10502
10510
|
else if (!isNullOrUndefined(checkValue) && checkValue.toString() === 'true') {
|
|
10503
10511
|
select('.' + CHECKBOXFRAME, checkboxEle).classList.add(CHECK);
|
|
10504
10512
|
e.item.setAttribute('aria-checked', 'true');
|
|
10505
10513
|
this.addCheck(e.item);
|
|
10514
|
+
if (Browser.userAgent.indexOf("Edg") > -1) {
|
|
10515
|
+
checkboxEle.setAttribute('aria-label', "checked");
|
|
10516
|
+
}
|
|
10506
10517
|
}
|
|
10507
10518
|
else {
|
|
10508
10519
|
e.item.setAttribute('aria-checked', 'false');
|
|
10520
|
+
if (Browser.userAgent.indexOf("Edg") > -1) {
|
|
10521
|
+
checkboxEle.setAttribute('aria-label', "unchecked");
|
|
10522
|
+
}
|
|
10509
10523
|
}
|
|
10510
10524
|
let frame = select('.' + CHECKBOXFRAME, checkboxEle);
|
|
10511
10525
|
EventHandler.add(frame, 'mousedown', this.frameMouseHandler, this);
|
|
@@ -11038,6 +11052,17 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11038
11052
|
ariaState = state === 'check' ? 'true' : state === 'uncheck' ? 'false' : ariaState;
|
|
11039
11053
|
if (!isNullOrUndefined(ariaState)) {
|
|
11040
11054
|
currLi.setAttribute('aria-checked', ariaState);
|
|
11055
|
+
if (Browser.userAgent.indexOf("Edg") > -1) {
|
|
11056
|
+
if (ariaState === 'true') {
|
|
11057
|
+
wrapper.setAttribute('aria-label', "checked");
|
|
11058
|
+
}
|
|
11059
|
+
else if (ariaState === 'false') {
|
|
11060
|
+
wrapper.setAttribute('aria-label', "unchecked");
|
|
11061
|
+
}
|
|
11062
|
+
else if (ariaState === 'mixed') {
|
|
11063
|
+
wrapper.setAttribute('aria-label', "indeterminate");
|
|
11064
|
+
}
|
|
11065
|
+
}
|
|
11041
11066
|
}
|
|
11042
11067
|
if (isAdd) {
|
|
11043
11068
|
let data = [].concat([], this.checkActionNodes);
|
|
@@ -12330,7 +12355,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12330
12355
|
let nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);
|
|
12331
12356
|
this.setFocus(li, nextNode);
|
|
12332
12357
|
this.navigateToFocus(!isTowards);
|
|
12333
|
-
if (nextNode.classList.contains('e-disable')) {
|
|
12358
|
+
if (nextNode.classList.contains('e-disable') || nextNode.classList.contains('e-prevent')) {
|
|
12334
12359
|
let lastChild = nextNode.lastChild;
|
|
12335
12360
|
if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {
|
|
12336
12361
|
this.focusNextNode(nextNode, true);
|
|
@@ -12410,7 +12435,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12410
12435
|
focusIn() {
|
|
12411
12436
|
if (!this.mouseDownStatus) {
|
|
12412
12437
|
let focusedElement = this.getFocusedNode();
|
|
12413
|
-
if (focusedElement.classList.contains('e-disable')) {
|
|
12438
|
+
if (focusedElement.classList.contains('e-disable') || focusedElement.classList.contains('e-prevent')) {
|
|
12414
12439
|
focusedElement.setAttribute("tabindex", "-1");
|
|
12415
12440
|
this.navigateNode(true);
|
|
12416
12441
|
}
|
|
@@ -18878,7 +18903,7 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18878
18903
|
}
|
|
18879
18904
|
const prevOnChange = this.isProtectedOnChange;
|
|
18880
18905
|
this.isProtectedOnChange = true;
|
|
18881
|
-
this.activeStep = index;
|
|
18906
|
+
this.activeStep = parseInt(index.toString(), 10);
|
|
18882
18907
|
this.isProtectedOnChange = prevOnChange;
|
|
18883
18908
|
for (let i = 0; i < this.steps.length; i++) {
|
|
18884
18909
|
const itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];
|
|
@@ -19058,7 +19083,7 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19058
19083
|
case 'rightarrow':
|
|
19059
19084
|
case 'tab':
|
|
19060
19085
|
case 'shiftTab':
|
|
19061
|
-
this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP) ? (e.action === 'leftarrow' || e.action === '
|
|
19086
|
+
this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP) ? (e.action === 'leftarrow' || e.action === 'tab' || e.action === 'uparrow') : (e.action === 'rightarrow' || e.action === 'tab' || e.action === 'downarrow'), e);
|
|
19062
19087
|
break;
|
|
19063
19088
|
case 'space':
|
|
19064
19089
|
case 'enter':
|