@hestia-earth/ui-components 0.22.2 → 0.23.1

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.
@@ -1,5 +1,5 @@
1
1
  export type validationErrorLevel = 'error' | 'warning';
2
- export type validationErrorParam = 'missingProperty' | 'type' | 'term' | 'termType' | 'model' | 'product' | 'range' | 'node' | 'allowedValues' | 'allowedValue' | 'additionalProperty' | 'expected' | 'default' | 'current' | 'percentage' | 'keys' | 'threshold' | 'outliers' | 'country' | 'min' | 'max' | 'defaultSource' | 'source' | 'group' | 'message' | 'distance' | 'siteType' | 'products' | 'units' | 'duplicatedIndexes';
2
+ export type validationErrorParam = 'missingProperty' | 'type' | 'term' | 'termType' | 'model' | 'product' | 'range' | 'node' | 'allowedValues' | 'allowedValue' | 'additionalProperty' | 'expected' | 'default' | 'current' | 'percentage' | 'keys' | 'threshold' | 'outliers' | 'country' | 'min' | 'max' | 'defaultSource' | 'source' | 'group' | 'message' | 'distance' | 'siteType' | 'products' | 'units' | 'duplicatedIndexes' | 'invalidCoordinates';
3
3
  export type validationErrorKeyword = 'required' | 'type' | 'if' | 'then' | 'not';
4
4
  export interface IValidationError {
5
5
  index?: number;
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { SchemaType, JSON as HestiaJson, UploadLimit } from '@hestia-earth/schema';
3
+ import { ErrorKeys as SchemaErrorKeys } from '@hestia-earth/schema-convert';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare enum ErrorKeys {
5
6
  NoData = "no-data",
@@ -9,16 +10,11 @@ export declare enum ErrorKeys {
9
10
  InvalidFirstColumn = "invalid-first-column",
10
11
  DuplicatedHeaders = "duplicated-headers",
11
12
  DuplicatedIds = "duplicated-ids",
12
- DuplicatedIdFields = "duplicated-id-fields",
13
- PropertyInvalidFormat = "property-invalid-format",
14
- PropertyNotFound = "property-not-found",
15
13
  PropertyRequired = "property-required",
16
14
  PropertyInternal = "property-internal",
17
- SchemaNotFound = "schema-not-found",
18
15
  UploadsLimit = "upload-limit",
19
16
  NestedHeaders = "nested-headers",
20
17
  ReferenceExistingHeaders = "reference-existing-headers",
21
- ObjectArrayInvalid = "object-array-invalid",
22
18
  MaxSize = "max-size",
23
19
  MaxRows = "max-rows"
24
20
  }
@@ -30,7 +26,7 @@ interface ICSVColumn extends ICSVHeader {
30
26
  column: string;
31
27
  }
32
28
  export interface IError {
33
- message: ErrorKeys;
29
+ message: SchemaErrorKeys | ErrorKeys;
34
30
  schema?: SchemaType;
35
31
  schemaKey?: string;
36
32
  key?: string;
@@ -49,6 +45,7 @@ export declare class FilesUploadErrorsComponent implements OnInit {
49
45
  error: IError;
50
46
  baseUrl: string;
51
47
  nodeTypes: string[];
48
+ SchemaErrorKeys: typeof SchemaErrorKeys;
52
49
  ErrorKeys: typeof ErrorKeys;
53
50
  UploadLimit: typeof UploadLimit;
54
51
  maxFileSizeMb: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.22.2",
3
+ "version": "0.23.1",
4
4
  "description": "Hestia reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,13 @@
22
22
  "@fortawesome/free-regular-svg-icons": "^6.2.0",
23
23
  "@fortawesome/free-solid-svg-icons": "^6.2.0",
24
24
  "@googlemaps/markerclustererplus": "^1.2.10",
25
- "@hestia-earth/api": ">=0.21.0",
25
+ "@hestia-earth/api": ">=0.22.0",
26
26
  "@hestia-earth/glossary": ">=0.33.0",
27
- "@hestia-earth/json-schema": ">=24.3.0",
28
- "@hestia-earth/schema": ">=24.3.0",
29
- "@hestia-earth/schema-convert": ">=24.3.0",
27
+ "@hestia-earth/json-schema": ">=25.1.0",
28
+ "@hestia-earth/schema": ">=25.1.0",
29
+ "@hestia-earth/schema-convert": ">=25.1.0",
30
30
  "@hestia-earth/ui-framework": ">=4.0.0",
31
- "@hestia-earth/utils": ">=0.11.3",
31
+ "@hestia-earth/utils": ">=0.12.0",
32
32
  "@ng-bootstrap/ng-bootstrap": ">=15.0.0",
33
33
  "@ngrx/component-store": "^16.2.0",
34
34
  "bulma": "^0.9.4",