@progress/kendo-angular-pivotgrid
Version:
PivotGrid package for Angular
128 lines (127 loc) • 5.65 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { AfterContentInit, AfterViewInit, ElementRef, NgZone, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
import { ScrollbarWidthService } from '@progress/kendo-angular-common';
import { PivotGridDataService } from './data-binding/pivotgrid-data.service';
import { LoaderSettings } from './models/loader-settings';
import { LocalizationService } from '@progress/kendo-angular-l10n';
import { ConfiguratorSettings } from './models/configurator-settings';
import { ConfiguratorNavigation, PivotGridNavigation } from '@progress/kendo-pivotgrid-common';
import { PivotDataRowItem } from './models/data-row-item';
import { SVGIcon } from '@progress/kendo-svg-icons';
import { CellTemplateDirective } from './rendering/templates/pivotgrid-cell-template.directive';
import { ValueCellTemplateDirective } from './rendering/templates/pivotgrid-value-cell-template.directive';
import { RowHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-row-header-cell-template.directive';
import { ColumnHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-column-header-cell-template.directive';
import { VirtualizationSettings } from './models/virtualization-settings';
import { PivotGridScrollService } from './virtual/scroll.service';
import * as i0 from "@angular/core";
/**
* Represents the Kendo UI PivotGrid component for Angular.
*/
export declare class PivotGridComponent implements AfterViewInit, AfterContentInit, OnDestroy {
private hostEl;
private zone;
dataService: PivotGridDataService;
private localization;
private renderer;
private scrollService;
hostClass: boolean;
get rightPositionClass(): boolean;
get leftPositionClass(): boolean;
get bottomPositionClass(): boolean;
get topPositionClass(): boolean;
get dir(): string;
private colHeadersTable;
private rowHeadersTable;
private valuesTable;
private table;
private configuratorWrapper;
customCellTemplate: CellTemplateDirective;
valueCellTemplate: ValueCellTemplateDirective;
rowHeaderCellTemplate: RowHeaderCellTemplateDirective;
columnHeaderCellTemplate: ColumnHeaderCellTemplateDirective;
/**
* Specify the type, size and color of the PivotGrid's loader.
*
* The default settings are:
* * type: `converging-spinner`
* * color: `primary`
* * size: `large`
*/
set loaderSettings(settings: LoaderSettings);
get loaderSettings(): LoaderSettings;
/**
* @hidden
*/
get loadingText(): string;
/**
* Specifies whether the axes configurator should be displayed.
*/
configurator: boolean | ConfiguratorSettings;
/**
* Sets the virtualization options of the component. By default the virtual scrolling functionality is disabled.
*
* @default false
*/
set virtualScrolling(value: boolean | VirtualizationSettings);
get virtualScrolling(): VirtualizationSettings;
get configuratorSettings(): ConfiguratorSettings;
/**
* Specify the width of the column header and data cells. Value is treated as pixels [(see example)]({% slug appearance_pivotgrid %}#toc-column-headers-width).
*
* @default 200
*/
columnHeadersWidth: number;
/**
* If set to true, the user can use dedicated shortcuts to interact with the PivotGrid. By default, navigation is disabled.
*
* @default false
*/
navigable: boolean;
/**
* Holds the displayed aggregated PivotGrid values.
*/
get aggregateData(): PivotDataRowItem[];
/**
* @hidden
*/
gearSVGIcon: SVGIcon;
loading: boolean;
showConfigurator: boolean;
configuratorNavigation: ConfiguratorNavigation;
private resizeObservers;
private _loaderSettings;
private _virtualScrolling;
private subs;
private rtl;
private direction;
navigation: PivotGridNavigation;
private navigationSubs;
constructor(hostEl: ElementRef, zone: NgZone, dataService: PivotGridDataService, localization: LocalizationService, renderer: Renderer2, _scrollbarWidthService: ScrollbarWidthService, scrollService: PivotGridScrollService);
ngAfterViewInit(): void;
ngAfterContentInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
/**
* @hidden
*/
messageFor(localizationToken: string): string;
/**
* @hidden
*/
toggleConfigurator(): void;
private resizeContainer;
private handleScroll;
/**
* @hidden
*/
initNavigation(): void;
private stopNavigation;
private initConfiguratorNavigation;
private stopConfiguratorNavigation;
static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "kendo-pivotgrid", never, { "loaderSettings": { "alias": "loaderSettings"; "required": false; }; "configurator": { "alias": "configurator"; "required": false; }; "virtualScrolling": { "alias": "virtualScrolling"; "required": false; }; "columnHeadersWidth": { "alias": "columnHeadersWidth"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; }, {}, ["customCellTemplate", "valueCellTemplate", "rowHeaderCellTemplate", "columnHeaderCellTemplate"], never, true, never>;
}