working seemingly
This commit is contained in:
parent
b1aa8b36f2
commit
707c7de536
|
@ -17,6 +17,7 @@
|
|||
|
||||
export let errors = []
|
||||
export let warnings = []
|
||||
export let tableHref = () => {}
|
||||
|
||||
export let schema
|
||||
|
||||
|
@ -74,15 +75,17 @@
|
|||
|
||||
<div class="line topLine">
|
||||
<span class="bullet">•</span>
|
||||
<div
|
||||
<a
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
on:mouseenter={() => handleMouseenter("column")}
|
||||
on:mouseleave={() => handleMouseleave("column")}
|
||||
href={tableHref}
|
||||
class="chip columnName"
|
||||
>
|
||||
<span>
|
||||
{columnName}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
<span class="space" />
|
||||
<span class="text"> is a </span>
|
||||
<span class="space" />
|
||||
|
@ -334,6 +337,7 @@
|
|||
flex-grow: 0;
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
color: var(--grey-8);
|
||||
}
|
||||
|
||||
.bullet {
|
||||
|
@ -436,7 +440,6 @@
|
|||
|
||||
vertical-align: baseline;
|
||||
background-color: var(--grey-3);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.info :global(svg) {
|
||||
|
|
|
@ -6,12 +6,17 @@
|
|||
import { validators, constants as validatorConstants } from "../fieldValidator";
|
||||
import ChartFieldContext from './FieldContext/Chart.svelte'
|
||||
import { FIELDS } from 'constants/backend'
|
||||
import { goto, params } from "@roxi/routify"
|
||||
|
||||
export let componentInstance = {}
|
||||
export let value = ""
|
||||
export let placeholder
|
||||
export let fieldValidator
|
||||
|
||||
$: {
|
||||
console.log($params)
|
||||
}
|
||||
|
||||
let contextTooltipId = 0;
|
||||
let contextTooltipAnchor = null
|
||||
let currentOption = null
|
||||
|
@ -59,6 +64,7 @@
|
|||
|
||||
const dispatch = createEventDispatcher()
|
||||
$: datasource = getDatasourceForProvider($selectedScreen, componentInstance)
|
||||
$: console.log(datasource)
|
||||
$: schema = getSchemaForDatasource($selectedScreen, datasource).schema
|
||||
$: options = Object.keys(schema || {})
|
||||
$: fieldSupport = getFieldSupport(schema, fieldValidator);
|
||||
|
@ -204,6 +210,7 @@
|
|||
>
|
||||
<ChartFieldContext
|
||||
sidecar
|
||||
tableHref={`/builder/app/${$params.application}/data/table/${datasource.tableId}`}
|
||||
schema={schema[currentOption]}
|
||||
support={fieldSupport[currentOption]}
|
||||
supportLevelClass={currentOptionSupport.class}
|
||||
|
|
Loading…
Reference in New Issue