@softheon/armature 19.3.0 → 19.4.3
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TooltipPosition } from '@angular/material/tooltip';
|
|
2
|
-
import { ICellRendererParams } from 'ag-grid-community';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class SofBadgeComponent {
|
|
5
4
|
/** Whether to show bold background color not */
|
|
@@ -27,7 +26,7 @@ export declare class SofBadgeComponent {
|
|
|
27
26
|
* Any logic related to ag grid cell renderer data can be added here
|
|
28
27
|
* @note All `@Inputs` should be accepted through `params`
|
|
29
28
|
*/
|
|
30
|
-
agInit(params:
|
|
29
|
+
agInit(params: any & SofBadgeComponent): void;
|
|
31
30
|
/** On component init */
|
|
32
31
|
ngOnInit(): void;
|
|
33
32
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -11,6 +11,8 @@ export declare class SofContextComponent {
|
|
|
11
11
|
private cdRef;
|
|
12
12
|
/** Context menu */
|
|
13
13
|
contextMenu: MatMenuTrigger;
|
|
14
|
+
/** Search input */
|
|
15
|
+
searchInput: ElementRef;
|
|
14
16
|
/** List of menu items */
|
|
15
17
|
menuItems: ContextMenuItem[];
|
|
16
18
|
/** Menu position (x, y) */
|
|
@@ -47,6 +49,16 @@ export declare class SofContextComponent {
|
|
|
47
49
|
* @param rowData Data of the clicked row
|
|
48
50
|
*/
|
|
49
51
|
showContextMenu(event: MouseEvent, rowData: any): void;
|
|
52
|
+
/**
|
|
53
|
+
* Filters sub menu options
|
|
54
|
+
* @param item the context menu item
|
|
55
|
+
* @param query the query
|
|
56
|
+
*/
|
|
57
|
+
filterSubMenuOptions(item: ContextMenuItem, event: Event): void;
|
|
58
|
+
/**
|
|
59
|
+
* Restores focus on search input
|
|
60
|
+
*/
|
|
61
|
+
restoreFocus(): void;
|
|
50
62
|
/**
|
|
51
63
|
* Handles menu item click event
|
|
52
64
|
* @param item Clicked menu item
|
|
@@ -66,6 +78,10 @@ export declare class SofContextComponent {
|
|
|
66
78
|
* Hides the menu when clicking outside
|
|
67
79
|
*/
|
|
68
80
|
onOutsideClick(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Sets sub menu options
|
|
83
|
+
*/
|
|
84
|
+
private setSubMenuFilteredItems;
|
|
69
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<SofContextComponent, never>;
|
|
70
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<SofContextComponent, "sof-context-menu", never, {}, {}, never, never, false, never>;
|
|
71
87
|
}
|
|
@@ -78,5 +94,8 @@ export interface ContextMenuItem {
|
|
|
78
94
|
disabled?: boolean;
|
|
79
95
|
description?: string;
|
|
80
96
|
hidden?: boolean;
|
|
97
|
+
enableSubMenuSearch?: boolean;
|
|
98
|
+
subMenuSearchPlaceholder?: string;
|
|
81
99
|
subMenuItems?: ContextMenuItem[];
|
|
100
|
+
_filteredSubMenuItems?: ContextMenuItem[];
|
|
82
101
|
}
|