UNPKG

ng-cw-v12

Version:

Angular UI component library

58 lines (53 loc) 3.85 kB
import * as i0 from '@angular/core'; import { Component, Input, NgModule } from '@angular/core'; import * as i1 from '@angular/common'; import { CommonModule } from '@angular/common'; class AnimatedShinyTextComponent { constructor() { this.ncText = ''; this.ncShimmerWidth = 100; this.ncTheme = 'light'; } } AnimatedShinyTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: AnimatedShinyTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); AnimatedShinyTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: AnimatedShinyTextComponent, selector: "nc-animated-shiny-text", inputs: { ncText: "ncText", ncShimmerWidth: "ncShimmerWidth", ncTheme: "ncTheme" }, ngImport: i0, template: "<span class=\"animated-shiny-text\" [ngClass]=\"{'light-mode': ncTheme === 'light', 'dark-mode': ncTheme === 'dark'}\"\r\n style=\"--shiny-width: {{ncShimmerWidth}}px\">\r\n {{ncText}}\r\n</span>", styles: [":host span{margin-left:auto;margin-right:auto;max-width:28rem;background-clip:text;-webkit-background-clip:text;background-repeat:no-repeat;background-position:0 0;background-size:var(--shiny-width) 100%;color:#525252b3;background-image:linear-gradient(to right,rgba(0,0,0,0),rgba(0,0,0,.8) 50%,rgba(0,0,0,0));animation:shiny-text 8s cubic-bezier(0,0,.2,1) infinite}:host span.dark-mode{color:#a3a3a3b3;background-image:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,.8) 50%,rgba(255,255,255,0))}@keyframes shiny-text{0%,90%,to{background-position:calc(-100% - var(--shiny-width)) 0}30%,60%{background-position:calc(100% + var(--shiny-width)) 0}}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: AnimatedShinyTextComponent, decorators: [{ type: Component, args: [{ selector: 'nc-animated-shiny-text', templateUrl: './animated-shiny-text.component.html', styleUrls: ['./animated-shiny-text.component.less'], }] }], propDecorators: { ncText: [{ type: Input }], ncShimmerWidth: [{ type: Input }], ncTheme: [{ type: Input }] } }); class NcAnimatedShinyTextModule { } NcAnimatedShinyTextModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: NcAnimatedShinyTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); NcAnimatedShinyTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: NcAnimatedShinyTextModule, declarations: [AnimatedShinyTextComponent], imports: [CommonModule], exports: [AnimatedShinyTextComponent] }); NcAnimatedShinyTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: NcAnimatedShinyTextModule, imports: [[ CommonModule ]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: NcAnimatedShinyTextModule, decorators: [{ type: NgModule, args: [{ declarations: [ AnimatedShinyTextComponent ], imports: [ CommonModule ], exports: [ AnimatedShinyTextComponent ] }] }] }); /** * Generated bundle index. Do not edit. */ export { AnimatedShinyTextComponent, NcAnimatedShinyTextModule }; //# sourceMappingURL=ng-cw-v12-animated-shiny-text.js.map