@syncfusion/ej2-navigations 20.4.40 → 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 +8 -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 +16 -6
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +16 -6
- 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 +11 -11
- package/src/breadcrumb/breadcrumb.js +2 -2
- package/src/common/menu-base-model.d.ts +1 -1
- package/src/common/menu-base.js +9 -4
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.42
|
|
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@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@20.4.40",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-aqL/RI3bBPueDC7mWSyWeklsuP5bQwak+fzLnB4ZqGi/uLtJ6A98lICKz6vGjLlyU45CfvCwIOC9Uf7aTz68EA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"/@syncfusion/ej2-spreadsheet",
|
|
39
39
|
"/@syncfusion/ej2-vue-navigations"
|
|
40
40
|
],
|
|
41
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.
|
|
42
|
-
"_shasum": "
|
|
41
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.40.tgz",
|
|
42
|
+
"_shasum": "9b232a4a3f24893f4b6611b4a1927d2e72a9823b",
|
|
43
43
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
44
44
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
45
45
|
"author": {
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
},
|
|
51
51
|
"bundleDependencies": false,
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
54
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
55
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
56
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
57
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
58
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
53
|
+
"@syncfusion/ej2-base": "~20.4.42",
|
|
54
|
+
"@syncfusion/ej2-buttons": "~20.4.42",
|
|
55
|
+
"@syncfusion/ej2-data": "~20.4.42",
|
|
56
|
+
"@syncfusion/ej2-inputs": "~20.4.42",
|
|
57
|
+
"@syncfusion/ej2-lists": "~20.4.42",
|
|
58
|
+
"@syncfusion/ej2-popups": "~20.4.42"
|
|
59
59
|
},
|
|
60
60
|
"deprecated": false,
|
|
61
61
|
"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",
|
|
@@ -160,6 +160,6 @@
|
|
|
160
160
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
161
161
|
},
|
|
162
162
|
"typings": "index.d.ts",
|
|
163
|
-
"version": "20.4.
|
|
163
|
+
"version": "20.4.42",
|
|
164
164
|
"sideEffects": false
|
|
165
165
|
}
|
|
@@ -99,7 +99,7 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
99
99
|
this._maxItems = this.maxItems;
|
|
100
100
|
this.element.setAttribute('aria-label', 'breadcrumb');
|
|
101
101
|
if (this.cssClass) {
|
|
102
|
-
addClass([this.element], this.cssClass.split(' '));
|
|
102
|
+
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
103
103
|
}
|
|
104
104
|
if (this.enableRtl) {
|
|
105
105
|
this.element.classList.add('e-rtl');
|
|
@@ -613,7 +613,7 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
613
613
|
removeClass([this.element], oldProp.cssClass.split(' '));
|
|
614
614
|
}
|
|
615
615
|
if (newProp.cssClass) {
|
|
616
|
-
addClass([this.element], newProp.cssClass.split(' '));
|
|
616
|
+
addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
617
617
|
}
|
|
618
618
|
if ((oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) && !(newProp.cssClass &&
|
|
619
619
|
newProp.cssClass.indexOf(ICONRIGHT) > -1) || !(oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, ChildProperty, NotifyPropertyChanges, INotifyPropertyChanged, AnimationModel, isBlazor } from '@syncfusion/ej2-base';import { Event, EventHandler, EmitType, BaseEventArgs, KeyboardEvents, KeyboardEventArgs, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationOptions, TouchEventArgs, MouseEventArgs } from '@syncfusion/ej2-base';import { Browser, Collection, setValue, getValue, getUniqueID, getInstance, isNullOrUndefined } from '@syncfusion/ej2-base';import { select, selectAll, closest, detach, append, rippleEffect, isVisible, Complex, addClass, removeClass } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { getZindexPartial, calculatePosition, OffsetPosition, isCollide, fit, Popup } from '@syncfusion/ej2-popups';import {
|
|
1
|
+
import { Component, Property, ChildProperty, NotifyPropertyChanges, INotifyPropertyChanged, AnimationModel, isBlazor } from '@syncfusion/ej2-base';import { Event, EventHandler, EmitType, BaseEventArgs, KeyboardEvents, KeyboardEventArgs, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationOptions, TouchEventArgs, MouseEventArgs } from '@syncfusion/ej2-base';import { Browser, Collection, setValue, getValue, getUniqueID, getInstance, isNullOrUndefined } from '@syncfusion/ej2-base';import { select, selectAll, closest, detach, append, rippleEffect, isVisible, Complex, addClass, removeClass } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { getZindexPartial, calculatePosition, OffsetPosition, isCollide, fit, Popup } from '@syncfusion/ej2-popups';import { SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { getScrollableParent } from '@syncfusion/ej2-popups';import { HScroll } from '../common/h-scroll';import { VScroll } from '../common/v-scroll';import { addScrolling, destroyScroll } from '../common/menu-scroll';
|
|
2
2
|
import {MenuEffect,MenuEventArgs,BeforeOpenCloseMenuEventArgs,OpenCloseMenuEventArgs} from "./menu-base";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
package/src/common/menu-base.js
CHANGED
|
@@ -239,7 +239,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
if (this.cssClass) {
|
|
242
|
-
addClass([wrapper], this.cssClass.split(' '));
|
|
242
|
+
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
243
243
|
}
|
|
244
244
|
if (this.enableRtl) {
|
|
245
245
|
wrapper.classList.add(RTL);
|
|
@@ -794,7 +794,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
794
794
|
}
|
|
795
795
|
else {
|
|
796
796
|
if (this.cssClass) {
|
|
797
|
-
addClass([this.popupWrapper], this.cssClass.split(' '));
|
|
797
|
+
addClass([this.popupWrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
798
798
|
}
|
|
799
799
|
this.popupObj.hide();
|
|
800
800
|
}
|
|
@@ -1205,7 +1205,12 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
var ul = ListBase.createList(this.createElement, items, listBaseOptions, !this.template, this);
|
|
1207
1207
|
ul.setAttribute('tabindex', '0');
|
|
1208
|
-
this.isMenu
|
|
1208
|
+
if (this.isMenu) {
|
|
1209
|
+
ul.setAttribute('role', 'menu');
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
ul.setAttribute('role', 'menubar');
|
|
1213
|
+
}
|
|
1209
1214
|
return ul;
|
|
1210
1215
|
};
|
|
1211
1216
|
MenuBase.prototype.moverHandler = function (e) {
|
|
@@ -1599,7 +1604,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1599
1604
|
removeClass([wrapper], oldProp.cssClass.split(' '));
|
|
1600
1605
|
}
|
|
1601
1606
|
if (newProp.cssClass) {
|
|
1602
|
-
addClass([wrapper], newProp.cssClass.split(' '));
|
|
1607
|
+
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
1603
1608
|
}
|
|
1604
1609
|
break;
|
|
1605
1610
|
case 'enableRtl':
|
|
@@ -522,6 +522,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
522
522
|
private hasTemplate;
|
|
523
523
|
private isFirstRender;
|
|
524
524
|
private isNodeDropped;
|
|
525
|
+
private isInteracted;
|
|
525
526
|
/**
|
|
526
527
|
* Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
|
|
527
528
|
* desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
|
package/src/treeview/treeview.js
CHANGED
|
@@ -216,6 +216,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
216
216
|
_this.isFirstRender = false;
|
|
217
217
|
// Specifies whether the node is dropped or not
|
|
218
218
|
_this.isNodeDropped = false;
|
|
219
|
+
_this.isInteracted = false;
|
|
219
220
|
_this.mouseDownStatus = false;
|
|
220
221
|
return _this;
|
|
221
222
|
}
|
|
@@ -1616,6 +1617,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1616
1617
|
}
|
|
1617
1618
|
if (this.isLoaded && this.expandArgs && !this.isRefreshed) {
|
|
1618
1619
|
this.expandArgs = this.getExpandEvent(currLi, null);
|
|
1620
|
+
this.expandArgs.isInteracted = this.isInteracted;
|
|
1619
1621
|
this.trigger('nodeExpanded', this.expandArgs);
|
|
1620
1622
|
}
|
|
1621
1623
|
};
|
|
@@ -1638,6 +1640,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1638
1640
|
var colArgs;
|
|
1639
1641
|
if (this.isLoaded) {
|
|
1640
1642
|
colArgs = this.getExpandEvent(currLi, e);
|
|
1643
|
+
this.isInteracted = colArgs.isInteracted;
|
|
1641
1644
|
this.trigger('nodeCollapsing', colArgs, function (observedArgs) {
|
|
1642
1645
|
if (observedArgs.cancel) {
|
|
1643
1646
|
removeClass([icon], PROCESS);
|
|
@@ -1698,6 +1701,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1698
1701
|
this.removeExpand(liEle);
|
|
1699
1702
|
if (this.isLoaded) {
|
|
1700
1703
|
colArgs = this.getExpandEvent(liEle, null);
|
|
1704
|
+
colArgs.isInteracted = this.isInteracted;
|
|
1701
1705
|
this.trigger('nodeCollapsed', colArgs);
|
|
1702
1706
|
}
|
|
1703
1707
|
};
|
|
@@ -2112,6 +2116,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2112
2116
|
}
|
|
2113
2117
|
if (this.isLoaded && !this.isRefreshed) {
|
|
2114
2118
|
this.expandArgs = this.getExpandEvent(currLi, e);
|
|
2119
|
+
this.isInteracted = this.expandArgs.isInteracted;
|
|
2115
2120
|
this.trigger('nodeExpanding', this.expandArgs, function (observedArgs) {
|
|
2116
2121
|
if (observedArgs.cancel) {
|
|
2117
2122
|
removeClass([icon], PROCESS);
|