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

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