@hestia-earth/ui-components 0.1.2 → 0.1.5
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/hestia-earth-ui-components.umd.js +171 -91
- package/bundles/hestia-earth-ui-components.umd.js.map +1 -1
- package/cycles/cycles-activity-logs/cycles-activity-logs.component.d.ts +2 -1
- package/cycles/cycles-emissions/cycles-emissions.component.d.ts +1 -0
- package/cycles/cycles.model.d.ts +8 -0
- package/cycles/cycles.module.d.ts +1 -1
- package/esm2015/common/data-table/data-table.component.js +4 -3
- package/esm2015/common/utils.js +5 -4
- package/esm2015/cycles/cycles-activity/cycles-activity.component.js +2 -2
- package/esm2015/cycles/cycles-activity-logs/cycles-activity-logs.component.js +9 -5
- package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +8 -2
- package/esm2015/cycles/cycles-emissions-logs/cycles-emissions-logs.component.js +6 -4
- package/esm2015/cycles/cycles-practices/cycles-practices.component.js +2 -2
- package/esm2015/cycles/cycles-practices-logs/cycles-practices-logs.component.js +6 -4
- package/esm2015/cycles/cycles.model.js +10 -1
- package/esm2015/cycles/cycles.module.js +5 -5
- package/esm2015/files/files-form/files-form.component.js +9 -7
- package/esm2015/fontawesome/fontawesome.module.js +3 -3
- package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +2 -2
- package/esm2015/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.js +21 -15
- package/esm2015/node/node-logs-models/node-logs-models.component.js +67 -34
- package/esm2015/node/node.service.js +1 -1
- package/esm2015/sites/sites-maps/sites-maps.component.js +3 -4
- package/esm2015/sites/sites-measurements/sites-measurements.component.js +2 -2
- package/esm2015/sites/sites-measurements-logs/sites-measurements-logs.component.js +1 -1
- package/fesm2015/hestia-earth-ui-components.js +141 -81
- package/fesm2015/hestia-earth-ui-components.js.map +1 -1
- package/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.d.ts +1 -0
- package/node/node-logs-models/node-logs-models.component.d.ts +8 -5
- package/node/node.service.d.ts +1 -0
- package/package.json +4 -4
|
@@ -21,6 +21,7 @@ export declare class ImpactAssessmentsProductsLogsComponent implements OnInit {
|
|
|
21
21
|
ngOnInit(): Promise<void>;
|
|
22
22
|
private get node();
|
|
23
23
|
get filteredType(): string;
|
|
24
|
+
get includeAllModels(): boolean;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImpactAssessmentsProductsLogsComponent, never>;
|
|
25
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImpactAssessmentsProductsLogsComponent, "he-impact-assessments-products-logs", never, { "impactAssessment": "impactAssessment"; "key": "key"; "filterTermTypes": "filterTermTypes"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; }, {}, never, never>;
|
|
26
27
|
}
|
|
@@ -10,6 +10,7 @@ interface IBlankNodeLogSubValue {
|
|
|
10
10
|
key: string;
|
|
11
11
|
originalValue: number | string | boolean;
|
|
12
12
|
recalculatedValue: number | string | boolean;
|
|
13
|
+
isRecalculated: boolean;
|
|
13
14
|
id?: any;
|
|
14
15
|
configModels?: string[];
|
|
15
16
|
}
|
|
@@ -27,6 +28,7 @@ interface IBlankNodeLog {
|
|
|
27
28
|
isOriginal: boolean;
|
|
28
29
|
isRecalculated: boolean;
|
|
29
30
|
hasData: boolean;
|
|
31
|
+
isRequired: boolean;
|
|
30
32
|
logs?: INodeTermLogs;
|
|
31
33
|
keys: IBlankNodeLogSubValue[];
|
|
32
34
|
subValues: IBlankNodeLogSubValue[];
|
|
@@ -36,7 +38,7 @@ declare enum LogStatus {
|
|
|
36
38
|
error = "failed",
|
|
37
39
|
skipHierarchy = "not run (model higher up hierarchy run instead)",
|
|
38
40
|
dataProvided = "not run (user provided data retained)",
|
|
39
|
-
notRequired = "not
|
|
41
|
+
notRequired = "not relevant"
|
|
40
42
|
}
|
|
41
43
|
export declare class NodeLogsModelsComponent implements OnInit {
|
|
42
44
|
private searchService;
|
|
@@ -50,6 +52,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
50
52
|
* Restrict models by key.
|
|
51
53
|
*/
|
|
52
54
|
private nodeKey?;
|
|
55
|
+
private includeAllModels;
|
|
53
56
|
logsUrl?: string;
|
|
54
57
|
originalValues: blankNode[];
|
|
55
58
|
private recalculatedValues;
|
|
@@ -71,14 +74,14 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
71
74
|
failed: string | string[];
|
|
72
75
|
"not run (model higher up hierarchy run instead)": string | string[];
|
|
73
76
|
"not run (user provided data retained)": string | string[];
|
|
74
|
-
"not
|
|
77
|
+
"not relevant": string | string[];
|
|
75
78
|
};
|
|
76
79
|
logColor: {
|
|
77
80
|
successful: string;
|
|
78
81
|
failed: string;
|
|
79
82
|
"not run (model higher up hierarchy run instead)": string;
|
|
80
83
|
"not run (user provided data retained)": string;
|
|
81
|
-
"not
|
|
84
|
+
"not relevant": string;
|
|
82
85
|
};
|
|
83
86
|
term?: string;
|
|
84
87
|
suggestTerm: (text$: Observable<string>) => Observable<string[]>;
|
|
@@ -94,7 +97,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
94
97
|
private getSubvalueLogs;
|
|
95
98
|
getLogs(node: IBlankNodeLog, methodId: string, subValue?: IBlankNodeLogSubValue): any;
|
|
96
99
|
private isBackground;
|
|
97
|
-
private
|
|
100
|
+
private isRunOrchestrator;
|
|
98
101
|
private isUserProvided;
|
|
99
102
|
validSubValue(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): boolean;
|
|
100
103
|
getMethodIdAt(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): string;
|
|
@@ -107,6 +110,6 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
107
110
|
}): string[];
|
|
108
111
|
requirementColor(value: any): "danger" | "white";
|
|
109
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeLogsModelsComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLogsModelsComponent, "he-node-logs-models", never, { "nodeType": "nodeType"; "nodeKey": "nodeKey"; "logsUrl": "logsUrl"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; "terms": "terms"; "logs": "logs"; "filteredType": "filteredType"; }, {}, never, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLogsModelsComponent, "he-node-logs-models", never, { "nodeType": "nodeType"; "nodeKey": "nodeKey"; "includeAllModels": "includeAllModels"; "logsUrl": "logsUrl"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; "terms": "terms"; "logs": "logs"; "filteredType": "filteredType"; }, {}, never, never>;
|
|
111
114
|
}
|
|
112
115
|
export {};
|
package/node/node.service.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/ui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Hestia reusable components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google/markerclustererplus": "^5.1.3",
|
|
25
25
|
"@hestia-earth/api": ">=0.10.0",
|
|
26
26
|
"@hestia-earth/glossary": "^0.3.0",
|
|
27
|
-
"@hestia-earth/json-schema": "^8.
|
|
28
|
-
"@hestia-earth/schema": "^8.
|
|
29
|
-
"@hestia-earth/schema-convert": "^8.
|
|
27
|
+
"@hestia-earth/json-schema": "^8.1.0",
|
|
28
|
+
"@hestia-earth/schema": "^8.1.0",
|
|
29
|
+
"@hestia-earth/schema-convert": "^8.1.0",
|
|
30
30
|
"@hestia-earth/ui-framework": "^1.11.0",
|
|
31
31
|
"@hestia-earth/utils": "^0.10.20",
|
|
32
32
|
"@ng-bootstrap/ng-bootstrap": ">=8.0.4",
|