12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { NgClass } from '@angular/common';
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
- import { MenuItemComponent } from '../../atoms/menu-item/menu-item.component';
- import { OverlayDirective } from '../../../directives/overlay.directive';
- import * as i0 from "@angular/core";
- export class MenuComponent {
- constructor() {
- this.direction = 'vertical';
- this.iconDirection = 'horizontal';
- this.type = 'primary';
- this.variant = 'solid';
- this.gap = 2;
- this.fullSize = true;
- this.iconAlone = false;
- this.menusAppearVertical = false;
- }
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: MenuComponent, isStandalone: true, selector: "ct-menu", inputs: { direction: "direction", iconDirection: "iconDirection", type: "type", variant: "variant", gap: "gap", fullSize: "fullSize", iconAlone: "iconAlone", menusAppearVertical: "menusAppearVertical" }, ngImport: i0, template: "<div\n class=\"flex flex-col gap-{{ gap }} z-10 rounded-md p-2 font-primary\"\n [ngClass]=\"{\n 'shadow-lg': variant === 'solid',\n 'bg-surface dark:bg-surface-dark': variant === 'solid'\n }\">\n <div\n class=\"flex justify-around\"\n [class.flex-col]=\"direction === 'vertical'\"\n [class.flex-row]=\"direction === 'horizontal'\">\n <ng-content></ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
- }
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MenuComponent, decorators: [{
- type: Component,
- args: [{ selector: 'ct-menu', standalone: true, imports: [NgClass, MenuItemComponent, OverlayDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"flex flex-col gap-{{ gap }} z-10 rounded-md p-2 font-primary\"\n [ngClass]=\"{\n 'shadow-lg': variant === 'solid',\n 'bg-surface dark:bg-surface-dark': variant === 'solid'\n }\">\n <div\n class=\"flex justify-around\"\n [class.flex-col]=\"direction === 'vertical'\"\n [class.flex-row]=\"direction === 'horizontal'\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
- }], propDecorators: { direction: [{
- type: Input
- }], iconDirection: [{
- type: Input
- }], type: [{
- type: Input
- }], variant: [{
- type: Input
- }], gap: [{
- type: Input
- }], fullSize: [{
- type: Input
- }], iconAlone: [{
- type: Input
- }], menusAppearVertical: [{
- type: Input
- }] } });
|