@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.88 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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";
/**
* Provides 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 descriptor is set.
*/
changes = new Subject();
/**
* Sets the filter descriptor.
*
* @param {CompositeFilterDescriptor} value - The filter descriptor to set.
*/
filter(value) {
this.changes.next(value);
}
/**
* @hidden
*/
constructor(menuTabbingService) {
this.menuTabbingService = menuTabbingService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterService, deps: [{ token: i1.MenuTabbingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterService });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterService, decorators: [{
type: Injectable
}], ctorParameters: () => [{ type: i1.MenuTabbingService, decorators: [{
type: Optional
}] }] });