@hestia-earth/ui-components 0.41.24 → 0.41.25
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.
|
@@ -6983,8 +6983,8 @@ const nodeTypeIcon = {
|
|
|
6983
6983
|
[NodeType.Site]: 'pin',
|
|
6984
6984
|
[NodeType.Source]: 'source',
|
|
6985
6985
|
[NodeType.Term]: 'term',
|
|
6986
|
-
[SchemaType.Property]: '
|
|
6987
|
-
[SchemaType.Transport]: '
|
|
6986
|
+
[SchemaType.Property]: 'search-with-exclamation',
|
|
6987
|
+
[SchemaType.Transport]: 'transport'
|
|
6988
6988
|
};
|
|
6989
6989
|
|
|
6990
6990
|
class NodeLinkComponent {
|
|
@@ -9385,7 +9385,6 @@ const icons = [
|
|
|
9385
9385
|
'loading-circle-filled',
|
|
9386
9386
|
'loading-circle-filled-withshadow',
|
|
9387
9387
|
'log',
|
|
9388
|
-
'magnifier',
|
|
9389
9388
|
'mail',
|
|
9390
9389
|
'map',
|
|
9391
9390
|
'menu',
|
|
@@ -9420,6 +9419,7 @@ const icons = [
|
|
|
9420
9419
|
'save',
|
|
9421
9420
|
'schema',
|
|
9422
9421
|
'search',
|
|
9422
|
+
'search-with-exclamation',
|
|
9423
9423
|
'search-with-minus',
|
|
9424
9424
|
'search-with-plus',
|
|
9425
9425
|
'settings',
|
|
@@ -9440,15 +9440,16 @@ const icons = [
|
|
|
9440
9440
|
'sort-caret-up-filled',
|
|
9441
9441
|
'source',
|
|
9442
9442
|
'star',
|
|
9443
|
+
'star-filled',
|
|
9443
9444
|
'table',
|
|
9444
9445
|
'tag-filled',
|
|
9445
9446
|
'target',
|
|
9446
9447
|
'term',
|
|
9447
9448
|
'textform-list',
|
|
9448
9449
|
'tool',
|
|
9450
|
+
'transport',
|
|
9449
9451
|
'trash',
|
|
9450
9452
|
'tree',
|
|
9451
|
-
'truck',
|
|
9452
9453
|
'turn-phone',
|
|
9453
9454
|
'unit',
|
|
9454
9455
|
'upload',
|
|
@@ -10936,6 +10937,9 @@ const customErrorMessage = {
|
|
|
10936
10937
|
'the property value type is incorrect': ({ params: { expected } }) => `The value must be a ${expected}.`,
|
|
10937
10938
|
'the node value type is incorrect': ({ params: { expected } }) => `The value must be a ${expected}.`,
|
|
10938
10939
|
'can not be linked to the same type': ({ params: { current } }) => `Cannot be linked to the same ${current}.`,
|
|
10940
|
+
'must be lower or equal to siteArea': () => `The value of ${code('harvestedArea')} cannot be greater than ${code('siteArea')}.
|
|
10941
|
+
This is because ${code('harvestedArea')} corresponds to the extent of the overall ${code('siteArea')} that is actually harvested.
|
|
10942
|
+
Please amend the value of ${code('harvestedArea')} accordingly.`,
|
|
10939
10943
|
'must be above the minimum': ({ params: { min } }) => `Must be above ${min}.`,
|
|
10940
10944
|
'must be below the maximum': ({ params: { max } }) => `Must be below ${max}.`,
|
|
10941
10945
|
'must be linked to waste input': () => `The term ${code('ionisingCompoundsToAirInputsProduction')} can only have 1 entry of ${code('termType')}: ${glossaryTypeLink(TermTermType.waste)}, so that the ${code('value')} field can represent the amount of units of that waste term.`,
|
|
@@ -10954,7 +10958,7 @@ const customErrorMessage = {
|
|
|
10954
10958
|
.filter(Boolean)
|
|
10955
10959
|
.join('\n'),
|
|
10956
10960
|
'should set the depth': ({ params }) => `The value of Emission ${code(params.term['@id'])} can change significantly based on the soil depth taken into account.
|
|
10957
|
-
Please consider adding
|
|
10961
|
+
Please consider adding ${schemaLink('Emission#depthUpper', 'depthUpper')} and ${schemaLink('Emission#depthLower', 'depthLower')} fields to the Emission.`
|
|
10958
10962
|
};
|
|
10959
10963
|
const requiredPropertyError = (message, error) => {
|
|
10960
10964
|
const field = message.split("'")[1].replace("'", '');
|