@softheon/armature 19.1.1 → 19.4.1

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,3 +1,5 @@
1
+ import { TooltipPosition } from '@angular/material/tooltip';
2
+ import { ICellRendererParams } from 'ag-grid-community';
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class SofBadgeComponent {
3
5
  /** Whether to show bold background color not */
@@ -17,13 +19,15 @@ export declare class SofBadgeComponent {
17
19
  badgeAria: string;
18
20
  /** The icon aria label */
19
21
  iconAria: string;
22
+ /** The icon aria label */
23
+ tooltipData: BadgeTooltipData;
20
24
  /** Whether or not the component has been init */
21
25
  initialized: boolean;
22
26
  /**
23
27
  * Any logic related to ag grid cell renderer data can be added here
24
28
  * @note All `@Inputs` should be accepted through `params`
25
29
  */
26
- agInit(params: any & SofBadgeComponent): void;
30
+ agInit(params: ICellRendererParams & SofBadgeComponent): void;
27
31
  /** On component init */
28
32
  ngOnInit(): void;
29
33
  /**
@@ -35,7 +39,7 @@ export declare class SofBadgeComponent {
35
39
  /** Sets the icon based on badge type */
36
40
  private setIcon;
37
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SofBadgeComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<SofBadgeComponent, "sof-badge", never, { "bold": { "alias": "bold"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "badgeAria": { "alias": "badgeAria"; "required": false; }; "iconAria": { "alias": "iconAria"; "required": false; }; }, {}, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofBadgeComponent, "sof-badge", never, { "bold": { "alias": "bold"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "badgeAria": { "alias": "badgeAria"; "required": false; }; "iconAria": { "alias": "iconAria"; "required": false; }; "tooltipData": { "alias": "tooltipData"; "required": false; }; }, {}, never, never, false, never>;
39
43
  }
40
44
  export declare enum STATUS {
41
45
  INFO = "info",
@@ -49,3 +53,7 @@ export declare enum LINE_OF_COVERAGE {
49
53
  VISION = "vision",
50
54
  MEDICARE = "medicare"
51
55
  }
56
+ export interface BadgeTooltipData {
57
+ text: string;
58
+ position?: TooltipPosition;
59
+ }
@@ -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
  }
@@ -81,6 +81,8 @@ export declare class SofHeaderComponent implements OnInit, OnChanges {
81
81
  toggleLanguage(): void;
82
82
  /** Emits the logout event */
83
83
  logout(): void;
84
+ /** Removes role="menu" and role="menuitem" from Material Menu elements. */
85
+ removeUserMatMenuRoles(): void;
84
86
  static ɵfac: i0.ɵɵFactoryDeclaration<SofHeaderComponent, never>;
85
87
  static ɵcmp: i0.ɵɵComponentDeclaration<SofHeaderComponent, "sof-header", never, { "showBreadcrumbsHierarchy": { "alias": "showBreadcrumbsHierarchy"; "required": false; }; "isNavPanelOpened": { "alias": "isNavPanelOpened"; "required": false; }; "userMenuData": { "alias": "userMenuData"; "required": false; }; "logoutText": { "alias": "logoutText"; "required": false; }; }, { "logoutEvent": "logoutEvent"; }, never, ["[header-right-section-buttons]"], true, never>;
86
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "19.1.1",
3
+ "version": "19.4.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },