{"version":3,"file":"stampInfoDirective.js","sourceRoot":"","sources":["../../../../src/modules/directives/applicationcore/stampInfoDirective.ts"],"names":[],"mappings":"AAAA,IAAO,UAAU,CAuFhB;AAvFD,WAAO,UAAU;IACb,IAAc,eAAe,CAqF5B;IArFD,WAAc,eAAe;QAgBzB;YAcI,4BAAoB,SAAwC;gBAA5D,iBACC;gBADmB,cAAS,GAAT,SAAS,CAA+B;gBAb5D,aAAQ,GAAG,GAAG,CAAC;gBACf,aAAQ,GAAG,yIAId,CAAC;gBACE,UAAK,GAAG;oBACJ,mBAAmB,EAAE,GAAG;oBACxB,eAAe,EAAE,GAAG;oBACpB,mBAAmB,EAAE,GAAG;oBACxB,eAAe,EAAE,GAAG;iBACvB,CAAA;gBAKD,SAAI,GAAG,UAAC,MAAuB,EAAE,QAA6B;oBAC1D,MAAM,CAAC,QAAQ,GAAG;wBACd,IAAI,aAAa,GAAG,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC;4BACpC,SAAS,EAAE,IAAI;4BACf,QAAQ,EAAE,yvCAaS;4BACnB,OAAO,EAAE;gCACL,KAAK,EAAE;oCACH,OAAO;wCACH,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;wCAC/C,eAAe,EAAE,MAAM,CAAC,eAAe;wCACvC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;wCAC/C,eAAe,EAAE,MAAM,CAAC,eAAe;qCAC1C,CAAA;gCACL,CAAC;6BACJ;4BACD,UAAU,EAAE,UAAU,MAA4B,EAAE,KAA2B;gCAC3E,MAAM,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;gCACvD,MAAM,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;gCAC/C,MAAM,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;gCACvD,MAAM,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;4BACnD,CAAC;yBACJ,CAAC,CAAC;wBAEH,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,YAAY;wBAEhD,CAAC,EAAE;wBAEH,CAAC,CAAC,CAAC;oBACP,CAAC,CAAC;gBACN,CAAC,CAAA;YA5CD,CAAC;YA8CM,0BAAO,GAAd;gBACI,IAAM,SAAS,GAAG,UAAC,SAAS,IAAK,OAAA,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAjC,CAAiC,CAAC;gBACnE,SAAS,CAAC,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;gBAElC,OAAO,SAAS,CAAC;YACrB,CAAC;YACL,yBAAC;QAAD,CAAC,AAnED,IAmEC;QAnEY,kCAAkB,qBAmE9B,CAAA;QACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC,EArFa,eAAe,GAAf,0BAAe,KAAf,0BAAe,QAqF5B;AACL,CAAC,EAvFM,UAAU,KAAV,UAAU,QAuFhB","sourcesContent":["module directives {\r\n export module applicationcore {\r\n interface IStampInfoScope extends ng.IScope {\r\n createstampfullname: string,\r\n createstampdate: Date,\r\n updatestampfullname?: string,\r\n updatestampdate?: Date,\r\n openInfo(): void\r\n }\r\n\r\n interface IStampInfoModalScope extends ng.IScope {\r\n createstampfullname: string,\r\n createstampdate: Date,\r\n updatestampfullname?: string,\r\n updatestampdate?: Date,\r\n }\r\n \r\n export class stampInfoDirective implements ng.IDirective {\r\n restrict = 'E';\r\n template = `\r\n\r\n `;\r\n scope = {\r\n createstampfullname: \"=\",\r\n createstampdate: \"=\",\r\n updatestampfullname: \"=\",\r\n updatestampdate: \"=\"\r\n }\r\n\r\n constructor(private $uibModal: ng.ui.bootstrap.IModalService) {\r\n }\r\n\r\n link = ($scope: IStampInfoScope, $element: ng.IAugmentedJQuery) => {\r\n $scope.openInfo = () => {\r\n var modalInstance = this.$uibModal.open({\r\n animation: true,\r\n template: `\r\n
\r\n

Stamp Info

\r\n
\r\n
\r\n
\r\n
\r\n
{{createstampfullname}} on {{createstampdate | momentDateFilter: \"YYYY/MM/DD HH:mm:ss\"}}
\r\n
\r\n
\r\n
\r\n
{{updatestampfullname}} on {{updatestampdate | momentDateFilter: \"YYYY/MM/DD HH:mm:ss\"}}
\r\n
\r\n
`,\r\n resolve: {\r\n items: function () {\r\n return {\r\n createstampfullname: $scope.createstampfullname,\r\n createstampdate: $scope.createstampdate,\r\n updatestampfullname: $scope.updatestampfullname,\r\n updatestampdate: $scope.updatestampdate\r\n }\r\n }\r\n },\r\n controller: function ($scope: IStampInfoModalScope, items: IStampInfoModalScope) {\r\n $scope.createstampfullname = items.createstampfullname;\r\n $scope.createstampdate = items.createstampdate;\r\n $scope.updatestampfullname = items.updatestampfullname;\r\n $scope.updatestampdate = items.updatestampdate;\r\n }\r\n });\r\n\r\n modalInstance.result.then(function (selectedItem) {\r\n\r\n }, function () {\r\n\r\n });\r\n };\r\n }\r\n\r\n static factory(): ng.IDirectiveFactory {\r\n const directive = ($uibModal) => new stampInfoDirective($uibModal);\r\n directive.$inject = ['$uibModal'];\r\n\r\n return directive;\r\n }\r\n }\r\n angular.module(\"app\").directive(\"gtsStampInfo\", stampInfoDirective.factory());\r\n }\r\n}"]}