@skyux/core 8.0.0-alpha.0 → 8.0.0-alpha.10

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 (72) hide show
  1. package/documentation.json +684 -610
  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.directive.mjs +3 -3
  6. package/esm2020/lib/modules/affix/affix.module.mjs +4 -4
  7. package/esm2020/lib/modules/affix/affix.service.mjs +3 -3
  8. package/esm2020/lib/modules/affix/affixer.mjs +22 -22
  9. package/esm2020/lib/modules/dock/dock-dom-adapter.service.mjs +3 -3
  10. package/esm2020/lib/modules/dock/dock-item.mjs +7 -7
  11. package/esm2020/lib/modules/dock/dock.component.mjs +4 -4
  12. package/esm2020/lib/modules/dock/dock.module.mjs +4 -4
  13. package/esm2020/lib/modules/dock/dock.service.mjs +10 -10
  14. package/esm2020/lib/modules/dynamic-component/dynamic-component.module.mjs +4 -4
  15. package/esm2020/lib/modules/dynamic-component/dynamic-component.service.mjs +3 -3
  16. package/esm2020/lib/modules/format/app-format.mjs +3 -3
  17. package/esm2020/lib/modules/id/id.directive.mjs +7 -7
  18. package/esm2020/lib/modules/id/id.module.mjs +4 -4
  19. package/esm2020/lib/modules/id/id.service.mjs +3 -3
  20. package/esm2020/lib/modules/log/log.module.mjs +4 -4
  21. package/esm2020/lib/modules/log/log.service.mjs +48 -32
  22. package/esm2020/lib/modules/media-query/media-query.module.mjs +4 -4
  23. package/esm2020/lib/modules/media-query/media-query.service.mjs +10 -10
  24. package/esm2020/lib/modules/mutation/mutation-observer-service.mjs +3 -3
  25. package/esm2020/lib/modules/numeric/numeric.module.mjs +4 -4
  26. package/esm2020/lib/modules/numeric/numeric.pipe.mjs +3 -3
  27. package/esm2020/lib/modules/numeric/numeric.service.mjs +3 -3
  28. package/esm2020/lib/modules/overlay/overlay-adapter.service.mjs +3 -3
  29. package/esm2020/lib/modules/overlay/overlay-instance.mjs +13 -13
  30. package/esm2020/lib/modules/overlay/overlay.component.mjs +28 -13
  31. package/esm2020/lib/modules/overlay/overlay.module.mjs +4 -4
  32. package/esm2020/lib/modules/overlay/overlay.service.mjs +3 -3
  33. package/esm2020/lib/modules/percent-pipe/percent-pipe.module.mjs +4 -4
  34. package/esm2020/lib/modules/percent-pipe/percent.pipe.mjs +7 -7
  35. package/esm2020/lib/modules/resize-observer/resize-observer-media-query.service.mjs +10 -10
  36. package/esm2020/lib/modules/resize-observer/resize-observer.service.mjs +3 -3
  37. package/esm2020/lib/modules/scrollable-host/scrollable-host.service.mjs +46 -12
  38. package/esm2020/lib/modules/shared/number-format/number-format-utility.mjs +2 -1
  39. package/esm2020/lib/modules/shared/sky-core-resources.module.mjs +4 -4
  40. package/esm2020/lib/modules/stacking-context/stacking-context-token.mjs +6 -0
  41. package/esm2020/lib/modules/stacking-context/stacking-context.mjs +2 -0
  42. package/esm2020/lib/modules/title/title.service.mjs +3 -3
  43. package/esm2020/lib/modules/trim/trim.directive.mjs +3 -3
  44. package/esm2020/lib/modules/trim/trim.module.mjs +4 -4
  45. package/esm2020/lib/modules/ui-config/ui-config.service.mjs +3 -3
  46. package/esm2020/lib/modules/viewkeeper/viewkeeper-host-options.mjs +3 -3
  47. package/esm2020/lib/modules/viewkeeper/viewkeeper.directive.mjs +11 -11
  48. package/esm2020/lib/modules/viewkeeper/viewkeeper.module.mjs +4 -4
  49. package/esm2020/lib/modules/viewkeeper/viewkeeper.service.mjs +3 -3
  50. package/esm2020/lib/modules/window/window-ref.mjs +3 -3
  51. package/esm2020/testing/core-testing.module.mjs +4 -4
  52. package/esm2020/testing/mock-media-query.service.mjs +10 -10
  53. package/esm2020/testing/mock-ui-config.service.mjs +4 -4
  54. package/fesm2015/skyux-core-testing.mjs +16 -16
  55. package/fesm2015/skyux-core-testing.mjs.map +1 -1
  56. package/fesm2015/skyux-core.mjs +327 -256
  57. package/fesm2015/skyux-core.mjs.map +1 -1
  58. package/fesm2020/skyux-core-testing.mjs +16 -16
  59. package/fesm2020/skyux-core-testing.mjs.map +1 -1
  60. package/fesm2020/skyux-core.mjs +324 -256
  61. package/fesm2020/skyux-core.mjs.map +1 -1
  62. package/index.d.ts +2 -0
  63. package/lib/modules/affix/affix-horizontal-alignment.d.ts +1 -1
  64. package/lib/modules/affix/affix-placement.d.ts +1 -1
  65. package/lib/modules/affix/affix-vertical-alignment.d.ts +1 -1
  66. package/lib/modules/log/log.service.d.ts +11 -2
  67. package/lib/modules/media-query/media-query-listener.d.ts +1 -1
  68. package/lib/modules/overlay/overlay.component.d.ts +3 -1
  69. package/lib/modules/scrollable-host/scrollable-host.service.d.ts +4 -2
  70. package/lib/modules/stacking-context/stacking-context-token.d.ts +6 -0
  71. package/lib/modules/stacking-context/stacking-context.d.ts +7 -0
  72. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -49,6 +49,8 @@ export * from './lib/modules/percent-pipe/percent.pipe';
