Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/closure/goog/a11y/aria/datatables.js
4248 views
1
/**
2
* @license
3
* Copyright The Closure Library Authors.
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
8
9
/**
10
* @fileoverview The file contains data tables generated from the ARIA
11
* standard schema http://www.w3.org/TR/wai-aria/.
12
*
13
* This is auto-generated code. Do not manually edit!
14
*/
15
16
goog.module('goog.a11y.aria.datatables');
17
goog.module.declareLegacyNamespace();
18
19
const State = goog.require('goog.a11y.aria.State');
20
21
22
/**
23
* A map that contains mapping between an ARIA state and the default value
24
* for it. Note that not all ARIA states have default values.
25
*
26
* @type {!Object<!State|string, string|boolean|number>|undefined}
27
*/
28
let defaultStateValueMap;
29
30
31
/**
32
* A method that creates a map that contains mapping between an ARIA state and
33
* the default value for it. Note that not all ARIA states have default values.
34
*
35
* @return {!Object<!State|string, string|boolean|number>}
36
* The names for each of the notification methods.
37
*/
38
exports.getDefaultValuesMap = function() {
39
if (!defaultStateValueMap) {
40
defaultStateValueMap = {
41
[State.ATOMIC]: false,
42
[State.AUTOCOMPLETE]: 'none',
43
[State.DROPEFFECT]: 'none',
44
[State.HASPOPUP]: false,
45
[State.LIVE]: 'off',
46
[State.MULTILINE]: false,
47
[State.MULTISELECTABLE]: false,
48
[State.ORIENTATION]: 'vertical',
49
[State.READONLY]: false,
50
[State.RELEVANT]: 'additions text',
51
[State.REQUIRED]: false,
52
[State.SORT]: 'none',
53
[State.BUSY]: false,
54
[State.DISABLED]: false,
55
[State.HIDDEN]: false,
56
[State.INVALID]: 'false',
57
};
58
}
59
60
return defaultStateValueMap;
61
};
62
63