@paperless/angular 2.22.0-alpha.24 → 2.22.0-alpha.26
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.
- package/fesm2022/paperless-angular.mjs +167 -248
- package/fesm2022/paperless-angular.mjs.map +1 -1
- package/lib/base/form.component.d.ts +3 -3
- package/lib/base/upload.component.d.ts +1 -1
- package/lib/directives/p-checkbox.directive.d.ts +0 -2
- package/lib/directives/p-cropper.directive.d.ts +0 -2
- package/lib/directives/p-datepicker.directive.d.ts +1 -3
- package/lib/directives/p-field-number.directive.d.ts +0 -2
- package/lib/directives/p-field.directive.d.ts +1 -3
- package/lib/directives/p-pagination-pages.directive.d.ts +1 -3
- package/lib/directives/p-pagination-size.directive.d.ts +1 -3
- package/lib/directives/p-radio.directive.d.ts +1 -2
- package/lib/directives/p-select.directive.d.ts +1 -3
- package/lib/directives/p-toggle.directive.d.ts +0 -2
- package/lib/modules/table/base/table.component.d.ts +0 -1
- package/lib/modules/table/components/index.d.ts +6 -6
- package/lib/modules/table/components/table/table.component.d.ts +19 -20
- package/lib/modules/table/components/table-cell/table-cell.component.d.ts +3 -3
- package/lib/modules/table/components/table-column/table-column.component.d.ts +4 -4
- package/lib/modules/table/components/table-extra-header/table-extra-header.component.d.ts +4 -4
- package/lib/modules/table/components/table-row-action/table-row-action.component.d.ts +5 -5
- package/lib/modules/table/directives/index.d.ts +1 -1
- package/lib/modules/table/directives/p-table-footer.directive.d.ts +0 -2
- package/lib/modules/table/directives/p-table-header.directive.d.ts +0 -2
- package/lib/modules/table/directives/p-table-ngx.directive.d.ts +2 -2
- package/lib/modules/table/directives/p-table.directive.d.ts +0 -2
- package/lib/modules/table/table.module.d.ts +1 -1
- package/lib/modules/table/utils.d.ts +1 -3
- package/lib/modules/toast/components/index.d.ts +2 -2
- package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +3 -3
- package/lib/modules/toast/directives/toast.directive.d.ts +2 -2
- package/lib/modules/toast/toast.module.d.ts +1 -1
- package/lib/modules/toast/types.d.ts +1 -2
- package/lib/pipes/date.pipe.d.ts +1 -1
- package/lib/pipes/safe.pipe.d.ts +1 -1
- package/lib/stencil/components.d.ts +0 -9
- package/lib/stencil/index.d.ts +1 -1
- package/lib/stencil.module.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@ import { Component, EventEmitter, ViewChild, Output, Input, ChangeDetectionStrat
|
|
|
4
4
|
import * as i1 from '@angular/forms';
|
|
5
5
|
import { FormControl, FormGroup, FormArray, NG_VALUE_ACCESSOR, NumberValueAccessor } from '@angular/forms';
|
|
6
6
|
import { BehaviorSubject, filter, fromEvent, Subject, timer, distinctUntilChanged, debounceTime, take, map as map$1 } from 'rxjs';
|
|
7
|
-
import * as i1$2 from '@angular/common';
|
|
8
|
-
import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
|
|
9
|
-
import { __decorate } from 'tslib';
|
|
10
7
|
import { ObserversModule } from '@angular/cdk/observers';
|
|
11
8
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
12
9
|
import { OverlayConfig, OverlayModule as OverlayModule$1 } from '@angular/cdk/overlay';
|
|
13
10
|
import { PlatformModule } from '@angular/cdk/platform';
|
|
14
11
|
import { CdkPortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
12
|
+
import * as i1$2 from '@angular/common';
|
|
13
|
+
import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
|
|
14
|
+
import { __decorate } from 'tslib';
|
|
15
15
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
16
16
|
import { startWith, tap, pairwise, map, filter as filter$1, debounce } from 'rxjs/operators';
|
|
17
17
|
import { PAGINATION_DEFAULT_PAGE_SIZE, cn, getTableCellColumnClasses, objectGetByPath, state, isMobile, floatingMenuContainerClass, onStateChange, tableColumSizesOptions, SELECT_DEFAULT_MAX_DISPLAYED_ITEMS } from '@paperless/core';
|
|
@@ -63,9 +63,9 @@ const SLIDE_IN_TOP_OUT_BOTTOM = trigger('pSlideInBottomOutTop', [
|
|
|
63
63
|
class BaseFormComponent {
|
|
64
64
|
markedDirty = false;
|
|
65
65
|
scrollToFirstError() {
|
|
66
|
-
const invalidInputs =
|
|
66
|
+
const invalidInputs = [...document.querySelectorAll('.ng-invalid')]
|
|
67
67
|
.filter(e => e?.nodeName?.toLowerCase() !== 'form')
|
|
68
|
-
.
|
|
68
|
+
.toSorted((a, b) => a.scrollTop - b.scrollTop);
|
|
69
69
|
const first = invalidInputs[0];
|
|
70
70
|
if (first) {
|
|
71
71
|
first.scrollIntoView({
|
|
@@ -88,7 +88,7 @@ class BaseFormComponent {
|
|
|
88
88
|
else if (control instanceof FormArray) {
|
|
89
89
|
control.markAsDirty();
|
|
90
90
|
control.markAsTouched();
|
|
91
|
-
for (const child of control
|
|
91
|
+
for (const child of control.controls) {
|
|
92
92
|
this.markControlDirty(child);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -122,10 +122,10 @@ class BaseFormComponent {
|
|
|
122
122
|
}
|
|
123
123
|
firstControlError(control, showChildErrors = true) {
|
|
124
124
|
if (control instanceof FormGroup && showChildErrors) {
|
|
125
|
-
const
|
|
125
|
+
const error = Object.keys(control.controls)
|
|
126
126
|
.map(key => this.firstControlError(control.controls[key]))
|
|
127
|
-
.
|
|
128
|
-
return
|
|
127
|
+
.find(val => !!val);
|
|
128
|
+
return error;
|
|
129
129
|
}
|
|
130
130
|
if (!control?.errors) {
|
|
131
131
|
return;
|
|
@@ -148,7 +148,7 @@ class BaseFormComponent {
|
|
|
148
148
|
this.resetForm(control);
|
|
149
149
|
}
|
|
150
150
|
else if (control instanceof FormArray) {
|
|
151
|
-
for (const child of control
|
|
151
|
+
for (const child of control.controls) {
|
|
152
152
|
this.resetControl(child);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -167,7 +167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
167
167
|
type: Component,
|
|
168
168
|
args: [{
|
|
169
169
|
template: ``,
|
|
170
|
-
standalone: false
|
|
170
|
+
standalone: false,
|
|
171
171
|
}]
|
|
172
172
|
}] });
|
|
173
173
|
|
|
@@ -177,6 +177,7 @@ class BaseUploadComponent {
|
|
|
177
177
|
set loading(value) {
|
|
178
178
|
this.loading$.next(value);
|
|
179
179
|
}
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
180
181
|
fileChange = new EventEmitter();
|
|
181
182
|
uploaderInput;
|
|
182
183
|
file;
|
|
@@ -187,7 +188,7 @@ class BaseUploadComponent {
|
|
|
187
188
|
if (file) {
|
|
188
189
|
this.loading$.next(true);
|
|
189
190
|
const reader = new FileReader();
|
|
190
|
-
reader.
|
|
191
|
+
reader.addEventListener('load', _ => this.onLoad(file, reader.result));
|
|
191
192
|
reader.readAsDataURL(file);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
@@ -211,7 +212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
211
212
|
args: [{
|
|
212
213
|
template: ``,
|
|
213
214
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
214
|
-
standalone: false
|
|
215
|
+
standalone: false,
|
|
215
216
|
}]
|
|
216
217
|
}], propDecorators: { fileId: [{
|
|
217
218
|
type: Input
|
|
@@ -226,6 +227,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
226
227
|
args: ['uploaderInput']
|
|
227
228
|
}] } });
|
|
228
229
|
|
|
230
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
229
231
|
class BaseValueAccessor {
|
|
230
232
|
el;
|
|
231
233
|
onChange = () => {
|
|
@@ -262,7 +264,7 @@ class BaseValueAccessor {
|
|
|
262
264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseValueAccessor, decorators: [{
|
|
263
265
|
type: Directive,
|
|
264
266
|
args: [{
|
|
265
|
-
standalone: false
|
|
267
|
+
standalone: false,
|
|
266
268
|
}]
|
|
267
269
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { _handleBlurEvent: [{
|
|
268
270
|
type: HostListener,
|
|
@@ -270,15 +272,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
270
272
|
}] } });
|
|
271
273
|
|
|
272
274
|
class CheckboxDirective extends BaseValueAccessor {
|
|
273
|
-
constructor(el) {
|
|
274
|
-
super(el);
|
|
275
|
-
}
|
|
276
275
|
writeValue(value) {
|
|
277
276
|
this.el.nativeElement.checked = this.lastValue =
|
|
278
277
|
value === null || value === 'indeterminate' ? false : value;
|
|
279
278
|
this.el.nativeElement.indeterminate = value === 'indeterminate';
|
|
280
279
|
}
|
|
281
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CheckboxDirective, deps:
|
|
280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CheckboxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
282
281
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: CheckboxDirective, isStandalone: false, selector: "p-checkbox", host: { listeners: { "checkedChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
283
282
|
{
|
|
284
283
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -301,18 +300,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
301
300
|
multi: true,
|
|
302
301
|
},
|
|
303
302
|
],
|
|
304
|
-
standalone: false
|
|
303
|
+
standalone: false,
|
|
305
304
|
}]
|
|
306
|
-
}]
|
|
305
|
+
}] });
|
|
307
306
|
|
|
308
307
|
class CropperDirective extends BaseValueAccessor {
|
|
309
|
-
|
|
310
|
-
super(el);
|
|
311
|
-
}
|
|
308
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312
309
|
writeValue(value) {
|
|
313
310
|
this.el.nativeElement.value = this.lastValue = value;
|
|
314
311
|
}
|
|
315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CropperDirective, deps:
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CropperDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
316
313
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: CropperDirective, isStandalone: false, selector: "p-cropper", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
317
314
|
{
|
|
318
315
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -335,19 +332,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
335
332
|
multi: true,
|
|
336
333
|
},
|
|
337
334
|
],
|
|
338
|
-
standalone: false
|
|
335
|
+
standalone: false,
|
|
339
336
|
}]
|
|
340
|
-
}]
|
|
337
|
+
}] });
|
|
341
338
|
|
|
342
339
|
class DatepickerDirective extends BaseValueAccessor {
|
|
343
|
-
constructor(el) {
|
|
344
|
-
super(el);
|
|
345
|
-
}
|
|
346
340
|
writeValue(value) {
|
|
347
341
|
this.el.nativeElement.value = this.lastValue =
|
|
348
342
|
value === null ? JSON.parse(value) : value;
|
|
349
343
|
}
|
|
350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DatepickerDirective, deps:
|
|
344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DatepickerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
351
345
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: DatepickerDirective, isStandalone: false, selector: "p-datepicker", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
352
346
|
{
|
|
353
347
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -370,19 +364,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
370
364
|
multi: true,
|
|
371
365
|
},
|
|
372
366
|
],
|
|
373
|
-
standalone: false
|
|
367
|
+
standalone: false,
|
|
374
368
|
}]
|
|
375
|
-
}]
|
|
369
|
+
}] });
|
|
376
370
|
|
|
377
371
|
class FieldDirective extends BaseValueAccessor {
|
|
378
|
-
constructor(el) {
|
|
379
|
-
super(el);
|
|
380
|
-
}
|
|
381
372
|
writeValue(value) {
|
|
382
373
|
this.el.nativeElement.value = this.lastValue =
|
|
383
374
|
value === null ? JSON.parse(value) : value;
|
|
384
375
|
}
|
|
385
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FieldDirective, deps:
|
|
376
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FieldDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
386
377
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: FieldDirective, isStandalone: false, selector: "p-field:not([type=number])", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
387
378
|
{
|
|
388
379
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -405,10 +396,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
405
396
|
multi: true,
|
|
406
397
|
},
|
|
407
398
|
],
|
|
408
|
-
standalone: false
|
|
399
|
+
standalone: false,
|
|
409
400
|
}]
|
|
410
|
-
}]
|
|
401
|
+
}] });
|
|
411
402
|
|
|
403
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
412
404
|
class BaseNumberValueAccessor extends NumberValueAccessor {
|
|
413
405
|
el;
|
|
414
406
|
renderer;
|
|
@@ -437,7 +429,7 @@ class BaseNumberValueAccessor extends NumberValueAccessor {
|
|
|
437
429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseNumberValueAccessor, decorators: [{
|
|
438
430
|
type: Directive,
|
|
439
431
|
args: [{
|
|
440
|
-
standalone: false
|
|
432
|
+
standalone: false,
|
|
441
433
|
}]
|
|
442
434
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { _handleBlurEvent: [{
|
|
443
435
|
type: HostListener,
|
|
@@ -445,10 +437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
445
437
|
}] } });
|
|
446
438
|
|
|
447
439
|
class FieldNumberDirective extends BaseNumberValueAccessor {
|
|
448
|
-
|
|
449
|
-
super(el, renderer);
|
|
450
|
-
}
|
|
451
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FieldNumberDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FieldNumberDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
452
441
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: FieldNumberDirective, isStandalone: false, selector: "p-field[type=number]", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
453
442
|
{
|
|
454
443
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -471,21 +460,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
471
460
|
multi: true,
|
|
472
461
|
},
|
|
473
462
|
],
|
|
474
|
-
standalone: false
|
|
463
|
+
standalone: false,
|
|
475
464
|
}]
|
|
476
|
-
}]
|
|
465
|
+
}] });
|
|
477
466
|
|
|
478
467
|
class PaginationPagesDirective extends BaseValueAccessor {
|
|
479
|
-
constructor(el) {
|
|
480
|
-
super(el);
|
|
481
|
-
}
|
|
482
468
|
writeValue(value) {
|
|
483
469
|
this.el.nativeElement.page = this.lastValue = value == null ? 1 : value;
|
|
484
470
|
}
|
|
485
471
|
registerOnChange(fn) {
|
|
486
|
-
super.registerOnChange(value => fn(parseInt(value, 10)));
|
|
472
|
+
super.registerOnChange(value => fn(Number.parseInt(value, 10)));
|
|
487
473
|
}
|
|
488
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationPagesDirective, deps:
|
|
474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationPagesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
489
475
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: PaginationPagesDirective, isStandalone: false, selector: "p-pagination-pages", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
490
476
|
{
|
|
491
477
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -497,7 +483,6 @@ class PaginationPagesDirective extends BaseValueAccessor {
|
|
|
497
483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationPagesDirective, decorators: [{
|
|
498
484
|
type: Directive,
|
|
499
485
|
args: [{
|
|
500
|
-
/* tslint:disable-next-line:directive-selector */
|
|
501
486
|
selector: 'p-pagination-pages',
|
|
502
487
|
host: {
|
|
503
488
|
'(pageChange)': 'handleChangeEvent($event.detail)',
|
|
@@ -509,21 +494,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
509
494
|
multi: true,
|
|
510
495
|
},
|
|
511
496
|
],
|
|
512
|
-
standalone: false
|
|
497
|
+
standalone: false,
|
|
513
498
|
}]
|
|
514
|
-
}]
|
|
499
|
+
}] });
|
|
515
500
|
|
|
516
501
|
class PaginationSizeDirective extends BaseValueAccessor {
|
|
517
|
-
constructor(el) {
|
|
518
|
-
super(el);
|
|
519
|
-
}
|
|
520
502
|
writeValue(value) {
|
|
521
503
|
this.el.nativeElement.page = this.lastValue = value == null ? 12 : value;
|
|
522
504
|
}
|
|
523
505
|
registerOnChange(fn) {
|
|
524
|
-
super.registerOnChange(value => fn(parseInt(value, 10)));
|
|
506
|
+
super.registerOnChange(value => fn(Number.parseInt(value, 10)));
|
|
525
507
|
}
|
|
526
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationSizeDirective, deps:
|
|
508
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationSizeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
527
509
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: PaginationSizeDirective, isStandalone: false, selector: "p-pagination-size", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
528
510
|
{
|
|
529
511
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -535,7 +517,6 @@ class PaginationSizeDirective extends BaseValueAccessor {
|
|
|
535
517
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PaginationSizeDirective, decorators: [{
|
|
536
518
|
type: Directive,
|
|
537
519
|
args: [{
|
|
538
|
-
/* tslint:disable-next-line:directive-selector */
|
|
539
520
|
selector: 'p-pagination-size',
|
|
540
521
|
host: {
|
|
541
522
|
'(sizeChange)': 'handleChangeEvent($event.detail)',
|
|
@@ -547,9 +528,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
547
528
|
multi: true,
|
|
548
529
|
},
|
|
549
530
|
],
|
|
550
|
-
standalone: false
|
|
531
|
+
standalone: false,
|
|
551
532
|
}]
|
|
552
|
-
}]
|
|
533
|
+
}] });
|
|
553
534
|
|
|
554
535
|
class RadioDirective extends BaseValueAccessor {
|
|
555
536
|
_control;
|
|
@@ -568,15 +549,11 @@ class RadioDirective extends BaseValueAccessor {
|
|
|
568
549
|
writeValue(value) {
|
|
569
550
|
const elValue = this._getValue();
|
|
570
551
|
this._modelValue = value;
|
|
571
|
-
this.el.nativeElement.checked =
|
|
572
|
-
this._modelValue === elValue;
|
|
552
|
+
this.el.nativeElement.checked = this._modelValue === elValue;
|
|
573
553
|
}
|
|
574
554
|
handleChangeEvent() {
|
|
575
555
|
const elValue = this._getValue();
|
|
576
|
-
this._modelValue =
|
|
577
|
-
this._modelValue === elValue
|
|
578
|
-
? undefined
|
|
579
|
-
: elValue;
|
|
556
|
+
this._modelValue = this._modelValue === elValue ? undefined : elValue;
|
|
580
557
|
this.onChange(this._modelValue);
|
|
581
558
|
}
|
|
582
559
|
ngOnDestroy() {
|
|
@@ -604,20 +581,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
604
581
|
host: {
|
|
605
582
|
'(checkedChange)': 'handleChangeEvent($event.detail)',
|
|
606
583
|
},
|
|
607
|
-
standalone: false
|
|
584
|
+
standalone: false,
|
|
608
585
|
}]
|
|
609
586
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
610
587
|
type: Self
|
|
611
588
|
}] }, { type: i0.ElementRef }] });
|
|
612
589
|
|
|
613
590
|
class SelectDirective extends BaseValueAccessor {
|
|
614
|
-
constructor(el) {
|
|
615
|
-
super(el);
|
|
616
|
-
}
|
|
617
591
|
writeValue(value) {
|
|
618
592
|
this.el.nativeElement.value = this.lastValue = value;
|
|
619
593
|
}
|
|
620
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SelectDirective, deps:
|
|
594
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
621
595
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: SelectDirective, isStandalone: false, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
622
596
|
{
|
|
623
597
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -640,19 +614,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
640
614
|
multi: true,
|
|
641
615
|
},
|
|
642
616
|
],
|
|
643
|
-
standalone: false
|
|
617
|
+
standalone: false,
|
|
644
618
|
}]
|
|
645
|
-
}]
|
|
619
|
+
}] });
|
|
646
620
|
|
|
647
621
|
class ToggleDirective extends BaseValueAccessor {
|
|
648
|
-
constructor(el) {
|
|
649
|
-
super(el);
|
|
650
|
-
}
|
|
651
622
|
writeValue(value) {
|
|
652
623
|
this.el.nativeElement.checked = this.lastValue =
|
|
653
624
|
value === null ? false : value;
|
|
654
625
|
}
|
|
655
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToggleDirective, deps:
|
|
626
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToggleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
656
627
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: ToggleDirective, isStandalone: false, selector: "p-toggle", host: { listeners: { "checkedChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
657
628
|
{
|
|
658
629
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -675,9 +646,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
675
646
|
multi: true,
|
|
676
647
|
},
|
|
677
648
|
],
|
|
678
|
-
standalone: false
|
|
649
|
+
standalone: false,
|
|
679
650
|
}]
|
|
680
|
-
}]
|
|
651
|
+
}] });
|
|
681
652
|
|
|
682
653
|
const DIRECTIVES$1 = [
|
|
683
654
|
PaginationSizeDirective,
|
|
@@ -1650,33 +1621,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1650
1621
|
standalone: false
|
|
1651
1622
|
}]
|
|
1652
1623
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
1653
|
-
let PIllustrationDeprecated = class PIllustrationDeprecated {
|
|
1654
|
-
z;
|
|
1655
|
-
el;
|
|
1656
|
-
constructor(c, r, z) {
|
|
1657
|
-
this.z = z;
|
|
1658
|
-
c.detach();
|
|
1659
|
-
this.el = r.nativeElement;
|
|
1660
|
-
}
|
|
1661
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PIllustrationDeprecated, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1662
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: PIllustrationDeprecated, isStandalone: false, selector: "p-illustration-deprecated", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1663
|
-
};
|
|
1664
|
-
PIllustrationDeprecated = __decorate([
|
|
1665
|
-
ProxyCmp({
|
|
1666
|
-
inputs: ['variant']
|
|
1667
|
-
})
|
|
1668
|
-
], PIllustrationDeprecated);
|
|
1669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PIllustrationDeprecated, decorators: [{
|
|
1670
|
-
type: Component,
|
|
1671
|
-
args: [{
|
|
1672
|
-
selector: 'p-illustration-deprecated',
|
|
1673
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1674
|
-
template: '<ng-content></ng-content>',
|
|
1675
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1676
|
-
inputs: ['variant'],
|
|
1677
|
-
standalone: false
|
|
1678
|
-
}]
|
|
1679
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
1680
1624
|
let PInfoPanel = class PInfoPanel {
|
|
1681
1625
|
z;
|
|
1682
1626
|
el;
|
|
@@ -2791,7 +2735,6 @@ const DIRECTIVES = [
|
|
|
2791
2735
|
PIbanIcon,
|
|
2792
2736
|
PIcon,
|
|
2793
2737
|
PIllustration,
|
|
2794
|
-
PIllustrationDeprecated,
|
|
2795
2738
|
PInfoPanel,
|
|
2796
2739
|
PLabel,
|
|
2797
2740
|
PLayout,
|
|
@@ -2836,7 +2779,7 @@ const DIRECTIVES = [
|
|
|
2836
2779
|
|
|
2837
2780
|
class StencilModule {
|
|
2838
2781
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2839
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: StencilModule, declarations: [PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PBadge, PButton, PButtonGroup, PCalendar, PCardBody, PCardContainer, PCardHeader, PCheckbox, PContentSlider, PCropper, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PEmptyState, PField, PFieldContainer, PFloatingMenuContainer, PFloatingMenuItem, PHelper, PIbanIcon, PIcon, PIllustration,
|
|
2782
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: StencilModule, declarations: [PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PBadge, PButton, PButtonGroup, PCalendar, PCardBody, PCardContainer, PCardHeader, PCheckbox, PContentSlider, PCropper, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PEmptyState, PField, PFieldContainer, PFloatingMenuContainer, PFloatingMenuItem, PHelper, PIbanIcon, PIcon, PIllustration, PInfoPanel, PLabel, PLayout, PListing, PListingItem, PListingLine, PLoader, PModal, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PNavigationSection, PNavigationTitle, PPagination, PPaginationPages, PPaginationPagesItem, PPaginationSize, PProfile, PRadio, PRange, PSegmentContainer, PSegmentItem, PSelect, PSmile, PStepper, PStepperItem, PStepperLine, PTabContainer, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTableRowActionsContainer, PToast, PToggle, PTooltip], exports: [PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PBadge, PButton, PButtonGroup, PCalendar, PCardBody, PCardContainer, PCardHeader, PCheckbox, PContentSlider, PCropper, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PEmptyState, PField, PFieldContainer, PFloatingMenuContainer, PFloatingMenuItem, PHelper, PIbanIcon, PIcon, PIllustration, PInfoPanel, PLabel, PLayout, PListing, PListingItem, PListingLine, PLoader, PModal, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PNavigationSection, PNavigationTitle, PPagination, PPaginationPages, PPaginationPagesItem, PPaginationSize, PProfile, PRadio, PRange, PSegmentContainer, PSegmentItem, PSelect, PSmile, PStepper, PStepperItem, PStepperLine, PTabContainer, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTableRowActionsContainer, PToast, PToggle, PTooltip] });
|
|
2840
2783
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StencilModule });
|
|
2841
2784
|
}
|
|
2842
2785
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StencilModule, decorators: [{
|
|
@@ -2860,6 +2803,7 @@ class OverlayRef {
|
|
|
2860
2803
|
}
|
|
2861
2804
|
}
|
|
2862
2805
|
|
|
2806
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2863
2807
|
class OverlayService {
|
|
2864
2808
|
injector;
|
|
2865
2809
|
overlay;
|
|
@@ -2876,7 +2820,6 @@ class OverlayService {
|
|
|
2876
2820
|
this.overlayRef = overlayRef;
|
|
2877
2821
|
return overlayRef;
|
|
2878
2822
|
}
|
|
2879
|
-
// tslint:disable-next-line:max-line-length
|
|
2880
2823
|
_attachModalContainer(overlay, overlayRef, component, providers) {
|
|
2881
2824
|
const injector = this._createInjector(overlayRef, providers);
|
|
2882
2825
|
const containerPortal = component instanceof CdkPortal
|
|
@@ -2970,7 +2913,7 @@ const createFormFilters = (values, quickFilters, quickFilterKey) => {
|
|
|
2970
2913
|
if ((key !== quickFilterKey &&
|
|
2971
2914
|
!(value instanceof Date) &&
|
|
2972
2915
|
typeof value !== 'object' &&
|
|
2973
|
-
isNaN(value) &&
|
|
2916
|
+
Number.isNaN(value) &&
|
|
2974
2917
|
!value?.length) ||
|
|
2975
2918
|
value === null ||
|
|
2976
2919
|
value === undefined) {
|
|
@@ -3096,9 +3039,6 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
|
3096
3039
|
...values,
|
|
3097
3040
|
});
|
|
3098
3041
|
}
|
|
3099
|
-
constructor() {
|
|
3100
|
-
super();
|
|
3101
|
-
}
|
|
3102
3042
|
ngOnInit() {
|
|
3103
3043
|
this.tableOptions = new FormControl({
|
|
3104
3044
|
pageSize: this.parsedDefaultTableValues.pageSize,
|
|
@@ -3200,11 +3140,9 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
|
3200
3140
|
if (previous && previous[identifier] !== current?.[identifier]) {
|
|
3201
3141
|
this.resetTable(false, true);
|
|
3202
3142
|
}
|
|
3203
|
-
}),
|
|
3204
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3205
|
-
map(([_, current]) => current));
|
|
3143
|
+
}), map(([_, current]) => current));
|
|
3206
3144
|
}
|
|
3207
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseTableComponent, deps:
|
|
3145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3208
3146
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: BaseTableComponent, isStandalone: false, selector: "ng-component", outputs: { tableOptionsChange: "tableOptionsChange" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
3209
3147
|
};
|
|
3210
3148
|
BaseTableComponent = __decorate([
|
|
@@ -3216,11 +3154,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3216
3154
|
template: ``,
|
|
3217
3155
|
standalone: false,
|
|
3218
3156
|
}]
|
|
3219
|
-
}],
|
|
3157
|
+
}], propDecorators: { tableOptionsChange: [{
|
|
3220
3158
|
type: Output
|
|
3221
3159
|
}] } });
|
|
3222
3160
|
|
|
3223
|
-
/* eslint-disable
|
|
3161
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3224
3162
|
/*
|
|
3225
3163
|
With this, we shall hack the system in ways no one would ever have thought.
|
|
3226
3164
|
|
|
@@ -3280,7 +3218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3280
3218
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
3281
3219
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
3282
3220
|
*/
|
|
3283
|
-
class
|
|
3221
|
+
class TableCellComponent {
|
|
3284
3222
|
/**
|
|
3285
3223
|
* The variant of the column
|
|
3286
3224
|
*/
|
|
@@ -3338,7 +3276,7 @@ class TableCell {
|
|
|
3338
3276
|
};
|
|
3339
3277
|
}
|
|
3340
3278
|
return {
|
|
3341
|
-
value: this.value ?? this.definition?.path
|
|
3279
|
+
value: (this.value ?? this.definition?.path)
|
|
3342
3280
|
? objectGetByPath(this.item, this.definition.path)
|
|
3343
3281
|
: null,
|
|
3344
3282
|
item: this.item,
|
|
@@ -3354,12 +3292,12 @@ class TableCell {
|
|
|
3354
3292
|
'text-end': align === 'end',
|
|
3355
3293
|
});
|
|
3356
3294
|
}
|
|
3357
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3358
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
3295
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3296
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TableCellComponent, isStandalone: false, selector: "p-table-cell-ngx", inputs: { variant: "variant", index: "index", rowIndex: "rowIndex", definition: "definition", item: "item", value: "value", checkbox: "checkbox", checkboxOffset: "checkboxOffset", template: "template", scrollable: "scrollable" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<ng-container *ngIf=\"checkbox\">\n\t<ng-container *ngTemplateOutlet=\"checkbox\" />\n</ng-container>\n\n<ng-container [ngSwitch]=\"variant\">\n\t<p-loader\n\t\t*ngSwitchCase=\"'loading'\"\n\t\tclass=\"h-6 w-full flex-1 rounded\"\n\t\tvariant=\"ghost\"\n\t/>\n\n\t<ng-container *ngSwitchCase=\"'actions'\">\n\t\t<ng-container *ngIf=\"template\">\n\t\t\t<ng-container *ngTemplateOutlet=\"template; context: data\" />\n\t\t</ng-container>\n\t</ng-container>\n\n\t<div\n\t\t*ngIf=\"variant === 'header' || variant === 'header-secondary'\"\n\t\t[class]=\"headerClass\"\n\t>\n\t\t<ng-container *ngTemplateOutlet=\"valueTemplate\" />\n\t</div>\n\n\t<div\n\t\t*ngSwitchCase=\"'default'\"\n\t\t[class]=\"\n\t\t\tcn('overflow-hidden text-ellipsis', {\n\t\t\t\tflex: definition?.flex,\n\t\t\t\t'flex-1': definition?.flex,\n\t\t\t\t'justify-start':\n\t\t\t\t\tdefinition?.flex &&\n\t\t\t\t\t(definition?.align === undefined || definition.align === 'start'),\n\t\t\t\t'justify-end': definition?.flex && definition.align === 'end',\n\t\t\t\t'justify-center': definition?.flex && definition.align === 'end',\n\t\t\t\t'text-start':\n\t\t\t\t\t!definition?.flex &&\n\t\t\t\t\t(definition?.align === undefined || definition.align === 'start'),\n\t\t\t\t'text-center': !definition?.flex && definition.align === 'center',\n\t\t\t\t'text-end': !definition?.flex && definition.align === 'end',\n\t\t\t})\n\t\t\"\n\t>\n\t\t<ng-container *ngIf=\"template; else valueTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"template; context: data\" />\n\t\t</ng-container>\n\t</div>\n</ng-container>\n\n<ng-template #valueTemplate>\n\t<ng-container *ngIf=\"data.value\">\n\t\t{{ data.value }}\n\t</ng-container>\n\n\t<ng-content *ngIf=\"!data.value\" />\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }] });
|
|
3359
3297
|
}
|
|
3360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableCellComponent, decorators: [{
|
|
3361
3299
|
type: Component,
|
|
3362
|
-
args: [{ selector: 'p-table-cell-ngx', standalone: false, template: "<ng-container *ngIf=\"checkbox\">\n\t<ng-container *ngTemplateOutlet=\"checkbox\"
|
|
3300
|
+
args: [{ selector: 'p-table-cell-ngx', standalone: false, template: "<ng-container *ngIf=\"checkbox\">\n\t<ng-container *ngTemplateOutlet=\"checkbox\" />\n</ng-container>\n\n<ng-container [ngSwitch]=\"variant\">\n\t<p-loader\n\t\t*ngSwitchCase=\"'loading'\"\n\t\tclass=\"h-6 w-full flex-1 rounded\"\n\t\tvariant=\"ghost\"\n\t/>\n\n\t<ng-container *ngSwitchCase=\"'actions'\">\n\t\t<ng-container *ngIf=\"template\">\n\t\t\t<ng-container *ngTemplateOutlet=\"template; context: data\" />\n\t\t</ng-container>\n\t</ng-container>\n\n\t<div\n\t\t*ngIf=\"variant === 'header' || variant === 'header-secondary'\"\n\t\t[class]=\"headerClass\"\n\t>\n\t\t<ng-container *ngTemplateOutlet=\"valueTemplate\" />\n\t</div>\n\n\t<div\n\t\t*ngSwitchCase=\"'default'\"\n\t\t[class]=\"\n\t\t\tcn('overflow-hidden text-ellipsis', {\n\t\t\t\tflex: definition?.flex,\n\t\t\t\t'flex-1': definition?.flex,\n\t\t\t\t'justify-start':\n\t\t\t\t\tdefinition?.flex &&\n\t\t\t\t\t(definition?.align === undefined || definition.align === 'start'),\n\t\t\t\t'justify-end': definition?.flex && definition.align === 'end',\n\t\t\t\t'justify-center': definition?.flex && definition.align === 'end',\n\t\t\t\t'text-start':\n\t\t\t\t\t!definition?.flex &&\n\t\t\t\t\t(definition?.align === undefined || definition.align === 'start'),\n\t\t\t\t'text-center': !definition?.flex && definition.align === 'center',\n\t\t\t\t'text-end': !definition?.flex && definition.align === 'end',\n\t\t\t})\n\t\t\"\n\t>\n\t\t<ng-container *ngIf=\"template; else valueTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"template; context: data\" />\n\t\t</ng-container>\n\t</div>\n</ng-container>\n\n<ng-template #valueTemplate>\n\t<ng-container *ngIf=\"data.value\">\n\t\t{{ data.value }}\n\t</ng-container>\n\n\t<ng-content *ngIf=\"!data.value\" />\n</ng-template>\n" }]
|
|
3363
3301
|
}], propDecorators: { variant: [{
|
|
3364
3302
|
type: Input
|
|
3365
3303
|
}], index: [{
|
|
@@ -3385,7 +3323,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3385
3323
|
args: ['class']
|
|
3386
3324
|
}] } });
|
|
3387
3325
|
|
|
3388
|
-
let
|
|
3326
|
+
let TableColumnComponent = class TableColumnComponent {
|
|
3389
3327
|
z;
|
|
3390
3328
|
el;
|
|
3391
3329
|
template;
|
|
@@ -3395,10 +3333,10 @@ let TableColumn = class TableColumn {
|
|
|
3395
3333
|
this.el = r.nativeElement;
|
|
3396
3334
|
proxyOutputs(this, this.el, ['tableDefinitionChanged']);
|
|
3397
3335
|
}
|
|
3398
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3399
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
3336
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableColumnComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3337
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TableColumnComponent, isStandalone: false, selector: "p-table-column", inputs: { align: "align", headerAlign: "headerAlign", flex: "flex", name: "name", path: "path", sizes: "sizes", variant: "variant", useSlot: "useSlot", hasCheckbox: "hasCheckbox", sticky: "sticky" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3400
3338
|
};
|
|
3401
|
-
|
|
3339
|
+
TableColumnComponent = __decorate([
|
|
3402
3340
|
ProxyCmp({
|
|
3403
3341
|
defineCustomElementFn: undefined,
|
|
3404
3342
|
inputs: [
|
|
@@ -3414,13 +3352,13 @@ TableColumn = __decorate([
|
|
|
3414
3352
|
'sticky',
|
|
3415
3353
|
],
|
|
3416
3354
|
})
|
|
3417
|
-
],
|
|
3418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3355
|
+
], TableColumnComponent);
|
|
3356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableColumnComponent, decorators: [{
|
|
3419
3357
|
type: Component,
|
|
3420
3358
|
args: [{
|
|
3421
3359
|
selector: 'p-table-column',
|
|
3422
3360
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3423
|
-
template: '<ng-content
|
|
3361
|
+
template: '<ng-content />',
|
|
3424
3362
|
inputs: [
|
|
3425
3363
|
'align',
|
|
3426
3364
|
'headerAlign',
|
|
@@ -3433,7 +3371,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3433
3371
|
'hasCheckbox',
|
|
3434
3372
|
'sticky',
|
|
3435
3373
|
],
|
|
3436
|
-
standalone: false
|
|
3374
|
+
standalone: false,
|
|
3437
3375
|
}]
|
|
3438
3376
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { template: [{
|
|
3439
3377
|
type: ContentChild,
|
|
@@ -3443,7 +3381,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3443
3381
|
}]
|
|
3444
3382
|
}] } });
|
|
3445
3383
|
|
|
3446
|
-
let
|
|
3384
|
+
let TableExtraHeaderComponent = class TableExtraHeaderComponent {
|
|
3447
3385
|
z;
|
|
3448
3386
|
el;
|
|
3449
3387
|
template;
|
|
@@ -3453,23 +3391,23 @@ let TableExtraHeader = class TableExtraHeader {
|
|
|
3453
3391
|
this.el = r.nativeElement;
|
|
3454
3392
|
proxyOutputs(this, this.el, ['tableDefinitionChanged']);
|
|
3455
3393
|
}
|
|
3456
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3457
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
3394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableExtraHeaderComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TableExtraHeaderComponent, isStandalone: false, selector: "p-table-extra-header", inputs: { align: "align", name: "name", sizes: "sizes", parsedSizes: "parsedSizes", useSlot: "useSlot", sticky: "sticky" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3458
3396
|
};
|
|
3459
|
-
|
|
3397
|
+
TableExtraHeaderComponent = __decorate([
|
|
3460
3398
|
ProxyCmp({
|
|
3461
3399
|
defineCustomElementFn: undefined,
|
|
3462
3400
|
inputs: ['align', 'name', 'sizes', 'parsedSizes', 'useSlot', 'sticky'],
|
|
3463
3401
|
})
|
|
3464
|
-
],
|
|
3465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3402
|
+
], TableExtraHeaderComponent);
|
|
3403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableExtraHeaderComponent, decorators: [{
|
|
3466
3404
|
type: Component,
|
|
3467
3405
|
args: [{
|
|
3468
3406
|
selector: 'p-table-extra-header',
|
|
3469
3407
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3470
|
-
template: '<ng-content
|
|
3408
|
+
template: '<ng-content />',
|
|
3471
3409
|
inputs: ['align', 'name', 'sizes', 'parsedSizes', 'useSlot', 'sticky'],
|
|
3472
|
-
standalone: false
|
|
3410
|
+
standalone: false,
|
|
3473
3411
|
}]
|
|
3474
3412
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { template: [{
|
|
3475
3413
|
type: ContentChild,
|
|
@@ -3487,7 +3425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3487
3425
|
type: Directive,
|
|
3488
3426
|
args: [{
|
|
3489
3427
|
selector: '[p-table-custom-filter]',
|
|
3490
|
-
standalone: false
|
|
3428
|
+
standalone: false,
|
|
3491
3429
|
}]
|
|
3492
3430
|
}] });
|
|
3493
3431
|
|
|
@@ -3499,18 +3437,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3499
3437
|
type: Directive,
|
|
3500
3438
|
args: [{
|
|
3501
3439
|
selector: '[p-table-filter-modal]',
|
|
3502
|
-
standalone: false
|
|
3440
|
+
standalone: false,
|
|
3503
3441
|
}]
|
|
3504
3442
|
}] });
|
|
3505
3443
|
|
|
3506
3444
|
class TableFooterDirective extends BaseValueAccessor {
|
|
3445
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3507
3446
|
lastValue = {
|
|
3508
3447
|
page: 1,
|
|
3509
3448
|
pageSize: 12,
|
|
3510
3449
|
};
|
|
3511
|
-
|
|
3512
|
-
super(el);
|
|
3513
|
-
}
|
|
3450
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3514
3451
|
writeValue(value) {
|
|
3515
3452
|
this.el.nativeElement.page = this.lastValue.page =
|
|
3516
3453
|
value?.page == null ? 1 : value?.page;
|
|
@@ -3523,7 +3460,7 @@ class TableFooterDirective extends BaseValueAccessor {
|
|
|
3523
3460
|
[type]: value,
|
|
3524
3461
|
});
|
|
3525
3462
|
}
|
|
3526
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableFooterDirective, deps:
|
|
3463
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableFooterDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3527
3464
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TableFooterDirective, isStandalone: false, selector: "p-table-footer", host: { listeners: { "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")" } }, providers: [
|
|
3528
3465
|
{
|
|
3529
3466
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3535,7 +3472,6 @@ class TableFooterDirective extends BaseValueAccessor {
|
|
|
3535
3472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableFooterDirective, decorators: [{
|
|
3536
3473
|
type: Directive,
|
|
3537
3474
|
args: [{
|
|
3538
|
-
/* tslint:disable-next-line:directive-selector */
|
|
3539
3475
|
selector: 'p-table-footer',
|
|
3540
3476
|
host: {
|
|
3541
3477
|
'(pageChange)': 'handleChange($event.detail, "page")',
|
|
@@ -3548,18 +3484,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3548
3484
|
multi: true,
|
|
3549
3485
|
},
|
|
3550
3486
|
],
|
|
3551
|
-
standalone: false
|
|
3487
|
+
standalone: false,
|
|
3552
3488
|
}]
|
|
3553
|
-
}]
|
|
3489
|
+
}] });
|
|
3554
3490
|
|
|
3555
3491
|
class TableHeaderDirective extends BaseValueAccessor {
|
|
3556
3492
|
lastValue = {
|
|
3557
3493
|
query: '',
|
|
3558
3494
|
quickFilter: undefined,
|
|
3559
3495
|
};
|
|
3560
|
-
constructor(el) {
|
|
3561
|
-
super(el);
|
|
3562
|
-
}
|
|
3563
3496
|
writeValue(value) {
|
|
3564
3497
|
this.el.nativeElement.query = this.lastValue.query = value?.query;
|
|
3565
3498
|
this.lastValue.quickFilter = value?.quickFilter;
|
|
@@ -3579,7 +3512,7 @@ class TableHeaderDirective extends BaseValueAccessor {
|
|
|
3579
3512
|
_setActiveQuickFilter(quickFilter) {
|
|
3580
3513
|
this.el.nativeElement.activeQuickFilterIdentifier = quickFilter?.identifier;
|
|
3581
3514
|
}
|
|
3582
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableHeaderDirective, deps:
|
|
3515
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableHeaderDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3583
3516
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TableHeaderDirective, isStandalone: false, selector: "p-table-header", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")" } }, providers: [
|
|
3584
3517
|
{
|
|
3585
3518
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3591,7 +3524,6 @@ class TableHeaderDirective extends BaseValueAccessor {
|
|
|
3591
3524
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableHeaderDirective, decorators: [{
|
|
3592
3525
|
type: Directive,
|
|
3593
3526
|
args: [{
|
|
3594
|
-
/* tslint:disable-next-line:directive-selector */
|
|
3595
3527
|
selector: 'p-table-header',
|
|
3596
3528
|
host: {
|
|
3597
3529
|
'(queryChange)': 'handleChange($event.detail, "query")',
|
|
@@ -3604,11 +3536,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3604
3536
|
multi: true,
|
|
3605
3537
|
},
|
|
3606
3538
|
],
|
|
3607
|
-
standalone: false
|
|
3539
|
+
standalone: false,
|
|
3608
3540
|
}]
|
|
3609
|
-
}]
|
|
3541
|
+
}] });
|
|
3610
3542
|
|
|
3611
|
-
/* eslint-disable @
|
|
3543
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3612
3544
|
class TableNgxDirective extends BaseValueAccessor {
|
|
3613
3545
|
_base;
|
|
3614
3546
|
lastValue = {
|
|
@@ -3685,22 +3617,16 @@ class TableNgxDirective extends BaseValueAccessor {
|
|
|
3685
3617
|
const activeQuickFilter = this.lastValue.quickFilter;
|
|
3686
3618
|
const selectedFiltersAmount = this._base.selectedFiltersAmount;
|
|
3687
3619
|
if (activeQuickFilter || selectedFiltersAmount) {
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
!activeQuickFilter?.default) {
|
|
3696
|
-
this._base.filterModalShowResetMobile = true;
|
|
3697
|
-
}
|
|
3698
|
-
else {
|
|
3699
|
-
this._base.filterModalShowResetMobile = false;
|
|
3700
|
-
}
|
|
3620
|
+
this._base.filterModalShowReset =
|
|
3621
|
+
selectedFiltersAmount && selectedFiltersAmount > 0 ? true : false;
|
|
3622
|
+
this._base.filterModalShowResetMobile =
|
|
3623
|
+
(selectedFiltersAmount && selectedFiltersAmount > 0) ||
|
|
3624
|
+
!activeQuickFilter?.default
|
|
3625
|
+
? true
|
|
3626
|
+
: false;
|
|
3701
3627
|
}
|
|
3702
3628
|
}
|
|
3703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token:
|
|
3629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3704
3630
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TableNgxDirective, isStandalone: false, selector: "p-table-ngx", host: { listeners: { "queryChange": "handleChange($event, \"query\")", "quickFilter": "handleChange($event, \"quickFilter\")", "pageChange": "handleChange($event, \"page\")", "pageSizeChange": "handleChange($event, \"pageSize\")", "selectedRowsChange": "handleChange($event, \"selectedRows\")" } }, providers: [
|
|
3705
3631
|
{
|
|
3706
3632
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3727,12 +3653,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3727
3653
|
multi: true,
|
|
3728
3654
|
},
|
|
3729
3655
|
],
|
|
3730
|
-
standalone: false
|
|
3656
|
+
standalone: false,
|
|
3731
3657
|
}]
|
|
3732
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type:
|
|
3658
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: TableComponent, decorators: [{
|
|
3733
3659
|
type: Host
|
|
3734
3660
|
}] }] });
|
|
3735
3661
|
|
|
3662
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3736
3663
|
class TableDirective extends BaseValueAccessor {
|
|
3737
3664
|
lastValue = {
|
|
3738
3665
|
query: '',
|
|
@@ -3741,9 +3668,6 @@ class TableDirective extends BaseValueAccessor {
|
|
|
3741
3668
|
pageSize: 12,
|
|
3742
3669
|
selectedRows: [],
|
|
3743
3670
|
};
|
|
3744
|
-
constructor(el) {
|
|
3745
|
-
super(el);
|
|
3746
|
-
}
|
|
3747
3671
|
writeValue(value) {
|
|
3748
3672
|
this.el.nativeElement.query = this.lastValue.query = value?.query;
|
|
3749
3673
|
this.lastValue.quickFilter = value?.quickFilter;
|
|
@@ -3775,7 +3699,7 @@ class TableDirective extends BaseValueAccessor {
|
|
|
3775
3699
|
_setActiveQuickFilter(quickFilter) {
|
|
3776
3700
|
this.el.nativeElement.activeQuickFilterIdentifier = quickFilter?.identifier;
|
|
3777
3701
|
}
|
|
3778
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableDirective, deps:
|
|
3702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3779
3703
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TableDirective, isStandalone: false, 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: [
|
|
3780
3704
|
{
|
|
3781
3705
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3787,7 +3711,6 @@ class TableDirective extends BaseValueAccessor {
|
|
|
3787
3711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableDirective, decorators: [{
|
|
3788
3712
|
type: Directive,
|
|
3789
3713
|
args: [{
|
|
3790
|
-
/* tslint:disable-next-line:directive-selector */
|
|
3791
3714
|
selector: 'p-table',
|
|
3792
3715
|
host: {
|
|
3793
3716
|
'(queryChange)': 'handleChange($event.detail, "query")',
|
|
@@ -3803,9 +3726,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3803
3726
|
multi: true,
|
|
3804
3727
|
},
|
|
3805
3728
|
],
|
|
3806
|
-
standalone: false
|
|
3729
|
+
standalone: false,
|
|
3807
3730
|
}]
|
|
3808
|
-
}]
|
|
3731
|
+
}] });
|
|
3809
3732
|
|
|
3810
3733
|
class TableCustomActionsDirective {
|
|
3811
3734
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableCustomActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -3815,13 +3738,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3815
3738
|
type: Directive,
|
|
3816
3739
|
args: [{
|
|
3817
3740
|
selector: '[p-table-custom-actions]',
|
|
3818
|
-
standalone: false
|
|
3741
|
+
standalone: false,
|
|
3819
3742
|
}]
|
|
3820
3743
|
}] });
|
|
3821
3744
|
|
|
3822
3745
|
class TableCustomRowDirective {
|
|
3823
3746
|
templateRef;
|
|
3824
3747
|
variant = 'default';
|
|
3748
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3825
3749
|
constructor(templateRef) {
|
|
3826
3750
|
this.templateRef = templateRef;
|
|
3827
3751
|
}
|
|
@@ -3832,7 +3756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3832
3756
|
type: Directive,
|
|
3833
3757
|
args: [{
|
|
3834
3758
|
selector: '[p-table-custom-row]',
|
|
3835
|
-
standalone: false
|
|
3759
|
+
standalone: false,
|
|
3836
3760
|
}]
|
|
3837
3761
|
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { variant: [{
|
|
3838
3762
|
type: Input
|
|
@@ -3849,7 +3773,7 @@ const TABLE_DIRECTIVES = [
|
|
|
3849
3773
|
TableCustomRowDirective,
|
|
3850
3774
|
];
|
|
3851
3775
|
|
|
3852
|
-
let
|
|
3776
|
+
let TableRowActionComponent = class TableRowActionComponent {
|
|
3853
3777
|
_c;
|
|
3854
3778
|
z;
|
|
3855
3779
|
el;
|
|
@@ -3884,10 +3808,10 @@ let TableRowAction = class TableRowAction {
|
|
|
3884
3808
|
this._loadingChanged.emit(changes['loading'].currentValue);
|
|
3885
3809
|
}
|
|
3886
3810
|
}
|
|
3887
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3888
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
3811
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableRowActionComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3812
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TableRowActionComponent, isStandalone: false, selector: "p-table-row-action", inputs: { disabled: "disabled", icon: "icon", iconFlip: "iconFlip", iconOnly: "iconOnly", iconRotate: "iconRotate", label: "label", type: "type", loading: "loading", routerLink: "routerLink", queryParams: "queryParams", showFunction: "showFunction" }, outputs: { action: "action", _loadingChanged: "_loadingChanged" }, usesOnChanges: true, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3889
3813
|
};
|
|
3890
|
-
|
|
3814
|
+
TableRowActionComponent = __decorate([
|
|
3891
3815
|
ProxyCmp({
|
|
3892
3816
|
inputs: [
|
|
3893
3817
|
'disabled',
|
|
@@ -3901,14 +3825,13 @@ TableRowAction = __decorate([
|
|
|
3901
3825
|
'showFunction',
|
|
3902
3826
|
],
|
|
3903
3827
|
})
|
|
3904
|
-
],
|
|
3905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
3828
|
+
], TableRowActionComponent);
|
|
3829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableRowActionComponent, decorators: [{
|
|
3906
3830
|
type: Component,
|
|
3907
3831
|
args: [{
|
|
3908
3832
|
selector: 'p-table-row-action',
|
|
3909
3833
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3910
|
-
template: '<ng-content
|
|
3911
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
3834
|
+
template: '<ng-content />',
|
|
3912
3835
|
inputs: [
|
|
3913
3836
|
'disabled',
|
|
3914
3837
|
'icon',
|
|
@@ -3919,7 +3842,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3919
3842
|
'type',
|
|
3920
3843
|
'loading',
|
|
3921
3844
|
],
|
|
3922
|
-
standalone: false
|
|
3845
|
+
standalone: false,
|
|
3923
3846
|
}]
|
|
3924
3847
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ElementRef }], propDecorators: { routerLink: [{
|
|
3925
3848
|
type: Input
|
|
@@ -3936,14 +3859,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3936
3859
|
const defaultSize = 12;
|
|
3937
3860
|
const defaultSizeOptions = [12, 24, 68, 136];
|
|
3938
3861
|
|
|
3939
|
-
let
|
|
3862
|
+
let TableComponent = class TableComponent {
|
|
3940
3863
|
_cd;
|
|
3941
|
-
|
|
3864
|
+
hostClass = 'flex flex-col z-0';
|
|
3942
3865
|
theme = state.theme;
|
|
3943
3866
|
/**
|
|
3944
3867
|
* The items to be fed to the table
|
|
3945
3868
|
*/
|
|
3946
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3947
3869
|
items;
|
|
3948
3870
|
/**
|
|
3949
3871
|
* Wether data is loading
|
|
@@ -3976,12 +3898,10 @@ let Table = class Table {
|
|
|
3976
3898
|
/**
|
|
3977
3899
|
* The current selection of items
|
|
3978
3900
|
*/
|
|
3979
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3980
3901
|
selectedRows = [];
|
|
3981
3902
|
/**
|
|
3982
3903
|
* Event whenever the current selection changes
|
|
3983
3904
|
*/
|
|
3984
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3985
3905
|
selectedRowsChange = new EventEmitter();
|
|
3986
3906
|
/**
|
|
3987
3907
|
* The key to determine if a row is selected
|
|
@@ -4002,7 +3922,6 @@ let Table = class Table {
|
|
|
4002
3922
|
/**
|
|
4003
3923
|
* The template for amount selected item in the floating menu
|
|
4004
3924
|
*/
|
|
4005
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4006
3925
|
floatingMenuAmountSelectedTemplate;
|
|
4007
3926
|
/**
|
|
4008
3927
|
* Wether the floating menu has been shown atleast once
|
|
@@ -4015,12 +3934,10 @@ let Table = class Table {
|
|
|
4015
3934
|
/**
|
|
4016
3935
|
* Event whenever a row is selected
|
|
4017
3936
|
*/
|
|
4018
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4019
3937
|
rowSelected = new EventEmitter();
|
|
4020
3938
|
/**
|
|
4021
3939
|
* Event whenever a row is deselected
|
|
4022
3940
|
*/
|
|
4023
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4024
3941
|
rowDeselected = new EventEmitter();
|
|
4025
3942
|
/** START HEADER */
|
|
4026
3943
|
/**
|
|
@@ -4058,7 +3975,6 @@ let Table = class Table {
|
|
|
4058
3975
|
/**
|
|
4059
3976
|
* The template for the filter button text
|
|
4060
3977
|
*/
|
|
4061
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4062
3978
|
filterButtonTemplate;
|
|
4063
3979
|
/**
|
|
4064
3980
|
* Wether to show the action button
|
|
@@ -4083,7 +3999,6 @@ let Table = class Table {
|
|
|
4083
3999
|
/**
|
|
4084
4000
|
* The template for the action button text
|
|
4085
4001
|
*/
|
|
4086
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4087
4002
|
actionButtonTemplate;
|
|
4088
4003
|
/**
|
|
4089
4004
|
* Event when one of the quick filters is clicked
|
|
@@ -4183,11 +4098,8 @@ let Table = class Table {
|
|
|
4183
4098
|
* Wether to show the shadow or not
|
|
4184
4099
|
*/
|
|
4185
4100
|
shadow = true;
|
|
4186
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4187
4101
|
extraHeaders$ = new BehaviorSubject([]);
|
|
4188
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4189
4102
|
columns$ = new BehaviorSubject([]);
|
|
4190
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4191
4103
|
parsedItems = [];
|
|
4192
4104
|
loadingRows = Array.from({
|
|
4193
4105
|
length: this.amountOfLoadingRows,
|
|
@@ -4607,12 +4519,12 @@ let Table = class Table {
|
|
|
4607
4519
|
}
|
|
4608
4520
|
return this._findRow(el?.parentElement);
|
|
4609
4521
|
}
|
|
4610
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4611
4522
|
_findRowAction(el) {
|
|
4612
4523
|
if (!el) {
|
|
4613
4524
|
return null;
|
|
4614
4525
|
}
|
|
4615
|
-
if (el.dataset['isAction'] !==
|
|
4526
|
+
if (el.dataset['isAction'] !== undefined &&
|
|
4527
|
+
el.dataset['isAction'] !== 'false') {
|
|
4616
4528
|
return el;
|
|
4617
4529
|
}
|
|
4618
4530
|
if (el?.tagName?.toLowerCase() === 'p-table-row') {
|
|
@@ -4793,16 +4705,16 @@ let Table = class Table {
|
|
|
4793
4705
|
this._cd.detectChanges();
|
|
4794
4706
|
}, 100);
|
|
4795
4707
|
}
|
|
4796
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
4797
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: Table, isStandalone: false, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", headerLoading: "headerLoading", footerLoading: "footerLoading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", rowSelectionLimit: "rowSelectionLimit", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", enableFloatingMenu: "enableFloatingMenu", floatingMenuAmountSelectedText: "floatingMenuAmountSelectedText", floatingMenuAmountSelectedTemplate: "floatingMenuAmountSelectedTemplate", enableHeader: "enableHeader", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", enableFilterDesktop: "enableFilterDesktop", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableAction: "enableAction", actionButtonLoading: "actionButtonLoading", actionButtonIcon: "actionButtonIcon", actionButtonEnabled: "actionButtonEnabled", actionButtonText: "actionButtonText", actionButtonTemplate: "actionButtonTemplate", enableFooter: "enableFooter", enablePaginationSize: "enablePaginationSize", enablePaginationPages: "enablePaginationPages", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage", emptyStateType: "emptyStateType", emptyStateIllustration: "emptyStateIllustration", emptyStateHeader: "emptyStateHeader", emptyStateContent: "emptyStateContent", emptyStateAction: "emptyStateAction", emptyStateActionIcon: "emptyStateActionIcon", enableEmptyStateAction: "enableEmptyStateAction", emptyStateFilteredIllustration: "emptyStateFilteredIllustration", emptyStateFilteredHeader: "emptyStateFilteredHeader", emptyStateFilteredContent: "emptyStateFilteredContent", enableScroll: "enableScroll", shadow: "shadow", 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", action: "action", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export", emptyStateActionClick: "emptyStateActionClick", filterModalShow: "filterModalShow", filterModalSave: "filterModalSave", filterModalReset: "filterModalReset" }, host: { listeners: { "window:resize": "onResize($event)", "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" }, properties: { "class": "this.className", "attr.data-theme": "this.theme" } }, queries: [{ propertyName: "headerCustomFilterTemplate", first: true, predicate: TableCustomFilterDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "headerCustomActionsTemplate", first: true, predicate: TableCustomActionsDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "filterModalTemplate", first: true, predicate: TableFilterModalDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "columnDefinitions", predicate: TableColumn }, { propertyName: "extraHeaderDefinitions", predicate: TableExtraHeader }, { propertyName: "rowActions", predicate: TableRowAction }, { propertyName: "customRows", predicate: TableCustomRowDirective }], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "tableRows", predicate: PTableRow, descendants: true, read: ElementRef }, { propertyName: "tableCells", predicate: TableCell, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n\t<p-table-header\n\t\t*ngIf=\"enableHeader\"\n\t\tclass=\"mb-8\"\n\t\t[quickFilters]=\"quickFilters\"\n\t\t[activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n\t\t(quickFilter)=\"onQuickFilter($event)\"\n\t\t[enableSearch]=\"enableSearch\"\n\t\t[query]=\"query\"\n\t\t(queryChange)=\"onQueryChange($event)\"\n\t\t[enableFilter]=\"enableFilter\"\n\t\t[enableFilterDesktop]=\"enableFilterDesktop\"\n\t\t[selectedFiltersAmount]=\"selectedFiltersAmount\"\n\t\t[filterButtonTemplate]=\"filterButtonTemplate\"\n\t\t(filter)=\"filterModalShow$.next(true)\"\n\t\t[enableAction]=\"enableAction\"\n\t\t[canUseAction]=\"actionButtonEnabled\"\n\t\t[actionButtonTemplate]=\"actionButtonTemplate\"\n\t\t[actionLoading]=\"actionButtonLoading\"\n\t\t[actionText]=\"actionButtonText\"\n\t\t[actionIcon]=\"actionButtonIcon\"\n\t\t(action)=\"action.emit()\"\n\t\t[itemsSelectedAmount]=\"selectedRows.length\"\n\t\t[enableExport]=\"enableExport\"\n\t\t(export)=\"export.emit()\"\n\t\t[loading]=\"headerLoading\"\n\t>\n\t\t<ng-container *ngIf=\"headerCustomFilterTemplate\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"headerCustomFilterTemplate\"\n\t\t\t></ng-container>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"headerCustomActionsTemplate\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"headerCustomActionsTemplate\"\n\t\t\t></ng-container>\n\t\t</ng-container>\n\t</p-table-header>\n\n\t<div\n\t\tclass=\"relative flex-1\"\n\t\t*ngIf=\"enableScroll; else rowsTemplate\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex flex-col overflow-x-auto\"\n\t\t\t#scrollContainer\n\t\t\t[class]=\"\n\t\t\t\tcn(\n\t\t\t\t\t'before:absolute before:top-0 before:left-0 before:z-[1] before:pointer-events-none',\n\t\t\t\t\t'before:w-24 before:h-full before:transition-opacity',\n\t\t\t\t\t'before:bg-gradient-to-r before:from-white dark:before:from-hurricane-700 before:via-white/80 dark:before:via-hurricane-700/90 before:to-transparent',\n\t\t\t\t\t'after:absolute after:top-0 after:right-0 after:z-[0] before:pointer-events-none',\n\t\t\t\t\t'after:w-24 after:h-full after:transition-opacity',\n\t\t\t\t\t'after:bg-gradient-to-l after:from-white after:dark:from-hurricane-700 after:via-white/80 dark:after:via-hurricane-700/90 after:to-transparent',\n\t\t\t\t\t{\n\t\t\t\t\t\t'before:opacity-0': reachedScrollStart$ | async,\n\t\t\t\t\t\t'after:opacity-0': reachedScrollEnd$ | async,\n\t\t\t\t\t\t'before:opacity-100': (reachedScrollStart$ | async) === false,\n\t\t\t\t\t\t'after:opacity-100': (reachedScrollEnd$ | async) === false\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\"\n\t\t\t(scroll)=\"onContainerXScroll($event)\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"rowsTemplate\"></ng-container>\n\t\t</div>\n\t</div>\n\n\t<ng-container *ngIf=\"enableFloatingMenu && enableRowSelection\">\n\t\t<p-floating-menu-container\n\t\t\t[usedInTable]=\"true\"\n\t\t\t[class]=\"\n\t\t\t\tfloatingMenuContainerClass({\n\t\t\t\t\thasFooter: enableFooter && (footerHidden$ | async) === false,\n\t\t\t\t\tactive: selectedRows.length > 0,\n\t\t\t\t\tshown: $any(floatingMenuShown$ | async)\n\t\t\t\t})\n\t\t\t\"\n\t\t\t[amount]=\"floatingMenuAmountSelectedText\"\n\t\t\t[enableAmountSelected]=\"!!(rowActionsFloating$ | async)?.length\"\n\t\t\t(close)=\"_selectAllChange(null, false)\"\n\t\t>\n\t\t\t<p-floating-menu-item\n\t\t\t\t*ngFor=\"let action of rowActionsFloating$ | async\"\n\t\t\t\tslot=\"floating-menu-item\"\n\t\t\t\t[disabled]=\"\n\t\t\t\t\t(action['type'] === 'single' && selectedRows.length > 1) ||\n\t\t\t\t\taction['disabled']\n\t\t\t\t\"\n\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t[iconFlip]=\"action['iconFlip']\"\n\t\t\t\t(click)=\"_rowActionClick(action)\"\n\t\t\t>\n\t\t\t\t{{ action['label'] }}\n\t\t\t</p-floating-menu-item>\n\t\t</p-floating-menu-container>\n\t</ng-container>\n\n\t<p-table-footer\n\t\t*ngIf=\"enableFooter\"\n\t\t[hideOnSinglePage]=\"hideOnSinglePage\"\n\t\t[enablePaginationSize]=\"enablePaginationSize\"\n\t\t[pageSize]=\"pageSize\"\n\t\t[pageSizeOptions]=\"pageSizeOptions\"\n\t\t(pageSizeChange)=\"onPageSizeChange($event)\"\n\t\t[enablePaginationPages]=\"enablePaginationPages\"\n\t\t[page]=\"page\"\n\t\t[total]=\"total\"\n\t\t(pageChange)=\"onPageChange($event)\"\n\t\t[loading]=\"footerLoading\"\n\t\t(hiddenChange)=\"footerHidden$.next($event.detail)\"\n\t\t[tableHeaderHasAction]=\"enableHeader && enableAction && actionButtonEnabled\"\n\t></p-table-footer>\n</p-table-container>\n\n<ng-template #rowsTemplate>\n\t<p-table-row\n\t\t*ngIf=\"(extraHeaders$ | async)?.length\"\n\t\tvariant=\"header-secondary\"\n\t\tclass=\"z-[2]\"\n\t\t[isLast]=\"true\"\n\t>\n\t\t<ng-container *ngFor=\"let col of extraHeaders$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\t[definition]=\"col\"\n\t\t\t\tvariant=\"header-secondary\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[checkboxOffset]=\"index === 0 && enableRowSelection\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t>\n\t\t\t\t<b>{{ col.name }}</b>\n\t\t\t</p-table-cell-ngx>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<p-table-row variant=\"header\">\n\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[value]=\"col.name\"\n\t\t\t\tvariant=\"header\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[checkbox]=\"\n\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t: undefined\n\t\t\t\t\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t></p-table-cell-ngx>\n\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t<p-checkbox\n\t\t\t\t\t(checkedChange)=\"_selectAllChange($event)\"\n\t\t\t\t\t[checked]=\"_selectionContainsAll()\"\n\t\t\t\t\t[indeterminate]=\"_selectionIndeterminate()\"\n\t\t\t\t\t[class.opacity-0]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[disabled]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t></p-checkbox>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<div class=\"flex flex-1 flex-col\">\n\t\t<ng-container *ngIf=\"loading; else contentTemplate\">\n\t\t\t<p-table-row\n\t\t\t\t*ngFor=\"let r of loadingRows; let rowIndex = index\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t[isLast]=\"rowIndex === loadingRows.length - 1\"\n\t\t\t>\n\t\t\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\tvariant=\"loading\"\n\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t></p-table-cell-ngx>\n\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t<p-loader\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tclass=\"h-6 w-6 rounded\"\n\t\t\t\t\t\t></p-loader>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\n\t\t<ng-template #contentTemplate>\n\t\t\t<ng-container *ngIf=\"parsedItems?.length; else emptyStateTemplate\">\n\t\t\t\t<p-table-row\n\t\t\t\t\t*ngFor=\"let item of parsedItems; let rowIndex = index\"\n\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t[isLast]=\"rowIndex === parsedItems.length - 1\"\n\t\t\t\t\t(click)=\"_rowClick($event, rowIndex)\"\n\t\t\t\t>\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\tparseRowActionsRow(\n\t\t\t\t\t\t\t\trowActionsRow$ | async,\n\t\t\t\t\t\t\t\trowIndex\n\t\t\t\t\t\t\t) as rowActionsRow\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngFor=\"let col of columns$ | async; let index = index\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t\t\t[template]=\"col.template\"\n\t\t\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t\t\t></p-table-cell-ngx>\n\n\t\t\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\t\t\t\t(checkedChange)=\"_checkboxChange($event.target, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[disabled]=\"_checkboxDisabled(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\t\t></p-checkbox>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t<p-table-row-actions-container\n\t\t\t\t\t\t\t*ngIf=\"!!rowActionsRow?.length && !(isMobile$ | async)\"\n\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\tslot=\"actions\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-container *ngFor=\"let action of rowActionsRow\">\n\t\t\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\t\t\t\taction.showFunction\n\t\t\t\t\t\t\t\t\t\t\t? action.showFunction(parsedItems[rowIndex])\n\t\t\t\t\t\t\t\t\t\t\t: true\n\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t[content]=\"action['label']\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\t\t\tdata-is-action\n\t\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t\t\t\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t\t\t\t\t\t\ticonFlip=\"action.iconFlip\"\n\t\t\t\t\t\t\t\t\t\ticonOnly=\"true\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"action['disabled']\"\n\t\t\t\t\t\t\t\t\t\t[routerLink]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.routerLink\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionRouterLink(action.routerLink, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t | async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t[queryParams]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.queryParams\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionQueryParams(action.queryParams, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t | async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t(onClick)=\"_rowActionClick(action, rowIndex)\"\n\t\t\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</p-table-row-actions-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</p-table-row>\n\t\t\t</ng-container>\n\t\t</ng-template>\n\n\t\t<ng-container *ngFor=\"let customRow of customRows\">\n\t\t\t<p-table-row\n\t\t\t\t[variant]=\"customRow.variant\"\n\t\t\t\t[class]=\"{\n\t\t\t\t\t'z-[2]': customRow.variant === 'secondary'\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"customRow.templateRef\"></ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\t</div>\n</ng-template>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n\t<p-modal\n\t\t[header]=\"filterModalHeaderText\"\n\t\t[show]=\"filterModalShow$ | async\"\n\t\t(closed)=\"filterModalShow$.next(false)\"\n\t>\n\t\t<div\n\t\t\tslot=\"content\"\n\t\t\tclass=\"flex flex-col gap-6\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"filterModalTemplate\"></ng-container>\n\t\t</div>\n\t\t<div\n\t\t\tslot=\"footer\"\n\t\t\tclass=\"flex w-full justify-between gap-4\"\n\t\t>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowResetMobile\"\n\t\t\t\tclass=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset(true)\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowReset\"\n\t\t\t\tclass=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset()\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\tclass=\"ml-auto w-full tablet:w-auto\"\n\t\t\t\ticon=\"checkmark\"\n\t\t\t\t(onClick)=\"onFilterModalSave()\"\n\t\t\t>\n\t\t\t\t{{ filterModalSaveText }}\n\t\t\t</p-button>\n\t\t</div>\n\t</p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n\t<p-empty-state\n\t\t*ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n\t\tclass=\"my-16 self-center\"\n\t\t[illustration]=\"emptyStateFilteredIllustration\"\n\t\t[header]=\"emptyStateFilteredHeader\"\n\t\t[content]=\"emptyStateFilteredContent\"\n\t\t[enableAction]=\"false\"\n\t></p-empty-state>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n\t<p-empty-state\n\t\tclass=\"my-16 self-center\"\n\t\t[illustration]=\"emptyStateIllustration\"\n\t\t[header]=\"emptyStateHeader\"\n\t\t[content]=\"emptyStateContent\"\n\t\t[enableAction]=\"enableEmptyStateAction\"\n\t\t[actionText]=\"emptyStateAction\"\n\t\t[actionIcon]=\"emptyStateActionIcon\"\n\t\t(action)=\"emptyStateClicked()\"\n\t></p-empty-state>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: PButton, selector: "p-button", inputs: ["active", "as", "buttonGroupPosition", "chevron", "chevronPosition", "class", "disabled", "error", "href", "icon", "iconClass", "iconFlip", "iconOnly", "iconPosition", "iconRotate", "inheritText", "label", "loading", "size", "tabIndex", "target", "type", "underline", "variant"] }, { kind: "component", type: PCheckbox, selector: "p-checkbox", inputs: ["checked", "disabled", "id", "indeterminate", "name", "required"] }, { kind: "component", type: PEmptyState, selector: "p-empty-state", inputs: ["actionIcon", "actionIconPosition", "actionLoading", "actionText", "actionVariant", "content", "enableAction", "header", "illustration"] }, { kind: "component", type: PFloatingMenuContainer, selector: "p-floating-menu-container", inputs: ["amount", "amountSelectedTemplate", "enableAmountSelected", "enableClose", "usedInTable"] }, { kind: "component", type: PFloatingMenuItem, selector: "p-floating-menu-item", inputs: ["disabled", "hover", "icon", "iconFlip", "iconPosition", "iconRotate", "loading"] }, { 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"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enablePaginationPages", "enablePaginationSize", "hideOnSinglePage", "loading", "page", "pageSize", "pageSizeOptions", "tableHeaderHasAction", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["actionButtonTemplate", "actionIcon", "actionLoading", "actionText", "activeQuickFilterIdentifier", "canUseAction", "enableAction", "enableExport", "enableFilter", "enableFilterDesktop", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "loading", "query", "quickFilters", "selectedFiltersAmount"] }, { kind: "component", type: PTableRow, selector: "p-table-row", inputs: ["checked", "enableHover", "isLast", "variant"] }, { kind: "component", type: PTableRowActionsContainer, selector: "p-table-row-actions-container", inputs: ["checked"] }, { kind: "component", type: PTooltip, selector: "p-tooltip", inputs: ["canManuallyClose", "content", "enableUserInput", "offset", "placement", "show", "strategy", "variant"] }, { kind: "component", type: TableCell, selector: "p-table-cell-ngx", inputs: ["variant", "index", "rowIndex", "definition", "item", "value", "checkbox", "checkboxOffset", "template", "scrollable"] }, { kind: "directive", type: TableFooterDirective, selector: "p-table-footer" }, { kind: "directive", type: TableHeaderDirective, selector: "p-table-header" }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4708
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4709
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TableComponent, isStandalone: false, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", headerLoading: "headerLoading", footerLoading: "footerLoading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", rowSelectionLimit: "rowSelectionLimit", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", enableFloatingMenu: "enableFloatingMenu", floatingMenuAmountSelectedText: "floatingMenuAmountSelectedText", floatingMenuAmountSelectedTemplate: "floatingMenuAmountSelectedTemplate", enableHeader: "enableHeader", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", enableFilterDesktop: "enableFilterDesktop", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableAction: "enableAction", actionButtonLoading: "actionButtonLoading", actionButtonIcon: "actionButtonIcon", actionButtonEnabled: "actionButtonEnabled", actionButtonText: "actionButtonText", actionButtonTemplate: "actionButtonTemplate", enableFooter: "enableFooter", enablePaginationSize: "enablePaginationSize", enablePaginationPages: "enablePaginationPages", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage", emptyStateType: "emptyStateType", emptyStateIllustration: "emptyStateIllustration", emptyStateHeader: "emptyStateHeader", emptyStateContent: "emptyStateContent", emptyStateAction: "emptyStateAction", emptyStateActionIcon: "emptyStateActionIcon", enableEmptyStateAction: "enableEmptyStateAction", emptyStateFilteredIllustration: "emptyStateFilteredIllustration", emptyStateFilteredHeader: "emptyStateFilteredHeader", emptyStateFilteredContent: "emptyStateFilteredContent", enableScroll: "enableScroll", shadow: "shadow", 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", action: "action", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export", emptyStateActionClick: "emptyStateActionClick", filterModalShow: "filterModalShow", filterModalSave: "filterModalSave", filterModalReset: "filterModalReset" }, host: { listeners: { "window:resize": "onResize($event)", "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" }, properties: { "class": "this.hostClass", "attr.data-theme": "this.theme" } }, queries: [{ propertyName: "headerCustomFilterTemplate", first: true, predicate: TableCustomFilterDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "headerCustomActionsTemplate", first: true, predicate: TableCustomActionsDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "filterModalTemplate", first: true, predicate: TableFilterModalDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "columnDefinitions", predicate: TableColumnComponent }, { propertyName: "extraHeaderDefinitions", predicate: TableExtraHeaderComponent }, { propertyName: "rowActions", predicate: TableRowActionComponent }, { propertyName: "customRows", predicate: TableCustomRowDirective }], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "tableRows", predicate: PTableRow, descendants: true, read: ElementRef }, { propertyName: "tableCells", predicate: TableCellComponent, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n\t<p-table-header\n\t\t*ngIf=\"enableHeader\"\n\t\tclass=\"mb-8\"\n\t\t[actionButtonTemplate]=\"actionButtonTemplate\"\n\t\t[actionIcon]=\"actionButtonIcon\"\n\t\t[actionLoading]=\"actionButtonLoading\"\n\t\t[actionText]=\"actionButtonText\"\n\t\t[activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n\t\t[canUseAction]=\"actionButtonEnabled\"\n\t\t[enableAction]=\"enableAction\"\n\t\t[enableExport]=\"enableExport\"\n\t\t[enableFilter]=\"enableFilter\"\n\t\t[enableFilterDesktop]=\"enableFilterDesktop\"\n\t\t[enableSearch]=\"enableSearch\"\n\t\t[filterButtonTemplate]=\"filterButtonTemplate\"\n\t\t[itemsSelectedAmount]=\"selectedRows.length\"\n\t\t[loading]=\"headerLoading\"\n\t\t[query]=\"query\"\n\t\t[quickFilters]=\"quickFilters\"\n\t\t[selectedFiltersAmount]=\"selectedFiltersAmount\"\n\t\t(action)=\"action.emit()\"\n\t\t(export)=\"export.emit()\"\n\t\t(filter)=\"filterModalShow$.next(true)\"\n\t\t(queryChange)=\"onQueryChange($event)\"\n\t\t(quickFilter)=\"onQuickFilter($event)\"\n\t>\n\t\t<ng-container *ngIf=\"headerCustomFilterTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"headerCustomFilterTemplate\" />\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"headerCustomActionsTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"headerCustomActionsTemplate\" />\n\t\t</ng-container>\n\t</p-table-header>\n\n\t<div\n\t\t*ngIf=\"enableScroll; else rowsTemplate\"\n\t\tclass=\"relative flex-1\"\n\t>\n\t\t<div\n\t\t\t#scrollContainer\n\t\t\tclass=\"flex flex-col overflow-x-auto\"\n\t\t\t[class]=\"\n\t\t\t\tcn(\n\t\t\t\t\t'before:absolute before:top-0 before:left-0 before:z-[1] before:pointer-events-none',\n\t\t\t\t\t'before:w-24 before:h-full before:transition-opacity',\n\t\t\t\t\t'before:bg-gradient-to-r before:from-white dark:before:from-hurricane-700 before:via-white/80 dark:before:via-hurricane-700/90 before:to-transparent',\n\t\t\t\t\t'after:absolute after:top-0 after:right-0 after:z-[0] before:pointer-events-none',\n\t\t\t\t\t'after:w-24 after:h-full after:transition-opacity',\n\t\t\t\t\t'after:bg-gradient-to-l after:from-white after:dark:from-hurricane-700 after:via-white/80 dark:after:via-hurricane-700/90 after:to-transparent',\n\t\t\t\t\t{\n\t\t\t\t\t\t'before:opacity-0': reachedScrollStart$ | async,\n\t\t\t\t\t\t'after:opacity-0': reachedScrollEnd$ | async,\n\t\t\t\t\t\t'before:opacity-100': (reachedScrollStart$ | async) === false,\n\t\t\t\t\t\t'after:opacity-100': (reachedScrollEnd$ | async) === false,\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\"\n\t\t\t(scroll)=\"onContainerXScroll($event)\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"rowsTemplate\" />\n\t\t</div>\n\t</div>\n\n\t<ng-container *ngIf=\"enableFloatingMenu && enableRowSelection\">\n\t\t<p-floating-menu-container\n\t\t\t[amount]=\"floatingMenuAmountSelectedText\"\n\t\t\t[class]=\"\n\t\t\t\tfloatingMenuContainerClass({\n\t\t\t\t\thasFooter: enableFooter && (footerHidden$ | async) === false,\n\t\t\t\t\tactive: selectedRows.length > 0,\n\t\t\t\t\tshown: $any(floatingMenuShown$ | async),\n\t\t\t\t})\n\t\t\t\"\n\t\t\t[enableAmountSelected]=\"!!(rowActionsFloating$ | async)?.length\"\n\t\t\t[usedInTable]=\"true\"\n\t\t\t(close)=\"_selectAllChange(null, false)\"\n\t\t>\n\t\t\t<p-floating-menu-item\n\t\t\t\t*ngFor=\"let action of rowActionsFloating$ | async\"\n\t\t\t\tslot=\"floating-menu-item\"\n\t\t\t\t[disabled]=\"\n\t\t\t\t\t(action['type'] === 'single' && selectedRows.length > 1) ||\n\t\t\t\t\taction['disabled']\n\t\t\t\t\"\n\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t[iconFlip]=\"action['iconFlip']\"\n\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t(click)=\"_rowActionClick(action)\"\n\t\t\t>\n\t\t\t\t{{ action['label'] }}\n\t\t\t</p-floating-menu-item>\n\t\t</p-floating-menu-container>\n\t</ng-container>\n\n\t<p-table-footer\n\t\t*ngIf=\"enableFooter\"\n\t\t[enablePaginationPages]=\"enablePaginationPages\"\n\t\t[enablePaginationSize]=\"enablePaginationSize\"\n\t\t[hideOnSinglePage]=\"hideOnSinglePage\"\n\t\t[loading]=\"footerLoading\"\n\t\t[page]=\"page\"\n\t\t[pageSize]=\"pageSize\"\n\t\t[pageSizeOptions]=\"pageSizeOptions\"\n\t\t[tableHeaderHasAction]=\"enableHeader && enableAction && actionButtonEnabled\"\n\t\t[total]=\"total\"\n\t\t(hiddenChange)=\"footerHidden$.next($event.detail)\"\n\t\t(pageChange)=\"onPageChange($event)\"\n\t\t(pageSizeChange)=\"onPageSizeChange($event)\"\n\t/>\n</p-table-container>\n\n<ng-template #rowsTemplate>\n\t<p-table-row\n\t\t*ngIf=\"(extraHeaders$ | async)?.length\"\n\t\tclass=\"z-[2]\"\n\t\tvariant=\"header-secondary\"\n\t\t[isLast]=\"true\"\n\t>\n\t\t<ng-container *ngFor=\"let col of extraHeaders$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\tvariant=\"header-secondary\"\n\t\t\t\t[checkboxOffset]=\"index === 0 && enableRowSelection\"\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t>\n\t\t\t\t<b>{{ col.name }}</b>\n\t\t\t</p-table-cell-ngx>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<p-table-row variant=\"header\">\n\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\tvariant=\"header\"\n\t\t\t\t[checkbox]=\"\n\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t: undefined\n\t\t\t\t\"\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t[value]=\"col.name\"\n\t\t\t/>\n\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t<p-checkbox\n\t\t\t\t\t[checked]=\"_selectionContainsAll()\"\n\t\t\t\t\t[class.opacity-0]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[disabled]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[indeterminate]=\"_selectionIndeterminate()\"\n\t\t\t\t\t(checkedChange)=\"_selectAllChange($event)\"\n\t\t\t\t/>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<div class=\"flex flex-1 flex-col\">\n\t\t<ng-container *ngIf=\"loading; else contentTemplate\">\n\t\t\t<p-table-row\n\t\t\t\t*ngFor=\"let r of loadingRows; let rowIndex = index\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t[isLast]=\"rowIndex === loadingRows.length - 1\"\n\t\t\t>\n\t\t\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\tvariant=\"loading\"\n\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t/>\n\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t<p-loader\n\t\t\t\t\t\t\tclass=\"h-6 w-6 rounded\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\n\t\t<ng-template #contentTemplate>\n\t\t\t<ng-container *ngIf=\"parsedItems?.length; else emptyStateTemplate\">\n\t\t\t\t<p-table-row\n\t\t\t\t\t*ngFor=\"let item of parsedItems; let rowIndex = index\"\n\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t\t[isLast]=\"rowIndex === parsedItems.length - 1\"\n\t\t\t\t\t(click)=\"_rowClick($event, rowIndex)\"\n\t\t\t\t>\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\tparseRowActionsRow(\n\t\t\t\t\t\t\t\trowActionsRow$ | async,\n\t\t\t\t\t\t\t\trowIndex\n\t\t\t\t\t\t\t) as rowActionsRow\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngFor=\"let col of columns$ | async; let index = index\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t\t\t\t[template]=\"col.template\"\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[disabled]=\"_checkboxDisabled(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t(checkedChange)=\"_checkboxChange($event.target, rowIndex)\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t<p-table-row-actions-container\n\t\t\t\t\t\t\t*ngIf=\"!!rowActionsRow?.length && (isMobile$ | async) === false\"\n\t\t\t\t\t\t\tslot=\"actions\"\n\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-container *ngFor=\"let action of rowActionsRow\">\n\t\t\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\t\t\t\taction.showFunction\n\t\t\t\t\t\t\t\t\t\t\t? action.showFunction(parsedItems[rowIndex])\n\t\t\t\t\t\t\t\t\t\t\t: true\n\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t[content]=\"action['label']\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\t\t\tdata-is-action\n\t\t\t\t\t\t\t\t\t\ticonFlip=\"action.iconFlip\"\n\t\t\t\t\t\t\t\t\t\ticonOnly=\"true\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"action['disabled']\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t\t\t\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t\t\t\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t\t\t\t\t\t\t[queryParams]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.queryParams\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionQueryParams(action.queryParams, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t| async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t[routerLink]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.routerLink\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionRouterLink(action.routerLink, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t| async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t(onClick)=\"_rowActionClick(action, rowIndex)\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</p-table-row-actions-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</p-table-row>\n\t\t\t</ng-container>\n\t\t</ng-template>\n\n\t\t<ng-container *ngFor=\"let customRow of customRows\">\n\t\t\t<p-table-row\n\t\t\t\t[class]=\"{\n\t\t\t\t\t'z-[2]': customRow.variant === 'secondary',\n\t\t\t\t}\"\n\t\t\t\t[variant]=\"customRow.variant\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"customRow.templateRef\" />\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\t</div>\n</ng-template>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n\t<p-modal\n\t\t[header]=\"filterModalHeaderText\"\n\t\t[show]=\"filterModalShow$ | async\"\n\t\t(closed)=\"filterModalShow$.next(false)\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex flex-col gap-6\"\n\t\t\tslot=\"content\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"filterModalTemplate\" />\n\t\t</div>\n\t\t<div\n\t\t\tclass=\"flex w-full justify-between gap-4\"\n\t\t\tslot=\"footer\"\n\t\t>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowResetMobile\"\n\t\t\t\tclass=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset(true)\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowReset\"\n\t\t\t\tclass=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset()\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\tclass=\"ml-auto w-full tablet:w-auto\"\n\t\t\t\ticon=\"checkmark\"\n\t\t\t\t(onClick)=\"onFilterModalSave()\"\n\t\t\t>\n\t\t\t\t{{ filterModalSaveText }}\n\t\t\t</p-button>\n\t\t</div>\n\t</p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n\t<p-empty-state\n\t\t*ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n\t\tclass=\"my-16 self-center\"\n\t\t[content]=\"emptyStateFilteredContent\"\n\t\t[enableAction]=\"false\"\n\t\t[header]=\"emptyStateFilteredHeader\"\n\t\t[illustration]=\"emptyStateFilteredIllustration\"\n\t/>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n\t<p-empty-state\n\t\tclass=\"my-16 self-center\"\n\t\t[actionIcon]=\"emptyStateActionIcon\"\n\t\t[actionText]=\"emptyStateAction\"\n\t\t[content]=\"emptyStateContent\"\n\t\t[enableAction]=\"enableEmptyStateAction\"\n\t\t[header]=\"emptyStateHeader\"\n\t\t[illustration]=\"emptyStateIllustration\"\n\t\t(action)=\"emptyStateClicked()\"\n\t/>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: PButton, selector: "p-button", inputs: ["active", "as", "buttonGroupPosition", "chevron", "chevronPosition", "class", "disabled", "error", "href", "icon", "iconClass", "iconFlip", "iconOnly", "iconPosition", "iconRotate", "inheritText", "label", "loading", "size", "tabIndex", "target", "type", "underline", "variant"] }, { kind: "component", type: PCheckbox, selector: "p-checkbox", inputs: ["checked", "disabled", "id", "indeterminate", "name", "required"] }, { kind: "component", type: PEmptyState, selector: "p-empty-state", inputs: ["actionIcon", "actionIconPosition", "actionLoading", "actionText", "actionVariant", "content", "enableAction", "header", "illustration"] }, { kind: "component", type: PFloatingMenuContainer, selector: "p-floating-menu-container", inputs: ["amount", "amountSelectedTemplate", "enableAmountSelected", "enableClose", "usedInTable"] }, { kind: "component", type: PFloatingMenuItem, selector: "p-floating-menu-item", inputs: ["disabled", "hover", "icon", "iconFlip", "iconPosition", "iconRotate", "loading"] }, { 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"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enablePaginationPages", "enablePaginationSize", "hideOnSinglePage", "loading", "page", "pageSize", "pageSizeOptions", "tableHeaderHasAction", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["actionButtonTemplate", "actionIcon", "actionLoading", "actionText", "activeQuickFilterIdentifier", "canUseAction", "enableAction", "enableExport", "enableFilter", "enableFilterDesktop", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "loading", "query", "quickFilters", "selectedFiltersAmount"] }, { kind: "component", type: PTableRow, selector: "p-table-row", inputs: ["checked", "enableHover", "isLast", "variant"] }, { kind: "component", type: PTableRowActionsContainer, selector: "p-table-row-actions-container", inputs: ["checked"] }, { kind: "component", type: PTooltip, selector: "p-tooltip", inputs: ["canManuallyClose", "content", "enableUserInput", "offset", "placement", "show", "strategy", "variant"] }, { kind: "component", type: TableCellComponent, selector: "p-table-cell-ngx", inputs: ["variant", "index", "rowIndex", "definition", "item", "value", "checkbox", "checkboxOffset", "template", "scrollable"] }, { kind: "directive", type: TableFooterDirective, selector: "p-table-footer" }, { kind: "directive", type: TableHeaderDirective, selector: "p-table-header" }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4798
4710
|
};
|
|
4799
|
-
|
|
4711
|
+
TableComponent = __decorate([
|
|
4800
4712
|
UntilDestroy({ checkProperties: true })
|
|
4801
|
-
],
|
|
4802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
4713
|
+
], TableComponent);
|
|
4714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableComponent, decorators: [{
|
|
4803
4715
|
type: Component,
|
|
4804
|
-
args: [{ selector: 'p-table-ngx', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p-table-container>\n\t<p-table-header\n\t\t*ngIf=\"enableHeader\"\n\t\tclass=\"mb-8\"\n\t\t[quickFilters]=\"quickFilters\"\n\t\t[activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n\t\t(quickFilter)=\"onQuickFilter($event)\"\n\t\t[enableSearch]=\"enableSearch\"\n\t\t[query]=\"query\"\n\t\t(queryChange)=\"onQueryChange($event)\"\n\t\t[enableFilter]=\"enableFilter\"\n\t\t[enableFilterDesktop]=\"enableFilterDesktop\"\n\t\t[selectedFiltersAmount]=\"selectedFiltersAmount\"\n\t\t[filterButtonTemplate]=\"filterButtonTemplate\"\n\t\t(filter)=\"filterModalShow$.next(true)\"\n\t\t[enableAction]=\"enableAction\"\n\t\t[canUseAction]=\"actionButtonEnabled\"\n\t\t[actionButtonTemplate]=\"actionButtonTemplate\"\n\t\t[actionLoading]=\"actionButtonLoading\"\n\t\t[actionText]=\"actionButtonText\"\n\t\t[actionIcon]=\"actionButtonIcon\"\n\t\t(action)=\"action.emit()\"\n\t\t[itemsSelectedAmount]=\"selectedRows.length\"\n\t\t[enableExport]=\"enableExport\"\n\t\t(export)=\"export.emit()\"\n\t\t[loading]=\"headerLoading\"\n\t>\n\t\t<ng-container *ngIf=\"headerCustomFilterTemplate\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"headerCustomFilterTemplate\"\n\t\t\t></ng-container>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"headerCustomActionsTemplate\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"headerCustomActionsTemplate\"\n\t\t\t></ng-container>\n\t\t</ng-container>\n\t</p-table-header>\n\n\t<div\n\t\tclass=\"relative flex-1\"\n\t\t*ngIf=\"enableScroll; else rowsTemplate\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex flex-col overflow-x-auto\"\n\t\t\t#scrollContainer\n\t\t\t[class]=\"\n\t\t\t\tcn(\n\t\t\t\t\t'before:absolute before:top-0 before:left-0 before:z-[1] before:pointer-events-none',\n\t\t\t\t\t'before:w-24 before:h-full before:transition-opacity',\n\t\t\t\t\t'before:bg-gradient-to-r before:from-white dark:before:from-hurricane-700 before:via-white/80 dark:before:via-hurricane-700/90 before:to-transparent',\n\t\t\t\t\t'after:absolute after:top-0 after:right-0 after:z-[0] before:pointer-events-none',\n\t\t\t\t\t'after:w-24 after:h-full after:transition-opacity',\n\t\t\t\t\t'after:bg-gradient-to-l after:from-white after:dark:from-hurricane-700 after:via-white/80 dark:after:via-hurricane-700/90 after:to-transparent',\n\t\t\t\t\t{\n\t\t\t\t\t\t'before:opacity-0': reachedScrollStart$ | async,\n\t\t\t\t\t\t'after:opacity-0': reachedScrollEnd$ | async,\n\t\t\t\t\t\t'before:opacity-100': (reachedScrollStart$ | async) === false,\n\t\t\t\t\t\t'after:opacity-100': (reachedScrollEnd$ | async) === false\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\"\n\t\t\t(scroll)=\"onContainerXScroll($event)\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"rowsTemplate\"></ng-container>\n\t\t</div>\n\t</div>\n\n\t<ng-container *ngIf=\"enableFloatingMenu && enableRowSelection\">\n\t\t<p-floating-menu-container\n\t\t\t[usedInTable]=\"true\"\n\t\t\t[class]=\"\n\t\t\t\tfloatingMenuContainerClass({\n\t\t\t\t\thasFooter: enableFooter && (footerHidden$ | async) === false,\n\t\t\t\t\tactive: selectedRows.length > 0,\n\t\t\t\t\tshown: $any(floatingMenuShown$ | async)\n\t\t\t\t})\n\t\t\t\"\n\t\t\t[amount]=\"floatingMenuAmountSelectedText\"\n\t\t\t[enableAmountSelected]=\"!!(rowActionsFloating$ | async)?.length\"\n\t\t\t(close)=\"_selectAllChange(null, false)\"\n\t\t>\n\t\t\t<p-floating-menu-item\n\t\t\t\t*ngFor=\"let action of rowActionsFloating$ | async\"\n\t\t\t\tslot=\"floating-menu-item\"\n\t\t\t\t[disabled]=\"\n\t\t\t\t\t(action['type'] === 'single' && selectedRows.length > 1) ||\n\t\t\t\t\taction['disabled']\n\t\t\t\t\"\n\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t[iconFlip]=\"action['iconFlip']\"\n\t\t\t\t(click)=\"_rowActionClick(action)\"\n\t\t\t>\n\t\t\t\t{{ action['label'] }}\n\t\t\t</p-floating-menu-item>\n\t\t</p-floating-menu-container>\n\t</ng-container>\n\n\t<p-table-footer\n\t\t*ngIf=\"enableFooter\"\n\t\t[hideOnSinglePage]=\"hideOnSinglePage\"\n\t\t[enablePaginationSize]=\"enablePaginationSize\"\n\t\t[pageSize]=\"pageSize\"\n\t\t[pageSizeOptions]=\"pageSizeOptions\"\n\t\t(pageSizeChange)=\"onPageSizeChange($event)\"\n\t\t[enablePaginationPages]=\"enablePaginationPages\"\n\t\t[page]=\"page\"\n\t\t[total]=\"total\"\n\t\t(pageChange)=\"onPageChange($event)\"\n\t\t[loading]=\"footerLoading\"\n\t\t(hiddenChange)=\"footerHidden$.next($event.detail)\"\n\t\t[tableHeaderHasAction]=\"enableHeader && enableAction && actionButtonEnabled\"\n\t></p-table-footer>\n</p-table-container>\n\n<ng-template #rowsTemplate>\n\t<p-table-row\n\t\t*ngIf=\"(extraHeaders$ | async)?.length\"\n\t\tvariant=\"header-secondary\"\n\t\tclass=\"z-[2]\"\n\t\t[isLast]=\"true\"\n\t>\n\t\t<ng-container *ngFor=\"let col of extraHeaders$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\t[definition]=\"col\"\n\t\t\t\tvariant=\"header-secondary\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[checkboxOffset]=\"index === 0 && enableRowSelection\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t>\n\t\t\t\t<b>{{ col.name }}</b>\n\t\t\t</p-table-cell-ngx>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<p-table-row variant=\"header\">\n\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[value]=\"col.name\"\n\t\t\t\tvariant=\"header\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[checkbox]=\"\n\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t: undefined\n\t\t\t\t\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t></p-table-cell-ngx>\n\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t<p-checkbox\n\t\t\t\t\t(checkedChange)=\"_selectAllChange($event)\"\n\t\t\t\t\t[checked]=\"_selectionContainsAll()\"\n\t\t\t\t\t[indeterminate]=\"_selectionIndeterminate()\"\n\t\t\t\t\t[class.opacity-0]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[disabled]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t></p-checkbox>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<div class=\"flex flex-1 flex-col\">\n\t\t<ng-container *ngIf=\"loading; else contentTemplate\">\n\t\t\t<p-table-row\n\t\t\t\t*ngFor=\"let r of loadingRows; let rowIndex = index\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t[isLast]=\"rowIndex === loadingRows.length - 1\"\n\t\t\t>\n\t\t\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\tvariant=\"loading\"\n\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t></p-table-cell-ngx>\n\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t<p-loader\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tclass=\"h-6 w-6 rounded\"\n\t\t\t\t\t\t></p-loader>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\n\t\t<ng-template #contentTemplate>\n\t\t\t<ng-container *ngIf=\"parsedItems?.length; else emptyStateTemplate\">\n\t\t\t\t<p-table-row\n\t\t\t\t\t*ngFor=\"let item of parsedItems; let rowIndex = index\"\n\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t[isLast]=\"rowIndex === parsedItems.length - 1\"\n\t\t\t\t\t(click)=\"_rowClick($event, rowIndex)\"\n\t\t\t\t>\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\tparseRowActionsRow(\n\t\t\t\t\t\t\t\trowActionsRow$ | async,\n\t\t\t\t\t\t\t\trowIndex\n\t\t\t\t\t\t\t) as rowActionsRow\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngFor=\"let col of columns$ | async; let index = index\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t\t\t[template]=\"col.template\"\n\t\t\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t\t\t></p-table-cell-ngx>\n\n\t\t\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\t\t\t\t(checkedChange)=\"_checkboxChange($event.target, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[disabled]=\"_checkboxDisabled(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\t\t></p-checkbox>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t<p-table-row-actions-container\n\t\t\t\t\t\t\t*ngIf=\"!!rowActionsRow?.length && !(isMobile$ | async)\"\n\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\tslot=\"actions\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-container *ngFor=\"let action of rowActionsRow\">\n\t\t\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\t\t\t\taction.showFunction\n\t\t\t\t\t\t\t\t\t\t\t? action.showFunction(parsedItems[rowIndex])\n\t\t\t\t\t\t\t\t\t\t\t: true\n\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t[content]=\"action['label']\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\t\t\tdata-is-action\n\t\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t\t\t\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t\t\t\t\t\t\ticonFlip=\"action.iconFlip\"\n\t\t\t\t\t\t\t\t\t\ticonOnly=\"true\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"action['disabled']\"\n\t\t\t\t\t\t\t\t\t\t[routerLink]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.routerLink\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionRouterLink(action.routerLink, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t | async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t[queryParams]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.queryParams\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionQueryParams(action.queryParams, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t | async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t(onClick)=\"_rowActionClick(action, rowIndex)\"\n\t\t\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</p-table-row-actions-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</p-table-row>\n\t\t\t</ng-container>\n\t\t</ng-template>\n\n\t\t<ng-container *ngFor=\"let customRow of customRows\">\n\t\t\t<p-table-row\n\t\t\t\t[variant]=\"customRow.variant\"\n\t\t\t\t[class]=\"{\n\t\t\t\t\t'z-[2]': customRow.variant === 'secondary'\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"customRow.templateRef\"></ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\t</div>\n</ng-template>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n\t<p-modal\n\t\t[header]=\"filterModalHeaderText\"\n\t\t[show]=\"filterModalShow$ | async\"\n\t\t(closed)=\"filterModalShow$.next(false)\"\n\t>\n\t\t<div\n\t\t\tslot=\"content\"\n\t\t\tclass=\"flex flex-col gap-6\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"filterModalTemplate\"></ng-container>\n\t\t</div>\n\t\t<div\n\t\t\tslot=\"footer\"\n\t\t\tclass=\"flex w-full justify-between gap-4\"\n\t\t>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowResetMobile\"\n\t\t\t\tclass=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset(true)\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowReset\"\n\t\t\t\tclass=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset()\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\tclass=\"ml-auto w-full tablet:w-auto\"\n\t\t\t\ticon=\"checkmark\"\n\t\t\t\t(onClick)=\"onFilterModalSave()\"\n\t\t\t>\n\t\t\t\t{{ filterModalSaveText }}\n\t\t\t</p-button>\n\t\t</div>\n\t</p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n\t<p-empty-state\n\t\t*ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n\t\tclass=\"my-16 self-center\"\n\t\t[illustration]=\"emptyStateFilteredIllustration\"\n\t\t[header]=\"emptyStateFilteredHeader\"\n\t\t[content]=\"emptyStateFilteredContent\"\n\t\t[enableAction]=\"false\"\n\t></p-empty-state>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n\t<p-empty-state\n\t\tclass=\"my-16 self-center\"\n\t\t[illustration]=\"emptyStateIllustration\"\n\t\t[header]=\"emptyStateHeader\"\n\t\t[content]=\"emptyStateContent\"\n\t\t[enableAction]=\"enableEmptyStateAction\"\n\t\t[actionText]=\"emptyStateAction\"\n\t\t[actionIcon]=\"emptyStateActionIcon\"\n\t\t(action)=\"emptyStateClicked()\"\n\t></p-empty-state>\n</ng-template>\n" }]
|
|
4805
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: {
|
|
4716
|
+
args: [{ selector: 'p-table-ngx', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p-table-container>\n\t<p-table-header\n\t\t*ngIf=\"enableHeader\"\n\t\tclass=\"mb-8\"\n\t\t[actionButtonTemplate]=\"actionButtonTemplate\"\n\t\t[actionIcon]=\"actionButtonIcon\"\n\t\t[actionLoading]=\"actionButtonLoading\"\n\t\t[actionText]=\"actionButtonText\"\n\t\t[activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n\t\t[canUseAction]=\"actionButtonEnabled\"\n\t\t[enableAction]=\"enableAction\"\n\t\t[enableExport]=\"enableExport\"\n\t\t[enableFilter]=\"enableFilter\"\n\t\t[enableFilterDesktop]=\"enableFilterDesktop\"\n\t\t[enableSearch]=\"enableSearch\"\n\t\t[filterButtonTemplate]=\"filterButtonTemplate\"\n\t\t[itemsSelectedAmount]=\"selectedRows.length\"\n\t\t[loading]=\"headerLoading\"\n\t\t[query]=\"query\"\n\t\t[quickFilters]=\"quickFilters\"\n\t\t[selectedFiltersAmount]=\"selectedFiltersAmount\"\n\t\t(action)=\"action.emit()\"\n\t\t(export)=\"export.emit()\"\n\t\t(filter)=\"filterModalShow$.next(true)\"\n\t\t(queryChange)=\"onQueryChange($event)\"\n\t\t(quickFilter)=\"onQuickFilter($event)\"\n\t>\n\t\t<ng-container *ngIf=\"headerCustomFilterTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"headerCustomFilterTemplate\" />\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"headerCustomActionsTemplate\">\n\t\t\t<ng-container *ngTemplateOutlet=\"headerCustomActionsTemplate\" />\n\t\t</ng-container>\n\t</p-table-header>\n\n\t<div\n\t\t*ngIf=\"enableScroll; else rowsTemplate\"\n\t\tclass=\"relative flex-1\"\n\t>\n\t\t<div\n\t\t\t#scrollContainer\n\t\t\tclass=\"flex flex-col overflow-x-auto\"\n\t\t\t[class]=\"\n\t\t\t\tcn(\n\t\t\t\t\t'before:absolute before:top-0 before:left-0 before:z-[1] before:pointer-events-none',\n\t\t\t\t\t'before:w-24 before:h-full before:transition-opacity',\n\t\t\t\t\t'before:bg-gradient-to-r before:from-white dark:before:from-hurricane-700 before:via-white/80 dark:before:via-hurricane-700/90 before:to-transparent',\n\t\t\t\t\t'after:absolute after:top-0 after:right-0 after:z-[0] before:pointer-events-none',\n\t\t\t\t\t'after:w-24 after:h-full after:transition-opacity',\n\t\t\t\t\t'after:bg-gradient-to-l after:from-white after:dark:from-hurricane-700 after:via-white/80 dark:after:via-hurricane-700/90 after:to-transparent',\n\t\t\t\t\t{\n\t\t\t\t\t\t'before:opacity-0': reachedScrollStart$ | async,\n\t\t\t\t\t\t'after:opacity-0': reachedScrollEnd$ | async,\n\t\t\t\t\t\t'before:opacity-100': (reachedScrollStart$ | async) === false,\n\t\t\t\t\t\t'after:opacity-100': (reachedScrollEnd$ | async) === false,\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\"\n\t\t\t(scroll)=\"onContainerXScroll($event)\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"rowsTemplate\" />\n\t\t</div>\n\t</div>\n\n\t<ng-container *ngIf=\"enableFloatingMenu && enableRowSelection\">\n\t\t<p-floating-menu-container\n\t\t\t[amount]=\"floatingMenuAmountSelectedText\"\n\t\t\t[class]=\"\n\t\t\t\tfloatingMenuContainerClass({\n\t\t\t\t\thasFooter: enableFooter && (footerHidden$ | async) === false,\n\t\t\t\t\tactive: selectedRows.length > 0,\n\t\t\t\t\tshown: $any(floatingMenuShown$ | async),\n\t\t\t\t})\n\t\t\t\"\n\t\t\t[enableAmountSelected]=\"!!(rowActionsFloating$ | async)?.length\"\n\t\t\t[usedInTable]=\"true\"\n\t\t\t(close)=\"_selectAllChange(null, false)\"\n\t\t>\n\t\t\t<p-floating-menu-item\n\t\t\t\t*ngFor=\"let action of rowActionsFloating$ | async\"\n\t\t\t\tslot=\"floating-menu-item\"\n\t\t\t\t[disabled]=\"\n\t\t\t\t\t(action['type'] === 'single' && selectedRows.length > 1) ||\n\t\t\t\t\taction['disabled']\n\t\t\t\t\"\n\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t[iconFlip]=\"action['iconFlip']\"\n\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t(click)=\"_rowActionClick(action)\"\n\t\t\t>\n\t\t\t\t{{ action['label'] }}\n\t\t\t</p-floating-menu-item>\n\t\t</p-floating-menu-container>\n\t</ng-container>\n\n\t<p-table-footer\n\t\t*ngIf=\"enableFooter\"\n\t\t[enablePaginationPages]=\"enablePaginationPages\"\n\t\t[enablePaginationSize]=\"enablePaginationSize\"\n\t\t[hideOnSinglePage]=\"hideOnSinglePage\"\n\t\t[loading]=\"footerLoading\"\n\t\t[page]=\"page\"\n\t\t[pageSize]=\"pageSize\"\n\t\t[pageSizeOptions]=\"pageSizeOptions\"\n\t\t[tableHeaderHasAction]=\"enableHeader && enableAction && actionButtonEnabled\"\n\t\t[total]=\"total\"\n\t\t(hiddenChange)=\"footerHidden$.next($event.detail)\"\n\t\t(pageChange)=\"onPageChange($event)\"\n\t\t(pageSizeChange)=\"onPageSizeChange($event)\"\n\t/>\n</p-table-container>\n\n<ng-template #rowsTemplate>\n\t<p-table-row\n\t\t*ngIf=\"(extraHeaders$ | async)?.length\"\n\t\tclass=\"z-[2]\"\n\t\tvariant=\"header-secondary\"\n\t\t[isLast]=\"true\"\n\t>\n\t\t<ng-container *ngFor=\"let col of extraHeaders$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\tvariant=\"header-secondary\"\n\t\t\t\t[checkboxOffset]=\"index === 0 && enableRowSelection\"\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t>\n\t\t\t\t<b>{{ col.name }}</b>\n\t\t\t</p-table-cell-ngx>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<p-table-row variant=\"header\">\n\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t<p-table-cell-ngx\n\t\t\t\tvariant=\"header\"\n\t\t\t\t[checkbox]=\"\n\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t: undefined\n\t\t\t\t\"\n\t\t\t\t[definition]=\"col\"\n\t\t\t\t[index]=\"index\"\n\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t[value]=\"col.name\"\n\t\t\t/>\n\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t<p-checkbox\n\t\t\t\t\t[checked]=\"_selectionContainsAll()\"\n\t\t\t\t\t[class.opacity-0]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[disabled]=\"rowSelectionLimit !== undefined\"\n\t\t\t\t\t[indeterminate]=\"_selectionIndeterminate()\"\n\t\t\t\t\t(checkedChange)=\"_selectAllChange($event)\"\n\t\t\t\t/>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t</p-table-row>\n\n\t<div class=\"flex flex-1 flex-col\">\n\t\t<ng-container *ngIf=\"loading; else contentTemplate\">\n\t\t\t<p-table-row\n\t\t\t\t*ngFor=\"let r of loadingRows; let rowIndex = index\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t[isLast]=\"rowIndex === loadingRows.length - 1\"\n\t\t\t>\n\t\t\t\t<ng-container *ngFor=\"let col of columns$ | async; let index = index\">\n\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\tvariant=\"loading\"\n\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t/>\n\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t<p-loader\n\t\t\t\t\t\t\tclass=\"h-6 w-6 rounded\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\n\t\t<ng-template #contentTemplate>\n\t\t\t<ng-container *ngIf=\"parsedItems?.length; else emptyStateTemplate\">\n\t\t\t\t<p-table-row\n\t\t\t\t\t*ngFor=\"let item of parsedItems; let rowIndex = index\"\n\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t[enableHover]=\"enableRowSelection || enableRowClick\"\n\t\t\t\t\t[isLast]=\"rowIndex === parsedItems.length - 1\"\n\t\t\t\t\t(click)=\"_rowClick($event, rowIndex)\"\n\t\t\t\t>\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\tparseRowActionsRow(\n\t\t\t\t\t\t\t\trowActionsRow$ | async,\n\t\t\t\t\t\t\t\trowIndex\n\t\t\t\t\t\t\t) as rowActionsRow\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngFor=\"let col of columns$ | async; let index = index\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-table-cell-ngx\n\t\t\t\t\t\t\t\t[checkbox]=\"\n\t\t\t\t\t\t\t\t\t(index === 0 || col.hasCheckbox) && enableRowSelection\n\t\t\t\t\t\t\t\t\t\t? checkboxTemplate\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[definition]=\"col\"\n\t\t\t\t\t\t\t\t[index]=\"index\"\n\t\t\t\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t\t\t\t[rowIndex]=\"rowIndex\"\n\t\t\t\t\t\t\t\t[scrollable]=\"this.enableScroll\"\n\t\t\t\t\t\t\t\t[template]=\"col.template\"\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t<ng-template #checkboxTemplate>\n\t\t\t\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t[disabled]=\"_checkboxDisabled(item, rowIndex)\"\n\t\t\t\t\t\t\t\t\t(checkedChange)=\"_checkboxChange($event.target, rowIndex)\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t<p-table-row-actions-container\n\t\t\t\t\t\t\t*ngIf=\"!!rowActionsRow?.length && (isMobile$ | async) === false\"\n\t\t\t\t\t\t\tslot=\"actions\"\n\t\t\t\t\t\t\t[checked]=\"_selectionContains(item, rowIndex)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-container *ngFor=\"let action of rowActionsRow\">\n\t\t\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\t\t\t*ngIf=\"\n\t\t\t\t\t\t\t\t\t\taction.showFunction\n\t\t\t\t\t\t\t\t\t\t\t? action.showFunction(parsedItems[rowIndex])\n\t\t\t\t\t\t\t\t\t\t\t: true\n\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t[content]=\"action['label']\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\t\t\tdata-is-action\n\t\t\t\t\t\t\t\t\t\ticonFlip=\"action.iconFlip\"\n\t\t\t\t\t\t\t\t\t\ticonOnly=\"true\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"action['disabled']\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"action['icon']\"\n\t\t\t\t\t\t\t\t\t\t[iconRotate]=\"action['iconRotate']\"\n\t\t\t\t\t\t\t\t\t\t[loading]=\"action['loading']\"\n\t\t\t\t\t\t\t\t\t\t[queryParams]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.queryParams\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionQueryParams(action.queryParams, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t| async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t[routerLink]=\"\n\t\t\t\t\t\t\t\t\t\t\taction.routerLink\n\t\t\t\t\t\t\t\t\t\t\t\t? (_getActionRouterLink(action.routerLink, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t| async)\n\t\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t(onClick)=\"_rowActionClick(action, rowIndex)\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</p-table-row-actions-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</p-table-row>\n\t\t\t</ng-container>\n\t\t</ng-template>\n\n\t\t<ng-container *ngFor=\"let customRow of customRows\">\n\t\t\t<p-table-row\n\t\t\t\t[class]=\"{\n\t\t\t\t\t'z-[2]': customRow.variant === 'secondary',\n\t\t\t\t}\"\n\t\t\t\t[variant]=\"customRow.variant\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"customRow.templateRef\" />\n\t\t\t</p-table-row>\n\t\t</ng-container>\n\t</div>\n</ng-template>\n\n<ng-container *ngIf=\"filterModalTemplate\">\n\t<p-modal\n\t\t[header]=\"filterModalHeaderText\"\n\t\t[show]=\"filterModalShow$ | async\"\n\t\t(closed)=\"filterModalShow$.next(false)\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex flex-col gap-6\"\n\t\t\tslot=\"content\"\n\t\t>\n\t\t\t<ng-container *ngTemplateOutlet=\"filterModalTemplate\" />\n\t\t</div>\n\t\t<div\n\t\t\tclass=\"flex w-full justify-between gap-4\"\n\t\t\tslot=\"footer\"\n\t\t>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowResetMobile\"\n\t\t\t\tclass=\"flex w-full tablet:w-auto desktop-xs:hidden\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset(true)\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\t*ngIf=\"filterModalShowReset\"\n\t\t\t\tclass=\"hidden w-full tablet:w-auto desktop-xs:flex\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(onClick)=\"onFilterModalReset()\"\n\t\t\t>\n\t\t\t\t{{ filterModalResetText }}\n\t\t\t</p-button>\n\t\t\t<p-button\n\t\t\t\tclass=\"ml-auto w-full tablet:w-auto\"\n\t\t\t\ticon=\"checkmark\"\n\t\t\t\t(onClick)=\"onFilterModalSave()\"\n\t\t\t>\n\t\t\t\t{{ filterModalSaveText }}\n\t\t\t</p-button>\n\t\t</div>\n\t</p-modal>\n</ng-container>\n\n<ng-template #emptyStateTemplate>\n\t<p-empty-state\n\t\t*ngIf=\"emptyStateType === 'filtered'; else emptyStateNonFilterTemplate\"\n\t\tclass=\"my-16 self-center\"\n\t\t[content]=\"emptyStateFilteredContent\"\n\t\t[enableAction]=\"false\"\n\t\t[header]=\"emptyStateFilteredHeader\"\n\t\t[illustration]=\"emptyStateFilteredIllustration\"\n\t/>\n</ng-template>\n\n<ng-template #emptyStateNonFilterTemplate>\n\t<p-empty-state\n\t\tclass=\"my-16 self-center\"\n\t\t[actionIcon]=\"emptyStateActionIcon\"\n\t\t[actionText]=\"emptyStateAction\"\n\t\t[content]=\"emptyStateContent\"\n\t\t[enableAction]=\"enableEmptyStateAction\"\n\t\t[header]=\"emptyStateHeader\"\n\t\t[illustration]=\"emptyStateIllustration\"\n\t\t(action)=\"emptyStateClicked()\"\n\t/>\n</ng-template>\n" }]
|
|
4717
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { hostClass: [{
|
|
4806
4718
|
type: HostBinding,
|
|
4807
4719
|
args: ['class']
|
|
4808
4720
|
}], theme: [{
|
|
@@ -4933,7 +4845,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4933
4845
|
args: [PTableRow, { read: ElementRef }]
|
|
4934
4846
|
}], tableCells: [{
|
|
4935
4847
|
type: ViewChildren,
|
|
4936
|
-
args: [
|
|
4848
|
+
args: [TableCellComponent, { read: ElementRef }]
|
|
4937
4849
|
}], scrollContainer: [{
|
|
4938
4850
|
type: ViewChild,
|
|
4939
4851
|
args: ['scrollContainer']
|
|
@@ -4955,10 +4867,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4955
4867
|
}]
|
|
4956
4868
|
}], columnDefinitions: [{
|
|
4957
4869
|
type: ContentChildren,
|
|
4958
|
-
args: [
|
|
4870
|
+
args: [TableColumnComponent]
|
|
4959
4871
|
}], extraHeaderDefinitions: [{
|
|
4960
4872
|
type: ContentChildren,
|
|
4961
|
-
args: [
|
|
4873
|
+
args: [TableExtraHeaderComponent]
|
|
4962
4874
|
}], filterModalTemplate: [{
|
|
4963
4875
|
type: ContentChild,
|
|
4964
4876
|
args: [TableFilterModalDirective, {
|
|
@@ -4967,7 +4879,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4967
4879
|
}]
|
|
4968
4880
|
}], rowActions: [{
|
|
4969
4881
|
type: ContentChildren,
|
|
4970
|
-
args: [
|
|
4882
|
+
args: [TableRowActionComponent]
|
|
4971
4883
|
}], customRows: [{
|
|
4972
4884
|
type: ContentChildren,
|
|
4973
4885
|
args: [TableCustomRowDirective]
|
|
@@ -5004,16 +4916,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5004
4916
|
}] } });
|
|
5005
4917
|
|
|
5006
4918
|
const TABLE_COMPONENTS = [
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
4919
|
+
TableComponent,
|
|
4920
|
+
TableCellComponent,
|
|
4921
|
+
TableColumnComponent,
|
|
4922
|
+
TableRowActionComponent,
|
|
4923
|
+
TableExtraHeaderComponent,
|
|
5012
4924
|
];
|
|
5013
4925
|
|
|
5014
4926
|
class TableModule {
|
|
5015
4927
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5016
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: TableModule, declarations: [
|
|
4928
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: TableModule, declarations: [TableComponent, TableCellComponent, TableColumnComponent, TableRowActionComponent, TableExtraHeaderComponent, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, TableFilterModalDirective, TableCustomFilterDirective, TableCustomActionsDirective, TableCustomRowDirective], imports: [CommonModule, RouterModule, StencilModule], exports: [TableComponent, TableCellComponent, TableColumnComponent, TableRowActionComponent, TableExtraHeaderComponent, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, TableFilterModalDirective, TableCustomFilterDirective, TableCustomActionsDirective, TableCustomRowDirective] });
|
|
5017
4929
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableModule, imports: [CommonModule, RouterModule, StencilModule] });
|
|
5018
4930
|
}
|
|
5019
4931
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TableModule, decorators: [{
|
|
@@ -5087,6 +4999,7 @@ class ToastDirective {
|
|
|
5087
4999
|
identifier;
|
|
5088
5000
|
dismissOnAction = true;
|
|
5089
5001
|
actionFunc;
|
|
5002
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5090
5003
|
actionData = {};
|
|
5091
5004
|
dismiss = new EventEmitter();
|
|
5092
5005
|
ngOnInit() {
|
|
@@ -5116,7 +5029,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5116
5029
|
host: {
|
|
5117
5030
|
'(action)': 'onAction()',
|
|
5118
5031
|
},
|
|
5119
|
-
standalone: false
|
|
5032
|
+
standalone: false,
|
|
5120
5033
|
}]
|
|
5121
5034
|
}], propDecorators: { delay: [{
|
|
5122
5035
|
type: Input
|
|
@@ -5133,10 +5046,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5133
5046
|
}] } });
|
|
5134
5047
|
|
|
5135
5048
|
/* top-0 bottom-0 left-0 right-0 */
|
|
5136
|
-
let
|
|
5049
|
+
let ToastContainerComponent = class ToastContainerComponent {
|
|
5137
5050
|
z;
|
|
5138
5051
|
_toastService = inject(ToastService);
|
|
5139
|
-
toasts$ = this._toastService.toasts$.pipe(map$1(arr => arr.
|
|
5052
|
+
toasts$ = this._toastService.toasts$.pipe(map$1(arr => arr.toReversed()));
|
|
5140
5053
|
el;
|
|
5141
5054
|
constructor(r, z) {
|
|
5142
5055
|
this.z = z;
|
|
@@ -5145,27 +5058,27 @@ let ToastContainer = class ToastContainer {
|
|
|
5145
5058
|
dismiss(identifier) {
|
|
5146
5059
|
this._toastService.hide(identifier);
|
|
5147
5060
|
}
|
|
5148
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
5149
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
5061
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToastContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
5062
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ToastContainerComponent, isStandalone: false, selector: "p-toast-container", inputs: { placement: "placement" }, ngImport: i0, template: "<p-toast\n\t*ngFor=\"let toast of toasts$ | async; let index = index\"\n\t[@pSlideInBottomOutTop]\n\t[actionData]=\"toast.options.actionData\"\n\t[actionFunc]=\"toast.options.action\"\n\t[actionIcon]=\"toast.options.icon?.variant\"\n\t[actionIconFlip]=\"toast.options.icon?.flip\"\n\t[actionIconRotate]=\"toast.options.icon?.rotate\"\n\t[content]=\"toast.content\"\n\t[delay]=\"toast.options.delay ?? 5000\"\n\t[dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n\t[enableAction]=\"toast.options.enableAction\"\n\t[header]=\"toast.header\"\n\t[identifier]=\"toast.identifier\"\n\t[variant]=\"toast.variant\"\n\t(dismiss)=\"dismiss($event)\"\n/>\n", dependencies: [{ kind: "directive", type: i1$2.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$2.AsyncPipe, name: "async" }], animations: [SLIDE_IN_TOP_OUT_BOTTOM], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5150
5063
|
};
|
|
5151
|
-
|
|
5064
|
+
ToastContainerComponent = __decorate([
|
|
5152
5065
|
ProxyCmp({
|
|
5153
5066
|
defineCustomElementFn: undefined,
|
|
5154
5067
|
inputs: ['placement'],
|
|
5155
5068
|
})
|
|
5156
|
-
],
|
|
5157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
5069
|
+
], ToastContainerComponent);
|
|
5070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToastContainerComponent, decorators: [{
|
|
5158
5071
|
type: Component,
|
|
5159
|
-
args: [{ selector: 'p-toast-container', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['placement'], animations: [SLIDE_IN_TOP_OUT_BOTTOM], standalone: false, template: "<p-toast\n\t*ngFor=\"let toast of toasts$ | async; let index = index\"\n\t[
|
|
5072
|
+
args: [{ selector: 'p-toast-container', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['placement'], animations: [SLIDE_IN_TOP_OUT_BOTTOM], standalone: false, template: "<p-toast\n\t*ngFor=\"let toast of toasts$ | async; let index = index\"\n\t[@pSlideInBottomOutTop]\n\t[actionData]=\"toast.options.actionData\"\n\t[actionFunc]=\"toast.options.action\"\n\t[actionIcon]=\"toast.options.icon?.variant\"\n\t[actionIconFlip]=\"toast.options.icon?.flip\"\n\t[actionIconRotate]=\"toast.options.icon?.rotate\"\n\t[content]=\"toast.content\"\n\t[delay]=\"toast.options.delay ?? 5000\"\n\t[dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n\t[enableAction]=\"toast.options.enableAction\"\n\t[header]=\"toast.header\"\n\t[identifier]=\"toast.identifier\"\n\t[variant]=\"toast.variant\"\n\t(dismiss)=\"dismiss($event)\"\n/>\n" }]
|
|
5160
5073
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
5161
5074
|
|
|
5162
|
-
const TOAST_COMPONENTS = [
|
|
5075
|
+
const TOAST_COMPONENTS = [ToastContainerComponent];
|
|
5163
5076
|
|
|
5164
5077
|
const TOAST_DIRECTIVES = [ToastDirective];
|
|
5165
5078
|
|
|
5166
5079
|
class ToastModule {
|
|
5167
5080
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5168
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: ToastModule, declarations: [
|
|
5081
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: ToastModule, declarations: [ToastContainerComponent, ToastDirective], imports: [CommonModule, StencilModule], exports: [ToastContainerComponent, ToastDirective] });
|
|
5169
5082
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToastModule, providers: [ToastService], imports: [CommonModule, StencilModule] });
|
|
5170
5083
|
}
|
|
5171
5084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToastModule, decorators: [{
|
|
@@ -5195,7 +5108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5195
5108
|
type: Pipe,
|
|
5196
5109
|
args: [{
|
|
5197
5110
|
name: 'pcurrency',
|
|
5198
|
-
standalone: false
|
|
5111
|
+
standalone: false,
|
|
5199
5112
|
}]
|
|
5200
5113
|
}], ctorParameters: () => [{ type: i1$2.CurrencyPipe }] });
|
|
5201
5114
|
|
|
@@ -5214,7 +5127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5214
5127
|
type: Pipe,
|
|
5215
5128
|
args: [{
|
|
5216
5129
|
name: 'pdate',
|
|
5217
|
-
standalone: false
|
|
5130
|
+
standalone: false,
|
|
5218
5131
|
}]
|
|
5219
5132
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
5220
5133
|
|
|
@@ -5225,18 +5138,24 @@ class SafePipe {
|
|
|
5225
5138
|
}
|
|
5226
5139
|
transform(value, type) {
|
|
5227
5140
|
switch (type) {
|
|
5228
|
-
case 'html':
|
|
5141
|
+
case 'html': {
|
|
5229
5142
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
5230
|
-
|
|
5143
|
+
}
|
|
5144
|
+
case 'style': {
|
|
5231
5145
|
return this.sanitizer.bypassSecurityTrustStyle(value);
|
|
5232
|
-
|
|
5146
|
+
}
|
|
5147
|
+
case 'script': {
|
|
5233
5148
|
return this.sanitizer.bypassSecurityTrustScript(value);
|
|
5234
|
-
|
|
5149
|
+
}
|
|
5150
|
+
case 'url': {
|
|
5235
5151
|
return this.sanitizer.bypassSecurityTrustUrl(value);
|
|
5236
|
-
|
|
5152
|
+
}
|
|
5153
|
+
case 'resourceUrl': {
|
|
5237
5154
|
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
5238
|
-
|
|
5155
|
+
}
|
|
5156
|
+
default: {
|
|
5239
5157
|
throw new Error(`Invalid safe type specified: ${type}`);
|
|
5158
|
+
}
|
|
5240
5159
|
}
|
|
5241
5160
|
}
|
|
5242
5161
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SafePipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -5246,7 +5165,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5246
5165
|
type: Pipe,
|
|
5247
5166
|
args: [{
|
|
5248
5167
|
name: 'psafe',
|
|
5249
|
-
standalone: false
|
|
5168
|
+
standalone: false,
|
|
5250
5169
|
}]
|
|
5251
5170
|
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
|
|
5252
5171
|
|
|
@@ -5261,7 +5180,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5261
5180
|
type: Pipe,
|
|
5262
5181
|
args: [{
|
|
5263
5182
|
name: 'pSelectAutocomplete',
|
|
5264
|
-
standalone: false
|
|
5183
|
+
standalone: false,
|
|
5265
5184
|
}]
|
|
5266
5185
|
}] });
|
|
5267
5186
|
|
|
@@ -5276,7 +5195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5276
5195
|
type: Pipe,
|
|
5277
5196
|
args: [{
|
|
5278
5197
|
name: 'pSelectSelectAll',
|
|
5279
|
-
standalone: false
|
|
5198
|
+
standalone: false,
|
|
5280
5199
|
}]
|
|
5281
5200
|
}] });
|
|
5282
5201
|
|
|
@@ -5312,5 +5231,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5312
5231
|
* Generated bundle index. Do not edit.
|
|
5313
5232
|
*/
|
|
5314
5233
|
|
|
5315
|
-
export { BaseFormComponent, BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CheckboxDirective, CropperDirective, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, DatepickerDirective, FADE_IN, FADE_OUT, FieldDirective, FieldNumberDirective, MODULES, OverlayModule, OverlayRef, OverlayService, PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PBadge, PButton, PButtonGroup, PCalendar, PCardBody, PCardContainer, PCardHeader, PCheckbox, PContentSlider, PCropper, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PEmptyState, PField, PFieldContainer, PFloatingMenuContainer, PFloatingMenuItem, PHelper, PIPES, PIbanIcon, PIcon, PIllustration,
|
|
5234
|
+
export { BaseFormComponent, BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CheckboxDirective, CropperDirective, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, DatepickerDirective, FADE_IN, FADE_OUT, FieldDirective, FieldNumberDirective, MODULES, OverlayModule, OverlayRef, OverlayService, PAccordion, PAttachment, PAvatar, PAvatarGroup, PBackdrop, PBadge, PButton, PButtonGroup, PCalendar, PCardBody, PCardContainer, PCardHeader, PCheckbox, PContentSlider, PCropper, PDatepicker, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PEmptyState, PField, PFieldContainer, PFloatingMenuContainer, PFloatingMenuItem, PHelper, PIPES, PIbanIcon, PIcon, PIllustration, PInfoPanel, PLabel, PLayout, PListing, PListingItem, PListingLine, PLoader, PModal, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PNavigationSection, PNavigationTitle, PPagination, PPaginationPages, PPaginationPagesItem, PPaginationSize, PProfile, PRadio, PRange, PSegmentContainer, PSegmentItem, PSelect, PSmile, PStepper, PStepperItem, PStepperLine, PTabContainer, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTableRowActionsContainer, PToast, PToggle, PTooltip, PaginationPagesDirective, PaginationSizeDirective, PaperlessModule, RadioDirective, SLIDE_IN_BOTTOM_OUT_TOP, SLIDE_IN_TOP_OUT_BOTTOM, SafePipe, SelectAutocompletePipe, SelectDirective, SelectSelectAllPipe, StencilModule, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_DIRECTIVES, TableCellComponent, TableColumnComponent, TableComponent, TableCustomActionsDirective, TableCustomFilterDirective, TableCustomRowDirective, TableDirective, TableExtraHeaderComponent, TableFilterModalDirective, TableFooterDirective, TableHeaderDirective, TableModule, TableNgxDirective, TableRowActionComponent, ToastContainerComponent, ToastDirective, ToastModule, ToastService, ToastVariants, ToggleDirective, createFormFilters };
|
|
5316
5235
|
//# sourceMappingURL=paperless-angular.mjs.map
|