@skyux/a11y 7.4.2 → 7.5.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/documentation.json +1 -1
- package/esm2020/lib/modules/skip-link/skip-link.mjs +1 -1
- package/esm2020/testing/public-api.mjs +2 -0
- package/esm2020/testing/skip-link/skip-links-harness.mjs +32 -0
- package/esm2020/testing/skyux-a11y-testing.mjs +5 -0
- package/fesm2015/skyux-a11y-testing.mjs +43 -0
- package/fesm2015/skyux-a11y-testing.mjs.map +1 -0
- package/fesm2020/skyux-a11y-testing.mjs +39 -0
- package/fesm2020/skyux-a11y-testing.mjs.map +1 -0
- package/lib/modules/skip-link/skip-link.d.ts +1 -1
- package/package.json +11 -3
- package/testing/index.d.ts +5 -0
- package/testing/public-api.d.ts +1 -0
- package/testing/skip-link/skip-links-harness.d.ts +19 -0
package/documentation.json
CHANGED
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"kindString": "Property",
|
|
241
241
|
"flags": {},
|
|
242
242
|
"comment": {
|
|
243
|
-
"shortText": "The element to scroll to and focus when the skip link is clicked. This element must\nallow focus, either by
|
|
243
|
+
"shortText": "The element to scroll to and focus when the skip link is clicked. This element must\nallow focus, either by specifying an HTML element that allows focus by default (such\nas a `button` or `a` element) or by setting `tabindex=\"-1\" on the specified element."
|
|
244
244
|
},
|
|
245
245
|
"sources": [
|
|
246
246
|
{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2ExMXkvc3JjL2xpYi9tb2R1bGVzL3NraXAtbGluay9za2lwLWxpbmsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVsZW1lbnRSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBBIFwic2tpcCBsaW5rXCIgdGhhdCBhbGxvd3MgYSB1c2VyIHRvIHNraXAgcGFydHMgb2YgdGhlIHBhZ2UgYW5kIGdvIGRpcmVjdGx5IHRvIHRoZSBtYWluIGNvbnRlbnQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgU2t5U2tpcExpbmsge1xuICAvKipcbiAgICogVGhlIHRpdGxlIG9mIHRoZSBza2lwIGxpbmsuXG4gICAqL1xuICB0aXRsZTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgZWxlbWVudCB0byBzY3JvbGwgdG8gYW5kIGZvY3VzIHdoZW4gdGhlIHNraXAgbGluayBpcyBjbGlja2VkLiAgVGhpcyBlbGVtZW50IG11c3RcbiAgICogYWxsb3cgZm9jdXMsIGVpdGhlciBieSBzcGVjaWZ5aW5nIGFuIEhUTUwgZWxlbWVudCB0aGF0IGFsbG93cyBmb2N1cyBieSBkZWZhdWx0IChzdWNoXG4gICAqIGFzIGEgYGJ1dHRvbmAgb3IgYGFgIGVsZW1lbnQpIG9yIGJ5IHNldHRpbmcgYHRhYmluZGV4PVwiLTFcIiBvbiB0aGUgc3BlY2lmaWVkIGVsZW1lbnQuXG4gICAqL1xuICBlbGVtZW50UmVmOiBFbGVtZW50UmVmO1xufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './skip-link/skip-links-harness';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hMTF5L3Rlc3Rpbmcvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2tpcC1saW5rL3NraXAtbGlua3MtaGFybmVzcyc7XG4iXX0=
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var _SkySkipLinksHarness_getSkipLinks;
|
|
2
|
+
import { __classPrivateFieldGet } from "tslib";
|
|
3
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
4
|
+
/**
|
|
5
|
+
* Harness for interacting with a skip link component in tests.
|
|
6
|
+
*/
|
|
7
|
+
export class SkySkipLinksHarness extends SkyComponentHarness {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
_SkySkipLinksHarness_getSkipLinks.set(this, this.locatorForAll('.sky-skip-link'));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Gets the text of the skip link at the given index.
|
|
14
|
+
*/
|
|
15
|
+
async getSkipLinkText(index) {
|
|
16
|
+
const skipLinks = await __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
17
|
+
return skipLinks[index].text();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Clicks the skip link at the given index.
|
|
21
|
+
*/
|
|
22
|
+
async clickSkipLink(index) {
|
|
23
|
+
const skipLinks = await __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
24
|
+
return skipLinks[index].click();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
_SkySkipLinksHarness_getSkipLinks = new WeakMap();
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
SkySkipLinksHarness.hostSelector = 'sky-skip-link-host';
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rcy1oYXJuZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2ExMXkvdGVzdGluZy9zcmMvc2tpcC1saW5rL3NraXAtbGlua3MtaGFybmVzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTFEOztHQUVHO0FBQ0gsTUFBTSxPQUFPLG1CQUFvQixTQUFRLG1CQUFtQjtJQUE1RDs7UUFNRSw0Q0FBZ0IsSUFBSSxDQUFDLGFBQWEsQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFDO0lBbUJ2RCxDQUFDO0lBakJDOztPQUVHO0lBQ0ksS0FBSyxDQUFDLGVBQWUsQ0FBQyxLQUFhO1FBQ3hDLE1BQU0sU0FBUyxHQUFHLE1BQU0sdUJBQUEsSUFBSSx5Q0FBYyxNQUFsQixJQUFJLENBQWdCLENBQUM7UUFFN0MsT0FBTyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDakMsQ0FBQztJQUVEOztPQUVHO0lBQ0ksS0FBSyxDQUFDLGFBQWEsQ0FBQyxLQUFhO1FBQ3RDLE1BQU0sU0FBUyxHQUFHLE1BQU0sdUJBQUEsSUFBSSx5Q0FBYyxNQUFsQixJQUFJLENBQWdCLENBQUM7UUFFN0MsT0FBTyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDbEMsQ0FBQzs7O0FBdkJEOztHQUVHO0FBQ1csZ0NBQVksR0FBRyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNreUNvbXBvbmVudEhhcm5lc3MgfSBmcm9tICdAc2t5dXgvY29yZS90ZXN0aW5nJztcblxuLyoqXG4gKiBIYXJuZXNzIGZvciBpbnRlcmFjdGluZyB3aXRoIGEgc2tpcCBsaW5rIGNvbXBvbmVudCBpbiB0ZXN0cy5cbiAqL1xuZXhwb3J0IGNsYXNzIFNreVNraXBMaW5rc0hhcm5lc3MgZXh0ZW5kcyBTa3lDb21wb25lbnRIYXJuZXNzIHtcbiAgLyoqXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgcHVibGljIHN0YXRpYyBob3N0U2VsZWN0b3IgPSAnc2t5LXNraXAtbGluay1ob3N0JztcblxuICAjZ2V0U2tpcExpbmtzID0gdGhpcy5sb2NhdG9yRm9yQWxsKCcuc2t5LXNraXAtbGluaycpO1xuXG4gIC8qKlxuICAgKiBHZXRzIHRoZSB0ZXh0IG9mIHRoZSBza2lwIGxpbmsgYXQgdGhlIGdpdmVuIGluZGV4LlxuICAgKi9cbiAgcHVibGljIGFzeW5jIGdldFNraXBMaW5rVGV4dChpbmRleDogbnVtYmVyKTogUHJvbWlzZTxzdHJpbmc+IHtcbiAgICBjb25zdCBza2lwTGlua3MgPSBhd2FpdCB0aGlzLiNnZXRTa2lwTGlua3MoKTtcblxuICAgIHJldHVybiBza2lwTGlua3NbaW5kZXhdLnRleHQoKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBDbGlja3MgdGhlIHNraXAgbGluayBhdCB0aGUgZ2l2ZW4gaW5kZXguXG4gICAqL1xuICBwdWJsaWMgYXN5bmMgY2xpY2tTa2lwTGluayhpbmRleDogbnVtYmVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgY29uc3Qgc2tpcExpbmtzID0gYXdhaXQgdGhpcy4jZ2V0U2tpcExpbmtzKCk7XG5cbiAgICByZXR1cm4gc2tpcExpbmtzW2luZGV4XS5jbGljaygpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2t5dXgtYTExeS10ZXN0aW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2ExMXkvdGVzdGluZy9zcmMvc2t5dXgtYTExeS10ZXN0aW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { __awaiter, __classPrivateFieldGet } from 'tslib';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
|
|
4
|
+
var _SkySkipLinksHarness_getSkipLinks;
|
|
5
|
+
/**
|
|
6
|
+
* Harness for interacting with a skip link component in tests.
|
|
7
|
+
*/
|
|
8
|
+
class SkySkipLinksHarness extends SkyComponentHarness {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
_SkySkipLinksHarness_getSkipLinks.set(this, this.locatorForAll('.sky-skip-link'));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Gets the text of the skip link at the given index.
|
|
15
|
+
*/
|
|
16
|
+
getSkipLinkText(index) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const skipLinks = yield __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
19
|
+
return skipLinks[index].text();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Clicks the skip link at the given index.
|
|
24
|
+
*/
|
|
25
|
+
clickSkipLink(index) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const skipLinks = yield __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
28
|
+
return skipLinks[index].click();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
_SkySkipLinksHarness_getSkipLinks = new WeakMap();
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
SkySkipLinksHarness.hostSelector = 'sky-skip-link-host';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { SkySkipLinksHarness };
|
|
43
|
+
//# sourceMappingURL=skyux-a11y-testing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyux-a11y-testing.mjs","sources":["../../../../../libs/components/a11y/testing/src/skip-link/skip-links-harness.ts","../../../../../libs/components/a11y/testing/src/skyux-a11y-testing.ts"],"sourcesContent":["import { SkyComponentHarness } from '@skyux/core/testing';\n\n/**\n * Harness for interacting with a skip link component in tests.\n */\nexport class SkySkipLinksHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-skip-link-host';\n\n #getSkipLinks = this.locatorForAll('.sky-skip-link');\n\n /**\n * Gets the text of the skip link at the given index.\n */\n public async getSkipLinkText(index: number): Promise<string> {\n const skipLinks = await this.#getSkipLinks();\n\n return skipLinks[index].text();\n }\n\n /**\n * Clicks the skip link at the given index.\n */\n public async clickSkipLink(index: number): Promise<void> {\n const skipLinks = await this.#getSkipLinks();\n\n return skipLinks[index].click();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;AAEG;AACG,MAAO,mBAAoB,SAAQ,mBAAmB,CAAA;AAA5D,IAAA,WAAA,GAAA;;AAME,QAAA,iCAAA,CAAA,GAAA,CAAA,IAAA,EAAgB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAA;KAmBtD;AAjBC;;AAEG;AACU,IAAA,eAAe,CAAC,KAAa,EAAA;;AACxC,YAAA,MAAM,SAAS,GAAG,MAAM,sBAAA,CAAA,IAAI,EAAc,iCAAA,EAAA,GAAA,CAAA,CAAA,IAAA,CAAlB,IAAI,CAAgB,CAAC;AAE7C,YAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;SAChC,CAAA,CAAA;AAAA,KAAA;AAED;;AAEG;AACU,IAAA,aAAa,CAAC,KAAa,EAAA;;AACtC,YAAA,MAAM,SAAS,GAAG,MAAM,sBAAA,CAAA,IAAI,EAAc,iCAAA,EAAA,GAAA,CAAA,CAAA,IAAA,CAAlB,IAAI,CAAgB,CAAC;AAE7C,YAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;SACjC,CAAA,CAAA;AAAA,KAAA;;;AAvBD;;AAEG;AACW,mBAAY,CAAA,YAAA,GAAG,oBAAoB;;ACTnD;;AAEG;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from 'tslib';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
|
|
4
|
+
var _SkySkipLinksHarness_getSkipLinks;
|
|
5
|
+
/**
|
|
6
|
+
* Harness for interacting with a skip link component in tests.
|
|
7
|
+
*/
|
|
8
|
+
class SkySkipLinksHarness extends SkyComponentHarness {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
_SkySkipLinksHarness_getSkipLinks.set(this, this.locatorForAll('.sky-skip-link'));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Gets the text of the skip link at the given index.
|
|
15
|
+
*/
|
|
16
|
+
async getSkipLinkText(index) {
|
|
17
|
+
const skipLinks = await __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
18
|
+
return skipLinks[index].text();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Clicks the skip link at the given index.
|
|
22
|
+
*/
|
|
23
|
+
async clickSkipLink(index) {
|
|
24
|
+
const skipLinks = await __classPrivateFieldGet(this, _SkySkipLinksHarness_getSkipLinks, "f").call(this);
|
|
25
|
+
return skipLinks[index].click();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
_SkySkipLinksHarness_getSkipLinks = new WeakMap();
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
SkySkipLinksHarness.hostSelector = 'sky-skip-link-host';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
export { SkySkipLinksHarness };
|
|
39
|
+
//# sourceMappingURL=skyux-a11y-testing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyux-a11y-testing.mjs","sources":["../../../../../libs/components/a11y/testing/src/skip-link/skip-links-harness.ts","../../../../../libs/components/a11y/testing/src/skyux-a11y-testing.ts"],"sourcesContent":["import { SkyComponentHarness } from '@skyux/core/testing';\n\n/**\n * Harness for interacting with a skip link component in tests.\n */\nexport class SkySkipLinksHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-skip-link-host';\n\n #getSkipLinks = this.locatorForAll('.sky-skip-link');\n\n /**\n * Gets the text of the skip link at the given index.\n */\n public async getSkipLinkText(index: number): Promise<string> {\n const skipLinks = await this.#getSkipLinks();\n\n return skipLinks[index].text();\n }\n\n /**\n * Clicks the skip link at the given index.\n */\n public async clickSkipLink(index: number): Promise<void> {\n const skipLinks = await this.#getSkipLinks();\n\n return skipLinks[index].click();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;AAEG;AACG,MAAO,mBAAoB,SAAQ,mBAAmB,CAAA;AAA5D,IAAA,WAAA,GAAA;;AAME,QAAA,iCAAA,CAAA,GAAA,CAAA,IAAA,EAAgB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAA;KAmBtD;AAjBC;;AAEG;IACI,MAAM,eAAe,CAAC,KAAa,EAAA;QACxC,MAAM,SAAS,GAAG,MAAM,sBAAA,CAAA,IAAI,EAAc,iCAAA,EAAA,GAAA,CAAA,CAAA,IAAA,CAAlB,IAAI,CAAgB,CAAC;AAE7C,QAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;KAChC;AAED;;AAEG;IACI,MAAM,aAAa,CAAC,KAAa,EAAA;QACtC,MAAM,SAAS,GAAG,MAAM,sBAAA,CAAA,IAAI,EAAc,iCAAA,EAAA,GAAA,CAAA,CAAA,IAAA,CAAlB,IAAI,CAAgB,CAAC;AAE7C,QAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;KACjC;;;AAvBD;;AAEG;AACW,mBAAY,CAAA,YAAA,GAAG,oBAAoB;;ACTnD;;AAEG;;;;"}
|
|
@@ -9,7 +9,7 @@ export interface SkySkipLink {
|
|
|
9
9
|
title: string;
|
|
10
10
|
/**
|
|
11
11
|
* The element to scroll to and focus when the skip link is clicked. This element must
|
|
12
|
-
* allow focus, either by
|
|
12
|
+
* allow focus, either by specifying an HTML element that allows focus by default (such
|
|
13
13
|
* as a `button` or `a` element) or by setting `tabindex="-1" on the specified element.
|
|
14
14
|
*/
|
|
15
15
|
elementRef: ElementRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/a11y",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
"node": "./fesm2015/skyux-a11y.mjs",
|
|
28
28
|
"default": "./fesm2020/skyux-a11y.mjs"
|
|
29
29
|
},
|
|
30
|
+
"./testing": {
|
|
31
|
+
"types": "./testing/index.d.ts",
|
|
32
|
+
"esm2020": "./esm2020/testing/skyux-a11y-testing.mjs",
|
|
33
|
+
"es2020": "./fesm2020/skyux-a11y-testing.mjs",
|
|
34
|
+
"es2015": "./fesm2015/skyux-a11y-testing.mjs",
|
|
35
|
+
"node": "./fesm2015/skyux-a11y-testing.mjs",
|
|
36
|
+
"default": "./fesm2020/skyux-a11y-testing.mjs"
|
|
37
|
+
},
|
|
30
38
|
"./documentation.json": {
|
|
31
39
|
"default": "./documentation.json"
|
|
32
40
|
}
|
|
@@ -34,8 +42,8 @@
|
|
|
34
42
|
"peerDependencies": {
|
|
35
43
|
"@angular/common": "^14.2.11",
|
|
36
44
|
"@angular/core": "^14.2.11",
|
|
37
|
-
"@skyux/core": "7.
|
|
38
|
-
"@skyux/i18n": "7.
|
|
45
|
+
"@skyux/core": "7.5.0",
|
|
46
|
+
"@skyux/i18n": "7.5.0"
|
|
39
47
|
},
|
|
40
48
|
"dependencies": {
|
|
41
49
|
"tslib": "^2.3.1"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './skip-link/skip-links-harness';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with a skip link component in tests.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SkySkipLinksHarness extends SkyComponentHarness {
|
|
6
|
+
#private;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
static hostSelector: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the text of the skip link at the given index.
|
|
13
|
+
*/
|
|
14
|
+
getSkipLinkText(index: number): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Clicks the skip link at the given index.
|
|
17
|
+
*/
|
|
18
|
+
clickSkipLink(index: number): Promise<void>;
|
|
19
|
+
}
|