UNPKG

@progress/kendo-angular-grid

Version:

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

35 lines (34 loc) 1.46 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 } from '@angular/core'; import * as i0 from "@angular/core"; const bootstrapToMedia = (media) => (({ "xs": "(max-width: 576px)", "sm": "(min-width: 576px)", "md": "(min-width: 768px)", "lg": "(min-width: 992px)", "xl": "(min-width: 1200px)" })[media] || media); const browserMatchMedia = (media) => window.matchMedia(media).matches; /** * @hidden */ export class ResponsiveService { /** * @hidden */ matchMedia = browserMatchMedia; /** * @hidden */ matchesMedia(media) { return !media || this.matchMedia(bootstrapToMedia(media)); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsiveService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsiveService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsiveService, decorators: [{ type: Injectable }] });