@syncfusion/ej2-treegrid 22.1.34 → 22.1.37
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 +20 -1
- 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 +147 -64
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +148 -64
- 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/freeze-column.js +1 -5
- package/src/treegrid/actions/selection.js +2 -2
- package/src/treegrid/base/treegrid.d.ts +9 -0
- package/src/treegrid/base/treegrid.js +134 -55
- package/src/treegrid/renderer/virtual-tree-content-render.js +12 -3
- package/styles/material3-dark.css +20 -11
- package/styles/material3.css +20 -11
- package/styles/treegrid/material3-dark.css +20 -11
- package/styles/treegrid/material3.css +20 -11
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.37
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@22.1.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-v4Iu+lVo/s6DbIN6B2tpcuh7jPfd9YmIexRJ36AEq/+COecwEQJ9Svj4BwgHhqmArel/uC7MIHXeiuyRU7/5nw==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-22.1.36.tgz",
|
|
28
|
+
"_shasum": "863e6c49ec54bc9b0717212ba2e55c6cd50f7467",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~22.1.34",
|
|
40
|
-
"@syncfusion/ej2-data": "~22.1.
|
|
41
|
-
"@syncfusion/ej2-grids": "~22.1.
|
|
42
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
40
|
+
"@syncfusion/ej2-data": "~22.1.36",
|
|
41
|
+
"@syncfusion/ej2-grids": "~22.1.37",
|
|
42
|
+
"@syncfusion/ej2-popups": "~22.1.37"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
45
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
67
67
|
},
|
|
68
68
|
"typings": "index.d.ts",
|
|
69
|
-
"version": "22.1.
|
|
69
|
+
"version": "22.1.37",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnFreezeContentRenderer, ColumnFreezeHeaderRenderer,
|
|
1
|
+
import { ColumnFreezeContentRenderer, ColumnFreezeHeaderRenderer, FreezeRender, parentsUntil, RenderType } from '@syncfusion/ej2-grids';
|
|
2
2
|
import { Grid, Freeze as FreezeColumn } from '@syncfusion/ej2-grids';
|
|
3
3
|
import { addClass, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
import { ColumnVirtualTreeFreezeRenderer, VirtualTreeFreezeRenderer, VirtualTreeFreezeHdrRenderer } from '../renderer/virtual-tree-freeze-render';
|
|
@@ -48,10 +48,6 @@ var Freeze = /** @class */ (function () {
|
|
|
48
48
|
getValue('addRenderer', renderer)
|
|
49
49
|
.apply(renderer, [RenderType.Content, new VirtualTreeFreezeRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
|
|
50
50
|
}
|
|
51
|
-
else {
|
|
52
|
-
getValue('addRenderer', renderer)
|
|
53
|
-
.apply(renderer, [RenderType.Content, new FreezeContentRender(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
|
|
54
|
-
}
|
|
55
51
|
}
|
|
56
52
|
if (this.parent.getFrozenLeftColumnsCount() || this.parent.getFrozenRightColumnsCount()) {
|
|
57
53
|
getValue('addRenderer', renderer)
|
|
@@ -355,11 +355,11 @@ var Selection = /** @class */ (function () {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
Selection.prototype.updateSelectedItems = function (currentRecord, checkState) {
|
|
358
|
-
var record = this.parent.
|
|
358
|
+
var record = this.parent.grid.currentViewData.filter(function (e) {
|
|
359
359
|
return e.uniqueID === currentRecord.uniqueID;
|
|
360
360
|
});
|
|
361
361
|
var checkedRecord;
|
|
362
|
-
var recordIndex = this.parent.
|
|
362
|
+
var recordIndex = this.parent.grid.currentViewData.indexOf(record[0]);
|
|
363
363
|
var checkboxRecord = getParentData(this.parent, currentRecord.uniqueID);
|
|
364
364
|
var tr = this.parent.getRows()[parseInt(recordIndex.toString(), 10)];
|
|
365
365
|
var checkbox;
|
|
@@ -86,6 +86,12 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
86
86
|
private isAddedFromGantt;
|
|
87
87
|
private isIndentEnabled;
|
|
88
88
|
private indentOutdentAction;
|
|
89
|
+
private isCollapsedEventTriggered;
|
|
90
|
+
private isCollapsingEventTriggered;
|
|
91
|
+
private isExpandedEventTriggered;
|
|
92
|
+
private isExpandingEventTriggered;
|
|
93
|
+
private collapseAllPrevent;
|
|
94
|
+
private expandAllPrevent;
|
|
89
95
|
/**
|
|
90
96
|
* The `sortModule` is used to manipulate sorting in TreeGrid.
|
|
91
97
|
*/
|
|
@@ -1582,6 +1588,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
1582
1588
|
*/
|
|
1583
1589
|
getColumns(isRefresh?: boolean): Column[];
|
|
1584
1590
|
private updateColumnModel;
|
|
1591
|
+
private updateColumnsWidth;
|
|
1585
1592
|
/**
|
|
1586
1593
|
* Gets the content div of the TreeGrid.
|
|
1587
1594
|
*
|
|
@@ -1731,6 +1738,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
1731
1738
|
* @returns {void}
|
|
1732
1739
|
*/
|
|
1733
1740
|
expandRow(row: HTMLTableRowElement, record?: Object, key?: Object, level?: number): void;
|
|
1741
|
+
private expandRows;
|
|
1734
1742
|
private expandCollapseAllChildren;
|
|
1735
1743
|
private setHeightForFrozenContent;
|
|
1736
1744
|
private getCollapseExpandRecords;
|
|
@@ -1743,6 +1751,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
1743
1751
|
* @returns {void}
|
|
1744
1752
|
*/
|
|
1745
1753
|
collapseRow(row: HTMLTableRowElement, record?: Object, key?: Object): void;
|
|
1754
|
+
private collapseRows;
|
|
1746
1755
|
private updateExpandStateMapping;
|
|
1747
1756
|
/**
|
|
1748
1757
|
* Expands the records at specific hierarchical level
|
|
@@ -2304,21 +2304,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2304
2304
|
this.stackedHeader = true;
|
|
2305
2305
|
}
|
|
2306
2306
|
if (this.stackedHeader && this.allowResizing) {
|
|
2307
|
-
|
|
2308
|
-
if (!isNullOrUndefined(this.columns[parseInt(i.toString(), 10)].columns)) {
|
|
2309
|
-
for (var j = 0; j < this.columns[parseInt(i.toString(), 10)].columns.length; j++) {
|
|
2310
|
-
var stackedColumn = this.columns[parseInt(i.toString(), 10)]
|
|
2311
|
-
.columns[parseInt(j.toString(), 10)];
|
|
2312
|
-
var currentColumn = this.grid.getColumnByField(stackedColumn.field);
|
|
2313
|
-
stackedColumn.width = currentColumn.width;
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
else if (!isNullOrUndefined(this.columns[parseInt(i.toString(), 10)].field)) {
|
|
2317
|
-
var currentColumn = this.grid.getColumnByField(this.columns[parseInt(i.toString(), 10)]
|
|
2318
|
-
.field);
|
|
2319
|
-
this.columns[parseInt(i.toString(), 10)].width = currentColumn.width;
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2307
|
+
this.updateColumnsWidth(this.columns);
|
|
2322
2308
|
}
|
|
2323
2309
|
if (!this.stackedHeader) {
|
|
2324
2310
|
merge(this.columns, this.columnModel);
|
|
@@ -2326,6 +2312,18 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2326
2312
|
this["" + deepMerge] = undefined; // Workaround for blazor updateModel
|
|
2327
2313
|
return this.columnModel;
|
|
2328
2314
|
};
|
|
2315
|
+
TreeGrid.prototype.updateColumnsWidth = function (columns) {
|
|
2316
|
+
var _this = this;
|
|
2317
|
+
columns.forEach(function (column) {
|
|
2318
|
+
if (column.columns) {
|
|
2319
|
+
_this.updateColumnsWidth(column.columns);
|
|
2320
|
+
}
|
|
2321
|
+
else if (column.field) {
|
|
2322
|
+
var currentColumn = _this.grid.getColumnByField(column.field);
|
|
2323
|
+
column.width = currentColumn.width;
|
|
2324
|
+
}
|
|
2325
|
+
});
|
|
2326
|
+
};
|
|
2329
2327
|
/**
|
|
2330
2328
|
* Gets the content div of the TreeGrid.
|
|
2331
2329
|
*
|
|
@@ -2378,7 +2376,8 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2378
2376
|
* @isGenericType true
|
|
2379
2377
|
*/
|
|
2380
2378
|
TreeGrid.prototype.getCurrentViewRecords = function () {
|
|
2381
|
-
|
|
2379
|
+
var isSummaryRow = 'isSummaryRow';
|
|
2380
|
+
return this.grid.currentViewData.filter(function (e) { return isNullOrUndefined(e["" + isSummaryRow]); });
|
|
2382
2381
|
};
|
|
2383
2382
|
/**
|
|
2384
2383
|
* Gets the added, edited,and deleted data before bulk save to the DataSource in batch mode.
|
|
@@ -2611,28 +2610,70 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2611
2610
|
*/
|
|
2612
2611
|
TreeGrid.prototype.expandRow = function (row, record, key, level) {
|
|
2613
2612
|
var _this = this;
|
|
2613
|
+
var parentRec = this.parentData;
|
|
2614
|
+
if (!this.enableVirtualization) {
|
|
2615
|
+
parentRec = this.flatData.filter(function (e) {
|
|
2616
|
+
return e.hasChildRecords;
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2614
2619
|
record = this.getCollapseExpandRecords(row, record);
|
|
2615
2620
|
if (!isNullOrUndefined(row) && row.cells[0].classList.contains('e-lastrowcell')) {
|
|
2616
2621
|
this.lastRowBorder(row, false);
|
|
2617
2622
|
}
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2623
|
+
if (this.isExpandAll && !isRemoteData(this)) {
|
|
2624
|
+
var args = { data: parentRec, row: row, cancel: false };
|
|
2625
|
+
var pagerValuePresent = false;
|
|
2626
|
+
if (this.grid.pagerModule && !isNullOrUndefined(this.grid.pagerModule.pagerObj.pagerdropdownModule)) {
|
|
2627
|
+
pagerValuePresent = this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value ? true : false;
|
|
2628
|
+
}
|
|
2629
|
+
if (!this.isExpandingEventTriggered) {
|
|
2630
|
+
this.trigger(events.expanding, args, function (expandingArgs) {
|
|
2631
|
+
_this.expandAllPrevent = expandingArgs.cancel;
|
|
2632
|
+
if (!expandingArgs.cancel) {
|
|
2633
|
+
if (expandingArgs.expandAll) {
|
|
2634
|
+
_this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
2635
|
+
}
|
|
2636
|
+
_this.expandRows(row, record, parentRec, key, level);
|
|
2631
2637
|
}
|
|
2632
|
-
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
2641
|
+
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
2642
|
+
this.expandRows(row, record, parentRec, key, level);
|
|
2643
|
+
}
|
|
2644
|
+
this.isExpandingEventTriggered = true;
|
|
2645
|
+
}
|
|
2646
|
+
else if (!this.isExpandAll || (this.isExpandAll && isRemoteData(this))) {
|
|
2647
|
+
var args = { data: record, row: row, cancel: false };
|
|
2648
|
+
this.trigger(events.expanding, args, function (expandingArgs) {
|
|
2649
|
+
if (!expandingArgs.cancel) {
|
|
2650
|
+
if (expandingArgs.expandAll) {
|
|
2651
|
+
_this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
2652
|
+
}
|
|
2653
|
+
_this.expandRows(row, record, parentRec, key, level);
|
|
2633
2654
|
}
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
};
|
|
2658
|
+
// Internal method to handle the rows expand
|
|
2659
|
+
TreeGrid.prototype.expandRows = function (row, record, parentRec, key, level) {
|
|
2660
|
+
this.expandCollapse('expand', row, record);
|
|
2661
|
+
var children = 'Children';
|
|
2662
|
+
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record["" + children]))) {
|
|
2663
|
+
var expandArgs = { data: record, row: row };
|
|
2664
|
+
this.setHeightForFrozenContent();
|
|
2665
|
+
if (!isNullOrUndefined(this.expandStateMapping)) {
|
|
2666
|
+
this.updateExpandStateMapping(expandArgs.data, true);
|
|
2634
2667
|
}
|
|
2635
|
-
|
|
2668
|
+
if (this.isExpandAll && !this.isExpandedEventTriggered) {
|
|
2669
|
+
this.isExpandedEventTriggered = true;
|
|
2670
|
+
expandArgs = { data: parentRec, row: row };
|
|
2671
|
+
this.trigger(events.expanded, expandArgs);
|
|
2672
|
+
}
|
|
2673
|
+
else if (!this.isExpandAll) {
|
|
2674
|
+
this.trigger(events.expanded, expandArgs);
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2636
2677
|
};
|
|
2637
2678
|
TreeGrid.prototype.expandCollapseAllChildren = function (record, action, key, level) {
|
|
2638
2679
|
if ((!isNullOrUndefined(key) && record[this.getPrimaryKeyFieldNames()[0]] !== key) ||
|
|
@@ -2690,31 +2731,65 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2690
2731
|
*/
|
|
2691
2732
|
TreeGrid.prototype.collapseRow = function (row, record, key) {
|
|
2692
2733
|
var _this = this;
|
|
2734
|
+
var parentRec = this.parentData;
|
|
2735
|
+
if (!this.enableVirtualization) {
|
|
2736
|
+
parentRec = this.flatData.filter(function (e) {
|
|
2737
|
+
return e.hasChildRecords;
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2693
2740
|
record = this.getCollapseExpandRecords(row, record);
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
if (!
|
|
2697
|
-
|
|
2698
|
-
_this.
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
if (!isRemoteData(_this)) {
|
|
2703
|
-
_this.setHeightForFrozenContent();
|
|
2704
|
-
if (!isNullOrUndefined(_this.expandStateMapping)) {
|
|
2705
|
-
_this.updateExpandStateMapping(collapseArgs.data, false);
|
|
2706
|
-
}
|
|
2707
|
-
_this.trigger(events.collapsed, collapseArgs);
|
|
2708
|
-
if (_this.enableInfiniteScrolling) {
|
|
2709
|
-
var scrollHeight = _this.grid.getContent().firstElementChild.scrollHeight;
|
|
2710
|
-
var scrollTop = _this.grid.getContent().firstElementChild.scrollTop;
|
|
2711
|
-
if ((scrollHeight - scrollTop) < _this.grid.getRowHeight() + +_this.height) {
|
|
2712
|
-
_this.grid.getContent().firstElementChild.scrollBy(0, _this.grid.getRowHeight());
|
|
2741
|
+
if (this.isCollapseAll && !isRemoteData(this)) {
|
|
2742
|
+
var args = { data: parentRec, row: row, cancel: false };
|
|
2743
|
+
if (!this.isCollapsingEventTriggered) {
|
|
2744
|
+
this.trigger(events.collapsing, args, function (collapsingArgs) {
|
|
2745
|
+
_this.collapseAllPrevent = collapsingArgs.cancel;
|
|
2746
|
+
if (!collapsingArgs.cancel) {
|
|
2747
|
+
if (collapsingArgs.collapseAll) {
|
|
2748
|
+
_this.expandCollapseAllChildren(record, 'collapse', key);
|
|
2713
2749
|
}
|
|
2750
|
+
_this.collapseRows(row, record, parentRec, key);
|
|
2714
2751
|
}
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
2755
|
+
this.collapseRows(row, record, parentRec, key);
|
|
2756
|
+
}
|
|
2757
|
+
this.isCollapsingEventTriggered = true;
|
|
2758
|
+
}
|
|
2759
|
+
else if (!this.isCollapseAll || (this.isCollapseAll && isRemoteData(this))) {
|
|
2760
|
+
var args = { data: record, row: row, cancel: false };
|
|
2761
|
+
this.trigger(events.collapsing, args, function (collapsingArgs) {
|
|
2762
|
+
if (!collapsingArgs.cancel) {
|
|
2763
|
+
_this.collapseRows(row, record, parentRec, key);
|
|
2764
|
+
}
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
2767
|
+
};
|
|
2768
|
+
// Internal method for handling the rows collapse
|
|
2769
|
+
TreeGrid.prototype.collapseRows = function (row, record, parentRec, key) {
|
|
2770
|
+
this.expandCollapse('collapse', row, record);
|
|
2771
|
+
var collapseArgs = { data: record, row: row };
|
|
2772
|
+
if (!isRemoteData(this)) {
|
|
2773
|
+
this.setHeightForFrozenContent();
|
|
2774
|
+
if (!isNullOrUndefined(this.expandStateMapping)) {
|
|
2775
|
+
this.updateExpandStateMapping(collapseArgs.data, false);
|
|
2776
|
+
}
|
|
2777
|
+
if (this.isCollapseAll && !this.isCollapsedEventTriggered) {
|
|
2778
|
+
this.isCollapsedEventTriggered = true;
|
|
2779
|
+
collapseArgs = { data: parentRec, row: row };
|
|
2780
|
+
this.trigger(events.collapsed, collapseArgs);
|
|
2781
|
+
}
|
|
2782
|
+
else if (!this.isCollapseAll) {
|
|
2783
|
+
this.trigger(events.collapsed, collapseArgs);
|
|
2784
|
+
}
|
|
2785
|
+
if (this.enableInfiniteScrolling) {
|
|
2786
|
+
var scrollHeight = this.grid.getContent().firstElementChild.scrollHeight;
|
|
2787
|
+
var scrollTop = this.grid.getContent().firstElementChild.scrollTop;
|
|
2788
|
+
if ((scrollHeight - scrollTop) < this.grid.getRowHeight() + +this.height) {
|
|
2789
|
+
this.grid.getContent().firstElementChild.scrollBy(0, this.grid.getRowHeight());
|
|
2715
2790
|
}
|
|
2716
2791
|
}
|
|
2717
|
-
}
|
|
2792
|
+
}
|
|
2718
2793
|
};
|
|
2719
2794
|
TreeGrid.prototype.updateExpandStateMapping = function (record, state) {
|
|
2720
2795
|
var totalRecords = record;
|
|
@@ -2877,6 +2952,8 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2877
2952
|
* @returns {void}
|
|
2878
2953
|
*/
|
|
2879
2954
|
TreeGrid.prototype.expandAll = function () {
|
|
2955
|
+
this.isExpandedEventTriggered = false;
|
|
2956
|
+
this.isExpandingEventTriggered = false;
|
|
2880
2957
|
this.expandCollapseAll('expand');
|
|
2881
2958
|
};
|
|
2882
2959
|
/**
|
|
@@ -2885,6 +2962,8 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2885
2962
|
* @returns {void}
|
|
2886
2963
|
*/
|
|
2887
2964
|
TreeGrid.prototype.collapseAll = function () {
|
|
2965
|
+
this.isCollapsedEventTriggered = false;
|
|
2966
|
+
this.isCollapsingEventTriggered = false;
|
|
2888
2967
|
this.expandCollapseAll('collapse');
|
|
2889
2968
|
};
|
|
2890
2969
|
TreeGrid.prototype.expandCollapseAll = function (action) {
|
|
@@ -2942,7 +3021,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2942
3021
|
TreeGrid.prototype.expandCollapse = function (action, row, record, isChild) {
|
|
2943
3022
|
var _this = this;
|
|
2944
3023
|
var expandingArgs = { row: row, data: record, childData: [], requestType: action };
|
|
2945
|
-
var childRecords = this.
|
|
3024
|
+
var childRecords = this.grid.currentViewData.filter(function (e) {
|
|
2946
3025
|
return e.parentUniqueID === record.uniqueID;
|
|
2947
3026
|
});
|
|
2948
3027
|
var targetEle;
|
|
@@ -2956,7 +3035,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2956
3035
|
}
|
|
2957
3036
|
var rowIndex;
|
|
2958
3037
|
if (isNullOrUndefined(row)) {
|
|
2959
|
-
rowIndex = this.
|
|
3038
|
+
rowIndex = this.grid.currentViewData.indexOf(record);
|
|
2960
3039
|
row = gridRows[parseInt(rowIndex.toString(), 10)];
|
|
2961
3040
|
}
|
|
2962
3041
|
else {
|
|
@@ -3184,7 +3263,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3184
3263
|
};
|
|
3185
3264
|
TreeGrid.prototype.localExpand = function (action, row, record) {
|
|
3186
3265
|
var rows;
|
|
3187
|
-
var childRecords = this.
|
|
3266
|
+
var childRecords = this.grid.currentViewData.filter(function (e) {
|
|
3188
3267
|
return e.parentUniqueID === record.uniqueID;
|
|
3189
3268
|
});
|
|
3190
3269
|
if (this.isPixelHeight() && row.cells[0].classList.contains('e-lastrowcell')) {
|
|
@@ -3223,7 +3302,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3223
3302
|
});
|
|
3224
3303
|
}
|
|
3225
3304
|
var gridRowsObject = this.grid.getRowsObject();
|
|
3226
|
-
var currentViewData = this.
|
|
3305
|
+
var currentViewData = this.grid.currentViewData;
|
|
3227
3306
|
var currentRecord = currentViewData.filter(function (e) {
|
|
3228
3307
|
return e.uniqueID === record.uniqueID;
|
|
3229
3308
|
});
|
|
@@ -105,8 +105,16 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
105
105
|
this.startIndex = 0;
|
|
106
106
|
this.endIndex = this.parent.pageSettings.pageSize - 1;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
if ((this.endIndex - this.startIndex !== this.parent.pageSettings.pageSize) &&
|
|
109
|
+
(this.totalRecords > this.parent.pageSettings.pageSize) &&
|
|
110
|
+
(this.endIndex === this.totalRecords)) {
|
|
111
|
+
args.startIndex = this.endIndex - this.parent.pageSettings.pageSize;
|
|
112
|
+
args.endIndex = this.endIndex;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
args.startIndex = this.startIndex;
|
|
116
|
+
args.endIndex = this.endIndex;
|
|
117
|
+
}
|
|
110
118
|
};
|
|
111
119
|
VirtualTreeContentRenderer.prototype.eventListener = function (action) {
|
|
112
120
|
var _this = this;
|
|
@@ -421,6 +429,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
421
429
|
this.translateY = scrollArgs.offset.top - rowHeight * 2;
|
|
422
430
|
}
|
|
423
431
|
else {
|
|
432
|
+
scrollArgs.offset.top = content.scrollTop;
|
|
424
433
|
this.translateY = scrollArgs.offset.top;
|
|
425
434
|
}
|
|
426
435
|
}
|
|
@@ -441,7 +450,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
441
450
|
lastIndex = nextSetResIndex +
|
|
442
451
|
(this.totalRecords - nextSetResIndex);
|
|
443
452
|
}
|
|
444
|
-
this.startIndex = !isLastBlock ? lastIndex - this.parent.pageSettings.pageSize : nextSetResIndex;
|
|
453
|
+
this.startIndex = !isLastBlock || isNullOrUndefined(this['' + selectedRowIndex]) ? lastIndex - this.parent.pageSettings.pageSize : nextSetResIndex;
|
|
445
454
|
this.endIndex = lastIndex;
|
|
446
455
|
if ((nextSetResIndex + this.parent.pageSettings.pageSize) > this.totalRecords && (this.endIndex - this.startIndex) <
|
|
447
456
|
(this.parent.pageSettings.pageSize / 2) && (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
|
|
@@ -130,21 +130,26 @@
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
133
|
-
margin:
|
|
134
|
-
min-height:
|
|
135
|
-
min-width:
|
|
136
|
-
padding: 6px;
|
|
133
|
+
margin: 0 6px;
|
|
134
|
+
min-height: 30px;
|
|
135
|
+
min-width: 30px;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
140
139
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
141
|
-
min-height:
|
|
142
|
-
min-width:
|
|
140
|
+
min-height: 38px;
|
|
141
|
+
min-width: 38px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
145
|
+
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
146
|
+
min-height: 22px;
|
|
147
|
+
min-width: 22px;
|
|
143
148
|
}
|
|
144
149
|
|
|
145
150
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter,
|
|
146
151
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter {
|
|
147
|
-
padding:
|
|
152
|
+
padding: 4px 16px 4px 0;
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
.e-input-group.e-ddl,
|
|
@@ -164,7 +169,7 @@
|
|
|
164
169
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus.e-small .e-clear-icon,
|
|
165
170
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon,
|
|
166
171
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
167
|
-
margin:
|
|
172
|
+
margin: 4px;
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -173,7 +178,7 @@
|
|
|
173
178
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
174
179
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
175
180
|
.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-small.e-input-focus .e-input-filter {
|
|
176
|
-
padding:
|
|
181
|
+
padding: 4px 5px 4px 12px;
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
@@ -183,8 +188,8 @@
|
|
|
183
188
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
184
189
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
185
190
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger.e-small .e-clear-icon {
|
|
186
|
-
min-height:
|
|
187
|
-
min-width:
|
|
191
|
+
min-height: 34px;
|
|
192
|
+
min-width: 34px;
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -197,6 +202,10 @@
|
|
|
197
202
|
padding: 8px 16px;
|
|
198
203
|
}
|
|
199
204
|
|
|
205
|
+
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
206
|
+
margin: 0 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
200
209
|
.e-ddl.e-popup.e-outline .e-filter-parent {
|
|
201
210
|
padding: 4px 8px;
|
|
202
211
|
}
|
package/styles/material3.css
CHANGED
|
@@ -186,21 +186,26 @@
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
189
|
-
margin:
|
|
190
|
-
min-height:
|
|
191
|
-
min-width:
|
|
192
|
-
padding: 6px;
|
|
189
|
+
margin: 0 6px;
|
|
190
|
+
min-height: 30px;
|
|
191
|
+
min-width: 30px;
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
196
195
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
197
|
-
min-height:
|
|
198
|
-
min-width:
|
|
196
|
+
min-height: 38px;
|
|
197
|
+
min-width: 38px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
201
|
+
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
202
|
+
min-height: 22px;
|
|
203
|
+
min-width: 22px;
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter,
|
|
202
207
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter {
|
|
203
|
-
padding:
|
|
208
|
+
padding: 4px 16px 4px 0;
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
.e-input-group.e-ddl,
|
|
@@ -220,7 +225,7 @@
|
|
|
220
225
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus.e-small .e-clear-icon,
|
|
221
226
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon,
|
|
222
227
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
223
|
-
margin:
|
|
228
|
+
margin: 4px;
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -229,7 +234,7 @@
|
|
|
229
234
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
230
235
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
231
236
|
.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-small.e-input-focus .e-input-filter {
|
|
232
|
-
padding:
|
|
237
|
+
padding: 4px 5px 4px 12px;
|
|
233
238
|
}
|
|
234
239
|
|
|
235
240
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
@@ -239,8 +244,8 @@
|
|
|
239
244
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
240
245
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
241
246
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger.e-small .e-clear-icon {
|
|
242
|
-
min-height:
|
|
243
|
-
min-width:
|
|
247
|
+
min-height: 34px;
|
|
248
|
+
min-width: 34px;
|
|
244
249
|
}
|
|
245
250
|
|
|
246
251
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -253,6 +258,10 @@
|
|
|
253
258
|
padding: 8px 16px;
|
|
254
259
|
}
|
|
255
260
|
|
|
261
|
+
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
262
|
+
margin: 0 4px;
|
|
263
|
+
}
|
|
264
|
+
|
|
256
265
|
.e-ddl.e-popup.e-outline .e-filter-parent {
|
|
257
266
|
padding: 4px 8px;
|
|
258
267
|
}
|
|
@@ -130,21 +130,26 @@
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
133
|
-
margin:
|
|
134
|
-
min-height:
|
|
135
|
-
min-width:
|
|
136
|
-
padding: 6px;
|
|
133
|
+
margin: 0 6px;
|
|
134
|
+
min-height: 30px;
|
|
135
|
+
min-width: 30px;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
140
139
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
141
|
-
min-height:
|
|
142
|
-
min-width:
|
|
140
|
+
min-height: 38px;
|
|
141
|
+
min-width: 38px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
145
|
+
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon {
|
|
146
|
+
min-height: 22px;
|
|
147
|
+
min-width: 22px;
|
|
143
148
|
}
|
|
144
149
|
|
|
145
150
|
.e-bigger .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter,
|
|
146
151
|
.e-bigger.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-filter {
|
|
147
|
-
padding:
|
|
152
|
+
padding: 4px 16px 4px 0;
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
.e-input-group.e-ddl,
|
|
@@ -164,7 +169,7 @@
|
|
|
164
169
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus.e-small .e-clear-icon,
|
|
165
170
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon,
|
|
166
171
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
167
|
-
margin:
|
|
172
|
+
margin: 4px;
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -173,7 +178,7 @@
|
|
|
173
178
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
174
179
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
|
|
175
180
|
.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-small.e-input-focus .e-input-filter {
|
|
176
|
-
padding:
|
|
181
|
+
padding: 4px 5px 4px 12px;
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group .e-clear-icon,
|
|
@@ -183,8 +188,8 @@
|
|
|
183
188
|
.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
184
189
|
.e-small.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger .e-clear-icon,
|
|
185
190
|
.e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-bigger.e-small .e-clear-icon {
|
|
186
|
-
min-height:
|
|
187
|
-
min-width:
|
|
191
|
+
min-height: 34px;
|
|
192
|
+
min-width: 34px;
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group .e-input-filter,
|
|
@@ -197,6 +202,10 @@
|
|
|
197
202
|
padding: 8px 16px;
|
|
198
203
|
}
|
|
199
204
|
|
|
205
|
+
.e-bigger.e-small .e-popup.e-ddl:not(.e-ddl-device) .e-input-group.e-input-focus .e-clear-icon {
|
|
206
|
+
margin: 0 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
200
209
|
.e-ddl.e-popup.e-outline .e-filter-parent {
|
|
201
210
|
padding: 4px 8px;
|
|
202
211
|
}
|