@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
70 lines (66 loc) • 3.13 kB
JavaScript
import * as i0 from '@angular/core';
import { Component } from '@angular/core';
import '@synergy-design-system/components/components/prio-nav/prio-nav.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 The `<syn-prio-nav />` element provides a generic navigation bar
* that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)
* together. It will automatically group all items not visible in the viewport into a custom
* priority menu.
*
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs
* @example
* <syn-prio-nav>
* <syn-nav-item current horizontal>Item 1</syn-nav-item>
* <button role="menuitem">Item 2 (custom)</button>
* <syn-nav-item horizontal>Item 3</syn-nav-item>
* </syn-prio-nav>
*
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs
* @status stable
* @since 1.14.0
*
* @dependency syn-dropdown
* @dependency syn-icon
* @dependency syn-menu
* @dependency syn-nav-item
*
* @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s
* or have a role of "menuitem"
*
* @csspart base - The component's base wrapper.
* @csspart priority-menu - The wrapper around the priority menu
* @csspart priority-menu-nav-item - The navigation item for the priority menu
* @csspart priority-menu-label - The label for the priority menu
* @csspart priority-menu-icon - The icon for the priority menu
* @csspart priority-menu-container - The container for the shifted navigation items,
* if there is not enough space.
*
*/
class SynPrioNavComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynPrioNavComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynPrioNavComponent, isStandalone: true, selector: "syn-prio-nav", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynPrioNavComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-prio-nav',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }] });
/**
* Generated bundle index. Do not edit.
*/
export { SynPrioNavComponent };
//# sourceMappingURL=synergy-design-system-angular-components-prio-nav.mjs.map