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