From 38014a76be28ccf3cfbd154039700a10ceb932ec Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 14 Jul 2021 14:21:11 +0100 Subject: [PATCH 01/10] Update drawer styles, drawer bindable inputs and settings bindable inputs --- packages/bbui/src/Drawer/Drawer.svelte | 22 +- packages/bbui/src/Drawer/DrawerContent.svelte | 5 +- .../common/bindings/BindingPanel.svelte | 188 ++++++++---------- .../bindings/DrawerBindableInput.svelte | 9 +- .../PropertyControls/PropertyControl.svelte | 7 +- 5 files changed, 108 insertions(+), 123 deletions(-) diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index 3658fdb7fe..a619ee0f8b 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -1,7 +1,7 @@ - - - {#if context} +
+
+
Search
+ +
+ {#if filteredColumns?.length}
- Columns +
Columns
    - {#each context.filter( context => context.readableBinding.match(searchRgx) ) as { readableBinding }} + {#each filteredColumns as { readableBinding }}
  • { value = addToText(value, getCaretPosition(), readableBinding) @@ -71,39 +52,29 @@
{/if} - {#if instance} + {#if filteredHelpers?.length}
- Components +
Helpers
    - {#each instance.filter( instance => instance.readableBinding.match(searchRgx) ) as { readableBinding }} -
  • addToText(readableBinding)}> - {readableBinding} + {#each filteredHelpers as helper} +
  • { + value = addToText(value, getCaretPosition(), helper.text) + }} + > +
    +
    {helper.displayText}
    +
    + {@html helper.description} +
    +
    {helper.example || ''}
    +
  • {/each}
{/if} -
- Helpers -
    - {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper} -
  • { - value = addToText(value, getCaretPosition(), helper.text) - }} - > -
    - -
    - {@html helper.description} -
    -
    {helper.example || ''}
    -
    -
  • - {/each} -
-
- +