UNPKG

@progress/kendo-angular-grid

Version:

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

45 lines (44 loc) 1.91 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Injectable, Optional } from '@angular/core'; import { Subject } from 'rxjs'; import { MenuTabbingService } from './menu/menu-tabbing.service'; import * as i0 from "@angular/core"; import * as i1 from "./menu/menu-tabbing.service"; /** * Represents a service to set the filter descriptor * ([see example]({% slug filter_row %}#toc-custom-filter-row-components)). */ export class FilterService { /** * @hidden */ menuTabbingService; /** * Fires when the filter descriptors is set. */ changes = new Subject(); /** * Sets the filter descriptor. * * @param {CompositeFilterDescriptor} value - The filter descriptor that will be set. */ filter(value) { this.changes.next(value); } /** * @hidden */ constructor(menuTabbingService) { this.menuTabbingService = menuTabbingService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterService, deps: [{ token: i1.MenuTabbingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterService, decorators: [{ type: Injectable }], ctorParameters: function () { return [{ type: i1.MenuTabbingService, decorators: [{ type: Optional }] }]; } });