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
[
  {
    sort: 1,
    label: 'Pasta Name',
    description: '',
    validate: {
      required: true,
      immutable: false
    },
    jsonKey: 'name',
    uiType: 'Input',
    icon: '',
    level: 0,
    placeholder: ''
  },
  {
    sort: 10001,
    label: 'Pasta_type',
    description: '',
    validate: {
      required: true,
      immutable: false
    },
    jsonKey: 'pasta_type',
    uiType: 'Group',
    icon: '',
    level: 0,
    placeholder: '',
    subParameters: [
      {
        sort: 1,
        label: 'Sauce',
        description: '',
        validate: {
          required: true,
          options: [
            {
              label: 'Red',
              value: 'Red',
              description: '',
              icon: ''
            },
            {
              label: 'White',
              value: 'White',
              description: '',
              icon: ''
            },
            {
              label: 'Pesto',
              value: 'Pesto',
              description: '',
              icon: ''
            }
          ],
          defaultValue: 'Red',
          immutable: false
        },
        jsonKey: 'sauce',
        uiType: 'Select',
        icon: '',
        level: 1,
        placeholder: ''
      },
      {
        sort: 3,
        label: 'Topping_type',
        description: '',
        validate: {
          required: true,
          options: [
            {
              label: 'Veg',
              value: 'Veg',
              description: '',
              icon: ''
            },
            {
              label: 'Mushroom',
              value: 'Mushroom',
              description: '',
              icon: ''
            },
            {
              label: 'Chicken',
              value: 'Chicken',
              description: '',
              icon: ''
            },
            {
              label: 'Prawns',
              value: 'Prawns',
              description: '',
              icon: ''
            }
          ],
          defaultValue: 'Veg',
          immutable: false
        },
        jsonKey: 'topping_type',
        uiType: 'Select',
        icon: '',
        level: 1,
        placeholder: ''
      },
      {
        sort: 5,
        label: 'Cheese',
        description: '',
        validate: {
          options: [
            {
              label: 'Cheddar',
              value: 'Cheddar',
              description: '',
              icon: ''
            },
            {
              label: 'Mozzarella',
              value: 'Mozzarella',
              description: '',
              icon: ''
            },
            {
              label: 'Parmesan',
              value: 'Parmesan',
              description: '',
              icon: ''
            },
            {
              label: 'Feta',
              value: 'Feta',
              description: '',
              icon: ''
            },
            {
              label: 'Gouda',
              value: 'Gouda',
              description: '',
              icon: ''
            }
          ],
          defaultValue: 'Cheddar',
          immutable: false
        },
        jsonKey: 'cheese',
        uiType: 'Select',
        icon: '',
        level: 1,
        placeholder: ''
      }
    ]
  },
  {
    sort: 10002,
    label: 'Portion',
    description: '',
    validate: {
      options: [
        {
          label: 'Medium',
          value: 'Medium',
          description: '',
          icon: ''
        },
        {
          label: 'Small',
          value: 'Small',
          description: '',
          icon: ''
        },
        {
          label: 'Large',
          value: 'Large',
          description: '',
          icon: ''
        }
      ],
      defaultValue: 'Medium',
      immutable: false
    },
    jsonKey: 'portion',
    uiType: 'Select',
    icon: '',
    level: 0,
    placeholder: ''
  }
]