@paperless/angular 0.1.0-alpha.438 → 0.1.0-alpha.440

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 (86) hide show
  1. package/esm2020/lib/base/form.component.mjs +105 -0
  2. package/esm2020/lib/base/upload.component.mjs +57 -0
  3. package/esm2020/lib/base/value-accessor.mjs +42 -0
  4. package/esm2020/lib/directives/p-datepicker.directive.mjs +37 -0
  5. package/esm2020/lib/directives/p-page-size-select.directive.mjs +42 -0
  6. package/esm2020/lib/directives/p-pagination.directive.mjs +42 -0
  7. package/esm2020/lib/directives/p-select.directive.mjs +37 -0
  8. package/{esm2022 → esm2020}/lib/modules/overlay/overlay.module.mjs +14 -14
  9. package/esm2020/lib/modules/overlay/overlay.ref.mjs +12 -0
  10. package/esm2020/lib/modules/overlay/services/overlay.service.mjs +74 -0
  11. package/esm2020/lib/modules/table/base/table.component.mjs +201 -0
  12. package/esm2020/lib/modules/table/components/table/table.component.mjs +679 -0
  13. package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +197 -0
  14. package/esm2020/lib/modules/table/components/table-column/table-column.component.mjs +37 -0
  15. package/{esm2022 → esm2020}/lib/modules/table/directives/p-table-custom-filter.directive.mjs +3 -3
  16. package/{esm2022 → esm2020}/lib/modules/table/directives/p-table-filter-modal.directive.mjs +3 -3
  17. package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +52 -0
  18. package/esm2020/lib/modules/table/directives/p-table-header.directive.mjs +60 -0
  19. package/esm2020/lib/modules/table/directives/p-table-ngx.directive.mjs +121 -0
  20. package/esm2020/lib/modules/table/directives/p-table.directive.mjs +78 -0
  21. package/{esm2022 → esm2020}/lib/modules/table/table.module.mjs +4 -4
  22. package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +36 -0
  23. package/esm2020/lib/modules/toast/directives/toast.directive.mjs +51 -0
  24. package/esm2020/lib/modules/toast/services/toast.service.mjs +53 -0
  25. package/{esm2022 → esm2020}/lib/modules/toast/toast.module.mjs +4 -4
  26. package/{esm2022 → esm2020}/lib/paperless.module.mjs +4 -4
  27. package/esm2020/lib/pipes/currency.pipe.mjs +20 -0
  28. package/esm2020/lib/pipes/date.pipe.mjs +20 -0
  29. package/esm2020/lib/pipes/safe.pipe.mjs +33 -0
  30. package/esm2020/lib/stencil/components.mjs +1440 -0
  31. package/esm2020/lib/stencil.module.mjs +17 -0
  32. package/fesm2015/paperless-angular.mjs +3703 -0
  33. package/fesm2015/paperless-angular.mjs.map +1 -0
  34. package/{fesm2022 → fesm2020}/paperless-angular.mjs +485 -684
  35. package/fesm2020/paperless-angular.mjs.map +1 -0
  36. package/package.json +12 -6
  37. package/esm2022/lib/base/form.component.mjs +0 -103
  38. package/esm2022/lib/base/upload.component.mjs +0 -58
  39. package/esm2022/lib/base/value-accessor.mjs +0 -44
  40. package/esm2022/lib/directives/p-datepicker.directive.mjs +0 -37
  41. package/esm2022/lib/directives/p-page-size-select.directive.mjs +0 -42
  42. package/esm2022/lib/directives/p-pagination.directive.mjs +0 -42
  43. package/esm2022/lib/directives/p-select.directive.mjs +0 -37
  44. package/esm2022/lib/modules/overlay/overlay.ref.mjs +0 -14
  45. package/esm2022/lib/modules/overlay/services/overlay.service.mjs +0 -77
  46. package/esm2022/lib/modules/table/base/table.component.mjs +0 -203
  47. package/esm2022/lib/modules/table/components/table/table.component.mjs +0 -730
  48. package/esm2022/lib/modules/table/components/table-cell/table-cell.component.mjs +0 -215
  49. package/esm2022/lib/modules/table/components/table-column/table-column.component.mjs +0 -40
  50. package/esm2022/lib/modules/table/directives/p-table-footer.directive.mjs +0 -52
  51. package/esm2022/lib/modules/table/directives/p-table-header.directive.mjs +0 -60
  52. package/esm2022/lib/modules/table/directives/p-table-ngx.directive.mjs +0 -122
  53. package/esm2022/lib/modules/table/directives/p-table.directive.mjs +0 -78
  54. package/esm2022/lib/modules/toast/components/toast-container/toast-container.component.mjs +0 -39
  55. package/esm2022/lib/modules/toast/directives/toast.directive.mjs +0 -51
  56. package/esm2022/lib/modules/toast/services/toast.service.mjs +0 -51
  57. package/esm2022/lib/pipes/currency.pipe.mjs +0 -21
  58. package/esm2022/lib/pipes/date.pipe.mjs +0 -21
  59. package/esm2022/lib/pipes/safe.pipe.mjs +0 -34
  60. package/esm2022/lib/stencil/components.mjs +0 -1554
  61. package/esm2022/lib/stencil.module.mjs +0 -17
  62. package/fesm2022/paperless-angular.mjs.map +0 -1
  63. /package/{esm2022 → esm2020}/lib/animations/fade.mjs +0 -0
  64. /package/{esm2022 → esm2020}/lib/animations/index.mjs +0 -0
  65. /package/{esm2022 → esm2020}/lib/animations/slide.mjs +0 -0
  66. /package/{esm2022 → esm2020}/lib/base/index.mjs +0 -0
  67. /package/{esm2022 → esm2020}/lib/directives/index.mjs +0 -0
  68. /package/{esm2022 → esm2020}/lib/modules/index.mjs +0 -0
  69. /package/{esm2022 → esm2020}/lib/modules/overlay/index.mjs +0 -0
  70. /package/{esm2022 → esm2020}/lib/modules/overlay/services/index.mjs +0 -0
  71. /package/{esm2022 → esm2020}/lib/modules/table/base/index.mjs +0 -0
  72. /package/{esm2022 → esm2020}/lib/modules/table/components/index.mjs +0 -0
  73. /package/{esm2022 → esm2020}/lib/modules/table/components/table/constants.mjs +0 -0
  74. /package/{esm2022 → esm2020}/lib/modules/table/directives/index.mjs +0 -0
  75. /package/{esm2022 → esm2020}/lib/modules/table/index.mjs +0 -0
  76. /package/{esm2022 → esm2020}/lib/modules/table/utils.mjs +0 -0
  77. /package/{esm2022 → esm2020}/lib/modules/toast/components/index.mjs +0 -0
  78. /package/{esm2022 → esm2020}/lib/modules/toast/directives/index.mjs +0 -0
  79. /package/{esm2022 → esm2020}/lib/modules/toast/index.mjs +0 -0
  80. /package/{esm2022 → esm2020}/lib/modules/toast/services/index.mjs +0 -0
  81. /package/{esm2022 → esm2020}/lib/modules/toast/types.mjs +0 -0
  82. /package/{esm2022 → esm2020}/lib/pipes/index.mjs +0 -0
  83. /package/{esm2022 → esm2020}/lib/stencil/angular-component-lib/utils.mjs +0 -0
  84. /package/{esm2022 → esm2020}/lib/stencil/index.mjs +0 -0
  85. /package/{esm2022 → esm2020}/paperless-angular.mjs +0 -0
  86. /package/{esm2022 → esm2020}/public-api.mjs +0 -0
