@cqa-lib/cqa-ui 1.0.28 → 1.0.29
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/templates/table-template.component.mjs +40 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs +40 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +39 -3
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/templates/table-template.component.d.ts +12 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { DynamicFilterItem } from '../filters/dynamic-filter/dynamic-filter.component';
|
|
3
3
|
import { DynamicTableColumn } from '../table/dynamic-table/dynamic-table.component';
|
|
4
4
|
import { ColumnVisibilityConfig } from '../column-visibility/column-visibility.component';
|
|
@@ -11,7 +11,7 @@ export interface EmptyStateConfig {
|
|
|
11
11
|
imageUrl: string;
|
|
12
12
|
actions: EmptyStateAction[];
|
|
13
13
|
}
|
|
14
|
-
export declare class TableTemplateComponent implements OnInit, OnChanges {
|
|
14
|
+
export declare class TableTemplateComponent implements OnInit, OnChanges, OnDestroy {
|
|
15
15
|
searchPlaceholder: string;
|
|
16
16
|
searchValue: string;
|
|
17
17
|
showClear: boolean;
|
|
@@ -52,6 +52,10 @@ export declare class TableTemplateComponent implements OnInit, OnChanges {
|
|
|
52
52
|
filteredRows: any[];
|
|
53
53
|
pagedRows: any[];
|
|
54
54
|
private pendingFilters;
|
|
55
|
+
private appliedFilters;
|
|
56
|
+
private autoRefreshTimer?;
|
|
57
|
+
onReload: EventEmitter<void>;
|
|
58
|
+
onAutoRefreshClick: EventEmitter<void>;
|
|
55
59
|
get computedColumns(): DynamicTableColumn[];
|
|
56
60
|
get visibilityColumns(): Array<{
|
|
57
61
|
id: string;
|
|
@@ -78,6 +82,11 @@ export declare class TableTemplateComponent implements OnInit, OnChanges {
|
|
|
78
82
|
onFiltersChanged(current: any): void;
|
|
79
83
|
onFiltersApplied(applied: any): void;
|
|
80
84
|
handleResetFilterClick(): void;
|
|
85
|
+
handleRefreshClick(): void;
|
|
86
|
+
private triggerReload;
|
|
87
|
+
private setupAutoRefresh;
|
|
88
|
+
private clearAutoRefresh;
|
|
89
|
+
ngOnDestroy(): void;
|
|
81
90
|
onPaginate(e: {
|
|
82
91
|
pageIndex: number;
|
|
83
92
|
pageSize: number;
|
|
@@ -90,5 +99,5 @@ export declare class TableTemplateComponent implements OnInit, OnChanges {
|
|
|
90
99
|
private normalizeDate;
|
|
91
100
|
private passFilters;
|
|
92
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableTemplateComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableTemplateComponent, "cqa-table-template", never, { "searchPlaceholder": "searchPlaceholder"; "searchValue": "searchValue"; "showClear": "showClear"; "showSearchBar": "showSearchBar"; "filterConfig": "filterConfig"; "showFilterPanel": "showFilterPanel"; "showFilterButton": "showFilterButton"; "otherButtonLabel": "otherButtonLabel"; "otherButtonVariant": "otherButtonVariant"; "showOtherButton": "showOtherButton"; "showActionButton": "showActionButton"; "showSettingsButton": "showSettingsButton"; "showAutoRefreshButton": "showAutoRefreshButton"; "data": "data"; "isEmptyState": "isEmptyState"; "emptyStateConfig": "emptyStateConfig"; "actions": "actions"; "chips": "chips"; "filterApplied": "filterApplied"; "columns": "columns"; "selectedAutoRefreshInterval": "selectedAutoRefreshInterval"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "isTableLoading": "isTableLoading"; "isTableDataLoading": "isTableDataLoading"; }, { "onSearchChange": "onSearchChange"; "onApplyFilterClick": "onApplyFilterClick"; "onResetFilterClick": "onResetFilterClick"; "onClearAll": "onClearAll"; }, never, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableTemplateComponent, "cqa-table-template", never, { "searchPlaceholder": "searchPlaceholder"; "searchValue": "searchValue"; "showClear": "showClear"; "showSearchBar": "showSearchBar"; "filterConfig": "filterConfig"; "showFilterPanel": "showFilterPanel"; "showFilterButton": "showFilterButton"; "otherButtonLabel": "otherButtonLabel"; "otherButtonVariant": "otherButtonVariant"; "showOtherButton": "showOtherButton"; "showActionButton": "showActionButton"; "showSettingsButton": "showSettingsButton"; "showAutoRefreshButton": "showAutoRefreshButton"; "data": "data"; "isEmptyState": "isEmptyState"; "emptyStateConfig": "emptyStateConfig"; "actions": "actions"; "chips": "chips"; "filterApplied": "filterApplied"; "columns": "columns"; "selectedAutoRefreshInterval": "selectedAutoRefreshInterval"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "isTableLoading": "isTableLoading"; "isTableDataLoading": "isTableDataLoading"; }, { "onSearchChange": "onSearchChange"; "onApplyFilterClick": "onApplyFilterClick"; "onResetFilterClick": "onResetFilterClick"; "onClearAll": "onClearAll"; "onReload": "onReload"; "onAutoRefreshClick": "onAutoRefreshClick"; }, never, never>;
|
|
94
103
|
}
|