@skyux/a11y 5.0.0-beta.2 → 5.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-a11y.umd.js +41 -57
  3. package/documentation.json +77 -250
  4. package/esm2015/index.js +5 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/modules/shared/a11y-resources.module.js +45 -0
  7. package/esm2015/lib/modules/shared/a11y-resources.module.js.map +1 -0
  8. package/esm2015/lib/modules/skip-link/skip-link-adapter.service.js +25 -0
  9. package/esm2015/lib/modules/skip-link/skip-link-adapter.service.js.map +1 -0
  10. package/esm2015/lib/modules/skip-link/skip-link-args.js +3 -0
  11. package/esm2015/lib/modules/skip-link/skip-link-args.js.map +1 -0
  12. package/esm2015/lib/modules/skip-link/skip-link-host.component.js +35 -0
  13. package/esm2015/lib/modules/skip-link/skip-link-host.component.js.map +1 -0
  14. package/esm2015/lib/modules/skip-link/skip-link.js +2 -0
  15. package/esm2015/lib/modules/skip-link/skip-link.js.map +1 -0
  16. package/esm2015/lib/modules/skip-link/skip-link.module.js +23 -0
  17. package/esm2015/lib/modules/skip-link/skip-link.module.js.map +1 -0
  18. package/esm2015/lib/modules/skip-link/skip-link.service.js +51 -0
  19. package/esm2015/lib/modules/skip-link/skip-link.service.js.map +1 -0
  20. package/esm2015/skyux-a11y.js +2 -2
  21. package/esm2015/skyux-a11y.js.map +1 -0
  22. package/fesm2015/skyux-a11y.js +35 -49
  23. package/fesm2015/skyux-a11y.js.map +1 -1
  24. package/index.d.ts +4 -0
  25. package/{modules → lib/modules}/shared/a11y-resources.module.d.ts +0 -0
  26. package/{modules → lib/modules}/skip-link/skip-link-adapter.service.d.ts +0 -0
  27. package/{modules → lib/modules}/skip-link/skip-link-args.d.ts +0 -0
  28. package/{modules → lib/modules}/skip-link/skip-link-host.component.d.ts +0 -0
  29. package/{modules → lib/modules}/skip-link/skip-link.d.ts +0 -0
  30. package/{modules → lib/modules}/skip-link/skip-link.module.d.ts +0 -0
  31. package/{modules → lib/modules}/skip-link/skip-link.service.d.ts +0 -0
  32. package/package.json +6 -6
  33. package/skyux-a11y.d.ts +1 -1
  34. package/LICENSE +0 -21
  35. package/bundles/skyux-a11y.umd.js.map +0 -1
  36. package/esm2015/modules/shared/a11y-resources.module.js +0 -41
  37. package/esm2015/modules/skip-link/skip-link-adapter.service.js +0 -24
  38. package/esm2015/modules/skip-link/skip-link-args.js +0 -3
  39. package/esm2015/modules/skip-link/skip-link-host.component.js +0 -39
  40. package/esm2015/modules/skip-link/skip-link.js +0 -2
  41. package/esm2015/modules/skip-link/skip-link.module.js +0 -37
  42. package/esm2015/modules/skip-link/skip-link.service.js +0 -51
  43. package/esm2015/public-api.js +0 -5
  44. package/public-api.d.ts +0 -4
