@energycap/components 0.28.5 → 0.28.6

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';
@@ -16,12 +16,22 @@ export declare class TreeComponent {
16
16
  private _id;
17
17
  /** The tree's title displayed in the header */
18
18
  treeTitle: string;
19
+ /** Hides the tree header when set to true */
20
+ hideTreeHeader?: boolean;
19
21
  /** Items to display in the tree when type is 'menu' */
20
22
  treeItems?: MenuItem[];
21
23
  /** Hide the root tree item when type is 'hierarchy' */
22
24
  treeHierarchyHideRootNode?: boolean;
23
25
  /** Items to display in the tree when type is 'hierarchy' */
24
26
  treeHierarchy?: HierarchyItem;
27
+ /** Used when the tree is in menu mode to tell the menu if it should maintain the selected item
28
+ * Useful in side nav components where this tree component may exist alongside other trees or menus
29
+ * used for navigation. If this tree is in menu mode you would want this set to false so when you select an item
30
+ * from a sibling navigation element the selection will not be maintained.
31
+ */
32
+ treeMenuMaintainSelectedItem: boolean;
33
+ /** Used when a custom template is needed for the menu items when the tree is in menu mode */
34
+ customTreeMenuTemplate?: TemplateRef<any>;
25
35
  /** Tree overlay */
26
36
  status?: Overlay;
27
37
  /** 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.5",
3
+ "version": "0.28.6",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },