@skyux/a11y 9.0.0-alpha.8 → 9.0.0-alpha.9
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 +20 -65
- package/esm2022/lib/modules/shared/sky-a11y-resources.module.mjs +4 -2
- package/esm2022/lib/modules/skip-link/skip-link-host.component.mjs +12 -15
- package/esm2022/lib/modules/skip-link/skip-link.module.mjs +6 -10
- package/esm2022/lib/modules/skip-link/skip-link.service.mjs +11 -12
- package/fesm2022/skyux-a11y.mjs +37 -41
- package/fesm2022/skyux-a11y.mjs.map +1 -1
- package/lib/modules/skip-link/skip-link-host.component.d.ts +1 -4
- package/lib/modules/skip-link/skip-link.module.d.ts +3 -4
- package/package.json +3 -3
package/documentation.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"anchorIds": {
|
|
3
|
-
"SkySkipLinkModule": "class-skyskiplinkmodule",
|
|
4
3
|
"SkySkipLinkService": "class-skyskiplinkservice",
|
|
5
4
|
"SkySkipLink": "interface-skyskiplink",
|
|
6
5
|
"SkySkipLinkArgs": "interface-skyskiplinkargs",
|
|
@@ -13,46 +12,6 @@
|
|
|
13
12
|
"kind": 1,
|
|
14
13
|
"flags": {},
|
|
15
14
|
"children": [
|
|
16
|
-
{
|
|
17
|
-
"id": 5,
|
|
18
|
-
"name": "SkySkipLinkModule",
|
|
19
|
-
"variant": "declaration",
|
|
20
|
-
"kind": 128,
|
|
21
|
-
"flags": {},
|
|
22
|
-
"comment": {
|
|
23
|
-
"summary": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "text",
|
|
26
|
-
"text": "The Angular module that enables \"skip links\" to be added to the page."
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"children": [],
|
|
31
|
-
"groups": [
|
|
32
|
-
{
|
|
33
|
-
"title": "Constructors",
|
|
34
|
-
"children": [
|
|
35
|
-
6
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"sources": [
|
|
40
|
-
{
|
|
41
|
-
"fileName": "projects/a11y/src/modules/skip-link/skip-link.module.ts",
|
|
42
|
-
"line": 15,
|
|
43
|
-
"character": 13,
|
|
44
|
-
"url": "https://github.com/blackbaud/skyux/blob/34ccd56/libs/components/a11y/src/lib/modules/skip-link/skip-link.module.ts#L15"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"decorators": [
|
|
48
|
-
{
|
|
49
|
-
"name": "NgModule",
|
|
50
|
-
"arguments": {
|
|
51
|
-
"obj": "@NgModule({\n declarations: [SkySkipLinkHostComponent],\n imports: [CommonModule, SkyA11yResourcesModule],\n})"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
15
|
{
|
|
57
16
|
"id": 8,
|
|
58
17
|
"name": "SkySkipLinkService",
|
|
@@ -79,7 +38,7 @@
|
|
|
79
38
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
80
39
|
"line": 26,
|
|
81
40
|
"character": 2,
|
|
82
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
41
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
|
|
83
42
|
}
|
|
84
43
|
],
|
|
85
44
|
"signatures": [
|
|
@@ -94,7 +53,7 @@
|
|
|
94
53
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
95
54
|
"line": 26,
|
|
96
55
|
"character": 2,
|
|
97
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
56
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
|
|
98
57
|
}
|
|
99
58
|
],
|
|
100
59
|
"parameters": [
|
|
@@ -135,9 +94,9 @@
|
|
|
135
94
|
"sources": [
|
|
136
95
|
{
|
|
137
96
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
138
|
-
"line":
|
|
97
|
+
"line": 46,
|
|
139
98
|
"character": 9,
|
|
140
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
99
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
|
|
141
100
|
}
|
|
142
101
|
],
|
|
143
102
|
"signatures": [
|
|
@@ -150,9 +109,9 @@
|
|
|
150
109
|
"sources": [
|
|
151
110
|
{
|
|
152
111
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
153
|
-
"line":
|
|
112
|
+
"line": 46,
|
|
154
113
|
"character": 2,
|
|
155
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
114
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
|
|
156
115
|
}
|
|
157
116
|
],
|
|
158
117
|
"type": {
|
|
@@ -176,7 +135,7 @@
|
|
|
176
135
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
177
136
|
"line": 30,
|
|
178
137
|
"character": 9,
|
|
179
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
138
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
|
|
180
139
|
}
|
|
181
140
|
],
|
|
182
141
|
"signatures": [
|
|
@@ -191,7 +150,7 @@
|
|
|
191
150
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
192
151
|
"line": 30,
|
|
193
152
|
"character": 2,
|
|
194
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
153
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
|
|
195
154
|
}
|
|
196
155
|
],
|
|
197
156
|
"parameters": [
|
|
@@ -238,14 +197,14 @@
|
|
|
238
197
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
239
198
|
"line": 21,
|
|
240
199
|
"character": 13,
|
|
241
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
200
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L21"
|
|
242
201
|
}
|
|
243
202
|
],
|
|
244
203
|
"decorators": [
|
|
245
204
|
{
|
|
246
205
|
"name": "Injectable",
|
|
247
206
|
"arguments": {
|
|
248
|
-
"obj": "@Injectable({\n providedIn: '
|
|
207
|
+
"obj": "@Injectable({\n providedIn: 'root',\n})"
|
|
249
208
|
}
|
|
250
209
|
}
|
|
251
210
|
]
|
|
@@ -300,7 +259,7 @@
|
|
|
300
259
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
301
260
|
"line": 17,
|
|
302
261
|
"character": 2,
|
|
303
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
262
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L17"
|
|
304
263
|
}
|
|
305
264
|
],
|
|
306
265
|
"type": {
|
|
@@ -338,7 +297,7 @@
|
|
|
338
297
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
339
298
|
"line": 10,
|
|
340
299
|
"character": 2,
|
|
341
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
300
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L10"
|
|
342
301
|
}
|
|
343
302
|
],
|
|
344
303
|
"type": {
|
|
@@ -361,7 +320,7 @@
|
|
|
361
320
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
362
321
|
"line": 6,
|
|
363
322
|
"character": 17,
|
|
364
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
323
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L6"
|
|
365
324
|
}
|
|
366
325
|
]
|
|
367
326
|
},
|
|
@@ -399,7 +358,7 @@
|
|
|
399
358
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
|
|
400
359
|
"line": 13,
|
|
401
360
|
"character": 2,
|
|
402
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
361
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L13"
|
|
403
362
|
}
|
|
404
363
|
],
|
|
405
364
|
"type": {
|
|
@@ -426,7 +385,7 @@
|
|
|
426
385
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
|
|
427
386
|
"line": 9,
|
|
428
387
|
"character": 17,
|
|
429
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
388
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L9"
|
|
430
389
|
}
|
|
431
390
|
]
|
|
432
391
|
},
|
|
@@ -522,7 +481,7 @@
|
|
|
522
481
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
523
482
|
"line": 26,
|
|
524
483
|
"character": 15,
|
|
525
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
484
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L26"
|
|
526
485
|
}
|
|
527
486
|
],
|
|
528
487
|
"signatures": [
|
|
@@ -545,7 +504,7 @@
|
|
|
545
504
|
"fileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
546
505
|
"line": 26,
|
|
547
506
|
"character": 2,
|
|
548
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
507
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L26"
|
|
549
508
|
}
|
|
550
509
|
],
|
|
551
510
|
"parameters": [
|
|
@@ -593,7 +552,7 @@
|
|
|
593
552
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
594
553
|
"line": 17,
|
|
595
554
|
"character": 15,
|
|
596
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
555
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L17"
|
|
597
556
|
}
|
|
598
557
|
],
|
|
599
558
|
"signatures": [
|
|
@@ -616,7 +575,7 @@
|
|
|
616
575
|
"fileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
617
576
|
"line": 17,
|
|
618
577
|
"character": 2,
|
|
619
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
578
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L17"
|
|
620
579
|
}
|
|
621
580
|
],
|
|
622
581
|
"parameters": [
|
|
@@ -757,7 +716,7 @@
|
|
|
757
716
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
758
717
|
"line": 6,
|
|
759
718
|
"character": 13,
|
|
760
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
719
|
+
"url": "https://github.com/blackbaud/skyux/blob/822b440/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L6"
|
|
761
720
|
}
|
|
762
721
|
],
|
|
763
722
|
"extendedTypes": [
|
|
@@ -815,10 +774,6 @@
|
|
|
815
774
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts",
|
|
816
775
|
"qualifiedName": "SkySkipLinkArgs.links"
|
|
817
776
|
},
|
|
818
|
-
"5": {
|
|
819
|
-
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.module.ts",
|
|
820
|
-
"qualifiedName": "SkySkipLinkModule"
|
|
821
|
-
},
|
|
822
777
|
"8": {
|
|
823
778
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
824
779
|
"qualifiedName": "SkySkipLinkService"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
1
2
|
/**
|
|
2
3
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
3
4
|
* The contents of this file were automatically generated by
|
|
@@ -5,11 +6,12 @@
|
|
|
5
6
|
* To update this file, simply rerun the command.
|
|
6
7
|
*/
|
|
7
8
|
import { NgModule } from '@angular/core';
|
|
8
|
-
import { SKY_LIB_RESOURCES_PROVIDERS, SkyI18nModule, getLibStringForLocale, } from '@skyux/i18n';
|
|
9
|
+
import { SKY_LIB_RESOURCES_PROVIDERS, SkyI18nModule, SkyLibResourcesService, getLibStringForLocale, } from '@skyux/i18n';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
const RESOURCES = {
|
|
11
12
|
'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },
|
|
12
13
|
};
|
|
14
|
+
SkyLibResourcesService.addResources(RESOURCES);
|
|
13
15
|
export class SkyA11yResourcesProvider {
|
|
14
16
|
getString(localeInfo, name) {
|
|
15
17
|
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
@@ -42,4 +44,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
42
44
|
],
|
|
43
45
|
}]
|
|
44
46
|
}] });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2t5LWExMXktcmVzb3VyY2VzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hMTF5L3NyYy9saWIv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VVJDRVMpO1xuXG5leHBvcnQgY2xhc3MgU2t5QTExeVJlc291cmNlc1Byb3ZpZGVyIGltcGxlbWVudHMgU2t5TGliUmVzb3VyY2VzUHJvdmlkZXIge1xuICBwdWJsaWMgZ2V0U3RyaW5nKFxuICAgIGxvY2FsZUluZm86IFNreUFwcExvY2FsZUluZm8sXG4gICAgbmFtZTogc3RyaW5nXG4gICk6IHN0cmluZyB8IHVuZGVmaW5lZCB7XG4gICAgcmV0dXJuIGdldExpYlN0cmluZ0ZvckxvY2FsZShSRVNPVVJDRVMsIGxvY2FsZUluZm8ubG9jYWxlLCBuYW1lKTtcbiAgfVxufVxuXG4vKipcbiAqIEltcG9ydCBpbnRvIGFueSBjb21wb25lbnQgbGlicmFyeSBtb2R1bGUgdGhhdCBuZWVkcyB0byB1c2UgcmVzb3VyY2Ugc3RyaW5ncy5cbiAqL1xuQE5nTW9kdWxlKHtcbiAgZXhwb3J0czogW1NreUkxOG5Nb2R1bGVdLFxuICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBTS1lfTElCX1JFU09VUkNFU19QUk9WSURFUlMsXG4gICAgICB1c2VDbGFzczogU2t5QTExeVJlc291cmNlc1Byb3ZpZGVyLFxuICAgICAgbXVsdGk6IHRydWUsXG4gICAgfSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgU2t5QTExeVJlc291cmNlc01vZHVsZSB7fVxuIl19
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, } from '@angular/core';
|
|
3
|
+
import { SkyA11yResourcesModule } from '../shared/sky-a11y-resources.module';
|
|
2
4
|
import { SkySkipLinkAdapterService } from './skip-link-adapter.service';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "
|
|
5
|
-
import * as i2 from "@
|
|
6
|
-
import * as i3 from "@skyux/i18n";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@skyux/i18n";
|
|
7
8
|
export class SkySkipLinkHostComponent {
|
|
8
9
|
get links() {
|
|
9
10
|
return this.#_links;
|
|
@@ -13,20 +14,16 @@ export class SkySkipLinkHostComponent {
|
|
|
13
14
|
this.#changeDetector.markForCheck();
|
|
14
15
|
}
|
|
15
16
|
#_links = [];
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
constructor(changeDetector, adapter) {
|
|
19
|
-
this.#changeDetector = changeDetector;
|
|
20
|
-
this.#adapter = adapter;
|
|
21
|
-
}
|
|
17
|
+
#adapter = inject(SkySkipLinkAdapterService);
|
|
18
|
+
#changeDetector = inject(ChangeDetectorRef);
|
|
22
19
|
skipTo(link) {
|
|
23
20
|
this.#adapter.skipTo(link);
|
|
24
21
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkySkipLinkHostComponent, selector: "sky-skip-link-host", providers: [SkySkipLinkAdapterService], ngImport: i0, template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"], dependencies: [{ kind: "directive", type:
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkySkipLinkHostComponent, isStandalone: true, selector: "sky-skip-link-host", providers: [SkySkipLinkAdapterService], ngImport: i0, template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: SkyA11yResourcesModule }, { kind: "pipe", type: i2.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
24
|
}
|
|
28
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, decorators: [{
|
|
29
26
|
type: Component,
|
|
30
|
-
args: [{ selector: 'sky-skip-link-host', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SkySkipLinkAdapterService], template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"] }]
|
|
31
|
-
}]
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
args: [{ standalone: true, selector: 'sky-skip-link-host', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SkySkipLinkAdapterService], imports: [CommonModule, SkyA11yResourcesModule], template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"] }]
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLWhvc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2ExMXkvc3JjL2xpYi9tb2R1bGVzL3NraXAtbGluay9za2lwLWxpbmstaG9zdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYTExeS9zcmMvbGliL21vZHVsZXMvc2tpcC1saW5rL3NraXAtbGluay1ob3N0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBRzdFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7O0FBV3hFLE1BQU0s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cExpbmtBZGFwdGVyU2VydmljZSk7XG4gIHJlYWRvbmx5ICNjaGFuZ2VEZXRlY3RvciA9IGluamVjdChDaGFuZ2VEZXRlY3RvclJlZik7XG5cbiAgcHVibGljIHNraXBUbyhsaW5rOiBTa3lTa2lwTGluayk6IHZvaWQge1xuICAgIHRoaXMuI2FkYXB0ZXIuc2tpcFRvKGxpbmspO1xuICB9XG59XG4iLCI8YnV0dG9uXG4gICpuZ0Zvcj1cImxldCBsaW5rIG9mIGxpbmtzXCJcbiAgY2xhc3M9XCJza3ktYnRuIHNreS1idG4tcHJpbWFyeSBza3ktc2tpcC1saW5rXCJcbiAgdHlwZT1cImJ1dHRvblwiXG4gIChjbGljayk9XCJza2lwVG8obGluaylcIlxuPlxuICB7eyAnc2t5dXhfbGlzdF9za2lwX3RvX2xpbmsnIHwgc2t5TGliUmVzb3VyY2VzIDogbGluay50aXRsZSB9fVxuPC9idXR0b24+XG4iXX0=
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
1
|
import { NgModule } from '@angular/core';
|
|
3
|
-
import { SkyA11yResourcesModule } from '../shared/sky-a11y-resources.module';
|
|
4
|
-
import { SkySkipLinkHostComponent } from './skip-link-host.component';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
3
|
/**
|
|
7
4
|
* The Angular module that enables "skip links" to be added to the page.
|
|
5
|
+
* @deprecated The `SkySkipLinkModule` is no longer needed and can be removed from your application.
|
|
6
|
+
* @internal
|
|
8
7
|
*/
|
|
9
8
|
export class SkySkipLinkModule {
|
|
10
9
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule
|
|
12
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule
|
|
10
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule }); }
|
|
11
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule }); }
|
|
13
12
|
}
|
|
14
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, decorators: [{
|
|
15
14
|
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
declarations: [SkySkipLinkHostComponent],
|
|
18
|
-
imports: [CommonModule, SkyA11yResourcesModule],
|
|
19
|
-
}]
|
|
15
|
+
args: [{}]
|
|
20
16
|
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hMTF5L3NyYy9saWIvbW9kdWxlcy9za2lwLWxpbmsvc2tpcC1saW5rLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUV6Qzs7OztHQUlHO0FBRUgsTUFBTSxPQUFPLGlCQUFpQjs4R0FBakIsaUJBQWlCOytHQUFqQixpQkFBaUI7K0dBQWpCLGlCQUFpQjs7MkZBQWpCLGlCQUFpQjtrQkFEN0IsUUFBUTttQkFBQyxFQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBUaGUgQW5ndWxhciBtb2R1bGUgdGhhdCBlbmFibGVzIFwic2tpcCBsaW5rc1wiIHRvIGJlIGFkZGVkIHRvIHRoZSBwYWdlLlxuICogQGRlcHJlY2F0ZWQgVGhlIGBTa3lTa2lwTGlua01vZHVsZWAgaXMgbm8gbG9uZ2VyIG5lZWRlZCBhbmQgY2FuIGJlIHJlbW92ZWQgZnJvbSB5b3VyIGFwcGxpY2F0aW9uLlxuICogQGludGVybmFsXG4gKi9cbkBOZ01vZHVsZSh7fSlcbmV4cG9ydCBjbGFzcyBTa3lTa2lwTGlua01vZHVsZSB7fVxuIl19
|
|
@@ -22,8 +22,10 @@ export class SkySkipLinkService {
|
|
|
22
22
|
});
|
|
23
23
|
// Timeout needed in case the consumer sets the skip links within an Angular lifecycle hook.
|
|
24
24
|
setTimeout(() => {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
if (!SkySkipLinkService.host) {
|
|
26
|
+
SkySkipLinkService.host = this.#createHostComponent();
|
|
27
|
+
}
|
|
28
|
+
SkySkipLinkService.host.instance.links = args.links;
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
31
|
removeHostComponent() {
|
|
@@ -33,21 +35,18 @@ export class SkySkipLinkService {
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
#createHostComponent() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
SkySkipLinkService.host = componentRef;
|
|
41
|
-
}
|
|
42
|
-
return SkySkipLinkService.host;
|
|
38
|
+
const componentRef = this.#dynamicComponentService.createComponent(SkySkipLinkHostComponent, {
|
|
39
|
+
location: SkyDynamicComponentLocation.BodyTop,
|
|
40
|
+
});
|
|
41
|
+
return componentRef;
|
|
43
42
|
}
|
|
44
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, deps: [{ token: i1.SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
45
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, providedIn: '
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, providedIn: 'root' }); }
|
|
46
45
|
}
|
|
47
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, decorators: [{
|
|
48
47
|
type: Injectable,
|
|
49
48
|
args: [{
|
|
50
|
-
providedIn: '
|
|
49
|
+
providedIn: 'root',
|
|
51
50
|
}]
|
|
52
51
|
}], ctorParameters: function () { return [{ type: i1.SkyDynamicComponentService }]; } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYTExeS9zcmMvbGliL21vZHVsZXMvc2tpcC1saW5rL3NraXAtbGluay5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZ0IsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFDTCwyQkFBMkIsR0FFNUIsTUFBTSxhQUFhLENBQUM7QUFJckIsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sNEJBQTRCLENBQUM7OztBQUV0RTs7Ozs7O0dBTUc7QUFJSCxNQUFNLE9BQU8sa0JBQWtCO0lBRzdCLHdCQUF3QixDQUE2QjtJQUVyRCxZQUFZLHVCQUFtRDtRQUM3RCxJQUFJLENBQUM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0KSB7XG4gICAgICAgIFNreVNraXBMaW5rU2VydmljZS5ob3N0ID0gdGhpcy4jY3JlYXRlSG9zdENvbXBvbmVudCgpO1xuICAgICAgfVxuXG4gICAgICBTa3lTa2lwTGlua1NlcnZpY2UuaG9zdC5pbnN0YW5jZS5saW5rcyA9IGFyZ3MubGlua3M7XG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgcmVtb3ZlSG9zdENvbXBvbmVudCgpOiB2b2lkIHtcbiAgICBpZiAoU2t5U2tpcExpbmtTZXJ2aWNlLmhvc3QpIHtcbiAgICAgIHRoaXMuI2R5bmFtaWNDb21wb25lbnRTZXJ2aWNlLnJlbW92ZUNvbXBvbmVudChTa3lTa2lwTGlua1NlcnZpY2UuaG9zdCk7XG4gICAgICBTa3lTa2lwTGlua1NlcnZpY2UuaG9zdCA9IHVuZGVmaW5lZDtcbiAgICB9XG4gIH1cblxuICAjY3JlYXRlSG9zdENvbXBvbmVudCgpOiBDb21wb25lbnRSZWY8U2t5U2tpcExpbmtIb3N0Q29tcG9uZW50PiB7XG4gICAgY29uc3QgY29tcG9uZW50UmVmID0gdGhpcy4jZHluYW1pY0NvbXBvbmVudFNlcnZpY2UuY3JlYXRlQ29tcG9uZW50KFxuICAgICAgU2t5U2tpcExpbmtIb3N0Q29tcG9uZW50LFxuICAgICAge1xuICAgICAgICBsb2NhdGlvbjogU2t5RHluYW1pY0NvbXBvbmVudExvY2F0aW9uLkJvZHlUb3AsXG4gICAgICB9XG4gICAgKTtcblxuICAgIHJldHVybiBjb21wb25lbnRSZWY7XG4gIH1cbn1cbiJdfQ==
|
package/fesm2022/skyux-a11y.mjs
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
import * as i2 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { NgModule, Injectable, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
-
import * as i3 from '@skyux/i18n';
|
|
6
|
-
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
2
|
+
import { NgModule, Injectable, inject, ChangeDetectorRef, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
7
3
|
import * as i1 from '@skyux/core';
|
|
8
4
|
import { SkyDynamicComponentLocation } from '@skyux/core';
|
|
5
|
+
import * as i1$1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@skyux/i18n';
|
|
8
|
+
import { SkyLibResourcesService, getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The Angular module that enables "skip links" to be added to the page.
|
|
12
|
+
* @deprecated The `SkySkipLinkModule` is no longer needed and can be removed from your application.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
class SkySkipLinkModule {
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
17
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule }); }
|
|
18
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, decorators: [{
|
|
21
|
+
type: NgModule,
|
|
22
|
+
args: [{}]
|
|
23
|
+
}] });
|
|
24
|
+
|
|
25
|
+
/* istanbul ignore file */
|
|
10
26
|
/**
|
|
11
27
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
12
28
|
* The contents of this file were automatically generated by
|
|
@@ -16,6 +32,7 @@ import { SkyDynamicComponentLocation } from '@skyux/core';
|
|
|
16
32
|
const RESOURCES = {
|
|
17
33
|
'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },
|
|
18
34
|
};
|
|
35
|
+
SkyLibResourcesService.addResources(RESOURCES);
|
|
19
36
|
class SkyA11yResourcesProvider {
|
|
20
37
|
getString(localeInfo, name) {
|
|
21
38
|
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
@@ -80,37 +97,17 @@ class SkySkipLinkHostComponent {
|
|
|
80
97
|
this.#changeDetector.markForCheck();
|
|
81
98
|
}
|
|
82
99
|
#_links = [];
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
constructor(changeDetector, adapter) {
|
|
86
|
-
this.#changeDetector = changeDetector;
|
|
87
|
-
this.#adapter = adapter;
|
|
88
|
-
}
|
|
100
|
+
#adapter = inject(SkySkipLinkAdapterService);
|
|
101
|
+
#changeDetector = inject(ChangeDetectorRef);
|
|
89
102
|
skipTo(link) {
|
|
90
103
|
this.#adapter.skipTo(link);
|
|
91
104
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [
|
|
93
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkySkipLinkHostComponent, selector: "sky-skip-link-host", providers: [SkySkipLinkAdapterService], ngImport: i0, template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"], dependencies: [{ kind: "directive", type:
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkySkipLinkHostComponent, isStandalone: true, selector: "sky-skip-link-host", providers: [SkySkipLinkAdapterService], ngImport: i0, template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: SkyA11yResourcesModule }, { kind: "pipe", type: i2.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
94
107
|
}
|
|
95
108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, decorators: [{
|
|
96
109
|
type: Component,
|
|
97
|
-
args: [{ selector: 'sky-skip-link-host', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SkySkipLinkAdapterService], template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"] }]
|
|
98
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkySkipLinkAdapterService }]; } });
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The Angular module that enables "skip links" to be added to the page.
|
|
102
|
-
*/
|
|
103
|
-
class SkySkipLinkModule {
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
105
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, declarations: [SkySkipLinkHostComponent], imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
106
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
107
|
-
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, decorators: [{
|
|
109
|
-
type: NgModule,
|
|
110
|
-
args: [{
|
|
111
|
-
declarations: [SkySkipLinkHostComponent],
|
|
112
|
-
imports: [CommonModule, SkyA11yResourcesModule],
|
|
113
|
-
}]
|
|
110
|
+
args: [{ standalone: true, selector: 'sky-skip-link-host', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SkySkipLinkAdapterService], imports: [CommonModule, SkyA11yResourcesModule], template: "<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n", styles: [".sky-skip-link{position:absolute;left:-999px;width:1px;height:1px;top:auto}.sky-skip-link:focus,.sky-skip-link:active{display:inline-block;height:auto;width:auto;position:absolute;top:10px;left:10px;margin:auto;z-index:10000}\n"] }]
|
|
114
111
|
}] });
|
|
115
112
|
|
|
116
113
|
/**
|
|
@@ -132,8 +129,10 @@ class SkySkipLinkService {
|
|
|
132
129
|
});
|
|
133
130
|
// Timeout needed in case the consumer sets the skip links within an Angular lifecycle hook.
|
|
134
131
|
setTimeout(() => {
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
if (!SkySkipLinkService.host) {
|
|
133
|
+
SkySkipLinkService.host = this.#createHostComponent();
|
|
134
|
+
}
|
|
135
|
+
SkySkipLinkService.host.instance.links = args.links;
|
|
137
136
|
});
|
|
138
137
|
}
|
|
139
138
|
removeHostComponent() {
|
|
@@ -143,21 +142,18 @@ class SkySkipLinkService {
|
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
144
|
#createHostComponent() {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
SkySkipLinkService.host = componentRef;
|
|
151
|
-
}
|
|
152
|
-
return SkySkipLinkService.host;
|
|
145
|
+
const componentRef = this.#dynamicComponentService.createComponent(SkySkipLinkHostComponent, {
|
|
146
|
+
location: SkyDynamicComponentLocation.BodyTop,
|
|
147
|
+
});
|
|
148
|
+
return componentRef;
|
|
153
149
|
}
|
|
154
150
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, deps: [{ token: i1.SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
155
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, providedIn: '
|
|
151
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, providedIn: 'root' }); }
|
|
156
152
|
}
|
|
157
153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, decorators: [{
|
|
158
154
|
type: Injectable,
|
|
159
155
|
args: [{
|
|
160
|
-
providedIn: '
|
|
156
|
+
providedIn: 'root',
|
|
161
157
|
}]
|
|
162
158
|
}], ctorParameters: function () { return [{ type: i1.SkyDynamicComponentService }]; } });
|
|
163
159
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-a11y.mjs","sources":["../../../../../libs/components/a11y/src/lib/modules/shared/sky-a11y-resources.module.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-adapter.service.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-host.component.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-host.component.html","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link.module.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts","../../../../../libs/components/a11y/src/skyux-a11y.ts"],"sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-a11y' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },\n};\n\nexport class SkyA11yResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyA11yResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyA11yResourcesModule {}\n","import { Injectable } from '@angular/core';\nimport { SkyAppWindowRef } from '@skyux/core';\n\nimport { SkySkipLink } from './skip-link';\n\n@Injectable()\nexport class SkySkipLinkAdapterService {\n #windowRef: SkyAppWindowRef;\n\n constructor(windowRef: SkyAppWindowRef) {\n this.#windowRef = windowRef;\n }\n\n public skipTo(link: SkySkipLink): void {\n const targetElement = link.elementRef.nativeElement;\n const win = this.#windowRef.nativeWindow;\n const bodyElement = win.document.body;\n\n const bodyMarginTop = parseInt(\n win.getComputedStyle(bodyElement).marginTop,\n 10\n );\n const bodyDefaultPadding = 10;\n const scrollTop =\n targetElement.offsetTop - bodyMarginTop - bodyDefaultPadding;\n\n win.scroll(0, scrollTop);\n\n targetElement.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n} from '@angular/core';\n\nimport { SkySkipLink } from './skip-link';\nimport { SkySkipLinkAdapterService } from './skip-link-adapter.service';\n\n@Component({\n selector: 'sky-skip-link-host',\n templateUrl: './skip-link-host.component.html',\n styleUrls: ['./skip-link-host.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [SkySkipLinkAdapterService],\n})\nexport class SkySkipLinkHostComponent {\n public get links(): SkySkipLink[] {\n return this.#_links;\n }\n\n public set links(value: SkySkipLink[]) {\n this.#_links = value;\n this.#changeDetector.markForCheck();\n }\n\n #_links: SkySkipLink[] = [];\n\n #changeDetector: ChangeDetectorRef;\n #adapter: SkySkipLinkAdapterService;\n\n constructor(\n changeDetector: ChangeDetectorRef,\n adapter: SkySkipLinkAdapterService\n ) {\n this.#changeDetector = changeDetector;\n this.#adapter = adapter;\n }\n\n public skipTo(link: SkySkipLink): void {\n this.#adapter.skipTo(link);\n }\n}\n","<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SkyA11yResourcesModule } from '../shared/sky-a11y-resources.module';\n\nimport { SkySkipLinkHostComponent } from './skip-link-host.component';\n\n/**\n * The Angular module that enables \"skip links\" to be added to the page.\n */\n@NgModule({\n declarations: [SkySkipLinkHostComponent],\n imports: [CommonModule, SkyA11yResourcesModule],\n})\nexport class SkySkipLinkModule {}\n","import { ComponentRef, Injectable } from '@angular/core';\nimport {\n SkyDynamicComponentLocation,\n SkyDynamicComponentService,\n} from '@skyux/core';\n\nimport { SkySkipLink } from './skip-link';\nimport { SkySkipLinkArgs } from './skip-link-args';\nimport { SkySkipLinkHostComponent } from './skip-link-host.component';\n\n/**\n * An Angular service that adds \"skip links\" to the page. Skip links will only be displayed\n * when the page initially loads and the user presses the Tab key, in which case the first link will\n * be displayed and focused. Clicking the button will skip to the specified element. Pressing\n * the Tab key again will move to the next skip link if more than one skip link is specified;\n * otherwise, focus will move to the first focusable element on the page.\n */\n@Injectable({\n providedIn: 'any',\n})\nexport class SkySkipLinkService {\n private static host: ComponentRef<SkySkipLinkHostComponent> | undefined;\n\n #dynamicComponentService: SkyDynamicComponentService;\n\n constructor(dynamicComponentService: SkyDynamicComponentService) {\n this.#dynamicComponentService = dynamicComponentService;\n }\n\n public setSkipLinks(args: SkySkipLinkArgs): void {\n args.links = args.links.filter((link: SkySkipLink) => {\n const elementRefExists = link.elementRef;\n return elementRefExists;\n });\n\n // Timeout needed in case the consumer sets the skip links within an Angular lifecycle hook.\n setTimeout(() => {\n const host = this.#createHostComponent();\n host.instance.links = args.links;\n });\n }\n\n public removeHostComponent(): void {\n if (SkySkipLinkService.host) {\n this.#dynamicComponentService.removeComponent(SkySkipLinkService.host);\n SkySkipLinkService.host = undefined;\n }\n }\n\n #createHostComponent(): ComponentRef<SkySkipLinkHostComponent> {\n if (!SkySkipLinkService.host) {\n const componentRef = this.#dynamicComponentService.createComponent(\n SkySkipLinkHostComponent,\n {\n location: SkyDynamicComponentLocation.BodyTop,\n }\n );\n\n SkySkipLinkService.host = componentRef;\n }\n\n return SkySkipLinkService.host;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.SkySkipLinkAdapterService"],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAWH,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;CACjE,CAAC;MAEW,wBAAwB,CAAA;IAC5B,SAAS,CACd,UAA4B,EAC5B,IAAY,EAAA;QAEZ,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KAClE;AACF,CAAA;AAED;;AAEG;MAWU,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YATvB,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;AASZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EARtB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,2BAA2B;AACpC,gBAAA,QAAQ,EAAE,wBAAwB;AAClC,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CAPS,aAAa,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A,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cAFjB,KAAK,EAAA,CAAA,CAAA,EAAA;;2FAEN,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"skyux-a11y.mjs","sources":["../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link.module.ts","../../../../../libs/components/a11y/src/lib/modules/shared/sky-a11y-resources.module.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-adapter.service.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-host.component.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-host.component.html","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts","../../../../../libs/components/a11y/src/skyux-a11y.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\n/**\n * The Angular module that enables \"skip links\" to be added to the page.\n * @deprecated The `SkySkipLinkModule` is no longer needed and can be removed from your application.\n * @internal\n */\n@NgModule({})\nexport class SkySkipLinkModule {}\n","/* istanbul ignore file */\n\n/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-a11y' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SkyLibResourcesService,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\nexport class SkyA11yResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyA11yResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyA11yResourcesModule {}\n","import { Injectable } from '@angular/core';\nimport { SkyAppWindowRef } from '@skyux/core';\n\nimport { SkySkipLink } from './skip-link';\n\n@Injectable()\nexport class SkySkipLinkAdapterService {\n #windowRef: SkyAppWindowRef;\n\n constructor(windowRef: SkyAppWindowRef) {\n this.#windowRef = windowRef;\n }\n\n public skipTo(link: SkySkipLink): void {\n const targetElement = link.elementRef.nativeElement;\n const win = this.#windowRef.nativeWindow;\n const bodyElement = win.document.body;\n\n const bodyMarginTop = parseInt(\n win.getComputedStyle(bodyElement).marginTop,\n 10\n );\n const bodyDefaultPadding = 10;\n const scrollTop =\n targetElement.offsetTop - bodyMarginTop - bodyDefaultPadding;\n\n win.scroll(0, scrollTop);\n\n targetElement.focus();\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n} from '@angular/core';\n\nimport { SkyA11yResourcesModule } from '../shared/sky-a11y-resources.module';\n\nimport { SkySkipLink } from './skip-link';\nimport { SkySkipLinkAdapterService } from './skip-link-adapter.service';\n\n@Component({\n standalone: true,\n selector: 'sky-skip-link-host',\n templateUrl: './skip-link-host.component.html',\n styleUrls: ['./skip-link-host.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [SkySkipLinkAdapterService],\n imports: [CommonModule, SkyA11yResourcesModule],\n})\nexport class SkySkipLinkHostComponent {\n public get links(): SkySkipLink[] {\n return this.#_links;\n }\n\n public set links(value: SkySkipLink[]) {\n this.#_links = value;\n this.#changeDetector.markForCheck();\n }\n\n #_links: SkySkipLink[] = [];\n\n readonly #adapter = inject(SkySkipLinkAdapterService);\n readonly #changeDetector = inject(ChangeDetectorRef);\n\n public skipTo(link: SkySkipLink): void {\n this.#adapter.skipTo(link);\n }\n}\n","<button\n *ngFor=\"let link of links\"\n class=\"sky-btn sky-btn-primary sky-skip-link\"\n type=\"button\"\n (click)=\"skipTo(link)\"\n>\n {{ 'skyux_list_skip_to_link' | skyLibResources : link.title }}\n</button>\n","import { ComponentRef, Injectable } from '@angular/core';\nimport {\n SkyDynamicComponentLocation,\n SkyDynamicComponentService,\n} from '@skyux/core';\n\nimport { SkySkipLink } from './skip-link';\nimport { SkySkipLinkArgs } from './skip-link-args';\nimport { SkySkipLinkHostComponent } from './skip-link-host.component';\n\n/**\n * An Angular service that adds \"skip links\" to the page. Skip links will only be displayed\n * when the page initially loads and the user presses the Tab key, in which case the first link will\n * be displayed and focused. Clicking the button will skip to the specified element. Pressing\n * the Tab key again will move to the next skip link if more than one skip link is specified;\n * otherwise, focus will move to the first focusable element on the page.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkySkipLinkService {\n private static host: ComponentRef<SkySkipLinkHostComponent> | undefined;\n\n #dynamicComponentService: SkyDynamicComponentService;\n\n constructor(dynamicComponentService: SkyDynamicComponentService) {\n this.#dynamicComponentService = dynamicComponentService;\n }\n\n public setSkipLinks(args: SkySkipLinkArgs): void {\n args.links = args.links.filter((link: SkySkipLink) => {\n const elementRefExists = link.elementRef;\n return elementRefExists;\n });\n\n // Timeout needed in case the consumer sets the skip links within an Angular lifecycle hook.\n setTimeout(() => {\n if (!SkySkipLinkService.host) {\n SkySkipLinkService.host = this.#createHostComponent();\n }\n\n SkySkipLinkService.host.instance.links = args.links;\n });\n }\n\n public removeHostComponent(): void {\n if (SkySkipLinkService.host) {\n this.#dynamicComponentService.removeComponent(SkySkipLinkService.host);\n SkySkipLinkService.host = undefined;\n }\n }\n\n #createHostComponent(): ComponentRef<SkySkipLinkHostComponent> {\n const componentRef = this.#dynamicComponentService.createComponent(\n SkySkipLinkHostComponent,\n {\n location: SkyDynamicComponentLocation.BodyTop,\n }\n );\n\n return componentRef;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;AAEA;;;;AAIG;MAEU,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA,EAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA,EAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,QAAQ;mBAAC,EAAE,CAAA;;;ACPZ;AAEA;;;;;AAKG;AAYH,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;CACjE,CAAC;AAEF,sBAAsB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;MAElC,wBAAwB,CAAA;IAC5B,SAAS,CACd,UAA4B,EAC5B,IAAY,EAAA;QAEZ,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KAClE;AACF,CAAA;AAED;;AAEG;MAWU,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA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nB,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
1
|
import { SkySkipLink } from './skip-link';
|
|
3
|
-
import { SkySkipLinkAdapterService } from './skip-link-adapter.service';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export declare class SkySkipLinkHostComponent {
|
|
6
4
|
#private;
|
|
7
5
|
get links(): SkySkipLink[];
|
|
8
6
|
set links(value: SkySkipLink[]);
|
|
9
|
-
constructor(changeDetector: ChangeDetectorRef, adapter: SkySkipLinkAdapterService);
|
|
10
7
|
skipTo(link: SkySkipLink): void;
|
|
11
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySkipLinkHostComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkySkipLinkHostComponent, "sky-skip-link-host", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkySkipLinkHostComponent, "sky-skip-link-host", never, {}, {}, never, never, true, never>;
|
|
13
10
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./skip-link-host.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../shared/sky-a11y-resources.module";
|
|
5
2
|
/**
|
|
6
3
|
* The Angular module that enables "skip links" to be added to the page.
|
|
4
|
+
* @deprecated The `SkySkipLinkModule` is no longer needed and can be removed from your application.
|
|
5
|
+
* @internal
|
|
7
6
|
*/
|
|
8
7
|
export declare class SkySkipLinkModule {
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySkipLinkModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkySkipLinkModule,
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkySkipLinkModule, never, never, never>;
|
|
11
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkySkipLinkModule>;
|
|
12
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/a11y",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.9",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@angular/common": "^16.2.1",
|
|
40
40
|
"@angular/core": "^16.2.1",
|
|
41
|
-
"@skyux/core": "9.0.0-alpha.
|
|
42
|
-
"@skyux/i18n": "9.0.0-alpha.
|
|
41
|
+
"@skyux/core": "9.0.0-alpha.9",
|
|
42
|
+
"@skyux/i18n": "9.0.0-alpha.9"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"tslib": "^2.6.2"
|