@leanix/components 0.4.16 → 0.4.18
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/esm2020/lib/modal-ui/components/modal/modal.component.mjs +10 -5
- package/esm2020/lib/modal-ui/components/modal-header/modal-header.component.mjs +2 -2
- package/esm2020/lib/modal-ui/modal.constants.mjs +2 -1
- package/fesm2015/leanix-components.mjs +10 -6
- package/fesm2015/leanix-components.mjs.map +1 -1
- package/fesm2020/leanix-components.mjs +12 -6
- package/fesm2020/leanix-components.mjs.map +1 -1
- package/lib/modal-ui/components/modal/modal.component.d.ts +4 -3
- package/lib/modal-ui/modal.constants.d.ts +2 -1
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare class ModalComponent implements OnChanges, OnInit, OnDestroy, Aft
|
|
|
33
33
|
showBackButton: boolean;
|
|
34
34
|
verticalScroll: boolean;
|
|
35
35
|
size: 'fullscreen' | 'dialog-large' | 'dialog';
|
|
36
|
+
minWidth: string;
|
|
36
37
|
isFocusTrap: boolean;
|
|
37
38
|
canModalBeClosed?: () => Promise<boolean>;
|
|
38
39
|
close: EventEmitter<ModalCloseClickLocation>;
|
|
@@ -48,15 +49,15 @@ export declare class ModalComponent implements OnChanges, OnInit, OnDestroy, Aft
|
|
|
48
49
|
explicitContent?: TemplateRef<any>;
|
|
49
50
|
get content(): TemplateRef<any>;
|
|
50
51
|
onEscape(): void;
|
|
51
|
-
constructor(overlay: Overlay, renderer: Renderer2, closeModal$: Observable<boolean>, focusTrap: ConfigurableFocusTrapFactory);
|
|
52
|
+
constructor(overlay: Overlay, renderer: Renderer2, closeModal$: Observable<ModalCloseClickLocation | boolean>, focusTrap: ConfigurableFocusTrapFactory);
|
|
52
53
|
ngOnInit(): void;
|
|
53
54
|
ngOnChanges(): void;
|
|
54
55
|
ngAfterViewInit(): void;
|
|
55
56
|
openModal(): void;
|
|
56
57
|
emitBack(): void;
|
|
57
58
|
ngOnDestroy(): void;
|
|
58
|
-
closeModal(closeLocation: ModalCloseClickLocation): Promise<void>;
|
|
59
|
+
closeModal(closeLocation: ModalCloseClickLocation | boolean): Promise<void>;
|
|
59
60
|
private trapFocusInModal;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, [null, null, { optional: true; }, null]>;
|
|
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>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "lx-modal", never, { "open": "open"; "showCloseButton": "showCloseButton"; "showBackButton": "showBackButton"; "verticalScroll": "verticalScroll"; "size": "size"; "minWidth": "minWidth"; "isFocusTrap": "isFocusTrap"; "canModalBeClosed": "canModalBeClosed"; }, { "close": "close"; "back": "back"; }, ["header", "footer", "explicitContent"], ["lx-modal-header", "lx-modal-footer", "*"], false, never>;
|
|
62
63
|
}
|
|
@@ -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<
|
|
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
|
}
|