@c10t/nice-component-library 0.0.5-beta → 0.0.7-beta
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-header-expand-button.component.d.ts +4 -3
- package/components/table/cva-table.component.d.ts +3 -2
- package/fesm2022/c10t-nice-component-library.mjs +36 -16
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -1
- package/models/base.model.d.ts +4 -0
- package/package.json +1 -1
- package/services/api.service.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ColumnModel } from '../../models/components/column.model';
|
|
3
3
|
import { ButtonModel } from '../../models/components/button.model';
|
|
4
4
|
import { ColumnTypeEnum } from '../../enums/column-type.enum';
|
|
@@ -9,14 +9,15 @@ export declare class CvaHeaderExpandButtonComponent implements OnInit {
|
|
|
9
9
|
expandHeaderButton?: ButtonModel;
|
|
10
10
|
columns: ColumnModel[];
|
|
11
11
|
moduleName: string;
|
|
12
|
+
onChange: EventEmitter<void>;
|
|
12
13
|
expandDisplayCols: {
|
|
13
14
|
[key: string]: any;
|
|
14
15
|
};
|
|
15
16
|
constructor();
|
|
16
|
-
ngOnInit(): void;
|
|
17
17
|
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
18
18
|
get IconTypes(): typeof IconTypeEnum;
|
|
19
19
|
get TableService(): typeof TableService;
|
|
20
|
+
ngOnInit(): void;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CvaHeaderExpandButtonComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CvaHeaderExpandButtonComponent, "cva-header-expand-button", never, { "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "moduleName": { "alias": "moduleName"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaHeaderExpandButtonComponent, "cva-header-expand-button", never, { "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "moduleName": { "alias": "moduleName"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
22
23
|
}
|
|
@@ -28,6 +28,7 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
28
28
|
pagingChange: EventEmitter<TablePagingRequestModel>;
|
|
29
29
|
clickAction: EventEmitter<ButtonClickEvent>;
|
|
30
30
|
onRowClickAction: EventEmitter<ButtonClickEvent>;
|
|
31
|
+
onChangeDisplayColumn: EventEmitter<string[]>;
|
|
31
32
|
selectAllChecked: boolean;
|
|
32
33
|
goToPageNumber: number;
|
|
33
34
|
errorMsg: Map<string, () => string>;
|
|
@@ -38,11 +39,11 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
38
39
|
constructor(config: NiceComponentLibraryConfig, cdRef: ChangeDetectorRef, loaderService: LoaderService);
|
|
39
40
|
set paging(value: TablePagingRequestModel);
|
|
40
41
|
get displayedColumns(): string[];
|
|
41
|
-
isExpandColumn(col: ColumnModel): boolean;
|
|
42
42
|
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
43
43
|
get IconTypes(): typeof IconTypeEnum;
|
|
44
44
|
get AlignEnum(): typeof AlignEnum;
|
|
45
45
|
get TableService(): typeof TableService;
|
|
46
|
+
isExpandColumn(col: ColumnModel): boolean;
|
|
46
47
|
getPage(pageable: any): void;
|
|
47
48
|
onClick(action: string, result: any): void;
|
|
48
49
|
ngOnInit(): void;
|
|
@@ -58,5 +59,5 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
58
59
|
getHeaderButtonColspan(): number;
|
|
59
60
|
onChangeGoToPageNumber($event: number): void;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CvaTableComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableComponent, "cva-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "results": { "alias": "results"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChange": "pagingChange"; "clickAction": "clickAction"; "onRowClickAction": "onRowClickAction"; }, never, never, false, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableComponent, "cva-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "results": { "alias": "results"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChange": "pagingChange"; "clickAction": "clickAction"; "onRowClickAction": "onRowClickAction"; "onChangeDisplayColumn": "onChangeDisplayColumn"; }, never, never, false, never>;
|
|
62
63
|
}
|
|
@@ -203,6 +203,10 @@ class BaseModel {
|
|
|
203
203
|
id;
|
|
204
204
|
checked = false;
|
|
205
205
|
invalid = false;
|
|
206
|
+
createdDate;
|
|
207
|
+
createdBy;
|
|
208
|
+
lastModifiedDate;
|
|
209
|
+
lastModifiedBy;
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
class MenuModel extends BaseModel {
|
|
@@ -1026,6 +1030,12 @@ class ApiService {
|
|
|
1026
1030
|
getJSON(file) {
|
|
1027
1031
|
return this.http.get(file);
|
|
1028
1032
|
}
|
|
1033
|
+
getBlob(nativeUrl, params, baseUrl) {
|
|
1034
|
+
const url = baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl);
|
|
1035
|
+
return this.http.get(url, {
|
|
1036
|
+
responseType: 'blob', // Đặt responseType thành 'blob'
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1029
1039
|
post(nativeUrl, obj, options, baseUrl) {
|
|
1030
1040
|
return this.http.post(baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl), obj, options ? {
|
|
1031
1041
|
headers: options.headers,
|
|
@@ -2229,15 +2239,10 @@ class CvaHeaderExpandButtonComponent {
|
|
|
2229
2239
|
expandHeaderButton;
|
|
2230
2240
|
columns = [];
|
|
2231
2241
|
moduleName = '';
|
|
2242
|
+
onChange = new EventEmitter();
|
|
2232
2243
|
expandDisplayCols = {};
|
|
2233
2244
|
constructor() {
|
|
2234
2245
|
}
|
|
2235
|
-
ngOnInit() {
|
|
2236
|
-
this.columns.forEach(col => {
|
|
2237
|
-
this.expandDisplayCols[col.columnDef] = !(col.isExpandOptionColumn ? col.isExpandOptionColumn() : false);
|
|
2238
|
-
col.isExpandOptionColumn = () => !this.expandDisplayCols[col.columnDef];
|
|
2239
|
-
});
|
|
2240
|
-
}
|
|
2241
2246
|
get ColumnTypes() {
|
|
2242
2247
|
return ColumnTypeEnum;
|
|
2243
2248
|
}
|
|
@@ -2247,8 +2252,14 @@ class CvaHeaderExpandButtonComponent {
|
|
|
2247
2252
|
get TableService() {
|
|
2248
2253
|
return TableService;
|
|
2249
2254
|
}
|
|
2255
|
+
ngOnInit() {
|
|
2256
|
+
this.columns.forEach(col => {
|
|
2257
|
+
this.expandDisplayCols[col.columnDef] = !(col.isExpandOptionColumn ? col.isExpandOptionColumn() : false);
|
|
2258
|
+
col.isExpandOptionColumn = () => !this.expandDisplayCols[col.columnDef];
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2250
2261
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaHeaderExpandButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2251
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaHeaderExpandButtonComponent, isStandalone: false, selector: "cva-header-expand-button", inputs: { expandHeaderButton: "expandHeaderButton", columns: "columns", moduleName: "moduleName" }, ngImport: i0, template: `
|
|
2262
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaHeaderExpandButtonComponent, isStandalone: false, selector: "cva-header-expand-button", inputs: { expandHeaderButton: "expandHeaderButton", columns: "columns", moduleName: "moduleName" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
|
|
2252
2263
|
<button mat-icon-button
|
|
2253
2264
|
class="expand-column-header-button"
|
|
2254
2265
|
color="{{expandHeaderButton?.color}}"
|
|
@@ -2273,7 +2284,9 @@ class CvaHeaderExpandButtonComponent {
|
|
|
2273
2284
|
<ng-container *ngIf="col.columnType!==ColumnTypes.CHECKBOX">
|
|
2274
2285
|
<mat-checkbox style="width: 100%"
|
|
2275
2286
|
[(ngModel)]="expandDisplayCols[col.columnDef]"
|
|
2276
|
-
[value]="col.columnDef"
|
|
2287
|
+
[value]="col.columnDef"
|
|
2288
|
+
(change)="this.onChange.emit()">
|
|
2289
|
+
{{ (moduleName + '.table.header.' + col.header) | translate }}
|
|
2277
2290
|
</mat-checkbox>
|
|
2278
2291
|
</ng-container>
|
|
2279
2292
|
</div>
|
|
@@ -2312,7 +2325,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2312
2325
|
<ng-container *ngIf="col.columnType!==ColumnTypes.CHECKBOX">
|
|
2313
2326
|
<mat-checkbox style="width: 100%"
|
|
2314
2327
|
[(ngModel)]="expandDisplayCols[col.columnDef]"
|
|
2315
|
-
[value]="col.columnDef"
|
|
2328
|
+
[value]="col.columnDef"
|
|
2329
|
+
(change)="this.onChange.emit()">
|
|
2330
|
+
{{ (moduleName + '.table.header.' + col.header) | translate }}
|
|
2316
2331
|
</mat-checkbox>
|
|
2317
2332
|
</ng-container>
|
|
2318
2333
|
</div>
|
|
@@ -2327,6 +2342,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2327
2342
|
type: Input
|
|
2328
2343
|
}], moduleName: [{
|
|
2329
2344
|
type: Input
|
|
2345
|
+
}], onChange: [{
|
|
2346
|
+
type: Output
|
|
2330
2347
|
}] } });
|
|
2331
2348
|
|
|
2332
2349
|
class SecureImgPipe {
|
|
@@ -2370,6 +2387,7 @@ class CvaTableComponent {
|
|
|
2370
2387
|
pagingChange = new EventEmitter(true);
|
|
2371
2388
|
clickAction = new EventEmitter();
|
|
2372
2389
|
onRowClickAction = new EventEmitter();
|
|
2390
|
+
onChangeDisplayColumn = new EventEmitter();
|
|
2373
2391
|
selectAllChecked = false;
|
|
2374
2392
|
goToPageNumber = 1;
|
|
2375
2393
|
errorMsg = new Map()
|
|
@@ -2407,9 +2425,6 @@ class CvaTableComponent {
|
|
|
2407
2425
|
// }
|
|
2408
2426
|
return columnsDef;
|
|
2409
2427
|
}
|
|
2410
|
-
isExpandColumn(col) {
|
|
2411
|
-
return !!col.isExpandOptionColumn ? col.isExpandOptionColumn() : false;
|
|
2412
|
-
}
|
|
2413
2428
|
get ColumnTypes() {
|
|
2414
2429
|
return ColumnTypeEnum;
|
|
2415
2430
|
}
|
|
@@ -2422,6 +2437,9 @@ class CvaTableComponent {
|
|
|
2422
2437
|
get TableService() {
|
|
2423
2438
|
return TableService;
|
|
2424
2439
|
}
|
|
2440
|
+
isExpandColumn(col) {
|
|
2441
|
+
return !!col.isExpandOptionColumn ? col.isExpandOptionColumn() : false;
|
|
2442
|
+
}
|
|
2425
2443
|
getPage(pageable) {
|
|
2426
2444
|
this.varPaging.pageNumber = pageable.pageIndex + 1;
|
|
2427
2445
|
this.varPaging.pageSize = pageable.pageSize;
|
|
@@ -2514,13 +2532,13 @@ class CvaTableComponent {
|
|
|
2514
2532
|
}
|
|
2515
2533
|
}
|
|
2516
2534
|
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 });
|
|
2517
|
-
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" }, providers: [
|
|
2535
|
+
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: [
|
|
2518
2536
|
{ provide: MatPaginatorIntl, useClass: MultiLanguageTablePaginator },
|
|
2519
2537
|
], ngImport: i0, template: `
|
|
2520
2538
|
<div class="table-responsive">
|
|
2521
2539
|
<ng-container *ngIf="!!expandHeaderButton">
|
|
2522
2540
|
<cva-header-expand-button [moduleName]="moduleName" [expandHeaderButton]="expandHeaderButton"
|
|
2523
|
-
[columns]="columns">
|
|
2541
|
+
[columns]="columns" (onChange)="this.onChangeDisplayColumn.emit(displayedColumns)">
|
|
2524
2542
|
</cva-header-expand-button>
|
|
2525
2543
|
</ng-container>
|
|
2526
2544
|
<table mat-table #table [dataSource]="results" class="mat-elevation-z8 cva-table">
|
|
@@ -2707,7 +2725,7 @@ class CvaTableComponent {
|
|
|
2707
2725
|
</div>
|
|
2708
2726
|
</div>
|
|
2709
2727
|
</div>
|
|
2710
|
-
`, 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$1.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: i8$1.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.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.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.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"] }, { 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"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
2728
|
+
`, 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$1.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: i8$1.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.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.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.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"] }, { 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" }] });
|
|
2711
2729
|
}
|
|
2712
2730
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableComponent, decorators: [{
|
|
2713
2731
|
type: Component,
|
|
@@ -2718,7 +2736,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2718
2736
|
<div class="table-responsive">
|
|
2719
2737
|
<ng-container *ngIf="!!expandHeaderButton">
|
|
2720
2738
|
<cva-header-expand-button [moduleName]="moduleName" [expandHeaderButton]="expandHeaderButton"
|
|
2721
|
-
[columns]="columns">
|
|
2739
|
+
[columns]="columns" (onChange)="this.onChangeDisplayColumn.emit(displayedColumns)">
|
|
2722
2740
|
</cva-header-expand-button>
|
|
2723
2741
|
</ng-container>
|
|
2724
2742
|
<table mat-table #table [dataSource]="results" class="mat-elevation-z8 cva-table">
|
|
@@ -2931,6 +2949,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2931
2949
|
type: Output
|
|
2932
2950
|
}], onRowClickAction: [{
|
|
2933
2951
|
type: Output
|
|
2952
|
+
}], onChangeDisplayColumn: [{
|
|
2953
|
+
type: Output
|
|
2934
2954
|
}], paging: [{
|
|
2935
2955
|
type: Input
|
|
2936
2956
|
}] } });
|