@paperless/angular 0.1.0-alpha.37 → 0.1.0-alpha.370

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 (116) hide show
  1. package/README.md +9 -1
  2. package/esm2020/lib/animations/fade.mjs +22 -0
  3. package/esm2020/lib/animations/index.mjs +3 -0
  4. package/esm2020/lib/animations/slide.mjs +20 -0
  5. package/esm2020/lib/base/form.component.mjs +105 -0
  6. package/esm2020/lib/base/index.mjs +3 -1
  7. package/esm2020/lib/base/upload.component.mjs +57 -0
  8. package/esm2020/lib/base/value-accessor.mjs +8 -8
  9. package/esm2020/lib/directives/index.mjs +15 -4
  10. package/esm2020/lib/directives/p-datepicker.directive.mjs +39 -0
  11. package/esm2020/lib/directives/p-page-size-select.directive.mjs +42 -0
  12. package/esm2020/lib/directives/p-pagination.directive.mjs +42 -0
  13. package/esm2020/lib/directives/p-select.directive.mjs +37 -0
  14. package/esm2020/lib/modules/index.mjs +8 -0
  15. package/esm2020/lib/modules/overlay/index.mjs +4 -0
  16. package/esm2020/lib/modules/overlay/overlay.module.mjs +38 -0
  17. package/esm2020/lib/modules/overlay/overlay.ref.mjs +12 -0
  18. package/esm2020/lib/modules/overlay/services/index.mjs +4 -0
  19. package/esm2020/lib/modules/overlay/services/overlay.service.mjs +74 -0
  20. package/esm2020/lib/modules/table/base/index.mjs +2 -0
  21. package/esm2020/lib/modules/table/base/table.component.mjs +201 -0
  22. package/esm2020/lib/modules/table/components/index.mjs +8 -0
  23. package/esm2020/lib/modules/table/components/table/constants.mjs +3 -0
  24. package/esm2020/lib/modules/table/components/table/table.component.mjs +658 -0
  25. package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +167 -0
  26. package/esm2020/lib/modules/table/components/table-column/table-column.component.mjs +37 -0
  27. package/esm2020/lib/modules/table/directives/index.mjs +21 -0
  28. package/esm2020/lib/modules/table/directives/p-table-custom-filter.directive.mjs +13 -0
  29. package/esm2020/lib/modules/table/directives/p-table-filter-modal.directive.mjs +13 -0
  30. package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +52 -0
  31. package/esm2020/lib/modules/table/directives/p-table-header.directive.mjs +60 -0
  32. package/esm2020/lib/modules/table/directives/p-table-ngx.directive.mjs +121 -0
  33. package/esm2020/lib/modules/table/directives/p-table.directive.mjs +78 -0
  34. package/esm2020/lib/modules/table/index.mjs +6 -0
  35. package/esm2020/lib/modules/table/table.module.mjs +29 -0
  36. package/esm2020/lib/modules/table/utils.mjs +23 -0
  37. package/esm2020/lib/modules/toast/components/index.mjs +4 -0
  38. package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +36 -0
  39. package/esm2020/lib/modules/toast/directives/index.mjs +4 -0
  40. package/esm2020/lib/modules/toast/directives/toast.directive.mjs +51 -0
  41. package/esm2020/lib/modules/toast/index.mjs +6 -0
  42. package/esm2020/lib/modules/toast/services/index.mjs +4 -0
  43. package/esm2020/lib/modules/toast/services/toast.service.mjs +53 -0
  44. package/esm2020/lib/modules/toast/toast.module.mjs +22 -0
  45. package/esm2020/lib/modules/toast/types.mjs +10 -0
  46. package/esm2020/lib/paperless.module.mjs +32 -11
  47. package/esm2020/lib/pipes/currency.pipe.mjs +20 -0
  48. package/esm2020/lib/pipes/date.pipe.mjs +20 -0
  49. package/esm2020/lib/pipes/index.mjs +8 -0
  50. package/esm2020/lib/pipes/safe.pipe.mjs +33 -0
  51. package/esm2020/lib/stencil/angular-component-lib/utils.mjs +6 -8
  52. package/esm2020/lib/stencil/components.mjs +1110 -145
  53. package/esm2020/lib/stencil/index.mjs +39 -1
  54. package/esm2020/lib/stencil.module.mjs +17 -0
  55. package/esm2020/public-api.mjs +6 -1
  56. package/fesm2015/paperless-angular.mjs +3266 -246
  57. package/fesm2015/paperless-angular.mjs.map +1 -1
  58. package/fesm2020/paperless-angular.mjs +3279 -246
  59. package/fesm2020/paperless-angular.mjs.map +1 -1
  60. package/lib/animations/fade.d.ts +2 -0
  61. package/lib/animations/index.d.ts +2 -0
  62. package/lib/animations/slide.d.ts +2 -0
  63. package/lib/base/form.component.d.ts +15 -0
  64. package/lib/base/index.d.ts +2 -0
  65. package/lib/base/upload.component.d.ts +16 -0
  66. package/lib/base/value-accessor.d.ts +6 -6
  67. package/lib/directives/index.d.ts +6 -3
  68. package/lib/directives/p-datepicker.directive.d.ts +9 -0
  69. package/lib/directives/p-page-size-select.directive.d.ts +10 -0
  70. package/lib/directives/{pagination.directive.d.ts → p-pagination.directive.d.ts} +3 -3
  71. package/lib/directives/p-select.directive.d.ts +9 -0
  72. package/lib/modules/index.d.ts +5 -0
  73. package/lib/modules/overlay/index.d.ts +3 -0
  74. package/lib/modules/overlay/overlay.module.d.ts +12 -0
  75. package/lib/modules/overlay/overlay.ref.d.ts +9 -0
  76. package/lib/modules/overlay/services/index.d.ts +3 -0
  77. package/lib/modules/overlay/services/overlay.service.d.ts +24 -0
  78. package/lib/modules/table/base/index.d.ts +1 -0
  79. package/lib/modules/table/base/table.component.d.ts +58 -0
  80. package/lib/modules/table/components/index.d.ts +7 -0
  81. package/lib/modules/table/components/table/constants.d.ts +2 -0
  82. package/lib/modules/table/components/table/table.component.d.ts +240 -0
  83. package/lib/modules/table/components/table-cell/table-cell.component.d.ts +45 -0
  84. package/lib/modules/table/components/table-column/table-column.component.d.ts +17 -0
  85. package/lib/modules/table/directives/index.d.ts +12 -0
  86. package/lib/modules/table/directives/p-table-custom-filter.directive.d.ts +5 -0
  87. package/lib/modules/table/directives/p-table-filter-modal.directive.d.ts +5 -0
  88. package/lib/modules/table/directives/p-table-footer.directive.d.ts +11 -0
  89. package/lib/modules/table/directives/p-table-header.directive.d.ts +17 -0
  90. package/lib/modules/table/directives/p-table-ngx.directive.d.ts +27 -0
  91. package/lib/modules/table/directives/p-table.directive.d.ts +22 -0
  92. package/lib/modules/table/index.d.ts +5 -0
  93. package/lib/modules/table/table.module.d.ts +17 -0
  94. package/lib/modules/table/utils.d.ts +10 -0
  95. package/lib/modules/toast/components/index.d.ts +3 -0
  96. package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +17 -0
  97. package/lib/modules/toast/directives/index.d.ts +3 -0
  98. package/lib/modules/toast/directives/toast.directive.d.ts +16 -0
  99. package/lib/modules/toast/index.d.ts +5 -0
  100. package/lib/modules/toast/services/index.d.ts +3 -0
  101. package/lib/modules/toast/services/toast.service.d.ts +12 -0
  102. package/lib/modules/toast/toast.module.d.ts +10 -0
  103. package/lib/modules/toast/types.d.ts +31 -0
  104. package/lib/paperless.module.d.ts +15 -3
  105. package/lib/pipes/currency.pipe.d.ts +10 -0
  106. package/lib/pipes/date.pipe.d.ts +10 -0
  107. package/lib/pipes/index.d.ts +7 -0
  108. package/lib/pipes/safe.pipe.d.ts +10 -0
  109. package/lib/stencil/components.d.ts +489 -43
  110. package/lib/stencil/index.d.ts +1 -1
  111. package/lib/stencil.module.d.ts +7 -0
  112. package/package.json +8 -6
  113. package/paperless.css +436 -0
  114. package/public-api.d.ts +5 -0
  115. package/esm2020/lib/directives/pagination.directive.mjs +0 -42
  116. /package/{paperless-angular.d.ts → index.d.ts} +0 -0
@@ -1,10 +1,220 @@
1
+ import { trigger, transition, style, animate } from '@angular/animations';
1
2
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
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';
4
7
  import { __decorate } from 'tslib';
5
- import { fromEvent } from 'rxjs';
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';
6
19
 
7
- class ValueAccessor {
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) => e?.nodeName?.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?.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?.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?.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?.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.1", ngImport: i0, type: BaseFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
154
+ BaseFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: BaseFormComponent, selector: "ng-component", ngImport: i0, template: ``, isInline: true });
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", 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
+ const target = $event.target;
176
+ const file = target.files?.[0];
177
+ if (file) {
178
+ this._loading = true;
179
+ const reader = new FileReader();
180
+ reader.onload = (e) => this.onLoad(file, e?.currentTarget?.result);
181
+ reader.readAsDataURL(file);
182
+ }
183
+ }
184
+ onLoad(file, result) {
185
+ this.fileChange.next({
186
+ fileId: this.fileId,
187
+ result,
188
+ file,
189
+ });
190
+ if (this.uploaderInput?.nativeElement) {
191
+ this.uploaderInput.nativeElement.value = '';
192
+ }
193
+ this.file = file;
194
+ this._loading = false;
195
+ }
196
+ }
197
+ BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
198
+ BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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 });
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseUploadComponent, decorators: [{
200
+ type: Component,
201
+ args: [{
202
+ template: ``,
203
+ }]
204
+ }], propDecorators: { fileId: [{
205
+ type: Input
206
+ }], uploaded: [{
207
+ type: Input
208
+ }], loading: [{
209
+ type: Input
210
+ }], fileChange: [{
211
+ type: Output
212
+ }], uploaderInput: [{
213
+ type: ViewChild,
214
+ args: ['uploaderInput']
215
+ }] } });
216
+
217
+ class BaseValueAccessor {
8
218
  constructor(el) {
9
219
  this.el = el;
10
220
  this.onChange = () => {
@@ -24,19 +234,19 @@ class ValueAccessor {
24
234
  this.onChange(value);
25
235
  }
26
236
  }
27
- _handleBlurEvent() {
28
- this.onTouched();
29
- }
30
237
  registerOnChange(fn) {
31
238
  this.onChange = fn;
32
239
  }
33
240
  registerOnTouched(fn) {
34
241
  this.onTouched = fn;
35
242
  }
243
+ _handleBlurEvent() {
244
+ this.onTouched();
245
+ }
36
246
  }
37
- ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
38
- ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, decorators: [{
247
+ BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
248
+ BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseValueAccessor, decorators: [{
40
250
  type: Directive,
41
251
  args: [{}]
42
252
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
@@ -44,33 +254,106 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
44
254
  args: ['focusout']
45
255
  }] } });
46
256
 
47
- class PaginationDirective extends ValueAccessor {
257
+ class DatepickerDirective extends BaseValueAccessor {
258
+ constructor(el) {
259
+ super(el);
260
+ }
261
+ writeValue(value) {
262
+ console.log("[Angular] Directive.writeValue", this.el.nativeElement.placeholder, value);
263
+ console.log("[Angular] Directive.writeValue", this.el, this.el.nativeElement);
264
+ this.el.nativeElement.value = this.lastValue = value;
265
+ }
266
+ }
267
+ DatepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DatepickerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
268
+ DatepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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.1", 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 {
48
293
  constructor(el) {
49
294
  super(el);
50
295
  }
51
296
  writeValue(value) {
52
297
  this.el.nativeElement.page = this.lastValue =
53
- value == null ? '' : value;
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.1", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
305
+ PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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.1", 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;
54
337
  }
55
338
  registerOnChange(fn) {
56
- super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
339
+ super.registerOnChange((value) => fn(parseInt(value, 10)));
57
340
  }
58
341
  }
59
- PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
60
- PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.target.page)" } }, providers: [
342
+ PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
343
+ PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
61
344
  {
62
345
  provide: NG_VALUE_ACCESSOR,
63
346
  useExisting: PaginationDirective,
64
347
  multi: true,
65
348
  },
