/
enum.go
275 lines (220 loc) · 7.1 KB
/
enum.go
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
package html
type AutoCapitalization string
const (
AutoCapitalizationOn AutoCapitalization = "on"
AutoCapitalizationOff AutoCapitalization = "off"
AutoCapitalizeNothing AutoCapitalization = "none"
AutoCapitalizeWords AutoCapitalization = "words"
AutoCapitalizeSentences AutoCapitalization = "sentences"
AutoCapitalizeCharacters AutoCapitalization = "characters"
)
type Editablility string
const (
Editable Editablility = "true"
NotEditable Editablility = "false"
EditAsPlainTextOnly Editablility = "plaintext-only"
)
type Directionality string
const (
LeftToRight Directionality = "ltr"
RightToLeft Directionality = "rtl"
AutomaticDirection Directionality = "auto"
)
type Bool string
const (
True Bool = "true"
False Bool = "false"
)
type InputMode string
const (
InputModeNone InputMode = "none"
InputModeText InputMode = "text"
InputModeDecimal InputMode = "decimal"
InputModeNumeric InputMode = "numeric"
InputModePhoneNumber InputMode = "tel"
InputModeSearch InputMode = "search"
InputModeEmail InputMode = "email"
InputModeURL InputMode = "url"
)
type YesNo string
const (
Yes YesNo = "yes"
No YesNo = "no"
)
type VirtualKeyboardPolicy string
const (
VirtualKeyboardAutomatic VirtualKeyboardPolicy = "auto"
VirtualKeyboardManual VirtualKeyboardPolicy = "manual"
)
type ReferrerPolicy string
const (
NoReferrer ReferrerPolicy = "no-referrer"
NoReferrerWhenDowngrade ReferrerPolicy = "no-referrer-when-downgrade"
Origin ReferrerPolicy = "origin"
OriginWhenCrossOrigin ReferrerPolicy = "origin-when-cross-origin"
SameOrigin ReferrerPolicy = "same-origin"
StrictOrigin ReferrerPolicy = "strict-origin"
StrictOriginWhenCrossOrigin ReferrerPolicy = "strict-origin-when-cross-origin"
UnsafeURL ReferrerPolicy = "unsafe-url"
)
type Relationship string
const (
RelationshipAlternate Relationship = "alternate"
RelationshipAuthor Relationship = "author"
RelationshipBookmark Relationship = "bookmark"
RelationshipExternal Relationship = "external"
RelationshipHelp Relationship = "help"
RelationshipLicense Relationship = "license"
RelationshipNext Relationship = "next"
RelationshipNoFollow Relationship = "nofollow"
RelationshipNoOpener Relationship = "noopener"
RelationshipNoReferrer Relationship = "noreferrer"
RelationshipPrevious Relationship = "prev"
RelationshipSearch Relationship = "search"
RelationshipTag Relationship = "tag"
)
type Target string
const (
TargetBlank Target = "_blank"
TargetSelf Target = "_self"
TargetParent Target = "_parent"
TargetTop Target = "_top"
)
type ImageMapShape string
const (
ImageMapRect ImageMapShape = "rect"
ImageMapCircle ImageMapShape = "circle"
ImageMapPoly ImageMapShape = "poly"
ImageMapDefault ImageMapShape = "default"
)
type CrossOrigin string
const (
CrossOriginAnonymous CrossOrigin = "anonymous"
CrossOriginUseCredentials CrossOrigin = "use-credentials"
)
type Preload string
const (
PreloadNone Preload = "none"
PreloadMetadata Preload = "metadata"
PreloadAuto Preload = "auto"
)
type FormMethod string
const (
FormShouldGet FormMethod = "get"
FormShouldPost FormMethod = "post"
FormShouldCloseDialog FormMethod = "dialog"
)
type PopoverTargetAction string
const (
PopoverHide PopoverTargetAction = "hide"
PopoverShow PopoverTargetAction = "show"
PopoverToggle PopoverTargetAction = "toggle"
)
type ButtonType string
const (
ButtonSubmit ButtonType = "submit"
ButtonReset ButtonType = "reset"
ButtonScript ButtonType = "button"
)
type CharacterSet string
const (
UTF8 CharacterSet = "utf-8"
)
type OnOff string
const (
On OnOff = "on"
Off OnOff = "off"
)
type Loading string
const (
Eager Loading = "eager"
Lazy Loading = "lazy"
)
type Sandbox string
const (
AllowDownloads Sandbox = "allow-downloads"
AllowDownloadsWithUserActivation Sandbox = "allow-downloads-with-user-activation"
AllowForms Sandbox = "allow-forms"
AllowModals Sandbox = "allow-modals"
AllowOrientationLock Sandbox = "allow-orientation-lock"
AllowPointerLock Sandbox = "allow-pointer-lock"
AllowPopups Sandbox = "allow-popups"
AllowPopupsToEscapeSandbox Sandbox = "allow-popups-to-escape-sandbox"
AllowPresentation Sandbox = "allow-presentation"
AllowSameOrigin Sandbox = "allow-same-origin"
AllowScripts Sandbox = "allow-scripts"
AllowTopNavigation Sandbox = "allow-top-navigation"
AllowTopNavigationByUserActivation Sandbox = "allow-top-navigation-by-user-activation"
AllowTopNavigationToCustomProtocols Sandbox = "allow-top-navigation-to-custom-protocols"
)
type ImageDecodingStrategy string
const (
DecodeImageSynchronously ImageDecodingStrategy = "sync"
DecodeImageAsynchronously ImageDecodingStrategy = "async"
DecodeImageAutomatically ImageDecodingStrategy = "auto"
)
type LinkType string
const (
LinkedAudio LinkType = "audio"
LinkedDocument LinkType = "document"
LinkedEmbed LinkType = "embed"
LinkedFetch LinkType = "fetch"
LinkedFont LinkType = "font"
LinkedImage LinkType = "image"
LinkedObject LinkType = "object"
LinkedScript LinkType = "script"
LinkedStyle LinkType = "style"
LinkedTrack LinkType = "track"
LinkedVideo LinkType = "video"
LinkedWorker LinkType = "worker"
)
type ScriptType string
const (
ScriptIsImportMap ScriptType = "importmap"
ScriptIsModule ScriptType = "module"
)
type Wrap string
const (
WrapHard Wrap = "hard"
WrapSoft Wrap = "soft"
)
type InputType string
const (
InputButton InputType = "button"
InputCheckbox InputType = "checkbox"
InputColor InputType = "color"
InputDate InputType = "date"
InputDateTimeLocal InputType = "datetime-local"
InputEmail InputType = "email"
InputFile InputType = "file"
InputHidden InputType = "hidden"
InputImage InputType = "image"
InputMonth InputType = "month"
InputNumber InputType = "number"
InputPassword InputType = "password"
InputRadio InputType = "radio"
InputRange InputType = "range"
InputReset InputType = "reset"
InputSearch InputType = "search"
InputSubmit InputType = "submit"
InputPhone InputType = "tel"
InputText InputType = "text"
InputTime InputType = "time"
InputURL InputType = "url"
InputWeek InputType = "week"
)
type TableScope string
const (
ScopeRow TableScope = "row"
ScopeColumn TableScope = "col"
ScopeRowGroup TableScope = "rowgroup"
ScopeColumnGroup TableScope = "colgroup"
)
type TrackKind string
const (
TrackForSubtitles TrackKind = "subtitles"
TrackForCaptions TrackKind = "captions"
TrackForDescriptions TrackKind = "descriptions"
TrackForChapters TrackKind = "chapters"
TrackForMetadata TrackKind = "metadata"
)