@leanix/components 0.4.446 → 0.4.448

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,17 +1,19 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  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
+ }
4
12
  /**
5
13
  * @internal
6
14
  * Opt-in to render SAP icons in the `ButtonComponent`
7
15
  */
8
16
  export declare const LX_BUTTON_USE_SAP_ICONS: InjectionToken<BehaviorSubject<boolean>>;
9
- /**
10
- * @internal
11
- * Maps font awesome icons to SAP icons to toggle icons in `ButtonComponent`.
12
- * Required if `LX_BUTTON_USE_SAP_ICONS` is provided with `true`.
13
- */
14
- export declare const LX_BUTTON_ICON_MAP: InjectionToken<Record<string, string[]>>;
15
17
  /**
16
18
  * Button component is used to create a button with different styles and sizes. This uses native button element and
17
19
  * only provides styling and some additional features like loading spinner.
@@ -25,7 +27,6 @@ export declare const LX_BUTTON_ICON_MAP: InjectionToken<Record<string, string[]>
25
27
  * ```
26
28
  */
27
29
  export declare class ButtonComponent {
28
- private readonly iconMap;
29
30
  protected readonly useSAPIcons: import("@angular/core").Signal<boolean | undefined>;
30
31
  /**
31
32
  * The size of the button.
@@ -14,3 +14,9 @@ export interface GlobalTranslationOptionsProvider {
14
14
  export interface TranslationOptions {
15
15
  [key: string]: string;
16
16
  }
17
+ /**
18
+ * map Font Awesome -> SAP icons
19
+ * [0]: regular icon
20
+ * [1]: solid icon alternative (if available)
21
+ */
22
+ export declare const ICON_MAP: Record<string, string[]>;
@@ -23,7 +23,7 @@ export declare class OptionsDropdownComponent implements AfterViewInit, OnDestro
23
23
  opened: EventEmitter<void>;
24
24
  closed: EventEmitter<void>;
25
25
  closedWithoutSelection: EventEmitter<void>;
26
- get displayStyle(): "block" | "inline-block";
26
+ get displayStyle(): "inline-block" | "block";
27
27
  get overlayPositions(): ConnectedPosition[];
28
28
  set open(value: boolean);
29
29
  get open(): boolean;
@@ -33,7 +33,7 @@ export declare class SingleSelectComponent extends BaseSelectDirective implement
33
33
  readonly destroyed$: Subject<void>;
34
34
  isInputFocusedViaTab: boolean;
35
35
  constructor(cd: ChangeDetectorRef);
36
- get cursorStyle(): "default" | "text" | "pointer";
36
+ get cursorStyle(): "text" | "default" | "pointer";
37
37
  get dropdownWidth(): string | undefined;
38
38
  resetInput(): void;
39
39
  focus(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.446",
3
+ "version": "0.4.448",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@ncstate/sat-popover": "13.1.0",
13
- "@ui5/webcomponents-ngx": "0.3.1",
13
+ "@ui5/webcomponents-ngx": "0.4.5",
14
14
  "color": "3.1.3",
15
15
  "date-fns": "1.30.1",
16
16
  "dompurify": "2.5.4",