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

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,72 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
2
+ import { EventEmitter, Component, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, HostBinding, TemplateRef, ContentChild, ContentChildren, Host, NgModule, Injectable, Pipe } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR, FormControl, FormGroup, FormArray } from '@angular/forms';
4
4
  import { __decorate } from 'tslib';
5
- import { fromEvent } from 'rxjs';
5
+ import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
6
+ import { timer, fromEvent, BehaviorSubject, map as map$1 } from 'rxjs';
7
+ import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
8
+ import { objectGetByPath } from '@paperless/core';
9
+ import * as i1 from '@angular/common';
10
+ import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
11
+ import { trigger, transition, style, animate } from '@angular/animations';
12
+ import * as i1$1 from '@angular/platform-browser';
6
13
 
7
- class ValueAccessor {
14
+ class BaseUploadComponent {
15
+ constructor() {
16
+ this.uploaded = false;
17
+ this.fileChange = new EventEmitter();
18
+ this._loading = false;
19
+ }
20
+ set loading(value) {
21
+ this._loading = value;
22
+ }
23
+ get loading() {
24
+ return this._loading;
25
+ }
26
+ onChange($event) {
27
+ const target = $event.target;
28
+ const file = target.files?.[0];
29
+ if (file) {
30
+ this._loading = true;
31
+ const reader = new FileReader();
32
+ reader.onload = (e) => this.onLoad(file, e?.currentTarget?.result);
33
+ reader.readAsDataURL(file);
34
+ }
35
+ }
36
+ onLoad(file, result) {
37
+ this.fileChange.next({
38
+ fileId: this.fileId,
39
+ result,
40
+ file,
41
+ });
42
+ if (this.uploaderInput?.nativeElement) {
43
+ this.uploaderInput.nativeElement.value = '';
44
+ }
45
+ this.file = file;
46
+ this._loading = false;
47
+ }
48
+ }
49
+ BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseUploadComponent, selector: "ng-component", inputs: { fileId: "fileId", uploaded: "uploaded", loading: "loading" }, outputs: { fileChange: "fileChange" }, viewQueries: [{ propertyName: "uploaderInput", first: true, predicate: ["uploaderInput"], descendants: true }], ngImport: i0, template: ``, isInline: true });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, decorators: [{
52
+ type: Component,
53
+ args: [{
54
+ template: ``,
55
+ }]
56
+ }], propDecorators: { fileId: [{
57
+ type: Input
58
+ }], uploaded: [{
59
+ type: Input
60
+ }], loading: [{
61
+ type: Input
62
+ }], fileChange: [{
63
+ type: Output
64
+ }], uploaderInput: [{
65
+ type: ViewChild,
66
+ args: ['uploaderInput']
67
+ }] } });
68
+
69
+ class BaseValueAccessor {
8
70
  constructor(el) {
9
71
  this.el = el;
10
72
  this.onChange = () => {
@@ -24,19 +86,19 @@ class ValueAccessor {
24
86
  this.onChange(value);
25
87
  }
26
88
  }
27
- _handleBlurEvent() {
28
- this.onTouched();
29
- }
30
89
  registerOnChange(fn) {
31
90
  this.onChange = fn;
32
91
  }
33
92
  registerOnTouched(fn) {
34
93
  this.onTouched = fn;
35
94
  }
95
+ _handleBlurEvent() {
96
+ this.onTouched();
97
+ }
36
98
  }
37
- ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
38
- ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, decorators: [{
99
+ BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
100
+ BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, decorators: [{
40
102
  type: Directive,
41
103
  args: [{}]
42
104
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
@@ -44,7 +106,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
44
106
  args: ['focusout']
45
107
  }] } });
46
108
 
