@syncfusion/ej2-treegrid 30.2.4 → 31.1.20
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/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 +276 -161
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +304 -171
- 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 +5 -5
- package/src/treegrid/actions/context-menu.js +3 -1
- package/src/treegrid/actions/edit.js +1 -1
- package/src/treegrid/actions/excel-export.d.ts +8 -0
- package/src/treegrid/actions/excel-export.js +12 -0
- package/src/treegrid/actions/freeze-column.js +1 -1
- package/src/treegrid/actions/pdf-export.d.ts +8 -0
- package/src/treegrid/actions/pdf-export.js +12 -0
- package/src/treegrid/actions/rowdragdrop.js +12 -3
- package/src/treegrid/actions/selection.js +1 -1
- package/src/treegrid/actions/virtual-scroll.js +2 -2
- package/src/treegrid/base/data.js +1 -1
- package/src/treegrid/base/treegrid-model.d.ts +32 -2
- package/src/treegrid/base/treegrid.d.ts +29 -2
- package/src/treegrid/base/treegrid.js +39 -2
- package/src/treegrid/models/column-chooser-settings-model.d.ts +62 -0
- package/src/treegrid/models/column-chooser-settings.d.ts +53 -0
- package/src/treegrid/models/column-chooser-settings.js +52 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +3 -8
- package/src/treegrid/utils.js +22 -6
- package/styles/bootstrap4-lite.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/treegrid/bootstrap4.css +8 -0
|
@@ -773,13 +773,29 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
773
773
|
* @returns {boolean} - Specifies whether remote data binding
|
|
774
774
|
*/
|
|
775
775
|
function isRemoteData(parent) {
|
|
776
|
-
if (parent
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
776
|
+
if (parent['treeGrid'] && parent['treeGrid']['isGantt']) {
|
|
777
|
+
if (parent['taskFields'].hasChildMapping) {
|
|
778
|
+
if (parent.dataSource instanceof DataManager) {
|
|
779
|
+
var adaptor = parent.dataSource.adaptor;
|
|
780
|
+
return (adaptor instanceof ODataAdaptor ||
|
|
781
|
+
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
782
|
+
(adaptor instanceof CacheAdaptor) || adaptor instanceof UrlAdaptor);
|
|
783
|
+
}
|
|
784
|
+
return false;
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
return false;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
if (parent.dataSource instanceof DataManager) {
|
|
792
|
+
var adaptor = parent.dataSource.adaptor;
|
|
793
|
+
return (adaptor instanceof ODataAdaptor ||
|
|
794
|
+
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
795
|
+
(adaptor instanceof CacheAdaptor) || adaptor instanceof UrlAdaptor);
|
|
796
|
+
}
|
|
797
|
+
return false;
|
|
781
798
|
}
|
|
782
|
-
return false;
|
|
783
799
|
}
|
|
784
800
|
/**
|
|
785
801
|
* @param {TreeGrid | IGrid} parent - Tree Grid or Grid instance
|
|
@@ -1071,7 +1087,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1071
1087
|
var headerCelllength = this.parent.getHeaderContent().querySelectorAll('.e-headercelldiv').length;
|
|
1072
1088
|
for (var j = 0; j < headerCelllength; j++) {
|
|
1073
1089
|
var headercell = this.parent.getHeaderContent().querySelectorAll('.e-headercelldiv')[parseInt(j.toString(), 10)];
|
|
1074
|
-
if (headercell.getAttribute('
|
|
1090
|
+
if (headercell.getAttribute('data-mappinguid') === mappingUid) {
|
|
1075
1091
|
columnIndex = j;
|
|
1076
1092
|
}
|
|
1077
1093
|
}
|
|
@@ -2361,7 +2377,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2361
2377
|
var targetEle = rowDetails.rows[parseInt(i.toString(), 10)].getElementsByClassName('e-treegridcollapse')[0];
|
|
2362
2378
|
childRecord = this.parent.rowTemplate ?
|
|
2363
2379
|
this.parent.grid.getCurrentViewRecords()[rowDetails.rows[parseInt(i.toString(), 10)].rowIndex] :
|
|
2364
|
-
this.parent.grid.getRowObjectFromUID(rowDetails.rows[parseInt(i.toString(), 10)].getAttribute('data-
|
|
2380
|
+
this.parent.grid.getRowObjectFromUID(rowDetails.rows[parseInt(i.toString(), 10)].getAttribute('data-uid')).data;
|
|
2365
2381
|
if (!isNullOrUndefined(targetEle) && childRecord.expanded) {
|
|
2366
2382
|
addClass([targetEle], 'e-treegridexpand');
|
|
2367
2383
|
removeClass([targetEle], 'e-treegridcollapse');
|
|
@@ -3753,6 +3769,57 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3753
3769
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3754
3770
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3755
3771
|
};
|
|
3772
|
+
/**
|
|
3773
|
+
* Configures the column chooser behavior of the Grid.
|
|
3774
|
+
*/
|
|
3775
|
+
var ColumnChooserSettings = /** @__PURE__ @class */ (function (_super) {
|
|
3776
|
+
__extends$d(ColumnChooserSettings, _super);
|
|
3777
|
+
function ColumnChooserSettings() {
|
|
3778
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3779
|
+
}
|
|
3780
|
+
__decorate$b([
|
|
3781
|
+
Property('startsWith')
|
|
3782
|
+
], ColumnChooserSettings.prototype, "operator", void 0);
|
|
3783
|
+
__decorate$b([
|
|
3784
|
+
Property(false)
|
|
3785
|
+
], ColumnChooserSettings.prototype, "ignoreAccent", void 0);
|
|
3786
|
+
__decorate$b([
|
|
3787
|
+
Property(null)
|
|
3788
|
+
], ColumnChooserSettings.prototype, "headerTemplate", void 0);
|
|
3789
|
+
__decorate$b([
|
|
3790
|
+
Property(null)
|
|
3791
|
+
], ColumnChooserSettings.prototype, "template", void 0);
|
|
3792
|
+
__decorate$b([
|
|
3793
|
+
Property(null)
|
|
3794
|
+
], ColumnChooserSettings.prototype, "footerTemplate", void 0);
|
|
3795
|
+
__decorate$b([
|
|
3796
|
+
Property(true)
|
|
3797
|
+
], ColumnChooserSettings.prototype, "enableSearching", void 0);
|
|
3798
|
+
__decorate$b([
|
|
3799
|
+
Property(null)
|
|
3800
|
+
], ColumnChooserSettings.prototype, "renderCustomColumnChooser", void 0);
|
|
3801
|
+
return ColumnChooserSettings;
|
|
3802
|
+
}(ChildProperty));
|
|
3803
|
+
|
|
3804
|
+
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
3805
|
+
var extendStatics = function (d, b) {
|
|
3806
|
+
extendStatics = Object.setPrototypeOf ||
|
|
3807
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3808
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
3809
|
+
return extendStatics(d, b);
|
|
3810
|
+
};
|
|
3811
|
+
return function (d, b) {
|
|
3812
|
+
extendStatics(d, b);
|
|
3813
|
+
function __() { this.constructor = d; }
|
|
3814
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3815
|
+
};
|
|
3816
|
+
})();
|
|
3817
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3818
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3819
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3820
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3821
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3822
|
+
};
|
|
3756
3823
|
/**
|
|
3757
3824
|
* Represents the TreeGrid component.
|
|
3758
3825
|
* ```html
|
|
@@ -3764,7 +3831,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3764
3831
|
* ```
|
|
3765
3832
|
*/
|
|
3766
3833
|
var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
3767
|
-
__extends$
|
|
3834
|
+
__extends$e(TreeGrid, _super);
|
|
3768
3835
|
function TreeGrid(options, element) {
|
|
3769
3836
|
var _this = _super.call(this, options, element) || this;
|
|
3770
3837
|
_this.dataResults = {};
|
|
@@ -4617,7 +4684,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4617
4684
|
}
|
|
4618
4685
|
}
|
|
4619
4686
|
var alignColumn;
|
|
4620
|
-
if (this.treeColumnIndex !== null && this.treeColumnIndex !== -1) {
|
|
4687
|
+
if (this.treeColumnIndex !== null && this.treeColumnIndex !== -1 && this.treeColumnIndex < this.columns.length) {
|
|
4621
4688
|
alignColumn = this.columnModel.filter(function (col) { return col.textAlign === 'Right' && col.field === _this.columnModel[_this.treeColumnIndex].field; });
|
|
4622
4689
|
if (alignColumn.length !== 0) {
|
|
4623
4690
|
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
@@ -4730,6 +4797,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4730
4797
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
4731
4798
|
this.grid.toolbarTemplate = this.toolbarTemplate;
|
|
4732
4799
|
this.grid.showColumnChooser = this.showColumnChooser;
|
|
4800
|
+
this.grid.columnChooserSettings = this.columnChooserSettings;
|
|
4733
4801
|
this.grid.filterSettings = getActualProperties(this.filterSettings);
|
|
4734
4802
|
this.grid.selectionSettings = getActualProperties(this.selectionSettings);
|
|
4735
4803
|
this.grid.sortSettings = getActualProperties(this.sortSettings);
|
|
@@ -4757,6 +4825,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4757
4825
|
var enableHtmlSanitizer = 'enableHtmlSanitizer';
|
|
4758
4826
|
this.grid["" + enableHtmlSanitizer] = this.enableHtmlSanitizer;
|
|
4759
4827
|
this.grid.enableStickyHeader = this.enableStickyHeader;
|
|
4828
|
+
this.grid.emptyRecordTemplate = this.emptyRecordTemplate;
|
|
4760
4829
|
var isTreeGrid = 'isTreeGrid';
|
|
4761
4830
|
this.grid["" + isTreeGrid] = true;
|
|
4762
4831
|
};
|
|
@@ -4823,6 +4892,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4823
4892
|
_this.notify('excelCellInfo', args);
|
|
4824
4893
|
args = _this.dataResults;
|
|
4825
4894
|
};
|
|
4895
|
+
this.grid.excelAggregateQueryCellInfo = function (args) {
|
|
4896
|
+
_this.notify('excelAggregateCellInfo', args);
|
|
4897
|
+
args = _this.dataResults;
|
|
4898
|
+
};
|
|
4899
|
+
this.grid.pdfAggregateQueryCellInfo = function (args) {
|
|
4900
|
+
_this.notify('pdfAggregateCellInfo', args);
|
|
4901
|
+
args = _this.dataResults;
|
|
4902
|
+
};
|
|
4826
4903
|
this.grid.pdfQueryCellInfo = function (args) {
|
|
4827
4904
|
_this.notify('pdfCellInfo', args);
|
|
4828
4905
|
args = _this.dataResults;
|
|
@@ -5718,6 +5795,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5718
5795
|
case 'enableAutoFill':
|
|
5719
5796
|
this.grid.enableAutoFill = this.enableAutoFill;
|
|
5720
5797
|
break;
|
|
5798
|
+
case 'columnChooserSettings':
|
|
5799
|
+
this.grid.columnChooserSettings = getActualProperties(this.columnChooserSettings);
|
|
5800
|
+
break;
|
|
5721
5801
|
case 'enableAdaptiveUI':
|
|
5722
5802
|
this.grid.enableAdaptiveUI = this.enableAdaptiveUI;
|
|
5723
5803
|
break;
|
|
@@ -5765,6 +5845,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5765
5845
|
case 'enableStickyHeader':
|
|
5766
5846
|
this.grid.enableStickyHeader = this.enableStickyHeader;
|
|
5767
5847
|
break;
|
|
5848
|
+
case 'emptyRecordTemplate':
|
|
5849
|
+
this.grid.emptyRecordTemplate = this.emptyRecordTemplate;
|
|
5850
|
+
break;
|
|
5768
5851
|
case 'editSettings':
|
|
5769
5852
|
if (this.grid.isEdit && this.grid.editSettings.mode === 'Normal' && newProp["" + prop].mode &&
|
|
5770
5853
|
(newProp["" + prop].mode === 'Cell' || newProp["" + prop].mode === 'Row')) {
|
|
@@ -7488,9 +7571,17 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7488
7571
|
}
|
|
7489
7572
|
var deff = new Deferred();
|
|
7490
7573
|
var childDataBind = 'childDataBind';
|
|
7574
|
+
var state;
|
|
7575
|
+
if (this.query) {
|
|
7576
|
+
state = this.grid.getDataModule().getStateEventArgument(this.query);
|
|
7577
|
+
state.action = expandingArgs;
|
|
7578
|
+
}
|
|
7579
|
+
else {
|
|
7580
|
+
state = expandingArgs;
|
|
7581
|
+
}
|
|
7491
7582
|
expandingArgs["" + childDataBind] = deff.resolve;
|
|
7492
7583
|
var record = expandingArgs.data;
|
|
7493
|
-
this.trigger(dataStateChange,
|
|
7584
|
+
this.trigger(dataStateChange, state);
|
|
7494
7585
|
deff.promise.then(function () {
|
|
7495
7586
|
if (expandingArgs.childData.length) {
|
|
7496
7587
|
if (isCountRequired(_this)) {
|
|
@@ -8252,403 +8343,415 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8252
8343
|
}
|
|
8253
8344
|
};
|
|
8254
8345
|
var TreeGrid_1;
|
|
8255
|
-
__decorate$
|
|
8346
|
+
__decorate$c([
|
|
8256
8347
|
Property(0)
|
|
8257
8348
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
8258
|
-
__decorate$
|
|
8349
|
+
__decorate$c([
|
|
8259
8350
|
Property(0)
|
|
8260
8351
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
8261
|
-
__decorate$
|
|
8352
|
+
__decorate$c([
|
|
8262
8353
|
Property('Ellipsis')
|
|
8263
8354
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
8264
|
-
__decorate$
|
|
8355
|
+
__decorate$c([
|
|
8265
8356
|
Property([])
|
|
8266
8357
|
], TreeGrid.prototype, "columns", void 0);
|
|
8267
|
-
__decorate$
|
|
8358
|
+
__decorate$c([
|
|
8268
8359
|
Property(null)
|
|
8269
8360
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
8270
|
-
__decorate$
|
|
8361
|
+
__decorate$c([
|
|
8271
8362
|
Property(null)
|
|
8272
8363
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
8273
|
-
__decorate$
|
|
8364
|
+
__decorate$c([
|
|
8274
8365
|
Property(0)
|
|
8275
8366
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
8276
|
-
__decorate$
|
|
8367
|
+
__decorate$c([
|
|
8277
8368
|
Property(null)
|
|
8278
8369
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
8279
|
-
__decorate$
|
|
8370
|
+
__decorate$c([
|
|
8280
8371
|
Property(null)
|
|
8281
8372
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
8282
|
-
__decorate$
|
|
8373
|
+
__decorate$c([
|
|
8283
8374
|
Property(false)
|
|
8284
8375
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
8285
|
-
__decorate$
|
|
8376
|
+
__decorate$c([
|
|
8286
8377
|
Property(null)
|
|
8287
8378
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
8288
|
-
__decorate$
|
|
8379
|
+
__decorate$c([
|
|
8289
8380
|
Property(false)
|
|
8290
8381
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
8291
|
-
__decorate$
|
|
8382
|
+
__decorate$c([
|
|
8292
8383
|
Property([])
|
|
8293
8384
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
8294
|
-
__decorate$
|
|
8385
|
+
__decorate$c([
|
|
8295
8386
|
Property()
|
|
8296
8387
|
], TreeGrid.prototype, "query", void 0);
|
|
8297
|
-
__decorate$
|
|
8388
|
+
__decorate$c([
|
|
8298
8389
|
Property()
|
|
8299
8390
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
8300
|
-
__decorate$
|
|
8391
|
+
__decorate$c([
|
|
8301
8392
|
Property('AllPages')
|
|
8302
8393
|
], TreeGrid.prototype, "printMode", void 0);
|
|
8303
|
-
__decorate$
|
|
8394
|
+
__decorate$c([
|
|
8304
8395
|
Property(false)
|
|
8305
8396
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
8306
|
-
__decorate$
|
|
8397
|
+
__decorate$c([
|
|
8307
8398
|
Property(true)
|
|
8308
8399
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
8309
|
-
__decorate$
|
|
8400
|
+
__decorate$c([
|
|
8310
8401
|
Property(false)
|
|
8311
8402
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
8312
|
-
__decorate$
|
|
8403
|
+
__decorate$c([
|
|
8313
8404
|
Complex({}, TextWrapSettings)
|
|
8314
8405
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
8315
|
-
__decorate$
|
|
8406
|
+
__decorate$c([
|
|
8316
8407
|
Property(false)
|
|
8317
8408
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
8318
|
-
__decorate$
|
|
8409
|
+
__decorate$c([
|
|
8319
8410
|
Property(false)
|
|
8320
8411
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
8321
|
-
__decorate$
|
|
8412
|
+
__decorate$c([
|
|
8322
8413
|
Property(false)
|
|
8323
8414
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
8324
|
-
__decorate$
|
|
8415
|
+
__decorate$c([
|
|
8325
8416
|
Complex({}, PageSettings)
|
|
8326
8417
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
8327
|
-
__decorate$
|
|
8418
|
+
__decorate$c([
|
|
8328
8419
|
Complex({}, RowDropSettings$1)
|
|
8329
8420
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
8330
|
-
__decorate$
|
|
8421
|
+
__decorate$c([
|
|
8331
8422
|
Property('USD')
|
|
8332
8423
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
8333
|
-
__decorate$
|
|
8424
|
+
__decorate$c([
|
|
8334
8425
|
Property()
|
|
8335
8426
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
8336
|
-
__decorate$
|
|
8427
|
+
__decorate$c([
|
|
8337
8428
|
Property(false)
|
|
8338
8429
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
8339
|
-
__decorate$
|
|
8430
|
+
__decorate$c([
|
|
8340
8431
|
Property(false)
|
|
8341
8432
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
8342
|
-
__decorate$
|
|
8433
|
+
__decorate$c([
|
|
8434
|
+
Complex({}, ColumnChooserSettings)
|
|
8435
|
+
], TreeGrid.prototype, "columnChooserSettings", void 0);
|
|
8436
|
+
__decorate$c([
|
|
8343
8437
|
Property(false)
|
|
8344
8438
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
8345
|
-
__decorate$
|
|
8439
|
+
__decorate$c([
|
|
8346
8440
|
Property(true)
|
|
8347
8441
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
8348
|
-
__decorate$
|
|
8442
|
+
__decorate$c([
|
|
8349
8443
|
Complex({}, SortSettings)
|
|
8350
8444
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
8351
|
-
__decorate$
|
|
8445
|
+
__decorate$c([
|
|
8352
8446
|
Collection([], AggregateRow)
|
|
8353
8447
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
8354
|
-
__decorate$
|
|
8448
|
+
__decorate$c([
|
|
8355
8449
|
Complex({}, EditSettings)
|
|
8356
8450
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
8357
|
-
__decorate$
|
|
8451
|
+
__decorate$c([
|
|
8358
8452
|
Property(false)
|
|
8359
8453
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
8360
|
-
__decorate$
|
|
8454
|
+
__decorate$c([
|
|
8361
8455
|
Property()
|
|
8362
8456
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
8363
|
-
__decorate$
|
|
8457
|
+
__decorate$c([
|
|
8364
8458
|
Complex({}, FilterSettings)
|
|
8365
8459
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
8366
|
-
__decorate$
|
|
8460
|
+
__decorate$c([
|
|
8367
8461
|
Complex({}, SearchSettings)
|
|
8368
8462
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
8369
|
-
__decorate$
|
|
8463
|
+
__decorate$c([
|
|
8370
8464
|
Property()
|
|
8371
8465
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
8372
|
-
__decorate$
|
|
8466
|
+
__decorate$c([
|
|
8373
8467
|
Property()
|
|
8374
8468
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
8375
|
-
__decorate$
|
|
8469
|
+
__decorate$c([
|
|
8376
8470
|
Property('Default')
|
|
8377
8471
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
8378
|
-
__decorate$
|
|
8472
|
+
__decorate$c([
|
|
8379
8473
|
Property()
|
|
8380
8474
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
8381
|
-
__decorate$
|
|
8475
|
+
__decorate$c([
|
|
8382
8476
|
Property()
|
|
8383
8477
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
8384
|
-
__decorate$
|
|
8478
|
+
__decorate$c([
|
|
8385
8479
|
Property()
|
|
8386
8480
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
8387
|
-
__decorate$
|
|
8481
|
+
__decorate$c([
|
|
8388
8482
|
Property('Parent')
|
|
8389
8483
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
8390
|
-
__decorate$
|
|
8484
|
+
__decorate$c([
|
|
8391
8485
|
Property(null)
|
|
8392
8486
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
8393
|
-
__decorate$
|
|
8487
|
+
__decorate$c([
|
|
8394
8488
|
Property(true)
|
|
8395
8489
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
8396
|
-
__decorate$
|
|
8490
|
+
__decorate$c([
|
|
8397
8491
|
Property(true)
|
|
8398
8492
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
8399
|
-
__decorate$
|
|
8493
|
+
__decorate$c([
|
|
8400
8494
|
Property(false)
|
|
8401
8495
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
8402
|
-
__decorate$
|
|
8496
|
+
__decorate$c([
|
|
8403
8497
|
Property(false)
|
|
8404
8498
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
8405
|
-
__decorate$
|
|
8499
|
+
__decorate$c([
|
|
8406
8500
|
Property(false)
|
|
8407
8501
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
8408
|
-
__decorate$
|
|
8502
|
+
__decorate$c([
|
|
8409
8503
|
Property(false)
|
|
8410
8504
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
8411
|
-
__decorate$
|
|
8505
|
+
__decorate$c([
|
|
8412
8506
|
Property(false)
|
|
8413
8507
|
], TreeGrid.prototype, "enableStickyHeader", void 0);
|
|
8414
|
-
__decorate$
|
|
8508
|
+
__decorate$c([
|
|
8509
|
+
Property()
|
|
8510
|
+
], TreeGrid.prototype, "emptyRecordTemplate", void 0);
|
|
8511
|
+
__decorate$c([
|
|
8415
8512
|
Property('auto')
|
|
8416
8513
|
], TreeGrid.prototype, "height", void 0);
|
|
8417
|
-
__decorate$
|
|
8514
|
+
__decorate$c([
|
|
8418
8515
|
Property('auto')
|
|
8419
8516
|
], TreeGrid.prototype, "width", void 0);
|
|
8420
|
-
__decorate$
|
|
8517
|
+
__decorate$c([
|
|
8421
8518
|
Complex({}, LoadingIndicator)
|
|
8422
8519
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
8423
|
-
__decorate$
|
|
8520
|
+
__decorate$c([
|
|
8424
8521
|
Property(true)
|
|
8425
8522
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
8426
|
-
__decorate$
|
|
8523
|
+
__decorate$c([
|
|
8427
8524
|
Property(false)
|
|
8428
8525
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
8429
|
-
__decorate$
|
|
8526
|
+
__decorate$c([
|
|
8430
8527
|
Property(false)
|
|
8431
8528
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
8432
|
-
__decorate$
|
|
8529
|
+
__decorate$c([
|
|
8433
8530
|
Property(false)
|
|
8434
8531
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
8435
|
-
__decorate$
|
|
8532
|
+
__decorate$c([
|
|
8436
8533
|
Property(false)
|
|
8437
8534
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
8438
|
-
__decorate$
|
|
8535
|
+
__decorate$c([
|
|
8439
8536
|
Complex({}, InfiniteScrollSettings)
|
|
8440
8537
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
8441
|
-
__decorate$
|
|
8538
|
+
__decorate$c([
|
|
8442
8539
|
Property('All')
|
|
8443
8540
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
8444
|
-
__decorate$
|
|
8541
|
+
__decorate$c([
|
|
8445
8542
|
Property(true)
|
|
8446
8543
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
8447
|
-
__decorate$
|
|
8544
|
+
__decorate$c([
|
|
8448
8545
|
Property(-1)
|
|
8449
8546
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
8450
|
-
__decorate$
|
|
8547
|
+
__decorate$c([
|
|
8451
8548
|
Complex({}, SelectionSettings)
|
|
8452
8549
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
8453
|
-
__decorate$
|
|
8550
|
+
__decorate$c([
|
|
8454
8551
|
Property(false)
|
|
8455
8552
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
8456
|
-
__decorate$
|
|
8553
|
+
__decorate$c([
|
|
8457
8554
|
Property(false)
|
|
8458
8555
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
8459
|
-
__decorate$
|
|
8556
|
+
__decorate$c([
|
|
8460
8557
|
Event()
|
|
8461
8558
|
], TreeGrid.prototype, "created", void 0);
|
|
8462
|
-
__decorate$
|
|
8559
|
+
__decorate$c([
|
|
8463
8560
|
Event()
|
|
8464
8561
|
], TreeGrid.prototype, "load", void 0);
|
|
8465
|
-
__decorate$
|
|
8562
|
+
__decorate$c([
|
|
8466
8563
|
Event()
|
|
8467
8564
|
], TreeGrid.prototype, "expanding", void 0);
|
|
8468
|
-
__decorate$
|
|
8565
|
+
__decorate$c([
|
|
8469
8566
|
Event()
|
|
8470
8567
|
], TreeGrid.prototype, "expanded", void 0);
|
|
8471
|
-
__decorate$
|
|
8568
|
+
__decorate$c([
|
|
8472
8569
|
Event()
|
|
8473
8570
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
8474
|
-
__decorate$
|
|
8571
|
+
__decorate$c([
|
|
8475
8572
|
Event()
|
|
8476
8573
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
8477
|
-
__decorate$
|
|
8574
|
+
__decorate$c([
|
|
8478
8575
|
Event()
|
|
8479
8576
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
8480
|
-
__decorate$
|
|
8577
|
+
__decorate$c([
|
|
8481
8578
|
Event()
|
|
8482
8579
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
8483
|
-
__decorate$
|
|
8580
|
+
__decorate$c([
|
|
8484
8581
|
Event()
|
|
8485
8582
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
8486
|
-
__decorate$
|
|
8583
|
+
__decorate$c([
|
|
8487
8584
|
Event()
|
|
8488
8585
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
8489
|
-
__decorate$
|
|
8586
|
+
__decorate$c([
|
|
8490
8587
|
Event()
|
|
8491
8588
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
8492
|
-
__decorate$
|
|
8589
|
+
__decorate$c([
|
|
8493
8590
|
Event()
|
|
8494
8591
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
8495
|
-
__decorate$
|
|
8592
|
+
__decorate$c([
|
|
8496
8593
|
Event()
|
|
8497
8594
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
8498
|
-
__decorate$
|
|
8595
|
+
__decorate$c([
|
|
8499
8596
|
Event()
|
|
8500
8597
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
8501
|
-
__decorate$
|
|
8598
|
+
__decorate$c([
|
|
8502
8599
|
Event()
|
|
8503
8600
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
8504
|
-
__decorate$
|
|
8601
|
+
__decorate$c([
|
|
8505
8602
|
Event()
|
|
8506
8603
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
8507
|
-
__decorate$
|
|
8604
|
+
__decorate$c([
|
|
8508
8605
|
Event()
|
|
8509
8606
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
8510
|
-
__decorate$
|
|
8607
|
+
__decorate$c([
|
|
8511
8608
|
Event()
|
|
8512
8609
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
8513
|
-
__decorate$
|
|
8610
|
+
__decorate$c([
|
|
8514
8611
|
Event()
|
|
8515
8612
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
8516
|
-
__decorate$
|
|
8613
|
+
__decorate$c([
|
|
8517
8614
|
Event()
|
|
8518
8615
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
8519
|
-
__decorate$
|
|
8616
|
+
__decorate$c([
|
|
8520
8617
|
Event()
|
|
8521
8618
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
8522
|
-
__decorate$
|
|
8619
|
+
__decorate$c([
|
|
8523
8620
|
Event()
|
|
8524
8621
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
8525
|
-
__decorate$
|
|
8622
|
+
__decorate$c([
|
|
8526
8623
|
Event()
|
|
8527
8624
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
8528
|
-
__decorate$
|
|
8625
|
+
__decorate$c([
|
|
8529
8626
|
Event()
|
|
8530
8627
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
8531
|
-
__decorate$
|
|
8628
|
+
__decorate$c([
|
|
8532
8629
|
Event()
|
|
8533
8630
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
8534
|
-
__decorate$
|
|
8631
|
+
__decorate$c([
|
|
8535
8632
|
Event()
|
|
8536
8633
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
8537
|
-
__decorate$
|
|
8634
|
+
__decorate$c([
|
|
8538
8635
|
Event()
|
|
8539
8636
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
8540
|
-
__decorate$
|
|
8637
|
+
__decorate$c([
|
|
8541
8638
|
Event()
|
|
8542
8639
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
8543
|
-
__decorate$
|
|
8640
|
+
__decorate$c([
|
|
8544
8641
|
Event()
|
|
8545
8642
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
8546
|
-
__decorate$
|
|
8643
|
+
__decorate$c([
|
|
8547
8644
|
Event()
|
|
8548
8645
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
8549
|
-
__decorate$
|
|
8646
|
+
__decorate$c([
|
|
8550
8647
|
Event()
|
|
8551
8648
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
8552
|
-
__decorate$
|
|
8649
|
+
__decorate$c([
|
|
8553
8650
|
Event()
|
|
8554
8651
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
8555
|
-
__decorate$
|
|
8652
|
+
__decorate$c([
|
|
8556
8653
|
Event()
|
|
8557
8654
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
8558
|
-
__decorate$
|
|
8655
|
+
__decorate$c([
|
|
8559
8656
|
Event()
|
|
8560
8657
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
8561
|
-
__decorate$
|
|
8658
|
+
__decorate$c([
|
|
8562
8659
|
Event()
|
|
8563
8660
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
8564
|
-
__decorate$
|
|
8661
|
+
__decorate$c([
|
|
8565
8662
|
Event()
|
|
8566
8663
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
8567
|
-
__decorate$
|
|
8664
|
+
__decorate$c([
|
|
8568
8665
|
Event()
|
|
8569
8666
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
8570
|
-
__decorate$
|
|
8667
|
+
__decorate$c([
|
|
8571
8668
|
Event()
|
|
8572
8669
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
8573
|
-
__decorate$
|
|
8670
|
+
__decorate$c([
|
|
8574
8671
|
Event()
|
|
8575
8672
|
], TreeGrid.prototype, "resizing", void 0);
|
|
8576
|
-
__decorate$
|
|
8673
|
+
__decorate$c([
|
|
8577
8674
|
Event()
|
|
8578
8675
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
8579
|
-
__decorate$
|
|
8676
|
+
__decorate$c([
|
|
8580
8677
|
Event()
|
|
8581
8678
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
8582
|
-
__decorate$
|
|
8679
|
+
__decorate$c([
|
|
8583
8680
|
Event()
|
|
8584
8681
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
8585
|
-
__decorate$
|
|
8682
|
+
__decorate$c([
|
|
8586
8683
|
Event()
|
|
8587
8684
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
8588
|
-
__decorate$
|
|
8685
|
+
__decorate$c([
|
|
8589
8686
|
Event()
|
|
8590
8687
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
8591
|
-
__decorate$
|
|
8688
|
+
__decorate$c([
|
|
8592
8689
|
Event()
|
|
8593
8690
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
8594
|
-
__decorate$
|
|
8691
|
+
__decorate$c([
|
|
8595
8692
|
Event()
|
|
8596
8693
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
8597
|
-
__decorate$
|
|
8694
|
+
__decorate$c([
|
|
8598
8695
|
Event()
|
|
8599
8696
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
8600
|
-
__decorate$
|
|
8697
|
+
__decorate$c([
|
|
8601
8698
|
Event()
|
|
8602
8699
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
8603
|
-
__decorate$
|
|
8700
|
+
__decorate$c([
|
|
8604
8701
|
Event()
|
|
8605
8702
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
8606
|
-
__decorate$
|
|
8703
|
+
__decorate$c([
|
|
8607
8704
|
Event()
|
|
8608
8705
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
8609
|
-
__decorate$
|
|
8706
|
+
__decorate$c([
|
|
8610
8707
|
Event()
|
|
8611
8708
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
8612
|
-
__decorate$
|
|
8709
|
+
__decorate$c([
|
|
8613
8710
|
Event()
|
|
8614
8711
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
8615
|
-
__decorate$
|
|
8712
|
+
__decorate$c([
|
|
8616
8713
|
Event()
|
|
8617
8714
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
8618
|
-
__decorate$
|
|
8715
|
+
__decorate$c([
|
|
8619
8716
|
Event()
|
|
8620
8717
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
8621
|
-
__decorate$
|
|
8718
|
+
__decorate$c([
|
|
8622
8719
|
Event()
|
|
8623
8720
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
8624
|
-
__decorate$
|
|
8721
|
+
__decorate$c([
|
|
8625
8722
|
Event()
|
|
8626
8723
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
8627
|
-
__decorate$
|
|
8724
|
+
__decorate$c([
|
|
8628
8725
|
Event()
|
|
8629
8726
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
8630
|
-
__decorate$
|
|
8727
|
+
__decorate$c([
|
|
8631
8728
|
Event()
|
|
8632
8729
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
8633
|
-
__decorate$
|
|
8730
|
+
__decorate$c([
|
|
8634
8731
|
Event()
|
|
8635
8732
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
8636
|
-
__decorate$
|
|
8733
|
+
__decorate$c([
|
|
8734
|
+
Event()
|
|
8735
|
+
], TreeGrid.prototype, "pdfAggregateQueryCellInfo", void 0);
|
|
8736
|
+
__decorate$c([
|
|
8737
|
+
Event()
|
|
8738
|
+
], TreeGrid.prototype, "excelAggregateQueryCellInfo", void 0);
|
|
8739
|
+
__decorate$c([
|
|
8637
8740
|
Event()
|
|
8638
8741
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
8639
|
-
__decorate$
|
|
8742
|
+
__decorate$c([
|
|
8640
8743
|
Event()
|
|
8641
8744
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
8642
|
-
__decorate$
|
|
8745
|
+
__decorate$c([
|
|
8643
8746
|
Event()
|
|
8644
8747
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
8645
|
-
__decorate$
|
|
8748
|
+
__decorate$c([
|
|
8646
8749
|
Event()
|
|
8647
8750
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
8648
|
-
__decorate$
|
|
8751
|
+
__decorate$c([
|
|
8649
8752
|
Event()
|
|
8650
8753
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
8651
|
-
TreeGrid = TreeGrid_1 = __decorate$
|
|
8754
|
+
TreeGrid = TreeGrid_1 = __decorate$c([
|
|
8652
8755
|
NotifyPropertyChanges
|
|
8653
8756
|
], TreeGrid);
|
|
8654
8757
|
return TreeGrid;
|
|
@@ -9218,9 +9321,18 @@ var RowDD = /** @__PURE__ @class */ (function () {
|
|
|
9218
9321
|
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
9219
9322
|
var keys = Object.keys(temporaryDataSource);
|
|
9220
9323
|
for (var i = 0; i < keys.length; i++) {
|
|
9221
|
-
if (temporaryDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]
|
|
9222
|
-
|
|
9223
|
-
|
|
9324
|
+
if (temporaryDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]) {
|
|
9325
|
+
if (temporaryDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
|
|
9326
|
+
droppedRecord.taskData[this.parent.childMapping]) {
|
|
9327
|
+
indexOfDroppedRecord = i;
|
|
9328
|
+
}
|
|
9329
|
+
}
|
|
9330
|
+
else {
|
|
9331
|
+
var primaryKeyField = this.parent.getPrimaryKeyFieldNames()[0];
|
|
9332
|
+
if (temporaryDataSource[parseInt(i.toString(), 10)]["" + primaryKeyField] ===
|
|
9333
|
+
droppedRecord.taskData["" + primaryKeyField]) {
|
|
9334
|
+
indexOfDroppedRecord = i;
|
|
9335
|
+
}
|
|
9224
9336
|
}
|
|
9225
9337
|
}
|
|
9226
9338
|
if (!this.parent.idMapping) {
|
|
@@ -10631,7 +10743,7 @@ var RowDD = /** @__PURE__ @class */ (function () {
|
|
|
10631
10743
|
return RowDD;
|
|
10632
10744
|
}());
|
|
10633
10745
|
|
|
10634
|
-
var __extends$
|
|
10746
|
+
var __extends$f = (undefined && undefined.__extends) || (function () {
|
|
10635
10747
|
var extendStatics = function (d, b) {
|
|
10636
10748
|
extendStatics = Object.setPrototypeOf ||
|
|
10637
10749
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10644,7 +10756,7 @@ var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
|
10644
10756
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10645
10757
|
};
|
|
10646
10758
|
})();
|
|
10647
|
-
var __decorate$
|
|
10759
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10648
10760
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10649
10761
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10650
10762
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10654,17 +10766,17 @@ var __decorate$c = (undefined && undefined.__decorate) || function (decorators,
|
|
|
10654
10766
|
* Configures the settings for row dragging and dropping within the TreeGrid, allowing for enhanced user interaction and data manipulation capabilities.
|
|
10655
10767
|
*/
|
|
10656
10768
|
var RowDropSettings = /** @__PURE__ @class */ (function (_super) {
|
|
10657
|
-
__extends$
|
|
10769
|
+
__extends$f(RowDropSettings, _super);
|
|
10658
10770
|
function RowDropSettings() {
|
|
10659
10771
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10660
10772
|
}
|
|
10661
|
-
__decorate$
|
|
10773
|
+
__decorate$d([
|
|
10662
10774
|
Property()
|
|
10663
10775
|
], RowDropSettings.prototype, "targetID", void 0);
|
|
10664
10776
|
return RowDropSettings;
|
|
10665
10777
|
}(ChildProperty));
|
|
10666
10778
|
|
|
10667
|
-
var __extends$
|
|
10779
|
+
var __extends$g = (undefined && undefined.__extends) || (function () {
|
|
10668
10780
|
var extendStatics = function (d, b) {
|
|
10669
10781
|
extendStatics = Object.setPrototypeOf ||
|
|
10670
10782
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10683,7 +10795,7 @@ var __extends$f = (undefined && undefined.__extends) || (function () {
|
|
|
10683
10795
|
* @hidden
|
|
10684
10796
|
*/
|
|
10685
10797
|
var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
|
|
10686
|
-
__extends$
|
|
10798
|
+
__extends$g(TreeVirtualRowModelGenerator, _super);
|
|
10687
10799
|
function TreeVirtualRowModelGenerator(parent) {
|
|
10688
10800
|
var _this = _super.call(this, parent) || this;
|
|
10689
10801
|
_this.addEventListener();
|
|
@@ -11031,6 +11143,7 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
|
11031
11143
|
this.parent.on('updateResults', this.updateExcelResultModel, this);
|
|
11032
11144
|
this.parent.on('excelCellInfo', this.excelQueryCellInfo, this);
|
|
11033
11145
|
this.parent.grid.on('export-RowDataBound', this.exportRowDataBound, this);
|
|
11146
|
+
this.parent.on('excelAggregateCellInfo', this.excelAggregateCellInfo, this);
|
|
11034
11147
|
this.parent.grid.on('finalPageSetup', this.finalPageSetup, this);
|
|
11035
11148
|
};
|
|
11036
11149
|
/**
|
|
@@ -11053,6 +11166,7 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
|
11053
11166
|
this.parent.off('updateResults', this.updateExcelResultModel);
|
|
11054
11167
|
this.parent.off('excelCellInfo', this.excelQueryCellInfo);
|
|
11055
11168
|
this.parent.grid.off('export-RowDataBound', this.exportRowDataBound);
|
|
11169
|
+
this.parent.off('excelAggregateCellInfo', this.excelAggregateCellInfo);
|
|
11056
11170
|
this.parent.grid.off('finalPageSetup', this.finalPageSetup);
|
|
11057
11171
|
};
|
|
11058
11172
|
ExcelExport.prototype.updateExcelResultModel = function (returnResult) {
|
|
@@ -11180,6 +11294,16 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
|
11180
11294
|
this.parent.notify('updateResults', args);
|
|
11181
11295
|
this.parent.trigger('excelQueryCellInfo', args);
|
|
11182
11296
|
};
|
|
11297
|
+
/**
|
|
11298
|
+
* TreeGrid Excel Export Aggregate cell modifier
|
|
11299
|
+
*
|
|
11300
|
+
* @param {AggregateQueryCellInfoEventArgs} args - current cell details
|
|
11301
|
+
* @hidden
|
|
11302
|
+
* @returns {void}
|
|
11303
|
+
*/
|
|
11304
|
+
ExcelExport.prototype.excelAggregateCellInfo = function (args) {
|
|
11305
|
+
this.parent.trigger('excelAggregateQueryCellInfo', args);
|
|
11306
|
+
};
|
|
11183
11307
|
ExcelExport.prototype.exportRowDataBound = function (excelRow) {
|
|
11184
11308
|
if (excelRow.type === 'excel') {
|
|
11185
11309
|
var excelrowobj = excelRow.rowObj.data;
|
|
@@ -11249,6 +11373,7 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
11249
11373
|
PdfExport.prototype.addEventListener = function () {
|
|
11250
11374
|
this.parent.on('pdfCellInfo', this.pdfQueryCellInfo, this);
|
|
11251
11375
|
this.parent.on('updateResults', this.updatePdfResultModel, this);
|
|
11376
|
+
this.parent.on('pdfAggregateCellInfo', this.pdfAggregateCellInfo, this);
|
|
11252
11377
|
};
|
|
11253
11378
|
/**
|
|
11254
11379
|
* @hidden
|
|
@@ -11260,6 +11385,7 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
11260
11385
|
}
|
|
11261
11386
|
this.parent.off('pdfCellInfo', this.pdfQueryCellInfo);
|
|
11262
11387
|
this.parent.off('updateResults', this.updatePdfResultModel);
|
|
11388
|
+
this.parent.off('pdfAggregateCellInfo', this.pdfAggregateCellInfo);
|
|
11263
11389
|
};
|
|
11264
11390
|
/**
|
|
11265
11391
|
* To destroy the PDF Export
|
|
@@ -11375,6 +11501,16 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
11375
11501
|
this.parent.notify('updateResults', args);
|
|
11376
11502
|
this.parent.trigger('pdfQueryCellInfo', args);
|
|
11377
11503
|
};
|
|
11504
|
+
/**
|
|
11505
|
+
* TreeGrid PDF Export Aggregate cell modifier
|
|
11506
|
+
*
|
|
11507
|
+
* @param {AggregateQueryCellInfoEventArgs} args - current cell details
|
|
11508
|
+
* @hidden
|
|
11509
|
+
* @returns {void}
|
|
11510
|
+
*/
|
|
11511
|
+
PdfExport.prototype.pdfAggregateCellInfo = function (args) {
|
|
11512
|
+
this.parent.trigger('pdfAggregateQueryCellInfo', args);
|
|
11513
|
+
};
|
|
11378
11514
|
return PdfExport;
|
|
11379
11515
|
}());
|
|
11380
11516
|
|
|
@@ -12231,7 +12367,9 @@ var ContextMenu = /** @__PURE__ @class */ (function () {
|
|
|
12231
12367
|
}
|
|
12232
12368
|
}
|
|
12233
12369
|
tObj.grid.contextMenuModule.contextMenu.hideItems(tObj.grid.contextMenuModule['hiddenItems']);
|
|
12234
|
-
indent
|
|
12370
|
+
if (indent || outdent) {
|
|
12371
|
+
indent.style.display = outdent.style.display = 'none';
|
|
12372
|
+
}
|
|
12235
12373
|
}
|
|
12236
12374
|
}
|
|
12237
12375
|
};
|
|
@@ -13740,7 +13878,7 @@ var Edit = /** @__PURE__ @class */ (function () {
|
|
|
13740
13878
|
this.addRowRecord = this.parent.flatData[args.index];
|
|
13741
13879
|
this.addRowIndex = args.index;
|
|
13742
13880
|
}
|
|
13743
|
-
if (this.parent.editSettings.newRowPosition === 'Child' && this.isIndexUndefined &&
|
|
13881
|
+
if (this.parent.editSettings.newRowPosition === 'Child' && (this.isIndexUndefined || this.isAddedRowByMethod) &&
|
|
13744
13882
|
!isNullOrUndefined(this.parent.getSelectedRecords()[0])) {
|
|
13745
13883
|
this.addRowRecord = this.parent.getSelectedRecords()[0];
|
|
13746
13884
|
this.isIndexUndefined = false;
|
|
@@ -14157,7 +14295,7 @@ var DetailRow = /** @__PURE__ @class */ (function () {
|
|
|
14157
14295
|
return DetailRow;
|
|
14158
14296
|
}());
|
|
14159
14297
|
|
|
14160
|
-
var __extends$
|
|
14298
|
+
var __extends$h = (undefined && undefined.__extends) || (function () {
|
|
14161
14299
|
var extendStatics = function (d, b) {
|
|
14162
14300
|
extendStatics = Object.setPrototypeOf ||
|
|
14163
14301
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14176,7 +14314,7 @@ var __extends$g = (undefined && undefined.__extends) || (function () {
|
|
|
14176
14314
|
* @hidden
|
|
14177
14315
|
*/
|
|
14178
14316
|
var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
14179
|
-
__extends$
|
|
14317
|
+
__extends$h(VirtualTreeContentRenderer, _super);
|
|
14180
14318
|
function VirtualTreeContentRenderer(parent, locator) {
|
|
14181
14319
|
var _this = _super.call(this, parent, locator) || this;
|
|
14182
14320
|
_this.isExpandCollapse = false;
|
|
@@ -14918,11 +15056,6 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
14918
15056
|
(this.parent.pageSettings.pageSize / 2) && (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
|
|
14919
15057
|
this.startIndex = lastIndex - (this.parent.pageSettings.pageSize / 2);
|
|
14920
15058
|
}
|
|
14921
|
-
if (currentViewData.length && this.startIndex > currentViewData[0]["" + indexValue] &&
|
|
14922
|
-
((this.startIndex - currentViewData[0]["" + indexValue]) < (this.parent.pageSettings.pageSize / 2)) &&
|
|
14923
|
-
this.parent.selectionModule && this.parent.selectionModule.isRowSelected) {
|
|
14924
|
-
this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
|
|
14925
|
-
}
|
|
14926
15059
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
14927
15060
|
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
14928
15061
|
}
|
|
@@ -14972,9 +15105,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
14972
15105
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
14973
15106
|
var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
14974
15107
|
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
14975
|
-
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
14976
|
-
|
|
14977
|
-
}
|
|
15108
|
+
// if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
15109
|
+
// viewInfo.loadNext = false;
|
|
15110
|
+
// }
|
|
14978
15111
|
this.requestType = 'virtualscroll';
|
|
14979
15112
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left' && !isRemoteData(this.parent.root)) {
|
|
14980
15113
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -15136,7 +15269,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
15136
15269
|
return VirtualTreeContentRenderer;
|
|
15137
15270
|
}(VirtualContentRenderer));
|
|
15138
15271
|
var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
15139
|
-
__extends$
|
|
15272
|
+
__extends$h(TreeInterSectionObserver, _super);
|
|
15140
15273
|
function TreeInterSectionObserver() {
|
|
15141
15274
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
15142
15275
|
_this.isWheeling = false;
|
|
@@ -15263,7 +15396,7 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
|
15263
15396
|
return TreeInterSectionObserver;
|
|
15264
15397
|
}(InterSectionObserver));
|
|
15265
15398
|
|
|
15266
|
-
var __extends$
|
|
15399
|
+
var __extends$i = (undefined && undefined.__extends) || (function () {
|
|
15267
15400
|
var extendStatics = function (d, b) {
|
|
15268
15401
|
extendStatics = Object.setPrototypeOf ||
|
|
15269
15402
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -15419,8 +15552,8 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
15419
15552
|
if (this.setEndIndexToGantt) {
|
|
15420
15553
|
this.ganttEndIndex = counts.endIndex;
|
|
15421
15554
|
}
|
|
15422
|
-
if ((counts.endIndex + this.parent.pageSettings.pageSize >= counts.count &&
|
|
15423
|
-
|| !(this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
15555
|
+
if (((counts.endIndex + this.parent.pageSettings.pageSize >= counts.count) &&
|
|
15556
|
+
(this.parent.root && counts.count !== this.ganttEndIndex) && this.parent['isAddedFromGantt']) || !(this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
15424
15557
|
startIndex = counts.startIndex + (counts.count - counts.endIndex);
|
|
15425
15558
|
endIndex = counts.count;
|
|
15426
15559
|
this.setEndIndexToGantt = false;
|
|
@@ -15526,7 +15659,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
15526
15659
|
return VirtualScroll;
|
|
15527
15660
|
}());
|
|
15528
15661
|
var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
|
|
15529
|
-
__extends$
|
|
15662
|
+
__extends$i(TreeVirtual, _super);
|
|
15530
15663
|
function TreeVirtual(parent, locator) {
|
|
15531
15664
|
var _this = _super.call(this, parent, locator) || this;
|
|
15532
15665
|
getValue('parent', _this).off('initial-load', getValue('instantiateRenderer', _this), _this);
|
|
@@ -15615,7 +15748,7 @@ var Freeze = /** @__PURE__ @class */ (function () {
|
|
|
15615
15748
|
}
|
|
15616
15749
|
for (var i = 0; i < rows.length; i++) {
|
|
15617
15750
|
var row = rows[parseInt(i.toString(), 10)];
|
|
15618
|
-
var rData = this.parent.grid.getRowObjectFromUID(row.getAttribute('data-
|
|
15751
|
+
var rData = this.parent.grid.getRowObjectFromUID(row.getAttribute('data-uid')).data;
|
|
15619
15752
|
if (!isNullOrUndefined(movableRows) && row.parentElement.firstElementChild.clientHeight > 0) {
|
|
15620
15753
|
row.style.height = row.parentElement.firstElementChild.clientHeight + 'px';
|
|
15621
15754
|
}
|