@hestia-earth/ui-components 0.32.66 → 0.32.67

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.
@@ -9071,7 +9071,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
9071
9071
  /* eslint-disable complexity */
9072
9072
  /* eslint-disable max-len */
9073
9073
  /* eslint-disable no-useless-escape */
9074
- const guidePageId = (nodeType, errorMessage) => [`guide-data-validation${toDashCase(nodeType)}`, validationsByMessage?.[errorMessage]?.[0]].filter(Boolean).join('#');
9074
+ const guidePageId = (nodeType, errorMessage) => [`guide-data-validation${toDashCase(nodeType)}`, validationsByMessage?.[errorMessage]?.[0]?.function]
9075
+ .filter(Boolean)
9076
+ .join('#');
9075
9077
  const mapErrorMessage = 'does not contain latitude and longitude';
9076
9078
  const parseDataPath = (dataPath = '') => {
9077
9079
  const [_, ...paths] = dataPath
@@ -9641,7 +9643,9 @@ const customErrorMessage = {
9641
9643
  'should add missing inputs': ({ params: { expected } }) => `Should add missing inputs: ${expected.map(code).join(', ')}`,
9642
9644
  'the property value type is incorrect': ({ params: { expected } }) => `The value must be a ${expected}.`,
9643
9645
  'the node value type is incorrect': ({ params: { expected } }) => `The value must be a ${expected}.`,
9644
- 'can not be linked to the same type': ({ params: { current } }) => `Cannot be linked to the same ${current}`
9646
+ 'can not be linked to the same type': ({ params: { current } }) => `Cannot be linked to the same ${current}.`,
9647
+ 'must be above the minimum': ({ params: { min } }) => `Must be above ${min}.`,
9648
+ 'must be below the maximum': ({ params: { max } }) => `Must be below ${max}.`
9645
9649
  };
9646
9650
  const requiredPropertyError = (message, error) => {
9647
9651
  const field = message.split("'")[1].replace("'", '');