@leanix/components 0.4.585 → 0.4.587
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/fesm2022/leanix-components.mjs +111 -16
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/lib/forms-ui/components/keyboard-select.directive.d.ts +2 -0
- package/lib/forms-ui/components/multi-select/multi-select.component.d.ts +2 -1
- package/lib/forms-ui/components/single-select/single-select.component.d.ts +2 -1
- package/lib/forms-ui/directives/selectable-item.directive.d.ts +12 -3
- package/package.json +1 -1
@@ -37,6 +37,8 @@ export declare class KeyboardSelectDirective implements OnDestroy, AfterViewInit
|
|
37
37
|
ngAfterViewInit(): void;
|
38
38
|
/** @internal */
|
39
39
|
isItemSelected(item: HTMLElement, selectedItem: ElementRef<HTMLElement>): boolean;
|
40
|
+
registerItem(item: DropdownItem): void;
|
41
|
+
unregisterItem(item: DropdownItem): void;
|
40
42
|
private adaptSelectedIndexBasedOnKeyboardSelectAction;
|
41
43
|
private prev;
|
42
44
|
private next;
|
@@ -27,6 +27,7 @@ export declare class MultiSelectComponent extends BaseSelectDirective implements
|
|
27
27
|
selection?: any[] | null;
|
28
28
|
size: MultiSelectSize;
|
29
29
|
inputId?: string;
|
30
|
+
closeDropdownOnTab: boolean;
|
30
31
|
selectionChange: EventEmitter<any[]>;
|
31
32
|
blur: EventEmitter<void>;
|
32
33
|
/** @internal */
|
@@ -85,5 +86,5 @@ export declare class MultiSelectComponent extends BaseSelectDirective implements
|
|
85
86
|
private onSelectionChange;
|
86
87
|
private scrollToEndOfSelection;
|
87
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "lx-multi-select", never, { "markInvalid": { "alias": "markInvalid"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown", "selectionTemplate"], [".pills", ".dropdownComponent"], true, never>;
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "lx-multi-select", never, { "markInvalid": { "alias": "markInvalid"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "closeDropdownOnTab": { "alias": "closeDropdownOnTab"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown", "selectionTemplate"], [".pills", ".dropdownComponent"], true, never>;
|
89
90
|
}
|
@@ -18,6 +18,7 @@ export declare class SingleSelectComponent extends BaseSelectDirective implement
|
|
18
18
|
padding?: SingleSelectPadding;
|
19
19
|
inputId?: string;
|
20
20
|
required: boolean;
|
21
|
+
closeDropdownOnTab: boolean;
|
21
22
|
selectionChange: EventEmitter<any>;
|
22
23
|
blur: EventEmitter<FocusEvent>;
|
23
24
|
/** @internal */
|
@@ -72,6 +73,6 @@ export declare class SingleSelectComponent extends BaseSelectDirective implement
|
|
72
73
|
focusedViaTab(): void;
|
73
74
|
private determineHighlightIndex;
|
74
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectComponent, never>;
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent, "lx-single-select", never, { "selection": { "alias": "selection"; "required": false; }; "selectionBackground": { "alias": "selectionBackground"; "required": false; }; "size": { "alias": "size"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "markInvalid": { "alias": "markInvalid"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown", "explicitSelectedOption", "dropdownComponent"], [".selectedOption", ".dropdownComponent"], true, never>;
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent, "lx-single-select", never, { "selection": { "alias": "selection"; "required": false; }; "selectionBackground": { "alias": "selectionBackground"; "required": false; }; "size": { "alias": "size"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "closeDropdownOnTab": { "alias": "closeDropdownOnTab"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "markInvalid": { "alias": "markInvalid"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown", "explicitSelectedOption", "dropdownComponent"], [".selectedOption", ".dropdownComponent"], true, never>;
|
76
77
|
static ngAcceptInputType_required: unknown;
|
77
78
|
}
|
@@ -1,15 +1,24 @@
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { KeyboardSelectDirective } from '../components/keyboard-select.directive';
|
2
4
|
import { DropdownItem } from '../models/dropdown-item.interface';
|
3
5
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class SelectableItemDirective implements OnDestroy, DropdownItem {
|
6
|
+
export declare class SelectableItemDirective implements OnDestroy, DropdownItem, OnInit, OnChanges {
|
5
7
|
readonly element: ElementRef<HTMLElement>;
|
6
8
|
scrollInContainer: HTMLElement;
|
7
9
|
lxSelectableItem: any;
|
10
|
+
belongsToParentKeyboardSelect?: boolean;
|
11
|
+
parentKeyboardSelect?: KeyboardSelectDirective;
|
8
12
|
select: EventEmitter<any>;
|
13
|
+
navigate: EventEmitter<string>;
|
9
14
|
get item(): any;
|
10
15
|
constructor(element: ElementRef<HTMLElement>);
|
16
|
+
ngOnInit(): void;
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
11
18
|
ngOnDestroy(): void;
|
12
19
|
scrollToItem(): void;
|
20
|
+
isSelectedItem(): Observable<boolean>;
|
21
|
+
performNavigation(action: 'next' | 'current'): void;
|
13
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectableItemDirective, never>;
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableItemDirective, "[lxSelectableItem]",
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableItemDirective, "[lxSelectableItem]", ["selectableItem"], { "scrollInContainer": { "alias": "scrollInContainer"; "required": false; }; "lxSelectableItem": { "alias": "lxSelectableItem"; "required": false; }; "belongsToParentKeyboardSelect": { "alias": "belongsToParentKeyboardSelect"; "required": false; }; "parentKeyboardSelect": { "alias": "parentKeyboardSelect"; "required": false; }; }, { "select": "select"; "navigate": "navigate"; }, never, never, true, never>;
|
15
24
|
}
|