@paperless/angular 0.1.0-alpha.27 → 0.1.0-alpha.271

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