UNPKG

@synergy-design-system/angular

Version:
58 lines (54 loc) 2.6 kB
import * as i0 from '@angular/core'; import { Input, Component } from '@angular/core'; import '@synergy-design-system/components/components/button-group/button-group.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 Button groups can be used to group related buttons into sections. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-button-group--docs * @status stable * @since 2.0 * * @slot - One or more `<syn-button>` elements to display in the button group. * * @csspart base - The component's base wrapper. */ class SynButtonGroupComponent { nativeElement; _ngZone; constructor(e, ngZone) { this.nativeElement = e.nativeElement; this._ngZone = ngZone; } /** * A label to use for the button group. * This won't be displayed on the screen, but it will be announced by assistive devices when interacting with the control and is strongly recommended. */ set label(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.label = v)); } get label() { return this.nativeElement.label; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynButtonGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynButtonGroupComponent, isStandalone: true, selector: "syn-button-group", inputs: { label: "label" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynButtonGroupComponent, decorators: [{ type: Component, args: [{ selector: 'syn-button-group', standalone: true, template: '<ng-content></ng-content>', }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { label: [{ type: Input }] } }); /** * Generated bundle index. Do not edit. */ export { SynButtonGroupComponent }; //# sourceMappingURL=synergy-design-system-angular-components-button-group.mjs.map