@paperless/angular 0.1.0-alpha.24 → 0.1.0-alpha.241

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