@acorex/components 18.10.16 → 18.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-menu.mjs","sources":["../../../../libs/components/menu/src/lib/class/root-menu.class.ts","../../../../libs/components/menu/src/lib/menu.service.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.html","../../../../libs/components/menu/src/lib/menu.component.ts","../../../../libs/components/menu/src/lib/menu.module.ts","../../../../libs/components/menu/src/acorex-components-menu.ts"],"sourcesContent":["import { AXOrientation } from '@acorex/components/common';\nimport { WritableSignal, signal } from '@angular/core';\nimport { AXMenuPopoverTrigger } from './popover.class';\nexport class AXRootMenu {\n orientation: WritableSignal<AXOrientation> = signal('horizontal');\n openOn: WritableSignal<AXMenuPopoverTrigger> = signal('toggle');\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXMenuService {\n activeMenus$: BehaviorSubject<AXMenuItemComponent[]> = new BehaviorSubject<AXMenuItemComponent[]>([]);\n}\n","import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { AXPopoverComponent } from '@acorex/components/popover';\nimport {\n Component,\n ContentChildren,\n HostBinding,\n HostListener,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n afterNextRender,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXRootMenu } from '../class/root-menu.class';\nimport { AXMenuService } from '../menu.service';\n\n/**\n * Represents a menu item component used within an `ax-menu`.\n * @category Components\n */\n@Component({\n selector: 'ax-menu-item',\n inputs: ['disabled'],\n templateUrl: './menu-item.component.html',\n host: { ngSkipHydration: 'true' },\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMenuItemComponent extends MXInteractiveComponent {\n service = inject(AXMenuService);\n\n /** @ignore */\n @ViewChild(AXPopoverComponent)\n private popover: AXPopoverComponent;\n\n /**\n * Injects the `AXMenuService` for managing menu interactions.\n */\n menuService = inject(AXMenuService);\n\n /**\n * The vertical offset for positioning, initialized to 0.\n */\n offsetY = signal(0);\n\n /**\n * The horizontal offset for positioning, initialized to 0.\n */\n offsetX = signal(0);\n\n /**\n * The text content, initialized to an empty string.\n */\n // text = input<string>();\n\n /**\n * Indicates whether the item is active.\n */\n active = input<boolean>();\n\n /**\n * Emitted when the active state changes.\n */\n activeChange = output<boolean>();\n\n /**\n * Emitted when the element is clicked.\n */\n onClick = output<AXClickEvent>();\n\n /**\n * Indicates whether the component is a root menu item.\n * @defaultValue false\n */\n isRoot = false;\n\n /**\n * The parent menu item component, if any.\n */\n parent?: AXMenuItemComponent;\n\n /**\n * Injects the root menu service.\n */\n rootMenu = inject(AXRootMenu);\n\n /** @ignore */\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n arrowState = input(true);\n\n /** @ignore */\n constructor() {\n super();\n\n afterNextRender(() => {\n this.children.forEach((c) => {\n c.parent = this;\n });\n\n this.offsetY.set(this.isRoot ? 8 : 0);\n this.offsetX.set(this.isRoot ? 0 : 4);\n\n this.getPlacement();\n });\n }\n\n /**\n * Closes the popover if it is open.\n */\n close() {\n this.popover?.close();\n }\n\n /** @ignore */\n _handleOnOpened() {\n this.parent.children.forEach((c) => {\n if (c != this) {\n c.close();\n }\n });\n if (this.children.length) {\n this.menuService.activeMenus$.next(this.menuService.activeMenus$.getValue().concat(this));\n }\n }\n\n /** @ignore */\n _handleOnClosed() {\n this.children.forEach((c) => {\n c.close();\n });\n }\n\n /**\n * Returns the icon based on the orientation of the root menu.\n */\n getIcon() {\n if (this.rootMenu.orientation() === 'vertical') {\n return 'ax-icon-chevron-right';\n } else {\n return 'ax-icon-chevron-down';\n }\n }\n\n /**\n * Determines the placement based on the root menu's orientation: 'bottom-start' for horizontal root, 'end-top' otherwise.\n */\n getPlacement() {\n switch (this.rootMenu.orientation()) {\n case 'horizontal':\n if (this.isRoot) {\n return 'bottom-start';\n } else {\n return 'end-top';\n }\n break;\n case 'vertical':\n if (this.isRoot) {\n return 'end-top';\n } else {\n return 'end-top';\n }\n break;\n default:\n return 'bottom-start';\n }\n }\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string[] {\n return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active() ? 'ax-state-active' : ''}`];\n }\n\n /** @ignore */\n @HostListener('click', ['$event'])\n private __hostClick(e: MouseEvent) {\n if (!this.disabled) {\n this.onClick.emit({\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n });\n if (!this.children.length) {\n this.menuService.activeMenus$.subscribe((c) => c.forEach((x) => x.close())).unsubscribe();\n this.menuService.activeMenus$.next([]);\n }\n }\n }\n}\n","<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-text\"></ng-content>\n <ng-content></ng-content>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if (children.length && arrowState()) {\n <i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n\n<ax-popover\n #popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"rootMenu.openOn()\"\n [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\"\n [offsetX]=\"offsetX()\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport {\n AfterViewInit,\n Component,\n ContentChildren,\n HostBinding,\n inject,\n input,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXMenuPopoverTrigger } from './class/popover.class';\nimport { AXRootMenu } from './class/root-menu.class';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuService } from './menu.service';\n\n/**\n * Represents a menu component that displays menu items.\n * @category Components\n */\n@Component({\n selector: 'ax-menu',\n template: ` <ng-content select=\"ax-menu-item,ng-container\"></ng-content>`,\n styleUrls: ['./menu.component.scss'],\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXRootMenu,\n useExisting: AXMenuComponent,\n },\n {\n provide: AXMenuService,\n },\n ],\n})\nexport class AXMenuComponent extends MXBaseComponent implements AfterViewInit {\n orientation = input<AXOrientation>('horizontal');\n openOn = input<AXMenuPopoverTrigger>('toggle');\n service = inject(AXMenuService);\n\n /** @ignore */\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n /** @ignore */\n ngAfterViewInit() {\n this.children.forEach((c) => {\n c.isRoot = true;\n c.parent = this as unknown as AXMenuItemComponent;\n });\n }\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-orientation-${this.orientation()}`;\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuComponent } from './menu.component';\n\nconst COMPONENT = [AXMenuItemComponent, AXMenuComponent];\nconst MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [CommonModule, ...MODULES, AXButtonModule],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAGa,UAAU,CAAA;AAAvB,IAAA,WAAA,GAAA;A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IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,YAAA,EAAA,CATN,mBAAmB,EAAE,eAAe,aAK3C,YAAY,EAJP,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EAIlE,cAAc,CAAA,EAAA,OAAA,EAAA,CALjC,mBAAmB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAS1C,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EAJb,OAAA,EAAA,CAAA,YAAY,EAAK,OAAO,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIvC,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;oBAC5B,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,cAAc,CAAC;AACnD,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-menu.mjs","sources":["../../../../libs/components/menu/src/lib/menu.types.ts","../../../../libs/components/menu/src/lib/menu.service.ts","../../../../libs/components/menu/src/lib/menu-item.component.ts","../../../../libs/components/menu/src/lib/menu-item.component.html","../../../../libs/components/menu/src/lib/context-menu.component.ts","../../../../libs/components/menu/src/lib/menu.component.html","../../../../libs/components/menu/src/lib/menu.component.ts","../../../../libs/components/menu/src/lib/menu.module.ts","../../../../libs/components/menu/src/acorex-components-menu.ts"],"sourcesContent":["import { AXClickEvent, AXEvent, AXOrientation, AXStyleColorType, MXBaseComponent } from '@acorex/components/common';\nimport { OutputEmitterRef, WritableSignal } from '@angular/core';\n\nexport type AXMenuOpenTrigger = 'click' | 'hover';\nexport type AXMenuCloseTrigger = 'click' | 'leave';\n\n\nexport abstract class AXRootMenu {\n orientation: WritableSignal<AXOrientation>;\n openOn: WritableSignal<AXMenuOpenTrigger>;\n closeOn: WritableSignal<AXMenuCloseTrigger>;\n onItemClick: OutputEmitterRef<AXMenuItemClickEvent>;\n abstract getHostElement(): HTMLDivElement;\n}\n\nexport abstract class AXMenuItemComponentBase {\n}\n\n\nexport abstract class AXMenuItem {\n color?: AXStyleColorType\n name?: string;\n text: string;\n data?: any\n icon?: string;\n disabled?: boolean;\n items?: AXMenuItem[];\n suffix?: {\n text: string\n };\n break?: boolean\n group?: {\n name?: string\n title?: string\n }\n}\n\nexport abstract class AXMenuItemClickEventItemData {\n name?: string;\n text: string;\n data?: any\n}\n\nexport class AXMenuItemClickEvent extends AXClickEvent {\n item: AXMenuItemClickEventItemData;\n canceled = false;\n}\n\nexport class AXContextMenuOpeningEvent extends AXEvent {\n items: AXMenuItem[];\n canceled = false;\n}","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { AXMenuItemComponentBase, AXRootMenu } from './menu.types';\nimport { AXPoint } from '@acorex/core/utils';\n\n@Injectable()\nexport class AXMenuService {\n public closeAll$: Subject<void> = new Subject();\n public open$: Subject<AXMenuItemComponentBase> = new Subject();\n public close$: Subject<AXMenuItemComponentBase> = new Subject();\n public closeExcept$ = new Subject<AXMenuItemComponentBase>();\n\n public openContextMenu$ = new Subject<{ sender: AXRootMenu, point: AXPoint }>();\n public closeAllContextMenu$ = new Subject<{ sender: AXRootMenu }>();\n}\n","import { AXStyleColorType, MXBaseComponent } from '@acorex/components/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostBinding,\n HostListener,\n inject,\n input,\n output,\n Renderer2,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXMenuService } from './menu.service';\nimport { AXMenuItemClickEvent, AXMenuItemComponentBase, AXRootMenu } from './menu.types';\nimport { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';\n\n/**\n * Represents a menu item component used within an `ax-menu`.\n * @category Components\n */\n@Component({\n selector: 'ax-menu-item',\n templateUrl: './menu-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXMenuItemComponentBase,\n useExisting: AXMenuItemComponent\n },\n AXUnsubscriber\n ],\n})\nexport class AXMenuItemComponent extends MXBaseComponent {\n\n protected isOpen = signal(false);\n protected hasSubItems = signal(false);\n protected isFirstLevel = signal(false);\n private mutationObserver!: MutationObserver;\n\n protected root = inject(AXRootMenu);\n protected parent?: AXMenuItemComponent | null;\n\n private service = inject(AXMenuService);\n private scrollableParents: HTMLElement[] = [];\n\n private unsuscriber = inject(AXUnsubscriber);\n\n\n protected arrowIcon = computed(() => {\n const isRtl = AXHtmlUtil.isRtl(this.getHostElement());\n return this.root.orientation() == 'horizontal' && this.isFirstLevel() ?\n \"ax-icon-chevron-down\" :\n isRtl ? \"ax-icon-chevron-left\" : \"ax-icon-chevron-right\";\n })\n\n\n onClick = output<AXMenuItemClickEvent>();\n\n name = input<string>();\n data = input<any>();\n disabled = input<boolean>();\n color = input<AXStyleColorType>();\n\n\n\n constructor(private renderer: Renderer2) {\n super();\n //\n afterNextRender(() => {\n this.detectSubItems();\n this.observeMutations();\n this.bindScrollEvents();\n });\n //\n this.service.closeAll$\n .pipe(this.unsuscriber.takeUntilDestroy)\n .subscribe(() => this.close());\n\n this.service.open$\n .pipe(this.unsuscriber.takeUntilDestroy)\n .subscribe((item) => {\n if ((this as any) === item) {\n this.isOpen.set(true);\n this.calculatePosition();\n }\n });\n //\n this.service.close$\n .pipe(this.unsuscriber.takeUntilDestroy)\n .subscribe(item => {\n if ((this as any) == item) {\n this.isOpen.set(false);\n }\n });\n //\n this.service.closeExcept$\n .pipe(this.unsuscriber.takeUntilDestroy)\n .subscribe((item) => {\n this.closeExcept(item as AXMenuItemComponent);\n });\n }\n\n\n private closeExcept(item: AXMenuItemComponent) {\n const list: AXMenuItemComponent[] = [item]\n //\n let parent = item.parent;\n while (parent != null) {\n list.push(parent);\n parent = parent.parent;\n }\n //\n if (!list.includes(this)) {\n this.close();\n }\n }\n\n\n private observeMutations() {\n this.mutationObserver = new MutationObserver(() => {\n this.detectSubItems();\n });\n\n // Start observing changes in child elements\n this.mutationObserver.observe(this.getHostElement(), {\n childList: true,\n subtree: true,\n });\n }\n\n\n private getText(): string {\n return this.getHostElement().querySelector<HTMLDivElement>('ax-text')?.innerText;\n }\n\n\n /**\n * Manually detect all `ax-menu-item` elements and check if this menu item has sub-items.\n */\n private detectSubItems() {\n //\n const parentEl = this.getHostElement().parentElement?.parentElement;\n this.parent = parentEl?.tagName == \"AX-MENU-ITEM\" ? parentEl?.[\"__axContext__\"] as AXMenuItemComponent : null;\n //\n const tag = this.getHostElement().parentElement?.tagName;\n this.isFirstLevel.set(tag == \"AX-MENU\" || tag == \"AX-CONTEXT-MENU\");\n const subItems = this.getHostElement().querySelectorAll('ax-menu-item');\n if (subItems.length > 0) {\n this.hasSubItems.set(true);\n } else {\n this.hasSubItems.set(false);\n }\n }\n\n\n open() {\n this.service.closeExcept$.next(this);\n if (!this.disabled() && this.hasSubItems()) {\n this.service.open$.next(this);\n }\n }\n\n close() {\n this.service.close$.next(this);\n }\n\n\n /**\n * Calculate the position of the submenu to avoid it going out of the viewport.\n */\n private calculatePosition() {\n const submenu = this.getHostElement().querySelector('.ax-menu-items');\n if (!submenu) return;\n\n const submenuRect = submenu.getBoundingClientRect();\n const itemRect = this.getHostElement().getBoundingClientRect();\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n\n const isRtl = AXHtmlUtil.isRtl(this.getHostElement());\n\n let top: number | null = null;\n let left: number | null = null;\n\n // For first-level menu items\n if (this.isFirstLevel() && this.root.orientation() === 'horizontal') {\n top = itemRect.bottom + submenuRect.height > windowHeight\n ? itemRect.top - submenuRect.height // Open upwards\n : itemRect.bottom; // Open downwards\n\n if (isRtl) {\n // RTL: Align to the right of the parent item\n left = itemRect.right - submenuRect.width < 0\n ? itemRect.left // Align to the left if not enough space on the right\n : itemRect.right - submenuRect.width; // Open to the left in RTL\n } else {\n // LTR: Align to the left of the parent item\n left = itemRect.left + submenuRect.width > windowWidth\n ? itemRect.right - submenuRect.width // Align to the right edge in LTR\n : itemRect.left; // Open to the left\n }\n } else {\n // For nested submenus\n if (isRtl) {\n // RTL: Nested submenu opens to the left\n left = itemRect.left - submenuRect.width < 0\n ? itemRect.right // Align to the right if not enough space on the left\n : itemRect.left - submenuRect.width; // Open to the left in RTL\n } else {\n // LTR: Nested submenu opens to the right\n left = itemRect.right + submenuRect.width > windowWidth\n ? itemRect.left - submenuRect.width // Open to the left if not enough space\n : itemRect.right; // Open to the right in LTR\n }\n\n // Adjust top position (align vertically with parent)\n top = itemRect.top + submenuRect.height > windowHeight\n ? itemRect.top - (itemRect.bottom + submenuRect.height - windowHeight) // Adjust upwards\n : itemRect.top; // Align with the parent item\n }\n\n // Apply calculated styles for RTL/LTR\n this.renderer.setStyle(submenu, 'left', `${left}px`);\n this.renderer.setStyle(submenu, 'top', `${top}px`);\n this.renderer.setStyle(submenu, 'position', 'fixed'); // Fixed position relative to the viewport\n }\n\n\n\n @HostListener(\"click\", ['$event'])\n private handleClick(e: MouseEvent) {\n e.stopPropagation();\n if (this.disabled()) return;\n //\n const event = {\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n canceled: false,\n item: {\n name: this.name(),\n text: this.getText(),\n data: this.data()\n }\n } as AXMenuItemClickEvent;\n //\n this.onClick.emit(event);\n this.root.onItemClick.emit(event);\n //\n if (this.hasSubItems() && !event.canceled) {\n this.open();\n }\n else if (!event.canceled) {\n this.service.closeAll$.next();\n this.service.closeAllContextMenu$.next({ sender: this.root });\n }\n }\n\n @HostListener(\"mouseenter\", ['$event'])\n private handleMouseEnter(event: MouseEvent) {\n event.stopPropagation();\n // Cancel the close delay if the mouse re-enters the element\n if (this.mouseLeaveTimeout) {\n clearTimeout(this.mouseLeaveTimeout);\n this.mouseLeaveTimeout = null; // Reset the timeout\n }\n if (!this.isFirstLevel() || this.root.openOn() == 'hover') {\n this.open();\n }\n }\n\n private mouseLeaveTimeout: any;\n\n @HostListener(\"mouseleave\", ['$event'])\n private handleMouseLeave(event: MouseEvent) {\n event.stopPropagation();\n\n if (this.hasSubItems() && this.root.closeOn() === 'leave') {\n // Clear any previous timeout to avoid multiple triggers\n if (this.mouseLeaveTimeout) {\n clearTimeout(this.mouseLeaveTimeout);\n }\n\n // Set a delay before closing the submenu\n this.mouseLeaveTimeout = setTimeout(() => {\n this.close();\n }, 500); // Adjust the delay (500ms in this case) as per your requirement\n }\n }\n\n @HostListener('window:scroll', ['$event'])\n @HostListener('window:resize', ['$event'])\n private onWindowEvent() {\n this.service.closeAll$.next(); // Close all menus on scroll or resize\n }\n\n /**\n * Close all menus if clicking outside the root menu and all sub-items.\n */\n @HostListener('document:click', ['$event'])\n private onClickOutside(event: MouseEvent) {\n const hostElement = this.root.getHostElement();\n if (!hostElement.contains(event.target as Node)) {\n this.service.closeAll$.next() // Close all menus if click is outside the root and sub-items\n }\n }\n\n\n ngOnDestroy() {\n this.removeScrollEvents();\n }\n\n private bindScrollEvents() {\n this.scrollableParents = AXHtmlUtil.getScrollableParents(this.getHostElement());\n\n this.scrollableParents.forEach((parent) => {\n parent.addEventListener('scroll', this.onContainerScroll.bind(this));\n });\n }\n\n // Remove scroll event listeners \n private removeScrollEvents() {\n this.scrollableParents.forEach((parent) => {\n parent.removeEventListener('scroll', this.onContainerScroll.bind(this));\n });\n }\n\n /**\n * Handler for scroll events (window or scrollable parent containers)\n */\n private onContainerScroll() {\n this.service.closeAll$.next(); // Close all menus on scroll\n }\n\n\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string[] {\n const list: string[] = ['ax-el-interactive'];\n if (this.disabled()) {\n list.push('ax-state-disabled');\n }\n if (this.color()) {\n list.push(`ax-el-${this.color()}-blank`);\n }\n return list\n }\n\n}\n","<div class=\"ax-menu-item-prefix\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-text\"></ng-content>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if (hasSubItems()) {\n<i class=\"ax-icon ax-icon-solid {{ arrowIcon() }} ax-menu-item-child-icon\"></i>\n}\n<div class=\"ax-menu-items\" [class.ax-state-open]=\"isOpen()\">\n <ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n</div>","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n inject,\n input,\n output,\n Renderer2,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXContextMenuOpeningEvent, AXMenuCloseTrigger, AXMenuItem, AXMenuItemClickEvent, AXMenuOpenTrigger, AXRootMenu } from './menu.types';\nimport { AXMenuService } from './menu.service';\nimport { AXHtmlUtil, AXPoint } from '@acorex/core/utils';\nimport { cloneDeep } from 'lodash-es';\n\n/**\n * Represents a menu component that displays context menu.\n * @category Components\n */\n@Component({\n selector: 'ax-context-menu',\n templateUrl: './menu.component.html',\n styleUrls: ['./menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n AXMenuService,\n {\n provide: AXRootMenu,\n useExisting: AXContextMenuComponent\n }\n ]\n})\nexport class AXContextMenuComponent extends MXBaseComponent {\n\n // Inputs and Outputs\n\n orientation = input<AXOrientation>('vertical');\n openOn = input<AXMenuOpenTrigger>('hover');\n closeOn = input<AXMenuCloseTrigger>('click');\n orginalItems = input<AXMenuItem[]>([], { alias: \"items\" });\n target = input<HTMLElement>();\n\n onItemClick = output<AXMenuItemClickEvent>();\n onOpening = output<AXContextMenuOpeningEvent>();\n\n // Injected Services\n\n service = inject(AXMenuService);\n\n // Constructor (Dependency Injection)\n\n /** @ignore */\n constructor(private renderer: Renderer2) {\n super();\n afterNextRender(() => {\n if (this.target()) {\n this.target().addEventListener('contextmenu', this.handleContextMenu.bind(this));\n }\n this.bindScrollEvents();\n });\n\n this.service.closeAllContextMenu$.subscribe(() => {\n this.service.closeAll$.next();\n this.close();\n });\n\n this.service.openContextMenu$.subscribe((e) => {\n if (e.sender as any == this) {\n this.internalShowAt(e.point);\n }\n });\n }\n\n // Lifecycle Hooks\n\n ngOnDestroy() {\n this.removeScrollEvents();\n }\n\n // Public Methods\n\n public showAt(point: AXPoint) {\n const sender = this as any as AXRootMenu;\n this.service.closeAllContextMenu$.next({ sender });\n this.service.openContextMenu$.next({ sender, point });\n }\n\n public close() {\n const elementRef = this.getHostElement();\n elementRef.classList.remove('ax-state-open');\n }\n\n // Private Properties\n\n private scrollableParents: HTMLElement[] = [];\n\n protected items = signal<AXMenuItem[]>([]);\n\n // Private Methods (Internal Logic)\n\n /** @ignore */\n private handleContextMenu(e: MouseEvent) {\n e.preventDefault();\n e.stopPropagation();\n //\n const event = {\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n canceled: false,\n items: cloneDeep(this.orginalItems()),\n } as AXContextMenuOpeningEvent;\n this.onOpening.emit(event);\n this.items.set(event.items);\n //\n if (!event.canceled) {\n this.showAt({ x: e.clientX, y: e.clientY });\n }\n }\n\n private internalShowAt(point: AXPoint) {\n const elementRef = this.getHostElement();\n elementRef.classList.add('ax-state-open');\n const itemRect = elementRef.getBoundingClientRect();\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n\n // Detect RTL (Right-To-Left) mode\n const isRtl = AXHtmlUtil.isRtl(this.getHostElement());\n\n let left: number;\n if (isRtl) {\n left = point.x - itemRect.width;\n if (left < 0) {\n left = point.x;\n }\n } else {\n left = point.x;\n if (left + itemRect.width > windowWidth) {\n left = point.x - itemRect.width;\n }\n }\n\n const bottom = point.y + itemRect.height;\n let top: number;\n\n if (bottom > windowHeight) {\n top = point.y - itemRect.height;\n if (top < 0) {\n top = 0;\n }\n } else {\n top = point.y;\n }\n\n this.renderer.setStyle(elementRef, 'left', `${left}px`);\n this.renderer.setStyle(elementRef, 'top', `${top}px`);\n this.renderer.setStyle(elementRef, 'position', 'fixed');\n }\n\n private bindScrollEvents() {\n this.scrollableParents = AXHtmlUtil.getScrollableParents(this.getHostElement());\n this.scrollableParents.forEach((parent) => {\n parent.addEventListener('scroll', this.onContainerScroll.bind(this));\n });\n }\n\n private removeScrollEvents() {\n this.scrollableParents.forEach((parent) => {\n parent.removeEventListener('scroll', this.onContainerScroll.bind(this));\n });\n }\n\n private onContainerScroll() {\n this.service.closeAllContextMenu$.next({ sender: this as any as AXRootMenu });\n }\n\n // Host Listeners (UI Interaction Handling)\n\n /** @ignore */\n @HostListener('document:click', ['$event'])\n private onClickOutside(event: MouseEvent) {\n const hostElement = this.getHostElement();\n if (!hostElement.contains(event.target as Node)) {\n const sender = this as any as AXRootMenu;\n this.service.closeAllContextMenu$.next({ sender });\n }\n }\n\n @HostListener('document:contextmenu', ['$event'])\n private onContextMenuOutside(event: MouseEvent) {\n if (!this.target().contains(event.target as Node)) {\n const sender = this as any as AXRootMenu;\n this.service.closeAllContextMenu$.next({ sender });\n }\n }\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): any {\n return ['ax-menu-container', `ax-orientation-${this.orientation()}`];\n }\n}\n","<ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n\n<ng-container *ngFor=\"let node of items()\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\">\n</ng-container>\n<ng-template #Recursion let-item>\n @if(item.group?.title)\n {\n <ax-title>{{item.group?.title}}</ax-title>\n }\n <ax-menu-item [name]=\"item.name\" [data]=\"item.data\" [disabled]=\"item.disabled\" [color]=\"item.color\">\n <ax-prefix>\n @if(item.icon)\n {\n <ax-icon [icon]=\"item.icon\">\n </ax-icon>\n }\n </ax-prefix>\n @if(item.text)\n {\n <ax-text>{{ item.text }}</ax-text>\n }\n @if(item.suffix)\n {\n <ax-suffix>\n <ax-text>{{ item.suffix.text }}</ax-text>\n </ax-suffix>\n }\n <ng-container *ngFor=\"let child of item.children\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"></ng-container>\n </ax-menu-item>\n @if(item.break)\n {\n <ax-divider></ax-divider>\n }\n</ng-template>","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n inject,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXMenuService } from './menu.service';\nimport { AXMenuCloseTrigger, AXMenuItem, AXMenuItemClickEvent, AXMenuOpenTrigger, AXRootMenu } from './menu.types';\n\n/**\n * Represents a menu component that displays menu items.\n * @category Components\n */\n@Component({\n selector: 'ax-menu',\n templateUrl: './menu.component.html',\n styleUrls: ['./menu.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n AXMenuService,\n {\n provide: AXRootMenu,\n useExisting: AXMenuComponent\n }\n ]\n})\nexport class AXMenuComponent extends MXBaseComponent {\n orientation = input<AXOrientation>('horizontal');\n\n openOn = input<AXMenuOpenTrigger>('hover');\n\n closeOn = input<AXMenuCloseTrigger>('leave');\n\n service = inject(AXMenuService);\n\n onItemClick = output<AXMenuItemClickEvent>();\n\n items = input<AXMenuItem[]>([]);\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-orientation-${this.orientation()}`;\n }\n\n\n public close() {\n this.service.closeAll$.next();\n }\n}\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AXMenuComponent } from './menu.component';\nimport { AXContextMenuComponent } from './context-menu.component';\nimport { AXMenuItemComponent } from './menu-item.component';\n\nconst COMPONENT = [AXMenuItemComponent, AXMenuComponent, AXContextMenuComponent];\nconst MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [CommonModule, ...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXMenuModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.AXMenuItemComponent"],"mappings":";;;;;;;;;;;;;;;MAOsB,UAAU,CAAA;AAM/B,CAAA;MAEqB,uBAAuB,CAAA;AAC5C,CAAA;MAGqB,UAAU,CAAA;AAgB/B,CAAA;MAEqB,4BAA4B,CAAA;AAIjD,CAAA;AAEK,MAAO,oBAAqB,SAAQ,YAAY,CAAA;AAAtD,IAAA,WAAA,GAAA;;QAEE,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KAClB;AAAA,CAAA;AAEK,MAAO,yBAA0B,SAAQ,OAAO,CAAA;AAAtD,IAAA,WAAA,GAAA;;QAEE,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KAClB;AAAA;;MC7CY,aAAa,CAAA;AAD1B,IAAA,WAAA,GAAA;AAES,QAAA,IAAA,CAAA,SAAS,GAAkB,IAAI,OAAO,EAAE,CAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAqC,IAAI,OAAO,EAAE,CAAC;AACxD,QAAA,IAAA,CAAA,MAAM,GAAqC,IAAI,OAAO,EAAE,CAAC;AACzD,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAA2B,CAAC;AAEtD,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,OAAO,EAA0C,CAAC;AACzE,QAAA,IAAA,CAAA,oBAAoB,GAAG,IAAI,OAA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eAAe,aADrF,mBAAmB,EAAE,eAAe,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;+GASlE,YAAY,EAAA,OAAA,EAAA,CAJb,YAAY,EAAK,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIvB,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
package/menu/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './lib/class/popover.class';
2
- export * from './lib/class/root-menu.class';
3
- export * from './lib/menu-item/menu-item.component';
1
+ export * from './lib/menu.types';
2
+ export * from './lib/menu-item.component';
3
+ export * from './lib/context-menu.component';
4
4
  export * from './lib/menu.component';
5
5
  export * from './lib/menu.module';
6
6
  export * from './lib/menu.service';
@@ -0,0 +1,41 @@
1
+ import { AXOrientation, MXBaseComponent } from '@acorex/components/common';
2
+ import { Renderer2 } from '@angular/core';
3
+ import { AXContextMenuOpeningEvent, AXMenuCloseTrigger, AXMenuItem, AXMenuItemClickEvent, AXMenuOpenTrigger } from './menu.types';
4
+ import { AXMenuService } from './menu.service';
5
+ import { AXPoint } from '@acorex/core/utils';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a menu component that displays context menu.
9
+ * @category Components
10
+ */
11
+ export declare class AXContextMenuComponent extends MXBaseComponent {
12
+ private renderer;
13
+ orientation: import("@angular/core").InputSignal<AXOrientation>;
14
+ openOn: import("@angular/core").InputSignal<AXMenuOpenTrigger>;
15
+ closeOn: import("@angular/core").InputSignal<AXMenuCloseTrigger>;
16
+ orginalItems: import("@angular/core").InputSignal<AXMenuItem[]>;
17
+ target: import("@angular/core").InputSignal<HTMLElement>;
18
+ onItemClick: import("@angular/core").OutputEmitterRef<AXMenuItemClickEvent>;
19
+ onOpening: import("@angular/core").OutputEmitterRef<AXContextMenuOpeningEvent>;
20
+ service: AXMenuService;
21
+ /** @ignore */
22
+ constructor(renderer: Renderer2);
23
+ ngOnDestroy(): void;
24
+ showAt(point: AXPoint): void;
25
+ close(): void;
26
+ private scrollableParents;
27
+ protected items: import("@angular/core").WritableSignal<AXMenuItem[]>;
28
+ /** @ignore */
29
+ private handleContextMenu;
30
+ private internalShowAt;
31
+ private bindScrollEvents;
32
+ private removeScrollEvents;
33
+ private onContainerScroll;
34
+ /** @ignore */
35
+ private onClickOutside;
36
+ private onContextMenuOutside;
37
+ /** @ignore */
38
+ get __hostClass(): any;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXContextMenuComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXContextMenuComponent, "ax-context-menu", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "openOn": { "alias": "openOn"; "required": false; "isSignal": true; }; "closeOn": { "alias": "closeOn"; "required": false; "isSignal": true; }; "orginalItems": { "alias": "items"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, { "onItemClick": "onItemClick"; "onOpening": "onOpening"; }, never, ["ax-menu-item,ax-title,ng-container"], false, never>;
41
+ }
@@ -0,0 +1,60 @@
1
+ import { AXStyleColorType, MXBaseComponent } from '@acorex/components/common';
2
+ import { Renderer2 } from '@angular/core';
3
+ import { AXMenuItemClickEvent, AXRootMenu } from './menu.types';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Represents a menu item component used within an `ax-menu`.
7
+ * @category Components
8
+ */
9
+ export declare class AXMenuItemComponent extends MXBaseComponent {
10
+ private renderer;
11
+ protected isOpen: import("@angular/core").WritableSignal<boolean>;
12
+ protected hasSubItems: import("@angular/core").WritableSignal<boolean>;
13
+ protected isFirstLevel: import("@angular/core").WritableSignal<boolean>;
14
+ private mutationObserver;
15
+ protected root: AXRootMenu;
16
+ protected parent?: AXMenuItemComponent | null;
17
+ private service;
18
+ private scrollableParents;
19
+ private unsuscriber;
20
+ protected arrowIcon: import("@angular/core").Signal<"ax-icon-chevron-down" | "ax-icon-chevron-left" | "ax-icon-chevron-right">;
21
+ onClick: import("@angular/core").OutputEmitterRef<AXMenuItemClickEvent>;
22
+ name: import("@angular/core").InputSignal<string>;
23
+ data: import("@angular/core").InputSignal<any>;
24
+ disabled: import("@angular/core").InputSignal<boolean>;
25
+ color: import("@angular/core").InputSignal<AXStyleColorType>;
26
+ constructor(renderer: Renderer2);
27
+ private closeExcept;
28
+ private observeMutations;
29
+ private getText;
30
+ /**
31
+ * Manually detect all `ax-menu-item` elements and check if this menu item has sub-items.
32
+ */
33
+ private detectSubItems;
34
+ open(): void;
35
+ close(): void;
36
+ /**
37
+ * Calculate the position of the submenu to avoid it going out of the viewport.
38
+ */
39
+ private calculatePosition;
40
+ private handleClick;
41
+ private handleMouseEnter;
42
+ private mouseLeaveTimeout;
43
+ private handleMouseLeave;
44
+ private onWindowEvent;
45
+ /**
46
+ * Close all menus if clicking outside the root menu and all sub-items.
47
+ */
48
+ private onClickOutside;
49
+ ngOnDestroy(): void;
50
+ private bindScrollEvents;
51
+ private removeScrollEvents;
52
+ /**
53
+ * Handler for scroll events (window or scrollable parent containers)
54
+ */
55
+ private onContainerScroll;
56
+ /** @ignore */
57
+ get __hostClass(): string[];
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuItemComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuItemComponent, "ax-menu-item", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, ["ax-prefix", "ax-text", "ax-suffix", "ax-menu-item,ax-title,ng-container"], false, never>;
60
+ }
@@ -1,23 +1,21 @@
1
1
  import { AXOrientation, MXBaseComponent } from '@acorex/components/common';
2
- import { AfterViewInit, QueryList } from '@angular/core';
3
- import { AXMenuPopoverTrigger } from './class/popover.class';
4
- import { AXMenuItemComponent } from './menu-item/menu-item.component';
5
2
  import { AXMenuService } from './menu.service';
3
+ import { AXMenuCloseTrigger, AXMenuItem, AXMenuItemClickEvent, AXMenuOpenTrigger } from './menu.types';
6
4
  import * as i0 from "@angular/core";
7
5
  /**
8
6
  * Represents a menu component that displays menu items.
9
7
  * @category Components
10
8
  */
11
- export declare class AXMenuComponent extends MXBaseComponent implements AfterViewInit {
9
+ export declare class AXMenuComponent extends MXBaseComponent {
12
10
  orientation: import("@angular/core").InputSignal<AXOrientation>;
13
- openOn: import("@angular/core").InputSignal<AXMenuPopoverTrigger>;
11
+ openOn: import("@angular/core").InputSignal<AXMenuOpenTrigger>;
12
+ closeOn: import("@angular/core").InputSignal<AXMenuCloseTrigger>;
14
13
  service: AXMenuService;
15
- /** @ignore */
16
- children: QueryList<AXMenuItemComponent>;
17
- /** @ignore */
18
- ngAfterViewInit(): void;
14
+ onItemClick: import("@angular/core").OutputEmitterRef<AXMenuItemClickEvent>;
15
+ items: import("@angular/core").InputSignal<AXMenuItem[]>;
19
16
  /** @ignore */
20
17
  get __hostClass(): string;
18
+ close(): void;
21
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuComponent, "ax-menu", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "openOn": { "alias": "openOn"; "required": false; "isSignal": true; }; }, {}, ["children"], ["ax-menu-item,ng-container"], false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuComponent, "ax-menu", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "openOn": { "alias": "openOn"; "required": false; "isSignal": true; }; "closeOn": { "alias": "closeOn"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "onItemClick": "onItemClick"; }, never, ["ax-menu-item,ax-title,ng-container"], false, never>;
23
21
  }
@@ -1,15 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./menu-item/menu-item.component";
2
+ import * as i1 from "./menu-item.component";
3
3
  import * as i2 from "./menu.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@acorex/components/decorators";
6
- import * as i5 from "@acorex/components/loading";
7
- import * as i6 from "@acorex/core/translation";
8
- import * as i7 from "@angular/cdk/overlay";
9
- import * as i8 from "@acorex/components/popover";
10
- import * as i9 from "@acorex/components/button";
4
+ import * as i3 from "./context-menu.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@acorex/components/decorators";
7
+ import * as i6 from "@acorex/components/loading";
8
+ import * as i7 from "@acorex/core/translation";
9
+ import * as i8 from "@angular/cdk/overlay";
10
+ import * as i9 from "@acorex/components/popover";
11
11
  export declare class AXMenuModule {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMenuModule, [typeof i1.AXMenuItemComponent, typeof i2.AXMenuComponent], [typeof i3.CommonModule, typeof i4.AXDecoratorModule, typeof i5.AXLoadingModule, typeof i6.AXTranslationModule, typeof i7.OverlayModule, typeof i8.AXPopoverModule, typeof i9.AXButtonModule], [typeof i1.AXMenuItemComponent, typeof i2.AXMenuComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMenuModule, [typeof i1.AXMenuItemComponent, typeof i2.AXMenuComponent, typeof i3.AXContextMenuComponent], [typeof i4.CommonModule, typeof i5.AXDecoratorModule, typeof i6.AXLoadingModule, typeof i7.AXTranslationModule, typeof i8.OverlayModule, typeof i9.AXPopoverModule], [typeof i1.AXMenuItemComponent, typeof i2.AXMenuComponent, typeof i3.AXContextMenuComponent]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMenuModule>;
15
15
  }
@@ -1,8 +1,19 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { AXMenuItemComponent } from './menu-item/menu-item.component';
1
+ import { Subject } from 'rxjs';
2
+ import { AXMenuItemComponentBase, AXRootMenu } from './menu.types';
3
+ import { AXPoint } from '@acorex/core/utils';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class AXMenuService {
5
- activeMenus$: BehaviorSubject<AXMenuItemComponent[]>;
6
+ closeAll$: Subject<void>;
7
+ open$: Subject<AXMenuItemComponentBase>;
8
+ close$: Subject<AXMenuItemComponentBase>;
9
+ closeExcept$: Subject<AXMenuItemComponentBase>;
10
+ openContextMenu$: Subject<{
11
+ sender: AXRootMenu;
12
+ point: AXPoint;
13
+ }>;
14
+ closeAllContextMenu$: Subject<{
15
+ sender: AXRootMenu;
16
+ }>;
6
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuService, never>;
7
18
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMenuService>;
8
19
  }
@@ -0,0 +1,43 @@
1
+ import { AXClickEvent, AXEvent, AXOrientation, AXStyleColorType } from '@acorex/components/common';
2
+ import { OutputEmitterRef, WritableSignal } from '@angular/core';
3
+ export type AXMenuOpenTrigger = 'click' | 'hover';
4
+ export type AXMenuCloseTrigger = 'click' | 'leave';
5
+ export declare abstract class AXRootMenu {
6
+ orientation: WritableSignal<AXOrientation>;
7
+ openOn: WritableSignal<AXMenuOpenTrigger>;
8
+ closeOn: WritableSignal<AXMenuCloseTrigger>;
9
+ onItemClick: OutputEmitterRef<AXMenuItemClickEvent>;
10
+ abstract getHostElement(): HTMLDivElement;
11
+ }
12
+ export declare abstract class AXMenuItemComponentBase {
13
+ }
14
+ export declare abstract class AXMenuItem {
15
+ color?: AXStyleColorType;
16
+ name?: string;
17
+ text: string;
18
+ data?: any;
19
+ icon?: string;
20
+ disabled?: boolean;
21
+ items?: AXMenuItem[];
22
+ suffix?: {
23
+ text: string;
24
+ };
25
+ break?: boolean;
26
+ group?: {
27
+ name?: string;
28
+ title?: string;
29
+ };
30
+ }
31
+ export declare abstract class AXMenuItemClickEventItemData {
32
+ name?: string;
33
+ text: string;
34
+ data?: any;
35
+ }
36
+ export declare class AXMenuItemClickEvent extends AXClickEvent {
37
+ item: AXMenuItemClickEventItemData;
38
+ canceled: boolean;
39
+ }
40
+ export declare class AXContextMenuOpeningEvent extends AXEvent {
41
+ items: AXMenuItem[];
42
+ canceled: boolean;
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "18.10.16",
3
+ "version": "18.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.2.0",
6
6
  "@angular/core": ">=18.2.0",
@@ -32,12 +32,6 @@
32
32
  "esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
33
33
  "default": "./fesm2022/acorex-components-action-sheet.mjs"
34
34
  },
35
- "./alert": {
36
- "types": "./alert/index.d.ts",
37
- "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
38
- "esm": "./esm2022/alert/acorex-components-alert.mjs",
39
- "default": "./fesm2022/acorex-components-alert.mjs"
40
- },
41
35
  "./audio-wave": {
42
36
  "types": "./audio-wave/index.d.ts",
43
37
  "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
@@ -50,6 +44,12 @@
50
44
  "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
51
45
  "default": "./fesm2022/acorex-components-avatar.mjs"
52
46
  },
47
+ "./alert": {
48
+ "types": "./alert/index.d.ts",
49
+ "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
50
+ "esm": "./esm2022/alert/acorex-components-alert.mjs",
51
+ "default": "./fesm2022/acorex-components-alert.mjs"
52
+ },
53
53
  "./badge": {
54
54
  "types": "./badge/index.d.ts",
55
55
  "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
@@ -140,12 +140,6 @@
140
140
  "esm": "./esm2022/conversation/acorex-components-conversation.mjs",
141
141
  "default": "./fesm2022/acorex-components-conversation.mjs"
142
142
  },
143
- "./data-table": {
144
- "types": "./data-table/index.d.ts",
145
- "esm2022": "./esm2022/data-table/acorex-components-data-table.mjs",
146
- "esm": "./esm2022/data-table/acorex-components-data-table.mjs",
147
- "default": "./fesm2022/acorex-components-data-table.mjs"
148
- },
149
143
  "./data-pager": {
150
144
  "types": "./data-pager/index.d.ts",
151
145
  "esm2022": "./esm2022/data-pager/acorex-components-data-pager.mjs",
@@ -158,6 +152,12 @@
158
152
  "esm": "./esm2022/datetime-box/acorex-components-datetime-box.mjs",
159
153
  "default": "./fesm2022/acorex-components-datetime-box.mjs"
160
154
  },
155
+ "./data-table": {
156
+ "types": "./data-table/index.d.ts",
157
+ "esm2022": "./esm2022/data-table/acorex-components-data-table.mjs",
158
+ "esm": "./esm2022/data-table/acorex-components-data-table.mjs",
159
+ "default": "./fesm2022/acorex-components-data-table.mjs"
160
+ },
161
161
  "./datetime-input": {
162
162
  "types": "./datetime-input/index.d.ts",
163
163
  "esm2022": "./esm2022/datetime-input/acorex-components-datetime-input.mjs",
@@ -194,18 +194,18 @@
194
194
  "esm": "./esm2022/dropdown/acorex-components-dropdown.mjs",
195
195
  "default": "./fesm2022/acorex-components-dropdown.mjs"
196
196
  },
197
- "./form": {
198
- "types": "./form/index.d.ts",
199
- "esm2022": "./esm2022/form/acorex-components-form.mjs",
200
- "esm": "./esm2022/form/acorex-components-form.mjs",
201
- "default": "./fesm2022/acorex-components-form.mjs"
202
- },
203
197
  "./dropdown-button": {
204
198
  "types": "./dropdown-button/index.d.ts",
205
199
  "esm2022": "./esm2022/dropdown-button/acorex-components-dropdown-button.mjs",
206
200
  "esm": "./esm2022/dropdown-button/acorex-components-dropdown-button.mjs",
207
201
  "default": "./fesm2022/acorex-components-dropdown-button.mjs"
208
202
  },
203
+ "./form": {
204
+ "types": "./form/index.d.ts",
205
+ "esm2022": "./esm2022/form/acorex-components-form.mjs",
206
+ "esm": "./esm2022/form/acorex-components-form.mjs",
207
+ "default": "./fesm2022/acorex-components-form.mjs"
208
+ },
209
209
  "./image": {
210
210
  "types": "./image/index.d.ts",
211
211
  "esm2022": "./esm2022/image/acorex-components-image.mjs",
@@ -230,18 +230,18 @@
230
230
  "esm": "./esm2022/list/acorex-components-list.mjs",
231
231
  "default": "./fesm2022/acorex-components-list.mjs"
232
232
  },
233
- "./loading-dialog": {
234
- "types": "./loading-dialog/index.d.ts",
235
- "esm2022": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
236
- "esm": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
237
- "default": "./fesm2022/acorex-components-loading-dialog.mjs"
238
- },
239
233
  "./loading": {
240
234
  "types": "./loading/index.d.ts",
241
235
  "esm2022": "./esm2022/loading/acorex-components-loading.mjs",
242
236
  "esm": "./esm2022/loading/acorex-components-loading.mjs",
243
237
  "default": "./fesm2022/acorex-components-loading.mjs"
244
238
  },
239
+ "./loading-dialog": {
240
+ "types": "./loading-dialog/index.d.ts",
241
+ "esm2022": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
242
+ "esm": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
243
+ "default": "./fesm2022/acorex-components-loading-dialog.mjs"
244
+ },
245
245
  "./map": {
246
246
  "types": "./map/index.d.ts",
247
247
  "esm2022": "./esm2022/map/acorex-components-map.mjs",
@@ -410,18 +410,18 @@
410
410
  "esm": "./esm2022/side-menu/acorex-components-side-menu.mjs",
411
411
  "default": "./fesm2022/acorex-components-side-menu.mjs"
412
412
  },
413
- "./slider": {
414
- "types": "./slider/index.d.ts",
415
- "esm2022": "./esm2022/slider/acorex-components-slider.mjs",
416
- "esm": "./esm2022/slider/acorex-components-slider.mjs",
417
- "default": "./fesm2022/acorex-components-slider.mjs"
418
- },
419
413
  "./skeleton": {
420
414
  "types": "./skeleton/index.d.ts",
421
415
  "esm2022": "./esm2022/skeleton/acorex-components-skeleton.mjs",
422
416
  "esm": "./esm2022/skeleton/acorex-components-skeleton.mjs",
423
417
  "default": "./fesm2022/acorex-components-skeleton.mjs"
424
418
  },
419
+ "./slider": {
420
+ "types": "./slider/index.d.ts",
421
+ "esm2022": "./esm2022/slider/acorex-components-slider.mjs",
422
+ "esm": "./esm2022/slider/acorex-components-slider.mjs",
423
+ "default": "./fesm2022/acorex-components-slider.mjs"
424
+ },
425
425
  "./step-wizard": {
426
426
  "types": "./step-wizard/index.d.ts",
427
427
  "esm2022": "./esm2022/step-wizard/acorex-components-step-wizard.mjs",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tZW51L3NyYy9saWIvY2xhc3MvcG9wb3Zlci5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhQb3BvdmVyT3BlblRyaWdnZXIgfSBmcm9tICdAYWNvcmV4L2NvbXBvbmVudHMvcG9wb3Zlcic7XG5cbmV4cG9ydCB0eXBlIEFYTWVudVBvcG92ZXJUcmlnZ2VyID0gRXhjbHVkZTxBWFBvcG92ZXJPcGVuVHJpZ2dlciwgJ21hbnVhbCc+O1xuIl19
@@ -1,8 +0,0 @@
1
- import { signal } from '@angular/core';
2
- export class AXRootMenu {
3
- constructor() {
4
- this.orientation = signal('horizontal');
5
- this.openOn = signal('toggle');
6
- }
7
- }
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC1tZW51LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL21lbnUvc3JjL2xpYi9jbGFzcy9yb290LW1lbnUuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFrQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkQsTUFBTSxPQUFPLFVBQVU7SUFBdkI7UUFDRSxnQkFBVyxHQUFrQyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDbEUsV0FBTSxHQUF5QyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDbEUsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhPcmllbnRhdGlvbiB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9jb21tb24nO1xuaW1wb3J0IHsgV3JpdGFibGVTaWduYWwsIHNpZ25hbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhNZW51UG9wb3ZlclRyaWdnZXIgfSBmcm9tICcuL3BvcG92ZXIuY2xhc3MnO1xuZXhwb3J0IGNsYXNzIEFYUm9vdE1lbnUge1xuICBvcmllbnRhdGlvbjogV3JpdGFibGVTaWduYWw8QVhPcmllbnRhdGlvbj4gPSBzaWduYWwoJ2hvcml6b250YWwnKTtcbiAgb3Blbk9uOiBXcml0YWJsZVNpZ25hbDxBWE1lbnVQb3BvdmVyVHJpZ2dlcj4gPSBzaWduYWwoJ3RvZ2dsZScpO1xufVxuIl19