@syncfusion/ej2-navigations 22.2.8 → 22.2.11
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 +12 -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 +32 -2
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +34 -2
- 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 +10 -10
- package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
- package/src/breadcrumb/breadcrumb.js +9 -2
- package/src/carousel/carousel.d.ts +1 -0
- package/src/carousel/carousel.js +9 -0
- package/src/tab/tab.js +5 -0
- package/src/treeview/treeview-model.d.ts +1 -1
- package/src/treeview/treeview.js +11 -0
- package/styles/accordion/material.css +1 -1
- package/styles/appbar/material.css +1 -1
- package/styles/breadcrumb/material.css +1 -1
- package/styles/carousel/material.css +1 -1
- package/styles/context-menu/material.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/material.css +1 -1
- package/styles/menu/material.css +1 -1
- package/styles/pager/material.css +1 -1
- package/styles/sidebar/material.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/toolbar/material.css +1 -1
- package/styles/treeview/material.css +1 -1
- package/styles/v-scroll/material.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, initializeCSPTemplate, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
3
3
|
import { Popup, calculatePosition, createSpinner, fit, getScrollableParent, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
|
|
4
4
|
import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
|
|
@@ -7592,6 +7592,11 @@ let Tab = class Tab extends Component {
|
|
|
7592
7592
|
this.renderContainer();
|
|
7593
7593
|
this.wireEvents();
|
|
7594
7594
|
this.initRender = false;
|
|
7595
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
7596
|
+
this.renderReactTemplates(function () {
|
|
7597
|
+
this.refreshActiveBorder();
|
|
7598
|
+
});
|
|
7599
|
+
}
|
|
7595
7600
|
}
|
|
7596
7601
|
renderContainer() {
|
|
7597
7602
|
const ele = this.element;
|
|
@@ -10522,6 +10527,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10522
10527
|
}
|
|
10523
10528
|
}
|
|
10524
10529
|
let eNodes = selectAll('.' + EXPANDED, element);
|
|
10530
|
+
if (!this.loadOnDemand) {
|
|
10531
|
+
this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
|
|
10532
|
+
}
|
|
10525
10533
|
if (!this.isInitalExpand) {
|
|
10526
10534
|
for (let i = 0; i < eNodes.length; i++) {
|
|
10527
10535
|
this.renderChildNodes(eNodes[i]);
|
|
@@ -11026,6 +11034,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11026
11034
|
}
|
|
11027
11035
|
doExpandAction() {
|
|
11028
11036
|
let eUids = this.expandedNodes;
|
|
11037
|
+
if (!this.loadOnDemand) {
|
|
11038
|
+
this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
|
|
11039
|
+
}
|
|
11029
11040
|
if (this.isInitalExpand && eUids.length > 0) {
|
|
11030
11041
|
this.setProperties({ expandedNodes: [] }, true);
|
|
11031
11042
|
/* eslint-disable */
|
|
@@ -11463,6 +11474,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11463
11474
|
if (callback) {
|
|
11464
11475
|
callback();
|
|
11465
11476
|
}
|
|
11477
|
+
if (expandChild) {
|
|
11478
|
+
this.expandedNodes.push(parentLi.getAttribute('data-uid'));
|
|
11479
|
+
}
|
|
11466
11480
|
if (this.treeList.length === 0 && !this.isLoaded) {
|
|
11467
11481
|
this.finalize();
|
|
11468
11482
|
}
|
|
@@ -15811,7 +15825,14 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
15811
15825
|
if (i % 2) {
|
|
15812
15826
|
// separator item
|
|
15813
15827
|
wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
|
|
15814
|
-
|
|
15828
|
+
if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
|
|
15829
|
+
listBaseOptions.template = initializeCSPTemplate(function () {
|
|
15830
|
+
return '/';
|
|
15831
|
+
});
|
|
15832
|
+
}
|
|
15833
|
+
else {
|
|
15834
|
+
listBaseOptions.template = this.separatorTemplate;
|
|
15835
|
+
}
|
|
15815
15836
|
listBaseOptions.itemClass = 'e-breadcrumb-separator';
|
|
15816
15837
|
isSingleLevel = false;
|
|
15817
15838
|
item = [{ previousItem: items[j], nextItem: items[j + 1] }];
|
|
@@ -17361,6 +17382,13 @@ let Carousel = class Carousel extends Component {
|
|
|
17361
17382
|
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
17362
17383
|
}
|
|
17363
17384
|
}
|
|
17385
|
+
resizeHandler() {
|
|
17386
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
17387
|
+
const numOfItems = this.getNumOfItems();
|
|
17388
|
+
const slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
17389
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
17390
|
+
}
|
|
17391
|
+
}
|
|
17364
17392
|
wireEvents() {
|
|
17365
17393
|
if (!(this.animationEffect === 'Custom')) {
|
|
17366
17394
|
this.swipeModehandlers();
|
|
@@ -17369,6 +17397,7 @@ let Carousel = class Carousel extends Component {
|
|
|
17369
17397
|
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
17370
17398
|
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
17371
17399
|
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
17400
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
17372
17401
|
}
|
|
17373
17402
|
unWireEvents() {
|
|
17374
17403
|
const indicators = [].slice.call(this.element.querySelectorAll(`.${CLS_INDICATOR_BAR}`));
|
|
@@ -17387,6 +17416,7 @@ let Carousel = class Carousel extends Component {
|
|
|
17387
17416
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
17388
17417
|
EventHandler.clearEvents(this.element);
|
|
17389
17418
|
EventHandler.clearEvents(this.itemsContainer);
|
|
17419
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
17390
17420
|
}
|
|
17391
17421
|
/**
|
|
17392
17422
|
* Method to transit from the current slide to the previous slide.
|