@skyux/core 8.0.0-alpha.2 → 8.0.0-alpha.20

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 (79) hide show
  1. package/documentation.json +1169 -1431
  2. package/esm2020/index.mjs +3 -1
  3. package/esm2020/lib/modules/adapter-service/adapter.module.mjs +4 -4
  4. package/esm2020/lib/modules/adapter-service/adapter.service.mjs +3 -3
  5. package/esm2020/lib/modules/affix/affix-config.mjs +1 -1
  6. package/esm2020/lib/modules/affix/affix-position.mjs +2 -0
  7. package/esm2020/lib/modules/affix/affix-rect.mjs +2 -0
  8. package/esm2020/lib/modules/affix/affix.directive.mjs +8 -4
  9. package/esm2020/lib/modules/affix/affix.module.mjs +4 -4
  10. package/esm2020/lib/modules/affix/affix.service.mjs +3 -3
  11. package/esm2020/lib/modules/affix/affixer.mjs +53 -28
  12. package/esm2020/lib/modules/dock/dock-dom-adapter.service.mjs +3 -3
  13. package/esm2020/lib/modules/dock/dock-item.mjs +7 -7
  14. package/esm2020/lib/modules/dock/dock.component.mjs +4 -4
  15. package/esm2020/lib/modules/dock/dock.module.mjs +4 -4
  16. package/esm2020/lib/modules/dock/dock.service.mjs +10 -10
  17. package/esm2020/lib/modules/dynamic-component/dynamic-component.module.mjs +4 -4
  18. package/esm2020/lib/modules/dynamic-component/dynamic-component.service.mjs +3 -3
  19. package/esm2020/lib/modules/format/app-format.mjs +3 -3
  20. package/esm2020/lib/modules/id/id.directive.mjs +7 -7
  21. package/esm2020/lib/modules/id/id.module.mjs +4 -4
  22. package/esm2020/lib/modules/id/id.service.mjs +3 -3
  23. package/esm2020/lib/modules/log/log.module.mjs +4 -4
  24. package/esm2020/lib/modules/log/log.service.mjs +22 -11
  25. package/esm2020/lib/modules/media-query/media-query.module.mjs +4 -4
  26. package/esm2020/lib/modules/media-query/media-query.service.mjs +10 -10
  27. package/esm2020/lib/modules/mutation/mutation-observer-service.mjs +3 -3
  28. package/esm2020/lib/modules/numeric/numeric.module.mjs +4 -4
  29. package/esm2020/lib/modules/numeric/numeric.options.mjs +12 -1
  30. package/esm2020/lib/modules/numeric/numeric.pipe.mjs +3 -3
  31. package/esm2020/lib/modules/numeric/numeric.service.mjs +26 -18
  32. package/esm2020/lib/modules/overlay/overlay-adapter.service.mjs +3 -3
  33. package/esm2020/lib/modules/overlay/overlay-config.mjs +1 -1
  34. package/esm2020/lib/modules/overlay/overlay-instance.mjs +13 -13
  35. package/esm2020/lib/modules/overlay/overlay-position.mjs +2 -0
  36. package/esm2020/lib/modules/overlay/overlay.component.mjs +14 -11
  37. package/esm2020/lib/modules/overlay/overlay.module.mjs +4 -4
  38. package/esm2020/lib/modules/overlay/overlay.service.mjs +3 -3
  39. package/esm2020/lib/modules/percent-pipe/percent-pipe.module.mjs +4 -4
  40. package/esm2020/lib/modules/percent-pipe/percent.pipe.mjs +7 -7
  41. package/esm2020/lib/modules/resize-observer/resize-observer-media-query.service.mjs +10 -10
  42. package/esm2020/lib/modules/resize-observer/resize-observer.service.mjs +3 -3
  43. package/esm2020/lib/modules/scrollable-host/scrollable-host.service.mjs +3 -3
  44. package/esm2020/lib/modules/shared/sky-core-resources.module.mjs +4 -4
  45. package/esm2020/lib/modules/title/title.service.mjs +3 -3
  46. package/esm2020/lib/modules/trim/trim.directive.mjs +3 -3
  47. package/esm2020/lib/modules/trim/trim.module.mjs +4 -4
  48. package/esm2020/lib/modules/ui-config/ui-config.service.mjs +3 -3
  49. package/esm2020/lib/modules/viewkeeper/viewkeeper-host-options.mjs +3 -3
  50. package/esm2020/lib/modules/viewkeeper/viewkeeper.directive.mjs +11 -11
  51. package/esm2020/lib/modules/viewkeeper/viewkeeper.module.mjs +4 -4
  52. package/esm2020/lib/modules/viewkeeper/viewkeeper.service.mjs +3 -3
  53. package/esm2020/lib/modules/window/window-ref.mjs +3 -3
  54. package/esm2020/testing/core-testing.module.mjs +4 -4
  55. package/esm2020/testing/mock-media-query.service.mjs +10 -10
  56. package/esm2020/testing/mock-ui-config.service.mjs +4 -4
  57. package/fesm2015/skyux-core-testing.mjs +16 -16
  58. package/fesm2015/skyux-core-testing.mjs.map +1 -1
  59. package/fesm2015/skyux-core.mjs +297 -244
  60. package/fesm2015/skyux-core.mjs.map +1 -1
  61. package/fesm2020/skyux-core-testing.mjs +16 -16
  62. package/fesm2020/skyux-core-testing.mjs.map +1 -1
  63. package/fesm2020/skyux-core.mjs +304 -244
  64. package/fesm2020/skyux-core.mjs.map +1 -1
  65. package/index.d.ts +2 -0
  66. package/lib/modules/affix/affix-config.d.ts +5 -0
  67. package/lib/modules/affix/affix-horizontal-alignment.d.ts +1 -1
  68. package/lib/modules/affix/affix-placement.d.ts +1 -1
  69. package/lib/modules/affix/affix-position.d.ts +1 -0
  70. package/lib/modules/affix/affix-rect.d.ts +11 -0
  71. package/lib/modules/affix/affix-vertical-alignment.d.ts +1 -1
  72. package/lib/modules/affix/affix.directive.d.ts +6 -1
  73. package/lib/modules/log/log.service.d.ts +11 -2
  74. package/lib/modules/media-query/media-query-listener.d.ts +1 -1
  75. package/lib/modules/numeric/numeric.options.d.ts +2 -0
  76. package/lib/modules/overlay/overlay-config.d.ts +5 -0
  77. package/lib/modules/overlay/overlay-position.d.ts +1 -0
  78. package/lib/modules/overlay/overlay.component.d.ts +2 -0
  79. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './lib/modules/affix/affix-offset';
