@skyux/core 6.0.2 → 6.2.1

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 +104 -104
  2. package/esm2020/lib/modules/adapter-service/adapter.service.mjs +11 -7
  3. package/esm2020/lib/modules/affix/affix.service.mjs +7 -3
  4. package/esm2020/lib/modules/resize-observer/resize-observer-media-query.service.mjs +29 -22
  5. package/esm2020/lib/modules/resize-observer/resize-observer.service.mjs +17 -11
  6. package/esm2020/lib/modules/scrollable-host/scrollable-host.service.mjs +29 -26
  7. package/esm2020/testing/core-testing.module.mjs +29 -0
  8. package/esm2020/testing/mock-media-query.service.mjs +3 -1
  9. package/esm2020/testing/mock-ui-config.service.mjs +1 -1
  10. package/esm2020/testing/public-api.mjs +2 -1
  11. package/fesm2015/skyux-core-testing.mjs +28 -2
  12. package/fesm2015/skyux-core-testing.mjs.map +1 -1
  13. package/fesm2015/skyux-core.mjs +85 -65
  14. package/fesm2015/skyux-core.mjs.map +1 -1
  15. package/fesm2020/skyux-core-testing.mjs +28 -2
  16. package/fesm2020/skyux-core-testing.mjs.map +1 -1
  17. package/fesm2020/skyux-core.mjs +85 -64
  18. package/fesm2020/skyux-core.mjs.map +1 -1
  19. package/lib/modules/adapter-service/adapter.service.d.ts +1 -1
  20. package/lib/modules/affix/affix.service.d.ts +1 -1
  21. package/lib/modules/resize-observer/resize-observer-media-query.service.d.ts +1 -4
  22. package/lib/modules/resize-observer/resize-observer.service.d.ts +1 -2
  23. package/lib/modules/scrollable-host/scrollable-host.service.d.ts +7 -4
  24. package/package.json +2 -2
  25. package/testing/core-testing.module.d.ts +6 -0
  26. package/testing/mock-ui-config.service.d.ts +2 -1
  27. package/testing/public-api.d.ts +1 -0
@@ -3,8 +3,8 @@ import { SkyMediaBreakpoints } from '../media-query/media-breakpoints';
3
3
  import { SkyFocusableChildrenOptions } from './focusable-children-options';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SkyCoreAdapterService {
6
+ #private;
6
7
  private rendererFactory;
7
- private renderer;
8
8
  constructor(rendererFactory: RendererFactory2);
9
9
  /**
10
10
  * Set the responsive container CSS class for a given element.
@@ -2,7 +2,7 @@ import { ElementRef, RendererFactory2 } from '@angular/core';
2
2
  import { SkyAffixer } from './affixer';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SkyAffixService {
5
- private renderer;
5
+ #private;
6
6
  constructor(rendererFactory: RendererFactory2);
7
7
  /**
8
8
  * Creates an instance of [[SkyAffixer]].
@@ -8,16 +8,13 @@ import * as i0 from "@angular/core";
8
8
  * Acts like `SkyMediaQueryService` for a container element, emitting the same responsive breakpoints.
9
9
  */
10
10
  export declare class SkyResizeObserverMediaQueryService implements OnDestroy {
11
+ #private;
11
12
  private resizeObserverService;
12
13
  /**
13
14
  * Returns the current breakpoint.
14
15
  */
15
16
  get current(): SkyMediaBreakpoints | undefined;
16
- private _breakpoints;
17
- private _currentBreakpointObservable;
18
17
  private _currentBreakpoint;
19
- private _stopListening;
20
- private _target?;
21
18
  constructor(resizeObserverService: SkyResizeObserverService);
22
19
  ngOnDestroy(): void;
23
20
  /**
@@ -5,9 +5,8 @@ import * as i0 from "@angular/core";
5
5
  * Service to create rxjs observables for changes to the content box dimensions of elements.
6
6
  */
7
7
  export declare class SkyResizeObserverService implements OnDestroy {
8
+ #private;
8
9
  private zone;
9
- private _resizeObserver;
10
- private _tracking;
11
10
  constructor(zone: NgZone);
12
11
  ngOnDestroy(): void;
13
12
  /**
@@ -16,21 +16,24 @@ export declare class SkyScrollableHostService {
16
16
  /**
17
17
  * Returns an observable which emits the given element's current scrollable host
18
18
  * @param elementRef The element whose scrollable host is being requested
19
- * @param completionObservable An observable which alerts the internal observers that they should complete
20
- * @returns An observable which emits the current scrollable host
19
+ * @returns An observable which emits the current scrollable host element.
21
20
  * @internal
22
21
  */
23
- watchScrollableHost(elementRef: ElementRef): Observable<HTMLElement | Window>;
22
+ watchScrollableHost(elementRef: ElementRef): Observable<HTMLElement | Window | undefined>;
24
23
  /**
25
24
  * Returns an observable which emits whenever the element's scrollable host emits a scroll event. The observable will always emit the scroll events from the elements current scrollable host and will update based on any scrollable host changes. The observable will also emit once whenever the scrollable host changes.
26
25
  * @param elementRef The element whose scrollable host scroll events are being requested
27
- * @param completionObservable An observable which alerts the internal observers that they should complete
28
26
  * @returns An observable which emits when the elements scrollable host is scrolled or is changed
29
27
  */
30
28
  watchScrollableHostScrollEvents(elementRef: ElementRef): Observable<void>;
31
29
  private findScrollableHost;
32
30
  private observeDocumentHiddenElementChanges;
33
31
  private observeForScrollableHostChanges;
32
+ /**
33
+ * Determines if an element is "visible" in the DOM.
34
+ * @see https://stackoverflow.com/a/11639664/6178885
35
+ */
36
+ private isElementVisible;
34
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyScrollableHostService, never>;
35
38
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyScrollableHostService>;
36
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
3
- "version": "6.0.2",
3
+ "version": "6.2.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -44,7 +44,7 @@
44
44
  "@angular/core": "^13.3.2",
45
45
  "@angular/platform-browser": "^13.3.2",
46
46
  "@angular/router": "^13.3.2",
47
- "@skyux/i18n": "6.0.2"
47
+ "@skyux/i18n": "6.2.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "tslib": "^2.3.1"
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SkyCoreTestingModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyCoreTestingModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCoreTestingModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<SkyCoreTestingModule>;
6
+ }
@@ -1,7 +1,8 @@
1
1
  import { SkyUIConfigService } from '@skyux/core';
2
+ import { Observable } from 'rxjs';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class MockSkyUIConfigService extends SkyUIConfigService {
4
- getConfig(key: string, defaultConfig?: any): any;
5
+ getConfig(key: string, defaultConfig?: any): Observable<any>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<MockSkyUIConfigService, never>;
6
7
  static ɵprov: i0.ɵɵInjectableDeclaration<MockSkyUIConfigService>;
7
8
  }
@@ -1,2 +1,3 @@
1
+ export * from './core-testing.module';
1
2
  export * from './mock-media-query.service';
2
3
  export * from './mock-ui-config.service';