Path: blob/trunk/third_party/closure/goog/a11y/aria/attributes.js
4584 views
/**1* @license2* Copyright The Closure Library Authors.3* SPDX-License-Identifier: Apache-2.04*/567/**8* @fileoverview The file contains generated enumerations for ARIA states9* and properties as defined by W3C ARIA standard:10* http://www.w3.org/TR/wai-aria/.11*12* This is auto-generated code. Do not manually edit! For more details13* about how to edit it via the generator check go/closure-ariagen.14*/1516goog.provide('goog.a11y.aria.AutoCompleteValues');17goog.provide('goog.a11y.aria.CheckedValues');18goog.provide('goog.a11y.aria.DropEffectValues');19goog.provide('goog.a11y.aria.ExpandedValues');20goog.provide('goog.a11y.aria.GrabbedValues');21goog.provide('goog.a11y.aria.InvalidValues');22goog.provide('goog.a11y.aria.LivePriority');23goog.provide('goog.a11y.aria.OrientationValues');24goog.provide('goog.a11y.aria.PressedValues');25goog.provide('goog.a11y.aria.RelevantValues');26goog.provide('goog.a11y.aria.SelectedValues');27goog.provide('goog.a11y.aria.SortValues');28goog.provide('goog.a11y.aria.State');293031/**32* ARIA states and properties.33* @enum {string}34*/35goog.a11y.aria.State = {36// ARIA property for setting the currently active descendant of an element,37// for example the selected item in a list box. Value: ID of an element.38ACTIVEDESCENDANT: 'activedescendant',3940// ARIA property that, if true, indicates that all of a changed region should41// be presented, instead of only parts. Value: one of {true, false}.42ATOMIC: 'atomic',4344// ARIA property to specify that input completion is provided. Value:45// one of {'inline', 'list', 'both', 'none'}.46AUTOCOMPLETE: 'autocomplete',4748// ARIA state to indicate that an element and its subtree are being updated.49// Value: one of {true, false}.50BUSY: 'busy',5152// ARIA state for a checked item. Value: one of {'true', 'false', 'mixed',53// undefined}.54CHECKED: 'checked',5556// ARIA state that defines an element's column index or position with respect57// to the total number of columns within a table, grid, or treegrid.58// Value: number.59COLINDEX: 'colindex',6061// ARIA property that identifies the element or elements whose contents or62// presence are controlled by this element.63// Value: space-separated IDs of other elements.64CONTROLS: 'controls',6566// ARIA property that identifies the element that represents the current67// item within a container or set of related elements.68// Value: one of {'page', 'step', 'location', 'date', 'time', true, false}.69CURRENT: 'current',7071// ARIA property that identifies the element or elements that describe72// this element. Value: space-separated IDs of other elements.73DESCRIBEDBY: 'describedby',7475// ARIA state for a disabled item. Value: one of {true, false}.76DISABLED: 'disabled',7778// ARIA property that indicates what functions can be performed when a79// dragged object is released on the drop target. Value: one of80// {'copy', 'move', 'link', 'execute', 'popup', 'none'}.81DROPEFFECT: 'dropeffect',8283// ARIA state for setting whether the element like a tree node is expanded.84// Value: one of {true, false, undefined}.85EXPANDED: 'expanded',8687// ARIA property that identifies the next element (or elements) in the88// recommended reading order of content. Value: space-separated ids of89// elements to flow to.90FLOWTO: 'flowto',9192// ARIA state that indicates an element's "grabbed" state in drag-and-drop.93// Value: one of {true, false, undefined}.94GRABBED: 'grabbed',9596// ARIA property indicating whether the element has a popup.97// Value: one of {true, false}.98HASPOPUP: 'haspopup',99100// ARIA state indicating that the element is not visible or perceivable101// to any user. Value: one of {true, false}.102HIDDEN: 'hidden',103104// ARIA state indicating that the entered value does not conform. Value:105// one of {false, true, 'grammar', 'spelling'}106INVALID: 'invalid',107108// ARIA property that provides a label to override any other text, value, or109// contents used to describe this element. Value: string.110LABEL: 'label',111112// ARIA property for setting the element which labels another element.113// Value: space-separated IDs of elements.114LABELLEDBY: 'labelledby',115116// ARIA property for setting the level of an element in the hierarchy.117// Value: integer.118LEVEL: 'level',119120// ARIA property indicating that an element will be updated, and121// describes the types of updates the user agents, assistive technologies,122// and user can expect from the live region. Value: one of {'off', 'polite',123// 'assertive'}.124LIVE: 'live',125126// ARIA property indicating whether a text box can accept multiline input.127// Value: one of {true, false}.128MULTILINE: 'multiline',129130// ARIA property indicating if the user may select more than one item.131// Value: one of {true, false}.132MULTISELECTABLE: 'multiselectable',133134// ARIA property indicating if the element is horizontal or vertical.135// Value: one of {'vertical', 'horizontal'}.136ORIENTATION: 'orientation',137138// ARIA property creating a visual, functional, or contextual parent/child139// relationship when the DOM hierarchy can't be used to represent it.140// Value: Space-separated IDs of elements.141OWNS: 'owns',142143// ARIA property that defines an element's number of position in a list.144// Value: integer.145POSINSET: 'posinset',146147// ARIA state for a pressed item.148// Value: one of {true, false, undefined, 'mixed'}.149PRESSED: 'pressed',150151// ARIA property indicating that an element is not editable.152// Value: one of {true, false}.153READONLY: 'readonly',154155// ARIA property indicating that change notifications within this subtree156// of a live region should be announced. Value: one of {'additions',157// 'removals', 'text', 'all', 'additions text'}.158RELEVANT: 'relevant',159160// ARIA property indicating that user input is required on this element161// before a form may be submitted. Value: one of {true, false}.162REQUIRED: 'required',163164// ARIA state that defines an element's row index or position with respect165// to the total number of rows within a table, grid, or treegrid.166// Value: number.167ROWINDEX: 'rowindex',168169// ARIA state for setting the currently selected item in the list.170// Value: one of {true, false, undefined}.171SELECTED: 'selected',172173// ARIA property defining the number of items in a list. Value: integer.174SETSIZE: 'setsize',175176// ARIA property indicating if items are sorted. Value: one of {'ascending',177// 'descending', 'none', 'other'}.178SORT: 'sort',179180// ARIA property for slider maximum value. Value: number.181VALUEMAX: 'valuemax',182183// ARIA property for slider minimum value. Value: number.184VALUEMIN: 'valuemin',185186// ARIA property for slider active value. Value: number.187VALUENOW: 'valuenow',188189// ARIA property for slider active value represented as text.190// Value: string.191VALUETEXT: 'valuetext'192};193194195/**196* ARIA state values for AutoCompleteValues.197* @enum {string}198*/199goog.a11y.aria.AutoCompleteValues = {200// The system provides text after the caret as a suggestion201// for how to complete the field.202INLINE: 'inline',203// A list of choices appears from which the user can choose,204// but the edit box retains focus.205LIST: 'list',206// A list of choices appears and the currently selected suggestion207// also appears inline.208BOTH: 'both',209// No input completion suggestions are provided.210NONE: 'none'211};212213214/**215* ARIA state values for DropEffectValues.216* @enum {string}217*/218goog.a11y.aria.DropEffectValues = {219// A duplicate of the source object will be dropped into the target.220COPY: 'copy',221// The source object will be removed from its current location222// and dropped into the target.223MOVE: 'move',224// A reference or shortcut to the dragged object225// will be created in the target object.226LINK: 'link',227// A function supported by the drop target is228// executed, using the drag source as an input.229EXECUTE: 'execute',230// There is a popup menu or dialog that allows the user to choose231// one of the drag operations (copy, move, link, execute) and any other232// drag functionality, such as cancel.233POPUP: 'popup',234// No operation can be performed; effectively235// cancels the drag operation if an attempt is made to drop on this object.236NONE: 'none'237};238239240/**241* ARIA state values for LivePriority.242* @enum {string}243*/244goog.a11y.aria.LivePriority = {245// Updates to the region will not be presented to the user246// unless the assitive technology is currently focused on that region.247OFF: 'off',248// (Background change) Assistive technologies SHOULD announce249// updates at the next graceful opportunity, such as at the end of250// speaking the current sentence or when the user pauses typing.251POLITE: 'polite',252// This information has the highest priority and assistive253// technologies SHOULD notify the user immediately.254// Because an interruption may disorient users or cause them to not complete255// their current task, authors SHOULD NOT use the assertive value unless the256// interruption is imperative.257ASSERTIVE: 'assertive'258};259260261/**262* ARIA state values for OrientationValues.263* @enum {string}264*/265goog.a11y.aria.OrientationValues = {266// The element is oriented vertically.267VERTICAL: 'vertical',268// The element is oriented horizontally.269HORIZONTAL: 'horizontal'270};271272273/**274* ARIA state values for RelevantValues.275* @enum {string}276*/277goog.a11y.aria.RelevantValues = {278// Element nodes are added to the DOM within the live region.279ADDITIONS: 'additions',280// Text or element nodes within the live region are removed from the DOM.281REMOVALS: 'removals',282// Text is added to any DOM descendant nodes of the live region.283TEXT: 'text',284// Equivalent to the combination of all values, "additions removals text".285ALL: 'all'286};287288289/**290* ARIA state values for SortValues.291* @enum {string}292*/293goog.a11y.aria.SortValues = {294// Items are sorted in ascending order by this column.295ASCENDING: 'ascending',296// Items are sorted in descending order by this column.297DESCENDING: 'descending',298// There is no defined sort applied to the column.299NONE: 'none',300// A sort algorithm other than ascending or descending has been applied.301OTHER: 'other'302};303304305/**306* ARIA state values for CheckedValues.307* @enum {string}308*/309goog.a11y.aria.CheckedValues = {310// The selectable element is checked.311TRUE: 'true',312// The selectable element is not checked.313FALSE: 'false',314// Indicates a mixed mode value for a tri-state315// checkbox or menuitemcheckbox.316MIXED: 'mixed',317// The element does not support being checked.318UNDEFINED: 'undefined'319};320321322/**323* ARIA state values for ExpandedValues.324* @enum {string}325*/326goog.a11y.aria.ExpandedValues = {327// The element, or another grouping element it controls, is expanded.328TRUE: 'true',329// The element, or another grouping element it controls, is collapsed.330FALSE: 'false',331// The element, or another grouping element332// it controls, is neither expandable nor collapsible; all its333// child elements are shown or there are no child elements.334UNDEFINED: 'undefined'335};336337338/**339* ARIA state values for GrabbedValues.340* @enum {string}341*/342goog.a11y.aria.GrabbedValues = {343// Indicates that the element has been "grabbed" for dragging.344TRUE: 'true',345// Indicates that the element supports being dragged.346FALSE: 'false',347// Indicates that the element does not support being dragged.348UNDEFINED: 'undefined'349};350351352/**353* ARIA state values for InvalidValues.354* @enum {string}355*/356goog.a11y.aria.InvalidValues = {357// There are no detected errors in the value.358FALSE: 'false',359// The value entered by the user has failed validation.360TRUE: 'true',361// A grammatical error was detected.362GRAMMAR: 'grammar',363// A spelling error was detected.364SPELLING: 'spelling'365};366367368/**369* ARIA state values for PressedValues.370* @enum {string}371*/372goog.a11y.aria.PressedValues = {373// The element is pressed.374TRUE: 'true',375// The element supports being pressed but is not currently pressed.376FALSE: 'false',377// Indicates a mixed mode value for a tri-state toggle button.378MIXED: 'mixed',379// The element does not support being pressed.380UNDEFINED: 'undefined'381};382383384/**385* ARIA state values for SelectedValues.386* @enum {string}387*/388goog.a11y.aria.SelectedValues = {389// The selectable element is selected.390TRUE: 'true',391// The selectable element is not selected.392FALSE: 'false',393// The element is not selectable.394UNDEFINED: 'undefined'395};396397398