diff --git a/ui/src/actions/clickOutside.ts b/ui/src/actions/clickOutside.ts index 30168cf..b6fc635 100644 --- a/ui/src/actions/clickOutside.ts +++ b/ui/src/actions/clickOutside.ts @@ -1,9 +1,3 @@ -/** - * Executes the given callback once an outside click is recognized. - * If the 'opening' click triggers the callback right away, try using 'on:click|stopPropagation'. - * @param node - * @param param1 - */ export function clickOutside(node: HTMLElement, { enabled: initialEnabled, cb }) { const handleOutsideClick = ({ target }) => { if (!node.contains(target)) { diff --git a/ui/src/components/Popup.svelte b/ui/src/components/Popup.svelte index d52f3ac..b3ba88c 100644 --- a/ui/src/components/Popup.svelte +++ b/ui/src/components/Popup.svelte @@ -11,12 +11,14 @@ } - - - - -{#if $opened} - opened.set(false) }}> - + opened.set(false) }}> + + -{/if} + + {#if $opened} + + + + {/if} + diff --git a/ui/src/debug/DebugView.svelte b/ui/src/debug/DebugView.svelte index d783be4..4ac0471 100644 --- a/ui/src/debug/DebugView.svelte +++ b/ui/src/debug/DebugView.svelte @@ -8,6 +8,7 @@ import Popup from '../components/Popup.svelte'; import PageSelectionPopup from './PageSelectionPopup.svelte'; import ItemTable from './ItemTable.svelte'; + import TransformerSelectionPopup from './TransformerSelectionPopup.svelte'; export let debug: Debugger; @@ -70,7 +71,19 @@ canNext && currentStage++}> - {stageNames[currentStage]} + + + + {stageNames[currentStage]} + + + (currentStage = e.detail)} /> + + + diff --git a/ui/src/debug/PageSelectionPopup.svelte b/ui/src/debug/PageSelectionPopup.svelte index bf5d3b5..3009b1c 100644 --- a/ui/src/debug/PageSelectionPopup.svelte +++ b/ui/src/debug/PageSelectionPopup.svelte @@ -1,7 +1,7 @@ + + + {#each stageNames as stageName, idx} + selectTransformer(idx)} + class="px-2 " + class:selected={idx == currentStage} + class:selectable={idx != currentStage}> + {stageName} + + {/each} + + +