@syncfusion/ej2-navigations 20.4.40 → 20.4.42
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/README.md +1 -1
- 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 +16 -6
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +16 -6
- 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 +11 -11
- package/src/breadcrumb/breadcrumb.js +2 -2
- package/src/common/menu-base-model.d.ts +1 -1
- package/src/common/menu-base.js +9 -4
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +5 -0
|
@@ -1292,7 +1292,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
if (this.cssClass) {
|
|
1295
|
-
addClass([wrapper], this.cssClass.split(' '));
|
|
1295
|
+
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
1296
1296
|
}
|
|
1297
1297
|
if (this.enableRtl) {
|
|
1298
1298
|
wrapper.classList.add(RTL);
|
|
@@ -1847,7 +1847,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
else {
|
|
1849
1849
|
if (this.cssClass) {
|
|
1850
|
-
addClass([this.popupWrapper], this.cssClass.split(' '));
|
|
1850
|
+
addClass([this.popupWrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
1851
1851
|
}
|
|
1852
1852
|
this.popupObj.hide();
|
|
1853
1853
|
}
|
|
@@ -2258,7 +2258,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
var ul = ListBase.createList(this.createElement, items, listBaseOptions, !this.template, this);
|
|
2260
2260
|
ul.setAttribute('tabindex', '0');
|
|
2261
|
-
this.isMenu
|
|
2261
|
+
if (this.isMenu) {
|
|
2262
|
+
ul.setAttribute('role', 'menu');
|
|
2263
|
+
}
|
|
2264
|
+
else {
|
|
2265
|
+
ul.setAttribute('role', 'menubar');
|
|
2266
|
+
}
|
|
2262
2267
|
return ul;
|
|
2263
2268
|
};
|
|
2264
2269
|
MenuBase.prototype.moverHandler = function (e) {
|
|
@@ -2652,7 +2657,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2652
2657
|
removeClass([wrapper], oldProp.cssClass.split(' '));
|
|
2653
2658
|
}
|
|
2654
2659
|
if (newProp.cssClass) {
|
|
2655
|
-
addClass([wrapper], newProp.cssClass.split(' '));
|
|
2660
|
+
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
2656
2661
|
}
|
|
2657
2662
|
break;
|
|
2658
2663
|
case 'enableRtl':
|
|
@@ -9984,6 +9989,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
9984
9989
|
_this.isFirstRender = false;
|
|
9985
9990
|
// Specifies whether the node is dropped or not
|
|
9986
9991
|
_this.isNodeDropped = false;
|
|
9992
|
+
_this.isInteracted = false;
|
|
9987
9993
|
_this.mouseDownStatus = false;
|
|
9988
9994
|
return _this;
|
|
9989
9995
|
}
|
|
@@ -11383,6 +11389,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11383
11389
|
}
|
|
11384
11390
|
if (this.isLoaded && this.expandArgs && !this.isRefreshed) {
|
|
11385
11391
|
this.expandArgs = this.getExpandEvent(currLi, null);
|
|
11392
|
+
this.expandArgs.isInteracted = this.isInteracted;
|
|
11386
11393
|
this.trigger('nodeExpanded', this.expandArgs);
|
|
11387
11394
|
}
|
|
11388
11395
|
};
|
|
@@ -11405,6 +11412,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11405
11412
|
var colArgs;
|
|
11406
11413
|
if (this.isLoaded) {
|
|
11407
11414
|
colArgs = this.getExpandEvent(currLi, e);
|
|
11415
|
+
this.isInteracted = colArgs.isInteracted;
|
|
11408
11416
|
this.trigger('nodeCollapsing', colArgs, function (observedArgs) {
|
|
11409
11417
|
if (observedArgs.cancel) {
|
|
11410
11418
|
removeClass([icon], PROCESS);
|
|
@@ -11465,6 +11473,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11465
11473
|
this.removeExpand(liEle);
|
|
11466
11474
|
if (this.isLoaded) {
|
|
11467
11475
|
colArgs = this.getExpandEvent(liEle, null);
|
|
11476
|
+
colArgs.isInteracted = this.isInteracted;
|
|
11468
11477
|
this.trigger('nodeCollapsed', colArgs);
|
|
11469
11478
|
}
|
|
11470
11479
|
};
|
|
@@ -11878,6 +11887,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11878
11887
|
}
|
|
11879
11888
|
if (this.isLoaded && !this.isRefreshed) {
|
|
11880
11889
|
this.expandArgs = this.getExpandEvent(currLi, e);
|
|
11890
|
+
this.isInteracted = this.expandArgs.isInteracted;
|
|
11881
11891
|
this.trigger('nodeExpanding', this.expandArgs, function (observedArgs) {
|
|
11882
11892
|
if (observedArgs.cancel) {
|
|
11883
11893
|
removeClass([icon], PROCESS);
|
|
@@ -15698,7 +15708,7 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
15698
15708
|
this._maxItems = this.maxItems;
|
|
15699
15709
|
this.element.setAttribute('aria-label', 'breadcrumb');
|
|
15700
15710
|
if (this.cssClass) {
|
|
15701
|
-
addClass([this.element], this.cssClass.split(' '));
|
|
15711
|
+
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
15702
15712
|
}
|
|
15703
15713
|
if (this.enableRtl) {
|
|
15704
15714
|
this.element.classList.add('e-rtl');
|
|
@@ -16212,7 +16222,7 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
16212
16222
|
removeClass([this.element], oldProp.cssClass.split(' '));
|
|
16213
16223
|
}
|
|
16214
16224
|
if (newProp.cssClass) {
|
|
16215
|
-
addClass([this.element], newProp.cssClass.split(' '));
|
|
16225
|
+
addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
16216
16226
|
}
|
|
16217
16227
|
if ((oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) && !(newProp.cssClass &&
|
|
16218
16228
|
newProp.cssClass.indexOf(ICONRIGHT) > -1) || !(oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) &&
|