@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
69 lines (65 loc) • 2.75 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/tab-panel/tab-panel.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 Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tab-panel--docs
* @status stable
* @since 2.0
*
* @slot - The tab panel's content.
*
* @csspart base - The component's base wrapper.
*
* @cssproperty --padding - The tab panel's padding.
*/
class SynTabPanelComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* The tab panel's name.
*/
set name(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.name = v));
}
get name() {
return this.nativeElement.name;
}
/**
* When true, the tab panel will be shown.
*/
set active(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.active = v === '' || v));
}
get active() {
return this.nativeElement.active;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynTabPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynTabPanelComponent, isStandalone: true, selector: "syn-tab-panel", inputs: { name: "name", active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynTabPanelComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-tab-panel',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { name: [{
type: Input
}], active: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynTabPanelComponent };
//# sourceMappingURL=synergy-design-system-angular-components-tab-panel.mjs.map