@leanix/components 0.4.643 → 0.4.645
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 +2 -0
- package/fesm2022/leanix-components-ui5.mjs.map +1 -1
- package/fesm2022/leanix-components.mjs +39 -2
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/lib/core-ui/components/page-header/page-header.component.d.ts +36 -1
- package/lib/forms-ui/components/breadcrumb/breadcrumb.component.d.ts +2 -0
- package/package.json +1 -1
- package/ui5/index.d.ts +3 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { provideAppInitializer } from '@angular/core';
|
|
2
2
|
import { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';
|
|
3
3
|
import { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';
|
|
4
|
+
export { BreadcrumbsComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs';
|
|
5
|
+
export { BreadcrumbsItemComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs-item';
|
|
4
6
|
export { IconComponent } from '@ui5/webcomponents-ngx/main/icon';
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leanix-components-ui5.mjs","sources":["../../../../libs/components/ui5/icons/register-icons.ts","../../../../libs/components/ui5/ui5.provider.ts","../../../../libs/components/ui5/index.ts","../../../../libs/components/ui5/leanix-components-ui5.ts"],"sourcesContent":["import { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';\n\n/**\n * Registers icon libraries with UI5.\n */\nexport async function registerIconsWithUi5() {\n await Promise.all([\n import('@ui5/webcomponents-icons-business-suite/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons-tnt/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons/dist/AllIcons.js')\n ]);\n\n registerIconLoader('lx-icons', () => import('./lx-icons.json'));\n}\n","import { provideAppInitializer } from '@angular/core';\nimport { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';\nimport { registerIconsWithUi5 } from './icons/register-icons';\n\n/**\n * Sets up providers necessary to use UI5 components in the application.\n *\n * @usageNotes\n *\n * Basic example of how you can add UI5 to your application:\n * ```ts\n * import { provideUi5 } from '@leanix/components/ui5';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [provideUi5()]\n * });\n * ```\n */\nexport const provideUi5 = () =>\n provideAppInitializer(async () => {\n setDefaultFontLoading(false);\n await registerIconsWithUi5();\n });\n","/**\n * All UI5-related components / directives supported by the SAP LeanIX Design System.\n */\nexport * from './ui5.provider';\n\n// UI5 Components\nexport { IconComponent } from '@ui5/webcomponents-ngx/main/icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"leanix-components-ui5.mjs","sources":["../../../../libs/components/ui5/icons/register-icons.ts","../../../../libs/components/ui5/ui5.provider.ts","../../../../libs/components/ui5/index.ts","../../../../libs/components/ui5/leanix-components-ui5.ts"],"sourcesContent":["import { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';\n\n/**\n * Registers icon libraries with UI5.\n */\nexport async function registerIconsWithUi5() {\n await Promise.all([\n import('@ui5/webcomponents-icons-business-suite/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons-tnt/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons/dist/AllIcons.js')\n ]);\n\n registerIconLoader('lx-icons', () => import('./lx-icons.json'));\n}\n","import { provideAppInitializer } from '@angular/core';\nimport { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';\nimport { registerIconsWithUi5 } from './icons/register-icons';\n\n/**\n * Sets up providers necessary to use UI5 components in the application.\n *\n * @usageNotes\n *\n * Basic example of how you can add UI5 to your application:\n * ```ts\n * import { provideUi5 } from '@leanix/components/ui5';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [provideUi5()]\n * });\n * ```\n */\nexport const provideUi5 = () =>\n provideAppInitializer(async () => {\n setDefaultFontLoading(false);\n await registerIconsWithUi5();\n });\n","/**\n * All UI5-related components / directives supported by the SAP LeanIX Design System.\n */\nexport * from './ui5.provider';\n\n// UI5 Components\nexport { BreadcrumbsComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs';\nexport { BreadcrumbsItemComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs-item';\nexport { IconComponent } from '@ui5/webcomponents-ngx/main/icon';\nexport { BreadcrumbsItemClickEventDetail } from '@ui5/webcomponents/dist/Breadcrumbs';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;;AAEG;AACI,eAAe,oBAAoB,GAAA;IACxC,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,OAAO,0DAA0D,CAAC;QAClE,OAAO,+CAA+C,CAAC;QACvD,OAAO,2CAA2C;AACnD,KAAA,CAAC;IAEF,kBAAkB,CAAC,UAAU,EAAE,MAAM,OAAO,+CAAiB,CAAC,CAAC;AACjE;;ACTA;;;;;;;;;;;;;AAaG;AACU,MAAA,UAAU,GAAG,MACxB,qBAAqB,CAAC,YAAW;IAC/B,qBAAqB,CAAC,KAAK,CAAC;IAC5B,MAAM,oBAAoB,EAAE;AAC9B,CAAC;;ACtBH;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2818,9 +2818,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2818
2818
|
* Additionally, it can include a breadcrumb.
|
|
2819
2819
|
*
|
|
2820
2820
|
* ### Projection slots
|
|
2821
|
+
* - `ui5-breadcrumbs`: Defines the breadcrumbs shown above the page title
|
|
2822
|
+
* - **Important**: To set a URL for a breadcrumb item, you need to provide the `href`
|
|
2823
|
+
* attribute to the `ui5-breadcrumbs-item` component. `RouterLink` does not work before updating to Angular 20.
|
|
2821
2824
|
* - `header-title`: Defines the page title content
|
|
2822
2825
|
* - `header-content`: Defines additional content below the page title
|
|
2823
2826
|
* - `header-buttons`: Defines the header action buttons
|
|
2827
|
+
*
|
|
2828
|
+
* ### Using Breadcrumbs
|
|
2829
|
+
* To use breadcrumbs, import the `BreadcrumbsComponent` and `BreadcrumbsItemComponent`:
|
|
2830
|
+
*
|
|
2831
|
+
* ```typescript
|
|
2832
|
+
* import { BreadcrumbsComponent, BreadcrumbsItemComponent } from '@leanix/components/ui5';
|
|
2833
|
+
* ```
|
|
2834
|
+
*
|
|
2835
|
+
* ### Example
|
|
2836
|
+
* @example ```html
|
|
2837
|
+
* <lx-page-header [pageTitle]="'Agile Tracking'">
|
|
2838
|
+
* <ui5-breadcrumbs>
|
|
2839
|
+
* <ui5-breadcrumbs-item href="/">Root Page</ui5-breadcrumbs-item>
|
|
2840
|
+
* <ui5-breadcrumbs-item href="/inventory">Inventory</ui5-breadcrumbs-item>
|
|
2841
|
+
* <ui5-breadcrumbs-item>Agile Tracking</ui5-breadcrumbs-item>
|
|
2842
|
+
* </ui5-breadcrumbs>
|
|
2843
|
+
* <ng-container header-buttons>
|
|
2844
|
+
* <button lx-button size="large" color="primary" icon="fa-plus">Add Entity</button>
|
|
2845
|
+
* <button lx-button size="large">Settings</button>
|
|
2846
|
+
* </ng-container>
|
|
2847
|
+
* </lx-page-header>
|
|
2848
|
+
* ```
|
|
2824
2849
|
*/
|
|
2825
2850
|
class PageHeaderComponent {
|
|
2826
2851
|
constructor() {
|
|
@@ -2832,18 +2857,26 @@ class PageHeaderComponent {
|
|
|
2832
2857
|
this.pageTitle = input();
|
|
2833
2858
|
/**
|
|
2834
2859
|
* Relative URL to navigate back to
|
|
2860
|
+
* @deprecated Project the `ui5-breadcrumbs` component for navigation purposes
|
|
2861
|
+
* @internal
|
|
2835
2862
|
*/
|
|
2836
2863
|
this.backUrl = input([]);
|
|
2837
2864
|
/**
|
|
2838
2865
|
* Query parameters to append to the `backUrl`
|
|
2866
|
+
* @deprecated Project the `ui5-breadcrumbs` component for navigation purposes
|
|
2867
|
+
* @internal
|
|
2839
2868
|
*/
|
|
2840
2869
|
this.queryParams = input({});
|
|
2841
2870
|
/**
|
|
2842
2871
|
* Accessible name of the back link
|
|
2872
|
+
* @deprecated Project the `ui5-breadcrumbs` component for navigation purposes
|
|
2873
|
+
* @internal
|
|
2843
2874
|
*/
|
|
2844
2875
|
this.backUrlLabel = input();
|
|
2845
2876
|
/**
|
|
2846
2877
|
* Additional navigation state for the back link
|
|
2878
|
+
* @deprecated Project the `ui5-breadcrumbs` component for navigation purposes
|
|
2879
|
+
* @internal
|
|
2847
2880
|
*/
|
|
2848
2881
|
this.navigationStateOptions = input({});
|
|
2849
2882
|
/**
|
|
@@ -2853,15 +2886,17 @@ class PageHeaderComponent {
|
|
|
2853
2886
|
this.showDivider = input(true);
|
|
2854
2887
|
/**
|
|
2855
2888
|
* Event emitted when the back icon is clicked.
|
|
2889
|
+
* @deprecated Project the `ui5-breadcrumbs` component for navigation purposes
|
|
2890
|
+
* @internal
|
|
2856
2891
|
*/
|
|
2857
2892
|
this.backIconClick = output();
|
|
2858
2893
|
}
|
|
2859
2894
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2860
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: PageHeaderComponent, isStandalone: true, selector: "lx-page-header", inputs: { pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, backUrl: { classPropertyName: "backUrl", publicName: "backUrl", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, backUrlLabel: { classPropertyName: "backUrlLabel", publicName: "backUrlLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationStateOptions: { classPropertyName: "navigationStateOptions", publicName: "navigationStateOptions", isSignal: true, isRequired: false, transformFunction: null }, showDivider: { classPropertyName: "showDivider", publicName: "showDivider", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { backIconClick: "backIconClick" }, ngImport: i0, template: "<div class=\"tw-
|
|
2895
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: PageHeaderComponent, isStandalone: true, selector: "lx-page-header", inputs: { pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, backUrl: { classPropertyName: "backUrl", publicName: "backUrl", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, backUrlLabel: { classPropertyName: "backUrlLabel", publicName: "backUrlLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationStateOptions: { classPropertyName: "navigationStateOptions", publicName: "navigationStateOptions", isSignal: true, isRequired: false, transformFunction: null }, showDivider: { classPropertyName: "showDivider", publicName: "showDivider", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { backIconClick: "backIconClick" }, ngImport: i0, template: "<div class=\"tw-flex tw-flex-col\">\n <ng-content select=\"ui5-breadcrumbs\" />\n <div class=\"tw-flex tw-min-h-xxl tw-items-center tw-justify-between\">\n <div class=\"tw-flex tw-items-center\">\n @if (backUrl().length > 0) {\n <a\n [routerLink]=\"backUrl()\"\n [queryParams]=\"queryParams()\"\n [state]=\"navigationStateOptions()\"\n class=\"tw-mr-s\"\n data-testid=\"header-back-btn\"\n [attr.aria-label]=\"backUrlLabel()\"\n (click)=\"backIconClick.emit()\"\n (keyboard.enter)=\"backIconClick.emit()\"\n >\n <lx-icon name=\"arrow-left\" aria-hidden=\"true\" fontAwsomeStyle=\"solid\" />\n </a>\n }\n @if (pageTitle()) {\n <h1 class=\"tw-m-0 tw-heading-2\" data-testid=\"header-title\">{{ pageTitle() }}</h1>\n } @else {\n <div data-testid=\"header-title\">\n <ng-content select=\"[header-title]\" />\n </div>\n }\n </div>\n <div class=\"tw-flex tw-gap-xs tw-text-nowrap\">\n <ng-content select=\"[header-buttons]\" />\n </div>\n </div>\n <div class=\"header-content tw-mt-m tw-flex tw-self-start\">\n <ng-content select=\"[header-content]\" />\n </div>\n @if (showDivider()) {\n <div data-testid=\"header-divider\" class=\"tw-mt-[10px] tw-h-[2px] tw-w-full tw-bg-gray-95\"></div>\n }\n</div>\n", styles: [":host{display:block;margin-bottom:1rem}.header-content:empty{display:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "lx-icon", inputs: ["name", "color", "fontAwsomeStyle", "size", "title"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2861
2896
|
}
|
|
2862
2897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PageHeaderComponent, decorators: [{
|
|
2863
2898
|
type: Component,
|
|
2864
|
-
args: [{ selector: 'lx-page-header', changeDetection: ChangeDetectionStrategy.OnPush, imports: [IconComponent, RouterLink], template: "<div class=\"tw-
|
|
2899
|
+
args: [{ selector: 'lx-page-header', changeDetection: ChangeDetectionStrategy.OnPush, imports: [IconComponent, RouterLink], template: "<div class=\"tw-flex tw-flex-col\">\n <ng-content select=\"ui5-breadcrumbs\" />\n <div class=\"tw-flex tw-min-h-xxl tw-items-center tw-justify-between\">\n <div class=\"tw-flex tw-items-center\">\n @if (backUrl().length > 0) {\n <a\n [routerLink]=\"backUrl()\"\n [queryParams]=\"queryParams()\"\n [state]=\"navigationStateOptions()\"\n class=\"tw-mr-s\"\n data-testid=\"header-back-btn\"\n [attr.aria-label]=\"backUrlLabel()\"\n (click)=\"backIconClick.emit()\"\n (keyboard.enter)=\"backIconClick.emit()\"\n >\n <lx-icon name=\"arrow-left\" aria-hidden=\"true\" fontAwsomeStyle=\"solid\" />\n </a>\n }\n @if (pageTitle()) {\n <h1 class=\"tw-m-0 tw-heading-2\" data-testid=\"header-title\">{{ pageTitle() }}</h1>\n } @else {\n <div data-testid=\"header-title\">\n <ng-content select=\"[header-title]\" />\n </div>\n }\n </div>\n <div class=\"tw-flex tw-gap-xs tw-text-nowrap\">\n <ng-content select=\"[header-buttons]\" />\n </div>\n </div>\n <div class=\"header-content tw-mt-m tw-flex tw-self-start\">\n <ng-content select=\"[header-content]\" />\n </div>\n @if (showDivider()) {\n <div data-testid=\"header-divider\" class=\"tw-mt-[10px] tw-h-[2px] tw-w-full tw-bg-gray-95\"></div>\n }\n</div>\n", styles: [":host{display:block;margin-bottom:1rem}.header-content:empty{display:none}\n"] }]
|
|
2865
2900
|
}] });
|
|
2866
2901
|
|
|
2867
2902
|
/**
|
|
@@ -3964,6 +3999,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
3964
3999
|
}] } });
|
|
3965
4000
|
|
|
3966
4001
|
/**
|
|
4002
|
+
* @deprecated Use the `ui5-breadcrumbs` instead.
|
|
4003
|
+
*
|
|
3967
4004
|
* Breadcrumb component is used to show a list of labels, usually to show the path of user's navigation.
|
|
3968
4005
|
*/
|
|
3969
4006
|
class BreadcrumbComponent {
|