@paperless/angular 0.1.0-alpha.3 → 0.1.0-alpha.300

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