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

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