source: trip-planner-front/node_modules/primeng/esm2020/button/button.mjs@ 59329aa

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

adding photos

  • Property mode set to 100644
File size: 31.9 KB
Line 
1import { NgModule, Directive, Component, EventEmitter, Output, Input, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren } from '@angular/core';
2import { DomHandler } from 'primeng/dom';
3import { CommonModule } from '@angular/common';
4import { RippleModule } from 'primeng/ripple';
5import { PrimeTemplate } from 'primeng/api';
6import * as i0 from "@angular/core";
7import * as i1 from "primeng/ripple";
8import * as i2 from "@angular/common";
9export class ButtonDirective {
10 constructor(el) {
11 this.el = el;
12 this.iconPos = 'left';
13 this.loadingIcon = "pi pi-spinner pi-spin";
14 this._loading = false;
15 }
16 ngAfterViewInit() {
17 this._initialStyleClass = this.el.nativeElement.className;
18 DomHandler.addMultipleClasses(this.el.nativeElement, this.getStyleClass());
19 if (this.icon || this.loading) {
20 this.createIconEl();
21 }
22 let labelElement = document.createElement("span");
23 if (this.icon && !this.label) {
24 labelElement.setAttribute('aria-hidden', 'true');
25 }
26 labelElement.className = 'p-button-label';
27 if (this.label)
28 labelElement.appendChild(document.createTextNode(this.label));
29 else
30 labelElement.innerHTML = '&nbsp;';
31 this.el.nativeElement.appendChild(labelElement);
32 this.initialized = true;
33 }
34 getStyleClass() {
35 let styleClass = 'p-button p-component';
36 if (this.icon && !this.label) {
37 styleClass = styleClass + ' p-button-icon-only';
38 }
39 if (this.loading) {
40 styleClass = styleClass + ' p-disabled p-button-loading';
41 if (!this.icon && this.label)
42 styleClass = styleClass + ' p-button-loading-label-only';
43 }
44 return styleClass;
45 }
46 setStyleClass() {
47 let styleClass = this.getStyleClass();
48 this.el.nativeElement.className = styleClass + ' ' + this._initialStyleClass;
49 }
50 createIconEl() {
51 let iconElement = document.createElement("span");
52 iconElement.className = 'p-button-icon';
53 iconElement.setAttribute("aria-hidden", "true");
54 let iconPosClass = this.label ? 'p-button-icon-' + this.iconPos : null;
55 if (iconPosClass) {
56 DomHandler.addClass(iconElement, iconPosClass);
57 }
58 let iconClass = this.getIconClass();
59 if (iconClass) {
60 DomHandler.addMultipleClasses(iconElement, iconClass);
61 }
62 let labelEl = DomHandler.findSingle(this.el.nativeElement, '.p-button-label');
63 if (labelEl)
64 this.el.nativeElement.insertBefore(iconElement, labelEl);
65 else
66 this.el.nativeElement.appendChild(iconElement);
67 }
68 getIconClass() {
69 return this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this._icon;
70 }
71 setIconClass() {
72 let iconElement = DomHandler.findSingle(this.el.nativeElement, '.p-button-icon');
73 if (iconElement) {
74 if (this.iconPos)
75 iconElement.className = 'p-button-icon p-button-icon-' + this.iconPos + ' ' + this.getIconClass();
76 else
77 iconElement.className = 'p-button-icon ' + this.getIconClass();
78 }
79 else {
80 this.createIconEl();
81 }
82 }
83 removeIconElement() {
84 let iconElement = DomHandler.findSingle(this.el.nativeElement, '.p-button-icon');
85 this.el.nativeElement.removeChild(iconElement);
86 }
87 get label() {
88 return this._label;
89 }
90 set label(val) {
91 this._label = val;
92 if (this.initialized) {
93 DomHandler.findSingle(this.el.nativeElement, '.p-button-label').textContent = this._label || '&nbsp;';
94 if (this.loading || this.icon) {
95 this.setIconClass();
96 }
97 this.setStyleClass();
98 }
99 }
100 get icon() {
101 return this._icon;
102 }
103 set icon(val) {
104 this._icon = val;
105 if (this.initialized) {
106 this.setIconClass();
107 this.setStyleClass();
108 }
109 }
110 get loading() {
111 return this._loading;
112 }
113 set loading(val) {
114 this._loading = val;
115 if (this.initialized) {
116 if (this.loading || this.icon)
117 this.setIconClass();
118 else
119 this.removeIconElement();
120 this.setStyleClass();
121 }
122 }
123 ngOnDestroy() {
124 this.initialized = false;
125 }
126}
127ButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
128ButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0", type: ButtonDirective, selector: "[pButton]", inputs: { iconPos: "iconPos", loadingIcon: "loadingIcon", label: "label", icon: "icon", loading: "loading" }, host: { classAttribute: "p-element" }, ngImport: i0 });
129i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonDirective, decorators: [{
130 type: Directive,
131 args: [{
132 selector: '[pButton]',
133 host: {
134 'class': 'p-element'
135 }
136 }]
137 }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { iconPos: [{
138 type: Input
139 }], loadingIcon: [{
140 type: Input
141 }], label: [{
142 type: Input
143 }], icon: [{
144 type: Input
145 }], loading: [{
146 type: Input
147 }] } });
148export class Button {
149 constructor() {
150 this.type = "button";
151 this.iconPos = 'left';
152 this.loading = false;
153 this.loadingIcon = "pi pi-spinner pi-spin";
154 this.onClick = new EventEmitter();
155 this.onFocus = new EventEmitter();
156 this.onBlur = new EventEmitter();
157 }
158 ngAfterContentInit() {
159 this.templates.forEach((item) => {
160 switch (item.getType()) {
161 case 'content':
162 this.contentTemplate = item.template;
163 break;
164 default:
165 this.contentTemplate = item.template;
166 break;
167 }
168 });
169 }
170 badgeStyleClass() {
171 return {
172 'p-badge p-component': true,
173 'p-badge-no-gutter': this.badge && String(this.badge).length === 1
174 };
175 }
176}
177Button.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
178Button.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Button, selector: "p-button", inputs: { type: "type", iconPos: "iconPos", icon: "icon", badge: "badge", label: "label", disabled: "disabled", loading: "loading", loadingIcon: "loadingIcon", style: "style", styleClass: "styleClass", badgeClass: "badgeClass" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
179 <button [attr.type]="type" [class]="styleClass" [ngStyle]="style" [disabled]="disabled || loading"
180 [ngClass]="{'p-button p-component':true,
181 'p-button-icon-only': (icon && !label),
182 'p-button-vertical': (iconPos === 'top' || iconPos === 'bottom') && label,
183 'p-disabled': this.disabled || this.loading,
184 'p-button-loading': this.loading,
185 'p-button-loading-label-only': this.loading && !this.icon && this.label}"
186 (click)="onClick.emit($event)" (focus)="onFocus.emit($event)" (blur)="onBlur.emit($event)" pRipple>
187 <ng-content></ng-content>
188 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
189 <span [ngClass]="{'p-button-icon': true,
190 'p-button-icon-left': iconPos === 'left' && label,
191 'p-button-icon-right': iconPos === 'right' && label,
192 'p-button-icon-top': iconPos === 'top' && label,
193 'p-button-icon-bottom': iconPos === 'bottom' && label}"
194 [class]="loading ? 'p-button-loading-icon ' + loadingIcon : icon" *ngIf="!contentTemplate && (icon||loading)" [attr.aria-hidden]="true"></span>
195 <span class="p-button-label" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate">{{label||'&nbsp;'}}</span>
196 <span [ngClass]="badgeStyleClass()" [class]="badgeClass" *ngIf="!contentTemplate && badge">{{badge}}</span>
197 </button>
198 `, isInline: true, directives: [{ type: i1.Ripple, selector: "[pRipple]" }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
199i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Button, decorators: [{
200 type: Component,
201 args: [{
202 selector: 'p-button',
203 template: `
204 <button [attr.type]="type" [class]="styleClass" [ngStyle]="style" [disabled]="disabled || loading"
205 [ngClass]="{'p-button p-component':true,
206 'p-button-icon-only': (icon && !label),
207 'p-button-vertical': (iconPos === 'top' || iconPos === 'bottom') && label,
208 'p-disabled': this.disabled || this.loading,
209 'p-button-loading': this.loading,
210 'p-button-loading-label-only': this.loading && !this.icon && this.label}"
211 (click)="onClick.emit($event)" (focus)="onFocus.emit($event)" (blur)="onBlur.emit($event)" pRipple>
212 <ng-content></ng-content>
213 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
214 <span [ngClass]="{'p-button-icon': true,
215 'p-button-icon-left': iconPos === 'left' && label,
216 'p-button-icon-right': iconPos === 'right' && label,
217 'p-button-icon-top': iconPos === 'top' && label,
218 'p-button-icon-bottom': iconPos === 'bottom' && label}"
219 [class]="loading ? 'p-button-loading-icon ' + loadingIcon : icon" *ngIf="!contentTemplate && (icon||loading)" [attr.aria-hidden]="true"></span>
220 <span class="p-button-label" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate">{{label||'&nbsp;'}}</span>
221 <span [ngClass]="badgeStyleClass()" [class]="badgeClass" *ngIf="!contentTemplate && badge">{{badge}}</span>
222 </button>
223 `,
224 changeDetection: ChangeDetectionStrategy.OnPush,
225 encapsulation: ViewEncapsulation.None,
226 host: {
227 'class': 'p-element'
228 }
229 }]
230 }], propDecorators: { type: [{
231 type: Input
232 }], iconPos: [{
233 type: Input
234 }], icon: [{
235 type: Input
236 }], badge: [{
237 type: Input
238 }], label: [{
239 type: Input
240 }], disabled: [{
241 type: Input
242 }], loading: [{
243 type: Input
244 }], loadingIcon: [{
245 type: Input
246 }], style: [{
247 type: Input
248 }], styleClass: [{
249 type: Input
250 }], badgeClass: [{
251 type: Input
252 }], templates: [{
253 type: ContentChildren,
254 args: [PrimeTemplate]
255 }], onClick: [{
256 type: Output
257 }], onFocus: [{
258 type: Output
259 }], onBlur: [{
260 type: Output
261 }] } });
262export class ButtonModule {
263}
264ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
265ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective, Button], imports: [CommonModule, RippleModule], exports: [ButtonDirective, Button] });
266ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonModule, imports: [[CommonModule, RippleModule]] });
267i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ButtonModule, decorators: [{
268 type: NgModule,
269 args: [{
270 imports: [CommonModule, RippleModule],
271 exports: [ButtonDirective, Button],
272 declarations: [ButtonDirective, Button]
273 }]
274 }] });
275//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2J1dHRvbi9idXR0b24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQUMsU0FBUyxFQUFZLFlBQVksRUFBZSxNQUFNLEVBQVcsS0FBSyxFQUFDLHVCQUF1QixFQUFFLGlCQUFpQixFQUFFLGVBQWUsRUFBMkMsTUFBTSxlQUFlLENBQUM7QUFDOU4sT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzVDLE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBT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yArIHRoaXMubG9hZGluZ0ljb24gOiB0aGlzLl9pY29uO1xuICAgIH1cblxuICAgIHNldEljb25DbGFzcygpIHtcbiAgICAgICAgbGV0IGljb25FbGVtZW50ID0gRG9tSGFuZGxlci5maW5kU2luZ2xlKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgJy5wLWJ1dHRvbi1pY29uJyk7XG4gICAgICAgIGlmIChpY29uRWxlbWVudCkge1xuICAgICAgICAgICAgaWYgKHRoaXMuaWNvblBvcylcbiAgICAgICAgICAgICAgICBpY29uRWxlbWVudC5jbGFzc05hbWUgPSAncC1idXR0b24taWNvbiBwLWJ1dHRvbi1pY29uLScgKyB0aGlzLmljb25Qb3MgKyAnICcgKyB0aGlzLmdldEljb25DbGFzcygpO1xuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIGljb25FbGVtZW50LmNsYXNzTmFtZSA9ICdwLWJ1dHRvbi1pY29uICcgKyB0aGlzLmdldEljb25DbGFzcygpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5jcmVhdGVJY29uRWwoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlbW92ZUljb25FbGVtZW50KCkge1xuICAgICAgICBsZXQgaWNvbkVsZW1lbnQgPSBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5lbC5uYXRpdmVFbGVtZW50LCAnLnAtYnV0dG9uLWljb24nKTtcbiAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LnJlbW92ZUNoaWxkKGljb25FbGVtZW50KTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBnZXQgbGFiZWwoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2xhYmVsO1xuICAgIH1cblxuICAgIHNldCBsYWJlbCh2YWw6IHN0cmluZykge1xuICAgICAgICB0aGlzLl9sYWJlbCA9IHZhbDtcblxuICAgICAgICBpZiAodGhpcy5pbml0aWFsaXplZCkge1xuICAgICAgICAgICAgRG9tSGFuZGxlci5maW5kU2luZ2xlKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgJy5wLWJ1dHRvbi1sYWJlbCcpLnRleHRDb250ZW50ID0gdGhpcy5fbGFiZWwgfHwgJyZuYnNwOyc7XG5cbiAgICAgICAgICAgIGlmICh0aGlzLmxvYWRpbmcgfHwgdGhpcy5pY29uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRJY29uQ2xhc3MoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuc2V0U3R5bGVDbGFzcygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQElucHV0KCkgZ2V0IGljb24oKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2ljb247XG4gICAgfVxuXG4gICAgc2V0IGljb24odmFsOiBzdHJpbmcpIHtcbiAgICAgICAgdGhpcy5faWNvbiA9IHZhbDtcblxuICAgICAgICBpZiAodGhpcy5pbml0aWFsaXplZCkge1xuICAgICAgICAgICAgdGhpcy5zZXRJY29uQ2xhc3MoKTtcbiAgICAgICAgICAgIHRoaXMuc2V0U3R5bGVDbGFzcygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQElucHV0KCkgZ2V0IGxvYWRpbmcoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLl9sb2FkaW5nO1xuICAgIH1cblxuICAgIHNldCBsb2FkaW5nKHZhbDogYm9vbGVhbikge1xuICAgICAgICB0aGlzLl9sb2FkaW5nID0gdmFsO1xuXG4gICAgICAgIGlmICh0aGlzLmluaXRpYWxpemVkKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5sb2FkaW5nIHx8IHRoaXMuaWNvbilcbiAgICAgICAgICAgICAgICB0aGlzLnNldEljb25DbGFzcygpO1xuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIHRoaXMucmVtb3ZlSWNvbkVsZW1lbnQoKTtcblxuICAgICAgICAgIC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pdCgkZXZlbnQpXCIgcFJpcHBsZT5cbiAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjb250ZW50VGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDxzcGFuIFtuZ0NsYXNzXT1cInsncC1idXR0b24taWNvbic6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAncC1idXR0b24taWNvbi1sZWZ0JzogaWNvblBvcyA9PT0gJ2xlZnQnICYmIGxhYmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3AtYnV0dG9uLWljb24tcmlnaHQnOiBpY29uUG9zID09PSAncmlnaHQnICYmIGxhYmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3AtYnV0dG9uLWljb24tdG9wJzogaWNvblBvcyA9PT0gJ3RvcCcgJiYgbGFiZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAncC1idXR0b24taWNvbi1ib3R0b20nOiBpY29uUG9zID09PSAnYm90dG9tJyAmJiBsYWJlbH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2NsYXNzXT1cImxvYWRpbmcgPyAncC1idXR0b24tbG9hZGluZy1pY29uICcgKyBsb2FkaW5nSWNvbiA6IGljb25cIiAqbmdJZj1cIiFjb250ZW50VGVtcGxhdGUgJiYgKGljb258fGxvYWRpbmcpXCIgW2F0dHIuYXJpYS1oaWRkZW5dPVwidHJ1ZVwiPjwvc3Bhbj5cbiAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicC1idXR0b24tbGFiZWxcIiBbYXR0ci5hcmlhLWhpZGRlbl09XCJpY29uICYmICFsYWJlbFwiICpuZ0lmPVwiIWNvbnRlbnRUZW1wbGF0ZVwiPnt7bGFiZWx8fCcmbmJzcDsnfX08L3NwYW4+XG4gICAgICAgICAgICA8c3BhbiBbbmdDbGFzc109XCJiYWRnZVN0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ZV0sXG4gICAgZXhwb3J0czogW0J1dHRvbkRpcmVjdGl2ZSxCdXR0b25dLFxuICAgIGRlY2xhcmF0aW9uczogW0J1dHRvbkRpcmVjdGl2ZSxCdXR0b25dXG59KVxuZXhwb3J0IGNsYXNzIEJ1dHRvbk1vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.