@progress/kendo-angular-grid 18.1.0-develop.19 → 18.1.0-develop.2

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.
@@ -135,25 +135,7 @@ export class NavigationService {
135
135
  }
136
136
  }
137
137
  get isColumnResizable() {
138
- const allColumns = Array.from(this.ctx.grid.columnsContainer.allColumns);
139
- const column = allColumns.find((col) => col.level === this.activeCell.rowIndex && col.leafIndex === this.activeCell.colIndex);
140
- if (!column.parent) {
141
- if (column.isColumnGroup) {
142
- return this.activeCell.colIndex + this.activeCell.colSpan !== this.ctx.grid.columnsContainer.leafColumnsToRender.length;
143
- }
144
- else {
145
- return this.activeCell.colIndex !== this.ctx.grid.columnsContainer.leafColumnsToRender.length - 1;
146
- }
147
- }
148
- else {
149
- const columnGroup = column.parent;
150
- const columnGroupChildren = Array.from(columnGroup.children).sort((a, b) => a.orderIndex - b.orderIndex);
151
- const columnIndexInsideGroup = columnGroupChildren.indexOf(column);
152
- if (column.isReordered || column.orderIndex > 0 || (column.isReordered && column.orderIndex === 0)) {
153
- return (column.orderIndex - columnGroupChildren[0]['orderIndex']) !== columnGroupChildren.length - 1;
154
- }
155
- return columnIndexInsideGroup !== columnGroupChildren.length - 1;
156
- }
138
+ return this.activeCell.colIndex !== this.ctx.grid.columnsContainer.leafColumnsToRender.length - 1;
157
139
  }
158
140
  viewport;
159
141
  columnViewport;
@@ -595,7 +577,8 @@ export class NavigationService {
595
577
  }
596
578
  }
597
579
  columnResize(onRightArrow) {
598
- const column = this.ctx.grid.columnsContainer.allColumns.find((col) => col.level === this.activeCell.rowIndex && col.leafIndex === this.activeCell.colIndex);
580
+ const column = this.ctx.grid.columnsContainer.leafColumnsToRender[this.activeCell.colIndex];
581
+ column.resizeStartWidth = Array.from(this.ctx.grid.wrapper.nativeElement.querySelectorAll('.k-grid-header th.k-header'))[this.activeCell.colIndex]['offsetWidth'];
599
582
  this.resizeService.start(column);
600
583
  this.resizeService.resizeColumns(onRightArrow ? resizeStep : -1 * resizeStep);
601
584
  if (this.resizeService.resizeColumns.length > 0) {
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1738834037,
14
- version: '18.1.0-develop.19',
13
+ publishDate: 1738227350,
14
+ version: '18.1.0-develop.2',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -368,6 +368,9 @@ export class HeaderComponent {
368
368
  isCheckboxColumn(column) {
369
369
  return isCheckboxColumn(column) && !column.templateRef;
370
370
  }
371
+ trackByIndex(index) {
372
+ return index;
373
+ }
371
374
  addStickyStyles(column) {
372
375
  const stickyStyles = this.columnInfoService.stickyColumnsStyles(column);
373
376
  return { ...column.headerStyle, ...stickyStyles };
@@ -506,7 +509,7 @@ export class HeaderComponent {
506
509
  *ngIf="detailTemplate?.templateRef"
507
510
  >
508
511
  </th>
509
- <ng-container *ngFor="let column of columnsForLevel(levelIndex); let columnIndex = index; let last = last;">
512
+ <ng-container *ngFor="let column of columnsForLevel(levelIndex); trackBy: trackByIndex; let columnIndex = index; let last = last;">
510
513
  <th *ngIf="!isColumnGroupComponent(column)"
511
514
  kendoGridLogicalCell
512
515
  [logicalRowIndex]="levelIndex"
@@ -733,7 +736,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
733
736
  *ngIf="detailTemplate?.templateRef"
734
737
  >
735
738
  </th>
736
- <ng-container *ngFor="let column of columnsForLevel(levelIndex); let columnIndex = index; let last = last;">
739
+ <ng-container *ngFor="let column of columnsForLevel(levelIndex); trackBy: trackByIndex; let columnIndex = index; let last = last;">
737
740
  <th *ngIf="!isColumnGroupComponent(column)"
738
741
  kendoGridLogicalCell
739
742
  [logicalRowIndex]="levelIndex"
package/esm2022/utils.mjs CHANGED
@@ -139,7 +139,3 @@ export const recursiveFlatMap = (item) => isGroupResult(item) ? item.items.flatM
139
139
  export const isGroupResult = (obj) => {
140
140
  return 'aggregates' in obj && 'items' in obj && 'field' in obj && 'value' in obj;
141
141
  };
142
- /**
143
- * @hidden
144
- */
145
- export const roundDown = (value) => Math.floor(value * 100) / 100;