{"version":3,"file":"descriptionDirective.js","sourceRoot":"","sources":["../../../../src/modules/directives/applicationcore/descriptionDirective.ts"],"names":[],"mappings":"AAAA,IAAO,UAAU,CA+BhB;AA/BD,WAAO,UAAU;IACb,IAAc,eAAe,CA6B5B;IA7BD,WAAc,eAAe;QAMzB;YAKI,8BAAoB,kBAAkE;gBAAtF,iBACC;gBADmB,uBAAkB,GAAlB,kBAAkB,CAAgD;gBAHtF,aAAQ,GAAG,iBAAiB,CAAC;gBAC7B,UAAK,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAA;gBAKnB,SAAI,GAAG,UAAC,MAAyB,EAAE,QAA6B;oBAC5D,KAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;wBACxD,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC;oBAChD,CAAC,CAAC,CAAC;gBACP,CAAC,CAAA;YAND,CAAC;YAQM,4BAAO,GAAd;gBACI,IAAM,SAAS,GAAG,UAAC,kBAAkB,IAAK,OAAA,IAAI,oBAAoB,CAAC,kBAAkB,CAAC,EAA5C,CAA4C,CAAC;gBACvF,SAAS,CAAC,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;gBAE3C,OAAO,SAAS,CAAC;YACrB,CAAC;YACL,2BAAC;QAAD,CAAC,AApBD,IAoBC;QApBY,oCAAoB,uBAoBhC,CAAA;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC,EA7Ba,eAAe,GAAf,0BAAe,KAAf,0BAAe,QA6B5B;AACL,CAAC,EA/BM,UAAU,KAAV,UAAU,QA+BhB","sourcesContent":["module directives {\r\n export module applicationcore {\r\n interface IDescriptionScope extends ng.IScope {\r\n description: string;\r\n id: number;\r\n }\r\n\r\n export class descriptionDirective implements ng.IDirective {\r\n\r\n template = `{{description}}`;\r\n scope = { id: \"=\" }\r\n\r\n constructor(private descriptionService: interfaces.applicationcore.IDescriptionService) {\r\n }\r\n\r\n link = ($scope: IDescriptionScope, $element: ng.IAugmentedJQuery) => {\r\n this.descriptionService.getDescription($scope.id).then((data) => {\r\n $scope.description = data.LocaleDescription;\r\n });\r\n }\r\n\r\n static factory(): ng.IDirectiveFactory {\r\n const directive = (descriptionService) => new descriptionDirective(descriptionService);\r\n directive.$inject = ['descriptionService'];\r\n\r\n return directive;\r\n }\r\n }\r\n\r\n angular.module(\"app\").directive(\"gtsDescription\", descriptionDirective.factory());\r\n }\r\n}"]}