@acorex/data-grid 6.5.60 → 6.5.62

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.
@@ -825,6 +825,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
825
825
  }]
826
826
  }] });
827
827
 
828
+ LicenseManager.prototype.isDisplayWatermark = () => {
829
+ return false;
830
+ };
828
831
  LicenseManager.prototype.validateLicense = function () {
829
832
  //console.info('Cracked by Arash Oshnoudi!');
830
833
  };
@@ -861,8 +864,8 @@ class AXDataGridComponent {
861
864
  this.paginationPageSize = 20;
862
865
  this.cacheBlockSize = this.paginationPageSize;
863
866
  this.remoteOperation = false;
864
- this.rowMultiSelectWithClick = true;
865
- this.suppressRowClickSelection = true;
867
+ this.rowMultiSelectWithClick = false;
868
+ this.suppressRowClickSelection = false;
866
869
  this.suppressCellSelection = false;
867
870
  this.sizeColumnsToFit = true;
868
871
  this.showCheckBox = true;
@@ -870,7 +873,7 @@ class AXDataGridComponent {
870
873
  // @Input()
871
874
  // takeCount: number;
872
875
  this.autoGroupColumnDef = {};
873
- this.selectionMode = 'single';
876
+ this.selectionMode = 'multiple';
874
877
  // @Input()
875
878
  // allowFiltering: boolean = false;
876
879
  this.pagination = true;
@@ -885,7 +888,7 @@ class AXDataGridComponent {
885
888
  this._columns = [];
886
889
  this.defaultColDef = {
887
890
  filter: true,
888
- floatingFilter: true
891
+ floatingFilter: true,
889
892
  };
890
893
  this.groupHideOpenParents = false;
891
894
  this.cellClick = new EventEmitter();
@@ -906,7 +909,7 @@ class AXDataGridComponent {
906
909
  this.getCurrentPageNumber = () => {
907
910
  return {
908
911
  current: this.gridApi.paginationGetCurrentPage() + 1,
909
- total: this.gridApi.paginationGetTotalPages()
912
+ total: this.gridApi.paginationGetTotalPages(),
910
913
  };
911
914
  };
912
915
  this.getServerSideGroupKey = (e) => {
@@ -918,7 +921,7 @@ class AXDataGridComponent {
918
921
  return this.rowClass({
919
922
  rowIndex: p.node.rowIndex,
920
923
  rowLevel: p.node.level,
921
- data: p.data
924
+ data: p.data,
922
925
  });
923
926
  }
924
927
  else {
@@ -956,13 +959,20 @@ class AXDataGridComponent {
956
959
  }
957
960
  }
958
961
  get columns() {
959
- return this._inlineColumns ? [...this._columns, ...this._inlineColumns.toArray()] : this._columns;
962
+ return this._inlineColumns
963
+ ? [...this._columns, ...this._inlineColumns.toArray()]
964
+ : this._columns;
960
965
  }
961
966
  set columns(val) {
962
967
  if (val && val.length) {
963
968
  let old = this._columns;
964
969
  this._columns = val;
965
- this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
970
+ this.columnsChange.emit({
971
+ component: this,
972
+ value: val,
973
+ oldValue: old,
974
+ htmlElement: this.ref.nativeElement,
975
+ });
966
976
  }
967
977
  }
968
978
  get dataSource() {
@@ -992,17 +1002,17 @@ class AXDataGridComponent {
992
1002
  loadParams.sort = params.request.sortModel.map((c) => {
993
1003
  return {
994
1004
  field: c.colId,
995
- dir: c.sort
1005
+ dir: c.sort,
996
1006
  };
997
1007
  });
998
1008
  loadParams.group = {
999
1009
  fields: params.request.rowGroupCols.map((r) => r.field),
1000
1010
  keys: params.request.groupKeys,
1001
- parentData: params.parentNode.data
1011
+ parentData: params.parentNode.data,
1002
1012
  };
1003
1013
  loadParams.filter = params.request.filterModel;
1004
1014
  that.dataSource.fetch(loadParams);
1005
- }
1015
+ },
1006
1016
  };
1007
1017
  }
1008
1018
  getMainMenuItems(e) {
@@ -1019,7 +1029,8 @@ class AXDataGridComponent {
1019
1029
  this.handlePageSize();
1020
1030
  }
1021
1031
  else {
1022
- this.cacheBlockSize = this.paginationPageSize > 20 ? this.paginationPageSize : 100;
1032
+ this.cacheBlockSize =
1033
+ this.paginationPageSize > 20 ? this.paginationPageSize : 100;
1023
1034
  }
1024
1035
  this.gridApi = gridOptions.api;
1025
1036
  this.mapColumns();
@@ -1046,7 +1057,8 @@ class AXDataGridComponent {
1046
1057
  this.masterDetail = true;
1047
1058
  this.detailCellRendererParams = this.gridDetailTemplate.params;
1048
1059
  this.detailCellRenderer = 'detailRendererFramework';
1049
- this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
1060
+ this.frameworkComponents.detailRendererFramework =
1061
+ this.gridDetailTemplate.renderer;
1050
1062
  this.detailRowHeight = this.gridDetailTemplate.height;
1051
1063
  }
1052
1064
  this.isFullWidthCell = () => {
@@ -1066,13 +1078,20 @@ class AXDataGridComponent {
1066
1078
  }
1067
1079
  //
1068
1080
  if (this.rtl == null) {
1069
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1081
+ this.rtl =
1082
+ window
1083
+ .getComputedStyle(this.ref.nativeElement, null)
1084
+ .getPropertyValue('direction') === 'rtl';
1070
1085
  }
1071
1086
  //
1072
1087
  }
1073
1088
  gridSelectRow() {
1089
+ debugger;
1074
1090
  if (this.gridApi) {
1075
- if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
1091
+ if (this.selectRow &&
1092
+ this.selectRow.length > 0 &&
1093
+ this.gridApi !== undefined &&
1094
+ typeof this.selectRow[0] != 'object') {
1076
1095
  this.gridApi.forEachNode((node) => {
1077
1096
  if (node.data !== undefined) {
1078
1097
  let select = false;
@@ -1123,7 +1142,7 @@ class AXDataGridComponent {
1123
1142
  headerName: groupColumn.headerName,
1124
1143
  width: groupColumn.width,
1125
1144
  cellRendererParams: { checkbox: this.showCheckBox },
1126
- field: groupColumn.field
1145
+ field: groupColumn.field,
1127
1146
  };
1128
1147
  this.columnDefs.forEach((elm) => {
1129
1148
  if (elm.rowGroupIndex > -1) {
@@ -1177,7 +1196,8 @@ class AXDataGridComponent {
1177
1196
  mapColumns() {
1178
1197
  this.columnDefs = this.columns.map((c) => c.render());
1179
1198
  if (this.gridDetailTemplate) {
1180
- if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
1199
+ if (this.columnDefs[0].checkboxSelection === true &&
1200
+ this.columnDefs[0].field === '') {
1181
1201
  this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
1182
1202
  }
1183
1203
  else {
@@ -1191,7 +1211,7 @@ class AXDataGridComponent {
1191
1211
  headerName: groupColumn.headerName,
1192
1212
  width: groupColumn.width,
1193
1213
  cellRendererParams: { checkbox: this.showCheckBox },
1194
- field: groupColumn.field
1214
+ field: groupColumn.field,
1195
1215
  };
1196
1216
  }
1197
1217
  }
@@ -1210,7 +1230,7 @@ class AXDataGridComponent {
1210
1230
  headerName: eee.colDef.headerName,
1211
1231
  width: eee.colDef.width,
1212
1232
  cellRendererParams: { checkbox: this.showCheckBox },
1213
- field: eee.colDef.field
1233
+ field: eee.colDef.field,
1214
1234
  };
1215
1235
  }
1216
1236
  }
@@ -1225,22 +1245,42 @@ class AXDataGridComponent {
1225
1245
  }
1226
1246
  }
1227
1247
  internalGridCellClicked(e) {
1228
- this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1248
+ this.cellClick.emit({
1249
+ data: this.mapCellEvent(e),
1250
+ component: this,
1251
+ htmlElement: this.ref.nativeElement,
1252
+ });
1229
1253
  }
1230
1254
  internalGridCellDoubleClicked(e) {
1231
- this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1255
+ this.cellDbClick.emit({
1256
+ data: this.mapCellEvent(e),
1257
+ component: this,
1258
+ htmlElement: this.ref.nativeElement,
1259
+ });
1232
1260
  }
1233
1261
  internalGridCellFocused(e) {
1234
- this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
1262
+ this.cellFocuse.emit({
1263
+ data: this.mapCellEvent(e),
1264
+ htmlElement: this.ref.nativeElement,
1265
+ component: this,
1266
+ });
1235
1267
  }
1236
1268
  internalGridRowClicked(e) {
1237
1269
  if (!e.node.group) {
1238
- this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
1270
+ this.rowClick.emit({
1271
+ data: this.mapRowEvent(e),
1272
+ component: this,
1273
+ htmlElement: this.ref.nativeElement,
1274
+ });
1239
1275
  }
1240
1276
  }
1241
1277
  internalGridRowDoubleClicked(e) {
1242
1278
  if (!e.node.group) {
1243
- this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
1279
+ this.rowDbClick.emit({
1280
+ data: this.mapRowEvent(e),
1281
+ htmlElement: this.ref.nativeElement,
1282
+ component: this,
1283
+ });
1244
1284
  }
1245
1285
  }
1246
1286
  differenceOf2Arrays(array1, array2) {
@@ -1265,7 +1305,11 @@ class AXDataGridComponent {
1265
1305
  else {
1266
1306
  this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
1267
1307
  }
1268
- this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
1308
+ this.rowSelectionChange.emit({
1309
+ component: this,
1310
+ data: e,
1311
+ htmlElement: this.ref.nativeElement,
1312
+ });
1269
1313
  }
1270
1314
  internalGridSelectionChanged(e) {
1271
1315
  const args = { items: [] };
@@ -1275,13 +1319,22 @@ class AXDataGridComponent {
1275
1319
  args.items.push({
1276
1320
  rowLevel: i.level,
1277
1321
  rowIndex: i.rowIndex,
1278
- data: i.data
1322
+ data: i.data,
1279
1323
  });
1280
1324
  });
1281
- this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
1325
+ this.selectionChanged.emit({
1326
+ data: args,
1327
+ component: this,
1328
+ htmlElement: this.ref.nativeElement,
1329
+ });
1282
1330
  let action = nodes.length > oldNodes.length ? true : false;
1283
1331
  const node = this.differenceOf2Arrays(nodes, oldNodes);
1284
- this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
1332
+ this.onRowSelectionChanged.emit({
1333
+ component: this,
1334
+ selected: action,
1335
+ data: node,
1336
+ htmlElement: this.ref.nativeElement,
1337
+ });
1285
1338
  this.oldSelectionNodes = nodes;
1286
1339
  }
1287
1340
  mapCellEvent(e) {
@@ -1290,14 +1343,14 @@ class AXDataGridComponent {
1290
1343
  column: e.column,
1291
1344
  data: e.data,
1292
1345
  rowIndex: e.rowIndex,
1293
- value: e.value
1346
+ value: e.value,
1294
1347
  };
1295
1348
  }
1296
1349
  mapRowEvent(e) {
1297
1350
  return {
1298
1351
  rowLevel: 0,
1299
1352
  data: e.data,
1300
- rowIndex: e.rowIndex
1353
+ rowIndex: e.rowIndex,
1301
1354
  };
1302
1355
  }
1303
1356
  deselectAll() {