@ts-core/angular 13.1.16 → 13.1.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "13.1.16",
3
+ "version": "13.1.17",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
@@ -1,5 +1,5 @@
1
1
  import { InjectionToken, ModuleWithProviders } from '@angular/core';
2
- import { ICookieService } from '@ts-core/frontend';
2
+ import { ICookieService, NativeWindowService } from '@ts-core/frontend';
3
3
  import { IThemeServiceOptions, ThemeService, ThemeAssetService } from '@ts-core/frontend';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "./ThemeToggleDirective";
@@ -14,6 +14,6 @@ export declare class ThemeModule {
14
14
  static ɵmod: i0.ɵɵNgModuleDeclaration<ThemeModule, [typeof i1.ThemeToggleDirective, typeof i2.ThemeAssetImageDirective, typeof i3.ThemeAssetBackgroundDirective, typeof i4.ThemeStyleDirective, typeof i5.ThemeStyleHoverDirective], [typeof i6.CookieModule], [typeof i1.ThemeToggleDirective, typeof i2.ThemeAssetImageDirective, typeof i3.ThemeAssetBackgroundDirective, typeof i4.ThemeStyleDirective, typeof i5.ThemeStyleHoverDirective]>;
15
15
  static ɵinj: i0.ɵɵInjectorDeclaration<ThemeModule>;
16
16
  }
17
- export declare function themeServiceFactory(cookie: ICookieService, options?: IThemeServiceOptions): ThemeService;
17
+ export declare function themeServiceFactory(nativeWindow: NativeWindowService, cookie: ICookieService, options?: IThemeServiceOptions): ThemeService;
18
18
  export declare function themeAssetServiceFactory(theme: ThemeService): ThemeAssetService;
19
19
  export declare const THEME_OPTIONS: InjectionToken<IThemeServiceOptions>;
@@ -1,10 +1,12 @@
1
- import { ElementRef, Renderer2, RendererStyleFlags2, ViewContainerRef } from '@angular/core';
1
+ import { ElementRef, InjectionToken, Renderer2, RendererStyleFlags2, ViewContainerRef } from '@angular/core';
2
2
  export declare class ViewUtil {
3
3
  private static _renderer;
4
+ private static _document;
4
5
  static get renderer(): Renderer2;
5
6
  static set renderer(value: Renderer2);
7
+ static get document(): Document;
8
+ static set document(value: Document);
6
9
  private static copyToClipboard;
7
- static initialize(renderer: Renderer2): void;
8
10
  static parseElement(element: IViewElement): HTMLElement;
9
11
  static createBase64(element: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement): string;
10
12
  static selectContent(container: IViewElement, isNeedCopyToClipboard?: boolean): void;
@@ -62,3 +64,4 @@ export declare class ViewUtil {
62
64
  static disposeObject(object: HTMLObjectElement, isIEBrowser?: boolean): void;
63
65
  }
64
66
  export declare type IViewElement<T extends HTMLElement = HTMLElement> = HTMLElement | ElementRef<T> | ViewContainerRef;
67
+ export declare const VIEW_UTIL: InjectionToken<ViewUtil>;