@@ -1,224 +1,20 @@
1
1
  {
2
2
  "anchorIds": {
3
- "SkySkipLinkHostComponent": "class-skyskiplinkhostcomponent",
4
3
  "SkySkipLinkModule": "class-skyskiplinkmodule",
5
4
  "SkySkipLinkService": "class-skyskiplinkservice",
6
5
  "SkySkipLink": "interface-skyskiplink",
7
6
  "SkySkipLinkArgs": "interface-skyskiplinkargs"
8
7
  },
9
8
  "typedoc": {
9
+ "id": 0,
10
+ "name": "@skyux/a11y",
11
+ "kind": 1,
12
+ "kindString": "Project",
13
+ "flags": {},
14
+ "originalName": "",
10
15
  "children": [
11
16
  {
12
17
  "id": 3,
13
- "name": "SkySkipLinkHostComponent",
14
- "kind": 128,
15
- "kindString": "Class",
16
- "flags": {},
17
- "decorators": [
18
- {
19
- "name": "Component",
20
- "type": {
21
- "type": "reference",
22
- "name": "Component"
23
- },
24
- "arguments": {
25
- "obj": "{\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: [\n SkySkipLinkAdapterService\n ]\n}"
26
- }
27
- }
28
- ],
29
- "children": [
30
- {
31
- "id": 4,
32
- "name": "constructor",
33
- "kind": 512,
34
- "kindString": "Constructor",
35
- "flags": {},
36
- "sources": [
37
- {
38
- "fileName": "projects/a11y/src/modules/skip-link/skip-link-host.component.ts",
39
- "line": 37,
40
- "character": 2
41
- }
42
- ],
43
- "signatures": [
44
- {
45
- "id": 5,
46
- "name": "new SkySkipLinkHostComponent",
47
- "kind": 16384,
48
- "kindString": "Constructor signature",
49
- "flags": {},
50
- "parameters": [
51
- {
52
- "id": 6,
53
- "name": "changeDetector",
54
- "kind": 32768,
55
- "kindString": "Parameter",
56
- "flags": {},
57
- "type": {
58
- "type": "reference",
59
- "name": "ChangeDetectorRef"
60
- }
61
- },
62
- {
63
- "id": 7,
64
- "name": "adapter",
65
- "kind": 32768,
66
- "kindString": "Parameter",
67
- "flags": {},
68
- "type": {
69
- "type": "reference",
70
- "name": "SkySkipLinkAdapterService"
71
- }
72
- }
73
- ],
74
- "type": {
75
- "type": "reference",
76
- "id": 3,
77
- "name": "SkySkipLinkHostComponent"
78
- }
79
- }
80
- ]
81
- },
82
- {
83
- "id": 8,
84
- "name": "links",
85
- "kind": 262144,
86
- "kindString": "Accessor",
87
- "flags": {
88
- "isPublic": true
89
- },
90
- "sources": [
91
- {
92
- "fileName": "projects/a11y/src/modules/skip-link/skip-link-host.component.ts",
93
- "line": 26,
94
- "character": 13
95
- }
96
- ],
97
- "getSignature": [
98
- {
99
- "id": 9,
100
- "name": "links",
101
- "kind": 524288,
102
- "kindString": "Get signature",
103
- "flags": {},
104
- "type": {
105
- "type": "array",
106
- "elementType": {
107
- "type": "reference",
108
- "id": 33,
109
- "name": "SkySkipLink"
110
- }
111
- }
112
- }
113
- ],
114
- "setSignature": [
115
- {
116
- "id": 10,
117
- "name": "links",
118
- "kind": 1048576,
119
- "kindString": "Set signature",
120
- "flags": {},
121
- "parameters": [
122
- {
123
- "id": 11,
124
- "name": "value",
125
- "kind": 32768,
126
- "kindString": "Parameter",
127
- "flags": {},
128
- "type": {
129
- "type": "array",
130
- "elementType": {
131
- "type": "reference",
132
- "id": 33,
133
- "name": "SkySkipLink"
134
- }
135
- }
136
- }
137
- ],
138
- "type": {
139
- "type": "intrinsic",
140
- "name": "void"
141
- }
142
- }
143
- ]
144
- },
145
- {
146
- "id": 13,
147
- "name": "skipTo",
148
- "kind": 2048,
149
- "kindString": "Method",
150
- "flags": {
151
- "isPublic": true
152
- },
153
- "sources": [
154
- {
155
- "fileName": "projects/a11y/src/modules/skip-link/skip-link-host.component.ts",
156
- "line": 42,
157
- "character": 9
158
- }
159
- ],
160
- "signatures": [
161
- {
162
- "id": 14,
163
- "name": "skipTo",
164
- "kind": 4096,
165
- "kindString": "Call signature",
166
- "flags": {},
167
- "parameters": [
168
- {
169
- "id": 15,
170
- "name": "link",
171
- "kind": 32768,
172
- "kindString": "Parameter",
173
- "flags": {},
174
- "type": {
175
- "type": "reference",
176
- "id": 33,
177
- "name": "SkySkipLink"
178
- }
179
- }
180
- ],
181
- "type": {
182
- "type": "intrinsic",
183
- "name": "void"
184
- }
185
- }
186
- ]
187
- }
188
- ],
189
- "groups": [
190
- {
191
- "title": "Constructors",
192
- "kind": 512,
193
- "children": [
194
- 4
195
- ]
196
- },
197
- {
198
- "title": "Accessors",
199
- "kind": 262144,
200
- "children": [
201
- 8
202
- ]
203
- },
204
- {
205
- "title": "Methods",
206
- "kind": 2048,
207
- "children": [
208
- 13
209
- ]
210
- }
211
- ],
212
- "sources": [
213
- {
214
- "fileName": "projects/a11y/src/modules/skip-link/skip-link-host.component.ts",
215
- "line": 24,
216
- "character": 13
217
- }
218
- ]
219
- },
220
- {
221
- "id": 18,
222
18
  "name": "SkySkipLinkModule",
223
19
  "kind": 128,
224
20
  "kindString": "Class",
@@ -231,30 +27,32 @@
231
27
  "name": "NgModule",
232
28
  "type": {
233
29
  "type": "reference",
30
+ "qualifiedName": "NgModuleDecorator",
31
+ "package": "@angular/core",
234
32
  "name": "NgModule"
235
33
  },
236
34
  "arguments": {
237
- "obj": "{\n entryComponents: [\n SkySkipLinkHostComponent\n ],\n declarations: [\n SkySkipLinkHostComponent\n ],\n imports: [\n CommonModule,\n SkyI18nModule,\n SkyA11yResourcesModule\n ]\n}"
35
+ "obj": "{\n entryComponents: [SkySkipLinkHostComponent],\n declarations: [SkySkipLinkHostComponent],\n imports: [CommonModule, SkyI18nModule, SkyA11yResourcesModule],\n}"
238
36
  }
239
37
  }
240
38
  ],
241
39
  "children": [
242
40
  {
243
- "id": 19,
41
+ "id": 4,
244
42
  "name": "constructor",
245
43
  "kind": 512,
246
44
  "kindString": "Constructor",
247
45
  "flags": {},
248
46
  "signatures": [
249
47
  {
250
- "id": 20,
48
+ "id": 5,
251
49
  "name": "new SkySkipLinkModule",
252
50
  "kind": 16384,
253
51
  "kindString": "Constructor signature",
254
52
  "flags": {},
255
53
  "type": {
256
54
  "type": "reference",
257
- "id": 18,
55
+ "id": 3,
258
56
  "name": "SkySkipLinkModule"
259
57
  }
260
58
  }
@@ -266,20 +64,20 @@
266
64
  "title": "Constructors",
267
65
  "kind": 512,
268
66
  "children": [
269
- 19
67
+ 4
270
68
  ]
271
69
  }
272
70
  ],
273
71
  "sources": [
274
72
  {
275
73
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.module.ts",
276
- "line": 37,
74
+ "line": 19,
277
75
  "character": 13
278
76
  }
279
77
  ]
280
78
  },
281
79
  {
282
- "id": 21,
80
+ "id": 6,
283
81
  "name": "SkySkipLinkService",
284
82
  "kind": 128,
285
83
  "kindString": "Class",
@@ -298,16 +96,18 @@
298
96
  "name": "Injectable",
299
97
  "type": {
300
98
  "type": "reference",
99
+ "qualifiedName": "InjectableDecorator",
100
+ "package": "@angular/core",
301
101
  "name": "Injectable"
302
102
  },
303
103
  "arguments": {
304
- "options": "{\n providedIn: 'root'\n}"
104
+ "options": "{\n providedIn: 'root',\n}"
305
105
  }
306
106
  }
307
107
  ],
308
108
  "children": [
309
109
  {
310
- "id": 23,
110
+ "id": 8,
311
111
  "name": "constructor",
312
112
  "kind": 512,
313
113
  "kindString": "Constructor",
@@ -315,20 +115,20 @@
315
115
  "sources": [
316
116
  {
317
117
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
318
- "line": 37,
118
+ "line": 28,
319
119
  "character": 2
320
120
  }
321
121
  ],
322
122
  "signatures": [
323
123
  {
324
- "id": 24,
124
+ "id": 9,
325
125
  "name": "new SkySkipLinkService",
326
126
  "kind": 16384,
327
127
  "kindString": "Constructor signature",
328
128
  "flags": {},
329
129
  "parameters": [
330
130
  {
331
- "id": 25,
131
+ "id": 10,
332
132
  "name": "dynamicComponentService",
333
133
  "kind": 32768,
334
134
  "kindString": "Parameter",
@@ -341,14 +141,14 @@
341
141
  ],
342
142
  "type": {
343
143
  "type": "reference",
344
- "id": 21,
144
+ "id": 6,
345
145
  "name": "SkySkipLinkService"
346
146
  }
347
147
  }
348
148
  ]
349
149
  },
350
150
  {
351
- "id": 29,
151
+ "id": 14,
352
152
  "name": "removeHostComponent",
353
153
  "kind": 2048,
354
154
  "kindString": "Method",
@@ -358,13 +158,13 @@
358
158
  "sources": [
359
159
  {
360
160
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
361
- "line": 54,
161
+ "line": 43,
362
162
  "character": 9
363
163
  }
364
164
  ],
365
165
  "signatures": [
366
166
  {
367
- "id": 30,
167
+ "id": 15,
368
168
  "name": "removeHostComponent",
369
169
  "kind": 4096,
370
170
  "kindString": "Call signature",
@@ -377,7 +177,7 @@
377
177
  ]
378
178
  },
379
179
  {
380
- "id": 26,
180
+ "id": 11,
381
181
  "name": "setSkipLinks",
382
182
  "kind": 2048,
383
183
  "kindString": "Method",
@@ -387,27 +187,27 @@
387
187
  "sources": [
388
188
  {
389
189
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
390
- "line": 41,
190
+ "line": 30,
391
191
  "character": 9
392
192
  }
393
193
  ],
394
194
  "signatures": [
395
195
  {
396
- "id": 27,
196
+ "id": 12,
397
197
  "name": "setSkipLinks",
398
198
  "kind": 4096,
399
199
  "kindString": "Call signature",
400
200
  "flags": {},
401
201
  "parameters": [
402
202
  {
403
- "id": 28,
203
+ "id": 13,
404
204
  "name": "args",
405
205
  "kind": 32768,
406
206
  "kindString": "Parameter",
407
207
  "flags": {},
408
208
  "type": {
409
209
  "type": "reference",
410
- "id": 16,
210
+ "id": 1,
411
211
  "name": "SkySkipLinkArgs"
412
212
  }
413
213
  }
@@ -425,28 +225,28 @@
425
225
  "title": "Constructors",
426
226
  "kind": 512,
427
227
  "children": [
428
- 23
228
+ 8
429
229
  ]
430
230
  },
431
231
  {
432
232
  "title": "Methods",
433
233
  "kind": 2048,
434
234
  "children": [
435
- 29,
436
- 26
235
+ 14,
236
+ 11
437
237
  ]
438
238
  }
439
239
  ],
440
240
  "sources": [
441
241
  {
442
242
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
443
- "line": 34,
243
+ "line": 25,
444
244
  "character": 13
445
245
  }
446
246
  ]
447
247
  },
448
248
  {
449
- "id": 33,
249
+ "id": 18,
450
250
  "name": "SkySkipLink",
451
251
  "kind": 256,
452
252
  "kindString": "Interface",
@@ -456,7 +256,7 @@
456
256
  },
457
257
  "children": [
458
258
  {
459
- "id": 35,
259
+ "id": 20,
460
260
  "name": "elementRef",
461
261
  "kind": 1024,
462
262
  "kindString": "Property",
@@ -467,7 +267,7 @@
467
267
  "sources": [
468
268
  {
469
269
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
470
- "line": 20,
270
+ "line": 17,
471
271
  "character": 2
472
272
  }
473
273
  ],
@@ -479,11 +279,13 @@
479
279
  "name": "any"
480
280
  }
481
281
  ],
282
+ "qualifiedName": "ElementRef",
283
+ "package": "@angular/core",
482
284
  "name": "ElementRef"
483
285
  }
484
286
  },
485
287
  {
486
- "id": 34,
288
+ "id": 19,
487
289
  "name": "title",
488
290
  "kind": 1024,
489
291
  "kindString": "Property",
@@ -494,7 +296,7 @@
494
296
  "sources": [
495
297
  {
496
298
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
497
- "line": 13,
299
+ "line": 10,
498
300
  "character": 2
499
301
  }
500
302
  ],
@@ -509,21 +311,21 @@
509
311
  "title": "Properties",
510
312
  "kind": 1024,
511
313
  "children": [
512
- 35,
513
- 34
314
+ 20,
315
+ 19
514
316
  ]
515
317
  }
516
318
  ],
517
319
  "sources": [
518
320
  {
519
321
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
520
- "line": 8,
322
+ "line": 6,
521
323
  "character": 17
522
324
  }
523
325
  ]
524
326
  },
525
327
  {
526
- "id": 16,
328
+ "id": 1,
527
329
  "name": "SkySkipLinkArgs",
528
330
  "kind": 256,
529
331
  "kindString": "Interface",
@@ -533,7 +335,7 @@
533
335
  },
534
336
  "children": [
535
337
  {
536
- "id": 17,
338
+ "id": 2,
537
339
  "name": "links",
538
340
  "kind": 1024,
539
341
  "kindString": "Property",
@@ -544,7 +346,7 @@
544
346
  "sources": [
545
347
  {
546
348
  "fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
547
- "line": 17,
349
+ "line": 14,
548
350
  "character": 2
549
351
  }
550
352
  ],
@@ -552,7 +354,7 @@
552
354
  "type": "array",
553
355
  "elementType": {
554
356
  "type": "reference",
555
- "id": 33,
357
+ "id": 18,
556
358
  "name": "SkySkipLink"
557
359
  }
558
360
  }
@@ -563,19 +365,44 @@
563
365
  "title": "Properties",
564
366
  "kind": 1024,
565
367
  "children": [
566
- 17
368
+ 2
567
369
  ]
568
370
  }
569
371
  ],
