@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
56 lines (52 loc) • 2.33 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/badge/badge.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 Badges are used to draw attention and display statuses or counts.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-badge--docs
* @status stable
* @since 2.0
*
* @slot - The badge's content.
*
* @csspart base - The component's base wrapper.
*/
class SynBadgeComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* The badge's theme variant.
*/
set variant(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.variant = v));
}
get variant() {
return this.nativeElement.variant;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynBadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynBadgeComponent, isStandalone: true, selector: "syn-badge", inputs: { variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynBadgeComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-badge',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { variant: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynBadgeComponent };
//# sourceMappingURL=synergy-design-system-angular-components-badge.mjs.map