@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.
Files changed (36) hide show
  1. package/documentation.json +1389 -434
  2. package/esm2020/index.mjs +5 -1
  3. package/esm2020/lib/modules/page/page-content.component.mjs +15 -0
  4. package/esm2020/lib/modules/page/page-theme-adapter.service.mjs +43 -0
  5. package/esm2020/lib/modules/page/page.component.mjs +76 -0
  6. package/esm2020/lib/modules/page/page.module.mjs +20 -0
  7. package/esm2020/lib/modules/page/types/page-layout-type.mjs +2 -0
  8. package/esm2020/lib/modules/page-header/page-header.component.mjs +6 -4
  9. package/esm2020/testing/page/page-harness-filters.mjs +2 -0
  10. package/esm2020/testing/page/page-harness.mjs +44 -0
  11. package/esm2020/testing/page-header/page-header-harness-filters.mjs +2 -0
  12. package/esm2020/testing/page-header/page-header-harness.mjs +43 -0
  13. package/esm2020/testing/public-api.mjs +3 -0
  14. package/esm2020/testing/skyux-pages-testing.mjs +5 -0
  15. package/fesm2015/skyux-pages-testing.mjs +100 -0
  16. package/fesm2015/skyux-pages-testing.mjs.map +1 -0
  17. package/fesm2015/skyux-pages.mjs +146 -6
  18. package/fesm2015/skyux-pages.mjs.map +1 -1
  19. package/fesm2020/skyux-pages-testing.mjs +92 -0
  20. package/fesm2020/skyux-pages-testing.mjs.map +1 -0
  21. package/fesm2020/skyux-pages.mjs +144 -6
  22. package/fesm2020/skyux-pages.mjs.map +1 -1
  23. package/index.d.ts +4 -0
  24. package/lib/modules/page/page-content.component.d.ts +9 -0
  25. package/lib/modules/page/page-theme-adapter.service.d.ts +17 -0
  26. package/lib/modules/page/page.component.d.ts +22 -0
  27. package/lib/modules/page/page.module.d.ts +10 -0
  28. package/lib/modules/page/types/page-layout-type.d.ts +1 -0
  29. package/lib/modules/page-header/page-header.component.d.ts +9 -0
  30. package/package.json +17 -8
  31. package/testing/index.d.ts +5 -0
  32. package/testing/page/page-harness-filters.d.ts +6 -0
  33. package/testing/page/page-harness.d.ts +29 -0
  34. package/testing/page-header/page-header-harness-filters.d.ts +6 -0
  35. package/testing/page-header/page-header-harness.d.ts +26 -0
  36. 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.0",
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.3.0",
39
- "@skyux/i18n": "8.3.0",
40
- "@skyux/indicators": "8.3.0",
41
- "@skyux/layout": "8.3.0",
42
- "@skyux/modals": "8.3.0",
43
- "@skyux/router": "8.3.0",
44
- "@skyux/theme": "8.3.0"
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,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@skyux/pages/testing" />
5
+ export * from './public-api';
@@ -0,0 +1,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of SkyPageHarness instances.
4
+ */
5
+ export interface SkyPageHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -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,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of SkyPageHeaderHarness instances.
4
+ */
5
+ export interface SkyPageHeaderHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './page/page-harness';
2
+ export * from './page/page-harness-filters';