@energycap/components 0.27.2 → 0.27.3-ECAPID-377-Nav-Item-Test.20220125-1644

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.
@@ -89,6 +89,12 @@ export declare class MenuComponent implements AfterContentInit, OnDestroy {
89
89
  * Item currently highlighted by keyboard navigation
90
90
  */
91
91
  highlightedItem: MenuItem | null;
92
+ /**
93
+ * Tells the menu to maintain the selected/lastSelected item. Turning this off is useful for
94
+ * action type menus that are displayed on the screen at all times and you do not
95
+ * want the item to be selected when clicked.
96
+ */
97
+ maintainSelectedItem: boolean;
92
98
  /**
93
99
  * Emitted when `selected` is changed. Emits the referenced object.
94
100
  *
@@ -134,6 +140,10 @@ export declare class MenuComponent implements AfterContentInit, OnDestroy {
134
140
  */
135
141
  private lastSelected;
136
142
  constructor(el: ElementRef, renderer: Renderer2, windowService: WindowService, scrollService: ScrollService);
143
+ onRouterLinkActivated(event: {
144
+ event: Event;
145
+ item: MenuItem<any>;
146
+ }): void;
137
147
  /**
138
148
  * Sets & displays the interalized template based on
139
149
  * the set template.
@@ -1,5 +1,6 @@
1
1
  import { ElementRef, Renderer2, OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
2
  import { Router, ActivatedRoute, Params } from '@angular/router';
3
+ import { MenuItem } from '../menu/menu.component';
3
4
  export declare class NavItemActiveDirective implements OnInit, OnDestroy {
4
5
  private router;
5
6
  private el;
@@ -17,6 +18,7 @@ export declare class NavItemActiveDirective implements OnInit, OnDestroy {
17
18
  private _exact;
18
19
  /** Router link query params */
19
20
  queryParams?: Params | null;
21
+ currentItem?: MenuItem<any>;
20
22
  /**
21
23
  * The url of the NavItem to check for activeness. Convert the item url into a
22
24
  * UrlTree relative to the ActivatedRoute so router#isActive works even with relative urls.
@@ -27,7 +29,10 @@ export declare class NavItemActiveDirective implements OnInit, OnDestroy {
27
29
  set url(value: string | undefined);
28
30
  private _url?;
29
31
  /** Emits when the url becomes active */
30
- routerLinkActivated: EventEmitter<Event>;
32
+ routerLinkActivated: EventEmitter<{
33
+ event: Event;
34
+ item?: MenuItem<any>;
35
+ }>;
31
36
  /** Subject that emits when component is destroyed to unsubscribe from any subscriptions */
32
37
  private destroyed;
33
38
  constructor(router: Router, el: ElementRef, renderer: Renderer2, route: ActivatedRoute);
@@ -42,6 +42,11 @@ export declare class HierarchyItem implements LinkItem {
42
42
  * @see https://angular.io/guide/router#active-router-links
43
43
  */
44
44
  isActiveExactMatch?: boolean;
45
+ /**
46
+ * Reference to the parent item. Useful if you need to walk the tree in reverse. An example usage
47
+ * would be to expand all parent items above a node that is the current selection.
48
+ */
49
+ parentItem?: HierarchyItem;
45
50
  }
46
51
  export declare abstract class HierarchyBase implements OnChanges, OnDestroy {
47
52
  /** First item to start the hierarchy structure */
@@ -0,0 +1,6 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class HighlightTextPipe implements PipeTransform {
3
+ transform(value: string, searchText: string): string;
4
+ private strongWrap;
5
+ private escapeRegex;
6
+ }
@@ -7,6 +7,7 @@ import { NavItem } from '../../../controls/navigation/nav-item';
7
7
  import { ErrorService } from '../../../core/error.service';
8
8
  import { ScrollService } from '../../../core/scroll.service';
9
9
  import { DialogService } from '../../../display/dialog/dialog.service';
10
+ import { SplashService } from '../../../display/splash/splash.service';
10
11
  import { Help } from '../../../display/help/help-types';
11
12
  import { Overlay } from '../../../display/view-overlay/view-overlay.component';
12
13
  import { PageStatus } from '../page-statuses';
@@ -50,6 +51,10 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
50
51
  * Default unknown save error message, override if a more specific message is needed
51
52
  */
52
53
  defaultUnknownSaveError: string;
54
+ /**
55
+ * Used to opt out of hiding the splash screen when the page is loaded
56
+ */
57
+ skipHideSplashOnComplete: boolean;
53
58
  /**
54
59
  * Used to unsubscribe from observables
55
60
  */
@@ -79,6 +84,7 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
79
84
  protected router: Router;
80
85
  protected activatedRoute: ActivatedRoute;
81
86
  protected dialogService: DialogService;
87
+ protected splashService: SplashService;
82
88
  constructor(injector: Injector);
83
89
  /**
84
90
  * Errors to be shown for the component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.27.2",
3
+ "version": "0.27.3-ECAPID-377-Nav-Item-Test.20220125-1644",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
package/public-api.d.ts CHANGED
@@ -51,6 +51,7 @@ export * from './lib/shared/display/pipes/date-display.pipe';
51
51
  export * from './lib/shared/display/pipes/row-count.pipe';
52
52
  export * from './lib/shared/display/pipes/time-display.pipe';
53
53
  export * from './lib/shared/display/pipes/relative-date.pipe';
54
+ export * from './lib/shared/display/pipes/highlight-text.pipe';
54
55
  export * from './lib/shared/user-preference.service';
55
56
  export * from './lib/shared/lodash-helper';
56
57
  export * from './lib/core/cache.service';