wip
This commit is contained in:
parent
b0e7892e7b
commit
97c0c272a8
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import ExplanationModal from './ExplanationModal/index.svelte'
|
import ExplanationModal from './ExplanationModal/index.svelte'
|
||||||
import { messages as messageConstants, getExplanationMessagesAndSupport, getExplanationWithPresets } from "./columnInfo";
|
import { messages as messageConstants, getExplanationMessagesAndSupport, getExplanationWithPresets } from "./explanation";
|
||||||
import { Column, Support, NotRequired, StringNumber, JSONPrimitivesOnly, DateAsNumber } from "./lines"
|
import { Column, Support, NotRequired, StringNumber, JSONPrimitivesOnly, DateAsNumber } from "./lines"
|
||||||
import subjects from './subjects';
|
import subjects from './subjects';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
<script>
|
<script>
|
||||||
import { Line, InfoWord, DocumentationLink, Space, Text, Period } from "../typography"
|
import { Line, InfoWord, DocumentationLink, Space, Text, Period } from "../typography"
|
||||||
import subjects from '../subjects'
|
import subjects from '../subjects'
|
||||||
import * as columnInfo from '../columnInfo'
|
import * as explanation from '../explanation'
|
||||||
|
|
||||||
export let setExplanationSubject
|
export let setExplanationSubject
|
||||||
export let support
|
export let support
|
||||||
|
|
||||||
const getIcon = (support) => {
|
const getIcon = (support) => {
|
||||||
if (support === columnInfo.support.unsupported) {
|
if (support === explanation.support.unsupported) {
|
||||||
return "Alert"
|
return "Alert"
|
||||||
} else if (support === columnInfo.support.supported) {
|
} else if (support === explanation.support.supported) {
|
||||||
return "CheckmarkCircle"
|
return "CheckmarkCircle"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const getColor = (support) => {
|
const getColor = (support) => {
|
||||||
if (support === columnInfo.support.unsupported) {
|
if (support === explanation.support.unsupported) {
|
||||||
return "var(--red)"
|
return "var(--red)"
|
||||||
} else if (support === columnInfo.support.supported) {
|
} else if (support === explanation.support.supported) {
|
||||||
return "var(--green)"
|
return "var(--green)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const getText = (support) => {
|
const getText = (support) => {
|
||||||
if (support === columnInfo.support.unsupported) {
|
if (support === explanation.support.unsupported) {
|
||||||
return "Not compatible"
|
return "Not compatible"
|
||||||
} else if (support === columnInfo.support.supported) {
|
} else if (support === explanation.support.supported) {
|
||||||
return "Compatible"
|
return "Compatible"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
const subjects = {
|
const subjects = {
|
||||||
column: Symbol("explanation-modal-column"),
|
column: Symbol("details-modal-column"),
|
||||||
support: Symbol("explanation-modal-support"),
|
support: Symbol("details-modal-support"),
|
||||||
stringsAsNumbers: Symbol("explanation-modal-strings-as-numbers"),
|
stringsAsNumbers: Symbol("details-modal-strings-as-numbers"),
|
||||||
datesAsNumbers: Symbol("explanation-modal-dates-as-numbers"),
|
datesAsNumbers: Symbol("details-modal-dates-as-numbers"),
|
||||||
notRequired: Symbol("explanation-modal-not-required"),
|
notRequired: Symbol("details-modal-not-required"),
|
||||||
scalarJsonOnly: Symbol("explanation-scalar-json-only"),
|
scalarJsonOnly: Symbol("explanation-scalar-json-only"),
|
||||||
none: Symbol("explanation-modal-none")
|
none: Symbol("details-modal-none")
|
||||||
}
|
}
|
||||||
|
|
||||||
export default subjects;
|
export default subjects;
|
||||||
|
|
Loading…
Reference in New Issue