source: trip-planner-front/node_modules/primeng/fesm2020/primeng-avatar.mjs@ 8d391a1

Last change on this file since 8d391a1 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 4.7 KB
Line 
1import * as i0 from '@angular/core';
2import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, NgModule } from '@angular/core';
3import * as i1 from '@angular/common';
4import { CommonModule } from '@angular/common';
5
6class Avatar {
7 constructor() {
8 this.size = "normal";
9 this.shape = "square";
10 }
11 containerClass() {
12 return {
13 'p-avatar p-component': true,
14 'p-avatar-image': this.image != null,
15 'p-avatar-circle': this.shape === 'circle',
16 'p-avatar-lg': this.size === 'large',
17 'p-avatar-xl': this.size === 'xlarge'
18 };
19 }
20}
21Avatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Avatar, deps: [], target: i0.ɵɵFactoryTarget.Component });
22Avatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Avatar, selector: "p-avatar", inputs: { label: "label", icon: "icon", image: "image", size: "size", shape: "shape", style: "style", styleClass: "styleClass" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
23 <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">
24 <ng-content></ng-content>
25 <span class="p-avatar-text" *ngIf="label; else iconTemplate">{{label}}</span>
26 <ng-template #iconTemplate><span [class]="icon" [ngClass]="'p-avatar-icon'" *ngIf="icon; else imageTemplate"></span></ng-template>
27 <ng-template #imageTemplate><img [src]="image" *ngIf="image"></ng-template>
28 </div>
29 `, isInline: true, styles: [".p-avatar{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:1rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{width:100%;height:100%}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
30i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Avatar, decorators: [{
31 type: Component,
32 args: [{ selector: 'p-avatar', template: `
33 <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">
34 <ng-content></ng-content>
35 <span class="p-avatar-text" *ngIf="label; else iconTemplate">{{label}}</span>
36 <ng-template #iconTemplate><span [class]="icon" [ngClass]="'p-avatar-icon'" *ngIf="icon; else imageTemplate"></span></ng-template>
37 <ng-template #imageTemplate><img [src]="image" *ngIf="image"></ng-template>
38 </div>
39 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
40 'class': 'p-element'
41 }, styles: [".p-avatar{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:1rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{width:100%;height:100%}\n"] }]
42 }], propDecorators: { label: [{
43 type: Input
44 }], icon: [{
45 type: Input
46 }], image: [{
47 type: Input
48 }], size: [{
49 type: Input
50 }], shape: [{
51 type: Input
52 }], style: [{
53 type: Input
54 }], styleClass: [{
55 type: Input
56 }] } });
57class AvatarModule {
58}
59AvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: AvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
60AvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: AvatarModule, declarations: [Avatar], imports: [CommonModule], exports: [Avatar] });
61AvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: AvatarModule, imports: [[CommonModule]] });
62i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: AvatarModule, decorators: [{
63 type: NgModule,
64 args: [{
65 imports: [CommonModule],
66 exports: [Avatar],
67 declarations: [Avatar]
68 }]
69 }] });
70
71/**
72 * Generated bundle index. Do not edit.
73 */
74
75export { Avatar, AvatarModule };
Note: See TracBrowser for help on using the repository browser.