-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMock.ts
190 lines (187 loc) · 6.6 KB
/
Mock.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
import { observe } from "react-observing";
import { IProperty, TypeOfValues, newEmptyProperty } from "properties-editor/src";
export const PROPERTIES: IProperty[] = [
newEmptyProperty({
id: observe('10'),
name: observe('Hidden'),
type: observe(TypeOfValues.hidden),
value: observe('My name to hidden'),
information: observe('Hidden, used just for show some information'),
}),
newEmptyProperty({
id: observe('11'),
name: observe('View only'),
type: observe(TypeOfValues.viewOnly),
value: observe('My name to view only'),
information: observe('View only, used just for show some information'),
}),
newEmptyProperty({
value: observe('name'),
id: observe('12'),
group: observe('Simple'),
name: observe('Simple string'),
type: observe(TypeOfValues.string),
information: observe('Input simple string, allow you type any string'),
}),
newEmptyProperty({
value: observe('name'),
id: observe('121'),
group: observe('Simple'),
name: observe('Simple string with suggestions'),
type: observe(TypeOfValues.stringWithSuggestions),
information: observe('Input simple string with suggestions, allow you type any string'),
}),
newEmptyProperty({
id: observe('13'),
value: observe(false),
name: observe('Boolean'),
group: observe('Simple'),
type: observe(TypeOfValues.boolean),
information: observe('Input switch, allow you toggle between true or false'),
}),
newEmptyProperty({
id: observe('14.1'),
value: observe(0),
name: observe('Number'),
group: observe('Simple'),
type: observe(TypeOfValues.number),
information: observe('Input simple number, allow you type any number'),
}),
newEmptyProperty({
id: observe('14'),
value: observe('#fff000'),
name: observe('Color'),
group: observe('Simple'),
type: observe(TypeOfValues.colorPicker),
information: observe('Input color picker, allow you select a hex color'),
}),
newEmptyProperty({
id: observe('15'),
value: observe(null),
name: observe('Binary'),
group: observe('Simple'),
type: observe(TypeOfValues.binary),
typeOfFilesToAccept: observe(['.png', '.jpg']),
information: observe('Input binary, allow you import your files from your device'),
}),
newEmptyProperty({
id: observe('16'),
group: observe('Simple'),
name: observe('Big string'),
value: observe('My big string'),
type: observe(TypeOfValues.bigString),
information: observe('Input big string, allow you write a big string with many lines'),
}),
newEmptyProperty({
id: observe('17'),
group: observe('Simple'),
value: observe('My full big string'),
type: observe(TypeOfValues.fullBigString),
information: observe('Input big string, allow you write a big string with many lines and not show the input label'),
}),
newEmptyProperty({
value: observe('subName'),
id: observe('18'),
name: observe('Combo'),
group: observe('Simple'),
type: observe(TypeOfValues.selection),
information: observe('Input selection, allow you select one of suggestions'),
}),
newEmptyProperty({
id: observe('19'),
value: observe(true),
group: observe('Simple'),
name: observe('Combo Yes/No'),
type: observe(TypeOfValues.yesNoSelection),
information: observe('Input selection yes/no, allow you toggle between "yes" and "no". The output is boolean'),
}),
newEmptyProperty({
id: observe('20'),
group: observe('Advanced'),
name: observe('Classes'),
value: observe(['teste1', 'teste2']),
type: observe(TypeOfValues.inputMultiTags),
information: observe('Input expression, allow you type expressions and conditions'),
}),
newEmptyProperty({
id: observe('21'),
group: observe('Advanced'),
name: observe('Expression'),
value: observe('tesstetes'),
type: observe(TypeOfValues.expression),
information: observe('Input expression, allow you type expressions and conditions'),
}),
newEmptyProperty({
id: observe('22'),
group: observe('Advanced'),
value: observe('tesstetes'),
name: observe('Expression suggests'),
type: observe(TypeOfValues.expression),
information: observe('Input expression, allow you type expressions and conditions and suggestion'),
}),
newEmptyProperty({
id: observe('23'),
name: observe('Name'),
value: observe('My name'),
group: observe('Advanced'),
propertyType: observe('name'),
editNameDisabled: observe(false),
editValueDisabled: observe(false),
type: observe(TypeOfValues.assign),
information: observe('Minha infromação de teste'),
}),
newEmptyProperty({
id: observe('24'),
name: observe('Name'),
value: observe([]),
group: observe('Advanced'),
propertyType: observe('name'),
editNameDisabled: observe(false),
editValueDisabled: observe(false),
type: observe(TypeOfValues.multiAssign),
information: observe('Minha infromação de teste'),
}),
newEmptyProperty({
id: observe('25'),
name: observe('Name'),
group: observe('Advanced'),
propertyType: observe('name'),
editNameDisabled: observe(false),
editValueDisabled: observe(false),
type: observe(TypeOfValues.recursive),
information: observe('This is a recursive render'),
value: observe([
newEmptyProperty({
id: observe('11'),
name: observe('View only'),
type: observe(TypeOfValues.viewOnly),
value: observe('My name to view only'),
information: observe('View only, used just for show some information'),
}),
newEmptyProperty({
value: observe('name'),
id: observe('12'),
group: observe('Simple'),
name: observe('Simple string'),
type: observe(TypeOfValues.string),
information: observe('Input simple string, allow you type any string'),
}),
newEmptyProperty({
value: observe('name'),
id: observe('121'),
group: observe('Simple'),
name: observe('Simple string with suggestions'),
type: observe(TypeOfValues.stringWithSuggestions),
information: observe('Input simple string with suggestions, allow you type any string'),
}),
newEmptyProperty({
id: observe('13'),
value: observe(false),
name: observe('Boolean'),
group: observe('Simple'),
type: observe(TypeOfValues.boolean),
information: observe('Input switch, allow you toggle between true or false'),
}),
]),
}),
];