@paperless/angular 1.12.3 → 1.12.4

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