This commit is contained in:
Gerard Burns 2024-04-19 14:29:41 +01:00
parent b0e7892e7b
commit 97c0c272a8
4 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<script>
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 subjects from './subjects';
import {

View File

@ -1,15 +1,15 @@
<script>
import { Line, InfoWord, DocumentationLink, Space, Text, Period } from "../typography"
import subjects from '../subjects'
import * as columnInfo from '../columnInfo'
import * as explanation from '../explanation'
export let setExplanationSubject
export let support
const getIcon = (support) => {
if (support === columnInfo.support.unsupported) {
if (support === explanation.support.unsupported) {
return "Alert"
} else if (support === columnInfo.support.supported) {
} else if (support === explanation.support.supported) {
return "CheckmarkCircle"
}
@ -17,9 +17,9 @@
}
const getColor = (support) => {
if (support === columnInfo.support.unsupported) {
if (support === explanation.support.unsupported) {
return "var(--red)"
} else if (support === columnInfo.support.supported) {
} else if (support === explanation.support.supported) {
return "var(--green)"
}
@ -27,9 +27,9 @@
}
const getText = (support) => {
if (support === columnInfo.support.unsupported) {
if (support === explanation.support.unsupported) {
return "Not compatible"
} else if (support === columnInfo.support.supported) {
} else if (support === explanation.support.supported) {
return "Compatible"
}

View File

@ -1,11 +1,11 @@
const subjects = {
column: Symbol("explanation-modal-column"),
support: Symbol("explanation-modal-support"),
stringsAsNumbers: Symbol("explanation-modal-strings-as-numbers"),
datesAsNumbers: Symbol("explanation-modal-dates-as-numbers"),
notRequired: Symbol("explanation-modal-not-required"),
column: Symbol("details-modal-column"),
support: Symbol("details-modal-support"),
stringsAsNumbers: Symbol("details-modal-strings-as-numbers"),
datesAsNumbers: Symbol("details-modal-dates-as-numbers"),
notRequired: Symbol("details-modal-not-required"),
scalarJsonOnly: Symbol("explanation-scalar-json-only"),
none: Symbol("explanation-modal-none")
none: Symbol("details-modal-none")
}
export default subjects;