UNPKG

@anglr/grid

Version:
59 lines 2.33 kB
import { ChangeDetectorRef, ElementRef, Directive, inject } from '@angular/core'; import { extend } from '@jscrpt/common/extend'; import { GRID_PLUGIN_INSTANCES } from '../../../misc/tokens'; import * as i0 from "@angular/core"; /** * Abstract component for header content renderer * @deprecated use new MatrixGrid with MatrixContentRenderer instead */ export class HeaderContentRendererAbstractComponent { //######################### public properties - implementation of TableHeaderContentRenderer ######################### /** * @inheritdoc */ get options() { return this.ɵoptions; } set options(options) { this.ɵoptions = extend(true, this.ɵoptions, options); } //######################### constructor ######################### constructor(defaultOptions, options) { /** * Instance of change detector */ this.changeDetector = inject(ChangeDetectorRef); /** * @inheritdoc */ this.pluginElement = inject((ElementRef)); /** * @inheritdoc */ this.gridPlugins = inject(GRID_PLUGIN_INSTANCES, { optional: true }); this.ɵoptions = extend(true, {}, defaultOptions, options); } //######################### public methods - implementation of TableHeaderContentRenderer ######################### /** * @inheritdoc */ invalidateVisuals() { this.changeDetector.detectChanges(); } /** * @inheritdoc */ initialize(_force) { } /** * @inheritdoc */ initOptions() { } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HeaderContentRendererAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); } static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: HeaderContentRendererAbstractComponent, isStandalone: true, ngImport: i0 }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HeaderContentRendererAbstractComponent, decorators: [{ type: Directive }], ctorParameters: () => [{ type: undefined }, { type: undefined }] }); //# sourceMappingURL=headerContentRendererAbstract.component.js.map