@evoke-platform/ui-components 1.7.0-dev.12 → 1.7.0-dev.14

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.
@@ -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
  }
@@ -463,12 +463,7 @@ function FormRendererContainer(props) {
463
463
  })();
464
464
  }
465
465
  const isLoading = (instanceId && !formData && !document) || !form || !sanitizedObject;
466
- return !error ? (React.createElement(Box, { sx: {
467
- backgroundColor: '#ffffff',
468
- borderRadius: '6px',
469
- padding: '0px',
470
- border: !isLoading ? '1px solid #dbe0e4' : undefined,
471
- } },
466
+ return !error ? (React.createElement(React.Fragment, null,
472
467
  !isLoading ? (React.createElement(React.Fragment, null,
473
468
  React.createElement(FormRenderer, { onSubmit: saveHandler, hideButtons: document && !hasDocumentUpdateAccess, richTextEditor: richTextEditor, fieldHeight: display?.fieldHeight ?? 'medium', value: formData, stickyFooter: stickyFooter, form: form, instance: dataType !== 'documents' ? instance : document, onChange: onChange, onCancel: onCancel }))) : (React.createElement(Box, { sx: { padding: '20px' } },
474
469
  React.createElement(Box, { display: 'flex', width: '100%', justifyContent: 'space-between' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.7.0-dev.12",
3
+ "version": "1.7.0-dev.14",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",