@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
54 lines (50 loc) • 2.44 kB
JavaScript
import * as i0 from '@angular/core';
import { EventEmitter, Output, Component } from '@angular/core';
import '@synergy-design-system/components/components/menu/menu.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 Menus provide a list of options for the user to choose from.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-menu--docs
* @status stable
* @since 2.0
*
* @slot - The menu's content, including menu items, menu labels, and dividers.
*
* @event {{ item: SynMenuItem }} syn-select - Emitted when a menu item is selected.
*/
class SynMenuComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
this.nativeElement.addEventListener('syn-select', (e) => {
this.synSelectEvent.emit(e);
});
}
/**
* Emitted when a menu item is selected.
*/
synSelectEvent = new EventEmitter();
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynMenuComponent, isStandalone: true, selector: "syn-menu", outputs: { synSelectEvent: "synSelectEvent" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynMenuComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-menu',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { synSelectEvent: [{
type: Output
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynMenuComponent };
//# sourceMappingURL=synergy-design-system-angular-components-menu.mjs.map