@leanix/components 0.4.659 → 0.4.660

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.
@@ -7,9 +7,6 @@ import * as i0 from "@angular/core";
7
7
  *
8
8
  * ### Projection slots
9
9
  * - `ui5-breadcrumbs`: Defines the breadcrumbs shown above the page title
10
- * - **Important**: To set a URL for a breadcrumb item, you need to provide the `href`
11
- * attribute to the `ui5-breadcrumbs-item` component. `RouterLink` does not work before updating to Angular 20.
12
- * - To use the `href` attribute for relative URLs, **the leading slash needs to be removed**.
13
10
  * - `header-title`: Defines the page title content
14
11
  * - `header-content`: Defines additional content below the page title
15
12
  * - `header-buttons`: Defines the header action buttons
@@ -27,8 +24,8 @@ import * as i0 from "@angular/core";
27
24
  * @example ```html
28
25
  * <lx-page-header [pageTitle]="'Agile Tracking'">
29
26
  * <ui5-breadcrumbs>
30
- * <ui5-breadcrumbs-item href="/">Root Page</ui5-breadcrumbs-item>
31
- * <ui5-breadcrumbs-item href="/inventory">Inventory</ui5-breadcrumbs-item>
27
+ * <ui5-breadcrumbs-item routerLink="/">Root Page</ui5-breadcrumbs-item>
28
+ * <ui5-breadcrumbs-item routerLink="/inventory">Inventory</ui5-breadcrumbs-item>
32
29
  * <ui5-breadcrumbs-item>Agile Tracking</ui5-breadcrumbs-item>
33
30
  * </ui5-breadcrumbs>
34
31
  * <ng-container header-buttons>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.659",
3
+ "version": "0.4.660",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {
@@ -0,0 +1,22 @@
1
+ import { BreadcrumbsItemComponent as Ui5BreadcrumbsItemComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs-item';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * This component extends the `ui5-breadcrumbs-item` component from `@ui5/webcomponents-ngx`.
5
+ * This extension is needed for Angular versions before 20 to sync Angular's `RouterLink` directive
6
+ * with the `href` attribute of the `ui5-breadcrumbs-item`.
7
+ *
8
+ * **Why?** Support for custom elements in the `RouterLink` directive was added in Angular 20.
9
+ * For older versions, this component allows using the `RouterLink` on a `ui5-breadcrumb-item`.
10
+ *
11
+ * @see https://github.com/angular/angular/commit/ff98ccb19391ed4e04528b82771c04ad67067d68
12
+ *
13
+ */
14
+ export declare class BreadcrumbsItemComponent extends Ui5BreadcrumbsItemComponent {
15
+ private readonly router;
16
+ private readonly routerLinkInstance;
17
+ private readonly locationStrategy;
18
+ readonly routerLink: import("@angular/core").InputSignal<string | any[] | import("@angular/router").UrlTree | null | undefined>;
19
+ readonly updateBreadcrumbHref: import("@angular/core").EffectRef;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsItemComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsItemComponent, "ui5-breadcrumbs-item", never, { "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
22
+ }
@@ -0,0 +1,29 @@
1
+ import { BreadcrumbsComponent as Ui5BreadcrumbsComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs';
2
+ import { BreadcrumbsItemClickEventDetail } from '@ui5/webcomponents/dist/Breadcrumbs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Enables users to navigate between items by providing a list of links to previous steps in the user's navigation path.
6
+ *
7
+ * It helps the user to be aware of their location within the application and allows faster navigation.
8
+ *
9
+ * This component extends the `ui5-breadcrumbs` component from `@ui5/webcomponents-ngx`.
10
+ * See the [UI5 Breadcrumb documentation](https://ui5.github.io/webcomponents/components/Breadcrumbs) for more info.
11
+ *
12
+ * This extension allows using the `RouterLink` directive on `ui5-breadcrumbs-item` components.
13
+ *
14
+ * @example ```html
15
+ * <ui5-breadcrumbs>
16
+ * <ui5-breadcrumbs-item routerLink="/inventory">Inventory</ui5-breadcrumbs-item>
17
+ * <ui5-breadcrumbs-item routerLink="/inventory/agile-tracking">Agile Tracking</ui5-breadcrumbs-item>
18
+ * <ui5-breadcrumbs-item routerLink="/inventory/agile-tracking/settings">Settings</ui5-breadcrumbs-item>
19
+ * </ui5-breadcrumbs>
20
+ * ```
21
+ */
22
+ export declare class BreadcrumbsComponent extends Ui5BreadcrumbsComponent {
23
+ /**
24
+ * @internal
25
+ */
26
+ onClick(event: CustomEvent<BreadcrumbsItemClickEventDetail>): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "ui5-breadcrumbs", never, {}, {}, never, ["*"], true, never>;
29
+ }
package/ui5/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * All UI5-related components / directives supported by the SAP LeanIX Design System.
3
3
  */
4
4
  export * from './ui5.provider';
5
- export { BreadcrumbsComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs';
6
- export { BreadcrumbsItemComponent } from '@ui5/webcomponents-ngx/main/breadcrumbs-item';
7
5
  export { IconComponent } from '@ui5/webcomponents-ngx/main/icon';
8
6
  export { BreadcrumbsItemClickEventDetail } from '@ui5/webcomponents/dist/Breadcrumbs';
7
+ export { BreadcrumbsItemComponent } from './components/breadcrumbs-item.component';
8
+ export { BreadcrumbsComponent } from './components/breadcrumbs.component';