UNPKG

@progress/kendo-angular-pivotgrid

Version:
41 lines (40 loc) 1.96 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Input, isDevMode, HostBinding, Component } from '@angular/core'; import { ChipMenuService } from './chip-menu.service'; import * as i0 from "@angular/core"; /** * @hidden */ export class ChipMenuItemBase { /** * Represents the ChipMenuService class. * Requires a mandatory input. */ service; hostClass = true; ngOnInit() { if (isDevMode() && !this.service) { throw new Error('The service input of the host chip menu components (e.g. ChipMenuSortComponent) is mandatory.'); } } close() { this.service.close(); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuItemBase, selector: "kendo-pivot-chip-menu-item-base", inputs: { service: "service" }, host: { properties: { "class.k-columnmenu-item-wrapper": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemBase, decorators: [{ type: Component, args: [{ selector: 'kendo-pivot-chip-menu-item-base', template: `` }] }], propDecorators: { service: [{ type: Input }], hostClass: [{ type: HostBinding, args: ['class.k-columnmenu-item-wrapper'] }] } });