@progress/kendo-angular-grid 18.1.0-develop.30 → 18.1.0-develop.4
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/column-resizing/column-handle.directive.d.ts +0 -13
- package/column-resizing/column-resizing.service.d.ts +1 -5
- package/columns/column-base.d.ts +0 -12
- package/columns/column.component.d.ts +2 -3
- package/esm2022/column-resizing/column-handle.directive.mjs +36 -217
- package/esm2022/column-resizing/column-resizing.service.mjs +1 -16
- package/esm2022/column-resizing/table.directive.mjs +1 -1
- package/esm2022/columns/column-base.mjs +0 -12
- package/esm2022/columns/column.component.mjs +0 -4
- package/esm2022/grid.component.mjs +5 -49
- package/esm2022/navigation/navigation.service.mjs +3 -20
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/header/header.component.mjs +5 -2
- package/esm2022/utils.mjs +0 -4
- package/fesm2022/progress-kendo-angular-grid.mjs +52 -326
- package/grid.component.d.ts +1 -12
- package/index.d.ts +0 -1
- package/package.json +20 -20
- package/rendering/header/header.component.d.ts +1 -0
- package/schematics/ngAdd/index.js +4 -4
- package/utils.d.ts +0 -4
- package/common/resizable-settings.d.ts +0 -25
- package/esm2022/common/resizable-settings.mjs +0 -8
|
@@ -135,25 +135,7 @@ export class NavigationService {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
get isColumnResizable() {
|
|
138
|
-
|
|
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.
|
|
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:
|
|
14
|
-
version: '18.1.0-develop.
|
|
13
|
+
publishDate: 1738318436,
|
|
14
|
+
version: '18.1.0-develop.4',
|
|
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;
|