source: trip-planner-front/node_modules/primeng/esm2020/splitter/splitter.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: 47.0 KB
Line 
1import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, ViewChild, Output, EventEmitter } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { DomHandler } from 'primeng/dom';
4import { PrimeTemplate, SharedModule } from 'primeng/api';
5import * as i0 from "@angular/core";
6import * as i1 from "@angular/common";
7export class Splitter {
8 constructor(cd, el) {
9 this.cd = cd;
10 this.el = el;
11 this.stateStorage = "session";
12 this.stateKey = null;
13 this.layout = "horizontal";
14 this.gutterSize = 4;
15 this.panelSizes = [];
16 this.minSizes = [];
17 this.onResizeEnd = new EventEmitter();
18 this.onResizeStart = new EventEmitter();
19 this.nested = false;
20 this.panels = [];
21 this.dragging = false;
22 this.mouseMoveListener = null;
23 this.mouseUpListener = null;
24 this.touchMoveListener = null;
25 this.touchEndListener = null;
26 this.size = null;
27 this.gutterElement = null;
28 this.startPos = null;
29 this.prevPanelElement = null;
30 this.nextPanelElement = null;
31 this.nextPanelSize = null;
32 this.prevPanelSize = null;
33 this._panelSizes = null;
34 this.prevPanelIndex = null;
35 }
36 ngOnInit() {
37 this.nested = this.isNested();
38 }
39 ngAfterContentInit() {
40 this.templates.forEach((item) => {
41 switch (item.getType()) {
42 case 'panel':
43 this.panels.push(item.template);
44 break;
45 default:
46 this.panels.push(item.template);
47 break;
48 }
49 });
50 }
51 ngAfterViewInit() {
52 if (this.panels && this.panels.length) {
53 let initialized = false;
54 if (this.isStateful()) {
55 initialized = this.restoreState();
56 }
57 if (!initialized) {
58 let children = [...this.el.nativeElement.children[0].children].filter(child => DomHandler.hasClass(child, 'p-splitter-panel'));
59 let _panelSizes = [];
60 this.panels.map((panel, i) => {
61 let panelInitialSize = this.panelSizes.length - 1 >= i ? this.panelSizes[i] : null;
62 let panelSize = panelInitialSize || (100 / this.panels.length);
63 _panelSizes[i] = panelSize;
64 children[i].style.flexBasis = 'calc(' + panelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';
65 });
66 this._panelSizes = _panelSizes;
67 }
68 }
69 }
70 resizeStart(event, index) {
71 this.gutterElement = event.currentTarget;
72 this.size = this.horizontal() ? DomHandler.getWidth(this.containerViewChild.nativeElement) : DomHandler.getHeight(this.containerViewChild.nativeElement);
73 this.dragging = true;
74 this.startPos = this.horizontal() ? (event.pageX || event.changedTouches[0].pageX) : (event.pageY || event.changedTouches[0].pageY);
75 this.prevPanelElement = this.gutterElement.previousElementSibling;
76 this.nextPanelElement = this.gutterElement.nextElementSibling;
77 this.prevPanelSize = 100 * (this.horizontal() ? DomHandler.getOuterWidth(this.prevPanelElement, true) : DomHandler.getOuterHeight(this.prevPanelElement, true)) / this.size;
78 this.nextPanelSize = 100 * (this.horizontal() ? DomHandler.getOuterWidth(this.nextPanelElement, true) : DomHandler.getOuterHeight(this.nextPanelElement, true)) / this.size;
79 this.prevPanelIndex = index;
80 DomHandler.addClass(this.gutterElement, 'p-splitter-gutter-resizing');
81 DomHandler.addClass(this.containerViewChild.nativeElement, 'p-splitter-resizing');
82 this.onResizeStart.emit({ originalEvent: event, sizes: this._panelSizes });
83 }
84 onResize(event) {
85 let newPos;
86 if (this.horizontal())
87 newPos = (event.pageX * 100 / this.size) - (this.startPos * 100 / this.size);
88 else
89 newPos = (event.pageY * 100 / this.size) - (this.startPos * 100 / this.size);
90 let newPrevPanelSize = this.prevPanelSize + newPos;
91 let newNextPanelSize = this.nextPanelSize - newPos;
92 if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {
93 this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';
94 this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';
95 this._panelSizes[this.prevPanelIndex] = newPrevPanelSize;
96 this._panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;
97 }
98 }
99 resizeEnd(event) {
100 if (this.isStateful()) {
101 this.saveState();
102 }
103 this.onResizeEnd.emit({ originalEvent: event, sizes: this._panelSizes });
104 DomHandler.removeClass(this.gutterElement, 'p-splitter-gutter-resizing');
105 DomHandler.removeClass(this.containerViewChild.nativeElement, 'p-splitter-resizing');
106 this.clear();
107 }
108 onGutterMouseDown(event, index) {
109 this.resizeStart(event, index);
110 this.bindMouseListeners();
111 }
112 onGutterTouchStart(event, index) {
113 if (event.cancelable) {
114 this.resizeStart(event, index);
115 this.bindTouchListeners();
116 event.preventDefault();
117 }
118 }
119 onGutterTouchEnd(event) {
120 this.resizeEnd(event);
121 this.unbindTouchListeners();
122 if (event.cancelable)
123 event.preventDefault();
124 }
125 validateResize(newPrevPanelSize, newNextPanelSize) {
126 if (this.minSizes.length >= 1 && this.minSizes[0] && this.minSizes[0] > newPrevPanelSize) {
127 return false;
128 }
129 if (this.minSizes.length > 1 && this.minSizes[1] && this.minSizes[1] > newNextPanelSize) {
130 return false;
131 }
132 return true;
133 }
134 bindMouseListeners() {
135 if (!this.mouseMoveListener) {
136 this.mouseMoveListener = event => this.onResize(event);
137 document.addEventListener('mousemove', this.mouseMoveListener);
138 }
139 if (!this.mouseUpListener) {
140 this.mouseUpListener = event => {
141 this.resizeEnd(event);
142 this.unbindMouseListeners();
143 };
144 document.addEventListener('mouseup', this.mouseUpListener);
145 }
146 }
147 bindTouchListeners() {
148 if (!this.touchMoveListener) {
149 this.touchMoveListener = event => this.onResize(event.changedTouches[0]);
150 document.addEventListener('touchmove', this.touchMoveListener);
151 }
152 if (!this.touchEndListener) {
153 this.touchEndListener = event => {
154 this.resizeEnd(event);
155 this.unbindTouchListeners();
156 };
157 document.addEventListener('touchend', this.touchEndListener);
158 }
159 }
160 unbindMouseListeners() {
161 if (this.mouseMoveListener) {
162 document.removeEventListener('mousemove', this.mouseMoveListener);
163 this.mouseMoveListener = null;
164 }
165 if (this.mouseUpListener) {
166 document.removeEventListener('mouseup', this.mouseUpListener);
167 this.mouseUpListener = null;
168 }
169 }
170 unbindTouchListeners() {
171 if (this.touchMoveListener) {
172 document.removeEventListener('touchmove', this.touchMoveListener);
173 this.touchMoveListener = null;
174 }
175 if (this.touchEndListener) {
176 document.removeEventListener('touchend', this.touchEndListener);
177 this.touchEndListener = null;
178 }
179 }
180 clear() {
181 this.dragging = false;
182 this.size = null;
183 this.startPos = null;
184 this.prevPanelElement = null;
185 this.nextPanelElement = null;
186 this.prevPanelSize = null;
187 this.nextPanelSize = null;
188 this.gutterElement = null;
189 this.prevPanelIndex = null;
190 }
191 isNested() {
192 if (this.el.nativeElement) {
193 let parent = this.el.nativeElement.parentElement;
194 while (parent && !DomHandler.hasClass(parent, 'p-splitter')) {
195 parent = parent.parentElement;
196 }
197 return parent !== null;
198 }
199 else {
200 return false;
201 }
202 }
203 isStateful() {
204 return this.stateKey != null;
205 }
206 getStorage() {
207 switch (this.stateStorage) {
208 case 'local':
209 return window.localStorage;
210 case 'session':
211 return window.sessionStorage;
212 default:
213 throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
214 }
215 }
216 saveState() {
217 this.getStorage().setItem(this.stateKey, JSON.stringify(this._panelSizes));
218 }
219 restoreState() {
220 const storage = this.getStorage();
221 const stateString = storage.getItem(this.stateKey);
222 if (stateString) {
223 this._panelSizes = JSON.parse(stateString);
224 let children = [...this.containerViewChild.nativeElement.children].filter(child => DomHandler.hasClass(child, 'p-splitter-panel'));
225 children.forEach((child, i) => {
226 child.style.flexBasis = 'calc(' + this._panelSizes[i] + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';
227 });
228 return true;
229 }
230 return false;
231 }
232 containerClass() {
233 return {
234 'p-splitter p-component': true,
235 'p-splitter-horizontal': this.layout === "horizontal",
236 'p-splitter-vertical': this.layout === "vertical"
237 };
238 }
239 panelContainerClass() {
240 return {
241 'p-splitter-panel': true,
242 'p-splitter-panel-nested': true
243 };
244 }
245 gutterStyle() {
246 if (this.horizontal())
247 return { width: this.gutterSize + 'px' };
248 else
249 return { height: this.gutterSize + 'px' };
250 }
251 horizontal() {
252 return this.layout === 'horizontal';
253 }
254}
255Splitter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Splitter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
256Splitter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Splitter, selector: "p-splitter", inputs: { styleClass: "styleClass", panelStyleClass: "panelStyleClass", style: "style", panelStyle: "panelStyle", stateStorage: "stateStorage", stateKey: "stateKey", layout: "layout", gutterSize: "gutterSize", panelSizes: "panelSizes", minSizes: "minSizes" }, outputs: { onResizeEnd: "onResizeEnd", onResizeStart: "onResizeStart" }, host: { properties: { "class.p-splitter-panel-nested": "nested" }, classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `
257 <div #container [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">
258 <ng-template ngFor let-panel let-i="index" [ngForOf]="panels">
259 <div [ngClass]="panelContainerClass()" [class]="panelStyleClass" [ngStyle]="panelStyle">
260 <ng-container *ngTemplateOutlet="panel"></ng-container>
261 </div>
262 <div class="p-splitter-gutter" *ngIf="i !== (panels.length - 1)" [ngStyle]="gutterStyle()"
263 (mousedown)="onGutterMouseDown($event, i)" (touchstart)="onGutterTouchStart($event, i)">
264 <div class="p-splitter-gutter-handle"></div>
265 </div>
266 </ng-template>
267 </div>
268 `, isInline: true, styles: [".p-splitter{display:flex;flex-wrap:nowrap}.p-splitter-vertical{flex-direction:column}.p-splitter-panel{flex-grow:1}.p-splitter-panel-nested{display:flex}.p-splitter-panel p-splitter{flex-grow:1}.p-splitter-panel .p-splitter{flex-grow:1;border:0 none}.p-splitter-gutter{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:col-resize}.p-splitter-horizontal.p-splitter-resizing{cursor:col-resize;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-splitter-horizontal>.p-splitter-gutter>.p-splitter-gutter-handle{height:24px;width:100%}.p-splitter-horizontal>.p-splitter-gutter{cursor:col-resize}.p-splitter-vertical.p-splitter-resizing{cursor:row-resize;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-splitter-vertical>.p-splitter-gutter{cursor:row-resize}.p-splitter-vertical>.p-splitter-gutter>.p-splitter-gutter-handle{width:24px;height:100%}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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 });
269i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Splitter, decorators: [{
270 type: Component,
271 args: [{ selector: 'p-splitter', template: `
272 <div #container [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">
273 <ng-template ngFor let-panel let-i="index" [ngForOf]="panels">
274 <div [ngClass]="panelContainerClass()" [class]="panelStyleClass" [ngStyle]="panelStyle">
275 <ng-container *ngTemplateOutlet="panel"></ng-container>
276 </div>
277 <div class="p-splitter-gutter" *ngIf="i !== (panels.length - 1)" [ngStyle]="gutterStyle()"
278 (mousedown)="onGutterMouseDown($event, i)" (touchstart)="onGutterTouchStart($event, i)">
279 <div class="p-splitter-gutter-handle"></div>
280 </div>
281 </ng-template>
282 </div>
283 `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
284 'class': 'p-element',
285 '[class.p-splitter-panel-nested]': 'nested'
286 }, styles: [".p-splitter{display:flex;flex-wrap:nowrap}.p-splitter-vertical{flex-direction:column}.p-splitter-panel{flex-grow:1}.p-splitter-panel-nested{display:flex}.p-splitter-panel p-splitter{flex-grow:1}.p-splitter-panel .p-splitter{flex-grow:1;border:0 none}.p-splitter-gutter{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:col-resize}.p-splitter-horizontal.p-splitter-resizing{cursor:col-resize;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-splitter-horizontal>.p-splitter-gutter>.p-splitter-gutter-handle{height:24px;width:100%}.p-splitter-horizontal>.p-splitter-gutter{cursor:col-resize}.p-splitter-vertical.p-splitter-resizing{cursor:row-resize;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-splitter-vertical>.p-splitter-gutter{cursor:row-resize}.p-splitter-vertical>.p-splitter-gutter>.p-splitter-gutter-handle{width:24px;height:100%}\n"] }]
287 }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { styleClass: [{
288 type: Input
289 }], panelStyleClass: [{
290 type: Input
291 }], style: [{
292 type: Input
293 }], panelStyle: [{
294 type: Input
295 }], stateStorage: [{
296 type: Input
297 }], stateKey: [{
298 type: Input
299 }], layout: [{
300 type: Input
301 }], gutterSize: [{
302 type: Input
303 }], panelSizes: [{
304 type: Input
305 }], minSizes: [{
306 type: Input
307 }], onResizeEnd: [{
308 type: Output
309 }], onResizeStart: [{
310 type: Output
311 }], templates: [{
312 type: ContentChildren,
313 args: [PrimeTemplate]
314 }], containerViewChild: [{
315 type: ViewChild,
316 args: ['container', { static: false }]
317 }] } });
318export class SplitterModule {
319}
320SplitterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SplitterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
321SplitterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SplitterModule, declarations: [Splitter], imports: [CommonModule], exports: [Splitter, SharedModule] });
322SplitterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SplitterModule, imports: [[CommonModule], SharedModule] });
323i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SplitterModule, decorators: [{
324 type: NgModule,
325 args: [{
326 imports: [CommonModule],
327 exports: [Splitter, SharedModule],
328 declarations: [Splitter]
329 }]
330 }] });
331//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXR0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvc3BsaXR0ZXIvc3BsaXR0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUUsS0FBSyxFQUFFLGVBQWUsRUFBeUQsU0FBUyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDaE4sT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDekMsT0FBTyxFQUFFLGFBQWEsRUFBRSxZQUFZLEVBQUUsTUFBTSxhQUFhLENBQUM7OztBQXlCMUQsTUFBTSxPQUFPLFFBQVE7SUE4RGpCLFlBQW1CLEVBQXFCLEVBQVUsRUFBYztRQUE3QyxPQUFFLEdBQU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cbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLm1pblNpemVzLmxlbmd0aCA+IDEgJiYgdGhpcy5taW5TaXplc1sxXSAmJiB0aGlzLm1pblNpemVzWzFdID4gbmV3TmV4dFBhbmVsU2l6ZSkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgYmluZE1vdXNlTGlzdGVuZXJzKCkge1xuICAgICAgICBpZiAoIXRoaXMubW91c2VNb3ZlTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMubW91c2VNb3ZlTGlzdGVuZXIgPSBldmVudCA9PiB0aGlzLm9uUmVzaXplKGV2ZW50KVxuICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2Vtb3ZlJywgdGhpcy5tb3VzZU1vdmVMaXN0ZW5lcik7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIXRoaXMubW91c2VVcExpc3RlbmVyKSB7XG4gICAgICAgICAgICB0aGlzLm1vdXNlVXBMaXN0ZW5lciA9IGV2ZW50ID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlc2l6ZUVuZChldmVudCk7XG4gICAgICAgICAgICAgICAgdGhpcy51bmJpbmRNb3VzZUxpc3RlbmVycygpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2V1cCcsIHRoaXMubW91c2VVcExpc3RlbmVyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGJpbmRUb3VjaExpc3RlbmVycygpIHtcbiAgICAgICAgaWYgKCF0aGlzLnRvdWNoTW92ZUxpc3RlbmVyKSB7XG4gICAgICAgICAgICB0aGlzLnRvdWNoTW92ZUxpc3RlbmVyID0gZXZlbnQgPT4gdGhpcy5vblJlc2l6ZSh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ICBwYW5lbENvbnRhaW5lckNsYXNzKCkge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgJ3Atc3BsaXR0ZXItcGFuZWwnOiB0cnVlLFxuICAgICAgICAgICAgJ3Atc3BsaXR0ZXItcGFuZWwtbmVzdGVkJzogdHJ1ZVxuICAgICAgICB9O1xuICAgIH1cblxuICAgIGd1dHRlclN0eWxlKCkge1xuICAgICAgICBpZiAodGhpcy5ob3Jpem9udGFsKCkpXG4gICAgICAgICAgICByZXR1cm4ge3dpZHRoOiB0aGlzLmd1dHRlclNpemUgKyAncHgnfTtcbiAgICAgICAgZWxzZVxuICAgICAgICAgICAgcmV0dXJuIHtoZWlnaHQ6IHRoaXMuZ3V0dGVyU2l6ZSArICdweCd9O1xuICAgIH1cblxuICAgIGhvcml6b250YWwoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmxheW91dCA9PT0gJ2hvcml6b250YWwnO1xuICAgIH1cbn1cblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbU3BsaXR0ZXIsIFNoYXJlZE1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbU3BsaXR0ZXJdXG59KVxuZXhwb3J0IGNsYXNzIFNwbGl0dGVyTW9kdWxlIHsgfVxuIl19
Note: See TracBrowser for help on using the repository browser.