@hestia-earth/ui-components 0.14.0 → 0.14.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/data-table/data-table.component.d.ts +3 -3
- package/common/utils.d.ts +11 -0
- package/esm2020/common/data-table/data-table.component.mjs +9 -10
- package/esm2020/common/utils.mjs +8 -1
- package/esm2020/cycles/cycles-activity/cycles-activity.component.mjs +1 -1
- package/esm2020/cycles/cycles-completeness/cycles-completeness.component.mjs +1 -1
- package/esm2020/cycles/cycles-emissions/cycles-emissions.component.mjs +1 -1
- package/esm2020/cycles/cycles-practices/cycles-practices.component.mjs +1 -1
- package/esm2020/files/files-error-summary.model.mjs +4 -3
- package/esm2020/files/files-error.model.mjs +34 -32
- package/esm2020/files/files-form/files-form.component.mjs +3 -3
- package/esm2020/files/files-form.model.mjs +17 -4
- package/esm2020/impact-assessments/impact-assessments-products/impact-assessments-products.component.mjs +1 -1
- package/esm2020/node/node-csv-export-confirm/node-csv-export-confirm.component.mjs +1 -1
- package/esm2020/node/node-logs-models/node-logs-models.component.mjs +1 -1
- package/esm2020/sites/sites-measurements/sites-measurements.component.mjs +1 -1
- package/fesm2015/hestia-earth-ui-components.mjs +70 -46
- package/fesm2015/hestia-earth-ui-components.mjs.map +1 -1
- package/fesm2020/hestia-earth-ui-components.mjs +72 -51
- package/fesm2020/hestia-earth-ui-components.mjs.map +1 -1
- package/files/files-error.model.d.ts +3 -10
- package/package.json +1 -1
- package/styles.scss +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type validationErrorLevel = 'error' | 'warning';
|
|
2
|
-
export declare type validationErrorParam = 'missingProperty' | 'type' | 'term' | 'model' | 'product' | 'range' | 'node' | 'allowedValues' | 'additionalProperty' | 'expected' | 'default' | 'current' | 'percentage' | 'keys' | 'threshold' | 'outliers' | 'country' | 'min' | 'max' | 'defaultSource' | 'group';
|
|
2
|
+
export declare type validationErrorParam = 'missingProperty' | 'type' | 'term' | 'model' | 'product' | 'range' | 'node' | 'allowedValues' | 'additionalProperty' | 'expected' | 'default' | 'current' | 'percentage' | 'keys' | 'threshold' | 'outliers' | 'country' | 'min' | 'max' | 'defaultSource' | 'group' | 'message';
|
|
3
3
|
export declare type validationErrorKeyword = 'required' | 'type' | 'if' | 'then';
|
|
4
4
|
export interface IValidationError {
|
|
5
5
|
index?: number;
|
|
@@ -23,15 +23,8 @@ export declare const parseDataPath: (dataPath?: string) => {
|
|
|
23
23
|
path: string;
|
|
24
24
|
label: string;
|
|
25
25
|
}[];
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
"@id": any;
|
|
29
|
-
name: any;
|
|
30
|
-
}) => string;
|
|
31
|
-
export declare const code: (text: string | number | boolean) => string;
|
|
32
|
-
export declare const missingNodeErrorMessage: ({ "@type": _t, type, name }: any) => string;
|
|
33
|
-
export declare const formatCustomErrorMessage: (message?: string, error?: IValidationError, errorCount?: number) => string;
|
|
34
|
-
export declare const formatError: (error?: IValidationError, errorCount?: number) => IValidationError | undefined;
|
|
26
|
+
export declare const formatCustomErrorMessage: (message?: string, error?: IValidationError, allErrors?: IValidationError[]) => string;
|
|
27
|
+
export declare const formatError: (error?: IValidationError, allErrors?: IValidationError[]) => IValidationError | undefined;
|
|
35
28
|
export declare const errorHasError: (error?: IValidationError) => boolean;
|
|
36
29
|
export declare const errorHasWarning: (error?: IValidationError) => boolean;
|
|
37
30
|
export declare const isMissingPropertyError: ({ params }: IValidationError) => boolean;
|
package/package.json
CHANGED