1 | import { NgModule, Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren } from '@angular/core';
|
---|
2 | import { CommonModule } from '@angular/common';
|
---|
3 | import { PrimeTemplate, SharedModule } from 'primeng/api';
|
---|
4 | import * as i0 from "@angular/core";
|
---|
5 | import * as i1 from "@angular/common";
|
---|
6 | export class Timeline {
|
---|
7 | constructor(el) {
|
---|
8 | this.el = el;
|
---|
9 | this.align = 'left';
|
---|
10 | this.layout = 'vertical';
|
---|
11 | }
|
---|
12 | getBlockableElement() {
|
---|
13 | return this.el.nativeElement.children[0];
|
---|
14 | }
|
---|
15 | ngAfterContentInit() {
|
---|
16 | this.templates.forEach((item) => {
|
---|
17 | switch (item.getType()) {
|
---|
18 | case 'content':
|
---|
19 | this.contentTemplate = item.template;
|
---|
20 | break;
|
---|
21 | case 'opposite':
|
---|
22 | this.oppositeTemplate = item.template;
|
---|
23 | break;
|
---|
24 | case 'marker':
|
---|
25 | this.markerTemplate = item.template;
|
---|
26 | break;
|
---|
27 | }
|
---|
28 | });
|
---|
29 | }
|
---|
30 | }
|
---|
31 | Timeline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Timeline, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
---|
32 | Timeline.ɵ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: `
|
---|
33 | <div [class]="styleClass" [ngStyle]="style" [ngClass]="{'p-timeline p-component': true,
|
---|
34 | 'p-timeline-left': align === 'left',
|
---|
35 | 'p-timeline-right': align === 'right',
|
---|
36 | 'p-timeline-top': align === 'top',
|
---|
37 | 'p-timeline-bottom': align === 'bottom',
|
---|
38 | 'p-timeline-alternate': align === 'alternate',
|
---|
39 | 'p-timeline-vertical': layout === 'vertical',
|
---|
40 | 'p-timeline-horizontal': layout === 'horizontal'}">
|
---|
41 | <div *ngFor="let event of value; let last=last" class="p-timeline-event">
|
---|
42 | <div class="p-timeline-event-opposite">
|
---|
43 | <ng-container *ngTemplateOutlet="oppositeTemplate; context: {$implicit: event}"></ng-container>
|
---|
44 | </div>
|
---|
45 | <div class="p-timeline-event-separator">
|
---|
46 | <ng-container *ngIf="markerTemplate; else marker">
|
---|
47 | <ng-container *ngTemplateOutlet="markerTemplate; context: {$implicit: event}"></ng-container>
|
---|
48 | </ng-container>
|
---|
49 | <ng-template #marker>
|
---|
50 | <div class="p-timeline-event-marker"></div>
|
---|
51 | </ng-template>
|
---|
52 | <div *ngIf="!last" class="p-timeline-event-connector"></div>
|
---|
53 | </div>
|
---|
54 | <div class="p-timeline-event-content">
|
---|
55 | <ng-container *ngTemplateOutlet="contentTemplate; context: {$implicit: event}"></ng-container>
|
---|
56 | </div>
|
---|
57 | </div>
|
---|
58 | </div>
|
---|
59 | `, 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 });
|
---|
60 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Timeline, decorators: [{
|
---|
61 | type: Component,
|
---|
62 | args: [{ selector: 'p-timeline', template: `
|
---|
63 | <div [class]="styleClass" [ngStyle]="style" [ngClass]="{'p-timeline p-component': true,
|
---|
64 | 'p-timeline-left': align === 'left',
|
---|
65 | 'p-timeline-right': align === 'right',
|
---|
66 | 'p-timeline-top': align === 'top',
|
---|
67 | 'p-timeline-bottom': align === 'bottom',
|
---|
68 | 'p-timeline-alternate': align === 'alternate',
|
---|
69 | 'p-timeline-vertical': layout === 'vertical',
|
---|
70 | 'p-timeline-horizontal': layout === 'horizontal'}">
|
---|
71 | <div *ngFor="let event of value; let last=last" class="p-timeline-event">
|
---|
72 | <div class="p-timeline-event-opposite">
|
---|
73 | <ng-container *ngTemplateOutlet="oppositeTemplate; context: {$implicit: event}"></ng-container>
|
---|
74 | </div>
|
---|
75 | <div class="p-timeline-event-separator">
|
---|
76 | <ng-container *ngIf="markerTemplate; else marker">
|
---|
77 | <ng-container *ngTemplateOutlet="markerTemplate; context: {$implicit: event}"></ng-container>
|
---|
78 | </ng-container>
|
---|
79 | <ng-template #marker>
|
---|
80 | <div class="p-timeline-event-marker"></div>
|
---|
81 | </ng-template>
|
---|
82 | <div *ngIf="!last" class="p-timeline-event-connector"></div>
|
---|
83 | </div>
|
---|
84 | <div class="p-timeline-event-content">
|
---|
85 | <ng-container *ngTemplateOutlet="contentTemplate; context: {$implicit: event}"></ng-container>
|
---|
86 | </div>
|
---|
87 | </div>
|
---|
88 | </div>
|
---|
89 | `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
---|
90 | 'class': 'p-element'
|
---|
91 | }, 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"] }]
|
---|
92 | }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { value: [{
|
---|
93 | type: Input
|
---|
94 | }], style: [{
|
---|
95 | type: Input
|
---|
96 | }], styleClass: [{
|
---|
97 | type: Input
|
---|
98 | }], align: [{
|
---|
99 | type: Input
|
---|
100 | }], layout: [{
|
---|
101 | type: Input
|
---|
102 | }], templates: [{
|
---|
103 | type: ContentChildren,
|
---|
104 | args: [PrimeTemplate]
|
---|
105 | }] } });
|
---|
106 | export class TimelineModule {
|
---|
107 | }
|
---|
108 | TimelineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
109 | TimelineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, declarations: [Timeline], imports: [CommonModule], exports: [Timeline, SharedModule] });
|
---|
110 | TimelineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, imports: [[CommonModule], SharedModule] });
|
---|
111 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TimelineModule, decorators: [{
|
---|
112 | type: NgModule,
|
---|
113 | args: [{
|
---|
114 | imports: [CommonModule],
|
---|
115 | exports: [Timeline, SharedModule],
|
---|
116 | declarations: [Timeline]
|
---|
117 | }]
|
---|
118 | }] });
|
---|
119 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZWxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvdGltZWxpbmUvdGltZWxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFjLHVCQUF1QixFQUFFLGlCQUFpQixFQUFvQixlQUFlLEVBQXlCLE1BQU0sZUFBZSxDQUFDO0FBQzVLLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQWMsYUFBYSxFQUFFLFlBQVksRUFBQyxNQUFNLGFBQWEsQ0FBQzs7O0FBdUNyRSxNQUFNLE9BQU8sUUFBUTtJQW9CakIsWUFBb0IsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFaekIsVUFBSyxHQUFXLE1BQU0sQ0FBQztRQUV2QixXQUFNLEdBQVcsVUFBVSxDQUFDO0lBVUEsQ0FBQztJQUV0QyxtQkFBbUI7UUFDZixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUM3QyxDQUFDO0lBRUQsa0JBQWtCO1FBQ2QsSUFBSSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRTtZQUM1QixRQUFPLElBQUksQ0FBQyxPQUFPLEVBQUUsRUFBRTtnQkFDbkIsS0FBSyxTQUFTO29CQUNWLElBQUksQ0FBQyxlQUFlLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQztvQkFDekMsTUFBTTtnQkF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ICAgICAgICAgICAgICAncC10aW1lbGluZS12ZXJ0aWNhbCc6IGxheW91dCA9PT0gJ3ZlcnRpY2FsJyxcbiAgICAgICAgICAgICAgICAncC10aW1lbGluZS1ob3Jpem9udGFsJzogbGF5b3V0ID09PSAnaG9yaXpvbnRhbCd9XCI+XG4gICAgICAgICAgICA8ZGl2ICpuZ0Zvcj1cImxldCBldmVudCBvZiB2YWx1ZTsgbGV0IGxhc3Q9bGFzdFwiIGNsYXNzPVwicC10aW1lbGluZS1ldmVudFwiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJwLXRpbWVsaW5lLWV2ZW50LW9wcG9zaXRlXCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJvcHBvc2l0ZVRlbXBsYXRlOyBjb250ZXh0OiB7JGltcGxpY2l0OiBldmVudH1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC10aW1lbGluZS1ldmVudC1zZXBhcmF0b3JcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIm1hcmtlclRlbXBsYXRlOyBlbHNlIG1hcmtlclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cIm1hcmtlclRlbXBsYXRlOyBjb250ZXh0OiB7JGltcGxpY2l0OiBldmVudH1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAjbWFya2VyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInAtdGltZWxpbmUtZXZlbnQtbWFya2VyXCI+PC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvb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W9uTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbVGltZWxpbmUsIFNoYXJlZE1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbVGltZWxpbmVdXG59KVxuZXhwb3J0IGNsYXNzIFRpbWVsaW5lTW9kdWxlIHsgfVxuIl19 |
---|