@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
37 lines (33 loc) • 1.71 kB
JavaScript
import * as i0 from '@angular/core';
import { input, inject, Directive } from '@angular/core';
import { TUI_PLATFORM } from '@taiga-ui/cdk/tokens';
class TuiPlatform {
constructor() {
this.tuiPlatform = input(inject(TUI_PLATFORM, { skipSelf: true }));
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPlatform, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: TuiPlatform, isStandalone: true, selector: "[tuiPlatform]", inputs: { tuiPlatform: { classPropertyName: "tuiPlatform", publicName: "tuiPlatform", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-platform": "tuiPlatform()" } }, providers: [
{
provide: TUI_PLATFORM,
useFactory: () => inject(TuiPlatform).tuiPlatform(),
},
], ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPlatform, decorators: [{
type: Directive,
args: [{
selector: '[tuiPlatform]',
providers: [
{
provide: TUI_PLATFORM,
useFactory: () => inject(TuiPlatform).tuiPlatform(),
},
],
host: { '[attr.data-platform]': 'tuiPlatform()' },
}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { TuiPlatform };
//# sourceMappingURL=taiga-ui-cdk-directives-platform.mjs.map