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