@progress/kendo-angular-pivotgrid 17.0.0-develop.6 → 17.0.0-develop.8

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.
@@ -105,7 +105,7 @@ export class PivotGridComponent {
105
105
  this.scrollService.pivotGrid = this;
106
106
  }
107
107
  get rightPositionClass() {
108
- return this.configuratorSettings?.position === 'right';
108
+ return !this.configuratorSettings || this.configuratorSettings.position === 'right';
109
109
  }
110
110
  get leftPositionClass() {
111
111
  return this.configuratorSettings?.position === 'left';
@@ -433,7 +433,7 @@ PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
433
433
  class="k-pivotgrid-configurator-button"
434
434
  aria-hidden="true"
435
435
  (click)="toggleConfigurator()">
436
- <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
436
+ <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
437
437
  </span>
438
438
  </div>
439
439
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoPivotGridLocalizedMessages]" }, { kind: "component", type: PivotGridTableComponent, selector: "kendo-pivotgrid-table", inputs: ["tableType", "colWidth", "customCellTemplate", "valueCellTemplate", "rowHeaderCellTemplate", "columnHeaderCellTemplate", "scrollableSettings"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }, { kind: "component", type: PivotGridConfiguratorComponent, selector: "kendo-pivotgrid-configurator", inputs: ["orientation", "sort", "filter", "navigation"], outputs: ["close"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
@@ -606,7 +606,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
606
606
  class="k-pivotgrid-configurator-button"
607
607
  aria-hidden="true"
608
608
  (click)="toggleConfigurator()">
609
- <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
609
+ <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
610
610
  </span>
611
611
  </div>
612
612
  `,
@@ -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,