attributes.js 12 KB

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