@syncfusion/ej2-navigations 20.2.48 → 20.2.50
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 +10 -0
- 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 +28 -16
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +29 -17
- 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 +6 -6
- package/src/common/menu-base.js +3 -1
- package/src/tab/tab.js +2 -2
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +24 -14
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.50
|
|
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.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@20.2.49",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-QWo23LdhTxEC1sDeDUts4kHXsOA+rvN1AIB0FwOAovw9qIlIeZj50rGMMqqEvhkgPX+QeCNfx8I7Jhp8TNgPWA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"/@syncfusion/ej2-spreadsheet",
|
|
38
38
|
"/@syncfusion/ej2-vue-navigations"
|
|
39
39
|
],
|
|
40
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.
|
|
41
|
-
"_shasum": "
|
|
40
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.49.tgz",
|
|
41
|
+
"_shasum": "71b865bacc3b00a97d00c51c0c6d23925d887c21",
|
|
42
42
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
43
43
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
44
44
|
"author": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@syncfusion/ej2-data": "~20.2.45",
|
|
55
55
|
"@syncfusion/ej2-inputs": "~20.2.48",
|
|
56
56
|
"@syncfusion/ej2-lists": "~20.2.46",
|
|
57
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
57
|
+
"@syncfusion/ej2-popups": "~20.2.49"
|
|
58
58
|
},
|
|
59
59
|
"deprecated": false,
|
|
60
60
|
"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",
|
|
@@ -159,6 +159,6 @@
|
|
|
159
159
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
160
160
|
},
|
|
161
161
|
"typings": "index.d.ts",
|
|
162
|
-
"version": "20.2.
|
|
162
|
+
"version": "20.2.50",
|
|
163
163
|
"sideEffects": false
|
|
164
164
|
}
|
package/src/common/menu-base.js
CHANGED
|
@@ -2054,7 +2054,9 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
2054
2054
|
navIdx = this.getIndex(items[i], isUniqueId);
|
|
2055
2055
|
idx = navIdx.pop();
|
|
2056
2056
|
iitems = this.getItems(navIdx);
|
|
2057
|
-
|
|
2057
|
+
if (!isNullOrUndefined(idx)) {
|
|
2058
|
+
this.removeItem(iitems, navIdx, idx);
|
|
2059
|
+
}
|
|
2058
2060
|
}
|
|
2059
2061
|
};
|
|
2060
2062
|
/**
|
package/src/tab/tab.js
CHANGED
|
@@ -1060,8 +1060,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
else {
|
|
1062
1062
|
if (this.overflowMode === 'MultiRow') {
|
|
1063
|
-
var
|
|
1064
|
-
setStyle(
|
|
1063
|
+
var top_1 = this.headerPlacement === 'Bottom' ? trg.offsetTop : trg.offsetHeight + trg.offsetTop;
|
|
1064
|
+
setStyle(bar, { 'top': top_1 + 'px', 'height': '' });
|
|
1065
1065
|
}
|
|
1066
1066
|
else {
|
|
1067
1067
|
setStyle(bar, { 'top': '', 'height': '' });
|
|
@@ -1029,6 +1029,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
1029
1029
|
private setCssClass;
|
|
1030
1030
|
private editingHandler;
|
|
1031
1031
|
private createTextbox;
|
|
1032
|
+
private renderTextBox;
|
|
1032
1033
|
private updateOldText;
|
|
1033
1034
|
private inputFocusOut;
|
|
1034
1035
|
private appendNewText;
|
package/src/treeview/treeview.js
CHANGED
|
@@ -2736,27 +2736,37 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2736
2736
|
this.trigger('nodeEditing', eventArgs, function (observedArgs) {
|
|
2737
2737
|
if (!observedArgs.cancel) {
|
|
2738
2738
|
var inpWidth = textEle.offsetWidth + 5;
|
|
2739
|
-
var
|
|
2739
|
+
var style_1 = 'width:' + inpWidth + 'px';
|
|
2740
2740
|
addClass([liEle], EDITING);
|
|
2741
2741
|
if (!isNOU(_this.nodeTemplateFn)) {
|
|
2742
2742
|
_this.destroyTemplate(liEle);
|
|
2743
2743
|
}
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
}
|
|
2752
|
-
_this.inputObj.container.setAttribute('style', style);
|
|
2753
|
-
inpEle.focus();
|
|
2754
|
-
var inputEle = inpEle;
|
|
2755
|
-
inputEle.setSelectionRange(0, inputEle.value.length);
|
|
2756
|
-
_this.wireInputEvents(inpEle);
|
|
2744
|
+
if (_this.isReact) {
|
|
2745
|
+
setTimeout(function () {
|
|
2746
|
+
_this.renderTextBox(eventArgs, textEle, style_1);
|
|
2747
|
+
}, 5);
|
|
2748
|
+
}
|
|
2749
|
+
else {
|
|
2750
|
+
_this.renderTextBox(eventArgs, textEle, style_1);
|
|
2751
|
+
}
|
|
2757
2752
|
}
|
|
2758
2753
|
});
|
|
2759
2754
|
};
|
|
2755
|
+
TreeView.prototype.renderTextBox = function (eventArgs, textEle, style) {
|
|
2756
|
+
textEle.innerHTML = eventArgs.innerHtml;
|
|
2757
|
+
var inpEle = select('.' + TREEINPUT, textEle);
|
|
2758
|
+
this.inputObj = Input.createInput({
|
|
2759
|
+
element: inpEle,
|
|
2760
|
+
properties: {
|
|
2761
|
+
enableRtl: this.enableRtl,
|
|
2762
|
+
}
|
|
2763
|
+
}, this.createElement);
|
|
2764
|
+
this.inputObj.container.setAttribute('style', style);
|
|
2765
|
+
inpEle.focus();
|
|
2766
|
+
var inputEle = inpEle;
|
|
2767
|
+
inputEle.setSelectionRange(0, inputEle.value.length);
|
|
2768
|
+
this.wireInputEvents(inpEle);
|
|
2769
|
+
};
|
|
2760
2770
|
TreeView.prototype.updateOldText = function (liEle) {
|
|
2761
2771
|
var id = liEle.getAttribute('data-uid');
|
|
2762
2772
|
this.editData = this.getNodeObject(id);
|