@skyux/core 9.0.0-alpha.3 → 9.0.0-alpha.5

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 (27) hide show
  1. package/documentation.json +698 -745
  2. package/esm2022/lib/modules/dock/dock.component.mjs +8 -12
  3. package/esm2022/lib/modules/dock/dock.module.mjs +4 -3
  4. package/esm2022/lib/modules/dock/dock.service.mjs +10 -15
  5. package/esm2022/lib/modules/dynamic-component/dynamic-component-options.mjs +1 -1
  6. package/esm2022/lib/modules/dynamic-component/dynamic-component.service.mjs +10 -15
  7. package/esm2022/lib/modules/live-announcer/live-announcer.service.mjs +4 -2
  8. package/esm2022/lib/modules/numeric/numeric.module.mjs +6 -6
  9. package/esm2022/lib/modules/numeric/numeric.service.mjs +3 -6
  10. package/esm2022/lib/modules/overlay/overlay.service.mjs +13 -27
  11. package/esm2022/lib/modules/resize-observer/resize-observer-media-query.service.mjs +37 -16
  12. package/esm2022/lib/modules/resize-observer/resize-observer.service.mjs +3 -3
  13. package/esm2022/testing/public-api.mjs +2 -1
  14. package/esm2022/testing/resize-observer-mock.mjs +35 -0
  15. package/fesm2022/skyux-core-testing.mjs +36 -1
  16. package/fesm2022/skyux-core-testing.mjs.map +1 -1
  17. package/fesm2022/skyux-core.mjs +93 -102
  18. package/fesm2022/skyux-core.mjs.map +1 -1
  19. package/lib/modules/dock/dock.component.d.ts +2 -2
  20. package/lib/modules/dynamic-component/dynamic-component-options.d.ts +1 -1
  21. package/lib/modules/dynamic-component/dynamic-component.service.d.ts +3 -3
  22. package/lib/modules/numeric/numeric.module.d.ts +2 -3
  23. package/lib/modules/overlay/overlay.service.d.ts +1 -4
  24. package/lib/modules/resize-observer/resize-observer-media-query.service.d.ts +4 -2
  25. package/package.json +2 -2
  26. package/testing/public-api.d.ts +1 -0
  27. package/testing/resize-observer-mock.d.ts +6 -0
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, Injector, Type, ViewContainerRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, Type, ViewContainerRef } from '@angular/core';
2
2
  import { SkyDockDomAdapterService } from './dock-dom-adapter.service';
3
3
  import { SkyDockInsertComponentConfig } from './dock-insert-component-config';
4
4
  import { SkyDockItemReference } from './dock-item-reference';
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  export declare class SkyDockComponent {
11
11
  #private;
12
12
  target: ViewContainerRef | undefined;
13
- constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, injector: Injector, domAdapter: SkyDockDomAdapterService);
13
+ constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, domAdapter: SkyDockDomAdapterService);
14
14
  insertComponent<T>(component: Type<T>, config?: SkyDockInsertComponentConfig): SkyDockItemReference<T>;
15
15
  removeItem(item: SkyDockItemReference<any>): void;
16
16
  setOptions(options: SkyDockOptions | undefined): void;
@@ -23,5 +23,5 @@ export interface SkyDynamicComponentOptions {
23
23
  /**
24
24
  * The environment injector to use instead of the dynamic component service's injector.
25
25
  */
26
- environmentInjector?: EnvironmentInjector;
26
+ environmentInjector: EnvironmentInjector;
27
27
  }
@@ -1,4 +1,4 @@
1
- import { ApplicationRef, ComponentRef, EnvironmentInjector, RendererFactory2, Type } from '@angular/core';
1
+ import { ApplicationRef, ComponentRef, RendererFactory2, Type } from '@angular/core';
2
2
  import { SkyAppWindowRef } from '../window/window-ref';
3
3
  import { SkyDynamicComponentOptions } from './dynamic-component-options';
4
4
  import * as i0 from "@angular/core";
