@leanix/components 0.4.262 → 0.4.263
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/esm2022/index.mjs +5 -3
- package/esm2022/lib/core-ui/components/tokenizer/token/token.component.mjs +20 -0
- package/esm2022/lib/core-ui/components/tokenizer/tokenizer.component.mjs +107 -0
- package/esm2022/lib/core-ui/services/resize-observer.service.mjs +18 -2
- package/esm2022/lib/forms-ui/components/multi-select/multi-select-selection/multi-select-selection.component.mjs +28 -0
- package/esm2022/lib/forms-ui/components/multi-select/multi-select.component.mjs +54 -10
- package/fesm2022/leanix-components.mjs +205 -11
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +4 -2
- package/lib/core-ui/components/tokenizer/token/token.component.d.ts +10 -0
- package/lib/core-ui/components/tokenizer/tokenizer.component.d.ts +36 -0
- package/lib/core-ui/services/resize-observer.service.d.ts +4 -6
- package/lib/forms-ui/components/multi-select/multi-select-selection/multi-select-selection.component.d.ts +11 -0
- package/lib/forms-ui/components/multi-select/multi-select.component.d.ts +10 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -30,14 +30,16 @@ export * from './lib/core-ui/components/ellipsis/ellipsis.component';
|
|
30
30
|
export * from './lib/core-ui/components/empty-state/empty-state.component';
|
31
31
|
export * from './lib/core-ui/components/file-download-button/file-download-button.component';
|
32
32
|
export * from './lib/core-ui/components/icon-scale/icon-scale.component';
|
33
|
-
export * from './lib/core-ui/components/integration-link-card/integration-link-card.component';
|
34
33
|
export * from './lib/core-ui/components/integration-link-card/integration-link-card-group.component';
|
34
|
+
export * from './lib/core-ui/components/integration-link-card/integration-link-card.component';
|
35
35
|
export * from './lib/core-ui/components/skeleton/skeleton.component';
|
36
36
|
export * from './lib/core-ui/components/spinner/spinner.component';
|
37
37
|
export * from './lib/core-ui/components/stepper/stepper.component';
|
38
38
|
export * from './lib/core-ui/components/table/table-header/table-header.component';
|
39
39
|
export * from './lib/core-ui/components/table/table.component';
|
40
40
|
export * from './lib/core-ui/components/tiny-spinner/tiny-spinner.component';
|
41
|
+
export * from './lib/core-ui/components/tokenizer/token/token.component';
|
42
|
+
export * from './lib/core-ui/components/tokenizer/tokenizer.component';
|
41
43
|
export * from './lib/core-ui/tooltip/tooltip-position.interface';
|
42
44
|
export * from './lib/core-ui/tooltip/tooltip.component';
|
43
45
|
export * from './lib/core-ui/tooltip/tooltip.directive';
|
@@ -91,10 +93,10 @@ export * from './lib/forms-ui/directives/form-error.directive';
|
|
91
93
|
export * from './lib/forms-ui/directives/form-submit.directive';
|
92
94
|
export * from './lib/forms-ui/directives/keyboard-action-source.directive';
|
93
95
|
export * from './lib/forms-ui/directives/mark-invalid.directive';
|
96
|
+
export * from './lib/forms-ui/directives/max-length-counter.directive';
|
94
97
|
export * from './lib/forms-ui/directives/select-dropdown.directive';
|
95
98
|
export * from './lib/forms-ui/directives/selectable-item.directive';
|
96
99
|
export * from './lib/forms-ui/directives/selected-option.directive';
|
97
|
-
export * from './lib/forms-ui/directives/max-length-counter.directive';
|
98
100
|
export * from './lib/forms-ui/models/base-select.directive';
|
99
101
|
export * from './lib/forms-ui/models/single-select-padding.interface';
|
100
102
|
export * from './lib/forms-ui/models/sorting.interface';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class TokenComponent {
|
4
|
+
private elementRef;
|
5
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
6
|
+
show(): void;
|
7
|
+
hide(): void;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenComponent, never>;
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TokenComponent, "lx-token", never, {}, {}, never, ["*"], true, never>;
|
10
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, DestroyRef, ElementRef, EventEmitter, QueryList } from '@angular/core';
|
2
|
+
import { ResizeObserverService } from '../../services/resize-observer.service';
|
3
|
+
import { TokenComponent } from './token/token.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class TokenizerComponent implements AfterContentInit {
|
6
|
+
private elementRef;
|
7
|
+
private destroyRef;
|
8
|
+
private changeDetectorRef;
|
9
|
+
private resizeObserverService;
|
10
|
+
readonly NAME = "TokenizerComponent";
|
11
|
+
protected overflowItems: import("@angular/core").WritableSignal<TokenComponent[]>;
|
12
|
+
protected overflowItemCount: import("@angular/core").Signal<number>;
|
13
|
+
protected showCounter: import("@angular/core").Signal<boolean>;
|
14
|
+
active: import("@angular/core").InputSignal<boolean, boolean>;
|
15
|
+
private active$;
|
16
|
+
private overflowStartIndex;
|
17
|
+
/**
|
18
|
+
* Emitted when the counter button is clicked
|
19
|
+
* @param startIndex The index of the first overflowing element
|
20
|
+
* @param counterElement The counter button element
|
21
|
+
*/
|
22
|
+
overflowPlaceholderClick: EventEmitter<{
|
23
|
+
startIndex: number;
|
24
|
+
counterElement: ElementRef<HTMLElement>;
|
25
|
+
}>;
|
26
|
+
items?: QueryList<TokenComponent>;
|
27
|
+
counter?: ElementRef<HTMLElement>;
|
28
|
+
tokensContainer: ElementRef<HTMLElement>;
|
29
|
+
constructor(elementRef: ElementRef<HTMLElement>, destroyRef: DestroyRef, changeDetectorRef: ChangeDetectorRef, resizeObserverService: ResizeObserverService);
|
30
|
+
ngAfterContentInit(): void;
|
31
|
+
onCounterClicked(): void;
|
32
|
+
private tokenize;
|
33
|
+
private updateOverflowCounter;
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenizerComponent, never>;
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TokenizerComponent, "lx-tokenizer", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "overflowPlaceholderClick": "overflowPlaceholderClick"; }, ["items"], ["lx-token"], true, never>;
|
36
|
+
}
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { Observable } from 'rxjs';
|
1
2
|
import * as i0 from "@angular/core";
|
2
3
|
export type LxResizeObserverCallback = (resizedElement: ResizeObserverEntry) => void;
|
3
|
-
interface ResizeableElement extends Element {
|
4
|
-
handleResize: LxResizeObserverCallback;
|
5
|
-
}
|
6
4
|
/**
|
7
5
|
* Sharing one ResizeObserver object results in much better performance
|
8
6
|
* over individual components creating their own ResizeObserver.
|
@@ -18,8 +16,9 @@ interface ResizeableElement extends Element {
|
|
18
16
|
*/
|
19
17
|
export declare class ResizeObserverService {
|
20
18
|
private resizeObserver?;
|
21
|
-
observe(element:
|
22
|
-
|
19
|
+
observe(element: Element, callback: LxResizeObserverCallback, options?: ResizeObserverOptions): void;
|
20
|
+
createResizeObservable(element: Element, options?: ResizeObserverOptions): Observable<ResizeObserverEntry>;
|
21
|
+
unobserve(element: Element): void;
|
23
22
|
private resizeObserverCallback;
|
24
23
|
/**
|
25
24
|
* All browsers we officially support implement the ResizeObserver API.
|
@@ -32,4 +31,3 @@ export declare class ResizeObserverService {
|
|
32
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
|
33
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
|
34
33
|
}
|
35
|
-
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
2
|
+
import { KeyboardSelectDirective } from '../../keyboard-select.directive';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class MultiSelectSelectionComponent extends KeyboardSelectDirective {
|
5
|
+
selection: import("@angular/core").InputSignal<any[] | null | undefined, any[] | null | undefined>;
|
6
|
+
tokenize: import("@angular/core").InputSignal<boolean, boolean>;
|
7
|
+
removeItem: EventEmitter<unknown>;
|
8
|
+
selectionTemplate: TemplateRef<any> | null;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectSelectionComponent, never>;
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSelectionComponent, "lx-multi-select-selection", never, { "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "tokenize": { "alias": "tokenize"; "required": false; "isSignal": true; }; }, { "removeItem": "removeItem"; }, ["selectionTemplate"], never, true, never>;
|
11
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter, TemplateRef } from '@angular/core';
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
3
3
|
import { Subject } from 'rxjs';
|
4
4
|
import { BaseSelectDirective, EventSet } from '../../models/base-select.directive';
|
@@ -27,16 +27,22 @@ export declare class MultiSelectComponent extends BaseSelectDirective implements
|
|
27
27
|
selectionChange: EventEmitter<any[]>;
|
28
28
|
blur: EventEmitter<void>;
|
29
29
|
explicitDropdown?: TemplateRef<any>;
|
30
|
+
selectionTemplate?: TemplateRef<any>;
|
30
31
|
queryInput: ResponsiveInputComponent;
|
31
32
|
implicitDropdown: TemplateRef<any>;
|
33
|
+
selectionElement?: ElementRef<HTMLElement>;
|
32
34
|
get dropdownTmpl(): TemplateRef<any>;
|
33
35
|
readonly destroyed$: Subject<void>;
|
34
36
|
isInputFocusedViaTab: boolean;
|
37
|
+
canTokenize: boolean;
|
38
|
+
get tokenize(): boolean;
|
35
39
|
constructor(cd: ChangeDetectorRef);
|
36
40
|
get dropdownWidth(): string | undefined;
|
37
41
|
resetInput(): void;
|
38
42
|
focus(): void;
|
39
43
|
focusAndOpen(): void;
|
44
|
+
onFocus(): void;
|
45
|
+
onBlur(): void;
|
40
46
|
ngAfterViewInit(): void;
|
41
47
|
/**
|
42
48
|
* Adds the given option to the selection and, by default, resets the input field.
|
@@ -51,6 +57,8 @@ export declare class MultiSelectComponent extends BaseSelectDirective implements
|
|
51
57
|
registerOnTouched(_fn: any): void;
|
52
58
|
setDisabledState(isDisabled: boolean): void;
|
53
59
|
focusedViaTab(): void;
|
60
|
+
private onSelectionChange;
|
61
|
+
private scrollToEndOfSelection;
|
54
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "lx-multi-select", never, { "markInvalid": { "alias": "markInvalid"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dropdownWidthScale": { "alias": "dropdownWidthScale"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown"], [".pills", ".dropdownComponent"], true, never>;
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "lx-multi-select", never, { "markInvalid": { "alias": "markInvalid"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dropdownWidthScale": { "alias": "dropdownWidthScale"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, ["explicitDropdown", "selectionTemplate"], [".pills", ".dropdownComponent"], true, never>;
|
56
64
|
}
|