49
49
  export * from './lib/modules/resize-observer/resize-observer.service';
50
50
  export * from './lib/modules/resize-observer/resize-observer-media-query.service';
51
51
  export * from './lib/modules/scrollable-host/scrollable-host.service';
52
+ export * from './lib/modules/stacking-context/stacking-context';
53
+ export * from './lib/modules/stacking-context/stacking-context-token';
52
54
  export * from './lib/modules/title/set-title-args';
53
55
  export * from './lib/modules/title/title.service';
54
56
  export * from './lib/modules/trim/trim.module';
@@ -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';
@@ -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';
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, Injector, OnDestroy, OnInit, StaticProvider, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
- import { Observable } from 'rxjs';
3
+ 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';
@@ -17,6 +17,7 @@ export declare class SkyOverlayComponent implements OnInit, OnDestroy {
17
17
  id: string;
18
18
  showBackdrop: boolean;
19
19
  zIndex: string;
20
+ protected clipPath$: ReplaySubject<string | undefined>;
20
21
  overlayContentRef: ElementRef | undefined;
21
22
  overlayRef: ElementRef | undefined;
22
23
  targetRef: ViewContainerRef | undefined;
@@ -25,6 +26,7 @@ export declare class SkyOverlayComponent implements OnInit, OnDestroy {
25
26
  ngOnDestroy(): void;
26
27
  attachComponent<C>(component: Type<C>, providers?: StaticProvider[]): ComponentRef<C>;
27
28
  attachTemplate<T>(templateRef: TemplateRef<T>, context: T): EmbeddedViewRef<T>;
29
+ updateClipPath(clipPath: string | undefined): void;
28
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayComponent, [null, null, null, null, null, { optional: true; }]>;
29
31
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyOverlayComponent, "sky-overlay", never, {}, {}, never, never, false, never>;
30
32
  }
@@ -1,11 +1,12 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { SkyMutationObserverService } from '../mutation/mutation-observer-service';
4
+ import { SkyResizeObserverService } from '../resize-observer/resize-observer.service';
4
5
  import { SkyAppWindowRef } from '../window/window-ref';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class SkyScrollableHostService {
7
8
  #private;
8
- constructor(mutationObserverSvc: SkyMutationObserverService, windowRef: SkyAppWindowRef);
9
+ constructor(mutationObserverSvc: SkyMutationObserverService, windowRef: SkyAppWindowRef, resizeObserverSvc?: SkyResizeObserverService);
9
10
  /**
10
11
  * Returns the given element's current scrollable host
11
12
  * @param elementRef The element whose scrollable host is being requested
@@ -25,6 +26,7 @@ export declare class SkyScrollableHostService {
25
26
  * @returns An observable which emits when the elements scrollable host is scrolled or is changed
26
27
  */
27
28
  watchScrollableHostScrollEvents(elementRef: ElementRef): Observable<void>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyScrollableHostService, never>;
29
+ watchScrollableHostClipPathChanges(elementRef: ElementRef): Observable<string>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyScrollableHostService, [null, null, { optional: true; }]>;
29
31
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyScrollableHostService>;
30
32
  }
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SkyStackingContext } from './stacking-context';
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const SKY_STACKING_CONTEXT: InjectionToken<SkyStackingContext>;
@@ -0,0 +1,7 @@
1
+ import { Observable } from 'rxjs';
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface SkyStackingContext {
6
+ zIndex: Observable<number>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
3
- "version": "8.0.0-alpha.0",
3
+ "version": "8.0.0-alpha.10",
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.0"
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.10"
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",