@skyux/a11y 9.0.0-alpha.6 → 9.0.0-alpha.7
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 +78 -78
- package/esm2022/lib/modules/shared/sky-a11y-resources.module.mjs +4 -4
- package/esm2022/lib/modules/skip-link/skip-link-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/skip-link/skip-link-host.component.mjs +3 -3
- package/esm2022/lib/modules/skip-link/skip-link.module.mjs +5 -7
- package/esm2022/lib/modules/skip-link/skip-link.service.mjs +9 -8
- package/fesm2022/skyux-a11y.mjs +33 -33
- package/fesm2022/skyux-a11y.mjs.map +1 -1
- package/package.json +6 -6
package/documentation.json
CHANGED
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"sources": [
|
|
40
40
|
{
|
|
41
41
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.module.ts",
|
|
42
|
-
"line":
|
|
42
|
+
"line": 15,
|
|
43
43
|
"character": 13,
|
|
44
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
44
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.module.ts#L15"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"decorators": [
|
|
48
48
|
{
|
|
49
49
|
"name": "NgModule",
|
|
50
50
|
"arguments": {
|
|
51
|
-
"obj": "@NgModule({\n declarations: [SkySkipLinkHostComponent],\n imports: [CommonModule, SkyA11yResourcesModule],\n
|
|
51
|
+
"obj": "@NgModule({\n declarations: [SkySkipLinkHostComponent],\n imports: [CommonModule, SkyA11yResourcesModule],\n})"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
]
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"sources": [
|
|
78
78
|
{
|
|
79
79
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
80
|
-
"line":
|
|
80
|
+
"line": 26,
|
|
81
81
|
"character": 2,
|
|
82
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
82
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
"signatures": [
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"sources": [
|
|
93
93
|
{
|
|
94
94
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
95
|
-
"line":
|
|
95
|
+
"line": 26,
|
|
96
96
|
"character": 2,
|
|
97
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
97
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
100
|
"parameters": [
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
]
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
"id":
|
|
128
|
+
"id": 17,
|
|
129
129
|
"name": "removeHostComponent",
|
|
130
130
|
"variant": "declaration",
|
|
131
131
|
"kind": 2048,
|
|
@@ -135,14 +135,14 @@
|
|
|
135
135
|
"sources": [
|
|
136
136
|
{
|
|
137
137
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
138
|
-
"line":
|
|
138
|
+
"line": 43,
|
|
139
139
|
"character": 9,
|
|
140
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
140
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L43"
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"signatures": [
|
|
144
144
|
{
|
|
145
|
-
"id":
|
|
145
|
+
"id": 18,
|
|
146
146
|
"name": "removeHostComponent",
|
|
147
147
|
"variant": "signature",
|
|
148
148
|
"kind": 4096,
|
|
@@ -150,9 +150,9 @@
|
|
|
150
150
|
"sources": [
|
|
151
151
|
{
|
|
152
152
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
153
|
-
"line":
|
|
153
|
+
"line": 43,
|
|
154
154
|
"character": 2,
|
|
155
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
155
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L43"
|
|
156
156
|
}
|
|
157
157
|
],
|
|
158
158
|
"type": {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"decorators": []
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
"id":
|
|
167
|
+
"id": 14,
|
|
168
168
|
"name": "setSkipLinks",
|
|
169
169
|
"variant": "declaration",
|
|
170
170
|
"kind": 2048,
|
|
@@ -174,14 +174,14 @@
|
|
|
174
174
|
"sources": [
|
|
175
175
|
{
|
|
176
176
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
177
|
-
"line":
|
|
177
|
+
"line": 30,
|
|
178
178
|
"character": 9,
|
|
179
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
179
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"signatures": [
|
|
183
183
|
{
|
|
184
|
-
"id":
|
|
184
|
+
"id": 15,
|
|
185
185
|
"name": "setSkipLinks",
|
|
186
186
|
"variant": "signature",
|
|
187
187
|
"kind": 4096,
|
|
@@ -189,14 +189,14 @@
|
|
|
189
189
|
"sources": [
|
|
190
190
|
{
|
|
191
191
|
"fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
192
|
-
"line":
|
|
192
|
+
"line": 30,
|
|
193
193
|
"character": 2,
|
|
194
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
194
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
|
|
195
195
|
}
|
|
196
196
|
],
|
|
197
197
|
"parameters": [
|
|
198
198
|
{
|
|
199
|
-
"id":
|
|
199
|
+
"id": 16,
|
|
200
200
|
"name": "args",
|
|
201
201
|
"variant": "param",
|
|
202
202
|
"kind": 32768,
|
|
@@ -228,30 +228,30 @@
|
|
|
228
228
|
{
|
|
229
229
|
"title": "Methods",
|
|
230
230
|
"children": [
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
17,
|
|
232
|
+
14
|
|
233
233
|
]
|
|
234
234
|
}
|
|
235
235
|
],
|
|
236
236
|
"sources": [
|
|
237
237
|
{
|
|
238
238
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
|
|
239
|
-
"line":
|
|
239
|
+
"line": 21,
|
|
240
240
|
"character": 13,
|
|
241
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
241
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L21"
|
|
242
242
|
}
|
|
243
243
|
],
|
|
244
244
|
"decorators": [
|
|
245
245
|
{
|
|
246
246
|
"name": "Injectable",
|
|
247
247
|
"arguments": {
|
|
248
|
-
"obj": "@Injectable()"
|
|
248
|
+
"obj": "@Injectable({\n providedIn: 'any',\n})"
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
]
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
"id":
|
|
254
|
+
"id": 21,
|
|
255
255
|
"name": "SkySkipLink",
|
|
256
256
|
"variant": "declaration",
|
|
257
257
|
"kind": 256,
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
},
|
|
267
267
|
"children": [
|
|
268
268
|
{
|
|
269
|
-
"id":
|
|
269
|
+
"id": 23,
|
|
270
270
|
"name": "elementRef",
|
|
271
271
|
"variant": "declaration",
|
|
272
272
|
"kind": 1024,
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
301
301
|
"line": 17,
|
|
302
302
|
"character": 2,
|
|
303
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
303
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L17"
|
|
304
304
|
}
|
|
305
305
|
],
|
|
306
306
|
"type": {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
"id":
|
|
323
|
+
"id": 22,
|
|
324
324
|
"name": "title",
|
|
325
325
|
"variant": "declaration",
|
|
326
326
|
"kind": 1024,
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
339
339
|
"line": 10,
|
|
340
340
|
"character": 2,
|
|
341
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
341
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L10"
|
|
342
342
|
}
|
|
343
343
|
],
|
|
344
344
|
"type": {
|
|
@@ -351,8 +351,8 @@
|
|
|
351
351
|
{
|
|
352
352
|
"title": "Properties",
|
|
353
353
|
"children": [
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
23,
|
|
355
|
+
22
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
358
|
],
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
|
|
362
362
|
"line": 6,
|
|
363
363
|
"character": 17,
|
|
364
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
364
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L6"
|
|
365
365
|
}
|
|
366
366
|
]
|
|
367
367
|
},
|
|
@@ -399,14 +399,14 @@
|
|
|
399
399
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
|
|
400
400
|
"line": 13,
|
|
401
401
|
"character": 2,
|
|
402
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
402
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L13"
|
|
403
403
|
}
|
|
404
404
|
],
|
|
405
405
|
"type": {
|
|
406
406
|
"type": "array",
|
|
407
407
|
"elementType": {
|
|
408
408
|
"type": "reference",
|
|
409
|
-
"target":
|
|
409
|
+
"target": 21,
|
|
410
410
|
"name": "SkySkipLink",
|
|
411
411
|
"package": "@skyux/a11y"
|
|
412
412
|
}
|
|
@@ -426,12 +426,12 @@
|
|
|
426
426
|
"fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
|
|
427
427
|
"line": 9,
|
|
428
428
|
"character": 17,
|
|
429
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
429
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L9"
|
|
430
430
|
}
|
|
431
431
|
]
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
|
-
"id":
|
|
434
|
+
"id": 24,
|
|
435
435
|
"name": "SkySkipLinksHarness",
|
|
436
436
|
"variant": "declaration",
|
|
437
437
|
"kind": 128,
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
},
|
|
447
447
|
"children": [
|
|
448
448
|
{
|
|
449
|
-
"id":
|
|
449
|
+
"id": 31,
|
|
450
450
|
"name": "constructor",
|
|
451
451
|
"variant": "declaration",
|
|
452
452
|
"kind": 512,
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
],
|
|
461
461
|
"signatures": [
|
|
462
462
|
{
|
|
463
|
-
"id":
|
|
463
|
+
"id": 32,
|
|
464
464
|
"name": "new SkySkipLinksHarness",
|
|
465
465
|
"variant": "signature",
|
|
466
466
|
"kind": 16384,
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
],
|
|
475
475
|
"parameters": [
|
|
476
476
|
{
|
|
477
|
-
"id":
|
|
477
|
+
"id": 33,
|
|
478
478
|
"name": "locatorFactory",
|
|
479
479
|
"variant": "param",
|
|
480
480
|
"kind": 32768,
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
],
|
|
493
493
|
"type": {
|
|
494
494
|
"type": "reference",
|
|
495
|
-
"target":
|
|
495
|
+
"target": 24,
|
|
496
496
|
"name": "SkySkipLinksHarness",
|
|
497
497
|
"package": "@skyux/a11y"
|
|
498
498
|
},
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
"id":
|
|
513
|
+
"id": 38,
|
|
514
514
|
"name": "clickSkipLink",
|
|
515
515
|
"variant": "declaration",
|
|
516
516
|
"kind": 2048,
|
|
@@ -522,12 +522,12 @@
|
|
|
522
522
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
523
523
|
"line": 26,
|
|
524
524
|
"character": 15,
|
|
525
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
525
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L26"
|
|
526
526
|
}
|
|
527
527
|
],
|
|
528
528
|
"signatures": [
|
|
529
529
|
{
|
|
530
|
-
"id":
|
|
530
|
+
"id": 39,
|
|
531
531
|
"name": "clickSkipLink",
|
|
532
532
|
"variant": "signature",
|
|
533
533
|
"kind": 4096,
|
|
@@ -545,12 +545,12 @@
|
|
|
545
545
|
"fileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
546
546
|
"line": 26,
|
|
547
547
|
"character": 2,
|
|
548
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
548
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L26"
|
|
549
549
|
}
|
|
550
550
|
],
|
|
551
551
|
"parameters": [
|
|
552
552
|
{
|
|
553
|
-
"id":
|
|
553
|
+
"id": 40,
|
|
554
554
|
"name": "index",
|
|
555
555
|
"variant": "param",
|
|
556
556
|
"kind": 32768,
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
"decorators": []
|
|
582
582
|
},
|
|
583
583
|
{
|
|
584
|
-
"id":
|
|
584
|
+
"id": 35,
|
|
585
585
|
"name": "getSkipLinkText",
|
|
586
586
|
"variant": "declaration",
|
|
587
587
|
"kind": 2048,
|
|
@@ -593,12 +593,12 @@
|
|
|
593
593
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
594
594
|
"line": 17,
|
|
595
595
|
"character": 15,
|
|
596
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
596
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L17"
|
|
597
597
|
}
|
|
598
598
|
],
|
|
599
599
|
"signatures": [
|
|
600
600
|
{
|
|
601
|
-
"id":
|
|
601
|
+
"id": 36,
|
|
602
602
|
"name": "getSkipLinkText",
|
|
603
603
|
"variant": "signature",
|
|
604
604
|
"kind": 4096,
|
|
@@ -616,12 +616,12 @@
|
|
|
616
616
|
"fileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
617
617
|
"line": 17,
|
|
618
618
|
"character": 2,
|
|
619
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
619
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L17"
|
|
620
620
|
}
|
|
621
621
|
],
|
|
622
622
|
"parameters": [
|
|
623
623
|
{
|
|
624
|
-
"id":
|
|
624
|
+
"id": 37,
|
|
625
625
|
"name": "index",
|
|
626
626
|
"variant": "param",
|
|
627
627
|
"kind": 32768,
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
"decorators": []
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
|
-
"id":
|
|
655
|
+
"id": 44,
|
|
656
656
|
"name": "host",
|
|
657
657
|
"variant": "declaration",
|
|
658
658
|
"kind": 2048,
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
],
|
|
667
667
|
"signatures": [
|
|
668
668
|
{
|
|
669
|
-
"id":
|
|
669
|
+
"id": 45,
|
|
670
670
|
"name": "host",
|
|
671
671
|
"variant": "signature",
|
|
672
672
|
"kind": 4096,
|
|
@@ -740,15 +740,15 @@
|
|
|
740
740
|
{
|
|
741
741
|
"title": "Constructors",
|
|
742
742
|
"children": [
|
|
743
|
-
|
|
743
|
+
31
|
|
744
744
|
]
|
|
745
745
|
},
|
|
746
746
|
{
|
|
747
747
|
"title": "Methods",
|
|
748
748
|
"children": [
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
38,
|
|
750
|
+
35,
|
|
751
|
+
44
|
|
752
752
|
]
|
|
753
753
|
}
|
|
754
754
|
],
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
"fileName": "projects/a11y/src/testing/skip-link/skip-links-harness.ts",
|
|
758
758
|
"line": 6,
|
|
759
759
|
"character": 13,
|
|
760
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
760
|
+
"url": "https://github.com/blackbaud/skyux/blob/a912af6/libs/components/a11y/testing/src/skip-link/skip-links-harness.ts#L6"
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"extendedTypes": [
|
|
@@ -835,83 +835,83 @@
|
|
|
835
835
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
836
836
|
"qualifiedName": "dynamicComponentService"
|
|
837
837
|
},
|
|
838
|
-
"
|
|
838
|
+
"14": {
|
|
839
839
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
840
840
|
"qualifiedName": "SkySkipLinkService.setSkipLinks"
|
|
841
841
|
},
|
|
842
|
-
"
|
|
842
|
+
"15": {
|
|
843
843
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
844
844
|
"qualifiedName": "SkySkipLinkService.setSkipLinks"
|
|
845
845
|
},
|
|
846
|
-
"
|
|
846
|
+
"16": {
|
|
847
847
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
848
848
|
"qualifiedName": "args"
|
|
849
849
|
},
|
|
850
|
-
"
|
|
850
|
+
"17": {
|
|
851
851
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
852
852
|
"qualifiedName": "SkySkipLinkService.removeHostComponent"
|
|
853
853
|
},
|
|
854
|
-
"
|
|
854
|
+
"18": {
|
|
855
855
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
|
|
856
856
|
"qualifiedName": "SkySkipLinkService.removeHostComponent"
|
|
857
857
|
},
|
|
858
|
-
"
|
|
858
|
+
"21": {
|
|
859
859
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.ts",
|
|
860
860
|
"qualifiedName": "SkySkipLink"
|
|
861
861
|
},
|
|
862
|
-
"
|
|
862
|
+
"22": {
|
|
863
863
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.ts",
|
|
864
864
|
"qualifiedName": "SkySkipLink.title"
|
|
865
865
|
},
|
|
866
|
-
"
|
|
866
|
+
"23": {
|
|
867
867
|
"sourceFileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.ts",
|
|
868
868
|
"qualifiedName": "SkySkipLink.elementRef"
|
|
869
869
|
},
|
|
870
|
-
"
|
|
870
|
+
"24": {
|
|
871
871
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
872
872
|
"qualifiedName": "SkySkipLinksHarness"
|
|
873
873
|
},
|
|
874
|
-
"
|
|
874
|
+
"31": {
|
|
875
875
|
"sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
876
876
|
"qualifiedName": "ComponentHarness.__constructor"
|
|
877
877
|
},
|
|
878
|
-
"
|
|
878
|
+
"32": {
|
|
879
879
|
"sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
880
880
|
"qualifiedName": "SkySkipLinksHarness"
|
|
881
881
|
},
|
|
882
|
-
"
|
|
882
|
+
"33": {
|
|
883
883
|
"sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
884
884
|
"qualifiedName": "locatorFactory"
|
|
885
885
|
},
|
|
886
|
-
"
|
|
886
|
+
"35": {
|
|
887
887
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
888
888
|
"qualifiedName": "SkySkipLinksHarness.getSkipLinkText"
|
|
889
889
|
},
|
|
890
|
-
"
|
|
890
|
+
"36": {
|
|
891
891
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
892
892
|
"qualifiedName": "SkySkipLinksHarness.getSkipLinkText"
|
|
893
893
|
},
|
|
894
|
-
"
|
|
894
|
+
"37": {
|
|
895
895
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
896
896
|
"qualifiedName": "index"
|
|
897
897
|
},
|
|
898
|
-
"
|
|
898
|
+
"38": {
|
|
899
899
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
900
900
|
"qualifiedName": "SkySkipLinksHarness.clickSkipLink"
|
|
901
901
|
},
|
|
902
|
-
"
|
|
902
|
+
"39": {
|
|
903
903
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
904
904
|
"qualifiedName": "SkySkipLinksHarness.clickSkipLink"
|
|
905
905
|
},
|
|
906
|
-
"
|
|
906
|
+
"40": {
|
|
907
907
|
"sourceFileName": "libs/components/a11y/testing/src/skip-link/skip-links-harness.ts",
|
|
908
908
|
"qualifiedName": "index"
|
|
909
909
|
},
|
|
910
|
-
"
|
|
910
|
+
"44": {
|
|
911
911
|
"sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
912
912
|
"qualifiedName": "ComponentHarness.host"
|
|
913
913
|
},
|
|
914
|
-
"
|
|
914
|
+
"45": {
|
|
915
915
|
"sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
916
916
|
"qualifiedName": "ComponentHarness.host"
|
|
917
917
|
}
|
|
@@ -19,9 +19,9 @@ export class SkyA11yResourcesProvider {
|
|
|
19
19
|
* Import into any component library module that needs to use resource strings.
|
|
20
20
|
*/
|
|
21
21
|
export class SkyA11yResourcesModule {
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
23
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1
|
|
24
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
23
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, exports: [SkyI18nModule] }); }
|
|
24
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, providers: [
|
|
25
25
|
{
|
|
26
26
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
27
27
|
useClass: SkyA11yResourcesProvider,
|
|
@@ -29,7 +29,7 @@ export class SkyA11yResourcesModule {
|
|
|
29
29
|
},
|
|
30
30
|
], imports: [SkyI18nModule] }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, decorators: [{
|
|
33
33
|
type: NgModule,
|
|
34
34
|
args: [{
|
|
35
35
|
exports: [SkyI18nModule],
|
|
@@ -16,10 +16,10 @@ export class SkySkipLinkAdapterService {
|
|
|
16
16
|
win.scroll(0, scrollTop);
|
|
17
17
|
targetElement.focus();
|
|
18
18
|
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
20
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService, deps: [{ token: i1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService, decorators: [{
|
|
23
23
|
type: Injectable
|
|
24
24
|
}], ctorParameters: function () { return [{ type: i1.SkyAppWindowRef }]; } });
|
|
25
25
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLWFkYXB0ZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hMTF5L3NyYy9saWIvbW9kdWxl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22
|
skipTo(link) {
|
|
23
23
|
this.#adapter.skipTo(link);
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.SkySkipLinkAdapterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
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
31
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.SkySkipLinkAdapterService }]; } });
|
|
@@ -2,22 +2,20 @@ import { CommonModule } from '@angular/common';
|
|
|
2
2
|
import { NgModule } from '@angular/core';
|
|
3
3
|
import { SkyA11yResourcesModule } from '../shared/sky-a11y-resources.module';
|
|
4
4
|
import { SkySkipLinkHostComponent } from './skip-link-host.component';
|
|
5
|
-
import { SkySkipLinkService } from './skip-link.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* The Angular module that enables "skip links" to be added to the page.
|
|
9
8
|
*/
|
|
10
9
|
export class SkySkipLinkModule {
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
12
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1
|
|
13
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1
|
|
10
|
+
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, declarations: [SkySkipLinkHostComponent], imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
12
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
14
13
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkModule, decorators: [{
|
|
16
15
|
type: NgModule,
|
|
17
16
|
args: [{
|
|
18
17
|
declarations: [SkySkipLinkHostComponent],
|
|
19
18
|
imports: [CommonModule, SkyA11yResourcesModule],
|
|
20
|
-
providers: [SkySkipLinkService],
|
|
21
19
|
}]
|
|
22
20
|
}] });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hMTF5L3NyYy9saWIvbW9kdWxlcy9za2lwLWxpbmsvc2tpcC1saW5rLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUU3RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQzs7QUFFdEU7O0dBRUc7QUFLSCxNQUFNLE9BQU8saUJBQWlCOzhHQUFqQixpQkFBaUI7K0dBQWpCLGlCQUFpQixpQkFIYix3QkFBd0IsYUFDN0IsWUFBWSxFQUFFLHNCQUFzQjsrR0FFbkMsaUJBQWlCLFlBRmxCLFlBQVksRUFBRSxzQkFBc0I7OzJGQUVuQyxpQkFBaUI7a0JBSjdCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUMsd0JBQXdCLENBQUM7b0JBQ3hDLE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxzQkFBc0IsQ0FBQztpQkFDaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgU2t5QTExeVJlc291cmNlc01vZHVsZSB9IGZyb20gJy4uL3NoYXJlZC9za3ktYTExeS1yZXNvdXJjZXMubW9kdWxlJztcblxuaW1wb3J0IHsgU2t5U2tpcExpbmtIb3N0Q29tcG9uZW50IH0gZnJvbSAnLi9za2lwLWxpbmstaG9zdC5jb21wb25lbnQnO1xuXG4vKipcbiAqIFRoZSBBbmd1bGFyIG1vZHVsZSB0aGF0IGVuYWJsZXMgXCJza2lwIGxpbmtzXCIgdG8gYmUgYWRkZWQgdG8gdGhlIHBhZ2UuXG4gKi9cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1NreVNraXBMaW5rSG9zdENvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIFNreUExMXlSZXNvdXJjZXNNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBTa3lTa2lwTGlua01vZHVsZSB7fVxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
2
|
import { SkyDynamicComponentLocation, } from '@skyux/core';
|
|
3
3
|
import { SkySkipLinkHostComponent } from './skip-link-host.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +12,6 @@ import * as i1 from "@skyux/core";
|
|
|
12
12
|
*/
|
|
13
13
|
export class SkySkipLinkService {
|
|
14
14
|
#dynamicComponentService;
|
|
15
|
-
#environmentInjector = inject(EnvironmentInjector);
|
|
16
15
|
constructor(dynamicComponentService) {
|
|
17
16
|
this.#dynamicComponentService = dynamicComponentService;
|
|
18
17
|
}
|
|
@@ -36,17 +35,19 @@ export class SkySkipLinkService {
|
|
|
36
35
|
#createHostComponent() {
|
|
37
36
|
if (!SkySkipLinkService.host) {
|
|
38
37
|
const componentRef = this.#dynamicComponentService.createComponent(SkySkipLinkHostComponent, {
|
|
39
|
-
environmentInjector: this.#environmentInjector,
|
|
40
38
|
location: SkyDynamicComponentLocation.BodyTop,
|
|
41
39
|
});
|
|
42
40
|
SkySkipLinkService.host = componentRef;
|
|
43
41
|
}
|
|
44
42
|
return SkySkipLinkService.host;
|
|
45
43
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
47
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
44
|
+
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: 'any' }); }
|
|
48
46
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
50
|
-
type: Injectable
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, decorators: [{
|
|
48
|
+
type: Injectable,
|
|
49
|
+
args: [{
|
|
50
|
+
providedIn: 'any',
|
|
51
|
+
}]
|
|
51
52
|
}], ctorParameters: function () { return [{ type: i1.SkyDynamicComponentService }]; } });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tpcC1saW5rLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYTExeS9zcmMvbGliL21vZHVsZXMvc2tpcC1saW5rL3NraXAtbGluay5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZ0IsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFDTCwyQkFBMkIsR0FFNUIsTUFBTSxhQUFhLENBQUM7QUFJckIsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sNEJBQTRCLENBQUM7OztBQUV0RTs7Ozs7O0dBTUc7QUFJSCxNQUFNLE9BQU8sa0JBQWtCO0lBRzdCLHdCQUF3QixDQUE2QjtJQUVyRCxZQUFZLHVCQUFtRDtRQUM3RCxJQUFJLENBQUMsd0JBQXdCLEdBQUcsdUJBQXVCLENBQUM7SUFDMUQsQ0FBQztJQUVNLFlBQVksQ0FBQyxJQUFxQjtRQUN2QyxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBaUIsRUFBRSxFQUFFO1lBQ25ELE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQztZQUN6QyxPQUFPLGdCQUFnQixDQUFDO1FBQzFCLENBQUMsQ0FBQyxDQUFDO1FBRUgsNEZBQTRGO1FBQzVGLFVBQVUsQ0FBQyxHQUFHLEVBQUU7WUFDZCxNQUFNLElBQUksR0FBRyxJQUFJLENB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maW5lZDtcbiAgICB9XG4gIH1cblxuICAjY3JlYXRlSG9zdENvbXBvbmVudCgpOiBDb21wb25lbnRSZWY8U2t5U2tpcExpbmtIb3N0Q29tcG9uZW50PiB7XG4gICAgaWYgKCFTa3lTa2lwTGlua1NlcnZpY2UuaG9zdCkge1xuICAgICAgY29uc3QgY29tcG9uZW50UmVmID0gdGhpcy4jZHluYW1pY0NvbXBvbmVudFNlcnZpY2UuY3JlYXRlQ29tcG9uZW50KFxuICAgICAgICBTa3lTa2lwTGlua0hvc3RDb21wb25lbnQsXG4gICAgICAgIHtcbiAgICAgICAgICBsb2NhdGlvbjogU2t5RHluYW1pY0NvbXBvbmVudExvY2F0aW9uLkJvZHlUb3AsXG4gICAgICAgIH1cbiAgICAgICk7XG5cbiAgICAgIFNreVNraXBMaW5rU2VydmljZS5ob3N0ID0gY29tcG9uZW50UmVmO1xuICAgIH1cblxuICAgIHJldHVybiBTa3lTa2lwTGlua1NlcnZpY2UuaG9zdDtcbiAgfVxufVxuIl19
|
package/fesm2022/skyux-a11y.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { NgModule, Injectable, Component, ChangeDetectionStrategy
|
|
4
|
+
import { NgModule, Injectable, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
5
|
import * as i3 from '@skyux/i18n';
|
|
6
6
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
7
7
|
import * as i1 from '@skyux/core';
|
|
@@ -25,9 +25,9 @@ class SkyA11yResourcesProvider {
|
|
|
25
25
|
* Import into any component library module that needs to use resource strings.
|
|
26
26
|
*/
|
|
27
27
|
class SkyA11yResourcesModule {
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
29
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1
|
|
30
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
29
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, exports: [SkyI18nModule] }); }
|
|
30
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, providers: [
|
|
31
31
|
{
|
|
32
32
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
33
33
|
useClass: SkyA11yResourcesProvider,
|
|
@@ -35,7 +35,7 @@ class SkyA11yResourcesModule {
|
|
|
35
35
|
},
|
|
36
36
|
], imports: [SkyI18nModule] }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyA11yResourcesModule, decorators: [{
|
|
39
39
|
type: NgModule,
|
|
40
40
|
args: [{
|
|
41
41
|
exports: [SkyI18nModule],
|
|
@@ -64,10 +64,10 @@ class SkySkipLinkAdapterService {
|
|
|
64
64
|
win.scroll(0, scrollTop);
|
|
65
65
|
targetElement.focus();
|
|
66
66
|
}
|
|
67
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
68
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
67
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService, deps: [{ token: i1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
68
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService }); }
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkAdapterService, decorators: [{
|
|
71
71
|
type: Injectable
|
|
72
72
|
}], ctorParameters: function () { return [{ type: i1.SkyAppWindowRef }]; } });
|
|
73
73
|
|
|
@@ -89,14 +89,30 @@ class SkySkipLinkHostComponent {
|
|
|
89
89
|
skipTo(link) {
|
|
90
90
|
this.#adapter.skipTo(link);
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
93
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkySkipLinkAdapterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkHostComponent, decorators: [{
|
|
96
96
|
type: Component,
|
|
97
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
98
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkySkipLinkAdapterService }]; } });
|
|
99
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
|
+
}]
|
|
114
|
+
}] });
|
|
115
|
+
|
|
100
116
|
/**
|
|
101
117
|
* An Angular service that adds "skip links" to the page. Skip links will only be displayed
|
|
102
118
|
* when the page initially loads and the user presses the Tab key, in which case the first link will
|
|
@@ -106,7 +122,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
|
|
|
106
122
|
*/
|
|
107
123
|
class SkySkipLinkService {
|
|
108
124
|
#dynamicComponentService;
|
|
109
|
-
#environmentInjector = inject(EnvironmentInjector);
|
|
110
125
|
constructor(dynamicComponentService) {
|
|
111
126
|
this.#dynamicComponentService = dynamicComponentService;
|
|
112
127
|
}
|
|
@@ -130,36 +145,21 @@ class SkySkipLinkService {
|
|
|
130
145
|
#createHostComponent() {
|
|
131
146
|
if (!SkySkipLinkService.host) {
|
|
132
147
|
const componentRef = this.#dynamicComponentService.createComponent(SkySkipLinkHostComponent, {
|
|
133
|
-
environmentInjector: this.#environmentInjector,
|
|
134
148
|
location: SkyDynamicComponentLocation.BodyTop,
|
|
135
149
|
});
|
|
136
150
|
SkySkipLinkService.host = componentRef;
|
|
137
151
|
}
|
|
138
152
|
return SkySkipLinkService.host;
|
|
139
153
|
}
|
|
140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
141
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
154
|
+
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: 'any' }); }
|
|
142
156
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
144
|
-
type: Injectable
|
|
145
|
-
}], ctorParameters: function () { return [{ type: i1.SkyDynamicComponentService }]; } });
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* The Angular module that enables "skip links" to be added to the page.
|
|
149
|
-
*/
|
|
150
|
-
class SkySkipLinkModule {
|
|
151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkySkipLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
152
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkySkipLinkModule, declarations: [SkySkipLinkHostComponent], imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
153
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkySkipLinkModule, providers: [SkySkipLinkService], imports: [CommonModule, SkyA11yResourcesModule] }); }
|
|
154
|
-
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkySkipLinkModule, decorators: [{
|
|
156
|
-
type: NgModule,
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkySkipLinkService, decorators: [{
|
|
158
|
+
type: Injectable,
|
|
157
159
|
args: [{
|
|
158
|
-
|
|
159
|
-
imports: [CommonModule, SkyA11yResourcesModule],
|
|
160
|
-
providers: [SkySkipLinkService],
|
|
160
|
+
providedIn: 'any',
|
|
161
161
|
}]
|
|
162
|
-
}] });
|
|
162
|
+
}], ctorParameters: function () { return [{ type: i1.SkyDynamicComponentService }]; } });
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* Generated bundle index. Do not edit.
|
|
@@ -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.service.ts","../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link.module.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 {\n ComponentRef,\n EnvironmentInjector,\n Injectable,\n inject,\n} 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()\nexport class SkySkipLinkService {\n private static host: ComponentRef<SkySkipLinkHostComponent> | undefined;\n\n #dynamicComponentService: SkyDynamicComponentService;\n #environmentInjector = inject(EnvironmentInjector);\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 environmentInjector: this.#environmentInjector,\n location: SkyDynamicComponentLocation.BodyTop,\n }\n );\n\n SkySkipLinkService.host = componentRef;\n }\n\n return SkySkipLinkService.host;\n }\n}\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';\nimport { SkySkipLinkService } from './skip-link.service';\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 providers: [SkySkipLinkService],\n})\nexport class SkySkipLinkModule {}\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,IAA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AA,EAAA,IAAA,EAAA,iBAAiB,EAJb,YAAA,EAAA,CAAA,wBAAwB,CAC7B,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGnC,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,iBAAiB,aAFjB,CAAC,kBAAkB,CAAC,EADrB,OAAA,EAAA,CAAA,YAAY,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGnC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,wBAAwB,CAAC;AACxC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,CAAC;oBAC/C,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
|
|
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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QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE;YAC5B,MAAM,YAAY,GAAG,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAChE,wBAAwB,EACxB;gBACE,QAAQ,EAAE,2BAA2B,CAAC,OAAO;AAC9C,aAAA,CACF,CAAC;AAEF,YAAA,kBAAkB,CAAC,IAAI,GAAG,YAAY,CAAC;AACxC,SAAA;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC;KAChC;8GA1CU,kBAAkB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,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;;;;"}
|
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.7",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular/common": "^16.1
|
|
40
|
-
"@angular/core": "^16.1
|
|
41
|
-
"@skyux/core": "9.0.0-alpha.
|
|
42
|
-
"@skyux/i18n": "9.0.0-alpha.
|
|
39
|
+
"@angular/common": "^16.2.1",
|
|
40
|
+
"@angular/core": "^16.2.1",
|
|
41
|
+
"@skyux/core": "9.0.0-alpha.7",
|
|
42
|
+
"@skyux/i18n": "9.0.0-alpha.7"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"tslib": "^2.
|
|
45
|
+
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"module": "fesm2022/skyux-a11y.mjs",
|
|
48
48
|
"typings": "index.d.ts",
|