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

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