@skyux/pages 8.3.0 → 8.4.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 +1389 -434
- package/esm2020/index.mjs +5 -1
- package/esm2020/lib/modules/page/page-content.component.mjs +15 -0
- package/esm2020/lib/modules/page/page-theme-adapter.service.mjs +43 -0
- package/esm2020/lib/modules/page/page.component.mjs +76 -0
- package/esm2020/lib/modules/page/page.module.mjs +20 -0
- package/esm2020/lib/modules/page/types/page-layout-type.mjs +2 -0
- package/esm2020/lib/modules/page-header/page-header.component.mjs +6 -4
- package/esm2020/testing/page/page-harness-filters.mjs +2 -0
- package/esm2020/testing/page/page-harness.mjs +44 -0
- package/esm2020/testing/page-header/page-header-harness-filters.mjs +2 -0
- package/esm2020/testing/page-header/page-header-harness.mjs +43 -0
- package/esm2020/testing/public-api.mjs +3 -0
- package/esm2020/testing/skyux-pages-testing.mjs +5 -0
- package/fesm2015/skyux-pages-testing.mjs +100 -0
- package/fesm2015/skyux-pages-testing.mjs.map +1 -0
- package/fesm2015/skyux-pages.mjs +146 -6
- package/fesm2015/skyux-pages.mjs.map +1 -1
- package/fesm2020/skyux-pages-testing.mjs +92 -0
- package/fesm2020/skyux-pages-testing.mjs.map +1 -0
- package/fesm2020/skyux-pages.mjs +144 -6
- package/fesm2020/skyux-pages.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/modules/page/page-content.component.d.ts +9 -0
- package/lib/modules/page/page-theme-adapter.service.d.ts +17 -0
- package/lib/modules/page/page.component.d.ts +22 -0
- package/lib/modules/page/page.module.d.ts +10 -0
- package/lib/modules/page/types/page-layout-type.d.ts +1 -0
- package/lib/modules/page-header/page-header.component.d.ts +9 -0
- package/package.json +17 -8
- package/testing/index.d.ts +5 -0
- package/testing/page/page-harness-filters.d.ts +6 -0
- package/testing/page/page-harness.d.ts +29 -0
- package/testing/page-header/page-header-harness-filters.d.ts +6 -0
- package/testing/page-header/page-header-harness.d.ts +26 -0
- package/testing/public-api.d.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SkyPageLayoutType = 'none' | 'fit' | 'blocks' | 'list' | 'tabs';
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { SkyPageLink } from '../action-hub/types/page-link';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
declare let parentLink: SkyPageLink;
|
|
4
|
+
/**
|
|
5
|
+
* Displays a page heading. Applies the correct layout spacing if used within a SkyPage.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SkyPageHeaderComponent {
|
|
8
|
+
/**
|
|
9
|
+
* A link to the parent page of the current page.
|
|
10
|
+
*/
|
|
5
11
|
parentLink?: typeof parentLink;
|
|
12
|
+
/**
|
|
13
|
+
* The title of the current page.
|
|
14
|
+
*/
|
|
6
15
|
pageTitle: string;
|
|
7
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyPageHeaderComponent, never>;
|
|
8
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyPageHeaderComponent, "sky-page-header", never, { "parentLink": "parentLink"; "pageTitle": "pageTitle"; }, {}, never, never, false, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/pages",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -27,21 +27,30 @@
|
|
|
27
27
|
"node": "./fesm2015/skyux-pages.mjs",
|
|
28
28
|
"default": "./fesm2020/skyux-pages.mjs"
|
|
29
29
|
},
|
|
30
|
+
"./testing": {
|
|
31
|
+
"types": "./testing/index.d.ts",
|
|
32
|
+
"esm2020": "./esm2020/testing/skyux-pages-testing.mjs",
|
|
33
|
+
"es2020": "./fesm2020/skyux-pages-testing.mjs",
|
|
34
|
+
"es2015": "./fesm2015/skyux-pages-testing.mjs",
|
|
35
|
+
"node": "./fesm2015/skyux-pages-testing.mjs",
|
|
36
|
+
"default": "./fesm2020/skyux-pages-testing.mjs"
|
|
37
|
+
},
|
|
30
38
|
"./documentation.json": {
|
|
31
39
|
"default": "./documentation.json"
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
"peerDependencies": {
|
|
43
|
+
"@angular/cdk": "^15.2.9",
|
|
35
44
|
"@angular/common": "^15.2.9",
|
|
36
45
|
"@angular/core": "^15.2.9",
|
|
37
46
|
"@angular/router": "^15.2.9",
|
|
38
|
-
"@skyux/core": "8.
|
|
39
|
-
"@skyux/i18n": "8.
|
|
40
|
-
"@skyux/indicators": "8.
|
|
41
|
-
"@skyux/layout": "8.
|
|
42
|
-
"@skyux/modals": "8.
|
|
43
|
-
"@skyux/router": "8.
|
|
44
|
-
"@skyux/theme": "8.
|
|
47
|
+
"@skyux/core": "8.4.0",
|
|
48
|
+
"@skyux/i18n": "8.4.0",
|
|
49
|
+
"@skyux/indicators": "8.4.0",
|
|
50
|
+
"@skyux/layout": "8.4.0",
|
|
51
|
+
"@skyux/modals": "8.4.0",
|
|
52
|
+
"@skyux/router": "8.4.0",
|
|
53
|
+
"@skyux/theme": "8.4.0"
|
|
45
54
|
},
|
|
46
55
|
"dependencies": {
|
|
47
56
|
"tslib": "^2.5.0"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyPageLayoutType } from '@skyux/pages';
|
|
4
|
+
import { SkyPageHeaderHarness } from '../page-header/page-header-harness';
|
|
5
|
+
import { SkyPageHeaderHarnessFilters } from '../page-header/page-header-harness-filters';
|
|
6
|
+
import { SkyPageHarnessFilters } from './page-harness-filters';
|
|
7
|
+
/**
|
|
8
|
+
* Harness for interacting with a page component in tests.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkyPageHarness extends SkyComponentHarness {
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
static hostSelector: string;
|
|
15
|
+
/**
|
|
16
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
17
|
+
* `SkyPageHarness` that meets certain criteria.
|
|
18
|
+
*/
|
|
19
|
+
static with(filters: SkyPageHarnessFilters): HarnessPredicate<SkyPageHarness>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the current layout.
|
|
22
|
+
*/
|
|
23
|
+
getLayout(): Promise<SkyPageLayoutType>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the first page header that matches the given filters.
|
|
26
|
+
* @param filters filters for which page header to return
|
|
27
|
+
*/
|
|
28
|
+
getPageHeader(filters?: SkyPageHeaderHarnessFilters): Promise<SkyPageHeaderHarness>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyPageHeaderHarnessFilters } from './page-header-harness-filters';
|
|
4
|
+
/**
|
|
5
|
+
* Harness for interacting with a page header component in tests.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SkyPageHeaderHarness extends SkyComponentHarness {
|
|
8
|
+
#private;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
static hostSelector: string;
|
|
13
|
+
/**
|
|
14
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
15
|
+
* `SkyPageHeaderHarness` that meets certain criteria.
|
|
16
|
+
*/
|
|
17
|
+
static with(filters: SkyPageHeaderHarnessFilters): HarnessPredicate<SkyPageHeaderHarness>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the current page title.
|
|
20
|
+
*/
|
|
21
|
+
getPageTitle(): Promise<string | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the current page title.
|
|
24
|
+
*/
|
|
25
|
+
getParentLinkText(): Promise<string>;
|
|
26
|
+
}
|