@paperless/angular 0.1.0-alpha.21 → 0.1.0-alpha.212

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