Added back in binding icon positioning override for JSON field
This commit is contained in:
parent
16061765ee
commit
fdbf1b3469
|
@ -234,36 +234,8 @@
|
||||||
{#each schemaFields || [] as [field, schema]}
|
{#each schemaFields || [] as [field, schema]}
|
||||||
{#if !schema.autocolumn && Object.hasOwn(editableFields, field)}
|
{#if !schema.autocolumn && Object.hasOwn(editableFields, field)}
|
||||||
<PropField label={field} fullWidth={isFullWidth(schema.type)}>
|
<PropField label={field} fullWidth={isFullWidth(schema.type)}>
|
||||||
{#if isTestModal}
|
<div class="prop-control-wrap">
|
||||||
<RowSelectorTypes
|
{#if isTestModal}
|
||||||
{isTestModal}
|
|
||||||
{field}
|
|
||||||
{schema}
|
|
||||||
bindings={parsedBindings}
|
|
||||||
value={editableRow}
|
|
||||||
meta={{
|
|
||||||
fields: editableFields,
|
|
||||||
}}
|
|
||||||
{onChange}
|
|
||||||
/>
|
|
||||||
{:else}
|
|
||||||
<DrawerBindableSlot
|
|
||||||
title={$memoStore?.row?.title || field}
|
|
||||||
panel={AutomationBindingPanel}
|
|
||||||
type={schema.type}
|
|
||||||
{schema}
|
|
||||||
value={editableRow[field]}
|
|
||||||
on:change={e =>
|
|
||||||
onChange({
|
|
||||||
row: {
|
|
||||||
[field]: e.detail,
|
|
||||||
},
|
|
||||||
})}
|
|
||||||
{bindings}
|
|
||||||
allowJS={true}
|
|
||||||
updateOnChange={false}
|
|
||||||
drawerLeft="260px"
|
|
||||||
>
|
|
||||||
<RowSelectorTypes
|
<RowSelectorTypes
|
||||||
{isTestModal}
|
{isTestModal}
|
||||||
{field}
|
{field}
|
||||||
|
@ -273,10 +245,40 @@
|
||||||
meta={{
|
meta={{
|
||||||
fields: editableFields,
|
fields: editableFields,
|
||||||
}}
|
}}
|
||||||
onChange={change => onChange(change)}
|
{onChange}
|
||||||
/>
|
/>
|
||||||
</DrawerBindableSlot>
|
{:else}
|
||||||
{/if}
|
<DrawerBindableSlot
|
||||||
|
title={$memoStore?.row?.title || field}
|
||||||
|
panel={AutomationBindingPanel}
|
||||||
|
type={schema.type}
|
||||||
|
{schema}
|
||||||
|
value={editableRow[field]}
|
||||||
|
on:change={e =>
|
||||||
|
onChange({
|
||||||
|
row: {
|
||||||
|
[field]: e.detail,
|
||||||
|
},
|
||||||
|
})}
|
||||||
|
{bindings}
|
||||||
|
allowJS={true}
|
||||||
|
updateOnChange={false}
|
||||||
|
drawerLeft="260px"
|
||||||
|
>
|
||||||
|
<RowSelectorTypes
|
||||||
|
{isTestModal}
|
||||||
|
{field}
|
||||||
|
{schema}
|
||||||
|
bindings={parsedBindings}
|
||||||
|
value={editableRow}
|
||||||
|
meta={{
|
||||||
|
fields: editableFields,
|
||||||
|
}}
|
||||||
|
onChange={change => onChange(change)}
|
||||||
|
/>
|
||||||
|
</DrawerBindableSlot>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</PropField>
|
</PropField>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
|
|
Loading…
Reference in New Issue