source: trip-planner-front/node_modules/primeng/esm2020/dataview/dataview.mjs@ 84d0fbb

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

adding photos

  • Property mode set to 100644
File size: 54.4 KB
Line 
1import { NgModule, Component, Input, Output, EventEmitter, ContentChild, ContentChildren, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { ObjectUtils } from 'primeng/utils';
4import { Header, Footer, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';
5import { PaginatorModule } from 'primeng/paginator';
6import * as i0 from "@angular/core";
7import * as i1 from "primeng/api";
8import * as i2 from "primeng/paginator";
9import * as i3 from "@angular/common";
10export class DataView {
11 constructor(el, cd, filterService, config) {
12 this.el = el;
13 this.cd = cd;
14 this.filterService = filterService;
15 this.config = config;
16 this.pageLinks = 5;
17 this.paginatorPosition = 'bottom';
18 this.alwaysShowPaginator = true;
19 this.paginatorDropdownScrollHeight = '200px';
20 this.currentPageReportTemplate = '{currentPage} of {totalPages}';
21 this.showFirstLastIcon = true;
22 this.showPageLinks = true;
23 this.emptyMessage = '';
24 this.onLazyLoad = new EventEmitter();
25 this.trackBy = (index, item) => item;
26 this.loadingIcon = 'pi pi-spinner';
27 this.first = 0;
28 this.onPage = new EventEmitter();
29 this.onSort = new EventEmitter();
30 this.onChangeLayout = new EventEmitter();
31 this._layout = 'list';
32 }
33 get layout() {
34 return this._layout;
35 }
36 set layout(layout) {
37 this._layout = layout;
38 if (this.initialized) {
39 this.changeLayout(layout);
40 }
41 }
42 ngOnInit() {
43 if (this.lazy) {
44 this.onLazyLoad.emit(this.createLazyLoadMetadata());
45 }
46 this.translationSubscription = this.config.translationObserver.subscribe(() => {
47 this.cd.markForCheck();
48 });
49 this.initialized = true;
50 }
51 ngOnChanges(simpleChanges) {
52 if (simpleChanges.value) {
53 this._value = simpleChanges.value.currentValue;
54 this.updateTotalRecords();
55 if (!this.lazy && this.hasFilter()) {
56 this.filter(this.filterValue);
57 }
58 }
59 if (simpleChanges.sortField || simpleChanges.sortOrder) {
60 //avoid triggering lazy load prior to lazy initialization at onInit
61 if (!this.lazy || this.initialized) {
62 this.sort();
63 }
64 }
65 }
66 ngAfterContentInit() {
67 this.templates.forEach((item) => {
68 switch (item.getType()) {
69 case 'listItem':
70 this.listItemTemplate = item.template;
71 break;
72 case 'gridItem':
73 this.gridItemTemplate = item.template;
74 break;
75 case 'paginatorleft':
76 this.paginatorLeftTemplate = item.template;
77 break;
78 case 'paginatorright':
79 this.paginatorRightTemplate = item.template;
80 break;
81 case 'paginatordropdownitem':
82 this.paginatorDropdownItemTemplate = item.template;
83 break;
84 case 'empty':
85 this.emptyMessageTemplate = item.template;
86 break;
87 case 'header':
88 this.headerTemplate = item.template;
89 break;
90 case 'footer':
91 this.footerTemplate = item.template;
92 break;
93 }
94 });
95 this.updateItemTemplate();
96 }
97 updateItemTemplate() {
98 switch (this.layout) {
99 case 'list':
100 this.itemTemplate = this.listItemTemplate;
101 break;
102 case 'grid':
103 this.itemTemplate = this.gridItemTemplate;
104 break;
105 }
106 }
107 changeLayout(layout) {
108 this._layout = layout;
109 this.onChangeLayout.emit({
110 layout: this.layout
111 });
112 this.updateItemTemplate();
113 this.cd.markForCheck();
114 }
115 updateTotalRecords() {
116 this.totalRecords = this.lazy ? this.totalRecords : (this._value ? this._value.length : 0);
117 }
118 paginate(event) {
119 this.first = event.first;
120 this.rows = event.rows;
121 if (this.lazy) {
122 this.onLazyLoad.emit(this.createLazyLoadMetadata());
123 }
124 this.onPage.emit({
125 first: this.first,
126 rows: this.rows
127 });
128 }
129 sort() {
130 this.first = 0;
131 if (this.lazy) {
132 this.onLazyLoad.emit(this.createLazyLoadMetadata());
133 }
134 else if (this.value) {
135 this.value.sort((data1, data2) => {
136 let value1 = ObjectUtils.resolveFieldData(data1, this.sortField);
137 let value2 = ObjectUtils.resolveFieldData(data2, this.sortField);
138 let result = null;
139 if (value1 == null && value2 != null)
140 result = -1;
141 else if (value1 != null && value2 == null)
142 result = 1;
143 else if (value1 == null && value2 == null)
144 result = 0;
145 else if (typeof value1 === 'string' && typeof value2 === 'string')
146 result = value1.localeCompare(value2);
147 else
148 result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
149 return (this.sortOrder * result);
150 });
151 if (this.hasFilter()) {
152 this.filter(this.filterValue);
153 }
154 }
155 this.onSort.emit({
156 sortField: this.sortField,
157 sortOrder: this.sortOrder
158 });
159 }
160 isEmpty() {
161 let data = this.filteredValue || this.value;
162 return data == null || data.length == 0;
163 }
164 createLazyLoadMetadata() {
165 return {
166 first: this.first,
167 rows: this.rows,
168 sortField: this.sortField,
169 sortOrder: this.sortOrder
170 };
171 }
172 getBlockableElement() {
173 return this.el.nativeElement.children[0];
174 }
175 get emptyMessageLabel() {
176 return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
177 }
178 filter(filter, filterMatchMode = "contains") {
179 this.filterValue = filter;
180 if (this.value && this.value.length) {
181 let searchFields = this.filterBy.split(',');
182 this.filteredValue = this.filterService.filter(this.value, searchFields, filter, filterMatchMode, this.filterLocale);
183 if (this.filteredValue.length === this.value.length) {
184 this.filteredValue = null;
185 }
186 if (this.paginator) {
187 this.first = 0;
188 this.totalRecords = this.filteredValue ? this.filteredValue.length : this.value ? this.value.length : 0;
189 }
190 this.cd.markForCheck();
191 }
192 }
193 hasFilter() {
194 return this.filterValue && this.filterValue.trim().length > 0;
195 }
196 ngOnDestroy() {
197 if (this.translationSubscription) {
198 this.translationSubscription.unsubscribe();
199 }
200 }
201}
202DataView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataView, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FilterService }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
203DataView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: DataView, selector: "p-dataView", inputs: { paginator: "paginator", rows: "rows", totalRecords: "totalRecords", pageLinks: "pageLinks", rowsPerPageOptions: "rowsPerPageOptions", paginatorPosition: "paginatorPosition", alwaysShowPaginator: "alwaysShowPaginator", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", paginatorDropdownScrollHeight: "paginatorDropdownScrollHeight", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: "showCurrentPageReport", showJumpToPageDropdown: "showJumpToPageDropdown", showFirstLastIcon: "showFirstLastIcon", showPageLinks: "showPageLinks", lazy: "lazy", emptyMessage: "emptyMessage", style: "style", styleClass: "styleClass", trackBy: "trackBy", filterBy: "filterBy", filterLocale: "filterLocale", loading: "loading", loadingIcon: "loadingIcon", first: "first", sortField: "sortField", sortOrder: "sortOrder", value: "value", layout: "layout" }, outputs: { onLazyLoad: "onLazyLoad", onPage: "onPage", onSort: "onSort", onChangeLayout: "onChangeLayout" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "header", first: true, predicate: Header, descendants: true }, { propertyName: "footer", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], usesOnChanges: true, ngImport: i0, template: `
204 <div [ngClass]="{'p-dataview p-component': true, 'p-dataview-list': (layout === 'list'), 'p-dataview-grid': (layout === 'grid')}" [ngStyle]="style" [class]="styleClass">
205 <div class="p-dataview-loading" *ngIf="loading">
206 <div class="p-dataview-loading-overlay p-component-overlay">
207 <i [class]="'p-dataview-loading-icon pi-spin ' + loadingIcon"></i>
208 </div>
209 </div>
210 <div class="p-dataview-header" *ngIf="header || headerTemplate">
211 <ng-content select="p-header"></ng-content>
212 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
213 </div>
214 <p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
215 (onPageChange)="paginate($event)" styleClass="p-paginator-top" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition =='both')"
216 [dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
217 [currentPageReportTemplate]="currentPageReportTemplate" [showFirstLastIcon]="showFirstLastIcon" [dropdownItemTemplate]="paginatorDropdownItemTemplate" [showCurrentPageReport]="showCurrentPageReport" [showJumpToPageDropdown]="showJumpToPageDropdown" [showPageLinks]="showPageLinks"></p-paginator>
218 <div class="p-dataview-content">
219 <div class="p-grid p-nogutter grid grid-nogutter">
220 <ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="paginator ? ((filteredValue||value) | slice:(lazy ? 0 : first):((lazy ? 0 : first) + rows)) : (filteredValue||value)" [ngForTrackBy]="trackBy">
221 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: rowData, rowIndex: rowIndex}"></ng-container>
222 </ng-template>
223 <div *ngIf="isEmpty()" class="p-col col">
224 <div class="p-dataview-emptymessage">
225 <ng-container *ngIf="!emptyMessageTemplate; else emptyFilter">
226 {{emptyMessageLabel}}
227 </ng-container>
228 <ng-container #emptyFilter *ngTemplateOutlet="emptyMessageTemplate"></ng-container>
229 </div>
230 </div>
231 </div>
232 </div>
233 <p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
234 (onPageChange)="paginate($event)" styleClass="p-paginator-bottom" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition =='both')"
235 [dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
236 [currentPageReportTemplate]="currentPageReportTemplate" [showFirstLastIcon]="showFirstLastIcon" [dropdownItemTemplate]="paginatorDropdownItemTemplate" [showCurrentPageReport]="showCurrentPageReport" [showJumpToPageDropdown]="showJumpToPageDropdown" [showPageLinks]="showPageLinks"></p-paginator>
237 <div class="p-dataview-footer" *ngIf="footer || footerTemplate">
238 <ng-content select="p-footer"></ng-content>
239 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
240 </div>
241 </div>
242 `, isInline: true, styles: [".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"], components: [{ type: i2.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "templateLeft", "templateRight", "dropdownAppendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "slice": i3.SlicePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
243i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataView, decorators: [{
244 type: Component,
245 args: [{ selector: 'p-dataView', template: `
246 <div [ngClass]="{'p-dataview p-component': true, 'p-dataview-list': (layout === 'list'), 'p-dataview-grid': (layout === 'grid')}" [ngStyle]="style" [class]="styleClass">
247 <div class="p-dataview-loading" *ngIf="loading">
248 <div class="p-dataview-loading-overlay p-component-overlay">
249 <i [class]="'p-dataview-loading-icon pi-spin ' + loadingIcon"></i>
250 </div>
251 </div>
252 <div class="p-dataview-header" *ngIf="header || headerTemplate">
253 <ng-content select="p-header"></ng-content>
254 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
255 </div>
256 <p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
257 (onPageChange)="paginate($event)" styleClass="p-paginator-top" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition =='both')"
258 [dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
259 [currentPageReportTemplate]="currentPageReportTemplate" [showFirstLastIcon]="showFirstLastIcon" [dropdownItemTemplate]="paginatorDropdownItemTemplate" [showCurrentPageReport]="showCurrentPageReport" [showJumpToPageDropdown]="showJumpToPageDropdown" [showPageLinks]="showPageLinks"></p-paginator>
260 <div class="p-dataview-content">
261 <div class="p-grid p-nogutter grid grid-nogutter">
262 <ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="paginator ? ((filteredValue||value) | slice:(lazy ? 0 : first):((lazy ? 0 : first) + rows)) : (filteredValue||value)" [ngForTrackBy]="trackBy">
263 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: rowData, rowIndex: rowIndex}"></ng-container>
264 </ng-template>
265 <div *ngIf="isEmpty()" class="p-col col">
266 <div class="p-dataview-emptymessage">
267 <ng-container *ngIf="!emptyMessageTemplate; else emptyFilter">
268 {{emptyMessageLabel}}
269 </ng-container>
270 <ng-container #emptyFilter *ngTemplateOutlet="emptyMessageTemplate"></ng-container>
271 </div>
272 </div>
273 </div>
274 </div>
275 <p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
276 (onPageChange)="paginate($event)" styleClass="p-paginator-bottom" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition =='both')"
277 [dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
278 [currentPageReportTemplate]="currentPageReportTemplate" [showFirstLastIcon]="showFirstLastIcon" [dropdownItemTemplate]="paginatorDropdownItemTemplate" [showCurrentPageReport]="showCurrentPageReport" [showJumpToPageDropdown]="showJumpToPageDropdown" [showPageLinks]="showPageLinks"></p-paginator>
279 <div class="p-dataview-footer" *ngIf="footer || footerTemplate">
280 <ng-content select="p-footer"></ng-content>
281 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
282 </div>
283 </div>
284 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
285 'class': 'p-element'
286 }, styles: [".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"] }]
287 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FilterService }, { type: i1.PrimeNGConfig }]; }, propDecorators: { paginator: [{
288 type: Input
289 }], rows: [{
290 type: Input
291 }], totalRecords: [{
292 type: Input
293 }], pageLinks: [{
294 type: Input
295 }], rowsPerPageOptions: [{
296 type: Input
297 }], paginatorPosition: [{
298 type: Input
299 }], alwaysShowPaginator: [{
300 type: Input
301 }], paginatorDropdownAppendTo: [{
302 type: Input
303 }], paginatorDropdownScrollHeight: [{
304 type: Input
305 }], currentPageReportTemplate: [{
306 type: Input
307 }], showCurrentPageReport: [{
308 type: Input
309 }], showJumpToPageDropdown: [{
310 type: Input
311 }], showFirstLastIcon: [{
312 type: Input
313 }], showPageLinks: [{
314 type: Input
315 }], lazy: [{
316 type: Input
317 }], emptyMessage: [{
318 type: Input
319 }], onLazyLoad: [{
320 type: Output
321 }], style: [{
322 type: Input
323 }], styleClass: [{
324 type: Input
325 }], trackBy: [{
326 type: Input
327 }], filterBy: [{
328 type: Input
329 }], filterLocale: [{
330 type: Input
331 }], loading: [{
332 type: Input
333 }], loadingIcon: [{
334 type: Input
335 }], first: [{
336 type: Input
337 }], sortField: [{
338 type: Input
339 }], sortOrder: [{
340 type: Input
341 }], value: [{
342 type: Input
343 }], onPage: [{
344 type: Output
345 }], onSort: [{
346 type: Output
347 }], onChangeLayout: [{
348 type: Output
349 }], header: [{
350 type: ContentChild,
351 args: [Header]
352 }], footer: [{
353 type: ContentChild,
354 args: [Footer]
355 }], templates: [{
356 type: ContentChildren,
357 args: [PrimeTemplate]
358 }], layout: [{
359 type: Input
360 }] } });
361export class DataViewLayoutOptions {
362 constructor(dv) {
363 this.dv = dv;
364 }
365 changeLayout(event, layout) {
366 this.dv.changeLayout(layout);
367 event.preventDefault();
368 }
369}
370DataViewLayoutOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewLayoutOptions, deps: [{ token: DataView }], target: i0.ɵɵFactoryTarget.Component });
371DataViewLayoutOptions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: DataViewLayoutOptions, selector: "p-dataViewLayoutOptions", inputs: { style: "style", styleClass: "styleClass" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
372 <div [ngClass]="'p-dataview-layout-options p-selectbutton p-buttonset'" [ngStyle]="style" [class]="styleClass">
373 <button type="button" class="p-button p-button-icon-only" [ngClass]="{'p-highlight': dv.layout === 'list'}" (click)="changeLayout($event, 'list')" (keydown.enter)="changeLayout($event, 'list')">
374 <i class="pi pi-bars"></i>
375 </button><button type="button" class="p-button p-button-icon-only" [ngClass]="{'p-highlight': dv.layout === 'grid'}" (click)="changeLayout($event, 'grid')" (keydown.enter)="changeLayout($event, 'grid')">
376 <i class="pi pi-th-large"></i>
377 </button>
378 </div>
379 `, isInline: true, directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
380i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewLayoutOptions, decorators: [{
381 type: Component,
382 args: [{
383 selector: 'p-dataViewLayoutOptions',
384 template: `
385 <div [ngClass]="'p-dataview-layout-options p-selectbutton p-buttonset'" [ngStyle]="style" [class]="styleClass">
386 <button type="button" class="p-button p-button-icon-only" [ngClass]="{'p-highlight': dv.layout === 'list'}" (click)="changeLayout($event, 'list')" (keydown.enter)="changeLayout($event, 'list')">
387 <i class="pi pi-bars"></i>
388 </button><button type="button" class="p-button p-button-icon-only" [ngClass]="{'p-highlight': dv.layout === 'grid'}" (click)="changeLayout($event, 'grid')" (keydown.enter)="changeLayout($event, 'grid')">
389 <i class="pi pi-th-large"></i>
390 </button>
391 </div>
392 `,
393 encapsulation: ViewEncapsulation.None,
394 host: {
395 'class': 'p-element'
396 }
397 }]
398 }], ctorParameters: function () { return [{ type: DataView }]; }, propDecorators: { style: [{
399 type: Input
400 }], styleClass: [{
401 type: Input
402 }] } });
403export class DataViewModule {
404}
405DataViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
406DataViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewModule, declarations: [DataView, DataViewLayoutOptions], imports: [CommonModule, SharedModule, PaginatorModule], exports: [DataView, SharedModule, DataViewLayoutOptions] });
407DataViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewModule, imports: [[CommonModule, SharedModule, PaginatorModule], SharedModule] });
408i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: DataViewModule, decorators: [{
409 type: NgModule,
410 args: [{
411 imports: [CommonModule, SharedModule, PaginatorModule],
412 exports: [DataView, SharedModule, DataViewLayoutOptions],
413 declarations: [DataView, DataViewLayoutOptions]
414 }]
415 }] });
416//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXZpZXcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvZGF0YXZpZXcvZGF0YXZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQW9DLEtBQUssRUFBQyxNQUFNLEVBQUMsWUFBWSxFQUFDLFlBQVksRUFBQyxlQUFlLEVBQStDLHVCQUF1QixFQUFvQixpQkFBaUIsRUFBWSxNQUFNLGVBQWUsQ0FBQztBQUNqUSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUMsTUFBTSxFQUFDLE1BQU0sRUFBQyxhQUFhLEVBQUMsWUFBWSxFQUFnQixlQUFlLEVBQWdCLE1BQU0sYUFBYSxDQUFDO0FBQ25ILE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQzs7Ozs7QUFxRGxELE1BQU0sT0FBTyxRQUFRO0lBZ0hqQixZQUFtQixFQUFjLEVBQVMsRUFBcUIsRUFBUyxhQUE0QixFQUFTLE1BQXFCO1FBQS9HLE9BQUUsR0FBRixFQUFFLENBQVk7UUFBUyxPQUFFLEdBQUYsRUFBRSxDQUFtQjtRQUFTLGtCQUFhLEdBQWIsYUFBYSxDQUFlO1FBQVMsV0FBTSxHQUFOLE1BQU0sQ0FBZTtRQXhHekgsY0FBUyxHQUFXLENBQUMsQ0F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Jvd0RhdGEgbGV0LXJvd0luZGV4PVwiaW5kZXhcIiBbbmdGb3JPZl09XCJwYWdpbmF0b3IgPyAoKGZpbHRlcmVkVmFsdWV8fHZhbHVlKSB8IHNsaWNlOihsYXp5ID8gMCA6IGZpcnN0KTooKGxhenkgPyAwIDogZmlyc3QpICsgcm93cykpIDogKGZpbHRlcmVkVmFsdWV8fHZhbHVlKVwiIFtuZ0ZvclRyYWNrQnldPVwidHJhY2tCeVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cIml0ZW1UZW1wbGF0ZTsgY29udGV4dDogeyRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IHJvd0luZGV4fVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwiaXNFbXB0eSgpXCIgY2xhc3M9XCJwLWNvbCBjb2xcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1kYXRhdmlldy1lbXB0eW1lc3NhZ2VcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWVtcHR5TWVzc2FnZVRlbXBsYXRlOyBlbHNlIGVtcHR5RmlsdGVyXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7e2VtcHR5TWVzc2FnZUxhYmVsfX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICNlbXB0eUZpbHRlciAqbmdUZW1wbGF0ZU91dGxldD1cImVtcHR5TWVzc2FnZVRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICA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XplZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuc29ydCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgbmdBZnRlckNvbnRlbnRJbml0KCkge1xuICAgICAgICB0aGlzLnRlbXBsYXRlcy5mb3JFYWNoKChpdGVtKSA9PiB7XG4gICAgICAgICAgICBzd2l0Y2goaXRlbS5nZXRUeXBlKCkpIHtcbiAgICAgICAgICAgICAgICBjYXNlICdsaXN0SXRlbSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubGlzdEl0ZW1UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdncmlkSXRlbSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZ3JpZEl0ZW1UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3JsZWZ0JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wYWdpbmF0b3JMZWZ0VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncGFnaW5hdG9ycmlnaHQnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnBhZ2luYXRvclJpZ2h0VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncGFnaW5hdG9yZHJvcGRvd25pdGVtJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wYWdpbmF0b3JEcm9wZG93bkl0ZW1UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdlbXB0eSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZW1wdHlNZXNzYWdlVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnaGVhZGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5oZWFkZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdmb290ZXInOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZvb3RlclRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy51cGRhdGVJdGVtVGVtcGxhdGUoKTtcbiAgICB9XG5cbiAgICB1cGRhdGVJdGVtVGVtcGxhdGUoKSB7XG4gICAgICAgIHN3aXRjaCh0aGlzLmxheW91dCkge1xuICAgICAgICAgICAgY2FzZSAnbGlzdCc6XG4gICAgICAgICAgICAgICAgdGhpcy5pdGVtVGVtcGxhdGUgPSB0aGlzLmxpc3RJdGVtVGVtcGxhdGU7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnZ3JpZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5pdGVtVGVtcGxhdGUgPSB0aGlzLmdyaWRJdGVtVGVtcGxhdGU7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNoYW5nZUxheW91dChsYXlvdXQ6IHN0cmluZykge1xuICAgICAgICB0aGlzLl9sYXlvdXQgPSBsYXlvdXQ7XG4gICAgICAgIHRoaXMub25DaGFuZ2VMYXlvdXQuZW1pdCh7XG4gICAgICAgICAgICBsYXlvdXQ6IHRoaXMubGF5b3V0XG4gICAgICAgIH0pO1xuICAgICAgICB0aG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ICAgICAgICBsZXQgdmFsdWUyID0gT2JqZWN0VXRpbHMucmVzb2x2ZUZpZWxkRGF0YShkYXRhMiwgdGhpcy5zb3J0RmllbGQpO1xuICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSBudWxsO1xuXG4gICAgICAgICAgICAgICAgaWYgKHZhbHVlMSA9PSBudWxsICYmIHZhbHVlMiAhPSBudWxsKVxuICAgICAgICAgICAgICAgICAgICByZXN1bHQgPSAtMTtcbiAgICAgICAgICAgICAgICBlbHNlIGlmICh2YWx1ZTEgIT0gbnVsbCAmJiB2YWx1ZTIgPT0gbnVsbClcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gMTtcbiAgICAgICAgICAgICAgICBlbHNlIGlmICh2YWx1ZTEgPT0gbnVsbCAmJiB2YWx1ZTIgPT0gbnVsbClcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gMDtcbiAgICAgICAgICAgICAgICBlbHNlIGlmICh0eXBlb2YgdmFsdWUxID09PSAnc3RyaW5nJyAmJiB0eXBlb2YgdmFsdWUyID09PSAnc3RyaW5nJylcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gdmFsdWUxLmxvY2FsZUNvbXBhcmUodmFsdWUyKTtcbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9ICh2YWx1ZTEgPCB2YWx1ZTIpID8gLTEgOiAodmFsdWUxID4gdmFsdWUyKSA/IDEgOiAwO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuICh0aGlzLnNvcnRPcmRlciAqIHJlc3VsdCk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgaWYgKHRoaXMuaGFzRmlsdGVyKCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmZpbHRlcih0aGlzLmZpbHRlclZhbHVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMub25Tb3J0LmVtaXQoe1xuICAgICA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jYXBzdWxhdGlvbi5Ob25lLFxuICAgIGhvc3Q6IHtcbiAgICAgICAgJ2NsYXNzJzogJ3AtZWxlbWVudCdcbiAgICB9XG59KVxuZXhwb3J0IGNsYXNzIERhdGFWaWV3TGF5b3V0T3B0aW9ucyAge1xuXG4gICAgQElucHV0KCkgc3R5bGU6IGFueTtcblxuICAgIEBJbnB1dCgpIHN0eWxlQ2xhc3M6IHN0cmluZztcblxuICAgIGNvbnN0cnVjdG9yKHB1YmxpYyBkdjogRGF0YVZpZXcpIHt9XG5cbiAgICBjaGFuZ2VMYXlvdXQoZXZlbnQ6IEV2ZW50LCBsYXlvdXQ6IHN0cmluZykge1xuICAgICAgICB0aGlzLmR2LmNoYW5nZUxheW91dChsYXlvdXQpO1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIH1cbn1cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSxTaGFyZWRNb2R1bGUsUGFnaW5hdG9yTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbRGF0YVZpZXcsU2hhcmVkTW9kdWxlLERhdGFWaWV3TGF5b3V0T3B0aW9uc10sXG4gICAgZGVjbGFyYXRpb25zOiBbRGF0YVZpZXcsRGF0YVZpZXdMYXlvdXRPcHRpb25zXVxufSlcbmV4cG9ydCBjbGFzcyBEYXRhVmlld01vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.