@integry/sdk 4.6.70 → 4.6.72
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
|
@@ -422,33 +422,32 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
422
422
|
''}
|
|
423
423
|
/>
|
|
424
424
|
`}
|
|
425
|
-
${fieldType === 'STATIC_DROPDOWN' ||
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
`)}
|
|
425
|
+
${(fieldType === 'STATIC_DROPDOWN' || fieldType === 'CHECKBOX') &&
|
|
426
|
+
html`
|
|
427
|
+
<${ListBox}
|
|
428
|
+
key=${`${fieldName}_${objectIndex}`}
|
|
429
|
+
fieldId=${`${fieldName}_${objectIndex}`}
|
|
430
|
+
apiHandler=${apiHandler}
|
|
431
|
+
title=${fieldDetails.meta.title}
|
|
432
|
+
description=${fieldDetails.meta.description_for_users}
|
|
433
|
+
placeholder="${placeholder}"
|
|
434
|
+
isRequired="${fieldDetails.meta.is_required}"
|
|
435
|
+
isDynamic=${false}
|
|
436
|
+
isDisabled=${isDisabled}
|
|
437
|
+
endpointUrl=${JSON.stringify(options) || ''}
|
|
438
|
+
options=${options}
|
|
439
|
+
type=${fieldType}
|
|
440
|
+
value=${(objectArray[objectIndex] || {})[fieldName] || ''}
|
|
441
|
+
onChange=${(val: any) =>
|
|
442
|
+
handleFieldChange(
|
|
443
|
+
objectIndex,
|
|
444
|
+
fieldName,
|
|
445
|
+
val,
|
|
446
|
+
fieldDetails.meta.ui.ui_field?.type || 'DYNAMIC_DROPDOWN',
|
|
447
|
+
fieldDetails.meta.machine_name,
|
|
448
|
+
)}
|
|
449
|
+
/>
|
|
450
|
+
`}
|
|
452
451
|
<//>
|
|
453
452
|
</div>
|
|
454
453
|
`;
|
|
@@ -366,8 +366,13 @@ class FunctionForm extends Component<
|
|
|
366
366
|
} else {
|
|
367
367
|
newState[parentFieldId][fieldId] = value;
|
|
368
368
|
}
|
|
369
|
+
} else if (
|
|
370
|
+
stopChangePropagation &&
|
|
371
|
+
dataType === 'array' &&
|
|
372
|
+
!Array.isArray(value)
|
|
373
|
+
) {
|
|
374
|
+
newState[fieldId] = JSON.stringify([value]);
|
|
369
375
|
} else {
|
|
370
|
-
// If parentFieldId is empty, add the fieldId and value directly
|
|
371
376
|
newState[fieldId] = value;
|
|
372
377
|
}
|
|
373
378
|
|