{"version":3,"file":"menuLinkItemDirective.js","sourceRoot":"","sources":["../../../../src/modules/directives/applicationcore/menuLinkItemDirective.ts"],"names":[],"mappings":"AAAA,IAAO,UAAU,CAwChB;AAxCD,WAAO,UAAU;IACb,IAAc,eAAe,CAoC5B;IApCD,WAAc,eAAe;QAQzB;YAUI,+BAAoB,QAA4B,EAAU,MAA2B;gBAAjE,aAAQ,GAAR,QAAQ,CAAoB;gBAAU,WAAM,GAAN,MAAM,CAAqB;gBATrF,UAAK,GAAG;oBACJ,IAAI,EAAE,GAAG;oBACT,UAAU,EAAE,GAAG;iBAClB,CAAA;gBAED,gBAAW,GAAG,yDAAyD,CAAC;gBACxE,aAAQ,GAAG,GAAG,CAAC;gBACf,eAAU,GAAG,IAAI,CAAC;gBAKlB,SAAI,GAAG,UAAC,MAA0B,EAAE,QAA6B,EAAE,KAAqB;oBACpF,MAAM,CAAC,OAAO,GAAG;wBACb,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;wBACxC,MAAM,CAAC,UAAU,EAAE,CAAC;oBACxB,CAAC,CAAC;gBACN,CAAC,CAAC;YAPF,CAAC;YASM,6BAAO,GAAd;gBACI,IAAM,SAAS,GAAG,UAAC,QAAQ,EAAE,MAAM,IAAK,OAAA,IAAI,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAA3C,CAA2C,CAAC;gBACpF,SAAS,CAAC,OAAO,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBAE3C,OAAO,SAAS,CAAC;YACrB,CAAC;YACL,4BAAC;QAAD,CAAC,AA1BD,IA0BC;QA1BY,qCAAqB,wBA0BjC,CAAA;IAEL,CAAC,EApCa,eAAe,GAAf,0BAAe,KAAf,0BAAe,QAoC5B;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC,eAAe,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,CAAC;AAC5G,CAAC,EAxCM,UAAU,KAAV,UAAU,QAwChB","sourcesContent":["module directives {\r\n export module applicationcore {\r\n\r\n interface IMenuLinkItemScope extends ng.IScope {\r\n item: interfaces.applicationcore.IMenu,\r\n clicked(): void,\r\n menuToggle(): void\r\n }\r\n\r\n export class menuLinkItemDirective implements ng.IDirective {\r\n scope = {\r\n item: \"=\",\r\n menuToggle: \"&\"\r\n }\r\n\r\n templateUrl = 'templates/modules/applicationcore/menuLinkItemView.html';\r\n restrict = 'E';\r\n transclude = true;\r\n\r\n constructor(private $timeout: ng.ITimeoutService, private $state: ng.ui.IStateService) {\r\n }\r\n\r\n link = ($scope: IMenuLinkItemScope, $element: ng.IAugmentedJQuery, attrs: ng.IAttributes) => {\r\n $scope.clicked = () => {\r\n $scope.$root.$broadcast(\"MenuOpen\", '');\r\n $scope.menuToggle();\r\n };\r\n };\r\n\r\n static factory(): ng.IDirectiveFactory {\r\n const directive = ($timeout, $state) => new menuLinkItemDirective($timeout, $state);\r\n directive.$inject = ['$timeout', '$state'];\r\n\r\n return directive;\r\n }\r\n }\r\n\r\n }\r\n\r\n angular.module(\"app\").directive(\"menuLink\", directives.applicationcore.menuLinkItemDirective.factory());\r\n}"]}