@hestia-earth/ui-components 0.42.3 → 0.42.5

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.
@@ -15,12 +15,12 @@ import { ShadeGenerator } from 'shade-generator/dist/shadeGenerator';
15
15
  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, toDashCase, diffInDays } from '@hestia-earth/utils';
17
17
  import { json2csv } from 'json-2-csv';
18
- import { propertyValue as propertyValue$1, emptyValue } from '@hestia-earth/utils/dist/term';
18
+ import { propertyValue as propertyValue$1, emptyValue } from '@hestia-earth/utils/term';
19
19
  import { getDefaultModelId, getModelGroup, loadResourceKey, 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, getMaxStage } from '@hestia-earth/engine-models';
23
- import { DeltaDisplayType, delta, customDeltaFuncs } from '@hestia-earth/utils/dist/delta';
23
+ import { DeltaDisplayType, delta, customDeltaFuncs } from '@hestia-earth/utils/delta';
24
24
  import { LocalStorageService } from 'ngx-webstorage';
25
25
  import { trigger, state, transition, style, animate } from '@angular/animations';
26
26
  import { RouterLinkActive, RouterLink, ActivatedRoute } from '@angular/router';
@@ -49,7 +49,6 @@ import omit from 'lodash.omit';
49
49
  import { validationsByMessage } from '@hestia-earth/data-validation';
50
50
  import { format, subDays, parseISO } from 'date-fns';
51
51
  import { enGB } from 'date-fns/locale';
52
- import { v4 } from 'uuid';
53
52
  import { MarkdownComponent } from 'ngx-markdown';
54
53
  import { linkHorizontal } from 'd3-shape';
55
54
  import 'd3-transition';
@@ -12078,7 +12077,7 @@ const isAddPropertyEnabled = (node, schemaType, schema, fullKey = '') => !!schem
12078
12077
  (!fullKey || nestingTypeEnabled(schemaType));
12079
12078
  const editableKey = (key) => !['type', '@type', 'termType'].includes(key);
12080
12079
  const isCollapsible = (value) => Array.isArray(value) && !isExpandable(value) && value.length > 100;
12081
- const propertyId = () => v4();
12080
+ const propertyId = () => uuid();
12082
12081
  const isGeojson = (schema) => schema.geojson;
12083
12082
  const propertyUrl = (node, key) => ['@id', 'id', 'name'].includes(key) && nodeLinkTypeEnabled(node['@type'] || node.type)
12084
12083
  ? node['@id'] ||
@@ -15039,7 +15038,7 @@ const mapTree = (fn) => (root) => {
15039
15038
  };
15040
15039
  const mapFilterData = (data, fn) => data.map(mapTree(fn));
15041
15040
 
15042
- const populateWithTrackIdsFilterData = (data) => mapFilterData(data, d => ({ ...d, trackId: v4() }));
15041
+ const populateWithTrackIdsFilterData = (data) => mapFilterData(data, d => ({ ...d, trackId: uuid() }));
15043
15042
 
15044
15043
  const getChildrenOptions = (option) => option.type === 'group' && option.options ? [option, ...option.options.flatMap(getChildrenOptions)] : [option];
15045
15044
  const flatFilterData = (nodes) => nodes.flatMap(getChildrenOptions);