@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
70 lines (66 loc) • 3.16 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/card/card.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 Cards can be used to group related subjects in a container.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-card--docs
* @status stable
* @since 2.0
*
* @slot - The card's main content.
* @slot header - An optional header for the card.
* @slot footer - An optional footer for the card.
* @slot image - An optional image to render at the start of the card.
*
* @csspart base - The component's base wrapper.
* @csspart image - The container that wraps the card's image.
* @csspart header - The container that wraps the card's header.
* @csspart body - The container that wraps the card's main content.
* @csspart footer - The container that wraps the card's footer.
*
* @cssproperty --border-color - The card's border color, including borders that occur inside the card.
* @cssproperty --border-radius - The border radius for the card's edges.
* @cssproperty --border-width - The width of the card's borders.
* @cssproperty --padding - The padding to use for the card's sections.
*/
class SynCardComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* Draws the card with sharp edges.
* Can be used e.g.
* when nesting multiple syn-cards to create hierarchy.
*/
set sharp(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.sharp = v === '' || v));
}
get sharp() {
return this.nativeElement.sharp;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynCardComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynCardComponent, isStandalone: true, selector: "syn-card", inputs: { sharp: "sharp" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynCardComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-card',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { sharp: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynCardComponent };
//# sourceMappingURL=synergy-design-system-angular-components-card.mjs.map