@markuplint/ml-spec 3.8.0 → 3.10.0
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/lib/constant/aria-version.d.ts +2 -2
- package/lib/dom-traverse/get-attr-specs.d.ts +1 -1
- package/lib/dom-traverse/get-computed-aria-props.d.ts +5 -5
- package/lib/dom-traverse/get-computed-role.d.ts +1 -6
- package/lib/dom-traverse/get-content-model.d.ts +1 -26
- package/lib/dom-traverse/get-implicit-role.d.ts +1 -5
- package/lib/dom-traverse/get-non-presentational-ancestor.d.ts +4 -10
- package/lib/dom-traverse/get-permitted-roles.d.ts +3 -7
- package/lib/dom-traverse/get-spec.d.ts +1 -4
- package/lib/dom-traverse/has-required-owned-elements.d.ts +1 -7
- package/lib/dom-traverse/matches-context-role.d.ts +1 -6
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/specs/aria-specs.d.ts +4 -7
- package/lib/specs/content-model-category-to-tag-names.d.ts +1 -4
- package/lib/specs/get-aria.d.ts +1 -7
- package/lib/specs/get-attr-specs.d.ts +2 -6
- package/lib/specs/get-implicit-role.d.ts +1 -7
- package/lib/specs/get-permitted-roles.d.ts +3 -9
- package/lib/specs/get-role-spec.d.ts +3 -10
- package/lib/specs/get-spec-by-tag-name.d.ts +1 -5
- package/lib/specs/is-palpable-elements.d.ts +4 -8
- package/lib/specs/resolve-version.d.ts +1 -4
- package/lib/specs/schema-to-spec.d.ts +3 -3
- package/lib/types/aria.d.ts +133 -147
- package/lib/types/aria.js +0 -1
- package/lib/types/attributes.d.ts +110 -1490
- package/lib/types/attributes.js +0 -1
- package/lib/types/index.d.ts +145 -173
- package/lib/types/permitted-structures.d.ts +35 -74
- package/lib/types/permitted-structures.js +0 -1
- package/lib/utils/merge-array.d.ts +4 -9
- package/lib/utils/resolve-namespace.d.ts +4 -4
- package/package.json +9 -9
- package/test/dom-traverse/get-computed-aria-props.spec.js +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ariaVersions: readonly [
|
|
2
|
-
export declare const ARIA_RECOMMENDED_VERSION:
|
|
1
|
+
export declare const ariaVersions: readonly ["1.1", "1.2", "1.3"];
|
|
2
|
+
export declare const ARIA_RECOMMENDED_VERSION: "1.2";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { MLMLSpec } from '../types';
|
|
2
|
-
export declare function getAttrSpecs(el: Element, schema: MLMLSpec): readonly import(
|
|
2
|
+
export declare function getAttrSpecs(el: Element, schema: MLMLSpec): readonly import("../types").Attribute[] | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ARIAVersion, MLMLSpec } from '../types';
|
|
2
2
|
type ARIAProps = Record<string, ARIAProp>;
|
|
3
3
|
type ARIAProp = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
name: string;
|
|
5
|
+
value: string | undefined;
|
|
6
|
+
required: boolean;
|
|
7
|
+
deprecated: boolean;
|
|
8
|
+
from: ARIAPropReferenceType;
|
|
9
9
|
};
|
|
10
10
|
type ARIAPropReferenceType = 'default' | 'html-attr' | 'aria-attr';
|
|
11
11
|
export declare function getComputedAriaProps(specs: MLMLSpec, el: Element, version: ARIAVersion): ARIAProps;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { ARIAVersion, ComputedRole, MLMLSpec } from '../types';
|
|
2
|
-
export declare function getComputedRole(
|
|
3
|
-
specs: MLMLSpec,
|
|
4
|
-
el: Element,
|
|
5
|
-
version: ARIAVersion,
|
|
6
|
-
assumeSingleNode?: boolean,
|
|
7
|
-
): ComputedRole;
|
|
2
|
+
export declare function getComputedRole(specs: MLMLSpec, el: Element, version: ARIAVersion, assumeSingleNode?: boolean): ComputedRole;
|
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
import type { ElementSpec } from '../types';
|
|
2
2
|
type Specs = readonly Pick<ElementSpec, 'name' | 'contentModel'>[];
|
|
3
|
-
export declare function getContentModel(
|
|
4
|
-
el: Element,
|
|
5
|
-
specs: Specs,
|
|
6
|
-
):
|
|
7
|
-
| boolean
|
|
8
|
-
| readonly (
|
|
9
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
10
|
-
import('../types/permitted-structures').PermittedContentRequire
|
|
11
|
-
>
|
|
12
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
13
|
-
import('../types/permitted-structures').PermittedContentOptional
|
|
14
|
-
>
|
|
15
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
16
|
-
import('../types/permitted-structures').PermittedContentOneOrMore
|
|
17
|
-
>
|
|
18
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
19
|
-
import('../types/permitted-structures').PermittedContentZeroOrMore
|
|
20
|
-
>
|
|
21
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
22
|
-
import('../types/permitted-structures').PermittedContentChoice
|
|
23
|
-
>
|
|
24
|
-
| import('type-fest/source/readonly-deep').ReadonlyObjectDeep<
|
|
25
|
-
import('../types/permitted-structures').PermittedContentTransparent
|
|
26
|
-
>
|
|
27
|
-
)[]
|
|
28
|
-
| null;
|
|
3
|
+
export declare function getContentModel(el: Element, specs: Specs): boolean | readonly (import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentRequire> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentOptional> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentOneOrMore> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentZeroOrMore> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentChoice> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<import("../types/permitted-structures").PermittedContentTransparent>)[] | null;
|
|
29
4
|
export {};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { ARIAVersion, ComputedRole, MLMLSpec } from '../types';
|
|
2
2
|
export declare function getImplicitRole(specs: MLMLSpec, el: Element, version: ARIAVersion): ComputedRole;
|
|
3
|
-
export declare function getImplicitRoleName(
|
|
4
|
-
el: Element,
|
|
5
|
-
version: ARIAVersion,
|
|
6
|
-
specs: MLMLSpec,
|
|
7
|
-
): import('..').ImplicitRole;
|
|
3
|
+
export declare function getImplicitRoleName(el: Element, version: ARIAVersion, specs: MLMLSpec): import("..").ImplicitRole;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { ARIAVersion, MLMLSpec } from '../types';
|
|
2
|
-
export declare function getNonPresentationalAncestor(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
):
|
|
7
|
-
| import('../types').ComputedRole
|
|
8
|
-
| {
|
|
9
|
-
el: null;
|
|
10
|
-
role: null;
|
|
11
|
-
};
|
|
2
|
+
export declare function getNonPresentationalAncestor(el: Element, specs: MLMLSpec, version: ARIAVersion): import("../types").ComputedRole | {
|
|
3
|
+
el: null;
|
|
4
|
+
role: null;
|
|
5
|
+
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { ARIAVersion, MLMLSpec } from '../types';
|
|
2
|
-
export declare function getPermittedRoles(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
specs: MLMLSpec,
|
|
6
|
-
): readonly {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly deprecated?: boolean | undefined;
|
|
2
|
+
export declare function getPermittedRoles(el: Element, version: ARIAVersion, specs: MLMLSpec): readonly {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly deprecated?: boolean | undefined;
|
|
9
5
|
}[];
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import type { ElementSpec } from '../types';
|
|
2
|
-
export declare function getSpec<K extends keyof ElementSpec>(
|
|
3
|
-
el: Element,
|
|
4
|
-
specs: readonly Pick<ElementSpec, 'name' | K>[],
|
|
5
|
-
): Pick<ElementSpec, 'name' | K> | null;
|
|
2
|
+
export declare function getSpec<K extends keyof ElementSpec>(el: Element, specs: readonly Pick<ElementSpec, 'name' | K>[]): Pick<ElementSpec, "name" | K> | null;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { ARIAVersion, ComputedRole, MLMLSpec } from '../types';
|
|
2
2
|
export declare function hasRequiredOwnedElement(el: Element, specs: MLMLSpec, version: ARIAVersion): boolean;
|
|
3
|
-
export declare function isRequiredOwnedElement(
|
|
4
|
-
el: Element,
|
|
5
|
-
role: ComputedRole['role'],
|
|
6
|
-
query: string,
|
|
7
|
-
specs: MLMLSpec,
|
|
8
|
-
version: ARIAVersion,
|
|
9
|
-
): boolean;
|
|
3
|
+
export declare function isRequiredOwnedElement(el: Element, role: ComputedRole['role'], query: string, specs: MLMLSpec, version: ARIAVersion): boolean;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { ARIAVersion, MLMLSpec } from '../types';
|
|
2
|
-
export declare function matchesContextRole(
|
|
3
|
-
conditions: readonly string[],
|
|
4
|
-
ownedEl: Element,
|
|
5
|
-
specs: MLMLSpec,
|
|
6
|
-
version: ARIAVersion,
|
|
7
|
-
): boolean;
|
|
2
|
+
export declare function matchesContextRole(conditions: readonly string[], ownedEl: Element, specs: MLMLSpec, version: ARIAVersion): boolean;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAttrSpecsByNames = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
var get_attr_specs_1 = require("./specs/get-attr-specs");
|
|
6
|
+
Object.defineProperty(exports, "getAttrSpecsByNames", { enumerable: true, get: function () { return get_attr_specs_1.getAttrSpecs; } });
|
|
4
7
|
tslib_1.__exportStar(require("./constant/aria-version"), exports);
|
|
5
8
|
tslib_1.__exportStar(require("./dom-traverse/accname-computation"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./dom-traverse/get-attr-specs"), exports);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ARIAVersion, MLMLSpec } from '../types';
|
|
2
|
-
export declare function ariaSpecs(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly roles: readonly import('../types').ARIARoleInSchema[];
|
|
7
|
-
readonly graphicsRoles: readonly import('../types').ARIARoleInSchema[];
|
|
8
|
-
readonly props: readonly import('../types').ARIAProperty[];
|
|
2
|
+
export declare function ariaSpecs(specs: MLMLSpec, version: ARIAVersion): {
|
|
3
|
+
readonly roles: readonly import("../types").ARIARoleInSchema[];
|
|
4
|
+
readonly graphicsRoles: readonly import("../types").ARIARoleInSchema[];
|
|
5
|
+
readonly props: readonly import("../types").ARIAProperty[];
|
|
9
6
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { MLMLSpec } from '../types';
|
|
2
2
|
import type { Category } from '../types/permitted-structures';
|
|
3
|
-
export declare function contentModelCategoryToTagNames(
|
|
4
|
-
contentModel: Category,
|
|
5
|
-
def: MLMLSpec['def'],
|
|
6
|
-
): ReadonlyArray<string>;
|
|
3
|
+
export declare function contentModelCategoryToTagNames(contentModel: Category, def: MLMLSpec['def']): ReadonlyArray<string>;
|
package/lib/specs/get-aria.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import type { ARIAVersion, Matches, MLMLSpec } from '../types';
|
|
2
2
|
import type { ARIA } from '../types/aria';
|
|
3
3
|
import type { ReadonlyDeep } from 'type-fest';
|
|
4
|
-
export declare function getARIA(
|
|
5
|
-
specs: MLMLSpec,
|
|
6
|
-
localName: string,
|
|
7
|
-
namespace: string | null,
|
|
8
|
-
version: ARIAVersion,
|
|
9
|
-
matches: Matches,
|
|
10
|
-
): Omit<ReadonlyDeep<ARIA>, ARIAVersion | 'conditions'> | null;
|
|
4
|
+
export declare function getARIA(specs: MLMLSpec, localName: string, namespace: string | null, version: ARIAVersion, matches: Matches): Omit<ReadonlyDeep<ARIA>, ARIAVersion | 'conditions'> | null;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { MLMLSpec, Attribute } from '../types';
|
|
2
2
|
import type { NamespaceURI } from '@markuplint/ml-ast';
|
|
3
|
-
export declare function getAttrSpecs(
|
|
4
|
-
localName: string,
|
|
5
|
-
namespace: NamespaceURI | null,
|
|
6
|
-
schema: MLMLSpec,
|
|
7
|
-
): readonly Attribute[] | null;
|
|
3
|
+
export declare function getAttrSpecs(localName: string, namespace: NamespaceURI | null, schema: MLMLSpec): readonly Attribute[] | null;
|
|
8
4
|
type HasName = {
|
|
9
|
-
|
|
5
|
+
readonly name: string;
|
|
10
6
|
};
|
|
11
7
|
export declare function nameCompare(a: HasName | string, b: HasName | string): 1 | -1 | 0;
|
|
12
8
|
export {};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import type { ARIAVersion, Matches, MLMLSpec } from '../types';
|
|
2
|
-
export declare function getImplicitRole(
|
|
3
|
-
specs: MLMLSpec,
|
|
4
|
-
localName: string,
|
|
5
|
-
namespace: string | null,
|
|
6
|
-
version: ARIAVersion,
|
|
7
|
-
matches: Matches,
|
|
8
|
-
): import('..').ImplicitRole;
|
|
2
|
+
export declare function getImplicitRole(specs: MLMLSpec, localName: string, namespace: string | null, version: ARIAVersion, matches: Matches): import("..").ImplicitRole;
|
|
@@ -6,13 +6,7 @@ import type { ARIAVersion, Matches, MLMLSpec } from '../types';
|
|
|
6
6
|
* - If `true`, this mean is "Any".
|
|
7
7
|
* - If `false`, this mean is "No".
|
|
8
8
|
*/
|
|
9
|
-
export declare function getPermittedRoles(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
namespace: string | null,
|
|
13
|
-
version: ARIAVersion,
|
|
14
|
-
matches: Matches,
|
|
15
|
-
): readonly {
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly deprecated?: boolean;
|
|
9
|
+
export declare function getPermittedRoles(specs: MLMLSpec, localName: string, namespace: string | null, version: ARIAVersion, matches: Matches): readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly deprecated?: boolean;
|
|
18
12
|
}[];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { ARIAVersion, ARIARoleInSchema, MLMLSpec, ARIARole } from '../types';
|
|
2
2
|
import type { NamespaceURI } from '@markuplint/ml-ast';
|
|
3
|
-
export declare function getRoleSpec(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
namespace: NamespaceURI,
|
|
7
|
-
version: ARIAVersion,
|
|
8
|
-
):
|
|
9
|
-
| (ARIARole & {
|
|
10
|
-
superClassRoles: ARIARoleInSchema[];
|
|
11
|
-
})
|
|
12
|
-
| null;
|
|
3
|
+
export declare function getRoleSpec(specs: MLMLSpec, roleName: string, namespace: NamespaceURI, version: ARIAVersion): (ARIARole & {
|
|
4
|
+
superClassRoles: ARIARoleInSchema[];
|
|
5
|
+
}) | null;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { ElementSpec } from '../types';
|
|
2
|
-
export declare function getSpecByTagName<K extends keyof ElementSpec = keyof ElementSpec>(
|
|
3
|
-
specs: readonly Pick<ElementSpec, 'name' | K>[],
|
|
4
|
-
localName: string,
|
|
5
|
-
namespace: string | null,
|
|
6
|
-
): Pick<ElementSpec, 'name' | K> | null;
|
|
2
|
+
export declare function getSpecByTagName<K extends keyof ElementSpec = keyof ElementSpec>(specs: readonly Pick<ElementSpec, 'name' | K>[], localName: string, namespace: string | null): Pick<ElementSpec, "name" | K> | null;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { MLMLSpec } from '../types';
|
|
2
|
-
export declare function isPalpableElement(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly extendsSvg?: boolean;
|
|
7
|
-
readonly extendsExposableElements?: boolean;
|
|
8
|
-
},
|
|
9
|
-
): boolean;
|
|
2
|
+
export declare function isPalpableElement(el: Element, specs: MLMLSpec, options?: {
|
|
3
|
+
readonly extendsSvg?: boolean;
|
|
4
|
+
readonly extendsExposableElements?: boolean;
|
|
5
|
+
}): boolean;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { ARIAVersion } from '../types';
|
|
2
2
|
import type { ARIA } from '../types/aria';
|
|
3
3
|
import type { ReadonlyDeep } from 'type-fest';
|
|
4
|
-
export declare function resolveVersion(
|
|
5
|
-
aria: ReadonlyDeep<ARIA>,
|
|
6
|
-
version: ARIAVersion,
|
|
7
|
-
): Omit<ReadonlyDeep<ARIA>, ARIAVersion>;
|
|
4
|
+
export declare function resolveVersion(aria: ReadonlyDeep<ARIA>, version: ARIAVersion): Omit<ReadonlyDeep<ARIA>, ARIAVersion>;
|
|
@@ -7,7 +7,7 @@ import type { ElementSpec, ExtendedSpec, MLMLSpec } from '../types';
|
|
|
7
7
|
* @param schemas `MLDocument.schemas`
|
|
8
8
|
*/
|
|
9
9
|
export declare function schemaToSpec(schemas: readonly [MLMLSpec, ...ExtendedSpec[]]): {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
cites: import("../types").Cites;
|
|
11
|
+
def: import("../types").SpecDefs;
|
|
12
|
+
specs: readonly ElementSpec[];
|
|
13
13
|
};
|
package/lib/types/aria.d.ts
CHANGED
|
@@ -10,162 +10,148 @@ export type ImplicitRole = false | string;
|
|
|
10
10
|
/**
|
|
11
11
|
* If `true`, this mean is "Any". If `false`, this mean is "No".
|
|
12
12
|
*/
|
|
13
|
-
export type PermittedRoles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
name: string;
|
|
19
|
-
deprecated?: true;
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
)[]
|
|
23
|
-
| PermittedARIAAAMInfo;
|
|
13
|
+
export type PermittedRoles = boolean | (string | {
|
|
14
|
+
name: string;
|
|
15
|
+
deprecated?: true;
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
})[] | PermittedARIAAAMInfo;
|
|
24
18
|
/**
|
|
25
19
|
* If set false:
|
|
26
20
|
* > No role or aria-* attributes
|
|
27
21
|
*/
|
|
28
|
-
export type PermittedARIAProperties =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
value?: string;
|
|
72
|
-
alt?: {
|
|
73
|
-
method: 'remove-attr' | 'set-attr';
|
|
74
|
-
target: string;
|
|
75
|
-
};
|
|
76
|
-
}[],
|
|
77
|
-
];
|
|
78
|
-
};
|
|
22
|
+
export type PermittedARIAProperties = false | {
|
|
23
|
+
global?: true;
|
|
24
|
+
/**
|
|
25
|
+
* Set true if the spec says "and any aria-* attributes applicable to the allowed roles."
|
|
26
|
+
*/
|
|
27
|
+
role?: true | string | [string, ...string[]];
|
|
28
|
+
/**
|
|
29
|
+
* @minItems 1
|
|
30
|
+
*/
|
|
31
|
+
only?: [
|
|
32
|
+
(string | {
|
|
33
|
+
name: string;
|
|
34
|
+
value?: string;
|
|
35
|
+
}),
|
|
36
|
+
...(string | {
|
|
37
|
+
name: string;
|
|
38
|
+
value?: string;
|
|
39
|
+
})[]
|
|
40
|
+
];
|
|
41
|
+
/**
|
|
42
|
+
* @minItems 1
|
|
43
|
+
*/
|
|
44
|
+
without?: [
|
|
45
|
+
{
|
|
46
|
+
type: 'not-recommended' | 'should-not' | 'must-not';
|
|
47
|
+
name: string;
|
|
48
|
+
value?: string;
|
|
49
|
+
alt?: {
|
|
50
|
+
method: 'remove-attr' | 'set-attr';
|
|
51
|
+
target: string;
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
...{
|
|
55
|
+
type: 'not-recommended' | 'should-not' | 'must-not';
|
|
56
|
+
name: string;
|
|
57
|
+
value?: string;
|
|
58
|
+
alt?: {
|
|
59
|
+
method: 'remove-attr' | 'set-attr';
|
|
60
|
+
target: string;
|
|
61
|
+
};
|
|
62
|
+
}[]
|
|
63
|
+
];
|
|
64
|
+
};
|
|
79
65
|
export interface AriaSchema {
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
_?: ARIA;
|
|
67
|
+
[k: string]: unknown;
|
|
82
68
|
}
|
|
83
69
|
export interface ARIA {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
70
|
+
implicitRole: ImplicitRole;
|
|
71
|
+
permittedRoles: PermittedRoles;
|
|
72
|
+
namingProhibited?: true;
|
|
73
|
+
implicitProperties?: ImplicitProperties;
|
|
74
|
+
properties?: PermittedARIAProperties;
|
|
75
|
+
conditions?: {
|
|
76
|
+
/**
|
|
77
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
78
|
+
* via the `patternProperty` ".+".
|
|
79
|
+
*/
|
|
80
|
+
[k: string]: {
|
|
81
|
+
implicitRole?: ImplicitRole;
|
|
82
|
+
permittedRoles?: PermittedRoles;
|
|
83
|
+
namingProhibited?: true;
|
|
84
|
+
implicitProperties?: ImplicitProperties;
|
|
85
|
+
properties?: PermittedARIAProperties;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
'1.3'?: {
|
|
89
|
+
implicitRole?: ImplicitRole;
|
|
90
|
+
permittedRoles?: PermittedRoles;
|
|
91
|
+
namingProhibited?: true;
|
|
92
|
+
implicitProperties?: ImplicitProperties;
|
|
93
|
+
properties?: PermittedARIAProperties;
|
|
94
|
+
conditions?: {
|
|
95
|
+
/**
|
|
96
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
97
|
+
* via the `patternProperty` ".+".
|
|
98
|
+
*/
|
|
99
|
+
[k: string]: {
|
|
100
|
+
implicitRole?: ImplicitRole;
|
|
101
|
+
permittedRoles?: PermittedRoles;
|
|
102
|
+
namingProhibited?: true;
|
|
103
|
+
implicitProperties?: ImplicitProperties;
|
|
104
|
+
properties?: PermittedARIAProperties;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
'1.2'?: {
|
|
109
|
+
implicitRole?: ImplicitRole;
|
|
110
|
+
permittedRoles?: PermittedRoles;
|
|
111
|
+
namingProhibited?: true;
|
|
112
|
+
implicitProperties?: ImplicitProperties;
|
|
113
|
+
properties?: PermittedARIAProperties;
|
|
114
|
+
conditions?: {
|
|
115
|
+
/**
|
|
116
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
117
|
+
* via the `patternProperty` ".+".
|
|
118
|
+
*/
|
|
119
|
+
[k: string]: {
|
|
120
|
+
implicitRole?: ImplicitRole;
|
|
121
|
+
permittedRoles?: PermittedRoles;
|
|
122
|
+
namingProhibited?: true;
|
|
123
|
+
implicitProperties?: ImplicitProperties;
|
|
124
|
+
properties?: PermittedARIAProperties;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
'1.1'?: {
|
|
129
|
+
implicitRole?: ImplicitRole;
|
|
130
|
+
permittedRoles?: PermittedRoles;
|
|
131
|
+
implicitProperties?: ImplicitProperties;
|
|
132
|
+
properties?: PermittedARIAProperties;
|
|
133
|
+
conditions?: {
|
|
134
|
+
/**
|
|
135
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
136
|
+
* via the `patternProperty` ".+".
|
|
137
|
+
*/
|
|
138
|
+
[k: string]: {
|
|
139
|
+
implicitRole?: ImplicitRole;
|
|
140
|
+
permittedRoles?: PermittedRoles;
|
|
141
|
+
implicitProperties?: ImplicitProperties;
|
|
142
|
+
properties?: PermittedARIAProperties;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
160
146
|
}
|
|
161
147
|
export interface PermittedARIAAAMInfo {
|
|
162
|
-
|
|
163
|
-
|
|
148
|
+
'core-aam'?: true;
|
|
149
|
+
'graphics-aam'?: true;
|
|
164
150
|
}
|
|
165
151
|
export interface ImplicitProperties {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
152
|
+
/**
|
|
153
|
+
* This interface was referenced by `ImplicitProperties`'s JSON-Schema definition
|
|
154
|
+
* via the `patternProperty` "^aria-.+".
|
|
155
|
+
*/
|
|
156
|
+
[k: string]: string;
|
|
171
157
|
}
|