@hestia-earth/ui-components 0.0.17 → 0.0.20

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.
@@ -19,12 +19,20 @@ interface IBlankNodeLog {
19
19
  configModels: string[];
20
20
  original: number;
21
21
  recalculated: number;
22
+ isOriginal: boolean;
22
23
  isRecalculated: boolean;
23
24
  hasData: boolean;
24
25
  logs?: INodeTermLogs;
25
26
  keys: string[];
26
27
  subValues: IBlankNodeLogSubValue[];
27
28
  }
29
+ declare enum LogStatus {
30
+ success = "successful",
31
+ error = "failed",
32
+ skipHierarchy = "not run (model higher up hierarchy run instead)",
33
+ dataProvided = "not run (user provided data retained)",
34
+ notRequired = "not run (not required to run)"
35
+ }
28
36
  export declare class NodeLogsModelsComponent implements OnInit {
29
37
  private searchService;
30
38
  private hestiaEngineService;
@@ -50,6 +58,22 @@ export declare class NodeLogsModelsComponent implements OnInit {
50
58
  methodModelsCount: number;
51
59
  methodsById?: any;
52
60
  onlyWithData: boolean;
61
+ showLegend: boolean;
62
+ LogStatus: typeof LogStatus;
63
+ logIcon: {
64
+ successful: string | string[];
65
+ failed: string | string[];
66
+ "not run (model higher up hierarchy run instead)": string | string[];
67
+ "not run (user provided data retained)": string | string[];
68
+ "not run (not required to run)": string | string[];
69
+ };
70
+ logColor: {
71
+ successful: string;
72
+ failed: string;
73
+ "not run (model higher up hierarchy run instead)": string;
74
+ "not run (user provided data retained)": string;
75
+ "not run (not required to run)": string;
76
+ };
53
77
  term?: string;
54
78
  suggestTerm: (text$: Observable<string>) => Observable<string[]>;
55
79
  constructor(searchService: HeSearchService, hestiaEngineService: HeEngineService);
@@ -58,16 +82,18 @@ export declare class NodeLogsModelsComponent implements OnInit {
58
82
  private suggestByTerm;
59
83
  trackByBlankNode(_index: number, node: IBlankNodeLog): string;
60
84
  togglePopover(popover: any, context: any): any;
85
+ private isBackground;
86
+ private isRequired;
87
+ private shouldRun;
88
+ private isUserProvided;
61
89
  validSubValue(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): boolean;
62
90
  getMethodIdAt(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): string;
63
91
  methodName({ logs }: IBlankNodeLog, methodId: string): any;
64
- isBackground(node: IBlankNodeLog, methodId: string): boolean;
65
- isSkipped(node: IBlankNodeLog, methodId: string): boolean;
66
- hasLog({ logs }: IBlankNodeLog, methodId: string): boolean;
92
+ hasLog({ logs }: IBlankNodeLog, methodId: string, withOrchestrator?: boolean): boolean;
67
93
  hasLogDetails(node: IBlankNodeLog, methodId: string): number | {
68
94
  [key: string]: any;
69
95
  };
70
- logColor(node: IBlankNodeLog, methodId: string): "success" | "danger" | "dark";
96
+ logStatus(node: IBlankNodeLog, methodId: string): LogStatus;
71
97
  requirementColor(value: any): "danger" | "white";
72
98
  filterResults(): void;
73
99
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeLogsModelsComponent, never>;
@@ -45,6 +45,7 @@ export interface INodeTermLogs {
45
45
  model: string;
46
46
  isKey: boolean;
47
47
  shouldRun?: boolean;
48
+ shouldRunOrchestrator?: boolean;
48
49
  missingLookups?: INodeMissingLookupLog[];
49
50
  requirements?: {
50
51
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.0.17",
3
+ "version": "0.0.20",
4
4
  "description": "Hestia reusable components",
5
5
  "repository": {
6
6
  "type": "git",