source: trip-planner-front/node_modules/primeng/fesm2020/primeng-timeline.mjs@ 6fe77af

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

adding photos

  • Property mode set to 100644
File size: 10.4 KB
RevLine 
[59329aa]1import * as i0 from '@angular/core';
2import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, NgModule } from '@angular/core';
3import * as i1 from '@angular/common';
4import { CommonModule } from '@angular/common';
5import { PrimeTemplate, SharedModule } from 'primeng/api';
6
7class Timeline {
8 constructor(el) {
9 this.el = el;
10 this.align = 'left';
11 this.layout = 'vertical';
12 }
13 getBlockableElement() {
14 return this.el.nativeElement.children[0];
15 }
16 ngAfterContentInit() {
17 this.templates.forEach((item) => {
18 switch (item.getType()) {
19 case 'content':
20 this.contentTemplate = item.template;
21 break;
22 case 'opposite':
23 this.oppositeTemplate = item.template;
24 break;
25 case 'marker':
26 this.markerTemplate = item.template;
27 break;
28 }
29 });
30 }
31}
32Timeline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Timeline, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
33Timeline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Timeline, selector: "p-timeline", inputs: { value: "value", style: "style", styleClass: "styleClass", align: "align", layout: "layout" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
34 <div [class]="styleClass" [ngStyle]="style" [ngClass]="{'p-timeline p-component': true,
35 'p-timeline-left': align === 'left',
36 'p-timeline-right': align === 'right',
37 'p-timeline-top': align === 'top',
38 'p-timeline-bottom': align === 'bottom',
39 'p-timeline-alternate': align === 'alternate',
40 'p-timeline-vertical': layout === 'vertical',
41 'p-timeline-horizontal': layout === 'horizontal'}">
42 <div *ngFor="let event of value; let last=last" class="p-timeline-event">
43 <div class="p-timeline-event-opposite">
44 <ng-container *ngTemplateOutlet="oppositeTemplate; context: {$implicit: event}"></ng-container>
45 </div>
46 <div class="p-timeline-event-separator">
47 <ng-container *ngIf="markerTemplate; else marker">
48 <ng-container *ngTemplateOutlet="markerTemplate; context: {$implicit: event}"></ng-container>
49 </ng-container>
50 <ng-template #marker>
51 <div class="p-timeline-event-marker"></div>
52 </ng-template>
53 <div *ngIf="!last" class="p-timeline-event-connector"></div>
54 </div>
55 <div class="p-timeline-event-content">
56 <ng-container *ngTemplateOutlet="contentTemplate; context: {$implicit: event}"></ng-container>
57 </div>
58 </div>
59 </div>
60 `, isInline: true, styles: [".p-timeline{display:flex;flex-grow:1;flex-direction:column}.p-timeline-left .p-timeline-event-opposite{text-align:right}.p-timeline-left .p-timeline-event-content{text-align:left}.p-timeline-right .p-timeline-event{flex-direction:row-reverse}.p-timeline-right .p-timeline-event-opposite{text-align:left}.p-timeline-right .p-timeline-event-content{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even){flex-direction:row-reverse}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content,.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-opposite{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-content{text-align:right}.p-timeline-event{display:flex;position:relative;min-height:70px}.p-timeline-event:last-child{min-height:0}.p-timeline-event-opposite,.p-timeline-event-content{flex:1;padding:0 1rem}.p-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.p-timeline-event-marker{display:flex;align-self:baseline}.p-timeline-event-connector{flex-grow:1}.p-timeline-horizontal{flex-direction:row}.p-timeline-horizontal .p-timeline-event{flex-direction:column;flex:1}.p-timeline-horizontal .p-timeline-event:last-child{flex:0}.p-timeline-horizontal .p-timeline-event-separator{flex-direction:row}.p-timeline-horizontal .p-timeline-event-connector{width:100%}.p-timeline-bottom .p-timeline-event,.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(even){flex-direction:column-reverse}\n"], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
61i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Timeline, decorators: [{
62 type: Component,
63 args: [{ selector: 'p-timeline', template: `
64 <div [class]="styleClass" [ngStyle]="style" [ngClass]="{'p-timeline p-component': true,
65 'p-timeline-left': align === 'left',
66 'p-timeline-right': align === 'right',
67 'p-timeline-top': align === 'top',
68 'p-timeline-bottom': align === 'bottom',
69 'p-timeline-alternate': align === 'alternate',
70 'p-timeline-vertical': layout === 'vertical',
71 'p-timeline-horizontal': layout === 'horizontal'}">
72 <div *ngFor="let event of value; let last=last" class="p-timeline-event">
73 <div class="p-timeline-event-opposite">
74 <ng-container *ngTemplateOutlet="oppositeTemplate; context: {$implicit: event}"></ng-container>
75 </div>
76 <div class="p-timeline-event-separator">
77 <ng-container *ngIf="markerTemplate; else marker">
78 <ng-container *ngTemplateOutlet="markerTemplate; context: {$implicit: event}"></ng-container>
79 </ng-container>
80 <ng-template #marker>
81 <div class="p-timeline-event-marker"></div>
82 </ng-template>
83 <div *ngIf="!last" class="p-timeline-event-connector"></div>
84 </div>
85 <div class="p-timeline-event-content">
86 <ng-container *ngTemplateOutlet="contentTemplate; context: {$implicit: event}"></ng-container>
87 </div>
88 </div>
89 </div>
90 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
91 'class': 'p-element'
92 }, styles: [".p-timeline{display:flex;flex-grow:1;flex-direction:column}.p-timeline-left .p-timeline-event-opposite{text-align:right}.p-timeline-left .p-timeline-event-content{text-align:left}.p-timeline-right .p-timeline-event{flex-direction:row-reverse}.p-timeline-right .p-timeline-event-opposite{text-align:left}.p-timeline-right .p-timeline-event-content{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even){flex-direction:row-reverse}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content,.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-opposite{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-content{text-align:right}.p-timeline-event{display:flex;position:relative;min-height:70px}.p-timeline-event:last-child{min-height:0}.p-timeline-event-opposite,.p-timeline-event-content{flex:1;padding:0 1rem}.p-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.p-timeline-event-marker{display:flex;align-self:baseline}.p-timeline-event-connector{flex-grow:1}.p-timeline-horizontal{flex-direction:row}.p-timeline-horizontal .p-timeline-event{flex-direction:column;flex:1}.p-timeline-horizontal .p-timeline-event:last-child{flex:0}.p-timeline-horizontal .p-timeline-event-separator{flex-direction:row}.p-timeline-horizontal .p-timeline-event-connector{width:100%}.p-timeline-bottom .p-timeline-event,.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(even){flex-direction:column-reverse}\n"] }]
93 }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { value: [{
94 type: Input
95 }], style: [{
96 type: Input
97 }], styleClass: [{
98 type: Input
99 }], align: [{
100 type: Input
101 }], layout: [{
102 type: Input
103 }], templates: [{
104 type: ContentChildren,
105 args: [PrimeTemplate]
106 }] } });
107class TimelineModule {
108}
109TimelineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
110TimelineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, declarations: [Timeline], imports: [CommonModule], exports: [Timeline, SharedModule] });
111TimelineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, imports: [[CommonModule], SharedModule] });
112i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, decorators: [{
113 type: NgModule,
114 args: [{
115 imports: [CommonModule],
116 exports: [Timeline, SharedModule],
117 declarations: [Timeline]
118 }]
119 }] });
120
121/**
122 * Generated bundle index. Do not edit.
123 */
124
125export { Timeline, TimelineModule };
Note: See TracBrowser for help on using the repository browser.