UNPKG

ng-cw-v12

Version:

Angular UI component library

114 lines (105 loc) 6.15 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('ng-cw-v12/blur-text', ['exports', '@angular/core', '@angular/common'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-cw-v12"] = global["ng-cw-v12"] || {}, global["ng-cw-v12"]["blur-text"] = {}), global.ng.core, global.ng.common)); })(this, (function (exports, i0, i1) { 'use strict'; function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var i0__namespace = /*#__PURE__*/_interopNamespace(i0); var i1__namespace = /*#__PURE__*/_interopNamespace(i1); var BlurTextComponent = /** @class */ (function () { function BlurTextComponent() { this.ncText = ''; this.ncBlurColor = 'inherit'; this._hover = false; this._lockIcon = false; } Object.defineProperty(BlurTextComponent.prototype, "ncHover", { get: function () { return this._hover; }, set: function (val) { this._hover = val !== null && val !== undefined && val !== false && val !== 'false'; }, enumerable: false, configurable: true }); Object.defineProperty(BlurTextComponent.prototype, "ncLockIcon", { get: function () { return this._lockIcon; }, set: function (val) { this._lockIcon = val !== null && val !== undefined && val !== false && val !== 'false'; }, enumerable: false, configurable: true }); BlurTextComponent.prototype.ngOnInit = function () { }; return BlurTextComponent; }()); BlurTextComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: BlurTextComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component }); BlurTextComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: BlurTextComponent, selector: "nc-blur-text", inputs: { ncText: "ncText", ncBlurColor: "ncBlurColor", ncHover: "ncHover", ncLockIcon: "ncLockIcon" }, ngImport: i0__namespace, template: "<span class=\"nc-secret-text\" [style.--nc-blur-color]=\"ncBlurColor\" [class.nc-secret-text-hover]=\"ncHover\">\n {{ncText}}\n</span>\n<span class=\"nc-secret-text-lock\" *ngIf=\"ncLockIcon\">\uD83D\uDD12</span>", styles: [":host{display:inline-block}.nc-secret-text{color:var(--nc-blur-color)!important;filter:blur(calc(1em / 4.67))}.nc-secret-text.nc-secret-text-hover:hover{filter:none;color:inherit!important;transition:filter .3s ease-in .4s,color .2s ease-in}.nc-secret-text-lock{color:transparent!important;text-shadow:0 0 0 #a1a2d4}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: BlurTextComponent, decorators: [{ type: i0.Component, args: [{ selector: 'nc-blur-text', templateUrl: './blur-text.component.html', styleUrls: ['./blur-text.component.less'] }] }], ctorParameters: function () { return []; }, propDecorators: { ncText: [{ type: i0.Input }], ncBlurColor: [{ type: i0.Input }], ncHover: [{ type: i0.Input }], ncLockIcon: [{ type: i0.Input }] } }); var NcBlurTextModule = /** @class */ (function () { function NcBlurTextModule() { } return NcBlurTextModule; }()); NcBlurTextModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: NcBlurTextModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); NcBlurTextModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: NcBlurTextModule, declarations: [BlurTextComponent], imports: [i1.CommonModule], exports: [BlurTextComponent] }); NcBlurTextModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: NcBlurTextModule, imports: [[ i1.CommonModule ]] }); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: NcBlurTextModule, decorators: [{ type: i0.NgModule, args: [{ declarations: [ BlurTextComponent ], imports: [ i1.CommonModule ], exports: [ BlurTextComponent ] }] }] }); /** * Generated bundle index. Do not edit. */ exports.BlurTextComponent = BlurTextComponent; exports.NcBlurTextModule = NcBlurTextModule; Object.defineProperty(exports, '__esModule', { value: true }); })); //# sourceMappingURL=ng-cw-v12-blur-text.umd.js.map