@c10t/nice-component-library 0.0.22 → 0.0.24
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/components/table/cva-smart-table.component.d.ts +6 -8
- package/components/table/cva-table-header-cell.component.d.ts +21 -0
- package/components/table/cva-table.component.d.ts +7 -8
- package/fesm2022/c10t-nice-component-library.mjs +1021 -924
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -1
- package/models/components/column.model.d.ts +4 -2
- package/modules/nice-component-library.module.d.ts +38 -37
- package/package.json +1 -1
- package/services/table.service.d.ts +7 -0
|
@@ -169,6 +169,8 @@ var AlignEnum;
|
|
|
169
169
|
class ColumnModel {
|
|
170
170
|
columnDef = '';
|
|
171
171
|
header;
|
|
172
|
+
title = (e) => `${e}`;
|
|
173
|
+
cell = (e) => `${e}`;
|
|
172
174
|
// set default theo ly thuyet, phai gan lai
|
|
173
175
|
align = AlignEnum.LEFT;
|
|
174
176
|
alignHeader;
|
|
@@ -203,8 +205,8 @@ class ColumnModel {
|
|
|
203
205
|
displayKey;
|
|
204
206
|
mappingConfig = {};
|
|
205
207
|
searchFn;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
rowSpan = 1;
|
|
209
|
+
colSpan = 1;
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
class BaseModel {
|
|
@@ -954,6 +956,9 @@ class UtilsService {
|
|
|
954
956
|
if (!!onErrorFunc) {
|
|
955
957
|
onErrorFunc(error1);
|
|
956
958
|
}
|
|
959
|
+
if (error1 === '0') {
|
|
960
|
+
this.showErrorToarst('error.serverNotResponse');
|
|
961
|
+
}
|
|
957
962
|
else {
|
|
958
963
|
this.showError(error1);
|
|
959
964
|
}
|
|
@@ -1491,6 +1496,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
1491
1496
|
|
|
1492
1497
|
class TableService {
|
|
1493
1498
|
static DEFAULT_NO_IMAGE_AVAILAB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/1stszd+JBth8K2BLM6SmVSC4MMv/JFLRGHlqgJbJt8ThkVKMSVTiFcoS0GXcj3E534iX6pIATwanujptxh3lrfA4HctAKzdEcrQPva4wDDajCd/gOFahEyHvod8jznHO4opkCtjjzC+QS+TZjCz/0HewWaIFsZCMbWXGJBtKEatSgGtWoQlUoTrIvW+WFkjt5I1dRwDbk3c6OQmksrolEFtMMRcrZyEJGVBKU16MONYpoqxGRZVBV+Fha4lg6/hDbAwVsS6anth6JQnksBkb2saUjDWlI9/nnBJAGwAkngFQADqQAaIQHQINyVA+gCfWoQx3qUY+68/8iuvRJxmYsxdL81ckes4oCTpTecUcUohCjkZvgN3oKn0pLGpdNPMJnTgEnIAt6eEbJIzEKfROs7vdhNTZgVfFXXMVMASeDRW4hD8MoaSRGWW7A2QyN2Cytxip5pesknykFnIS8kZE9VB6GAdJAFNhGymexQ96CrdL66i+55Y8CJudsstPZtbEAQ6R+KEAfC+5EPIrt0g5skDZ4diVfEjEKmJhgVvP0/p4CRzd0l7uhO9rFTbKl2C+VYj92pG295TSfCwVMQnKzM7s7vxdzV7RFHrKi8DXVKMMxHDgn2qbSs/vpHlPAJDrudqYztyHXkYt8KdeTK+VKuXIuUuFACwCZyADQAg6kIgfAGTTAgyoAZ1ELoAoeNEhlcplc5ijznJJOecocp6rLKFdCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghseH/A/k7YGG25EzXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA4LTI3VDE2OjMwOjU3KzAwOjAw3TkAeAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOC0yN1QxNjozMDo1NyswMDowMKxkuMQAAAAASUVORK5CYII=';
|
|
1499
|
+
static getRequired(column) {
|
|
1500
|
+
return typeof (column.isRequired) === 'function' ? column.isRequired() : (column.isRequired ?? false);
|
|
1501
|
+
}
|
|
1502
|
+
static getHeaderColumns(row, index, buttons) {
|
|
1503
|
+
let displayColumn = row.map(c => c.columnDef);
|
|
1504
|
+
if (index === 0 && buttons && buttons.length > 0) {
|
|
1505
|
+
displayColumn = displayColumn.concat(buttons.map(b => b.columnDef));
|
|
1506
|
+
}
|
|
1507
|
+
return displayColumn;
|
|
1508
|
+
}
|
|
1509
|
+
static toggleSelectAll(values, $event) {
|
|
1510
|
+
const checked = $event.$event.checked;
|
|
1511
|
+
values.forEach(v => {
|
|
1512
|
+
v.checked = checked;
|
|
1513
|
+
});
|
|
1514
|
+
if ($event.columnChange.onHeaderCellValueChange) {
|
|
1515
|
+
$event.columnChange.onHeaderCellValueChange(checked);
|
|
1516
|
+
}
|
|
1517
|
+
return checked;
|
|
1518
|
+
}
|
|
1494
1519
|
static displayHeaderName(column, moduleName) {
|
|
1495
1520
|
if (typeof (column.header) === 'string') {
|
|
1496
1521
|
return moduleName + '.table.header.' + column.header;
|
|
@@ -1576,6 +1601,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
1576
1601
|
args: [{ providedIn: 'root' }]
|
|
1577
1602
|
}] });
|
|
1578
1603
|
|
|
1604
|
+
class CvaTableHeaderCellComponent {
|
|
1605
|
+
TableService = TableService;
|
|
1606
|
+
ColumnTypeEnum = ColumnTypeEnum;
|
|
1607
|
+
moduleName = '';
|
|
1608
|
+
column = new ColumnModel();
|
|
1609
|
+
selectAllChecked = false;
|
|
1610
|
+
changeSelectAll = new EventEmitter();
|
|
1611
|
+
ngOnChanges(changes) {
|
|
1612
|
+
if ('selectAllChecked' in changes) {
|
|
1613
|
+
this.selectAllChecked = changes['selectAllChecked'].currentValue;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
onSelectAllChange($event) {
|
|
1617
|
+
this.changeSelectAll.emit({ $event, columnChange: this.column });
|
|
1618
|
+
}
|
|
1619
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1620
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaTableHeaderCellComponent, isStandalone: false, selector: "cva-table-header-cell", inputs: { moduleName: "moduleName", column: "column", selectAllChecked: "selectAllChecked" }, outputs: { changeSelectAll: "changeSelectAll" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1621
|
+
<div [ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
1622
|
+
fxLayout="row"
|
|
1623
|
+
[fxLayoutAlign]="column.alignHeader ? column.alignHeader : TableService.alignCellContent(column)">
|
|
1624
|
+
<div class="header-text-area">
|
|
1625
|
+
{{ TableService.displayHeaderName(column, moduleName) | translate }}
|
|
1626
|
+
<span style="color: red">{{ TableService.getRequired(column) ? '*' : '' }}</span>
|
|
1627
|
+
</div>
|
|
1628
|
+
<mat-checkbox
|
|
1629
|
+
*ngIf="TableService.getColumnType(column, null)===ColumnTypeEnum.CHECKBOX && !column.isNotShowHeaderCheckbox"
|
|
1630
|
+
color="primary" class="box-select-all margin-right-5"
|
|
1631
|
+
[(ngModel)]="selectAllChecked"
|
|
1632
|
+
(change)="onSelectAllChange($event)">
|
|
1633
|
+
</mat-checkbox>
|
|
1634
|
+
</div>
|
|
1635
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
1636
|
+
}
|
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableHeaderCellComponent, decorators: [{
|
|
1638
|
+
type: Component,
|
|
1639
|
+
args: [{
|
|
1640
|
+
selector: 'cva-table-header-cell',
|
|
1641
|
+
standalone: false,
|
|
1642
|
+
template: `
|
|
1643
|
+
<div [ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
1644
|
+
fxLayout="row"
|
|
1645
|
+
[fxLayoutAlign]="column.alignHeader ? column.alignHeader : TableService.alignCellContent(column)">
|
|
1646
|
+
<div class="header-text-area">
|
|
1647
|
+
{{ TableService.displayHeaderName(column, moduleName) | translate }}
|
|
1648
|
+
<span style="color: red">{{ TableService.getRequired(column) ? '*' : '' }}</span>
|
|
1649
|
+
</div>
|
|
1650
|
+
<mat-checkbox
|
|
1651
|
+
*ngIf="TableService.getColumnType(column, null)===ColumnTypeEnum.CHECKBOX && !column.isNotShowHeaderCheckbox"
|
|
1652
|
+
color="primary" class="box-select-all margin-right-5"
|
|
1653
|
+
[(ngModel)]="selectAllChecked"
|
|
1654
|
+
(change)="onSelectAllChange($event)">
|
|
1655
|
+
</mat-checkbox>
|
|
1656
|
+
</div>
|
|
1657
|
+
`,
|
|
1658
|
+
}]
|
|
1659
|
+
}], propDecorators: { moduleName: [{
|
|
1660
|
+
type: Input
|
|
1661
|
+
}], column: [{
|
|
1662
|
+
type: Input
|
|
1663
|
+
}], selectAllChecked: [{
|
|
1664
|
+
type: Input
|
|
1665
|
+
}], changeSelectAll: [{
|
|
1666
|
+
type: Output
|
|
1667
|
+
}] } });
|
|
1668
|
+
|
|
1579
1669
|
class ValidatorService {
|
|
1580
1670
|
static invalid(control) {
|
|
1581
1671
|
if (!control || !control.dirty) {
|
|
@@ -2444,6 +2534,10 @@ class CvaTableComponent {
|
|
|
2444
2534
|
config;
|
|
2445
2535
|
cdRef;
|
|
2446
2536
|
loaderService;
|
|
2537
|
+
ColumnTypeEnum = ColumnTypeEnum;
|
|
2538
|
+
AlignEnum = AlignEnum;
|
|
2539
|
+
IconTypeEnum = IconTypeEnum;
|
|
2540
|
+
TableService = TableService;
|
|
2447
2541
|
moduleName = '';
|
|
2448
2542
|
varPaging;
|
|
2449
2543
|
results = new MatTableDataSource([]);
|
|
@@ -2451,6 +2545,7 @@ class CvaTableComponent {
|
|
|
2451
2545
|
buttons = [];
|
|
2452
2546
|
showTotalPages = 5;
|
|
2453
2547
|
expandHeaderButton;
|
|
2548
|
+
superHeaders = [];
|
|
2454
2549
|
pageSizeOptions;
|
|
2455
2550
|
pagingChange = new EventEmitter(true);
|
|
2456
2551
|
clickAction = new EventEmitter();
|
|
@@ -2483,28 +2578,6 @@ class CvaTableComponent {
|
|
|
2483
2578
|
this.varPaging = value;
|
|
2484
2579
|
}
|
|
2485
2580
|
}
|
|
2486
|
-
get displayedColumns() {
|
|
2487
|
-
let columnsDef = this.columns.map(c => c.columnDef);
|
|
2488
|
-
if (this.buttons) {
|
|
2489
|
-
columnsDef = columnsDef.concat(this.buttons.map(b => b.columnDef));
|
|
2490
|
-
}
|
|
2491
|
-
// if (!!this.expandHeaderButton) {
|
|
2492
|
-
// columnsDef = columnsDef.concat(this.expandHeaderButton.columnDef);
|
|
2493
|
-
// }
|
|
2494
|
-
return columnsDef;
|
|
2495
|
-
}
|
|
2496
|
-
get ColumnTypes() {
|
|
2497
|
-
return ColumnTypeEnum;
|
|
2498
|
-
}
|
|
2499
|
-
get IconTypes() {
|
|
2500
|
-
return IconTypeEnum;
|
|
2501
|
-
}
|
|
2502
|
-
get AlignEnum() {
|
|
2503
|
-
return AlignEnum;
|
|
2504
|
-
}
|
|
2505
|
-
get TableService() {
|
|
2506
|
-
return TableService;
|
|
2507
|
-
}
|
|
2508
2581
|
isExpandColumn(col) {
|
|
2509
2582
|
return !!col.isExpandOptionColumn ? col.isExpandOptionColumn() : false;
|
|
2510
2583
|
}
|
|
@@ -2543,14 +2616,6 @@ class CvaTableComponent {
|
|
|
2543
2616
|
onDisplayCell(column, cell) {
|
|
2544
2617
|
return TableService.onDisplayCell(column, cell) && !this.isExpandColumn(column);
|
|
2545
2618
|
}
|
|
2546
|
-
toggleSelectAll(val, col) {
|
|
2547
|
-
this.results.data.forEach(v => {
|
|
2548
|
-
v.checked = val.checked;
|
|
2549
|
-
});
|
|
2550
|
-
if (col.onHeaderCellValueChange) {
|
|
2551
|
-
col.onHeaderCellValueChange(val.checked);
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
2619
|
toggleSelect(val, result, column) {
|
|
2555
2620
|
let count = 0;
|
|
2556
2621
|
this.results.data.forEach(v => {
|
|
@@ -2564,7 +2629,7 @@ class CvaTableComponent {
|
|
|
2564
2629
|
}
|
|
2565
2630
|
}
|
|
2566
2631
|
ngAfterViewChecked() {
|
|
2567
|
-
this.
|
|
2632
|
+
this.updateHeaderButtonColspan();
|
|
2568
2633
|
this.cdRef.detectChanges();
|
|
2569
2634
|
}
|
|
2570
2635
|
hasData() {
|
|
@@ -2583,9 +2648,8 @@ class CvaTableComponent {
|
|
|
2583
2648
|
this.getPage({ pageIndex: this.goToPageNumber - 1, pageSize: this.varPaging.pageSize });
|
|
2584
2649
|
}
|
|
2585
2650
|
}
|
|
2586
|
-
|
|
2651
|
+
updateHeaderButtonColspan() {
|
|
2587
2652
|
this.buttonColspan = TableService.getHeaderButtonColspan(this.buttons, this.results.data);
|
|
2588
|
-
return this.buttonColspan;
|
|
2589
2653
|
}
|
|
2590
2654
|
onChangeGoToPageNumber($event) {
|
|
2591
2655
|
if ($event === null || Number.isNaN($event) || !Number.isSafeInteger($event)) {
|
|
@@ -2604,201 +2668,212 @@ class CvaTableComponent {
|
|
|
2604
2668
|
}
|
|
2605
2669
|
}
|
|
2606
2670
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableComponent, deps: [{ token: InjectTokenNextSolutionsConfig }, { token: i0.ChangeDetectorRef }, { token: LoaderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2607
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaTableComponent, isStandalone: false, selector: "cva-table", inputs: { moduleName: "moduleName", results: "results", columns: "columns", buttons: "buttons", showTotalPages: "showTotalPages", expandHeaderButton: "expandHeaderButton", paging: "paging" }, outputs: { pagingChange: "pagingChange", clickAction: "clickAction", onRowClickAction: "onRowClickAction", onChangeDisplayColumn: "onChangeDisplayColumn" }, providers: [
|
|
2671
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaTableComponent, isStandalone: false, selector: "cva-table", inputs: { moduleName: "moduleName", results: "results", columns: "columns", buttons: "buttons", showTotalPages: "showTotalPages", expandHeaderButton: "expandHeaderButton", superHeaders: "superHeaders", paging: "paging" }, outputs: { pagingChange: "pagingChange", clickAction: "clickAction", onRowClickAction: "onRowClickAction", onChangeDisplayColumn: "onChangeDisplayColumn" }, providers: [
|
|
2608
2672
|
{ provide: MatPaginatorIntl, useClass: MultiLanguageTablePaginator },
|
|
2609
2673
|
], ngImport: i0, template: `
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
[
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
*ngSwitchCase="ColumnTypes.LINK"
|
|
2662
|
-
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2663
|
-
title="{{column.title(result)}}">
|
|
2664
|
-
<a [routerLink]="[column.link(result)]">{{ column.cell(result) }}</a>
|
|
2665
|
-
</div>
|
|
2666
|
-
|
|
2667
|
-
<div class="label-status viewData"
|
|
2668
|
-
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2669
|
-
*ngSwitchCase="ColumnTypes.STYLE_CSS"
|
|
2670
|
-
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2671
|
-
title="{{column.title(result)}}">
|
|
2672
|
-
<span [style]="column.style(result)">{{ column.cell(result) }}</span>
|
|
2673
|
-
</div>
|
|
2674
|
+
<div class="table-responsive">
|
|
2675
|
+
<ng-container *ngIf="!!expandHeaderButton">
|
|
2676
|
+
<cva-header-expand-button [moduleName]="moduleName" [expandHeaderButton]="expandHeaderButton"
|
|
2677
|
+
[columns]="columns" (onChange)="this.onChangeDisplayColumn.emit($event)">
|
|
2678
|
+
</cva-header-expand-button>
|
|
2679
|
+
</ng-container>
|
|
2680
|
+
<table mat-table #table [dataSource]="results" class="mat-elevation-z8 cva-table">
|
|
2681
|
+
<ng-container *ngFor="let column of columns" matColumnDef="{{column.columnDef}}">
|
|
2682
|
+
<ng-container *matHeaderCellDef>
|
|
2683
|
+
<th mat-header-cell [ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
2684
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan"
|
|
2685
|
+
*ngIf="onDisplayHeaderCell(column)">
|
|
2686
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
2687
|
+
[selectAllChecked]="selectAllChecked"
|
|
2688
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(this.results.data, $event)">
|
|
2689
|
+
</cva-table-header-cell>
|
|
2690
|
+
</th>
|
|
2691
|
+
</ng-container>
|
|
2692
|
+
<ng-container *matCellDef="let result;">
|
|
2693
|
+
<td mat-cell [ngClass]="TableService.getColumnClassName(column, result)"
|
|
2694
|
+
*ngIf="onDisplayCell(column, result)"
|
|
2695
|
+
[ngSwitch]="TableService.getColumnType(column, result)">
|
|
2696
|
+
<div title="{{column.title(result)}}" *ngSwitchDefault
|
|
2697
|
+
class="{{TableService.getColumnClassName(column, result)}} viewData"
|
|
2698
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
2699
|
+
{{ column.cell(result) }}
|
|
2700
|
+
</div>
|
|
2701
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.BUTTON">
|
|
2702
|
+
<div *ngIf="!!column.button"
|
|
2703
|
+
class="{{TableService.getColumnClassName(column, result)}}"
|
|
2704
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2705
|
+
(click)="$event.stopPropagation()">
|
|
2706
|
+
<button mat-icon-button color="{{column.button.color}}"
|
|
2707
|
+
(click)="onClick(column.button.click, result)"
|
|
2708
|
+
disabled="{{column.button.disabled ? column.button.disabled(result) : false}}"
|
|
2709
|
+
matTooltip="{{(column.button.title ? column.button.title : '') | translate}}"
|
|
2710
|
+
class="{{column.button.className}}"
|
|
2711
|
+
[ngSwitch]="TableService.getIconType(column.button)">
|
|
2712
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ column.button.icon }}
|
|
2713
|
+
</mat-icon>
|
|
2714
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{column.button.icon}}"></i>
|
|
2715
|
+
</button>
|
|
2716
|
+
</div>
|
|
2717
|
+
</ng-container>
|
|
2718
|
+
<div class="link viewData"
|
|
2719
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2720
|
+
*ngSwitchCase="ColumnTypeEnum.LINK"
|
|
2721
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2722
|
+
title="{{column.title(result)}}">
|
|
2723
|
+
<a [routerLink]="[column?.link(result)]">{{ column.cell(result) }}</a>
|
|
2724
|
+
</div>
|
|
2674
2725
|
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
</div>
|
|
2683
|
-
<div class="img-view viewData"
|
|
2684
|
-
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2685
|
-
*ngSwitchCase="ColumnTypes.IMG_NO_SECURE"
|
|
2686
|
-
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2687
|
-
title="{{column.title(result)}}">
|
|
2688
|
-
<img [src]="column.cell(result)" #imgRef
|
|
2689
|
-
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt="" />
|
|
2690
|
-
</div>
|
|
2691
|
-
<div *ngSwitchCase="ColumnTypes.BASE64"
|
|
2692
|
-
class="img-view viewData"
|
|
2693
|
-
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2694
|
-
title="{{column.title(result)}}">
|
|
2695
|
-
<img [src]="'data:image/png;base64,'+column.cell(result)"
|
|
2696
|
-
#base64ImgRef
|
|
2697
|
-
(error)="TableService.onErrorImgEvent(base64ImgRef, config.NO_IMAGE_AVAILABLE)" alt="" />
|
|
2698
|
-
</div>
|
|
2699
|
-
<ng-container *ngSwitchCase="ColumnTypes.CHECKBOX">
|
|
2700
|
-
<mat-checkbox [(ngModel)]="result[column.columnDef]" color="primary"
|
|
2701
|
-
*ngIf="column.display ? column.display(result) : true"
|
|
2702
|
-
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
2703
|
-
(change)="toggleSelect($event, result, column)"
|
|
2704
|
-
[fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
2705
|
-
</mat-checkbox>
|
|
2706
|
-
</ng-container>
|
|
2707
|
-
</td>
|
|
2708
|
-
</ng-container>
|
|
2709
|
-
</ng-container>
|
|
2726
|
+
<div class="label-status viewData"
|
|
2727
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2728
|
+
*ngSwitchCase="ColumnTypeEnum.STYLE_CSS"
|
|
2729
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2730
|
+
title="{{column.title(result)}}">
|
|
2731
|
+
<span [style]="column?.style(result)">{{ column.cell(result) }}</span>
|
|
2732
|
+
</div>
|
|
2710
2733
|
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2734
|
+
<div class="img-view viewData"
|
|
2735
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2736
|
+
*ngSwitchCase="ColumnTypeEnum.IMG"
|
|
2737
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2738
|
+
title="{{column.title(result)}}">
|
|
2739
|
+
<img [src]="column.cell(result) | secure | async" #imgRef
|
|
2740
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
2741
|
+
</div>
|
|
2742
|
+
<div class="img-view viewData"
|
|
2743
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2744
|
+
*ngSwitchCase="ColumnTypeEnum.IMG_NO_SECURE"
|
|
2745
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2746
|
+
title="{{column.title(result)}}">
|
|
2747
|
+
<img [src]="column.cell(result)" #imgRef
|
|
2748
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
2749
|
+
</div>
|
|
2750
|
+
<div *ngSwitchCase="ColumnTypeEnum.BASE64"
|
|
2751
|
+
class="img-view viewData"
|
|
2752
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2753
|
+
title="{{column.title(result)}}">
|
|
2754
|
+
<img [src]="'data:image/png;base64,'+column.cell(result)"
|
|
2755
|
+
#base64ImgRef
|
|
2756
|
+
(error)="TableService.onErrorImgEvent(base64ImgRef, config.NO_IMAGE_AVAILABLE)"
|
|
2757
|
+
alt=""/>
|
|
2758
|
+
</div>
|
|
2759
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.CHECKBOX">
|
|
2760
|
+
<mat-checkbox [(ngModel)]="result[column.columnDef]" color="primary"
|
|
2761
|
+
*ngIf="column.display ? column.display(result) : true"
|
|
2762
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
2763
|
+
(change)="toggleSelect($event, result, column)"
|
|
2764
|
+
[fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
2765
|
+
</mat-checkbox>
|
|
2766
|
+
</ng-container>
|
|
2767
|
+
</td>
|
|
2768
|
+
</ng-container>
|
|
2769
|
+
</ng-container>
|
|
2742
2770
|
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2771
|
+
<ng-container *ngFor="let button of buttons; let i = index" matColumnDef="{{button.columnDef}}">
|
|
2772
|
+
<ng-container *matHeaderCellDef="let header">
|
|
2773
|
+
<th mat-header-cell [ngClass]="button.className"
|
|
2774
|
+
*ngIf="TableService.onDisplayButtonHeaderCell(buttons, button, header, i) && !!buttonColspan"
|
|
2775
|
+
(click)="$event.stopPropagation()"
|
|
2776
|
+
[attr.colspan]="buttonColspan" [attr.rowspan]="superHeaders.length + 1">
|
|
2777
|
+
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
2778
|
+
<button mat-icon-button
|
|
2779
|
+
class="{{button.className}}"
|
|
2780
|
+
*ngIf="((btnHeader && btnHeader.display) ? btnHeader.display(header) : false) "
|
|
2781
|
+
[disabled]="((btnHeader && $any(btnHeader).disabled) ? $any(btnHeader).disabled(header) : false) "
|
|
2782
|
+
color="{{$any(btnHeader).color}}"
|
|
2783
|
+
(click)="onClick($any(btnHeader).click, null)"
|
|
2784
|
+
matTooltip="{{((btnHeader && $any(btnHeader).title) ? $any(btnHeader).title : '') | translate}}"
|
|
2785
|
+
[ngSwitch]="TableService.getIconType($any(btnHeader))">
|
|
2786
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ $any(btnHeader).icon }}
|
|
2787
|
+
</mat-icon>
|
|
2788
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{$any(btnHeader).icon}}"></i>
|
|
2789
|
+
</button>
|
|
2790
|
+
</ng-container>
|
|
2791
|
+
<ng-container *ngIf="TableService.getButtonHeaderString(button) as btnHeader">
|
|
2792
|
+
<div title="{{$any(btnHeader) | translate}}"
|
|
2793
|
+
class="viewData"
|
|
2794
|
+
fxLayout="row"
|
|
2795
|
+
fxLayoutAlign="{{button.alignHeader ? button.alignHeader : AlignEnum.LEFT}} center">
|
|
2796
|
+
{{ $any(btnHeader) | translate }}
|
|
2797
|
+
</div>
|
|
2798
|
+
</ng-container>
|
|
2799
|
+
</th>
|
|
2800
|
+
</ng-container>
|
|
2801
|
+
<ng-container *matCellDef="let cell">
|
|
2802
|
+
<td mat-cell [ngClass]="button.className"
|
|
2803
|
+
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
2804
|
+
(click)="$event.stopPropagation()">
|
|
2805
|
+
<button mat-icon-button color="{{button.color}}"
|
|
2806
|
+
(click)="onClick(button.click, cell)"
|
|
2807
|
+
disabled="{{button.disabled ? button.disabled(cell) : false}}"
|
|
2808
|
+
matTooltip="{{(button.title ? button.title : '') | translate}}"
|
|
2809
|
+
class="{{button.className}}" [ngSwitch]="TableService.getIconType(button)">
|
|
2810
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ button.icon }}</mat-icon>
|
|
2811
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{button.icon}}"></i>
|
|
2812
|
+
</button>
|
|
2813
|
+
</td>
|
|
2814
|
+
</ng-container>
|
|
2815
|
+
</ng-container>
|
|
2760
2816
|
|
|
2817
|
+
<ng-container *ngFor="let row of superHeaders">
|
|
2818
|
+
<ng-container *ngFor="let column of row" matColumnDef="{{column.columnDef}}">
|
|
2819
|
+
<ng-container *ngIf="onDisplayHeaderCell(column)">
|
|
2820
|
+
<th mat-header-cell *matHeaderCellDef
|
|
2821
|
+
[ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
2822
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan">
|
|
2823
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
2824
|
+
[selectAllChecked]="selectAllChecked"
|
|
2825
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(this.results.data, $event)">
|
|
2826
|
+
</cva-table-header-cell>
|
|
2827
|
+
</th>
|
|
2828
|
+
</ng-container>
|
|
2829
|
+
</ng-container>
|
|
2830
|
+
</ng-container>
|
|
2761
2831
|
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2832
|
+
<ng-container *ngFor="let row of superHeaders; let rowIndex = index">
|
|
2833
|
+
<tr mat-header-row *matHeaderRowDef="TableService.getHeaderColumns(row, rowIndex, buttons)"></tr>
|
|
2834
|
+
</ng-container>
|
|
2835
|
+
<tr mat-header-row
|
|
2836
|
+
*matHeaderRowDef="TableService.getHeaderColumns(columns, superHeaders.length, buttons)"></tr>
|
|
2837
|
+
<tr mat-row
|
|
2838
|
+
*matRowDef="let result; columns: TableService.getHeaderColumns(columns, 0, buttons); let i = index"
|
|
2839
|
+
[ngClass]="result.className"
|
|
2840
|
+
(click)="onRowClick(result, i)"></tr>
|
|
2841
|
+
</table>
|
|
2842
|
+
<div *ngIf="!(loaderService.isLoading | async)">
|
|
2843
|
+
<div class="paging"
|
|
2844
|
+
*ngIf="hasData()"
|
|
2845
|
+
fxLayout fxLayoutAlign="space-between center">
|
|
2846
|
+
<mat-paginator style-paginator
|
|
2847
|
+
[showTotalPages]="showTotalPages"
|
|
2848
|
+
[paging]="varPaging"
|
|
2849
|
+
(pagingChangeEvent)="getPage($event)"
|
|
2850
|
+
[length]="varPaging.totalElements"
|
|
2851
|
+
[pageSize]="varPaging.pageSize"
|
|
2852
|
+
[pageSizeOptions]="pageSizeOptions"
|
|
2853
|
+
[pageIndex]="varPaging.pageNumber - 1">
|
|
2854
|
+
</mat-paginator>
|
|
2855
|
+
<div class="go-to-page"
|
|
2856
|
+
fxLayout fxLayoutGap="0.3rem" fxLayoutAlign="start baseline">
|
|
2857
|
+
<mat-label>{{ 'common.gotopage' | translate }}</mat-label>
|
|
2858
|
+
<cva-counter-input [(ngModel)]="goToPageNumber"
|
|
2859
|
+
(ngModelChange)="onChangeGoToPageNumber($event)"
|
|
2860
|
+
(onEnter)="goToPage()"
|
|
2861
|
+
[max]="getTotalPage() ? getTotalPage() : 1"
|
|
2862
|
+
[min]="1"
|
|
2863
|
+
[isFloatLabel]="false"
|
|
2864
|
+
[errorMessages]="errorMsg"
|
|
2865
|
+
></cva-counter-input>
|
|
2866
|
+
<mat-label style="white-space: nowrap">{{ '/' + getTotalPage() }}</mat-label>
|
|
2867
|
+
<button mat-flat-button
|
|
2868
|
+
[disabled]="goToPageNumber < 1 || goToPageNumber > getTotalPage()"
|
|
2869
|
+
(click)="goToPage()">{{ 'common.go' | translate }}
|
|
2870
|
+
</button>
|
|
2871
|
+
</div>
|
|
2872
|
+
<h2 *ngIf="!hasData()">{{ 'common.no.records.found' | translate }}</h2>
|
|
2873
|
+
</div>
|
|
2874
|
+
</div>
|
|
2798
2875
|
</div>
|
|
2799
|
-
|
|
2800
|
-
</div>
|
|
2801
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CvaCounterInputComponent, selector: "cva-counter-input", inputs: ["label", "placeholder", "suffixText", "hint", "value", "disabled", "required", "errorMessages", "min", "max", "error", "isDecimal", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "alignNumber", "isFormControl"], outputs: ["onChange", "onEnter"] }, { kind: "directive", type: StylePaginatorDirective, selector: "[style-paginator]", inputs: ["showTotalPages", "paging"], outputs: ["pagingChangeEvent"] }, { kind: "component", type: CvaHeaderExpandButtonComponent, selector: "cva-header-expand-button", inputs: ["expandHeaderButton", "columns", "moduleName"], outputs: ["onChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
2876
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CvaTableHeaderCellComponent, selector: "cva-table-header-cell", inputs: ["moduleName", "column", "selectAllChecked"], outputs: ["changeSelectAll"] }, { kind: "component", type: CvaCounterInputComponent, selector: "cva-counter-input", inputs: ["label", "placeholder", "suffixText", "hint", "value", "disabled", "required", "errorMessages", "min", "max", "error", "isDecimal", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "alignNumber", "isFormControl"], outputs: ["onChange", "onEnter"] }, { kind: "directive", type: StylePaginatorDirective, selector: "[style-paginator]", inputs: ["showTotalPages", "paging"], outputs: ["pagingChangeEvent"] }, { kind: "component", type: CvaHeaderExpandButtonComponent, selector: "cva-header-expand-button", inputs: ["expandHeaderButton", "columns", "moduleName"], outputs: ["onChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
2802
2877
|
}
|
|
2803
2878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableComponent, decorators: [{
|
|
2804
2879
|
type: Component,
|
|
@@ -2806,198 +2881,209 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2806
2881
|
selector: 'cva-table',
|
|
2807
2882
|
standalone: false,
|
|
2808
2883
|
template: `
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
[
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
*ngSwitchCase="ColumnTypes.LINK"
|
|
2861
|
-
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2862
|
-
title="{{column.title(result)}}">
|
|
2863
|
-
<a [routerLink]="[column.link(result)]">{{ column.cell(result) }}</a>
|
|
2864
|
-
</div>
|
|
2884
|
+
<div class="table-responsive">
|
|
2885
|
+
<ng-container *ngIf="!!expandHeaderButton">
|
|
2886
|
+
<cva-header-expand-button [moduleName]="moduleName" [expandHeaderButton]="expandHeaderButton"
|
|
2887
|
+
[columns]="columns" (onChange)="this.onChangeDisplayColumn.emit($event)">
|
|
2888
|
+
</cva-header-expand-button>
|
|
2889
|
+
</ng-container>
|
|
2890
|
+
<table mat-table #table [dataSource]="results" class="mat-elevation-z8 cva-table">
|
|
2891
|
+
<ng-container *ngFor="let column of columns" matColumnDef="{{column.columnDef}}">
|
|
2892
|
+
<ng-container *matHeaderCellDef>
|
|
2893
|
+
<th mat-header-cell [ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
2894
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan"
|
|
2895
|
+
*ngIf="onDisplayHeaderCell(column)">
|
|
2896
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
2897
|
+
[selectAllChecked]="selectAllChecked"
|
|
2898
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(this.results.data, $event)">
|
|
2899
|
+
</cva-table-header-cell>
|
|
2900
|
+
</th>
|
|
2901
|
+
</ng-container>
|
|
2902
|
+
<ng-container *matCellDef="let result;">
|
|
2903
|
+
<td mat-cell [ngClass]="TableService.getColumnClassName(column, result)"
|
|
2904
|
+
*ngIf="onDisplayCell(column, result)"
|
|
2905
|
+
[ngSwitch]="TableService.getColumnType(column, result)">
|
|
2906
|
+
<div title="{{column.title(result)}}" *ngSwitchDefault
|
|
2907
|
+
class="{{TableService.getColumnClassName(column, result)}} viewData"
|
|
2908
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
2909
|
+
{{ column.cell(result) }}
|
|
2910
|
+
</div>
|
|
2911
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.BUTTON">
|
|
2912
|
+
<div *ngIf="!!column.button"
|
|
2913
|
+
class="{{TableService.getColumnClassName(column, result)}}"
|
|
2914
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2915
|
+
(click)="$event.stopPropagation()">
|
|
2916
|
+
<button mat-icon-button color="{{column.button.color}}"
|
|
2917
|
+
(click)="onClick(column.button.click, result)"
|
|
2918
|
+
disabled="{{column.button.disabled ? column.button.disabled(result) : false}}"
|
|
2919
|
+
matTooltip="{{(column.button.title ? column.button.title : '') | translate}}"
|
|
2920
|
+
class="{{column.button.className}}"
|
|
2921
|
+
[ngSwitch]="TableService.getIconType(column.button)">
|
|
2922
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ column.button.icon }}
|
|
2923
|
+
</mat-icon>
|
|
2924
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{column.button.icon}}"></i>
|
|
2925
|
+
</button>
|
|
2926
|
+
</div>
|
|
2927
|
+
</ng-container>
|
|
2928
|
+
<div class="link viewData"
|
|
2929
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2930
|
+
*ngSwitchCase="ColumnTypeEnum.LINK"
|
|
2931
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2932
|
+
title="{{column.title(result)}}">
|
|
2933
|
+
<a [routerLink]="[column?.link(result)]">{{ column.cell(result) }}</a>
|
|
2934
|
+
</div>
|
|
2865
2935
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2936
|
+
<div class="label-status viewData"
|
|
2937
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2938
|
+
*ngSwitchCase="ColumnTypeEnum.STYLE_CSS"
|
|
2939
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2940
|
+
title="{{column.title(result)}}">
|
|
2941
|
+
<span [style]="column?.style(result)">{{ column.cell(result) }}</span>
|
|
2942
|
+
</div>
|
|
2873
2943
|
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2944
|
+
<div class="img-view viewData"
|
|
2945
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2946
|
+
*ngSwitchCase="ColumnTypeEnum.IMG"
|
|
2947
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2948
|
+
title="{{column.title(result)}}">
|
|
2949
|
+
<img [src]="column.cell(result) | secure | async" #imgRef
|
|
2950
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
2951
|
+
</div>
|
|
2952
|
+
<div class="img-view viewData"
|
|
2953
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
2954
|
+
*ngSwitchCase="ColumnTypeEnum.IMG_NO_SECURE"
|
|
2955
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2956
|
+
title="{{column.title(result)}}">
|
|
2957
|
+
<img [src]="column.cell(result)" #imgRef
|
|
2958
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
2959
|
+
</div>
|
|
2960
|
+
<div *ngSwitchCase="ColumnTypeEnum.BASE64"
|
|
2961
|
+
class="img-view viewData"
|
|
2962
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
2963
|
+
title="{{column.title(result)}}">
|
|
2964
|
+
<img [src]="'data:image/png;base64,'+column.cell(result)"
|
|
2965
|
+
#base64ImgRef
|
|
2966
|
+
(error)="TableService.onErrorImgEvent(base64ImgRef, config.NO_IMAGE_AVAILABLE)"
|
|
2967
|
+
alt=""/>
|
|
2968
|
+
</div>
|
|
2969
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.CHECKBOX">
|
|
2970
|
+
<mat-checkbox [(ngModel)]="result[column.columnDef]" color="primary"
|
|
2971
|
+
*ngIf="column.display ? column.display(result) : true"
|
|
2972
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
2973
|
+
(change)="toggleSelect($event, result, column)"
|
|
2974
|
+
[fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
2975
|
+
</mat-checkbox>
|
|
2976
|
+
</ng-container>
|
|
2977
|
+
</td>
|
|
2978
|
+
</ng-container>
|
|
2979
|
+
</ng-container>
|
|
2909
2980
|
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
</button>
|
|
2956
|
-
</td>
|
|
2957
|
-
</ng-container>
|
|
2958
|
-
</ng-container>
|
|
2981
|
+
<ng-container *ngFor="let button of buttons; let i = index" matColumnDef="{{button.columnDef}}">
|
|
2982
|
+
<ng-container *matHeaderCellDef="let header">
|
|
2983
|
+
<th mat-header-cell [ngClass]="button.className"
|
|
2984
|
+
*ngIf="TableService.onDisplayButtonHeaderCell(buttons, button, header, i) && !!buttonColspan"
|
|
2985
|
+
(click)="$event.stopPropagation()"
|
|
2986
|
+
[attr.colspan]="buttonColspan" [attr.rowspan]="superHeaders.length + 1">
|
|
2987
|
+
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
2988
|
+
<button mat-icon-button
|
|
2989
|
+
class="{{button.className}}"
|
|
2990
|
+
*ngIf="((btnHeader && btnHeader.display) ? btnHeader.display(header) : false) "
|
|
2991
|
+
[disabled]="((btnHeader && $any(btnHeader).disabled) ? $any(btnHeader).disabled(header) : false) "
|
|
2992
|
+
color="{{$any(btnHeader).color}}"
|
|
2993
|
+
(click)="onClick($any(btnHeader).click, null)"
|
|
2994
|
+
matTooltip="{{((btnHeader && $any(btnHeader).title) ? $any(btnHeader).title : '') | translate}}"
|
|
2995
|
+
[ngSwitch]="TableService.getIconType($any(btnHeader))">
|
|
2996
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ $any(btnHeader).icon }}
|
|
2997
|
+
</mat-icon>
|
|
2998
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{$any(btnHeader).icon}}"></i>
|
|
2999
|
+
</button>
|
|
3000
|
+
</ng-container>
|
|
3001
|
+
<ng-container *ngIf="TableService.getButtonHeaderString(button) as btnHeader">
|
|
3002
|
+
<div title="{{$any(btnHeader) | translate}}"
|
|
3003
|
+
class="viewData"
|
|
3004
|
+
fxLayout="row"
|
|
3005
|
+
fxLayoutAlign="{{button.alignHeader ? button.alignHeader : AlignEnum.LEFT}} center">
|
|
3006
|
+
{{ $any(btnHeader) | translate }}
|
|
3007
|
+
</div>
|
|
3008
|
+
</ng-container>
|
|
3009
|
+
</th>
|
|
3010
|
+
</ng-container>
|
|
3011
|
+
<ng-container *matCellDef="let cell">
|
|
3012
|
+
<td mat-cell [ngClass]="button.className"
|
|
3013
|
+
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
3014
|
+
(click)="$event.stopPropagation()">
|
|
3015
|
+
<button mat-icon-button color="{{button.color}}"
|
|
3016
|
+
(click)="onClick(button.click, cell)"
|
|
3017
|
+
disabled="{{button.disabled ? button.disabled(cell) : false}}"
|
|
3018
|
+
matTooltip="{{(button.title ? button.title : '') | translate}}"
|
|
3019
|
+
class="{{button.className}}" [ngSwitch]="TableService.getIconType(button)">
|
|
3020
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ button.icon }}</mat-icon>
|
|
3021
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{button.icon}}"></i>
|
|
3022
|
+
</button>
|
|
3023
|
+
</td>
|
|
3024
|
+
</ng-container>
|
|
3025
|
+
</ng-container>
|
|
2959
3026
|
|
|
3027
|
+
<ng-container *ngFor="let row of superHeaders">
|
|
3028
|
+
<ng-container *ngFor="let column of row" matColumnDef="{{column.columnDef}}">
|
|
3029
|
+
<ng-container *ngIf="onDisplayHeaderCell(column)">
|
|
3030
|
+
<th mat-header-cell *matHeaderCellDef
|
|
3031
|
+
[ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
3032
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan">
|
|
3033
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
3034
|
+
[selectAllChecked]="selectAllChecked"
|
|
3035
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(this.results.data, $event)">
|
|
3036
|
+
</cva-table-header-cell>
|
|
3037
|
+
</th>
|
|
3038
|
+
</ng-container>
|
|
3039
|
+
</ng-container>
|
|
3040
|
+
</ng-container>
|
|
2960
3041
|
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
3042
|
+
<ng-container *ngFor="let row of superHeaders; let rowIndex = index">
|
|
3043
|
+
<tr mat-header-row *matHeaderRowDef="TableService.getHeaderColumns(row, rowIndex, buttons)"></tr>
|
|
3044
|
+
</ng-container>
|
|
3045
|
+
<tr mat-header-row
|
|
3046
|
+
*matHeaderRowDef="TableService.getHeaderColumns(columns, superHeaders.length, buttons)"></tr>
|
|
3047
|
+
<tr mat-row
|
|
3048
|
+
*matRowDef="let result; columns: TableService.getHeaderColumns(columns, 0, buttons); let i = index"
|
|
3049
|
+
[ngClass]="result.className"
|
|
3050
|
+
(click)="onRowClick(result, i)"></tr>
|
|
3051
|
+
</table>
|
|
3052
|
+
<div *ngIf="!(loaderService.isLoading | async)">
|
|
3053
|
+
<div class="paging"
|
|
3054
|
+
*ngIf="hasData()"
|
|
3055
|
+
fxLayout fxLayoutAlign="space-between center">
|
|
3056
|
+
<mat-paginator style-paginator
|
|
3057
|
+
[showTotalPages]="showTotalPages"
|
|
3058
|
+
[paging]="varPaging"
|
|
3059
|
+
(pagingChangeEvent)="getPage($event)"
|
|
3060
|
+
[length]="varPaging.totalElements"
|
|
3061
|
+
[pageSize]="varPaging.pageSize"
|
|
3062
|
+
[pageSizeOptions]="pageSizeOptions"
|
|
3063
|
+
[pageIndex]="varPaging.pageNumber - 1">
|
|
3064
|
+
</mat-paginator>
|
|
3065
|
+
<div class="go-to-page"
|
|
3066
|
+
fxLayout fxLayoutGap="0.3rem" fxLayoutAlign="start baseline">
|
|
3067
|
+
<mat-label>{{ 'common.gotopage' | translate }}</mat-label>
|
|
3068
|
+
<cva-counter-input [(ngModel)]="goToPageNumber"
|
|
3069
|
+
(ngModelChange)="onChangeGoToPageNumber($event)"
|
|
3070
|
+
(onEnter)="goToPage()"
|
|
3071
|
+
[max]="getTotalPage() ? getTotalPage() : 1"
|
|
3072
|
+
[min]="1"
|
|
3073
|
+
[isFloatLabel]="false"
|
|
3074
|
+
[errorMessages]="errorMsg"
|
|
3075
|
+
></cva-counter-input>
|
|
3076
|
+
<mat-label style="white-space: nowrap">{{ '/' + getTotalPage() }}</mat-label>
|
|
3077
|
+
<button mat-flat-button
|
|
3078
|
+
[disabled]="goToPageNumber < 1 || goToPageNumber > getTotalPage()"
|
|
3079
|
+
(click)="goToPage()">{{ 'common.go' | translate }}
|
|
3080
|
+
</button>
|
|
3081
|
+
</div>
|
|
3082
|
+
<h2 *ngIf="!hasData()">{{ 'common.no.records.found' | translate }}</h2>
|
|
3083
|
+
</div>
|
|
3084
|
+
</div>
|
|
2997
3085
|
</div>
|
|
2998
|
-
|
|
2999
|
-
</div>
|
|
3000
|
-
`,
|
|
3086
|
+
`,
|
|
3001
3087
|
providers: [
|
|
3002
3088
|
{ provide: MatPaginatorIntl, useClass: MultiLanguageTablePaginator },
|
|
3003
3089
|
],
|
|
@@ -3017,6 +3103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3017
3103
|
type: Input
|
|
3018
3104
|
}], expandHeaderButton: [{
|
|
3019
3105
|
type: Input
|
|
3106
|
+
}], superHeaders: [{
|
|
3107
|
+
type: Input
|
|
3020
3108
|
}], pagingChange: [{
|
|
3021
3109
|
type: Output
|
|
3022
3110
|
}], clickAction: [{
|
|
@@ -4970,10 +5058,15 @@ class CvaSmartTableComponent {
|
|
|
4970
5058
|
ref;
|
|
4971
5059
|
config;
|
|
4972
5060
|
injector;
|
|
5061
|
+
ColumnTypeEnum = ColumnTypeEnum;
|
|
5062
|
+
IconTypeEnum = IconTypeEnum;
|
|
5063
|
+
AlignEnum = AlignEnum;
|
|
5064
|
+
TableService = TableService;
|
|
4973
5065
|
cellComponents;
|
|
4974
5066
|
moduleName = '';
|
|
4975
5067
|
columns = [];
|
|
4976
5068
|
buttons = [];
|
|
5069
|
+
superHeaders = [];
|
|
4977
5070
|
value = [];
|
|
4978
5071
|
minRow = 0;
|
|
4979
5072
|
maxRow = 9999;
|
|
@@ -5002,24 +5095,6 @@ class CvaSmartTableComponent {
|
|
|
5002
5095
|
ngControl.valueAccessor = this;
|
|
5003
5096
|
}
|
|
5004
5097
|
}
|
|
5005
|
-
get AlignEnum() {
|
|
5006
|
-
return AlignEnum;
|
|
5007
|
-
}
|
|
5008
|
-
get IconTypes() {
|
|
5009
|
-
return IconTypeEnum;
|
|
5010
|
-
}
|
|
5011
|
-
get TableService() {
|
|
5012
|
-
return TableService;
|
|
5013
|
-
}
|
|
5014
|
-
get displayedColumns() {
|
|
5015
|
-
if (!this.$displayedColumns || this.$displayedColumns.length <= 0) {
|
|
5016
|
-
this.$displayedColumns = this.columns.map((c) => c.columnDef);
|
|
5017
|
-
if (this.buttons) {
|
|
5018
|
-
this.$displayedColumns = this.$displayedColumns.concat(this.buttons.map((b) => b.columnDef));
|
|
5019
|
-
}
|
|
5020
|
-
}
|
|
5021
|
-
return this.$displayedColumns;
|
|
5022
|
-
}
|
|
5023
5098
|
get displayedFooters() {
|
|
5024
5099
|
if (!this.$displayedFooters || this.$displayedFooters.length <= 0) {
|
|
5025
5100
|
for (const column of this.columns) {
|
|
@@ -5035,9 +5110,6 @@ class CvaSmartTableComponent {
|
|
|
5035
5110
|
}
|
|
5036
5111
|
return this.$displayedFooters;
|
|
5037
5112
|
}
|
|
5038
|
-
get ColumnTypes() {
|
|
5039
|
-
return ColumnTypeEnum;
|
|
5040
|
-
}
|
|
5041
5113
|
propagateChange = (_) => {
|
|
5042
5114
|
/*NON-EMPTY FOR COMPILE*/
|
|
5043
5115
|
};
|
|
@@ -5100,16 +5172,6 @@ class CvaSmartTableComponent {
|
|
|
5100
5172
|
this.callValidator();
|
|
5101
5173
|
this.onChange.emit();
|
|
5102
5174
|
}
|
|
5103
|
-
toggleSelectAll(val, col) {
|
|
5104
|
-
if (this.value) {
|
|
5105
|
-
this.value.forEach(v => {
|
|
5106
|
-
v.checked = val.checked;
|
|
5107
|
-
});
|
|
5108
|
-
}
|
|
5109
|
-
if (col.onHeaderCellValueChange) {
|
|
5110
|
-
col.onHeaderCellValueChange(val.checked);
|
|
5111
|
-
}
|
|
5112
|
-
}
|
|
5113
5175
|
toggleSelect(val, result, column) {
|
|
5114
5176
|
let count = 0;
|
|
5115
5177
|
if (this.value && this.value.length > 0) {
|
|
@@ -5162,9 +5224,6 @@ class CvaSmartTableComponent {
|
|
|
5162
5224
|
this.formControl.updateValueAndValidity();
|
|
5163
5225
|
}
|
|
5164
5226
|
}
|
|
5165
|
-
getRequired(column) {
|
|
5166
|
-
return typeof (column.isRequired) === 'function' ? column.isRequired() : (column.isRequired ?? false);
|
|
5167
|
-
}
|
|
5168
5227
|
getIsDecimal(column) {
|
|
5169
5228
|
return column.isDecimal ? typeof (column.isDecimal) === 'boolean' ? column.isDecimal : column.isDecimal() : false;
|
|
5170
5229
|
}
|
|
@@ -5212,253 +5271,270 @@ class CvaSmartTableComponent {
|
|
|
5212
5271
|
}
|
|
5213
5272
|
}
|
|
5214
5273
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaSmartTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: InjectTokenNextSolutionsConfig }, { token: i0.Injector }, { token: i1$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5215
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaSmartTableComponent, isStandalone: false, selector: "cva-smart-table", inputs: { moduleName: "moduleName", columns: "columns", buttons: "buttons", value: "value", minRow: "minRow", maxRow: "maxRow", errorMessages: "errorMessages", isFormControl: "isFormControl", isSticky: "isSticky", isStickyHeader: "isStickyHeader", isStickyFooter: "isStickyFooter", isExpandRowTable: "isExpandRowTable", expandRowProperty: "expandRowProperty" }, outputs: { clickAction: "clickAction", onChange: "onChange" }, viewQueries: [{ propertyName: "matTable", first: true, predicate: ["matTable"], descendants: true }, { propertyName: "cellComponents", predicate: ["cellComponentRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
(onChange)="onCellValueChange(result, column, $event);"
|
|
5334
|
-
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5335
|
-
[formatFunc]="formatFunc">
|
|
5336
|
-
</cva-input>
|
|
5337
|
-
<cva-date-picker *ngSwitchCase="ColumnTypes.DATE_PICKER"
|
|
5338
|
-
#cellComponentRef
|
|
5339
|
-
[value]="result[column.columnDef]"
|
|
5340
|
-
[isFormControl]="false"
|
|
5341
|
-
[minDate]="column.min ? column.min(result) : null"
|
|
5342
|
-
[maxDate]="column.max ? column.max(result) : null"
|
|
5343
|
-
[required]="getRequired(column)"
|
|
5344
|
-
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5345
|
-
[errorMessages]="getErrorMessageMap(column)"
|
|
5346
|
-
(onChange)="onCellValueChange(result, column, $event);">
|
|
5347
|
-
</cva-date-picker>
|
|
5348
|
-
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaSmartTableComponent, isStandalone: false, selector: "cva-smart-table", inputs: { moduleName: "moduleName", columns: "columns", buttons: "buttons", superHeaders: "superHeaders", value: "value", minRow: "minRow", maxRow: "maxRow", errorMessages: "errorMessages", isFormControl: "isFormControl", isSticky: "isSticky", isStickyHeader: "isStickyHeader", isStickyFooter: "isStickyFooter", isExpandRowTable: "isExpandRowTable", expandRowProperty: "expandRowProperty" }, outputs: { clickAction: "clickAction", onChange: "onChange" }, viewQueries: [{ propertyName: "matTable", first: true, predicate: ["matTable"], descendants: true }, { propertyName: "cellComponents", predicate: ["cellComponentRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
5275
|
+
<div class="table-responsive"
|
|
5276
|
+
[ngClass]="{'fixed_header': isSticky||isStickyHeader, 'fixed_footer': isSticky||isStickyFooter}">
|
|
5277
|
+
<table mat-table [dataSource]="datasource" #matTable class="mat-elevation-z8 cva-smart-table">
|
|
5278
|
+
<ng-container *ngFor="let column of columns" matColumnDef="{{column.columnDef}}">
|
|
5279
|
+
<ng-container *matHeaderCellDef>
|
|
5280
|
+
<th mat-header-cell [ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
5281
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan"
|
|
5282
|
+
*ngIf="onDisplayHeaderCell(column)">
|
|
5283
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
5284
|
+
[selectAllChecked]="selectAllChecked"
|
|
5285
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(value, $event)">
|
|
5286
|
+
</cva-table-header-cell>
|
|
5287
|
+
</th>
|
|
5288
|
+
</ng-container>
|
|
5289
|
+
<ng-container *matCellDef="let result; let i = index">
|
|
5290
|
+
<td mat-cell [ngClass]="TableService.getColumnClassName(column,result)"
|
|
5291
|
+
*ngIf="TableService.onDisplayCell(column, result)"
|
|
5292
|
+
[ngSwitch]="TableService.getColumnType(column, result)">
|
|
5293
|
+
<div title="{{column.title(result)}}"
|
|
5294
|
+
*ngSwitchCase="ColumnTypeEnum.VIEW"
|
|
5295
|
+
class="viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5296
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
5297
|
+
{{ column.cell(result) }}
|
|
5298
|
+
</div>
|
|
5299
|
+
<div class="link viewData"
|
|
5300
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5301
|
+
*ngSwitchCase="ColumnTypeEnum.LINK"
|
|
5302
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5303
|
+
title="{{column.title(result)}}">
|
|
5304
|
+
<a [routerLink]="[column.link ? column.link(result) : '']">{{ column.cell(result) }}</a>
|
|
5305
|
+
</div>
|
|
5306
|
+
<div class="img-view viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5307
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5308
|
+
*ngSwitchCase="ColumnTypeEnum.IMG"
|
|
5309
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5310
|
+
title="{{column.title(result)}}">
|
|
5311
|
+
<img [src]="column.cell(result) | secure | async"
|
|
5312
|
+
#imgRef
|
|
5313
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
5314
|
+
</div>
|
|
5315
|
+
<div class="img-view viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5316
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5317
|
+
*ngSwitchCase="ColumnTypeEnum.IMG_NO_SECURE"
|
|
5318
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5319
|
+
title="{{column.title(result)}}">
|
|
5320
|
+
<img [src]="column.cell(result)"
|
|
5321
|
+
#imgRef
|
|
5322
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
5323
|
+
</div>
|
|
5324
|
+
<div *ngSwitchCase="ColumnTypeEnum.BASE64"
|
|
5325
|
+
class="viewData img-view base64 {{TableService.getColumnClassName(column,result)}}"
|
|
5326
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5327
|
+
title="{{column.title(result)}}">
|
|
5328
|
+
<img [src]="'data:image/png;base64,'+column.cell(result)"
|
|
5329
|
+
#base64ImgRef
|
|
5330
|
+
(error)="TableService.onErrorImgEvent(base64ImgRef, config.NO_IMAGE_AVAILABLE)"
|
|
5331
|
+
alt=""/>
|
|
5332
|
+
</div>
|
|
5333
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.BUTTON">
|
|
5334
|
+
<div *ngIf="!!column.button"
|
|
5335
|
+
class="{{TableService.getColumnClassName(column, result)}}"
|
|
5336
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5337
|
+
(click)="$event.stopPropagation()">
|
|
5338
|
+
<button mat-icon-button type="button"
|
|
5339
|
+
color="{{column.button.color}}"
|
|
5340
|
+
[ngClass]="column.button.className"
|
|
5341
|
+
(click)="onClick(column.button.click, result, i)"
|
|
5342
|
+
disabled="{{column.button && column.button.disabled ? column.button.disabled(result) : false}}"
|
|
5343
|
+
matTooltip="{{(column.button.title ? column.button.title : '') | translate}}"
|
|
5344
|
+
[ngSwitch]="TableService.getIconType(column.button)">
|
|
5345
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ column.button.icon }}
|
|
5346
|
+
</mat-icon>
|
|
5347
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{column.button.icon}}"></i>
|
|
5348
|
+
</button>
|
|
5349
|
+
</div>
|
|
5350
|
+
</ng-container>
|
|
5351
|
+
<cva-counter-input *ngSwitchCase="ColumnTypeEnum.INPUT_COUNTER"
|
|
5352
|
+
#cellComponentRef
|
|
5353
|
+
class="inputNumber" #nsCounterInput
|
|
5354
|
+
[isFormControl]="false"
|
|
5355
|
+
[alignNumber]="getAlign(column)"
|
|
5356
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5357
|
+
[value]="result[column.columnDef]"
|
|
5358
|
+
[required]="TableService.getRequired(column)"
|
|
5359
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5360
|
+
[isDecimal]="getIsDecimal(column)"
|
|
5361
|
+
[min]="column.min ? column.min(result) : null"
|
|
5362
|
+
[max]="column.max ? column.max(result) : null"
|
|
5363
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5364
|
+
</cva-counter-input>
|
|
5365
|
+
<cva-input *ngSwitchCase="ColumnTypeEnum.INPUT"
|
|
5366
|
+
#cellComponentRef
|
|
5367
|
+
[isFormControl]="false"
|
|
5368
|
+
[alignText]="getAlign(column)"
|
|
5369
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5370
|
+
[text]="result[column.columnDef]"
|
|
5371
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5372
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5373
|
+
[required]="TableService.getRequired(column)"
|
|
5374
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5375
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5376
|
+
</cva-input>
|
|
5377
|
+
<cva-input *ngSwitchCase="ColumnTypeEnum.INPUT_CURRENCY"
|
|
5378
|
+
#cellComponentRef
|
|
5379
|
+
[isFormControl]="false"
|
|
5380
|
+
[alignText]="getAlign(column)"
|
|
5381
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5382
|
+
[text]="result[column.columnDef]"
|
|
5383
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5384
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5385
|
+
[required]="TableService.getRequired(column)"
|
|
5386
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5387
|
+
(onChange)="onCellValueChange(result, column, $event);"
|
|
5388
|
+
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5389
|
+
[formatFunc]="formatFunc">
|
|
5390
|
+
</cva-input>
|
|
5391
|
+
<cva-date-picker *ngSwitchCase="ColumnTypeEnum.DATE_PICKER"
|
|
5349
5392
|
#cellComponentRef
|
|
5350
|
-
*ngSwitchCase="ColumnTypes.MULTI_SELECT_AUTOCOMPLETE"
|
|
5351
|
-
class="multiSelectAutocomplete"
|
|
5352
|
-
[isTree]="column.isTree??false"
|
|
5353
5393
|
[value]="result[column.columnDef]"
|
|
5354
|
-
[
|
|
5355
|
-
[
|
|
5394
|
+
[isFormControl]="false"
|
|
5395
|
+
[minDate]="column.min ? column.min(result) : null"
|
|
5396
|
+
[maxDate]="column.max ? column.max(result) : null"
|
|
5397
|
+
[required]="TableService.getRequired(column)"
|
|
5356
5398
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5357
|
-
[
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5399
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5400
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5401
|
+
</cva-date-picker>
|
|
5402
|
+
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5403
|
+
#cellComponentRef
|
|
5404
|
+
*ngSwitchCase="ColumnTypeEnum.MULTI_SELECT_AUTOCOMPLETE"
|
|
5405
|
+
class="multiSelectAutocomplete"
|
|
5406
|
+
[isTree]="column.isTree??false"
|
|
5407
|
+
[value]="result[column.columnDef]"
|
|
5408
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5409
|
+
[required]="TableService.getRequired(column)"
|
|
5410
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5411
|
+
[multiple]="column.isMultipleSelect??false"
|
|
5412
|
+
[options]="column.optionValues ? column.optionValues(result) : []"
|
|
5413
|
+
(selectionChange)="onCellValueChange(result, column, $event);">
|
|
5414
|
+
</cva-multi-select-autocomplete>
|
|
5415
|
+
<div class="checkbox-cell"
|
|
5416
|
+
fxLayout="row"
|
|
5417
|
+
[fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5418
|
+
*ngSwitchCase="ColumnTypeEnum.CHECKBOX">
|
|
5419
|
+
<mat-checkbox [(ngModel)]="result[column.columnDef]" color="primary"
|
|
5420
|
+
*ngIf="column.display ? column.display(result) : true"
|
|
5421
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5422
|
+
(change)="toggleSelect($event,result, column)">
|
|
5423
|
+
</mat-checkbox>
|
|
5424
|
+
</div>
|
|
5425
|
+
<cva-live-searching *ngSwitchCase="ColumnTypeEnum.LIVE_SEARCHING"
|
|
5426
|
+
#cellComponentRef
|
|
5427
|
+
[isFormControl]="false" [required]="TableService.getRequired(column)"
|
|
5428
|
+
[row]="result" [columnDef]="column.columnDef"
|
|
5429
|
+
[searchFn]="column.searchFn"
|
|
5430
|
+
[mappingConfig]="column.mappingConfig"
|
|
5431
|
+
[displayKey]="column.displayKey??''"
|
|
5432
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5433
|
+
(onChange)="onCellValueChange(result, column, $event)">
|
|
5434
|
+
</cva-live-searching>
|
|
5435
|
+
</td>
|
|
5436
|
+
</ng-container>
|
|
5437
|
+
</ng-container>
|
|
5438
|
+
<ng-container *ngFor="let button of buttons; let i = index" matColumnDef="{{button.columnDef}}">
|
|
5439
|
+
<ng-container *matHeaderCellDef="let header">
|
|
5440
|
+
<th mat-header-cell
|
|
5441
|
+
[ngClass]="button.className"
|
|
5442
|
+
*ngIf="TableService.onDisplayButtonHeaderCell(buttons, button, header, i) && !!buttonColspan"
|
|
5443
|
+
(click)="$event.stopPropagation()"
|
|
5444
|
+
[attr.colspan]="buttonColspan" [attr.rowspan]="superHeaders.length + 1">
|
|
5445
|
+
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
5446
|
+
<button mat-icon-button type="button"
|
|
5447
|
+
class="{{button.className}}"
|
|
5448
|
+
color="{{$any(btnHeader).color}}"
|
|
5449
|
+
(click)="onClick($any(btnHeader).click, null, null)"
|
|
5450
|
+
[disabled]="(btnHeader && $any(btnHeader).disabled) ? $any(btnHeader).disabled(header) : false"
|
|
5451
|
+
*ngIf="(btnHeader && btnHeader.display) ? btnHeader.display(header) : false"
|
|
5452
|
+
matTooltip="{{((btnHeader && $any(btnHeader).title) ? $any(btnHeader).title : '') | translate}}"
|
|
5453
|
+
[ngSwitch]="TableService.getIconType($any(btnHeader))">
|
|
5454
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ $any(btnHeader).icon }}
|
|
5455
|
+
</mat-icon>
|
|
5456
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{$any(btnHeader).icon}}"></i>
|
|
5457
|
+
</button>
|
|
5458
|
+
</ng-container>
|
|
5459
|
+
<ng-container *ngIf="TableService.getButtonHeaderString(button) as btnHeader">
|
|
5460
|
+
<div title="{{$any(btnHeader) | translate}}"
|
|
5461
|
+
class="viewData"
|
|
5462
|
+
fxLayout="row"
|
|
5463
|
+
fxLayoutAlign="{{button.alignHeader ? button.alignHeader : AlignEnum.LEFT}} center">
|
|
5464
|
+
{{ $any(btnHeader) | translate }}
|
|
5465
|
+
</div>
|
|
5466
|
+
</ng-container>
|
|
5467
|
+
</th>
|
|
5468
|
+
</ng-container>
|
|
5469
|
+
<ng-container *matCellDef="let cell; let i = index">
|
|
5470
|
+
<td mat-cell [ngClass]="button.className"
|
|
5471
|
+
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
5472
|
+
(click)="$event.stopPropagation()">
|
|
5473
|
+
<button mat-icon-button type="button"
|
|
5474
|
+
color="{{button.color}}"
|
|
5475
|
+
[ngClass]="button.className"
|
|
5476
|
+
(click)="onClick(button.click, cell, i)"
|
|
5477
|
+
disabled="{{button && button.disabled ? button.disabled(cell) : false}}"
|
|
5478
|
+
matTooltip="{{(button.title ? button.title : '') | translate}}"
|
|
5479
|
+
[ngSwitch]="TableService.getIconType(button)">
|
|
5480
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ button.icon }}</mat-icon>
|
|
5481
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{button.icon}}"></i>
|
|
5482
|
+
</button>
|
|
5483
|
+
</td>
|
|
5484
|
+
</ng-container>
|
|
5485
|
+
</ng-container>
|
|
5486
|
+
<ng-container *ngFor="let column of columns">
|
|
5487
|
+
<ng-container *ngFor="let footer of column.footers; let i = index"
|
|
5488
|
+
matColumnDef="{{i}}-{{column.columnDef}}">
|
|
5489
|
+
<ng-container *matFooterCellDef>
|
|
5490
|
+
<td mat-footer-cell *ngIf="onDisplayFooter(footer, datasource.data)"
|
|
5491
|
+
[attr.colspan]="TableService.getColspan(footer, datasource.data)"
|
|
5492
|
+
class="{{TableService.getColumnClassName(column,datasource.data)}} {{TableService.getColumnClassName(column.footer,datasource.data)}}">
|
|
5493
|
+
<div title="{{footer.title(datasource.data)}}"
|
|
5494
|
+
class="viewData {{TableService.getColumnClassName(column,datasource.data)}}"
|
|
5495
|
+
fxLayout="row"
|
|
5496
|
+
[fxLayoutAlign]="footer.align ? footer.align : AlignEnum.LEFT">
|
|
5497
|
+
{{ footer.cell(datasource.data) }}
|
|
5498
|
+
</div>
|
|
5499
|
+
</td>
|
|
5500
|
+
</ng-container>
|
|
5501
|
+
</ng-container>
|
|
5502
|
+
</ng-container>
|
|
5503
|
+
|
|
5504
|
+
<ng-container *ngFor="let row of superHeaders">
|
|
5505
|
+
<ng-container *ngFor="let column of row" matColumnDef="{{column.columnDef}}">
|
|
5506
|
+
<ng-container *ngIf="onDisplayHeaderCell(column)">
|
|
5507
|
+
<th mat-header-cell *matHeaderCellDef
|
|
5508
|
+
[ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
5509
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan">
|
|
5510
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
5511
|
+
[selectAllChecked]="selectAllChecked"
|
|
5512
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(value, $event)">
|
|
5513
|
+
</cva-table-header-cell>
|
|
5514
|
+
</th>
|
|
5515
|
+
</ng-container>
|
|
5516
|
+
</ng-container>
|
|
5517
|
+
</ng-container>
|
|
5518
|
+
|
|
5519
|
+
<ng-container *ngFor="let row of superHeaders; let rowIndex = index">
|
|
5520
|
+
<tr mat-header-row
|
|
5521
|
+
*matHeaderRowDef="TableService.getHeaderColumns(row, rowIndex, buttons); sticky: isSticky||isStickyHeader"></tr>
|
|
5522
|
+
</ng-container>
|
|
5523
|
+
<tr mat-header-row
|
|
5524
|
+
*matHeaderRowDef="TableService.getHeaderColumns(columns, superHeaders.length, buttons); sticky: isSticky||isStickyHeader"></tr>
|
|
5525
|
+
<tr mat-row *matRowDef="let result; columns: TableService.getHeaderColumns(columns, 0, buttons);"
|
|
5526
|
+
class="{{result.className}}"
|
|
5527
|
+
[ngClass]="{'childRow0': !!result.isChildRow && result.parentRowClassIndex === 0,
|
|
5452
5528
|
'parentRow0': !result.isChildRow && result.parentRowClassIndex === 0,
|
|
5453
5529
|
'childRow1': !!result.isChildRow && result.parentRowClassIndex === 1,
|
|
5454
5530
|
'parentRow1': !result.isChildRow && result.parentRowClassIndex === 1}"
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5531
|
+
></tr>
|
|
5532
|
+
<ng-container *ngFor="let df of displayedFooters">
|
|
5533
|
+
<tr mat-footer-row *matFooterRowDef="df; sticky: isSticky||isStickyFooter"></tr>
|
|
5534
|
+
</ng-container>
|
|
5535
|
+
</table>
|
|
5536
|
+
</div>
|
|
5537
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i5.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i5.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CvaTableHeaderCellComponent, selector: "cva-table-header-cell", inputs: ["moduleName", "column", "selectAllChecked"], outputs: ["changeSelectAll"] }, { kind: "component", type: CvaInputComponent, selector: "cva-input", inputs: ["label", "name", "placeholder", "hint", "required", "disabled", "text", "type", "pattern", "errorMessages", "multiline", "isLabelOutside", "isFloatLabel", "minLength", "maxLength", "alignText", "maxLengthDisplay", "percentOfLabelOutside", "suffixFontAwesomeClass", "patternFilter", "isFormControl", "formatFunc"], outputs: ["onChange"] }, { kind: "component", type: CvaCounterInputComponent, selector: "cva-counter-input", inputs: ["label", "placeholder", "suffixText", "hint", "value", "disabled", "required", "errorMessages", "min", "max", "error", "isDecimal", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "alignNumber", "isFormControl"], outputs: ["onChange", "onEnter"] }, { kind: "component", type: CvaDatePickerComponent, selector: "cva-date-picker", inputs: ["label", "placeholder", "value", "disabled", "required", "minDate", "maxDate", "errorMessages", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["onChange"] }, { kind: "component", type: CvaMultiSelectAutocomplete, selector: "cva-multi-select-autocomplete", inputs: ["placeholder", "label", "hint", "value", "options", "disabled", "errorMessages", "multiple", "required", "isTree", "treeSymbol", "sizeOfItemsInListByPixels", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["selectionChange", "selectedOptionDataChange"] }, { kind: "component", type: CvaLiveSearchingComponent, selector: "cva-live-searching", inputs: ["label", "placeholder", "hint", "required", "disabled", "errorMessages", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "suffixFontAwesomeClass", "displayKey", "mappingConfig", "searchFn", "isFormControl", "row", "columnDef"], outputs: ["onChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
5462
5538
|
}
|
|
5463
5539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaSmartTableComponent, decorators: [{
|
|
5464
5540
|
type: Component,
|
|
@@ -5466,252 +5542,269 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5466
5542
|
selector: 'cva-smart-table',
|
|
5467
5543
|
standalone: false,
|
|
5468
5544
|
template: `
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
(onChange)="onCellValueChange(result, column, $event);"
|
|
5587
|
-
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5588
|
-
[formatFunc]="formatFunc">
|
|
5589
|
-
</cva-input>
|
|
5590
|
-
<cva-date-picker *ngSwitchCase="ColumnTypes.DATE_PICKER"
|
|
5591
|
-
#cellComponentRef
|
|
5592
|
-
[value]="result[column.columnDef]"
|
|
5593
|
-
[isFormControl]="false"
|
|
5594
|
-
[minDate]="column.min ? column.min(result) : null"
|
|
5595
|
-
[maxDate]="column.max ? column.max(result) : null"
|
|
5596
|
-
[required]="getRequired(column)"
|
|
5597
|
-
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5598
|
-
[errorMessages]="getErrorMessageMap(column)"
|
|
5599
|
-
(onChange)="onCellValueChange(result, column, $event);">
|
|
5600
|
-
</cva-date-picker>
|
|
5601
|
-
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5545
|
+
<div class="table-responsive"
|
|
5546
|
+
[ngClass]="{'fixed_header': isSticky||isStickyHeader, 'fixed_footer': isSticky||isStickyFooter}">
|
|
5547
|
+
<table mat-table [dataSource]="datasource" #matTable class="mat-elevation-z8 cva-smart-table">
|
|
5548
|
+
<ng-container *ngFor="let column of columns" matColumnDef="{{column.columnDef}}">
|
|
5549
|
+
<ng-container *matHeaderCellDef>
|
|
5550
|
+
<th mat-header-cell [ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
5551
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan"
|
|
5552
|
+
*ngIf="onDisplayHeaderCell(column)">
|
|
5553
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
5554
|
+
[selectAllChecked]="selectAllChecked"
|
|
5555
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(value, $event)">
|
|
5556
|
+
</cva-table-header-cell>
|
|
5557
|
+
</th>
|
|
5558
|
+
</ng-container>
|
|
5559
|
+
<ng-container *matCellDef="let result; let i = index">
|
|
5560
|
+
<td mat-cell [ngClass]="TableService.getColumnClassName(column,result)"
|
|
5561
|
+
*ngIf="TableService.onDisplayCell(column, result)"
|
|
5562
|
+
[ngSwitch]="TableService.getColumnType(column, result)">
|
|
5563
|
+
<div title="{{column.title(result)}}"
|
|
5564
|
+
*ngSwitchCase="ColumnTypeEnum.VIEW"
|
|
5565
|
+
class="viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5566
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)">
|
|
5567
|
+
{{ column.cell(result) }}
|
|
5568
|
+
</div>
|
|
5569
|
+
<div class="link viewData"
|
|
5570
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5571
|
+
*ngSwitchCase="ColumnTypeEnum.LINK"
|
|
5572
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5573
|
+
title="{{column.title(result)}}">
|
|
5574
|
+
<a [routerLink]="[column.link ? column.link(result) : '']">{{ column.cell(result) }}</a>
|
|
5575
|
+
</div>
|
|
5576
|
+
<div class="img-view viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5577
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5578
|
+
*ngSwitchCase="ColumnTypeEnum.IMG"
|
|
5579
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5580
|
+
title="{{column.title(result)}}">
|
|
5581
|
+
<img [src]="column.cell(result) | secure | async"
|
|
5582
|
+
#imgRef
|
|
5583
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
5584
|
+
</div>
|
|
5585
|
+
<div class="img-view viewData {{TableService.getColumnClassName(column,result)}}"
|
|
5586
|
+
[ngClass]="{'break-word-style-view': column.hasWordBreakStyle}"
|
|
5587
|
+
*ngSwitchCase="ColumnTypeEnum.IMG_NO_SECURE"
|
|
5588
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5589
|
+
title="{{column.title(result)}}">
|
|
5590
|
+
<img [src]="column.cell(result)"
|
|
5591
|
+
#imgRef
|
|
5592
|
+
(error)="TableService.onErrorImgEvent(imgRef, config.NO_IMAGE_AVAILABLE)" alt=""/>
|
|
5593
|
+
</div>
|
|
5594
|
+
<div *ngSwitchCase="ColumnTypeEnum.BASE64"
|
|
5595
|
+
class="viewData img-view base64 {{TableService.getColumnClassName(column,result)}}"
|
|
5596
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5597
|
+
title="{{column.title(result)}}">
|
|
5598
|
+
<img [src]="'data:image/png;base64,'+column.cell(result)"
|
|
5599
|
+
#base64ImgRef
|
|
5600
|
+
(error)="TableService.onErrorImgEvent(base64ImgRef, config.NO_IMAGE_AVAILABLE)"
|
|
5601
|
+
alt=""/>
|
|
5602
|
+
</div>
|
|
5603
|
+
<ng-container *ngSwitchCase="ColumnTypeEnum.BUTTON">
|
|
5604
|
+
<div *ngIf="!!column.button"
|
|
5605
|
+
class="{{TableService.getColumnClassName(column, result)}}"
|
|
5606
|
+
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5607
|
+
(click)="$event.stopPropagation()">
|
|
5608
|
+
<button mat-icon-button type="button"
|
|
5609
|
+
color="{{column.button.color}}"
|
|
5610
|
+
[ngClass]="column.button.className"
|
|
5611
|
+
(click)="onClick(column.button.click, result, i)"
|
|
5612
|
+
disabled="{{column.button && column.button.disabled ? column.button.disabled(result) : false}}"
|
|
5613
|
+
matTooltip="{{(column.button.title ? column.button.title : '') | translate}}"
|
|
5614
|
+
[ngSwitch]="TableService.getIconType(column.button)">
|
|
5615
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ column.button.icon }}
|
|
5616
|
+
</mat-icon>
|
|
5617
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{column.button.icon}}"></i>
|
|
5618
|
+
</button>
|
|
5619
|
+
</div>
|
|
5620
|
+
</ng-container>
|
|
5621
|
+
<cva-counter-input *ngSwitchCase="ColumnTypeEnum.INPUT_COUNTER"
|
|
5622
|
+
#cellComponentRef
|
|
5623
|
+
class="inputNumber" #nsCounterInput
|
|
5624
|
+
[isFormControl]="false"
|
|
5625
|
+
[alignNumber]="getAlign(column)"
|
|
5626
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5627
|
+
[value]="result[column.columnDef]"
|
|
5628
|
+
[required]="TableService.getRequired(column)"
|
|
5629
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5630
|
+
[isDecimal]="getIsDecimal(column)"
|
|
5631
|
+
[min]="column.min ? column.min(result) : null"
|
|
5632
|
+
[max]="column.max ? column.max(result) : null"
|
|
5633
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5634
|
+
</cva-counter-input>
|
|
5635
|
+
<cva-input *ngSwitchCase="ColumnTypeEnum.INPUT"
|
|
5636
|
+
#cellComponentRef
|
|
5637
|
+
[isFormControl]="false"
|
|
5638
|
+
[alignText]="getAlign(column)"
|
|
5639
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5640
|
+
[text]="result[column.columnDef]"
|
|
5641
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5642
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5643
|
+
[required]="TableService.getRequired(column)"
|
|
5644
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5645
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5646
|
+
</cva-input>
|
|
5647
|
+
<cva-input *ngSwitchCase="ColumnTypeEnum.INPUT_CURRENCY"
|
|
5648
|
+
#cellComponentRef
|
|
5649
|
+
[isFormControl]="false"
|
|
5650
|
+
[alignText]="getAlign(column)"
|
|
5651
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5652
|
+
[text]="result[column.columnDef]"
|
|
5653
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5654
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5655
|
+
[required]="TableService.getRequired(column)"
|
|
5656
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5657
|
+
(onChange)="onCellValueChange(result, column, $event);"
|
|
5658
|
+
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5659
|
+
[formatFunc]="formatFunc">
|
|
5660
|
+
</cva-input>
|
|
5661
|
+
<cva-date-picker *ngSwitchCase="ColumnTypeEnum.DATE_PICKER"
|
|
5602
5662
|
#cellComponentRef
|
|
5603
|
-
*ngSwitchCase="ColumnTypes.MULTI_SELECT_AUTOCOMPLETE"
|
|
5604
|
-
class="multiSelectAutocomplete"
|
|
5605
|
-
[isTree]="column.isTree??false"
|
|
5606
5663
|
[value]="result[column.columnDef]"
|
|
5607
|
-
[
|
|
5608
|
-
[
|
|
5664
|
+
[isFormControl]="false"
|
|
5665
|
+
[minDate]="column.min ? column.min(result) : null"
|
|
5666
|
+
[maxDate]="column.max ? column.max(result) : null"
|
|
5667
|
+
[required]="TableService.getRequired(column)"
|
|
5609
5668
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5610
|
-
[
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5669
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5670
|
+
(onChange)="onCellValueChange(result, column, $event);">
|
|
5671
|
+
</cva-date-picker>
|
|
5672
|
+
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5673
|
+
#cellComponentRef
|
|
5674
|
+
*ngSwitchCase="ColumnTypeEnum.MULTI_SELECT_AUTOCOMPLETE"
|
|
5675
|
+
class="multiSelectAutocomplete"
|
|
5676
|
+
[isTree]="column.isTree??false"
|
|
5677
|
+
[value]="result[column.columnDef]"
|
|
5678
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5679
|
+
[required]="TableService.getRequired(column)"
|
|
5680
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5681
|
+
[multiple]="column.isMultipleSelect??false"
|
|
5682
|
+
[options]="column.optionValues ? column.optionValues(result) : []"
|
|
5683
|
+
(selectionChange)="onCellValueChange(result, column, $event);">
|
|
5684
|
+
</cva-multi-select-autocomplete>
|
|
5685
|
+
<div class="checkbox-cell"
|
|
5686
|
+
fxLayout="row"
|
|
5687
|
+
[fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5688
|
+
*ngSwitchCase="ColumnTypeEnum.CHECKBOX">
|
|
5689
|
+
<mat-checkbox [(ngModel)]="result[column.columnDef]" color="primary"
|
|
5690
|
+
*ngIf="column.display ? column.display(result) : true"
|
|
5691
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5692
|
+
(change)="toggleSelect($event,result, column)">
|
|
5693
|
+
</mat-checkbox>
|
|
5694
|
+
</div>
|
|
5695
|
+
<cva-live-searching *ngSwitchCase="ColumnTypeEnum.LIVE_SEARCHING"
|
|
5696
|
+
#cellComponentRef
|
|
5697
|
+
[isFormControl]="false" [required]="TableService.getRequired(column)"
|
|
5698
|
+
[row]="result" [columnDef]="column.columnDef"
|
|
5699
|
+
[searchFn]="column.searchFn"
|
|
5700
|
+
[mappingConfig]="column.mappingConfig"
|
|
5701
|
+
[displayKey]="column.displayKey??''"
|
|
5702
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5703
|
+
(onChange)="onCellValueChange(result, column, $event)">
|
|
5704
|
+
</cva-live-searching>
|
|
5705
|
+
</td>
|
|
5706
|
+
</ng-container>
|
|
5707
|
+
</ng-container>
|
|
5708
|
+
<ng-container *ngFor="let button of buttons; let i = index" matColumnDef="{{button.columnDef}}">
|
|
5709
|
+
<ng-container *matHeaderCellDef="let header">
|
|
5710
|
+
<th mat-header-cell
|
|
5711
|
+
[ngClass]="button.className"
|
|
5712
|
+
*ngIf="TableService.onDisplayButtonHeaderCell(buttons, button, header, i) && !!buttonColspan"
|
|
5713
|
+
(click)="$event.stopPropagation()"
|
|
5714
|
+
[attr.colspan]="buttonColspan" [attr.rowspan]="superHeaders.length + 1">
|
|
5715
|
+
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
5716
|
+
<button mat-icon-button type="button"
|
|
5717
|
+
class="{{button.className}}"
|
|
5718
|
+
color="{{$any(btnHeader).color}}"
|
|
5719
|
+
(click)="onClick($any(btnHeader).click, null, null)"
|
|
5720
|
+
[disabled]="(btnHeader && $any(btnHeader).disabled) ? $any(btnHeader).disabled(header) : false"
|
|
5721
|
+
*ngIf="(btnHeader && btnHeader.display) ? btnHeader.display(header) : false"
|
|
5722
|
+
matTooltip="{{((btnHeader && $any(btnHeader).title) ? $any(btnHeader).title : '') | translate}}"
|
|
5723
|
+
[ngSwitch]="TableService.getIconType($any(btnHeader))">
|
|
5724
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ $any(btnHeader).icon }}
|
|
5725
|
+
</mat-icon>
|
|
5726
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{$any(btnHeader).icon}}"></i>
|
|
5727
|
+
</button>
|
|
5728
|
+
</ng-container>
|
|
5729
|
+
<ng-container *ngIf="TableService.getButtonHeaderString(button) as btnHeader">
|
|
5730
|
+
<div title="{{$any(btnHeader) | translate}}"
|
|
5731
|
+
class="viewData"
|
|
5732
|
+
fxLayout="row"
|
|
5733
|
+
fxLayoutAlign="{{button.alignHeader ? button.alignHeader : AlignEnum.LEFT}} center">
|
|
5734
|
+
{{ $any(btnHeader) | translate }}
|
|
5735
|
+
</div>
|
|
5736
|
+
</ng-container>
|
|
5737
|
+
</th>
|
|
5738
|
+
</ng-container>
|
|
5739
|
+
<ng-container *matCellDef="let cell; let i = index">
|
|
5740
|
+
<td mat-cell [ngClass]="button.className"
|
|
5741
|
+
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
5742
|
+
(click)="$event.stopPropagation()">
|
|
5743
|
+
<button mat-icon-button type="button"
|
|
5744
|
+
color="{{button.color}}"
|
|
5745
|
+
[ngClass]="button.className"
|
|
5746
|
+
(click)="onClick(button.click, cell, i)"
|
|
5747
|
+
disabled="{{button && button.disabled ? button.disabled(cell) : false}}"
|
|
5748
|
+
matTooltip="{{(button.title ? button.title : '') | translate}}"
|
|
5749
|
+
[ngSwitch]="TableService.getIconType(button)">
|
|
5750
|
+
<mat-icon *ngSwitchCase="IconTypeEnum.MATERIAL_ICON">{{ button.icon }}</mat-icon>
|
|
5751
|
+
<i *ngSwitchCase="IconTypeEnum.FONT_AWESOME" class="{{button.icon}}"></i>
|
|
5752
|
+
</button>
|
|
5753
|
+
</td>
|
|
5754
|
+
</ng-container>
|
|
5755
|
+
</ng-container>
|
|
5756
|
+
<ng-container *ngFor="let column of columns">
|
|
5757
|
+
<ng-container *ngFor="let footer of column.footers; let i = index"
|
|
5758
|
+
matColumnDef="{{i}}-{{column.columnDef}}">
|
|
5759
|
+
<ng-container *matFooterCellDef>
|
|
5760
|
+
<td mat-footer-cell *ngIf="onDisplayFooter(footer, datasource.data)"
|
|
5761
|
+
[attr.colspan]="TableService.getColspan(footer, datasource.data)"
|
|
5762
|
+
class="{{TableService.getColumnClassName(column,datasource.data)}} {{TableService.getColumnClassName(column.footer,datasource.data)}}">
|
|
5763
|
+
<div title="{{footer.title(datasource.data)}}"
|
|
5764
|
+
class="viewData {{TableService.getColumnClassName(column,datasource.data)}}"
|
|
5765
|
+
fxLayout="row"
|
|
5766
|
+
[fxLayoutAlign]="footer.align ? footer.align : AlignEnum.LEFT">
|
|
5767
|
+
{{ footer.cell(datasource.data) }}
|
|
5768
|
+
</div>
|
|
5769
|
+
</td>
|
|
5770
|
+
</ng-container>
|
|
5771
|
+
</ng-container>
|
|
5772
|
+
</ng-container>
|
|
5773
|
+
|
|
5774
|
+
<ng-container *ngFor="let row of superHeaders">
|
|
5775
|
+
<ng-container *ngFor="let column of row" matColumnDef="{{column.columnDef}}">
|
|
5776
|
+
<ng-container *ngIf="onDisplayHeaderCell(column)">
|
|
5777
|
+
<th mat-header-cell *matHeaderCellDef
|
|
5778
|
+
[ngClass]="TableService.getColumnHeaderClassName(column)"
|
|
5779
|
+
[attr.colspan]="column?.colSpan" [attr.rowspan]="column?.rowSpan">
|
|
5780
|
+
<cva-table-header-cell [moduleName]="moduleName" [column]="column"
|
|
5781
|
+
[selectAllChecked]="selectAllChecked"
|
|
5782
|
+
(changeSelectAll)="selectAllChecked = TableService.toggleSelectAll(value, $event)">
|
|
5783
|
+
</cva-table-header-cell>
|
|
5784
|
+
</th>
|
|
5785
|
+
</ng-container>
|
|
5786
|
+
</ng-container>
|
|
5787
|
+
</ng-container>
|
|
5788
|
+
|
|
5789
|
+
<ng-container *ngFor="let row of superHeaders; let rowIndex = index">
|
|
5790
|
+
<tr mat-header-row
|
|
5791
|
+
*matHeaderRowDef="TableService.getHeaderColumns(row, rowIndex, buttons); sticky: isSticky||isStickyHeader"></tr>
|
|
5792
|
+
</ng-container>
|
|
5793
|
+
<tr mat-header-row
|
|
5794
|
+
*matHeaderRowDef="TableService.getHeaderColumns(columns, superHeaders.length, buttons); sticky: isSticky||isStickyHeader"></tr>
|
|
5795
|
+
<tr mat-row *matRowDef="let result; columns: TableService.getHeaderColumns(columns, 0, buttons);"
|
|
5796
|
+
class="{{result.className}}"
|
|
5797
|
+
[ngClass]="{'childRow0': !!result.isChildRow && result.parentRowClassIndex === 0,
|
|
5705
5798
|
'parentRow0': !result.isChildRow && result.parentRowClassIndex === 0,
|
|
5706
5799
|
'childRow1': !!result.isChildRow && result.parentRowClassIndex === 1,
|
|
5707
5800
|
'parentRow1': !result.isChildRow && result.parentRowClassIndex === 1}"
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5801
|
+
></tr>
|
|
5802
|
+
<ng-container *ngFor="let df of displayedFooters">
|
|
5803
|
+
<tr mat-footer-row *matFooterRowDef="df; sticky: isSticky||isStickyFooter"></tr>
|
|
5804
|
+
</ng-container>
|
|
5805
|
+
</table>
|
|
5806
|
+
</div>
|
|
5807
|
+
`,
|
|
5715
5808
|
}]
|
|
5716
5809
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
5717
5810
|
type: Inject,
|
|
@@ -5729,6 +5822,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5729
5822
|
type: Input
|
|
5730
5823
|
}], buttons: [{
|
|
5731
5824
|
type: Input
|
|
5825
|
+
}], superHeaders: [{
|
|
5826
|
+
type: Input
|
|
5732
5827
|
}], value: [{
|
|
5733
5828
|
type: Input
|
|
5734
5829
|
}], minRow: [{
|
|
@@ -9540,7 +9635,8 @@ class NiceComponentLibraryModule {
|
|
|
9540
9635
|
};
|
|
9541
9636
|
}
|
|
9542
9637
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NiceComponentLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9543
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: NiceComponentLibraryModule, declarations: [
|
|
9638
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: NiceComponentLibraryModule, declarations: [CvaTableHeaderCellComponent,
|
|
9639
|
+
CvaTableComponent,
|
|
9544
9640
|
CvaSmartTableComponent,
|
|
9545
9641
|
CvaInputComponent,
|
|
9546
9642
|
CvaCounterInputComponent,
|
|
@@ -9622,6 +9718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9622
9718
|
FlexLayoutModule,
|
|
9623
9719
|
],
|
|
9624
9720
|
declarations: [
|
|
9721
|
+
CvaTableHeaderCellComponent,
|
|
9625
9722
|
CvaTableComponent,
|
|
9626
9723
|
CvaSmartTableComponent,
|
|
9627
9724
|
CvaInputComponent,
|