@hestia-earth/ui-components 0.32.34 → 0.32.35
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/common/node-utils.d.ts +3 -1
- package/cycles/cycles-nodes/cycles-nodes.component.d.ts +3 -0
- package/fesm2022/hestia-earth-ui-components.mjs +35 -24
- package/fesm2022/hestia-earth-ui-components.mjs.map +1 -1
- package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts +2 -1
- package/package.json +1 -1
- package/search/search.service.d.ts +2 -2
- package/sites/sites-nodes/sites-nodes.component.d.ts +1 -0
package/common/node-utils.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface IGroupedNodesValues<T> {
|
|
|
47
47
|
[nodeId: string]: IGroupedNode<T>;
|
|
48
48
|
}
|
|
49
49
|
export interface IGroupedNodesValue<T> {
|
|
50
|
+
visible: boolean;
|
|
50
51
|
term: ITermJSONLD;
|
|
51
52
|
methodTier?: EmissionMethodTier;
|
|
52
53
|
/**
|
|
@@ -70,5 +71,6 @@ export declare const grouppedKeys: <T>(values: {
|
|
|
70
71
|
}[];
|
|
71
72
|
export declare const methodTierOrder: (methodTier: EmissionMethodTier) => number;
|
|
72
73
|
export declare const grouppedValueKeys: string[];
|
|
73
|
-
export declare const groupNodesByTerm: <T extends ICycleJSONLD | IImpactAssessmentJSONLD | ISiteJSONLD | Animal | Transformation, R>(nodes: T[], key: blankNodesKey, includeNode?: (_node: any) => boolean, hideZeroValues?: boolean) => IGroupedNodes<R>;
|
|
74
|
+
export declare const groupNodesByTerm: <T extends ICycleJSONLD | IImpactAssessmentJSONLD | ISiteJSONLD | Animal | Transformation, R>(nodes: T[], key: blankNodesKey, includeNode?: (_node: any) => boolean, hideZeroValues?: boolean, hideIdenticalValues?: boolean) => IGroupedNodes<R>;
|
|
75
|
+
export declare const isGroupVisible: <T>(blankNodes: IGroupedKeys<T>[]) => boolean;
|
|
74
76
|
export {};
|
|
@@ -29,6 +29,7 @@ export declare class CyclesNodesComponent {
|
|
|
29
29
|
protected readonly selectedNodeKey: import("@angular/core").WritableSignal<BlankNodesKey>;
|
|
30
30
|
protected readonly selectedGroup: import("@angular/core").WritableSignal<string>;
|
|
31
31
|
protected readonly schemaBaseUrl: string;
|
|
32
|
+
protected readonly isGroupVisible: <T>(blankNodes: IGroupedKeys<T>[]) => boolean;
|
|
32
33
|
protected readonly defaultLabel: (node?: any) => any;
|
|
33
34
|
protected readonly headerKeys: import("@angular/core").Signal<string[]>;
|
|
34
35
|
protected readonly View: typeof View;
|
|
@@ -183,7 +184,9 @@ export declare class CyclesNodesComponent {
|
|
|
183
184
|
protected readonly filterTermTypes: import("@angular/core").Signal<TermTermType[]>;
|
|
184
185
|
protected readonly filterTerm: import("@angular/core").WritableSignal<string>;
|
|
185
186
|
protected readonly csvFilename: import("@angular/core").Signal<string>;
|
|
187
|
+
protected readonly showHideZeroValues: import("@angular/core").Signal<boolean>;
|
|
186
188
|
protected readonly hideZeroValues: import("@angular/core").WritableSignal<boolean>;
|
|
189
|
+
protected readonly hideIdenticalValues: import("@angular/core").WritableSignal<boolean>;
|
|
187
190
|
constructor();
|
|
188
191
|
private groupNodesByKey;
|
|
189
192
|
private groupEmissions;
|