mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 08:02:43 +00:00
Add shadow en transition when selecting input
This commit is contained in:
@@ -870,9 +870,9 @@
|
||||
'w-full',
|
||||
valid
|
||||
? ''
|
||||
: 'border border-red-700 border-opacity-30 focus:border-red-700 focus:border-opacity-3'
|
||||
: 'border border-red-700 border-opacity-30 focus:border-red-700 focus:border-opacity-3'
|
||||
)}
|
||||
placeholder={placeholder ?? defaultValue ?? ''}
|
||||
placeholder="blabla"
|
||||
bind:value
|
||||
/>
|
||||
{/key}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import type { FlowCopilotContext } from './copilot/flow'
|
||||
import StepInputGen from './copilot/StepInputGen.svelte'
|
||||
import type { PickableProperties } from './flows/previousResults'
|
||||
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
export let schema: Schema | { properties?: Record<string, any>; required?: string[] }
|
||||
export let arg: InputTransform | any
|
||||
export let argName: string
|
||||
@@ -189,7 +189,15 @@
|
||||
</script>
|
||||
|
||||
{#if arg != undefined}
|
||||
<div class={$$props.class}>
|
||||
<div
|
||||
class={twMerge(
|
||||
'p-2 ml-2 relative hover:bg-surface hover:shadow-[0_0_10px_5px_rgba(0,0,0,0.1)] transition-all duration-200',
|
||||
$propPickerConfig?.propName == argName
|
||||
? 'bg-surface rounded-l-md shadow-[0_0_10px_5px_rgba(0,0,0,0.1)] z-2000'
|
||||
: 'hover:rounded-md',
|
||||
$$props.class
|
||||
)}
|
||||
>
|
||||
<div class="flex flex-row justify-between gap-1 pb-1">
|
||||
<div class="flex flex-wrap grow">
|
||||
<FieldHeader
|
||||
@@ -344,12 +352,7 @@
|
||||
|
||||
<div class="max-w-xs" />
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="relative {$propPickerConfig?.propName == argName
|
||||
? 'outline outline-offset-1 outline-1 outline-blue-500 rounded-md'
|
||||
: ''}"
|
||||
on:keyup={stepInputGen?.onKeyUp}
|
||||
>
|
||||
<div class="relative p-2" on:keyup={stepInputGen?.onKeyUp}>
|
||||
{#if $propPickerConfig?.propName == argName && $propPickerConfig?.insertionMode == 'connect'}
|
||||
<span
|
||||
class={'text-white z-50 px-1 text-2xs py-0.5 font-bold rounded-t-sm w-fit absolute top-0 right-0 bg-blue-500'}
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
{#if keys.length > 0}
|
||||
{#each keys as argName (argName)}
|
||||
{#if (!filter || filter.includes(argName)) && Object.keys(schema.properties ?? {}).includes(argName)}
|
||||
<div class="z-10 pt-4">
|
||||
<div class="z-10 pt-2 relative">
|
||||
<InputTransformForm
|
||||
{previousModuleId}
|
||||
bind:arg={args[argName]}
|
||||
@@ -128,7 +128,7 @@
|
||||
>
|
||||
<div
|
||||
slot="submission"
|
||||
class="flex flex-row-reverse w-full bg-surface border-t border-gray-200 rounded-bl-lg rounded-br-lg"
|
||||
class="flex flex-row-reverse w-full border-t border-gray-200 rounded-bl-lg rounded-br-lg"
|
||||
>
|
||||
<Button
|
||||
variant="border"
|
||||
|
||||
@@ -374,10 +374,11 @@
|
||||
class={advancedSelected === 'runtime' ? 'h-[calc(100%-68px)]' : 'h-[calc(100%-34px)]'}
|
||||
>
|
||||
{#if selected === 'inputs' && (flowModule.value.type == 'rawscript' || flowModule.value.type == 'script' || flowModule.value.type == 'flow')}
|
||||
<div class="h-full overflow-auto px-2" id="flow-editor-step-input">
|
||||
<div class="h-full overflow-auto px-2 bg-surface" id="flow-editor-step-input">
|
||||
<PropPickerWrapper
|
||||
pickableProperties={stepPropPicker.pickableProperties}
|
||||
error={failureModule}
|
||||
noPadding
|
||||
>
|
||||
<InputTransformSchemaForm
|
||||
bind:this={inputTransformSchemaForm}
|
||||
|
||||
@@ -58,18 +58,16 @@
|
||||
use:clickOutside
|
||||
on:click_outside={() => propPickerConfig.set(undefined)}
|
||||
>
|
||||
<Splitpanes>
|
||||
<Pane
|
||||
minSize={20}
|
||||
size={60}
|
||||
class={twMerge('relative !transition-none', noPadding ? '' : 'p-2')}
|
||||
>
|
||||
<Splitpanes class="splitpanes-remove-splitter">
|
||||
<Pane class={twMerge('relative !transition-none ', noPadding ? '' : 'p-2')}>
|
||||
<slot />
|
||||
</Pane>
|
||||
<Pane
|
||||
minSize={20}
|
||||
size={40}
|
||||
class="pt-2 relative !transition-none {$propPickerConfig ? 'border-2 border-blue-500' : ''}"
|
||||
class="pt-2 relative ml-[-1px] !transition-none z-1000 {$propPickerConfig
|
||||
? 'shadow-[0_0_10px_5px_rgba(0,0,0,0.1)]'
|
||||
: ''}"
|
||||
>
|
||||
{#if result}
|
||||
<PropPickerResult
|
||||
@@ -102,3 +100,14 @@
|
||||
</Pane>
|
||||
</Splitpanes>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
:global(.splitpanes-remove-splitter > .splitpanes__pane) {
|
||||
background-color: inherit !important;
|
||||
}
|
||||
:global(.splitpanes-remove-splitter > .splitpanes__splitter) {
|
||||
background-color: transparent !important;
|
||||
width: 0 !important;
|
||||
border: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -69,8 +69,6 @@
|
||||
$: keyLimit = isArray ? 1 : 100
|
||||
|
||||
$: fullyCollapsed = keys.length > 1 && collapsed
|
||||
|
||||
$: console.log('dbg current path : ', currentPath)
|
||||
</script>
|
||||
|
||||
<Portal name="object-viewer">
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col h-full">
|
||||
<div class="flex flex-col h-full !bg-surface">
|
||||
<div class="px-2">
|
||||
{#if !notSelectable}
|
||||
<div class="flex flex-row space-x-1">
|
||||
|
||||
Reference in New Issue
Block a user