Skip to content

Commit 1e0234c

Browse files
authored
Merge pull request #1031 from rvsia/returnFormEditor
Return live editor page
2 parents c640337 + 1fdece7 commit 1e0234c

File tree

4 files changed

+366
-118
lines changed

4 files changed

+366
-118
lines changed

packages/react-renderer-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@babel/plugin-proposal-class-properties": "^7.12.1",
24-
"@data-driven-forms/form-builder": "0.0.10-rc6",
24+
"@data-driven-forms/form-builder": "0.0.11-rc3",
2525
"@data-driven-forms/mui-component-mapper": "*",
2626
"@data-driven-forms/react-form-renderer": "*",
2727
"@material-ui/core": "^4.11.0",
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
export const LABEL = {
2+
propertyName: 'label',
3+
label: 'Label',
4+
component: 'input'
5+
};
6+
7+
export const HELPER_TEXT = {
8+
propertyName: 'helperText',
9+
label: 'Helper text',
10+
component: 'input'
11+
};
12+
13+
export const PLACEHOLDER = {
14+
propertyName: 'placeholder',
15+
label: 'Placeholder',
16+
component: 'input'
17+
};
18+
19+
export const INPUT_TYPE = {
20+
label: 'Input Type',
21+
propertyName: 'type',
22+
options: ['text', 'number', 'password'],
23+
component: 'select'
24+
};
25+
26+
export const IS_DISABLED = {
27+
propertyName: 'isDisabled',
28+
label: 'Disabled',
29+
component: 'switch'
30+
};
31+
32+
export const IS_READ_ONLY = {
33+
propertyName: 'isReadOnly',
34+
label: 'Read only',
35+
component: 'switch'
36+
};
37+
38+
export const OPTIONS = {
39+
propertyName: 'options',
40+
label: 'Options',
41+
component: 'options'
42+
};
43+
44+
export const IS_CLEARABLE = {
45+
propertyName: 'isClearable',
46+
label: 'Clearable',
47+
component: 'switch'
48+
};
49+
50+
export const CLOSE_ON_DAY_SELECT = {
51+
propertyName: 'closeOnDaySelect',
52+
label: 'Close on day select',
53+
component: 'switch'
54+
};
55+
56+
export const SHOW_TODAY_BUTTON = {
57+
propertyName: 'showTodayButton',
58+
label: 'Show today button',
59+
component: 'switch'
60+
};
61+
62+
export const TODAY_BUTTON_LABEL = {
63+
propertyName: 'todayButtonLabel',
64+
label: 'Today button label',
65+
component: 'input'
66+
};
67+
68+
export const MULTI_LINE_LABEL = {
69+
propertyName: 'label',
70+
label: 'Label',
71+
component: 'textarea'
72+
};
73+
74+
export const TITLE = {
75+
propertyName: 'title',
76+
label: 'Title',
77+
component: 'input'
78+
};
79+
80+
export const DESCRIPTION = {
81+
propertyName: 'description',
82+
label: 'Description',
83+
component: 'input'
84+
};
85+
86+
export const HIDE_FIELD = {
87+
propertyName: 'hideField',
88+
label: 'Hidden',
89+
component: 'switch'
90+
};
91+
92+
export const LEFT_TITLE = {
93+
propertyName: 'leftTitle',
94+
label: 'Left title',
95+
component: 'input'
96+
};
97+
98+
export const RIGHT_TITLE = {
99+
propertyName: 'rightTitle',
100+
label: 'Right title',
101+
component: 'input'
102+
};
103+
104+
export const MOVE_LEFT_TITLE = {
105+
propertyName: 'moveLeftTitle',
106+
label: 'Move left button title',
107+
component: 'input'
108+
};
109+
110+
export const MOVE_RIGHT_TITLE = {
111+
propertyName: 'moveRightTitle',
112+
label: 'Move right button title',
113+
component: 'input'
114+
};
115+
116+
export const MOVE_ALL_LEFT_TITLE = {
117+
propertyName: 'moveAllLeftTitle',
118+
label: 'Move all left button title',
119+
component: 'input'
120+
};
121+
122+
export const MOVE_ALL_RIGHT_TITLE = {
123+
propertyName: 'moveAllRightTitle',
124+
label: 'Move alll right button title',
125+
component: 'input'
126+
};
127+
128+
export const ALL_TO_LEFT = {
129+
propertyName: 'allToLeft',
130+
label: 'Allow to move all to left',
131+
component: 'switch'
132+
};
133+
134+
export const ALL_TO_RIGHT = {
135+
propertyName: 'allToRight',
136+
label: 'Allow to move all to right',
137+
component: 'switch'
138+
};
139+
140+
export const NO_VALUE_TITLE = {
141+
propertyName: 'noValueTitle',
142+
label: 'Placeholder for empty value',
143+
component: 'input'
144+
};
145+
146+
export const NO_OPTIONS_TITLE = {
147+
propertyName: 'noOptionsTitle',
148+
label: 'Placeholder for empty options',
149+
component: 'input'
150+
};
151+
152+
export const FILTER_OPTIONS_TITLE = {
153+
propertyName: 'filterOptionsTitle',
154+
label: 'Placeholder for options filter input',
155+
component: 'input'
156+
};
157+
158+
export const FILTER_VALUE_TITLE = {
159+
propertyName: 'filterValueTitle',
160+
label: 'Placeholder for value filter input',
161+
component: 'input'
162+
};
163+
164+
export const FILTER_VALUE_TEXT = {
165+
propertyName: 'filterValueText',
166+
label: 'Placeholder for value when there is no filtered value',
167+
component: 'input'
168+
};
169+
170+
export const FILTER_OPTIONS_TEXT = {
171+
propertyName: 'filterOptionsText',
172+
label: 'Placeholder for options when there is no filtered option',
173+
component: 'input'
174+
};
175+
176+
export const CHECKBOX_VARIANT = {
177+
propertyName: 'checkboxVariant',
178+
label: 'Checkbox variant',
179+
component: 'switch'
180+
};
181+
182+
export const MIN = {
183+
propertyName: 'min',
184+
label: 'Minimum of range',
185+
component: 'input'
186+
};
187+
188+
export const MAX = {
189+
propertyName: 'max',
190+
label: 'Maximum of range',
191+
component: 'input'
192+
};
193+
194+
export const STEP = {
195+
propertyName: 'step',
196+
label: 'Step size',
197+
component: 'input'
198+
};

0 commit comments

Comments
 (0)