Small tweaks to input cue files

This commit is contained in:
sam boyer
2021-09-28 14:43:02 -04:00
parent 915d5adb03
commit 9201ee5768
4 changed files with 8 additions and 21 deletions
+1 -11
View File
@@ -3,17 +3,7 @@ package schema
// TODO -- should not be table specific!
FieldTextAlignment: "auto" | "left" | "right" | "center" @cuetsy(kind="type")
// FIXME can't write enums as structs, must use disjunctions
TableCellDisplayMode: {
Auto: "auto"
ColorText: "color-text"
ColorBackground: "color-background"
GradientGauge: "gradient-gauge"
LcdGauge: "lcd-gauge"
JSONView: "json-view"
BasicGauge: "basic"
Image: "image"
} @cuetsy(kind="enum")
TableCellDisplayMode: "auto" | "color-text" | "color-background" | "gradient-gauge" | "lcd-gauge" | "json-view" | "basic" | "image" @cuetsy(kind="enum",memberNames="Auto|ColorText|ColorBackground|GradientGauge|LcdGauge|JSONView|BasicGauge|Image")
TableFieldOptions: {
width?: number
@@ -28,9 +28,7 @@ Panel: {
combine?: bool
}
PanelFieldConfig: {
ui.GraphFieldConfig
}
PanelFieldConfig: ui.GraphFieldConfig
}
]
]
@@ -22,18 +22,18 @@ Panel: {
lineages: [
[
{
#TimelineMode: "changes" | "samples" @cuetsy(kind="enum")
#TimelineValueAlignment: "center" | "left" | "right" @cuetsy(kind="type")
TimelineMode: "changes" | "samples" @cuetsy(kind="enum")
TimelineValueAlignment: "center" | "left" | "right" @cuetsy(kind="type")
PanelOptions: {
// FIXME ts comments indicate this shouldn't be in the saved model, but currently is emitted
mode?: #TimelineMode
mode?: TimelineMode
ui.OptionsWithLegend
ui.OptionsWithTooltip
showValue: ui.VisibilityMode | *"auto"
rowHeight: number | *0.9
colWidth?: number
mergeValues?: bool | *true
alignValue?: #TimelineValueAlignment | *"left"
alignValue?: TimelineValueAlignment | *"left"
}
PanelFieldConfig: {
ui.HideableFieldConfig
+2 -3
View File
@@ -18,10 +18,9 @@ Panel: {
lineages: [
[
{
TextMode: "html" | "markdown" @cuetsy(kind="enum",withName="TextMode")
TextMode: "html" | "markdown" @cuetsy(kind="enum")
PanelOptions: {
mode: TextMode | *"markdown"
mode: *"markdown" | TextMode
content: string | *"""
# Title