570
372
  "sources": [
571
373
  {
572
374
  "fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
573
- "line": 12,
375
+ "line": 10,
574
376
  "character": 17
575
377
  }
576
378
  ]
577
379
  }
380
+ ],
381
+ "groups": [
382
+ {
383
+ "title": "Classes",
384
+ "kind": 128,
385
+ "children": [
386
+ 3,
387
+ 6
388
+ ]
389
+ },
390
+ {
391
+ "title": "Interfaces",
392
+ "kind": 256,
393
+ "children": [
394
+ 18,
395
+ 1
396
+ ]
397
+ }
398
+ ],
399
+ "sources": [
400
+ {
401
+ "fileName": "index.ts",
402
+ "line": 1,
403
+ "character": 0
404
+ }
578
405
  ]
579
406
  },
580
407
  "codeExamples": []
581
- }
408
+ }
@@ -0,0 +1,5 @@
1
+ export * from './lib/modules/skip-link/skip-link-args';
2
+ export * from './lib/modules/skip-link/skip-link.module';
3
+ export * from './lib/modules/skip-link/skip-link.service';
4
+ export * from './lib/modules/skip-link/skip-link';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/a11y/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './lib/modules/skip-link/skip-link-args';\nexport * from './lib/modules/skip-link/skip-link.module';\nexport * from './lib/modules/skip-link/skip-link.service';\nexport * from './lib/modules/skip-link/skip-link';\n"]}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * NOTICE: DO NOT MODIFY THIS FILE!
3
+ * The contents of this file were automatically generated by
4
+ * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-a11y' schematic.
5
+ * To update this file, simply rerun the command.
6
+ */
7
+ import { NgModule } from '@angular/core';
8
+ import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, } from '@skyux/i18n';
9
+ import * as i0 from "@angular/core";
10
+ const RESOURCES = {
11
+ 'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },
12
+ };
13
+ export class SkyA11yResourcesProvider {
14
+ getString(localeInfo, name) {
15
+ return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
16
+ }
17
+ }
18
+ /**
19
+ * Import into any component library module that needs to use resource strings.
20
+ */
21
+ export class SkyA11yResourcesModule {
22
+ }
23
+ SkyA11yResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyA11yResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
+ SkyA11yResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyA11yResourcesModule, exports: [SkyI18nModule] });
25
+ SkyA11yResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyA11yResourcesModule, providers: [
26
+ {
27
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
28
+ useClass: SkyA11yResourcesProvider,
29
+ multi: true,
30
+ },
31
+ ], imports: [SkyI18nModule] });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyA11yResourcesModule, decorators: [{
33
+ type: NgModule,
34
+ args: [{
35
+ exports: [SkyI18nModule],
36
+ providers: [
37
+ {
38
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
39
+ useClass: SkyA11yResourcesProvider,
40
+ multi: true,
41
+ },
42
+ ],
43
+ }]
44
+ }] });
45
+ //# sourceMappingURL=a11y-resources.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a11y-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/a11y/src/lib/modules/shared/a11y-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,qBAAqB,EAErB,aAAa,EAGb,2BAA2B,GAC5B,MAAM,aAAa,CAAC;;AAErB,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;CACjE,CAAC;AAEF,MAAM,OAAO,wBAAwB;IAC5B,SAAS,CAAC,UAA4B,EAAE,IAAY;QACzD,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AAWH,MAAM,OAAO,sBAAsB;;oHAAtB,sBAAsB;qHAAtB,sBAAsB,YATvB,aAAa;qHASZ,sBAAsB,aARtB;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,wBAAwB;YAClC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,sBAAsB;kBAVlC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,wBAAwB;4BAClC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","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 modules/shared/sky-a11y' schematic.\n * To update this file, simply rerun the command.\n */\n\nimport { NgModule } from '@angular/core';\nimport {\n getLibStringForLocale,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SKY_LIB_RESOURCES_PROVIDERS,\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(localeInfo: SkyAppLocaleInfo, name: string): string {\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"]}
@@ -0,0 +1,25 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { SkyAppWindowRef } from '@skyux/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@skyux/core";
5
+ export class SkySkipLinkAdapterService {
6
+ constructor(windowRef) {
7
+ this.windowRef = windowRef;
8
+ }
9
+ skipTo(link) {
10
+ const targetElement = link.elementRef.nativeElement;
11
+ const win = this.windowRef.nativeWindow;
12
+ const bodyElement = win.document.body;
13
+ const bodyMarginTop = parseInt(win.getComputedStyle(bodyElement).marginTop, 10);
14
+ const bodyDefaultPadding = 10;
15
+ const scrollTop = targetElement.offsetTop - bodyMarginTop - bodyDefaultPadding;
16
+ win.scroll(0, scrollTop);
17
+ targetElement.focus();
18
+ }
19
+ }
20
+ SkySkipLinkAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySkipLinkAdapterService, deps: [{ token: i1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
21
+ SkySkipLinkAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySkipLinkAdapterService });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySkipLinkAdapterService, decorators: [{
23
+ type: Injectable
24
+ }], ctorParameters: function () { return [{ type: i1.SkyAppWindowRef }]; } });
25
+ //# sourceMappingURL=skip-link-adapter.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skip-link-adapter.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/a11y/src/lib/modules/skip-link/skip-link-adapter.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;;;AAK9C,MAAM,OAAO,yBAAyB;IACpC,YAAoB,SAA0B;QAA1B,cAAS,GAAT,SAAS,CAAiB;IAAG,CAAC;IAE3C,MAAM,CAAC,IAAiB;QAC7B,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QACpD,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACxC,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAEtC,MAAM,aAAa,GAAG,QAAQ,CAC5B,GAAG,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,SAAS,EAC3C,EAAE,CACH,CAAC;QACF,MAAM,kBAAkB,GAAG,EAAE,CAAC;QAC9B,MAAM,SAAS,GACb,aAAa,CAAC,SAAS,GAAG,aAAa,GAAG,kBAAkB,CAAC;QAE/D,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QAEzB,aAAa,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;;uHAnBU,yBAAyB;2HAAzB,yBAAyB;4FAAzB,yBAAyB;kBADrC,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { SkyAppWindowRef } from '@skyux/core';\n\nimport { SkySkipLink } from './skip-link';\n\n@Injectable()\nexport class SkySkipLinkAdapterService {\n constructor(private windowRef: SkyAppWindowRef) {}\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"]}
@@ -0,0 +1,3 @@
1
+ //#region imports
2
+ export {};
3
+ //# sourceMappingURL=skip-link-args.js.map