8
8
  export * from './lib/modules/affix/affix-offset-change';
9
9
  export * from './lib/modules/affix/affix-placement';
10
10
  export * from './lib/modules/affix/affix-placement-change';
11
+ export * from './lib/modules/affix/affix-position';
11
12
  export * from './lib/modules/affix/affix-vertical-alignment';
12
13
  export * from './lib/modules/affix/affix.module';
13
14
  export * from './lib/modules/affix/affix.service';
@@ -42,6 +43,7 @@ export * from './lib/modules/numeric/numeric.pipe';
42
43
  export * from './lib/modules/numeric/numeric.service';
43
44
  export * from './lib/modules/overlay/overlay-config';
44
45
  export * from './lib/modules/overlay/overlay-instance';
46
+ export * from './lib/modules/overlay/overlay-position';
45
47
  export * from './lib/modules/overlay/overlay.module';
46
48
  export * from './lib/modules/overlay/overlay.service';
47
49
  export * from './lib/modules/percent-pipe/percent-pipe.module';
@@ -2,6 +2,7 @@ import { SkyAffixAutoFitContext } from './affix-auto-fit-context';
2
2
  import { SkyAffixHorizontalAlignment } from './affix-horizontal-alignment';
3
3
  import { SkyAffixOffset } from './affix-offset';
4
4
  import { SkyAffixPlacement } from './affix-placement';
5
+ import { SkyAffixPosition } from './affix-position';
5
6
  import { SkyAffixVerticalAlignment } from './affix-vertical-alignment';
