UNPKG

novo-elements

Version:

74 lines (69 loc) 5.03 kB
import * as i0 from '@angular/core'; import { Input, HostBinding, Component, NgModule } from '@angular/core'; import * as i1 from '@angular/common'; import { CommonModule } from '@angular/common'; import * as i2 from 'novo-elements/elements/icon'; import { NovoIconModule } from 'novo-elements/elements/icon'; import * as i3 from 'novo-elements/elements/common'; import { NovoCommonModule } from 'novo-elements/elements/common'; // NG2 class NonIdealStateElement { constructor() { this.hb_class = 'novo-non-ideal-state'; this.theme = 'light'; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NonIdealStateElement, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: NonIdealStateElement, isStandalone: false, selector: "novo-non-ideal-state", inputs: { theme: "theme", icon: "icon", title: "title", description: "description" }, host: { properties: { "class": "this.hb_class" } }, ngImport: i0, template: ` <novo-icon class="novo-non-ideal-state-icon" *ngIf="icon" [color]="theme">{{ icon }}</novo-icon> <ng-content select="novo-icon"></ng-content> <ng-content select="novo-icon,novo-loading,novo-avatar"></ng-content> <novo-title class="novo-non-ideal-state-title" *ngIf="title" marginBefore>{{ title }}</novo-title> <ng-content select="novo-title"></ng-content> <novo-text *ngIf="description" block marginBefore marginAfter>{{ description }}</novo-text> <ng-content select="novo-text"></ng-content> <ng-content></ng-content> `, isInline: true, styles: [":host{padding:2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}:host .novo-non-ideal-state-icon{font-size:xx-large}:host button{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NovoIconComponent, selector: "novo-icon", inputs: ["raised", "theme", "shape", "color", "size", "smaller", "larger", "alt", "name"] }, { kind: "component", type: i3.NovoText, selector: "novo-text,[novo-text]", inputs: ["block"] }, { kind: "component", type: i3.NovoTitle, selector: "novo-title,[novo-title]" }] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NonIdealStateElement, decorators: [{ type: Component, args: [{ selector: 'novo-non-ideal-state', template: ` <novo-icon class="novo-non-ideal-state-icon" *ngIf="icon" [color]="theme">{{ icon }}</novo-icon> <ng-content select="novo-icon"></ng-content> <ng-content select="novo-icon,novo-loading,novo-avatar"></ng-content> <novo-title class="novo-non-ideal-state-title" *ngIf="title" marginBefore>{{ title }}</novo-title> <ng-content select="novo-title"></ng-content> <novo-text *ngIf="description" block marginBefore marginAfter>{{ description }}</novo-text> <ng-content select="novo-text"></ng-content> <ng-content></ng-content> `, standalone: false, styles: [":host{padding:2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}:host .novo-non-ideal-state-icon{font-size:xx-large}:host button{display:inline-block}\n"] }] }], propDecorators: { hb_class: [{ type: HostBinding, args: ['class'] }], theme: [{ type: Input }], icon: [{ type: Input }], title: [{ type: Input }], description: [{ type: Input }] } }); // NG2 class NovoNonIdealStateModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoNonIdealStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: NovoNonIdealStateModule, declarations: [NonIdealStateElement], imports: [CommonModule, NovoIconModule, NovoCommonModule], exports: [NonIdealStateElement] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoNonIdealStateModule, imports: [CommonModule, NovoIconModule, NovoCommonModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoNonIdealStateModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule, NovoIconModule, NovoCommonModule], declarations: [NonIdealStateElement], exports: [NonIdealStateElement], }] }] }); /** * Generated bundle index. Do not edit. */ export { NonIdealStateElement, NovoNonIdealStateModule }; //# sourceMappingURL=novo-elements-elements-non-ideal-state.mjs.map