Files
windmill/frontend/src/lib/components/prop_picker.ts
T
GuilhemandRuben Fiszel bbcbb01953 feat(frontend): nodes from flow can be connected directly in expr input through a plug icon (#4652)
* Add flow prop picker

* fix unwanted copy

* cleaning

* Fix unset context

* move button and always display input

* fix unwanted proppicker display

* update

* update

* clean all

* clean all

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-11-07 15:53:37 +01:00

16 lines
483 B
TypeScript

import type { Writable } from 'svelte/store'
import type { PickableProperties } from '$lib/components/flows/previousResults'
type InsertionMode = 'append' | 'connect' | 'insert'
export type FlowPropPickerConfig = {
insertionMode: InsertionMode
clearFocus: () => void
onSelect: (path: string) => boolean
}
export type PropPickerContext = {
flowPropPickerConfig: Writable<FlowPropPickerConfig | undefined>
pickablePropertiesFiltered: Writable<PickableProperties | undefined>
}