From cbf72c0f0566c9172e8932d0aa0fc6d77bc590aa Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 8 Apr 2021 22:11:50 +0200 Subject: [PATCH] Make buttons and button groups easily toggleable through hidden web component --- ts/editor-toolbar/BUILD.bazel | 3 +- ts/editor-toolbar/ButtonGroup.svelte | 20 ++++-- ts/editor-toolbar/format.ts | 2 +- ts/editor-toolbar/index.ts | 101 +++++++++++++++++++++++++++ ts/editor-toolbar/template.ts | 1 + 5 files changed, 121 insertions(+), 6 deletions(-) diff --git a/ts/editor-toolbar/BUILD.bazel b/ts/editor-toolbar/BUILD.bazel index cc85ac419..e0c48b00e 100644 --- a/ts/editor-toolbar/BUILD.bazel +++ b/ts/editor-toolbar/BUILD.bazel @@ -28,6 +28,7 @@ ts_library( "EditorToolbar", "lib", "//ts/lib", + "//ts/sveltelib", "@npm//svelte", "@npm//svelte2tsx", ], @@ -40,9 +41,9 @@ ts_library( exclude = ["index.ts"], ), deps = [ - "//ts/sveltelib", "//ts/lib", "//ts/lib:backend_proto", + "//ts/sveltelib", "//ts:image_module_support", "@npm//svelte", ], diff --git a/ts/editor-toolbar/ButtonGroup.svelte b/ts/editor-toolbar/ButtonGroup.svelte index a73e2dacc..23c0d0179 100644 --- a/ts/editor-toolbar/ButtonGroup.svelte +++ b/ts/editor-toolbar/ButtonGroup.svelte @@ -1,10 +1,20 @@