@cqa-lib/cqa-ui 1.0.64 → 1.0.66
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/action-menu/action-menu.component.mjs +18 -3
- package/esm2020/lib/button/button.component.mjs +11 -4
- package/esm2020/lib/column-visibility/column-visibility.component.mjs +3 -3
- package/esm2020/lib/dashboards/coverage-module-card/coverage-module-card.component.mjs +1 -1
- package/esm2020/lib/dashboards/dashboard-header/dashboard-header.component.mjs +1 -1
- package/esm2020/lib/dashboards/insight-card/insight-card.component.mjs +1 -1
- package/esm2020/lib/dashboards/metrics-card/metrics-card.component.mjs +3 -3
- package/esm2020/lib/dialog/dialog.component.mjs +1 -1
- package/esm2020/lib/dynamic-select/dynamic-select-field.component.mjs +48 -2
- package/esm2020/lib/empty-state/empty-state.component.mjs +1 -1
- package/esm2020/lib/filters/dynamic-filter/dynamic-filter.component.mjs +1 -1
- package/esm2020/lib/templates/table-template.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +101 -36
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +101 -36
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/action-menu/action-menu.component.d.ts +25 -1
- package/lib/button/button.component.d.ts +5 -1
- package/lib/dynamic-select/dynamic-select-field.component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,14 +4,38 @@ export interface ActionMenuRow {
|
|
|
4
4
|
id: number | string;
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
|
+
export interface CqaActionItem {
|
|
8
|
+
/** Unique identifier for the action, e.g. 'view', 'edit', 'delete', 'duplicate' */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Visible label in the menu */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Optional Material icon name (e.g. 'edit', 'delete') */
|
|
13
|
+
icon?: string;
|
|
14
|
+
/** If false, hide this action (defaults to true) */
|
|
15
|
+
show?: boolean;
|
|
16
|
+
/** Disable the action */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Optional additional CSS classes for the <button mat-menu-item> */
|
|
19
|
+
class?: string;
|
|
20
|
+
/** Optional tooltip text */
|
|
21
|
+
tooltip?: string;
|
|
22
|
+
}
|
|
7
23
|
export declare class ActionMenuButtonComponent {
|
|
8
24
|
row?: ActionMenuRow;
|
|
25
|
+
/** Optional list of dynamic actions; if provided, these will be rendered instead of default actions */
|
|
26
|
+
actions: CqaActionItem[];
|
|
9
27
|
view: EventEmitter<string | number>;
|
|
10
28
|
edit: EventEmitter<ActionMenuRow>;
|
|
11
29
|
delete: EventEmitter<ActionMenuRow>;
|
|
30
|
+
/** Generic event emitter for dynamic actions */
|
|
31
|
+
actionClick: EventEmitter<{
|
|
32
|
+
action: string;
|
|
33
|
+
row?: ActionMenuRow;
|
|
34
|
+
}>;
|
|
12
35
|
navigateToTestCase(id?: number | string): void;
|
|
13
36
|
editTestCase(row?: ActionMenuRow): void;
|
|
14
37
|
deleteTestCase(row?: ActionMenuRow): void;
|
|
38
|
+
onActionSelect(action: CqaActionItem): void;
|
|
15
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionMenuButtonComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuButtonComponent, "cqa-action-menu-button", never, { "row": "row"; }, { "view": "view"; "edit": "edit"; "delete": "delete"; }, never, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuButtonComponent, "cqa-action-menu-button", never, { "row": "row"; "actions": "actions"; }, { "view": "view"; "edit": "edit"; "delete": "delete"; "actionClick": "actionClick"; }, never, never>;
|
|
17
41
|
}
|
|
@@ -11,6 +11,10 @@ export declare class ButtonComponent {
|
|
|
11
11
|
type: 'button' | 'submit' | 'reset';
|
|
12
12
|
text?: string;
|
|
13
13
|
customClass?: string;
|
|
14
|
+
/** Optional tooltip text; if falsy, tooltip is disabled */
|
|
15
|
+
tooltip?: string;
|
|
16
|
+
/** Tooltip position; mirrors MatTooltipPosition */
|
|
17
|
+
tooltipPosition: 'below' | 'above' | 'left' | 'right';
|
|
14
18
|
clicked: EventEmitter<MouseEvent>;
|
|
15
19
|
isHovered: boolean;
|
|
16
20
|
isFocused: boolean;
|
|
@@ -27,5 +31,5 @@ export declare class ButtonComponent {
|
|
|
27
31
|
onBlur(): void;
|
|
28
32
|
onClick(event: MouseEvent): void;
|
|
29
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cqa-button", never, { "variant": "variant"; "disabled": "disabled"; "icon": "icon"; "iconPosition": "iconPosition"; "fullWidth": "fullWidth"; "iconColor": "iconColor"; "type": "type"; "text": "text"; "customClass": "customClass"; }, { "clicked": "clicked"; }, never, ["*"]>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cqa-button", never, { "variant": "variant"; "disabled": "disabled"; "icon": "icon"; "iconPosition": "iconPosition"; "fullWidth": "fullWidth"; "iconColor": "iconColor"; "type": "type"; "text": "text"; "customClass": "customClass"; "tooltip": "tooltip"; "tooltipPosition": "tooltipPosition"; }, { "clicked": "clicked"; }, never, ["*"]>;
|
|
31
35
|
}
|
|
@@ -60,6 +60,10 @@ export declare class DynamicSelectFieldComponent implements OnInit, OnChanges {
|
|
|
60
60
|
onToggleSelectAll(select: MatSelect): void;
|
|
61
61
|
onSelectOpenedChange(opened: boolean, _select: MatSelect): void;
|
|
62
62
|
onSearch(key: string, value: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the currently selected option ids for the configured control.
|
|
65
|
+
*/
|
|
66
|
+
private getSelectedIdsForKey;
|
|
63
67
|
/** Programmatically close the select panel if open */
|
|
64
68
|
closePanel(): void;
|
|
65
69
|
filteredOptions(c: DynamicSelectFieldConfig): SelectOption[];
|