@paperless/angular 0.1.0-alpha.436 → 0.1.0-alpha.438

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