@paperless/angular 0.1.0-alpha.45 → 0.1.0-alpha.450

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