@syncfusion/ej2-treegrid 25.2.3 → 25.2.5
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 +15 -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 +55 -36
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +55 -36
- 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 +1 -0
- package/src/treegrid/actions/excel-export.js +5 -0
- package/src/treegrid/actions/virtual-scroll.js +3 -7
- package/src/treegrid/base/treegrid-model.d.ts +1 -1
- package/src/treegrid/base/treegrid.js +38 -28
- package/src/treegrid/renderer/virtual-tree-content-render.js +9 -1
- package/styles/bootstrap-dark.css +3 -0
- package/styles/bootstrap.css +3 -0
- package/styles/bootstrap4.css +3 -0
- package/styles/bootstrap5-dark.css +3 -0
- package/styles/bootstrap5.css +3 -0
- package/styles/fabric-dark.css +3 -0
- package/styles/fabric.css +3 -0
- package/styles/fluent-dark.css +3 -0
- package/styles/fluent.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast.css +3 -0
- package/styles/material-dark.css +3 -0
- package/styles/material.css +3 -0
- package/styles/material3-dark.css +3 -0
- package/styles/material3.css +3 -0
- package/styles/tailwind-dark.css +3 -0
- package/styles/tailwind.css +3 -0
- package/styles/treegrid/_layout.scss +5 -1
- package/styles/treegrid/bootstrap-dark.css +3 -0
- package/styles/treegrid/bootstrap.css +3 -0
- package/styles/treegrid/bootstrap4.css +3 -0
- package/styles/treegrid/bootstrap5-dark.css +3 -0
- package/styles/treegrid/bootstrap5.css +3 -0
- package/styles/treegrid/fabric-dark.css +3 -0
- package/styles/treegrid/fabric.css +3 -0
- package/styles/treegrid/fluent-dark.css +3 -0
- package/styles/treegrid/fluent.css +3 -0
- package/styles/treegrid/highcontrast-light.css +3 -0
- package/styles/treegrid/highcontrast.css +3 -0
- package/styles/treegrid/material-dark.css +3 -0
- package/styles/treegrid/material.css +3 -0
- package/styles/treegrid/material3-dark.css +3 -0
- package/styles/treegrid/material3.css +3 -0
- package/styles/treegrid/tailwind-dark.css +3 -0
- package/styles/treegrid/tailwind.css +3 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.2.
|
|
3
|
+
* version : 25.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@25.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@25.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-8QscTDpc0SKK12xtkX3zNH48foIkUAV+3jSuMFNCKn5fTnqeBDjWrnYKEr5Bw53z5xgFhqMijx+GuqhSh5eOmA==",
|
|
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.2.4.tgz",
|
|
28
|
+
"_shasum": "0e5afb29737f441a377420231b89444e32ef78c6",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~25.2.
|
|
39
|
+
"@syncfusion/ej2-base": "~25.2.5",
|
|
40
40
|
"@syncfusion/ej2-data": "~25.2.3",
|
|
41
|
-
"@syncfusion/ej2-grids": "~25.2.
|
|
42
|
-
"@syncfusion/ej2-popups": "~25.2.
|
|
41
|
+
"@syncfusion/ej2-grids": "~25.2.5",
|
|
42
|
+
"@syncfusion/ej2-popups": "~25.2.4"
|
|
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": "25.2.
|
|
69
|
+
"version": "25.2.5",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -933,6 +933,7 @@ var Edit = /** @class */ (function () {
|
|
|
933
933
|
args.index = position === 'before' ? index : index + 1;
|
|
934
934
|
}
|
|
935
935
|
if (this.parent.editSettings.newRowPosition === 'Bottom') {
|
|
936
|
+
level = 0;
|
|
936
937
|
var dataSource = (this.parent.grid.dataSource instanceof DataManager ?
|
|
937
938
|
this.parent.grid.dataSource.dataSource.json : this.parent.grid.dataSource);
|
|
938
939
|
args.index = dataSource.length;
|
|
@@ -76,12 +76,17 @@ var ExcelExport = /** @class */ (function () {
|
|
|
76
76
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
77
77
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
78
78
|
}
|
|
79
|
+
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
80
|
+
&& !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
|
|
81
|
+
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
82
|
+
}
|
|
79
83
|
return new Promise(function (resolve) {
|
|
80
84
|
var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
81
85
|
: _this.parent.dataSource;
|
|
82
86
|
var query = new Query();
|
|
83
87
|
if (!_this.isLocal()) {
|
|
84
88
|
query = _this.generateQuery(query);
|
|
89
|
+
query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
|
|
85
90
|
setValue('query', query, property);
|
|
86
91
|
}
|
|
87
92
|
_this.parent.trigger(event.beforeExcelExport, extend(property, excelExportProperties));
|
|
@@ -126,15 +126,11 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
126
126
|
this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
|
|
127
127
|
}
|
|
128
128
|
if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
startIndex =
|
|
129
|
+
if ((counts.endIndex + this.parent.pageSettings.pageSize >= counts.count && (this.parent.root && counts.count - counts.endIndex === this.visualData.length - this.parent.root['previousFlatData'].length))
|
|
130
|
+
|| !(this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
131
|
+
startIndex = counts.startIndex + (counts.count - counts.endIndex);
|
|
132
132
|
endIndex = counts.count;
|
|
133
133
|
}
|
|
134
|
-
else {
|
|
135
|
-
startIndex = counts.startIndex;
|
|
136
|
-
endIndex = counts.endIndex;
|
|
137
|
-
}
|
|
138
134
|
this.parent['isAddedFromGantt'] = false;
|
|
139
135
|
}
|
|
140
136
|
//if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Fetch, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
|
|
1
|
+
import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Fetch, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel, Freeze as FreezeColumn } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -22,6 +22,7 @@ import { removeClass, Complex, Collection, getValue } from '@syncfusion/ej2-base
|
|
|
22
22
|
import { Event, Property, NotifyPropertyChanges, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Column } from '../models/column';
|
|
24
24
|
import { getNumberFormat } from '@syncfusion/ej2-grids';
|
|
25
|
+
import { Freeze as FreezeColumn } from '@syncfusion/ej2-grids';
|
|
25
26
|
import { RowDropSettings, getUid } from '@syncfusion/ej2-grids';
|
|
26
27
|
import { LoadingIndicator } from '../models/loading-indicator';
|
|
27
28
|
import { FilterSettings } from '../models/filter-settings';
|
|
@@ -102,6 +103,11 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
102
103
|
if (!isNullOrUndefined(_this.injectedModules["" + logger])) {
|
|
103
104
|
Grid.Inject(Logger);
|
|
104
105
|
}
|
|
106
|
+
var freezeModulePresent = _this.injectedModules.filter(function (e) {
|
|
107
|
+
if (e.prototype.getModuleName() === 'freeze') {
|
|
108
|
+
Grid.Inject(FreezeColumn);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
105
111
|
_this.grid = new Grid();
|
|
106
112
|
return _this;
|
|
107
113
|
}
|
|
@@ -418,19 +424,21 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
418
424
|
if (!this.enableVirtualization) {
|
|
419
425
|
target = e.target;
|
|
420
426
|
parentTarget = target.parentElement;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
427
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
428
|
+
var cellIndex = parentTarget.cellIndex;
|
|
429
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
430
|
+
parentTarget = target;
|
|
431
|
+
}
|
|
432
|
+
summaryElement = this.findnextRowElement(parentTarget);
|
|
433
|
+
if (summaryElement !== null) {
|
|
434
|
+
var cellIndex_1 = e.target.cellIndex;
|
|
435
|
+
var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
|
|
436
|
+
addClass([row_1], 'e-focused');
|
|
437
|
+
addClass([row_1], 'e-focus');
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
this.clearSelection();
|
|
441
|
+
}
|
|
434
442
|
}
|
|
435
443
|
}
|
|
436
444
|
break;
|
|
@@ -438,19 +446,21 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
438
446
|
if (!this.enableVirtualization) {
|
|
439
447
|
target = e.target;
|
|
440
448
|
parentTarget = target.parentElement;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
449
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
450
|
+
var cellIndex = parentTarget.cellIndex;
|
|
451
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
452
|
+
parentTarget = target;
|
|
453
|
+
}
|
|
454
|
+
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
455
|
+
if (summaryElement !== null) {
|
|
456
|
+
var cIndex = e.target.cellIndex;
|
|
457
|
+
var rows = summaryElement.children[parseInt(cIndex.toString(), 10)];
|
|
458
|
+
addClass([rows], 'e-focused');
|
|
459
|
+
addClass([rows], 'e-focus');
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
this.clearSelection();
|
|
463
|
+
}
|
|
454
464
|
}
|
|
455
465
|
}
|
|
456
466
|
}
|
|
@@ -2805,7 +2815,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2805
2815
|
if (!this.isExpandingEventTriggered) {
|
|
2806
2816
|
this.trigger(events.expanding, args, function (expandingArgs) {
|
|
2807
2817
|
_this.expandAllPrevent = expandingArgs.cancel;
|
|
2808
|
-
if (!expandingArgs.cancel) {
|
|
2818
|
+
if (!expandingArgs.cancel && !isNullOrUndefined(record)) {
|
|
2809
2819
|
if (expandingArgs.expandAll) {
|
|
2810
2820
|
_this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
2811
2821
|
}
|
|
@@ -2931,7 +2941,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2931
2941
|
else if (!this.isCollapseAll || (this.isCollapseAll && isRemoteData(this))) {
|
|
2932
2942
|
var args = { data: record, row: row, cancel: false };
|
|
2933
2943
|
this.trigger(events.collapsing, args, function (collapsingArgs) {
|
|
2934
|
-
if (!collapsingArgs.cancel) {
|
|
2944
|
+
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
2935
2945
|
_this.collapseRows(row, record, parentRec, key);
|
|
2936
2946
|
}
|
|
2937
2947
|
});
|
|
@@ -427,7 +427,12 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
427
427
|
}
|
|
428
428
|
if (firsttdinx === 0) {
|
|
429
429
|
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
430
|
-
scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) +
|
|
430
|
+
scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + rowHeight : 0;
|
|
431
|
+
}
|
|
432
|
+
else if (this.parent.getFrozenColumns() > 0) {
|
|
433
|
+
scrollArgs.offset.top = scrollArgs.offset.top + 80;
|
|
434
|
+
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
435
|
+
scrollArgs.offset.top - (outBuffer * rowHeight) + 10 : 0;
|
|
431
436
|
}
|
|
432
437
|
else {
|
|
433
438
|
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
@@ -467,6 +472,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
467
472
|
if (this.parent.allowRowDragAndDrop) {
|
|
468
473
|
this.translateY = scrollArgs.offset.top - rowHeight * 2;
|
|
469
474
|
}
|
|
475
|
+
else if (this.parent.getFrozenColumns() > 0) {
|
|
476
|
+
this.translateY = scrollArgs.offset.top - ((rowHeight * 2) + this.parent.pageSettings.pageSize);
|
|
477
|
+
}
|
|
470
478
|
else {
|
|
471
479
|
this.translateY = scrollArgs.offset.top;
|
|
472
480
|
}
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED
|
@@ -135,7 +135,11 @@
|
|
|
135
135
|
vertical-align: middle;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
.e-cloneproperties .e-treecolumn-container {
|
|
139
|
+
span {
|
|
140
|
+
vertical-align: text-top;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
139
143
|
.e-hierarchycheckbox .e-frame {
|
|
140
144
|
@if $skin-name == 'bootstrap' or $skin-name == 'boostrap-dark' or $skin-name == 'fabric-dark' or $skin-name == 'fabric' or $skin-name == 'highcontrast' or $skin-name == 'FluentUI' or $theme-name == 'fluentui-dark' {
|
|
141
145
|
font-size: 10px;
|