47
- class PaginationDirective extends ValueAccessor {
109
+ class PageSizeSelectDirective extends BaseValueAccessor {
110
+ constructor(el) {
111
+ super(el);
112
+ }
113
+ writeValue(value) {
114
+ this.el.nativeElement.page = this.lastValue =
115
+ value == null ? '' : value;
116
+ }
117
+ registerOnChange(fn) {
118
+ super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
119
+ }
120
+ }
121
+ PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
122
+ PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PageSizeSelectDirective, selector: "p-page-size-select", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
123
+ {
124
+ provide: NG_VALUE_ACCESSOR,
125
+ useExisting: PageSizeSelectDirective,
126
+ multi: true,
127
+ },
128
+ ], usesInheritance: true, ngImport: i0 });
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, decorators: [{
130
+ type: Directive,
131
+ args: [{
132
+ /* tslint:disable-next-line:directive-selector */
133
+ selector: 'p-page-size-select',
134
+ host: {
135
+ '(sizeChange)': 'handleChangeEvent($event.detail)',
136
+ },
137
+ providers: [
138
+ {
139
+ provide: NG_VALUE_ACCESSOR,
140
+ useExisting: PageSizeSelectDirective,
141
+ multi: true,
142
+ },
143
+ ],
144
+ }]
145
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
146
+
147
+ class PaginationDirective extends BaseValueAccessor {
48
148
  constructor(el) {
49
149
  super(el);
50
150
  }
@@ -56,21 +156,21 @@ class PaginationDirective extends ValueAccessor {
56
156
  super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
57
157
  }
58
158
  }
59
- PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
60
- PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.target.page)" } }, providers: [
159
+ PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
160
+ PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
61
161
  {
62
162
  provide: NG_VALUE_ACCESSOR,
63
163
  useExisting: PaginationDirective,
64
164
  multi: true,
65
165
  },
66
166
  ], usesInheritance: true, ngImport: i0 });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PaginationDirective, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, decorators: [{
68
168
  type: Directive,
69
169
  args: [{
70
170
  /* tslint:disable-next-line:directive-selector */
71
171
  selector: 'p-pagination',
72
172
  host: {
73
- '(pageChange)': 'handleChangeEvent($event.target.page)',
173
+ '(pageChange)': 'handleChangeEvent($event.detail)',
74
174
  },
75
175
  providers: [
76
176
  {
@@ -82,7 +182,300 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
82
182
  }]
83
183
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
84
184
 
85
- const CUSTOM_DIRECTIVES = [PaginationDirective];
185
+ class SelectDirective extends BaseValueAccessor {
186
+ constructor(el) {
187
+ super(el);
188
+ }
189
+ writeValue(value) {
190
+ this.el.nativeElement.value = this.lastValue =
191
+ value == null ? '' : value;
192
+ }
193
+ }
194
+ SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
195
+ SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: SelectDirective, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
196
+ {
197
+ provide: NG_VALUE_ACCESSOR,
198
+ useExisting: SelectDirective,
199
+ multi: true,
200
+ },
201
+ ], usesInheritance: true, ngImport: i0 });
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, decorators: [{
203
+ type: Directive,
204
+ args: [{
205
+ selector: 'p-select',
206
+ host: {
207
+ '(valueChange)': 'handleChangeEvent($event.detail)',
208
+ },
209
+ providers: [
210
+ {
211
+ provide: NG_VALUE_ACCESSOR,
212
+ useExisting: SelectDirective,
213
+ multi: true,
214
+ },
215
+ ],
216
+ }]
217
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
218
+
219
+ const DIRECTIVES$1 = [
220
+ PaginationDirective,
221
+ PageSizeSelectDirective,
222
+ SelectDirective,
223
+ ];
224
+
225
+ class FormBaseComponent {
226
+ constructor() {
227
+ this.markedDirty = false;
228
+ }
229
+ scrollToFirstError() {
230
+ const invalidInputs = Array.from(document.getElementsByClassName('ng-invalid'))
231
+ .filter((e) => e?.nodeName?.toLowerCase() !== 'form')
232
+ .sort((a, b) => a.scrollTop - b.scrollTop);
233
+ const first = invalidInputs[0];
234
+ if (first) {
235
+ first.scrollIntoView({
236
+ behavior: 'smooth',
237
+ block: 'center',
238
+ inline: 'center',
239
+ });
240
+ }
241
+ }
242
+ markControlDirty(control) {
243
+ if (control instanceof FormControl) {
244
+ control.markAsDirty({ onlySelf: true });
245
+ control.markAsTouched({ onlySelf: true });
246
+ }
247
+ else if (control instanceof FormGroup) {
248
+ control.markAsDirty();
249
+ control.markAsTouched();
250
+ this.markAllDirty(control);
251
+ }
252
+ else if (control instanceof FormArray) {
253
+ control.markAsDirty();
254
+ control.markAsTouched();
255
+ for (const child of control?.controls) {
256
+ this.markControlDirty(child);
257
+ }
258
+ }
259
+ control.updateValueAndValidity();
260
+ }
261
+ markAllDirty(formGroup) {
262
+ this.markedDirty = true;
263
+ for (const field of Object.keys(formGroup.controls)) {
264
+ const control = formGroup.get(field);
265
+ this.markControlDirty(control);
266
+ }
267
+ }
268
+ getControlError(control) {
269
+ if (!this.hasControlError(control)) {
270
+ return;
271
+ }
272
+ return this.firstControlError(control);
273
+ }
274
+ hasControlError(control, showChildErrors = true) {
275
+ return (control?.dirty && this.firstControlError(control, showChildErrors));
276
+ }
277
+ firstControlError(control, showChildErrors = true) {
278
+ if (control instanceof FormGroup && showChildErrors) {
279
+ const errors = Object.keys(control.controls)
280
+ .map((key) => this.firstControlError(control.controls[key]))
281
+ .filter((val) => !!val);
282
+ return errors[0];
283
+ }
284
+ if (!control?.errors) {
285
+ return;
286
+ }
287
+ const keys = Object.keys(control.errors);
288
+ let err;
289
+ for (const key of keys) {
290
+ if (control.errors[key]) {
291
+ err = key;
292
+ break;
293
+ }
294
+ }
295
+ return err;
296
+ }
297
+ resetControl(control) {
298
+ control.setErrors(null);
299
+ control.reset();
300
+ control.markAsPristine();
301
+ if (control instanceof FormGroup) {
302
+ this.resetForm(control);
303
+ }
304
+ else if (control instanceof FormArray) {
305
+ for (const child of control?.controls) {
306
+ this.resetControl(child);
307
+ }
308
+ }
309
+ }
310
+ resetForm(formGroup) {
311
+ for (const field of Object.keys(formGroup.controls)) {
312
+ const control = formGroup.get(field);
313
+ this.resetControl(control);
314
+ }
315
+ this.markedDirty = false;
316
+ }
317
+ }
318
+ FormBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
319
+ FormBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormBaseComponent, selector: "ng-component", ngImport: i0, template: ``, isInline: true });
320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormBaseComponent, decorators: [{
321
+ type: Component,
322
+ args: [{
323
+ template: ``,
324
+ }]
325
+ }] });
326
+
327
+ let BaseTableComponent = class BaseTableComponent extends FormBaseComponent {
328
+ constructor() {
329
+ super();
330
+ this.quickFilters = [];
331
+ this.pageSizeDefault = 12;
332
+ this._defaultTableValues = {
333
+ pageSize: this.pageSizeDefault,
334
+ page: 1,
335
+ quickFilter: null,
336
+ query: '',
337
+ selectedRows: [],
338
+ };
339
+ this.defaultTableValues = {};
340
+ }
341
+ get pageSize() {
342
+ if (!this.tableOptions) {
343
+ return this._defaultTableValues.pageSize;
344
+ }
345
+ return this.tableOptions.value.pageSize;
346
+ }
347
+ get page() {
348
+ if (!this.tableOptions) {
349
+ return this._defaultTableValues.page;
350
+ }
351
+ return this.tableOptions.value.page;
352
+ }
353
+ get quickFilter() {
354
+ if (!this.tableOptions) {
355
+ return this._defaultTableValues.quickFilter;
356
+ }
357
+ return this.tableOptions.value.quickFilter;
358
+ }
359
+ set quickFilter(quickFilter) {
360
+ this.tableValues = {
361
+ quickFilter,
362
+ };
363
+ }
364
+ get query() {
365
+ if (!this.tableOptions) {
366
+ return this._defaultTableValues.query;
367
+ }
368
+ return this.tableOptions.value.query;
369
+ }
370
+ set query(query) {
371
+ this.tableValues = {
372
+ query,
373
+ };
374
+ }
375
+ get selectedRows() {
376
+ if (!this.tableOptions) {
377
+ return this._defaultTableValues.selectedRows;
378
+ }
379
+ return this.tableOptions.value.selectedRows;
380
+ }
381
+ set selectedRows(selectedRows) {
382
+ this.tableValues = {
383
+ selectedRows,
384
+ };
385
+ }
386
+ // setter
387
+ get parsedDefaultTableValues() {
388
+ return {
389
+ ...this._defaultTableValues,
390
+ ...this.defaultTableValues,
391
+ pageSize: this.defaultTableValues?.pageSize || this.pageSizeDefault,
392
+ };
393
+ }
394
+ get tableValues() {
395
+ return this.tableOptions?.value ?? {};
396
+ }
397
+ set tableValues(values) {
398
+ this._setTableValues({
399
+ ...this.tableValues,
400
+ ...values,
401
+ });
402
+ }
403
+ ngOnInit() {
404
+ this.tableOptions = new FormControl({
405
+ pageSize: this.parsedDefaultTableValues.pageSize,
406
+ page: this.parsedDefaultTableValues.page,
407
+ quickFilter: this.parsedDefaultTableValues.quickFilter,
408
+ query: this.parsedDefaultTableValues.query,
409
+ selectedRows: this.parsedDefaultTableValues.selectedRows,
410
+ });
411
+ this.tableOptions.valueChanges
412
+ .pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) => this._getChanges(previous, next)), filter((changes) => !!changes), debounce((changes) => {
413
+ if (changes?.query && Object.keys(changes)?.length === 1) {
414
+ return timer(300);
415
+ }
416
+ return timer(0);
417
+ }), filter((changes) => !(changes?.selected &&
418
+ Object.keys(changes)?.length === 1)))
419
+ .subscribe((changes) => {
420
+ if (changes?.page) {
421
+ this._refresh();
422
+ return;
423
+ }
424
+ this._resetPageOrRefresh();
425
+ });
426
+ this._refresh();
427
+ }
428
+ resetTable(emitEvent = true, forceRefresh = null) {
429
+ this._setTableValues(this.parsedDefaultTableValues, emitEvent);
430
+ if (forceRefresh) {
431
+ this._refresh();
432
+ }
433
+ }
434
+ _refresh() {
435
+ console.warn('Not implemented');
436
+ }
437
+ _resetPageOrRefresh() {
438
+ if (!this.tableOptions) {
439
+ return;
440
+ }
441
+ if (this.page !== 1) {
442
+ this.tableOptions.get('page')?.setValue(1);
443
+ return;
444
+ }
445
+ this._refresh();
446
+ }
447
+ _setTableValues(data, emitEvent = true) {
448
+ this.tableOptions?.setValue({
449
+ ...this.tableOptions.value,
450
+ ...data,
451
+ }, { 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.7", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
469
+ BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", 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.7", 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,2509 @@ 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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 = [
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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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.7", 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
+ if (this.variant === 'header') {
1731
+ return {
1732
+ value: this.value,
1733
+ };
1734
+ }
1735
+ return {
1736
+ value: this.value ?? objectGetByPath(this.item, this.definition.path),
1737
+ item: this.item,
1738
+ index: this.index,
1739
+ rowIndex: this.rowIndex,
1740
+ };
1741
+ }
1742
+ // render() {
1743
+ // return (
1744
+ // <Host
1745
+ // class={{
1746
+ // 'p-table-column': true,
1747
+ // [`variant-${this.variant}`]: true,
1748
+ // ...this._getColumnClasses(),
1749
+ // }}
1750
+ // >
1751
+ // {this.checkbox}
1752
+ // {this.variant === 'loading' ? (
1753
+ // <p-loader
1754
+ // variant="ghost"
1755
+ // class="rounded flex-1 w-full h-6"
1756
+ // />
1757
+ // ) : (
1758
+ // <div class="flex">
1759
+ // {this.variant === 'header' ? (
1760
+ // this.data.value
1761
+ // ) : this.definition.useSlot ? (
1762
+ // <slot />
1763
+ // ) : (
1764
+ // this.template(this.data as TableDefinitionData)
1765
+ // )}
1766
+ // </div>
1767
+ // )}
1768
+ // </Host>
1769
+ // );
1770
+ // }
1771
+ getColumnClasses() {
1772
+ const sizes = this.definition ? this._getSizes(this.definition) : {};
1773
+ return {
1774
+ 'justify-start': !this.definition?.align || this.definition?.align === 'start',
1775
+ 'justify-center': this.definition?.align === 'center',
1776
+ 'justify-end': this.definition?.align === 'end',
1777
+ 'font-semibold': this.variant !== 'header' && this.definition?.type === 'th',
1778
+ 'text-storm-dark': this.variant !== 'header' && this.definition?.type === 'th',
1779
+ ...sizes,
1780
+ };
1781
+ }
1782
+ /*
1783
+ With this, we shall hack the system in ways no one would ever have thought.
1784
+
1785
+ 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
1786
+ 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
1787
+ 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
1788
+ 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
1789
+ 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
1790
+ 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
1791
+ 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
1792
+ 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
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
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1819
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1820
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1821
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1822
+ */
1823
+ _getSizes({ sizes } /* Table Definition */) {
1824
+ if (sizes === 'auto' || !sizes) {
1825
+ return {
1826
+ 'w-auto': true,
1827
+ };
1828
+ }
1829
+ if (typeof sizes === 'object') {
1830
+ const classes = {};
1831
+ for (const size of Object.keys(sizes)) {
1832
+ if (size === 'default') {
1833
+ classes[`w-${sizes.default}/12`] = true;
1834
+ continue;
1835
+ }
1836
+ classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
1837
+ }
1838
+ return classes;
1839
+ }
1840
+ // is a number.
1841
+ return {
1842
+ [`w-${sizes}/12`]: true,
1843
+ };
1844
+ }
1845
+ }
1846
+ TableCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1847
+ TableCell.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", 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"] }] });
1848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableCell, decorators: [{
1849
+ type: Component,
1850
+ 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"] }]
1851
+ }], propDecorators: { variant: [{
1852
+ type: Input
1853
+ }], index: [{
1854
+ type: Input
1855
+ }], rowIndex: [{
1856
+ type: Input
1857
+ }], definition: [{
1858
+ type: Input
1859
+ }], item: [{
1860
+ type: Input
1861
+ }], value: [{
1862
+ type: Input
1863
+ }], checkbox: [{
1864
+ type: Input
1865
+ }], template: [{
1866
+ type: Input
1867
+ }], class: [{
1868
+ type: HostBinding,
1869
+ args: ['class']
1870
+ }] } });
1871
+
1872
+ let TableColumn = class TableColumn {
1873
+ constructor(c, r, z) {
1874
+ this.z = z;
1875
+ c.detach();
1876
+ this.el = r.nativeElement;
1877
+ proxyOutputs(this, this.el, ['tableDefinitionChanged']);
1878
+ }
1879
+ };
1880
+ TableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableColumn, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1881
+ TableColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", 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 });
1882
+ TableColumn = __decorate([
1883
+ ProxyCmp({
1884
+ defineCustomElementFn: undefined,
1885
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
1886
+ })
1887
+ ], TableColumn);
1888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableColumn, decorators: [{
1889
+ type: Component,
1890
+ args: [{
1891
+ selector: 'p-table-column',
1892
+ changeDetection: ChangeDetectionStrategy.OnPush,
1893
+ template: '<ng-content></ng-content>',
1894
+ inputs: ['align', 'name', 'path', 'sizes', 'type', 'useSlot'],
1895
+ }]
1896
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
1897
+ type: ContentChild,
1898
+ args: [TemplateRef, {
1899
+ read: TemplateRef,
1900
+ static: true,
1901
+ }]
1902
+ }] } });
1903
+
1904
+ const defaultSize = 12;
1905
+ const defaultSizeOptions = [12, 24, 68, 136];
1906
+
1907
+ class TableFooterDirective extends BaseValueAccessor {
1908
+ constructor(el) {
1909
+ super(el);
1910
+ this.lastValue = {
1911
+ page: 1,
1912
+ pageSize: 12,
1913
+ };
1914
+ }
1915
+ writeValue(value) {
1916
+ this.el.nativeElement.page = this.lastValue.page =
1917
+ value?.page == null ? '' : value?.page;
1918
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
1919
+ value?.pageSize == null ? '' : value?.pageSize;
1920
+ }
1921
+ handleChange(value, type) {
1922
+ this.handleChangeEvent({
1923
+ ...this.lastValue,
1924
+ [type]: value,
1925
+ });
1926
+ }
1927
+ }
1928
+ TableFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableFooterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1929
+ TableFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableFooterDirective, selector: "p-table-footer", host: { listeners: { "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")" } }, providers: [
1930
+ {
1931
+ provide: NG_VALUE_ACCESSOR,
1932
+ useExisting: TableFooterDirective,
1933
+ multi: true,
1934
+ },
1935
+ ], usesInheritance: true, ngImport: i0 });
1936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableFooterDirective, decorators: [{
1937
+ type: Directive,
1938
+ args: [{
1939
+ /* tslint:disable-next-line:directive-selector */
1940
+ selector: 'p-table-footer',
1941
+ host: {
1942
+ '(pageChange)': 'handleChange($event.detail, "page")',
1943
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
1944
+ },
1945
+ providers: [
1946
+ {
1947
+ provide: NG_VALUE_ACCESSOR,
1948
+ useExisting: TableFooterDirective,
1949
+ multi: true,
1950
+ },
1951
+ ],
1952
+ }]
1953
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1954
+
1955
+ class TableHeaderDirective extends BaseValueAccessor {
1956
+ constructor(el) {
1957
+ super(el);
1958
+ this.lastValue = {
1959
+ query: '',
1960
+ quickFilter: undefined,
1961
+ };
1962
+ }
1963
+ writeValue(value) {
1964
+ this.el.nativeElement.query = this.lastValue.query = value?.query;
1965
+ this.lastValue.quickFilter = value?.quickFilter;
1966
+ if (value?.quickFilter) {
1967
+ this._setActiveQuickFilter(value.quickFilter);
1968
+ }
1969
+ }
1970
+ handleChange(value, type) {
1971
+ this.handleChangeEvent({
1972
+ ...this.lastValue,
1973
+ [type]: value,
1974
+ });
1975
+ if (type === 'quickFilter' && typeof value !== 'string') {
1976
+ this._setActiveQuickFilter(value);
1977
+ }
1978
+ }
1979
+ _setActiveQuickFilter(quickFilter) {
1980
+ this.el.nativeElement.activeQuickFilterIdentifier =
1981
+ quickFilter?.identifier;
1982
+ }
1983
+ }
1984
+ TableHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableHeaderDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1985
+ TableHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableHeaderDirective, selector: "p-table-header", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")" } }, providers: [
1986
+ {
1987
+ provide: NG_VALUE_ACCESSOR,
1988
+ useExisting: TableHeaderDirective,
1989
+ multi: true,
1990
+ },
1991
+ ], usesInheritance: true, ngImport: i0 });
1992
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableHeaderDirective, decorators: [{
1993
+ type: Directive,
1994
+ args: [{
1995
+ /* tslint:disable-next-line:directive-selector */
1996
+ selector: 'p-table-header',
1997
+ host: {
1998
+ '(queryChange)': 'handleChange($event.detail, "query")',
1999
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2000
+ },
2001
+ providers: [
2002
+ {
2003
+ provide: NG_VALUE_ACCESSOR,
2004
+ useExisting: TableHeaderDirective,
2005
+ multi: true,
2006
+ },
2007
+ ],
2008
+ }]
2009
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2010
+
2011
+ let Table = class Table {
2012
+ constructor() {
2013
+ /**
2014
+ * Wether data is loading
2015
+ */
2016
+ this.loading = false;
2017
+ /**
2018
+ * The amount of loading rows to show
2019
+ */
2020
+ this.amountOfLoadingRows = 4;
2021
+ /**
2022
+ * Wether to enable selection
2023
+ */
2024
+ this.enableRowSelection = true;
2025
+ /**
2026
+ * Wether to enable row clicking
2027
+ */
2028
+ this.enableRowClick = true;
2029
+ /**
2030
+ * The current selection of items
2031
+ */
2032
+ this.selectedRows = [];
2033
+ /**
2034
+ * Event whenever the current selection changes
2035
+ */
2036
+ this.selectedRowsChange = new EventEmitter();
2037
+ /**
2038
+ * Event whenever a row is clicked
2039
+ */
2040
+ this.rowClick = new EventEmitter();
2041
+ /**
2042
+ * Event whenever a row is selected
2043
+ */
2044
+ this.rowSelected = new EventEmitter();
2045
+ /**
2046
+ * Event whenever a row is deselected
2047
+ */
2048
+ this.rowDeselected = new EventEmitter();
2049
+ /** START HEADER */
2050
+ /**
2051
+ * Quick filters to show
2052
+ */
2053
+ this.quickFilters = [];
2054
+ /**
2055
+ * Wether to show the search input
2056
+ */
2057
+ this.enableSearch = true;
2058
+ /**
2059
+ * Wether to show the filter button
2060
+ */
2061
+ this.enableFilter = true;
2062
+ /**
2063
+ * Wether to show the edit button
2064
+ */
2065
+ this.enableEdit = true;
2066
+ /**
2067
+ * Event when one of the quick filters is clicked
2068
+ */
2069
+ this.quickFilter = new EventEmitter();
2070
+ /**
2071
+ * Event when the query changes
2072
+ */
2073
+ this.queryChange = new EventEmitter();
2074
+ /**
2075
+ * Event when the filter button is clicked
2076
+ */
2077
+ this.filter = new EventEmitter();
2078
+ /**
2079
+ * Event when the edit button is clicked
2080
+ */
2081
+ this.edit = new EventEmitter();
2082
+ /** START FOOTER */
2083
+ /**
2084
+ * Wether to enable page size select
2085
+ */
2086
+ this.enablePageSize = true;
2087
+ /**
2088
+ * Wether to enable pagination
2089
+ */
2090
+ this.enablePagination = true;
2091
+ /**
2092
+ * Wether to enable export
2093
+ */
2094
+ this.enableExport = true;
2095
+ /**
2096
+ * The current page
2097
+ */
2098
+ this.page = 1;
2099
+ /**
2100
+ * Event whenever the page changes
2101
+ */
2102
+ this.pageChange = new EventEmitter();
2103
+ /**
2104
+ * The amount of items per page
2105
+ */
2106
+ this.pageSize = defaultSize;
2107
+ /**
2108
+ * The options for the page size
2109
+ */
2110
+ this.pageSizeOptions = defaultSizeOptions;
2111
+ /**
2112
+ * Event whenever the page changes
2113
+ */
2114
+ this.pageSizeChange = new EventEmitter();
2115
+ /**
2116
+ * Event whenever the page changes
2117
+ */
2118
+ this.export = new EventEmitter();
2119
+ /**
2120
+ * Wether to hide when there is only 1 page available
2121
+ */
2122
+ this.hideOnSinglePage = true;
2123
+ this.columns = [];
2124
+ this.parsedItems = [];
2125
+ this.loadingRows = Array.from({
2126
+ length: this.amountOfLoadingRows,
2127
+ });
2128
+ this._ctrlDown = false;
2129
+ }
2130
+ set columnDefinitions(v) {
2131
+ this._columnDefinitions = v;
2132
+ this._generateColumns();
2133
+ }
2134
+ get columnDefinitions() {
2135
+ return this._columnDefinitions;
2136
+ }
2137
+ ngOnInit() {
2138
+ this._parseItems(this.items);
2139
+ // this._generateColumns();
2140
+ }
2141
+ ngOnChanges(changes) {
2142
+ if (changes['items']) {
2143
+ this._parseItems(changes['items'].currentValue);
2144
+ }
2145
+ }
2146
+ // @HostListener('body:tableDefinitionChanged', { target: 'body' })
2147
+ // onTableDefinitionUpdated() {
2148
+ // this._generateColumns();
2149
+ // }
2150
+ keyDown({ key }) {
2151
+ if (key !== 'Control' || this._ctrlDown === true) {
2152
+ return;
2153
+ }
2154
+ this._ctrlDown = true;
2155
+ }
2156
+ keyUp({ key }) {
2157
+ if (key !== 'Control' || this._ctrlDown === false) {
2158
+ return;
2159
+ }
2160
+ this._ctrlDown = false;
2161
+ }
2162
+ visibilityChange() {
2163
+ if (document.visibilityState !== 'hidden' || this._ctrlDown === false) {
2164
+ return;
2165
+ }
2166
+ this._ctrlDown = false;
2167
+ }
2168
+ onQueryChange({ detail }) {
2169
+ this.queryChange.emit(detail);
2170
+ }
2171
+ onQuickFilter({ detail }) {
2172
+ this.quickFilter.emit(detail);
2173
+ }
2174
+ onPageSizeChange({ detail }) {
2175
+ this.pageSizeChange.emit(detail);
2176
+ }
2177
+ onPageChange({ detail }) {
2178
+ this.pageChange.emit(detail);
2179
+ }
2180
+ _parseItems(items) {
2181
+ if (!items) {
2182
+ this.parsedItems = [];
2183
+ return;
2184
+ }
2185
+ if (Array.isArray(items)) {
2186
+ this.parsedItems = items;
2187
+ return;
2188
+ }
2189
+ this.parsedItems = JSON.parse(items);
2190
+ }
2191
+ _generateColumns() {
2192
+ // const definitions =
2193
+ // this._el.nativeElement.querySelectorAll('p-table-definition');
2194
+ this.columns = Array.from(this._columnDefinitions);
2195
+ }
2196
+ // private _getHeader() {
2197
+ // return (
2198
+ // <p-table-row variant="header">
2199
+ // {this._columns.map((col: TableDefinition, index) => (
2200
+ // <p-table-column
2201
+ // definition={col}
2202
+ // value={col.name}
2203
+ // variant="header"
2204
+ // checkbox={this._getCheckbox(index, null, 'header')}
2205
+ // index={index}
2206
+ // ></p-table-column>
2207
+ // ))}
2208
+ // </p-table-row>
2209
+ // );
2210
+ // }
2211
+ // private _getRows() {
2212
+ // if (this.loading) {
2213
+ // return Array.from(
2214
+ // {
2215
+ // length: this.amountOfLoadingRows,
2216
+ // },
2217
+ // (_, i) => (
2218
+ // <p-table-row
2219
+ // enableHover={
2220
+ // this.enableRowSelection || this.enableRowClick
2221
+ // }
2222
+ // >
2223
+ // {this._getLoadingColumns(i)}
2224
+ // </p-table-row>
2225
+ // )
2226
+ // );
2227
+ // }
2228
+ // return this._items.map((item, index) => (
2229
+ // <p-table-row
2230
+ // enableHover={this.enableRowSelection || this.enableRowClick}
2231
+ // onClick={(ev) => this._rowClick(ev, index)}
2232
+ // >
2233
+ // {this._getRowColumns(item, index)}
2234
+ // </p-table-row>
2235
+ // ));
2236
+ // }
2237
+ // private _getRowColumns(item, index) {
2238
+ // return this._columns.map((col: TableDefinition, colIndex) => {
2239
+ // return (
2240
+ // <p-table-column
2241
+ // definition={col}
2242
+ // item={item}
2243
+ // checkbox={this._getCheckbox(colIndex, index)}
2244
+ // index={colIndex}
2245
+ // rowIndex={index}
2246
+ // ></p-table-column>
2247
+ // );
2248
+ // });
2249
+ // }
2250
+ // private _getLoadingColumns(index) {
2251
+ // return this._columns.map((col: TableDefinition, colIndex) => {
2252
+ // return (
2253
+ // <p-table-column
2254
+ // definition={col}
2255
+ // variant="loading"
2256
+ // checkbox={this._getCheckbox(colIndex, index, 'loading')}
2257
+ // index={colIndex}
2258
+ // rowIndex={index}
2259
+ // ></p-table-column>
2260
+ // );
2261
+ // });
2262
+ // }
2263
+ // private _getCheckbox(
2264
+ // index,
2265
+ // rowIndex,
2266
+ // variant: 'header' | 'default' | 'loading' = 'default'
2267
+ // ) {
2268
+ // if (!this.enableRowSelection || !this.selectionKey || index !== 0) {
2269
+ // return;
2270
+ // }
2271
+ // if (variant === 'loading') {
2272
+ // return <p-loader variant="ghost" class="rounded w-6 h-6" />;
2273
+ // }
2274
+ // if (variant === 'header') {
2275
+ // return (
2276
+ // <input
2277
+ // class="p-input"
2278
+ // type="checkbox"
2279
+ // onChange={(ev) => this._selectAllChange(ev)}
2280
+ // checked={this._selectionContainsAll()}
2281
+ // indeterminate={this._selectionIndeterminate()}
2282
+ // />
2283
+ // );
2284
+ // }
2285
+ // const item = this._items[rowIndex];
2286
+ // return (
2287
+ // <input
2288
+ // class="p-input"
2289
+ // type="checkbox"
2290
+ // onChange={(ev) => this._checkboxChange(ev?.target, rowIndex)}
2291
+ // disabled={this.canSelectKey && !item[this.canSelectKey]}
2292
+ // checked={this._selectionContains(item, rowIndex)}
2293
+ // />
2294
+ // );
2295
+ // }
2296
+ _checkboxDisabled(item) {
2297
+ return this.canSelectKey && !item[this.canSelectKey];
2298
+ }
2299
+ _selectAllChange($event) {
2300
+ if (!this.enableRowSelection) {
2301
+ return;
2302
+ }
2303
+ const value = this._getCheckedValue($event.target);
2304
+ if (value) {
2305
+ const toAdd = [];
2306
+ for (let i = 0; i < this.parsedItems.length; i++) {
2307
+ const row = this.parsedItems[i];
2308
+ if (this.canSelectKey && !row[this.canSelectKey]) {
2309
+ continue;
2310
+ }
2311
+ if (this._selectionContains(row, i)) {
2312
+ continue;
2313
+ }
2314
+ toAdd.push(row);
2315
+ this.rowSelected.emit(row);
2316
+ }
2317
+ this.selectedRows = [...this.selectedRows, ...toAdd];
2318
+ this.selectedRowsChange.emit(this.selectedRows);
2319
+ return;
2320
+ }
2321
+ for (let i = 0; i < this.selectedRows.length; i++) {
2322
+ const value = this.selectedRows[i];
2323
+ const row = this.parsedItems.find((d) => this._getSelectionValue(d, i) ===
2324
+ this._getSelectionValue(value, i));
2325
+ if (!row) {
2326
+ continue;
2327
+ }
2328
+ this.rowDeselected.emit(row);
2329
+ }
2330
+ this.selectedRows = [];
2331
+ this.selectedRowsChange.emit(this.selectedRows);
2332
+ }
2333
+ _checkboxChange(target, index) {
2334
+ if (!this.enableRowSelection) {
2335
+ return;
2336
+ }
2337
+ const row = this.parsedItems[index];
2338
+ if (this.canSelectKey && !row[this.canSelectKey]) {
2339
+ target.checked = false;
2340
+ return;
2341
+ }
2342
+ const value = this._getCheckedValue(target);
2343
+ if (value) {
2344
+ this.selectedRows = [...this.selectedRows, row];
2345
+ this.selectedRowsChange.emit(this.selectedRows);
2346
+ this.rowSelected.emit(row);
2347
+ return;
2348
+ }
2349
+ const indexOfToRemove = this._selectionContains(row, index, true);
2350
+ // we need to do this, because splice does not trigger the selection setter.
2351
+ const selection = [...this.selectedRows];
2352
+ selection.splice(indexOfToRemove, 1);
2353
+ this.selectedRows = selection;
2354
+ this.selectedRowsChange.emit(this.selectedRows);
2355
+ this.rowDeselected.emit(row);
2356
+ }
2357
+ _getCheckedValue(target) {
2358
+ return target?.checked;
2359
+ }
2360
+ _getSelectionValue(row, index) {
2361
+ return this.selectionKey ? row?.[this.selectionKey] || index : index;
2362
+ }
2363
+ _selectionContains(row, index, returnIndex = false) {
2364
+ const returnValue = this.selectedRows.findIndex((item) => this._getSelectionValue(row, index) ===
2365
+ this._getSelectionValue(item, index));
2366
+ return !returnIndex ? returnValue >= 0 : returnValue;
2367
+ }
2368
+ _selectionContainsAll() {
2369
+ let returnValue = true;
2370
+ if (!this.parsedItems?.length) {
2371
+ return false;
2372
+ }
2373
+ for (let i = 0; i < this.parsedItems?.length; i++) {
2374
+ const item = this.parsedItems[i];
2375
+ const contains = this._selectionContains(item, i);
2376
+ if (!contains) {
2377
+ returnValue = false;
2378
+ break;
2379
+ }
2380
+ }
2381
+ return returnValue;
2382
+ }
2383
+ _selectionIndeterminate() {
2384
+ if (!this.parsedItems?.length || !this.selectedRows?.length) {
2385
+ return false;
2386
+ }
2387
+ let containsCount = 0;
2388
+ for (let i = 0; i < this.parsedItems?.length; i++) {
2389
+ const item = this.parsedItems[i];
2390
+ const contains = this._selectionContains(item, i);
2391
+ if (contains) {
2392
+ containsCount++;
2393
+ }
2394
+ }
2395
+ return containsCount > 0 && containsCount !== this.parsedItems.length;
2396
+ }
2397
+ _rowClick($event, index) {
2398
+ const target = $event.target;
2399
+ if (target.tagName.toLowerCase() === 'input' ||
2400
+ target.type === 'checkbox') {
2401
+ return;
2402
+ }
2403
+ const row = this._findRow($event.target);
2404
+ if (this.enableRowClick) {
2405
+ const action = this._findRowAction($event.target);
2406
+ if (action) {
2407
+ return;
2408
+ }
2409
+ const item = this.parsedItems[index];
2410
+ this.rowClick.emit({
2411
+ item,
2412
+ ctrlDown: this._ctrlDown,
2413
+ });
2414
+ return;
2415
+ }
2416
+ if (!this.enableRowSelection) {
2417
+ return;
2418
+ }
2419
+ const checkbox = row?.querySelector('input[type="checkbox"]');
2420
+ if (!checkbox) {
2421
+ return;
2422
+ }
2423
+ checkbox.checked = !checkbox.checked;
2424
+ this._checkboxChange(checkbox, index);
2425
+ }
2426
+ _findRow(el) {
2427
+ if (!el) {
2428
+ return el;
2429
+ }
2430
+ if (el?.tagName?.toLowerCase() === 'p-table-row') {
2431
+ return el;
2432
+ }
2433
+ return this._findRow(el?.parentElement);
2434
+ }
2435
+ _findRowAction(el) {
2436
+ if (!el) {
2437
+ return null;
2438
+ }
2439
+ if (el.getAttribute('data-is-action') !== null &&
2440
+ el.getAttribute('data-is-action') !== 'false') {
2441
+ return el;
2442
+ }
2443
+ if (el?.tagName?.toLowerCase() === 'p-table-row') {
2444
+ return null;
2445
+ }
2446
+ return this._findRowAction(el?.parentElement);
2447
+ }
2448
+ };
2449
+ Table.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
2450
+ Table.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", 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]=\"index === 0 ? checkboxTemplate : undefined\"\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]=\"index === 0 ? checkboxTemplate : undefined\"\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]=\"index === 0 ? checkboxTemplate : undefined\"\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 });
2451
+ Table = __decorate([
2452
+ UntilDestroy({ checkProperties: true })
2453
+ ], Table);
2454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, decorators: [{
2455
+ type: Component,
2456
+ 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]=\"index === 0 ? checkboxTemplate : undefined\"\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]=\"index === 0 ? checkboxTemplate : undefined\"\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]=\"index === 0 ? checkboxTemplate : undefined\"\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"] }]
2457
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
2458
+ type: Input
2459
+ }], loading: [{
2460
+ type: Input
2461
+ }], amountOfLoadingRows: [{
2462
+ type: Input
2463
+ }], enableRowSelection: [{
2464
+ type: Input
2465
+ }], enableRowClick: [{
2466
+ type: Input
2467
+ }], selectedRows: [{
2468
+ type: Input
2469
+ }], selectedRowsChange: [{
2470
+ type: Output
2471
+ }], selectionKey: [{
2472
+ type: Input
2473
+ }], canSelectKey: [{
2474
+ type: Input
2475
+ }], rowClick: [{
2476
+ type: Output
2477
+ }], rowSelected: [{
2478
+ type: Output
2479
+ }], rowDeselected: [{
2480
+ type: Output
2481
+ }], quickFilters: [{
2482
+ type: Input
2483
+ }], activeQuickFilterIdentifier: [{
2484
+ type: Input
2485
+ }], enableSearch: [{
2486
+ type: Input
2487
+ }], query: [{
2488
+ type: Input
2489
+ }], enableFilter: [{
2490
+ type: Input
2491
+ }], selectedFiltersAmount: [{
2492
+ type: Input
2493
+ }], filterButtonTemplate: [{
2494
+ type: Input
2495
+ }], enableEdit: [{
2496
+ type: Input
2497
+ }], editButtonTemplate: [{
2498
+ type: Input
2499
+ }], quickFilter: [{
2500
+ type: Output
2501
+ }], queryChange: [{
2502
+ type: Output
2503
+ }], filter: [{
2504
+ type: Output
2505
+ }], edit: [{
2506
+ type: Output
2507
+ }], enablePageSize: [{
2508
+ type: Input
2509
+ }], enablePagination: [{
2510
+ type: Input
2511
+ }], enableExport: [{
2512
+ type: Input
2513
+ }], page: [{
2514
+ type: Input
2515
+ }], total: [{
2516
+ type: Input
2517
+ }], pageChange: [{
2518
+ type: Output
2519
+ }], pageSize: [{
2520
+ type: Input
2521
+ }], pageSizeOptions: [{
2522
+ type: Input
2523
+ }], pageSizeChange: [{
2524
+ type: Output
2525
+ }], export: [{
2526
+ type: Output
2527
+ }], hideOnSinglePage: [{
2528
+ type: Input
2529
+ }], columnDefinitions: [{
2530
+ type: ContentChildren,
2531
+ args: [TableColumn]
2532
+ }], keyDown: [{
2533
+ type: HostListener,
2534
+ args: ['document:keydown', ['$event']]
2535
+ }], keyUp: [{
2536
+ type: HostListener,
2537
+ args: ['document:keyup', ['$event']]
2538
+ }], visibilityChange: [{
2539
+ type: HostListener,
2540
+ args: ['document:visibilitychange', ['$event']]
2541
+ }] } });
2542
+
2543
+ const TABLE_COMPONENTS = [Table, TableCell, TableColumn];
2544
+
2545
+ /* eslint-disable @angular-eslint/no-host-metadata-property */
2546
+ class TableNgxDirective extends BaseValueAccessor {
2547
+ constructor(el, _base) {
2548
+ super(el);
2549
+ this._base = _base;
2550
+ this.lastValue = {
2551
+ query: '',
2552
+ quickFilter: undefined,
2553
+ page: 1,
2554
+ pageSize: 12,
2555
+ selectedRows: [],
2556
+ };
2557
+ }
2558
+ writeValue(value) {
2559
+ this._base.query = this.lastValue.query = value?.query;
2560
+ // this.el.nativeElement.query = this.lastValue.query = value?.query;
2561
+ this.lastValue.quickFilter = value?.quickFilter;
2562
+ this._base.page = this.lastValue.page =
2563
+ value?.page == null ? 1 : value?.page;
2564
+ this._base.pageSize = this.lastValue.pageSize =
2565
+ value?.pageSize == null ? 12 : value?.pageSize;
2566
+ // this.el.nativeElement.page = this.lastValue.page =
2567
+ // value?.page == null ? 1 : value?.page;
2568
+ // this.el.nativeElement.pageSize = this.lastValue.pageSize =
2569
+ // value?.pageSize == null ? 12 : value?.pageSize;
2570
+ this.lastValue.selectedRows =
2571
+ value?.selectedRows == null ? [] : value?.selectedRows;
2572
+ if (value?.quickFilter) {
2573
+ this._setActiveQuickFilter(value.quickFilter);
2574
+ }
2575
+ }
2576
+ registerOnChange(fn) {
2577
+ this.onChange = fn;
2578
+ }
2579
+ registerOnTouched(fn) {
2580
+ this.onTouched = fn;
2581
+ }
2582
+ handleChange(value, type) {
2583
+ this.handleChangeEvent({
2584
+ ...this.lastValue,
2585
+ [type]: value,
2586
+ });
2587
+ if (type === 'quickFilter' && typeof value === 'object') {
2588
+ this._setActiveQuickFilter(value);
2589
+ }
2590
+ }
2591
+ _setActiveQuickFilter(quickFilter) {
2592
+ this._base.activeQuickFilterIdentifier = quickFilter?.identifier;
2593
+ // this.el.nativeElement.activeQuickFilterIdentifier =
2594
+ // quickFilter?.identifier;
2595
+ }
2596
+ }
2597
+ TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: Table, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2598
+ TableNgxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", 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: [
2599
+ {
2600
+ provide: NG_VALUE_ACCESSOR,
2601
+ useExisting: TableNgxDirective,
2602
+ multi: true,
2603
+ },
2604
+ ], usesInheritance: true, ngImport: i0 });
2605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, decorators: [{
2606
+ type: Directive,
2607
+ args: [{
2608
+ selector: 'p-table-ngx',
2609
+ host: {
2610
+ '(queryChange)': 'handleChange($event.detail, "query")',
2611
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2612
+ '(pageChange)': 'handleChange($event.detail, "page")',
2613
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2614
+ '(selectedRowsChange)': 'handleChange($event, "selectedRows")',
2615
+ },
2616
+ providers: [
2617
+ {
2618
+ provide: NG_VALUE_ACCESSOR,
2619
+ useExisting: TableNgxDirective,
2620
+ multi: true,
2621
+ },
2622
+ ],
2623
+ }]
2624
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: Table, decorators: [{
2625
+ type: Host
2626
+ }] }]; } });
2627
+
2628
+ class TableDirective extends BaseValueAccessor {
2629
+ constructor(el) {
2630
+ super(el);
2631
+ this.lastValue = {
2632
+ query: '',
2633
+ quickFilter: undefined,
2634
+ page: 1,
2635
+ pageSize: 12,
2636
+ selectedRows: [],
2637
+ };
2638
+ }
2639
+ writeValue(value) {
2640
+ this.el.nativeElement.query = this.lastValue.query = value?.query;
2641
+ this.lastValue.quickFilter = value?.quickFilter;
2642
+ this.el.nativeElement.page = this.lastValue.page =
2643
+ value?.page == null ? 1 : value?.page;
2644
+ this.el.nativeElement.pageSize = this.lastValue.pageSize =
2645
+ value?.pageSize == null ? 12 : value?.pageSize;
2646
+ this.lastValue.selectedRows =
2647
+ value?.selectedRows == null ? [] : value?.selectedRows;
2648
+ if (value?.quickFilter) {
2649
+ this._setActiveQuickFilter(value.quickFilter);
2650
+ }
2651
+ }
2652
+ registerOnChange(fn) {
2653
+ this.onChange = fn;
2654
+ }
2655
+ registerOnTouched(fn) {
2656
+ this.onTouched = fn;
2657
+ }
2658
+ handleChange(value, type) {
2659
+ this.handleChangeEvent({
2660
+ ...this.lastValue,
2661
+ [type]: value,
2662
+ });
2663
+ if (type === 'quickFilter' && typeof value === 'object') {
2664
+ this._setActiveQuickFilter(value);
2665
+ }
2666
+ }
2667
+ _setActiveQuickFilter(quickFilter) {
2668
+ this.el.nativeElement.activeQuickFilterIdentifier =
2669
+ quickFilter?.identifier;
2670
+ }
2671
+ }
2672
+ TableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2673
+ TableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", 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: [
2674
+ {
2675
+ provide: NG_VALUE_ACCESSOR,
2676
+ useExisting: TableDirective,
2677
+ multi: true,
2678
+ },
2679
+ ], usesInheritance: true, ngImport: i0 });
2680
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDirective, decorators: [{
2681
+ type: Directive,
2682
+ args: [{
2683
+ /* tslint:disable-next-line:directive-selector */
2684
+ selector: 'p-table',
2685
+ host: {
2686
+ '(queryChange)': 'handleChange($event.detail, "query")',
2687
+ '(quickFilter)': 'handleChange($event.detail, "quickFilter")',
2688
+ '(pageChange)': 'handleChange($event.detail, "page")',
2689
+ '(pageSizeChange)': 'handleChange($event.detail, "pageSize")',
2690
+ '(selectedRowsChange)': 'handleChange($event.detail, "selectedRows")',
2691
+ },
2692
+ providers: [
2693
+ {
2694
+ provide: NG_VALUE_ACCESSOR,
2695
+ useExisting: TableDirective,
2696
+ multi: true,
2697
+ },
2698
+ ],
2699
+ }]
2700
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2701
+
2702
+ const TABLE_DIRECTIVES = [
2703
+ TableFooterDirective,
2704
+ TableHeaderDirective,
2705
+ TableDirective,
2706
+ TableNgxDirective,
2707
+ ];
2708
+
2709
+ const DIRECTIVES = [
2710
+ PAccordion,
448
2711
  PAvatar,
2712
+ PAvatarGroup,
449
2713
  PButton,
2714
+ PCardBody,
2715
+ PCardContainer,
2716
+ PCardHeader,
2717
+ PContentSlider,
450
2718
  PCounter,
451
2719
  PDivider,
2720
+ PDropdown,
2721
+ PDropdownMenuContainer,
2722
+ PDropdownMenuItem,
452
2723
  PHelper,
453
2724
  PIcon,
454
2725
  PIllustration,
455
2726
  PInfoPanel,
2727
+ PInputGroup,
2728
+ PLabel,
2729
+ PLayout,
456
2730
  PLoader,
2731
+ PModal,
2732
+ PModalBackdrop,
2733
+ PModalBody,
2734
+ PModalContainer,
2735
+ PModalFooter,
2736
+ PModalHeader,
2737
+ PNavbar,
457
2738
  PNavigationItem,
2739
+ PPageSizeSelect,
458
2740
  PPagination,
459
2741
  PPaginationItem,
2742
+ PProfile,
2743
+ PSegmentContainer,
2744
+ PSegmentItem,
2745
+ PSelect,
2746
+ PSliderIndicator,
2747
+ PStatus,
2748
+ PStepper,
2749
+ PStepperItem,
2750
+ PStepperLine,
2751
+ PTabGroup,
2752
+ PTabItem,
2753
+ PTableContainer,
2754
+ PTableFooter,
2755
+ PTableHeader,
2756
+ PTableRow,
2757
+ PToast,
460
2758
  PTooltip
461
2759
  ];
462
2760
 
2761
+ class StencilModule {
2762
+ }
2763
+ StencilModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2764
+ StencilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", 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] });
2765
+ StencilModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule });
2766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StencilModule, decorators: [{
2767
+ type: NgModule,
2768
+ args: [{
2769
+ declarations: [...DIRECTIVES],
2770
+ exports: [...DIRECTIVES],
2771
+ }]
2772
+ }] });
2773
+
2774
+ class TableModule {
2775
+ }
2776
+ TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2777
+ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: TableModule, declarations: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective], imports: [CommonModule, StencilModule], exports: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective] });
2778
+ TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, imports: [CommonModule, StencilModule] });
2779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableModule, decorators: [{
2780
+ type: NgModule,
2781
+ args: [{
2782
+ imports: [CommonModule, StencilModule],
2783
+ declarations: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2784
+ exports: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2785
+ }]
2786
+ }] });
2787
+
2788
+ const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
2789
+ transition(':enter', [
2790
+ style({ transform: 'translateY(50%)', opacity: 0 }),
2791
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
2792
+ ]),
2793
+ transition(':leave', [
2794
+ animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
2795
+ ]),
2796
+ ]);
2797
+ const SLIDE_IN_TOP_OUT_BOTTOM = trigger('pSlideInBottomOutTop', [
2798
+ transition(':enter', [
2799
+ style({ transform: 'translateY(-100%)', opacity: 0 }),
2800
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
2801
+ ]),
2802
+ transition(':leave', [
2803
+ animate('200ms ease-in', style({ transform: 'translateY(50%)', opacity: 0 })),
2804
+ ]),
2805
+ ]);
2806
+
2807
+ var ToastVariants;
2808
+ (function (ToastVariants) {
2809
+ ToastVariants["Success"] = "positive";
2810
+ ToastVariants["Warning"] = "unbiased";
2811
+ ToastVariants["Error"] = "negative";
2812
+ ToastVariants["Positive"] = "positive";
2813
+ ToastVariants["Unbiased"] = "unbiased";
2814
+ ToastVariants["Negative"] = "negative";
2815
+ })(ToastVariants || (ToastVariants = {}));
2816
+
2817
+ class ToastService {
2818
+ constructor() {
2819
+ this._toasts = [];
2820
+ this.toasts$ = new BehaviorSubject(this._toasts);
2821
+ this.defaultOptions = {
2822
+ delay: 5000,
2823
+ dismissOnAction: true,
2824
+ enableAction: true,
2825
+ icon: {
2826
+ variant: 'negative',
2827
+ },
2828
+ };
2829
+ }
2830
+ show(header, content, variant = ToastVariants.Success, options = {}) {
2831
+ options = {
2832
+ ...this.defaultOptions,
2833
+ ...options,
2834
+ icon: options?.icon
2835
+ ? { ...this.defaultOptions.icon, ...options.icon }
2836
+ : this.defaultOptions.icon,
2837
+ };
2838
+ this._toasts.push({
2839
+ header,
2840
+ content,
2841
+ variant,
2842
+ options,
2843
+ });
2844
+ this.toasts$.next(this._toasts);
2845
+ }
2846
+ hide(index) {
2847
+ this._toasts.splice(index, 1);
2848
+ this.toasts$.next(this._toasts);
2849
+ }
2850
+ }
2851
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2852
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, providedIn: 'root' });
2853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, decorators: [{
2854
+ type: Injectable,
2855
+ args: [{
2856
+ providedIn: 'root',
2857
+ }]
2858
+ }] });
2859
+
2860
+ class ToastDirective {
2861
+ constructor() {
2862
+ this.delay = 5000;
2863
+ this.index = 0;
2864
+ this.dismissOnAction = true;
2865
+ this.dismiss = new EventEmitter();
2866
+ }
2867
+ ngOnInit() {
2868
+ if (this.delay === 'infinite' || this.delay === 0) {
2869
+ return;
2870
+ }
2871
+ setTimeout(() => this.doDismiss(), this.delay);
2872
+ }
2873
+ onAction() {
2874
+ if (this.dismissOnAction) {
2875
+ this.doDismiss();
2876
+ }
2877
+ }
2878
+ doDismiss() {
2879
+ this.dismiss.next(this.index);
2880
+ }
2881
+ }
2882
+ ToastDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2883
+ ToastDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: ToastDirective, selector: "p-toast", inputs: { delay: "delay", index: "index", dismissOnAction: "dismissOnAction" }, outputs: { dismiss: "dismiss" }, host: { listeners: { "action": "onAction()" } }, ngImport: i0 });
2884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastDirective, decorators: [{
2885
+ type: Directive,
2886
+ args: [{
2887
+ selector: 'p-toast',
2888
+ host: {
2889
+ '(action)': 'onAction()',
2890
+ },
2891
+ }]
2892
+ }], propDecorators: { delay: [{
2893
+ type: Input
2894
+ }], index: [{
2895
+ type: Input
2896
+ }], dismissOnAction: [{
2897
+ type: Input
2898
+ }], dismiss: [{
2899
+ type: Output
2900
+ }] } });
2901
+
2902
+ /* top-0 bottom-0 left-0 right-0 */
2903
+ let ToastContainer = class ToastContainer {
2904
+ constructor(r, z, _toastService) {
2905
+ this.z = z;
2906
+ this._toastService = _toastService;
2907
+ this.toasts$ = this._toastService.toasts$.pipe(map$1((arr) => arr.reverse()));
2908
+ this.el = r.nativeElement;
2909
+ }
2910
+ dismiss(index) {
2911
+ this._toastService.hide(index);
2912
+ }
2913
+ };
2914
+ ToastContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Component });
2915
+ ToastContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", 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 });
2916
+ ToastContainer = __decorate([
2917
+ ProxyCmp({
2918
+ defineCustomElementFn: undefined,
2919
+ inputs: ['placement'],
2920
+ })
2921
+ ], ToastContainer);
2922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, decorators: [{
2923
+ type: Component,
2924
+ 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" }]
2925
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToastService }]; } });
2926
+
2927
+ const TOAST_COMPONENTS = [ToastContainer];
2928
+
2929
+ const TOAST_DIRECTIVES = [ToastDirective];
2930
+
2931
+ const TOAST_SERVICES = [ToastService];
2932
+
2933
+ class ToastModule {
2934
+ }
2935
+ ToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2936
+ ToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, declarations: [ToastContainer, ToastDirective], imports: [CommonModule, StencilModule], exports: [ToastContainer, ToastDirective] });
2937
+ ToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, imports: [CommonModule, StencilModule] });
2938
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastModule, decorators: [{
2939
+ type: NgModule,
2940
+ args: [{
2941
+ imports: [CommonModule, StencilModule],
2942
+ declarations: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
2943
+ exports: [...TOAST_COMPONENTS, ...TOAST_DIRECTIVES],
2944
+ }]
2945
+ }] });
2946
+
2947
+ const MODULES = [TableModule, ToastModule];
2948
+
2949
+ class CustomCurrencyPipe {
2950
+ constructor(_currencyPipe) {
2951
+ this._currencyPipe = _currencyPipe;
2952
+ }
2953
+ transform(value, currencyCode = 'EUR', display = 'symbol', digitsInfo = '1.2-2', locale = 'nl') {
2954
+ return this._currencyPipe.transform(value, currencyCode, display, digitsInfo, locale);
2955
+ }
2956
+ }
2957
+ CustomCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
2958
+ CustomCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, name: "pcurrency" });
2959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomCurrencyPipe, decorators: [{
2960
+ type: Pipe,
2961
+ args: [{
2962
+ name: 'pcurrency',
2963
+ }]
2964
+ }], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
2965
+
2966
+ class CustomDatePipe {
2967
+ constructor(_datePipe) {
2968
+ this._datePipe = _datePipe;
2969
+ }
2970
+ transform(value, format) {
2971
+ return this._datePipe.transform(value, format);
2972
+ }
2973
+ }
2974
+ CustomDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, deps: [{ token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
2975
+ CustomDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, name: "pdate" });
2976
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CustomDatePipe, decorators: [{
2977
+ type: Pipe,
2978
+ args: [{
2979
+ name: 'pdate',
2980
+ }]
2981
+ }], ctorParameters: function () { return [{ type: i1.DatePipe }]; } });
2982
+
2983
+ class SafePipe {
2984
+ constructor(sanitizer) {
2985
+ this.sanitizer = sanitizer;
2986
+ }
2987
+ transform(value, type) {
2988
+ switch (type) {
2989
+ case 'html':
2990
+ return this.sanitizer.bypassSecurityTrustHtml(value);
2991
+ case 'style':
2992
+ return this.sanitizer.bypassSecurityTrustStyle(value);
2993
+ case 'script':
2994
+ return this.sanitizer.bypassSecurityTrustScript(value);
2995
+ case 'url':
2996
+ return this.sanitizer.bypassSecurityTrustUrl(value);
2997
+ case 'resourceUrl':
2998
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
2999
+ default:
3000
+ throw new Error(`Invalid safe type specified: ${type}`);
3001
+ }
3002
+ }
3003
+ }
3004
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
3005
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, name: "psafe" });
3006
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SafePipe, decorators: [{
3007
+ type: Pipe,
3008
+ args: [{
3009
+ name: 'psafe',
3010
+ }]
3011
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
3012
+
3013
+ const PIPES = [CustomCurrencyPipe, CustomDatePipe, SafePipe];
3014
+
3015
+ const NGX_PIPES = [DatePipe, CurrencyPipe];
463
3016
  class PaperlessModule {
3017
+ static forRoot() {
3018
+ return {
3019
+ ngModule: PaperlessModule,
3020
+ providers: [...TOAST_SERVICES],
3021
+ };
3022
+ }
464
3023
  }
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: [{
3024
+ PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3025
+ PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", 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] });
3026
+ PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule, StencilModule, MODULES, StencilModule, TableModule, ToastModule] });
3027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, decorators: [{
469
3028
  type: NgModule,
470
3029
  args: [{
471
- declarations: [...DIRECTIVES, ...CUSTOM_DIRECTIVES],
472
- exports: [...DIRECTIVES, ...CUSTOM_DIRECTIVES],
3030
+ imports: [CommonModule, StencilModule, ...MODULES],
3031
+ declarations: [...DIRECTIVES$1, ...PIPES],
3032
+ exports: [StencilModule, ...MODULES, ...DIRECTIVES$1, ...PIPES],
3033
+ providers: [...NGX_PIPES, ...PIPES],
473
3034
  }]
474
3035
  }] });
475
3036
 
@@ -481,5 +3042,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
481
3042
  * Generated bundle index. Do not edit.
482
3043
  */
483
3044
 
484
- export { CUSTOM_DIRECTIVES, PAvatar, PButton, PCounter, PDivider, PHelper, PIcon, PIllustration, PInfoPanel, PLoader, PNavigationItem, PPagination, PPaginationItem, PTooltip, PaginationDirective, PaperlessModule };
3045
+ 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
3046
  //# sourceMappingURL=paperless-angular.mjs.map