ballerina-core 1.0.62 → 1.0.63
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.
package/package.json
CHANGED
|
@@ -179,7 +179,32 @@ export const FormsConfig = {
|
|
|
179
179
|
const parsedForm: ParsedFormConfig<T> = { name: formName, fields: Map(), tabs: Map(), type: parsedTypes.get(form.type)!, header: RawForm.hasHeader(form) ? form.header : undefined };
|
|
180
180
|
|
|
181
181
|
Object.entries(form.fields).forEach(([fieldName, field]: [fieldName: string, field: any]) =>
|
|
182
|
-
|
|
182
|
+
{
|
|
183
|
+
const fieldType = formType.fields.get(fieldName)!
|
|
184
|
+
if(fieldType.kind == "application" && fieldType.value == "List" ){
|
|
185
|
+
console.debug("parsing field", fieldName, field)
|
|
186
|
+
console.debug('fieldType', formType.fields.get(fieldName)!);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const bwcompatiblefield = fieldType.kind == "application" && fieldType.value == "List" && typeof field.elementRenderer == "string" ? {
|
|
190
|
+
renderer: field.renderer,
|
|
191
|
+
label: field?.label,
|
|
192
|
+
visible: field.visible,
|
|
193
|
+
disabled: field?.disabled,
|
|
194
|
+
elementRenderer: {
|
|
195
|
+
renderer: field.elementRenderer,
|
|
196
|
+
label: field?.elementLabel,
|
|
197
|
+
tooltip: field?.elementTooltip,
|
|
198
|
+
visible: field.visible
|
|
199
|
+
}
|
|
200
|
+
}: field
|
|
201
|
+
|
|
202
|
+
if(fieldType.kind == "application" && fieldType.value == "List" ){
|
|
203
|
+
console.debug('bwcompatiblefield', bwcompatiblefield);
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
return parsedForm.fields = parsedForm.fields.set(fieldName, ParsedRenderer.Operations.ParseRenderer(fieldType, bwcompatiblefield, parsedTypes))
|
|
207
|
+
}
|
|
183
208
|
)
|
|
184
209
|
|
|
185
210
|
let tabs: FormLayout = OrderedMap()
|