@integry/sdk 4.6.23 → 4.6.25
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
|
@@ -400,7 +400,35 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
400
400
|
description=${fieldDetails.meta.description_for_users}
|
|
401
401
|
placeholder="${placeholder}"
|
|
402
402
|
isRequired="${fieldDetails.meta.is_required}"
|
|
403
|
-
|
|
403
|
+
isDynamic=${true}
|
|
404
|
+
endpointUrl=${fieldDetails.meta.ui.ui_field?.data_source?.url ||
|
|
405
|
+
''}
|
|
406
|
+
options=${options}
|
|
407
|
+
value=${(objectArray[objectIndex] || {})[fieldName] || ''}
|
|
408
|
+
onChange=${(val: any) =>
|
|
409
|
+
handleFieldChange(
|
|
410
|
+
objectIndex,
|
|
411
|
+
fieldName,
|
|
412
|
+
val,
|
|
413
|
+
fieldDetails.meta.ui.ui_field?.type || 'DYNAMIC_DROPDOWN',
|
|
414
|
+
fieldDetails.meta.machine_name,
|
|
415
|
+
)}
|
|
416
|
+
/>
|
|
417
|
+
`}
|
|
418
|
+
${fieldType === 'STATIC_DROPDOWN' &&
|
|
419
|
+
html`
|
|
420
|
+
<${ListBox}
|
|
421
|
+
key=${fieldName}
|
|
422
|
+
fieldId=${fieldName}
|
|
423
|
+
apiHandler=${apiHandler}
|
|
424
|
+
title=${fieldDetails.meta.title}
|
|
425
|
+
description=${fieldDetails.meta.description_for_users}
|
|
426
|
+
placeholder="${placeholder}"
|
|
427
|
+
isRequired="${fieldDetails.meta.is_required}"
|
|
428
|
+
isDynamic=${false}
|
|
429
|
+
endpointUrl=${JSON.stringify(
|
|
430
|
+
fieldDetails.meta.ui.ui_field?.options,
|
|
431
|
+
) || ''}
|
|
404
432
|
options=${options}
|
|
405
433
|
value=${(objectArray[objectIndex] || {})[fieldName] || ''}
|
|
406
434
|
onChange=${(val: any) =>
|