@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.
@@ -1,4 +1,4 @@
1
- import { ApiServices, DocumentValidation, ObjectInstance, Property } from '@evoke-platform/context';
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?: DocumentValidation;
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 { DocumentValidation } from '@evoke-platform/context';
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?: DocumentValidation;
11
+ validate?: DocumentParameterValidation;
12
12
  value: (File | SavedDocumentReference)[] | undefined;
13
13
  hasDescription?: boolean;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.7.0-testing.6",
3
+ "version": "1.7.0-testing.8",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",