From eea6e09bd8c5edbf0a43ab3af4125336364f7dd6 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Mon, 27 Jul 2020 16:05:51 +0200 Subject: [PATCH] Implement insert --- src/components/DropdownMenu.svelte | 7 ++- src/components/JSONEditor.svelte | 84 ++++++++++++++---------------- src/components/Menu.svelte | 41 +++++++++------ src/logic/operations.js | 72 +++++++++++++++++++++++-- src/logic/selection.js | 22 +++++++- src/logic/selection.test.js | 12 ++++- src/types.js | 3 +- 7 files changed, 169 insertions(+), 72 deletions(-) diff --git a/src/components/DropdownMenu.svelte b/src/components/DropdownMenu.svelte index c2c64e8..b0ff7cb 100644 --- a/src/components/DropdownMenu.svelte +++ b/src/components/DropdownMenu.svelte @@ -10,7 +10,6 @@ export let title = null export let width = '120px' export let visible = false - export let disabled = false function toggleShow (event) { event.stopPropagation() @@ -51,7 +50,11 @@