@paperless/angular 0.1.0-alpha.21 → 0.1.0-alpha.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +9 -1
  2. package/esm2020/lib/animations/index.mjs +2 -0
  3. package/esm2020/lib/animations/slide.mjs +11 -0
  4. package/esm2020/lib/base/index.mjs +3 -0
  5. package/esm2020/lib/base/upload.component.mjs +57 -0
  6. package/esm2020/lib/base/value-accessor.mjs +42 -0
  7. package/esm2020/lib/directives/index.mjs +12 -0
  8. package/esm2020/lib/directives/p-page-size-select.directive.mjs +42 -0
  9. package/esm2020/lib/directives/p-pagination.directive.mjs +42 -0
  10. package/esm2020/lib/directives/p-select.directive.mjs +38 -0
  11. package/esm2020/lib/modules/index.mjs +6 -0
  12. package/esm2020/lib/modules/table/base/form.component.mjs +105 -0
  13. package/esm2020/lib/modules/table/base/index.mjs +3 -0
  14. package/esm2020/lib/modules/table/base/table.component.mjs +162 -0
  15. package/esm2020/lib/modules/table/components/index.mjs +8 -0
  16. package/esm2020/lib/modules/table/components/table/constants.mjs +3 -0
  17. package/esm2020/lib/modules/table/components/table/table.component.mjs +544 -0
  18. package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +167 -0
  19. package/esm2020/lib/modules/table/components/table-column/table-column.component.mjs +37 -0
  20. package/esm2020/lib/modules/table/directives/index.mjs +15 -0
  21. package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +52 -0
  22. package/esm2020/lib/modules/table/directives/p-table-header.directive.mjs +60 -0
  23. package/esm2020/lib/modules/table/directives/p-table-ngx.directive.mjs +88 -0
  24. package/esm2020/lib/modules/table/directives/p-table.directive.mjs +78 -0
  25. package/esm2020/lib/modules/table/index.mjs +5 -0
  26. package/esm2020/lib/modules/table/table.module.mjs +27 -0
  27. package/esm2020/lib/modules/toast/components/index.mjs +4 -0
  28. package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +35 -0
  29. package/esm2020/lib/modules/toast/directives/index.mjs +4 -0
  30. package/esm2020/lib/modules/toast/directives/toast.directive.mjs +44 -0
  31. package/esm2020/lib/modules/toast/index.mjs +6 -0
  32. package/esm2020/lib/modules/toast/services/index.mjs +4 -0
  33. package/esm2020/lib/modules/toast/services/toast.service.mjs +47 -0
  34. package/esm2020/lib/modules/toast/toast.module.mjs +22 -0
  35. package/esm2020/lib/modules/toast/types.mjs +10 -0
  36. package/esm2020/lib/paperless.module.mjs +29 -9
  37. package/esm2020/lib/pipes/currency.pipe.mjs +20 -0
  38. package/esm2020/lib/pipes/date.pipe.mjs +20 -0
  39. package/esm2020/lib/pipes/index.mjs +8 -0
  40. package/esm2020/lib/pipes/safe.pipe.mjs +33 -0
  41. package/esm2020/lib/stencil/components.mjs +976 -70
  42. package/esm2020/lib/stencil/index.mjs +37 -1
  43. package/esm2020/lib/stencil.module.mjs +17 -0
  44. package/esm2020/public-api.mjs +6 -1
  45. package/fesm2015/paperless-angular.mjs +2733 -116
  46. package/fesm2015/paperless-angular.mjs.map +1 -1
  47. package/fesm2020/paperless-angular.mjs +2766 -133
  48. package/fesm2020/paperless-angular.mjs.map +1 -1
  49. package/{paperless-angular.d.ts → index.d.ts} +0 -0
  50. package/lib/animations/index.d.ts +1 -0
  51. package/lib/animations/slide.d.ts +1 -0
  52. package/lib/base/index.d.ts +2 -0
  53. package/lib/base/upload.component.d.ts +16 -0
  54. package/lib/base/value-accessor.d.ts +17 -0
  55. package/lib/directives/index.d.ts +5 -0
  56. package/lib/directives/p-page-size-select.directive.d.ts +10 -0
  57. package/lib/directives/p-pagination.directive.d.ts +10 -0
  58. package/lib/directives/p-select.directive.d.ts +9 -0
  59. package/lib/modules/index.d.ts +4 -0
  60. package/lib/modules/table/base/form.component.d.ts +15 -0
  61. package/lib/modules/table/base/index.d.ts +2 -0
  62. package/lib/modules/table/base/table.component.d.ts +45 -0
  63. package/lib/modules/table/components/index.d.ts +7 -0
  64. package/lib/modules/table/components/table/constants.d.ts +2 -0
  65. package/lib/modules/table/components/table/table.component.d.ts +190 -0
  66. package/lib/modules/table/components/table-cell/table-cell.component.d.ts +45 -0
  67. package/lib/modules/table/components/table-column/table-column.component.d.ts +17 -0
  68. package/lib/modules/table/directives/index.d.ts +9 -0
  69. package/lib/modules/table/directives/p-table-footer.directive.d.ts +11 -0
  70. package/lib/modules/table/directives/p-table-header.directive.d.ts +17 -0
  71. package/lib/modules/table/directives/p-table-ngx.directive.d.ts +24 -0
  72. package/lib/modules/table/directives/p-table.directive.d.ts +22 -0
  73. package/lib/modules/table/index.d.ts +4 -0
  74. package/lib/modules/table/table.module.d.ts +15 -0
  75. package/lib/modules/toast/components/index.d.ts +3 -0
  76. package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +17 -0
  77. package/lib/modules/toast/directives/index.d.ts +3 -0
  78. package/lib/modules/toast/directives/toast.directive.d.ts +13 -0
  79. package/lib/modules/toast/index.d.ts +5 -0
  80. package/lib/modules/toast/services/index.d.ts +3 -0
  81. package/lib/modules/toast/services/toast.service.d.ts +12 -0
  82. package/lib/modules/toast/toast.module.d.ts +10 -0
  83. package/lib/modules/toast/types.d.ts +26 -0
  84. package/lib/paperless.module.d.ts +13 -2
  85. package/lib/pipes/currency.pipe.d.ts +10 -0
  86. package/lib/pipes/date.pipe.d.ts +10 -0
  87. package/lib/pipes/index.d.ts +7 -0
  88. package/lib/pipes/safe.pipe.d.ts +10 -0
  89. package/lib/stencil/components.d.ts +404 -15
  90. package/lib/stencil/index.d.ts +1 -1
  91. package/lib/stencil.module.d.ts +7 -0
  92. package/package.json +7 -6
  93. package/public-api.d.ts +5 -0
@@ -1,7 +1,481 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, HostBinding, TemplateRef, ContentChild, ContentChildren, Host, NgModule, Injectable, Pipe } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR, FormControl, FormGroup, FormArray } from '@angular/forms';
3
4
  import { __decorate } from 'tslib';
4
- import { fromEvent } from 'rxjs';
5
+ import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
6
+ import { timer, fromEvent, BehaviorSubject } from 'rxjs';
7
+ import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
8
+ import { objectGetByPath } from '@paperless/core';
9
+ import * as i1 from '@angular/common';
10
+ import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
11
+ import { trigger, transition, style, animate } from '@angular/animations';
12
+ import * as i1$1 from '@angular/platform-browser';
13
+
14
+ class BaseUploadComponent {
15
+ constructor() {
16
+ this.uploaded = false;
17
+ this.fileChange = new EventEmitter();
18
+ this._loading = false;
19
+ }
20
+ set loading(value) {
21
+ this._loading = value;
22
+ }
23
+ get loading() {
24
+ return this._loading;
25
+ }
26
+ onChange($event) {
27
+ var _a;
28
+ const target = $event.target;
29
+ const file = (_a = target.files) === null || _a === void 0 ? void 0 : _a[0];
30
+ if (file) {
31
+ this._loading = true;
32
+ const reader = new FileReader();
33
+ reader.onload = (e) => { var _a; return this.onLoad(file, (_a = e === null || e === void 0 ? void 0 : e.currentTarget) === null || _a === void 0 ? void 0 : _a.result); };
34
+ reader.readAsDataURL(file);
35
+ }
36
+ }
37
+ onLoad(file, result) {
38
+ var _a;
39
+ this.fileChange.next({
40
+ fileId: this.fileId,
41
+ result,
42
+ file,
43
+ });
44
+ if ((_a = this.uploaderInput) === null || _a === void 0 ? void 0 : _a.nativeElement) {
45
+ this.uploaderInput.nativeElement.value = '';
46
+ }
47
+ this.file = file;
48
+ this._loading = false;
49
+ }
50
+ }
51
+ BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
+ BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseUploadComponent, selector: "ng-component", inputs: { fileId: "fileId", uploaded: "uploaded", loading: "loading" }, outputs: { fileChange: "fileChange" }, viewQueries: [{ propertyName: "uploaderInput", first: true, predicate: ["uploaderInput"], descendants: true }], ngImport: i0, template: ``, isInline: true });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, decorators: [{
54
+ type: Component,
55
+ args: [{
56
+ template: ``,
57
+ }]
58
+ }], propDecorators: { fileId: [{
59
+ type: Input
60
+ }], uploaded: [{
61
+ type: Input
62
+ }], loading: [{
63
+ type: Input
64
+ }], fileChange: [{
65
+ type: Output
66
+ }], uploaderInput: [{
67
+ type: ViewChild,
68
+ args: ['uploaderInput']
69
+ }] } });
70
+
71
+ class BaseValueAccessor {
72
+ constructor(el) {
73
+ this.el = el;
74
+ this.onChange = () => {
75
+ /**/
76
+ };
77
+ this.onTouched = () => {
78
+ /**/
79
+ };
80
+ }
81
+ writeValue(value) {
82
+ this.el.nativeElement.value = this.lastValue =
83
+ value == null ? '' : value;
84
+ }
85
+ handleChangeEvent(value) {
86
+ if (value !== this.lastValue) {
87
+ this.lastValue = value;
88
+ this.onChange(value);
89
+ }
90
+ }
91
+ registerOnChange(fn) {
92
+ this.onChange = fn;
93
+ }
94
+ registerOnTouched(fn) {
95
+ this.onTouched = fn;
96
+ }
97
+ _handleBlurEvent() {
98
+ this.onTouched();
99
+ }
100
+ }
101
+ BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
102
+ BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, decorators: [{
104
+ type: Directive,
105
+ args: [{}]
106
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
107
+ type: HostListener,
108
+ args: ['focusout']
109
+ }] } });
110
+
111
+ class PageSizeSelectDirective extends BaseValueAccessor {
112
+ constructor(el) {
113
+ super(el);
114
+ }
115
+ writeValue(value) {
116
+ this.el.nativeElement.page = this.lastValue =
117
+ value == null ? '' : value;
118
+ }
119
+ registerOnChange(fn) {
120
+ super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
121
+ }
122
+ }
123
+ PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
124
+ PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PageSizeSelectDirective, selector: "p-page-size-select", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
125
+ {
126
+ provide: NG_VALUE_ACCESSOR,
127
+ useExisting: PageSizeSelectDirective,
128
+ multi: true,
129
+ },
130
+ ], usesInheritance: true, ngImport: i0 });
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, decorators: [{
132
+ type: Directive,
133
+ args: [{
134
+ /* tslint:disable-next-line:directive-selector */
135
+ selector: 'p-page-size-select',
136
+ host: {
137
+ '(sizeChange)': 'handleChangeEvent($event.detail)',
138
+ },
139
+ providers: [
140
+ {
141
+ provide: NG_VALUE_ACCESSOR,
142
+ useExisting: PageSizeSelectDirective,
143
+ multi: true,
144
+ },
145
+ ],
146
+ }]
147
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
148
+
149
+ class PaginationDirective extends BaseValueAccessor {
150
+ constructor(el) {
151
+ super(el);
152
+ }
153
+ writeValue(value) {
154
+ this.el.nativeElement.page = this.lastValue =
155
+ value == null ? '' : value;
156
+ }
157
+ registerOnChange(fn) {
158
+ super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
159
+ }
160
+ }
161
+ PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
162
+ PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
163
+ {
164
+ provide: NG_VALUE_ACCESSOR,
165
+ useExisting: PaginationDirective,
166
+ multi: true,
167
+ },
168
+ ], usesInheritance: true, ngImport: i0 });
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, decorators: [{
170
+ type: Directive,
171
+ args: [{
172
+ /* tslint:disable-next-line:directive-selector */
173
+ selector: 'p-pagination',
174
+ host: {
175
+ '(pageChange)': 'handleChangeEvent($event.detail)',
176
+ },
177
+ providers: [
178
+ {
179
+ provide: NG_VALUE_ACCESSOR,
180
+ useExisting: PaginationDirective,
181
+ multi: true,
182
+ },
183
+ ],
184
+ }]
185
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
186
+
187
+ class SelectDirective extends BaseValueAccessor {
188
+ constructor(el) {
189
+ super(el);
190
+ }
191
+ writeValue(value) {
192
+ this.el.nativeElement.value = this.lastValue =
193
+ value == null ? '' : value;
194
+ }
195
+ }
196
+ SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
197
+ SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: SelectDirective, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
198
+ {
199
+ provide: NG_VALUE_ACCESSOR,
200
+ useExisting: SelectDirective,
201
+ multi: true,
202
+ },
203
+ ], usesInheritance: true, ngImport: i0 });
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, decorators: [{
205
+ type: Directive,
206
+ args: [{
207
+ selector: 'p-select',
208
+ host: {
209
+ '(valueChange)': 'handleChangeEvent($event.detail)',
210
+ },
211
+ providers: [
212
+ {
213
+ provide: NG_VALUE_ACCESSOR,
214
+ useExisting: SelectDirective,
215
+ multi: true,
216
+ },
217
+ ],
218
+ }]
219
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
220
+
221
+ const DIRECTIVES$1 = [
222
+ PaginationDirective,
223
+ PageSizeSelectDirective,
224
+ SelectDirective,
225
+ ];
226
+
227
+ class FormBaseComponent {
228
+ constructor() {
229
+ this.markedDirty = false;
230
+ }
231
+ scrollToFirstError() {
232
+ const invalidInputs = Array.from(document.getElementsByClassName('ng-invalid'))
233
+ .filter((e) => { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.nodeName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== 'form'; })
234
+ .sort((a, b) => a.scrollTop - b.scrollTop);
235
+ const first = invalidInputs[0];
236
+ if (first) {
237
+ first.scrollIntoView({
238
+ behavior: 'smooth',
239
+ block: 'center',
240
+ inline: 'center',
241
+ });
242
+ }
243
+ }
244
+ markControlDirty(control) {
245
+ if (control instanceof FormControl) {
246
+ control.markAsDirty({ onlySelf: true });
247
+ control.markAsTouched({ onlySelf: true });
248
+ }
249
+ else if (control instanceof FormGroup) {
250
+ control.markAsDirty();
251
+ control.markAsTouched();
252
+ this.markAllDirty(control);
253
+ }
254
+ else if (control instanceof FormArray) {
255
+ control.markAsDirty();
256
+ control.markAsTouched();
257
+ for (const child of control === null || control === void 0 ? void 0 : control.controls) {
258
+ this.markControlDirty(child);
259
+ }
260
+ }
261
+ control.updateValueAndValidity();
262
+ }
263
+ markAllDirty(formGroup) {
264
+ this.markedDirty = true;
265
+ for (const field of Object.keys(formGroup.controls)) {
266
+ const control = formGroup.get(field);
267
+ this.markControlDirty(control);
268
+ }
269
+ }
270
+ getControlError(control) {
271
+ if (!this.hasControlError(control)) {
272
+ return;
273
+ }
274
+ return this.firstControlError(control);
275
+ }
276
+ hasControlError(control, showChildErrors = true) {
277
+ return ((control === null || control === void 0 ? void 0 : control.dirty) && this.firstControlError(control, showChildErrors));
278
+ }
279
+ firstControlError(control, showChildErrors = true) {
280
+ if (control instanceof FormGroup && showChildErrors) {
281
+ const errors = Object.keys(control.controls)
282
+ .map((key) => this.firstControlError(control.controls[key]))
283
+ .filter((val) => !!val);
284
+ return errors[0];
285
+ }
286
+ if (!(control === null || control === void 0 ? void 0 : control.errors)) {
287
+ return;
288
+ }
289
+ const keys = Object.keys(control.errors);
290
+ let err;
291
+ for (const key of keys) {
292
+ if (control.errors[key]) {
293
+ err = key;
294
+ break;
295
+ }
296
+ }
297
+ return err;
298
+ }
299
+ resetControl(control) {
300
+ control.setErrors(null);
301
+ control.reset();
302
+ control.markAsPristine();
303
+ if (control instanceof FormGroup) {
304
+ this.resetForm(control);
305
+ }
306
+ else if (control instanceof FormArray) {
307
+ for (const child of control === null || control === void 0 ? void 0 : control.controls) {
308
+ this.resetControl(child);
309
+ }
310
+ }
311
+ }
312
+ resetForm(formGroup) {
313
+ for (const field of Object.keys(formGroup.controls)) {
314
+ const control = formGroup.get(field);
315
+ this.resetControl(control);
316
+ }
317
+ this.markedDirty = false;
318
+ }
319
+ }
320
+ FormBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
321
+ FormBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormBaseComponent, selector: "ng-component", ngImport: i0, template: ``, isInline: true });
322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormBaseComponent, decorators: [{
323
+ type: Component,
324
+ args: [{
325
+ template: ``,
326
+ }]
327
+ }] });
328
+
329
+ let BaseTableComponent = class BaseTableComponent extends FormBaseComponent {
330
+ constructor() {
331
+ super();
332
+ this.quickFilters = [];
333
+ this.pageSizeDefault = 12;
334
+ this._defaultTableValues = {
335
+ pageSize: this.pageSizeDefault,
336
+ page: 1,
337
+ quickFilter: null,
338
+ query: '',
339
+ selectedRows: [],
340
+ };
341
+ this.defaultTableValues = {};
342
+ }
343
+ get pageSize() {
344
+ if (!this.tableOptions) {
345
+ return this._defaultTableValues.pageSize;
346
+ }
347
+ return this.tableOptions.value.pageSize;
348
+ }
349
+ get page() {
350
+ if (!this.tableOptions) {
351
+ return this._defaultTableValues.page;
352
+ }
353
+ return this.tableOptions.value.page;
354
+ }
355
+ get quickFilter() {
356
+ if (!this.tableOptions) {
357
+ return this._defaultTableValues.quickFilter;
358
+ }
359
+ return this.tableOptions.value.quickFilter;
360
+ }
361
+ set quickFilter(quickFilter) {
362
+ this.tableValues = {
363
+ quickFilter,
364
+ };
365
+ }
366
+ get query() {
367
+ if (!this.tableOptions) {
368
+ return this._defaultTableValues.query;
369
+ }
370
+ return this.tableOptions.value.query;
371
+ }
372
+ set query(query) {
373
+ this.tableValues = {
374
+ query,
375
+ };
376
+ }
377
+ get selectedRows() {
378
+ if (!this.tableOptions) {
379
+ return this._defaultTableValues.selectedRows;
380
+ }
381
+ return this.tableOptions.value.selectedRows;
382
+ }
383
+ set selectedRows(selectedRows) {
384
+ this.tableValues = {
385
+ selectedRows,
386
+ };
387
+ }
388
+ // setter
389
+ get parsedDefaultTableValues() {
390
+ var _a;
391
+ return Object.assign(Object.assign(Object.assign({}, this._defaultTableValues), this.defaultTableValues), { pageSize: ((_a = this.defaultTableValues) === null || _a === void 0 ? void 0 : _a.pageSize) || this.pageSizeDefault });
392
+ }
393
+ get tableValues() {
394
+ var _a, _b;
395
+ return (_b = (_a = this.tableOptions) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : {};
396
+ }
397
+ set tableValues(values) {
398
+ this._setTableValues(Object.assign(Object.assign({}, this.tableValues), values));
399
+ }
400
+ ngOnInit() {
401
+ this.tableOptions = new FormControl({
402
+ pageSize: this.parsedDefaultTableValues.pageSize,
403
+ page: this.parsedDefaultTableValues.page,
404
+ quickFilter: this.parsedDefaultTableValues.quickFilter,
405
+ query: this.parsedDefaultTableValues.query,
406
+ selectedRows: this.parsedDefaultTableValues.selectedRows,
407
+ });
408
+ this.tableOptions.valueChanges
409
+ .pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) => this._getChanges(previous, next)), filter((changes) => !!changes), debounce((changes) => {
410
+ var _a;
411
+ if ((changes === null || changes === void 0 ? void 0 : changes.query) && ((_a = Object.keys(changes)) === null || _a === void 0 ? void 0 : _a.length) === 1) {
412
+ return timer(300);
413
+ }
414
+ return timer(0);
415
+ }), filter((changes) => {
416
+ var _a;
417
+ return !((changes === null || changes === void 0 ? void 0 : changes.selected) &&
418
+ ((_a = Object.keys(changes)) === null || _a === void 0 ? void 0 : _a.length) === 1);
419
+ }))
420
+ .subscribe((changes) => {
421
+ if (changes === null || changes === void 0 ? void 0 : changes.page) {
422
+ this._refresh();
423
+ return;
424
+ }
425
+ this._resetPageOrRefresh();
426
+ });
427
+ this._refresh();
428
+ }
429
+ resetTable(emitEvent = true, forceRefresh = null) {
430
+ this._setTableValues(this.parsedDefaultTableValues, emitEvent);
431
+ if (forceRefresh) {
432
+ this._refresh();
433
+ }
434
+ }
435
+ _refresh() {
436
+ console.warn('Not implemented');
437
+ }
438
+ _resetPageOrRefresh() {
439
+ var _a;
440
+ if (!this.tableOptions) {
441
+ return;
442
+ }
443
+ if (this.page !== 1) {
444
+ (_a = this.tableOptions.get('page')) === null || _a === void 0 ? void 0 : _a.setValue(1);
445
+ return;
446
+ }
447
+ this._refresh();
448
+ }
449
+ _setTableValues(data, emitEvent = true) {
450
+ var _a;
451
+ (_a = this.tableOptions) === null || _a === void 0 ? void 0 : _a.setValue(Object.assign(Object.assign({}, this.tableOptions.value), data), { emitEvent });
452
+ }
453
+ _getChanges(previous, next) {
454
+ const changes = {};
455
+ let key;
456
+ for (key in next) {
457
+ if (key === 'selectedRows') {
458
+ continue;
459
+ }
460
+ if (JSON.stringify(previous[key]) !== JSON.stringify(next[key])) {
461
+ // @ts-ignore
462
+ changes[key] = next[key];
463
+ }
464
+ }
465
+ return Object.keys(changes).length ? changes : null;
466
+ }
467
+ };
468
+ BaseTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
469
+ BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseTableComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true });
470
+ BaseTableComponent = __decorate([
471
+ UntilDestroy({ checkProperties: true })
472
+ ], BaseTableComponent);
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseTableComponent, decorators: [{
474
+ type: Component,
475
+ args: [{
476
+ template: ``,
477
+ }]
478
+ }], ctorParameters: function () { return []; } });
5
479
 
