Moved DataSourceSelect into related folder. Changed SelectedItem name. Updated DataSourceSelect imports.
This commit is contained in:
parent
6cf1b13a0c
commit
9c71ccd2c4
|
@ -1,5 +1,5 @@
|
||||||
import { Checkbox, Select, RadioGroup, Stepper, Input } from "@budibase/bbui"
|
import { Checkbox, Select, RadioGroup, Stepper, Input } from "@budibase/bbui"
|
||||||
import DataSourceSelect from "./controls/DataSourceSelect.svelte"
|
import DataSourceSelect from "./controls/DataSourceSelectItem/DataSourceSelect.svelte"
|
||||||
import S3DataSourceSelect from "./controls/S3DataSourceSelect.svelte"
|
import S3DataSourceSelect from "./controls/S3DataSourceSelect.svelte"
|
||||||
import DataProviderSelect from "./controls/DataProviderSelect.svelte"
|
import DataProviderSelect from "./controls/DataProviderSelect.svelte"
|
||||||
import ButtonActionEditor from "./controls/ButtonActionEditor/ButtonActionEditor.svelte"
|
import ButtonActionEditor from "./controls/ButtonActionEditor/ButtonActionEditor.svelte"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
import IntegrationQueryEditor from "components/integration/index.svelte"
|
import IntegrationQueryEditor from "components/integration/index.svelte"
|
||||||
import { makePropSafe as safe } from "@budibase/string-templates"
|
import { makePropSafe as safe } from "@budibase/string-templates"
|
||||||
import ClientBindingPanel from "components/common/bindings/ClientBindingPanel.svelte"
|
import ClientBindingPanel from "components/common/bindings/ClientBindingPanel.svelte"
|
||||||
import DataSourceSelect from "components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte"
|
import DataSourceCategory from "components/design/settings/controls/DataSourceSelectItem/DataSourceCategory.svelte"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
|
|
||||||
export let value = {}
|
export let value = {}
|
||||||
|
@ -278,14 +278,14 @@
|
||||||
</div>
|
</div>
|
||||||
<Popover bind:this={dropdownRight} anchor={anchorRight}>
|
<Popover bind:this={dropdownRight} anchor={anchorRight}>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
heading="Tables"
|
heading="Tables"
|
||||||
dataSet={tables}
|
dataSet={tables}
|
||||||
{value}
|
{value}
|
||||||
onSelect={handleSelected}
|
onSelect={handleSelected}
|
||||||
/>
|
/>
|
||||||
{#if views?.length}
|
{#if views?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Views"
|
heading="Views"
|
||||||
dataSet={views}
|
dataSet={views}
|
||||||
|
@ -294,7 +294,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if queries?.length}
|
{#if queries?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Queries"
|
heading="Queries"
|
||||||
dataSet={queries}
|
dataSet={queries}
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if links?.length}
|
{#if links?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Links"
|
heading="Links"
|
||||||
dataSet={links}
|
dataSet={links}
|
||||||
|
@ -312,7 +312,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if fields?.length}
|
{#if fields?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Fields"
|
heading="Fields"
|
||||||
dataSet={fields}
|
dataSet={fields}
|
||||||
|
@ -321,7 +321,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if jsonArrays?.length}
|
{#if jsonArrays?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="JSON Arrays"
|
heading="JSON Arrays"
|
||||||
dataSet={jsonArrays}
|
dataSet={jsonArrays}
|
||||||
|
@ -330,7 +330,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if showDataProviders && dataProviders?.length}
|
{#if showDataProviders && dataProviders?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Data Providers"
|
heading="Data Providers"
|
||||||
dataSet={dataProviders}
|
dataSet={dataProviders}
|
||||||
|
@ -338,7 +338,7 @@
|
||||||
onSelect={handleSelected}
|
onSelect={handleSelected}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={true}
|
dividerState={true}
|
||||||
heading="Other"
|
heading="Other"
|
||||||
dataSet={[custom]}
|
dataSet={[custom]}
|
||||||
|
@ -346,7 +346,7 @@
|
||||||
onSelect={handleSelected}
|
onSelect={handleSelected}
|
||||||
/>
|
/>
|
||||||
{#if otherSources?.length}
|
{#if otherSources?.length}
|
||||||
<DataSourceSelect
|
<DataSourceCategory
|
||||||
dividerState={false}
|
dividerState={false}
|
||||||
dataSet={otherSources}
|
dataSet={otherSources}
|
||||||
{value}
|
{value}
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import DataSourceSelect from "./DataSourceSelect.svelte"
|
import DataSourceSelect from "./DataSourceSelectItem/DataSourceSelect.svelte"
|
||||||
|
|
||||||
const otherSources = [{ name: "Custom", label: "Custom" }]
|
const otherSources = [{ name: "Custom", label: "Custom" }]
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue