@hestia-earth/ui-components 0.4.1 → 0.4.4
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 +314 -194
- package/bundles/hestia-earth-ui-components.umd.js.map +1 -1
- package/common/common.module.d.ts +9 -8
- package/common/index.d.ts +1 -0
- package/common/is-object.pipe.d.ts +7 -0
- package/common/link-key-value/link-key-value.component.d.ts +2 -1
- package/common/utils.d.ts +1 -0
- package/cycles/cycles-activity/cycles-activity.component.d.ts +2 -0
- package/cycles/cycles-emissions/cycles-emissions.component.d.ts +1 -0
- package/cycles/cycles-practices/cycles-practices.component.d.ts +1 -0
- package/esm2015/common/common.module.js +5 -1
- package/esm2015/common/index.js +2 -1
- package/esm2015/common/is-object.pipe.js +16 -0
- package/esm2015/common/issue-confirm/issue-confirm.component.js +2 -2
- package/esm2015/common/link-key-value/link-key-value.component.js +5 -2
- package/esm2015/common/utils.js +2 -1
- package/esm2015/cycles/cycles-activity/cycles-activity.component.js +19 -13
- package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +7 -3
- package/esm2015/cycles/cycles-practices/cycles-practices.component.js +7 -3
- package/esm2015/engine/engine.service.js +2 -2
- package/esm2015/files/files-error.model.js +5 -2
- package/esm2015/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.js +16 -12
- package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +7 -3
- package/esm2015/node/node-logs-models/node-logs-models.component.js +28 -21
- package/esm2015/node/node-logs-models/node-logs-models.model.js +61 -16
- package/esm2015/node/node-value-details/node-value-details.component.js +8 -2
- package/esm2015/search/search.model.js +9 -5
- package/esm2015/sites/sites-measurements/sites-measurements.component.js +7 -3
- package/fesm2015/hestia-earth-ui-components.js +272 -163
- package/fesm2015/hestia-earth-ui-components.js.map +1 -1
- package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts +1 -0
- package/node/node-logs-models/node-logs-models.component.d.ts +3 -2
- package/node/node-logs-models/node-logs-models.model.d.ts +2 -0
- package/node/node-value-details/node-value-details.component.d.ts +1 -0
- package/package.json +1 -1
- package/search/search.model.d.ts +1 -4
- package/sites/sites-measurements/sites-measurements.component.d.ts +1 -0
package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare class ImpactAssessmentsProductsComponent implements OnChanges {
|
|
|
44
44
|
impactName(impact: IImpactAssessmentJSONLD): any;
|
|
45
45
|
cycleLabel({ '@id': id, name }: any): any;
|
|
46
46
|
get enableBreakdown(): boolean;
|
|
47
|
+
private updateSelectedIndex;
|
|
47
48
|
selectIndex({ target: { value } }: {
|
|
48
49
|
target: {
|
|
49
50
|
value: any;
|
|
@@ -42,11 +42,12 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
42
42
|
"not relevant": string;
|
|
43
43
|
};
|
|
44
44
|
propertyValue: (value: string | number | (string | number)[], termId?: string) => number;
|
|
45
|
-
getModelsAt: (
|
|
45
|
+
getModelsAt: (log: IBlankNodeLogSubValue | IBlankNodeLog, index: number) => IConfigModel | IConfigModel[];
|
|
46
46
|
requirementKeys: (requirements: {
|
|
47
47
|
[key: string]: any;
|
|
48
48
|
}) => string[];
|
|
49
49
|
requirementColor: (value: any) => "danger" | "white";
|
|
50
|
+
logValueArray: (value: string) => any[];
|
|
50
51
|
loading: boolean;
|
|
51
52
|
blankNodes: IBlankNodeLog[];
|
|
52
53
|
methodModelsCount: number;
|
|
@@ -63,7 +64,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
63
64
|
trackByBlankNode(_index: number, node: IBlankNodeLog): string;
|
|
64
65
|
get filteredType(): string;
|
|
65
66
|
filterResults(): void;
|
|
66
|
-
methodName({ methodId }: IConfigModel): any;
|
|
67
|
+
methodName({ methodId, model }: IConfigModel): any;
|
|
67
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeLogsModelsComponent, never>;
|
|
68
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLogsModelsComponent, "he-node-logs-models", never, { "node": "node"; "nodeKey": "nodeKey"; "includeAllModels": "includeAllModels"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; "terms": "terms"; "filterTermTypes": "filterTermTypes"; "logsKey": "logsKey"; }, {}, never, never>;
|
|
69
70
|
}
|
|
@@ -83,7 +83,9 @@ export interface IBlankNodeLog {
|
|
|
83
83
|
logs?: INodeTermLogs;
|
|
84
84
|
keys: IBlankNodeLogSubValue[];
|
|
85
85
|
subValues: IBlankNodeLogSubValue[];
|
|
86
|
+
modelsInSubValues?: boolean;
|
|
86
87
|
allParallel?: boolean;
|
|
87
88
|
}
|
|
88
89
|
export declare const groupLogsByTerm: (nodeType: NodeType, logs: INodeLogs, models: IModel[], config: IOrchestratorConfig, allOriginalValues: blankNode[], allRecalculatedValues: blankNode[], nodeKey?: string) => (term: ITermJSONLD) => IBlankNodeLog;
|
|
89
90
|
export declare const modelCount: (blankNodeLogs: IBlankNodeLog[]) => any;
|
|
91
|
+
export declare const logValueArray: (value: string) => any[];
|
|
@@ -13,6 +13,7 @@ export declare class NodeValueDetailsComponent<T> implements OnInit {
|
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
get type(): any;
|
|
15
15
|
get showInline(): boolean;
|
|
16
|
+
defaultValue(key: string): "" | "N/A (from Cycle)";
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeValueDetailsComponent<any>, never>;
|
|
17
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeValueDetailsComponent<any>, "he-node-value-details", never, { "data": "data"; "nodeType": "nodeType"; "dataKey": "dataKey"; }, {}, never, never>;
|
|
18
19
|
}
|
package/package.json
CHANGED
package/search/search.model.d.ts
CHANGED
|
@@ -206,10 +206,6 @@ export declare const regionsQuery: Readonly<{
|
|
|
206
206
|
}>)[];
|
|
207
207
|
};
|
|
208
208
|
}>;
|
|
209
|
-
export declare const worldRegion: Readonly<{
|
|
210
|
-
'@id': string;
|
|
211
|
-
name: string;
|
|
212
|
-
}>;
|
|
213
209
|
export declare const cropsQuery: Readonly<{
|
|
214
210
|
bool: {
|
|
215
211
|
must: (Readonly<{
|
|
@@ -232,6 +228,7 @@ export declare const matchAggregatedQuery: Readonly<{
|
|
|
232
228
|
};
|
|
233
229
|
}>;
|
|
234
230
|
export declare const matchNestedKey: (key: string, query: any) => any;
|
|
231
|
+
export declare const matchPrimaryProductQuery: (product: string) => any;
|
|
235
232
|
/**
|
|
236
233
|
* List of fields to return in the search results.
|
|
237
234
|
*/
|
|
@@ -26,6 +26,7 @@ export declare class SitesMeasurementsComponent implements OnChanges {
|
|
|
26
26
|
private update;
|
|
27
27
|
togglePopover(popover: any, context: any): any;
|
|
28
28
|
get showAreaTooBig(): boolean;
|
|
29
|
+
private updateSelectedIndex;
|
|
29
30
|
selectIndex({ target: { value } }: {
|
|
30
31
|
target: {
|
|
31
32
|
value: any;
|