Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/a11y/aria/attributes.js
4584 views
1
/**
2
* @license
3
* Copyright The Closure Library Authors.
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
8
/**
9
* @fileoverview The file contains generated enumerations for ARIA states
10
* and properties as defined by W3C ARIA standard:
11
* http://www.w3.org/TR/wai-aria/.
12
*
13
* This is auto-generated code. Do not manually edit! For more details
14
* about how to edit it via the generator check go/closure-ariagen.
15
*/
16
17
goog.provide('goog.a11y.aria.AutoCompleteValues');
18
goog.provide('goog.a11y.aria.CheckedValues');
19
goog.provide('goog.a11y.aria.DropEffectValues');
20
goog.provide('goog.a11y.aria.ExpandedValues');
21
goog.provide('goog.a11y.aria.GrabbedValues');
22
goog.provide('goog.a11y.aria.InvalidValues');
23
goog.provide('goog.a11y.aria.LivePriority');
24
goog.provide('goog.a11y.aria.OrientationValues');
25
goog.provide('goog.a11y.aria.PressedValues');
26
goog.provide('goog.a11y.aria.RelevantValues');
27
goog.provide('goog.a11y.aria.SelectedValues');
28
goog.provide('goog.a11y.aria.SortValues');
29
goog.provide('goog.a11y.aria.State');
30
31
32
/**
33
* ARIA states and properties.
34
* @enum {string}
35
*/
36
goog.a11y.aria.State = {
37
// ARIA property for setting the currently active descendant of an element,
38
// for example the selected item in a list box. Value: ID of an element.
39
ACTIVEDESCENDANT: 'activedescendant',
40
41
// ARIA property that, if true, indicates that all of a changed region should
42
// be presented, instead of only parts. Value: one of {true, false}.
43
ATOMIC: 'atomic',
44
45
// ARIA property to specify that input completion is provided. Value:
46
// one of {'inline', 'list', 'both', 'none'}.
47
AUTOCOMPLETE: 'autocomplete',
48
49
// ARIA state to indicate that an element and its subtree are being updated.
50
// Value: one of {true, false}.
51
BUSY: 'busy',
52
53
// ARIA state for a checked item. Value: one of {'true', 'false', 'mixed',
54
// undefined}.
55
CHECKED: 'checked',
56
57
// ARIA state that defines an element's column index or position with respect
58
// to the total number of columns within a table, grid, or treegrid.
59
// Value: number.
60
COLINDEX: 'colindex',
61
62
// ARIA property that identifies the element or elements whose contents or
63
// presence are controlled by this element.
64
// Value: space-separated IDs of other elements.
65
CONTROLS: 'controls',
66
67
// ARIA property that identifies the element that represents the current
68
// item within a container or set of related elements.
69
// Value: one of {'page', 'step', 'location', 'date', 'time', true, false}.
70
CURRENT: 'current',
71
72
// ARIA property that identifies the element or elements that describe
73
// this element. Value: space-separated IDs of other elements.
74
DESCRIBEDBY: 'describedby',
75
76
// ARIA state for a disabled item. Value: one of {true, false}.
77
DISABLED: 'disabled',
78
79
// ARIA property that indicates what functions can be performed when a
80
// dragged object is released on the drop target. Value: one of
81
// {'copy', 'move', 'link', 'execute', 'popup', 'none'}.
82
DROPEFFECT: 'dropeffect',
83
84
// ARIA state for setting whether the element like a tree node is expanded.
85
// Value: one of {true, false, undefined}.
86
EXPANDED: 'expanded',
87
88
// ARIA property that identifies the next element (or elements) in the
89
// recommended reading order of content. Value: space-separated ids of
90
// elements to flow to.
91
FLOWTO: 'flowto',
92
93
// ARIA state that indicates an element's "grabbed" state in drag-and-drop.
94
// Value: one of {true, false, undefined}.
95
GRABBED: 'grabbed',
96
97
// ARIA property indicating whether the element has a popup.
98
// Value: one of {true, false}.
99
HASPOPUP: 'haspopup',
100
101
// ARIA state indicating that the element is not visible or perceivable
102
// to any user. Value: one of {true, false}.
103
HIDDEN: 'hidden',
104
105
// ARIA state indicating that the entered value does not conform. Value:
106
// one of {false, true, 'grammar', 'spelling'}
107
INVALID: 'invalid',
108
109
// ARIA property that provides a label to override any other text, value, or
110
// contents used to describe this element. Value: string.
111
LABEL: 'label',
112
113
// ARIA property for setting the element which labels another element.
114
// Value: space-separated IDs of elements.
115
LABELLEDBY: 'labelledby',
116
117
// ARIA property for setting the level of an element in the hierarchy.
118
// Value: integer.
119
LEVEL: 'level',
120
121
// ARIA property indicating that an element will be updated, and
122
// describes the types of updates the user agents, assistive technologies,
123
// and user can expect from the live region. Value: one of {'off', 'polite',
124
// 'assertive'}.
125
LIVE: 'live',
126
127
// ARIA property indicating whether a text box can accept multiline input.
128
// Value: one of {true, false}.
129
MULTILINE: 'multiline',
130
131
// ARIA property indicating if the user may select more than one item.
132
// Value: one of {true, false}.
133
MULTISELECTABLE: 'multiselectable',
134
135
// ARIA property indicating if the element is horizontal or vertical.
136
// Value: one of {'vertical', 'horizontal'}.
137
ORIENTATION: 'orientation',
138
139
// ARIA property creating a visual, functional, or contextual parent/child
140
// relationship when the DOM hierarchy can't be used to represent it.
141
// Value: Space-separated IDs of elements.
142
OWNS: 'owns',
143
144
// ARIA property that defines an element's number of position in a list.
145
// Value: integer.
146
POSINSET: 'posinset',
147
148
// ARIA state for a pressed item.
149
// Value: one of {true, false, undefined, 'mixed'}.
150
PRESSED: 'pressed',
151
152
// ARIA property indicating that an element is not editable.
153
// Value: one of {true, false}.
154
READONLY: 'readonly',
155
156
// ARIA property indicating that change notifications within this subtree
157
// of a live region should be announced. Value: one of {'additions',
158
// 'removals', 'text', 'all', 'additions text'}.
159
RELEVANT: 'relevant',
160
161
// ARIA property indicating that user input is required on this element
162
// before a form may be submitted. Value: one of {true, false}.
163
REQUIRED: 'required',
164
165
// ARIA state that defines an element's row index or position with respect
166
// to the total number of rows within a table, grid, or treegrid.
167
// Value: number.
168
ROWINDEX: 'rowindex',
169
170
// ARIA state for setting the currently selected item in the list.
171
// Value: one of {true, false, undefined}.
172
SELECTED: 'selected',
173
174
// ARIA property defining the number of items in a list. Value: integer.
175
SETSIZE: 'setsize',
176
177
// ARIA property indicating if items are sorted. Value: one of {'ascending',
178
// 'descending', 'none', 'other'}.
179
SORT: 'sort',
180
181
// ARIA property for slider maximum value. Value: number.
182
VALUEMAX: 'valuemax',
183
184
// ARIA property for slider minimum value. Value: number.
185
VALUEMIN: 'valuemin',
186
187
// ARIA property for slider active value. Value: number.
188
VALUENOW: 'valuenow',
189
190
// ARIA property for slider active value represented as text.
191
// Value: string.
192
VALUETEXT: 'valuetext'
193
};
194
195
196
/**
197
* ARIA state values for AutoCompleteValues.
198
* @enum {string}
199
*/
200
goog.a11y.aria.AutoCompleteValues = {
201
// The system provides text after the caret as a suggestion
202
// for how to complete the field.
203
INLINE: 'inline',
204
// A list of choices appears from which the user can choose,
205
// but the edit box retains focus.
206
LIST: 'list',
207
// A list of choices appears and the currently selected suggestion
208
// also appears inline.
209
BOTH: 'both',
210
// No input completion suggestions are provided.
211
NONE: 'none'
212
};
213
214
215
/**
216
* ARIA state values for DropEffectValues.
217
* @enum {string}
218
*/
219
goog.a11y.aria.DropEffectValues = {
220
// A duplicate of the source object will be dropped into the target.
221
COPY: 'copy',
222
// The source object will be removed from its current location
223
// and dropped into the target.
224
MOVE: 'move',
225
// A reference or shortcut to the dragged object
226
// will be created in the target object.
227
LINK: 'link',
228
// A function supported by the drop target is
229
// executed, using the drag source as an input.
230
EXECUTE: 'execute',
231
// There is a popup menu or dialog that allows the user to choose
232
// one of the drag operations (copy, move, link, execute) and any other
233
// drag functionality, such as cancel.
234
POPUP: 'popup',
235
// No operation can be performed; effectively
236
// cancels the drag operation if an attempt is made to drop on this object.
237
NONE: 'none'
238
};
239
240
241
/**
242
* ARIA state values for LivePriority.
243
* @enum {string}
244
*/
245
goog.a11y.aria.LivePriority = {
246
// Updates to the region will not be presented to the user
247
// unless the assitive technology is currently focused on that region.
248
OFF: 'off',
249
// (Background change) Assistive technologies SHOULD announce
250
// updates at the next graceful opportunity, such as at the end of
251
// speaking the current sentence or when the user pauses typing.
252
POLITE: 'polite',
253
// This information has the highest priority and assistive
254
// technologies SHOULD notify the user immediately.
255
// Because an interruption may disorient users or cause them to not complete
256
// their current task, authors SHOULD NOT use the assertive value unless the
257
// interruption is imperative.
258
ASSERTIVE: 'assertive'
259
};
260
261
262
/**
263
* ARIA state values for OrientationValues.
264
* @enum {string}
265
*/
266
goog.a11y.aria.OrientationValues = {
267
// The element is oriented vertically.
268
VERTICAL: 'vertical',
269
// The element is oriented horizontally.
270
HORIZONTAL: 'horizontal'
271
};
272
273
274
/**
275
* ARIA state values for RelevantValues.
276
* @enum {string}
277
*/
278
goog.a11y.aria.RelevantValues = {
279
// Element nodes are added to the DOM within the live region.
280
ADDITIONS: 'additions',
281
// Text or element nodes within the live region are removed from the DOM.
282
REMOVALS: 'removals',
283
// Text is added to any DOM descendant nodes of the live region.
284
TEXT: 'text',
285
// Equivalent to the combination of all values, "additions removals text".
286
ALL: 'all'
287
};
288
289
290
/**
291
* ARIA state values for SortValues.
292
* @enum {string}
293
*/
294
goog.a11y.aria.SortValues = {
295
// Items are sorted in ascending order by this column.
296
ASCENDING: 'ascending',
297
// Items are sorted in descending order by this column.
298
DESCENDING: 'descending',
299
// There is no defined sort applied to the column.
300
NONE: 'none',
301
// A sort algorithm other than ascending or descending has been applied.
302
OTHER: 'other'
303
};
304
305
306
/**
307
* ARIA state values for CheckedValues.
308
* @enum {string}
309
*/
310
goog.a11y.aria.CheckedValues = {
311
// The selectable element is checked.
312
TRUE: 'true',
313
// The selectable element is not checked.
314
FALSE: 'false',
315
// Indicates a mixed mode value for a tri-state
316
// checkbox or menuitemcheckbox.
317
MIXED: 'mixed',
318
// The element does not support being checked.
319
UNDEFINED: 'undefined'
320
};
321
322
323
/**
324
* ARIA state values for ExpandedValues.
325
* @enum {string}
326
*/
327
goog.a11y.aria.ExpandedValues = {
328
// The element, or another grouping element it controls, is expanded.
329
TRUE: 'true',
330
// The element, or another grouping element it controls, is collapsed.
331
FALSE: 'false',
332
// The element, or another grouping element
333
// it controls, is neither expandable nor collapsible; all its
334
// child elements are shown or there are no child elements.
335
UNDEFINED: 'undefined'
336
};
337
338
339
/**
340
* ARIA state values for GrabbedValues.
341
* @enum {string}
342
*/
343
goog.a11y.aria.GrabbedValues = {
344
// Indicates that the element has been "grabbed" for dragging.
345
TRUE: 'true',
346
// Indicates that the element supports being dragged.
347
FALSE: 'false',
348
// Indicates that the element does not support being dragged.
349
UNDEFINED: 'undefined'
350
};
351
352
353
/**
354
* ARIA state values for InvalidValues.
355
* @enum {string}
356
*/
357
goog.a11y.aria.InvalidValues = {
358
// There are no detected errors in the value.
359
FALSE: 'false',
360
// The value entered by the user has failed validation.
361
TRUE: 'true',
362
// A grammatical error was detected.
363
GRAMMAR: 'grammar',
364
// A spelling error was detected.
365
SPELLING: 'spelling'
366
};
367
368
369
/**
370
* ARIA state values for PressedValues.
371
* @enum {string}
372
*/
373
goog.a11y.aria.PressedValues = {
374
// The element is pressed.
375
TRUE: 'true',
376
// The element supports being pressed but is not currently pressed.
377
FALSE: 'false',
378
// Indicates a mixed mode value for a tri-state toggle button.
379
MIXED: 'mixed',
380
// The element does not support being pressed.
381
UNDEFINED: 'undefined'
382
};
383
384
385
/**
386
* ARIA state values for SelectedValues.
387
* @enum {string}
388
*/
389
goog.a11y.aria.SelectedValues = {
390
// The selectable element is selected.
391
TRUE: 'true',
392
// The selectable element is not selected.
393
FALSE: 'false',
394
// The element is not selectable.
395
UNDEFINED: 'undefined'
396
};
397
398