@hestia-earth/ui-components 0.41.51 → 0.41.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.41.51",
3
+ "version": "0.41.52",
4
4
  "description": "HESTIA reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2222,12 +2222,35 @@ interface IEmissionCategory {
2222
2222
  declare class CyclesEmissionsCategoryService {
2223
2223
  private readonly data;
2224
2224
  readonly categoryLabel: (key: string) => string;
2225
+ /**
2226
+ * The list of all available categories.
2227
+ */
2225
2228
  readonly categories: {
2226
2229
  key: string;
2227
2230
  label: string;
2228
2231
  }[];
2229
- readonly emissionCategories: (id: string) => string[];
2230
- readonly emissionCategoryValue: (id: string, category: string) => any;
2232
+ /**
2233
+ * Return all possible values for a specific Category.
2234
+ *
2235
+ * @param category {string} The specific category
2236
+ * @returns List of all values possible for this Category.
2237
+ */
2238
+ readonly categoryValues: (category: string) => string[];
2239
+ /**
2240
+ * Return the different categories available for a single Emission.
2241
+ *
2242
+ * @param emissionId The `@id` of the Emission
2243
+ * @returns List of categories.
2244
+ */
2245
+ readonly emissionCategories: (emissionId: string) => string[];
2246
+ /**
2247
+ * Return the Category value for a specific Emission and Category.
2248
+ *
2249
+ * @param emissionId The `@id` of the Emission
2250
+ * @param category The Category
2251
+ * @returns The value
2252
+ */
2253
+ readonly emissionCategoryValue: (emissionId: string, category: string) => string;
2231
2254
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CyclesEmissionsCategoryService, never>;
2232
2255
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CyclesEmissionsCategoryService>;
2233
2256
  }
@@ -3959,17 +3982,7 @@ declare class ImpactAssessmentsGraphComponent {
3959
3982
  label: string;
3960
3983
  }[];
3961
3984
  protected readonly selectedCategory: _angular_core.WritableSignal<string>;
3962
- protected readonly chartData: _angular_core.Signal<(IChartData | {
3963
- category: any;
3964
- categoryLabel: string;
3965
- indicator: string;
3966
- contributor: string;
3967
- coefficient: number;
3968
- value: number;
3969
- weightedValue: number;
3970
- modelId: string;
3971
- inputs?: IChartInputLog[];
3972
- })[]>;
3985
+ protected readonly chartData: _angular_core.Signal<IChartData[]>;
3973
3986
  protected readonly loading: _angular_core.Signal<boolean>;
3974
3987
  protected readonly showChart: _angular_core.Signal<boolean>;
3975
3988
  constructor();