@syncfusion/ej2-treegrid 20.3.47 → 20.3.48
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 +3 -0
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +12 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -3
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/treegrid/actions/edit.js +10 -1
- package/src/treegrid/base/treegrid.js +2 -2
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/treegrid/_layout.scss +1 -1
- package/styles/treegrid/bootstrap5-dark.css +1 -1
- package/styles/treegrid/bootstrap5.css +1 -1
- package/styles/treegrid/fluent-dark.css +1 -1
- package/styles/treegrid/fluent.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.48
|
|
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-treegrid@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-treegrid@20.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@20.3.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-h6rSxBpMoZDLav2suqY58wIzpy42bpTtxPL/2APnJc98TC6Nk2c7seEgn4iJkc2hJ7AzZ+BEaTpJU72+r+W7vg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-treegrid",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"/@syncfusion/ej2-react-treegrid",
|
|
25
25
|
"/@syncfusion/ej2-vue-treegrid"
|
|
26
26
|
],
|
|
27
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.47.tgz",
|
|
28
|
+
"_shasum": "1847003b673227740c5a591d0292fe16bc4615b8",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~20.3.
|
|
39
|
+
"@syncfusion/ej2-base": "~20.3.48",
|
|
40
40
|
"@syncfusion/ej2-data": "~20.3.47",
|
|
41
|
-
"@syncfusion/ej2-grids": "~20.3.
|
|
42
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
41
|
+
"@syncfusion/ej2-grids": "~20.3.48",
|
|
42
|
+
"@syncfusion/ej2-popups": "~20.3.48"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
45
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
61
61
|
},
|
|
62
62
|
"typings": "index.d.ts",
|
|
63
|
-
"version": "20.3.
|
|
63
|
+
"version": "20.3.48",
|
|
64
64
|
"sideEffects": false
|
|
65
65
|
}
|
|
@@ -241,6 +241,10 @@ var Edit = /** @class */ (function () {
|
|
|
241
241
|
}
|
|
242
242
|
this.updateGridEditMode('Batch');
|
|
243
243
|
}
|
|
244
|
+
else if (this.parent.editSettings.mode === 'Cell' && (!column.allowEditing || column.isPrimaryKey)) {
|
|
245
|
+
this.isOnBatch = true;
|
|
246
|
+
this.updateGridEditMode('Batch');
|
|
247
|
+
}
|
|
244
248
|
};
|
|
245
249
|
Edit.prototype.updateGridEditMode = function (mode) {
|
|
246
250
|
this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
|
|
@@ -917,7 +921,12 @@ var Edit = /** @class */ (function () {
|
|
|
917
921
|
}
|
|
918
922
|
index = (childRecordCount1 > 0) ? (currentDataIndex1 + childRecordCount1) : (currentDataIndex1);
|
|
919
923
|
if (this.isSelfReference) {
|
|
920
|
-
|
|
924
|
+
if (!this.parent.isLocalData && this.parent.editModule.selectedIndex === -1) {
|
|
925
|
+
value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = null;
|
|
926
|
+
}
|
|
927
|
+
else {
|
|
928
|
+
value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
|
|
929
|
+
}
|
|
921
930
|
if (!isNullOrUndefined(value.parentItem)) {
|
|
922
931
|
updateParentRow(key, value.parentItem, 'add', this.parent, this.isSelfReference, value);
|
|
923
932
|
}
|
|
@@ -747,12 +747,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
747
747
|
this.trigger(getObject('name', args), args);
|
|
748
748
|
};
|
|
749
749
|
TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
|
|
750
|
-
if (args['name'] ===
|
|
750
|
+
if (args['name'] === 'rowSelecting' && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
|
|
751
751
|
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')) && (isNullOrUndefined(args['previousRowIndex']))) {
|
|
752
752
|
args.cancel = true;
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
else if (args['name'] ===
|
|
755
|
+
else if (args['name'] === 'rowDeselecting' && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
|
|
756
756
|
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')))) {
|
|
757
757
|
args.cancel = true;
|
|
758
758
|
return;
|
package/styles/bootstrap5.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
.e-treecell {
|
|
175
175
|
display: table-cell;
|
|
176
176
|
@if $skin-name == 'bootstrap5' or $skin-name == 'boostrap5-dark' or $skin-name == 'FluentUI' or $theme-name == 'fluentui-dark' {
|
|
177
|
-
line-height:
|
|
177
|
+
line-height: 19px;
|
|
178
178
|
}
|
|
179
179
|
@else {
|
|
180
180
|
line-height: normal;
|