@paperless/angular 0.1.0-alpha.22 → 0.1.0-alpha.221

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