mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
create bundle for all components
This commit is contained in:
@@ -19,8 +19,8 @@ import { Component, HostListener } from '@angular/core';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@Component({
|
||||
selector:'context-menu-holder',
|
||||
styles:[
|
||||
selector: 'context-menu-holder',
|
||||
styles: [
|
||||
`
|
||||
.menu-container {
|
||||
background: #fff;
|
||||
@@ -62,10 +62,9 @@ import { ContextMenuService } from './context-menu.service';
|
||||
export class ContextMenuHolderComponent {
|
||||
links = [];
|
||||
isShown = false;
|
||||
private mouseLocation: { left: number, top: number } = { left: 0, top: 0 };
|
||||
private mouseLocation: { left: number, top: number } = {left: 0, top: 0};
|
||||
|
||||
constructor(
|
||||
private _contextMenuService: ContextMenuService) {
|
||||
constructor(private _contextMenuService: ContextMenuService) {
|
||||
_contextMenuService.show.subscribe(e => this.showMenu(e.event, e.obj));
|
||||
}
|
||||
|
||||
|
@@ -19,14 +19,14 @@ import { Directive, Input, HostListener } from '@angular/core';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@Directive({
|
||||
selector:'[context-menu]'
|
||||
selector: '[context-menu]'
|
||||
})
|
||||
export class ContextMenuDirective {
|
||||
@Input('context-menu')
|
||||
links: any[];
|
||||
|
||||
constructor(
|
||||
private _contextMenuService: ContextMenuService) {}
|
||||
constructor(private _contextMenuService: ContextMenuService) {
|
||||
}
|
||||
|
||||
@HostListener('contextmenu', ['$event'])
|
||||
onShowContextMenu(event?: MouseEvent) {
|
||||
|
Reference in New Issue
Block a user