@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
91 lines (87 loc) • 3.87 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/breadcrumb-item/breadcrumb-item.js';
// ---------------------------------------------------------------------
// 🔒 AUTOGENERATED @synergy-design-system/angular wrappers for @synergy-design-system/components
// Please do not edit this file directly!
// It will get recreated when running pnpm build.
// ---------------------------------------------------------------------
/**
* @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb-item--docs
* @status stable
* @since 2.0
*
* @slot - The breadcrumb item's label.
* @slot prefix - An optional prefix, usually an icon or icon button.
* @slot suffix - An optional suffix, usually an icon or icon button.
* @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If
* you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.
*
* @csspart base - The component's base wrapper.
* @csspart label - The breadcrumb item's label.
* @csspart prefix - The container that wraps the prefix.
* @csspart suffix - The container that wraps the suffix.
* @csspart separator - The container that wraps the separator.
*/
class SynBreadcrumbItemComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* Optional URL to direct the user to when the breadcrumb item is activated.
* When set, a link will be rendered
internally.
* When unset, a button will be rendered instead.
*/
set href(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.href = v));
}
get href() {
return this.nativeElement.href;
}
/**
* Tells the browser where to open the link.
* Only used when `href` is set.
*/
set target(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.target = v));
}
get target() {
return this.nativeElement.target;
}
/**
* The `rel` attribute to use on the link.
* Only used when `href` is set.
*/
set rel(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.rel = v));
}
get rel() {
return this.nativeElement.rel;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynBreadcrumbItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynBreadcrumbItemComponent, isStandalone: true, selector: "syn-breadcrumb-item", inputs: { href: "href", target: "target", rel: "rel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynBreadcrumbItemComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-breadcrumb-item',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { href: [{
type: Input
}], target: [{
type: Input
}], rel: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynBreadcrumbItemComponent };
//# sourceMappingURL=synergy-design-system-angular-components-breadcrumb-item.mjs.map