@energycap/components 0.27.8 → 0.27.9
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.
- package/bundles/energycap-components.umd.js +130 -110
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +2 -2
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/esm2015/lib/controls/banner/banner.component.js +24 -3
- package/fesm2015/energycap-components.js +125 -105
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/controls/banner/banner.component.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { CacheService } from '../../core/cache.service';
|
|
2
3
|
export declare type BannerType = 'info' | 'warning' | 'error' | 'success';
|
|
3
4
|
export declare type BannerStyle = 'normal' | 'pinned' | 'toast';
|
|
5
|
+
export declare type BannerCacheEntry = {
|
|
6
|
+
hidden: boolean;
|
|
7
|
+
};
|
|
4
8
|
export declare class BannerComponent implements OnChanges {
|
|
9
|
+
private cacheService;
|
|
5
10
|
/** hidden hides the banner */
|
|
6
11
|
hidden: boolean;
|
|
7
12
|
/**The ID of the component, rendered into the HTML to make it more accessible to automation */
|
|
@@ -24,6 +29,8 @@ export declare class BannerComponent implements OnChanges {
|
|
|
24
29
|
* If it's not provided, the icon will be selected based on the type input.
|
|
25
30
|
*/
|
|
26
31
|
customIcon?: string;
|
|
32
|
+
/** When true, the banner will automatically hide itself based on the state found in local storage */
|
|
33
|
+
rememberClosed: boolean;
|
|
27
34
|
/**Event to hide the banner */
|
|
28
35
|
closed: EventEmitter<void>;
|
|
29
36
|
/**
|
|
@@ -31,6 +38,8 @@ export declare class BannerComponent implements OnChanges {
|
|
|
31
38
|
* If no value for overrideIcon is provided, will be automatically selected based on the type input.
|
|
32
39
|
*/
|
|
33
40
|
icon: string;
|
|
41
|
+
private readonly cacheKeyPrefix;
|
|
42
|
+
constructor(cacheService: CacheService);
|
|
34
43
|
ngOnChanges(): void;
|
|
35
44
|
/** On close, explicitly hide the banner one time. If the input changes afterward then it can reappear*/
|
|
36
45
|
close(): void;
|