From 9b567463fd75b97e9e28be785b3bacaefbd7e577 Mon Sep 17 00:00:00 2001 From: Tal Hadad Date: Tue, 2 Aug 2022 23:02:41 +0300 Subject: [PATCH] :sparkles: feat: start working on #11 --- src/lib/Pane.svelte | 46 +++++++++++++++++++++++++++---- src/lib/Splitpanes.svelte | 57 ++++++++++++++++++++++++++++----------- src/lib/index.ts | 24 ++++++++++++++--- src/lib/internal/store.ts | 51 +++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 24 deletions(-) create mode 100644 src/lib/internal/store.ts diff --git a/src/lib/Pane.svelte b/src/lib/Pane.svelte index 453413fe..b7d162a8 100644 --- a/src/lib/Pane.svelte +++ b/src/lib/Pane.svelte @@ -1,10 +1,11 @@ - -{#if $veryFirstPaneKey !== key || $showFirstSplitter} -
+{#if $previousPaneSizeStore || $showFirstSplitter} +
0 + ? $previousPaneSizeStore.minSize + : undefined} + aria-valuemax={$previousPaneSizeStore && $previousPaneSizeStore.maxSize < 100 + ? $previousPaneSizeStore.maxSize + : undefined} + /> {/if} diff --git a/src/lib/Splitpanes.svelte b/src/lib/Splitpanes.svelte index 908ab21c..0cccc4e9 100644 --- a/src/lib/Splitpanes.svelte +++ b/src/lib/Splitpanes.svelte @@ -4,8 +4,9 @@