@paperless/angular 0.1.0-alpha.28 → 0.1.0-alpha.281

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