@paperless/angular 0.1.0-alpha.25 → 0.1.0-alpha.251

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