part reafactor, probs not wroking

This commit is contained in:
Gerard Burns 2024-04-08 13:34:25 +01:00
parent dc903a43f2
commit 82294c55ce
14 changed files with 99 additions and 9 deletions

View File

@ -72,7 +72,7 @@
<span class="bullet"></span>
<InfoWord
on:mouseenter={() => handleMouseenter("column")}
on:mouseleave={() => handleMouseleave("column")}
on:mouseleave={handleMouseleave}
href={tableHref}
text={columnName}
/>
@ -90,7 +90,8 @@
<span class="bullet"></span>
<InfoWord
on:mouseenter={() => handleMouseenter("support")}
on:mouseleave={() => handleMouseleave("support")}
on:mouseleave={handleMouseleave}
href={tableHref}
icon={support.icon}
color={support.iconColor}
text={support.text}
@ -112,7 +113,7 @@
<span class="space" />
<InfoWord
on:mouseenter={() => handleMouseenter("stringsAndNumbers")}
on:mouseleave={() => handleMouseleave("stringsAndNumbers")}
on:mouseleave={handleMouseleave}
text="non-number values"
/>
<span class="space" />
@ -129,7 +130,7 @@
<span class="space" />
<InfoWord
on:mouseenter={() => handleMouseenter("required")}
on:mouseleave={() => handleMouseleave("required")}
on:mouseleave={handleMouseleave}
text="required"
/>
<span class="space" />

View File

@ -0,0 +1,9 @@
<script>
</script>
<div>
</div>
<style>
</style>

View File

@ -0,0 +1,9 @@
<script>
</script>
<div>
</div>
<style>
</style>

View File

@ -0,0 +1,9 @@
<script>
</script>
<div>
</div>
<style>
</style>

View File

@ -0,0 +1,8 @@
<script>
</script>
<div>
</div>
<style>
</style>

View File

@ -0,0 +1,4 @@
export { default as Column } from "./Column.svelte"
export { default as NotRequired } from "./NotRequired.svelte"
export { default as StringNumber } from "./StringNumber.svelte"
export { default as Support } from "./Support.svelte"

View File

@ -0,0 +1,11 @@
<span class="comma">,</span>
<style>
.comma {
margin-left: 2px;
color: var(--grey-6);
font-size: 17px;
display: inline block;
margin-right: 5px;
}
</style>

View File

@ -0,0 +1,22 @@
<div class="line">
<span class="bullet"></span>
<slot />
</div>
<style>
.bullet {
color: var(--grey-6);
font-size: 17px;
display: inline block;
margin-right: 10px;
}
.line {
background-color: var(--background-alt);
color: var(--ink);
align-items: center;
display: flex;
margin-bottom: 10px;
}
</style>

View File

@ -0,0 +1,10 @@
<span class="period">.</span>
<style>
.period {
color: var(--grey-6);
font-size: 20px;
display: inline block;
margin-left: 3px;
}
</style>

View File

@ -0,0 +1,7 @@
<span class="space" />
<style>
.space {
margin-right: 5px;
}
</style>

View File

@ -0,0 +1,5 @@
export { default as Space } from "./Space.svelte"
export { default as Comma } from "./Comma.svelte"
export { default as Period } from "./Period.svelte"
export { default as InfoWord } from "./InfoWord.svelte"
export { default as DocumentationLink } from "./DocumentationLink.svelte"

View File

@ -18,9 +18,6 @@
let currentOption = null
let previousOption = null
let contextTooltipVisible = false
let currentOptionSupport = {}
let previousOptionSupport = {}
const TypeIconMap = {
text: "Text",
@ -42,7 +39,6 @@
},
}
const getFieldSupport = (schema, fieldValidator) => {
if (fieldValidator == null) {
return {}
@ -60,7 +56,6 @@
const dispatch = createEventDispatcher()
$: datasource = getDatasourceForProvider($selectedScreen, componentInstance)
$: console.log(datasource)
$: schema = getSchemaForDatasource($selectedScreen, datasource).schema
$: options = Object.keys(schema || {})
$: fieldSupport = getFieldSupport(schema, fieldValidator);