@paperless/angular 0.1.0-alpha.45 → 0.1.0-alpha.450

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