mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-18 08:03:11 +00:00
remove |local modifier from transitions (default in Svelte 5)
In Svelte 5, transitions are local by default, making the |local modifier redundant. Removed from all 31 files (43 occurrences). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f9329a6adf
commit
390f44fb81
@@ -869,7 +869,7 @@
|
||||
<div class="flex w-full items-center relative">
|
||||
{#snippet deleteItemBtn()}
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover ml-2"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
<input id="input" type="text" bind:value={itemsType.enum[index]} />
|
||||
<div>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover ml-2"
|
||||
onclick={() => {
|
||||
if (itemsType && itemsType.enum) {
|
||||
|
||||
@@ -27,6 +27,6 @@
|
||||
</button>
|
||||
|
||||
{#if open}
|
||||
<div transition:slide|local={{ duration: 100 }}>{@render children?.()}</div>
|
||||
<div transition:slide={{ duration: 100 }}>{@render children?.()}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
placeholder="e.g., f/*, u/admin/**"
|
||||
/>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover ml-2"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
</div>
|
||||
{#if error != ''}
|
||||
<div
|
||||
transition:slide|local={{ duration: 100 }}
|
||||
transition:slide={{ duration: 100 }}
|
||||
class="w-full text-sm text-red-600 whitespace-pre-wrap pt-1"
|
||||
>
|
||||
{error}
|
||||
|
||||
@@ -1686,7 +1686,7 @@
|
||||
/>
|
||||
{/if}
|
||||
<button
|
||||
transition:fade|local={{ duration: 50 }}
|
||||
transition:fade={{ duration: 50 }}
|
||||
class="rounded-full p-1 bg-surface/60 duration-200 hover:bg-gray-200 absolute right-2"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
{/if}
|
||||
</Button>
|
||||
{#if view}
|
||||
<div class="my-4 px-2" transition:slide|local>{@render children?.()}</div>
|
||||
<div class="my-4 px-2" transition:slide>{@render children?.()}</div>
|
||||
{/if}
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
</div>
|
||||
{#if quickStyleProperties?.length && isQuickMenuOpen}
|
||||
<div class="text-xs mb-1 font-medium">Rich editor</div>
|
||||
<div transition:slide|local={{ duration: 200 }} class="w-full">
|
||||
<div transition:slide={{ duration: 200 }} class="w-full">
|
||||
<QuickStyleMenu
|
||||
bind:value={value.style}
|
||||
properties={quickStyleProperties}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<ChevronDown class="rotate-0 duration-300 {isOpen ? '!rotate-180' : ''}" />
|
||||
</button>
|
||||
{#if isOpen}
|
||||
<div transition:slide|local={{ duration: 300 }} class="px-2 {contentWrapperClasses}">
|
||||
<div transition:slide={{ duration: 300 }} class="px-2 {contentWrapperClasses}">
|
||||
{@render children?.()}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
|
||||
{#if migrationModalOpen}
|
||||
<Portal name="css-global-migration-modal" class="z-[5000] absolute">
|
||||
<div transition:fadeFast|local class={' top-0 bottom-0 left-0 right-0 z-[5000]'} role="dialog">
|
||||
<div transition:fadeFast class={' top-0 bottom-0 left-0 right-0 z-[5000]'} role="dialog">
|
||||
<div
|
||||
class={twMerge(
|
||||
'fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity',
|
||||
|
||||
@@ -517,7 +517,7 @@
|
||||
</div>
|
||||
<AlignmentEditor bind:component={item.data} />
|
||||
{#if viewCssOptions}
|
||||
<div transition:slide|local class="w-full">
|
||||
<div transition:slide class="w-full">
|
||||
{#each Object.keys(ccomponents[component.type]?.customCss ?? {}) as name}
|
||||
{#if item.data?.customCss != undefined}
|
||||
<div class="w-full mb-2">
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
/>
|
||||
|
||||
{#if disablable}
|
||||
<div transition:slide|local>
|
||||
<div transition:slide>
|
||||
<InputsSpecEditor
|
||||
key="tabDisabled {index}"
|
||||
bind:componentInput={field}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
/>
|
||||
|
||||
{#if hideable}
|
||||
<div transition:slide|local>
|
||||
<div transition:slide>
|
||||
<InputsSpecEditor
|
||||
key="tabHidden {index}"
|
||||
bind:componentInput={field}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
>
|
||||
{#if $secondaryMenu.isOpen && $secondaryMenu.component}
|
||||
<div
|
||||
transition:fly|local={{ duration: 300, x: right ? width : -width, y: 0, opacity: 1 }}
|
||||
transition:fly={{ duration: 300, x: right ? width : -width, y: 0, opacity: 1 }}
|
||||
class="flex flex-col w-full h-full bg-surface"
|
||||
>
|
||||
<div
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
|
||||
{#if children && !isCollapsed}
|
||||
<div transition:slide|local={{ duration: 200 }} class="mt-2">
|
||||
<div transition:slide={{ duration: 200 }} class="mt-2">
|
||||
<div
|
||||
class={twMerge('text-xs', classes[type].descriptionClass, descriptionClass)}
|
||||
style={descriptionStyle}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
{/if}
|
||||
{#if value && isHovered}
|
||||
<button
|
||||
transition:fade|local={{ duration: 80 }}
|
||||
transition:fade={{ duration: 80 }}
|
||||
class="absolute z-10 top-[9.5px] right-2 rounded-full p-0.5 text-primary bg-surface-secondary
|
||||
hover:bg-surface-hover focus:bg-surface-hover {buttonClass}"
|
||||
aria-label="Clear"
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
{#if open}
|
||||
<div
|
||||
transition:fadeFast|local
|
||||
transition:fadeFast
|
||||
class={'fixed top-0 bottom-0 left-0 right-0 z-[5000]'}
|
||||
role="dialog"
|
||||
{id}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
{#if open}
|
||||
<div
|
||||
transition:fadeFast|local
|
||||
transition:fadeFast
|
||||
class={'fixed top-0 bottom-0 left-0 right-0 z-[5000]'}
|
||||
role="dialog"
|
||||
>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</div>
|
||||
{#if show}
|
||||
<div
|
||||
transition:fade|local={{ duration: transitionDuration }}
|
||||
transition:fade={{ duration: transitionDuration }}
|
||||
class={classNames(
|
||||
'z-50 absolute mt-2 rounded-md shadow-lg bg-surface ring-1 ring-black ring-opacity-5 focus:outline-none',
|
||||
placementsClasses[placement],
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
||||
<div
|
||||
onclick={() => (open = false)}
|
||||
transition:fadeFast|local
|
||||
transition:fadeFast
|
||||
class={'fixed top-0 bottom-0 left-0 right-0 z-[9999]'}
|
||||
role="dialog"
|
||||
tabindex="-1"
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<Portal name="always-mounted" {target}>
|
||||
<div
|
||||
class={'fixed top-0 bottom-0 left-0 right-0 transition-all z-[1110] overflow-auto bg-black bg-opacity-60 w-full h-full'}
|
||||
transition:fadeFast|local
|
||||
transition:fadeFast
|
||||
>
|
||||
<div class="flex min-h-full items-center justify-center p-8">
|
||||
<div
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
{#if retry}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center rounded border bg-surface border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
{#if retries}<span class="text-red-400 mr-2">{retries}</span>{/if}
|
||||
@@ -313,7 +313,7 @@
|
||||
{#if concurrency}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center rounded border bg-surface border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Gauge size={12} />
|
||||
@@ -326,7 +326,7 @@
|
||||
{#if debouncing}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center rounded border bg-surface border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Timer size={12} />
|
||||
@@ -339,7 +339,7 @@
|
||||
{#if cache}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center rounded border bg-surface border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Database size={12} />
|
||||
@@ -352,7 +352,7 @@
|
||||
{#if earlyStop}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Square size={12} />
|
||||
@@ -365,7 +365,7 @@
|
||||
{#if skip}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<SkipForward size={12} />
|
||||
@@ -378,7 +378,7 @@
|
||||
{#if suspend}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<PhoneIncoming size={12} />
|
||||
@@ -391,7 +391,7 @@
|
||||
{#if sleep}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Bed size={12} />
|
||||
@@ -404,7 +404,7 @@
|
||||
{#if mock?.enabled}
|
||||
<Popover notClickable>
|
||||
<button
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
onclick={() => {
|
||||
outputPicker?.toggleOpen()
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
{#if cache}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center rounded border bg-surface border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Database size={12} />
|
||||
@@ -177,7 +177,7 @@
|
||||
{#if earlyStop}
|
||||
<Popover notClickable>
|
||||
<div
|
||||
transition:fade|local={{ duration: 200 }}
|
||||
transition:fade={{ duration: 200 }}
|
||||
class="center-center bg-surface rounded border border-gray-400 text-secondary px-1 py-0.5"
|
||||
>
|
||||
<Square size={12} />
|
||||
|
||||
@@ -329,7 +329,7 @@
|
||||
</button>
|
||||
{/if}
|
||||
{#if !confirmingDelete}
|
||||
<div transition:fade|local={{ duration: 100 }}>
|
||||
<div transition:fade={{ duration: 100 }}>
|
||||
<Button
|
||||
size="xs"
|
||||
variant="default"
|
||||
@@ -343,14 +343,14 @@
|
||||
{:else}
|
||||
<div class="flex gap-1">
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="px-3 py-1 text-xs bg-red-500 text-white rounded duration-200 hover:bg-red-600"
|
||||
onclick={confirmDelete}
|
||||
>
|
||||
Confirm delete
|
||||
</button>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="px-2 py-1 text-xs bg-surface-secondary rounded duration-200 hover:bg-surface-hover"
|
||||
onclick={cancelDelete}
|
||||
>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<!-- Email Inputs -->
|
||||
<div class="space-y-2">
|
||||
{#each channels as channel}
|
||||
<div class="flex items-center gap-2 w-full" transition:fade|local={{ duration: 200 }}>
|
||||
<div class="flex items-center gap-2 w-full" transition:fade={{ duration: 200 }}>
|
||||
<TextInput
|
||||
inputProps={{
|
||||
type: 'email',
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
{@render children?.({ open })}
|
||||
{#if open}
|
||||
<div
|
||||
transition:fade|local={{ duration: 50 }}
|
||||
transition:fade={{ duration: 50 }}
|
||||
class={twMerge(
|
||||
'absolute z-50 -left-10 bg-surface rounded border shadow-md flex flex-col gap-4 items-start w-[600px] h-80 overflow-hidden',
|
||||
popupOnTop ? 'bottom-[35px]' : 'top-[35px]',
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -650,7 +650,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<button
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
transition:fade={{ duration: 100 }}
|
||||
class="rounded-full p-1 bg-surface-secondary duration-200 hover:bg-surface-hover"
|
||||
aria-label="Clear"
|
||||
onclick={() => {
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
{#if aiProviders[provider]}
|
||||
<div
|
||||
class="mb-4 flex flex-col gap-6 border p-4 rounded-md mt-2"
|
||||
transition:slide|local={{ duration: 150 }}
|
||||
transition:slide={{ duration: 150 }}
|
||||
>
|
||||
<Label label="Resource">
|
||||
<div class="flex flex-row gap-1">
|
||||
@@ -328,7 +328,7 @@
|
||||
</SettingCard>
|
||||
|
||||
{#if codeCompletionModel != undefined}
|
||||
<div transition:slide|local={{ duration: 150 }} class="mt-6">
|
||||
<div transition:slide={{ duration: 150 }} class="mt-6">
|
||||
<SettingCard label="Code completion model">
|
||||
<Select
|
||||
items={safeSelectItems(autocompleteModels)}
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
</button>
|
||||
|
||||
{#if isExpanded}
|
||||
<div transition:slide|local={{ duration: 200 }} class="p-4 border-t">
|
||||
<div transition:slide={{ duration: 200 }} class="p-4 border-t">
|
||||
<div class="space-y-3">
|
||||
{#each models as { model }}
|
||||
{@const currentTokens = getCurrentTokensForModel(provider as AIProvider, model)}
|
||||
|
||||
Reference in New Issue
Block a user