@hestia-earth/ui-components 0.3.1 → 0.3.2

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.
@@ -4123,13 +4123,13 @@
4123
4123
  }]
4124
4124
  }] });
4125
4125
 
4126
- var orderBy$7 = require('lodash.orderby');
4126
+ var orderBy$6 = require('lodash.orderby');
4127
4127
  var SortByPipe = /** @class */ (function () {
4128
4128
  function SortByPipe() {
4129
4129
  }
4130
4130
  SortByPipe.prototype.transform = function (value, keys, orders) {
4131
4131
  if (orders === void 0) { orders = ['asc']; }
4132
- return orderBy$7(value, keys, orders);
4132
+ return orderBy$6(value, keys, orders);
4133
4133
  };
4134
4134
  return SortByPipe;
4135
4135
  }());
@@ -5501,7 +5501,7 @@
5501
5501
 
5502
5502
  var get$3 = require('lodash.get');
5503
5503
  var set$1 = require('lodash.set');
5504
- var orderBy$6 = require('lodash.orderby');
5504
+ var orderBy$5 = require('lodash.orderby');
5505
5505
  var termTypes = Object.values(schema.TermTermType);
5506
5506
  var blankNodeTypes = Object.values(schema.SchemaType).filter(function (t) { return !schema.isTypeNode(t); });
5507
5507
  var schemaTypesLowerCase = Object.values(schema.SchemaType).map(function (v) { return v.toLowerCase(); });
@@ -5628,42 +5628,42 @@
5628
5628
  }))), __read((recalculatedValues || []).map(function (_c) {
5629
5629
  var term = _c.term;
5630
5630
  return term;
5631
- }))).filter(function (node) { return !(filterTermTypes === null || filterTermTypes === void 0 ? void 0 : filterTermTypes.length) || filterTermTypes.includes(node.termType); })).pipe(operators.distinct(function (v) { return v['@id']; }), operators.toArray(), operators.map(function (v) { return orderBy$6(v, ['name'], ['asc']); })).toPromise(); };
5632
- var LogStatus;
5631
+ }))).filter(function (node) { return !(filterTermTypes === null || filterTermTypes === void 0 ? void 0 : filterTermTypes.length) || filterTermTypes.includes(node.termType); })).pipe(operators.distinct(function (v) { return v['@id']; }), operators.toArray(), operators.map(function (v) { return orderBy$5(v, ['name'], ['asc']); })).toPromise(); };
5632
+ exports.LogStatus = void 0;
5633
5633
  (function (LogStatus) {
5634
5634
  LogStatus["success"] = "successful";
5635
5635
  LogStatus["error"] = "failed";
5636
5636
  LogStatus["skipHierarchy"] = "not run (model higher up hierarchy run instead)";
5637
5637
  LogStatus["dataProvided"] = "not run (user provided data retained)";
5638
5638
  LogStatus["notRequired"] = "not relevant";
5639
- })(LogStatus || (LogStatus = {}));
5639
+ })(exports.LogStatus || (exports.LogStatus = {}));
5640
5640
  var hasLogDetails = function (data, logs) {
5641
5641
  var _a;
5642
5642
  return [
5643
- LogStatus.success,
5644
- LogStatus.error
5643
+ exports.LogStatus.success,
5644
+ exports.LogStatus.error
5645
5645
  ].includes(logStatus(data, logs)) && ((logs === null || logs === void 0 ? void 0 : logs.requirements) || (logs === null || logs === void 0 ? void 0 : logs.logs) || ((_a = logs === null || logs === void 0 ? void 0 : logs.missingLookups) === null || _a === void 0 ? void 0 : _a.length));
5646
5646
  };
5647
5647
  var logStatus = function (data, logs) { return hasLog(logs)
5648
5648
  ? (!data.isRequired
5649
- ? LogStatus.notRequired
5649
+ ? exports.LogStatus.notRequired
5650
5650
  : isRunOrchestrator(logs)
5651
5651
  ? ('shouldRun' in logs
5652
5652
  ? logs.shouldRun
5653
5653
  ? data.isRecalculated
5654
- ? LogStatus.success
5655
- : LogStatus.dataProvided
5656
- : LogStatus.error
5657
- : LogStatus.dataProvided)
5654
+ ? exports.LogStatus.success
5655
+ : exports.LogStatus.dataProvided
5656
+ : exports.LogStatus.error
5657
+ : exports.LogStatus.dataProvided)
5658
5658
  : data.isRecalculated
5659
- ? LogStatus.skipHierarchy
5660
- : LogStatus.dataProvided)
5659
+ ? exports.LogStatus.skipHierarchy
5660
+ : exports.LogStatus.dataProvided)
5661
5661
  : ([
5662
5662
  typeof data.originalValue === 'undefined',
5663
5663
  data.isRecalculated // is recalculated
5664
5664
  ].every(Boolean)
5665
- ? LogStatus.skipHierarchy
5666
- : LogStatus.dataProvided); };
5665
+ ? exports.LogStatus.skipHierarchy
5666
+ : exports.LogStatus.dataProvided); };
5667
5667
  var reduceValues = function (values, termId) {
5668
5668
  var propertyValues = values
5669
5669
  .map(function (_c) {
@@ -5894,21 +5894,20 @@
5894
5894
  ]); })))); };
