@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.11
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@22.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@22.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-GfpbncyICmmctljscMk/6Ti1+OpGGuIFBxm0Ti012hR/YP8Q45c628+mdJbbeZR98iNiukE4SivYdYxdU8z63w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"/@syncfusion/ej2-spreadsheet",
|
|
40
40
|
"/@syncfusion/ej2-vue-navigations"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.8.tgz",
|
|
43
|
+
"_shasum": "f56389920bf2f999ea4528232b989bc2fa0b21a0",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bundleDependencies": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@syncfusion/ej2-base": "~22.2.
|
|
55
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
54
|
+
"@syncfusion/ej2-base": "~22.2.10",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~22.2.9",
|
|
56
56
|
"@syncfusion/ej2-data": "~22.2.5",
|
|
57
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
58
|
-
"@syncfusion/ej2-lists": "~22.2.
|
|
59
|
-
"@syncfusion/ej2-popups": "~22.2.
|
|
57
|
+
"@syncfusion/ej2-inputs": "~22.2.9",
|
|
58
|
+
"@syncfusion/ej2-lists": "~22.2.11",
|
|
59
|
+
"@syncfusion/ej2-popups": "~22.2.11"
|
|
60
60
|
},
|
|
61
61
|
"deprecated": false,
|
|
62
62
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
162
162
|
},
|
|
163
163
|
"typings": "index.d.ts",
|
|
164
|
-
"version": "22.2.
|
|
164
|
+
"version": "22.2.11",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -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, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
21
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
22
22
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
23
23
|
var ICONRIGHT = 'e-icon-right';
|
|
@@ -293,7 +293,14 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
293
293
|
if (i % 2) {
|
|
294
294
|
// separator item
|
|
295
295
|
wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
|
|
296
|
-
|
|
296
|
+
if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
|
|
297
|
+
listBaseOptions.template = initializeCSPTemplate(function () {
|
|
298
|
+
return '/';
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
listBaseOptions.template = this.separatorTemplate;
|
|
303
|
+
}
|
|
297
304
|
listBaseOptions.itemClass = 'e-breadcrumb-separator';
|
|
298
305
|
isSingleLevel = false;
|
|
299
306
|
item = [{ previousItem: items[j_1], nextItem: items[j_1 + 1] }];
|
package/src/carousel/carousel.js
CHANGED
|
@@ -1092,6 +1092,13 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1092
1092
|
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
+
Carousel.prototype.resizeHandler = function () {
|
|
1096
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
1097
|
+
var numOfItems = this.getNumOfItems();
|
|
1098
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1099
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1095
1102
|
Carousel.prototype.wireEvents = function () {
|
|
1096
1103
|
if (!(this.animationEffect === 'Custom')) {
|
|
1097
1104
|
this.swipeModehandlers();
|
|
@@ -1100,6 +1107,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1100
1107
|
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
1101
1108
|
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
1102
1109
|
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
1110
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
1103
1111
|
};
|
|
1104
1112
|
Carousel.prototype.unWireEvents = function () {
|
|
1105
1113
|
var _this = this;
|
|
@@ -1119,6 +1127,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1119
1127
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
1120
1128
|
EventHandler.clearEvents(this.element);
|
|
1121
1129
|
EventHandler.clearEvents(this.itemsContainer);
|
|
1130
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
1122
1131
|
};
|
|
1123
1132
|
/**
|
|
1124
1133
|
* Method to transit from the current slide to the previous slide.
|
package/src/tab/tab.js
CHANGED
|
@@ -316,6 +316,11 @@ var Tab = /** @class */ (function (_super) {
|
|
|
316
316
|
this.renderContainer();
|
|
317
317
|
this.wireEvents();
|
|
318
318
|
this.initRender = false;
|
|
319
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
320
|
+
this.renderReactTemplates(function () {
|
|
321
|
+
this.refreshActiveBorder();
|
|
322
|
+
});
|
|
323
|
+
}
|
|
319
324
|
};
|
|
320
325
|
Tab.prototype.renderContainer = function () {
|
|
321
326
|
var ele = this.element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper
|
|
1
|
+
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper } 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
|
|
package/src/treeview/treeview.js
CHANGED
|
@@ -853,6 +853,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
853
853
|
return list;
|
|
854
854
|
};
|
|
855
855
|
TreeView.prototype.finalizeNode = function (element) {
|
|
856
|
+
var _this = this;
|
|
856
857
|
var iNodes = selectAll('.' + IMAGE, element);
|
|
857
858
|
for (var k = 0; k < iNodes.length; k++) {
|
|
858
859
|
iNodes[k].setAttribute('alt', IMAGE);
|
|
@@ -873,6 +874,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
873
874
|
}
|
|
874
875
|
}
|
|
875
876
|
var eNodes = selectAll('.' + EXPANDED, element);
|
|
877
|
+
if (!this.loadOnDemand) {
|
|
878
|
+
this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
|
|
879
|
+
}
|
|
876
880
|
if (!this.isInitalExpand) {
|
|
877
881
|
for (var i = 0; i < eNodes.length; i++) {
|
|
878
882
|
this.renderChildNodes(eNodes[i]);
|
|
@@ -1377,7 +1381,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1377
1381
|
}
|
|
1378
1382
|
};
|
|
1379
1383
|
TreeView.prototype.doExpandAction = function () {
|
|
1384
|
+
var _this = this;
|
|
1380
1385
|
var eUids = this.expandedNodes;
|
|
1386
|
+
if (!this.loadOnDemand) {
|
|
1387
|
+
this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
|
|
1388
|
+
}
|
|
1381
1389
|
if (this.isInitalExpand && eUids.length > 0) {
|
|
1382
1390
|
this.setProperties({ expandedNodes: [] }, true);
|
|
1383
1391
|
/* eslint-disable */
|
|
@@ -1819,6 +1827,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1819
1827
|
if (callback) {
|
|
1820
1828
|
callback();
|
|
1821
1829
|
}
|
|
1830
|
+
if (expandChild) {
|
|
1831
|
+
this.expandedNodes.push(parentLi.getAttribute('data-uid'));
|
|
1832
|
+
}
|
|
1822
1833
|
if (this.treeList.length === 0 && !this.isLoaded) {
|
|
1823
1834
|
this.finalize();
|
|
1824
1835
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! component's theme wise override material-definitions and variables */
|
|
3
3
|
/*! accordion icons */
|
|
4
4
|
.e-accordion .e-tgl-collapse-icon::before {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! Carousel component material theme definitions and variables */
|
|
3
3
|
.e-carousel .e-previous-icon::before {
|
|
4
4
|
content: "\e904";
|
package/styles/material.css
CHANGED
package/styles/menu/material.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! Material theme definition's */
|
|
3
3
|
/*! component's theme wise override definitions and variables */
|
|
4
4
|
/* stylelint-disable-line no-empty-source */ /* stylelint-disable-line no-empty-source */
|
package/styles/tab/material.css
CHANGED