@leanix/components 0.4.624 → 0.4.626
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.
@@ -1,25 +1,9 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
3
1
|
import * as i0 from "@angular/core";
|
4
|
-
declare global {
|
5
|
-
interface Window {
|
6
|
-
/**
|
7
|
-
* internal, used for theming toggles
|
8
|
-
*/
|
9
|
-
useSAPIconInLxButton$: BehaviorSubject<boolean>;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* @internal
|
14
|
-
* Opt-in to render SAP icons in the `ButtonComponent`
|
15
|
-
*/
|
16
|
-
export declare const LX_BUTTON_USE_SAP_ICONS: InjectionToken<BehaviorSubject<boolean>>;
|
17
2
|
/**
|
18
3
|
* Button component is used to create a button with different styles and sizes. This uses native button element and
|
19
4
|
* only provides styling and some additional features like loading spinner.
|
20
5
|
*/
|
21
6
|
export declare class ButtonComponent {
|
22
|
-
protected readonly useSAPIcons: import("@angular/core").Signal<boolean | undefined>;
|
23
7
|
/**
|
24
8
|
* The size of the button.
|
25
9
|
*/
|
@@ -66,6 +50,7 @@ export declare class ButtonComponent {
|
|
66
50
|
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
67
51
|
protected readonly iconName: import("@angular/core").Signal<string | null>;
|
68
52
|
protected readonly iconVariant: import("@angular/core").Signal<string>;
|
53
|
+
protected readonly iconKind: import("@angular/core").Signal<"fa" | "sap">;
|
69
54
|
/**
|
70
55
|
* The icon name (font-awesome) to display inside the button.
|
71
56
|
* It is displayed after any additional content.
|
@@ -79,12 +64,13 @@ export declare class ButtonComponent {
|
|
79
64
|
readonly endIcon: import("@angular/core").InputSignal<string | undefined>;
|
80
65
|
protected readonly endIconName: import("@angular/core").Signal<string | null>;
|
81
66
|
protected readonly endIconVariant: import("@angular/core").Signal<string>;
|
67
|
+
protected readonly endIconKind: import("@angular/core").Signal<"fa" | "sap">;
|
82
68
|
/**
|
83
69
|
* This shows a spinner inside the button.
|
84
70
|
*/
|
85
71
|
showSpinner: boolean;
|
86
72
|
get isDisabled(): boolean;
|
87
|
-
private
|
73
|
+
private getIconName;
|
88
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
89
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[lx-button]", never, { "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "pressed": { "alias": "pressed"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "square": { "alias": "square"; "required": false; }; "circle": { "alias": "circle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "endIcon": { "alias": "endIcon"; "required": false; "isSignal": true; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; }, {}, never, ["*"], true, never>;
|
90
76
|
}
|