@skyux/core 10.11.0 → 10.13.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/documentation.json +1744 -1142
- package/esm2022/index.mjs +3 -1
- package/esm2022/lib/modules/forms-utility/forms-utility.mjs +7 -5
- package/esm2022/lib/modules/help/help-global-options-token.mjs +6 -0
- package/esm2022/lib/modules/help/help-global-options.mjs +2 -0
- package/esm2022/lib/modules/help/help-open-args.mjs +2 -0
- package/esm2022/lib/modules/help/help.service.mjs +24 -0
- package/esm2022/testing/help/help-testing-controller.mjs +28 -0
- package/esm2022/testing/help/help-testing.module.mjs +32 -0
- package/esm2022/testing/help/help-testing.service.mjs +24 -0
- package/esm2022/testing/public-api.mjs +3 -1
- package/esm2022/version.mjs +1 -1
- package/fesm2022/skyux-core-testing.mjs +77 -3
- package/fesm2022/skyux-core-testing.mjs.map +1 -1
- package/fesm2022/skyux-core.mjs +35 -6
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/modules/forms-utility/forms-utility.d.ts +6 -1
- package/lib/modules/help/help-global-options-token.d.ts +6 -0
- package/lib/modules/help/help-global-options.d.ts +13 -0
- package/lib/modules/help/help-open-args.d.ts +9 -0
- package/lib/modules/help/help.service.d.ts +14 -0
- package/package.json +2 -2
- package/testing/help/help-testing-controller.d.ts +15 -0
- package/testing/help/help-testing.module.d.ts +9 -0
- package/testing/help/help-testing.service.d.ts +13 -0
- package/testing/public-api.d.ts +2 -0
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';
|
@@ -1,15 +1,20 @@
|
|
1
1
|
import { NgControl } from '@angular/forms';
|
2
2
|
/**
|
3
|
+
* @deprecated
|
3
4
|
* @internal
|
4
5
|
*/
|
5
6
|
export declare class SkyFormsUtility {
|
6
|
-
/**
|
7
|
+
/**
|
8
|
+
* Coerces a data-bound value (typically a string) to a boolean.
|
9
|
+
* @deprecated Use the `booleanAttribute` transform instead.
|
10
|
+
*/
|
7
11
|
static coerceBooleanProperty(value: any): boolean;
|
8
12
|
/**
|
9
13
|
* Gets the required state of the checkbox.
|
10
14
|
* Currently, Angular doesn't offer a way to get this easily, so we have to create an empty
|
11
15
|
* control using the current validator to see if it throws a `required` validation error.
|
12
16
|
* https://github.com/angular/angular/issues/13461#issuecomment-340368046
|
17
|
+
* @deprecated Use the host directive `SkyRequiredStateDirective` instead.
|
13
18
|
*/
|
14
19
|
static hasRequiredValidation(ngControl: NgControl): boolean;
|
15
20
|
}
|
@@ -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,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.
|
3
|
+
"version": "10.13.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.
|
45
|
+
"@skyux/i18n": "10.13.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
|
+
}
|
package/testing/public-api.d.ts
CHANGED
@@ -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';
|