@ts-core/angular 15.0.32 → 15.0.34

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.
@@ -1,22 +1,18 @@
1
- import { EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { Destroyable } from '@ts-core/common';
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
3
2
  import { LanguageService } from '@ts-core/frontend';
3
+ import { StructureDirective } from '../directive/StructureDirective';
4
4
  import * as i0 from "@angular/core";
5
- export declare class LanguageHasDirective extends Destroyable {
6
- private template;
7
- private container;
5
+ export declare class LanguageHasDirective<T = any> extends StructureDirective<T> {
8
6
  protected language: LanguageService;
9
7
  protected _viTranslateHas: string;
10
8
  protected _isOnlyIfNotEmpty: boolean;
11
- protected view: any;
12
- protected index: EmbeddedViewRef<any>;
13
- constructor(template: TemplateRef<any>, container: ViewContainerRef, language: LanguageService);
9
+ constructor(template: TemplateRef<T>, container: ViewContainerRef, language: LanguageService);
14
10
  protected check(): void;
15
11
  destroy(): void;
16
12
  set viTranslateHas(value: string);
17
13
  get viTranslateHas(): string;
18
14
  set viTranslateHasIsOnlyIfNotEmpty(value: boolean);
19
15
  get viTranslateHasIsOnlyIfNotEmpty(): boolean;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<LanguageHasDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<LanguageHasDirective, "[viTranslateHas]", never, { "viTranslateHas": "viTranslateHas"; "viTranslateHasIsOnlyIfNotEmpty": "viTranslateHasIsOnlyIfNotEmpty"; }, {}, never, never, false, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<LanguageHasDirective<any>, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LanguageHasDirective<any>, "[viTranslateHas]", never, { "viTranslateHas": "viTranslateHas"; "viTranslateHasIsOnlyIfNotEmpty": "viTranslateHasIsOnlyIfNotEmpty"; }, {}, never, never, false, never>;
22
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "15.0.32",
3
+ "version": "15.0.34",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
package/public-api.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './directive/FocusDirective';
21
21
  export * from './directive/SelectOnFocusDirective';
22
22
  export * from './directive/InfiniteScrollDirective';
23
23
  export * from './directive/ResizeDirective';
24
+ export * from './directive/StructureDirective';
24
25
  export * from './directive/ScrollDirective';
25
26
  export * from './directive/ScrollCheckDirective';
26
27
  export * from './directive/HTMLTitleDirective';
@@ -12,6 +12,7 @@ export declare abstract class WindowService extends Destroyable {
12
12
  abstract has<T>(value: WindowId<T>): boolean;
13
13
  abstract setOnTop<T>(value: WindowId<T>): boolean;
14
14
  abstract closeAll(): void;
15
+ abstract close<T>(value: WindowId<T>): void;
15
16
  abstract info(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: WindowConfigOptions): IQuestion;
16
17
  abstract question(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: WindowConfigOptions): IQuestion;
17
18
  abstract get events(): Observable<ObservableData<WindowServiceEvent, IWindow>>;