@@ -8,12 +8,12 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class SkyDynamicComponentService {
10
10
  #private;
11
- constructor(applicationRef: ApplicationRef, windowRef: SkyAppWindowRef, rendererFactory: RendererFactory2, environmentInjector: EnvironmentInjector);
11
+ constructor(applicationRef: ApplicationRef, windowRef: SkyAppWindowRef, rendererFactory: RendererFactory2);
12
12
  /**
13
13
  * Creates an instance of the specified component and adds it to the specified location
14
14
  * on the page.
15
15
  */
16
- createComponent<T>(componentType: Type<T>, options?: SkyDynamicComponentOptions): ComponentRef<T>;
16
+ createComponent<T>(componentType: Type<T>, options: SkyDynamicComponentOptions): ComponentRef<T>;
17
17
  /**
18
18
  * Removes a component ref from the page
19
19
  * @param componentRef Component ref for the component being removed
@@ -1,9 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./numeric.pipe";
3
- import * as i2 from "@skyux/i18n";
4
- import * as i3 from "../shared/sky-core-resources.module";
3
+ import * as i2 from "../shared/sky-core-resources.module";
5
4
  export declare class SkyNumericModule {
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyNumericModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyNumericModule, [typeof i1.SkyNumericPipe], [typeof i2.SkyI18nModule, typeof i3.SkyCoreResourcesModule], [typeof i1.SkyNumericPipe]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyNumericModule, [typeof i1.SkyNumericPipe], [typeof i2.SkyCoreResourcesModule], [typeof i1.SkyNumericPipe]>;
8
7
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyNumericModule>;
9
8
  }
@@ -1,16 +1,13 @@
1
- import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
2
- import { SkyOverlayAdapterService } from './overlay-adapter.service';
3
1
  import { SkyOverlayConfig } from './overlay-config';
4
2
  import { SkyOverlayInstance } from './overlay-instance';
5
3
  import * as i0 from "@angular/core";
6
4
  /**
7
5
  * This service is used to create new overlays.
8
- * @dynamic
6
+ * @internal
9
7
  */
10
8
  export declare class SkyOverlayService {
11
9
  #private;
12
10
  private static overlays;
13
- constructor(applicationRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, adapter: SkyOverlayAdapterService);
14
11
  /**
15
12
  * Creates an empty overlay. Use the returned `SkyOverlayInstance` to append content.
16
13
  * @param config Configuration for the overlay.
@@ -23,9 +23,11 @@ export declare class SkyResizeObserverMediaQueryService implements OnDestroy {
23
23
  * Sets the container element to watch. The `SkyResizeObserverMediaQueryService` will only observe one element at a
24
24
  * time. Any previous subscriptions will be unsubscribed when a new element is observed.
25
25
  */
26
- observe(element: ElementRef): SkyResizeObserverMediaQueryService;
26
+ observe(element: ElementRef, options?: {
27
+ updateResponsiveClasses?: boolean;
28
+ }): SkyResizeObserverMediaQueryService;
27
29
  /**
28
- * Stop watching the container element.
30
+ * Stop watching the container element and remove any added classes.
29
31
  */
30
32
  unobserve(): void;
31
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
3
- "version": "9.0.0-alpha.3",
3
+ "version": "9.0.0-alpha.5",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -41,7 +41,7 @@
41
41
  "@angular/core": "^16.1.7",
42
42
  "@angular/platform-browser": "^16.1.7",
43
43
  "@angular/router": "^16.1.7",
44
- "@skyux/i18n": "9.0.0-alpha.3"
44
+ "@skyux/i18n": "9.0.0-alpha.5"
45
45
  },
46
46
  "dependencies": {
47
47
  "tslib": "^2.5.0"
@@ -5,3 +5,4 @@ export { SkyHarnessFilters } from './shared/harness-filters';
5
5
  export { SkyCoreTestingModule } from './core-testing.module';
6
6
  export { MockSkyMediaQueryService } from './mock-media-query.service';
7
7
  export { MockSkyUIConfigService } from './mock-ui-config.service';
8
+ export { mockResizeObserver, mockResizeObserverEntry, mockResizeObserverHandle, } from './resize-observer-mock';
@@ -0,0 +1,6 @@
1
+ export declare const mockResizeObserverEntry: ResizeObserverEntry;
2
+ export declare const mockResizeObserverHandle: {
3
+ callback: ResizeObserverCallback;
4
+ emit: (entries: ResizeObserverEntry[], observer?: ResizeObserver) => void;
5
+ };
6
+ export declare function mockResizeObserver(): void;