@leanix/components 0.4.16 → 0.4.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.
@@ -48,14 +48,14 @@ export declare class ModalComponent implements OnChanges, OnInit, OnDestroy, Aft
48
48
  explicitContent?: TemplateRef<any>;
49
49
  get content(): TemplateRef<any>;
50
50
  onEscape(): void;
51
- constructor(overlay: Overlay, renderer: Renderer2, closeModal$: Observable<boolean>, focusTrap: ConfigurableFocusTrapFactory);
51
+ constructor(overlay: Overlay, renderer: Renderer2, closeModal$: Observable<ModalCloseClickLocation | boolean>, focusTrap: ConfigurableFocusTrapFactory);
52
52
  ngOnInit(): void;
53
53
  ngOnChanges(): void;
54
54
  ngAfterViewInit(): void;
55
55
  openModal(): void;
56
56
  emitBack(): void;
57
57
  ngOnDestroy(): void;
58
- closeModal(closeLocation: ModalCloseClickLocation): Promise<void>;
58
+ closeModal(closeLocation: ModalCloseClickLocation | boolean): Promise<void>;
59
59
  private trapFocusInModal;
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, [null, null, { optional: true; }, null]>;
61
61
  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", "*"], false, never>;
@@ -1,6 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- export declare const MODAL_CLOSE: InjectionToken<Observable<void>>;
3
+ export declare const MODAL_CLOSE: InjectionToken<Observable<boolean | ModalCloseClickLocation>>;
4
4
  /**
5
5
  * An enum to track how the modal was closed
6
6
  * Escape - Esc key press
@@ -12,5 +12,6 @@ export declare enum ModalCloseClickLocation {
12
12
  Escape = "escape",
13
13
  CloseButton = "closeButton",
14
14
  OutsideClick = "outsideClick",
15
+ CancelButton = "cancelButton",
15
16
  Other = "other"
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {