@energycap/components 0.32.18 → 0.32.19

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,9 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { CacheService } from '../../core/cache.service';
2
3
  import { Tour, TourEvent } from './tour-types';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class TourService {
6
+ private cacheService;
5
7
  events: Observable<TourEvent>;
6
- constructor();
8
+ constructor(cacheService: CacheService);
7
9
  /**
8
10
  * Start a tour of the application. Allows one or many tours to be sent in, each will
9
11
  * follow the next. If multiple tours have exit steps defined only the final tour will
@@ -12,6 +14,24 @@ export declare class TourService {
12
14
  */
13
15
  start(tours: Tour[], isAutoStart?: boolean): void;
14
16
  end(): void;
17
+ /**
18
+ * Returns a formatted cache key for tours
19
+ * @param tour
20
+ * @returns
21
+ */
22
+ getCacheKey(tour: Tour): string;
23
+ /**
24
+ * Given a tour, check to see if it's been completed
25
+ * @param tour
26
+ * @returns
27
+ */
28
+ hasTourBeenViewed(tour: Tour): boolean;
29
+ /**
30
+ * Given a list of tours, check to see if any will show to the user
31
+ * @param tours
32
+ * @returns
33
+ */
34
+ haveAllToursBeenViewed(tours: Tour[]): boolean;
15
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TourService, never>;
16
36
  static ɵprov: i0.ɵɵInjectableDeclaration<TourService>;
17
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.32.18",
3
+ "version": "0.32.19",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -34,7 +34,7 @@
34
34
  border-color: $green-4;
35
35
  color: var(--ec-color-primary-dark);
36
36
 
37
- &:active:enabled {
37
+ &:active:not(:disabled) {
38
38
  background-color: $green-4;
39
39
  color: var(--ec-color-primary-dark);
40
40
  }
@@ -49,7 +49,7 @@
49
49
  border-color: $control-border-color;
50
50
  color: var(--ec-color-primary-dark);
51
51
 
52
- &:active:enabled {
52
+ &:active:not(:disabled) {
53
53
  background-color: var(--ec-background-color);
54
54
  color: var(--ec-color-primary-dark);
55
55
  }
@@ -68,7 +68,7 @@
68
68
  color: var(--ec-button-color-icon, inherit);
69
69
  }
70
70
 
71
- &:active:enabled {
71
+ &:active:not(:disabled) {
72
72
  background-color: $blue-4;
73
73
  border-color: $blue-6;
74
74
  }
@@ -83,7 +83,7 @@
83
83
  color: var(--ec-button-color-icon, inherit);
84
84
  }
85
85
 
86
- &:active:enabled {
86
+ &:active:not(:disabled) {
87
87
  background-color: $red-4;
88
88
  }
89
89
  }
@@ -130,7 +130,7 @@
130
130
  color: var(--ec-button-color-icon, $icon-color);
131
131
  }
132
132
 
133
- &:active:enabled {
133
+ &:active:not(:disabled) {
134
134
  background-color: transparent;
135
135
  color: $color;
136
136
  }