mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 00:16:53 +00:00
* feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): add type editor * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): dnd * feat(frontend): add missing error * feat(frontend): fix build * feat(frontend): fix build * feat(frontend): clean up * feat(frontend): fix layout * feat(frontend): fix dark mode * feat(frontend): Fix Dnd + resource s3 and objects * feat(frontend): handle inner objets * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * fix(frontend): UI nits * fix(frontend): fix type selection * fix(frontend): Correctly handle subproperties * fix(frontend): fix autosize + height * fix(frontend): replace everywhere * fix(frontend): fix dnd * fix(frontend): fix list refresh + height issues * fix(frontend): fix order * fix(frontend): restore default behavior * fix(frontend): Move the rename input * fix(frontend): Fix rename wrt order array * fix(frontend): Fix hub * fix(frontend): Fix renam * fix(frontend): Fix UI Nits + fix SchemaForm order * fix(frontend): Handle nested order * fix(frontend): Fix saving properties * fix(frontend): Improve approval form * feat(frontend): done * feat(frontend): merge main * feat(frontend): done * feat(frontend): wip * feat(frontend): SchemaFormDND * feat(frontend): SchemaFormDND wip * feat(frontend): improve displayWebhookWarning * feat(frontend): DND done * feat(frontend): DND done * feat(frontend): improve name * feat(frontend): improve dnd * feat(frontend): done * first batch * new try * nits * all * drag handle in more places * push everything * migrate all * all * fix * fix * fix henri bug --------- Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
36 lines
952 B
Svelte
36 lines
952 B
Svelte
<script lang="ts">
|
|
import type { Schema } from '$lib/common'
|
|
import { twMerge } from 'tailwind-merge'
|
|
import EditableSchemaForm from '../EditableSchemaForm.svelte'
|
|
import AddProperty from './AddProperty.svelte'
|
|
|
|
export let schema: Schema | undefined | any
|
|
export let offset: number = 0
|
|
export let uiOnly: boolean = false
|
|
export let noPreview: boolean = false
|
|
export let fullHeight: boolean = true
|
|
export let lightweightMode: boolean = false
|
|
|
|
let addProperty: AddProperty | undefined = undefined
|
|
</script>
|
|
|
|
<div class={twMerge(fullHeight ? 'h-full' : 'h-80', 'border overflow-y-auto rounded-md')}>
|
|
<div class="p-4 border-b">
|
|
<AddProperty bind:schema bind:this={addProperty} />
|
|
</div>
|
|
<EditableSchemaForm
|
|
bind:schema
|
|
isFlowInput
|
|
on:edit={(e) => {
|
|
addProperty?.openDrawer(e.detail)
|
|
}}
|
|
on:delete={(e) => {
|
|
addProperty?.handleDeleteArgument([e.detail])
|
|
}}
|
|
{offset}
|
|
{uiOnly}
|
|
{noPreview}
|
|
{lightweightMode}
|
|
/>
|
|
</div>
|