@leanix/components 0.2.215 → 0.2.216

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -88,6 +88,7 @@ export * from './lib/modal-ui/modal.constants';
88
88
  export * from './lib/modal-ui/components/modal/modal.component';
89
89
  export * from './lib/modal-ui/components/modal-header/modal-header.component';
90
90
  export * from './lib/modal-ui/components/modal-footer/modal-footer.component';
91
+ export * from './lib/modal-ui/directives/modal-content.directive';
91
92
  export * from './lib/popover-ui/popover-ui.module';
92
93
  export * from './lib/popover-ui/components/popover/popover.component';
93
94
  export * from './lib/popover-ui/directives/popover-click.directive';
@@ -42,6 +42,7 @@ export declare abstract class BaseSelectDirective implements AfterViewInit, OnCh
42
42
  */
43
43
  handleClick(toggle: boolean): void;
44
44
  handleBackdropClick(event: MouseEvent): void;
45
+ closeInput(): void;
45
46
  protected setOpenDirection(): void;
46
47
  protected resetSelectState(): void;
47
48
  protected mapToEventSet(event: KeyboardEvent, input: HTMLInputElement, virtualCursorPosition: number, selectionLength?: number): EventSet;
@@ -1,7 +1,7 @@
1
1
  import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
2
2
  import { Overlay } from '@angular/cdk/overlay';
3
3
  import { CdkPortal, Portal } from '@angular/cdk/portal';
4
- import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2 } from '@angular/core';
4
+ import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, TemplateRef } from '@angular/core';
5
5
  import { Observable, Subject } from 'rxjs';
6
6
  import { ModalFooterComponent } from '../modal-footer/modal-footer.component';
7
7
  import { ModalHeaderComponent } from '../modal-header/modal-header.component';
@@ -42,6 +42,9 @@ export declare class ModalComponent implements OnChanges, OnInit, OnDestroy, Aft
42
42
  private overlayRef;
43
43
  private oldOverflow?;
44
44
  readonly destroyed$: Subject<void>;
45
+ implicitContent: TemplateRef<any>;
46
+ explicitContent?: TemplateRef<any>;
47
+ get content(): TemplateRef<any>;
45
48
  onEscape(): void;
46
49
  constructor(overlay: Overlay, renderer: Renderer2, closeModal$: Observable<boolean>, focusTrap: ConfigurableFocusTrapFactory);
47
50
  ngOnInit(): void;
@@ -53,5 +56,5 @@ export declare class ModalComponent implements OnChanges, OnInit, OnDestroy, Aft
53
56
  closeModal(): Promise<void>;
54
57
  private trapFocusInModal;
55
58
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, [null, null, { optional: true; }, null]>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "lx-modal", never, { "open": "open"; "showCloseButton": "showCloseButton"; "showBackButton": "showBackButton"; "verticalScroll": "verticalScroll"; "size": "size"; "isFocusTrap": "isFocusTrap"; "canModalBeClosed": "canModalBeClosed"; }, { "close": "close"; "back": "back"; }, ["header", "footer"], ["lx-modal-header", "*", "lx-modal-footer"]>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "lx-modal", never, { "open": "open"; "showCloseButton": "showCloseButton"; "showBackButton": "showBackButton"; "verticalScroll": "verticalScroll"; "size": "size"; "isFocusTrap": "isFocusTrap"; "canModalBeClosed": "canModalBeClosed"; }, { "close": "close"; "back": "back"; }, ["header", "footer", "explicitContent"], ["lx-modal-header", "lx-modal-footer", "*"]>;
57
60
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalContentDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalContentDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalContentDirective, "[lxModalContent]", never, {}, {}, never>;
5
+ }
@@ -2,13 +2,14 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/modal/modal.component";
3
3
  import * as i2 from "./components/modal-header/modal-header.component";
4
4
  import * as i3 from "./components/modal-footer/modal-footer.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/cdk/portal";
7
- import * as i6 from "@angular/cdk/overlay";
8
- import * as i7 from "@angular/cdk/a11y";
9
- import * as i8 from "@ngx-translate/core";
5
+ import * as i4 from "./directives/modal-content.directive";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/cdk/portal";
8
+ import * as i7 from "@angular/cdk/overlay";
9
+ import * as i8 from "@angular/cdk/a11y";
10
+ import * as i9 from "@ngx-translate/core";
10
11
  export declare class LxModalModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<LxModalModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<LxModalModule, [typeof i1.ModalComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalFooterComponent], [typeof i4.CommonModule, typeof i5.PortalModule, typeof i6.OverlayModule, typeof i7.A11yModule, typeof i8.TranslateModule], [typeof i1.ModalComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalFooterComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LxModalModule, [typeof i1.ModalComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalFooterComponent, typeof i4.ModalContentDirective], [typeof i5.CommonModule, typeof i6.PortalModule, typeof i7.OverlayModule, typeof i8.A11yModule, typeof i9.TranslateModule], [typeof i1.ModalComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalFooterComponent, typeof i4.ModalContentDirective]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<LxModalModule>;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.2.215",
3
+ "version": "0.2.216",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {