wip
This commit is contained in:
parent
2af464791c
commit
2925312438
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import ExplanationModal from './ExplanationModal/index.svelte'
|
import ExplanationModal from './ExplanationModal/index.svelte'
|
||||||
import { messages as messageConstants, getColumnInfoMessagesAndSupport } from "./columnInfo";
|
import { messages as messageConstants, getColumnInfoMessagesAndSupport } from "./columnInfo";
|
||||||
import { Column, Support, NotRequired, StringNumber } from "./lines"
|
import { Column, Support, NotRequired, StringNumber, JSONPrimitivesOnly } from "./lines"
|
||||||
import subjects from './subjects';
|
import subjects from './subjects';
|
||||||
|
|
||||||
export let columnInfo
|
export let columnInfo
|
||||||
|
@ -59,6 +59,11 @@
|
||||||
{setExplanationSubject}
|
{setExplanationSubject}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if messages.includes(messageConstants.jsonPrimitivesOnly)}
|
||||||
|
<JSONPrimitivesOnly
|
||||||
|
{setExplanationSubject}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<script>
|
||||||
|
import { Line, InfoWord, DocumentationLink, Space, Text, Period, Comma } from "../typography"
|
||||||
|
import subjects from '../subjects'
|
||||||
|
|
||||||
|
export let setExplanationSubject
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<Line wrap>
|
||||||
|
<Text>
|
||||||
|
JSON Objects cannot be used, but scalar child values can be if their types are supported
|
||||||
|
</Text><Period />
|
||||||
|
</Line>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
|
@ -2,3 +2,4 @@ export { default as Column } from "./Column.svelte"
|
||||||
export { default as NotRequired } from "./NotRequired.svelte"
|
export { default as NotRequired } from "./NotRequired.svelte"
|
||||||
export { default as StringNumber } from "./StringNumber.svelte"
|
export { default as StringNumber } from "./StringNumber.svelte"
|
||||||
export { default as Support } from "./Support.svelte"
|
export { default as Support } from "./Support.svelte"
|
||||||
|
export { default as JSONPrimitivesOnly } from "./JSONPrimitivesOnly.svelte"
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.comma {
|
.comma {
|
||||||
margin-left: 2px;
|
|
||||||
color: var(--grey-6);
|
color: var(--grey-6);
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
display: inline block;
|
display: inline block;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
line-height: 26px;
|
||||||
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-bottom: 1px solid var(--blue);
|
border-bottom: 1px solid var(--blue);
|
||||||
transition: filter 300ms;
|
transition: filter 300ms;
|
||||||
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link:hover {
|
.link:hover {
|
||||||
|
|
|
@ -1,22 +1,38 @@
|
||||||
|
<script>
|
||||||
|
export let wrap = false
|
||||||
|
</script>
|
||||||
<div class="line">
|
<div class="line">
|
||||||
<span class="bullet">•</span>
|
<span class="bullet">•</span>
|
||||||
<slot />
|
<div class="content" class:wrap>
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.line {
|
||||||
|
background-color: var(--background-alt);
|
||||||
|
color: var(--ink);
|
||||||
|
align-items: flex-start;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.bullet {
|
.bullet {
|
||||||
color: var(--grey-6);
|
color: var(--grey-6);
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
display: inline block;
|
display: inline block;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.content {
|
||||||
background-color: var(--background-alt);
|
|
||||||
color: var(--ink);
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-width: 0;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
margin-bottom: 10px;
|
.wrap {
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
color: var(--grey-6);
|
color: var(--grey-6);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
display: inline block;
|
display: inline block;
|
||||||
margin-left: 3px;
|
line-height: 26px;
|
||||||
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
<style>
|
<style>
|
||||||
.space {
|
.space {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
<style>
|
<style>
|
||||||
.text {
|
.text {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue