@leanix/components 0.4.761 → 0.4.763
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-ui5.mjs +6 -6
- package/fesm2022/leanix-components.mjs +463 -396
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/core-ui/icon/fa-to-sap-icon.pipe.d.ts +22 -0
- package/lib/core-ui/pipes/custom-date.pipe.d.ts +19 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/core-ui/core-ui.constants';
|
|
2
2
|
export * from './lib/core-ui/core-ui.module';
|
|
3
|
+
export { FaToSapIconPipe } from './lib/core-ui/icon/fa-to-sap-icon.pipe';
|
|
3
4
|
export * from './lib/core-ui/pipes/br.pipe';
|
|
4
5
|
export * from './lib/core-ui/pipes/contrast-color.pipe';
|
|
5
6
|
export * from './lib/core-ui/pipes/custom-date.pipe';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* This pipe can be used to transform Font Awesome icons into SAP icons.
|
|
5
|
+
* Useful for scenarios in which icon names need to be mapped at runtime,
|
|
6
|
+
* e.g. because they are stored in the backend.
|
|
7
|
+
*
|
|
8
|
+
* @example ```html
|
|
9
|
+
* <ui5-icon [name]="fontAwesomeIcon() | lxFaToSapIcon" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class FaToSapIconPipe implements PipeTransform {
|
|
13
|
+
/**
|
|
14
|
+
* Transforms Font Awesome icons to SAP icons
|
|
15
|
+
* @param value The Font Awesome icon name, with optional `fa-` prefix
|
|
16
|
+
* @param isSolid Whether the icon is solid
|
|
17
|
+
* @returns The SAP icon name, or provided value if no mapped icon found
|
|
18
|
+
*/
|
|
19
|
+
transform(value: string, isSolid?: boolean): string | undefined;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FaToSapIconPipe, never>;
|
|
21
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FaToSapIconPipe, "lxFaToSapIcon", true>;
|
|
22
|
+
}
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Formats dates using date-fns with optional locale support.
|
|
5
|
+
*
|
|
6
|
+
* Handles three input types:
|
|
7
|
+
* - Date objects: formatted directly
|
|
8
|
+
* - Date-only strings (YYYY-MM-DD): parsed without timezone offset to avoid day-shift issues
|
|
9
|
+
* - Other strings/numbers: parsed via `new Date()` (timezone-aware)
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* {{ myDate | lxDate:'PP' }}
|
|
14
|
+
* {{ '2026-01-15' | lxDate:'MMMM d, yyyy' }}
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
3
17
|
export declare class CustomDatePipe implements PipeTransform {
|
|
4
18
|
private getDateFnLocale?;
|
|
5
19
|
constructor(getDateFnLocale?: Function | undefined);
|
|
20
|
+
/**
|
|
21
|
+
* @param value - Date, timestamp, or date string to format
|
|
22
|
+
* @param f - date-fns format string (e.g., 'PP', 'yyyy-MM-dd')
|
|
23
|
+
* @returns Formatted date string, or empty string if invalid/null
|
|
24
|
+
*/
|
|
6
25
|
transform(value: Date | string | number | null | undefined, f: string): string;
|
|
7
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDatePipe, [{ optional: true; }]>;
|
|
8
27
|
static ɵpipe: i0.ɵɵPipeDeclaration<CustomDatePipe, "lxDate", true>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leanix/components",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.763",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "LeanIX GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"tslib": "^2.3.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@angular/animations": "19.2.
|
|
59
|
-
"@angular/cdk": "19.2.
|
|
60
|
-
"@angular/common": "19.2.
|
|
61
|
-
"@angular/core": "19.2.
|
|
62
|
-
"@angular/forms": "19.2.
|
|
63
|
-
"@angular/platform-browser": "19.2.
|
|
64
|
-
"@angular/router": "19.2.
|
|
58
|
+
"@angular/animations": "19.2.18",
|
|
59
|
+
"@angular/cdk": "19.2.18",
|
|
60
|
+
"@angular/common": "19.2.18",
|
|
61
|
+
"@angular/core": "19.2.18",
|
|
62
|
+
"@angular/forms": "19.2.18",
|
|
63
|
+
"@angular/platform-browser": "19.2.18",
|
|
64
|
+
"@angular/router": "19.2.18",
|
|
65
65
|
"@ngx-translate/core": "16.0.4",
|
|
66
66
|
"rxjs": "7.8.1"
|
|
67
67
|
},
|