@progress/kendo-angular-pivotgrid 17.0.0-develop.5 → 17.0.0-develop.7

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.
@@ -9,7 +9,7 @@ import { CellTemplateDirective } from './templates/pivotgrid-cell-template.direc
9
9
  import { ValueCellTemplateDirective } from './templates/pivotgrid-value-cell-template.directive';
10
10
  import { RowHeaderCellTemplateDirective } from './templates/pivotgrid-row-header-cell-template.directive';
11
11
  import { ColumnHeaderCellTemplateDirective } from './templates/pivotgrid-column-header-cell-template.directive';
12
- import { NgIf } from '@angular/common';
12
+ import { NgClass, NgIf } from '@angular/common';
13
13
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
14
14
  import { EventsOutsideAngularDirective, TemplateContextDirective } from '@progress/kendo-angular-common';
15
15
  import * as i0 from "@angular/core";
@@ -46,9 +46,10 @@ export class PivotGridCellDirective {
46
46
  this.renderer.setAttribute(nativeElement, 'rowspan', this.kendoPivotGridCell.rowSpan || 1);
47
47
  this.renderer.setAttribute(nativeElement, 'colspan', this.kendoPivotGridCell.colSpan || 1);
48
48
  const classesToAdd = {
49
- 'k-pivotgrid-header-total': this.kendoPivotGridCell?.total || (this.tableType === 'values'
49
+ 'k-pivotgrid-header-total': this.kendoPivotGridCell?.total,
50
+ 'k-pivotgrid-total': this.tableType === 'values'
50
51
  && (this.dataService.rowHeaderLeaves[this.rowIndex].total ||
51
- this.dataService.columnHeaderLeaves[this.colIndex].total)),
52
+ this.dataService.columnHeaderLeaves[this.colIndex].total),
52
53
  'k-pivotgrid-header-root': this.kendoPivotGridCell?.levelNum === 0,
53
54
  'k-pivotgrid-expanded': this.kendoPivotGridCell?.hasChildren && this.kendoPivotGridCell.children.length,
54
55
  'k-first': this.colIndex > 0
@@ -118,10 +119,10 @@ PivotGridCellDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
118
119
  }">
119
120
  </ng-template>
120
121
  <!--default cell content-->
121
- <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType">
122
+ <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType" [ngClass]="{'k-pivotgrid-header-title': !kendoPivotGridCell.data, 'k-pivotgrid-content': kendoPivotGridCell.data}">
122
123
  {{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
123
124
  </span>
124
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
125
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
125
126
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridCellDirective, decorators: [{
126
127
  type: Component,
127
128
  args: [{
@@ -184,12 +185,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
184
185
  }">
185
186
  </ng-template>
186
187
  <!--default cell content-->
187
- <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType">
188
+ <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType" [ngClass]="{'k-pivotgrid-header-title': !kendoPivotGridCell.data, 'k-pivotgrid-content': kendoPivotGridCell.data}">
188
189
  {{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
189
190
  </span>
190
191
  `,
191
192
  standalone: true,
192
- imports: [NgIf, IconWrapperComponent, EventsOutsideAngularDirective, TemplateContextDirective]
193
+ imports: [NgIf, IconWrapperComponent, EventsOutsideAngularDirective, TemplateContextDirective, NgClass]
193
194
  }]
194
195
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.PivotGridDataService }]; }, propDecorators: { cellClass: [{
195
196
  type: HostBinding,