@cqa-lib/cqa-ui 1.1.15 → 1.1.17
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/esm2020/lib/compare-runs/compare-runs.component.mjs +21 -10
- package/esm2020/lib/execution-screen/ai-agent-step/ai-agent-step.component.mjs +3 -3
- package/esm2020/lib/table/dynamic-table/dynamic-table.component.mjs +41 -34
- package/esm2020/lib/templates/table-template.component.mjs +14 -8
- package/fesm2015/cqa-lib-cqa-ui.mjs +75 -51
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +75 -51
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/compare-runs/compare-runs.component.d.ts +3 -0
- package/lib/table/dynamic-table/dynamic-table.component.d.ts +10 -6
- package/lib/templates/table-template.component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -104,7 +104,10 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
|
|
|
104
104
|
ngOnInit(): void;
|
|
105
105
|
ngOnChanges(changes: SimpleChanges): void;
|
|
106
106
|
private initializeForm;
|
|
107
|
+
private allOptionsCache;
|
|
108
|
+
private lastRuns;
|
|
107
109
|
private setupSelectConfigs;
|
|
110
|
+
private runLabelCache;
|
|
108
111
|
private formatRunLabel;
|
|
109
112
|
private updateSelectConfigsLoading;
|
|
110
113
|
handleSearchRuns(query: string, key: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryList, TemplateRef, EventEmitter, ViewContainerRef, Type, OnDestroy, ChangeDetectorRef } from "@angular/core";
|
|
1
|
+
import { QueryList, TemplateRef, EventEmitter, ViewContainerRef, Type, OnDestroy, ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
3
3
|
import { DynamicCellTemplateDirective, DynamicHeaderTemplateDirective } from "./dynamic-cell.directive";
|
|
4
4
|
import { ComponentRenderConfig } from "./component-render-config.interface";
|
|
@@ -27,7 +27,7 @@ export interface DynamicTableColumn {
|
|
|
27
27
|
};
|
|
28
28
|
align?: 'left' | 'center' | 'right';
|
|
29
29
|
}
|
|
30
|
-
export declare class DynamicTableComponent implements OnDestroy {
|
|
30
|
+
export declare class DynamicTableComponent implements OnDestroy, OnChanges {
|
|
31
31
|
private sanitizer;
|
|
32
32
|
private cdr;
|
|
33
33
|
data: any[];
|
|
@@ -56,12 +56,17 @@ export declare class DynamicTableComponent implements OnDestroy {
|
|
|
56
56
|
headerTemplates: QueryList<DynamicHeaderTemplateDirective>;
|
|
57
57
|
emptyTableTpl?: TemplateRef<any>;
|
|
58
58
|
private componentRefs;
|
|
59
|
+
visibleColumns: DynamicTableColumn[];
|
|
60
|
+
computedData: any[];
|
|
61
|
+
computedGridTemplate: string;
|
|
62
|
+
computedColumnWidths: string[];
|
|
59
63
|
constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
64
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
60
65
|
ngOnDestroy(): void;
|
|
61
66
|
private get isXs();
|
|
62
67
|
private get isSm();
|
|
63
68
|
private get isMd();
|
|
64
|
-
|
|
69
|
+
private updateVisibleColumns;
|
|
65
70
|
getHeaderTemplate(colId: string): TemplateRef<any> | null;
|
|
66
71
|
getCellTemplate(colId: string): TemplateRef<any> | null;
|
|
67
72
|
getRenderedValue(row: any, column: DynamicTableColumn): any;
|
|
@@ -99,8 +104,7 @@ export declare class DynamicTableComponent implements OnDestroy {
|
|
|
99
104
|
getSanitizedHtml(value: string): SafeHtml;
|
|
100
105
|
getCellValue(row: any, path?: string): any;
|
|
101
106
|
trackByIndex(index: number): number;
|
|
102
|
-
|
|
103
|
-
get computedColumnWidths(): string[];
|
|
107
|
+
private updateGridTemplate;
|
|
104
108
|
get allSelected(): boolean;
|
|
105
109
|
get someSelected(): boolean;
|
|
106
110
|
onSelectAllChange(event: Event): void;
|
|
@@ -108,7 +112,7 @@ export declare class DynamicTableComponent implements OnDestroy {
|
|
|
108
112
|
toggleSelectAll(checked: boolean): void;
|
|
109
113
|
private _sortActive?;
|
|
110
114
|
private _sortDirection;
|
|
111
|
-
|
|
115
|
+
private updateComputedData;
|
|
112
116
|
get showTableLoading(): boolean;
|
|
113
117
|
get showTableDataLoading(): boolean;
|
|
114
118
|
get isEmpty(): boolean;
|
|
@@ -57,11 +57,13 @@ export declare class TableTemplateComponent implements OnInit, OnChanges, OnDest
|
|
|
57
57
|
private autoRefreshTimer?;
|
|
58
58
|
onReload: EventEmitter<void>;
|
|
59
59
|
onAutoRefreshClick: EventEmitter<void>;
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
computedColumns: DynamicTableColumn[];
|
|
61
|
+
visibilityColumns: Array<{
|
|
62
62
|
id: string;
|
|
63
63
|
label: string;
|
|
64
64
|
}>;
|
|
65
|
+
private updateComputedColumns;
|
|
66
|
+
private updateVisibilityColumns;
|
|
65
67
|
get columnVisibility(): ColumnVisibilityConfig;
|
|
66
68
|
ngOnInit(): void;
|
|
67
69
|
ngOnChanges(changes: SimpleChanges): void;
|