@evoke-platform/ui-components 1.7.0-testing.6 → 1.7.0-testing.8
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/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.d.ts +2 -2
- package/dist/published/components/custom/Form/FormComponents/FormFieldComponent.js +3 -0
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/Document.d.ts +2 -2
- package/package.json +1 -1
package/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiServices,
|
|
1
|
+
import { ApiServices, DocumentParameterValidation, ObjectInstance, Property } from '@evoke-platform/context';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { SavedDocumentReference } from '../../types';
|
|
4
4
|
type DocumentProps = {
|
|
@@ -10,7 +10,7 @@ type DocumentProps = {
|
|
|
10
10
|
error: boolean;
|
|
11
11
|
apiServices: ApiServices;
|
|
12
12
|
objectId?: string;
|
|
13
|
-
validate?:
|
|
13
|
+
validate?: DocumentParameterValidation;
|
|
14
14
|
value: (File | SavedDocumentReference)[] | undefined;
|
|
15
15
|
onFileRejections: (fileRejectionsErrors: string[]) => void;
|
|
16
16
|
};
|
|
@@ -149,6 +149,9 @@ export class FormFieldComponent extends ReactComponent {
|
|
|
149
149
|
this.setValue(component.defaultValue || false);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
else if (component.type === 'Decimal' || component.type === 'Integer') {
|
|
153
|
+
this.setValue(component.defaultValue);
|
|
154
|
+
}
|
|
152
155
|
this.errorDetails = {};
|
|
153
156
|
this.handleChange = this.handleChange.bind(this);
|
|
154
157
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentParameterValidation } from '@evoke-platform/context';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
import { SavedDocumentReference } from '../../types';
|
|
@@ -8,7 +8,7 @@ type DocumentProps = {
|
|
|
8
8
|
instance?: FieldValues;
|
|
9
9
|
canUpdateProperty: boolean;
|
|
10
10
|
error: boolean;
|
|
11
|
-
validate?:
|
|
11
|
+
validate?: DocumentParameterValidation;
|
|
12
12
|
value: (File | SavedDocumentReference)[] | undefined;
|
|
13
13
|
hasDescription?: boolean;
|
|
14
14
|
};
|