@skyux/core 10.12.0 → 10.14.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.
package/index.d.ts CHANGED
@@ -30,6 +30,10 @@ export { SkyDynamicComponentModule } from './lib/modules/dynamic-component/dynam
30
30
  export { SkyDynamicComponentLegacyService, SkyDynamicComponentService, } from './lib/modules/dynamic-component/dynamic-component.service';
31
31
  export { SkyFormsUtility } from './lib/modules/forms-utility/forms-utility';
32
32
  export { SkyAppFormat } from './lib/modules/format/app-format';
33
+ export { SkyHelpGlobalOptions } from './lib/modules/help/help-global-options';
34
+ export { SKY_HELP_GLOBAL_OPTIONS } from './lib/modules/help/help-global-options-token';
35
+ export { SkyHelpOpenArgs } from './lib/modules/help/help-open-args';
36
+ export { SkyHelpService } from './lib/modules/help/help.service';
33
37
  export { SkyIdModule } from './lib/modules/id/id.module';
34
38
  export { SkyIdService } from './lib/modules/id/id.service';
35
39
  export { SkyLayoutHostForChildArgs } from './lib/modules/layout-host/layout-host-for-child-args';
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SkyHelpGlobalOptions } from './help-global-options';
3
+ /**
4
+ * Injection token for specifying and retrieving global help options.
5
+ */
6
+ export declare const SKY_HELP_GLOBAL_OPTIONS: InjectionToken<SkyHelpGlobalOptions>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Options to apply to all components that invoke global help.
3
+ */
4
+ export interface SkyHelpGlobalOptions {
5
+ /**
6
+ * The ID of the element that is displayed when the invoking component is clicked.
7
+ */
8
+ ariaControls?: string;
9
+ /**
10
+ * The type of popup triggered by the invoking component.
11
+ */
12
+ ariaHaspopup?: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
13
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Options for displaying global help.
3
+ */
4
+ export interface SkyHelpOpenArgs {
5
+ /**
6
+ * A unique key that identifies the help content to display.
7
+ * */
8
+ helpKey: string;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { SkyHelpOpenArgs } from './help-open-args';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Provides methods for opening a globally accessible help dialog.
5
+ */
6
+ export declare class SkyHelpService {
7
+ /**
8
+ * Opens a globally accessible help dialog.
9
+ * @param args The options for opening the help dialog.
10
+ */
11
+ openHelp(args: SkyHelpOpenArgs): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyHelpService>;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
3
- "version": "10.12.0",
3
+ "version": "10.14.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -42,7 +42,7 @@
42
42
  "@angular/forms": "^17.3.4",
43
43
  "@angular/platform-browser": "^17.3.4",
44
44
  "@angular/router": "^17.3.4",
45
- "@skyux/i18n": "10.12.0"
45
+ "@skyux/i18n": "10.14.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "^2.6.2"
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Provides methods for validating global help in unit tests.
3
+ */
4
+ export declare class SkyHelpTestingController {
5
+ #private;
6
+ /**
7
+ * Validates the current help key and throws an error if the current help key does not match the expected help key.
8
+ * @param expectedHelpKey The expected help key.
9
+ */
10
+ expectCurrentHelpKey(expectedHelpKey: string | undefined): void;
11
+ /**
12
+ * Close the current help.
13
+ */
14
+ closeHelp(): void;
15
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Mocks SkyHelpService to enable testing of global help.
4
+ */
5
+ export declare class SkyHelpTestingModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpTestingModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyHelpTestingModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SkyHelpTestingModule>;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { SkyHelpOpenArgs, SkyHelpService } from '@skyux/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare class SkyHelpTestingService extends SkyHelpService {
7
+ #private;
8
+ openHelp(args: SkyHelpOpenArgs): void;
9
+ getCurrentHelpKey(): string | undefined;
10
+ closeHelp(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpTestingService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyHelpTestingService>;
13
+ }
@@ -7,3 +7,5 @@ export { mockResizeObserver, mockResizeObserverEntry, mockResizeObserverHandle,
7
7
  export { SkyComponentHarness } from './shared/component-harness';
8
8
  export { SkyHarnessFilters } from './shared/harness-filters';
9
9
  export { SkyQueryableComponentHarness } from './shared/queryable-component-harness';
10
+ export { SkyHelpTestingController } from './help/help-testing-controller';
11
+ export { SkyHelpTestingModule } from './help/help-testing.module';