@skyux/core 8.0.0-alpha.20 → 8.0.0-alpha.21
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 +587 -587
- package/esm2020/index.mjs +4 -1
- package/esm2020/lib/modules/live-announcer/live-announcer.service.mjs +80 -0
- package/esm2020/lib/modules/live-announcer/types/live-announcer-args.mjs +2 -0
- package/esm2020/lib/modules/live-announcer/types/live-announcer-politeness.mjs +2 -0
- package/fesm2015/skyux-core.mjs +80 -4
- package/fesm2015/skyux-core.mjs.map +1 -1
- package/fesm2020/skyux-core.mjs +78 -4
- package/fesm2020/skyux-core.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/lib/modules/live-announcer/live-announcer.service.d.ts +31 -0
- package/lib/modules/live-announcer/types/live-announcer-args.d.ts +8 -0
- package/lib/modules/live-announcer/types/live-announcer-politeness.d.ts +5 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
@@ -27,6 +27,9 @@ export * from './lib/modules/dynamic-component/dynamic-component.service';
|
|
27
27
|
export * from './lib/modules/format/app-format';
|
28
28
|
export * from './lib/modules/id/id.module';
|
29
29
|
export * from './lib/modules/id/id.service';
|
30
|
+
export * from './lib/modules/live-announcer/live-announcer.service';
|
31
|
+
export * from './lib/modules/live-announcer/types/live-announcer-args';
|
32
|
+
export * from './lib/modules/live-announcer/types/live-announcer-politeness';
|
30
33
|
export * from './lib/modules/log/log.module';
|
31
34
|
export * from './lib/modules/log/log.service';
|
32
35
|
export * from './lib/modules/log/types/log-level';
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { ReplaySubject } from 'rxjs';
|
3
|
+
import { SkyLiveAnnouncerArgs } from './types/live-announcer-args';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Allows for announcing messages to screen reader users through the use of a common `aria-live` element.
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
export declare class SkyLiveAnnouncerService implements OnDestroy {
|
10
|
+
#private;
|
11
|
+
announcerElementChanged: ReplaySubject<HTMLElement | undefined>;
|
12
|
+
constructor();
|
13
|
+
/**
|
14
|
+
* Announces a message to screen readers.
|
15
|
+
* @param message Message to be announced to the screen reader.
|
16
|
+
* @param args Options for the announcement of the message.
|
17
|
+
*/
|
18
|
+
announce(message: string, args?: SkyLiveAnnouncerArgs): void;
|
19
|
+
/**
|
20
|
+
* Clears the current text from the announcer element. Can be used to prevent
|
21
|
+
* screen readers from reading the text out again while the user is going
|
22
|
+
* through the page landmarks.
|
23
|
+
*/
|
24
|
+
clear(): void;
|
25
|
+
/**
|
26
|
+
* @internal
|
27
|
+
*/
|
28
|
+
ngOnDestroy(): void;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLiveAnnouncerService, never>;
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkyLiveAnnouncerService>;
|
31
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { SkyLiveAnnouncerPoliteness } from './live-announcer-politeness';
|
2
|
+
/**
|
3
|
+
* Options used when announcing messages to screen readers via the `SkyLiveAnnouncerService`
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export interface SkyLiveAnnouncerArgs {
|
7
|
+
politeness?: SkyLiveAnnouncerPoliteness;
|
8
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/core",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.21",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@angular/core": "^15.2.1",
|
46
46
|
"@angular/platform-browser": "^15.2.1",
|
47
47
|
"@angular/router": "^15.2.1",
|
48
|
-
"@skyux/i18n": "8.0.0-alpha.
|
48
|
+
"@skyux/i18n": "8.0.0-alpha.21"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
51
|
"tslib": "^2.5.0"
|