Small tweaks to input cue files
This commit is contained in:
@@ -3,17 +3,7 @@ package schema
|
|||||||
// TODO -- should not be table specific!
|
// TODO -- should not be table specific!
|
||||||
FieldTextAlignment: "auto" | "left" | "right" | "center" @cuetsy(kind="type")
|
FieldTextAlignment: "auto" | "left" | "right" | "center" @cuetsy(kind="type")
|
||||||
|
|
||||||
// FIXME can't write enums as structs, must use disjunctions
|
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")
|
||||||
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")
|
|
||||||
|
|
||||||
TableFieldOptions: {
|
TableFieldOptions: {
|
||||||
width?: number
|
width?: number
|
||||||
|
|||||||
@@ -28,9 +28,7 @@ Panel: {
|
|||||||
combine?: bool
|
combine?: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
PanelFieldConfig: {
|
PanelFieldConfig: ui.GraphFieldConfig
|
||||||
ui.GraphFieldConfig
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ Panel: {
|
|||||||
lineages: [
|
lineages: [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
#TimelineMode: "changes" | "samples" @cuetsy(kind="enum")
|
TimelineMode: "changes" | "samples" @cuetsy(kind="enum")
|
||||||
#TimelineValueAlignment: "center" | "left" | "right" @cuetsy(kind="type")
|
TimelineValueAlignment: "center" | "left" | "right" @cuetsy(kind="type")
|
||||||
PanelOptions: {
|
PanelOptions: {
|
||||||
// FIXME ts comments indicate this shouldn't be in the saved model, but currently is emitted
|
// FIXME ts comments indicate this shouldn't be in the saved model, but currently is emitted
|
||||||
mode?: #TimelineMode
|
mode?: TimelineMode
|
||||||
ui.OptionsWithLegend
|
ui.OptionsWithLegend
|
||||||
ui.OptionsWithTooltip
|
ui.OptionsWithTooltip
|
||||||
showValue: ui.VisibilityMode | *"auto"
|
showValue: ui.VisibilityMode | *"auto"
|
||||||
rowHeight: number | *0.9
|
rowHeight: number | *0.9
|
||||||
colWidth?: number
|
colWidth?: number
|
||||||
mergeValues?: bool | *true
|
mergeValues?: bool | *true
|
||||||
alignValue?: #TimelineValueAlignment | *"left"
|
alignValue?: TimelineValueAlignment | *"left"
|
||||||
}
|
}
|
||||||
PanelFieldConfig: {
|
PanelFieldConfig: {
|
||||||
ui.HideableFieldConfig
|
ui.HideableFieldConfig
|
||||||
|
|||||||
@@ -18,10 +18,9 @@ Panel: {
|
|||||||
lineages: [
|
lineages: [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
TextMode: "html" | "markdown" @cuetsy(kind="enum",withName="TextMode")
|
TextMode: "html" | "markdown" @cuetsy(kind="enum")
|
||||||
|
|
||||||
PanelOptions: {
|
PanelOptions: {
|
||||||
mode: TextMode | *"markdown"
|
mode: *"markdown" | TextMode
|
||||||
content: string | *"""
|
content: string | *"""
|
||||||
# Title
|
# Title
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user