@@ -0,0 +1,3703 @@
1
+ import { trigger, transition, style, animate } from '@angular/animations';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, EventEmitter, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, NgModule, Injector, Injectable, HostBinding, TemplateRef, ContentChild, Host, ContentChildren, Pipe } from '@angular/core';
4
+ import { FormControl, FormGroup, FormArray, NG_VALUE_ACCESSOR } from '@angular/forms';
5
+ import * as i1$1 from '@angular/common';
6
+ import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
7
+ import { __decorate } from 'tslib';
8
+ import { fromEvent, Subject, timer, BehaviorSubject, distinctUntilChanged, map as map$1 } from 'rxjs';
9
+ import { ObserversModule } from '@angular/cdk/observers';
10
+ import * as i1 from '@angular/cdk/overlay';
11
+ import { OverlayModule as OverlayModule$1, OverlayConfig } from '@angular/cdk/overlay';
12
+ import { PlatformModule } from '@angular/cdk/platform';
13
+ import { PortalModule, CdkPortal, ComponentPortal } from '@angular/cdk/portal';
14
+ import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
15
+ import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
16
+ import { objectGetByPath } from '@paperless/core';
17
+ import { v4 } from 'uuid';
18
+ import * as i1$2 from '@angular/platform-browser';
19
+
20
+ const FADE_IN = trigger('pFadeIn', [
21
+ transition(':enter', [
22
+ style({
23
+ opacity: 0,
24
+ }),
25
+ animate('.2s ease-in', style({
26
+ opacity: 1,
27
+ })),
28
+ ]),
29
+ ]);
30
+ const FADE_OUT = trigger('pFadeOut', [
31
+ transition(':leave', [
32
+ style({
33
+ opacity: 1,
34
+ }),
35
+ animate('.2s ease-out', style({
36
+ opacity: 0,
37
+ })),
38
+ ]),
39
+ ]);
40
+
41
+ const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
42
+ transition(':enter', [
43
+ style({ transform: 'translateY(50%)', opacity: 0 }),
44
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
45
+ ]),
46
+ transition(':leave', [
47
+ animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
48
+ ]),
49
+ ]);
50
+ const SLIDE_IN_TOP_OUT_BOTTOM = trigger('pSlideInBottomOutTop', [
51
+ transition(':enter', [
52
+ style({ transform: 'translateY(-100%)', opacity: 0 }),
53
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
54
+ ]),
55
+ transition(':leave', [
56
+ animate('200ms ease-in', style({ transform: 'translateY(50%)', opacity: 0 })),
57
+ ]),
58
+ ]);
59
+
60
+ class BaseFormComponent {
61
+ constructor() {
62
+ this.markedDirty = false;
63
+ }
64
+ scrollToFirstError() {
65
+ const invalidInputs = Array.from(document.getElementsByClassName('ng-invalid'))
66
+ .filter((e) => { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.nodeName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== 'form'; })
67
+ .sort((a, b) => a.scrollTop - b.scrollTop);
68
+ const first = invalidInputs[0];
69
+ if (first) {
70
+ first.scrollIntoView({
71
+ behavior: 'smooth',
72
+ block: 'center',
73
+ inline: 'center',
74
+ });
75
+ }
76
+ }
77
+ markControlDirty(control) {
78
+ if (control instanceof FormControl) {
79
+ control.markAsDirty({ onlySelf: true });
80
+ control.markAsTouched({ onlySelf: true });
81
+ }
82
+ else if (control instanceof FormGroup) {
83
+ control.markAsDirty();
84
+ control.markAsTouched();
85
+ this.markAllDirty(control);
86
+ }
87
+ else if (control instanceof FormArray) {
88
+ control.markAsDirty();
89
+ control.markAsTouched();
90
+ for (const child of control === null || control === void 0 ? void 0 : control.controls) {
91
+ this.markControlDirty(child);
92
+ }
93
+ }
94
+ control.updateValueAndValidity();
95
+ }
96
+ markAllDirty(formGroup) {
97
+ this.markedDirty = true;
98
+ for (const field of Object.keys(formGroup.controls)) {
99
+ const control = formGroup.get(field);
100
+ this.markControlDirty(control);
101
+ }
102
+ }
103
+ getControlError(control) {
104
+ if (!this.hasControlError(control)) {
105
+ return;
106
+ }
107
+ return this.firstControlError(control);
108
+ }
109
+ hasControlError(control, showChildErrors = true) {
110
+ return ((control === null || control === void 0 ? void 0 : control.dirty) && this.firstControlError(control, showChildErrors));
111
+ }
112
+ firstControlError(control, showChildErrors = true) {
113
+ if (control instanceof FormGroup && showChildErrors) {
114
+ const errors = Object.keys(control.controls)
115
+ .map((key) => this.firstControlError(control.controls[key]))
116
+ .filter((val) => !!val);
117
+ return errors[0];
118
+ }
119
+ if (!(control === null || control === void 0 ? void 0 : control.errors)) {
120
+ return;
121
+ }
122
+ const keys = Object.keys(control.errors);
123
+ let err;
124
+ for (const key of keys) {
125
+ if (control.errors[key]) {
126
+ err = key;
127
+ break;
128
+ }
129
+ }
130
+ return err;
131
+ }
132
+ resetControl(control) {
133
+ control.setErrors(null);
134
+ control.reset();
135
+ control.markAsPristine();
136
+ if (control instanceof FormGroup) {
137
+ this.resetForm(control);
138
+ }
139
+ else if (control instanceof FormArray) {
140
+ for (const child of control === null || control === void 0 ? void 0 : control.controls) {
141
+ this.resetControl(child);
142
+ }
143
+ }
144
+ }
145
+ resetForm(formGroup) {
146
+ for (const field of Object.keys(formGroup.controls)) {
147
+ const control = formGroup.get(field);
148
+ this.resetControl(control);
149
+ }
150
+ this.markedDirty = false;
151
+ }
152
+ }
153
+ BaseFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
154
+ BaseFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BaseFormComponent, selector: "ng-component", ngImport: i0, template: ``, isInline: true });
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseFormComponent, decorators: [{
156
+ type: Component,
157
+ args: [{
158
+ template: ``,
159
+ }]
160
+ }] });
161
+
162
+ class BaseUploadComponent {
163
+ constructor() {
164
+ this.uploaded = false;
165
+ this.fileChange = new EventEmitter();
166
+ this._loading = false;
167
+ }
168
+ set loading(value) {
169
+ this._loading = value;
170
+ }
171
+ get loading() {
172
+ return this._loading;
173
+ }
174
+ onChange($event) {
175
+ var _a;
176
+ const target = $event.target;
177
+ const file = (_a = target.files) === null || _a === void 0 ? void 0 : _a[0];
178
+ if (file) {
179
+ this._loading = true;
180
+ const reader = new FileReader();
181
+ 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); };
182
+ reader.readAsDataURL(file);
183
+ }
184
+ }
185
+ onLoad(file, result) {
186
+ var _a;
187
+ this.fileChange.next({
188
+ fileId: this.fileId,
189
+ result,
190
+ file,
191
+ });
192
+ if ((_a = this.uploaderInput) === null || _a === void 0 ? void 0 : _a.nativeElement) {
193
+ this.uploaderInput.nativeElement.value = '';
194
+ }
195
+ this.file = file;
196
+ this._loading = false;
197
+ }
198
+ }
199
+ BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
200
+ BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseUploadComponent, decorators: [{
202
+ type: Component,
203
+ args: [{
204
+ template: ``,
205
+ }]
206
+ }], propDecorators: { fileId: [{
207
+ type: Input
208
+ }], uploaded: [{
209
+ type: Input
210
+ }], loading: [{
211
+ type: Input
212
+ }], fileChange: [{
213
+ type: Output
214
+ }], uploaderInput: [{
215
+ type: ViewChild,
216
+ args: ['uploaderInput']
217
+ }] } });
218
+
219
+ class BaseValueAccessor {
220
+ constructor(el) {
221
+ this.el = el;
222
+ this.onChange = () => {
223
+ /**/
224
+ };
225
+ this.onTouched = () => {
226
+ /**/
227
+ };
228
+ }
229
+ writeValue(value) {
230
+ this.el.nativeElement.value = this.lastValue =
231
+ value == null ? '' : value;
232
+ }
233
+ handleChangeEvent(value) {
234
+ if (value !== this.lastValue) {
235
+ this.lastValue = value;
236
+ this.onChange(value);
237
+ }
238
+ }
239
+ registerOnChange(fn) {
240
+ this.onChange = fn;
241
+ }
242
+ registerOnTouched(fn) {
243
+ this.onTouched = fn;
244
+ }
245
+ _handleBlurEvent() {
246
+ this.onTouched();
247
+ }
248
+ }
249
+ BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
250
+ BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseValueAccessor, decorators: [{
252
+ type: Directive,
253
+ args: [{}]
254
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
255
+ type: HostListener,
256
+ args: ['focusout']
257
+ }] } });
258
+
259
+ class DatepickerDirective extends BaseValueAccessor {
260
+ constructor(el) {
261
+ super(el);
262
+ }
263
+ writeValue(value) {
264
+ this.el.nativeElement.value = this.lastValue = value === null ? JSON.parse(value) : value;
265
+ }
266
+ }
267
+ DatepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DatepickerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
268
+ DatepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: DatepickerDirective, selector: "p-datepicker", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
269
+ {
270
+ provide: NG_VALUE_ACCESSOR,
271
+ useExisting: DatepickerDirective,
272
+ multi: true,
273
+ },
274
+ ], usesInheritance: true, ngImport: i0 });
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DatepickerDirective, decorators: [{
276
+ type: Directive,
277
+ args: [{
278
+ selector: 'p-datepicker',
279
+ host: {
280
+ '(valueChange)': 'handleChangeEvent($event.detail)',
281
+ },
282
+ providers: [
283
+ {
284
+ provide: NG_VALUE_ACCESSOR,
285
+ useExisting: DatepickerDirective,
286
+ multi: true,
287
+ },
288
+ ],
289
+ }]
290
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
291
+
292
+ class PageSizeSelectDirective extends BaseValueAccessor {
293
+ constructor(el) {
294
+ super(el);
295
+ }
296
+ writeValue(value) {
297
+ this.el.nativeElement.page = this.lastValue =
298
+ value == null ? 12 : value;
299
+ }
300
+ registerOnChange(fn) {
301
+ super.registerOnChange((value) => fn(parseInt(value, 10)));
302
+ }
303
+ }
304
+ PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
305
+ PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: PageSizeSelectDirective, selector: "p-page-size-select", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
306
+ {
307
+ provide: NG_VALUE_ACCESSOR,
308
+ useExisting: PageSizeSelectDirective,
309
+ multi: true,
310
+ },
311
+ ], usesInheritance: true, ngImport: i0 });
312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PageSizeSelectDirective, decorators: [{
313
+ type: Directive,
314
+ args: [{
315
+ /* tslint:disable-next-line:directive-selector */
316
+ selector: 'p-page-size-select',
317
+ host: {
318
+ '(sizeChange)': 'handleChangeEvent($event.detail)',
319
+ },
320
+ providers: [
321
+ {
322
+ provide: NG_VALUE_ACCESSOR,
323
+ useExisting: PageSizeSelectDirective,
324
+ multi: true,
325
+ },
326
+ ],
327
+ }]
328
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
329
+
330
+ class PaginationDirective extends BaseValueAccessor {
331
+ constructor(el) {
332
+ super(el);
333
+ }
334
+ writeValue(value) {
335
+ this.el.nativeElement.page = this.lastValue =
336
+ value == null ? 1 : value;
337
+ }
338
+ registerOnChange(fn) {
339
+ super.registerOnChange((value) => fn(parseInt(value, 10)));
340
+ }
341
+ }
342
+ PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
343
+ PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
344
+ {
345
+ provide: NG_VALUE_ACCESSOR,
346
+ useExisting: PaginationDirective,
347
+ multi: true,
348
+ },
349
+ ], usesInheritance: true, ngImport: i0 });
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationDirective, decorators: [{
351
+ type: Directive,
352
+ args: [{
353
+ /* tslint:disable-next-line:directive-selector */
354
+ selector: 'p-pagination',
355
+ host: {
356
+ '(pageChange)': 'handleChangeEvent($event.detail)',
357
+ },
358
+ providers: [
359
+ {
360
+ provide: NG_VALUE_ACCESSOR,
361
+ useExisting: PaginationDirective,
362
+ multi: true,
363
+ },
364
+ ],
365
+ }]
366
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
367
+
368
+ class SelectDirective extends BaseValueAccessor {
369
+ constructor(el) {
370
+ super(el);
371
+ }
372
+ writeValue(value) {
373
+ this.el.nativeElement.value = this.lastValue = value;
374
+ }
375
+ }
376
+ SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
377
+ SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SelectDirective, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
378
+ {
379
+ provide: NG_VALUE_ACCESSOR,
380
+ useExisting: SelectDirective,
381
+ multi: true,
382
+ },
383
+ ], usesInheritance: true, ngImport: i0 });
384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectDirective, decorators: [{
385
+ type: Directive,
386
+ args: [{
387
+ selector: 'p-select',
388
+ host: {
389
+ '(valueChange)': 'handleChangeEvent($event.detail)',
390
+ },
391
+ providers: [
392
+ {
393
+ provide: NG_VALUE_ACCESSOR,
394
+ useExisting: SelectDirective,
395
+ multi: true,
396
+ },
397
+ ],
398
+ }]
399
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
400
+
401
+ const DIRECTIVES$1 = [
402
+ PaginationDirective,
403
+ PageSizeSelectDirective,
404
+ SelectDirective,
405
+ DatepickerDirective,
406
+ ];
407
+
408
+ /* eslint-disable */
409
+ const proxyInputs = (Cmp, inputs) => {
410
+ const Prototype = Cmp.prototype;
411
+ inputs.forEach((item) => {
412
+ Object.defineProperty(Prototype, item, {
413
+ get() {
414
+ return this.el[item];
415
+ },
416
+ set(val) {
417
+ this.z.runOutsideAngular(() => (this.el[item] = val));
418
+ },
419
+ });
420
+ });
421
+ };
422
+ const proxyMethods = (Cmp, methods) => {
423
+ const Prototype = Cmp.prototype;
424
+ methods.forEach((methodName) => {
425
+ Prototype[methodName] = function () {
426
+ const args = arguments;
427
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
428
+ };
429
+ });
430
+ };
431
+ const proxyOutputs = (instance, el, events) => {
432
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
433
+ };
434
+ const defineCustomElement = (tagName, customElement) => {
435
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
436
+ customElements.define(tagName, customElement);
437
+ }
438
+ };
439
+ // tslint:disable-next-line: only-arrow-functions
440
+ function ProxyCmp(opts) {
441
+ const decorator = function (cls) {
442
+ const { defineCustomElementFn, inputs, methods } = opts;
443
+ if (defineCustomElementFn !== undefined) {
444
+ defineCustomElementFn();
445
+ }
446
+ if (inputs) {
447
+ proxyInputs(cls, inputs);
448
+ }
449
+ if (methods) {
450
+ proxyMethods(cls, methods);
451
+ }
452
+ return cls;
453
+ };
454
+ return decorator;
455
+ }
456
+
457
+ let PAccordion = class PAccordion {
458
+ constructor(c, r, z) {
459
+ this.z = z;
460
+ c.detach();
461
+ this.el = r.nativeElement;
462
+ proxyOutputs(this, this.el, ['isOpen']);
463
+ }
464
+ };
465
+ PAccordion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
466
+ PAccordion.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
467
+ PAccordion = __decorate([
468
+ ProxyCmp({
469
+ inputs: ['closeable', 'header', 'open', 'openable']
470
+ })
471
+ ], PAccordion);
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAccordion, decorators: [{
473
+ type: Component,
474
+ args: [{
475
+ selector: 'p-accordion',
476
+ changeDetection: ChangeDetectionStrategy.OnPush,
477
+ template: '<ng-content></ng-content>',
478
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
479
+ inputs: ['closeable', 'header', 'open', 'openable'],
480
+ }]
481
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
482
+ let PAttachment = class PAttachment {
483
+ constructor(c, r, z) {
484
+ this.z = z;
485
+ c.detach();
486
+ this.el = r.nativeElement;
487
+ proxyOutputs(this, this.el, ['download', 'delete']);
488
+ }
489
+ };
490
+ PAttachment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAttachment, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
491
+ PAttachment.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PAttachment, selector: "p-attachment", inputs: { downloading: "downloading", error: "error", loading: "loading", mode: "mode" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
492
+ PAttachment = __decorate([
493
+ ProxyCmp({
494
+ inputs: ['downloading', 'error', 'loading', 'mode']
495
+ })
496
+ ], PAttachment);
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAttachment, decorators: [{
498
+ type: Component,
499
+ args: [{
500
+ selector: 'p-attachment',
501
+ changeDetection: ChangeDetectionStrategy.OnPush,
502
+ template: '<ng-content></ng-content>',
503
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
504
+ inputs: ['downloading', 'error', 'loading', 'mode'],
505
+ }]
506
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
507
+ let PAvatar = class PAvatar {
508
+ constructor(c, r, z) {
509
+ this.z = z;
510
+ c.detach();
511
+ this.el = r.nativeElement;
512
+ }
513
+ };
514
+ PAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
515
+ PAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
516
+ PAvatar = __decorate([
517
+ ProxyCmp({
518
+ inputs: ['defaultImage', 'size', 'src', 'variant']
519
+ })
520
+ ], PAvatar);
521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAvatar, decorators: [{
522
+ type: Component,
523
+ args: [{
524
+ selector: 'p-avatar',
525
+ changeDetection: ChangeDetectionStrategy.OnPush,
526
+ template: '<ng-content></ng-content>',
527
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
528
+ inputs: ['defaultImage', 'size', 'src', 'variant'],
529
+ }]
530
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
531
+ let PAvatarGroup = class PAvatarGroup {
532
+ constructor(c, r, z) {
533
+ this.z = z;
534
+ c.detach();
535
+ this.el = r.nativeElement;
536
+ }
537
+ };
538
+ PAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAvatarGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
539
+ PAvatarGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PAvatarGroup, selector: "p-avatar-group", inputs: { extra: "extra" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
540
+ PAvatarGroup = __decorate([
541
+ ProxyCmp({
542
+ inputs: ['extra']
543
+ })
544
+ ], PAvatarGroup);
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PAvatarGroup, decorators: [{
546
+ type: Component,
547
+ args: [{
548
+ selector: 'p-avatar-group',
549
+ changeDetection: ChangeDetectionStrategy.OnPush,
550
+ template: '<ng-content></ng-content>',
551
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
552
+ inputs: ['extra'],
553
+ }]
554
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
555
+ let PBackdrop = class PBackdrop {
556
+ constructor(c, r, z) {
557
+ this.z = z;
558
+ c.detach();
559
+ this.el = r.nativeElement;
560
+ proxyOutputs(this, this.el, ['clicked']);
561
+ }
562
+ };
563
+ PBackdrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PBackdrop, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
564
+ PBackdrop.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PBackdrop, selector: "p-backdrop", inputs: { applyBlur: "applyBlur", closing: "closing", scrollLock: "scrollLock", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
565
+ PBackdrop = __decorate([
566
+ ProxyCmp({
567
+ inputs: ['applyBlur', 'closing', 'scrollLock', 'variant']
568
+ })
569
+ ], PBackdrop);
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PBackdrop, decorators: [{
571
+ type: Component,
572
+ args: [{
573
+ selector: 'p-backdrop',
574
+ changeDetection: ChangeDetectionStrategy.OnPush,
575
+ template: '<ng-content></ng-content>',
576
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
577
+ inputs: ['applyBlur', 'closing', 'scrollLock', 'variant'],
578
+ }]
579
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
580
+ let PButton = class PButton {
581
+ constructor(c, r, z) {
582
+ this.z = z;
583
+ c.detach();
584
+ this.el = r.nativeElement;
585
+ proxyOutputs(this, this.el, ['onClick']);
586
+ }
587
+ };
588
+ PButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
589
+ PButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
590
+ PButton = __decorate([
591
+ ProxyCmp({
592
+ inputs: ['chevron', 'chevronPosition', 'disabled', 'href', 'icon', 'iconFlip', 'iconOnly', 'iconPosition', 'iconRotate', 'inheritText', 'loading', 'size', 'target', 'variant']
593
+ })
594
+ ], PButton);
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PButton, decorators: [{
596
+ type: Component,
597
+ args: [{
598
+ selector: 'p-button',
599
+ changeDetection: ChangeDetectionStrategy.OnPush,
600
+ template: '<ng-content></ng-content>',
601
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
602
+ inputs: ['chevron', 'chevronPosition', 'disabled', 'href', 'icon', 'iconFlip', 'iconOnly', 'iconPosition', 'iconRotate', 'inheritText', 'loading', 'size', 'target', 'variant'],
603
+ }]
604
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
605
+ let PCalendar = class PCalendar {
606
+ constructor(c, r, z) {
607
+ this.z = z;
608
+ c.detach();
609
+ this.el = r.nativeElement;
610
+ proxyOutputs(this, this.el, ['valueChange']);
611
+ }
612
+ };
613
+ PCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCalendar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
614
+ PCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PCalendar, selector: "p-calendar", inputs: { disableWeekends: "disableWeekends", disabledDates: "disabledDates", maxDate: "maxDate", minDate: "minDate", mode: "mode", preselectToday: "preselectToday", value: "value", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
615
+ PCalendar = __decorate([
616
+ ProxyCmp({
617
+ inputs: ['disableWeekends', 'disabledDates', 'maxDate', 'minDate', 'mode', 'preselectToday', 'value', 'variant']
618
+ })
619
+ ], PCalendar);
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCalendar, decorators: [{
621
+ type: Component,
622
+ args: [{
623
+ selector: 'p-calendar',
624
+ changeDetection: ChangeDetectionStrategy.OnPush,
625
+ template: '<ng-content></ng-content>',
626
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
627
+ inputs: ['disableWeekends', 'disabledDates', 'maxDate', 'minDate', 'mode', 'preselectToday', 'value', 'variant'],
628
+ }]
629
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
630
+ let PCardBody = class PCardBody {
631
+ constructor(c, r, z) {
632
+ this.z = z;
633
+ c.detach();
634
+ this.el = r.nativeElement;
635
+ }
636
+ };
637
+ PCardBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
638
+ PCardBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PCardBody, selector: "p-card-body", inputs: { inheritText: "inheritText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
639
+ PCardBody = __decorate([
640
+ ProxyCmp({
641
+ inputs: ['inheritText']
642
+ })
643
+ ], PCardBody);
644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardBody, decorators: [{
645
+ type: Component,
646
+ args: [{
647
+ selector: 'p-card-body',
648
+ changeDetection: ChangeDetectionStrategy.OnPush,
649
+ template: '<ng-content></ng-content>',
650
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
651
+ inputs: ['inheritText'],
652
+ }]
653
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
654
+ let PCardContainer = class PCardContainer {
655
+ constructor(c, r, z) {
656
+ this.z = z;
657
+ c.detach();
658
+ this.el = r.nativeElement;
659
+ }
660
+ };
661
+ PCardContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
662
+ PCardContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PCardContainer, selector: "p-card-container", inputs: { hoverable: "hoverable", shadow: "shadow" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
663
+ PCardContainer = __decorate([
664
+ ProxyCmp({
665
+ inputs: ['hoverable', 'shadow']
666
+ })
667
+ ], PCardContainer);
668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardContainer, decorators: [{
669
+ type: Component,
670
+ args: [{
671
+ selector: 'p-card-container',
672
+ changeDetection: ChangeDetectionStrategy.OnPush,
673
+ template: '<ng-content></ng-content>',
674
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
675
+ inputs: ['hoverable', 'shadow'],
676
+ }]
677
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
678
+ let PCardHeader = class PCardHeader {
679
+ constructor(c, r, z) {
680
+ this.z = z;
681
+ c.detach();
682
+ this.el = r.nativeElement;
683
+ }
684
+ };
685
+ PCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
686
+ PCardHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PCardHeader, selector: "p-card-header", inputs: { arrow: "arrow", header: "header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
687
+ PCardHeader = __decorate([
688
+ ProxyCmp({
689
+ inputs: ['arrow', 'header']
690
+ })
691
+ ], PCardHeader);
692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCardHeader, decorators: [{
693
+ type: Component,
694
+ args: [{
695
+ selector: 'p-card-header',
696
+ changeDetection: ChangeDetectionStrategy.OnPush,
697
+ template: '<ng-content></ng-content>',
698
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
699
+ inputs: ['arrow', 'header'],
700
+ }]
701
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
702
+ let PContentSlider = class PContentSlider {
703
+ constructor(c, r, z) {
704
+ this.z = z;
705
+ c.detach();
706
+ this.el = r.nativeElement;
707
+ }
708
+ };
709
+ PContentSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PContentSlider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
710
+ PContentSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
711
+ PContentSlider = __decorate([
712
+ ProxyCmp({
713
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator']
714
+ })
715
+ ], PContentSlider);
716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PContentSlider, decorators: [{
717
+ type: Component,
718
+ args: [{
719
+ selector: 'p-content-slider',
720
+ changeDetection: ChangeDetectionStrategy.OnPush,
721
+ template: '<ng-content></ng-content>',
722
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
723
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator'],
724
+ }]
725
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
726
+ let PCounter = class PCounter {
727
+ constructor(c, r, z) {
728
+ this.z = z;
729
+ c.detach();
730
+ this.el = r.nativeElement;
731
+ }
732
+ };
733
+ PCounter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
734
+ PCounter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PCounter, selector: "p-counter", inputs: { size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
735
+ PCounter = __decorate([
736
+ ProxyCmp({
737
+ inputs: ['size', 'variant']
738
+ })
739
+ ], PCounter);
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCounter, decorators: [{
741
+ type: Component,
742
+ args: [{
743
+ selector: 'p-counter',
744
+ changeDetection: ChangeDetectionStrategy.OnPush,
745
+ template: '<ng-content></ng-content>',
746
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
747
+ inputs: ['size', 'variant'],
748
+ }]
749
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
750
+ let PDatepicker = class PDatepicker {
751
+ constructor(c, r, z) {
752
+ this.z = z;
753
+ c.detach();
754
+ this.el = r.nativeElement;
755
+ proxyOutputs(this, this.el, ['valueChange']);
756
+ }
757
+ };
758
+ PDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDatepicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
759
+ PDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDatepicker, selector: "p-datepicker", inputs: { disableWeekends: "disableWeekends", disabled: "disabled", disabledDates: "disabledDates", error: "error", format: "format", helper: "helper", label: "label", maxDate: "maxDate", minDate: "minDate", mode: "mode", placeholder: "placeholder", prefix: "prefix", preselectToday: "preselectToday", size: "size", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
760
+ PDatepicker = __decorate([
761
+ ProxyCmp({
762
+ inputs: ['disableWeekends', 'disabled', 'disabledDates', 'error', 'format', 'helper', 'label', 'maxDate', 'minDate', 'mode', 'placeholder', 'prefix', 'preselectToday', 'size', 'value']
763
+ })
764
+ ], PDatepicker);
765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDatepicker, decorators: [{
766
+ type: Component,
767
+ args: [{
768
+ selector: 'p-datepicker',
769
+ changeDetection: ChangeDetectionStrategy.OnPush,
770
+ template: '<ng-content></ng-content>',
771
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
772
+ inputs: ['disableWeekends', 'disabled', 'disabledDates', 'error', 'format', 'helper', 'label', 'maxDate', 'minDate', 'mode', 'placeholder', 'prefix', 'preselectToday', 'size', 'value'],
773
+ }]
774
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
775
+ let PDivider = class PDivider {
776
+ constructor(c, r, z) {
777
+ this.z = z;
778
+ c.detach();
779
+ this.el = r.nativeElement;
780
+ }
781
+ };
782
+ PDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDivider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
783
+ PDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDivider, selector: "p-divider", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
784
+ PDivider = __decorate([
785
+ ProxyCmp({})
786
+ ], PDivider);
787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDivider, decorators: [{
788
+ type: Component,
789
+ args: [{
790
+ selector: 'p-divider',
791
+ changeDetection: ChangeDetectionStrategy.OnPush,
792
+ template: '<ng-content></ng-content>',
793
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
794
+ inputs: [],
795
+ }]
796
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
797
+ let PDrawer = class PDrawer {
798
+ constructor(c, r, z) {
799
+ this.z = z;
800
+ c.detach();
801
+ this.el = r.nativeElement;
802
+ proxyOutputs(this, this.el, ['closeClicked', 'closed']);
803
+ }
804
+ };
805
+ PDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
806
+ PDrawer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDrawer, selector: "p-drawer", inputs: { applyBlur: "applyBlur", backdropClickClose: "backdropClickClose", canClose: "canClose", header: "header", scrollLock: "scrollLock", show: "show", showClose: "showClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
807
+ PDrawer = __decorate([
808
+ ProxyCmp({
809
+ inputs: ['applyBlur', 'backdropClickClose', 'canClose', 'header', 'scrollLock', 'show', 'showClose']
810
+ })
811
+ ], PDrawer);
812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawer, decorators: [{
813
+ type: Component,
814
+ args: [{
815
+ selector: 'p-drawer',
816
+ changeDetection: ChangeDetectionStrategy.OnPush,
817
+ template: '<ng-content></ng-content>',
818
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
819
+ inputs: ['applyBlur', 'backdropClickClose', 'canClose', 'header', 'scrollLock', 'show', 'showClose'],
820
+ }]
821
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
822
+ let PDrawerBody = class PDrawerBody {
823
+ constructor(c, r, z) {
824
+ this.z = z;
825
+ c.detach();
826
+ this.el = r.nativeElement;
827
+ }
828
+ };
829
+ PDrawerBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
830
+ PDrawerBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDrawerBody, selector: "p-drawer-body", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
831
+ PDrawerBody = __decorate([
832
+ ProxyCmp({
833
+ inputs: ['variant']
834
+ })
835
+ ], PDrawerBody);
836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerBody, decorators: [{
837
+ type: Component,
838
+ args: [{
839
+ selector: 'p-drawer-body',
840
+ changeDetection: ChangeDetectionStrategy.OnPush,
841
+ template: '<ng-content></ng-content>',
842
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
843
+ inputs: ['variant'],
844
+ }]
845
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
846
+ let PDrawerContainer = class PDrawerContainer {
847
+ constructor(c, r, z) {
848
+ this.z = z;
849
+ c.detach();
850
+ this.el = r.nativeElement;
851
+ }
852
+ };
853
+ PDrawerContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
854
+ PDrawerContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDrawerContainer, selector: "p-drawer-container", inputs: { closing: "closing" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
855
+ PDrawerContainer = __decorate([
856
+ ProxyCmp({
857
+ inputs: ['closing']
858
+ })
859
+ ], PDrawerContainer);
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerContainer, decorators: [{
861
+ type: Component,
862
+ args: [{
863
+ selector: 'p-drawer-container',
864
+ changeDetection: ChangeDetectionStrategy.OnPush,
865
+ template: '<ng-content></ng-content>',
866
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
867
+ inputs: ['closing'],
868
+ }]
869
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
870
+ let PDrawerHeader = class PDrawerHeader {
871
+ constructor(c, r, z) {
872
+ this.z = z;
873
+ c.detach();
874
+ this.el = r.nativeElement;
875
+ proxyOutputs(this, this.el, ['close']);
876
+ }
877
+ };
878
+ PDrawerHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
879
+ PDrawerHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDrawerHeader, selector: "p-drawer-header", inputs: { showClose: "showClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
880
+ PDrawerHeader = __decorate([
881
+ ProxyCmp({
882
+ inputs: ['showClose']
883
+ })
884
+ ], PDrawerHeader);
885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDrawerHeader, decorators: [{
886
+ type: Component,
887
+ args: [{
888
+ selector: 'p-drawer-header',
889
+ changeDetection: ChangeDetectionStrategy.OnPush,
890
+ template: '<ng-content></ng-content>',
891
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
892
+ inputs: ['showClose'],
893
+ }]
894
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
895
+ let PDropdown = class PDropdown {
896
+ constructor(c, r, z) {
897
+ this.z = z;
898
+ c.detach();
899
+ this.el = r.nativeElement;
900
+ proxyOutputs(this, this.el, ['isOpen']);
901
+ }
902
+ };
903
+ PDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
904
+ PDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDropdown, selector: "p-dropdown", inputs: { applyFullWidth: "applyFullWidth", applyMaxWidth: "applyMaxWidth", 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 });
905
+ PDropdown = __decorate([
906
+ ProxyCmp({
907
+ inputs: ['applyFullWidth', 'applyMaxWidth', 'calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy']
908
+ })
909
+ ], PDropdown);
910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdown, decorators: [{
911
+ type: Component,
912
+ args: [{
913
+ selector: 'p-dropdown',
914
+ changeDetection: ChangeDetectionStrategy.OnPush,
915
+ template: '<ng-content></ng-content>',
916
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
917
+ inputs: ['applyFullWidth', 'applyMaxWidth', 'calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy'],
918
+ }]
919
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
920
+ let PDropdownMenuContainer = class PDropdownMenuContainer {
921
+ constructor(c, r, z) {
922
+ this.z = z;
923
+ c.detach();
924
+ this.el = r.nativeElement;
925
+ }
926
+ };
927
+ PDropdownMenuContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdownMenuContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
928
+ PDropdownMenuContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PDropdownMenuContainer, selector: "p-dropdown-menu-container", inputs: { fullWidth: "fullWidth", maxWidth: "maxWidth" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
929
+ PDropdownMenuContainer = __decorate([
930
+ ProxyCmp({
931
+ inputs: ['fullWidth', 'maxWidth']
932
+ })
933
+ ], PDropdownMenuContainer);
934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdownMenuContainer, decorators: [{
935
+ type: Component,
936
+ args: [{
937
+ selector: 'p-dropdown-menu-container',
938
+ changeDetection: ChangeDetectionStrategy.OnPush,
939
+ template: '<ng-content></ng-content>',
940
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
941
+ inputs: ['fullWidth', 'maxWidth'],
942
+ }]
943
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
944
+ let PDropdownMenuItem = class PDropdownMenuItem {
945
+ constructor(c, r, z) {
946
+ this.z = z;
947
+ c.detach();
948
+ this.el = r.nativeElement;
949
+ }
950
+ };
951
+ PDropdownMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdownMenuItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
952
+ PDropdownMenuItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
953
+ PDropdownMenuItem = __decorate([
954
+ ProxyCmp({
955
+ inputs: ['active', 'enableHover', 'icon']
956
+ })
957
+ ], PDropdownMenuItem);
958
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PDropdownMenuItem, decorators: [{
959
+ type: Component,
960
+ args: [{
961
+ selector: 'p-dropdown-menu-item',
962
+ changeDetection: ChangeDetectionStrategy.OnPush,
963
+ template: '<ng-content></ng-content>',
964
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
965
+ inputs: ['active', 'enableHover', 'icon'],
966
+ }]
967
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
968
+ let PHelper = class PHelper {
969
+ constructor(c, r, z) {
970
+ this.z = z;
971
+ c.detach();
972
+ this.el = r.nativeElement;
973
+ }
974
+ };
975
+ PHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PHelper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
976
+ PHelper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PHelper, selector: "p-helper", inputs: { placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
977
+ PHelper = __decorate([
978
+ ProxyCmp({
979
+ inputs: ['placement']
980
+ })
981
+ ], PHelper);
982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PHelper, decorators: [{
983
+ type: Component,
984
+ args: [{
985
+ selector: 'p-helper',
986
+ changeDetection: ChangeDetectionStrategy.OnPush,
987
+ template: '<ng-content></ng-content>',
988
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
989
+ inputs: ['placement'],
990
+ }]
991
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
992
+ let PIcon = class PIcon {
993
+ constructor(c, r, z) {
994
+ this.z = z;
995
+ c.detach();
996
+ this.el = r.nativeElement;
997
+ }
998
+ };
999
+ PIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1000
+ PIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1001
+ PIcon = __decorate([
1002
+ ProxyCmp({
1003
+ inputs: ['flip', 'rotate', 'size', 'variant']
1004
+ })
1005
+ ], PIcon);
1006
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PIcon, decorators: [{
1007
+ type: Component,
1008
+ args: [{
1009
+ selector: 'p-icon',
1010
+ changeDetection: ChangeDetectionStrategy.OnPush,
1011
+ template: '<ng-content></ng-content>',
1012
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1013
+ inputs: ['flip', 'rotate', 'size', 'variant'],
1014
+ }]
1015
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1016
+ let PIllustration = class PIllustration {
1017
+ constructor(c, r, z) {
1018
+ this.z = z;
1019
+ c.detach();
1020
+ this.el = r.nativeElement;
1021
+ }
1022
+ };
1023
+ PIllustration.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PIllustration, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1024
+ PIllustration.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PIllustration, selector: "p-illustration", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1025
+ PIllustration = __decorate([
1026
+ ProxyCmp({
1027
+ inputs: ['variant']
1028
+ })
1029
+ ], PIllustration);
1030
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PIllustration, decorators: [{
1031
+ type: Component,
1032
+ args: [{
1033
+ selector: 'p-illustration',
1034
+ changeDetection: ChangeDetectionStrategy.OnPush,
1035
+ template: '<ng-content></ng-content>',
1036
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1037
+ inputs: ['variant'],
1038
+ }]
1039
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1040
+ let PInfoPanel = class PInfoPanel {
1041
+ constructor(c, r, z) {
1042
+ this.z = z;
1043
+ c.detach();
1044
+ this.el = r.nativeElement;
1045
+ }
1046
+ };
1047
+ PInfoPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInfoPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1048
+ PInfoPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1049
+ PInfoPanel = __decorate([
1050
+ ProxyCmp({
1051
+ inputs: ['closeable', 'content', 'header', 'variant']
1052
+ })
1053
+ ], PInfoPanel);
1054
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInfoPanel, decorators: [{
1055
+ type: Component,
1056
+ args: [{
1057
+ selector: 'p-info-panel',
1058
+ changeDetection: ChangeDetectionStrategy.OnPush,
1059
+ template: '<ng-content></ng-content>',
1060
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1061
+ inputs: ['closeable', 'content', 'header', 'variant'],
1062
+ }]
1063
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1064
+ let PInputError = class PInputError {
1065
+ constructor(c, r, z) {
1066
+ this.z = z;
1067
+ c.detach();
1068
+ this.el = r.nativeElement;
1069
+ }
1070
+ };
1071
+ PInputError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInputError, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1072
+ PInputError.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PInputError, selector: "p-input-error", inputs: { error: "error", forceShowTooltip: "forceShowTooltip" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1073
+ PInputError = __decorate([
1074
+ ProxyCmp({
1075
+ inputs: ['error', 'forceShowTooltip']
1076
+ })
1077
+ ], PInputError);
1078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInputError, decorators: [{
1079
+ type: Component,
1080
+ args: [{
1081
+ selector: 'p-input-error',
1082
+ changeDetection: ChangeDetectionStrategy.OnPush,
1083
+ template: '<ng-content></ng-content>',
1084
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1085
+ inputs: ['error', 'forceShowTooltip'],
1086
+ }]
1087
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1088
+ let PInputGroup = class PInputGroup {
1089
+ constructor(c, r, z) {
1090
+ this.z = z;
1091
+ c.detach();
1092
+ this.el = r.nativeElement;
1093
+ }
1094
+ };
1095
+ PInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInputGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1096
+ PInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PInputGroup, selector: "p-input-group", inputs: { disabled: "disabled", error: "error", focusMethod: "focusMethod", focused: "focused", helper: "helper", icon: "icon", iconFlip: "iconFlip", iconPosition: "iconPosition", iconRotate: "iconRotate", label: "label", prefix: "prefix", required: "required", size: "size", suffix: "suffix" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1097
+ PInputGroup = __decorate([
1098
+ ProxyCmp({
1099
+ inputs: ['disabled', 'error', 'focusMethod', 'focused', 'helper', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'label', 'prefix', 'required', 'size', 'suffix']
1100
+ })
1101
+ ], PInputGroup);
1102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PInputGroup, decorators: [{
1103
+ type: Component,
1104
+ args: [{
1105
+ selector: 'p-input-group',
1106
+ changeDetection: ChangeDetectionStrategy.OnPush,
1107
+ template: '<ng-content></ng-content>',
1108
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1109
+ inputs: ['disabled', 'error', 'focusMethod', 'focused', 'helper', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'label', 'prefix', 'required', 'size', 'suffix'],
1110
+ }]
1111
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1112
+ let PLabel = class PLabel {
1113
+ constructor(c, r, z) {
1114
+ this.z = z;
1115
+ c.detach();
1116
+ this.el = r.nativeElement;
1117
+ }
1118
+ };
1119
+ PLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLabel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1120
+ PLabel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PLabel, selector: "p-label", inputs: { behavior: "behavior", icon: "icon", iconFlip: "iconFlip", iconRotate: "iconRotate", keepMobileContent: "keepMobileContent", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1121
+ PLabel = __decorate([
1122
+ ProxyCmp({
1123
+ inputs: ['behavior', 'icon', 'iconFlip', 'iconRotate', 'keepMobileContent', 'size', 'variant']
1124
+ })
1125
+ ], PLabel);
1126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLabel, decorators: [{
1127
+ type: Component,
1128
+ args: [{
1129
+ selector: 'p-label',
1130
+ changeDetection: ChangeDetectionStrategy.OnPush,
1131
+ template: '<ng-content></ng-content>',
1132
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1133
+ inputs: ['behavior', 'icon', 'iconFlip', 'iconRotate', 'keepMobileContent', 'size', 'variant'],
1134
+ }]
1135
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1136
+ let PLayout = class PLayout {
1137
+ constructor(c, r, z) {
1138
+ this.z = z;
1139
+ c.detach();
1140
+ this.el = r.nativeElement;
1141
+ }
1142
+ };
1143
+ PLayout.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLayout, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1144
+ PLayout.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PLayout, selector: "p-layout", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1145
+ PLayout = __decorate([
1146
+ ProxyCmp({
1147
+ inputs: ['variant']
1148
+ })
1149
+ ], PLayout);
1150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLayout, decorators: [{
1151
+ type: Component,
1152
+ args: [{
1153
+ selector: 'p-layout',
1154
+ changeDetection: ChangeDetectionStrategy.OnPush,
1155
+ template: '<ng-content></ng-content>',
1156
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1157
+ inputs: ['variant'],
1158
+ }]
1159
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1160
+ let PLoader = class PLoader {
1161
+ constructor(c, r, z) {
1162
+ this.z = z;
1163
+ c.detach();
1164
+ this.el = r.nativeElement;
1165
+ }
1166
+ };
1167
+ PLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLoader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1168
+ PLoader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1169
+ PLoader = __decorate([
1170
+ ProxyCmp({
1171
+ inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
1172
+ })
1173
+ ], PLoader);
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PLoader, decorators: [{
1175
+ type: Component,
1176
+ args: [{
1177
+ selector: 'p-loader',
1178
+ changeDetection: ChangeDetectionStrategy.OnPush,
1179
+ template: '<ng-content></ng-content>',
1180
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1181
+ inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant'],
1182
+ }]
1183
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1184
+ let PModal = class PModal {
1185
+ constructor(c, r, z) {
1186
+ this.z = z;
1187
+ c.detach();
1188
+ this.el = r.nativeElement;
1189
+ proxyOutputs(this, this.el, ['closeClicked', 'closed']);
1190
+ }
1191
+ };
1192
+ PModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1193
+ PModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PModal, selector: "p-modal", inputs: { applyBlur: "applyBlur", backdropClickClose: "backdropClickClose", header: "header", scrollLock: "scrollLock", show: "show", showClose: "showClose", showMobileFooter: "showMobileFooter", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1194
+ PModal = __decorate([
1195
+ ProxyCmp({
1196
+ inputs: ['applyBlur', 'backdropClickClose', 'header', 'scrollLock', 'show', 'showClose', 'showMobileFooter', 'size', 'variant']
1197
+ })
1198
+ ], PModal);
1199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModal, decorators: [{
1200
+ type: Component,
1201
+ args: [{
1202
+ selector: 'p-modal',
1203
+ changeDetection: ChangeDetectionStrategy.OnPush,
1204
+ template: '<ng-content></ng-content>',
1205
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1206
+ inputs: ['applyBlur', 'backdropClickClose', 'header', 'scrollLock', 'show', 'showClose', 'showMobileFooter', 'size', 'variant'],
1207
+ }]
1208
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1209
+ let PModalBody = class PModalBody {
1210
+ constructor(c, r, z) {
1211
+ this.z = z;
1212
+ c.detach();
1213
+ this.el = r.nativeElement;
1214
+ }
1215
+ };
1216
+ PModalBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1217
+ PModalBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PModalBody, selector: "p-modal-body", inputs: { rounded: "rounded", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1218
+ PModalBody = __decorate([
1219
+ ProxyCmp({
1220
+ inputs: ['rounded', 'variant']
1221
+ })
1222
+ ], PModalBody);
1223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalBody, decorators: [{
1224
+ type: Component,
1225
+ args: [{
1226
+ selector: 'p-modal-body',
1227
+ changeDetection: ChangeDetectionStrategy.OnPush,
1228
+ template: '<ng-content></ng-content>',
1229
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1230
+ inputs: ['rounded', 'variant'],
1231
+ }]
1232
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1233
+ let PModalContainer = class PModalContainer {
1234
+ constructor(c, r, z) {
1235
+ this.z = z;
1236
+ c.detach();
1237
+ this.el = r.nativeElement;
1238
+ }
1239
+ };
1240
+ PModalContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1241
+ PModalContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PModalContainer, selector: "p-modal-container", inputs: { closing: "closing", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1242
+ PModalContainer = __decorate([
1243
+ ProxyCmp({
1244
+ inputs: ['closing', 'size']
1245
+ })
1246
+ ], PModalContainer);
1247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalContainer, decorators: [{
1248
+ type: Component,
1249
+ args: [{
1250
+ selector: 'p-modal-container',
1251
+ changeDetection: ChangeDetectionStrategy.OnPush,
1252
+ template: '<ng-content></ng-content>',
1253
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1254
+ inputs: ['closing', 'size'],
1255
+ }]
1256
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1257
+ let PModalFooter = class PModalFooter {
1258
+ constructor(c, r, z) {
1259
+ this.z = z;
1260
+ c.detach();
1261
+ this.el = r.nativeElement;
1262
+ }
1263
+ };
1264
+ PModalFooter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalFooter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1265
+ PModalFooter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PModalFooter, selector: "p-modal-footer", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1266
+ PModalFooter = __decorate([
1267
+ ProxyCmp({})
1268
+ ], PModalFooter);
1269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalFooter, decorators: [{
1270
+ type: Component,
1271
+ args: [{
1272
+ selector: 'p-modal-footer',
1273
+ changeDetection: ChangeDetectionStrategy.OnPush,
1274
+ template: '<ng-content></ng-content>',
1275
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1276
+ inputs: [],
1277
+ }]
1278
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1279
+ let PModalHeader = class PModalHeader {
1280
+ constructor(c, r, z) {
1281
+ this.z = z;
1282
+ c.detach();
1283
+ this.el = r.nativeElement;
1284
+ proxyOutputs(this, this.el, ['close']);
1285
+ }
1286
+ };
1287
+ PModalHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1288
+ PModalHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PModalHeader, selector: "p-modal-header", inputs: { showClose: "showClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1289
+ PModalHeader = __decorate([
1290
+ ProxyCmp({
1291
+ inputs: ['showClose']
1292
+ })
1293
+ ], PModalHeader);
1294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PModalHeader, decorators: [{
1295
+ type: Component,
1296
+ args: [{
1297
+ selector: 'p-modal-header',
1298
+ changeDetection: ChangeDetectionStrategy.OnPush,
1299
+ template: '<ng-content></ng-content>',
1300
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1301
+ inputs: ['showClose'],
1302
+ }]
1303
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1304
+ let PNavbar = class PNavbar {
1305
+ constructor(c, r, z) {
1306
+ this.z = z;
1307
+ c.detach();
1308
+ this.el = r.nativeElement;
1309
+ }
1310
+ };
1311
+ PNavbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PNavbar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1312
+ PNavbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PNavbar, selector: "p-navbar", inputs: { closeText: "closeText", menuText: "menuText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1313
+ PNavbar = __decorate([
1314
+ ProxyCmp({
1315
+ inputs: ['closeText', 'menuText']
1316
+ })
1317
+ ], PNavbar);
1318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PNavbar, decorators: [{
1319
+ type: Component,
1320
+ args: [{
1321
+ selector: 'p-navbar',
1322
+ changeDetection: ChangeDetectionStrategy.OnPush,
1323
+ template: '<ng-content></ng-content>',
1324
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1325
+ inputs: ['closeText', 'menuText'],
1326
+ }]
1327
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1328
+ let PNavigationItem = class PNavigationItem {
1329
+ constructor(c, r, z) {
1330
+ this.z = z;
1331
+ c.detach();
1332
+ this.el = r.nativeElement;
1333
+ }
1334
+ };
1335
+ PNavigationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PNavigationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1336
+ PNavigationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1337
+ PNavigationItem = __decorate([
1338
+ ProxyCmp({
1339
+ inputs: ['active', 'counter', 'href', 'icon', 'target']
1340
+ })
1341
+ ], PNavigationItem);
1342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PNavigationItem, decorators: [{
1343
+ type: Component,
1344
+ args: [{
1345
+ selector: 'p-navigation-item',
1346
+ changeDetection: ChangeDetectionStrategy.OnPush,
1347
+ template: '<ng-content></ng-content>',
1348
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1349
+ inputs: ['active', 'counter', 'href', 'icon', 'target'],
1350
+ }]
1351
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1352
+ let PPageSizeSelect = class PPageSizeSelect {
1353
+ constructor(c, r, z) {
1354
+ this.z = z;
1355
+ c.detach();
1356
+ this.el = r.nativeElement;
1357
+ proxyOutputs(this, this.el, ['sizeChange']);
1358
+ }
1359
+ };
1360
+ PPageSizeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPageSizeSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1361
+ PPageSizeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1362
+ PPageSizeSelect = __decorate([
1363
+ ProxyCmp({
1364
+ inputs: ['buttonSize', 'buttonTemplate', 'chevronPosition', 'hidden', 'itemTemplate', 'size', 'sizeOptions']
1365
+ })
1366
+ ], PPageSizeSelect);
1367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPageSizeSelect, decorators: [{
1368
+ type: Component,
1369
+ args: [{
1370
+ selector: 'p-page-size-select',
1371
+ changeDetection: ChangeDetectionStrategy.OnPush,
1372
+ template: '<ng-content></ng-content>',
1373
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1374
+ inputs: ['buttonSize', 'buttonTemplate', 'chevronPosition', 'hidden', 'itemTemplate', 'size', 'sizeOptions'],
1375
+ }]
1376
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1377
+ let PPagination = class PPagination {
1378
+ constructor(c, r, z) {
1379
+ this.z = z;
1380
+ c.detach();
1381
+ this.el = r.nativeElement;
1382
+ proxyOutputs(this, this.el, ['pageChange']);
1383
+ }
1384
+ };
1385
+ PPagination.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1386
+ PPagination.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1387
+ PPagination = __decorate([
1388
+ ProxyCmp({
1389
+ inputs: ['hideOnSinglePage', 'page', 'pageSize', 'total']
1390
+ })
1391
+ ], PPagination);
1392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPagination, decorators: [{
1393
+ type: Component,
1394
+ args: [{
1395
+ selector: 'p-pagination',
1396
+ changeDetection: ChangeDetectionStrategy.OnPush,
1397
+ template: '<ng-content></ng-content>',
1398
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1399
+ inputs: ['hideOnSinglePage', 'page', 'pageSize', 'total'],
1400
+ }]
1401
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1402
+ let PPaginationItem = class PPaginationItem {
1403
+ constructor(c, r, z) {
1404
+ this.z = z;
1405
+ c.detach();
1406
+ this.el = r.nativeElement;
1407
+ }
1408
+ };
1409
+ PPaginationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPaginationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1410
+ PPaginationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PPaginationItem, selector: "p-pagination-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1411
+ PPaginationItem = __decorate([
1412
+ ProxyCmp({
1413
+ inputs: ['active']
1414
+ })
1415
+ ], PPaginationItem);
1416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PPaginationItem, decorators: [{
1417
+ type: Component,
1418
+ args: [{
1419
+ selector: 'p-pagination-item',
1420
+ changeDetection: ChangeDetectionStrategy.OnPush,
1421
+ template: '<ng-content></ng-content>',
1422
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1423
+ inputs: ['active'],
1424
+ }]
1425
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1426
+ let PProfile = class PProfile {
1427
+ constructor(c, r, z) {
1428
+ this.z = z;
1429
+ c.detach();
1430
+ this.el = r.nativeElement;
1431
+ }
1432
+ };
1433
+ PProfile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PProfile, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1434
+ PProfile.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PProfile, selector: "p-profile", inputs: { size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1435
+ PProfile = __decorate([
1436
+ ProxyCmp({
1437
+ inputs: ['size', 'variant']
1438
+ })
1439
+ ], PProfile);
1440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PProfile, decorators: [{
1441
+ type: Component,
1442
+ args: [{
1443
+ selector: 'p-profile',
1444
+ changeDetection: ChangeDetectionStrategy.OnPush,
1445
+ template: '<ng-content></ng-content>',
1446
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1447
+ inputs: ['size', 'variant'],
1448
+ }]
1449
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1450
+ let PSegmentContainer = class PSegmentContainer {
1451
+ constructor(c, r, z) {
1452
+ this.z = z;
1453
+ c.detach();
1454
+ this.el = r.nativeElement;
1455
+ }
1456
+ };
1457
+ PSegmentContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSegmentContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1458
+ PSegmentContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PSegmentContainer, selector: "p-segment-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1459
+ PSegmentContainer = __decorate([
1460
+ ProxyCmp({})
1461
+ ], PSegmentContainer);
1462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSegmentContainer, decorators: [{
1463
+ type: Component,
1464
+ args: [{
1465
+ selector: 'p-segment-container',
1466
+ changeDetection: ChangeDetectionStrategy.OnPush,
1467
+ template: '<ng-content></ng-content>',
1468
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1469
+ inputs: [],
1470
+ }]
1471
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1472
+ let PSegmentItem = class PSegmentItem {
1473
+ constructor(c, r, z) {
1474
+ this.z = z;
1475
+ c.detach();
1476
+ this.el = r.nativeElement;
1477
+ }
1478
+ };
1479
+ PSegmentItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSegmentItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1480
+ PSegmentItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1481
+ PSegmentItem = __decorate([
1482
+ ProxyCmp({
1483
+ inputs: ['active', 'icon', 'iconFlip', 'iconRotate']
1484
+ })
1485
+ ], PSegmentItem);
1486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSegmentItem, decorators: [{
1487
+ type: Component,
1488
+ args: [{
1489
+ selector: 'p-segment-item',
1490
+ changeDetection: ChangeDetectionStrategy.OnPush,
1491
+ template: '<ng-content></ng-content>',
1492
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1493
+ inputs: ['active', 'icon', 'iconFlip', 'iconRotate'],
1494
+ }]
1495
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1496
+ let PSelect = class PSelect {
1497
+ constructor(c, r, z) {
1498
+ this.z = z;
1499
+ c.detach();
1500
+ this.el = r.nativeElement;
1501
+ proxyOutputs(this, this.el, ['queryChange', 'valueChange', 'dropdownShown']);
1502
+ }
1503
+ };
1504
+ PSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1505
+ PSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PSelect, selector: "p-select", inputs: { asyncFilter: "asyncFilter", autoSelectFirst: "autoSelectFirst", autocompletePlaceholder: "autocompletePlaceholder", disabled: "disabled", displayKey: "displayKey", enableAutocomplete: "enableAutocomplete", error: "error", helper: "helper", icon: "icon", identifierKey: "identifierKey", items: "items", keepQuery: "keepQuery", label: "label", loading: "loading", maxDisplayedItems: "maxDisplayedItems", placeholder: "placeholder", prefix: "prefix", query: "query", queryKey: "queryKey", showChevron: "showChevron", size: "size", value: "value", valueKey: "valueKey" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1506
+ PSelect = __decorate([
1507
+ ProxyCmp({
1508
+ inputs: ['asyncFilter', 'autoSelectFirst', 'autocompletePlaceholder', 'disabled', 'displayKey', 'enableAutocomplete', 'error', 'helper', 'icon', 'identifierKey', 'items', 'keepQuery', 'label', 'loading', 'maxDisplayedItems', 'placeholder', 'prefix', 'query', 'queryKey', 'showChevron', 'size', 'value', 'valueKey']
1509
+ })
1510
+ ], PSelect);
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSelect, decorators: [{
1512
+ type: Component,
1513
+ args: [{
1514
+ selector: 'p-select',
1515
+ changeDetection: ChangeDetectionStrategy.OnPush,
1516
+ template: '<ng-content></ng-content>',
1517
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1518
+ inputs: ['asyncFilter', 'autoSelectFirst', 'autocompletePlaceholder', 'disabled', 'displayKey', 'enableAutocomplete', 'error', 'helper', 'icon', 'identifierKey', 'items', 'keepQuery', 'label', 'loading', 'maxDisplayedItems', 'placeholder', 'prefix', 'query', 'queryKey', 'showChevron', 'size', 'value', 'valueKey'],
1519
+ }]
1520
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1521
+ let PSliderIndicator = class PSliderIndicator {
1522
+ constructor(c, r, z) {
1523
+ this.z = z;
1524
+ c.detach();
1525
+ this.el = r.nativeElement;
1526
+ }
1527
+ };
1528
+ PSliderIndicator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSliderIndicator, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1529
+ PSliderIndicator.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PSliderIndicator, selector: "p-slider-indicator", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1530
+ PSliderIndicator = __decorate([
1531
+ ProxyCmp({
1532
+ inputs: ['active']
1533
+ })
1534
+ ], PSliderIndicator);
1535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PSliderIndicator, decorators: [{
1536
+ type: Component,
1537
+ args: [{
1538
+ selector: 'p-slider-indicator',
1539
+ changeDetection: ChangeDetectionStrategy.OnPush,
1540
+ template: '<ng-content></ng-content>',
1541
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1542
+ inputs: ['active'],
1543
+ }]
1544
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1545
+ let PStatus = class PStatus {
1546
+ constructor(c, r, z) {
1547
+ this.z = z;
1548
+ c.detach();
1549
+ this.el = r.nativeElement;
1550
+ }
1551
+ };
1552
+ PStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStatus, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1553
+ PStatus.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1554
+ PStatus = __decorate([
1555
+ ProxyCmp({
1556
+ inputs: ['icon', 'iconFlip', 'iconRotate', 'variant']
1557
+ })
1558
+ ], PStatus);
1559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStatus, decorators: [{
1560
+ type: Component,
1561
+ args: [{
1562
+ selector: 'p-status',
1563
+ changeDetection: ChangeDetectionStrategy.OnPush,
1564
+ template: '<ng-content></ng-content>',
1565
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1566
+ inputs: ['icon', 'iconFlip', 'iconRotate', 'variant'],
1567
+ }]
1568
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1569
+ let PStepper = class PStepper {
1570
+ constructor(c, r, z) {
1571
+ this.z = z;
1572
+ c.detach();
1573
+ this.el = r.nativeElement;
1574
+ }
1575
+ };
1576
+ PStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1577
+ PStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PStepper, selector: "p-stepper", inputs: { activeStep: "activeStep", contentPosition: "contentPosition", direction: "direction" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1578
+ PStepper = __decorate([
1579
+ ProxyCmp({
1580
+ inputs: ['activeStep', 'contentPosition', 'direction']
1581
+ })
1582
+ ], PStepper);
1583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepper, decorators: [{
1584
+ type: Component,
1585
+ args: [{
1586
+ selector: 'p-stepper',
1587
+ changeDetection: ChangeDetectionStrategy.OnPush,
1588
+ template: '<ng-content></ng-content>',
1589
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1590
+ inputs: ['activeStep', 'contentPosition', 'direction'],
1591
+ }]
1592
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1593
+ let PStepperItem = class PStepperItem {
1594
+ constructor(c, r, z) {
1595
+ this.z = z;
1596
+ c.detach();
1597
+ this.el = r.nativeElement;
1598
+ }
1599
+ };
1600
+ PStepperItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepperItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1601
+ PStepperItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PStepperItem, selector: "p-stepper-item", inputs: { active: "active", align: "align", contentPosition: "contentPosition", direction: "direction", finished: "finished" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1602
+ PStepperItem = __decorate([
1603
+ ProxyCmp({
1604
+ inputs: ['active', 'align', 'contentPosition', 'direction', 'finished']
1605
+ })
1606
+ ], PStepperItem);
1607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepperItem, decorators: [{
1608
+ type: Component,
1609
+ args: [{
1610
+ selector: 'p-stepper-item',
1611
+ changeDetection: ChangeDetectionStrategy.OnPush,
1612
+ template: '<ng-content></ng-content>',
1613
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1614
+ inputs: ['active', 'align', 'contentPosition', 'direction', 'finished'],
1615
+ }]
1616
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1617
+ let PStepperLine = class PStepperLine {
1618
+ constructor(c, r, z) {
1619
+ this.z = z;
1620
+ c.detach();
1621
+ this.el = r.nativeElement;
1622
+ }
1623
+ };
1624
+ PStepperLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepperLine, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1625
+ PStepperLine.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PStepperLine, selector: "p-stepper-line", inputs: { active: "active", direction: "direction" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1626
+ PStepperLine = __decorate([
1627
+ ProxyCmp({
1628
+ inputs: ['active', 'direction']
1629
+ })
1630
+ ], PStepperLine);
1631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PStepperLine, decorators: [{
1632
+ type: Component,
1633
+ args: [{
1634
+ selector: 'p-stepper-line',
1635
+ changeDetection: ChangeDetectionStrategy.OnPush,
1636
+ template: '<ng-content></ng-content>',
1637
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1638
+ inputs: ['active', 'direction'],
1639
+ }]
1640
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1641
+ let PTabGroup = class PTabGroup {
1642
+ constructor(c, r, z) {
1643
+ this.z = z;
1644
+ c.detach();
1645
+ this.el = r.nativeElement;
1646
+ }
1647
+ };
1648
+ PTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTabGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1649
+ PTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTabGroup, selector: "p-tab-group", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1650
+ PTabGroup = __decorate([
1651
+ ProxyCmp({})
1652
+ ], PTabGroup);
1653
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTabGroup, decorators: [{
1654
+ type: Component,
1655
+ args: [{
1656
+ selector: 'p-tab-group',
1657
+ changeDetection: ChangeDetectionStrategy.OnPush,
1658
+ template: '<ng-content></ng-content>',
1659
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1660
+ inputs: [],
1661
+ }]
1662
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1663
+ let PTabItem = class PTabItem {
1664
+ constructor(c, r, z) {
1665
+ this.z = z;
1666
+ c.detach();
1667
+ this.el = r.nativeElement;
1668
+ }
1669
+ };
1670
+ PTabItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTabItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1671
+ PTabItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTabItem, selector: "p-tab-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1672
+ PTabItem = __decorate([
1673
+ ProxyCmp({
1674
+ inputs: ['active']
1675
+ })
1676
+ ], PTabItem);
1677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTabItem, decorators: [{
1678
+ type: Component,
1679
+ args: [{
1680
+ selector: 'p-tab-item',
1681
+ changeDetection: ChangeDetectionStrategy.OnPush,
1682
+ template: '<ng-content></ng-content>',
1683
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1684
+ inputs: ['active'],
1685
+ }]
1686
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1687
+ let PTableContainer = class PTableContainer {
1688
+ constructor(c, r, z) {
1689
+ this.z = z;
1690
+ c.detach();
1691
+ this.el = r.nativeElement;
1692
+ }
1693
+ };
1694
+ PTableContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1695
+ PTableContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTableContainer, selector: "p-table-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1696
+ PTableContainer = __decorate([
1697
+ ProxyCmp({})
1698
+ ], PTableContainer);
1699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableContainer, decorators: [{
1700
+ type: Component,
1701
+ args: [{
1702
+ selector: 'p-table-container',
1703
+ changeDetection: ChangeDetectionStrategy.OnPush,
1704
+ template: '<ng-content></ng-content>',
1705
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1706
+ inputs: [],
1707
+ }]
1708
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1709
+ let PTableFooter = class PTableFooter {
1710
+ constructor(c, r, z) {
1711
+ this.z = z;
1712
+ c.detach();
1713
+ this.el = r.nativeElement;
1714
+ proxyOutputs(this, this.el, ['pageChange', 'pageSizeChange', 'export']);
1715
+ }
1716
+ };
1717
+ PTableFooter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableFooter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1718
+ PTableFooter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTableFooter, selector: "p-table-footer", inputs: { enableExport: "enableExport", enablePageSize: "enablePageSize", enablePagination: "enablePagination", hideOnSinglePage: "hideOnSinglePage", loading: "loading", page: "page", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", total: "total" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1719
+ PTableFooter = __decorate([
1720
+ ProxyCmp({
1721
+ inputs: ['enableExport', 'enablePageSize', 'enablePagination', 'hideOnSinglePage', 'loading', 'page', 'pageSize', 'pageSizeOptions', 'total']
1722
+ })
1723
+ ], PTableFooter);
1724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableFooter, decorators: [{
1725
+ type: Component,
1726
+ args: [{
1727
+ selector: 'p-table-footer',
1728
+ changeDetection: ChangeDetectionStrategy.OnPush,
1729
+ template: '<ng-content></ng-content>',
1730
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1731
+ inputs: ['enableExport', 'enablePageSize', 'enablePagination', 'hideOnSinglePage', 'loading', 'page', 'pageSize', 'pageSizeOptions', 'total'],
1732
+ }]
1733
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1734
+ let PTableHeader = class PTableHeader {
1735
+ constructor(c, r, z) {
1736
+ this.z = z;
1737
+ c.detach();
1738
+ this.el = r.nativeElement;
1739
+ proxyOutputs(this, this.el, ['quickFilter', 'queryChange', 'filter', 'edit']);
1740
+ }
1741
+ };
1742
+ PTableHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1743
+ PTableHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTableHeader, selector: "p-table-header", inputs: { activeQuickFilterIdentifier: "activeQuickFilterIdentifier", canEdit: "canEdit", editButtonTemplate: "editButtonTemplate", editIcon: "editIcon", editLoading: "editLoading", editText: "editText", enableEdit: "enableEdit", enableFilter: "enableFilter", enableSearch: "enableSearch", filterButtonTemplate: "filterButtonTemplate", itemsSelectedAmount: "itemsSelectedAmount", loading: "loading", query: "query", quickFilters: "quickFilters", selectedFiltersAmount: "selectedFiltersAmount" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1744
+ PTableHeader = __decorate([
1745
+ ProxyCmp({
1746
+ inputs: ['activeQuickFilterIdentifier', 'canEdit', 'editButtonTemplate', 'editIcon', 'editLoading', 'editText', 'enableEdit', 'enableFilter', 'enableSearch', 'filterButtonTemplate', 'itemsSelectedAmount', 'loading', 'query', 'quickFilters', 'selectedFiltersAmount']
1747
+ })
1748
+ ], PTableHeader);
1749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableHeader, decorators: [{
1750
+ type: Component,
1751
+ args: [{
1752
+ selector: 'p-table-header',
1753
+ changeDetection: ChangeDetectionStrategy.OnPush,
1754
+ template: '<ng-content></ng-content>',
1755
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1756
+ inputs: ['activeQuickFilterIdentifier', 'canEdit', 'editButtonTemplate', 'editIcon', 'editLoading', 'editText', 'enableEdit', 'enableFilter', 'enableSearch', 'filterButtonTemplate', 'itemsSelectedAmount', 'loading', 'query', 'quickFilters', 'selectedFiltersAmount'],
1757
+ }]
1758
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1759
+ let PTableRow = class PTableRow {
1760
+ constructor(c, r, z) {
1761
+ this.z = z;
1762
+ c.detach();
1763
+ this.el = r.nativeElement;
1764
+ }
1765
+ };
1766
+ PTableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableRow, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1767
+ PTableRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PTableRow, selector: "p-table-row", inputs: { enableHover: "enableHover", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1768
+ PTableRow = __decorate([
1769
+ ProxyCmp({
1770
+ inputs: ['enableHover', 'variant']
1771
+ })
1772
+ ], PTableRow);
1773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTableRow, decorators: [{
1774
+ type: Component,
1775
+ args: [{
1776
+ selector: 'p-table-row',
1777
+ changeDetection: ChangeDetectionStrategy.OnPush,
1778
+ template: '<ng-content></ng-content>',
1779
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1780
+ inputs: ['enableHover', 'variant'],
1781
+ }]
1782
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1783
+ let PToast = class PToast {
1784
+ constructor(c, r, z) {
1785
+ this.z = z;
1786
+ c.detach();
1787
+ this.el = r.nativeElement;
1788
+ proxyOutputs(this, this.el, ['action']);
1789
+ }
1790
+ };
1791
+ PToast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PToast, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1792
+ PToast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1793
+ PToast = __decorate([
1794
+ ProxyCmp({
1795
+ inputs: ['actionIcon', 'actionIconFlip', 'actionIconRotate', 'content', 'enableAction', 'header', 'variant']
1796
+ })
1797
+ ], PToast);
1798
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PToast, decorators: [{
1799
+ type: Component,
1800
+ args: [{
1801
+ selector: 'p-toast',
1802
+ changeDetection: ChangeDetectionStrategy.OnPush,
1803
+ template: '<ng-content></ng-content>',
1804
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1805
+ inputs: ['actionIcon', 'actionIconFlip', 'actionIconRotate', 'content', 'enableAction', 'header', 'variant'],
1806
+ }]
1807
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1808
+ let PTooltip = class PTooltip {
1809
+ constructor(c, r, z) {
1810
+ this.z = z;
1811
+ c.detach();
1812
+ this.el = r.nativeElement;
1813
+ proxyOutputs(this, this.el, ['isOpen']);
1814
+ }
1815
+ };
1816
+ PTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1817
+ PTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
1818
+ PTooltip = __decorate([
1819
+ ProxyCmp({
1820
+ inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'strategy', 'variant']
1821
+ })
1822
+ ], PTooltip);
1823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PTooltip, decorators: [{
1824
+ type: Component,
1825
+ args: [{
1826
+ selector: 'p-tooltip',
1827
+ changeDetection: ChangeDetectionStrategy.OnPush,
1828
+ template: '<ng-content></ng-content>',
1829
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1830
+ inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'strategy', 'variant'],
1831
+ }]
1832
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1833
+
1834
+ const DIRECTIVES = [
1835
+ PAccordion,
1836
+ PAttachment,
1837
+ PAvatar,
1838
+ PAvatarGroup,
1839
+ PBackdrop,
1840
+ PButton,
1841
+ PCalendar,
1842
+ PCardBody,
1843
+ PCardContainer,
1844
+ PCardHeader,
1845
+ PContentSlider,
1846
+ PCounter,
1847
+ PDatepicker,
1848
+ PDivider,
1849
+ PDrawer,
1850
+ PDrawerBody,
1851
+ PDrawerContainer,
1852
+ PDrawerHeader,
1853
+ PDropdown,
1854
+ PDropdownMenuContainer,
1855
+ PDropdownMenuItem,
1856
+ PHelper,
1857
+ PIcon,
1858
+ PIllustration,
1859
+ PInfoPanel,
1860
+ PInputError,
1861
+ PInputGroup,
1862
+ PLabel,
1863
+ PLayout,
1864
+ PLoader,
1865
+ PModal,
1866
+ PModalBody,
1867
+ PModalContainer,
1868
+ PModalFooter,
1869
+ PModalHeader,
1870
+ PNavbar,
1871
+ PNavigationItem,
1872
+ PPageSizeSelect,
1873
+ PPagination,
1874
+ PPaginationItem,
1875
+ PProfile,
1876
+ PSegmentContainer,
1877
+ PSegmentItem,
1878
+ PSelect,
1879
+ PSliderIndicator,
1880
+ PStatus,
1881
+ PStepper,
1882
+ PStepperItem,
1883
+ PStepperLine,
1884
+ PTabGroup,
1885
+ PTabItem,
1886
+ PTableContainer,
1887
+ PTableFooter,
1888
+ PTableHeader,
1889
+ PTableRow,
1890
+ PToast,
1891
+ PTooltip
1892
+ ];
1893
+
1894
+ class StencilModule {
1895
+ }
1896
+ StencilModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1897
+ StencilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StencilModule, declarations: [PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PButton, PCalendar, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputError, PInputGroup, PLabel, PLayout, PLoader, PModal, 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, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PButton, PCalendar, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputError, PInputGroup, PLabel, PLayout, PLoader, PModal, 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] });
1898
+ StencilModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StencilModule });
1899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StencilModule, decorators: [{
1900
+ type: NgModule,
1901
+ args: [{
1902
+ declarations: [...DIRECTIVES],
1903
+ exports: [...DIRECTIVES],
1904
+ }]
1905
+ }] });
1906
+
1907
+ class OverlayModule {
1908
+ }
1909
+ OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1910
+ OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OverlayModule, imports: [CommonModule,
1911
+ StencilModule,
1912
+ OverlayModule$1,
1913
+ PlatformModule,
1914
+ ObserversModule,
1915
+ PortalModule], exports: [PortalModule] });
1916
+ OverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayModule, imports: [CommonModule,
1917
+ StencilModule,
1918
+ OverlayModule$1,
1919
+ PlatformModule,
1920
+ ObserversModule,
1921
+ PortalModule, PortalModule] });
1922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayModule, decorators: [{
1923
+ type: NgModule,
1924
+ args: [{
1925
+ imports: [
1926
+ CommonModule,
1927
+ StencilModule,
1928
+ OverlayModule$1,
1929
+ PlatformModule,
1930
+ ObserversModule,
1931
+ PortalModule,
1932
+ ],
1933
+ exports: [PortalModule],
1934
+ }]
1935
+ }] });
1936
+
1937
+ class OverlayRef {
1938
+ constructor(_overlay) {
1939
+ this._overlay = _overlay;
1940
+ this.closed$ = new Subject();
1941
+ }
1942
+ close() {
1943
+ this._overlay.dispose();
1944
+ this.closed$.next(null);
1945
+ }
1946
+ }
1947
+
1948
+ class OverlayService {
1949
+ constructor(injector, overlay) {
1950
+ this.injector = injector;
1951
+ this.overlay = overlay;
1952
+ }
1953
+ open(component, options = {}) {
1954
+ var _a;
1955
+ const overlay = this._createOverlay();
1956
+ const overlayRef = new OverlayRef(overlay);
1957
+ this._attachModalContainer(overlay, overlayRef, component, (_a = options.providers) !== null && _a !== void 0 ? _a : []);
1958
+ this._attachData(overlayRef, options);
1959
+ this.overlayRef = overlayRef;
1960
+ return overlayRef;
1961
+ }
1962
+ // tslint:disable-next-line:max-line-length
1963
+ _attachModalContainer(overlay, overlayRef, component, providers) {
1964
+ const injector = this._createInjector(overlayRef, providers);
1965
+ const containerPortal = component instanceof CdkPortal
1966
+ ? component
1967
+ : new ComponentPortal(component, null, injector);
1968
+ const containerRef = overlay.attach(containerPortal);
1969
+ overlayRef.instance = containerRef.instance;
1970
+ return containerRef.instance;
1971
+ }
1972
+ _createInjector(overlayRef, providers) {
1973
+ return Injector.create({
1974
+ providers: [
1975
+ {
1976
+ provide: OverlayRef,
1977
+ useValue: overlayRef,
1978
+ },
1979
+ ...providers,
1980
+ ],
1981
+ parent: this.injector,
1982
+ });
1983
+ }
1984
+ _getOverlayConfig() {
1985
+ const positionStrategy = this.overlay
1986
+ .position()
1987
+ .global()
1988
+ .centerHorizontally()
1989
+ .centerVertically();
1990
+ const overlayConfig = new OverlayConfig({
1991
+ hasBackdrop: false,
1992
+ scrollStrategy: this.overlay.scrollStrategies.block(),
1993
+ positionStrategy,
1994
+ });
1995
+ return overlayConfig;
1996
+ }
1997
+ _createOverlay() {
1998
+ // Returns an OverlayConfig
1999
+ const overlayConfig = this._getOverlayConfig();
2000
+ // Returns an OverlayRef
2001
+ return this.overlay.create(overlayConfig);
2002
+ }
2003
+ _attachData(overlayRef, options) {
2004
+ if (options.data && typeof options.data === 'object') {
2005
+ for (const key of Object.keys(options.data)) {
2006
+ overlayRef.instance[key] = options.data[key];
2007
+ }
2008
+ }
2009
+ }
2010
+ }
2011
+ OverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayService, deps: [{ token: i0.Injector }, { token: i1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
2012
+ OverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayService });
2013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverlayService, decorators: [{
2014
+ type: Injectable
2015
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.Overlay }]; } });
2016
+
2017
+ const OVERLAY_SERVICES = [OverlayService];
2018
+
2019
+ const createFormFilters = (values, quickFilters, quickFilterKey) => {
2020
+ const filters = [];
2021
+ let quickFilter = null;
2022
+ for (const key of Object.keys(values)) {
2023
+ const value = values[key];
2024
+ if (key !== quickFilterKey &&
2025
+ !(value instanceof Date) &&
2026
+ !(value === null || value === void 0 ? void 0 : value.length)) {
2027
+ continue;
2028
+ }
2029
+ if (quickFilterKey && key === quickFilterKey) {
2030
+ quickFilter = quickFilters.find((f) => f.value === value);
2031
+ continue;
2032
+ }
2033
+ filters.push({
2034
+ key,
2035
+ value,
2036
+ });
2037
+ }
2038
+ return {
2039
+ filters,
2040
+ quickFilter,
2041
+ };
2042
+ };
2043
+
2044
+ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
2045
+ constructor() {
2046
+ super();
2047
+ this.quickFilters = [];
2048
+ this.filterForm = new FormGroup({});
2049
+ this.defaultFilterFormValues = {};
2050
+ this.pageSizeDefault = 12;
2051
+ this._defaultTableValues = {
2052
+ pageSize: this.pageSizeDefault,
2053
+ page: 1,
2054
+ quickFilter: null,
2055
+ query: '',
2056
+ filters: [],
2057
+ selectedRows: [],
2058
+ };
2059
+ this.defaultTableValues = {};
2060
+ }
2061
+ get pageSize() {
2062
+ if (!this.tableOptions) {
2063
+ return this._defaultTableValues.pageSize;
2064
+ }
2065
+ return this.tableOptions.value.pageSize;
2066
+ }
2067
+ get page() {
2068
+ if (!this.tableOptions) {
2069
+ return this._defaultTableValues.page;
2070
+ }
2071
+ return this.tableOptions.value.page;
2072
+ }
2073
+ get quickFilter() {
2074
+ if (!this.tableOptions) {
2075
+ return this._defaultTableValues.quickFilter;
2076
+ }
2077
+ return this.tableOptions.value.quickFilter;
2078
+ }
2079
+ set quickFilter(quickFilter) {
2080
+ this.tableValues = {
2081
+ quickFilter,
2082
+ };
2083
+ }
2084
+ get query() {
2085
+ if (!this.tableOptions) {
2086
+ return this._defaultTableValues.query;
2087
+ }
2088
+ return this.tableOptions.value.query;
2089
+ }
2090
+ set query(query) {
2091
+ this.tableValues = {
2092
+ query,
2093
+ };
2094
+ }
2095
+ get filters() {
2096
+ if (!this.tableOptions) {
2097
+ return this._defaultTableValues.filters;
2098
+ }
2099
+ return this.tableOptions.value.filters;
2100
+ }
2101
+ set filters(filters) {
2102
+ this.tableValues = {
2103
+ filters,
2104
+ };
2105
+ }
2106
+ get selectedRows() {
2107
+ if (!this.tableOptions) {
2108
+ return this._defaultTableValues.selectedRows;
2109
+ }
2110
+ return this.tableOptions.value.selectedRows;
2111
+ }
2112
+ set selectedRows(selectedRows) {
2113
+ this.tableValues = {
2114
+ selectedRows,
2115
+ };
2116
+ }
2117
+ // setter
2118
+ get parsedDefaultTableValues() {
2119
+ var _a;
2120
+ 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 });
2121
+ }
2122
+ get tableValues() {
2123
+ var _a, _b;
2124
+ return (_b = (_a = this.tableOptions) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : {};
2125
+ }
2126
+ set tableValues(values) {
2127
+ this._setTableValues(Object.assign(Object.assign({}, this.tableValues), values));
2128
+ }
2129
+ ngOnInit() {
2130
+ this.tableOptions = new FormControl({
2131
+ pageSize: this.parsedDefaultTableValues.pageSize,
2132
+ page: this.parsedDefaultTableValues.page,
2133
+ quickFilter: this.parsedDefaultTableValues.quickFilter,
2134
+ query: this.parsedDefaultTableValues.query,
2135
+ filters: this.parsedDefaultTableValues.filters,
2136
+ selectedRows: this.parsedDefaultTableValues.selectedRows,
2137
+ });
2138
+ this.tableOptions.valueChanges
2139
+ .pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) => this._getChanges(previous, next)), filter((changes) => !!changes), debounce((changes) => {
2140
+ var _a;
2141
+ if ((changes === null || changes === void 0 ? void 0 : changes.query) && ((_a = Object.keys(changes)) === null || _a === void 0 ? void 0 : _a.length) === 1) {
2142
+ return timer(300);
2143
+ }
2144
+ return timer(0);
2145
+ }), filter((changes) => {
2146
+ var _a;
2147
+ return !((changes === null || changes === void 0 ? void 0 : changes.selected) &&
2148
+ ((_a = Object.keys(changes)) === null || _a === void 0 ? void 0 : _a.length) === 1);
2149
+ }))
2150
+ .subscribe((changes) => {
2151
+ if (changes === null || changes === void 0 ? void 0 : changes.page) {
2152
+ this._refresh();
2153
+ return;
2154
+ }
2155
+ this._resetPageOrRefresh();
2156
+ });
2157
+ this._refresh();
2158
+ }
2159
+ resetTable(emitEvent = true, forceRefresh = false) {
2160
+ this._setTableValues(this.parsedDefaultTableValues, emitEvent);
2161
+ if (forceRefresh) {
2162
+ this._refresh();
2163
+ }
2164
+ }
2165
+ applyFormFilters(values = null) {
2166
+ values = values !== null && values !== void 0 ? values : this.filterForm.value;
2167
+ const { filters, quickFilter } = createFormFilters(values, this.quickFilters, this.filterFormQuickFilterKey);
2168
+ if (quickFilter) {
2169
+ this.quickFilter = quickFilter;
2170
+ }
2171
+ this.filters = filters;
2172
+ }
2173
+ resetFormFilters(resetQuickFilter = false) {
2174
+ var _a;
2175
+ const values = this.filterForm.value;
2176
+ const defaultQuickFilter = this.quickFilters.find((f) => f.default);
2177
+ for (const key of Object.keys(values)) {
2178
+ if (key === this.filterFormQuickFilterKey) {
2179
+ if (resetQuickFilter) {
2180
+ values[key] = defaultQuickFilter.value;
2181
+ }
2182
+ continue;
2183
+ }
2184
+ values[key] = (_a = this.defaultFilterFormValues[key]) !== null && _a !== void 0 ? _a : null;
2185
+ }
2186
+ this.filterForm.setValue(values);
2187
+ this.applyFormFilters(values);
2188
+ }
2189
+ _refresh() {
2190
+ console.warn('Not implemented');
2191
+ }
2192
+ _resetPageOrRefresh() {
2193
+ var _a;
2194
+ if (!this.tableOptions) {
2195
+ return;
2196
+ }
2197
+ if (this.page !== 1) {
2198
+ (_a = this.tableOptions.get('page')) === null || _a === void 0 ? void 0 : _a.setValue(1);
2199
+ return;
2200
+ }
2201
+ this._refresh();
2202
+ }
2203
+ _setTableValues(data, emitEvent = true) {
2204
+ var _a;
2205
+ (_a = this.tableOptions) === null || _a === void 0 ? void 0 : _a.setValue(Object.assign(Object.assign({}, this.tableOptions.value), data), { emitEvent });
2206
+ }
2207
+ _getChanges(previous, next) {
2208
+ const changes = {};
2209
+ let key;
2210
+ for (key in next) {
2211
+ if (key === 'selectedRows') {
2212
+ continue;
2213
+ }
2214
+ if (JSON.stringify(previous[key]) !== JSON.stringify(next[key])) {
2215
+ // @ts-ignore
2216
+ changes[key] = next[key];
2217
+ }
2218
+ }
2219
+ return Object.keys(changes).length ? changes : null;
2220
+ }
2221
+ };
2222
+ BaseTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2223
+ BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BaseTableComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2224
+ BaseTableComponent = __decorate([
2225
+ UntilDestroy({ checkProperties: true })
2226
+ ], BaseTableComponent);
2227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseTableComponent, decorators: [{
2228
+ type: Component,
2229
+ args: [{
2230
+ template: ``,
2231
+ }]
2232
+ }], ctorParameters: function () { return []; } });
2233
+
2234
+ /* eslint-disable max-len */
2235
+ class TableCell {
2236
+ constructor() {
2237
+ /**
2238
+ * The variant of the column
2239
+ */
2240
+ this.variant = 'default';
2241
+ /**
2242
+ * The index of the column
2243
+ */
2244
+ this.index = 0;
2245
+ /**
2246
+ * The index of the row
2247
+ */
2248
+ this.rowIndex = 0;
2249
+ }
2250
+ get class() {
2251
+ return this.getColumnClasses();
2252
+ }
2253
+ get data() {
2254
+ var _a;
2255
+ if (this.variant === 'header') {
2256
+ return {
2257
+ value: this.value,
2258
+ };
2259
+ }
2260
+ return {
2261
+ value: (_a = this.value) !== null && _a !== void 0 ? _a : objectGetByPath(this.item, this.definition.path),
2262
+ item: this.item,
2263
+ index: this.index,
2264
+ rowIndex: this.rowIndex,
2265
+ };
2266
+ }
2267
+ // render() {
2268
+ // return (
2269
+ // <Host
2270
+ // class={{
2271
+ // 'p-table-column': true,
2272
+ // [`variant-${this.variant}`]: true,
2273
+ // ...this._getColumnClasses(),
2274
+ // }}
2275
+ // >
2276
+ // {this.checkbox}
2277
+ // {this.variant === 'loading' ? (
2278
+ // <p-loader
2279
+ // variant="ghost"
2280
+ // class="rounded flex-1 w-full h-6"
2281
+ // />
2282
+ // ) : (
2283
+ // <div class="flex">
2284
+ // {this.variant === 'header' ? (
2285
+ // this.data.value
2286
+ // ) : this.definition.useSlot ? (
2287
+ // <slot />
2288
+ // ) : (
2289
+ // this.template(this.data as TableDefinitionData)
2290
+ // )}
2291
+ // </div>
2292
+ // )}
2293
+ // </Host>
2294
+ // );
2295
+ // }
2296
+ getColumnClasses() {
2297
+ var _a, _b, _c, _d, _e, _f;
2298
+ const sizes = this.definition ? this._getSizes(this.definition) : {};
2299
+ 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);
2300
+ }
2301
+ /*
2302
+ With this, we shall hack the system in ways no one would ever have thought.
2303
+
2304
+ 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
2305
+ 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
2306
+ 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
2307
+ 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
2308
+ 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
2309
+ 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
2310
+ 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
2311
+ 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
2312
+ hidden flex
2313
+ tablet:hidden tablet:flex
2314
+ desktop-xs:hidden desktop-xs:flex
2315
+ desktop-sm:hidden desktop-sm:flex
2316
+ desktop:hidden desktop:flex
2317
+ desktop-lg:hidden desktop-lg:flex
2318
+ desktop-xl:hidden desktop-xl:flex
2319
+
2320
+
2321
+ ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀
2322
+ ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀
2323
+ ⠀⠀⠀⡾⠿⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⢧⠀⠀⠀
2324
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2325
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2326
+ ⠀⠀⠀⠀⠀⠀⠀⣠⣤⠶⠶⠶⠰⠦⣤⣀⠀⠙⣷⠀⠀⠀⠀⠀⠀⠀⢠⡿⠋⢀⣀⣤⢴⠆⠲⠶⠶⣤⣄⠀⠀⠀⠀⠀⠀⠀
2327
+ ⠀⠘⣆⠀⠀⢠⣾⣫⣶⣾⣿⣿⣿⣿⣷⣯⣿⣦⠈⠃⡇⠀⠀⠀⠀⢸⠘⢁⣶⣿⣵⣾⣿⣿⣿⣿⣷⣦⣝⣷⡄⠀⠀⡰⠂⠀
2328
+ ⠀⠀⣨⣷⣶⣿⣧⣛⣛⠿⠿⣿⢿⣿⣿⣛⣿⡿⠀⠀⡇⠀⠀⠀⠀⢸⠀⠈⢿⣟⣛⠿⢿⡿⢿⢿⢿⣛⣫⣼⡿⣶⣾⣅⡀⠀
2329
+ ⢀⡼⠋⠁⠀⠀⠈⠉⠛⠛⠻⠟⠸⠛⠋⠉⠁⠀⠀⢸⡇⠀⠀⠄⠀⢸⡄⠀⠀⠈⠉⠙⠛⠃⠻⠛⠛⠛⠉⠁⠀⠀⠈⠙⢧⡀
2330
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡇⢠⠀⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2331
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2332
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠁⣿⠇⠀⠀⠀⠀⢸⡇⠙⢿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2333
+ ⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⠖⡾⠁⠀⠀⣿⠀⠀⠀⠀⠀⠘⣿⠀⠀⠙⡇⢸⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠄⠀
2334
+ ⠀⠀⢻⣷⡦⣤⣤⣤⡴⠶⠿⠛⠉⠁⠀⢳⠀⢠⡀⢿⣀⠀⠀⠀⠀⣠⡟⢀⣀⢠⠇⠀⠈⠙⠛⠷⠶⢦⣤⣤⣤⢴⣾⡏⠀⠀
2335
+ ⠀⠀⠈⣿⣧⠙⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⢊⣙⠛⠒⠒⢛⣋⡚⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠁⣾⡿⠀⠀⠀
2336
+ ⠀⠀⠀⠘⣿⣇⠈⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⢿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡟⠁⣼⡿⠁⠀⠀⠀
2337
+ ⠀⠀⠀⠀⠘⣿⣦⠀⠻⣿⣷⣦⣤⣤⣶⣶⣶⣿⣿⣿⣿⠏⠀⠀⠻⣿⣿⣿⣿⣶⣶⣶⣦⣤⣴⣿⣿⠏⢀⣼⡿⠁⠀⠀⠀⠀
2338
+ ⠀⠀⠀⠀⠀⠘⢿⣷⣄⠙⠻⠿⠿⠿⠿⠿⢿⣿⣿⣿⣁⣀⣀⣀⣀⣙⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⠁⣠⣿⡿⠁⠀⠀⠀⠀⠀
2339
+ ⠀⠀⠀⠀⠀⠀⠈⠻⣯⠙⢦⣀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⣠⠴⢋⣾⠟⠀⠀⠀⠀⠀⠀⠀
2340
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡀⠈⠉⠒⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠐⠒⠉⠁⢀⡾⠃⠀⠀⠀⠀⠀⠀⠀⠀
2341
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2342
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢀⡴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2343
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2344
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2345
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2346
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2347
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2348
+ */
2349
+ _getSizes({ sizes } /* Table Definition */) {
2350
+ if (sizes === 'auto' || !sizes) {
2351
+ return {
2352
+ 'w-auto': true,
2353
+ };
2354
+ }
2355
+ if (sizes === 'hidden') {
2356
+ return {
2357
+ hidden: true,
2358
+ };
2359
+ }
2360
+ if (typeof sizes === 'object') {
2361
+ const classes = {};
2362
+ let previousSize = null;
2363
+ for (const size of Object.keys(sizes)) {
2364
+ if (size === 'default') {
2365
+ if (sizes.default === 'hidden') {
2366
+ classes['hidden'] = true;
2367
+ previousSize = size;
2368
+ continue;
2369
+ }
2370
+ classes[`w-${sizes.default}/12`] = true;
2371
+ previousSize = size;
2372
+ continue;
2373
+ }
2374
+ if (sizes[size] !== 'hidden' &&
2375
+ previousSize &&
2376
+ sizes[previousSize] === 'hidden') {
2377
+ classes[`${size}:flex`] = true;
2378
+ }
2379
+ if (sizes[size] === 'hidden') {
2380
+ classes[`${size}:hidden`] = true;
2381
+ previousSize = size;
2382
+ continue;
2383
+ }
2384
+ classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
2385
+ previousSize = size;
2386
+ }
2387
+ return classes;
2388
+ }
2389
+ // is a number.
2390
+ return {
2391
+ [`w-${sizes}/12`]: true,
2392
+ };
2393
+ }
2394
+ }
2395
+ TableCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
2396
+ TableCell.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }] });
2397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCell, decorators: [{
2398
+ type: Component,
2399
+ 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"] }]
2400
+ }], propDecorators: { variant: [{
2401
+ type: Input
2402
+ }], index: [{
2403
+ type: Input
2404
+ }], rowIndex: [{
2405
+ type: Input
2406
+ }], definition: [{
2407
+ type: Input
2408
+ }], item: [{
2409
+ type: Input
2410
+ }], value: [{
2411
+ type: Input
2412
+ }], checkbox: [{
2413
+ type: Input
2414
+ }], template: [{
2415
+ type: Input
2416
+ }], class: [{
2417
+ type: HostBinding,
2418
+ args: ['class']
2419
+ }] } });
2420
+
2421
+ let TableColumn = class TableColumn {
2422
+ constructor(c, r, z) {
2423
+ this.z = z;
2424
+ c.detach();
2425
+ this.el = r.nativeElement;
2426
+ proxyOutputs(this, this.el, ['tableDefinitionChanged']);
2427
+ }
2428
+ };
2429
+ TableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableColumn, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2430
+ TableColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
2431
+ TableColumn = __decorate([
2432
+ ProxyCmp({
2433
+ defineCustomElementFn: undefined,
2434
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
2435
+ })
2436
+ ], TableColumn);
2437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableColumn, decorators: [{
2438
+ type: Component,
2439
+ args: [{
2440
+ selector: 'p-table-column',
2441
+ changeDetection: ChangeDetectionStrategy.OnPush,
2442
+ template: '<ng-content></ng-content>',
2443
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
2444
+ }]
2445
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
2446
+ type: ContentChild,
2447
+ args: [TemplateRef, {
2448
+ read: TemplateRef,
2449
+ static: true,
2450
+ }]
2451
+ }] } });
2452
+
2453
+ class TableCustomFilterDirective {
2454
+ }
2455
+ TableCustomFilterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCustomFilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2456
+ TableCustomFilterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableCustomFilterDirective, selector: "[p-table-custom-filter]", ngImport: i0 });
2457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCustomFilterDirective, decorators: [{
2458
+ type: Directive,
2459
+ args: [{
2460
+ selector: '[p-table-custom-filter]',
2461
+ }]
2462
+ }] });
2463
+
2464
+ class TableFilterModalDirective {
2465
+ }
2466
+ TableFilterModalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilterModalDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2467
+ TableFilterModalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableFilterModalDirective, selector: "[p-table-filter-modal]", ngImport: i0 });
2468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilterModalDirective, decorators: [{
2469
+ type: Directive,
2470
+ args: [{
2471
+ selector: '[p-table-filter-modal]',
2472
+ }]
2473
+ }] });
2474
+
2475
+ class TableFooterDirective extends BaseValueAccessor {
2476
+ constructor(el) {
2477
+ super(el);
2478
+ this.lastValue = {
2479
+ page: 1,
2480
+ pageSize: 12,
2481
+ };
2482
+ }
2483
+ writeValue(value) {
2484
+ this.el.nativeElement.page = this.lastValue.page =
2485
+ (value === null || value === void 0 ? void 0 : value.page) == null ? 1 : value === null || value === void 0 ? void 0 : value.page;
2486
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2487
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? 12 : value === null || value === void 0 ? void 0 : value.pageSize;
2488
+ }
2489
+ handleChange(value, type) {
2490
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2491
+ }
2492
+ }
2493
+ TableFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFooterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2494
+ TableFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableFooterDirective, selector: "p-table-footer", host: { listeners: { "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")" } }, providers: [
2495
+ {
2496
+ provide: NG_VALUE_ACCESSOR,
2497
+ useExisting: TableFooterDirective,
2498
+ multi: true,
2499
+ },
2500
+ ], usesInheritance: true, ngImport: i0 });
2501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFooterDirective, decorators: [{
2502
+ type: Directive,
2503
+ args: [{
2504
+ /* tslint:disable-next-line:directive-selector */
2505
+ selector: 'p-table-footer',
2506
+ host: {
2507
+ '(pageChange)': 'handleChange($event.detail, "page")',
2508
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2509
+ },
2510
+ providers: [
2511
+ {
2512
+ provide: NG_VALUE_ACCESSOR,
2513
+ useExisting: TableFooterDirective,
2514
+ multi: true,
2515
+ },
2516
+ ],
2517
+ }]
2518
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2519
+
2520
+ class TableHeaderDirective extends BaseValueAccessor {
2521
+ constructor(el) {
2522
+ super(el);
2523
+ this.lastValue = {
2524
+ query: '',
2525
+ quickFilter: undefined,
2526
+ };
2527
+ }
2528
+ writeValue(value) {
2529
+ this.el.nativeElement.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
2530
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
2531
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
2532
+ this._setActiveQuickFilter(value.quickFilter);
2533
+ }
2534
+ }
2535
+ handleChange(value, type) {
2536
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2537
+ if (type === 'quickFilter' && typeof value !== 'string') {
2538
+ this._setActiveQuickFilter(value);
2539
+ }
2540
+ }
2541
+ _setActiveQuickFilter(quickFilter) {
2542
+ this.el.nativeElement.activeQuickFilterIdentifier =
2543
+ quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
2544
+ }
2545
+ }
2546
+ TableHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableHeaderDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2547
+ TableHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableHeaderDirective, selector: "p-table-header", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")" } }, providers: [
2548
+ {
2549
+ provide: NG_VALUE_ACCESSOR,
2550
+ useExisting: TableHeaderDirective,
2551
+ multi: true,
2552
+ },
2553
+ ], usesInheritance: true, ngImport: i0 });
2554
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableHeaderDirective, decorators: [{
2555
+ type: Directive,
2556
+ args: [{
2557
+ /* tslint:disable-next-line:directive-selector */
2558
+ selector: 'p-table-header',
2559
+ host: {
2560
+ '(queryChange)': 'handleChange($event.detail, "query")',
2561
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2562
+ },
2563
+ providers: [
2564
+ {
2565
+ provide: NG_VALUE_ACCESSOR,
2566
+ useExisting: TableHeaderDirective,
2567
+ multi: true,
2568
+ },
2569
+ ],
2570
+ }]
2571
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2572
+
2573
+ /* eslint-disable @angular-eslint/no-host-metadata-property */
2574
+ class TableNgxDirective extends BaseValueAccessor {
2575
+ constructor(el, _base) {
2576
+ super(el);
2577
+ this._base = _base;
2578
+ this.lastValue = {
2579
+ query: '',
2580
+ quickFilter: undefined,
2581
+ filters: [],
2582
+ page: 1,
2583
+ pageSize: 12,
2584
+ selectedRows: [],
2585
+ };
2586
+ }
2587
+ writeValue(value) {
2588
+ this._base.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
2589
+ // this.el.nativeElement.query = this.lastValue.query = value?.query;
2590
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
2591
+ this.lastValue.filters = value === null || value === void 0 ? void 0 : value.filters;
2592
+ this._base.page = this.lastValue.page =
2593
+ (value === null || value === void 0 ? void 0 : value.page) == null ? 1 : value === null || value === void 0 ? void 0 : value.page;
2594
+ this._base.pageSize = this.lastValue.pageSize =
2595
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? 12 : value === null || value === void 0 ? void 0 : value.pageSize;
2596
+ // this.el.nativeElement.page = this.lastValue.page =
2597
+ // value?.page == null ? 1 : value?.page;
2598
+ // this.el.nativeElement.pageSize = this.lastValue.pageSize =
2599
+ // value?.pageSize == null ? 12 : value?.pageSize;
2600
+ this._base.selectedRows = this.lastValue.selectedRows =
2601
+ (value === null || value === void 0 ? void 0 : value.selectedRows) == null ? [] : value === null || value === void 0 ? void 0 : value.selectedRows;
2602
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
2603
+ this._setActiveQuickFilter(value.quickFilter);
2604
+ }
2605
+ this._base.selectedFiltersAmount = !value.filters || value.filters.length === 0 ? undefined : value.filters.length;
2606
+ this._checkEmptyStateType();
2607
+ this._checkResetButtons();
2608
+ }
2609
+ registerOnChange(fn) {
2610
+ this.onChange = fn;
2611
+ }
2612
+ registerOnTouched(fn) {
2613
+ this.onTouched = fn;
2614
+ }
2615
+ handleChange(value, type) {
2616
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2617
+ if (type === 'quickFilter' && typeof value === 'object') {
2618
+ this._setActiveQuickFilter(value);
2619
+ }
2620
+ this._checkEmptyStateType();
2621
+ this._checkResetButtons();
2622
+ }
2623
+ _setActiveQuickFilter(quickFilter) {
2624
+ this._base.activeQuickFilterIdentifier = quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
2625
+ // this.el.nativeElement.activeQuickFilterIdentifier =
2626
+ // quickFilter?.identifier;
2627
+ }
2628
+ _checkEmptyStateType() {
2629
+ var _a, _b, _c;
2630
+ if (((_a = this.lastValue.query) === null || _a === void 0 ? void 0 : _a.length) || (this.lastValue.quickFilter && !((_b = this.lastValue.quickFilter) === null || _b === void 0 ? void 0 : _b.default)) || (this._base.selectedFiltersAmount && this._base.selectedFiltersAmount > 0) || ((_c = this.lastValue.filters) === null || _c === void 0 ? void 0 : _c.length)) {
2631
+ this._base.emptyStateType = 'filtered';
2632
+ return;
2633
+ }
2634
+ this._base.emptyStateType = 'no_filter';
2635
+ }
2636
+ _checkResetButtons() {
2637
+ const activeQuickFilter = this.lastValue.quickFilter;
2638
+ const selectedFiltersAmount = this._base.selectedFiltersAmount;
2639
+ if (activeQuickFilter ||
2640
+ selectedFiltersAmount) {
2641
+ if (selectedFiltersAmount && selectedFiltersAmount > 0) {
2642
+ this._base.filterModalShowReset = true;
2643
+ }
2644
+ else {
2645
+ this._base.filterModalShowReset = false;
2646
+ }
2647
+ if (selectedFiltersAmount && selectedFiltersAmount > 0 || !(activeQuickFilter === null || activeQuickFilter === void 0 ? void 0 : activeQuickFilter.default)) {
2648
+ this._base.filterModalShowResetMobile = true;
2649
+ }
2650
+ else {
2651
+ this._base.filterModalShowResetMobile = false;
2652
+ }
2653
+ }
2654
+ }
2655
+ }
2656
+ TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: Table, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2657
+ TableNgxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", 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: [
2658
+ {
2659
+ provide: NG_VALUE_ACCESSOR,
2660
+ useExisting: TableNgxDirective,
2661
+ multi: true,
2662
+ },
2663
+ ], usesInheritance: true, ngImport: i0 });
2664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableNgxDirective, decorators: [{
2665
+ type: Directive,
2666
+ args: [{
2667
+ selector: 'p-table-ngx',
2668
+ host: {
2669
+ '(queryChange)': 'handleChange($event.detail, "query")',
2670
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2671
+ '(pageChange)': 'handleChange($event.detail, "page")',
2672
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2673
+ '(selectedRowsChange)': 'handleChange($event, "selectedRows")',
2674
+ },
2675
+ providers: [
2676
+ {
2677
+ provide: NG_VALUE_ACCESSOR,
2678
+ useExisting: TableNgxDirective,
2679
+ multi: true,
2680
+ },
2681
+ ],
2682
+ }]
2683
+ }], ctorParameters: function () {
2684
+ return [{ type: i0.ElementRef }, { type: Table, decorators: [{
2685
+ type: Host
2686
+ }] }];
2687
+ } });
2688
+
2689
+ class TableDirective extends BaseValueAccessor {
2690
+ constructor(el) {
2691
+ super(el);
2692
+ this.lastValue = {
2693
+ query: '',
2694
+ quickFilter: undefined,
2695
+ page: 1,
2696
+ pageSize: 12,
2697
+ selectedRows: [],
2698
+ };
2699
+ }
2700
+ writeValue(value) {
2701
+ this.el.nativeElement.query = this.lastValue.query = value === null || value === void 0 ? void 0 : value.query;
2702
+ this.lastValue.quickFilter = value === null || value === void 0 ? void 0 : value.quickFilter;
2703
+ this.el.nativeElement.page = this.lastValue.page =
2704
+ (value === null || value === void 0 ? void 0 : value.page) == null ? 1 : value === null || value === void 0 ? void 0 : value.page;
2705
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2706
+ (value === null || value === void 0 ? void 0 : value.pageSize) == null ? 12 : value === null || value === void 0 ? void 0 : value.pageSize;
2707
+ this.lastValue.selectedRows =
2708
+ (value === null || value === void 0 ? void 0 : value.selectedRows) == null ? [] : value === null || value === void 0 ? void 0 : value.selectedRows;
2709
+ if (value === null || value === void 0 ? void 0 : value.quickFilter) {
2710
+ this._setActiveQuickFilter(value.quickFilter);
2711
+ }
2712
+ }
2713
+ registerOnChange(fn) {
2714
+ this.onChange = fn;
2715
+ }
2716
+ registerOnTouched(fn) {
2717
+ this.onTouched = fn;
2718
+ }
2719
+ handleChange(value, type) {
2720
+ this.handleChangeEvent(Object.assign(Object.assign({}, this.lastValue), { [type]: value }));
2721
+ if (type === 'quickFilter' && typeof value === 'object') {
2722
+ this._setActiveQuickFilter(value);
2723
+ }
2724
+ }
2725
+ _setActiveQuickFilter(quickFilter) {
2726
+ this.el.nativeElement.activeQuickFilterIdentifier =
2727
+ quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.identifier;
2728
+ }
2729
+ }
2730
+ TableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2731
+ TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", 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: [
2732
+ {
2733
+ provide: NG_VALUE_ACCESSOR,
2734
+ useExisting: TableDirective,
2735
+ multi: true,
2736
+ },
2737
+ ], usesInheritance: true, ngImport: i0 });
2738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableDirective, decorators: [{
2739
+ type: Directive,
2740
+ args: [{
2741
+ /* tslint:disable-next-line:directive-selector */
2742
+ selector: 'p-table',
2743
+ host: {
2744
+ '(queryChange)': 'handleChange($event.detail, "query")',
2745
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2746
+ '(pageChange)': 'handleChange($event.detail, "page")',
2747
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2748
+ '(selectedRowsChange)': 'handleChange($event.detail, "selectedRows")',
2749
+ },
2750
+ providers: [
2751
+ {
2752
+ provide: NG_VALUE_ACCESSOR,
2753
+ useExisting: TableDirective,
2754
+ multi: true,
2755
+ },
2756
+ ],
2757
+ }]
2758
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2759
+
2760
+ const TABLE_DIRECTIVES = [
2761
+ TableFooterDirective,
2762
+ TableHeaderDirective,
2763
+ TableDirective,
2764
+ TableNgxDirective,
2765
+ TableFilterModalDirective,
2766
+ TableCustomFilterDirective,
2767
+ ];
2768
+
2769
+ const defaultSize = 12;
2770
+ const defaultSizeOptions = [12, 24, 68, 136];
2771
+
2772
+ let Table = class Table {
2773
+ constructor() {
2774
+ /**
2775
+ * Wether data is loading
2776
+ */
2777
+ this.loading = false;
2778
+ /**
2779
+ * Wether the header should show loading state
2780
+ */
2781
+ this.headerLoading = false;
2782
+ /**
2783
+ * Wether the footer should show loading state
2784
+ */
2785
+ this.footerLoading = false;
2786
+ /**
2787
+ * The amount of loading rows to show
2788
+ */
2789
+ this.amountOfLoadingRows = 6;
2790
+ /**
2791
+ * Wether to enable selection
2792
+ */
2793
+ this.enableRowSelection = true;
2794
+ /**
2795
+ * Wether to enable row clicking
2796
+ */
2797
+ this.enableRowClick = true;
2798
+ /**
2799
+ * The current selection of items
2800
+ */
2801
+ this.selectedRows = [];
2802
+ /**
2803
+ * Event whenever the current selection changes
2804
+ */
2805
+ this.selectedRowsChange = new EventEmitter();
2806
+ /**
2807
+ * Event whenever a row is clicked
2808
+ */
2809
+ this.rowClick = new EventEmitter();
2810
+ /**
2811
+ * Event whenever a row is selected
2812
+ */
2813
+ this.rowSelected = new EventEmitter();
2814
+ /**
2815
+ * Event whenever a row is deselected
2816
+ */
2817
+ this.rowDeselected = new EventEmitter();
2818
+ /** START HEADER */
2819
+ /**
2820
+ * Wether to show the header
2821
+ */
2822
+ this.enableHeader = true;
2823
+ /**
2824
+ * Quick filters to show
2825
+ */
2826
+ this.quickFilters = [];
2827
+ /**
2828
+ * Wether to show the search input
2829
+ */
2830
+ this.enableSearch = true;
2831
+ /**
2832
+ * Wether to show the filter button
2833
+ */
2834
+ this.enableFilter = true;
2835
+ /**
2836
+ * Wether to show the edit button
2837
+ */
2838
+ this.enableEdit = true;
2839
+ /**
2840
+ * Wether the edit button is loading
2841
+ */
2842
+ this.editButtonLoading = false;
2843
+ /**
2844
+ * The edit button icon
2845
+ */
2846
+ this.editButtonIcon = 'pencil';
2847
+ /**
2848
+ * Event when one of the quick filters is clicked
2849
+ */
2850
+ this.quickFilter = new EventEmitter();
2851
+ /**
2852
+ * Event when the query changes
2853
+ */
2854
+ this.queryChange = new EventEmitter();
2855
+ /**
2856
+ * Event when the filter button is clicked
2857
+ */
2858
+ this.filter = new EventEmitter();
2859
+ /**
2860
+ * Event when the edit button is clicked
2861
+ */
2862
+ this.edit = new EventEmitter();
2863
+ /** START FOOTER */
2864
+ /**
2865
+ * Wether to show the footer
2866
+ */
2867
+ this.enableFooter = true;
2868
+ /**
2869
+ * Wether to enable page size select
2870
+ */
2871
+ this.enablePageSize = true;
2872
+ /**
2873
+ * Wether to enable pagination
2874
+ */
2875
+ this.enablePagination = true;
2876
+ /**
2877
+ * Wether to enable export
2878
+ */
2879
+ this.enableExport = true;
2880
+ /**
2881
+ * The current page
2882
+ */
2883
+ this.page = 1;
2884
+ /**
2885
+ * Event whenever the page changes
2886
+ */
2887
+ this.pageChange = new EventEmitter();
2888
+ /**
2889
+ * The amount of items per page
2890
+ */
2891
+ this.pageSize = defaultSize;
2892
+ /**
2893
+ * The options for the page size
2894
+ */
2895
+ this.pageSizeOptions = defaultSizeOptions;
2896
+ /**
2897
+ * Event whenever the page changes
2898
+ */
2899
+ this.pageSizeChange = new EventEmitter();
2900
+ /**
2901
+ * Event whenever the page changes
2902
+ */
2903
+ this.export = new EventEmitter();
2904
+ /**
2905
+ * Wether to hide when there is only 1 page available
2906
+ */
2907
+ this.hideOnSinglePage = true;
2908
+ /* Empty state start */
2909
+ this.emptyStateType = 'no_filter';
2910
+ this.emptyStateIllustration = 'empty-state-add';
2911
+ this.enableEmptyStateAction = true;
2912
+ this.emptyStateFilteredIllustration = 'empty-state-search';
2913
+ /**
2914
+ * Event whenever the empty state is clicked
2915
+ */
2916
+ this.emptyStateActionClick = new EventEmitter();
2917
+ /* Empty state end */
2918
+ this.columns = [];
2919
+ this.parsedItems = [];
2920
+ this.loadingRows = Array.from({
2921
+ length: this.amountOfLoadingRows,
2922
+ });
2923
+ this._ctrlDown = false;
2924
+ this.filterModalShow$ = new BehaviorSubject(false);
2925
+ this.filterModalHeaderText = 'Filters';
2926
+ this.filterModalSaveText = 'Save';
2927
+ this.filterModalCancelText = 'Cancel';
2928
+ this.filterModalResetText = 'Reset filters';
2929
+ this.filterModalShowReset = false;
2930
+ this.filterModalShowResetMobile = false;
2931
+ this.filterModalShow = new EventEmitter();
2932
+ this.filterModalSave = new EventEmitter();
2933
+ this.filterModalReset = new EventEmitter();
2934
+ }
2935
+ set columnDefinitions(v) {
2936
+ this._columnDefinitions = v;
2937
+ this._generateColumns();
2938
+ }
2939
+ get columnDefinitions() {
2940
+ return this._columnDefinitions;
2941
+ }
2942
+ ngOnInit() {
2943
+ this._parseItems(this.items);
2944
+ this.loadingRows = Array.from({
2945
+ length: this.amountOfLoadingRows,
2946
+ });
2947
+ this.filterModalShow$
2948
+ .pipe(untilDestroyed(this), distinctUntilChanged())
2949
+ .subscribe((value) => this.filterModalShow.next(value));
2950
+ // this._generateColumns();
2951
+ }
2952
+ ngOnChanges(changes) {
2953
+ if (changes['items']) {
2954
+ this._parseItems(changes['items'].currentValue);
2955
+ }
2956
+ if (changes['amountOfLoadingRows']) {
2957
+ this.loadingRows = Array.from({
2958
+ length: changes['amountOfLoadingRows'].currentValue,
2959
+ });
2960
+ }
2961
+ }
2962
+ // @HostListener('body:tableDefinitionChanged', { target: 'body' })
2963
+ // onTableDefinitionUpdated() {
2964
+ // this._generateColumns();
2965
+ // }
2966
+ keyDown({ key }) {
2967
+ if (key !== 'Control' || this._ctrlDown === true) {
2968
+ return;
2969
+ }
2970
+ this._ctrlDown = true;
2971
+ }
2972
+ keyUp({ key }) {
2973
+ if (key !== 'Control' || this._ctrlDown === false) {
2974
+ return;
2975
+ }
2976
+ this._ctrlDown = false;
2977
+ }
2978
+ visibilityChange() {
2979
+ if (document.visibilityState !== 'hidden' || this._ctrlDown === false) {
2980
+ return;
2981
+ }
2982
+ this._ctrlDown = false;
2983
+ }
2984
+ onQueryChange({ detail }) {
2985
+ this.queryChange.emit(detail);
2986
+ }
2987
+ onQuickFilter({ detail }) {
2988
+ this.quickFilter.emit(detail);
2989
+ }
2990
+ onPageSizeChange({ detail }) {
2991
+ this.pageSizeChange.emit(detail);
2992
+ }
2993
+ onPageChange({ detail }) {
2994
+ this.pageChange.emit(detail);
2995
+ }
2996
+ onFilterModalSave() {
2997
+ this.filterModalSave.next();
2998
+ this.filterModalShow$.next(false);
2999
+ }
3000
+ onFilterModalReset(resetQuickFilter = false) {
3001
+ this.filterModalReset.next(resetQuickFilter);
3002
+ this.filterModalShow$.next(false);
3003
+ }
3004
+ emptyStateClicked() {
3005
+ if (!this.enableEmptyStateAction) {
3006
+ return;
3007
+ }
3008
+ this.emptyStateActionClick.emit();
3009
+ }
3010
+ _parseItems(items) {
3011
+ if (!items) {
3012
+ this.parsedItems = [];
3013
+ return;
3014
+ }
3015
+ if (Array.isArray(items)) {
3016
+ this.parsedItems = items;
3017
+ return;
3018
+ }
3019
+ this.parsedItems = JSON.parse(items);
3020
+ }
3021
+ _generateColumns() {
3022
+ // const definitions =
3023
+ // this._el.nativeElement.querySelectorAll('p-table-definition');
3024
+ this.columns = Array.from(this._columnDefinitions);
3025
+ }
3026
+ // private _getHeader() {
3027
+ // return (
3028
+ // <p-table-row variant="header">
3029
+ // {this._columns.map((col: TableDefinition, index) => (
3030
+ // <p-table-column
3031
+ // definition={col}
3032
+ // value={col.name}
3033
+ // variant="header"
3034
+ // checkbox={this._getCheckbox(index, null, 'header')}
3035
+ // index={index}
3036
+ // ></p-table-column>
3037
+ // ))}
3038
+ // </p-table-row>
3039
+ // );
3040
+ // }
3041
+ // private _getRows() {
3042
+ // if (this.loading) {
3043
+ // return Array.from(
3044
+ // {
3045
+ // length: this.amountOfLoadingRows,
3046
+ // },
3047
+ // (_, i) => (
3048
+ // <p-table-row
3049
+ // enableHover={
3050
+ // this.enableRowSelection || this.enableRowClick
3051
+ // }
3052
+ // >
3053
+ // {this._getLoadingColumns(i)}
3054
+ // </p-table-row>
3055
+ // )
3056
+ // );
3057
+ // }
3058
+ // return this._items.map((item, index) => (
3059
+ // <p-table-row
3060
+ // enableHover={this.enableRowSelection || this.enableRowClick}
3061
+ // onClick={(ev) => this._rowClick(ev, index)}
3062
+ // >
3063
+ // {this._getRowColumns(item, index)}
3064
+ // </p-table-row>
3065
+ // ));
3066
+ // }
3067
+ // private _getRowColumns(item, index) {
3068
+ // return this._columns.map((col: TableDefinition, colIndex) => {
3069
+ // return (
3070
+ // <p-table-column
3071
+ // definition={col}
3072
+ // item={item}
3073
+ // checkbox={this._getCheckbox(colIndex, index)}
3074
+ // index={colIndex}
3075
+ // rowIndex={index}
3076
+ // ></p-table-column>
3077
+ // );
3078
+ // });
3079
+ // }
3080
+ // private _getLoadingColumns(index) {
3081
+ // return this._columns.map((col: TableDefinition, colIndex) => {
3082
+ // return (
3083
+ // <p-table-column
3084
+ // definition={col}
3085
+ // variant="loading"
3086
+ // checkbox={this._getCheckbox(colIndex, index, 'loading')}
3087
+ // index={colIndex}
3088
+ // rowIndex={index}
3089
+ // ></p-table-column>
3090
+ // );
3091
+ // });
3092
+ // }
3093
+ // private _getCheckbox(
3094
+ // index,
3095
+ // rowIndex,
3096
+ // variant: 'header' | 'default' | 'loading' = 'default'
3097
+ // ) {
3098
+ // if (!this.enableRowSelection || !this.selectionKey || index !== 0) {
3099
+ // return;
3100
+ // }
3101
+ // if (variant === 'loading') {
3102
+ // return <p-loader variant="ghost" class="rounded w-6 h-6" />;
3103
+ // }
3104
+ // if (variant === 'header') {
3105
+ // return (
3106
+ // <input
3107
+ // class="p-input"
3108
+ // type="checkbox"
3109
+ // onChange={(ev) => this._selectAllChange(ev)}
3110
+ // checked={this._selectionContainsAll()}
3111
+ // indeterminate={this._selectionIndeterminate()}
3112
+ // />
3113
+ // );
3114
+ // }
3115
+ // const item = this._items[rowIndex];
3116
+ // return (
3117
+ // <input
3118
+ // class="p-input"
3119
+ // type="checkbox"
3120
+ // onChange={(ev) => this._checkboxChange(ev?.target, rowIndex)}
3121
+ // disabled={this.canSelectKey && !item[this.canSelectKey]}
3122
+ // checked={this._selectionContains(item, rowIndex)}
3123
+ // />
3124
+ // );
3125
+ // }
3126
+ _checkboxDisabled(item) {
3127
+ return this.canSelectKey && !item[this.canSelectKey];
3128
+ }
3129
+ _selectAllChange($event) {
3130
+ if (!this.enableRowSelection) {
3131
+ return;
3132
+ }
3133
+ const value = this._getCheckedValue($event.target);
3134
+ if (value) {
3135
+ const toAdd = [];
3136
+ for (let i = 0; i < this.parsedItems.length; i++) {
3137
+ const row = this.parsedItems[i];
3138
+ if (this.canSelectKey && !row[this.canSelectKey]) {
3139
+ continue;
3140
+ }
3141
+ if (this._selectionContains(row, i)) {
3142
+ continue;
3143
+ }
3144
+ toAdd.push(row);
3145
+ this.rowSelected.emit(row);
3146
+ }
3147
+ this.selectedRows = [...this.selectedRows, ...toAdd];
3148
+ this.selectedRowsChange.emit(this.selectedRows);
3149
+ return;
3150
+ }
3151
+ for (let i = 0; i < this.selectedRows.length; i++) {
3152
+ const value = this.selectedRows[i];
3153
+ const row = this.parsedItems.find((d) => this._getSelectionValue(d, i) ===
3154
+ this._getSelectionValue(value, i));
3155
+ if (!row) {
3156
+ continue;
3157
+ }
3158
+ this.rowDeselected.emit(row);
3159
+ }
3160
+ this.selectedRows = [];
3161
+ this.selectedRowsChange.emit(this.selectedRows);
3162
+ }
3163
+ _checkboxChange(target, index) {
3164
+ if (!this.enableRowSelection) {
3165
+ return;
3166
+ }
3167
+ const row = this.parsedItems[index];
3168
+ if (this.canSelectKey && !row[this.canSelectKey]) {
3169
+ target.checked = false;
3170
+ return;
3171
+ }
3172
+ const value = this._getCheckedValue(target);
3173
+ if (value) {
3174
+ this.selectedRows = [...this.selectedRows, row];
3175
+ this.selectedRowsChange.emit(this.selectedRows);
3176
+ this.rowSelected.emit(row);
3177
+ return;
3178
+ }
3179
+ const indexOfToRemove = this._selectionContains(row, index, true);
3180
+ // we need to do this, because splice does not trigger the selection setter.
3181
+ const selection = [...this.selectedRows];
3182
+ selection.splice(indexOfToRemove, 1);
3183
+ this.selectedRows = selection;
3184
+ this.selectedRowsChange.emit(this.selectedRows);
3185
+ this.rowDeselected.emit(row);
3186
+ }
3187
+ _getCheckedValue(target) {
3188
+ return target === null || target === void 0 ? void 0 : target.checked;
3189
+ }
3190
+ _getSelectionValue(row, index) {
3191
+ return this.selectionKey ? (row === null || row === void 0 ? void 0 : row[this.selectionKey]) || index : index;
3192
+ }
3193
+ _selectionContains(row, index, returnIndex = false) {
3194
+ const returnValue = this.selectedRows.findIndex((item) => this._getSelectionValue(row, index) ===
3195
+ this._getSelectionValue(item, index));
3196
+ return !returnIndex ? returnValue >= 0 : returnValue;
3197
+ }
3198
+ _selectionContainsAll() {
3199
+ var _a, _b;
3200
+ let returnValue = true;
3201
+ if (!((_a = this.parsedItems) === null || _a === void 0 ? void 0 : _a.length)) {
3202
+ return false;
3203
+ }
3204
+ for (let i = 0; i < ((_b = this.parsedItems) === null || _b === void 0 ? void 0 : _b.length); i++) {
3205
+ const item = this.parsedItems[i];
3206
+ const contains = this._selectionContains(item, i);
3207
+ if (!contains) {
3208
+ returnValue = false;
3209
+ break;
3210
+ }
3211
+ }
3212
+ return returnValue;
3213
+ }
3214
+ _selectionIndeterminate() {
3215
+ var _a, _b, _c;
3216
+ if (!((_a = this.parsedItems) === null || _a === void 0 ? void 0 : _a.length) || !((_b = this.selectedRows) === null || _b === void 0 ? void 0 : _b.length)) {
3217
+ return false;
3218
+ }
3219
+ let containsCount = 0;
3220
+ for (let i = 0; i < ((_c = this.parsedItems) === null || _c === void 0 ? void 0 : _c.length); i++) {
3221
+ const item = this.parsedItems[i];
3222
+ const contains = this._selectionContains(item, i);
3223
+ if (contains) {
3224
+ containsCount++;
3225
+ }
3226
+ }
3227
+ return containsCount > 0 && containsCount !== this.parsedItems.length;
3228
+ }
3229
+ _rowClick($event, index) {
3230
+ const target = $event.target;
3231
+ if (target.tagName.toLowerCase() === 'input' ||
3232
+ target.type === 'checkbox') {
3233
+ return;
3234
+ }
3235
+ const row = this._findRow($event.target);
3236
+ if (this.enableRowClick) {
3237
+ const action = this._findRowAction($event.target);
3238
+ if (action) {
3239
+ return;
3240
+ }
3241
+ const item = this.parsedItems[index];
3242
+ this.rowClick.emit({
3243
+ item,
3244
+ ctrlDown: this._ctrlDown,
3245
+ });
3246
+ return;
3247
+ }
3248
+ if (!this.enableRowSelection) {
3249
+ return;
3250
+ }
3251
+ const checkbox = row === null || row === void 0 ? void 0 : row.querySelector('input[type="checkbox"]');
3252
+ if (!checkbox) {
3253
+ return;
3254
+ }
3255
+ checkbox.checked = !checkbox.checked;
3256
+ this._checkboxChange(checkbox, index);
3257
+ }
3258
+ _findRow(el) {
3259
+ var _a;
3260
+ if (!el) {
3261
+ return el;
3262
+ }
3263
+ if (((_a = el === null || el === void 0 ? void 0 : el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'p-table-row') {
3264
+ return el;
3265
+ }
3266
+ return this._findRow(el === null || el === void 0 ? void 0 : el.parentElement);
3267
+ }
3268
+ _findRowAction(el) {
3269
+ var _a;
3270
+ if (!el) {
3271
+ return null;
3272
+ }
3273
+ if (el.getAttribute('data-is-action') !== null &&
3274
+ el.getAttribute('data-is-action') !== 'false') {
3275
+ return el;
3276
+ }
3277
+ if (((_a = el === null || el === void 0 ? void 0 : el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'p-table-row') {
3278
+ return null;
3279
+ }
3280
+ return this._findRowAction(el === null || el === void 0 ? void 0 : el.parentElement);
3281
+ }
3282
+ };
3283
+ Table.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
3284
+ Table.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: Table, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", headerLoading: "headerLoading", footerLoading: "footerLoading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", enableHeader: "enableHeader", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableEdit: "enableEdit", editButtonLoading: "editButtonLoading", editButtonIcon: "editButtonIcon", editButtonText: "editButtonText", editButtonTemplate: "editButtonTemplate", enableFooter: "enableFooter", enablePageSize: "enablePageSize", enablePagination: "enablePagination", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage", emptyStateType: "emptyStateType", emptyStateIllustration: "emptyStateIllustration", emptyStateHeader: "emptyStateHeader", emptyStateContent: "emptyStateContent", emptyStateAction: "emptyStateAction", enableEmptyStateAction: "enableEmptyStateAction", emptyStateFilteredIllustration: "emptyStateFilteredIllustration", emptyStateFilteredHeader: "emptyStateFilteredHeader", emptyStateFilteredContent: "emptyStateFilteredContent", filterModalHeaderText: "filterModalHeaderText", filterModalSaveText: "filterModalSaveText", filterModalCancelText: "filterModalCancelText", filterModalResetText: "filterModalResetText", filterModalShowReset: "filterModalShowReset", filterModalShowResetMobile: "filterModalShowResetMobile" }, outputs: { selectedRowsChange: "selectedRowsChange", rowClick: "rowClick", rowSelected: "rowSelected", rowDeselected: "rowDeselected", quickFilter: "quickFilter", queryChange: "queryChange", filter: "filter", edit: "edit", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export", emptyStateActionClick: "emptyStateActionClick", filterModalShow: "filterModalShow", filterModalSave: "filterModalSave", filterModalReset: "filterModalReset" }, host: { listeners: { "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" } }, queries: [{ propertyName: "headerCustomFilterTemplate", first: true, predicate: TableCustomFilterDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "filterModalTemplate", first: true, predicate: TableFilterModalDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "columnDefinitions", predicate: TableColumn }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n <p-table-header\n *ngIf=\"enableHeader\"\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (quickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (queryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (filter)=\"filterModalShow$.next(true)\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n [editLoading]=\"editButtonLoading\"\n [editText]=\"editButtonText\"\n [editIcon]=\"editButtonIcon\"\n (edit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n [loading]=\"headerLoading\"\n >\n <ng-container *ngIf=\"headerCustomFilterTemplate\">\n <ng-container\n *ngTemplateOutlet=\"headerCustomFilterTemplate\"\n ></ng-container>\n </ng-container>\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]=\"\n index === 0 && enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\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]=\"\n (index === 0 || col.hasCheckbox) &&\n enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"h-6 w-6 rounded\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <ng-container *ngIf=\"items?.length; else emptyStateTemplate\">\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\n *ngFor=\"let col of columns; let index = index\"\n >\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"\n (index === 0 || col.hasCheckbox) &&\n enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\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)=\"\n _checkboxChange($event.target, rowIndex)\n \"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n </ng-template>\n </div>\n\n <p-table-footer\n *ngIf=\"enableFooter\"\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (pageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (pageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (export)=\"export.emit()\"\n [loading]=\"footerLoading\"\n ></p-table-footer>\n</p-table-container>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n <p-modal\n [header]=\"filterModalHeaderText\"\n [show]=\"filterModalShow$ | async\"\n (closed)=\"filterModalShow$.next(false)\"\n >\n <div slot=\"content\" class=\"flex flex-col gap-6\">\n <ng-container\n *ngTemplateOutlet=\"filterModalTemplate\"\n ></ng-container>\n </div>\n <div slot=\"footer\" class=\"flex w-full justify-between gap-4\">\n <p-button\n *ngIf=\"filterModalShowResetMobile\"\n class=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n variant=\"secondary\"\n (onClick)=\"onFilterModalReset(true)\"\n >\n {{ filterModalResetText }}\n </p-button>\n <p-button\n *ngIf=\"filterModalShowReset\"\n class=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n variant=\"secondary\"\n (onClick)=\"onFilterModalReset()\"\n >\n {{ filterModalResetText }}\n </p-button>\n <p-button\n class=\"ml-auto w-full tablet:w-auto\"\n icon=\"checkmark\"\n (onClick)=\"onFilterModalSave()\"\n >\n {{ filterModalSaveText }}\n </p-button>\n </div>\n </p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n <div\n *ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n class=\"\n flex\n max-w-[20rem]\n flex-col\n items-center\n self-center\n py-24\n text-center\n \"\n >\n <p-illustration\n [variant]=\"emptyStateFilteredIllustration\"\n class=\"mb-6\"\n ></p-illustration>\n <p class=\"text-storm-default font-semibold\">\n {{ emptyStateFilteredHeader }}\n </p>\n <p class=\"mb-14 text-sm text-storm-medium\">\n {{ emptyStateFilteredContent }}\n </p>\n </div>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n <div\n class=\"\n flex\n max-w-[20rem]\n flex-col\n items-center\n self-center\n py-24\n text-center\n \"\n [class.cursor-pointer]=\"enableEmptyStateAction\"\n (click)=\"emptyStateClicked()\"\n >\n <p-illustration\n [variant]=\"emptyStateIllustration\"\n class=\"mb-6\"\n ></p-illustration>\n <p class=\"text-storm-default font-semibold\">\n {{ emptyStateHeader }}\n </p>\n <p class=\"mb-6 text-sm text-storm-medium\">\n {{ emptyStateContent }}\n </p>\n <p-button\n *ngIf=\"enableEmptyStateAction\"\n variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n >\n {{ emptyStateAction }}\n </p-button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PButton, selector: "p-button", inputs: ["chevron", "chevronPosition", "disabled", "href", "icon", "iconFlip", "iconOnly", "iconPosition", "iconRotate", "inheritText", "loading", "size", "target", "variant"] }, { kind: "component", type: PIllustration, selector: "p-illustration", inputs: ["variant"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }, { kind: "component", type: PModal, selector: "p-modal", inputs: ["applyBlur", "backdropClickClose", "header", "scrollLock", "show", "showClose", "showMobileFooter", "size", "variant"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enableExport", "enablePageSize", "enablePagination", "hideOnSinglePage", "loading", "page", "pageSize", "pageSizeOptions", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["activeQuickFilterIdentifier", "canEdit", "editButtonTemplate", "editIcon", "editLoading", "editText", "enableEdit", "enableFilter", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "loading", "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" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3285
+ Table = __decorate([
3286
+ UntilDestroy({ checkProperties: true })
3287
+ ], Table);
3288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Table, decorators: [{
3289
+ type: Component,
3290
+ args: [{ selector: 'p-table-ngx', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-table-container>\n <p-table-header\n *ngIf=\"enableHeader\"\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (quickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (queryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (filter)=\"filterModalShow$.next(true)\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n [editLoading]=\"editButtonLoading\"\n [editText]=\"editButtonText\"\n [editIcon]=\"editButtonIcon\"\n (edit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n [loading]=\"headerLoading\"\n >\n <ng-container *ngIf=\"headerCustomFilterTemplate\">\n <ng-container\n *ngTemplateOutlet=\"headerCustomFilterTemplate\"\n ></ng-container>\n </ng-container>\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]=\"\n index === 0 && enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\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]=\"\n (index === 0 || col.hasCheckbox) &&\n enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"h-6 w-6 rounded\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <ng-container *ngIf=\"items?.length; else emptyStateTemplate\">\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\n *ngFor=\"let col of columns; let index = index\"\n >\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"\n (index === 0 || col.hasCheckbox) &&\n enableRowSelection\n ? checkboxTemplate\n : undefined\n \"\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)=\"\n _checkboxChange($event.target, rowIndex)\n \"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n </ng-template>\n </div>\n\n <p-table-footer\n *ngIf=\"enableFooter\"\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (pageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (pageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (export)=\"export.emit()\"\n [loading]=\"footerLoading\"\n ></p-table-footer>\n</p-table-container>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n <p-modal\n [header]=\"filterModalHeaderText\"\n [show]=\"filterModalShow$ | async\"\n (closed)=\"filterModalShow$.next(false)\"\n >\n <div slot=\"content\" class=\"flex flex-col gap-6\">\n <ng-container\n *ngTemplateOutlet=\"filterModalTemplate\"\n ></ng-container>\n </div>\n <div slot=\"footer\" class=\"flex w-full justify-between gap-4\">\n <p-button\n *ngIf=\"filterModalShowResetMobile\"\n class=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n variant=\"secondary\"\n (onClick)=\"onFilterModalReset(true)\"\n >\n {{ filterModalResetText }}\n </p-button>\n <p-button\n *ngIf=\"filterModalShowReset\"\n class=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n variant=\"secondary\"\n (onClick)=\"onFilterModalReset()\"\n >\n {{ filterModalResetText }}\n </p-button>\n <p-button\n class=\"ml-auto w-full tablet:w-auto\"\n icon=\"checkmark\"\n (onClick)=\"onFilterModalSave()\"\n >\n {{ filterModalSaveText }}\n </p-button>\n </div>\n </p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n <div\n *ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n class=\"\n flex\n max-w-[20rem]\n flex-col\n items-center\n self-center\n py-24\n text-center\n \"\n >\n <p-illustration\n [variant]=\"emptyStateFilteredIllustration\"\n class=\"mb-6\"\n ></p-illustration>\n <p class=\"text-storm-default font-semibold\">\n {{ emptyStateFilteredHeader }}\n </p>\n <p class=\"mb-14 text-sm text-storm-medium\">\n {{ emptyStateFilteredContent }}\n </p>\n </div>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n <div\n class=\"\n flex\n max-w-[20rem]\n flex-col\n items-center\n self-center\n py-24\n text-center\n \"\n [class.cursor-pointer]=\"enableEmptyStateAction\"\n (click)=\"emptyStateClicked()\"\n >\n <p-illustration\n [variant]=\"emptyStateIllustration\"\n class=\"mb-6\"\n ></p-illustration>\n <p class=\"text-storm-default font-semibold\">\n {{ emptyStateHeader }}\n </p>\n <p class=\"mb-6 text-sm text-storm-medium\">\n {{ emptyStateContent }}\n </p>\n <p-button\n *ngIf=\"enableEmptyStateAction\"\n variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n >\n {{ emptyStateAction }}\n </p-button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
3291
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
3292
+ type: Input
3293
+ }], loading: [{
3294
+ type: Input
3295
+ }], headerLoading: [{
3296
+ type: Input
3297
+ }], footerLoading: [{
3298
+ type: Input
3299
+ }], amountOfLoadingRows: [{
3300
+ type: Input
3301
+ }], enableRowSelection: [{
3302
+ type: Input
3303
+ }], enableRowClick: [{
3304
+ type: Input
3305
+ }], selectedRows: [{
3306
+ type: Input
3307
+ }], selectedRowsChange: [{
3308
+ type: Output
3309
+ }], selectionKey: [{
3310
+ type: Input
3311
+ }], canSelectKey: [{
3312
+ type: Input
3313
+ }], rowClick: [{
3314
+ type: Output
3315
+ }], rowSelected: [{
3316
+ type: Output
3317
+ }], rowDeselected: [{
3318
+ type: Output
3319
+ }], enableHeader: [{
3320
+ type: Input
3321
+ }], quickFilters: [{
3322
+ type: Input
3323
+ }], activeQuickFilterIdentifier: [{
3324
+ type: Input
3325
+ }], enableSearch: [{
3326
+ type: Input
3327
+ }], query: [{
3328
+ type: Input
3329
+ }], enableFilter: [{
3330
+ type: Input
3331
+ }], selectedFiltersAmount: [{
3332
+ type: Input
3333
+ }], filterButtonTemplate: [{
3334
+ type: Input
3335
+ }], enableEdit: [{
3336
+ type: Input
3337
+ }], editButtonLoading: [{
3338
+ type: Input
3339
+ }], editButtonIcon: [{
3340
+ type: Input
3341
+ }], editButtonText: [{
3342
+ type: Input
3343
+ }], editButtonTemplate: [{
3344
+ type: Input
3345
+ }], quickFilter: [{
3346
+ type: Output
3347
+ }], queryChange: [{
3348
+ type: Output
3349
+ }], filter: [{
3350
+ type: Output
3351
+ }], edit: [{
3352
+ type: Output
3353
+ }], enableFooter: [{
3354
+ type: Input
3355
+ }], enablePageSize: [{
3356
+ type: Input
3357
+ }], enablePagination: [{
3358
+ type: Input
3359
+ }], enableExport: [{
3360
+ type: Input
3361
+ }], page: [{
3362
+ type: Input
3363
+ }], total: [{
3364
+ type: Input
3365
+ }], pageChange: [{
3366
+ type: Output
3367
+ }], pageSize: [{
3368
+ type: Input
3369
+ }], pageSizeOptions: [{
3370
+ type: Input
3371
+ }], pageSizeChange: [{
3372
+ type: Output
3373
+ }], export: [{
3374
+ type: Output
3375
+ }], hideOnSinglePage: [{
3376
+ type: Input
3377
+ }], emptyStateType: [{
3378
+ type: Input
3379
+ }], emptyStateIllustration: [{
3380
+ type: Input
3381
+ }], emptyStateHeader: [{
3382
+ type: Input
3383
+ }], emptyStateContent: [{
3384
+ type: Input
3385
+ }], emptyStateAction: [{
3386
+ type: Input
3387
+ }], enableEmptyStateAction: [{
3388
+ type: Input
3389
+ }], emptyStateFilteredIllustration: [{
3390
+ type: Input
3391
+ }], emptyStateFilteredHeader: [{
3392
+ type: Input
3393
+ }], emptyStateFilteredContent: [{
3394
+ type: Input
3395
+ }], emptyStateActionClick: [{
3396
+ type: Output
3397
+ }], headerCustomFilterTemplate: [{
3398
+ type: ContentChild,
3399
+ args: [TableCustomFilterDirective, {
3400
+ read: TemplateRef,
3401
+ static: true,
3402
+ }]
3403
+ }], columnDefinitions: [{
3404
+ type: ContentChildren,
3405
+ args: [TableColumn]
3406
+ }], filterModalTemplate: [{
3407
+ type: ContentChild,
3408
+ args: [TableFilterModalDirective, {
3409
+ read: TemplateRef,
3410
+ static: true,
3411
+ }]
3412
+ }], filterModalHeaderText: [{
3413
+ type: Input
3414
+ }], filterModalSaveText: [{
3415
+ type: Input
3416
+ }], filterModalCancelText: [{
3417
+ type: Input
3418
+ }], filterModalResetText: [{
3419
+ type: Input
3420
+ }], filterModalShowReset: [{
3421
+ type: Input
3422
+ }], filterModalShowResetMobile: [{
3423
+ type: Input
3424
+ }], filterModalShow: [{
3425
+ type: Output
3426
+ }], filterModalSave: [{
3427
+ type: Output
3428
+ }], filterModalReset: [{
3429
+ type: Output
3430
+ }], keyDown: [{
3431
+ type: HostListener,
3432
+ args: ['document:keydown', ['$event']]
3433
+ }], keyUp: [{
3434
+ type: HostListener,
3435
+ args: ['document:keyup', ['$event']]
3436
+ }], visibilityChange: [{
3437
+ type: HostListener,
3438
+ args: ['document:visibilitychange', ['$event']]
3439
+ }] } });
3440
+
3441
+ const TABLE_COMPONENTS = [Table, TableCell, TableColumn];
3442
+
3443
+ class TableModule {
3444
+ }
3445
+ TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3446
+ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableModule, declarations: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, TableFilterModalDirective, TableCustomFilterDirective], imports: [CommonModule, StencilModule], exports: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, TableFilterModalDirective, TableCustomFilterDirective] });
3447
+ TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, imports: [CommonModule, StencilModule] });
3448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, decorators: [{
3449
+ type: NgModule,
3450
+ args: [{
3451
+ imports: [CommonModule, StencilModule],
3452
+ declarations: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
3453
+ exports: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
3454
+ }]
3455
+ }] });
3456
+
3457
+ var ToastVariants;
3458
+ (function (ToastVariants) {
3459
+ ToastVariants["Success"] = "positive";
3460
+ ToastVariants["Warning"] = "unbiased";
3461
+ ToastVariants["Error"] = "negative";
3462
+ ToastVariants["Positive"] = "positive";
3463
+ ToastVariants["Unbiased"] = "unbiased";
3464
+ ToastVariants["Negative"] = "negative";
3465
+ })(ToastVariants || (ToastVariants = {}));
3466
+
3467
+ class ToastService {
3468
+ constructor() {
3469
+ this._toasts = [];
3470
+ this.toasts$ = new BehaviorSubject(this._toasts);
3471
+ this.defaultOptions = {
3472
+ delay: 5000,
3473
+ dismissOnAction: true,
3474
+ enableAction: true,
3475
+ icon: {
3476
+ variant: 'negative',
3477
+ },
3478
+ };
3479
+ }
3480
+ show(header, content, variant = ToastVariants.Success, options = {}) {
3481
+ options = Object.assign(Object.assign(Object.assign({}, this.defaultOptions), options), { icon: (options === null || options === void 0 ? void 0 : options.icon)
3482
+ ? Object.assign(Object.assign({}, this.defaultOptions.icon), options.icon) : this.defaultOptions.icon });
3483
+ const identifier = v4();
3484
+ this._toasts.push({
3485
+ identifier,
3486
+ header,
3487
+ content,
3488
+ variant,
3489
+ options,
3490
+ });
3491
+ this.toasts$.next(this._toasts);
3492
+ return identifier;
3493
+ }
3494
+ hide(id) {
3495
+ const index = this._toasts.findIndex(({ identifier }) => identifier === id);
3496
+ this._toasts.splice(index, 1);
3497
+ this.toasts$.next(this._toasts);
3498
+ return id;
3499
+ }
3500
+ }
3501
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3502
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
3503
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, decorators: [{
3504
+ type: Injectable,
3505
+ args: [{
3506
+ providedIn: 'root',
3507
+ }]
3508
+ }] });
3509
+
3510
+ class ToastDirective {
3511
+ constructor() {
3512
+ this.delay = 5000;
3513
+ this.dismissOnAction = true;
3514
+ this.actionData = {};
3515
+ this.dismiss = new EventEmitter();
3516
+ }
3517
+ ngOnInit() {
3518
+ if (this.delay === 'infinite' || this.delay === 0) {
3519
+ return;
3520
+ }
3521
+ setTimeout(() => this.doDismiss(), this.delay);
3522
+ }
3523
+ onAction() {
3524
+ if (this.dismissOnAction && !this.actionFunc) {
3525
+ return this.doDismiss();
3526
+ }
3527
+ if (this.actionFunc) {
3528
+ this.actionFunc(this, this.actionData);
3529
+ }
3530
+ }
3531
+ doDismiss() {
3532
+ this.dismiss.next(this.identifier);
3533
+ }
3534
+ }
3535
+ ToastDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3536
+ ToastDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ToastDirective, selector: "p-toast", inputs: { delay: "delay", identifier: "identifier", dismissOnAction: "dismissOnAction", actionFunc: "actionFunc", actionData: "actionData" }, outputs: { dismiss: "dismiss" }, host: { listeners: { "action": "onAction()" } }, ngImport: i0 });
3537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastDirective, decorators: [{
3538
+ type: Directive,
3539
+ args: [{
3540
+ selector: 'p-toast',
3541
+ host: {
3542
+ '(action)': 'onAction()',
3543
+ },
3544
+ }]
3545
+ }], propDecorators: { delay: [{
3546
+ type: Input
3547
+ }], identifier: [{
3548
+ type: Input
3549
+ }], dismissOnAction: [{
3550
+ type: Input
3551
+ }], actionFunc: [{
3552
+ type: Input
3553
+ }], actionData: [{
3554
+ type: Input
3555
+ }], dismiss: [{
3556
+ type: Output
3557
+ }] } });
3558
+
3559
+ /* top-0 bottom-0 left-0 right-0 */
3560
+ let ToastContainer = class ToastContainer {
3561
+ constructor(r, z, _toastService) {
3562
+ this.z = z;
3563
+ this._toastService = _toastService;
3564
+ this.toasts$ = this._toastService.toasts$.pipe(map$1((arr) => arr.reverse()));
3565
+ this.el = r.nativeElement;
3566
+ }
3567
+ dismiss(identifier) {
3568
+ this._toastService.hide(identifier);
3569
+ }
3570
+ };
3571
+ ToastContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastContainer, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Component });
3572
+ ToastContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 [identifier]=\"toast.identifier\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionFunc]=\"toast.options.action\"\n [actionData]=\"toast.options.actionData\"\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$1.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", "identifier", "dismissOnAction", "actionFunc", "actionData"], outputs: ["dismiss"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], animations: [SLIDE_IN_TOP_OUT_BOTTOM], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3573
+ ToastContainer = __decorate([
3574
+ ProxyCmp({
3575
+ defineCustomElementFn: undefined,
3576
+ inputs: ['placement'],
3577
+ })
3578
+ ], ToastContainer);
3579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastContainer, decorators: [{
3580
+ type: Component,
3581
+ args: [{ selector: 'p-toast-container', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['placement'], animations: [SLIDE_IN_TOP_OUT_BOTTOM], 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 [identifier]=\"toast.identifier\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionFunc]=\"toast.options.action\"\n [actionData]=\"toast.options.actionData\"\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" }]
3582
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToastService }]; } });
3583
+
3584
+ const TOAST_COMPONENTS = [ToastContainer];
3585
+
3586
+ const TOAST_DIRECTIVES = [ToastDirective];
3587
+
3588
+ const TOAST_SERVICES = [ToastService];
3589
+
3590
+ class ToastModule {
3591
+ }
3592
+ ToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3593
+ ToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToastModule, declarations: [ToastContainer, ToastDirective], imports: [CommonModule, StencilModule], exports: [ToastContainer, ToastDirective] });
3594
+ ToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastModule, imports: [CommonModule, StencilModule] });
3595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastModule, decorators: [{
3596
+ type: NgModule,
3597
+ args: [{
3598
+ imports: [CommonModule, StencilModule],
3599
+ declarations: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
3600
+ exports: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
3601
+ }]
3602
+ }] });
3603
+
3604
+ const MODULES = [TableModule, ToastModule, OverlayModule];
3605
+
3606
+ class CustomCurrencyPipe {
3607
+ constructor(_currencyPipe) {
3608
+ this._currencyPipe = _currencyPipe;
3609
+ }
3610
+ transform(value, currencyCode = 'EUR', display = 'symbol', digitsInfo = '1.2-2', locale = 'nl') {
3611
+ return this._currencyPipe.transform(value, currencyCode, display, digitsInfo, locale);
3612
+ }
3613
+ }
3614
+ CustomCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomCurrencyPipe, deps: [{ token: i1$1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
3615
+ CustomCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CustomCurrencyPipe, name: "pcurrency" });
3616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomCurrencyPipe, decorators: [{
3617
+ type: Pipe,
3618
+ args: [{
3619
+ name: 'pcurrency',
3620
+ }]
3621
+ }], ctorParameters: function () { return [{ type: i1$1.CurrencyPipe }]; } });
3622
+
3623
+ class CustomDatePipe {
3624
+ constructor(_datePipe) {
3625
+ this._datePipe = _datePipe;
3626
+ }
3627
+ transform(value, format) {
3628
+ return this._datePipe.transform(value, format);
3629
+ }
3630
+ }
3631
+ CustomDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomDatePipe, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
3632
+ CustomDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CustomDatePipe, name: "pdate" });
3633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomDatePipe, decorators: [{
3634
+ type: Pipe,
3635
+ args: [{
3636
+ name: 'pdate',
3637
+ }]
3638
+ }], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
3639
+
3640
+ class SafePipe {
3641
+ constructor(sanitizer) {
3642
+ this.sanitizer = sanitizer;
3643
+ }
3644
+ transform(value, type) {
3645
+ switch (type) {
3646
+ case 'html':
3647
+ return this.sanitizer.bypassSecurityTrustHtml(value);
3648
+ case 'style':
3649
+ return this.sanitizer.bypassSecurityTrustStyle(value);
3650
+ case 'script':
3651
+ return this.sanitizer.bypassSecurityTrustScript(value);
3652
+ case 'url':
3653
+ return this.sanitizer.bypassSecurityTrustUrl(value);
3654
+ case 'resourceUrl':
3655
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
3656
+ default:
3657
+ throw new Error(`Invalid safe type specified: ${type}`);
3658
+ }
3659
+ }
3660
+ }
3661
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
3662
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, name: "psafe" });
3663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, decorators: [{
3664
+ type: Pipe,
3665
+ args: [{
3666
+ name: 'psafe',
3667
+ }]
3668
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
3669
+
3670
+ const PIPES = [CustomCurrencyPipe, CustomDatePipe, SafePipe];
3671
+
3672
+ const NGX_PIPES = [DatePipe, CurrencyPipe];
3673
+ class PaperlessModule {
3674
+ static forRoot() {
3675
+ return {
3676
+ ngModule: PaperlessModule,
3677
+ providers: [...TOAST_SERVICES, ...OVERLAY_SERVICES],
3678
+ };
3679
+ }
3680
+ }
3681
+ PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3682
+ PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PaperlessModule, declarations: [PaginationDirective, PageSizeSelectDirective, SelectDirective, DatepickerDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe], imports: [CommonModule, StencilModule, TableModule, ToastModule, OverlayModule], exports: [StencilModule, TableModule, ToastModule, OverlayModule, PaginationDirective, PageSizeSelectDirective, SelectDirective, DatepickerDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe] });
3683
+ PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule, StencilModule, MODULES, StencilModule, TableModule, ToastModule, OverlayModule] });
3684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaperlessModule, decorators: [{
3685
+ type: NgModule,
3686
+ args: [{
3687
+ imports: [CommonModule, StencilModule, ...MODULES],
3688
+ declarations: [...DIRECTIVES$1, ...PIPES],
3689
+ exports: [StencilModule, ...MODULES, ...DIRECTIVES$1, ...PIPES],
3690
+ providers: [...NGX_PIPES, ...PIPES],
3691
+ }]
3692
+ }] });
3693
+
3694
+ /*
3695
+ * Public API Surface of paperless
3696
+ */
3697
+
3698
+ /**
3699
+ * Generated bundle index. Do not edit.
3700
+ */
3701
+
3702
+ export { BaseFormComponent, BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, DatepickerDirective, FADE_IN, FADE_OUT, MODULES, OVERLAY_SERVICES, OverlayModule, OverlayRef, OverlayService, PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PButton, PCalendar, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputError, PInputGroup, PLabel, PLayout, PLoader, PModal, 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, SLIDE_IN_BOTTOM_OUT_TOP, SLIDE_IN_TOP_OUT_BOTTOM, SafePipe, SelectDirective, StencilModule, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_DIRECTIVES, TOAST_SERVICES, Table, TableCell, TableColumn, TableCustomFilterDirective, TableDirective, TableFilterModalDirective, TableFooterDirective, TableHeaderDirective, TableModule, TableNgxDirective, ToastContainer, ToastDirective, ToastModule, ToastService, ToastVariants, createFormFilters };
3703
+ //# sourceMappingURL=paperless-angular.mjs.map