@hestia-earth/ui-components 0.42.29 → 0.42.30

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.
@@ -16,7 +16,7 @@ import { select, selectAll } from 'd3-selection';
16
16
  import { isEmpty, unique, monthsBefore, toPrecision, isNumber, isUndefined, toComma, duration, keyToLabel, sum, min, max, mean, median, ellipsis as ellipsis$1, getPercentileValue, isEqual as isEqual$2, diffInDays } from '@hestia-earth/utils';
17
17
  import { json2csv } from 'json-2-csv';
18
18
  import { propertyValue as propertyValue$1, emptyValue } from '@hestia-earth/utils/term';
19
- import { getDefaultModelId, getModelGroup, loadResourceKey, getArrayTreatment, isInSystemBoundary } from '@hestia-earth/glossary';
19
+ import { getDefaultModelId, getModelGroup, getArrayTreatment, isInSystemBoundary } from '@hestia-earth/glossary';
20
20
  import isEqual$1 from 'lodash.isequal';
21
21
  import { DataState, filenameWithoutExt, nodeTypeToParam, allowedDataStates, SupportedExtensions, fileToExt, fileExt, maxFileSizeMb } from '@hestia-earth/api';
22
22
  import { models as models$1, loadConfig, getFormulas, renderFormula, getMaxStage } from '@hestia-earth/engine-models';
@@ -37,6 +37,7 @@ import { Chart, BarController, LineController, CategoryScale, LinearScale, Point
37
37
  import C2S from 'canvas-to-svg';
38
38
  import 'chartjs-adapter-date-fns';
39
39
  import annotationPlugin from 'chartjs-plugin-annotation';
40
+ import emissionGroupings from '@hestia-earth/glossary/resources/emission-groupings.json';
40
41
  import { headersFromCsv, toCsv as toCsv$1, toJson, toCsvPivot, ErrorKeys } from '@hestia-earth/schema-convert';
41
42
  import { isCSVIncluded, isDefaultCSVSelected } from '@hestia-earth/json-schema/schema-utils';
42
43
  import { recommendedProperties, loadSchemas } from '@hestia-earth/json-schema';
@@ -6794,7 +6795,7 @@ const toLine = (values) => values.map(escape).join(',');
6794
6795
 
6795
6796
  class CyclesEmissionsCategoryService {
6796
6797
  constructor() {
6797
- this.data = loadResourceKey('emission-groupings.json');
6798
+ this.data = emissionGroupings;
6798
6799
  this.categoryLabel = (key) => (key ? keyToLabel(key.replace(/category/gi, '')) : 'Unset');
6799
6800
  /**
6800
6801
  * The list of all available categories.