5895
5895
 
5896
5896
  var _b, _c$1;
5897
- var orderBy$5 = require('lodash.orderby');
5898
5897
  var nodeTypesLowerCase = Object.values(schema.NodeType).map(function (v) { return v.toLowerCase(); });
5899
5898
  var logIcon = (_b = {},
5900
- _b[LogStatus.success] = 'check',
5901
- _b[LogStatus.error] = 'times',
5902
- _b[LogStatus.skipHierarchy] = ['far', 'circle'],
5903
- _b[LogStatus.dataProvided] = 'circle',
5904
- _b[LogStatus.notRequired] = 'dot-circle',
5899
+ _b[exports.LogStatus.success] = 'check',
5900
+ _b[exports.LogStatus.error] = 'times',
5901
+ _b[exports.LogStatus.skipHierarchy] = ['far', 'circle'],
5902
+ _b[exports.LogStatus.dataProvided] = 'circle',
5903
+ _b[exports.LogStatus.notRequired] = 'dot-circle',
5905
5904
  _b);
5906
5905
  var logColor = (_c$1 = {},
5907
- _c$1[LogStatus.success] = 'success',
5908
- _c$1[LogStatus.error] = 'danger',
5909
- _c$1[LogStatus.skipHierarchy] = 'dark',
5910
- _c$1[LogStatus.dataProvided] = 'dark',
5911
- _c$1[LogStatus.notRequired] = 'grey',
5906
+ _c$1[exports.LogStatus.success] = 'success',
5907
+ _c$1[exports.LogStatus.error] = 'danger',
5908
+ _c$1[exports.LogStatus.skipHierarchy] = 'dark',
5909
+ _c$1[exports.LogStatus.dataProvided] = 'dark',
5910
+ _c$1[exports.LogStatus.notRequired] = 'grey',
5912
5911
  _c$1);
5913
5912
  var methodIdLabel = function (methodId) { return methodId ?
5914
5913
  ({
@@ -5936,7 +5935,7 @@
5936
5935
  this.terms = [];
5937
5936
  this.baseUrl = baseUrl();
5938
5937
  this.isExternal = isExternal();
5939
- this.LogStatus = LogStatus;
5938
+ this.LogStatus = exports.LogStatus;
5940
5939
  this.logIcon = logIcon;
5941
5940
  this.logColor = logColor;
5942
5941
  this.propertyValue = term.propertyValue;
@@ -9980,6 +9979,7 @@
9980
9979
  exports.calculateCycleStartDateEnabled = calculateCycleStartDateEnabled;
9981
9980
  exports.clustererImage = clustererImage;
9982
9981
  exports.code = code;
9982
+ exports.computeTerms = computeTerms;
9983
9983
  exports.coordinatesToPoint = coordinatesToPoint;
9984
9984
  exports.copyObject = copyObject;
9985
9985
  exports.countriesQuery = countriesQuery;
@@ -10014,6 +10014,8 @@
10014
10014
  exports.gitHome = gitHome;
10015
10015
  exports.gitRawBaseUrl = gitRawBaseUrl;
10016
10016
  exports.groupChanged = groupChanged;
10017
+ exports.groupLogsByModel = groupLogsByModel;
10018
+ exports.groupLogsByTerm = groupLogsByTerm;
10017
10019
  exports.handleAPIError = handleAPIError;
10018
10020
  exports.hasError = hasError;
10019
10021
  exports.hasWarning = hasWarning;
@@ -10055,6 +10057,7 @@
10055
10057
  exports.measurementValue = measurementValue;
10056
10058
  exports.missingNodeErrorMessage = missingNodeErrorMessage;
10057
10059
  exports.missingNodeErrors = missingNodeErrors;
10060
+ exports.modelCount = modelCount;
10058
10061
  exports.modelKeyParams = modelKeyParams;
10059
10062
  exports.modelParams = modelParams;
10060
10063
  exports.multiMatchQuery = multiMatchQuery;