@cqa-lib/cqa-ui 1.0.28 → 1.0.30
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/README.md +52 -0
- package/esm2020/lib/empty-state/empty-state.component.mjs +22 -3
- package/esm2020/lib/filters/dynamic-filter/dynamic-filter.component.mjs +12 -3
- package/esm2020/lib/templates/table-template.component.mjs +40 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs +72 -7
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +71 -7
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/empty-state/empty-state.component.d.ts +5 -0
- package/lib/filters/dynamic-filter/dynamic-filter.component.d.ts +3 -1
- package/lib/templates/table-template.component.d.ts +12 -3
- package/package.json +1 -1
|
@@ -21,6 +21,11 @@ export declare class EmptyStateComponent implements OnChanges {
|
|
|
21
21
|
private _description;
|
|
22
22
|
private _actions;
|
|
23
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
/**
|
|
25
|
+
* Resolves image path to work both in development and when consumed from node_modules
|
|
26
|
+
* Tries multiple path strategies to find the image
|
|
27
|
+
*/
|
|
28
|
+
private resolveImagePath;
|
|
24
29
|
get displayTitle(): string;
|
|
25
30
|
get displayDescription(): string;
|
|
26
31
|
get displayImageUrl(): string | undefined;
|
|
@@ -36,6 +36,7 @@ export declare class DynamicFilterComponent implements OnChanges {
|
|
|
36
36
|
config: DynamicFilterItem[];
|
|
37
37
|
model: DynamicFilterValues;
|
|
38
38
|
showFilterPanel: boolean;
|
|
39
|
+
buttonLayout: 'left' | 'right' | 'bottom';
|
|
39
40
|
filtersApplied: EventEmitter<DynamicFilterValues>;
|
|
40
41
|
filtersChanged: EventEmitter<DynamicFilterValues>;
|
|
41
42
|
resetAction: EventEmitter<void>;
|
|
@@ -65,7 +66,8 @@ export declare class DynamicFilterComponent implements OnChanges {
|
|
|
65
66
|
applyPresetToGroup(key: string, presetKey: 'today' | 'last7days' | 'last30days' | 'last90days' | 'thismonth' | 'lastmonth'): void;
|
|
66
67
|
private getPresetDates;
|
|
67
68
|
getDateValidationError(key: string): string | null;
|
|
69
|
+
getOrderedConfig(): DynamicFilterItem[];
|
|
68
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFilterComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFilterComponent, "cqa-dynamic-filter", never, { "config": "config"; "model": "model"; "showFilterPanel": "showFilterPanel"; }, { "filtersApplied": "filtersApplied"; "filtersChanged": "filtersChanged"; "resetAction": "resetAction"; "onApplyFilterClick": "onApplyFilterClick"; "onResetFilterClick": "onResetFilterClick"; }, never, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFilterComponent, "cqa-dynamic-filter", never, { "config": "config"; "model": "model"; "showFilterPanel": "showFilterPanel"; "buttonLayout": "buttonLayout"; }, { "filtersApplied": "filtersApplied"; "filtersChanged": "filtersChanged"; "resetAction": "resetAction"; "onApplyFilterClick": "onApplyFilterClick"; "onResetFilterClick": "onResetFilterClick"; }, never, never>;
|
|
70
72
|
}
|
|
71
73
|
export {};
|
|
@@ -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
|
}
|