/** * Various accessibility roles (see https://www.w3.org/TR/wai-aria/roles for details) */ export enum ROLES { // special role meaning that there is no particular ARIA role assigned // (e.g. a generic container, displayed text) NONE = 'none', // widgets or composite widgets ALERT = 'alert', ALERTDIALOG = 'alertdialog', BUTTON = 'button', CHECKBOX = 'checkbox', DIALOG = 'dialog', GRIDCELL = 'gridcell', LINK = 'link', LOG = 'log', MARQUEE = 'marquee', MENUITEM = 'menuitem', MENUITEMCHECKBOX = 'menuitemcheckbox', MENUITEMRADIO = 'menuitemradio', MULTILINETEXTBOX = 'multilinetextbox', SINGLESELECTOPTION = 'singleselectoption', MULTISELECTOPTION = 'multiselectoption', PROGRESSBAR = 'progressbar', RADIO = 'radio', SCROLLBAR = 'scrollbar', SEARCHBOX = 'searchbox', SINGLELINETEXTBOX = 'singlelinetextbox', SLIDER = 'slider', SPINBUTTON = 'spinbutton', STATUS = 'status', SWITCH = 'switch', TAB = 'tab', TABPANEL = 'tabpanel', TIMER = 'timer', TOOLTIP = 'tooltip', TREEITEM = 'treeitem', // composite widgets COMBOBOX = 'combobox', GRID = 'grid', MULTISELECTLISTBOX = 'multiselectlistbox', SINGLESELECTLISTBOX = 'singleselectlistbox', MENU = 'menu', MENUBAR = 'menubar', RADIOGROUP = 'radiogroup', TABLIST = 'tablist', TREE = 'tree', TREEGRID = 'treegrid', // document structure ARTICLE = 'article', COLUMNHEADER = 'columnheader', CELL = 'cell', DEFINITION = 'definition', DIRECTORY = 'directory', DOCUMENT = 'document', FEED = 'feed', GROUP = 'group', // the aria role is just "heading" but to convert the role to a tag, the additional information // of which level is needed as well HEADING1 = 'heading1', HEADING2 = 'heading2', HEADING3 = 'heading3', HEADING4 = 'heading4', HEADING5 = 'heading5', HEADING6 = 'heading6', IMG = 'img', UNORDEREDLIST = 'unorderedlist', ORDEREDLIST = 'orderedlist', LISTITEM = 'listitem', MATH = 'math', NOTE = 'note', PRESENTATION = 'presentation', PARAGRAPH = 'paragraph', REGION = 'region', ROW = 'row', ROWHEADER = 'rowheader', SEPARATOR = 'separator', TABLE = 'table', TABLEBODY = 'tableBody', TABLEFOOT = 'tableFoot', TABLEHEAD = 'tableHead', TERM = 'term', TOOLBAR = 'toolbar', FIGURE = 'figure', FIGCAPTION = 'figcaption', // landmarks APPLICATION = 'application', BANNER = 'banner', COMPEMENTARY = 'complementary', CONTENTINFO = 'contentinfo', FORM = 'form', MAIN = 'main', NAVIGATION = 'navigation', SEARCH = 'search', // support for formatted text SPAN = 'span', FORMAT_TEXT_BOLD = 'bold', FORMAT_TEXT_CODE = 'code', FORMAT_TEXT_DELETE = 'delete', FORMAT_TEXT_EMPHASIZE = 'emphasize', FORMAT_TEXT_ITALIC = 'italic', FORMAT_TEXT_INSERT = 'insert', FORMAT_TEXT_KBD = 'keybordtext', FORMAT_TEXT_PREFORMAT = 'preformated', FORMAT_TEXT_STRIKETHROUGH = 'strikethrough', FORMAT_TEXT_SAMPLE = 'sample', FORMAT_TEXT_SMALL = 'small', FORMAT_TEXT_STRONG = 'strong', FORMAT_TEXT_SUBSCRIPT = 'subscript', FORMAT_TEXT_SUPERSCRIPT = 'superscript', FORMAT_TEXT_TIME = 'time', FORMAT_TEXT_UNDERLINE = 'underline', FORMAT_TEXT_VARIABLE = 'variable', } // roles not present in here use