@paperless/angular 0.1.0-alpha.33 → 0.1.0-alpha.330

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