UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

53 lines (52 loc) 2.36 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, ElementRef, HostBinding, Input } from '@angular/core'; import * as i0 from "@angular/core"; /** * @hidden */ export class GridTableDirective { wrapper; hostClass = true; get sizeSmallClass() { return this.size === 'small'; } get sizeMediumClass() { return this.size === 'medium' || !this.size; } set size(size) { this._size = size; if (size === 'none') { this.wrapper.nativeElement.classList.remove('k-table-sm', 'k-table-md'); } } get size() { return this._size; } _size = 'medium'; constructor(wrapper) { this.wrapper = wrapper; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridTableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GridTableDirective, isStandalone: true, selector: "[kendoGridTable]", inputs: { size: "size" }, host: { properties: { "class.k-table": "this.hostClass", "class.k-table-sm": "this.sizeSmallClass", "class.k-table-md": "this.sizeMediumClass" } }, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridTableDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoGridTable]', standalone: true }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { hostClass: [{ type: HostBinding, args: ['class.k-table'] }], sizeSmallClass: [{ type: HostBinding, args: ['class.k-table-sm'] }], sizeMediumClass: [{ type: HostBinding, args: ['class.k-table-md'] }], size: [{ type: Input }] } });