@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
30 lines (29 loc) • 1.27 kB
TypeScript
import { InjectionToken } from '@angular/core';
/**
* Unified mobile detection regex.
* https://stackoverflow.com/a/11381730/2706426 http://detectmobilebrowsers.com/
*/
export declare const TUI_MOBILE_REGEXP: RegExp;
export declare const TUI_IS_MOBILE: InjectionToken<boolean>;
export declare const TUI_IS_IOS: InjectionToken<boolean>;
export declare const TUI_IS_ANDROID: InjectionToken<boolean>;
export declare const TUI_IS_WEBKIT: InjectionToken<boolean>;
export declare const TUI_PLATFORM: InjectionToken<"android" | "ios" | "web">;
export declare const TUI_IS_TOUCH: InjectionToken<import("@angular/core").Signal<boolean>>;
/**
* @deprecated: use only {@link TUI_IS_E2E}
* Detect if app is running under Cypress
* {@link https://docs.cypress.io/faq/questions/using-cypress-faq#Is-there-any-way-to-detect-if-my-app-is-running-under-Cypress Cypress docs}
* TODO: remove in v5
*/
export declare const TUI_IS_CYPRESS: InjectionToken<boolean>;
/**
* @deprecated: use only {@link TUI_IS_E2E}
* Manually provide `true` when running tests in Playwright
* TODO: remove in v5
*/
export declare const TUI_IS_PLAYWRIGHT: InjectionToken<boolean>;
/**
* Detect if app is running under any of test frameworks
*/
export declare const TUI_IS_E2E: InjectionToken<boolean>;