@paperless/angular 0.1.0-alpha.32 → 0.1.0-alpha.320

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