6
7
  export interface SkyAffixConfig {
7
8
  /**
@@ -38,4 +39,8 @@ export interface SkyAffixConfig {
38
39
  * The vertical alignment of the affixed element to the base element.
39
40
  */
40
41
  verticalAlignment?: SkyAffixVerticalAlignment;
42
+ /**
43
+ * The position of the element being affixed.
44
+ */
45
+ position?: SkyAffixPosition;
41
46
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The horizontal alignment of the affixed element to the base element.
3
3
  */
4
- export declare type SkyAffixHorizontalAlignment = 'left' | 'center' | 'right';
4
+ export type SkyAffixHorizontalAlignment = 'left' | 'center' | 'right';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The placement of the affixed element around the base element.
3
3
  */
4
- export declare type SkyAffixPlacement = 'above' | 'below' | 'left' | 'right';
4
+ export type SkyAffixPlacement = 'above' | 'below' | 'left' | 'right';
@@ -0,0 +1 @@
1
+ export type SkyAffixPosition = 'absolute' | 'fixed';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface AffixRect {
5
+ bottom: number;
6
+ top: number;
7
+ left: number;
8
+ right: number;
9
+ width: number;
10
+ height: number;
11
+ }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The vertical alignment of the affixed element to the base element.
3
3
  */
4
- export declare type SkyAffixVerticalAlignment = 'top' | 'middle' | 'bottom';
4
+ export type SkyAffixVerticalAlignment = 'top' | 'middle' | 'bottom';
@@ -5,6 +5,7 @@ import { SkyAffixOffset } from './affix-offset';
5
5
  import { SkyAffixOffsetChange } from './affix-offset-change';
6
6
  import { SkyAffixPlacement } from './affix-placement';
7
7
  import { SkyAffixPlacementChange } from './affix-placement-change';
8
+ import { SkyAffixPosition } from './affix-position';
8
9
  import { SkyAffixVerticalAlignment } from './affix-vertical-alignment';
9
10
  import { SkyAffixService } from './affix.service';
10
11
  import * as i0 from "@angular/core";
@@ -41,6 +42,10 @@ export declare class SkyAffixDirective implements OnInit, OnChanges, OnDestroy {
41
42
  * Sets the `placement` property of [[SkyAffixConfig]].
42
43
  */
43
44
  affixPlacement: SkyAffixPlacement | undefined;
45
+ /**
46
+ * Sets the `position` property of [[SkyAffixConfig]].
47
+ */
48
+ affixPosition: SkyAffixPosition | undefined;
44
49
  /**
45
50
  * Sets the `verticalAlignment` property of [[SkyAffixConfig]].
46
51
  */
@@ -62,5 +67,5 @@ export declare class SkyAffixDirective implements OnInit, OnChanges, OnDestroy {
62
67
  ngOnChanges(changes: SimpleChanges): void;
63
68
  ngOnDestroy(): void;
64
69
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAffixDirective, never>;
65
- static ɵdir: i0.ɵɵDirectiveDeclaration<SkyAffixDirective, "[skyAffixTo]", never, { "skyAffixTo": "skyAffixTo"; "affixAutoFitContext": "affixAutoFitContext"; "affixAutoFitOverflowOffset": "affixAutoFitOverflowOffset"; "affixEnableAutoFit": "affixEnableAutoFit"; "affixHorizontalAlignment": "affixHorizontalAlignment"; "affixIsSticky": "affixIsSticky"; "affixPlacement": "affixPlacement"; "affixVerticalAlignment": "affixVerticalAlignment"; }, { "affixOffsetChange": "affixOffsetChange"; "affixOverflowScroll": "affixOverflowScroll"; "affixPlacementChange": "affixPlacementChange"; }, never, never, false, never>;
70
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkyAffixDirective, "[skyAffixTo]", never, { "skyAffixTo": "skyAffixTo"; "affixAutoFitContext": "affixAutoFitContext"; "affixAutoFitOverflowOffset": "affixAutoFitOverflowOffset"; "affixEnableAutoFit": "affixEnableAutoFit"; "affixHorizontalAlignment": "affixHorizontalAlignment"; "affixIsSticky": "affixIsSticky"; "affixPlacement": "affixPlacement"; "affixPosition": "affixPosition"; "affixVerticalAlignment": "affixVerticalAlignment"; }, { "affixOffsetChange": "affixOffsetChange"; "affixOverflowScroll": "affixOverflowScroll"; "affixPlacementChange": "affixPlacementChange"; }, never, never, false, never>;
66
71
  }
@@ -3,14 +3,23 @@ import { SkyLogDeprecatedArgs } from './types/log-deprecation-args';
3
3
  import { SkyLogLevel } from './types/log-level';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Logs information to the console based on the application's log level as provided by the `SKY_LOG_LEVEL` injection token. If no token is provided, only `error` logs will be shown.
6
+ * Logs information to the console based on the application's log level as
7
+ * provided by the `SKY_LOG_LEVEL` injection token. If no token is provided,
8
+ * only `error` logs will be shown.
7
9
  * @internal
8
10
  */
9
11
  export declare class SkyLogService {
10
12
  #private;
11
13
  constructor(formatter: SkyAppFormat, applicationLogLevel?: SkyLogLevel);
12
14
  /**
13
- * Logs a deprecation warning for a class, property, function, etc. This will be logged as a console warning unless a different log level is given in the the `args` parameter.
15
+ * Clears previously-logged messages. Primarily used for unit
16
+ * testing this service.
17
+ */
18
+ static clearPreviousLogs(): void;
19
+ /**
20
+ * Logs a deprecation warning for a class, property, function, etc. This will
21
+ * be logged as a console warning unless a different log level is given in the
22
+ * `args` parameter.
14
23
  * @param name The name of the deprecated class, property, function, etc.
15
24
  * @param args Information about the deprecation and replacement recommendations.
16
25
  * @returns
@@ -3,4 +3,4 @@ import { SkyMediaBreakpoints } from './media-breakpoints';
3
3
  * The function that is called when the breakpoints change. It is called
4
4
  * with a `SkyMediaBreakpoints` argument, which is an enum that represents the new breakpoint.
5
5
  */
6
- export declare type SkyMediaQueryListener = (args: SkyMediaBreakpoints) => void;
6
+ export type SkyMediaQueryListener = (args: SkyMediaBreakpoints) => void;
@@ -41,6 +41,7 @@ export interface SkyNumericOptions {
41
41
  /**
42
42
  * Provides arguments for the number to format.
43
43
  * @deprecated Use the `SkyNumericOptions` interface instead.
44
+ * @internal
44
45
  */
45
46
  export declare class NumericOptions implements SkyNumericOptions {
46
47
  digits?: number;
@@ -51,4 +52,5 @@ export declare class NumericOptions implements SkyNumericOptions {
51
52
  minDigits?: number;
52
53
  truncate?: boolean;
53
54
  truncateAfter?: number;
55
+ constructor();
54
56
  }
@@ -1,3 +1,4 @@
1
+ import { SkyOverlayPosition } from './overlay-position';
1
2
  export interface SkyOverlayConfig {
2
3
  /**
3
4
  * Whether the overlay closes after a navigation change.
@@ -23,4 +24,8 @@ export interface SkyOverlayConfig {
23
24
  * Extra CSS classes to add to the overlay's wrapper element.
24
25
  */
25
26
  wrapperClass?: string;
27
+ /**
28
+ * The position of the overlay instance.
29
+ */
30
+ position?: SkyOverlayPosition;
26
31
  }
@@ -0,0 +1 @@
1
+ export type SkyOverlayPosition = 'absolute' | 'fixed';
@@ -4,6 +4,7 @@ import { Observable, ReplaySubject } from 'rxjs';
4
4
  import { SkyCoreAdapterService } from '../adapter-service/adapter.service';
5
5
  import { SkyIdService } from '../id/id.service';
6
6
  import { SkyOverlayContext } from './overlay-context';
7
+ import { SkyOverlayPosition } from './overlay-position';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * @internal
@@ -18,6 +19,7 @@ export declare class SkyOverlayComponent implements OnInit, OnDestroy {
18
19
  showBackdrop: boolean;
19
20
  zIndex: string;
20
21
  protected clipPath$: ReplaySubject<string | undefined>;
22
+ protected position: SkyOverlayPosition;
21
23
  overlayContentRef: ElementRef | undefined;
22
24
  overlayRef: ElementRef | undefined;
23
25
  targetRef: ViewContainerRef | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
3
- "version": "8.0.0-alpha.2",
3
+ "version": "8.0.0-alpha.20",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,15 +40,15 @@
40
40
  }
41
41
  },
42
42
  "peerDependencies": {
43
- "@angular/cdk": "^15.1.4",
44
- "@angular/common": "^15.1.4",
45
- "@angular/core": "^15.1.4",
46
- "@angular/platform-browser": "^15.1.4",
47
- "@angular/router": "^15.1.4",
48
- "@skyux/i18n": "8.0.0-alpha.2"
43
+ "@angular/cdk": "^15.2.1",
44
+ "@angular/common": "^15.2.1",
45
+ "@angular/core": "^15.2.1",
46
+ "@angular/platform-browser": "^15.2.1",
47
+ "@angular/router": "^15.2.1",
48
+ "@skyux/i18n": "8.0.0-alpha.20"
49
49
  },
50
50
  "dependencies": {
51
- "tslib": "^2.3.1"
51
+ "tslib": "^2.5.0"
52
52
  },
53
53
  "module": "fesm2015/skyux-core.mjs",
54
54
  "es2020": "fesm2020/skyux-core.mjs",