@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
79 lines (75 loc) • 3.23 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/accordion/accordion.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 Accordions provide the ability to group a list of `<syn-details>`.
*
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-accordion--docs
* @status stable
* @since 2.3.0
*
* @slot - The accordion's main content. Must be `<syn-details />` elements.
*
* @csspart base - The component's base wrapper.
*/
class SynAccordionComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* Indicates whether or not multiple `<syn-detail>` elements can be open at the same time.
*/
set closeOthers(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.closeOthers = v === '' || v));
}
get closeOthers() {
return this.nativeElement.closeOthers;
}
/**
* Draws the accordion and the slotted `<syn-details>` as contained elements.
*/
set contained(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.contained = v === '' || v));
}
get contained() {
return this.nativeElement.contained;
}
/**
* The size that should be applied to all slotted `<syn-details>` elements
*/
set size(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.size = v));
}
get size() {
return this.nativeElement.size;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynAccordionComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SynAccordionComponent, isStandalone: true, selector: "syn-accordion", inputs: { closeOthers: "closeOthers", contained: "contained", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynAccordionComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-accordion',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { closeOthers: [{
type: Input
}], contained: [{
type: Input
}], size: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynAccordionComponent };
//# sourceMappingURL=synergy-design-system-angular-components-accordion.mjs.map