66
349
  ], usesInheritance: true, ngImport: i0 });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaginationDirective, decorators: [{
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PaginationDirective, decorators: [{
68
351
  type: Directive,
69
352
  args: [{
70
353
  /* tslint:disable-next-line:directive-selector */
71
354
  selector: 'p-pagination',
72
355
  host: {
73
- '(pageChange)': 'handleChangeEvent($event.target.page)',
356
+ '(pageChange)': 'handleChangeEvent($event.detail)',
74
357
  },
75
358
  providers: [
76
359
  {
@@ -82,25 +365,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
82
365
  }]
83
366
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
84
367
 
85
- const CUSTOM_DIRECTIVES = [PaginationDirective];
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.1", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
377
+ SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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.1", 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
+ ];
86
407
 
87
408
  /* eslint-disable */
88
409
  const proxyInputs = (Cmp, inputs) => {
89
410
  const Prototype = Cmp.prototype;
90
- inputs.forEach(item => {
411
+ inputs.forEach((item) => {
91
412
  Object.defineProperty(Prototype, item, {
92
413
  get() {
93
414
  return this.el[item];
94
415
  },
95
416
  set(val) {
96
417
  this.z.runOutsideAngular(() => (this.el[item] = val));
97
- }
418
+ },
98
419
  });
99
420
  });
100
421
  };
101
422
  const proxyMethods = (Cmp, methods) => {
102
423
  const Prototype = Cmp.prototype;
103
- methods.forEach(methodName => {
424
+ methods.forEach((methodName) => {
104
425
  Prototype[methodName] = function () {
105
426
  const args = arguments;
106
427
  return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
@@ -108,12 +429,10 @@ const proxyMethods = (Cmp, methods) => {
108
429
  });
109
430
  };
110
431
  const proxyOutputs = (instance, el, events) => {
111
- events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
432
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
112
433
  };
113
434
  const defineCustomElement = (tagName, customElement) => {
114
- if (customElement !== undefined &&
115
- typeof customElements !== 'undefined' &&
116
- !customElements.get(tagName)) {
435
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
117
436
  customElements.define(tagName, customElement);
118
437
  }
119
438
  };
@@ -135,488 +454,3202 @@ function ProxyCmp(opts) {
135
454
  return decorator;
136
455
  }
137
456
 
138
- let PAvatar = class PAvatar {
457
+ let PAccordion = class PAccordion {
139
458
  constructor(c, r, z) {
140
459
  this.z = z;
141
460
  c.detach();
142
461
  this.el = r.nativeElement;
462
+ proxyOutputs(this, this.el, ['isOpen']);
143
463
  }
144
464
  };
145
- PAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
146
- PAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PAvatar, selector: "p-avatar", inputs: { defaultImage: "defaultImage", size: "size", src: "src", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
147
- PAvatar = __decorate([
465
+ PAccordion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
148
468
  ProxyCmp({
149
- defineCustomElementFn: undefined,
150
- inputs: ['defaultImage', 'size', 'src', 'variant']
469
+ inputs: ['closeable', 'header', 'open', 'openable']
151
470
  })
152
- ], PAvatar);
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PAvatar, decorators: [{
471
+ ], PAccordion);
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PAccordion, decorators: [{
154
473
  type: Component,
155
474
  args: [{
156
- selector: 'p-avatar',
475
+ selector: 'p-accordion',
157
476
  changeDetection: ChangeDetectionStrategy.OnPush,
158
477
  template: '<ng-content></ng-content>',
159
- inputs: ['defaultImage', 'size', 'src', 'variant']
478
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
479
+ inputs: ['closeable', 'header', 'open', 'openable'],
160
480
  }]
161
481
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
162
- let PButton = class PButton {
482
+ let PAttachment = class PAttachment {
163
483
  constructor(c, r, z) {
164
484
  this.z = z;
165
485
  c.detach();
166
486
  this.el = r.nativeElement;
167
- proxyOutputs(this, this.el, ['onClick']);
487
+ proxyOutputs(this, this.el, ['download', 'delete']);
168
488
  }
169
489
  };
170
- PButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
171
- PButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PButton, selector: "p-button", inputs: { chevron: "chevron", disabled: "disabled", href: "href", icon: "icon", iconFlip: "iconFlip", iconPosition: "iconPosition", iconRotate: "iconRotate", loading: "loading", size: "size", target: "target", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
172
- PButton = __decorate([
490
+ PAttachment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", type: PAttachment, selector: "p-attachment", inputs: { error: "error", loading: "loading", mode: "mode" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
492
+ PAttachment = __decorate([
173
493
  ProxyCmp({
174
- defineCustomElementFn: undefined,
175
- inputs: ['chevron', 'disabled', 'href', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'loading', 'size', 'target', 'variant']
494
+ inputs: ['error', 'loading', 'mode']
176
495
  })
177
- ], PButton);
178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PButton, decorators: [{
496
+ ], PAttachment);
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PAttachment, decorators: [{
179
498
  type: Component,
180
499
  args: [{
181
- selector: 'p-button',
500
+ selector: 'p-attachment',
182
501
  changeDetection: ChangeDetectionStrategy.OnPush,
183
502
  template: '<ng-content></ng-content>',
184
- inputs: ['chevron', 'disabled', 'href', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'loading', 'size', 'target', 'variant']
503
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
504
+ inputs: ['error', 'loading', 'mode'],
185
505
  }]
186
506
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
187
- let PCounter = class PCounter {
507
+ let PAvatar = class PAvatar {
188
508
  constructor(c, r, z) {
189
509
  this.z = z;
190
510
  c.detach();
191
511
  this.el = r.nativeElement;
192
512
  }
193
513
  };
194
- PCounter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
195
- PCounter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PCounter, selector: "p-counter", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
196
- PCounter = __decorate([
514
+ PAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
197
517
  ProxyCmp({
198
- defineCustomElementFn: undefined
518
+ inputs: ['defaultImage', 'size', 'src', 'variant']
199
519
  })
200
- ], PCounter);
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PCounter, decorators: [{
520
+ ], PAvatar);
521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PAvatar, decorators: [{
202
522
  type: Component,
203
523
  args: [{
204
- selector: 'p-counter',
524
+ selector: 'p-avatar',
205
525
  changeDetection: ChangeDetectionStrategy.OnPush,
206
- template: '<ng-content></ng-content>'
526
+ template: '<ng-content></ng-content>',
527
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
528
+ inputs: ['defaultImage', 'size', 'src', 'variant'],
207
529
  }]
208
530
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
209
- let PDivider = class PDivider {
531
+ let PAvatarGroup = class PAvatarGroup {
210
532
  constructor(c, r, z) {
211
533
  this.z = z;
212
534
  c.detach();
213
535
  this.el = r.nativeElement;
214
536
  }
215
537
  };
216
- PDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDivider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
217
- PDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PDivider, selector: "p-divider", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
218
- PDivider = __decorate([
538
+ PAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
219
541
  ProxyCmp({
220
- defineCustomElementFn: undefined
542
+ inputs: ['extra']
221
543
  })
222
- ], PDivider);
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDivider, decorators: [{
544
+ ], PAvatarGroup);
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PAvatarGroup, decorators: [{
224
546
  type: Component,
225
547
  args: [{
226
- selector: 'p-divider',
548
+ selector: 'p-avatar-group',
227
549
  changeDetection: ChangeDetectionStrategy.OnPush,
228
- template: '<ng-content></ng-content>'
550
+ template: '<ng-content></ng-content>',
551
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
552
+ inputs: ['extra'],
229
553
  }]
230
554
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
231
- let PDropdown = class PDropdown {
555
+ let PBackdrop = class PBackdrop {
232
556
  constructor(c, r, z) {
233
557
  this.z = z;
234
558
  c.detach();
235
559
  this.el = r.nativeElement;
236
- proxyOutputs(this, this.el, ['isOpen']);
560
+ proxyOutputs(this, this.el, ['clicked']);
237
561
  }
238
562
  };
239
- PDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
240
- PDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PDropdown, selector: "p-dropdown", inputs: { disableTriggerClick: "disableTriggerClick", insideClick: "insideClick", placement: "placement", show: "show" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
241
- PDropdown = __decorate([
563
+ PBackdrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
242
566
  ProxyCmp({
243
- defineCustomElementFn: undefined,
244
- inputs: ['disableTriggerClick', 'insideClick', 'placement', 'show']
567
+ inputs: ['applyBlur', 'closing', 'scrollLock', 'variant']
245
568
  })
246
- ], PDropdown);
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdown, decorators: [{
569
+ ], PBackdrop);
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PBackdrop, decorators: [{
248
571
  type: Component,
249
572
  args: [{
250
- selector: 'p-dropdown',
573
+ selector: 'p-backdrop',
251
574
  changeDetection: ChangeDetectionStrategy.OnPush,
252
575
  template: '<ng-content></ng-content>',
253
- inputs: ['disableTriggerClick', 'insideClick', 'placement', 'show']
576
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
577
+ inputs: ['applyBlur', 'closing', 'scrollLock', 'variant'],
254
578
  }]
255
579
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
256
- let PDropdownMenuContainer = class PDropdownMenuContainer {
580
+ let PButton = class PButton {
257
581
  constructor(c, r, z) {
258
582
  this.z = z;
259
583
  c.detach();
260
584
  this.el = r.nativeElement;
585
+ proxyOutputs(this, this.el, ['onClick']);
261
586
  }
262
587
  };
263
- PDropdownMenuContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdownMenuContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
264
- PDropdownMenuContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PDropdownMenuContainer, selector: "p-dropdown-menu-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
265
- PDropdownMenuContainer = __decorate([
588
+ PButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
266
591
  ProxyCmp({
267
- defineCustomElementFn: undefined
592
+ inputs: ['chevron', 'chevronPosition', 'disabled', 'href', 'icon', 'iconFlip', 'iconOnly', 'iconPosition', 'iconRotate', 'inheritText', 'loading', 'size', 'target', 'variant']
268
593
  })
269
- ], PDropdownMenuContainer);
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdownMenuContainer, decorators: [{
594
+ ], PButton);
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PButton, decorators: [{
271
596
  type: Component,
272
597
  args: [{
273
- selector: 'p-dropdown-menu-container',
598
+ selector: 'p-button',
274
599
  changeDetection: ChangeDetectionStrategy.OnPush,
275
- template: '<ng-content></ng-content>'
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'],
276
603
  }]
277
604
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
278
- let PDropdownMenuItem = class PDropdownMenuItem {
605
+ let PCalendar = class PCalendar {
279
606
  constructor(c, r, z) {
280
607
  this.z = z;
281
608
  c.detach();
282
609
  this.el = r.nativeElement;
610
+ proxyOutputs(this, this.el, ['valueChange']);
283
611
  }
284
612
  };
285
- PDropdownMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdownMenuItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
286
- PDropdownMenuItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PDropdownMenuItem, selector: "p-dropdown-menu-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
287
- PDropdownMenuItem = __decorate([
613
+ PCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
288
616
  ProxyCmp({
289
- defineCustomElementFn: undefined,
290
- inputs: ['active']
617
+ inputs: ['disableWeekends', 'disabledDates', 'maxDate', 'minDate', 'mode', 'preselectToday', 'value', 'variant']
291
618
  })
292
- ], PDropdownMenuItem);
293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PDropdownMenuItem, decorators: [{
619
+ ], PCalendar);
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PCalendar, decorators: [{
294
621
  type: Component,
295
622
  args: [{
296
- selector: 'p-dropdown-menu-item',
623
+ selector: 'p-calendar',
297
624
  changeDetection: ChangeDetectionStrategy.OnPush,
298
625
  template: '<ng-content></ng-content>',
299
- inputs: ['active']
626
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
627
+ inputs: ['disableWeekends', 'disabledDates', 'maxDate', 'minDate', 'mode', 'preselectToday', 'value', 'variant'],
300
628
  }]
301
629
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
302
- let PHelper = class PHelper {
630
+ let PCardBody = class PCardBody {
303
631
  constructor(c, r, z) {
304
632
  this.z = z;
305
633
  c.detach();
306
634
  this.el = r.nativeElement;
307
635
  }
308
636
  };
309
- PHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PHelper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
310
- PHelper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PHelper, selector: "p-helper", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
311
- PHelper = __decorate([
637
+ PCardBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
312
640
  ProxyCmp({
313
- defineCustomElementFn: undefined
641
+ inputs: ['inheritText']
314
642
  })
315
- ], PHelper);
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PHelper, decorators: [{
643
+ ], PCardBody);
644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PCardBody, decorators: [{
317
645
  type: Component,
318
646
  args: [{
319
- selector: 'p-helper',
647
+ selector: 'p-card-body',
320
648
  changeDetection: ChangeDetectionStrategy.OnPush,
321
- template: '<ng-content></ng-content>'
649
+ template: '<ng-content></ng-content>',
650
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
651
+ inputs: ['inheritText'],
322
652
  }]
323
653
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
324
- let PIcon = class PIcon {
654
+ let PCardContainer = class PCardContainer {
325
655
  constructor(c, r, z) {
326
656
  this.z = z;
327
657
  c.detach();
328
658
  this.el = r.nativeElement;
329
659
  }
330
660
  };
331
- PIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
332
- PIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PIcon, selector: "p-icon", inputs: { flip: "flip", rotate: "rotate", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
333
- PIcon = __decorate([
661
+ PCardContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
334
664
  ProxyCmp({
335
- defineCustomElementFn: undefined,
336
- inputs: ['flip', 'rotate', 'size', 'variant']
665
+ inputs: ['hoverable', 'shadow']
337
666
  })
338
- ], PIcon);
339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIcon, decorators: [{
667
+ ], PCardContainer);
668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PCardContainer, decorators: [{
340
669
  type: Component,
341
670
  args: [{
342
- selector: 'p-icon',
671
+ selector: 'p-card-container',
343
672
  changeDetection: ChangeDetectionStrategy.OnPush,
344
673
  template: '<ng-content></ng-content>',
345
- inputs: ['flip', 'rotate', 'size', 'variant']
674
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
675
+ inputs: ['hoverable', 'shadow'],
346
676
  }]
347
677
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
348
- let PIllustration = class PIllustration {
678
+ let PCardHeader = class PCardHeader {
349
679
  constructor(c, r, z) {
350
680
  this.z = z;
351
681
  c.detach();
352
682
  this.el = r.nativeElement;
353
683
  }
354
684
  };
355
- PIllustration.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIllustration, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
356
- PIllustration.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PIllustration, selector: "p-illustration", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
357
- PIllustration = __decorate([
685
+ PCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
358
688
  ProxyCmp({
359
- defineCustomElementFn: undefined,
360
- inputs: ['variant']
689
+ inputs: ['arrow', 'header']
361
690
  })
362
- ], PIllustration);
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PIllustration, decorators: [{
691
+ ], PCardHeader);
692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PCardHeader, decorators: [{
364
693
  type: Component,
365
694
  args: [{
366
- selector: 'p-illustration',
695
+ selector: 'p-card-header',
367
696
  changeDetection: ChangeDetectionStrategy.OnPush,
368
697
  template: '<ng-content></ng-content>',
369
- inputs: ['variant']
698
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
699
+ inputs: ['arrow', 'header'],
370
700
  }]
371
701
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
372
- let PInfoPanel = class PInfoPanel {
702
+ let PContentSlider = class PContentSlider {
373
703
  constructor(c, r, z) {
374
704
  this.z = z;
375
705
  c.detach();
376
706
  this.el = r.nativeElement;
377
707
  }
378
708
  };
379
- PInfoPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PInfoPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
380
- PInfoPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PInfoPanel, selector: "p-info-panel", inputs: { closeable: "closeable", content: "content", header: "header", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
381
- PInfoPanel = __decorate([
709
+ PContentSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
382
712
  ProxyCmp({
383
- defineCustomElementFn: undefined,
384
- inputs: ['closeable', 'content', 'header', 'variant']
713
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator']
385
714
  })
386
- ], PInfoPanel);
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PInfoPanel, decorators: [{
715
+ ], PContentSlider);
716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PContentSlider, decorators: [{
388
717
  type: Component,
389
718
  args: [{
390
- selector: 'p-info-panel',
719
+ selector: 'p-content-slider',
391
720
  changeDetection: ChangeDetectionStrategy.OnPush,
392
721
  template: '<ng-content></ng-content>',
393
- inputs: ['closeable', 'content', 'header', 'variant']
722
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
723
+ inputs: ['disableAutoCenter', 'disableDrag', 'disableIndicatorClick', 'hideMobileIndicator'],
394
724
  }]
395
725
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
396
- let PLoader = class PLoader {
726
+ let PCounter = class PCounter {
397
727
  constructor(c, r, z) {
398
728
  this.z = z;
399
729
  c.detach();
400
730
  this.el = r.nativeElement;
401
731
  }
402
732
  };
403
- PLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PLoader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
404
- PLoader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PLoader, selector: "p-loader", inputs: { color: "color", modalDescription: "modalDescription", modalTitle: "modalTitle", show: "show", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
405
- PLoader = __decorate([
733
+ PCounter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
406
736
  ProxyCmp({
407
- defineCustomElementFn: undefined,
408
- inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
737
+ inputs: ['size', 'variant']
409
738
  })
410
- ], PLoader);
411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PLoader, decorators: [{
739
+ ], PCounter);
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PCounter, decorators: [{
412
741
  type: Component,
413
742
  args: [{
414
- selector: 'p-loader',
743
+ selector: 'p-counter',
415
744
  changeDetection: ChangeDetectionStrategy.OnPush,
416
745
  template: '<ng-content></ng-content>',
417
- inputs: ['color', 'modalDescription', 'modalTitle', 'show', 'variant']
746
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
747
+ inputs: ['size', 'variant'],
418
748
  }]
419
749
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
420
- let PNavigationItem = class PNavigationItem {
750
+ let PDatepicker = class PDatepicker {
421
751
  constructor(c, r, z) {
422
752
  this.z = z;
423
753
  c.detach();
424
754
  this.el = r.nativeElement;
755
+ proxyOutputs(this, this.el, ['valueChange']);
425
756
  }
426
757
  };
427
- PNavigationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PNavigationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
428
- PNavigationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PNavigationItem, selector: "p-navigation-item", inputs: { active: "active", counter: "counter", href: "href", icon: "icon", target: "target" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
429
- PNavigationItem = __decorate([
758
+ PDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
430
761
  ProxyCmp({
431
- defineCustomElementFn: undefined,
432
- inputs: ['active', 'counter', 'href', 'icon', 'target']
762
+ inputs: ['disableWeekends', 'disabled', 'disabledDates', 'error', 'format', 'helper', 'label', 'maxDate', 'minDate', 'mode', 'placeholder', 'prefix', 'preselectToday', 'size', 'value']
433
763
  })
434
- ], PNavigationItem);
435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PNavigationItem, decorators: [{
764
+ ], PDatepicker);
765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDatepicker, decorators: [{
436
766
  type: Component,
437
767
  args: [{
438
- selector: 'p-navigation-item',
768
+ selector: 'p-datepicker',
439
769
  changeDetection: ChangeDetectionStrategy.OnPush,
440
770
  template: '<ng-content></ng-content>',
441
- inputs: ['active', 'counter', 'href', 'icon', 'target']
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'],
442
773
  }]
443
774
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
444
- let PPagination = class PPagination {
775
+ let PDivider = class PDivider {
445
776
  constructor(c, r, z) {
446
777
  this.z = z;
447
778
  c.detach();
448
779
  this.el = r.nativeElement;
449
- proxyOutputs(this, this.el, ['pageChange']);
450
780
  }
451
781
  };
452
- PPagination.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
453
- PPagination.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PPagination, selector: "p-pagination", inputs: { page: "page", pageSize: "pageSize", total: "total" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
454
- PPagination = __decorate([
455
- ProxyCmp({
456
- defineCustomElementFn: undefined,
457
- inputs: ['page', 'pageSize', 'total']
458
- })
459
- ], PPagination);
460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPagination, decorators: [{
782
+ PDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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.1", ngImport: i0, type: PDivider, decorators: [{
461
788
  type: Component,
462
789
  args: [{
463
- selector: 'p-pagination',
790
+ selector: 'p-divider',
464
791
  changeDetection: ChangeDetectionStrategy.OnPush,
465
792
  template: '<ng-content></ng-content>',
466
- inputs: ['page', 'pageSize', 'total']
793
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
794
+ inputs: [],
467
795
  }]
468
796
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
469
- let PPaginationItem = class PPaginationItem {
797
+ let PDrawer = class PDrawer {
470
798
  constructor(c, r, z) {
471
799
  this.z = z;
472
800
  c.detach();
473
801
  this.el = r.nativeElement;
802
+ proxyOutputs(this, this.el, ['closeClicked', 'closed']);
474
803
  }
475
804
  };
476
- PPaginationItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPaginationItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
477
- PPaginationItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PPaginationItem, selector: "p-pagination-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
478
- PPaginationItem = __decorate([
805
+ PDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
479
808
  ProxyCmp({
480
- defineCustomElementFn: undefined,
481
- inputs: ['active']
809
+ inputs: ['applyBlur', 'backdropClickClose', 'canClose', 'header', 'scrollLock', 'show', 'showClose']
482
810
  })
483
- ], PPaginationItem);
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PPaginationItem, decorators: [{
811
+ ], PDrawer);
812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDrawer, decorators: [{
485
813
  type: Component,
486
814
  args: [{
487
- selector: 'p-pagination-item',
815
+ selector: 'p-drawer',
488
816
  changeDetection: ChangeDetectionStrategy.OnPush,
489
817
  template: '<ng-content></ng-content>',
490
- inputs: ['active']
818
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
819
+ inputs: ['applyBlur', 'backdropClickClose', 'canClose', 'header', 'scrollLock', 'show', 'showClose'],
491
820
  }]
492
821
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
493
- let PSegmentContainer = class PSegmentContainer {
822
+ let PDrawerBody = class PDrawerBody {
494
823
  constructor(c, r, z) {
495
824
  this.z = z;
496
825
  c.detach();
497
826
  this.el = r.nativeElement;
498
827
  }
499
828
  };
500
- PSegmentContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PSegmentContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
501
- PSegmentContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PSegmentContainer, selector: "p-segment-container", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
502
- PSegmentContainer = __decorate([
829
+ PDrawerBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
503
832
  ProxyCmp({
504
- defineCustomElementFn: undefined
833
+ inputs: ['variant']
505
834
  })
506
- ], PSegmentContainer);
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PSegmentContainer, decorators: [{
835
+ ], PDrawerBody);
836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDrawerBody, decorators: [{
508
837
  type: Component,
509
838
  args: [{
510
- selector: 'p-segment-container',
839
+ selector: 'p-drawer-body',
511
840
  changeDetection: ChangeDetectionStrategy.OnPush,
512
- template: '<ng-content></ng-content>'
841
+ template: '<ng-content></ng-content>',
842
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
843
+ inputs: ['variant'],
513
844
  }]
514
845
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
515
- let PSegmentItem = class PSegmentItem {
846
+ let PDrawerContainer = class PDrawerContainer {
516
847
  constructor(c, r, z) {
517
848
  this.z = z;
518
849
  c.detach();
519
850
  this.el = r.nativeElement;
520
851
  }
521
852
  };
522
- PSegmentItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PSegmentItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
523
- PSegmentItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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 });
524
- PSegmentItem = __decorate([
853
+ PDrawerContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
525
856
  ProxyCmp({
526
- defineCustomElementFn: undefined,
527
- inputs: ['active', 'icon', 'iconFlip', 'iconRotate']
857
+ inputs: ['closing']
528
858
  })
529
- ], PSegmentItem);
530
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PSegmentItem, decorators: [{
859
+ ], PDrawerContainer);
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDrawerContainer, decorators: [{
531
861
  type: Component,
532
862
  args: [{
533
- selector: 'p-segment-item',
863
+ selector: 'p-drawer-container',
534
864
  changeDetection: ChangeDetectionStrategy.OnPush,
535
865
  template: '<ng-content></ng-content>',
536
- inputs: ['active', 'icon', 'iconFlip', 'iconRotate']
866
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
867
+ inputs: ['closing'],
537
868
  }]
538
869
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
539
- let PStatus = class PStatus {
870
+ let PDrawerHeader = class PDrawerHeader {
540
871
  constructor(c, r, z) {
541
872
  this.z = z;
542
873
  c.detach();
543
874
  this.el = r.nativeElement;
875
+ proxyOutputs(this, this.el, ['close']);
544
876
  }
545
877
  };
546
- PStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PStatus, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
547
- PStatus.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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 });
548
- PStatus = __decorate([
878
+ PDrawerHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
549
881
  ProxyCmp({
550
- defineCustomElementFn: undefined,
551
- inputs: ['icon', 'iconFlip', 'iconRotate', 'variant']
882
+ inputs: ['showClose']
552
883
  })
553
- ], PStatus);
554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PStatus, decorators: [{
884
+ ], PDrawerHeader);
885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDrawerHeader, decorators: [{
555
886
  type: Component,
556
887
  args: [{
557
- selector: 'p-status',
888
+ selector: 'p-drawer-header',
558
889
  changeDetection: ChangeDetectionStrategy.OnPush,
559
890
  template: '<ng-content></ng-content>',
560
- inputs: ['icon', 'iconFlip', 'iconRotate', 'variant']
891
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
892
+ inputs: ['showClose'],
561
893
  }]
562
894
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
563
- let PTooltip = class PTooltip {
895
+ let PDropdown = class PDropdown {
564
896
  constructor(c, r, z) {
565
897
  this.z = z;
566
898
  c.detach();
567
899
  this.el = r.nativeElement;
900
+ proxyOutputs(this, this.el, ['isOpen']);
568
901
  }
569
902
  };
570
- PTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
571
- PTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PTooltip, selector: "p-tooltip", inputs: { canManuallyClose: "canManuallyClose", placement: "placement", popover: "popover", show: "show", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
572
- PTooltip = __decorate([
903
+ PDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", 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.1", 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([
573
906
  ProxyCmp({
574
- defineCustomElementFn: undefined,
575
- inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'variant']
907
+ inputs: ['applyFullWidth', 'applyMaxWidth', 'calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy']
576
908
  })
577
- ], PTooltip);
578
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PTooltip, decorators: [{
909
+ ], PDropdown);
910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PDropdown, decorators: [{
579
911
  type: Component,
580
912
  args: [{
581
- selector: 'p-tooltip',
913
+ selector: 'p-dropdown',
582
914
  changeDetection: ChangeDetectionStrategy.OnPush,
583
915
  template: '<ng-content></ng-content>',
584
- inputs: ['canManuallyClose', 'placement', 'popover', 'show', 'variant']
916
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
917
+ inputs: ['applyFullWidth', 'applyMaxWidth', 'calculateWidth', 'chevronDirection', 'chevronPosition', 'disableTriggerClick', 'insideClick', 'placement', 'show', 'strategy'],
585
918
  }]
586
919
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
587
-
588
- const DIRECTIVES = [
589
- PAvatar,
590
- PButton,
591
- PCounter,
592
- PDivider,
593
- PDropdown,
594
- PDropdownMenuContainer,
595
- PDropdownMenuItem,
596
- PHelper,
597
- PIcon,
598
- PIllustration,
599
- PInfoPanel,
600
- PLoader,
601
- PNavigationItem,
602
- PPagination,
603
- PPaginationItem,
604
- PSegmentContainer,
605
- PSegmentItem,
606
- PStatus,
607
- PTooltip
608
- ];
609
-
610
- class PaperlessModule {
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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", type: PInputGroup, selector: "p-input-group", inputs: { disabled: "disabled", error: "error", focused: "focused", helper: "helper", icon: "icon", iconFlip: "iconFlip", iconPosition: "iconPosition", iconRotate: "iconRotate", label: "label", prefix: "prefix", 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', 'focused', 'helper', 'icon', 'iconFlip', 'iconPosition', 'iconRotate', 'label', 'prefix', 'required', 'size', 'suffix']
1100
+ })
1101
+ ], PInputGroup);
1102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", 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', '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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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", 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', 'label', 'loading', 'maxDisplayedItems', 'placeholder', 'prefix', 'query', 'queryKey', 'showChevron', 'size', 'value', 'valueKey']
1509
+ })
1510
+ ], PSelect);
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", 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', '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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", type: PTableHeader, selector: "p-table-header", inputs: { activeQuickFilterIdentifier: "activeQuickFilterIdentifier", canEdit: "canEdit", editButtonTemplate: "editButtonTemplate", editIcon: "editIcon", 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', 'editText', 'enableEdit', 'enableFilter', 'enableSearch', 'filterButtonTemplate', 'itemsSelectedAmount', 'loading', 'query', 'quickFilters', 'selectedFiltersAmount']
1747
+ })
1748
+ ], PTableHeader);
1749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", 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', '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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", ngImport: i0, type: StencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1897
+ StencilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", 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.1", ngImport: i0, type: StencilModule });
1899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", 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.1", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1910
+ OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", 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.1", 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.1", 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
+ const overlay = this._createOverlay();
1955
+ const overlayRef = new OverlayRef(overlay);
1956
+ this._attachModalContainer(overlay, overlayRef, component, options.providers ?? []);
1957
+ this._attachData(overlayRef, options);
1958
+ this.overlayRef = overlayRef;
1959
+ return overlayRef;
1960
+ }
1961
+ // tslint:disable-next-line:max-line-length
1962
+ _attachModalContainer(overlay, overlayRef, component, providers) {
1963
+ const injector = this._createInjector(overlayRef, providers);
1964
+ const containerPortal = component instanceof CdkPortal
1965
+ ? component
1966
+ : new ComponentPortal(component, null, injector);
1967
+ const containerRef = overlay.attach(containerPortal);
1968
+ overlayRef.instance = containerRef.instance;
1969
+ return containerRef.instance;
1970
+ }
1971
+ _createInjector(overlayRef, providers) {
1972
+ return Injector.create({
1973
+ providers: [
1974
+ {
1975
+ provide: OverlayRef,
1976
+ useValue: overlayRef,
1977
+ },
1978
+ ...providers,
1979
+ ],
1980
+ parent: this.injector,
1981
+ });
1982
+ }
1983
+ _getOverlayConfig() {
1984
+ const positionStrategy = this.overlay
1985
+ .position()
1986
+ .global()
1987
+ .centerHorizontally()
1988
+ .centerVertically();
1989
+ const overlayConfig = new OverlayConfig({
1990
+ hasBackdrop: false,
1991
+ scrollStrategy: this.overlay.scrollStrategies.block(),
1992
+ positionStrategy,
1993
+ });
1994
+ return overlayConfig;
1995
+ }
1996
+ _createOverlay() {
1997
+ // Returns an OverlayConfig
1998
+ const overlayConfig = this._getOverlayConfig();
1999
+ // Returns an OverlayRef
2000
+ return this.overlay.create(overlayConfig);
2001
+ }
2002
+ _attachData(overlayRef, options) {
2003
+ if (options.data && typeof options.data === 'object') {
2004
+ for (const key of Object.keys(options.data)) {
2005
+ overlayRef.instance[key] = options.data[key];
2006
+ }
2007
+ }
2008
+ }
2009
+ }
2010
+ OverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: OverlayService, deps: [{ token: i0.Injector }, { token: i1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
2011
+ OverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: OverlayService });
2012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: OverlayService, decorators: [{
2013
+ type: Injectable
2014
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.Overlay }]; } });
2015
+
2016
+ const OVERLAY_SERVICES = [OverlayService];
2017
+
2018
+ const createFormFilters = (values, quickFilters, quickFilterKey) => {
2019
+ const filters = [];
2020
+ let quickFilter = null;
2021
+ for (const key of Object.keys(values)) {
2022
+ const value = values[key];
2023
+ if (key !== quickFilterKey && !value?.length) {
2024
+ continue;
2025
+ }
2026
+ if (quickFilterKey && key === quickFilterKey) {
2027
+ quickFilter = quickFilters.find((f) => f.value === value);
2028
+ continue;
2029
+ }
2030
+ filters.push({
2031
+ key,
2032
+ value,
2033
+ });
2034
+ }
2035
+ return {
2036
+ filters,
2037
+ quickFilter,
2038
+ };
2039
+ };
2040
+
2041
+ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
2042
+ constructor() {
2043
+ super();
2044
+ this.quickFilters = [];
2045
+ this.filterForm = new FormGroup({});
2046
+ this.defaultFilterFormValues = {};
2047
+ this.pageSizeDefault = 12;
2048
+ this._defaultTableValues = {
2049
+ pageSize: this.pageSizeDefault,
2050
+ page: 1,
2051
+ quickFilter: null,
2052
+ query: '',
2053
+ filters: [],
2054
+ selectedRows: [],
2055
+ };
2056
+ this.defaultTableValues = {};
2057
+ }
2058
+ get pageSize() {
2059
+ if (!this.tableOptions) {
2060
+ return this._defaultTableValues.pageSize;
2061
+ }
2062
+ return this.tableOptions.value.pageSize;
2063
+ }
2064
+ get page() {
2065
+ if (!this.tableOptions) {
2066
+ return this._defaultTableValues.page;
2067
+ }
2068
+ return this.tableOptions.value.page;
2069
+ }
2070
+ get quickFilter() {
2071
+ if (!this.tableOptions) {
2072
+ return this._defaultTableValues.quickFilter;
2073
+ }
2074
+ return this.tableOptions.value.quickFilter;
2075
+ }
2076
+ set quickFilter(quickFilter) {
2077
+ this.tableValues = {
2078
+ quickFilter,
2079
+ };
2080
+ }
2081
+ get query() {
2082
+ if (!this.tableOptions) {
2083
+ return this._defaultTableValues.query;
2084
+ }
2085
+ return this.tableOptions.value.query;
2086
+ }
2087
+ set query(query) {
2088
+ this.tableValues = {
2089
+ query,
2090
+ };
2091
+ }
2092
+ get filters() {
2093
+ if (!this.tableOptions) {
2094
+ return this._defaultTableValues.filters;
2095
+ }
2096
+ return this.tableOptions.value.filters;
2097
+ }
2098
+ set filters(filters) {
2099
+ this.tableValues = {
2100
+ filters,
2101
+ };
2102
+ }
2103
+ get selectedRows() {
2104
+ if (!this.tableOptions) {
2105
+ return this._defaultTableValues.selectedRows;
2106
+ }
2107
+ return this.tableOptions.value.selectedRows;
2108
+ }
2109
+ set selectedRows(selectedRows) {
2110
+ this.tableValues = {
2111
+ selectedRows,
2112
+ };
2113
+ }
2114
+ // setter
2115
+ get parsedDefaultTableValues() {
2116
+ return {
2117
+ ...this._defaultTableValues,
2118
+ ...this.defaultTableValues,
2119
+ pageSize: this.defaultTableValues?.pageSize || this.pageSizeDefault,
2120
+ };
2121
+ }
2122
+ get tableValues() {
2123
+ return this.tableOptions?.value ?? {};
2124
+ }
2125
+ set tableValues(values) {
2126
+ this._setTableValues({
2127
+ ...this.tableValues,
2128
+ ...values,
2129
+ });
2130
+ }
2131
+ ngOnInit() {
2132
+ this.tableOptions = new FormControl({
2133
+ pageSize: this.parsedDefaultTableValues.pageSize,
2134
+ page: this.parsedDefaultTableValues.page,
2135
+ quickFilter: this.parsedDefaultTableValues.quickFilter,
2136
+ query: this.parsedDefaultTableValues.query,
2137
+ filters: this.parsedDefaultTableValues.filters,
2138
+ selectedRows: this.parsedDefaultTableValues.selectedRows,
2139
+ });
2140
+ this.tableOptions.valueChanges
2141
+ .pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) => this._getChanges(previous, next)), filter((changes) => !!changes), debounce((changes) => {
2142
+ if (changes?.query && Object.keys(changes)?.length === 1) {
2143
+ return timer(300);
2144
+ }
2145
+ return timer(0);
2146
+ }), filter((changes) => !(changes?.selected &&
2147
+ Object.keys(changes)?.length === 1)))
2148
+ .subscribe((changes) => {
2149
+ if (changes?.page) {
2150
+ this._refresh();
2151
+ return;
2152
+ }
2153
+ this._resetPageOrRefresh();
2154
+ });
2155
+ this._refresh();
2156
+ }
2157
+ resetTable(emitEvent = true, forceRefresh = null) {
2158
+ this._setTableValues(this.parsedDefaultTableValues, emitEvent);
2159
+ if (forceRefresh) {
2160
+ this._refresh();
2161
+ }
2162
+ }
2163
+ applyFormFilters(values = null) {
2164
+ values = values ?? this.filterForm.value;
2165
+ const { filters, quickFilter } = createFormFilters(values, this.quickFilters, this.filterFormQuickFilterKey);
2166
+ if (quickFilter) {
2167
+ this.quickFilter = quickFilter;
2168
+ }
2169
+ this.filters = filters;
2170
+ }
2171
+ resetFormFilters(resetQuickFilter = false) {
2172
+ const values = this.filterForm.value;
2173
+ const defaultQuickFilter = this.quickFilters.find((f) => f.default);
2174
+ for (const key of Object.keys(values)) {
2175
+ if (key === this.filterFormQuickFilterKey) {
2176
+ if (resetQuickFilter) {
2177
+ values[key] = defaultQuickFilter.value;
2178
+ }
2179
+ continue;
2180
+ }
2181
+ values[key] = this.defaultFilterFormValues[key] ?? null;
2182
+ }
2183
+ this.filterForm.setValue(values);
2184
+ this.applyFormFilters(values);
2185
+ }
2186
+ _refresh() {
2187
+ console.warn('Not implemented');
2188
+ }
2189
+ _resetPageOrRefresh() {
2190
+ if (!this.tableOptions) {
2191
+ return;
2192
+ }
2193
+ if (this.page !== 1) {
2194
+ this.tableOptions.get('page')?.setValue(1);
2195
+ return;
2196
+ }
2197
+ this._refresh();
2198
+ }
2199
+ _setTableValues(data, emitEvent = true) {
2200
+ this.tableOptions?.setValue({
2201
+ ...this.tableOptions.value,
2202
+ ...data,
2203
+ }, { emitEvent });
2204
+ }
2205
+ _getChanges(previous, next) {
2206
+ const changes = {};
2207
+ let key;
2208
+ for (key in next) {
2209
+ if (key === 'selectedRows') {
2210
+ continue;
2211
+ }
2212
+ if (JSON.stringify(previous[key]) !== JSON.stringify(next[key])) {
2213
+ // @ts-ignore
2214
+ changes[key] = next[key];
2215
+ }
2216
+ }
2217
+ return Object.keys(changes).length ? changes : null;
2218
+ }
2219
+ };
2220
+ BaseTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2221
+ BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: BaseTableComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2222
+ BaseTableComponent = __decorate([
2223
+ UntilDestroy({ checkProperties: true })
2224
+ ], BaseTableComponent);
2225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: BaseTableComponent, decorators: [{
2226
+ type: Component,
2227
+ args: [{
2228
+ template: ``,
2229
+ }]
2230
+ }], ctorParameters: function () { return []; } });
2231
+
2232
+ /* eslint-disable max-len */
2233
+ class TableCell {
2234
+ constructor() {
2235
+ /**
2236
+ * The variant of the column
2237
+ */
2238
+ this.variant = 'default';
2239
+ /**
2240
+ * The index of the column
2241
+ */
2242
+ this.index = 0;
2243
+ /**
2244
+ * The index of the row
2245
+ */
2246
+ this.rowIndex = 0;
2247
+ }
2248
+ get class() {
2249
+ return this.getColumnClasses();
2250
+ }
2251
+ get data() {
2252
+ if (this.variant === 'header') {
2253
+ return {
2254
+ value: this.value,
2255
+ };
2256
+ }
2257
+ return {
2258
+ value: this.value ?? objectGetByPath(this.item, this.definition.path),
2259
+ item: this.item,
2260
+ index: this.index,
2261
+ rowIndex: this.rowIndex,
2262
+ };
2263
+ }
2264
+ // render() {
2265
+ // return (
2266
+ // <Host
2267
+ // class={{
2268
+ // 'p-table-column': true,
2269
+ // [`variant-${this.variant}`]: true,
2270
+ // ...this._getColumnClasses(),
2271
+ // }}
2272
+ // >
2273
+ // {this.checkbox}
2274
+ // {this.variant === 'loading' ? (
2275
+ // <p-loader
2276
+ // variant="ghost"
2277
+ // class="rounded flex-1 w-full h-6"
2278
+ // />
2279
+ // ) : (
2280
+ // <div class="flex">
2281
+ // {this.variant === 'header' ? (
2282
+ // this.data.value
2283
+ // ) : this.definition.useSlot ? (
2284
+ // <slot />
2285
+ // ) : (
2286
+ // this.template(this.data as TableDefinitionData)
2287
+ // )}
2288
+ // </div>
2289
+ // )}
2290
+ // </Host>
2291
+ // );
2292
+ // }
2293
+ getColumnClasses() {
2294
+ const sizes = this.definition ? this._getSizes(this.definition) : {};
2295
+ return {
2296
+ 'justify-start': !this.definition?.align || this.definition?.align === 'start',
2297
+ 'justify-center': this.definition?.align === 'center',
2298
+ 'justify-end': this.definition?.align === 'end',
2299
+ 'font-semibold': this.variant !== 'header' && this.definition?.type === 'th',
2300
+ 'text-storm-dark': this.variant !== 'header' && this.definition?.type === 'th',
2301
+ ...sizes,
2302
+ };
2303
+ }
2304
+ /*
2305
+ With this, we shall hack the system in ways no one would ever have thought.
2306
+
2307
+ 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
2308
+ 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
2309
+ 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
2310
+ 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
2311
+ 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
2312
+ 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
2313
+ 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
2314
+ 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
2315
+
2316
+
2317
+ ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀
2318
+ ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀
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
+ _getSizes({ sizes } /* Table Definition */) {
2346
+ if (sizes === 'auto' || !sizes) {
2347
+ return {
2348
+ 'w-auto': true,
2349
+ };
2350
+ }
2351
+ if (typeof sizes === 'object') {
2352
+ const classes = {};
2353
+ for (const size of Object.keys(sizes)) {
2354
+ if (size === 'default') {
2355
+ classes[`w-${sizes.default}/12`] = true;
2356
+ continue;
2357
+ }
2358
+ classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
2359
+ }
2360
+ return classes;
2361
+ }
2362
+ // is a number.
2363
+ return {
2364
+ [`w-${sizes}/12`]: true,
2365
+ };
2366
+ }
2367
+ }
2368
+ TableCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
2369
+ TableCell.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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"] }] });
2370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableCell, decorators: [{
2371
+ type: Component,
2372
+ 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"] }]
2373
+ }], propDecorators: { variant: [{
2374
+ type: Input
2375
+ }], index: [{
2376
+ type: Input
2377
+ }], rowIndex: [{
2378
+ type: Input
2379
+ }], definition: [{
2380
+ type: Input
2381
+ }], item: [{
2382
+ type: Input
2383
+ }], value: [{
2384
+ type: Input
2385
+ }], checkbox: [{
2386
+ type: Input
2387
+ }], template: [{
2388
+ type: Input
2389
+ }], class: [{
2390
+ type: HostBinding,
2391
+ args: ['class']
2392
+ }] } });
2393
+
2394
+ let TableColumn = class TableColumn {
2395
+ constructor(c, r, z) {
2396
+ this.z = z;
2397
+ c.detach();
2398
+ this.el = r.nativeElement;
2399
+ proxyOutputs(this, this.el, ['tableDefinitionChanged']);
2400
+ }
2401
+ };
2402
+ TableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableColumn, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2403
+ TableColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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 });
2404
+ TableColumn = __decorate([
2405
+ ProxyCmp({
2406
+ defineCustomElementFn: undefined,
2407
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
2408
+ })
2409
+ ], TableColumn);
2410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableColumn, decorators: [{
2411
+ type: Component,
2412
+ args: [{
2413
+ selector: 'p-table-column',
2414
+ changeDetection: ChangeDetectionStrategy.OnPush,
2415
+ template: '<ng-content></ng-content>',
2416
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
2417
+ }]
2418
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
2419
+ type: ContentChild,
2420
+ args: [TemplateRef, {
2421
+ read: TemplateRef,
2422
+ static: true,
2423
+ }]
2424
+ }] } });
2425
+
2426
+ class TableCustomFilterDirective {
2427
+ }
2428
+ TableCustomFilterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableCustomFilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2429
+ TableCustomFilterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: TableCustomFilterDirective, selector: "p-table-custom-filter", ngImport: i0 });
2430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableCustomFilterDirective, decorators: [{
2431
+ type: Directive,
2432
+ args: [{
2433
+ selector: 'p-table-custom-filter',
2434
+ }]
2435
+ }] });
2436
+
2437
+ class TableFilterModalDirective {
2438
+ }
2439
+ TableFilterModalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableFilterModalDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2440
+ TableFilterModalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: TableFilterModalDirective, selector: "[p-table-filter-modal]", ngImport: i0 });
2441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableFilterModalDirective, decorators: [{
2442
+ type: Directive,
2443
+ args: [{
2444
+ selector: '[p-table-filter-modal]',
2445
+ }]
2446
+ }] });
2447
+
2448
+ class TableFooterDirective extends BaseValueAccessor {
2449
+ constructor(el) {
2450
+ super(el);
2451
+ this.lastValue = {
2452
+ page: 1,
2453
+ pageSize: 12,
2454
+ };
2455
+ }
2456
+ writeValue(value) {
2457
+ this.el.nativeElement.page = this.lastValue.page =
2458
+ value?.page == null ? 1 : value?.page;
2459
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2460
+ value?.pageSize == null ? 12 : value?.pageSize;
2461
+ }
2462
+ handleChange(value, type) {
2463
+ this.handleChangeEvent({
2464
+ ...this.lastValue,
2465
+ [type]: value,
2466
+ });
2467
+ }
2468
+ }
2469
+ TableFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableFooterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2470
+ TableFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: TableFooterDirective, selector: "p-table-footer", host: { listeners: { "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")" } }, providers: [
2471
+ {
2472
+ provide: NG_VALUE_ACCESSOR,
2473
+ useExisting: TableFooterDirective,
2474
+ multi: true,
2475
+ },
2476
+ ], usesInheritance: true, ngImport: i0 });
2477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableFooterDirective, decorators: [{
2478
+ type: Directive,
2479
+ args: [{
2480
+ /* tslint:disable-next-line:directive-selector */
2481
+ selector: 'p-table-footer',
2482
+ host: {
2483
+ '(pageChange)': 'handleChange($event.detail, "page")',
2484
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2485
+ },
2486
+ providers: [
2487
+ {
2488
+ provide: NG_VALUE_ACCESSOR,
2489
+ useExisting: TableFooterDirective,
2490
+ multi: true,
2491
+ },
2492
+ ],
2493
+ }]
2494
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2495
+
2496
+ class TableHeaderDirective extends BaseValueAccessor {
2497
+ constructor(el) {
2498
+ super(el);
2499
+ this.lastValue = {
2500
+ query: '',
2501
+ quickFilter: undefined,
2502
+ };
2503
+ }
2504
+ writeValue(value) {
2505
+ this.el.nativeElement.query = this.lastValue.query = value?.query;
2506
+ this.lastValue.quickFilter = value?.quickFilter;
2507
+ if (value?.quickFilter) {
2508
+ this._setActiveQuickFilter(value.quickFilter);
2509
+ }
2510
+ }
2511
+ handleChange(value, type) {
2512
+ this.handleChangeEvent({
2513
+ ...this.lastValue,
2514
+ [type]: value,
2515
+ });
2516
+ if (type === 'quickFilter' && typeof value !== 'string') {
2517
+ this._setActiveQuickFilter(value);
2518
+ }
2519
+ }
2520
+ _setActiveQuickFilter(quickFilter) {
2521
+ this.el.nativeElement.activeQuickFilterIdentifier =
2522
+ quickFilter?.identifier;
2523
+ }
2524
+ }
2525
+ TableHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableHeaderDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2526
+ TableHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: TableHeaderDirective, selector: "p-table-header", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")" } }, providers: [
2527
+ {
2528
+ provide: NG_VALUE_ACCESSOR,
2529
+ useExisting: TableHeaderDirective,
2530
+ multi: true,
2531
+ },
2532
+ ], usesInheritance: true, ngImport: i0 });
2533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableHeaderDirective, decorators: [{
2534
+ type: Directive,
2535
+ args: [{
2536
+ /* tslint:disable-next-line:directive-selector */
2537
+ selector: 'p-table-header',
2538
+ host: {
2539
+ '(queryChange)': 'handleChange($event.detail, "query")',
2540
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2541
+ },
2542
+ providers: [
2543
+ {
2544
+ provide: NG_VALUE_ACCESSOR,
2545
+ useExisting: TableHeaderDirective,
2546
+ multi: true,
2547
+ },
2548
+ ],
2549
+ }]
2550
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2551
+
2552
+ /* eslint-disable @angular-eslint/no-host-metadata-property */
2553
+ class TableNgxDirective extends BaseValueAccessor {
2554
+ constructor(el, _base) {
2555
+ super(el);
2556
+ this._base = _base;
2557
+ this.lastValue = {
2558
+ query: '',
2559
+ quickFilter: undefined,
2560
+ filters: [],
2561
+ page: 1,
2562
+ pageSize: 12,
2563
+ selectedRows: [],
2564
+ };
2565
+ }
2566
+ writeValue(value) {
2567
+ this._base.query = this.lastValue.query = value?.query;
2568
+ // this.el.nativeElement.query = this.lastValue.query = value?.query;
2569
+ this.lastValue.quickFilter = value?.quickFilter;
2570
+ this.lastValue.filters = value?.filters;
2571
+ this._base.page = this.lastValue.page =
2572
+ value?.page == null ? 1 : value?.page;
2573
+ this._base.pageSize = this.lastValue.pageSize =
2574
+ value?.pageSize == null ? 12 : value?.pageSize;
2575
+ // this.el.nativeElement.page = this.lastValue.page =
2576
+ // value?.page == null ? 1 : value?.page;
2577
+ // this.el.nativeElement.pageSize = this.lastValue.pageSize =
2578
+ // value?.pageSize == null ? 12 : value?.pageSize;
2579
+ this.lastValue.selectedRows =
2580
+ value?.selectedRows == null ? [] : value?.selectedRows;
2581
+ if (value?.quickFilter) {
2582
+ this._setActiveQuickFilter(value.quickFilter);
2583
+ }
2584
+ this._base.selectedFiltersAmount = !value.filters || value.filters.length === 0 ? undefined : value.filters.length;
2585
+ this._checkEmptyStateType();
2586
+ this._checkResetButtons();
2587
+ }
2588
+ registerOnChange(fn) {
2589
+ this.onChange = fn;
2590
+ }
2591
+ registerOnTouched(fn) {
2592
+ this.onTouched = fn;
2593
+ }
2594
+ handleChange(value, type) {
2595
+ this.handleChangeEvent({
2596
+ ...this.lastValue,
2597
+ [type]: value,
2598
+ });
2599
+ if (type === 'quickFilter' && typeof value === 'object') {
2600
+ this._setActiveQuickFilter(value);
2601
+ }
2602
+ this._checkEmptyStateType();
2603
+ this._checkResetButtons();
2604
+ }
2605
+ _setActiveQuickFilter(quickFilter) {
2606
+ this._base.activeQuickFilterIdentifier = quickFilter?.identifier;
2607
+ // this.el.nativeElement.activeQuickFilterIdentifier =
2608
+ // quickFilter?.identifier;
2609
+ }
2610
+ _checkEmptyStateType() {
2611
+ if (this.lastValue.query?.length || !this.lastValue.quickFilter?.default || (this._base.selectedFiltersAmount && this._base.selectedFiltersAmount > 0) || this.lastValue.filters?.length) {
2612
+ this._base.emptyStateType = 'filtered';
2613
+ return;
2614
+ }
2615
+ this._base.emptyStateType = 'no_filter';
2616
+ }
2617
+ _checkResetButtons() {
2618
+ const activeQuickFilter = this.lastValue.quickFilter;
2619
+ const selectedFiltersAmount = this._base.selectedFiltersAmount;
2620
+ if (activeQuickFilter ||
2621
+ selectedFiltersAmount) {
2622
+ if (selectedFiltersAmount && selectedFiltersAmount > 0) {
2623
+ this._base.filterModalShowReset = true;
2624
+ }
2625
+ else {
2626
+ this._base.filterModalShowReset = false;
2627
+ }
2628
+ if (selectedFiltersAmount && selectedFiltersAmount > 0 || !activeQuickFilter?.default) {
2629
+ this._base.filterModalShowResetMobile = true;
2630
+ }
2631
+ else {
2632
+ this._base.filterModalShowResetMobile = false;
2633
+ }
2634
+ }
2635
+ }
2636
+ }
2637
+ TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: Table, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2638
+ TableNgxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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: [
2639
+ {
2640
+ provide: NG_VALUE_ACCESSOR,
2641
+ useExisting: TableNgxDirective,
2642
+ multi: true,
2643
+ },
2644
+ ], usesInheritance: true, ngImport: i0 });
2645
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableNgxDirective, decorators: [{
2646
+ type: Directive,
2647
+ args: [{
2648
+ selector: 'p-table-ngx',
2649
+ host: {
2650
+ '(queryChange)': 'handleChange($event.detail, "query")',
2651
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2652
+ '(pageChange)': 'handleChange($event.detail, "page")',
2653
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2654
+ '(selectedRowsChange)': 'handleChange($event, "selectedRows")',
2655
+ },
2656
+ providers: [
2657
+ {
2658
+ provide: NG_VALUE_ACCESSOR,
2659
+ useExisting: TableNgxDirective,
2660
+ multi: true,
2661
+ },
2662
+ ],
2663
+ }]
2664
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: Table, decorators: [{
2665
+ type: Host
2666
+ }] }]; } });
2667
+
2668
+ class TableDirective extends BaseValueAccessor {
2669
+ constructor(el) {
2670
+ super(el);
2671
+ this.lastValue = {
2672
+ query: '',
2673
+ quickFilter: undefined,
2674
+ page: 1,
2675
+ pageSize: 12,
2676
+ selectedRows: [],
2677
+ };
2678
+ }
2679
+ writeValue(value) {
2680
+ this.el.nativeElement.query = this.lastValue.query = value?.query;
2681
+ this.lastValue.quickFilter = value?.quickFilter;
2682
+ this.el.nativeElement.page = this.lastValue.page =
2683
+ value?.page == null ? 1 : value?.page;
2684
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2685
+ value?.pageSize == null ? 12 : value?.pageSize;
2686
+ this.lastValue.selectedRows =
2687
+ value?.selectedRows == null ? [] : value?.selectedRows;
2688
+ if (value?.quickFilter) {
2689
+ this._setActiveQuickFilter(value.quickFilter);
2690
+ }
2691
+ }
2692
+ registerOnChange(fn) {
2693
+ this.onChange = fn;
2694
+ }
2695
+ registerOnTouched(fn) {
2696
+ this.onTouched = fn;
2697
+ }
2698
+ handleChange(value, type) {
2699
+ this.handleChangeEvent({
2700
+ ...this.lastValue,
2701
+ [type]: value,
2702
+ });
2703
+ if (type === 'quickFilter' && typeof value === 'object') {
2704
+ this._setActiveQuickFilter(value);
2705
+ }
2706
+ }
2707
+ _setActiveQuickFilter(quickFilter) {
2708
+ this.el.nativeElement.activeQuickFilterIdentifier =
2709
+ quickFilter?.identifier;
2710
+ }
2711
+ }
2712
+ TableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2713
+ TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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: [
2714
+ {
2715
+ provide: NG_VALUE_ACCESSOR,
2716
+ useExisting: TableDirective,
2717
+ multi: true,
2718
+ },
2719
+ ], usesInheritance: true, ngImport: i0 });
2720
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableDirective, decorators: [{
2721
+ type: Directive,
2722
+ args: [{
2723
+ /* tslint:disable-next-line:directive-selector */
2724
+ selector: 'p-table',
2725
+ host: {
2726
+ '(queryChange)': 'handleChange($event.detail, "query")',
2727
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2728
+ '(pageChange)': 'handleChange($event.detail, "page")',
2729
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2730
+ '(selectedRowsChange)': 'handleChange($event.detail, "selectedRows")',
2731
+ },
2732
+ providers: [
2733
+ {
2734
+ provide: NG_VALUE_ACCESSOR,
2735
+ useExisting: TableDirective,
2736
+ multi: true,
2737
+ },
2738
+ ],
2739
+ }]
2740
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2741
+
2742
+ const TABLE_DIRECTIVES = [
2743
+ TableFooterDirective,
2744
+ TableHeaderDirective,
2745
+ TableDirective,
2746
+ TableNgxDirective,
2747
+ TableFilterModalDirective,
2748
+ TableCustomFilterDirective,
2749
+ ];
2750
+
2751
+ const defaultSize = 12;
2752
+ const defaultSizeOptions = [12, 24, 68, 136];
2753
+
2754
+ let Table = class Table {
2755
+ constructor() {
2756
+ /**
2757
+ * Wether data is loading
2758
+ */
2759
+ this.loading = false;
2760
+ /**
2761
+ * Wether the header should show loading state
2762
+ */
2763
+ this.headerLoading = false;
2764
+ /**
2765
+ * Wether the footer should show loading state
2766
+ */
2767
+ this.footerLoading = false;
2768
+ /**
2769
+ * The amount of loading rows to show
2770
+ */
2771
+ this.amountOfLoadingRows = 6;
2772
+ /**
2773
+ * Wether to enable selection
2774
+ */
2775
+ this.enableRowSelection = true;
2776
+ /**
2777
+ * Wether to enable row clicking
2778
+ */
2779
+ this.enableRowClick = true;
2780
+ /**
2781
+ * The current selection of items
2782
+ */
2783
+ this.selectedRows = [];
2784
+ /**
2785
+ * Event whenever the current selection changes
2786
+ */
2787
+ this.selectedRowsChange = new EventEmitter();
2788
+ /**
2789
+ * Event whenever a row is clicked
2790
+ */
2791
+ this.rowClick = new EventEmitter();
2792
+ /**
2793
+ * Event whenever a row is selected
2794
+ */
2795
+ this.rowSelected = new EventEmitter();
2796
+ /**
2797
+ * Event whenever a row is deselected
2798
+ */
2799
+ this.rowDeselected = new EventEmitter();
2800
+ /** START HEADER */
2801
+ /**
2802
+ * Wether to show the header
2803
+ */
2804
+ this.enableHeader = true;
2805
+ /**
2806
+ * Quick filters to show
2807
+ */
2808
+ this.quickFilters = [];
2809
+ /**
2810
+ * Wether to show the search input
2811
+ */
2812
+ this.enableSearch = true;
2813
+ /**
2814
+ * Wether to show the filter button
2815
+ */
2816
+ this.enableFilter = true;
2817
+ /**
2818
+ * Wether to show the edit button
2819
+ */
2820
+ this.enableEdit = true;
2821
+ /**
2822
+ * The edit button icon
2823
+ */
2824
+ this.editButtonIcon = 'pencil';
2825
+ /**
2826
+ * Event when one of the quick filters is clicked
2827
+ */
2828
+ this.quickFilter = new EventEmitter();
2829
+ /**
2830
+ * Event when the query changes
2831
+ */
2832
+ this.queryChange = new EventEmitter();
2833
+ /**
2834
+ * Event when the filter button is clicked
2835
+ */
2836
+ this.filter = new EventEmitter();
2837
+ /**
2838
+ * Event when the edit button is clicked
2839
+ */
2840
+ this.edit = new EventEmitter();
2841
+ /** START FOOTER */
2842
+ /**
2843
+ * Wether to show the footer
2844
+ */
2845
+ this.enableFooter = true;
2846
+ /**
2847
+ * Wether to enable page size select
2848
+ */
2849
+ this.enablePageSize = true;
2850
+ /**
2851
+ * Wether to enable pagination
2852
+ */
2853
+ this.enablePagination = true;
2854
+ /**
2855
+ * Wether to enable export
2856
+ */
2857
+ this.enableExport = true;
2858
+ /**
2859
+ * The current page
2860
+ */
2861
+ this.page = 1;
2862
+ /**
2863
+ * Event whenever the page changes
2864
+ */
2865
+ this.pageChange = new EventEmitter();
2866
+ /**
2867
+ * The amount of items per page
2868
+ */
2869
+ this.pageSize = defaultSize;
2870
+ /**
2871
+ * The options for the page size
2872
+ */
2873
+ this.pageSizeOptions = defaultSizeOptions;
2874
+ /**
2875
+ * Event whenever the page changes
2876
+ */
2877
+ this.pageSizeChange = new EventEmitter();
2878
+ /**
2879
+ * Event whenever the page changes
2880
+ */
2881
+ this.export = new EventEmitter();
2882
+ /**
2883
+ * Wether to hide when there is only 1 page available
2884
+ */
2885
+ this.hideOnSinglePage = true;
2886
+ /* Empty state start */
2887
+ this.emptyStateType = 'no_filter';
2888
+ /**
2889
+ * Event whenever the empty state is clicked
2890
+ */
2891
+ this.emptyStateActionClick = new EventEmitter();
2892
+ /* Empty state end */
2893
+ this.columns = [];
2894
+ this.parsedItems = [];
2895
+ this.loadingRows = Array.from({
2896
+ length: this.amountOfLoadingRows,
2897
+ });
2898
+ this._ctrlDown = false;
2899
+ this.filterModalShow$ = new BehaviorSubject(false);
2900
+ this.filterModalHeaderText = 'Filters';
2901
+ this.filterModalSaveText = 'Save';
2902
+ this.filterModalCancelText = 'Cancel';
2903
+ this.filterModalResetText = 'Reset filters';
2904
+ this.filterModalShowReset = false;
2905
+ this.filterModalShowResetMobile = false;
2906
+ this.filterModalShow = new EventEmitter();
2907
+ this.filterModalSave = new EventEmitter();
2908
+ this.filterModalReset = new EventEmitter();
2909
+ }
2910
+ set columnDefinitions(v) {
2911
+ this._columnDefinitions = v;
2912
+ this._generateColumns();
2913
+ }
2914
+ get columnDefinitions() {
2915
+ return this._columnDefinitions;
2916
+ }
2917
+ ngOnInit() {
2918
+ this._parseItems(this.items);
2919
+ this.loadingRows = Array.from({
2920
+ length: this.amountOfLoadingRows,
2921
+ });
2922
+ this.filterModalShow$
2923
+ .pipe(untilDestroyed(this), distinctUntilChanged())
2924
+ .subscribe((value) => this.filterModalShow.next(value));
2925
+ // this._generateColumns();
2926
+ }
2927
+ ngOnChanges(changes) {
2928
+ if (changes['items']) {
2929
+ this._parseItems(changes['items'].currentValue);
2930
+ }
2931
+ if (changes['amountOfLoadingRows']) {
2932
+ this.loadingRows = Array.from({
2933
+ length: changes['amountOfLoadingRows'].currentValue,
2934
+ });
2935
+ }
2936
+ }
2937
+ // @HostListener('body:tableDefinitionChanged', { target: 'body' })
2938
+ // onTableDefinitionUpdated() {
2939
+ // this._generateColumns();
2940
+ // }
2941
+ keyDown({ key }) {
2942
+ if (key !== 'Control' || this._ctrlDown === true) {
2943
+ return;
2944
+ }
2945
+ this._ctrlDown = true;
2946
+ }
2947
+ keyUp({ key }) {
2948
+ if (key !== 'Control' || this._ctrlDown === false) {
2949
+ return;
2950
+ }
2951
+ this._ctrlDown = false;
2952
+ }
2953
+ visibilityChange() {
2954
+ if (document.visibilityState !== 'hidden' || this._ctrlDown === false) {
2955
+ return;
2956
+ }
2957
+ this._ctrlDown = false;
2958
+ }
2959
+ onQueryChange({ detail }) {
2960
+ this.queryChange.emit(detail);
2961
+ }
2962
+ onQuickFilter({ detail }) {
2963
+ this.quickFilter.emit(detail);
2964
+ }
2965
+ onPageSizeChange({ detail }) {
2966
+ this.pageSizeChange.emit(detail);
2967
+ }
2968
+ onPageChange({ detail }) {
2969
+ this.pageChange.emit(detail);
2970
+ }
2971
+ onFilterModalSave() {
2972
+ this.filterModalSave.next();
2973
+ this.filterModalShow$.next(false);
2974
+ }
2975
+ onFilterModalReset(resetQuickFilter = false) {
2976
+ this.filterModalReset.next(resetQuickFilter);
2977
+ this.filterModalShow$.next(false);
2978
+ }
2979
+ _parseItems(items) {
2980
+ if (!items) {
2981
+ this.parsedItems = [];
2982
+ return;
2983
+ }
2984
+ if (Array.isArray(items)) {
2985
+ this.parsedItems = items;
2986
+ return;
2987
+ }
2988
+ this.parsedItems = JSON.parse(items);
2989
+ }
2990
+ _generateColumns() {
2991
+ // const definitions =
2992
+ // this._el.nativeElement.querySelectorAll('p-table-definition');
2993
+ this.columns = Array.from(this._columnDefinitions);
2994
+ }
2995
+ // private _getHeader() {
2996
+ // return (
2997
+ // <p-table-row variant="header">
2998
+ // {this._columns.map((col: TableDefinition, index) => (
2999
+ // <p-table-column
3000
+ // definition={col}
3001
+ // value={col.name}
3002
+ // variant="header"
3003
+ // checkbox={this._getCheckbox(index, null, 'header')}
3004
+ // index={index}
3005
+ // ></p-table-column>
3006
+ // ))}
3007
+ // </p-table-row>
3008
+ // );
3009
+ // }
3010
+ // private _getRows() {
3011
+ // if (this.loading) {
3012
+ // return Array.from(
3013
+ // {
3014
+ // length: this.amountOfLoadingRows,
3015
+ // },
3016
+ // (_, i) => (
3017
+ // <p-table-row
3018
+ // enableHover={
3019
+ // this.enableRowSelection || this.enableRowClick
3020
+ // }
3021
+ // >
3022
+ // {this._getLoadingColumns(i)}
3023
+ // </p-table-row>
3024
+ // )
3025
+ // );
3026
+ // }
3027
+ // return this._items.map((item, index) => (
3028
+ // <p-table-row
3029
+ // enableHover={this.enableRowSelection || this.enableRowClick}
3030
+ // onClick={(ev) => this._rowClick(ev, index)}
3031
+ // >
3032
+ // {this._getRowColumns(item, index)}
3033
+ // </p-table-row>
3034
+ // ));
3035
+ // }
3036
+ // private _getRowColumns(item, index) {
3037
+ // return this._columns.map((col: TableDefinition, colIndex) => {
3038
+ // return (
3039
+ // <p-table-column
3040
+ // definition={col}
3041
+ // item={item}
3042
+ // checkbox={this._getCheckbox(colIndex, index)}
3043
+ // index={colIndex}
3044
+ // rowIndex={index}
3045
+ // ></p-table-column>
3046
+ // );
3047
+ // });
3048
+ // }
3049
+ // private _getLoadingColumns(index) {
3050
+ // return this._columns.map((col: TableDefinition, colIndex) => {
3051
+ // return (
3052
+ // <p-table-column
3053
+ // definition={col}
3054
+ // variant="loading"
3055
+ // checkbox={this._getCheckbox(colIndex, index, 'loading')}
3056
+ // index={colIndex}
3057
+ // rowIndex={index}
3058
+ // ></p-table-column>
3059
+ // );
3060
+ // });
3061
+ // }
3062
+ // private _getCheckbox(
3063
+ // index,
3064
+ // rowIndex,
3065
+ // variant: 'header' | 'default' | 'loading' = 'default'
3066
+ // ) {
3067
+ // if (!this.enableRowSelection || !this.selectionKey || index !== 0) {
3068
+ // return;
3069
+ // }
3070
+ // if (variant === 'loading') {
3071
+ // return <p-loader variant="ghost" class="rounded w-6 h-6" />;
3072
+ // }
3073
+ // if (variant === 'header') {
3074
+ // return (
3075
+ // <input
3076
+ // class="p-input"
3077
+ // type="checkbox"
3078
+ // onChange={(ev) => this._selectAllChange(ev)}
3079
+ // checked={this._selectionContainsAll()}
3080
+ // indeterminate={this._selectionIndeterminate()}
3081
+ // />
3082
+ // );
3083
+ // }
3084
+ // const item = this._items[rowIndex];
3085
+ // return (
3086
+ // <input
3087
+ // class="p-input"
3088
+ // type="checkbox"
3089
+ // onChange={(ev) => this._checkboxChange(ev?.target, rowIndex)}
3090
+ // disabled={this.canSelectKey && !item[this.canSelectKey]}
3091
+ // checked={this._selectionContains(item, rowIndex)}
3092
+ // />
3093
+ // );
3094
+ // }
3095
+ _checkboxDisabled(item) {
3096
+ return this.canSelectKey && !item[this.canSelectKey];
3097
+ }
3098
+ _selectAllChange($event) {
3099
+ if (!this.enableRowSelection) {
3100
+ return;
3101
+ }
3102
+ const value = this._getCheckedValue($event.target);
3103
+ if (value) {
3104
+ const toAdd = [];
3105
+ for (let i = 0; i < this.parsedItems.length; i++) {
3106
+ const row = this.parsedItems[i];
3107
+ if (this.canSelectKey && !row[this.canSelectKey]) {
3108
+ continue;
3109
+ }
3110
+ if (this._selectionContains(row, i)) {
3111
+ continue;
3112
+ }
3113
+ toAdd.push(row);
3114
+ this.rowSelected.emit(row);
3115
+ }
3116
+ this.selectedRows = [...this.selectedRows, ...toAdd];
3117
+ this.selectedRowsChange.emit(this.selectedRows);
3118
+ return;
3119
+ }
3120
+ for (let i = 0; i < this.selectedRows.length; i++) {
3121
+ const value = this.selectedRows[i];
3122
+ const row = this.parsedItems.find((d) => this._getSelectionValue(d, i) ===
3123
+ this._getSelectionValue(value, i));
3124
+ if (!row) {
3125
+ continue;
3126
+ }
3127
+ this.rowDeselected.emit(row);
3128
+ }
3129
+ this.selectedRows = [];
3130
+ this.selectedRowsChange.emit(this.selectedRows);
3131
+ }
3132
+ _checkboxChange(target, index) {
3133
+ if (!this.enableRowSelection) {
3134
+ return;
3135
+ }
3136
+ const row = this.parsedItems[index];
3137
+ if (this.canSelectKey && !row[this.canSelectKey]) {
3138
+ target.checked = false;
3139
+ return;
3140
+ }
3141
+ const value = this._getCheckedValue(target);
3142
+ if (value) {
3143
+ this.selectedRows = [...this.selectedRows, row];
3144
+ this.selectedRowsChange.emit(this.selectedRows);
3145
+ this.rowSelected.emit(row);
3146
+ return;
3147
+ }
3148
+ const indexOfToRemove = this._selectionContains(row, index, true);
3149
+ // we need to do this, because splice does not trigger the selection setter.
3150
+ const selection = [...this.selectedRows];
3151
+ selection.splice(indexOfToRemove, 1);
3152
+ this.selectedRows = selection;
3153
+ this.selectedRowsChange.emit(this.selectedRows);
3154
+ this.rowDeselected.emit(row);
3155
+ }
3156
+ _getCheckedValue(target) {
3157
+ return target?.checked;
3158
+ }
3159
+ _getSelectionValue(row, index) {
3160
+ return this.selectionKey ? row?.[this.selectionKey] || index : index;
3161
+ }
3162
+ _selectionContains(row, index, returnIndex = false) {
3163
+ const returnValue = this.selectedRows.findIndex((item) => this._getSelectionValue(row, index) ===
3164
+ this._getSelectionValue(item, index));
3165
+ return !returnIndex ? returnValue >= 0 : returnValue;
3166
+ }
3167
+ _selectionContainsAll() {
3168
+ let returnValue = true;
3169
+ if (!this.parsedItems?.length) {
3170
+ return false;
3171
+ }
3172
+ for (let i = 0; i < this.parsedItems?.length; i++) {
3173
+ const item = this.parsedItems[i];
3174
+ const contains = this._selectionContains(item, i);
3175
+ if (!contains) {
3176
+ returnValue = false;
3177
+ break;
3178
+ }
3179
+ }
3180
+ return returnValue;
3181
+ }
3182
+ _selectionIndeterminate() {
3183
+ if (!this.parsedItems?.length || !this.selectedRows?.length) {
3184
+ return false;
3185
+ }
3186
+ let containsCount = 0;
3187
+ for (let i = 0; i < this.parsedItems?.length; i++) {
3188
+ const item = this.parsedItems[i];
3189
+ const contains = this._selectionContains(item, i);
3190
+ if (contains) {
3191
+ containsCount++;
3192
+ }
3193
+ }
3194
+ return containsCount > 0 && containsCount !== this.parsedItems.length;
3195
+ }
3196
+ _rowClick($event, index) {
3197
+ const target = $event.target;
3198
+ if (target.tagName.toLowerCase() === 'input' ||
3199
+ target.type === 'checkbox') {
3200
+ return;
3201
+ }
3202
+ const row = this._findRow($event.target);
3203
+ if (this.enableRowClick) {
3204
+ const action = this._findRowAction($event.target);
3205
+ if (action) {
3206
+ return;
3207
+ }
3208
+ const item = this.parsedItems[index];
3209
+ this.rowClick.emit({
3210
+ item,
3211
+ ctrlDown: this._ctrlDown,
3212
+ });
3213
+ return;
3214
+ }
3215
+ if (!this.enableRowSelection) {
3216
+ return;
3217
+ }
3218
+ const checkbox = row?.querySelector('input[type="checkbox"]');
3219
+ if (!checkbox) {
3220
+ return;
3221
+ }
3222
+ checkbox.checked = !checkbox.checked;
3223
+ this._checkboxChange(checkbox, index);
3224
+ }
3225
+ _findRow(el) {
3226
+ if (!el) {
3227
+ return el;
3228
+ }
3229
+ if (el?.tagName?.toLowerCase() === 'p-table-row') {
3230
+ return el;
3231
+ }
3232
+ return this._findRow(el?.parentElement);
3233
+ }
3234
+ _findRowAction(el) {
3235
+ if (!el) {
3236
+ return null;
3237
+ }
3238
+ if (el.getAttribute('data-is-action') !== null &&
3239
+ el.getAttribute('data-is-action') !== 'false') {
3240
+ return el;
3241
+ }
3242
+ if (el?.tagName?.toLowerCase() === 'p-table-row') {
3243
+ return null;
3244
+ }
3245
+ return this._findRowAction(el?.parentElement);
3246
+ }
3247
+ };
3248
+ Table.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
3249
+ Table.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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", 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", emptyStateHeader: "emptyStateHeader", emptyStateContent: "emptyStateContent", emptyStateAction: "emptyStateAction", 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 [editText]=\"editButtonText\"\n [editIcon]=\"editButtonIcon\"\n (edit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n [loading]=\"headerLoading\"\n >\n <div *ngIf=\"headerCustomFilterTemplate\" slot=\"custom-filter\">\n <ng-container\n *ngTemplateOutlet=\"headerCustomFilterTemplate\"\n ></ng-container>\n </div>\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 && 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 && 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 (close)=\"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=\"empty-state-search\"\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 >\n <p-illustration\n variant=\"empty-state-overview\"\n class=\"mb-6 cursor-pointer\"\n (onClick)=\"emptyStateActionClick.emit()\"\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 variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n (onClick)=\"emptyStateActionClick.emit()\"\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", "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 });
3250
+ Table = __decorate([
3251
+ UntilDestroy({ checkProperties: true })
3252
+ ], Table);
3253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: Table, decorators: [{
3254
+ type: Component,
3255
+ 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 [editText]=\"editButtonText\"\n [editIcon]=\"editButtonIcon\"\n (edit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n [loading]=\"headerLoading\"\n >\n <div *ngIf=\"headerCustomFilterTemplate\" slot=\"custom-filter\">\n <ng-container\n *ngTemplateOutlet=\"headerCustomFilterTemplate\"\n ></ng-container>\n </div>\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 && 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 && 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 (close)=\"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=\"empty-state-search\"\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 >\n <p-illustration\n variant=\"empty-state-overview\"\n class=\"mb-6 cursor-pointer\"\n (onClick)=\"emptyStateActionClick.emit()\"\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 variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n (onClick)=\"emptyStateActionClick.emit()\"\n >\n {{ emptyStateAction }}\n </p-button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
3256
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
3257
+ type: Input
3258
+ }], loading: [{
3259
+ type: Input
3260
+ }], headerLoading: [{
3261
+ type: Input
3262
+ }], footerLoading: [{
3263
+ type: Input
3264
+ }], amountOfLoadingRows: [{
3265
+ type: Input
3266
+ }], enableRowSelection: [{
3267
+ type: Input
3268
+ }], enableRowClick: [{
3269
+ type: Input
3270
+ }], selectedRows: [{
3271
+ type: Input
3272
+ }], selectedRowsChange: [{
3273
+ type: Output
3274
+ }], selectionKey: [{
3275
+ type: Input
3276
+ }], canSelectKey: [{
3277
+ type: Input
3278
+ }], rowClick: [{
3279
+ type: Output
3280
+ }], rowSelected: [{
3281
+ type: Output
3282
+ }], rowDeselected: [{
3283
+ type: Output
3284
+ }], enableHeader: [{
3285
+ type: Input
3286
+ }], quickFilters: [{
3287
+ type: Input
3288
+ }], activeQuickFilterIdentifier: [{
3289
+ type: Input
3290
+ }], enableSearch: [{
3291
+ type: Input
3292
+ }], query: [{
3293
+ type: Input
3294
+ }], enableFilter: [{
3295
+ type: Input
3296
+ }], selectedFiltersAmount: [{
3297
+ type: Input
3298
+ }], filterButtonTemplate: [{
3299
+ type: Input
3300
+ }], enableEdit: [{
3301
+ type: Input
3302
+ }], editButtonIcon: [{
3303
+ type: Input
3304
+ }], editButtonText: [{
3305
+ type: Input
3306
+ }], editButtonTemplate: [{
3307
+ type: Input
3308
+ }], quickFilter: [{
3309
+ type: Output
3310
+ }], queryChange: [{
3311
+ type: Output
3312
+ }], filter: [{
3313
+ type: Output
3314
+ }], edit: [{
3315
+ type: Output
3316
+ }], enableFooter: [{
3317
+ type: Input
3318
+ }], enablePageSize: [{
3319
+ type: Input
3320
+ }], enablePagination: [{
3321
+ type: Input
3322
+ }], enableExport: [{
3323
+ type: Input
3324
+ }], page: [{
3325
+ type: Input
3326
+ }], total: [{
3327
+ type: Input
3328
+ }], pageChange: [{
3329
+ type: Output
3330
+ }], pageSize: [{
3331
+ type: Input
3332
+ }], pageSizeOptions: [{
3333
+ type: Input
3334
+ }], pageSizeChange: [{
3335
+ type: Output
3336
+ }], export: [{
3337
+ type: Output
3338
+ }], hideOnSinglePage: [{
3339
+ type: Input
3340
+ }], emptyStateType: [{
3341
+ type: Input
3342
+ }], emptyStateHeader: [{
3343
+ type: Input
3344
+ }], emptyStateContent: [{
3345
+ type: Input
3346
+ }], emptyStateAction: [{
3347
+ type: Input
3348
+ }], emptyStateFilteredHeader: [{
3349
+ type: Input
3350
+ }], emptyStateFilteredContent: [{
3351
+ type: Input
3352
+ }], emptyStateActionClick: [{
3353
+ type: Output
3354
+ }], headerCustomFilterTemplate: [{
3355
+ type: ContentChild,
3356
+ args: [TableCustomFilterDirective, {
3357
+ read: TemplateRef,
3358
+ static: true,
3359
+ }]
3360
+ }], columnDefinitions: [{
3361
+ type: ContentChildren,
3362
+ args: [TableColumn]
3363
+ }], filterModalTemplate: [{
3364
+ type: ContentChild,
3365
+ args: [TableFilterModalDirective, {
3366
+ read: TemplateRef,
3367
+ static: true,
3368
+ }]
3369
+ }], filterModalHeaderText: [{
3370
+ type: Input
3371
+ }], filterModalSaveText: [{
3372
+ type: Input
3373
+ }], filterModalCancelText: [{
3374
+ type: Input
3375
+ }], filterModalResetText: [{
3376
+ type: Input
3377
+ }], filterModalShowReset: [{
3378
+ type: Input
3379
+ }], filterModalShowResetMobile: [{
3380
+ type: Input
3381
+ }], filterModalShow: [{
3382
+ type: Output
3383
+ }], filterModalSave: [{
3384
+ type: Output
3385
+ }], filterModalReset: [{
3386
+ type: Output
3387
+ }], keyDown: [{
3388
+ type: HostListener,
3389
+ args: ['document:keydown', ['$event']]
3390
+ }], keyUp: [{
3391
+ type: HostListener,
3392
+ args: ['document:keyup', ['$event']]
3393
+ }], visibilityChange: [{
3394
+ type: HostListener,
3395
+ args: ['document:visibilitychange', ['$event']]
3396
+ }] } });
3397
+
3398
+ const TABLE_COMPONENTS = [Table, TableCell, TableColumn];
3399
+
3400
+ class TableModule {
3401
+ }
3402
+ TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3403
+ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", 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] });
3404
+ TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableModule, imports: [CommonModule, StencilModule] });
3405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TableModule, decorators: [{
3406
+ type: NgModule,
3407
+ args: [{
3408
+ imports: [CommonModule, StencilModule],
3409
+ declarations: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
3410
+ exports: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
3411
+ }]
3412
+ }] });
3413
+
3414
+ var ToastVariants;
3415
+ (function (ToastVariants) {
3416
+ ToastVariants["Success"] = "positive";
3417
+ ToastVariants["Warning"] = "unbiased";
3418
+ ToastVariants["Error"] = "negative";
3419
+ ToastVariants["Positive"] = "positive";
3420
+ ToastVariants["Unbiased"] = "unbiased";
3421
+ ToastVariants["Negative"] = "negative";
3422
+ })(ToastVariants || (ToastVariants = {}));
3423
+
3424
+ class ToastService {
3425
+ constructor() {
3426
+ this._toasts = [];
3427
+ this.toasts$ = new BehaviorSubject(this._toasts);
3428
+ this.defaultOptions = {
3429
+ delay: 5000,
3430
+ dismissOnAction: true,
3431
+ enableAction: true,
3432
+ icon: {
3433
+ variant: 'negative',
3434
+ },
3435
+ };
3436
+ }
3437
+ show(header, content, variant = ToastVariants.Success, options = {}) {
3438
+ options = {
3439
+ ...this.defaultOptions,
3440
+ ...options,
3441
+ icon: options?.icon
3442
+ ? { ...this.defaultOptions.icon, ...options.icon }
3443
+ : this.defaultOptions.icon,
3444
+ };
3445
+ const identifier = v4();
3446
+ this._toasts.push({
3447
+ identifier,
3448
+ header,
3449
+ content,
3450
+ variant,
3451
+ options,
3452
+ });
3453
+ this.toasts$.next(this._toasts);
3454
+ return identifier;
3455
+ }
3456
+ hide(id) {
3457
+ const index = this._toasts.findIndex(({ identifier }) => identifier === id);
3458
+ this._toasts.splice(index, 1);
3459
+ this.toasts$.next(this._toasts);
3460
+ return id;
3461
+ }
3462
+ }
3463
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3464
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastService, providedIn: 'root' });
3465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastService, decorators: [{
3466
+ type: Injectable,
3467
+ args: [{
3468
+ providedIn: 'root',
3469
+ }]
3470
+ }] });
3471
+
3472
+ class ToastDirective {
3473
+ constructor() {
3474
+ this.delay = 5000;
3475
+ this.dismissOnAction = true;
3476
+ this.actionData = {};
3477
+ this.dismiss = new EventEmitter();
3478
+ }
3479
+ ngOnInit() {
3480
+ if (this.delay === 'infinite' || this.delay === 0) {
3481
+ return;
3482
+ }
3483
+ setTimeout(() => this.doDismiss(), this.delay);
3484
+ }
3485
+ onAction() {
3486
+ if (this.dismissOnAction && !this.actionFunc) {
3487
+ return this.doDismiss();
3488
+ }
3489
+ if (this.actionFunc) {
3490
+ this.actionFunc(this, this.actionData);
3491
+ }
3492
+ }
3493
+ doDismiss() {
3494
+ this.dismiss.next(this.identifier);
3495
+ }
3496
+ }
3497
+ ToastDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3498
+ ToastDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", 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 });
3499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastDirective, decorators: [{
3500
+ type: Directive,
3501
+ args: [{
3502
+ selector: 'p-toast',
3503
+ host: {
3504
+ '(action)': 'onAction()',
3505
+ },
3506
+ }]
3507
+ }], propDecorators: { delay: [{
3508
+ type: Input
3509
+ }], identifier: [{
3510
+ type: Input
3511
+ }], dismissOnAction: [{
3512
+ type: Input
3513
+ }], actionFunc: [{
3514
+ type: Input
3515
+ }], actionData: [{
3516
+ type: Input
3517
+ }], dismiss: [{
3518
+ type: Output
3519
+ }] } });
3520
+
3521
+ /* top-0 bottom-0 left-0 right-0 */
3522
+ let ToastContainer = class ToastContainer {
3523
+ constructor(r, z, _toastService) {
3524
+ this.z = z;
3525
+ this._toastService = _toastService;
3526
+ this.toasts$ = this._toastService.toasts$.pipe(map$1((arr) => arr.reverse()));
3527
+ this.el = r.nativeElement;
3528
+ }
3529
+ dismiss(identifier) {
3530
+ this._toastService.hide(identifier);
3531
+ }
3532
+ };
3533
+ ToastContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastContainer, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Component });
3534
+ ToastContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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 });
3535
+ ToastContainer = __decorate([
3536
+ ProxyCmp({
3537
+ defineCustomElementFn: undefined,
3538
+ inputs: ['placement'],
3539
+ })
3540
+ ], ToastContainer);
3541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastContainer, decorators: [{
3542
+ type: Component,
3543
+ 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" }]
3544
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToastService }]; } });
3545
+
3546
+ const TOAST_COMPONENTS = [ToastContainer];
3547
+
3548
+ const TOAST_DIRECTIVES = [ToastDirective];
3549
+
3550
+ const TOAST_SERVICES = [ToastService];
3551
+
3552
+ class ToastModule {
3553
+ }
3554
+ ToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3555
+ ToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: ToastModule, declarations: [ToastContainer, ToastDirective], imports: [CommonModule, StencilModule], exports: [ToastContainer, ToastDirective] });
3556
+ ToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastModule, imports: [CommonModule, StencilModule] });
3557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ToastModule, decorators: [{
3558
+ type: NgModule,
3559
+ args: [{
3560
+ imports: [CommonModule, StencilModule],
3561
+ declarations: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
3562
+ exports: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
3563
+ }]
3564
+ }] });
3565
+
3566
+ const MODULES = [TableModule, ToastModule, OverlayModule];
3567
+
3568
+ class CustomCurrencyPipe {
3569
+ constructor(_currencyPipe) {
3570
+ this._currencyPipe = _currencyPipe;
3571
+ }
3572
+ transform(value, currencyCode = 'EUR', display = 'symbol', digitsInfo = '1.2-2', locale = 'nl') {
3573
+ return this._currencyPipe.transform(value, currencyCode, display, digitsInfo, locale);
3574
+ }
3575
+ }
3576
+ CustomCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: CustomCurrencyPipe, deps: [{ token: i1$1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
3577
+ CustomCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: CustomCurrencyPipe, name: "pcurrency" });
3578
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: CustomCurrencyPipe, decorators: [{
3579
+ type: Pipe,
3580
+ args: [{
3581
+ name: 'pcurrency',
3582
+ }]
3583
+ }], ctorParameters: function () { return [{ type: i1$1.CurrencyPipe }]; } });
3584
+
3585
+ class CustomDatePipe {
3586
+ constructor(_datePipe) {
3587
+ this._datePipe = _datePipe;
3588
+ }
3589
+ transform(value, format) {
3590
+ return this._datePipe.transform(value, format);
3591
+ }
3592
+ }
3593
+ CustomDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: CustomDatePipe, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
3594
+ CustomDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: CustomDatePipe, name: "pdate" });
3595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: CustomDatePipe, decorators: [{
3596
+ type: Pipe,
3597
+ args: [{
3598
+ name: 'pdate',
3599
+ }]
3600
+ }], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
3601
+
3602
+ class SafePipe {
3603
+ constructor(sanitizer) {
3604
+ this.sanitizer = sanitizer;
3605
+ }
3606
+ transform(value, type) {
3607
+ switch (type) {
3608
+ case 'html':
3609
+ return this.sanitizer.bypassSecurityTrustHtml(value);
3610
+ case 'style':
3611
+ return this.sanitizer.bypassSecurityTrustStyle(value);
3612
+ case 'script':
3613
+ return this.sanitizer.bypassSecurityTrustScript(value);
3614
+ case 'url':
3615
+ return this.sanitizer.bypassSecurityTrustUrl(value);
3616
+ case 'resourceUrl':
3617
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
3618
+ default:
3619
+ throw new Error(`Invalid safe type specified: ${type}`);
3620
+ }
3621
+ }
3622
+ }
3623
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SafePipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
3624
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SafePipe, name: "psafe" });
3625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SafePipe, decorators: [{
3626
+ type: Pipe,
3627
+ args: [{
3628
+ name: 'psafe',
3629
+ }]
3630
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
3631
+
3632
+ const PIPES = [CustomCurrencyPipe, CustomDatePipe, SafePipe];
3633
+
3634
+ const NGX_PIPES = [DatePipe, CurrencyPipe];
3635
+ class PaperlessModule {
3636
+ static forRoot() {
3637
+ return {
3638
+ ngModule: PaperlessModule,
3639
+ providers: [...TOAST_SERVICES, ...OVERLAY_SERVICES],
3640
+ };
3641
+ }
611
3642
  }
612
- PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
613
- PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, declarations: [PAvatar, PButton, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PSegmentContainer, PSegmentItem, PStatus, PTooltip, PaginationDirective], exports: [PAvatar, PButton, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PSegmentContainer, PSegmentItem, PStatus, PTooltip, PaginationDirective] });
614
- PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule });
615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaperlessModule, decorators: [{
3643
+ PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3644
+ PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", 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] });
3645
+ PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule, StencilModule, MODULES, StencilModule, TableModule, ToastModule, OverlayModule] });
3646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: PaperlessModule, decorators: [{
616
3647
  type: NgModule,
617
3648
  args: [{
618
- declarations: [...DIRECTIVES, ...CUSTOM_DIRECTIVES],
619
- exports: [...DIRECTIVES, ...CUSTOM_DIRECTIVES],
3649
+ imports: [CommonModule, StencilModule, ...MODULES],
3650
+ declarations: [...DIRECTIVES$1, ...PIPES],
3651
+ exports: [StencilModule, ...MODULES, ...DIRECTIVES$1, ...PIPES],
3652
+ providers: [...NGX_PIPES, ...PIPES],
620
3653
  }]
621
3654
  }] });
622
3655
 
@@ -628,5 +3661,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
628
3661
  * Generated bundle index. Do not edit.
629
3662
  */
630
3663
 
631
- export { CUSTOM_DIRECTIVES, PAvatar, PButton, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PSegmentContainer, PSegmentItem, PStatus, PTooltip, PaginationDirective, PaperlessModule };
3664
+ 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 };
632
3665
  //# sourceMappingURL=paperless-angular.mjs.map