From 78411371e6d512c04c72681ff8abac6b7b7d864e Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 16 Sep 2020 10:10:46 +0200 Subject: [PATCH] Collapsable wizard --- src/components/modals/TransformModal.scss | 10 +++++- src/components/modals/TransformModal.svelte | 34 +++++++++++++++------ 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/src/components/modals/TransformModal.scss b/src/components/modals/TransformModal.scss index a893221..8e83913 100644 --- a/src/components/modals/TransformModal.scss +++ b/src/components/modals/TransformModal.scss @@ -13,11 +13,19 @@ } } - label { + .contents { + color: $dark-gray; + } + + .label { font-weight: bold; padding-top: $padding * 2; padding-bottom: $padding / 2; display: block; + + button { + font-weight: bold; + } } textarea.query, diff --git a/src/components/modals/TransformModal.svelte b/src/components/modals/TransformModal.svelte index 0b9776f..48ec36c 100644 --- a/src/components/modals/TransformModal.svelte +++ b/src/components/modals/TransformModal.svelte @@ -2,6 +2,7 @@
@@ -102,17 +109,26 @@ _.pick, _.uniq, _.get, etcetera.
- - {#if Array.isArray(json)} - - {:else} - (Only available for arrays, not for objects) +
+ +
+ {#if showWizard} + {#if Array.isArray(json)} + + {:else} + (Only available for arrays, not for objects) + {/if} {/if} - - + +
+ Query +