6
480
  /* eslint-disable */
7
481
  const proxyInputs = (Cmp, inputs) => {
@@ -54,6 +528,31 @@ function ProxyCmp(opts) {
54
528
  return decorator;
55
529
  }
56
530
 
531
+ let PAccordion = class PAccordion {
532
+ constructor(c, r, z) {
533
+ this.z = z;
534
+ c.detach();
535
+ this.el = r.nativeElement;
536
+ proxyOutputs(this, this.el, ['isOpen']);
537
+ }
538
+ };
539
+ PAccordion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
540
+ PAccordion.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PAccordion, selector: "p-accordion", inputs: { closeable: "closeable", header: "header", open: "open", openable: "openable" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
541
+ PAccordion = __decorate([
542
+ ProxyCmp({
543
+ defineCustomElementFn: undefined,
544
+ inputs: ['closeable', 'header', 'open', 'openable']
545
+ })
546
+ ], PAccordion);
547
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAccordion, decorators: [{
548
+ type: Component,
549
+ args: [{
550
+ selector: 'p-accordion',
551
+ changeDetection: ChangeDetectionStrategy.OnPush,
552
+ template: '<ng-content></ng-content>',
553
+ inputs: ['closeable', 'header', 'open', 'openable']
554
+ }]
555
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
57
556
  let PAvatar = class PAvatar {
58
557
  constructor(c, r, z) {
59
558
  this.z = z;
@@ -61,15 +560,15 @@ let PAvatar = class PAvatar {
61
560
  this.el = r.nativeElement;
62
561
  }
63
562
  };
64
- PAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
65
- PAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PAvatar, selector: "p-avatar", inputs: { defaultImage: "defaultImage", size: "size", src: "src", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
563
+ PAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
564
+ PAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PAvatar, selector: "p-avatar", inputs: { defaultImage: "defaultImage", size: "size", src: "src", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
66
565
  PAvatar = __decorate([
67
566
  ProxyCmp({
68
567
  defineCustomElementFn: undefined,
69
568
  inputs: ['defaultImage', 'size', 'src', 'variant']
70
569
  })
71
570
  ], PAvatar);
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PAvatar, decorators: [{
571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAvatar, decorators: [{
73
572
  type: Component,
74
573
  args: [{
75
574
  selector: 'p-avatar',
@@ -78,6 +577,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
78
577
  inputs: ['defaultImage', 'size', 'src', 'variant']
79
578
  }]
80
579
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
580
+ let PAvatarGroup = class PAvatarGroup {
581
+ constructor(c, r, z) {
582
+ this.z = z;
583
+ c.detach();
584
+ this.el = r.nativeElement;
585
+ }
586
+ };
587
+ PAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAvatarGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
588
+ PAvatarGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PAvatarGroup, selector: "p-avatar-group", inputs: { extra: "extra" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
589
+ PAvatarGroup = __decorate([
590
+ ProxyCmp({
591
+ defineCustomElementFn: undefined,
592
+ inputs: ['extra']
593
+ })
594
+ ], PAvatarGroup);
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PAvatarGroup, decorators: [{
596
+ type: Component,
597
+ args: [{
598
+ selector: 'p-avatar-group',
599
+ changeDetection: ChangeDetectionStrategy.OnPush,
600
+ template: '<ng-content></ng-content>',
601
+ inputs: ['extra']
602
+ }]
603
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
81
604
  let PButton = class PButton {
82
605
  constructor(c, r, z) {
83
606
  this.z = z;
@@ -86,305 +609,2150 @@ let PButton = class PButton {
86
609
  proxyOutputs(this, this.el, ['onClick']);
87
610
  }
88
611
  };
89
- PButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
90
- PButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PButton, selector: "p-button", inputs: { disabled: "disabled", href: "href", icon: "icon", iconFlip: "iconFlip", iconPosition: "iconPosition", iconRotate: "iconRotate", loading: "loading", size: "size", target: "target", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
612
+ PButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
613
+ PButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PButton, selector: "p-button", inputs: { chevron: "chevron", chevronPosition: "chevronPosition", disabled: "disabled", href: "href", icon: "icon", iconFlip: "iconFlip", iconOnly: "iconOnly", iconPosition: "iconPosition", iconRotate: "iconRotate", inheritText: "inheritText", loading: "loading", size: "size", target: "target", variant: "variant", width: "width" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
91
614
  PButton = __decorate([
92
615
  ProxyCmp({
93
616
  defineCustomElementFn: undefined,
94
- inputs: ['disabled', 'href', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'loading', 'size', 'target', 'variant']
617
+ inputs: ['chevron', 'chevronPosition', 'disabled', 'href', 'icon', 'iconFlip', 'iconOnly', 'iconPosition', 'iconRotate', 'inheritText', 'loading', 'size', 'target', 'variant', 'width']
95
618
  })
96
619
  ], PButton);
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PButton, decorators: [{
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PButton, decorators: [{
98
621
  type: Component,
99
622
  args: [{
100
623
  selector: 'p-button',
101
624
  changeDetection: ChangeDetectionStrategy.OnPush,
102
625
  template: '<ng-content></ng-content>',
103
- inputs: ['disabled', 'href', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'loading', 'size', 'target', 'variant']
626
+ inputs: ['chevron', 'chevronPosition', 'disabled', 'href', 'icon', 'iconFlip', 'iconOnly', 'iconPosition', 'iconRotate', 'inheritText', 'loading', 'size', 'target', 'variant', 'width']
104
627
  }]
105
628
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
106
- let PCounter = class PCounter {
629
+ let PCardBody = class PCardBody {
107
630
  constructor(c, r, z) {
108
631
  this.z = z;
109
632
  c.detach();
110
633
  this.el = r.nativeElement;
111
634
  }
112
635
  };
113
- PCounter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
114
- PCounter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PCounter, selector: "p-counter", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
115
- PCounter = __decorate([
636
+ PCardBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
637
+ PCardBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PCardBody, selector: "p-card-body", inputs: { inheritText: "inheritText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
638
+ PCardBody = __decorate([
116
639
  ProxyCmp({
117
- defineCustomElementFn: undefined
640
+ defineCustomElementFn: undefined,
641
+ inputs: ['inheritText']
118
642
  })
119
- ], PCounter);
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PCounter, decorators: [{
643
+ ], PCardBody);
644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardBody, decorators: [{
121
645
  type: Component,
122
646
  args: [{
123
- selector: 'p-counter',
647
+ selector: 'p-card-body',
124
648
  changeDetection: ChangeDetectionStrategy.OnPush,
125
- template: '<ng-content></ng-content>'
649
+ template: '<ng-content></ng-content>',
650
+ inputs: ['inheritText']
126
651
  }]
127
652
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
128
- let PDivider = class PDivider {
653
+ let PCardContainer = class PCardContainer {
129
654
  constructor(c, r, z) {
130
655
  this.z = z;
131
656
  c.detach();
132
657
  this.el = r.nativeElement;
133
658
  }
134
659
  };
135
- PDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDivider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
136
- PDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PDivider, selector: "p-divider", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
137
- PDivider = __decorate([
660
+ PCardContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
661
+ PCardContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PCardContainer, selector: "p-card-container", inputs: { hoverable: "hoverable", shadow: "shadow" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
662
+ PCardContainer = __decorate([
138
663
  ProxyCmp({
139
- defineCustomElementFn: undefined
664
+ defineCustomElementFn: undefined,
665
+ inputs: ['hoverable', 'shadow']
140
666
  })
141
- ], PDivider);
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDivider, decorators: [{
667
+ ], PCardContainer);
668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardContainer, decorators: [{
143
669
  type: Component,
144
670
  args: [{
145
- selector: 'p-divider',
671
+ selector: 'p-card-container',
146
672
  changeDetection: ChangeDetectionStrategy.OnPush,
147
- template: '<ng-content></ng-content>'
673
+ template: '<ng-content></ng-content>',
674
+ inputs: ['hoverable', 'shadow']
148
675
  }]
149
676
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
150
- let PHelper = class PHelper {
677
+ let PCardHeader = class PCardHeader {
151
678
  constructor(c, r, z) {
152
679
  this.z = z;
153
680
  c.detach();
154
681
  this.el = r.nativeElement;
155
682
  }
156
683
  };
157
- PHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PHelper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
158
- PHelper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PHelper, selector: "p-helper", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
159
- PHelper = __decorate([
684
+ PCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
685
+ PCardHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PCardHeader, selector: "p-card-header", inputs: { arrow: "arrow", header: "header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
686
+ PCardHeader = __decorate([
160
687
  ProxyCmp({
161
- defineCustomElementFn: undefined
688
+ defineCustomElementFn: undefined,
689
+ inputs: ['arrow', 'header']
162
690
  })
163
- ], PHelper);
164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PHelper, decorators: [{
691
+ ], PCardHeader);
692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCardHeader, decorators: [{
165
693
  type: Component,
166
694
  args: [{
167
- selector: 'p-helper',
695
+ selector: 'p-card-header',
168
696
  changeDetection: ChangeDetectionStrategy.OnPush,
169
- template: '<ng-content></ng-content>'
697
+ template: '<ng-content></ng-content>',
698
+ inputs: ['arrow', 'header']
170
699
  }]
171
700
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
172
- let PIcon = class PIcon {
701
+ let PContentSlider = class PContentSlider {
173
702
  constructor(c, r, z) {
174
703
  this.z = z;
175
704
  c.detach();
176
705
  this.el = r.nativeElement;
177
706
  }
178
707
  };
179
- PIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
180
- PIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PIcon, selector: "p-icon", inputs: { flip: "flip", rotate: "rotate", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
181
- PIcon = __decorate([
708
+ PContentSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PContentSlider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
709
+ PContentSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PContentSlider, selector: "p-content-slider", inputs: { disableAutoCenter: "disableAutoCenter", disableDrag: "disableDrag", disableIndicatorClick: "disableIndicatorClick", hideMobileIndicator: "hideMobileIndicator" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
710
+ PContentSlider = __decorate([
182
711
  ProxyCmp({
183
712
  defineCustomElementFn: undefined,
184
- inputs: ['flip', 'rotate', 'size', 'variant']
713
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator']
185
714
  })
186
- ], PIcon);
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIcon, decorators: [{
715
+ ], PContentSlider);
716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PContentSlider, decorators: [{
188
717
  type: Component,
189
718
  args: [{
190
- selector: 'p-icon',
719
+ selector: 'p-content-slider',
191
720
  changeDetection: ChangeDetectionStrategy.OnPush,
192
721
  template: '<ng-content></ng-content>',
193
- inputs: ['flip', 'rotate', 'size', 'variant']
722
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator']
194
723
  }]
195
724
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
196
- let PIllustration = class PIllustration {
725
+ let PCounter = class PCounter {
197
726
  constructor(c, r, z) {
198
727
  this.z = z;
199
728
  c.detach();
200
729
  this.el = r.nativeElement;
201
730
  }
202
731
  };
203
- PIllustration.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIllustration, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
204
- PIllustration.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PIllustration, selector: "p-illustration", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
205
- PIllustration = __decorate([
732
+ PCounter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
733
+ PCounter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PCounter, selector: "p-counter", inputs: { size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
734
+ PCounter = __decorate([
206
735
  ProxyCmp({
207
736
  defineCustomElementFn: undefined,
208
- inputs: ['variant']
737
+ inputs: ['size', 'variant']
209
738
  })
210
- ], PIllustration);
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIllustration, decorators: [{
739
+ ], PCounter);
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PCounter, decorators: [{
212
741
  type: Component,
213
742
  args: [{
214
- selector: 'p-illustration',
743
+ selector: 'p-counter',
215
744
  changeDetection: ChangeDetectionStrategy.OnPush,
216
745
  template: '<ng-content></ng-content>',
217
- inputs: ['variant']
746
+ inputs: ['size', 'variant']
218
747
  }]
219
748
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
220
- let PInfoPanel = class PInfoPanel {
749
+ let PDivider = class PDivider {
221
750
  constructor(c, r, z) {
222
751
  this.z = z;
223
752
  c.detach();
224
753
  this.el = r.nativeElement;
225
754
  }
226
755
  };
227
- PInfoPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PInfoPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
228
- PInfoPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PInfoPanel, selector: "p-info-panel", inputs: { closeable: "closeable", content: "content", header: "header", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
229
- PInfoPanel = __decorate([
756
+ PDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDivider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
757
+ PDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PDivider, selector: "p-divider", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
758
+ PDivider = __decorate([
759
+ ProxyCmp({
760
+ defineCustomElementFn: undefined
761
+ })
762
+ ], PDivider);
763
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDivider, decorators: [{
764
+ type: Component,
765
+ args: [{
766
+ selector: 'p-divider',
767
+ changeDetection: ChangeDetectionStrategy.OnPush,
768
+ template: '<ng-content></ng-content>'
769
+ }]
770
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
771
+ let PDropdown = class PDropdown {
772
+ constructor(c, r, z) {
773
+ this.z = z;
774
+ c.detach();
775
+ this.el = r.nativeElement;
776
+ proxyOutputs(this, this.el, ['isOpen']);
777
+ }
778
+ };
779
+ PDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
780
+ PDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PDropdown, selector: "p-dropdown", inputs: { calculateWidth: "calculateWidth", chevronDirection: "chevronDirection", chevronPosition: "chevronPosition", disableTriggerClick: "disableTriggerClick", insideClick: "insideClick", placement: "placement", show: "show", strategy: "strategy" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
781
+ PDropdown = __decorate([
230
782
  ProxyCmp({
231
783
  defineCustomElementFn: undefined,
232
- inputs: ['closeable', 'content', 'header', 'variant']
784
+ inputs: ['calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy']
233
785
  })
234
- ], PInfoPanel);
235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PInfoPanel, decorators: [{
786
+ ], PDropdown);
787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdown, decorators: [{
236
788
  type: Component,
237
789
  args: [{
238
- selector: 'p-info-panel',
790
+ selector: 'p-dropdown',
239
791
  changeDetection: ChangeDetectionStrategy.OnPush,
240
792
  template: '<ng-content></ng-content>',
241
- inputs: ['closeable', 'content', 'header', 'variant']
793
+ inputs: ['calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy']
242
794
  }]
243
795
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
244
- let PLoader = class PLoader {
796
+ let PDropdownMenuContainer = class PDropdownMenuContainer {
245
797
  constructor(c, r, z) {
246
798
  this.z = z;
247
799
  c.detach();
248
800
  this.el = r.nativeElement;
249
801
  }
250
802
  };
251
- PLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PLoader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
252
- PLoader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PLoader, selector: "p-loader", inputs: { color: "color", modalDescription: "modalDescription", modalTitle: "modalTitle", show: "show", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
253
- PLoader = __decorate([
803
+ PDropdownMenuContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdownMenuContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
804
+ PDropdownMenuContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PDropdownMenuContainer, selector: "p-dropdown-menu-container", inputs: { maxWidth: "maxWidth" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
805
+ PDropdownMenuContainer = __decorate([
254
806
  ProxyCmp({
255
807
  defineCustomElementFn: undefined,
256
- inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
808
+ inputs: ['maxWidth']
257
809
  })
258
- ], PLoader);
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PLoader, decorators: [{
810
+ ], PDropdownMenuContainer);
811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdownMenuContainer, decorators: [{
260
812
  type: Component,
261
813
  args: [{
262
- selector: 'p-loader',
814
+ selector: 'p-dropdown-menu-container',
263
815
  changeDetection: ChangeDetectionStrategy.OnPush,
264
816
  template: '<ng-content></ng-content>',
265
- inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
817
+ inputs: ['maxWidth']
266
818
  }]
267
819
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
268
- let PNavigationItem = class PNavigationItem {
820
+ let PDropdownMenuItem = class PDropdownMenuItem {
269
821
  constructor(c, r, z) {
270
822
  this.z = z;
271
823
  c.detach();
272
824
  this.el = r.nativeElement;
273
825
  }
274
826
  };
275
- PNavigationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PNavigationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
276
- PNavigationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PNavigationItem, selector: "p-navigation-item", inputs: { active: "active", counter: "counter", href: "href", icon: "icon", target: "target" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
277
- PNavigationItem = __decorate([
827
+ PDropdownMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdownMenuItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
828
+ PDropdownMenuItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PDropdownMenuItem, selector: "p-dropdown-menu-item", inputs: { active: "active", enableHover: "enableHover", icon: "icon" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
829
+ PDropdownMenuItem = __decorate([
278
830
  ProxyCmp({
279
831
  defineCustomElementFn: undefined,
280
- inputs: ['active', 'counter', 'href', 'icon', 'target']
832
+ inputs: ['active', 'enableHover', 'icon']
281
833
  })
282
- ], PNavigationItem);
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PNavigationItem, decorators: [{
834
+ ], PDropdownMenuItem);
835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PDropdownMenuItem, decorators: [{
284
836
  type: Component,
285
837
  args: [{
286
- selector: 'p-navigation-item',
838
+ selector: 'p-dropdown-menu-item',
287
839
  changeDetection: ChangeDetectionStrategy.OnPush,
288
840
  template: '<ng-content></ng-content>',
289
- inputs: ['active', 'counter', 'href', 'icon', 'target']
841
+ inputs: ['active', 'enableHover', 'icon']
290
842
  }]
291
843
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
292
- let PPagination = class PPagination {
844
+ let PHelper = class PHelper {
293
845
  constructor(c, r, z) {
294
846
  this.z = z;
295
847
  c.detach();
296
848
  this.el = r.nativeElement;
297
- proxyOutputs(this, this.el, ['valueChange']);
298
849
  }
299
850
  };
300
- PPagination.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
301
- PPagination.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PPagination, selector: "p-pagination", inputs: { pageSize: "pageSize", total: "total", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
302
- PPagination = __decorate([
851
+ PHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PHelper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
852
+ PHelper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PHelper, selector: "p-helper", inputs: { placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
853
+ PHelper = __decorate([
303
854
  ProxyCmp({
304
855
  defineCustomElementFn: undefined,
305
- inputs: ['pageSize', 'total', 'value']
856
+ inputs: ['placement']
306
857
  })
307
- ], PPagination);
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPagination, decorators: [{
858
+ ], PHelper);
859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PHelper, decorators: [{
309
860
  type: Component,
310
861
  args: [{
311
- selector: 'p-pagination',
862
+ selector: 'p-helper',
312
863
  changeDetection: ChangeDetectionStrategy.OnPush,
313
864
  template: '<ng-content></ng-content>',
314
- inputs: ['pageSize', 'total', 'value']
865
+ inputs: ['placement']
315
866
  }]
316
867
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
317
- let PPaginationItem = class PPaginationItem {
868
+ let PIcon = class PIcon {
318
869
  constructor(c, r, z) {
319
870
  this.z = z;
320
871
  c.detach();
321
872
  this.el = r.nativeElement;
322
873
  }
323
874
  };
324
- PPaginationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPaginationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
325
- PPaginationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PPaginationItem, selector: "p-pagination-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
326
- PPaginationItem = __decorate([
875
+ PIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
876
+ PIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PIcon, selector: "p-icon", inputs: { flip: "flip", rotate: "rotate", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
877
+ PIcon = __decorate([
327
878
  ProxyCmp({
328
879
  defineCustomElementFn: undefined,
329
- inputs: ['active']
880
+ inputs: ['flip', 'rotate', 'size', 'variant']
330
881
  })
331
- ], PPaginationItem);
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPaginationItem, decorators: [{
882
+ ], PIcon);
883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PIcon, decorators: [{
333
884
  type: Component,
334
885
  args: [{
335
- selector: 'p-pagination-item',
886
+ selector: 'p-icon',
336
887
  changeDetection: ChangeDetectionStrategy.OnPush,
337
888
  template: '<ng-content></ng-content>',
338
- inputs: ['active']
889
+ inputs: ['flip', 'rotate', 'size', 'variant']
339
890
  }]
340
891
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
341
- let PTooltip = class PTooltip {
892
+ let PIllustration = class PIllustration {
342
893
  constructor(c, r, z) {
343
894
  this.z = z;
344
895
  c.detach();
345
896
  this.el = r.nativeElement;
346
897
  }
347
898
  };
348
- PTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
349
- PTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PTooltip, selector: "p-tooltip", inputs: { canManuallyClose: "canManuallyClose", placement: "placement", popover: "popover", show: "show", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
350
- PTooltip = __decorate([
899
+ PIllustration.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PIllustration, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
900
+ PIllustration.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PIllustration, selector: "p-illustration", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
901
+ PIllustration = __decorate([
351
902
  ProxyCmp({
352
903
  defineCustomElementFn: undefined,
353
- inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'variant']
904
+ inputs: ['variant']
354
905
  })
355
- ], PTooltip);
356
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PTooltip, decorators: [{
906
+ ], PIllustration);
907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PIllustration, decorators: [{
357
908
  type: Component,
358
909
  args: [{
359
- selector: 'p-tooltip',
910
+ selector: 'p-illustration',
360
911
  changeDetection: ChangeDetectionStrategy.OnPush,
361
912
  template: '<ng-content></ng-content>',
362
- inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'variant']
913
+ inputs: ['variant']
363
914
  }]
364
915
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
916
+ let PInfoPanel = class PInfoPanel {
917
+ constructor(c, r, z) {
918
+ this.z = z;
919
+ c.detach();
920
+ this.el = r.nativeElement;
921
+ }
922
+ };
923
+ PInfoPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PInfoPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
924
+ PInfoPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PInfoPanel, selector: "p-info-panel", inputs: { closeable: "closeable", content: "content", header: "header", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
925
+ PInfoPanel = __decorate([
926
+ ProxyCmp({
927
+ defineCustomElementFn: undefined,
928
+ inputs: ['closeable', 'content', 'header', 'variant']
929
+ })
930
+ ], PInfoPanel);
931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PInfoPanel, decorators: [{
932
+ type: Component,
933
+ args: [{
934
+ selector: 'p-info-panel',
935
+ changeDetection: ChangeDetectionStrategy.OnPush,
936
+ template: '<ng-content></ng-content>',
937
+ inputs: ['closeable', 'content', 'header', 'variant']
938
+ }]
939
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
940
+ let PInputGroup = class PInputGroup {
941
+ constructor(c, r, z) {
942
+ this.z = z;
943
+ c.detach();
944
+ this.el = r.nativeElement;
945
+ }
946
+ };
947
+ PInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PInputGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
948
+ PInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PInputGroup, selector: "p-input-group", inputs: { disabled: "disabled", error: "error", focused: "focused", helper: "helper", icon: "icon", iconFlip: "iconFlip", iconPosition: "iconPosition", iconRotate: "iconRotate", label: "label", prefix: "prefix", size: "size", suffix: "suffix" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
949
+ PInputGroup = __decorate([
950
+ ProxyCmp({
951
+ defineCustomElementFn: undefined,
952
+ inputs: ['disabled', 'error', 'focused', 'helper', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'label', 'prefix', 'size', 'suffix']
953
+ })
954
+ ], PInputGroup);
955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PInputGroup, decorators: [{
956
+ type: Component,
957
+ args: [{
958
+ selector: 'p-input-group',
959
+ changeDetection: ChangeDetectionStrategy.OnPush,
960
+ template: '<ng-content></ng-content>',
961
+ inputs: ['disabled', 'error', 'focused', 'helper', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'label', 'prefix', 'size', 'suffix']
962
+ }]
963
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
964
+ let PLabel = class PLabel {
965
+ constructor(c, r, z) {
966
+ this.z = z;
967
+ c.detach();
968
+ this.el = r.nativeElement;
969
+ }
970
+ };
971
+ PLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLabel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
972
+ PLabel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PLabel, selector: "p-label", inputs: { circle: "circle", icon: "icon", iconFlip: "iconFlip", iconOnly: "iconOnly", iconRotate: "iconRotate", mobileIcon: "mobileIcon", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
973
+ PLabel = __decorate([
974
+ ProxyCmp({
975
+ defineCustomElementFn: undefined,
976
+ inputs: ['circle', 'icon', 'iconFlip', 'iconOnly', 'iconRotate', 'mobileIcon', 'size', 'variant']
977
+ })
978
+ ], PLabel);
979
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLabel, decorators: [{
980
+ type: Component,
981
+ args: [{
982
+ selector: 'p-label',
983
+ changeDetection: ChangeDetectionStrategy.OnPush,
984
+ template: '<ng-content></ng-content>',
985
+ inputs: ['circle', 'icon', 'iconFlip', 'iconOnly', 'iconRotate', 'mobileIcon', 'size', 'variant']
986
+ }]
987
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
988
+ let PLayout = class PLayout {
989
+ constructor(c, r, z) {
990
+ this.z = z;
991
+ c.detach();
992
+ this.el = r.nativeElement;
993
+ }
994
+ };
995
+ PLayout.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLayout, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
996
+ PLayout.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PLayout, selector: "p-layout", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
997
+ PLayout = __decorate([
998
+ ProxyCmp({
999
+ defineCustomElementFn: undefined,
1000
+ inputs: ['variant']
1001
+ })
1002
+ ], PLayout);
1003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLayout, decorators: [{
1004
+ type: Component,
1005
+ args: [{
1006
+ selector: 'p-layout',
1007
+ changeDetection: ChangeDetectionStrategy.OnPush,
1008
+ template: '<ng-content></ng-content>',
1009
+ inputs: ['variant']
1010
+ }]
1011
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1012
+ let PLoader = class PLoader {
1013
+ constructor(c, r, z) {
1014
+ this.z = z;
1015
+ c.detach();
1016
+ this.el = r.nativeElement;
1017
+ }
1018
+ };
1019
+ PLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLoader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1020
+ PLoader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PLoader, selector: "p-loader", inputs: { color: "color", modalDescription: "modalDescription", modalTitle: "modalTitle", show: "show", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1021
+ PLoader = __decorate([
1022
+ ProxyCmp({
1023
+ defineCustomElementFn: undefined,
1024
+ inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
1025
+ })
1026
+ ], PLoader);
1027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PLoader, decorators: [{
1028
+ type: Component,
1029
+ args: [{
1030
+ selector: 'p-loader',
1031
+ changeDetection: ChangeDetectionStrategy.OnPush,
1032
+ template: '<ng-content></ng-content>',
1033
+ inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
1034
+ }]
1035
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1036
+ let PModal = class PModal {
1037
+ constructor(c, r, z) {
1038
+ this.z = z;
1039
+ c.detach();
1040
+ this.el = r.nativeElement;
1041
+ proxyOutputs(this, this.el, ['close']);
1042
+ }
1043
+ };
1044
+ PModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1045
+ PModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModal, selector: "p-modal", inputs: { header: "header", show: "show", showMobileClose: "showMobileClose", showMobileFooter: "showMobileFooter", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1046
+ PModal = __decorate([
1047
+ ProxyCmp({
1048
+ defineCustomElementFn: undefined,
1049
+ inputs: ['header', 'show', 'showMobileClose', 'showMobileFooter', 'size', 'variant']
1050
+ })
1051
+ ], PModal);
1052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModal, decorators: [{
1053
+ type: Component,
1054
+ args: [{
1055
+ selector: 'p-modal',
1056
+ changeDetection: ChangeDetectionStrategy.OnPush,
1057
+ template: '<ng-content></ng-content>',
1058
+ inputs: ['header', 'show', 'showMobileClose', 'showMobileFooter', 'size', 'variant']
1059
+ }]
1060
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1061
+ let PModalBackdrop = class PModalBackdrop {
1062
+ constructor(c, r, z) {
1063
+ this.z = z;
1064
+ c.detach();
1065
+ this.el = r.nativeElement;
1066
+ }
1067
+ };
1068
+ PModalBackdrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalBackdrop, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1069
+ PModalBackdrop.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModalBackdrop, selector: "p-modal-backdrop", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1070
+ PModalBackdrop = __decorate([
1071
+ ProxyCmp({
1072
+ defineCustomElementFn: undefined
1073
+ })
1074
+ ], PModalBackdrop);
1075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalBackdrop, decorators: [{
1076
+ type: Component,
1077
+ args: [{
1078
+ selector: 'p-modal-backdrop',
1079
+ changeDetection: ChangeDetectionStrategy.OnPush,
1080
+ template: '<ng-content></ng-content>'
1081
+ }]
1082
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1083
+ let PModalBody = class PModalBody {
1084
+ constructor(c, r, z) {
1085
+ this.z = z;
1086
+ c.detach();
1087
+ this.el = r.nativeElement;
1088
+ }
1089
+ };
1090
+ PModalBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1091
+ PModalBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModalBody, selector: "p-modal-body", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1092
+ PModalBody = __decorate([
1093
+ ProxyCmp({
1094
+ defineCustomElementFn: undefined,
1095
+ inputs: ['variant']
1096
+ })
1097
+ ], PModalBody);
1098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalBody, decorators: [{
1099
+ type: Component,
1100
+ args: [{
1101
+ selector: 'p-modal-body',
1102
+ changeDetection: ChangeDetectionStrategy.OnPush,
1103
+ template: '<ng-content></ng-content>',
1104
+ inputs: ['variant']
1105
+ }]
1106
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1107
+ let PModalContainer = class PModalContainer {
1108
+ constructor(c, r, z) {
1109
+ this.z = z;
1110
+ c.detach();
1111
+ this.el = r.nativeElement;
1112
+ }
1113
+ };
1114
+ PModalContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1115
+ PModalContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModalContainer, selector: "p-modal-container", inputs: { size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1116
+ PModalContainer = __decorate([
1117
+ ProxyCmp({
1118
+ defineCustomElementFn: undefined,
1119
+ inputs: ['size']
1120
+ })
1121
+ ], PModalContainer);
1122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalContainer, decorators: [{
1123
+ type: Component,
1124
+ args: [{
1125
+ selector: 'p-modal-container',
1126
+ changeDetection: ChangeDetectionStrategy.OnPush,
1127
+ template: '<ng-content></ng-content>',
1128
+ inputs: ['size']
1129
+ }]
1130
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1131
+ let PModalFooter = class PModalFooter {
1132
+ constructor(c, r, z) {
1133
+ this.z = z;
1134
+ c.detach();
1135
+ this.el = r.nativeElement;
1136
+ }
1137
+ };
1138
+ PModalFooter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalFooter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1139
+ PModalFooter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModalFooter, selector: "p-modal-footer", inputs: { hideOnMobile: "hideOnMobile" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1140
+ PModalFooter = __decorate([
1141
+ ProxyCmp({
1142
+ defineCustomElementFn: undefined,
1143
+ inputs: ['hideOnMobile']
1144
+ })
1145
+ ], PModalFooter);
1146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalFooter, decorators: [{
1147
+ type: Component,
1148
+ args: [{
1149
+ selector: 'p-modal-footer',
1150
+ changeDetection: ChangeDetectionStrategy.OnPush,
1151
+ template: '<ng-content></ng-content>',
1152
+ inputs: ['hideOnMobile']
1153
+ }]
1154
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1155
+ let PModalHeader = class PModalHeader {
1156
+ constructor(c, r, z) {
1157
+ this.z = z;
1158
+ c.detach();
1159
+ this.el = r.nativeElement;
1160
+ proxyOutputs(this, this.el, ['close']);
1161
+ }
1162
+ };
1163
+ PModalHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1164
+ PModalHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PModalHeader, selector: "p-modal-header", inputs: { showMobileClose: "showMobileClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1165
+ PModalHeader = __decorate([
1166
+ ProxyCmp({
1167
+ defineCustomElementFn: undefined,
1168
+ inputs: ['showMobileClose']
1169
+ })
1170
+ ], PModalHeader);
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PModalHeader, decorators: [{
1172
+ type: Component,
1173
+ args: [{
1174
+ selector: 'p-modal-header',
1175
+ changeDetection: ChangeDetectionStrategy.OnPush,
1176
+ template: '<ng-content></ng-content>',
1177
+ inputs: ['showMobileClose']
1178
+ }]
1179
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1180
+ let PNavbar = class PNavbar {
1181
+ constructor(c, r, z) {
1182
+ this.z = z;
1183
+ c.detach();
1184
+ this.el = r.nativeElement;
1185
+ }
1186
+ };
1187
+ PNavbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PNavbar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1188
+ PNavbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PNavbar, selector: "p-navbar", inputs: { closeText: "closeText", menuText: "menuText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1189
+ PNavbar = __decorate([
1190
+ ProxyCmp({
1191
+ defineCustomElementFn: undefined,
1192
+ inputs: ['closeText', 'menuText']
1193
+ })
1194
+ ], PNavbar);
1195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PNavbar, decorators: [{
1196
+ type: Component,
1197
+ args: [{
1198
+ selector: 'p-navbar',
1199
+ changeDetection: ChangeDetectionStrategy.OnPush,
1200
+ template: '<ng-content></ng-content>',
1201
+ inputs: ['closeText', 'menuText']
1202
+ }]
1203
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1204
+ let PNavigationItem = class PNavigationItem {
1205
+ constructor(c, r, z) {
1206
+ this.z = z;
1207
+ c.detach();
1208
+ this.el = r.nativeElement;
1209
+ }
1210
+ };
1211
+ PNavigationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PNavigationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1212
+ PNavigationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PNavigationItem, selector: "p-navigation-item", inputs: { active: "active", counter: "counter", href: "href", icon: "icon", target: "target" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1213
+ PNavigationItem = __decorate([
1214
+ ProxyCmp({
1215
+ defineCustomElementFn: undefined,
1216
+ inputs: ['active', 'counter', 'href', 'icon', 'target']
1217
+ })
1218
+ ], PNavigationItem);
1219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PNavigationItem, decorators: [{
1220
+ type: Component,
1221
+ args: [{
1222
+ selector: 'p-navigation-item',
1223
+ changeDetection: ChangeDetectionStrategy.OnPush,
1224
+ template: '<ng-content></ng-content>',
1225
+ inputs: ['active', 'counter', 'href', 'icon', 'target']
1226
+ }]
1227
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1228
+ let PPageSizeSelect = class PPageSizeSelect {
1229
+ constructor(c, r, z) {
1230
+ this.z = z;
1231
+ c.detach();
1232
+ this.el = r.nativeElement;
1233
+ proxyOutputs(this, this.el, ['sizeChange']);
1234
+ }
1235
+ };
1236
+ PPageSizeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPageSizeSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1237
+ PPageSizeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PPageSizeSelect, selector: "p-page-size-select", inputs: { buttonSize: "buttonSize", buttonTemplate: "buttonTemplate", chevronPosition: "chevronPosition", hidden: "hidden", itemTemplate: "itemTemplate", size: "size", sizeOptions: "sizeOptions" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1238
+ PPageSizeSelect = __decorate([
1239
+ ProxyCmp({
1240
+ defineCustomElementFn: undefined,
1241
+ inputs: ['buttonSize', 'buttonTemplate', 'chevronPosition', 'hidden', 'itemTemplate', 'size', 'sizeOptions']
1242
+ })
1243
+ ], PPageSizeSelect);
1244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPageSizeSelect, decorators: [{
1245
+ type: Component,
1246
+ args: [{
1247
+ selector: 'p-page-size-select',
1248
+ changeDetection: ChangeDetectionStrategy.OnPush,
1249
+ template: '<ng-content></ng-content>',
1250
+ inputs: ['buttonSize', 'buttonTemplate', 'chevronPosition', 'hidden', 'itemTemplate', 'size', 'sizeOptions']
1251
+ }]
1252
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1253
+ let PPagination = class PPagination {
1254
+ constructor(c, r, z) {
1255
+ this.z = z;
1256
+ c.detach();
1257
+ this.el = r.nativeElement;
1258
+ proxyOutputs(this, this.el, ['pageChange']);
1259
+ }
1260
+ };
1261
+ PPagination.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1262
+ PPagination.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PPagination, selector: "p-pagination", inputs: { hideOnSinglePage: "hideOnSinglePage", page: "page", pageSize: "pageSize", total: "total" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1263
+ PPagination = __decorate([
1264
+ ProxyCmp({
1265
+ defineCustomElementFn: undefined,
1266
+ inputs: ['hideOnSinglePage', 'page', 'pageSize', 'total']
1267
+ })
1268
+ ], PPagination);
1269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPagination, decorators: [{
1270
+ type: Component,
1271
+ args: [{
1272
+ selector: 'p-pagination',
1273
+ changeDetection: ChangeDetectionStrategy.OnPush,
1274
+ template: '<ng-content></ng-content>',
1275
+ inputs: ['hideOnSinglePage', 'page', 'pageSize', 'total']
1276
+ }]
1277
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1278
+ let PPaginationItem = class PPaginationItem {
1279
+ constructor(c, r, z) {
1280
+ this.z = z;
1281
+ c.detach();
1282
+ this.el = r.nativeElement;
1283
+ }
1284
+ };
1285
+ PPaginationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPaginationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1286
+ PPaginationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PPaginationItem, selector: "p-pagination-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1287
+ PPaginationItem = __decorate([
1288
+ ProxyCmp({
1289
+ defineCustomElementFn: undefined,
1290
+ inputs: ['active']
1291
+ })
1292
+ ], PPaginationItem);
1293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PPaginationItem, decorators: [{
1294
+ type: Component,
1295
+ args: [{
1296
+ selector: 'p-pagination-item',
1297
+ changeDetection: ChangeDetectionStrategy.OnPush,
1298
+ template: '<ng-content></ng-content>',
1299
+ inputs: ['active']
1300
+ }]
1301
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1302
+ let PProfile = class PProfile {
1303
+ constructor(c, r, z) {
1304
+ this.z = z;
1305
+ c.detach();
1306
+ this.el = r.nativeElement;
1307
+ }
1308
+ };
1309
+ PProfile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PProfile, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1310
+ PProfile.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PProfile, selector: "p-profile", inputs: { size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1311
+ PProfile = __decorate([
1312
+ ProxyCmp({
1313
+ defineCustomElementFn: undefined,
1314
+ inputs: ['size', 'variant']
1315
+ })
1316
+ ], PProfile);
1317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PProfile, decorators: [{
1318
+ type: Component,
1319
+ args: [{
1320
+ selector: 'p-profile',
1321
+ changeDetection: ChangeDetectionStrategy.OnPush,
1322
+ template: '<ng-content></ng-content>',
1323
+ inputs: ['size', 'variant']
1324
+ }]
1325
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1326
+ let PSegmentContainer = class PSegmentContainer {
1327
+ constructor(c, r, z) {
1328
+ this.z = z;
1329
+ c.detach();
1330
+ this.el = r.nativeElement;
1331
+ }
1332
+ };
1333
+ PSegmentContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSegmentContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1334
+ PSegmentContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PSegmentContainer, selector: "p-segment-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1335
+ PSegmentContainer = __decorate([
1336
+ ProxyCmp({
1337
+ defineCustomElementFn: undefined
1338
+ })
1339
+ ], PSegmentContainer);
1340
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSegmentContainer, decorators: [{
1341
+ type: Component,
1342
+ args: [{
1343
+ selector: 'p-segment-container',
1344
+ changeDetection: ChangeDetectionStrategy.OnPush,
1345
+ template: '<ng-content></ng-content>'
1346
+ }]
1347
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1348
+ let PSegmentItem = class PSegmentItem {
1349
+ constructor(c, r, z) {
1350
+ this.z = z;
1351
+ c.detach();
1352
+ this.el = r.nativeElement;
1353
+ }
1354
+ };
1355
+ PSegmentItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSegmentItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1356
+ PSegmentItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PSegmentItem, selector: "p-segment-item", inputs: { active: "active", icon: "icon", iconFlip: "iconFlip", iconRotate: "iconRotate" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1357
+ PSegmentItem = __decorate([
1358
+ ProxyCmp({
1359
+ defineCustomElementFn: undefined,
1360
+ inputs: ['active', 'icon', 'iconFlip', 'iconRotate']
1361
+ })
1362
+ ], PSegmentItem);
1363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSegmentItem, decorators: [{
1364
+ type: Component,
1365
+ args: [{
1366
+ selector: 'p-segment-item',
1367
+ changeDetection: ChangeDetectionStrategy.OnPush,
1368
+ template: '<ng-content></ng-content>',
1369
+ inputs: ['active', 'icon', 'iconFlip', 'iconRotate']
1370
+ }]
1371
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1372
+ let PSelect = class PSelect {
1373
+ constructor(c, r, z) {
1374
+ this.z = z;
1375
+ c.detach();
1376
+ this.el = r.nativeElement;
1377
+ proxyOutputs(this, this.el, ['queryChange', 'valueChange']);
1378
+ }
1379
+ };
1380
+ PSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1381
+ PSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PSelect, selector: "p-select", inputs: { asyncFilter: "asyncFilter", autoSelectFirst: "autoSelectFirst", autocompletePlaceholder: "autocompletePlaceholder", disabled: "disabled", displayKey: "displayKey", enableAutocomplete: "enableAutocomplete", error: "error", helper: "helper", items: "items", label: "label", loading: "loading", maxDisplayedItems: "maxDisplayedItems", placeholder: "placeholder", prefix: "prefix", query: "query", queryKey: "queryKey", size: "size", value: "value", valueKey: "valueKey" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1382
+ PSelect = __decorate([
1383
+ ProxyCmp({
1384
+ defineCustomElementFn: undefined,
1385
+ inputs: ['asyncFilter', 'autoSelectFirst', 'autocompletePlaceholder', 'disabled', 'displayKey', 'enableAutocomplete', 'error', 'helper', 'items', 'label', 'loading', 'maxDisplayedItems', 'placeholder', 'prefix', 'query', 'queryKey', 'size', 'value', 'valueKey']
1386
+ })
1387
+ ], PSelect);
1388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSelect, decorators: [{
1389
+ type: Component,
1390
+ args: [{
1391
+ selector: 'p-select',
1392
+ changeDetection: ChangeDetectionStrategy.OnPush,
1393
+ template: '<ng-content></ng-content>',
1394
+ inputs: ['asyncFilter', 'autoSelectFirst', 'autocompletePlaceholder', 'disabled', 'displayKey', 'enableAutocomplete', 'error', 'helper', 'items', 'label', 'loading', 'maxDisplayedItems', 'placeholder', 'prefix', 'query', 'queryKey', 'size', 'value', 'valueKey']
1395
+ }]
1396
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1397
+ let PSliderIndicator = class PSliderIndicator {
1398
+ constructor(c, r, z) {
1399
+ this.z = z;
1400
+ c.detach();
1401
+ this.el = r.nativeElement;
1402
+ }
1403
+ };
1404
+ PSliderIndicator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSliderIndicator, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1405
+ PSliderIndicator.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PSliderIndicator, selector: "p-slider-indicator", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1406
+ PSliderIndicator = __decorate([
1407
+ ProxyCmp({
1408
+ defineCustomElementFn: undefined,
1409
+ inputs: ['active']
1410
+ })
1411
+ ], PSliderIndicator);
1412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PSliderIndicator, decorators: [{
1413
+ type: Component,
1414
+ args: [{
1415
+ selector: 'p-slider-indicator',
1416
+ changeDetection: ChangeDetectionStrategy.OnPush,
1417
+ template: '<ng-content></ng-content>',
1418
+ inputs: ['active']
1419
+ }]
1420
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1421
+ let PStatus = class PStatus {
1422
+ constructor(c, r, z) {
1423
+ this.z = z;
1424
+ c.detach();
1425
+ this.el = r.nativeElement;
1426
+ }
1427
+ };
1428
+ PStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStatus, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1429
+ PStatus.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PStatus, selector: "p-status", inputs: { icon: "icon", iconFlip: "iconFlip", iconRotate: "iconRotate", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1430
+ PStatus = __decorate([
1431
+ ProxyCmp({
1432
+ defineCustomElementFn: undefined,
1433
+ inputs: ['icon', 'iconFlip', 'iconRotate', 'variant']
1434
+ })
1435
+ ], PStatus);
1436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStatus, decorators: [{
1437
+ type: Component,
1438
+ args: [{
1439
+ selector: 'p-status',
1440
+ changeDetection: ChangeDetectionStrategy.OnPush,
1441
+ template: '<ng-content></ng-content>',
1442
+ inputs: ['icon', 'iconFlip', 'iconRotate', 'variant']
1443
+ }]
1444
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1445
+ let PStepper = class PStepper {
1446
+ constructor(c, r, z) {
1447
+ this.z = z;
1448
+ c.detach();
1449
+ this.el = r.nativeElement;
1450
+ }
1451
+ };
1452
+ PStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1453
+ PStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PStepper, selector: "p-stepper", inputs: { activeStep: "activeStep", direction: "direction" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1454
+ PStepper = __decorate([
1455
+ ProxyCmp({
1456
+ defineCustomElementFn: undefined,
1457
+ inputs: ['activeStep', 'direction']
1458
+ })
1459
+ ], PStepper);
1460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepper, decorators: [{
1461
+ type: Component,
1462
+ args: [{
1463
+ selector: 'p-stepper',
1464
+ changeDetection: ChangeDetectionStrategy.OnPush,
1465
+ template: '<ng-content></ng-content>',
1466
+ inputs: ['activeStep', 'direction']
1467
+ }]
1468
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1469
+ let PStepperItem = class PStepperItem {
1470
+ constructor(c, r, z) {
1471
+ this.z = z;
1472
+ c.detach();
1473
+ this.el = r.nativeElement;
1474
+ }
1475
+ };
1476
+ PStepperItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepperItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1477
+ PStepperItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PStepperItem, selector: "p-stepper-item", inputs: { active: "active", align: "align", direction: "direction", finished: "finished" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1478
+ PStepperItem = __decorate([
1479
+ ProxyCmp({
1480
+ defineCustomElementFn: undefined,
1481
+ inputs: ['active', 'align', 'direction', 'finished']
1482
+ })
1483
+ ], PStepperItem);
1484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepperItem, decorators: [{
1485
+ type: Component,
1486
+ args: [{
1487
+ selector: 'p-stepper-item',
1488
+ changeDetection: ChangeDetectionStrategy.OnPush,
1489
+ template: '<ng-content></ng-content>',
1490
+ inputs: ['active', 'align', 'direction', 'finished']
1491
+ }]
1492
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1493
+ let PStepperLine = class PStepperLine {
1494
+ constructor(c, r, z) {
1495
+ this.z = z;
1496
+ c.detach();
1497
+ this.el = r.nativeElement;
1498
+ }
1499
+ };
1500
+ PStepperLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepperLine, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1501
+ PStepperLine.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PStepperLine, selector: "p-stepper-line", inputs: { active: "active", direction: "direction" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1502
+ PStepperLine = __decorate([
1503
+ ProxyCmp({
1504
+ defineCustomElementFn: undefined,
1505
+ inputs: ['active', 'direction']
1506
+ })
1507
+ ], PStepperLine);
1508
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PStepperLine, decorators: [{
1509
+ type: Component,
1510
+ args: [{
1511
+ selector: 'p-stepper-line',
1512
+ changeDetection: ChangeDetectionStrategy.OnPush,
1513
+ template: '<ng-content></ng-content>',
1514
+ inputs: ['active', 'direction']
1515
+ }]
1516
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1517
+ let PTabGroup = class PTabGroup {
1518
+ constructor(c, r, z) {
1519
+ this.z = z;
1520
+ c.detach();
1521
+ this.el = r.nativeElement;
1522
+ }
1523
+ };
1524
+ PTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTabGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1525
+ PTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTabGroup, selector: "p-tab-group", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1526
+ PTabGroup = __decorate([
1527
+ ProxyCmp({
1528
+ defineCustomElementFn: undefined
1529
+ })
1530
+ ], PTabGroup);
1531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTabGroup, decorators: [{
1532
+ type: Component,
1533
+ args: [{
1534
+ selector: 'p-tab-group',
1535
+ changeDetection: ChangeDetectionStrategy.OnPush,
1536
+ template: '<ng-content></ng-content>'
1537
+ }]
1538
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1539
+ let PTabItem = class PTabItem {
1540
+ constructor(c, r, z) {
1541
+ this.z = z;
1542
+ c.detach();
1543
+ this.el = r.nativeElement;
1544
+ }
1545
+ };
1546
+ PTabItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTabItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1547
+ PTabItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTabItem, selector: "p-tab-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1548
+ PTabItem = __decorate([
1549
+ ProxyCmp({
1550
+ defineCustomElementFn: undefined,
1551
+ inputs: ['active']
1552
+ })
1553
+ ], PTabItem);
1554
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTabItem, decorators: [{
1555
+ type: Component,
1556
+ args: [{
1557
+ selector: 'p-tab-item',
1558
+ changeDetection: ChangeDetectionStrategy.OnPush,
1559
+ template: '<ng-content></ng-content>',
1560
+ inputs: ['active']
1561
+ }]
1562
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1563
+ let PTableContainer = class PTableContainer {
1564
+ constructor(c, r, z) {
1565
+ this.z = z;
1566
+ c.detach();
1567
+ this.el = r.nativeElement;
1568
+ }
1569
+ };
1570
+ PTableContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1571
+ PTableContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTableContainer, selector: "p-table-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1572
+ PTableContainer = __decorate([
1573
+ ProxyCmp({
1574
+ defineCustomElementFn: undefined
1575
+ })
1576
+ ], PTableContainer);
1577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableContainer, decorators: [{
1578
+ type: Component,
1579
+ args: [{
1580
+ selector: 'p-table-container',
1581
+ changeDetection: ChangeDetectionStrategy.OnPush,
1582
+ template: '<ng-content></ng-content>'
1583
+ }]
1584
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1585
+ let PTableFooter = class PTableFooter {
1586
+ constructor(c, r, z) {
1587
+ this.z = z;
1588
+ c.detach();
1589
+ this.el = r.nativeElement;
1590
+ proxyOutputs(this, this.el, ['pageChange', 'pageSizeChange', 'export']);
1591
+ }
1592
+ };
1593
+ PTableFooter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableFooter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1594
+ PTableFooter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTableFooter, selector: "p-table-footer", inputs: { enableExport: "enableExport", enablePageSize: "enablePageSize", enablePagination: "enablePagination", hideOnSinglePage: "hideOnSinglePage", page: "page", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", total: "total" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1595
+ PTableFooter = __decorate([
1596
+ ProxyCmp({
1597
+ defineCustomElementFn: undefined,
1598
+ inputs: ['enableExport', 'enablePageSize', 'enablePagination', 'hideOnSinglePage', 'page', 'pageSize', 'pageSizeOptions', 'total']
1599
+ })
1600
+ ], PTableFooter);
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableFooter, decorators: [{
1602
+ type: Component,
1603
+ args: [{
1604
+ selector: 'p-table-footer',
1605
+ changeDetection: ChangeDetectionStrategy.OnPush,
1606
+ template: '<ng-content></ng-content>',
1607
+ inputs: ['enableExport', 'enablePageSize', 'enablePagination', 'hideOnSinglePage', 'page', 'pageSize', 'pageSizeOptions', 'total']
1608
+ }]
1609
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1610
+ let PTableHeader = class PTableHeader {
1611
+ constructor(c, r, z) {
1612
+ this.z = z;
1613
+ c.detach();
1614
+ this.el = r.nativeElement;
1615
+ proxyOutputs(this, this.el, ['quickFilter', 'queryChange', 'filter', 'edit']);
1616
+ }
1617
+ };
1618
+ PTableHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1619
+ PTableHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTableHeader, selector: "p-table-header", inputs: { activeQuickFilterIdentifier: "activeQuickFilterIdentifier", canEdit: "canEdit", editButtonTemplate: "editButtonTemplate", enableEdit: "enableEdit", enableFilter: "enableFilter", enableSearch: "enableSearch", filterButtonTemplate: "filterButtonTemplate", itemsSelectedAmount: "itemsSelectedAmount", query: "query", quickFilters: "quickFilters", selectedFiltersAmount: "selectedFiltersAmount" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1620
+ PTableHeader = __decorate([
1621
+ ProxyCmp({
1622
+ defineCustomElementFn: undefined,
1623
+ inputs: ['activeQuickFilterIdentifier', 'canEdit', 'editButtonTemplate', 'enableEdit', 'enableFilter', 'enableSearch', 'filterButtonTemplate', 'itemsSelectedAmount', 'query', 'quickFilters', 'selectedFiltersAmount']
1624
+ })
1625
+ ], PTableHeader);
1626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableHeader, decorators: [{
1627
+ type: Component,
1628
+ args: [{
1629
+ selector: 'p-table-header',
1630
+ changeDetection: ChangeDetectionStrategy.OnPush,
1631
+ template: '<ng-content></ng-content>',
1632
+ inputs: ['activeQuickFilterIdentifier', 'canEdit', 'editButtonTemplate', 'enableEdit', 'enableFilter', 'enableSearch', 'filterButtonTemplate', 'itemsSelectedAmount', 'query', 'quickFilters', 'selectedFiltersAmount']
1633
+ }]
1634
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1635
+ let PTableRow = class PTableRow {
1636
+ constructor(c, r, z) {
1637
+ this.z = z;
1638
+ c.detach();
1639
+ this.el = r.nativeElement;
1640
+ }
1641
+ };
1642
+ PTableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableRow, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1643
+ PTableRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTableRow, selector: "p-table-row", inputs: { enableHover: "enableHover", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1644
+ PTableRow = __decorate([
1645
+ ProxyCmp({
1646
+ defineCustomElementFn: undefined,
1647
+ inputs: ['enableHover', 'variant']
1648
+ })
1649
+ ], PTableRow);
1650
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableRow, decorators: [{
1651
+ type: Component,
1652
+ args: [{
1653
+ selector: 'p-table-row',
1654
+ changeDetection: ChangeDetectionStrategy.OnPush,
1655
+ template: '<ng-content></ng-content>',
1656
+ inputs: ['enableHover', 'variant']
1657
+ }]
1658
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1659
+ let PToast = class PToast {
1660
+ constructor(c, r, z) {
1661
+ this.z = z;
1662
+ c.detach();
1663
+ this.el = r.nativeElement;
1664
+ proxyOutputs(this, this.el, ['action']);
1665
+ }
1666
+ };
1667
+ PToast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PToast, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1668
+ PToast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PToast, selector: "p-toast", inputs: { actionIcon: "actionIcon", actionIconFlip: "actionIconFlip", actionIconRotate: "actionIconRotate", content: "content", enableAction: "enableAction", header: "header", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1669
+ PToast = __decorate([
1670
+ ProxyCmp({
1671
+ defineCustomElementFn: undefined,
1672
+ inputs: ['actionIcon', 'actionIconFlip', 'actionIconRotate', 'content', 'enableAction', 'header', 'variant']
1673
+ })
1674
+ ], PToast);
1675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PToast, decorators: [{
1676
+ type: Component,
1677
+ args: [{
1678
+ selector: 'p-toast',
1679
+ changeDetection: ChangeDetectionStrategy.OnPush,
1680
+ template: '<ng-content></ng-content>',
1681
+ inputs: ['actionIcon', 'actionIconFlip', 'actionIconRotate', 'content', 'enableAction', 'header', 'variant']
1682
+ }]
1683
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1684
+ let PTooltip = class PTooltip {
1685
+ constructor(c, r, z) {
1686
+ this.z = z;
1687
+ c.detach();
1688
+ this.el = r.nativeElement;
1689
+ proxyOutputs(this, this.el, ['isOpen']);
1690
+ }
1691
+ };
1692
+ PTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1693
+ PTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTooltip, selector: "p-tooltip", inputs: { canManuallyClose: "canManuallyClose", placement: "placement", popover: "popover", show: "show", strategy: "strategy", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1694
+ PTooltip = __decorate([
1695
+ ProxyCmp({
1696
+ defineCustomElementFn: undefined,
1697
+ inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'strategy', 'variant']
1698
+ })
1699
+ ], PTooltip);
1700
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTooltip, decorators: [{
1701
+ type: Component,
1702
+ args: [{
1703
+ selector: 'p-tooltip',
1704
+ changeDetection: ChangeDetectionStrategy.OnPush,
1705
+ template: '<ng-content></ng-content>',
1706
+ inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'strategy', 'variant']
1707
+ }]
1708
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1709
+
1710
+ /* eslint-disable max-len */
1711
+ class TableCell {
1712
+ constructor() {
1713
+ /**
1714
+ * The variant of the column
1715
+ */
1716
+ this.variant = 'default';
1717
+ /**
1718
+ * The index of the column
1719
+ */
1720
+ this.index = 0;
1721
+ /**
1722
+ * The index of the row
1723
+ */
1724
+ this.rowIndex = 0;
1725
+ }
1726
+ get class() {
1727
+ return this.getColumnClasses();
1728
+ }
1729
+ get data() {
1730
+ var _a;
1731
+ if (this.variant === 'header') {
1732
+ return {
1733
+ value: this.value,
1734
+ };
1735
+ }
1736
+ return {
1737
+ value: (_a = this.value) !== null && _a !== void 0 ? _a : objectGetByPath(this.item, this.definition.path),
1738
+ item: this.item,
1739
+ index: this.index,
1740
+ rowIndex: this.rowIndex,
1741
+ };
1742
+ }
1743
+ // render() {
1744
+ // return (
1745
+ // <Host
1746
+ // class={{
1747
+ // 'p-table-column': true,
1748
+ // [`variant-${this.variant}`]: true,
1749
+ // ...this._getColumnClasses(),
1750
+ // }}
1751
+ // >
1752
+ // {this.checkbox}
1753
+ // {this.variant === 'loading' ? (
1754
+ // <p-loader
1755
+ // variant="ghost"
1756
+ // class="rounded flex-1 w-full h-6"
1757
+ // />
1758
+ // ) : (
1759
+ // <div class="flex">
1760
+ // {this.variant === 'header' ? (
1761
+ // this.data.value
1762
+ // ) : this.definition.useSlot ? (
1763
+ // <slot />
1764
+ // ) : (
1765
+ // this.template(this.data as TableDefinitionData)
1766
+ // )}
1767
+ // </div>
1768
+ // )}
1769
+ // </Host>
1770
+ // );
1771
+ // }
1772
+ getColumnClasses() {
1773
+ var _a, _b, _c, _d, _e, _f;
1774
+ const sizes = this.definition ? this._getSizes(this.definition) : {};
1775
+ return Object.assign({ 'justify-start': !((_a = this.definition) === null || _a === void 0 ? void 0 : _a.align) || ((_b = this.definition) === null || _b === void 0 ? void 0 : _b.align) === 'start', 'justify-center': ((_c = this.definition) === null || _c === void 0 ? void 0 : _c.align) === 'center', 'justify-end': ((_d = this.definition) === null || _d === void 0 ? void 0 : _d.align) === 'end', 'font-semibold': this.variant !== 'header' && ((_e = this.definition) === null || _e === void 0 ? void 0 : _e.type) === 'th', 'text-storm-dark': this.variant !== 'header' && ((_f = this.definition) === null || _f === void 0 ? void 0 : _f.type) === 'th' }, sizes);
1776
+ }
1777
+ /*
1778
+ With this, we shall hack the system in ways no one would ever have thought.
1779
+
1780
+ w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12 w-12/12
1781
+ tablet:w-1/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12 tablet:w-10/12 tablet:w-11/12 tablet:w-12/12
1782
+ desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
1783
+ desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
1784
+ desktop-sm:w-1/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-12/12
1785
+ desktop:w-1/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12 desktop:w-10/12 desktop:w-11/12 desktop:w-12/12
1786
+ desktop-lg:w-1/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-12/12
1787
+ desktop-xl:w-1/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-12/12
1788
+
1789
+
1790
+ ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀
1791
+ ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀
1792
+ ⠀⠀⠀⡾⠿⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⢧⠀⠀⠀
1793
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1794
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1795
+ ⠀⠀⠀⠀⠀⠀⠀⣠⣤⠶⠶⠶⠰⠦⣤⣀⠀⠙⣷⠀⠀⠀⠀⠀⠀⠀⢠⡿⠋⢀⣀⣤⢴⠆⠲⠶⠶⣤⣄⠀⠀⠀⠀⠀⠀⠀
1796
+ ⠀⠘⣆⠀⠀⢠⣾⣫⣶⣾⣿⣿⣿⣿⣷⣯⣿⣦⠈⠃⡇⠀⠀⠀⠀⢸⠘⢁⣶⣿⣵⣾⣿⣿⣿⣿⣷⣦⣝⣷⡄⠀⠀⡰⠂⠀
1797
+ ⠀⠀⣨⣷⣶⣿⣧⣛⣛⠿⠿⣿⢿⣿⣿⣛⣿⡿⠀⠀⡇⠀⠀⠀⠀⢸⠀⠈⢿⣟⣛⠿⢿⡿⢿⢿⢿⣛⣫⣼⡿⣶⣾⣅⡀⠀
1798
+ ⢀⡼⠋⠁⠀⠀⠈⠉⠛⠛⠻⠟⠸⠛⠋⠉⠁⠀⠀⢸⡇⠀⠀⠄⠀⢸⡄⠀⠀⠈⠉⠙⠛⠃⠻⠛⠛⠛⠉⠁⠀⠀⠈⠙⢧⡀
1799
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡇⢠⠀⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1800
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1801
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠁⣿⠇⠀⠀⠀⠀⢸⡇⠙⢿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1802
+ ⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⠖⡾⠁⠀⠀⣿⠀⠀⠀⠀⠀⠘⣿⠀⠀⠙⡇⢸⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠄⠀
1803
+ ⠀⠀⢻⣷⡦⣤⣤⣤⡴⠶⠿⠛⠉⠁⠀⢳⠀⢠⡀⢿⣀⠀⠀⠀⠀⣠⡟⢀⣀⢠⠇⠀⠈⠙⠛⠷⠶⢦⣤⣤⣤⢴⣾⡏⠀⠀
1804
+ ⠀⠀⠈⣿⣧⠙⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⢊⣙⠛⠒⠒⢛⣋⡚⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠁⣾⡿⠀⠀⠀
1805
+ ⠀⠀⠀⠘⣿⣇⠈⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⢿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡟⠁⣼⡿⠁⠀⠀⠀
1806
+ ⠀⠀⠀⠀⠘⣿⣦⠀⠻⣿⣷⣦⣤⣤⣶⣶⣶⣿⣿⣿⣿⠏⠀⠀⠻⣿⣿⣿⣿⣶⣶⣶⣦⣤⣴⣿⣿⠏⢀⣼⡿⠁⠀⠀⠀⠀
1807
+ ⠀⠀⠀⠀⠀⠘⢿⣷⣄⠙⠻⠿⠿⠿⠿⠿⢿⣿⣿⣿⣁⣀⣀⣀⣀⣙⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⠁⣠⣿⡿⠁⠀⠀⠀⠀⠀
1808
+ ⠀⠀⠀⠀⠀⠀⠈⠻⣯⠙⢦⣀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⣠⠴⢋⣾⠟⠀⠀⠀⠀⠀⠀⠀
1809
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡀⠈⠉⠒⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠐⠒⠉⠁⢀⡾⠃⠀⠀⠀⠀⠀⠀⠀⠀
1810
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1811
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢀⡴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1812
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1813
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1814
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1815
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1816
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1817
+ */
1818
+ _getSizes({ sizes } /* Table Definition */) {
1819
+ if (sizes === 'auto' || !sizes) {
1820
+ return {
1821
+ 'w-auto': true,
1822
+ };
1823
+ }
1824
+ if (typeof sizes === 'object') {
1825
+ const classes = {};
1826
+ for (const size of Object.keys(sizes)) {
1827
+ if (size === 'default') {
1828
+ classes[`w-${sizes.default}/12`] = true;
1829
+ continue;
1830
+ }
1831
+ classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
1832
+ }
1833
+ return classes;
1834
+ }
1835
+ // is a number.
1836
+ return {
1837
+ [`w-${sizes}/12`]: true,
1838
+ };
1839
+ }
1840
+ }
1841
+ TableCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1842
+ TableCell.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TableCell, selector: "p-table-cell-ngx", inputs: { variant: "variant", index: "index", rowIndex: "rowIndex", definition: "definition", item: "item", value: "value", checkbox: "checkbox", template: "template" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<ng-container *ngIf=\"checkbox\">\n <ng-container *ngTemplateOutlet=\"checkbox\"></ng-container>\n</ng-container>\n\n<ng-container [ngSwitch]=\"variant\">\n <p-loader\n *ngSwitchCase=\"'loading'\"\n variant=\"ghost\"\n class=\"rounded flex-1 w-full h-6\"\n ></p-loader>\n\n <div *ngSwitchCase=\"'header'\" class=\"flex\">\n <ng-container *ngTemplateOutlet=\"valueTemplate\"></ng-container>\n </div>\n\n <div *ngSwitchCase=\"'default'\" class=\"flex\">\n <ng-container *ngIf=\"template; else valueTemplate\">\n <ng-container\n *ngTemplateOutlet=\"template; context: data\"\n ></ng-container>\n </ng-container>\n </div>\n</ng-container>\n\n<ng-template #valueTemplate>\n {{ data.value }}\n</ng-template>\n", styles: [":host{display:flex;align-items:center;gap:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }] });
1843
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableCell, decorators: [{
1844
+ type: Component,
1845
+ args: [{ selector: 'p-table-cell-ngx', template: "<ng-container *ngIf=\"checkbox\">\n <ng-container *ngTemplateOutlet=\"checkbox\"></ng-container>\n</ng-container>\n\n<ng-container [ngSwitch]=\"variant\">\n <p-loader\n *ngSwitchCase=\"'loading'\"\n variant=\"ghost\"\n class=\"rounded flex-1 w-full h-6\"\n ></p-loader>\n\n <div *ngSwitchCase=\"'header'\" class=\"flex\">\n <ng-container *ngTemplateOutlet=\"valueTemplate\"></ng-container>\n </div>\n\n <div *ngSwitchCase=\"'default'\" class=\"flex\">\n <ng-container *ngIf=\"template; else valueTemplate\">\n <ng-container\n *ngTemplateOutlet=\"template; context: data\"\n ></ng-container>\n </ng-container>\n </div>\n</ng-container>\n\n<ng-template #valueTemplate>\n {{ data.value }}\n</ng-template>\n", styles: [":host{display:flex;align-items:center;gap:1rem}\n"] }]
1846
+ }], propDecorators: { variant: [{
1847
+ type: Input
1848
+ }], index: [{
1849
+ type: Input
1850
+ }], rowIndex: [{
1851
+ type: Input
1852
+ }], definition: [{
1853
+ type: Input
1854
+ }], item: [{
1855
+ type: Input
1856
+ }], value: [{
1857
+ type: Input
1858
+ }], checkbox: [{
1859
+ type: Input
1860
+ }], template: [{
1861
+ type: Input
1862
+ }], class: [{
1863
+ type: HostBinding,
1864
+ args: ['class']
1865
+ }] } });
1866
+
1867
+ let TableColumn = class TableColumn {
1868
+ constructor(c, r, z) {
1869
+ this.z = z;
1870
+ c.detach();
1871
+ this.el = r.nativeElement;
1872
+ proxyOutputs(this, this.el, ['tableDefinitionChanged']);
1873
+ }
1874
+ };
1875
+ TableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableColumn, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1876
+ TableColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TableColumn, selector: "p-table-column", inputs: { align: "align", name: "name", path: "path", sizes: "sizes", type: "type", useSlot: "useSlot" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1877
+ TableColumn = __decorate([
1878
+ ProxyCmp({
1879
+ defineCustomElementFn: undefined,
1880
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
1881
+ })
1882
+ ], TableColumn);
1883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableColumn, decorators: [{
1884
+ type: Component,
1885
+ args: [{
1886
+ selector: 'p-table-column',
1887
+ changeDetection: ChangeDetectionStrategy.OnPush,
1888
+ template: '<ng-content></ng-content>',
1889
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
1890
+ }]
1891
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
1892
+ type: ContentChild,
1893
+ args: [TemplateRef, {
1894
+ read: TemplateRef,
1895
+ static: true,
1896
+ }]
1897
+ }] } });
1898
+
1899
+ const defaultSize = 12;
1900
+ const defaultSizeOptions = [12, 24, 68, 136];
1901
+
1902
+ class TableFooterDirective extends BaseValueAccessor {
1903
+ constructor(el) {
1904
+ super(el);
1905
+ this.lastValue = {
1906
+ page: 1,
1907
+ pageSize: 12,
1908
+ };
1909
+ }
1910
+ writeValue(value) {
1911
+ this.el.nativeElement.page = this.lastValue.page =
1912
+ (value === null || value === void 0 ? void 0 : value.page) == null ? '' : value === null || value === void 0 ? void 0 : value.page;
1913
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
1914
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? '' : value === null || value === void 0 ? void 0 : value.pageSize;
1915
+ }
1916
+ handleChange(value, type) {
1917
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
1918
+ }
1919
+ }
1920
+ TableFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableFooterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1921
+ TableFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableFooterDirective, selector: "p-table-footer", host: { listeners: { "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")" } }, providers: [
1922
+ {
1923
+ provide: NG_VALUE_ACCESSOR,
1924
+ useExisting: TableFooterDirective,
1925
+ multi: true,
1926
+ },
1927
+ ], usesInheritance: true, ngImport: i0 });
1928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableFooterDirective, decorators: [{
1929
+ type: Directive,
1930
+ args: [{
1931
+ /* tslint:disable-next-line:directive-selector */
1932
+ selector: 'p-table-footer',
1933
+ host: {
1934
+ '(pageChange)': 'handleChange($event.detail, "page")',
1935
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
1936
+ },
1937
+ providers: [
1938
+ {
1939
+ provide: NG_VALUE_ACCESSOR,
1940
+ useExisting: TableFooterDirective,
1941
+ multi: true,
1942
+ },
1943
+ ],
1944
+ }]
1945
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1946
+
1947
+ class TableHeaderDirective extends BaseValueAccessor {
1948
+ constructor(el) {
1949
+ super(el);
1950
+ this.lastValue = {
1951
+ query: '',
1952
+ quickFilter: undefined,
1953
+ };
1954
+ }
1955
+ writeValue(value) {
1956
+ this.el.nativeElement.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
1957
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
1958
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
1959
+ this._setActiveQuickFilter(value.quickFilter);
1960
+ }
1961
+ }
1962
+ handleChange(value, type) {
1963
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
1964
+ if (type === 'quickFilter' && typeof value !== 'string') {
1965
+ this._setActiveQuickFilter(value);
1966
+ }
1967
+ }
1968
+ _setActiveQuickFilter(quickFilter) {
1969
+ this.el.nativeElement.activeQuickFilterIdentifier =
1970
+ quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
1971
+ }
1972
+ }
1973
+ TableHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableHeaderDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1974
+ TableHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableHeaderDirective, selector: "p-table-header", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")" } }, providers: [
1975
+ {
1976
+ provide: NG_VALUE_ACCESSOR,
1977
+ useExisting: TableHeaderDirective,
1978
+ multi: true,
1979
+ },
1980
+ ], usesInheritance: true, ngImport: i0 });
1981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableHeaderDirective, decorators: [{
1982
+ type: Directive,
1983
+ args: [{
1984
+ /* tslint:disable-next-line:directive-selector */
1985
+ selector: 'p-table-header',
1986
+ host: {
1987
+ '(queryChange)': 'handleChange($event.detail, "query")',
1988
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
1989
+ },
1990
+ providers: [
1991
+ {
1992
+ provide: NG_VALUE_ACCESSOR,
1993
+ useExisting: TableHeaderDirective,
1994
+ multi: true,
1995
+ },
1996
+ ],
1997
+ }]
1998
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1999
+
2000
+ let Table = class Table {
2001
+ constructor() {
2002
+ /**
2003
+ * Wether data is loading
2004
+ */
2005
+ this.loading = false;
2006
+ /**
2007
+ * The amount of loading rows to show
2008
+ */
2009
+ this.amountOfLoadingRows = 4;
2010
+ /**
2011
+ * Wether to enable selection
2012
+ */
2013
+ this.enableRowSelection = true;
2014
+ /**
2015
+ * Wether to enable row clicking
2016
+ */
2017
+ this.enableRowClick = true;
2018
+ /**
2019
+ * The current selection of items
2020
+ */
2021
+ this.selectedRows = [];
2022
+ /**
2023
+ * Event whenever the current selection changes
2024
+ */
2025
+ this.selectedRowsChange = new EventEmitter();
2026
+ /**
2027
+ * Event whenever a row is clicked
2028
+ */
2029
+ this.rowClick = new EventEmitter();
2030
+ /**
2031
+ * Event whenever a row is selected
2032
+ */
2033
+ this.rowSelected = new EventEmitter();
2034
+ /**
2035
+ * Event whenever a row is deselected
2036
+ */
2037
+ this.rowDeselected = new EventEmitter();
2038
+ /** START HEADER */
2039
+ /**
2040
+ * Quick filters to show
2041
+ */
2042
+ this.quickFilters = [];
2043
+ /**
2044
+ * Wether to show the search input
2045
+ */
2046
+ this.enableSearch = true;
2047
+ /**
2048
+ * Wether to show the filter button
2049
+ */
2050
+ this.enableFilter = true;
2051
+ /**
2052
+ * Wether to show the edit button
2053
+ */
2054
+ this.enableEdit = true;
2055
+ /**
2056
+ * Event when one of the quick filters is clicked
2057
+ */
2058
+ this.quickFilter = new EventEmitter();
2059
+ /**
2060
+ * Event when the query changes
2061
+ */
2062
+ this.queryChange = new EventEmitter();
2063
+ /**
2064
+ * Event when the filter button is clicked
2065
+ */
2066
+ this.filter = new EventEmitter();
2067
+ /**
2068
+ * Event when the edit button is clicked
2069
+ */
2070
+ this.edit = new EventEmitter();
2071
+ /** START FOOTER */
2072
+ /**
2073
+ * Wether to enable page size select
2074
+ */
2075
+ this.enablePageSize = true;
2076
+ /**
2077
+ * Wether to enable pagination
2078
+ */
2079
+ this.enablePagination = true;
2080
+ /**
2081
+ * Wether to enable export
2082
+ */
2083
+ this.enableExport = true;
2084
+ /**
2085
+ * The current page
2086
+ */
2087
+ this.page = 1;
2088
+ /**
2089
+ * Event whenever the page changes
2090
+ */
2091
+ this.pageChange = new EventEmitter();
2092
+ /**
2093
+ * The amount of items per page
2094
+ */
2095
+ this.pageSize = defaultSize;
2096
+ /**
2097
+ * The options for the page size
2098
+ */
2099
+ this.pageSizeOptions = defaultSizeOptions;
2100
+ /**
2101
+ * Event whenever the page changes
2102
+ */
2103
+ this.pageSizeChange = new EventEmitter();
2104
+ /**
2105
+ * Event whenever the page changes
2106
+ */
2107
+ this.export = new EventEmitter();
2108
+ /**
2109
+ * Wether to hide when there is only 1 page available
2110
+ */
2111
+ this.hideOnSinglePage = true;
2112
+ this.columns = [];
2113
+ this.parsedItems = [];
2114
+ this.loadingRows = Array.from({
2115
+ length: this.amountOfLoadingRows,
2116
+ });
2117
+ this._ctrlDown = false;
2118
+ }
2119
+ set columnDefinitions(v) {
2120
+ this._columnDefinitions = v;
2121
+ this._generateColumns();
2122
+ }
2123
+ get columnDefinitions() {
2124
+ return this._columnDefinitions;
2125
+ }
2126
+ ngOnInit() {
2127
+ this._parseItems(this.items);
2128
+ // this._generateColumns();
2129
+ }
2130
+ ngOnChanges(changes) {
2131
+ if (changes['items']) {
2132
+ this._parseItems(changes['items'].currentValue);
2133
+ }
2134
+ }
2135
+ // @HostListener('body:tableDefinitionChanged', { target: 'body' })
2136
+ // onTableDefinitionUpdated() {
2137
+ // this._generateColumns();
2138
+ // }
2139
+ keyDown({ key }) {
2140
+ if (key !== 'Control' || this._ctrlDown === true) {
2141
+ return;
2142
+ }
2143
+ this._ctrlDown = true;
2144
+ }
2145
+ keyUp({ key }) {
2146
+ if (key !== 'Control' || this._ctrlDown === false) {
2147
+ return;
2148
+ }
2149
+ this._ctrlDown = false;
2150
+ }
2151
+ visibilityChange() {
2152
+ if (document.visibilityState !== 'hidden' || this._ctrlDown === false) {
2153
+ return;
2154
+ }
2155
+ this._ctrlDown = false;
2156
+ }
2157
+ onQueryChange({ detail }) {
2158
+ this.queryChange.emit(detail);
2159
+ }
2160
+ onQuickFilter({ detail }) {
2161
+ this.quickFilter.emit(detail);
2162
+ }
2163
+ onPageSizeChange({ detail }) {
2164
+ this.pageSizeChange.emit(detail);
2165
+ }
2166
+ onPageChange({ detail }) {
2167
+ this.pageChange.emit(detail);
2168
+ }
2169
+ _parseItems(items) {
2170
+ if (!items) {
2171
+ this.parsedItems = [];
2172
+ return;
2173
+ }
2174
+ if (Array.isArray(items)) {
2175
+ this.parsedItems = items;
2176
+ return;
2177
+ }
2178
+ this.parsedItems = JSON.parse(items);
2179
+ }
2180
+ _generateColumns() {
2181
+ // const definitions =
2182
+ // this._el.nativeElement.querySelectorAll('p-table-definition');
2183
+ this.columns = Array.from(this._columnDefinitions);
2184
+ }
2185
+ // private _getHeader() {
2186
+ // return (
2187
+ // <p-table-row variant="header">
2188
+ // {this._columns.map((col: TableDefinition, index) => (
2189
+ // <p-table-column
2190
+ // definition={col}
2191
+ // value={col.name}
2192
+ // variant="header"
2193
+ // checkbox={this._getCheckbox(index, null, 'header')}
2194
+ // index={index}
2195
+ // ></p-table-column>
2196
+ // ))}
2197
+ // </p-table-row>
2198
+ // );
2199
+ // }
2200
+ // private _getRows() {
2201
+ // if (this.loading) {
2202
+ // return Array.from(
2203
+ // {
2204
+ // length: this.amountOfLoadingRows,
2205
+ // },
2206
+ // (_, i) => (
2207
+ // <p-table-row
2208
+ // enableHover={
2209
+ // this.enableRowSelection || this.enableRowClick
2210
+ // }
2211
+ // >
2212
+ // {this._getLoadingColumns(i)}
2213
+ // </p-table-row>
2214
+ // )
2215
+ // );
2216
+ // }
2217
+ // return this._items.map((item, index) => (
2218
+ // <p-table-row
2219
+ // enableHover={this.enableRowSelection || this.enableRowClick}
2220
+ // onClick={(ev) => this._rowClick(ev, index)}
2221
+ // >
2222
+ // {this._getRowColumns(item, index)}
2223
+ // </p-table-row>
2224
+ // ));
2225
+ // }
2226
+ // private _getRowColumns(item, index) {
2227
+ // return this._columns.map((col: TableDefinition, colIndex) => {
2228
+ // return (
2229
+ // <p-table-column
2230
+ // definition={col}
2231
+ // item={item}
2232
+ // checkbox={this._getCheckbox(colIndex, index)}
2233
+ // index={colIndex}
2234
+ // rowIndex={index}
2235
+ // ></p-table-column>
2236
+ // );
2237
+ // });
2238
+ // }
2239
+ // private _getLoadingColumns(index) {
2240
+ // return this._columns.map((col: TableDefinition, colIndex) => {
2241
+ // return (
2242
+ // <p-table-column
2243
+ // definition={col}
2244
+ // variant="loading"
2245
+ // checkbox={this._getCheckbox(colIndex, index, 'loading')}
2246
+ // index={colIndex}
2247
+ // rowIndex={index}
2248
+ // ></p-table-column>
2249
+ // );
2250
+ // });
2251
+ // }
2252
+ // private _getCheckbox(
2253
+ // index,
2254
+ // rowIndex,
2255
+ // variant: 'header' | 'default' | 'loading' = 'default'
2256
+ // ) {
2257
+ // if (!this.enableRowSelection || !this.selectionKey || index !== 0) {
2258
+ // return;
2259
+ // }
2260
+ // if (variant === 'loading') {
2261
+ // return <p-loader variant="ghost" class="rounded w-6 h-6" />;
2262
+ // }
2263
+ // if (variant === 'header') {
2264
+ // return (
2265
+ // <input
2266
+ // class="p-input"
2267
+ // type="checkbox"
2268
+ // onChange={(ev) => this._selectAllChange(ev)}
2269
+ // checked={this._selectionContainsAll()}
2270
+ // indeterminate={this._selectionIndeterminate()}
2271
+ // />
2272
+ // );
2273
+ // }
2274
+ // const item = this._items[rowIndex];
2275
+ // return (
2276
+ // <input
2277
+ // class="p-input"
2278
+ // type="checkbox"
2279
+ // onChange={(ev) => this._checkboxChange(ev?.target, rowIndex)}
2280
+ // disabled={this.canSelectKey && !item[this.canSelectKey]}
2281
+ // checked={this._selectionContains(item, rowIndex)}
2282
+ // />
2283
+ // );
2284
+ // }
2285
+ _checkboxDisabled(item) {
2286
+ return this.canSelectKey && !item[this.canSelectKey];
2287
+ }
2288
+ _selectAllChange($event) {
2289
+ if (!this.enableRowSelection) {
2290
+ return;
2291
+ }
2292
+ const value = this._getCheckedValue($event.target);
2293
+ if (value) {
2294
+ const toAdd = [];
2295
+ for (let i = 0; i < this.parsedItems.length; i++) {
2296
+ const row = this.parsedItems[i];
2297
+ if (this.canSelectKey && !row[this.canSelectKey]) {
2298
+ continue;
2299
+ }
2300
+ if (this._selectionContains(row, i)) {
2301
+ continue;
2302
+ }
2303
+ toAdd.push(row);
2304
+ this.rowSelected.emit(row);
2305
+ }
2306
+ this.selectedRows = [...this.selectedRows, ...toAdd];
2307
+ this.selectedRowsChange.emit(this.selectedRows);
2308
+ return;
2309
+ }
2310
+ for (let i = 0; i < this.selectedRows.length; i++) {
2311
+ const value = this.selectedRows[i];
2312
+ const row = this.parsedItems.find((d) => this._getSelectionValue(d, i) ===
2313
+ this._getSelectionValue(value, i));
2314
+ if (!row) {
2315
+ continue;
2316
+ }
2317
+ this.rowDeselected.emit(row);
2318
+ }
2319
+ this.selectedRows = [];
2320
+ this.selectedRowsChange.emit(this.selectedRows);
2321
+ }
2322
+ _checkboxChange(target, index) {
2323
+ if (!this.enableRowSelection) {
2324
+ return;
2325
+ }
2326
+ const row = this.parsedItems[index];
2327
+ if (this.canSelectKey && !row[this.canSelectKey]) {
2328
+ target.checked = false;
2329
+ return;
2330
+ }
2331
+ const value = this._getCheckedValue(target);
2332
+ if (value) {
2333
+ this.selectedRows = [...this.selectedRows, row];
2334
+ this.selectedRowsChange.emit(this.selectedRows);
2335
+ this.rowSelected.emit(row);
2336
+ return;
2337
+ }
2338
+ const indexOfToRemove = this._selectionContains(row, index, true);
2339
+ // we need to do this, because splice does not trigger the selection setter.
2340
+ const selection = [...this.selectedRows];
2341
+ selection.splice(indexOfToRemove, 1);
2342
+ this.selectedRows = selection;
2343
+ this.selectedRowsChange.emit(this.selectedRows);
2344
+ this.rowDeselected.emit(row);
2345
+ }
2346
+ _getCheckedValue(target) {
2347
+ return target === null || target === void 0 ? void 0 : target.checked;
2348
+ }
2349
+ _getSelectionValue(row, index) {
2350
+ return this.selectionKey ? (row === null || row === void 0 ? void 0 : row[this.selectionKey]) || index : index;
2351
+ }
2352
+ _selectionContains(row, index, returnIndex = false) {
2353
+ const returnValue = this.selectedRows.findIndex((item) => this._getSelectionValue(row, index) ===
2354
+ this._getSelectionValue(item, index));
2355
+ return !returnIndex ? returnValue >= 0 : returnValue;
2356
+ }
2357
+ _selectionContainsAll() {
2358
+ var _a, _b;
2359
+ let returnValue = true;
2360
+ if (!((_a = this.parsedItems) === null || _a === void 0 ? void 0 : _a.length)) {
2361
+ return false;
2362
+ }
2363
+ for (let i = 0; i < ((_b = this.parsedItems) === null || _b === void 0 ? void 0 : _b.length); i++) {
2364
+ const item = this.parsedItems[i];
2365
+ const contains = this._selectionContains(item, i);
2366
+ if (!contains) {
2367
+ returnValue = false;
2368
+ break;
2369
+ }
2370
+ }
2371
+ return returnValue;
2372
+ }
2373
+ _selectionIndeterminate() {
2374
+ var _a, _b, _c;
2375
+ if (!((_a = this.parsedItems) === null || _a === void 0 ? void 0 : _a.length) || !((_b = this.selectedRows) === null || _b === void 0 ? void 0 : _b.length)) {
2376
+ return false;
2377
+ }
2378
+ let containsCount = 0;
2379
+ for (let i = 0; i < ((_c = this.parsedItems) === null || _c === void 0 ? void 0 : _c.length); i++) {
2380
+ const item = this.parsedItems[i];
2381
+ const contains = this._selectionContains(item, i);
2382
+ if (contains) {
2383
+ containsCount++;
2384
+ }
2385
+ }
2386
+ return containsCount > 0 && containsCount !== this.parsedItems.length;
2387
+ }
2388
+ _rowClick($event, index) {
2389
+ const target = $event.target;
2390
+ if (target.tagName.toLowerCase() === 'input' ||
2391
+ target.type === 'checkbox') {
2392
+ return;
2393
+ }
2394
+ const row = this._findRow($event.target);
2395
+ if (this.enableRowClick) {
2396
+ const action = this._findRowAction($event.target);
2397
+ if (action) {
2398
+ return;
2399
+ }
2400
+ const item = this.parsedItems[index];
2401
+ this.rowClick.emit({
2402
+ item,
2403
+ ctrlDown: this._ctrlDown,
2404
+ });
2405
+ return;
2406
+ }
2407
+ if (!this.enableRowSelection) {
2408
+ return;
2409
+ }
2410
+ const checkbox = row === null || row === void 0 ? void 0 : row.querySelector('input[type="checkbox"]');
2411
+ if (!checkbox) {
2412
+ return;
2413
+ }
2414
+ checkbox.checked = !checkbox.checked;
2415
+ this._checkboxChange(checkbox, index);
2416
+ }
2417
+ _findRow(el) {
2418
+ var _a;
2419
+ if (!el) {
2420
+ return el;
2421
+ }
2422
+ if (((_a = el === null || el === void 0 ? void 0 : el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'p-table-row') {
2423
+ return el;
2424
+ }
2425
+ return this._findRow(el === null || el === void 0 ? void 0 : el.parentElement);
2426
+ }
2427
+ _findRowAction(el) {
2428
+ var _a;
2429
+ if (!el) {
2430
+ return null;
2431
+ }
2432
+ if (el.getAttribute('data-is-action') !== null &&
2433
+ el.getAttribute('data-is-action') !== 'false') {
2434
+ return el;
2435
+ }
2436
+ if (((_a = el === null || el === void 0 ? void 0 : el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'p-table-row') {
2437
+ return null;
2438
+ }
2439
+ return this._findRowAction(el === null || el === void 0 ? void 0 : el.parentElement);
2440
+ }
2441
+ };
2442
+ Table.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
2443
+ Table.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: Table, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableEdit: "enableEdit", editButtonTemplate: "editButtonTemplate", enablePageSize: "enablePageSize", enablePagination: "enablePagination", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage" }, outputs: { selectedRowsChange: "selectedRowsChange", rowClick: "rowClick", rowSelected: "rowSelected", rowDeselected: "rowDeselected", quickFilter: "quickFilter", queryChange: "queryChange", filter: "filter", edit: "edit", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export" }, host: { listeners: { "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" } }, queries: [{ propertyName: "columnDefinitions", predicate: TableColumn }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n <p-table-header\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (onQuickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (onQueryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (onFilter)=\"filter.emit()\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n (onEdit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n ></p-table-header>\n\n <p-table-row variant=\"header\">\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [value]=\"col.name\"\n variant=\"header\"\n [index]=\"index\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_selectAllChange($event)\"\n [checked]=\"_selectionContainsAll()\"\n [indeterminate]=\"_selectionIndeterminate()\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n\n <div class=\"flex flex-col\">\n <ng-container *ngIf=\"loading; else contentTemplate\">\n <p-table-row\n *ngFor=\"let r of loadingRows; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n variant=\"loading\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"rounded w-6 h-6\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <p-table-row\n *ngFor=\"let item of items; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n (click)=\"_rowClick($event, rowIndex)\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n [template]=\"col.template\"\n ></p-table-cell-ngx>\n\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_checkboxChange($event.target, rowIndex)\"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-template>\n </div>\n\n <p-table-footer\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (onPageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (onPageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (onExport)=\"export.emit()\"\n ></p-table-footer>\n</p-table-container>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enableExport", "enablePageSize", "enablePagination", "hideOnSinglePage", "page", "pageSize", "pageSizeOptions", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["activeQuickFilterIdentifier", "canEdit", "editButtonTemplate", "enableEdit", "enableFilter", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "query", "quickFilters", "selectedFiltersAmount"] }, { kind: "component", type: PTableRow, selector: "p-table-row", inputs: ["enableHover", "variant"] }, { kind: "component", type: TableCell, selector: "p-table-cell-ngx", inputs: ["variant", "index", "rowIndex", "definition", "item", "value", "checkbox", "template"] }, { kind: "directive", type: TableFooterDirective, selector: "p-table-footer" }, { kind: "directive", type: TableHeaderDirective, selector: "p-table-header" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2444
+ Table = __decorate([
2445
+ UntilDestroy({ checkProperties: true })
2446
+ ], Table);
2447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, decorators: [{
2448
+ type: Component,
2449
+ args: [{ selector: 'p-table-ngx', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-table-container>\n <p-table-header\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (onQuickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (onQueryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (onFilter)=\"filter.emit()\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n (onEdit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n ></p-table-header>\n\n <p-table-row variant=\"header\">\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [value]=\"col.name\"\n variant=\"header\"\n [index]=\"index\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_selectAllChange($event)\"\n [checked]=\"_selectionContainsAll()\"\n [indeterminate]=\"_selectionIndeterminate()\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n\n <div class=\"flex flex-col\">\n <ng-container *ngIf=\"loading; else contentTemplate\">\n <p-table-row\n *ngFor=\"let r of loadingRows; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n variant=\"loading\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"rounded w-6 h-6\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <p-table-row\n *ngFor=\"let item of items; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n (click)=\"_rowClick($event, rowIndex)\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n [template]=\"col.template\"\n ></p-table-cell-ngx>\n\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_checkboxChange($event.target, rowIndex)\"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-template>\n </div>\n\n <p-table-footer\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (onPageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (onPageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (onExport)=\"export.emit()\"\n ></p-table-footer>\n</p-table-container>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
2450
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
2451
+ type: Input
2452
+ }], loading: [{
2453
+ type: Input
2454
+ }], amountOfLoadingRows: [{
2455
+ type: Input
2456
+ }], enableRowSelection: [{
2457
+ type: Input
2458
+ }], enableRowClick: [{
2459
+ type: Input
2460
+ }], selectedRows: [{
2461
+ type: Input
2462
+ }], selectedRowsChange: [{
2463
+ type: Output
2464
+ }], selectionKey: [{
2465
+ type: Input
2466
+ }], canSelectKey: [{
2467
+ type: Input
2468
+ }], rowClick: [{
2469
+ type: Output
2470
+ }], rowSelected: [{
2471
+ type: Output
2472
+ }], rowDeselected: [{
2473
+ type: Output
2474
+ }], quickFilters: [{
2475
+ type: Input
2476
+ }], activeQuickFilterIdentifier: [{
2477
+ type: Input
2478
+ }], enableSearch: [{
2479
+ type: Input
2480
+ }], query: [{
2481
+ type: Input
2482
+ }], enableFilter: [{
2483
+ type: Input
2484
+ }], selectedFiltersAmount: [{
2485
+ type: Input
2486
+ }], filterButtonTemplate: [{
2487
+ type: Input
2488
+ }], enableEdit: [{
2489
+ type: Input
2490
+ }], editButtonTemplate: [{
2491
+ type: Input
2492
+ }], quickFilter: [{
2493
+ type: Output
2494
+ }], queryChange: [{
2495
+ type: Output
2496
+ }], filter: [{
2497
+ type: Output
2498
+ }], edit: [{
2499
+ type: Output
2500
+ }], enablePageSize: [{
2501
+ type: Input
2502
+ }], enablePagination: [{
2503
+ type: Input
2504
+ }], enableExport: [{
2505
+ type: Input
2506
+ }], page: [{
2507
+ type: Input
2508
+ }], total: [{
2509
+ type: Input
2510
+ }], pageChange: [{
2511
+ type: Output
2512
+ }], pageSize: [{
2513
+ type: Input
2514
+ }], pageSizeOptions: [{
2515
+ type: Input
2516
+ }], pageSizeChange: [{
2517
+ type: Output
2518
+ }], export: [{
2519
+ type: Output
2520
+ }], hideOnSinglePage: [{
2521
+ type: Input
2522
+ }], columnDefinitions: [{
2523
+ type: ContentChildren,
2524
+ args: [TableColumn]
2525
+ }], keyDown: [{
2526
+ type: HostListener,
2527
+ args: ['document:keydown', ['$event']]
2528
+ }], keyUp: [{
2529
+ type: HostListener,
2530
+ args: ['document:keyup', ['$event']]
2531
+ }], visibilityChange: [{
2532
+ type: HostListener,
2533
+ args: ['document:visibilitychange', ['$event']]
2534
+ }] } });
2535
+
2536
+ const TABLE_COMPONENTS = [Table, TableCell, TableColumn];
2537
+
2538
+ /* eslint-disable @angular-eslint/no-host-metadata-property */
2539
+ class TableNgxDirective extends BaseValueAccessor {
2540
+ constructor(el, _base) {
2541
+ super(el);
2542
+ this._base = _base;
2543
+ this.lastValue = {
2544
+ query: '',
2545
+ quickFilter: undefined,
2546
+ page: 1,
2547
+ pageSize: 12,
2548
+ selectedRows: [],
2549
+ };
2550
+ }
2551
+ writeValue(value) {
2552
+ this._base.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
2553
+ // this.el.nativeElement.query = this.lastValue.query = value?.query;
2554
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
2555
+ this._base.page = this.lastValue.page =
2556
+ (value === null || value === void 0 ? void 0 : value.page) == null ? 1 : value === null || value === void 0 ? void 0 : value.page;
2557
+ this._base.pageSize = this.lastValue.pageSize =
2558
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? 12 : value === null || value === void 0 ? void 0 : value.pageSize;
2559
+ // this.el.nativeElement.page = this.lastValue.page =
2560
+ // value?.page == null ? 1 : value?.page;
2561
+ // this.el.nativeElement.pageSize = this.lastValue.pageSize =
2562
+ // value?.pageSize == null ? 12 : value?.pageSize;
2563
+ this.lastValue.selectedRows =
2564
+ (value === null || value === void 0 ? void 0 : value.selectedRows) == null ? [] : value === null || value === void 0 ? void 0 : value.selectedRows;
2565
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
2566
+ this._setActiveQuickFilter(value.quickFilter);
2567
+ }
2568
+ }
2569
+ registerOnChange(fn) {
2570
+ this.onChange = fn;
2571
+ }
2572
+ registerOnTouched(fn) {
2573
+ this.onTouched = fn;
2574
+ }
2575
+ handleChange(value, type) {
2576
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2577
+ if (type === 'quickFilter' && typeof value === 'object') {
2578
+ this._setActiveQuickFilter(value);
2579
+ }
2580
+ }
2581
+ _setActiveQuickFilter(quickFilter) {
2582
+ this._base.activeQuickFilterIdentifier = quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
2583
+ // this.el.nativeElement.activeQuickFilterIdentifier =
2584
+ // quickFilter?.identifier;
2585
+ }
2586
+ }
2587
+ TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: Table, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2588
+ TableNgxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableNgxDirective, selector: "p-table-ngx", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")", "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")", "selectedRowsChange": "handleChange($event, \"selectedRows\")" } }, providers: [
2589
+ {
2590
+ provide: NG_VALUE_ACCESSOR,
2591
+ useExisting: TableNgxDirective,
2592
+ multi: true,
2593
+ },
2594
+ ], usesInheritance: true, ngImport: i0 });
2595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, decorators: [{
2596
+ type: Directive,
2597
+ args: [{
2598
+ selector: 'p-table-ngx',
2599
+ host: {
2600
+ '(queryChange)': 'handleChange($event.detail, "query")',
2601
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2602
+ '(pageChange)': 'handleChange($event.detail, "page")',
2603
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2604
+ '(selectedRowsChange)': 'handleChange($event, "selectedRows")',
2605
+ },
2606
+ providers: [
2607
+ {
2608
+ provide: NG_VALUE_ACCESSOR,
2609
+ useExisting: TableNgxDirective,
2610
+ multi: true,
2611
+ },
2612
+ ],
2613
+ }]
2614
+ }], ctorParameters: function () {
2615
+ return [{ type: i0.ElementRef }, { type: Table, decorators: [{
2616
+ type: Host
2617
+ }] }];
2618
+ } });
2619
+
2620
+ class TableDirective extends BaseValueAccessor {
2621
+ constructor(el) {
2622
+ super(el);
2623
+ this.lastValue = {
2624
+ query: '',
2625
+ quickFilter: undefined,
2626
+ page: 1,
2627
+ pageSize: 12,
2628
+ selectedRows: [],
2629
+ };
2630
+ }
2631
+ writeValue(value) {
2632
+ this.el.nativeElement.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
2633
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
2634
+ this.el.nativeElement.page = this.lastValue.page =
2635
+ (value === null || value === void 0 ? void 0 : value.page) == null ? 1 : value === null || value === void 0 ? void 0 : value.page;
2636
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2637
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? 12 : value === null || value === void 0 ? void 0 : value.pageSize;
2638
+ this.lastValue.selectedRows =
2639
+ (value === null || value === void 0 ? void 0 : value.selectedRows) == null ? [] : value === null || value === void 0 ? void 0 : value.selectedRows;
2640
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
2641
+ this._setActiveQuickFilter(value.quickFilter);
2642
+ }
2643
+ }
2644
+ registerOnChange(fn) {
2645
+ this.onChange = fn;
2646
+ }
2647
+ registerOnTouched(fn) {
2648
+ this.onTouched = fn;
2649
+ }
2650
+ handleChange(value, type) {
2651
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2652
+ if (type === 'quickFilter' && typeof value === 'object') {
2653
+ this._setActiveQuickFilter(value);
2654
+ }
2655
+ }
2656
+ _setActiveQuickFilter(quickFilter) {
2657
+ this.el.nativeElement.activeQuickFilterIdentifier =
2658
+ quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
2659
+ }
2660
+ }
2661
+ TableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2662
+ TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableDirective, selector: "p-table", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")", "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")", "selectedRowsChange": "handleChange($event.detail, \"selectedRows\")" } }, providers: [
2663
+ {
2664
+ provide: NG_VALUE_ACCESSOR,
2665
+ useExisting: TableDirective,
2666
+ multi: true,
2667
+ },
2668
+ ], usesInheritance: true, ngImport: i0 });
2669
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDirective, decorators: [{
2670
+ type: Directive,
2671
+ args: [{
2672
+ /* tslint:disable-next-line:directive-selector */
2673
+ selector: 'p-table',
2674
+ host: {
2675
+ '(queryChange)': 'handleChange($event.detail, "query")',
2676
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2677
+ '(pageChange)': 'handleChange($event.detail, "page")',
2678
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2679
+ '(selectedRowsChange)': 'handleChange($event.detail, "selectedRows")',
2680
+ },
2681
+ providers: [
2682
+ {
2683
+ provide: NG_VALUE_ACCESSOR,
2684
+ useExisting: TableDirective,
2685
+ multi: true,
2686
+ },
2687
+ ],
2688
+ }]
2689
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2690
+
2691
+ const TABLE_DIRECTIVES = [
2692
+ TableFooterDirective,
2693
+ TableHeaderDirective,
2694
+ TableDirective,
2695
+ TableNgxDirective,
2696
+ ];
365
2697
 
366
2698
  const DIRECTIVES = [
2699
+ PAccordion,
367
2700
  PAvatar,
2701
+ PAvatarGroup,
368
2702
  PButton,
2703
+ PCardBody,
2704
+ PCardContainer,
2705
+ PCardHeader,
2706
+ PContentSlider,
369
2707
  PCounter,
370
2708
  PDivider,
2709
+ PDropdown,
2710
+ PDropdownMenuContainer,
2711
+ PDropdownMenuItem,
371
2712
  PHelper,
372
2713
  PIcon,
373
2714
  PIllustration,
374
2715
  PInfoPanel,
2716
+ PInputGroup,
2717
+ PLabel,
2718
+ PLayout,
375
2719
  PLoader,
2720
+ PModal,
2721
+ PModalBackdrop,
2722
+ PModalBody,
2723
+ PModalContainer,
2724
+ PModalFooter,
2725
+ PModalHeader,
2726
+ PNavbar,
376
2727
  PNavigationItem,
2728
+ PPageSizeSelect,
377
2729
  PPagination,
378
2730
  PPaginationItem,
2731
+ PProfile,
2732
+ PSegmentContainer,
2733
+ PSegmentItem,
2734
+ PSelect,
2735
+ PSliderIndicator,
2736
+ PStatus,
2737
+ PStepper,
2738
+ PStepperItem,
2739
+ PStepperLine,
2740
+ PTabGroup,
2741
+ PTabItem,
2742
+ PTableContainer,
2743
+ PTableFooter,
2744
+ PTableHeader,
2745
+ PTableRow,
2746
+ PToast,
379
2747
  PTooltip
380
2748
  ];
381
2749
 
382
- class PaperlessModule {
2750
+ class StencilModule {
383
2751
  }
384
- PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
385
- PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, declarations: [PAvatar, PButton, PCounter, PDivider, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PTooltip], exports: [PAvatar, PButton, PCounter, PDivider, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PTooltip] });
386
- PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule });
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, decorators: [{
2752
+ StencilModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2753
+ StencilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: StencilModule, declarations: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PToast, PTooltip], exports: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PToast, PTooltip] });
2754
+ StencilModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule });
2755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule, decorators: [{
388
2756
  type: NgModule,
389
2757
  args: [{
390
2758
  declarations: [...DIRECTIVES],
@@ -392,6 +2760,255 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
392
2760
  }]
393
2761
  }] });
394
2762
 
2763
+ class TableModule {
2764
+ }
2765
+ TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2766
+ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: TableModule, declarations: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective], imports: [CommonModule, StencilModule], exports: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective] });
2767
+ TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, imports: [CommonModule, StencilModule] });
2768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, decorators: [{
2769
+ type: NgModule,
2770
+ args: [{
2771
+ imports: [CommonModule, StencilModule],
2772
+ declarations: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2773
+ exports: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2774
+ }]
2775
+ }] });
2776
+
2777
+ const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
2778
+ transition(':enter', [
2779
+ style({ transform: 'translateY(50%)', opacity: 0 }),
2780
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
2781
+ ]),
2782
+ transition(':leave', [
2783
+ animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
2784
+ ]),
2785
+ ]);
2786
+
2787
+ var ToastVariants;
2788
+ (function (ToastVariants) {
2789
+ ToastVariants["Success"] = "positive";
2790
+ ToastVariants["Warning"] = "unbiased";
2791
+ ToastVariants["Error"] = "negative";
2792
+ ToastVariants["Positive"] = "positive";
2793
+ ToastVariants["Unbiased"] = "unbiased";
2794
+ ToastVariants["Negative"] = "negative";
2795
+ })(ToastVariants || (ToastVariants = {}));
2796
+
2797
+ class ToastService {
2798
+ constructor() {
2799
+ this._toasts = [];
2800
+ this.toasts$ = new BehaviorSubject(this._toasts);
2801
+ this.defaultOptions = {
2802
+ delay: 5000,
2803
+ dismissOnAction: true,
2804
+ enableAction: true,
2805
+ icon: {
2806
+ variant: 'negative',
2807
+ },
2808
+ };
2809
+ }
2810
+ show(header, content, variant = ToastVariants.Success, options = {}) {
2811
+ options = Object.assign(Object.assign(Object.assign({}, options), this.defaultOptions), { icon: (options === null || options === void 0 ? void 0 : options.icon)
2812
+ ? Object.assign(Object.assign({}, options.icon), this.defaultOptions.icon) : this.defaultOptions.icon });
2813
+ this._toasts.push({
2814
+ header,
2815
+ content,
2816
+ variant,
2817
+ options,
2818
+ });
2819
+ this.toasts$.next(this._toasts);
2820
+ }
2821
+ hide(index) {
2822
+ this._toasts.splice(index, 1);
2823
+ this.toasts$.next(this._toasts);
2824
+ }
2825
+ }
2826
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2827
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, providedIn: 'root' });
2828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, decorators: [{
2829
+ type: Injectable,
2830
+ args: [{
2831
+ providedIn: 'root',
2832
+ }]
2833
+ }] });
2834
+
2835
+ class ToastDirective {
2836
+ constructor() {
2837
+ this.delay = 5000;
2838
+ this.index = 0;
2839
+ this.dismissOnAction = true;
2840
+ this.dismiss = new EventEmitter();
2841
+ }
2842
+ ngOnInit() {
2843
+ if (this.delay === 'infinite' || this.delay === 0) {
2844
+ return;
2845
+ }
2846
+ setTimeout(() => this.doDismiss(), this.delay);
2847
+ }
2848
+ onAction() {
2849
+ if (this.dismissOnAction) {
2850
+ this.doDismiss();
2851
+ }
2852
+ }
2853
+ doDismiss() {
2854
+ this.dismiss.next(this.index);
2855
+ }
2856
+ }
2857
+ ToastDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2858
+ ToastDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: ToastDirective, selector: "p-toast", inputs: { delay: "delay", index: "index", dismissOnAction: "dismissOnAction" }, outputs: { dismiss: "dismiss" }, host: { listeners: { "action": "onAction()" } }, ngImport: i0 });
2859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastDirective, decorators: [{
2860
+ type: Directive,
2861
+ args: [{
2862
+ selector: 'p-toast',
2863
+ host: {
2864
+ '(action)': 'onAction()',
2865
+ },
2866
+ }]
2867
+ }], propDecorators: { delay: [{
2868
+ type: Input
2869
+ }], index: [{
2870
+ type: Input
2871
+ }], dismissOnAction: [{
2872
+ type: Input
2873
+ }], dismiss: [{
2874
+ type: Output
2875
+ }] } });
2876
+
2877
+ /* top-0 bottom-0 left-0 right-0 */
2878
+ let ToastContainer = class ToastContainer {
2879
+ constructor(r, z, _toastService) {
2880
+ this.z = z;
2881
+ this._toastService = _toastService;
2882
+ this.toasts$ = this._toastService.toasts$;
2883
+ this.el = r.nativeElement;
2884
+ }
2885
+ dismiss(index) {
2886
+ this._toastService.hide(index);
2887
+ }
2888
+ };
2889
+ ToastContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Component });
2890
+ ToastContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ToastContainer, selector: "p-toast-container", inputs: { placement: "placement" }, ngImport: i0, template: "<p-toast\n *ngFor=\"let toast of toasts$ | async; let index = index\"\n [variant]=\"toast.variant\"\n [header]=\"toast.header\"\n [content]=\"toast.content\"\n [index]=\"index\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionIcon]=\"toast.options.icon?.variant\"\n [actionIconFlip]=\"toast.options.icon?.flip\"\n [actionIconRotate]=\"toast.options.icon?.rotate\"\n (dismiss)=\"dismiss($event)\"\n [@pSlideInBottomOutTop]\n></p-toast>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: PToast, selector: "p-toast", inputs: ["actionIcon", "actionIconFlip", "actionIconRotate", "content", "enableAction", "header", "variant"] }, { kind: "directive", type: ToastDirective, selector: "p-toast", inputs: ["delay", "index", "dismissOnAction"], outputs: ["dismiss"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [SLIDE_IN_BOTTOM_OUT_TOP], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2891
+ ToastContainer = __decorate([
2892
+ ProxyCmp({
2893
+ defineCustomElementFn: undefined,
2894
+ inputs: ['placement'],
2895
+ })
2896
+ ], ToastContainer);
2897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, decorators: [{
2898
+ type: Component,
2899
+ args: [{ selector: 'p-toast-container', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['placement'], animations: [SLIDE_IN_BOTTOM_OUT_TOP], template: "<p-toast\n *ngFor=\"let toast of toasts$ | async; let index = index\"\n [variant]=\"toast.variant\"\n [header]=\"toast.header\"\n [content]=\"toast.content\"\n [index]=\"index\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionIcon]=\"toast.options.icon?.variant\"\n [actionIconFlip]=\"toast.options.icon?.flip\"\n [actionIconRotate]=\"toast.options.icon?.rotate\"\n (dismiss)=\"dismiss($event)\"\n [@pSlideInBottomOutTop]\n></p-toast>\n" }]
2900
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToastService }]; } });
2901
+
2902
+ const TOAST_COMPONENTS = [ToastContainer];
2903
+
2904
+ const TOAST_DIRECTIVES = [ToastDirective];
2905
+
2906
+ const TOAST_SERVICES = [ToastService];
2907
+
2908
+ class ToastModule {
2909
+ }
2910
+ ToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2911
+ ToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, declarations: [ToastContainer, ToastDirective], imports: [CommonModule, StencilModule], exports: [ToastContainer, ToastDirective] });
2912
+ ToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, imports: [CommonModule, StencilModule] });
2913
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, decorators: [{
2914
+ type: NgModule,
2915
+ args: [{
2916
+ imports: [CommonModule, StencilModule],
2917
+ declarations: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
2918
+ exports: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
2919
+ }]
2920
+ }] });
2921
+
2922
+ const MODULES = [TableModule, ToastModule];
2923
+
2924
+ class CustomCurrencyPipe {
2925
+ constructor(_currencyPipe) {
2926
+ this._currencyPipe = _currencyPipe;
2927
+ }
2928
+ transform(value, currencyCode = 'EUR', display = 'symbol', digitsInfo = '1.2-2', locale = 'nl') {
2929
+ return this._currencyPipe.transform(value, currencyCode, display, digitsInfo, locale);
2930
+ }
2931
+ }
2932
+ CustomCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
2933
+ CustomCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, name: "pcurrency" });
2934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, decorators: [{
2935
+ type: Pipe,
2936
+ args: [{
2937
+ name: 'pcurrency',
2938
+ }]
2939
+ }], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
2940
+
2941
+ class CustomDatePipe {
2942
+ constructor(_datePipe) {
2943
+ this._datePipe = _datePipe;
2944
+ }
2945
+ transform(value, format) {
2946
+ return this._datePipe.transform(value, format);
2947
+ }
2948
+ }
2949
+ CustomDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, deps: [{ token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
2950
+ CustomDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, name: "pdate" });
2951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, decorators: [{
2952
+ type: Pipe,
2953
+ args: [{
2954
+ name: 'pdate',
2955
+ }]
2956
+ }], ctorParameters: function () { return [{ type: i1.DatePipe }]; } });
2957
+
2958
+ class SafePipe {
2959
+ constructor(sanitizer) {
2960
+ this.sanitizer = sanitizer;
2961
+ }
2962
+ transform(value, type) {
2963
+ switch (type) {
2964
+ case 'html':
2965
+ return this.sanitizer.bypassSecurityTrustHtml(value);
2966
+ case 'style':
2967
+ return this.sanitizer.bypassSecurityTrustStyle(value);
2968
+ case 'script':
2969
+ return this.sanitizer.bypassSecurityTrustScript(value);
2970
+ case 'url':
2971
+ return this.sanitizer.bypassSecurityTrustUrl(value);
2972
+ case 'resourceUrl':
2973
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
2974
+ default:
2975
+ throw new Error(`Invalid safe type specified: ${type}`);
2976
+ }
2977
+ }
2978
+ }
2979
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
2980
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, name: "psafe" });
2981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, decorators: [{
2982
+ type: Pipe,
2983
+ args: [{
2984
+ name: 'psafe',
2985
+ }]
2986
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
2987
+
2988
+ const PIPES = [CustomCurrencyPipe, CustomDatePipe, SafePipe];
2989
+
2990
+ const NGX_PIPES = [DatePipe, CurrencyPipe];
2991
+ class PaperlessModule {
2992
+ static forRoot() {
2993
+ return {
2994
+ ngModule: PaperlessModule,
2995
+ providers: [...TOAST_SERVICES],
2996
+ };
2997
+ }
2998
+ }
2999
+ PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3000
+ PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, declarations: [PaginationDirective, PageSizeSelectDirective, SelectDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe], imports: [CommonModule, StencilModule, TableModule, ToastModule], exports: [StencilModule, TableModule, ToastModule, PaginationDirective, PageSizeSelectDirective, SelectDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe] });
3001
+ PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule, StencilModule, MODULES, StencilModule, TableModule, ToastModule] });
3002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, decorators: [{
3003
+ type: NgModule,
3004
+ args: [{
3005
+ imports: [CommonModule, StencilModule, ...MODULES],
3006
+ declarations: [...DIRECTIVES$1, ...PIPES],
3007
+ exports: [StencilModule, ...MODULES, ...DIRECTIVES$1, ...PIPES],
3008
+ providers: [...NGX_PIPES, ...PIPES],
3009
+ }]
3010
+ }] });
3011
+
395
3012
  /*
396
3013
  * Public API Surface of paperless
397
3014
  */
@@ -400,5 +3017,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
400
3017
  * Generated bundle index. Do not edit.
401
3018
  */
402
3019
 
403
- export { PAvatar, PButton, PCounter, PDivider, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PTooltip, PaperlessModule };
3020
+ export { BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, FormBaseComponent, MODULES, PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PToast, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, SafePipe, SelectDirective, StencilModule, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_DIRECTIVES, TOAST_SERVICES, Table, TableCell, TableColumn, TableDirective, TableFooterDirective, TableHeaderDirective, TableModule, TableNgxDirective, ToastContainer, ToastDirective, ToastModule, ToastService, ToastVariants };
404
3021
  //# sourceMappingURL=paperless-angular.mjs.map