|
@@ -7,14 +7,14 @@ import { ValueTransformer } from './../dynaform/interfaces';
|
|
|
|
|
|
const basicTextField = {
|
|
const basicTextField = {
|
|
name: 'basicTextField',
|
|
name: 'basicTextField',
|
|
- type: 'text',
|
|
|
|
|
|
+ type: 'Text',
|
|
label: 'Field One',
|
|
label: 'Field One',
|
|
placeholder: 'Type a value here'
|
|
placeholder: 'Type a value here'
|
|
};
|
|
};
|
|
|
|
|
|
const styledTextField = {
|
|
const styledTextField = {
|
|
name: 'styledTextField',
|
|
name: 'styledTextField',
|
|
- type: 'text',
|
|
|
|
|
|
+ type: 'Text',
|
|
placeholder: 'With a DOM id and CSS classes applied',
|
|
placeholder: 'With a DOM id and CSS classes applied',
|
|
class: ['red', 'bgPaleBlue'],
|
|
class: ['red', 'bgPaleBlue'],
|
|
id: 'yoyo'
|
|
id: 'yoyo'
|
|
@@ -22,19 +22,19 @@ const styledTextField = {
|
|
|
|
|
|
const textareaField = {
|
|
const textareaField = {
|
|
name: 'textareaField',
|
|
name: 'textareaField',
|
|
- type: 'textarea',
|
|
|
|
|
|
+ type: 'Textarea',
|
|
placeholder: 'Type your long-winded comments here'
|
|
placeholder: 'Type your long-winded comments here'
|
|
};
|
|
};
|
|
|
|
|
|
const passwordField = {
|
|
const passwordField = {
|
|
name: 'passwordField',
|
|
name: 'passwordField',
|
|
- type: 'password',
|
|
|
|
|
|
+ type: 'Password',
|
|
placeholder: 'It\'s a secret'
|
|
placeholder: 'It\'s a secret'
|
|
};
|
|
};
|
|
|
|
|
|
const selectField = {
|
|
const selectField = {
|
|
name: 'selectField',
|
|
name: 'selectField',
|
|
- type: 'select',
|
|
|
|
|
|
+ type: 'Select',
|
|
options: ['', 'Apples', 'Oranges', 'Pears', 'Gorgonzola']
|
|
options: ['', 'Apples', 'Oranges', 'Pears', 'Gorgonzola']
|
|
};
|
|
};
|
|
|
|
|
|
@@ -46,7 +46,7 @@ const radioField = {
|
|
|
|
|
|
const disabledTextField = {
|
|
const disabledTextField = {
|
|
name: 'disabledTextField',
|
|
name: 'disabledTextField',
|
|
- type: 'text',
|
|
|
|
|
|
+ type: 'Text',
|
|
placeholder: 'You can\'t touch this',
|
|
placeholder: 'You can\'t touch this',
|
|
isDisabled: true
|
|
isDisabled: true
|
|
};
|
|
};
|
|
@@ -154,7 +154,7 @@ const container = {
|
|
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
-const metadata = {
|
|
|
|
|
|
+const meta = {
|
|
basicTextField,
|
|
basicTextField,
|
|
styledTextField,
|
|
styledTextField,
|
|
textareaField,
|
|
textareaField,
|
|
@@ -171,6 +171,4 @@ const metadata = {
|
|
container
|
|
container
|
|
};
|
|
};
|
|
|
|
|
|
-export const formMetaDataObj = metadata;
|
|
|
|
-
|
|
|
|
-console.log(formMetaDataObj);
|
|
|
|
|
|
+export { meta };
|