@qualweb/util 0.0.0-develop-20231124154536 → 0.0.0-develop-20241204121833
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__webpack/util.bundle.js +1 -0
- package/dist/accessibilityUtils/accessibilityUtils.d.ts +44 -0
- package/dist/accessibilityUtils/accessibilityUtils.d.ts.map +1 -0
- package/dist/accessibilityUtils/accessibilityUtils.js +292 -0
- package/dist/accessibilityUtils/allowsNameFromContent.d.ts +4 -0
- package/dist/accessibilityUtils/allowsNameFromContent.d.ts.map +1 -0
- package/dist/accessibilityUtils/allowsNameFromContent.js +9 -0
- package/dist/accessibilityUtils/ariaAttributesRoles.d.ts +11 -0
- package/dist/accessibilityUtils/ariaAttributesRoles.d.ts.map +1 -0
- package/dist/accessibilityUtils/ariaAttributesRoles.js +293 -0
- package/dist/accessibilityUtils/constants.d.ts +19 -0
- package/dist/accessibilityUtils/constants.d.ts.map +1 -0
- package/dist/accessibilityUtils/constants.js +244 -0
- package/dist/accessibilityUtils/elementHasGlobalARIAPropertyOrAttribute.d.ts +4 -0
- package/dist/accessibilityUtils/elementHasGlobalARIAPropertyOrAttribute.d.ts.map +1 -0
- package/dist/accessibilityUtils/elementHasGlobalARIAPropertyOrAttribute.js +17 -0
- package/dist/accessibilityUtils/elementHasValidRole.d.ts +4 -0
- package/dist/accessibilityUtils/elementHasValidRole.d.ts.map +1 -0
- package/dist/accessibilityUtils/elementHasValidRole.js +22 -0
- package/dist/accessibilityUtils/getAccessibleName.d.ts +4 -0
- package/dist/accessibilityUtils/getAccessibleName.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAccessibleName.js +10 -0
- package/dist/accessibilityUtils/getAccessibleNameRecursion.d.ts +4 -0
- package/dist/accessibilityUtils/getAccessibleNameRecursion.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAccessibleNameRecursion.js +275 -0
- package/dist/accessibilityUtils/getAccessibleNameSVG.d.ts +4 -0
- package/dist/accessibilityUtils/getAccessibleNameSVG.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAccessibleNameSVG.js +10 -0
- package/dist/accessibilityUtils/getAccessibleNameSVGRecursion.d.ts +4 -0
- package/dist/accessibilityUtils/getAccessibleNameSVGRecursion.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAccessibleNameSVGRecursion.js +124 -0
- package/dist/accessibilityUtils/getAccessibleNameSelector.d.ts +4 -0
- package/dist/accessibilityUtils/getAccessibleNameSelector.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAccessibleNameSelector.js +200 -0
- package/dist/accessibilityUtils/getAriaOwner.d.ts +4 -0
- package/dist/accessibilityUtils/getAriaOwner.d.ts.map +1 -0
- package/dist/accessibilityUtils/getAriaOwner.js +21 -0
- package/dist/accessibilityUtils/getDefaultName.d.ts +4 -0
- package/dist/accessibilityUtils/getDefaultName.d.ts.map +1 -0
- package/dist/accessibilityUtils/getDefaultName.js +20 -0
- package/dist/accessibilityUtils/getDisabledWidgets.d.ts +4 -0
- package/dist/accessibilityUtils/getDisabledWidgets.d.ts.map +1 -0
- package/dist/accessibilityUtils/getDisabledWidgets.js +26 -0
- package/dist/accessibilityUtils/getElementRole.d.ts +4 -0
- package/dist/accessibilityUtils/getElementRole.d.ts.map +1 -0
- package/dist/accessibilityUtils/getElementRole.js +7 -0
- package/dist/accessibilityUtils/getElementRoleAName.d.ts +4 -0
- package/dist/accessibilityUtils/getElementRoleAName.d.ts.map +1 -0
- package/dist/accessibilityUtils/getElementRoleAName.js +14 -0
- package/dist/accessibilityUtils/getElementValidExplicitRole.d.ts +4 -0
- package/dist/accessibilityUtils/getElementValidExplicitRole.d.ts.map +1 -0
- package/dist/accessibilityUtils/getElementValidExplicitRole.js +22 -0
- package/dist/accessibilityUtils/getImplicitRole.d.ts +4 -0
- package/dist/accessibilityUtils/getImplicitRole.d.ts.map +1 -0
- package/dist/accessibilityUtils/getImplicitRole.js +187 -0
- package/dist/accessibilityUtils/getLinkContext.d.ts +4 -0
- package/dist/accessibilityUtils/getLinkContext.d.ts.map +1 -0
- package/dist/accessibilityUtils/getLinkContext.js +45 -0
- package/dist/accessibilityUtils/getOwnedElements.d.ts +4 -0
- package/dist/accessibilityUtils/getOwnedElements.d.ts.map +1 -0
- package/dist/accessibilityUtils/getOwnedElements.js +42 -0
- package/dist/accessibilityUtils/getOwnerElement.d.ts +4 -0
- package/dist/accessibilityUtils/getOwnerElement.d.ts.map +1 -0
- package/dist/accessibilityUtils/getOwnerElement.js +19 -0
- package/dist/accessibilityUtils/getTextFromCss.d.ts +4 -0
- package/dist/accessibilityUtils/getTextFromCss.d.ts.map +1 -0
- package/dist/accessibilityUtils/getTextFromCss.js +8 -0
- package/dist/accessibilityUtils/getValueFromEmbeddedControl.d.ts +4 -0
- package/dist/accessibilityUtils/getValueFromEmbeddedControl.d.ts.map +1 -0
- package/dist/accessibilityUtils/getValueFromEmbeddedControl.js +75 -0
- package/dist/accessibilityUtils/implicitRoles.d.ts +10 -0
- package/dist/accessibilityUtils/implicitRoles.d.ts.map +1 -0
- package/dist/accessibilityUtils/implicitRoles.js +494 -0
- package/dist/accessibilityUtils/isDataTable.d.ts +4 -0
- package/dist/accessibilityUtils/isDataTable.d.ts.map +1 -0
- package/dist/accessibilityUtils/isDataTable.js +14 -0
- package/dist/accessibilityUtils/isElementChildPresentational.d.ts +4 -0
- package/dist/accessibilityUtils/isElementChildPresentational.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementChildPresentational.js +17 -0
- package/dist/accessibilityUtils/isElementChildPresentationalAux.d.ts +4 -0
- package/dist/accessibilityUtils/isElementChildPresentationalAux.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementChildPresentationalAux.js +17 -0
- package/dist/accessibilityUtils/isElementControl.d.ts +4 -0
- package/dist/accessibilityUtils/isElementControl.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementControl.js +8 -0
- package/dist/accessibilityUtils/isElementFocusable.d.ts +4 -0
- package/dist/accessibilityUtils/isElementFocusable.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementFocusable.js +21 -0
- package/dist/accessibilityUtils/isElementFocusableByDefault.d.ts +4 -0
- package/dist/accessibilityUtils/isElementFocusableByDefault.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementFocusableByDefault.js +47 -0
- package/dist/accessibilityUtils/isElementInAT.d.ts +4 -0
- package/dist/accessibilityUtils/isElementInAT.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementInAT.js +71 -0
- package/dist/accessibilityUtils/isElementReferencedByAriaLabel.d.ts +4 -0
- package/dist/accessibilityUtils/isElementReferencedByAriaLabel.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementReferencedByAriaLabel.js +25 -0
- package/dist/accessibilityUtils/isElementWidget.d.ts +4 -0
- package/dist/accessibilityUtils/isElementWidget.d.ts.map +1 -0
- package/dist/accessibilityUtils/isElementWidget.js +8 -0
- package/dist/accessibilityUtils/isFocusableBrowser.d.ts +4 -0
- package/dist/accessibilityUtils/isFocusableBrowser.d.ts.map +1 -0
- package/dist/accessibilityUtils/isFocusableBrowser.js +8 -0
- package/dist/accessibilityUtils/isPartOfSequentialFocusNavigation.d.ts +4 -0
- package/dist/accessibilityUtils/isPartOfSequentialFocusNavigation.d.ts.map +1 -0
- package/dist/accessibilityUtils/isPartOfSequentialFocusNavigation.js +13 -0
- package/dist/accessibilityUtils/landmarkIsTopLevel.d.ts +4 -0
- package/dist/accessibilityUtils/landmarkIsTopLevel.d.ts.map +1 -0
- package/dist/accessibilityUtils/landmarkIsTopLevel.js +16 -0
- package/dist/accessibilityUtils/language.json +8129 -0
- package/dist/accessibilityUtils/roles.d.ts +15 -0
- package/dist/accessibilityUtils/roles.d.ts.map +1 -0
- package/dist/accessibilityUtils/roles.js +2787 -0
- package/dist/applicability/applicability.d.ts +37 -0
- package/dist/applicability/applicability.d.ts.map +1 -0
- package/dist/applicability/applicability.js +490 -0
- package/dist/cache.d.ts +4 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +45 -0
- package/dist/domUtils/audio.json +33 -0
- package/dist/domUtils/constants.d.ts +6 -0
- package/dist/domUtils/constants.d.ts.map +1 -0
- package/dist/domUtils/constants.js +49 -0
- package/dist/domUtils/domUtils.d.ts +28 -0
- package/dist/domUtils/domUtils.d.ts.map +1 -0
- package/dist/domUtils/domUtils.js +124 -0
- package/dist/domUtils/elementHasContent.d.ts +4 -0
- package/dist/domUtils/elementHasContent.d.ts.map +1 -0
- package/dist/domUtils/elementHasContent.js +41 -0
- package/dist/domUtils/elementHasOnePixel.d.ts +4 -0
- package/dist/domUtils/elementHasOnePixel.d.ts.map +1 -0
- package/dist/domUtils/elementHasOnePixel.js +13 -0
- package/dist/domUtils/elementIdIsReferenced.d.ts +4 -0
- package/dist/domUtils/elementIdIsReferenced.d.ts.map +1 -0
- package/dist/domUtils/elementIdIsReferenced.js +13 -0
- package/dist/domUtils/getElementReferencedByHREF.d.ts +4 -0
- package/dist/domUtils/getElementReferencedByHREF.d.ts.map +1 -0
- package/dist/domUtils/getElementReferencedByHREF.js +22 -0
- package/dist/domUtils/getTextSize.d.ts +3 -0
- package/dist/domUtils/getTextSize.d.ts.map +1 -0
- package/dist/domUtils/getTextSize.js +21 -0
- package/dist/domUtils/getTrimmedText.d.ts +4 -0
- package/dist/domUtils/getTrimmedText.d.ts.map +1 -0
- package/dist/domUtils/getTrimmedText.js +13 -0
- package/dist/domUtils/getVideoMetadata.d.ts +4 -0
- package/dist/domUtils/getVideoMetadata.d.ts.map +1 -0
- package/dist/domUtils/getVideoMetadata.js +22 -0
- package/dist/domUtils/image.json +122 -0
- package/dist/domUtils/isElementADescendantOf.d.ts +4 -0
- package/dist/domUtils/isElementADescendantOf.d.ts.map +1 -0
- package/dist/domUtils/isElementADescendantOf.js +23 -0
- package/dist/domUtils/isElementADescendantOfExplicitRole.d.ts +4 -0
- package/dist/domUtils/isElementADescendantOfExplicitRole.d.ts.map +1 -0
- package/dist/domUtils/isElementADescendantOfExplicitRole.js +23 -0
- package/dist/domUtils/isElementHidden.d.ts +4 -0
- package/dist/domUtils/isElementHidden.d.ts.map +1 -0
- package/dist/domUtils/isElementHidden.js +17 -0
- package/dist/domUtils/isElementHiddenByCSS.d.ts +4 -0
- package/dist/domUtils/isElementHiddenByCSS.d.ts.map +1 -0
- package/dist/domUtils/isElementHiddenByCSS.js +15 -0
- package/dist/domUtils/isElementHiddenByCSSAux.d.ts +4 -0
- package/dist/domUtils/isElementHiddenByCSSAux.d.ts.map +1 -0
- package/dist/domUtils/isElementHiddenByCSSAux.js +10 -0
- package/dist/domUtils/isElementVisible.d.ts +4 -0
- package/dist/domUtils/isElementVisible.d.ts.map +1 -0
- package/dist/domUtils/isElementVisible.js +38 -0
- package/dist/domUtils/isHumanLanguage.d.ts +2 -0
- package/dist/domUtils/isHumanLanguage.d.ts.map +1 -0
- package/dist/domUtils/isHumanLanguage.js +10 -0
- package/dist/domUtils/objectElementIsNonText.d.ts +4 -0
- package/dist/domUtils/objectElementIsNonText.d.ts.map +1 -0
- package/dist/domUtils/objectElementIsNonText.js +21 -0
- package/dist/domUtils/textHasTheSameColorOfBackground.d.ts +4 -0
- package/dist/domUtils/textHasTheSameColorOfBackground.d.ts.map +1 -0
- package/dist/domUtils/textHasTheSameColorOfBackground.js +12 -0
- package/dist/domUtils/video.json +490 -0
- package/dist/domUtils/videoElementHasAudio.d.ts +4 -0
- package/dist/domUtils/videoElementHasAudio.d.ts.map +1 -0
- package/dist/domUtils/videoElementHasAudio.js +6 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/package.json +45 -30
- package/dist/util.bundle.js +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { QWElement } from '@qualweb/qw-element';
|
|
2
|
+
import allowsNameFromContentFunction from './allowsNameFromContent';
|
|
3
|
+
import getDefaultNameFunction from './getDefaultName';
|
|
4
|
+
import getDisabledWidgetsFunction from './getDisabledWidgets';
|
|
5
|
+
import isFocusableBrowserFunction from './isFocusableBrowser';
|
|
6
|
+
declare class AccessibilityUtils {
|
|
7
|
+
static ariaAttributesRoles: import("./ariaAttributesRoles").AriaAttributeRoles;
|
|
8
|
+
static roles: import("./roles").Roles;
|
|
9
|
+
static languages: {
|
|
10
|
+
[lang: string]: number;
|
|
11
|
+
};
|
|
12
|
+
static getLinkContext(element: QWElement): string[];
|
|
13
|
+
static allowsNameFromContent: typeof allowsNameFromContentFunction;
|
|
14
|
+
static elementHasValidRole(element: QWElement): boolean;
|
|
15
|
+
static getElementValidExplicitRole(element: QWElement): string | null;
|
|
16
|
+
static getAccessibleName(element: QWElement): string | undefined;
|
|
17
|
+
static getAccessibleNameRecursion(element: QWElement, recursion: boolean, isWidget: boolean): string | undefined;
|
|
18
|
+
static getAccessibleNameSelector(element: QWElement): string | string[] | undefined;
|
|
19
|
+
static getAccessibleNameSVG(element: QWElement): string | undefined;
|
|
20
|
+
static getDefaultName: typeof getDefaultNameFunction;
|
|
21
|
+
static getDisabledWidgets: typeof getDisabledWidgetsFunction;
|
|
22
|
+
static isFocusableBrowser: typeof isFocusableBrowserFunction;
|
|
23
|
+
static getOwnedElements(element: QWElement): Array<QWElement>;
|
|
24
|
+
static getElementRole(element: QWElement): string | null;
|
|
25
|
+
static getElementRoleAName(element: QWElement, aName: string | undefined): string | null;
|
|
26
|
+
static isDataTable(element: QWElement): boolean;
|
|
27
|
+
static isElementControl(element: QWElement): boolean;
|
|
28
|
+
static getValueFromEmbeddedControl(element: QWElement): string;
|
|
29
|
+
static isElementInAT(element: QWElement): boolean;
|
|
30
|
+
static isElementReferencedByAriaLabel(element: QWElement): boolean;
|
|
31
|
+
static isElementWidget(element: QWElement): boolean;
|
|
32
|
+
static getImplicitRole(element: QWElement, accessibleName: string | undefined): string | null;
|
|
33
|
+
static getOwnerElement(element: QWElement): QWElement | null;
|
|
34
|
+
static isElementChildPresentationalAux(element: QWElement): boolean;
|
|
35
|
+
static isElementChildPresentational(element: QWElement): boolean;
|
|
36
|
+
static isElementFocusableByDefault(elementQW: QWElement): boolean;
|
|
37
|
+
static isElementFocusable(element: QWElement): boolean;
|
|
38
|
+
static isPartOfSequentialFocusNavigation(element: QWElement): boolean;
|
|
39
|
+
static elementHasGlobalARIAPropertyOrAttribute(element: QWElement): boolean;
|
|
40
|
+
static getAriaOwner(element: QWElement): QWElement | null;
|
|
41
|
+
static landmarkIsTopLevel(element: QWElement): boolean;
|
|
42
|
+
}
|
|
43
|
+
export default AccessibilityUtils;
|
|
44
|
+
//# sourceMappingURL=accessibilityUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibilityUtils.d.ts","sourceRoot":"","sources":["../../src/accessibilityUtils/accessibilityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,6BAA6B,MAAM,yBAAyB,CAAC;AAGpE,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAWtD,OAAO,0BAA0B,MAAM,sBAAsB,CAAC;AAS9D,OAAO,0BAA0B,MAAM,sBAAsB,CAAC;AAa9D,cAAM,kBAAkB;IACtB,OAAc,mBAAmB,qDAAuB;IACxD,OAAc,KAAK,0BAAS;IAC5B,OAAc,SAAS,EAAI;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAW;WAGlD,cAAc,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,EAAE;IAI1D,OAAc,qBAAqB,uCAAiC;WAGtD,mBAAmB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAKhD,2BAA2B,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI;WAK9D,iBAAiB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS;WAKzD,0BAA0B,CACtC,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,OAAO,GAChB,MAAM,GAAG,SAAS;WAKP,yBAAyB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;WAK5E,oBAAoB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS;IAG1E,OAAc,cAAc,gCAA0B;IAEtD,OAAc,kBAAkB,oCAA8B;IAE9D,OAAc,kBAAkB,oCAA8B;WAGhD,gBAAgB,CAAC,OAAO,EAAE,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;WAKtD,cAAc,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI;WAIjD,mBAAmB,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI;WAKjF,WAAW,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAKxC,gBAAgB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAK7C,2BAA2B,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM;WAKvD,aAAa,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAI1C,8BAA8B,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAI3D,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAK5C,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI;WAItF,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;WAIrD,+BAA+B,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAK5D,4BAA4B,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAKzD,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;WAK1D,kBAAkB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAK/C,iCAAiC,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAK9D,uCAAuC,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;WAKpE,YAAY,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;WAKlD,kBAAkB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;CAG9D;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const allowsNameFromContent_1 = __importDefault(require("./allowsNameFromContent"));
|
|
16
|
+
const getAccessibleName_1 = __importDefault(require("./getAccessibleName"));
|
|
17
|
+
const getAccessibleNameRecursion_1 = __importDefault(require("./getAccessibleNameRecursion"));
|
|
18
|
+
const getDefaultName_1 = __importDefault(require("./getDefaultName"));
|
|
19
|
+
const getAccessibleNameSVG_1 = __importDefault(require("./getAccessibleNameSVG"));
|
|
20
|
+
const isDataTable_1 = __importDefault(require("./isDataTable"));
|
|
21
|
+
const isElementControl_1 = __importDefault(require("./isElementControl"));
|
|
22
|
+
const isElementWidget_1 = __importDefault(require("./isElementWidget"));
|
|
23
|
+
const getElementRole_1 = __importDefault(require("./getElementRole"));
|
|
24
|
+
const getElementRoleAName_1 = __importDefault(require("./getElementRoleAName"));
|
|
25
|
+
const getImplicitRole_1 = __importDefault(require("./getImplicitRole"));
|
|
26
|
+
const isElementInAT_1 = __importDefault(require("./isElementInAT"));
|
|
27
|
+
const elementHasValidRole_1 = __importDefault(require("./elementHasValidRole"));
|
|
28
|
+
const isElementReferencedByAriaLabel_1 = __importDefault(require("./isElementReferencedByAriaLabel"));
|
|
29
|
+
const getDisabledWidgets_1 = __importDefault(require("./getDisabledWidgets"));
|
|
30
|
+
const getAccessibleNameSelector_1 = __importDefault(require("./getAccessibleNameSelector"));
|
|
31
|
+
const getLinkContext_1 = __importDefault(require("./getLinkContext"));
|
|
32
|
+
const getOwnerElement_1 = __importDefault(require("./getOwnerElement"));
|
|
33
|
+
const isElementChildPresentational_1 = __importDefault(require("./isElementChildPresentational"));
|
|
34
|
+
const isElementChildPresentationalAux_1 = __importDefault(require("./isElementChildPresentationalAux"));
|
|
35
|
+
const elementHasGlobalARIAPropertyOrAttribute_1 = __importDefault(require("./elementHasGlobalARIAPropertyOrAttribute"));
|
|
36
|
+
const isElementFocusableByDefault_1 = __importDefault(require("./isElementFocusableByDefault"));
|
|
37
|
+
const isElementFocusable_1 = __importDefault(require("./isElementFocusable"));
|
|
38
|
+
const isFocusableBrowser_1 = __importDefault(require("./isFocusableBrowser"));
|
|
39
|
+
const getOwnedElements_1 = __importDefault(require("./getOwnedElements"));
|
|
40
|
+
const getValueFromEmbeddedControl_1 = __importDefault(require("./getValueFromEmbeddedControl"));
|
|
41
|
+
const isPartOfSequentialFocusNavigation_1 = __importDefault(require("./isPartOfSequentialFocusNavigation"));
|
|
42
|
+
const getAriaOwner_1 = __importDefault(require("./getAriaOwner"));
|
|
43
|
+
const getElementValidExplicitRole_1 = __importDefault(require("./getElementValidExplicitRole"));
|
|
44
|
+
const landmarkIsTopLevel_1 = __importDefault(require("./landmarkIsTopLevel"));
|
|
45
|
+
const ariaAttributesRoles_1 = require("./ariaAttributesRoles");
|
|
46
|
+
const roles_1 = require("./roles");
|
|
47
|
+
const language_json_1 = __importDefault(require("./language.json"));
|
|
48
|
+
const cache_1 = require("../cache");
|
|
49
|
+
class AccessibilityUtils {
|
|
50
|
+
static getLinkContext(element) {
|
|
51
|
+
return (0, getLinkContext_1.default)(element);
|
|
52
|
+
}
|
|
53
|
+
static elementHasValidRole(element) {
|
|
54
|
+
return (0, elementHasValidRole_1.default)(element);
|
|
55
|
+
}
|
|
56
|
+
static getElementValidExplicitRole(element) {
|
|
57
|
+
return (0, getElementValidExplicitRole_1.default)(element);
|
|
58
|
+
}
|
|
59
|
+
static getAccessibleName(element) {
|
|
60
|
+
return (0, getAccessibleName_1.default)(element);
|
|
61
|
+
}
|
|
62
|
+
static getAccessibleNameRecursion(element, recursion, isWidget) {
|
|
63
|
+
return (0, getAccessibleNameRecursion_1.default)(element, recursion, isWidget);
|
|
64
|
+
}
|
|
65
|
+
static getAccessibleNameSelector(element) {
|
|
66
|
+
return (0, getAccessibleNameSelector_1.default)(element);
|
|
67
|
+
}
|
|
68
|
+
static getAccessibleNameSVG(element) {
|
|
69
|
+
return (0, getAccessibleNameSVG_1.default)(element);
|
|
70
|
+
}
|
|
71
|
+
static getOwnedElements(element) {
|
|
72
|
+
return (0, getOwnedElements_1.default)(element);
|
|
73
|
+
}
|
|
74
|
+
static getElementRole(element) {
|
|
75
|
+
return (0, getElementRole_1.default)(element);
|
|
76
|
+
}
|
|
77
|
+
static getElementRoleAName(element, aName) {
|
|
78
|
+
return (0, getElementRoleAName_1.default)(element, aName);
|
|
79
|
+
}
|
|
80
|
+
static isDataTable(element) {
|
|
81
|
+
return (0, isDataTable_1.default)(element);
|
|
82
|
+
}
|
|
83
|
+
static isElementControl(element) {
|
|
84
|
+
return (0, isElementControl_1.default)(element);
|
|
85
|
+
}
|
|
86
|
+
static getValueFromEmbeddedControl(element) {
|
|
87
|
+
return (0, getValueFromEmbeddedControl_1.default)(element);
|
|
88
|
+
}
|
|
89
|
+
static isElementInAT(element) {
|
|
90
|
+
return (0, isElementInAT_1.default)(element);
|
|
91
|
+
}
|
|
92
|
+
static isElementReferencedByAriaLabel(element) {
|
|
93
|
+
return (0, isElementReferencedByAriaLabel_1.default)(element);
|
|
94
|
+
}
|
|
95
|
+
static isElementWidget(element) {
|
|
96
|
+
return (0, isElementWidget_1.default)(element);
|
|
97
|
+
}
|
|
98
|
+
static getImplicitRole(element, accessibleName) {
|
|
99
|
+
return (0, getImplicitRole_1.default)(element, accessibleName);
|
|
100
|
+
}
|
|
101
|
+
static getOwnerElement(element) {
|
|
102
|
+
return (0, getOwnerElement_1.default)(element);
|
|
103
|
+
}
|
|
104
|
+
static isElementChildPresentationalAux(element) {
|
|
105
|
+
return (0, isElementChildPresentationalAux_1.default)(element);
|
|
106
|
+
}
|
|
107
|
+
static isElementChildPresentational(element) {
|
|
108
|
+
return (0, isElementChildPresentational_1.default)(element);
|
|
109
|
+
}
|
|
110
|
+
static isElementFocusableByDefault(elementQW) {
|
|
111
|
+
return (0, isElementFocusableByDefault_1.default)(elementQW);
|
|
112
|
+
}
|
|
113
|
+
static isElementFocusable(element) {
|
|
114
|
+
return (0, isElementFocusable_1.default)(element);
|
|
115
|
+
}
|
|
116
|
+
static isPartOfSequentialFocusNavigation(element) {
|
|
117
|
+
return (0, isPartOfSequentialFocusNavigation_1.default)(element);
|
|
118
|
+
}
|
|
119
|
+
static elementHasGlobalARIAPropertyOrAttribute(element) {
|
|
120
|
+
return (0, elementHasGlobalARIAPropertyOrAttribute_1.default)(element);
|
|
121
|
+
}
|
|
122
|
+
static getAriaOwner(element) {
|
|
123
|
+
return (0, getAriaOwner_1.default)(element);
|
|
124
|
+
}
|
|
125
|
+
static landmarkIsTopLevel(element) {
|
|
126
|
+
return (0, landmarkIsTopLevel_1.default)(element);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
AccessibilityUtils.ariaAttributesRoles = ariaAttributesRoles_1.ariaAttributesRoles;
|
|
130
|
+
AccessibilityUtils.roles = roles_1.roles;
|
|
131
|
+
AccessibilityUtils.languages = language_json_1.default;
|
|
132
|
+
AccessibilityUtils.allowsNameFromContent = allowsNameFromContent_1.default;
|
|
133
|
+
AccessibilityUtils.getDefaultName = getDefaultName_1.default;
|
|
134
|
+
AccessibilityUtils.getDisabledWidgets = getDisabledWidgets_1.default;
|
|
135
|
+
AccessibilityUtils.isFocusableBrowser = isFocusableBrowser_1.default;
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, cache_1.Cache)('AcceUtils.getLinkContext'),
|
|
138
|
+
__metadata("design:type", Function),
|
|
139
|
+
__metadata("design:paramtypes", [Function]),
|
|
140
|
+
__metadata("design:returntype", Array)
|
|
141
|
+
], AccessibilityUtils, "getLinkContext", null);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, cache_1.Cache)('AcceUtils.elementHasValidRole'),
|
|
144
|
+
__metadata("design:type", Function),
|
|
145
|
+
__metadata("design:paramtypes", [Function]),
|
|
146
|
+
__metadata("design:returntype", Boolean)
|
|
147
|
+
], AccessibilityUtils, "elementHasValidRole", null);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, cache_1.Cache)('AcceUtils.getElementValidExplicitRole'),
|
|
150
|
+
__metadata("design:type", Function),
|
|
151
|
+
__metadata("design:paramtypes", [Function]),
|
|
152
|
+
__metadata("design:returntype", Object)
|
|
153
|
+
], AccessibilityUtils, "getElementValidExplicitRole", null);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, cache_1.Cache)('AcceUtils.getAccessibleName'),
|
|
156
|
+
__metadata("design:type", Function),
|
|
157
|
+
__metadata("design:paramtypes", [Function]),
|
|
158
|
+
__metadata("design:returntype", Object)
|
|
159
|
+
], AccessibilityUtils, "getAccessibleName", null);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, cache_1.FullMethodCache)('AcceUtils.getAccessibleNameRecursion'),
|
|
162
|
+
__metadata("design:type", Function),
|
|
163
|
+
__metadata("design:paramtypes", [Function, Boolean, Boolean]),
|
|
164
|
+
__metadata("design:returntype", Object)
|
|
165
|
+
], AccessibilityUtils, "getAccessibleNameRecursion", null);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, cache_1.Cache)('AcceUtils.getAccessibleNameSelector'),
|
|
168
|
+
__metadata("design:type", Function),
|
|
169
|
+
__metadata("design:paramtypes", [Function]),
|
|
170
|
+
__metadata("design:returntype", Object)
|
|
171
|
+
], AccessibilityUtils, "getAccessibleNameSelector", null);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, cache_1.Cache)('AcceUtils.getAccessibleNameSVG'),
|
|
174
|
+
__metadata("design:type", Function),
|
|
175
|
+
__metadata("design:paramtypes", [Function]),
|
|
176
|
+
__metadata("design:returntype", Object)
|
|
177
|
+
], AccessibilityUtils, "getAccessibleNameSVG", null);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, cache_1.Cache)('AcceUtils.getOwnedElements'),
|
|
180
|
+
__metadata("design:type", Function),
|
|
181
|
+
__metadata("design:paramtypes", [Function]),
|
|
182
|
+
__metadata("design:returntype", Array)
|
|
183
|
+
], AccessibilityUtils, "getOwnedElements", null);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, cache_1.Cache)('AcceUtils.getElementRole'),
|
|
186
|
+
__metadata("design:type", Function),
|
|
187
|
+
__metadata("design:paramtypes", [Function]),
|
|
188
|
+
__metadata("design:returntype", Object)
|
|
189
|
+
], AccessibilityUtils, "getElementRole", null);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, cache_1.FullMethodCache)('AcceUtils.getElementRole'),
|
|
192
|
+
__metadata("design:type", Function),
|
|
193
|
+
__metadata("design:paramtypes", [Function, Object]),
|
|
194
|
+
__metadata("design:returntype", Object)
|
|
195
|
+
], AccessibilityUtils, "getElementRoleAName", null);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, cache_1.Cache)('AcceUtils.isDataTable'),
|
|
198
|
+
__metadata("design:type", Function),
|
|
199
|
+
__metadata("design:paramtypes", [Function]),
|
|
200
|
+
__metadata("design:returntype", Boolean)
|
|
201
|
+
], AccessibilityUtils, "isDataTable", null);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, cache_1.Cache)('AcceUtils.isElementControl'),
|
|
204
|
+
__metadata("design:type", Function),
|
|
205
|
+
__metadata("design:paramtypes", [Function]),
|
|
206
|
+
__metadata("design:returntype", Boolean)
|
|
207
|
+
], AccessibilityUtils, "isElementControl", null);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, cache_1.Cache)('AcceUtils.getValueFromEmbeddedControl'),
|
|
210
|
+
__metadata("design:type", Function),
|
|
211
|
+
__metadata("design:paramtypes", [Function]),
|
|
212
|
+
__metadata("design:returntype", String)
|
|
213
|
+
], AccessibilityUtils, "getValueFromEmbeddedControl", null);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, cache_1.Cache)('AcceUtils.isElementInAT'),
|
|
216
|
+
__metadata("design:type", Function),
|
|
217
|
+
__metadata("design:paramtypes", [Function]),
|
|
218
|
+
__metadata("design:returntype", Boolean)
|
|
219
|
+
], AccessibilityUtils, "isElementInAT", null);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, cache_1.Cache)('AcceUtils.isElementReferencedByAriaLabel'),
|
|
222
|
+
__metadata("design:type", Function),
|
|
223
|
+
__metadata("design:paramtypes", [Function]),
|
|
224
|
+
__metadata("design:returntype", Boolean)
|
|
225
|
+
], AccessibilityUtils, "isElementReferencedByAriaLabel", null);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, cache_1.Cache)('AcceUtils.isElementWidget'),
|
|
228
|
+
__metadata("design:type", Function),
|
|
229
|
+
__metadata("design:paramtypes", [Function]),
|
|
230
|
+
__metadata("design:returntype", Boolean)
|
|
231
|
+
], AccessibilityUtils, "isElementWidget", null);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, cache_1.FullMethodCache)('AcceUtils.getImplicitRole'),
|
|
234
|
+
__metadata("design:type", Function),
|
|
235
|
+
__metadata("design:paramtypes", [Function, Object]),
|
|
236
|
+
__metadata("design:returntype", Object)
|
|
237
|
+
], AccessibilityUtils, "getImplicitRole", null);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, cache_1.Cache)('AcceUtils.getOwnerElement'),
|
|
240
|
+
__metadata("design:type", Function),
|
|
241
|
+
__metadata("design:paramtypes", [Function]),
|
|
242
|
+
__metadata("design:returntype", Object)
|
|
243
|
+
], AccessibilityUtils, "getOwnerElement", null);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, cache_1.Cache)('AcceUtils.isElementChildPresentationalAux'),
|
|
246
|
+
__metadata("design:type", Function),
|
|
247
|
+
__metadata("design:paramtypes", [Function]),
|
|
248
|
+
__metadata("design:returntype", Boolean)
|
|
249
|
+
], AccessibilityUtils, "isElementChildPresentationalAux", null);
|
|
250
|
+
__decorate([
|
|
251
|
+
(0, cache_1.Cache)('AcceUtils.isElementChildPresentational'),
|
|
252
|
+
__metadata("design:type", Function),
|
|
253
|
+
__metadata("design:paramtypes", [Function]),
|
|
254
|
+
__metadata("design:returntype", Boolean)
|
|
255
|
+
], AccessibilityUtils, "isElementChildPresentational", null);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, cache_1.Cache)('AcceUtils.isElementFocusableByDefault'),
|
|
258
|
+
__metadata("design:type", Function),
|
|
259
|
+
__metadata("design:paramtypes", [Function]),
|
|
260
|
+
__metadata("design:returntype", Boolean)
|
|
261
|
+
], AccessibilityUtils, "isElementFocusableByDefault", null);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, cache_1.Cache)('AcceUtils.isElementFocusable'),
|
|
264
|
+
__metadata("design:type", Function),
|
|
265
|
+
__metadata("design:paramtypes", [Function]),
|
|
266
|
+
__metadata("design:returntype", Boolean)
|
|
267
|
+
], AccessibilityUtils, "isElementFocusable", null);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, cache_1.Cache)('AcceUtils.isPartOfSequentialFocusNavigation'),
|
|
270
|
+
__metadata("design:type", Function),
|
|
271
|
+
__metadata("design:paramtypes", [Function]),
|
|
272
|
+
__metadata("design:returntype", Boolean)
|
|
273
|
+
], AccessibilityUtils, "isPartOfSequentialFocusNavigation", null);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, cache_1.Cache)('AcceUtils.elementHasGlobalARIAPropertyOrAttribute'),
|
|
276
|
+
__metadata("design:type", Function),
|
|
277
|
+
__metadata("design:paramtypes", [Function]),
|
|
278
|
+
__metadata("design:returntype", Boolean)
|
|
279
|
+
], AccessibilityUtils, "elementHasGlobalARIAPropertyOrAttribute", null);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, cache_1.Cache)('AcceUtils.getAriaOwner'),
|
|
282
|
+
__metadata("design:type", Function),
|
|
283
|
+
__metadata("design:paramtypes", [Function]),
|
|
284
|
+
__metadata("design:returntype", Object)
|
|
285
|
+
], AccessibilityUtils, "getAriaOwner", null);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, cache_1.Cache)('AcceUtils.landmarkIsTopLevel'),
|
|
288
|
+
__metadata("design:type", Function),
|
|
289
|
+
__metadata("design:paramtypes", [Function]),
|
|
290
|
+
__metadata("design:returntype", Boolean)
|
|
291
|
+
], AccessibilityUtils, "landmarkIsTopLevel", null);
|
|
292
|
+
exports.default = AccessibilityUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowsNameFromContent.d.ts","sourceRoot":"","sources":["../../src/accessibilityUtils/allowsNameFromContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,iBAAS,qBAAqB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAK1D;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const constants_1 = require("./constants");
|
|
4
|
+
function allowsNameFromContent(element) {
|
|
5
|
+
const name = element.getElementTagName();
|
|
6
|
+
const role = element.getElementAttribute('role');
|
|
7
|
+
return (!!role && constants_1.nameFromContentRoles.indexOf(role) >= 0) || (!!name && constants_1.nameFromContentElements.indexOf(name) >= 0);
|
|
8
|
+
}
|
|
9
|
+
exports.default = allowsNameFromContent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type AriaAttributeRoleInfo = {
|
|
2
|
+
global: string;
|
|
3
|
+
typeValue: string;
|
|
4
|
+
values: string | string[];
|
|
5
|
+
defaultValue: string;
|
|
6
|
+
};
|
|
7
|
+
export type AriaAttributeRoles = {
|
|
8
|
+
[aria: string]: AriaAttributeRoleInfo;
|
|
9
|
+
};
|
|
10
|
+
export declare const ariaAttributesRoles: AriaAttributeRoles;
|
|
11
|
+
//# sourceMappingURL=ariaAttributesRoles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ariaAttributesRoles.d.ts","sourceRoot":"","sources":["../../src/accessibilityUtils/ariaAttributesRoles.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAiSjC,CAAC"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ariaAttributesRoles = void 0;
|
|
4
|
+
exports.ariaAttributesRoles = {
|
|
5
|
+
'aria-activedescendant': {
|
|
6
|
+
global: 'no',
|
|
7
|
+
typeValue: 'id',
|
|
8
|
+
values: '',
|
|
9
|
+
defaultValue: ''
|
|
10
|
+
},
|
|
11
|
+
'aria-atomic': {
|
|
12
|
+
global: 'yes',
|
|
13
|
+
typeValue: 'value',
|
|
14
|
+
values: ['true', 'false'],
|
|
15
|
+
defaultValue: 'false'
|
|
16
|
+
},
|
|
17
|
+
'aria-autocomplete': {
|
|
18
|
+
global: 'no',
|
|
19
|
+
typeValue: 'value',
|
|
20
|
+
values: ['inline', 'list', 'both', 'none'],
|
|
21
|
+
defaultValue: 'none'
|
|
22
|
+
},
|
|
23
|
+
'aria-busy': {
|
|
24
|
+
global: 'yes',
|
|
25
|
+
typeValue: 'value',
|
|
26
|
+
values: ['true', 'false'],
|
|
27
|
+
defaultValue: 'false'
|
|
28
|
+
},
|
|
29
|
+
'aria-checked': {
|
|
30
|
+
global: 'no',
|
|
31
|
+
typeValue: 'value',
|
|
32
|
+
values: ['false', 'mixed', 'true', 'undefined'],
|
|
33
|
+
defaultValue: 'undefined'
|
|
34
|
+
},
|
|
35
|
+
'aria-colcount': {
|
|
36
|
+
global: 'no',
|
|
37
|
+
typeValue: 'integer',
|
|
38
|
+
values: '',
|
|
39
|
+
defaultValue: ''
|
|
40
|
+
},
|
|
41
|
+
'aria-colindex': {
|
|
42
|
+
global: 'no',
|
|
43
|
+
typeValue: 'integer',
|
|
44
|
+
values: '',
|
|
45
|
+
defaultValue: ''
|
|
46
|
+
},
|
|
47
|
+
'aria-colspan': {
|
|
48
|
+
global: 'no',
|
|
49
|
+
typeValue: 'integer',
|
|
50
|
+
values: '',
|
|
51
|
+
defaultValue: ''
|
|
52
|
+
},
|
|
53
|
+
'aria-controls': {
|
|
54
|
+
global: 'yes',
|
|
55
|
+
typeValue: 'idList',
|
|
56
|
+
values: '',
|
|
57
|
+
defaultValue: ''
|
|
58
|
+
},
|
|
59
|
+
'aria-current': {
|
|
60
|
+
global: 'yes',
|
|
61
|
+
typeValue: 'value',
|
|
62
|
+
values: ['page', 'step', 'location', 'date', 'time', 'true', 'false'],
|
|
63
|
+
defaultValue: 'false'
|
|
64
|
+
},
|
|
65
|
+
'aria-describedby': {
|
|
66
|
+
global: 'yes',
|
|
67
|
+
typeValue: 'idList',
|
|
68
|
+
values: '',
|
|
69
|
+
defaultValue: ''
|
|
70
|
+
},
|
|
71
|
+
'aria-details': {
|
|
72
|
+
global: 'yes',
|
|
73
|
+
typeValue: 'id',
|
|
74
|
+
values: '',
|
|
75
|
+
defaultValue: ''
|
|
76
|
+
},
|
|
77
|
+
'aria-disabled': {
|
|
78
|
+
global: 'yes',
|
|
79
|
+
typeValue: 'value',
|
|
80
|
+
values: ['true', 'false'],
|
|
81
|
+
defaultValue: 'false'
|
|
82
|
+
},
|
|
83
|
+
'aria-dropeffect': {
|
|
84
|
+
global: 'yes',
|
|
85
|
+
typeValue: 'list',
|
|
86
|
+
values: ['copy', 'execute', 'link', 'move', 'none', 'popup'],
|
|
87
|
+
defaultValue: 'none'
|
|
88
|
+
},
|
|
89
|
+
'aria-errormessage': {
|
|
90
|
+
global: 'yes',
|
|
91
|
+
typeValue: 'id',
|
|
92
|
+
values: '',
|
|
93
|
+
defaultValue: ''
|
|
94
|
+
},
|
|
95
|
+
'aria-expanded': {
|
|
96
|
+
global: 'no',
|
|
97
|
+
typeValue: 'value',
|
|
98
|
+
values: ['true', 'false', 'undefined'],
|
|
99
|
+
defaultValue: 'undefined'
|
|
100
|
+
},
|
|
101
|
+
'aria-flowto': {
|
|
102
|
+
global: 'yes',
|
|
103
|
+
typeValue: 'idList',
|
|
104
|
+
values: '',
|
|
105
|
+
defaultValue: ''
|
|
106
|
+
},
|
|
107
|
+
'aria-grabbed': {
|
|
108
|
+
global: 'yes',
|
|
109
|
+
typeValue: 'value',
|
|
110
|
+
values: ['true', 'false', 'undefined'],
|
|
111
|
+
defaultValue: 'undefined'
|
|
112
|
+
},
|
|
113
|
+
'aria-haspopup': {
|
|
114
|
+
global: 'yes',
|
|
115
|
+
typeValue: 'value',
|
|
116
|
+
values: ['false', 'true', 'menu', 'listbox', 'tree', 'grid', 'dialog'],
|
|
117
|
+
defaultValue: 'false'
|
|
118
|
+
},
|
|
119
|
+
'aria-hidden': {
|
|
120
|
+
global: 'yes',
|
|
121
|
+
typeValue: 'value',
|
|
122
|
+
values: ['true', 'false', 'undefined'],
|
|
123
|
+
defaultValue: 'undefined'
|
|
124
|
+
},
|
|
125
|
+
'aria-invalid': {
|
|
126
|
+
global: 'yes',
|
|
127
|
+
typeValue: 'value',
|
|
128
|
+
values: ['grammar', 'false', 'spelling', 'true'],
|
|
129
|
+
defaultValue: 'false'
|
|
130
|
+
},
|
|
131
|
+
'aria-keyshortcuts': {
|
|
132
|
+
global: 'yes',
|
|
133
|
+
typeValue: 'string',
|
|
134
|
+
values: '',
|
|
135
|
+
defaultValue: ''
|
|
136
|
+
},
|
|
137
|
+
'aria-label': {
|
|
138
|
+
global: 'yes',
|
|
139
|
+
typeValue: 'string',
|
|
140
|
+
values: '',
|
|
141
|
+
defaultValue: ''
|
|
142
|
+
},
|
|
143
|
+
'aria-labelledby': {
|
|
144
|
+
global: 'no',
|
|
145
|
+
typeValue: 'idList',
|
|
146
|
+
values: '',
|
|
147
|
+
defaultValue: ''
|
|
148
|
+
},
|
|
149
|
+
'aria-level': {
|
|
150
|
+
global: 'yes',
|
|
151
|
+
typeValue: 'integer',
|
|
152
|
+
values: '',
|
|
153
|
+
defaultValue: ''
|
|
154
|
+
},
|
|
155
|
+
'aria-live': {
|
|
156
|
+
global: 'yes',
|
|
157
|
+
typeValue: 'value',
|
|
158
|
+
values: ['assertive', 'off', 'polite'],
|
|
159
|
+
defaultValue: 'off'
|
|
160
|
+
},
|
|
161
|
+
'aria-modal': {
|
|
162
|
+
global: 'no',
|
|
163
|
+
typeValue: 'value',
|
|
164
|
+
values: ['true', 'false'],
|
|
165
|
+
defaultValue: 'false'
|
|
166
|
+
},
|
|
167
|
+
'aria-multiline': {
|
|
168
|
+
global: 'no',
|
|
169
|
+
typeValue: 'value',
|
|
170
|
+
values: ['true', 'false'],
|
|
171
|
+
defaultValue: 'false'
|
|
172
|
+
},
|
|
173
|
+
'aria-multiselectable': {
|
|
174
|
+
global: 'no',
|
|
175
|
+
typeValue: 'value',
|
|
176
|
+
values: ['true', 'false'],
|
|
177
|
+
defaultValue: 'false'
|
|
178
|
+
},
|
|
179
|
+
'aria-orientation': {
|
|
180
|
+
global: 'no',
|
|
181
|
+
typeValue: 'value',
|
|
182
|
+
values: ['horizontal', 'undefined', 'vertical'],
|
|
183
|
+
defaultValue: 'undefined'
|
|
184
|
+
},
|
|
185
|
+
'aria-owns': {
|
|
186
|
+
global: 'yes',
|
|
187
|
+
typeValue: 'idList',
|
|
188
|
+
values: '',
|
|
189
|
+
defaultValue: ''
|
|
190
|
+
},
|
|
191
|
+
'aria-placeholder': {
|
|
192
|
+
global: 'no',
|
|
193
|
+
typeValue: 'string',
|
|
194
|
+
values: '',
|
|
195
|
+
defaultValue: ''
|
|
196
|
+
},
|
|
197
|
+
'aria-posinset': {
|
|
198
|
+
global: 'no',
|
|
199
|
+
typeValue: 'integer',
|
|
200
|
+
values: '',
|
|
201
|
+
defaultValue: ''
|
|
202
|
+
},
|
|
203
|
+
'aria-pressed': {
|
|
204
|
+
global: 'no',
|
|
205
|
+
typeValue: 'value',
|
|
206
|
+
values: ['false', 'mixed', 'true', 'undefined'],
|
|
207
|
+
defaultValue: 'undefined'
|
|
208
|
+
},
|
|
209
|
+
'aria-readonly': {
|
|
210
|
+
global: 'no',
|
|
211
|
+
typeValue: 'value',
|
|
212
|
+
values: ['true', 'false'],
|
|
213
|
+
defaultValue: 'false'
|
|
214
|
+
},
|
|
215
|
+
'aria-relevant': {
|
|
216
|
+
global: 'yes',
|
|
217
|
+
typeValue: 'list',
|
|
218
|
+
values: ['additions', 'additions text', 'all', 'removals', 'text'],
|
|
219
|
+
defaultValue: 'additions text'
|
|
220
|
+
},
|
|
221
|
+
'aria-required': {
|
|
222
|
+
global: 'yes',
|
|
223
|
+
typeValue: 'value',
|
|
224
|
+
values: ['true', 'false'],
|
|
225
|
+
defaultValue: 'false'
|
|
226
|
+
},
|
|
227
|
+
'aria-roledescription': {
|
|
228
|
+
global: 'yes',
|
|
229
|
+
typeValue: 'string',
|
|
230
|
+
values: '',
|
|
231
|
+
defaultValue: ''
|
|
232
|
+
},
|
|
233
|
+
'aria-rowcount': {
|
|
234
|
+
global: 'no',
|
|
235
|
+
typeValue: 'integer',
|
|
236
|
+
values: '',
|
|
237
|
+
defaultValue: ''
|
|
238
|
+
},
|
|
239
|
+
'aria-rowindex': {
|
|
240
|
+
global: 'no',
|
|
241
|
+
typeValue: 'integer',
|
|
242
|
+
values: '',
|
|
243
|
+
defaultValue: ''
|
|
244
|
+
},
|
|
245
|
+
'aria-rowspan': {
|
|
246
|
+
global: 'no',
|
|
247
|
+
typeValue: 'integer',
|
|
248
|
+
values: '',
|
|
249
|
+
defaultValue: ''
|
|
250
|
+
},
|
|
251
|
+
'aria-selected': {
|
|
252
|
+
global: 'no',
|
|
253
|
+
typeValue: 'value',
|
|
254
|
+
values: ['true', 'false', 'undefined'],
|
|
255
|
+
defaultValue: 'undefined'
|
|
256
|
+
},
|
|
257
|
+
'aria-setsize': {
|
|
258
|
+
global: 'no',
|
|
259
|
+
typeValue: 'integer',
|
|
260
|
+
values: '',
|
|
261
|
+
defaultValue: ''
|
|
262
|
+
},
|
|
263
|
+
'aria-sort': {
|
|
264
|
+
global: 'no',
|
|
265
|
+
typeValue: 'value',
|
|
266
|
+
values: ['ascending', 'descending', 'none', 'other'],
|
|
267
|
+
defaultValue: 'none'
|
|
268
|
+
},
|
|
269
|
+
'aria-valuemax': {
|
|
270
|
+
global: 'no',
|
|
271
|
+
typeValue: 'number',
|
|
272
|
+
values: '',
|
|
273
|
+
defaultValue: ''
|
|
274
|
+
},
|
|
275
|
+
'aria-valuemin': {
|
|
276
|
+
global: 'no',
|
|
277
|
+
typeValue: 'number',
|
|
278
|
+
values: '',
|
|
279
|
+
defaultValue: ''
|
|
280
|
+
},
|
|
281
|
+
'aria-valuenow': {
|
|
282
|
+
global: 'no',
|
|
283
|
+
typeValue: 'number',
|
|
284
|
+
values: '',
|
|
285
|
+
defaultValue: ''
|
|
286
|
+
},
|
|
287
|
+
'aria-valuetext': {
|
|
288
|
+
global: 'no',
|
|
289
|
+
typeValue: 'string',
|
|
290
|
+
values: '',
|
|
291
|
+
defaultValue: ''
|
|
292
|
+
}
|
|
293
|
+
};
|