@syncfusion/ej2-navigations 29.1.34 → 29.1.38
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/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 +24 -16
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +25 -16
- 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 +25 -18
- package/src/carousel/carousel.js +8 -0
- package/src/common/menu-base.js +3 -1
- package/src/toolbar/toolbar.js +4 -0
- package/src/treeview/treeview.js +10 -15
- package/styles/fluent2-lite.css +2 -2
- package/styles/fluent2.css +2 -2
- package/styles/tab/_fluent2-definition.scss +2 -2
- package/styles/tab/_tailwind3-definition.scss +8 -8
- package/styles/tab/_theme.scss +1 -1
- package/styles/tab/fluent2.css +2 -2
- package/styles/tab/tailwind3.css +14 -13
- package/styles/tailwind3-lite.css +14 -13
- package/styles/tailwind3.css +14 -13
|
@@ -3009,6 +3009,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3009
3009
|
let pElement;
|
|
3010
3010
|
const animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
|
|
3011
3011
|
? closest(ul, '.e-menu-vscroll') : ul;
|
|
3012
|
+
Animation.stop(animateElement);
|
|
3012
3013
|
if (this.animationSettings.effect === 'None' || !isMenuOpen) {
|
|
3013
3014
|
if (this.hamburgerMode && ul) {
|
|
3014
3015
|
ul.style.top = '0px';
|
|
@@ -3017,6 +3018,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3017
3018
|
this.end(ul, isMenuOpen);
|
|
3018
3019
|
}
|
|
3019
3020
|
else {
|
|
3021
|
+
animateElement.style.maxHeight = '';
|
|
3020
3022
|
this.animation.animate(animateElement, {
|
|
3021
3023
|
name: this.animationSettings.effect,
|
|
3022
3024
|
duration: this.animationSettings.duration,
|
|
@@ -3035,7 +3037,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3035
3037
|
}
|
|
3036
3038
|
else {
|
|
3037
3039
|
options.element.style.display = 'block';
|
|
3038
|
-
options.element.style.maxHeight =
|
|
3040
|
+
options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
|
|
3039
3041
|
}
|
|
3040
3042
|
},
|
|
3041
3043
|
progress: (options) => {
|
|
@@ -5156,12 +5158,15 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5156
5158
|
ele.classList.remove(CLS_DISABLE$2);
|
|
5157
5159
|
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
5158
5160
|
ele.firstElementChild.setAttribute('aria-disabled', 'false');
|
|
5161
|
+
this.updateTabIndex('0');
|
|
5159
5162
|
}
|
|
5160
5163
|
}
|
|
5161
5164
|
else {
|
|
5162
5165
|
ele.classList.add(CLS_DISABLE$2);
|
|
5163
5166
|
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
5164
5167
|
ele.firstElementChild.setAttribute('aria-disabled', 'true');
|
|
5168
|
+
ele.firstElementChild.setAttribute('tabindex', '-1');
|
|
5169
|
+
this.updateTabIndex('0');
|
|
5165
5170
|
}
|
|
5166
5171
|
}
|
|
5167
5172
|
};
|
|
@@ -12277,7 +12282,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12277
12282
|
return undefined;
|
|
12278
12283
|
}
|
|
12279
12284
|
getChildGroup(data, parentId, isRoot) {
|
|
12280
|
-
|
|
12285
|
+
const childNodes = [];
|
|
12281
12286
|
if (isNullOrUndefined(data)) {
|
|
12282
12287
|
return childNodes;
|
|
12283
12288
|
}
|
|
@@ -12291,9 +12296,6 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12291
12296
|
else if (isRoot) {
|
|
12292
12297
|
return data[parseInt(i.toString(), 10)];
|
|
12293
12298
|
}
|
|
12294
|
-
else {
|
|
12295
|
-
return [];
|
|
12296
|
-
}
|
|
12297
12299
|
}
|
|
12298
12300
|
return childNodes;
|
|
12299
12301
|
}
|
|
@@ -14203,17 +14205,15 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
14203
14205
|
removeChildNodes(parentId) {
|
|
14204
14206
|
const cNodes = this.getChildGroup(this.groupedData, parentId, false);
|
|
14205
14207
|
const childData = [];
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
this.removeChildNodes(id);
|
|
14216
|
-
}
|
|
14208
|
+
for (let i = 0, len = cNodes.length; i < len; i++) {
|
|
14209
|
+
const dm = new DataManager(this.treeData);
|
|
14210
|
+
const id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
|
|
14211
|
+
const data = {};
|
|
14212
|
+
const currId = this.isNumberTypeId ? parseFloat(id) : id;
|
|
14213
|
+
data[this.fields.id] = currId;
|
|
14214
|
+
const nodeData = dm.remove(this.fields.id, data);
|
|
14215
|
+
childData.push(nodeData[0]);
|
|
14216
|
+
this.removeChildNodes(id);
|
|
14217
14217
|
}
|
|
14218
14218
|
return childData;
|
|
14219
14219
|
}
|
|
@@ -18254,6 +18254,14 @@ let Carousel = class Carousel extends Component {
|
|
|
18254
18254
|
if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
18255
18255
|
return;
|
|
18256
18256
|
}
|
|
18257
|
+
if (this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse)) {
|
|
18258
|
+
return;
|
|
18259
|
+
}
|
|
18260
|
+
const eventType = e.startEvents ? e.startEvents.toString() : null;
|
|
18261
|
+
if (eventType && ((this.swipeMode === CarouselSwipeMode.Mouse && eventType.includes('Touch')) ||
|
|
18262
|
+
(this.swipeMode === CarouselSwipeMode.Touch && eventType.includes('Mouse')))) {
|
|
18263
|
+
return;
|
|
18264
|
+
}
|
|
18257
18265
|
const direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
|
|
18258
18266
|
const slideIndex = this.getSlideIndex(direction);
|
|
18259
18267
|
if (!this.isSuspendSlideTransition(slideIndex, direction)) {
|