-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.cue
46 lines (38 loc) · 792 Bytes
/
base.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package data
#option: {
value: string
label?: string
readonly?: bool
}
#tag: string
#tag: "NUMERIC" | "NEGNUMERIC" | "DECIMAL" |
"DATE" | "DATEMMDD" | "DATEMMYYYY" | "DATETEXT" | "DATEMMYYYYTEXT" |
"UPPERCASE" |
"AMOUNT" | "NEGAMOUNT" | "NEGAMOUNTTEXT" | "AMOUNTTEXT" |
"SSN" | "EIN" |
"RATIO" | "PERCENT"
#field: {
type: "combo" | "text" | "check" | "button"
name: string
title?: string
placeholder?: string
value?: string
readonly: bool | *false
tags: *[] | [#tag] | [#tag, #tag]
}
#options: [...#option]
#field: {
type: "check" | "combo"
options: #options
} | {
type: "button"
link: string | *""
} | {
type: "text"
maxlength?: int
}
schemas: [string]: {
id: string
multiple: bool | *false
fields: [...#field]
}