@leanix/components 0.2.213 → 0.2.216
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/leanix-components.umd.js +54 -10
- package/bundles/leanix-components.umd.js.map +1 -1
- package/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.js +2 -2
- package/esm2015/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.js +16 -2
- package/esm2015/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.js.map +1 -1
- package/esm2015/lib/forms-ui/models/base-select.directive.js +3 -0
- package/esm2015/lib/forms-ui/models/base-select.directive.js.map +1 -1
- package/esm2015/lib/modal-ui/components/modal/modal.component.js +14 -4
- package/esm2015/lib/modal-ui/components/modal/modal.component.js.map +1 -1
- package/esm2015/lib/modal-ui/directives/modal-content.directive.js +13 -0
- package/esm2015/lib/modal-ui/directives/modal-content.directive.js.map +1 -0
- package/esm2015/lib/modal-ui/modal.module.js +4 -3
- package/esm2015/lib/modal-ui/modal.module.js.map +1 -1
- package/fesm2015/leanix-components.js +47 -11
- package/fesm2015/leanix-components.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.d.ts +3 -1
- package/lib/forms-ui/models/base-select.directive.d.ts +1 -0
- package/lib/modal-ui/components/modal/modal.component.d.ts +5 -2
- package/lib/modal-ui/directives/modal-content.directive.d.ts +5 -0
- package/lib/modal-ui/modal.module.d.ts +7 -6
- package/package.json +1 -1
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';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
2
|
-
import { Subject } from 'rxjs';
|
2
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
3
3
|
import { OptionComponent } from '../option/option.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class OptionsSubDropdownComponent implements AfterViewInit, OnDestroy {
|
@@ -10,11 +10,13 @@ export declare class OptionsSubDropdownComponent implements AfterViewInit, OnDes
|
|
10
10
|
hidden: boolean;
|
11
11
|
private mouseInside$;
|
12
12
|
readonly destroyed$: Subject<void>;
|
13
|
+
readonly maxHeight$: BehaviorSubject<string>;
|
13
14
|
constructor(changeDetection: ChangeDetectorRef);
|
14
15
|
mouseenter(): void;
|
15
16
|
mouseleave(): void;
|
16
17
|
ngOnDestroy(): void;
|
17
18
|
ngAfterViewInit(): void;
|
19
|
+
private updateMaxHeight;
|
18
20
|
private showByKeyboard;
|
19
21
|
private showByMouse;
|
20
22
|
closeDropdown(): void;
|
@@ -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", "
|
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
|
}
|
@@ -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 "
|
6
|
-
import * as i5 from "@angular/
|
7
|
-
import * as i6 from "@angular/cdk/
|
8
|
-
import * as i7 from "@angular/cdk/
|
9
|
-
import * as i8 from "@
|
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
|
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
|
}
|