@energycap/components 0.28.4-ECAP-11928-All-Entity-Shell.20220407-1459 → 0.28.4-ECAP-11928-All-Entity-Shell.20220412-0821

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,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { MenuComponent, MenuItem, MenuTemplateType } from '../../controls/menu/menu.component';
3
3
  import { HierarchyItem } from '../hierarchy/hierarchy-base';
4
4
  import { HierarchyTreeComponent } from '../hierarchy/hierarchy-tree/hierarchy-tree.component';
@@ -22,6 +22,14 @@ export declare class TreeComponent {
22
22
  treeHierarchyHideRootNode?: boolean;
23
23
  /** Items to display in the tree when type is 'hierarchy' */
24
24
  treeHierarchy?: HierarchyItem;
25
+ /** Used when the tree is in menu mode to tell the menu if it should maintain the selected item
26
+ * Useful in side nav components where this tree component may exist alongside other trees or menus
27
+ * used for navigation. If this tree is in menu mode you would want this set to false so when you select an item
28
+ * from a sibling navigation element the selection will not be maintained.
29
+ */
30
+ treeMenuMaintainSelectedItem: boolean;
31
+ /** Used when a custom template is needed for the menu items when the tree is in menu mode */
32
+ customTreeMenuTemplate?: TemplateRef<any>;
25
33
  /** Tree overlay */
26
34
  status?: Overlay;
27
35
  /** Display the tree items with a MenuComponent or a HierarchyTreeComponent */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.28.4-ECAP-11928-All-Entity-Shell.20220407-1459",
3
+ "version": "0.28.4-ECAP-11928-All-Entity-Shell.20220412-0821",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },