@skyux/a11y 12.0.0-alpha.0 → 12.0.0-alpha.2

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.
@@ -38,7 +38,7 @@
38
38
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
39
39
  "line": 26,
40
40
  "character": 2,
41
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
41
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
42
42
  }
43
43
  ],
44
44
  "signatures": [
@@ -53,7 +53,7 @@
53
53
  "fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
54
54
  "line": 26,
55
55
  "character": 2,
56
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
56
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L26"
57
57
  }
58
58
  ],
59
59
  "parameters": [
@@ -96,7 +96,7 @@
96
96
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
97
97
  "line": 46,
98
98
  "character": 9,
99
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
99
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
100
100
  }
101
101
  ],
102
102
  "signatures": [
@@ -110,8 +110,8 @@
110
110
  {
111
111
  "fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
112
112
  "line": 46,
113
- "character": 9,
114
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
113
+ "character": 2,
114
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L46"
115
115
  }
116
116
  ],
117
117
  "type": {
@@ -135,7 +135,7 @@
135
135
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
136
136
  "line": 30,
137
137
  "character": 9,
138
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
138
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
139
139
  }
140
140
  ],
141
141
  "signatures": [
@@ -149,8 +149,8 @@
149
149
  {
150
150
  "fileName": "libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts",
151
151
  "line": 30,
152
- "character": 9,
153
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
152
+ "character": 2,
153
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L30"
154
154
  }
155
155
  ],
156
156
  "parameters": [
@@ -197,7 +197,7 @@
197
197
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.service.ts",
198
198
  "line": 21,
199
199
  "character": 13,
200
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L21"
200
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.service.ts#L21"
201
201
  }
202
202
  ],
203
203
  "decorators": [
@@ -259,7 +259,7 @@
259
259
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
260
260
  "line": 17,
261
261
  "character": 2,
262
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L17"
262
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L17"
263
263
  }
264
264
  ],
265
265
  "type": {
@@ -297,7 +297,7 @@
297
297
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
298
298
  "line": 10,
299
299
  "character": 2,
300
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L10"
300
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L10"
301
301
  }
302
302
  ],
303
303
  "type": {
@@ -320,7 +320,7 @@
320
320
  "fileName": "projects/a11y/src/modules/skip-link/skip-link.ts",
321
321
  "line": 6,
322
322
  "character": 17,
323
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L6"
323
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link.ts#L6"
324
324
  }
325
325
  ]
326
326
  },
@@ -358,7 +358,7 @@
358
358
  "fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
359
359
  "line": 13,
360
360
  "character": 2,
361
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L13"
361
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L13"
362
362
  }
363
363
  ],
364
364
  "type": {
@@ -385,7 +385,7 @@
385
385
  "fileName": "projects/a11y/src/modules/skip-link/skip-link-args.ts",
386
386
  "line": 9,
387
387
  "character": 17,
388
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L9"
388
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/src/lib/modules/skip-link/skip-link-args.ts#L9"
389
389
  }
390
390
  ]
391
391
  },
@@ -481,7 +481,7 @@
481
481
  "fileName": "projects/a11y/src/testing/modules/skip-link/skip-links-harness.ts",
482
482
  "line": 26,
483
483
  "character": 15,
484
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L26"
484
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L26"
485
485
  }
486
486
  ],
487
487
  "signatures": [
@@ -503,8 +503,8 @@
503
503
  {
504
504
  "fileName": "libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts",
505
505
  "line": 26,
506
- "character": 15,
507
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L26"
506
+ "character": 2,
507
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L26"
508
508
  }
509
509
  ],
510
510
  "parameters": [
@@ -523,7 +523,7 @@
523
523
  "type": {
524
524
  "type": "reference",
525
525
  "target": {
526
- "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
526
+ "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
527
527
  "qualifiedName": "Promise"
528
528
  },
529
529
  "typeArguments": [
@@ -552,7 +552,7 @@
552
552
  "fileName": "projects/a11y/src/testing/modules/skip-link/skip-links-harness.ts",
553
553
  "line": 17,
554
554
  "character": 15,
555
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L17"
555
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L17"
556
556
  }
557
557
  ],
558
558
  "signatures": [
@@ -574,8 +574,8 @@
574
574
  {
575
575
  "fileName": "libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts",
576
576
  "line": 17,
577
- "character": 15,
578
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L17"
577
+ "character": 2,
578
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L17"
579
579
  }
580
580
  ],
581
581
  "parameters": [
@@ -594,7 +594,7 @@
594
594
  "type": {
595
595
  "type": "reference",
596
596
  "target": {
597
- "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
597
+ "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
598
598
  "qualifiedName": "Promise"
599
599
  },
600
600
  "typeArguments": [
@@ -615,9 +615,7 @@
615
615
  "name": "host",
616
616
  "variant": "declaration",
617
617
  "kind": 2048,
618
- "flags": {
619
- "isInherited": true
620
- },
618
+ "flags": {},
621
619
  "sources": [
622
620
  {
623
621
  "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
@@ -631,9 +629,7 @@
631
629
  "name": "host",
632
630
  "variant": "signature",
633
631
  "kind": 4096,
634
- "flags": {
635
- "isInherited": true
636
- },
632
+ "flags": {},
637
633
  "comment": {
638
634
  "summary": [
639
635
  {
@@ -668,7 +664,7 @@
668
664
  "type": {
669
665
  "type": "reference",
670
666
  "target": {
671
- "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
667
+ "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
672
668
  "qualifiedName": "Promise"
673
669
  },
674
670
  "typeArguments": [
@@ -720,7 +716,7 @@
720
716
  "fileName": "projects/a11y/src/testing/modules/skip-link/skip-links-harness.ts",
721
717
  "line": 6,
722
718
  "character": 13,
723
- "url": "https://github.com/blackbaud/skyux/blob/1dd1f2a823b5b6c6103874369a8374910f2f3850/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L6"
719
+ "url": "https://github.com/blackbaud/skyux/blob/86cd0af/libs/components/a11y/testing/src/modules/skip-link/skip-links-harness.ts#L6"
724
720
  }
725
721
  ],
726
722
  "extendedTypes": [
@@ -874,16 +870,6 @@
874
870
  "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
875
871
  "qualifiedName": "ComponentHarness.host"
876
872
  }
877
- },
878
- "files": {
879
- "entries": {
880
- "1": "libs/components/a11y/src/index.ts",
881
- "2": "libs/components/a11y/testing/src/public-api.ts"
882
- },
883
- "reflections": {
884
- "1": 1,
885
- "2": 2
886
- }
887
873
  }
888
874
  },
889
875
  "codeExamples": [],
@@ -1 +1 @@
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 SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesService,\n} from '@skyux/i18n';\n\nconst RESOURCES: Record<string, SkyLibResources> = {\n 'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\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 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 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: [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","@for (link of links; track link) {\n <button\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}\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;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,QAAQ;mBAAC,EAAE;;;ACPZ;AAEA;;;;;AAKG;AAQH,MAAM,SAAS,GAAoC;IACjD,OAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;CACjE;AAED,sBAAsB,CAAC,YAAY,CAAC,SAAS,CAAC;AAE9C;;AAEG;MAIU,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;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,YAFvB,aAAa,CAAA,EAAA,CAAA,CAAA;AAEZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA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9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;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 * 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 SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesService,\n} from '@skyux/i18n';\n\nconst RESOURCES: Record<string, SkyLibResources> = {\n 'EN-US': { skyux_list_skip_to_link: { message: 'Skip to {0}' } },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\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 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 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: [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","@for (link of links; track link) {\n <button\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}\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;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,QAAQ;mBAAC,EAAE;;;ACPZ;AACA;;;;;AAKG;AAQH,MAAM,SAAS,GA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kBAAkB,CAAC,IAAI,GAAG,SAAS;;;IAIvC,oBAAoB,GAAA;QAClB,MAAM,YAAY,GAAG,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAChE,wBAAwB,EACxB;YACE,QAAQ,EAAE,2BAA2B,CAAC,OAAO;AAC9C,SAAA,CACF;AAED,QAAA,OAAO,YAAY;;8GAxCV,kBAAkB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;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,MAAM,EAAA,CAAA,CAAA;;2FAEP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACnBD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/a11y",
3
- "version": "12.0.0-alpha.0",
3
+ "version": "12.0.0-alpha.2",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -34,8 +34,8 @@
34
34
  "peerDependencies": {
35
35
  "@angular/common": "^19.0.5",
36
36
  "@angular/core": "^19.0.5",
37
- "@skyux/core": "12.0.0-alpha.0",
38
- "@skyux/i18n": "12.0.0-alpha.0"
37
+ "@skyux/core": "12.0.0-alpha.2",
38
+ "@skyux/i18n": "12.0.0-alpha.2"
39
39
  },
40
40
  "dependencies": {
41
41
  "tslib": "^2.8.1"