@syncfusion/ej2-navigations 20.4.38 → 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 +17 -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 +22 -9
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +22 -9
- 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 +12 -12
- package/src/breadcrumb/breadcrumb.js +2 -2
- package/src/common/menu-base-model.d.ts +1 -1
- package/src/common/menu-base.js +15 -7
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +5 -0
|
@@ -1217,7 +1217,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
if (this.cssClass) {
|
|
1220
|
-
addClass([wrapper], this.cssClass.split(' '));
|
|
1220
|
+
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
1221
1221
|
}
|
|
1222
1222
|
if (this.enableRtl) {
|
|
1223
1223
|
wrapper.classList.add(RTL);
|
|
@@ -1415,6 +1415,14 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1415
1415
|
if (fliIdx === (e.action === DOWNARROW ? cul.childElementCount : -1)) {
|
|
1416
1416
|
fliIdx = defaultIdx;
|
|
1417
1417
|
}
|
|
1418
|
+
if (cul.children[fliIdx].classList.contains(HIDE)) {
|
|
1419
|
+
if (e.action === DOWNARROW && fliIdx === cul.childElementCount - 1) {
|
|
1420
|
+
fliIdx = defaultIdx;
|
|
1421
|
+
}
|
|
1422
|
+
else if (e.action === UPARROW && fliIdx === 0) {
|
|
1423
|
+
fliIdx = defaultIdx;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1418
1426
|
}
|
|
1419
1427
|
}
|
|
1420
1428
|
const cli = cul.children[fliIdx];
|
|
@@ -1753,7 +1761,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1753
1761
|
}
|
|
1754
1762
|
else {
|
|
1755
1763
|
if (this.cssClass) {
|
|
1756
|
-
addClass([this.popupWrapper], this.cssClass.split(' '));
|
|
1764
|
+
addClass([this.popupWrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
1757
1765
|
}
|
|
1758
1766
|
this.popupObj.hide();
|
|
1759
1767
|
}
|
|
@@ -2124,7 +2132,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2124
2132
|
itemCreated: (args) => {
|
|
2125
2133
|
if (args.curData[this.getField('separator', level)]) {
|
|
2126
2134
|
args.item.classList.add(SEPARATOR);
|
|
2127
|
-
args.item.
|
|
2135
|
+
args.item.setAttribute('role', 'separator');
|
|
2128
2136
|
}
|
|
2129
2137
|
if (showIcon && !args.curData[args.fields.iconCss]
|
|
2130
2138
|
&& !args.curData[this.getField('separator', level)]) {
|
|
@@ -2136,9 +2144,6 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2136
2144
|
args.item.appendChild(span);
|
|
2137
2145
|
args.item.setAttribute('aria-haspopup', 'true');
|
|
2138
2146
|
args.item.setAttribute('aria-expanded', 'false');
|
|
2139
|
-
if (!this.isMenu) {
|
|
2140
|
-
args.item.removeAttribute('role');
|
|
2141
|
-
}
|
|
2142
2147
|
args.item.classList.add('e-menu-caret-icon');
|
|
2143
2148
|
}
|
|
2144
2149
|
if (this.isMenu && this.template) {
|
|
@@ -2165,6 +2170,9 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2165
2170
|
if (this.isMenu) {
|
|
2166
2171
|
ul.setAttribute('role', 'menu');
|
|
2167
2172
|
}
|
|
2173
|
+
else {
|
|
2174
|
+
ul.setAttribute('role', 'menubar');
|
|
2175
|
+
}
|
|
2168
2176
|
return ul;
|
|
2169
2177
|
}
|
|
2170
2178
|
moverHandler(e) {
|
|
@@ -2551,7 +2559,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2551
2559
|
removeClass([wrapper], oldProp.cssClass.split(' '));
|
|
2552
2560
|
}
|
|
2553
2561
|
if (newProp.cssClass) {
|
|
2554
|
-
addClass([wrapper], newProp.cssClass.split(' '));
|
|
2562
|
+
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
2555
2563
|
}
|
|
2556
2564
|
break;
|
|
2557
2565
|
case 'enableRtl':
|
|
@@ -9666,6 +9674,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
9666
9674
|
this.isFirstRender = false;
|
|
9667
9675
|
// Specifies whether the node is dropped or not
|
|
9668
9676
|
this.isNodeDropped = false;
|
|
9677
|
+
this.isInteracted = false;
|
|
9669
9678
|
this.mouseDownStatus = false;
|
|
9670
9679
|
}
|
|
9671
9680
|
/**
|
|
@@ -11057,6 +11066,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11057
11066
|
}
|
|
11058
11067
|
if (this.isLoaded && this.expandArgs && !this.isRefreshed) {
|
|
11059
11068
|
this.expandArgs = this.getExpandEvent(currLi, null);
|
|
11069
|
+
this.expandArgs.isInteracted = this.isInteracted;
|
|
11060
11070
|
this.trigger('nodeExpanded', this.expandArgs);
|
|
11061
11071
|
}
|
|
11062
11072
|
}
|
|
@@ -11078,6 +11088,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11078
11088
|
let colArgs;
|
|
11079
11089
|
if (this.isLoaded) {
|
|
11080
11090
|
colArgs = this.getExpandEvent(currLi, e);
|
|
11091
|
+
this.isInteracted = colArgs.isInteracted;
|
|
11081
11092
|
this.trigger('nodeCollapsing', colArgs, (observedArgs) => {
|
|
11082
11093
|
if (observedArgs.cancel) {
|
|
11083
11094
|
removeClass([icon], PROCESS);
|
|
@@ -11137,6 +11148,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11137
11148
|
this.removeExpand(liEle);
|
|
11138
11149
|
if (this.isLoaded) {
|
|
11139
11150
|
colArgs = this.getExpandEvent(liEle, null);
|
|
11151
|
+
colArgs.isInteracted = this.isInteracted;
|
|
11140
11152
|
this.trigger('nodeCollapsed', colArgs);
|
|
11141
11153
|
}
|
|
11142
11154
|
}
|
|
@@ -11543,6 +11555,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11543
11555
|
}
|
|
11544
11556
|
if (this.isLoaded && !this.isRefreshed) {
|
|
11545
11557
|
this.expandArgs = this.getExpandEvent(currLi, e);
|
|
11558
|
+
this.isInteracted = this.expandArgs.isInteracted;
|
|
11546
11559
|
this.trigger('nodeExpanding', this.expandArgs, (observedArgs) => {
|
|
11547
11560
|
if (observedArgs.cancel) {
|
|
11548
11561
|
removeClass([icon], PROCESS);
|
|
@@ -15311,7 +15324,7 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
15311
15324
|
this._maxItems = this.maxItems;
|
|
15312
15325
|
this.element.setAttribute('aria-label', 'breadcrumb');
|
|
15313
15326
|
if (this.cssClass) {
|
|
15314
|
-
addClass([this.element], this.cssClass.split(' '));
|
|
15327
|
+
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
15315
15328
|
}
|
|
15316
15329
|
if (this.enableRtl) {
|
|
15317
15330
|
this.element.classList.add('e-rtl');
|
|
@@ -15821,7 +15834,7 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
15821
15834
|
removeClass([this.element], oldProp.cssClass.split(' '));
|
|
15822
15835
|
}
|
|
15823
15836
|
if (newProp.cssClass) {
|
|
15824
|
-
addClass([this.element], newProp.cssClass.split(' '));
|
|
15837
|
+
addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
15825
15838
|
}
|
|
15826
15839
|
if ((oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) && !(newProp.cssClass &&
|
|
15827
15840
|
newProp.cssClass.indexOf(ICONRIGHT) > -1) || !(oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) &&
|