@hestia-earth/ui-components 0.41.51 → 0.41.53

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.53",
4
4
  "description": "HESTIA reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -474,9 +474,13 @@ declare class ContributionChartComponent {
474
474
  * Show the legend below the chart.
475
475
  */
476
476
  protected readonly showLegend: _angular_core.InputSignal<boolean>;
477
+ /**
478
+ * Override the default configuration.
479
+ */
477
480
  readonly config: _angular_core.InputSignal<Partial<ChartConfiguration<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint)[], unknown>>>;
478
481
  protected readonly minHeight: _angular_core.InputSignal<number>;
479
482
  protected readonly maxHeight: _angular_core.InputSignal<number>;
483
+ protected readonly height: _angular_core.InputSignal<number>;
480
484
  /**
481
485
  * Category to group the data by.
482
486
  */
@@ -484,7 +488,7 @@ declare class ContributionChartComponent {
484
488
  private readonly chart;
485
489
  private readonly tooltip;
486
490
  readonly exporting: _angular_core.Signal<boolean>;
487
- protected readonly height: _angular_core.Signal<number>;
491
+ protected readonly chartHeight: _angular_core.Signal<number>;
488
492
  private readonly hasNegativeContributions;
489
493
  protected readonly displayData: _angular_core.Signal<ContributionChartDataItem[] | {
490
494
  label: string;
@@ -602,7 +606,7 @@ declare class ContributionChartComponent {
602
606
  exportAsPng(): void;
603
607
  exportAsCsv(title: string): void;
604
608
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContributionChartComponent, never>;
605
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContributionChartComponent, "he-contribution-chart", ["contributionChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showExportButton": { "alias": "showExportButton"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "category": { "alias": "category"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
609
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContributionChartComponent, "he-contribution-chart", ["contributionChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showExportButton": { "alias": "showExportButton"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "category": { "alias": "category"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
606
610
  }
607
611
 
608
612
  interface HistogramChartDataItem {
@@ -2222,12 +2226,35 @@ interface IEmissionCategory {
2222
2226
  declare class CyclesEmissionsCategoryService {
2223
2227
  private readonly data;
2224
2228
  readonly categoryLabel: (key: string) => string;
2229
+ /**
2230
+ * The list of all available categories.
2231
+ */
2225
2232
  readonly categories: {
2226
2233
  key: string;
2227
2234
  label: string;
2228
2235
  }[];
2229
- readonly emissionCategories: (id: string) => string[];
2230
- readonly emissionCategoryValue: (id: string, category: string) => any;
2236
+ /**
2237
+ * Return all possible values for a specific Category.
2238
+ *
2239
+ * @param category {string} The specific category
2240
+ * @returns List of all values possible for this Category.
2241
+ */
2242
+ readonly categoryValues: (category: string) => string[];
2243
+ /**
2244
+ * Return the different categories available for a single Emission.
2245
+ *
2246
+ * @param emissionId The `@id` of the Emission
2247
+ * @returns List of categories.
2248
+ */
2249
+ readonly emissionCategories: (emissionId: string) => string[];
2250
+ /**
2251
+ * Return the Category value for a specific Emission and Category.
2252
+ *
2253
+ * @param emissionId The `@id` of the Emission
2254
+ * @param category The Category
2255
+ * @returns The value
2256
+ */
2257
+ readonly emissionCategoryValue: (emissionId: string, category: string) => string;
2231
2258
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CyclesEmissionsCategoryService, never>;
2232
2259
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CyclesEmissionsCategoryService>;
2233
2260
  }
@@ -3959,17 +3986,7 @@ declare class ImpactAssessmentsGraphComponent {
3959
3986
  label: string;
3960
3987
  }[];
3961
3988
  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
- })[]>;
3989
+ protected readonly chartData: _angular_core.Signal<IChartData[]>;
3973
3990
  protected readonly loading: _angular_core.Signal<boolean>;
3974
3991
  protected readonly showChart: _angular_core.Signal<boolean>;
3975
3992
  constructor();