@hestia-earth/ui-components 0.23.0 → 0.23.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.
- package/common/utils.d.ts +1 -0
- package/engine/engine-models-version-link/engine-models-version-link.component.d.ts +2 -1
- package/esm2022/common/utils.mjs +8 -1
- package/esm2022/cycles/cycles-activity/cycles-activity.component.mjs +4 -4
- package/esm2022/cycles/cycles-completeness/cycles-completeness.component.mjs +4 -4
- package/esm2022/cycles/cycles-emissions/cycles-emissions.component.mjs +4 -4
- package/esm2022/cycles/cycles-practices/cycles-practices.component.mjs +4 -4
- package/esm2022/engine/engine-models-version-link/engine-models-version-link.component.mjs +6 -3
- package/esm2022/engine/engine-orchestrator-edit/engine-orchestrator-edit.component.mjs +2 -2
- package/esm2022/files/files-error.model.mjs +11 -10
- package/esm2022/files/files-form/files-form.component.mjs +3 -12
- package/esm2022/files/files-upload-errors/files-upload-errors.component.mjs +6 -10
- package/esm2022/impact-assessments/impact-assessments-products/impact-assessments-products.component.mjs +5 -3
- package/esm2022/node/node-csv-select-headers/node-csv-select-headers.component.mjs +2 -2
- package/esm2022/node/node-logs-models/node-logs-models.component.mjs +6 -5
- package/esm2022/select/select.component.mjs +2 -2
- package/esm2022/sites/sites-measurements/sites-measurements.component.mjs +4 -4
- package/fesm2022/hestia-earth-ui-components.mjs +58 -57
- package/fesm2022/hestia-earth-ui-components.mjs.map +1 -1
- package/files/files-form/files-form.component.d.ts +1 -1
- package/files/files-upload-errors/files-upload-errors.component.d.ts +3 -6
- package/node/node-logs-models/node-logs-models.component.d.ts +1 -0
- package/package.json +4 -4
|
@@ -38,6 +38,7 @@ export declare class FilesFormComponent implements OnInit {
|
|
|
38
38
|
isOpen: boolean;
|
|
39
39
|
mapVisible: boolean;
|
|
40
40
|
formatPropertyError: (errors: any, property: INodeProperty) => string;
|
|
41
|
+
typeaheadFocus: (e: Event) => void;
|
|
41
42
|
mapDrawingProperty?: INodeProperty;
|
|
42
43
|
bibliographiesSearchProperty?: INodeProperty;
|
|
43
44
|
nodeProperty?: INodeProperty;
|
|
@@ -62,7 +63,6 @@ export declare class FilesFormComponent implements OnInit {
|
|
|
62
63
|
addError(property: INodeProperty, { message, level }: IErrorProperty): void;
|
|
63
64
|
editError(property: INodeProperty): void;
|
|
64
65
|
resolveError(property: INodeProperty): void;
|
|
65
|
-
typeaheadFocus(e: Event): void;
|
|
66
66
|
addPropertyEnabled(property: INodeProperty): boolean;
|
|
67
67
|
private newProperties;
|
|
68
68
|
private replacePropertyData;
|
|
@@ -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;
|
|
@@ -60,6 +60,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
60
60
|
term?: string;
|
|
61
61
|
allTerms: (Term | ITermJSONLD)[];
|
|
62
62
|
suggestTerm: (text$: Observable<string>) => Observable<string[]>;
|
|
63
|
+
typeaheadFocus: (e: Event) => void;
|
|
63
64
|
constructor(nodeService: HeNodeService, searchService: HeSearchService, engineService: HeEngineService);
|
|
64
65
|
ngOnInit(): Promise<void>;
|
|
65
66
|
private getLogs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/ui-components",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Hestia reusable components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@googlemaps/markerclustererplus": "^1.2.10",
|
|
25
25
|
"@hestia-earth/api": ">=0.22.0",
|
|
26
26
|
"@hestia-earth/glossary": ">=0.33.0",
|
|
27
|
-
"@hestia-earth/json-schema": ">=25.
|
|
28
|
-
"@hestia-earth/schema": ">=25.
|
|
29
|
-
"@hestia-earth/schema-convert": ">=25.
|
|
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
31
|
"@hestia-earth/utils": ">=0.12.0",
|
|
32
32
|
"@ng-bootstrap/ng-bootstrap": ">=15.0.0",
|