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

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