@syncfusion/ej2-navigations 22.2.7 → 22.2.8-184993
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 +84 -0
- package/README.md +1 -1
- package/dist/ej2-navigations.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +183 -95
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +185 -93
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +165 -165
- package/src/accordion/accordion-model.d.ts +1 -1
- package/src/accordion/accordion.d.ts +3 -2
- package/src/accordion/accordion.js +34 -31
- package/src/appbar/appbar.js +1 -0
- package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
- package/src/breadcrumb/breadcrumb.js +10 -2
- package/src/carousel/carousel.d.ts +1 -0
- package/src/carousel/carousel.js +12 -2
- package/src/common/menu-base.js +21 -10
- package/src/menu/menu-model.d.ts +1 -1
- package/src/sidebar/sidebar.js +2 -2
- package/src/tab/tab-model.d.ts +10 -2
- package/src/tab/tab.d.ts +10 -0
- package/src/tab/tab.js +26 -15
- package/src/toolbar/toolbar-model.d.ts +2 -0
- package/src/toolbar/toolbar.d.ts +3 -0
- package/src/toolbar/toolbar.js +63 -29
- package/src/treeview/treeview-model.d.ts +2 -2
- package/src/treeview/treeview.d.ts +2 -2
- package/src/treeview/treeview.js +19 -5
- package/styles/accordion/_theme.scss +1 -0
- package/styles/accordion/bootstrap-dark.scss +1 -1
- package/styles/accordion/bootstrap.scss +1 -1
- package/styles/accordion/bootstrap4.scss +1 -1
- package/styles/accordion/bootstrap5-dark.scss +1 -1
- package/styles/accordion/bootstrap5.scss +1 -1
- package/styles/accordion/fabric-dark.scss +1 -1
- package/styles/accordion/fabric.scss +1 -1
- package/styles/accordion/fluent-dark.scss +1 -1
- package/styles/accordion/fluent.scss +1 -1
- package/styles/accordion/highcontrast-light.scss +1 -1
- package/styles/accordion/highcontrast.scss +1 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material-dark.scss +1 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/material.scss +1 -1
- package/styles/accordion/material3-dark.css +0 -1
- package/styles/accordion/material3-dark.scss +1 -1
- package/styles/accordion/material3.css +0 -1
- package/styles/accordion/material3.scss +1 -1
- package/styles/accordion/tailwind-dark.css +0 -1
- package/styles/accordion/tailwind-dark.scss +1 -1
- package/styles/accordion/tailwind.css +0 -1
- package/styles/accordion/tailwind.scss +1 -1
- package/styles/appbar/bootstrap-dark.scss +1 -1
- package/styles/appbar/bootstrap.scss +1 -1
- package/styles/appbar/bootstrap4.scss +1 -1
- package/styles/appbar/bootstrap5-dark.scss +1 -1
- package/styles/appbar/bootstrap5.scss +1 -1
- package/styles/appbar/fabric-dark.scss +1 -1
- package/styles/appbar/fabric.scss +1 -1
- package/styles/appbar/fluent-dark.scss +1 -1
- package/styles/appbar/fluent.scss +1 -1
- package/styles/appbar/highcontrast-light.scss +1 -1
- package/styles/appbar/highcontrast.scss +1 -1
- package/styles/appbar/material-dark.css +0 -1
- package/styles/appbar/material-dark.scss +1 -1
- package/styles/appbar/material.css +0 -1
- package/styles/appbar/material.scss +1 -1
- package/styles/appbar/material3-dark.css +0 -1
- package/styles/appbar/material3-dark.scss +1 -1
- package/styles/appbar/material3.css +0 -1
- package/styles/appbar/material3.scss +1 -1
- package/styles/appbar/tailwind-dark.css +0 -1
- package/styles/appbar/tailwind-dark.scss +1 -1
- package/styles/appbar/tailwind.css +0 -1
- package/styles/appbar/tailwind.scss +1 -1
- package/styles/bootstrap-dark.css +14 -9
- package/styles/bootstrap.css +14 -9
- package/styles/bootstrap4.css +22 -14
- package/styles/bootstrap5-dark.css +18 -13
- package/styles/bootstrap5.css +18 -13
- package/styles/breadcrumb/bootstrap-dark.scss +1 -1
- package/styles/breadcrumb/bootstrap.scss +1 -1
- package/styles/breadcrumb/bootstrap4.scss +1 -1
- package/styles/breadcrumb/bootstrap5-dark.scss +1 -1
- package/styles/breadcrumb/bootstrap5.scss +1 -1
- package/styles/breadcrumb/fabric-dark.scss +1 -1
- package/styles/breadcrumb/fabric.scss +1 -1
- package/styles/breadcrumb/fluent-dark.scss +1 -1
- package/styles/breadcrumb/fluent.scss +1 -1
- package/styles/breadcrumb/highcontrast-light.scss +1 -1
- package/styles/breadcrumb/highcontrast.scss +1 -1
- package/styles/breadcrumb/material-dark.css +0 -1
- package/styles/breadcrumb/material-dark.scss +1 -1
- package/styles/breadcrumb/material.css +0 -1
- package/styles/breadcrumb/material.scss +1 -1
- package/styles/breadcrumb/material3-dark.css +0 -1
- package/styles/breadcrumb/material3-dark.scss +1 -1
- package/styles/breadcrumb/material3.css +0 -1
- package/styles/breadcrumb/material3.scss +1 -1
- package/styles/breadcrumb/tailwind-dark.css +0 -1
- package/styles/breadcrumb/tailwind-dark.scss +1 -1
- package/styles/breadcrumb/tailwind.css +0 -1
- package/styles/breadcrumb/tailwind.scss +1 -1
- package/styles/carousel/bootstrap-dark.scss +1 -1
- package/styles/carousel/bootstrap.scss +1 -1
- package/styles/carousel/bootstrap4.scss +1 -1
- package/styles/carousel/bootstrap5-dark.scss +1 -1
- package/styles/carousel/bootstrap5.scss +1 -1
- package/styles/carousel/fabric-dark.scss +1 -1
- package/styles/carousel/fabric.scss +1 -1
- package/styles/carousel/fluent-dark.scss +1 -1
- package/styles/carousel/fluent.scss +1 -1
- package/styles/carousel/highcontrast-light.scss +1 -1
- package/styles/carousel/highcontrast.scss +1 -1
- package/styles/carousel/material-dark.css +0 -1
- package/styles/carousel/material-dark.scss +1 -1
- package/styles/carousel/material.css +0 -1
- package/styles/carousel/material.scss +1 -1
- package/styles/carousel/material3-dark.css +0 -1
- package/styles/carousel/material3-dark.scss +1 -1
- package/styles/carousel/material3.css +0 -1
- package/styles/carousel/material3.scss +1 -1
- package/styles/carousel/tailwind-dark.css +0 -1
- package/styles/carousel/tailwind-dark.scss +1 -1
- package/styles/carousel/tailwind.css +0 -1
- package/styles/carousel/tailwind.scss +1 -1
- package/styles/context-menu/bootstrap-dark.scss +1 -1
- package/styles/context-menu/bootstrap.scss +1 -1
- package/styles/context-menu/bootstrap4.scss +1 -1
- package/styles/context-menu/bootstrap5-dark.scss +1 -1
- package/styles/context-menu/bootstrap5.scss +1 -1
- package/styles/context-menu/fabric-dark.scss +1 -1
- package/styles/context-menu/fabric.scss +1 -1
- package/styles/context-menu/fluent-dark.scss +1 -1
- package/styles/context-menu/fluent.scss +1 -1
- package/styles/context-menu/highcontrast-light.scss +1 -1
- package/styles/context-menu/highcontrast.scss +1 -1
- package/styles/context-menu/material-dark.css +0 -1
- package/styles/context-menu/material-dark.scss +1 -1
- package/styles/context-menu/material.css +0 -1
- package/styles/context-menu/material.scss +1 -1
- package/styles/context-menu/material3-dark.css +0 -1
- package/styles/context-menu/material3-dark.scss +1 -1
- package/styles/context-menu/material3.css +0 -1
- package/styles/context-menu/material3.scss +1 -1
- package/styles/context-menu/tailwind-dark.css +0 -1
- package/styles/context-menu/tailwind-dark.scss +1 -1
- package/styles/context-menu/tailwind.css +0 -1
- package/styles/context-menu/tailwind.scss +1 -1
- package/styles/fabric-dark.css +14 -9
- package/styles/fabric.css +14 -9
- package/styles/fluent-dark.css +14 -9
- package/styles/fluent.css +14 -9
- package/styles/h-scroll/bootstrap-dark.scss +1 -1
- package/styles/h-scroll/bootstrap.scss +1 -1
- package/styles/h-scroll/bootstrap4.scss +1 -1
- package/styles/h-scroll/bootstrap5-dark.scss +1 -1
- package/styles/h-scroll/bootstrap5.scss +1 -1
- package/styles/h-scroll/fabric-dark.scss +1 -1
- package/styles/h-scroll/fabric.scss +1 -1
- package/styles/h-scroll/fluent-dark.scss +1 -1
- package/styles/h-scroll/fluent.scss +1 -1
- package/styles/h-scroll/highcontrast-light.scss +1 -1
- package/styles/h-scroll/highcontrast.scss +1 -1
- package/styles/h-scroll/material-dark.css +0 -1
- package/styles/h-scroll/material-dark.scss +1 -1
- package/styles/h-scroll/material.css +0 -1
- package/styles/h-scroll/material.scss +1 -1
- package/styles/h-scroll/material3-dark.css +0 -1
- package/styles/h-scroll/material3-dark.scss +1 -1
- package/styles/h-scroll/material3.css +0 -1
- package/styles/h-scroll/material3.scss +1 -1
- package/styles/h-scroll/tailwind-dark.css +0 -1
- package/styles/h-scroll/tailwind-dark.scss +1 -1
- package/styles/h-scroll/tailwind.css +0 -1
- package/styles/h-scroll/tailwind.scss +1 -1
- package/styles/highcontrast-light.css +14 -9
- package/styles/highcontrast.css +14 -9
- package/styles/material-dark.css +14 -10
- package/styles/material.css +14 -10
- package/styles/material3-dark.css +16 -12
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +16 -12
- package/styles/material3.scss +1 -1
- package/styles/menu/_theme.scss +8 -3
- package/styles/menu/bootstrap-dark.css +14 -9
- package/styles/menu/bootstrap-dark.scss +1 -1
- package/styles/menu/bootstrap.css +14 -9
- package/styles/menu/bootstrap.scss +1 -1
- package/styles/menu/bootstrap4.css +22 -14
- package/styles/menu/bootstrap4.scss +1 -1
- package/styles/menu/bootstrap5-dark.css +14 -9
- package/styles/menu/bootstrap5-dark.scss +1 -1
- package/styles/menu/bootstrap5.css +14 -9
- package/styles/menu/bootstrap5.scss +1 -1
- package/styles/menu/fabric-dark.css +14 -9
- package/styles/menu/fabric-dark.scss +1 -1
- package/styles/menu/fabric.css +14 -9
- package/styles/menu/fabric.scss +1 -1
- package/styles/menu/fluent-dark.css +14 -9
- package/styles/menu/fluent-dark.scss +1 -1
- package/styles/menu/fluent.css +14 -9
- package/styles/menu/fluent.scss +1 -1
- package/styles/menu/highcontrast-light.css +14 -9
- package/styles/menu/highcontrast-light.scss +1 -1
- package/styles/menu/highcontrast.css +14 -9
- package/styles/menu/highcontrast.scss +1 -1
- package/styles/menu/material-dark.css +14 -10
- package/styles/menu/material-dark.scss +1 -1
- package/styles/menu/material.css +14 -10
- package/styles/menu/material.scss +1 -1
- package/styles/menu/material3-dark.css +14 -10
- package/styles/menu/material3-dark.scss +1 -1
- package/styles/menu/material3.css +14 -10
- package/styles/menu/material3.scss +1 -1
- package/styles/menu/tailwind-dark.css +14 -10
- package/styles/menu/tailwind-dark.scss +1 -1
- package/styles/menu/tailwind.css +14 -10
- package/styles/menu/tailwind.scss +1 -1
- package/styles/pager/bootstrap-dark.scss +1 -1
- package/styles/pager/bootstrap.scss +1 -1
- package/styles/pager/bootstrap4.scss +1 -1
- package/styles/pager/bootstrap5-dark.scss +1 -1
- package/styles/pager/bootstrap5.scss +1 -1
- package/styles/pager/fabric-dark.scss +1 -1
- package/styles/pager/fabric.scss +1 -1
- package/styles/pager/fluent-dark.scss +1 -1
- package/styles/pager/fluent.scss +1 -1
- package/styles/pager/highcontrast-light.scss +1 -1
- package/styles/pager/highcontrast.scss +1 -1
- package/styles/pager/material-dark.css +0 -1
- package/styles/pager/material-dark.scss +1 -1
- package/styles/pager/material.css +0 -1
- package/styles/pager/material.scss +1 -1
- package/styles/pager/material3-dark.css +0 -1
- package/styles/pager/material3-dark.scss +1 -1
- package/styles/pager/material3.css +0 -1
- package/styles/pager/material3.scss +1 -1
- package/styles/pager/tailwind-dark.css +0 -1
- package/styles/pager/tailwind-dark.scss +1 -1
- package/styles/pager/tailwind.css +0 -1
- package/styles/pager/tailwind.scss +1 -1
- package/styles/sidebar/bootstrap-dark.scss +1 -1
- package/styles/sidebar/bootstrap.scss +1 -1
- package/styles/sidebar/bootstrap4.scss +1 -1
- package/styles/sidebar/bootstrap5-dark.scss +1 -1
- package/styles/sidebar/bootstrap5.scss +1 -1
- package/styles/sidebar/fabric-dark.scss +1 -1
- package/styles/sidebar/fabric.scss +1 -1
- package/styles/sidebar/fluent-dark.scss +1 -1
- package/styles/sidebar/fluent.scss +1 -1
- package/styles/sidebar/highcontrast-light.scss +1 -1
- package/styles/sidebar/highcontrast.scss +1 -1
- package/styles/sidebar/material-dark.css +0 -1
- package/styles/sidebar/material-dark.scss +1 -1
- package/styles/sidebar/material.css +0 -1
- package/styles/sidebar/material.scss +1 -1
- package/styles/sidebar/material3-dark.css +0 -1
- package/styles/sidebar/material3-dark.scss +1 -1
- package/styles/sidebar/material3.css +0 -1
- package/styles/sidebar/material3.scss +1 -1
- package/styles/sidebar/tailwind-dark.css +0 -1
- package/styles/sidebar/tailwind-dark.scss +1 -1
- package/styles/sidebar/tailwind.css +0 -1
- package/styles/sidebar/tailwind.scss +1 -1
- package/styles/tab/_tailwind-definition.scss +2 -2
- package/styles/tab/bootstrap-dark.scss +1 -1
- package/styles/tab/bootstrap.scss +1 -1
- package/styles/tab/bootstrap4.scss +1 -1
- package/styles/tab/bootstrap5-dark.scss +1 -1
- package/styles/tab/bootstrap5.scss +1 -1
- package/styles/tab/fabric-dark.scss +1 -1
- package/styles/tab/fabric.scss +1 -1
- package/styles/tab/fluent-dark.scss +1 -1
- package/styles/tab/fluent.scss +1 -1
- package/styles/tab/highcontrast-light.scss +1 -1
- package/styles/tab/highcontrast.scss +1 -1
- package/styles/tab/material-dark.css +0 -1
- package/styles/tab/material-dark.scss +1 -1
- package/styles/tab/material.css +0 -1
- package/styles/tab/material.scss +1 -1
- package/styles/tab/material3-dark.css +0 -1
- package/styles/tab/material3-dark.scss +1 -1
- package/styles/tab/material3.css +0 -1
- package/styles/tab/material3.scss +1 -1
- package/styles/tab/tailwind-dark.css +2 -3
- package/styles/tab/tailwind-dark.scss +1 -1
- package/styles/tab/tailwind.css +2 -3
- package/styles/tab/tailwind.scss +1 -1
- package/styles/tailwind-dark.css +18 -26
- package/styles/tailwind.css +18 -26
- package/styles/toolbar/_bootstrap5-definition.scss +4 -4
- package/styles/toolbar/_material3-definition.scss +1 -1
- package/styles/toolbar/_tailwind-definition.scss +2 -2
- package/styles/toolbar/bootstrap-dark.scss +1 -1
- package/styles/toolbar/bootstrap.scss +1 -1
- package/styles/toolbar/bootstrap4.scss +1 -1
- package/styles/toolbar/bootstrap5-dark.css +4 -4
- package/styles/toolbar/bootstrap5-dark.scss +1 -1
- package/styles/toolbar/bootstrap5.css +4 -4
- package/styles/toolbar/bootstrap5.scss +1 -1
- package/styles/toolbar/fabric-dark.scss +1 -1
- package/styles/toolbar/fabric.scss +1 -1
- package/styles/toolbar/fluent-dark.scss +1 -1
- package/styles/toolbar/fluent.scss +1 -1
- package/styles/toolbar/highcontrast-light.scss +1 -1
- package/styles/toolbar/highcontrast.scss +1 -1
- package/styles/toolbar/material-dark.css +0 -1
- package/styles/toolbar/material-dark.scss +1 -1
- package/styles/toolbar/material.css +0 -1
- package/styles/toolbar/material.scss +1 -1
- package/styles/toolbar/material3-dark.css +1 -2
- package/styles/toolbar/material3-dark.scss +1 -1
- package/styles/toolbar/material3.css +1 -2
- package/styles/toolbar/material3.scss +1 -1
- package/styles/toolbar/tailwind-dark.css +2 -3
- package/styles/toolbar/tailwind-dark.scss +1 -1
- package/styles/toolbar/tailwind.css +2 -3
- package/styles/toolbar/tailwind.scss +1 -1
- package/styles/treeview/_layout.scss +4 -1
- package/styles/treeview/bootstrap-dark.scss +1 -1
- package/styles/treeview/bootstrap.scss +1 -1
- package/styles/treeview/bootstrap4.scss +1 -1
- package/styles/treeview/bootstrap5-dark.scss +1 -1
- package/styles/treeview/bootstrap5.scss +1 -1
- package/styles/treeview/fabric-dark.scss +1 -1
- package/styles/treeview/fabric.scss +1 -1
- package/styles/treeview/fluent-dark.scss +1 -1
- package/styles/treeview/fluent.scss +1 -1
- package/styles/treeview/highcontrast-light.scss +1 -1
- package/styles/treeview/highcontrast.scss +1 -1
- package/styles/treeview/material-dark.css +0 -1
- package/styles/treeview/material-dark.scss +1 -1
- package/styles/treeview/material.css +0 -1
- package/styles/treeview/material.scss +1 -1
- package/styles/treeview/material3-dark.css +1 -2
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +1 -2
- package/styles/treeview/material3.scss +1 -1
- package/styles/treeview/tailwind-dark.css +0 -1
- package/styles/treeview/tailwind-dark.scss +1 -1
- package/styles/treeview/tailwind.css +0 -1
- package/styles/treeview/tailwind.scss +1 -1
- package/styles/v-scroll/bootstrap-dark.scss +1 -1
- package/styles/v-scroll/bootstrap.scss +1 -1
- package/styles/v-scroll/bootstrap4.scss +1 -1
- package/styles/v-scroll/bootstrap5-dark.scss +1 -1
- package/styles/v-scroll/bootstrap5.scss +1 -1
- package/styles/v-scroll/fabric-dark.scss +1 -1
- package/styles/v-scroll/fabric.scss +1 -1
- package/styles/v-scroll/fluent-dark.scss +1 -1
- package/styles/v-scroll/fluent.scss +1 -1
- package/styles/v-scroll/highcontrast-light.scss +1 -1
- package/styles/v-scroll/highcontrast.scss +1 -1
- package/styles/v-scroll/material-dark.css +0 -1
- package/styles/v-scroll/material-dark.scss +1 -1
- package/styles/v-scroll/material.css +0 -1
- package/styles/v-scroll/material.scss +1 -1
- package/styles/v-scroll/material3-dark.css +0 -1
- package/styles/v-scroll/material3-dark.scss +1 -1
- package/styles/v-scroll/material3.css +0 -1
- package/styles/v-scroll/material3.scss +1 -1
- package/styles/v-scroll/tailwind-dark.css +0 -1
- package/styles/v-scroll/tailwind-dark.scss +1 -1
- package/styles/v-scroll/tailwind.css +0 -1
- package/styles/v-scroll/tailwind.scss +1 -1
package/src/carousel/carousel.js
CHANGED
|
@@ -297,6 +297,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
297
297
|
};
|
|
298
298
|
Carousel.prototype.initialize = function () {
|
|
299
299
|
var carouselClasses = [];
|
|
300
|
+
carouselClasses.push(CLS_CAROUSEL);
|
|
300
301
|
if (this.cssClass) {
|
|
301
302
|
carouselClasses.push(this.cssClass);
|
|
302
303
|
}
|
|
@@ -311,7 +312,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
311
312
|
}
|
|
312
313
|
addClass([this.element], carouselClasses);
|
|
313
314
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
314
|
-
attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
315
|
+
attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
315
316
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
316
317
|
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
317
318
|
}
|
|
@@ -385,7 +386,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
385
386
|
className: CLS_ITEM + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index && !isClone ? CLS_ACTIVE : ''),
|
|
386
387
|
attrs: {
|
|
387
388
|
'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
|
|
388
|
-
'
|
|
389
|
+
'role': 'group', 'aria-roledescription': 'slide'
|
|
389
390
|
}
|
|
390
391
|
});
|
|
391
392
|
if (isClone) {
|
|
@@ -1092,6 +1093,13 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1092
1093
|
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
1093
1094
|
}
|
|
1094
1095
|
};
|
|
1096
|
+
Carousel.prototype.resizeHandler = function () {
|
|
1097
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
1098
|
+
var numOfItems = this.getNumOfItems();
|
|
1099
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1100
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1095
1103
|
Carousel.prototype.wireEvents = function () {
|
|
1096
1104
|
if (!(this.animationEffect === 'Custom')) {
|
|
1097
1105
|
this.swipeModehandlers();
|
|
@@ -1100,6 +1108,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1100
1108
|
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
1101
1109
|
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
1102
1110
|
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
1111
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
1103
1112
|
};
|
|
1104
1113
|
Carousel.prototype.unWireEvents = function () {
|
|
1105
1114
|
var _this = this;
|
|
@@ -1119,6 +1128,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1119
1128
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
1120
1129
|
EventHandler.clearEvents(this.element);
|
|
1121
1130
|
EventHandler.clearEvents(this.itemsContainer);
|
|
1131
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
1122
1132
|
};
|
|
1123
1133
|
/**
|
|
1124
1134
|
* Method to transit from the current slide to the previous slide.
|
package/src/common/menu-base.js
CHANGED
|
@@ -302,10 +302,10 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
302
302
|
}
|
|
303
303
|
this.targetElement = target;
|
|
304
304
|
if (!this.isMenu) {
|
|
305
|
-
EventHandler.add(this.targetElement, '
|
|
305
|
+
EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
|
|
306
306
|
for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
|
|
307
307
|
var parent_1 = _a[_i];
|
|
308
|
-
EventHandler.add(parent_1, '
|
|
308
|
+
EventHandler.add(parent_1, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -483,7 +483,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
483
483
|
var popups_1 = [];
|
|
484
484
|
var allPopup = selectAll('.' + POPUP);
|
|
485
485
|
allPopup.forEach(function (elem) {
|
|
486
|
-
if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] +
|
|
486
|
+
if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
|
|
487
487
|
popups_1.push(elem);
|
|
488
488
|
}
|
|
489
489
|
});
|
|
@@ -650,7 +650,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
650
650
|
_this.afterCloseMenu(e);
|
|
651
651
|
}
|
|
652
652
|
else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
|
|
653
|
-
var ele = (e && e.target.classList.contains('e-vscroll'))
|
|
653
|
+
var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
|
|
654
654
|
? closest(e.target, '.e-menu-wrapper') : null;
|
|
655
655
|
if (ele) {
|
|
656
656
|
ele = ele.querySelector('.e-menu-item');
|
|
@@ -659,7 +659,9 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
else {
|
|
662
|
-
|
|
662
|
+
if (!(e && e.target.classList.contains('e-nav-arrow'))) {
|
|
663
|
+
_this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
|
|
664
|
+
}
|
|
663
665
|
}
|
|
664
666
|
}
|
|
665
667
|
else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
|
|
@@ -851,7 +853,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
851
853
|
if (isNullOrUndefined(e)) {
|
|
852
854
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
853
855
|
var ev = document.createEvent('MouseEvents');
|
|
854
|
-
ev.initEvent(
|
|
856
|
+
ev.initEvent('click', true, false);
|
|
855
857
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
856
858
|
var targetEvent = this.copyObject(ev, {});
|
|
857
859
|
targetEvent.target = targetEvent.srcElement = target;
|
|
@@ -864,6 +866,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
864
866
|
}
|
|
865
867
|
}
|
|
866
868
|
};
|
|
869
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
867
870
|
MenuBase.prototype.copyObject = function (source, destination) {
|
|
868
871
|
for (var prop in source) {
|
|
869
872
|
destination["" + prop] = source["" + prop];
|
|
@@ -1431,6 +1434,9 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1431
1434
|
if (!cli.classList.contains(SEPARATOR)) {
|
|
1432
1435
|
this.showSubMenu = true;
|
|
1433
1436
|
var cul = cli.parentNode;
|
|
1437
|
+
if (isNullOrUndefined(cul)) {
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1434
1440
|
this.cliIdx = this.getIdx(cul, cli);
|
|
1435
1441
|
if (this.isMenu || !Browser.isDevice) {
|
|
1436
1442
|
var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
|
|
@@ -1666,7 +1672,12 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1666
1672
|
}
|
|
1667
1673
|
break;
|
|
1668
1674
|
case 'enableRtl':
|
|
1669
|
-
|
|
1675
|
+
if (this_1.enableRtl) {
|
|
1676
|
+
wrapper.classList.add(RTL);
|
|
1677
|
+
}
|
|
1678
|
+
else {
|
|
1679
|
+
wrapper.classList.remove(RTL);
|
|
1680
|
+
}
|
|
1670
1681
|
break;
|
|
1671
1682
|
case 'showItemOnClick':
|
|
1672
1683
|
this_1.unWireEvents();
|
|
@@ -1831,10 +1842,10 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1831
1842
|
}
|
|
1832
1843
|
}
|
|
1833
1844
|
if (!this.isMenu) {
|
|
1834
|
-
EventHandler.remove(this.targetElement, '
|
|
1845
|
+
EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
|
|
1835
1846
|
for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
|
|
1836
1847
|
var parent_2 = _a[_i];
|
|
1837
|
-
EventHandler.remove(parent_2, '
|
|
1848
|
+
EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
|
|
1838
1849
|
}
|
|
1839
1850
|
}
|
|
1840
1851
|
}
|
|
@@ -2110,7 +2121,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
2110
2121
|
if (ishide && validUl === items[i]) {
|
|
2111
2122
|
ul.children[index].classList.add(HIDE);
|
|
2112
2123
|
}
|
|
2113
|
-
else {
|
|
2124
|
+
else if (!ishide && validUl === items[i]) {
|
|
2114
2125
|
ul.children[index].classList.remove(HIDE);
|
|
2115
2126
|
}
|
|
2116
2127
|
}
|
package/src/menu/menu-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper
|
|
1
|
+
import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { MenuBase, FieldSettings } from '../common/menu-base';import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
|
|
2
2
|
import {Orientation} from "./menu";
|
|
3
3
|
import {MenuBaseModel} from "../common/menu-base-model";
|
|
4
4
|
|
package/src/sidebar/sidebar.js
CHANGED
|
@@ -174,7 +174,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
174
174
|
this.show();
|
|
175
175
|
}
|
|
176
176
|
else if (!this.isOpen) {
|
|
177
|
-
addClass([this.element], CLOSE);
|
|
177
|
+
addClass([this.element], [CLOSE, DISABLEANIMATION]);
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
Sidebar.prototype.checkType = function (val) {
|
|
@@ -629,7 +629,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
629
629
|
}
|
|
630
630
|
this.destroyBackDrop();
|
|
631
631
|
if (this.element) {
|
|
632
|
-
removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
|
|
632
|
+
removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
|
|
633
633
|
removeClass([this.element], SIDEBARABSOLUTE);
|
|
634
634
|
this.element.style.width = '';
|
|
635
635
|
this.element.style.zIndex = '';
|
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
|
|
1
|
+
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
|
|
2
2
|
import {HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -304,17 +304,25 @@ export interface TabModel extends ComponentModel{
|
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
307
|
-
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
307
|
+
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
308
|
+
*
|
|
308
309
|
* @default null
|
|
309
310
|
*/
|
|
310
311
|
dragArea?: string;
|
|
311
312
|
|
|
312
313
|
/**
|
|
313
314
|
* Sets true to allow drag and drop the Tab items
|
|
315
|
+
*
|
|
314
316
|
* @default false
|
|
315
317
|
*/
|
|
316
318
|
allowDragAndDrop?: boolean;
|
|
317
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
|
|
322
|
+
* @default true
|
|
323
|
+
*/
|
|
324
|
+
clearTemplates?: boolean;
|
|
325
|
+
|
|
318
326
|
/**
|
|
319
327
|
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
320
328
|
*
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -289,6 +289,9 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
289
289
|
private draggingItems;
|
|
290
290
|
private draggableItems;
|
|
291
291
|
private tbId;
|
|
292
|
+
private isAngular;
|
|
293
|
+
private isReact;
|
|
294
|
+
private isVue;
|
|
292
295
|
private resizeContext;
|
|
293
296
|
/**
|
|
294
297
|
* Contains the keyboard configuration of the Tab.
|
|
@@ -422,14 +425,21 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
422
425
|
/**
|
|
423
426
|
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
424
427
|
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
428
|
+
*
|
|
425
429
|
* @default null
|
|
426
430
|
*/
|
|
427
431
|
dragArea: string;
|
|
428
432
|
/**
|
|
429
433
|
* Sets true to allow drag and drop the Tab items
|
|
434
|
+
*
|
|
430
435
|
* @default false
|
|
431
436
|
*/
|
|
432
437
|
allowDragAndDrop: boolean;
|
|
438
|
+
/**
|
|
439
|
+
* Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
|
|
440
|
+
* @default true
|
|
441
|
+
*/
|
|
442
|
+
clearTemplates: boolean;
|
|
433
443
|
/**
|
|
434
444
|
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
435
445
|
*
|
package/src/tab/tab.js
CHANGED
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';
|
|
21
21
|
import { NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';
|
|
22
22
|
import { KeyboardEvents, Browser, formatUnit, L10n } from '@syncfusion/ej2-base';
|
|
23
23
|
import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';
|
|
@@ -311,11 +311,20 @@ var Tab = /** @class */ (function (_super) {
|
|
|
311
311
|
* @returns {void}
|
|
312
312
|
*/
|
|
313
313
|
Tab.prototype.render = function () {
|
|
314
|
+
var _this = this;
|
|
314
315
|
this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
|
|
315
316
|
this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
|
|
316
317
|
this.renderContainer();
|
|
317
318
|
this.wireEvents();
|
|
318
319
|
this.initRender = false;
|
|
320
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
321
|
+
this.renderReactTemplates(function () {
|
|
322
|
+
if (!isNOU(_this.tbObj)) {
|
|
323
|
+
_this.tbObj.refreshOverflow();
|
|
324
|
+
}
|
|
325
|
+
_this.refreshActiveBorder();
|
|
326
|
+
});
|
|
327
|
+
}
|
|
319
328
|
};
|
|
320
329
|
Tab.prototype.renderContainer = function () {
|
|
321
330
|
var ele = this.element;
|
|
@@ -529,10 +538,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
529
538
|
tCont.appendChild(_this.btnCls.cloneNode(true));
|
|
530
539
|
var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
|
|
531
540
|
wrap.appendChild(tCont);
|
|
532
|
-
if (_this.itemIndexArray
|
|
533
|
-
_this.itemIndexArray.push(CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
541
|
+
if (_this.itemIndexArray instanceof Array) {
|
|
536
542
|
_this.itemIndexArray.splice((index + i), 0, CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
|
|
537
543
|
}
|
|
538
544
|
var attrObj = {
|
|
@@ -690,10 +696,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
690
696
|
if (!isNOU(newCnt)) {
|
|
691
697
|
this.prevActiveEle = newCnt.id;
|
|
692
698
|
}
|
|
693
|
-
var isPrevent = isNOU(this.animation) || this.animation.next
|
|
694
|
-
||
|
|
695
|
-
|
|
696
|
-
if (this.initRender || value === false || this.animation === {} || isPrevent) {
|
|
699
|
+
var isPrevent = isNOU(this.animation) || isNOU(this.animation.next.effect) || isNOU(this.animation.previous.effect)
|
|
700
|
+
|| this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
|
|
701
|
+
if (this.initRender || value === false || isPrevent) {
|
|
697
702
|
if (oldCnt && oldCnt !== newCnt) {
|
|
698
703
|
oldCnt.classList.remove(CLS_ACTIVE);
|
|
699
704
|
}
|
|
@@ -705,7 +710,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
705
710
|
var openEff = this.animation.previous.effect;
|
|
706
711
|
animateObj = {
|
|
707
712
|
name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
|
|
708
|
-
duration: this.animation.previous.duration,
|
|
713
|
+
duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
|
|
709
714
|
timingFunction: this.animation.previous.easing
|
|
710
715
|
};
|
|
711
716
|
}
|
|
@@ -713,7 +718,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
713
718
|
var clsEff = this.animation.next.effect;
|
|
714
719
|
animateObj = {
|
|
715
720
|
name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
|
|
716
|
-
duration: this.animation.next.duration,
|
|
721
|
+
duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
|
|
717
722
|
timingFunction: this.animation.next.easing
|
|
718
723
|
};
|
|
719
724
|
}
|
|
@@ -823,7 +828,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
823
828
|
};
|
|
824
829
|
Tab.prototype.getContent = function (ele, cnt, callType, index) {
|
|
825
830
|
var eleStr;
|
|
826
|
-
cnt = isNOU(cnt) ?
|
|
831
|
+
cnt = isNOU(cnt) ? '' : cnt;
|
|
827
832
|
if (typeof cnt === 'string' || isNOU(cnt.innerHTML)) {
|
|
828
833
|
if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
|
|
829
834
|
cnt = SanitizeHtmlHelper.sanitize(cnt);
|
|
@@ -1174,7 +1179,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1174
1179
|
};
|
|
1175
1180
|
Tab.prototype.showPopup = function (config) {
|
|
1176
1181
|
var tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
|
|
1177
|
-
if (tbPop.classList.contains('e-popup-close')) {
|
|
1182
|
+
if (tbPop && tbPop.classList.contains('e-popup-close')) {
|
|
1178
1183
|
var tbPopObj = (tbPop && tbPop.ej2_instances[0]);
|
|
1179
1184
|
tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
|
|
1180
1185
|
tbPopObj.dataBind();
|
|
@@ -1489,6 +1494,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1489
1494
|
}
|
|
1490
1495
|
};
|
|
1491
1496
|
Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {
|
|
1497
|
+
if (!this.clearTemplates) {
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1492
1500
|
if (this.registeredTemplate && this.registeredTemplate[templateName]) {
|
|
1493
1501
|
var registeredTemplates = this.registeredTemplate;
|
|
1494
1502
|
for (var index = 0; index < registeredTemplates[templateName].length; index++) {
|
|
@@ -1622,8 +1630,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1622
1630
|
clonedElement: this.cloneElement,
|
|
1623
1631
|
cancel: false
|
|
1624
1632
|
};
|
|
1625
|
-
this.trigger('onDragStart', dragArgs, function (
|
|
1626
|
-
if (
|
|
1633
|
+
this.trigger('onDragStart', dragArgs, function (tabItemDragArgs) {
|
|
1634
|
+
if (tabItemDragArgs.cancel) {
|
|
1627
1635
|
var dragObj = e.element.ej2_instances[0];
|
|
1628
1636
|
if (!isNullOrUndefined(dragObj)) {
|
|
1629
1637
|
dragObj.intDestroy(e.event);
|
|
@@ -2391,6 +2399,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2391
2399
|
__decorate([
|
|
2392
2400
|
Property(false)
|
|
2393
2401
|
], Tab.prototype, "allowDragAndDrop", void 0);
|
|
2402
|
+
__decorate([
|
|
2403
|
+
Property(true)
|
|
2404
|
+
], Tab.prototype, "clearTemplates", void 0);
|
|
2394
2405
|
__decorate([
|
|
2395
2406
|
Complex({}, TabAnimationSettings)
|
|
2396
2407
|
], Tab.prototype, "animation", void 0);
|
|
@@ -235,6 +235,8 @@ export interface ToolbarModel extends ComponentModel{
|
|
|
235
235
|
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
236
236
|
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
237
237
|
*
|
|
238
|
+
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
239
|
+
*
|
|
238
240
|
* @default null
|
|
239
241
|
*/
|
|
240
242
|
scrollStep?: number;
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -304,6 +304,8 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
304
304
|
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
305
305
|
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
306
306
|
*
|
|
307
|
+
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
308
|
+
*
|
|
307
309
|
* @default null
|
|
308
310
|
*/
|
|
309
311
|
scrollStep: number;
|
|
@@ -502,6 +504,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
502
504
|
private orientationChange;
|
|
503
505
|
private extendedOpen;
|
|
504
506
|
private updateHideEleTabIndex;
|
|
507
|
+
private clearToolbarTemplate;
|
|
505
508
|
/**
|
|
506
509
|
* Gets called when the model property changes.The data that describes the old and new values of the property that changed.
|
|
507
510
|
*
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -683,10 +683,16 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
683
683
|
* @returns {void}
|
|
684
684
|
*/
|
|
685
685
|
Toolbar.prototype.render = function () {
|
|
686
|
+
var _this = this;
|
|
686
687
|
this.initialize();
|
|
687
688
|
this.renderControl();
|
|
688
689
|
this.wireEvents();
|
|
689
690
|
this.renderComplete();
|
|
691
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
692
|
+
this.renderReactTemplates(function () {
|
|
693
|
+
_this.refreshOverflow();
|
|
694
|
+
});
|
|
695
|
+
}
|
|
690
696
|
};
|
|
691
697
|
Toolbar.prototype.initialize = function () {
|
|
692
698
|
var width = formatUnit(this.width);
|
|
@@ -1814,7 +1820,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1814
1820
|
this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
|
|
1815
1821
|
}
|
|
1816
1822
|
if (this.isReact) {
|
|
1817
|
-
this.
|
|
1823
|
+
this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
|
|
1818
1824
|
}
|
|
1819
1825
|
var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
|
|
1820
1826
|
if (!isNOU(btnItem) && !isNOU(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
|
|
@@ -1863,7 +1869,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1863
1869
|
var tempArray = void 0;
|
|
1864
1870
|
if (!isNOU(templateFn)) {
|
|
1865
1871
|
var toolbarTemplateID = this.element.id + index + '_template';
|
|
1866
|
-
tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
|
|
1872
|
+
tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
|
|
1867
1873
|
}
|
|
1868
1874
|
if (!isNOU(tempArray) && tempArray.length > 0) {
|
|
1869
1875
|
[].slice.call(tempArray).forEach(function (ele) {
|
|
@@ -1931,7 +1937,8 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1931
1937
|
var dom;
|
|
1932
1938
|
var innerEle = this.createElement('div', { className: CLS_ITEM });
|
|
1933
1939
|
var tempDom = this.createElement('div', {
|
|
1934
|
-
innerHTML: this.enableHtmlSanitizer
|
|
1940
|
+
innerHTML: this.enableHtmlSanitizer && !isNOU(item.tooltipText) ?
|
|
1941
|
+
SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
|
|
1935
1942
|
});
|
|
1936
1943
|
if (!this.tbarEle) {
|
|
1937
1944
|
this.tbarEle = [];
|
|
@@ -2009,7 +2016,12 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2009
2016
|
};
|
|
2010
2017
|
Toolbar.prototype.activeEleRemove = function (curEle) {
|
|
2011
2018
|
if (!isNOU(this.activeEle)) {
|
|
2012
|
-
|
|
2019
|
+
if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
|
|
2020
|
+
this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
|
|
2021
|
+
}
|
|
2022
|
+
else {
|
|
2023
|
+
this.activeEle.removeAttribute('tabindex');
|
|
2024
|
+
}
|
|
2013
2025
|
}
|
|
2014
2026
|
this.activeEle = curEle;
|
|
2015
2027
|
if (this.getDataTabindex(this.activeEle) === '-1') {
|
|
@@ -2127,6 +2139,30 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2127
2139
|
nextEle = innerItems[++eleIndex];
|
|
2128
2140
|
}
|
|
2129
2141
|
};
|
|
2142
|
+
Toolbar.prototype.clearToolbarTemplate = function (templateEle) {
|
|
2143
|
+
if (this.registeredTemplate && this.registeredTemplate["" + 'template']) {
|
|
2144
|
+
var registeredTemplates = this.registeredTemplate;
|
|
2145
|
+
for (var index = 0; index < registeredTemplates["" + 'template'].length; index++) {
|
|
2146
|
+
var registeredItem = registeredTemplates["" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];
|
|
2147
|
+
var closestItem = closest(registeredItem, '.' + CLS_ITEM);
|
|
2148
|
+
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
2149
|
+
this.clearTemplate(['template'], [registeredTemplates["" + 'template'][parseInt(index.toString(), 10)]]);
|
|
2150
|
+
break;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
else if (this.portals && this.portals.length > 0) {
|
|
2155
|
+
var portals = this.portals;
|
|
2156
|
+
for (var index = 0; index < portals.length; index++) {
|
|
2157
|
+
var portalItem = portals[parseInt(index.toString(), 10)];
|
|
2158
|
+
var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
|
|
2159
|
+
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
2160
|
+
this.clearTemplate(['template'], index);
|
|
2161
|
+
break;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2130
2166
|
/**
|
|
2131
2167
|
* Gets called when the model property changes.The data that describes the old and new values of the property that changed.
|
|
2132
2168
|
*
|
|
@@ -2149,31 +2185,29 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2149
2185
|
var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
|
|
2150
2186
|
var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
|
|
2151
2187
|
var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])["" + property];
|
|
2152
|
-
if (
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
this.tbarEle.splice(this.items.length, 1);
|
|
2176
|
-
}
|
|
2188
|
+
if (this.tbarAlign || property === 'align') {
|
|
2189
|
+
this.refresh();
|
|
2190
|
+
this.trigger('created');
|
|
2191
|
+
break;
|
|
2192
|
+
}
|
|
2193
|
+
var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
|
|
2194
|
+
var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
|
|
2195
|
+
if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
|
|
2196
|
+
--this.popupPriCount;
|
|
2197
|
+
}
|
|
2198
|
+
if (isNOU(this.scrollModule)) {
|
|
2199
|
+
this.destroyMode();
|
|
2200
|
+
}
|
|
2201
|
+
var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
|
|
2202
|
+
if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
|
|
2203
|
+
this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
|
|
2204
|
+
}
|
|
2205
|
+
detach(itemCol[parseInt(index.toString(), 10)]);
|
|
2206
|
+
this.tbarEle.splice(index, 1);
|
|
2207
|
+
this.addItems([this.items[parseInt(index.toString(), 10)]], index);
|
|
2208
|
+
this.items.splice(index, 1);
|
|
2209
|
+
if (this.items[parseInt(index.toString(), 10)].template) {
|
|
2210
|
+
this.tbarEle.splice(this.items.length, 1);
|
|
2177
2211
|
}
|
|
2178
2212
|
}
|
|
2179
2213
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper
|
|
1
|
+
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper, animationMode } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {ExpandOnSettings,SortOrder,FailureEventArgs,DataBoundEventArgs,DataSourceChangedEventArgs,DrawNodeEventArgs,NodeKeyPressEventArgs,NodeCheckEventArgs,NodeClickEventArgs,NodeExpandEventArgs,DragAndDropEventArgs,NodeEditEventArgs,NodeSelectEventArgs} from "./treeview";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -548,7 +548,7 @@ export interface TreeViewModel extends ComponentModel{
|
|
|
548
548
|
/**
|
|
549
549
|
* Event callback that is raised when the TreeView node is dragged (moved) continuously.
|
|
550
550
|
*
|
|
551
|
-
|
|
551
|
+
* @deprecated
|
|
552
552
|
* @event
|
|
553
553
|
*/
|
|
554
554
|
nodeDragging?: EmitType<DragAndDropEventArgs>;
|
|
@@ -325,7 +325,7 @@ export interface NodeData {
|
|
|
325
325
|
* Interface for Failure event arguments
|
|
326
326
|
*/
|
|
327
327
|
export interface FailureEventArgs {
|
|
328
|
-
/**
|
|
328
|
+
/** Defines the error information. */
|
|
329
329
|
error?: Error;
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
@@ -899,7 +899,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
899
899
|
/**
|
|
900
900
|
* Event callback that is raised when the TreeView node is dragged (moved) continuously.
|
|
901
901
|
*
|
|
902
|
-
|
|
902
|
+
* @deprecated
|
|
903
903
|
* @event
|
|
904
904
|
*/
|
|
905
905
|
nodeDragging: EmitType<DragAndDropEventArgs>;
|