@paperless/angular 0.1.0-alpha.26 → 0.1.0-alpha.260

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