source: trip-planner-front/node_modules/primeng/fesm2020/primeng-skeleton.mjs

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

adding photos

  • Property mode set to 100644
File size: 4.5 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 Skeleton {
7 constructor() {
8 this.shape = "rectangle";
9 this.animation = "wave";
10 this.borderRadius = null;
11 this.size = null;
12 this.width = "100%";
13 this.height = "1rem";
14 }
15 containerClass() {
16 return {
17 'p-skeleton p-component': true,
18 'p-skeleton-circle': this.shape === 'circle',
19 'p-skeleton-none': this.animation === 'none'
20 };
21 }
22 containerStyle() {
23 if (this.size)
24 return { ...this.style, width: this.size, height: this.size, borderRadius: this.borderRadius };
25 else
26 return { ...this.style, width: this.width, height: this.height, borderRadius: this.borderRadius };
27 }
28}
29Skeleton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Skeleton, deps: [], target: i0.ɵɵFactoryTarget.Component });
30Skeleton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Skeleton, selector: "p-skeleton", inputs: { styleClass: "styleClass", style: "style", shape: "shape", animation: "animation", borderRadius: "borderRadius", size: "size", width: "width", height: "height" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
31 <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="containerStyle()">
32 </div>
33 `, isInline: true, styles: [".p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:\"\";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
34i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Skeleton, decorators: [{
35 type: Component,
36 args: [{ selector: 'p-skeleton', template: `
37 <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="containerStyle()">
38 </div>
39 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
40 'class': 'p-element'
41 }, styles: [".p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:\"\";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"] }]
42 }], propDecorators: { styleClass: [{
43 type: Input
44 }], style: [{
45 type: Input
46 }], shape: [{
47 type: Input
48 }], animation: [{
49 type: Input
50 }], borderRadius: [{
51 type: Input
52 }], size: [{
53 type: Input
54 }], width: [{
55 type: Input
56 }], height: [{
57 type: Input
58 }] } });
59class SkeletonModule {
60}
61SkeletonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62SkeletonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SkeletonModule, declarations: [Skeleton], imports: [CommonModule], exports: [Skeleton] });
63SkeletonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SkeletonModule, imports: [[CommonModule]] });
64i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SkeletonModule, decorators: [{
65 type: NgModule,
66 args: [{
67 imports: [CommonModule],
68 exports: [Skeleton],
69 declarations: [Skeleton]
70 }]
71 }] });
72
73/**
74 * Generated bundle index. Do not edit.
75 */
76
77export { Skeleton, SkeletonModule };
Note: See TracBrowser for help on using the repository browser.