bahmniapps-commons
Advanced tools
Comparing version 0.0.1-beta.3 to 0.0.1-beta.5
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 158); | ||
/******/ return __webpack_require__(__webpack_require__.s = 171); | ||
/******/ }) | ||
@@ -82,3 +82,3 @@ /************************************************************************/ | ||
/***/ 1: | ||
/***/ 0: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -322,3 +322,3 @@ | ||
/***/ 158: | ||
/***/ 1: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -329,19 +329,2 @@ | ||
window.Bahmni = Bahmni || {}; | ||
Bahmni.Auth = Bahmni.Auth || {}; | ||
angular.module('authentication', ['ui.router']); | ||
__webpack_require__(2); | ||
__webpack_require__(3); | ||
__webpack_require__(1); | ||
/***/ }), | ||
/***/ 2: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Bahmni.Auth.User = function (user) { | ||
@@ -410,3 +393,3 @@ angular.extend(this, user); | ||
/***/ 3: | ||
/***/ 171: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -417,2 +400,19 @@ | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Auth = Bahmni.Auth || {}; | ||
angular.module('authentication', ['ui.router']); | ||
__webpack_require__(1); | ||
__webpack_require__(2); | ||
__webpack_require__(0); | ||
/***/ }), | ||
/***/ 2: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
angular.module('authentication').service('userService', ['$rootScope', '$http', '$q', function ($rootScope, $http, $q) { | ||
@@ -419,0 +419,0 @@ var getUserFromServer = function (userName) { |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 159); | ||
/******/ return __webpack_require__(__webpack_require__.s = 172); | ||
/******/ }) | ||
@@ -82,3 +82,3 @@ /************************************************************************/ | ||
/***/ 159: | ||
/***/ 172: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -88,15 +88,15 @@ | ||
window.Bahmni = Bahmni || {}; | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Common = Bahmni.Common || {}; | ||
Bahmni.Common.AppFramework = Bahmni.Common.AppFramework || {}; | ||
__webpack_require__(6); | ||
__webpack_require__(8); | ||
__webpack_require__(4); | ||
__webpack_require__(5); | ||
__webpack_require__(7); | ||
__webpack_require__(3); | ||
__webpack_require__(4); | ||
__webpack_require__(6); | ||
/***/ }), | ||
/***/ 4: | ||
/***/ 3: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -153,3 +153,3 @@ | ||
/***/ 5: | ||
/***/ 4: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -388,3 +388,3 @@ | ||
/***/ 6: | ||
/***/ 5: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -616,3 +616,3 @@ | ||
/***/ 7: | ||
/***/ 6: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -631,3 +631,3 @@ | ||
/***/ 8: | ||
/***/ 7: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -634,0 +634,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 161); | ||
/******/ return __webpack_require__(__webpack_require__.s = 174); | ||
/******/ }) | ||
@@ -82,3 +82,3 @@ /************************************************************************/ | ||
/***/ 161: | ||
/***/ 174: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -88,8 +88,8 @@ | ||
__webpack_require__(34); | ||
__webpack_require__(35); | ||
__webpack_require__(36); | ||
/***/ }), | ||
/***/ 35: | ||
/***/ 34: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -122,3 +122,3 @@ | ||
/***/ 36: | ||
/***/ 35: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -125,0 +125,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 163); | ||
/******/ return __webpack_require__(__webpack_require__.s = 177); | ||
/******/ }) | ||
@@ -82,35 +82,9 @@ /************************************************************************/ | ||
/***/ 0: | ||
/***/ (function(module, exports) { | ||
var g; | ||
// This works in non-strict mode | ||
g = function () { | ||
return this; | ||
}(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1, eval)("this"); | ||
} catch (e) { | ||
// This works if the window reference is available | ||
if (typeof window === "object") g = window; | ||
} | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
module.exports = g; | ||
/***/ }), | ||
/***/ 163: | ||
/***/ 177: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
global.Bahmni = Bahmni || {}; | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Common = Bahmni.Common || {}; | ||
@@ -121,10 +95,9 @@ Bahmni.Common.Logging = Bahmni.Common.Logging || {}; | ||
__webpack_require__(68); | ||
__webpack_require__(67); | ||
__webpack_require__(66); | ||
__webpack_require__(65); | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) | ||
/***/ }), | ||
/***/ 65: | ||
/***/ 66: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -174,3 +147,3 @@ | ||
/***/ 66: | ||
/***/ 67: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -220,3 +193,3 @@ | ||
/***/ 67: | ||
/***/ 68: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -223,0 +196,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 164); | ||
/******/ return __webpack_require__(__webpack_require__.s = 179); | ||
/******/ }) | ||
@@ -82,31 +82,5 @@ /************************************************************************/ | ||
/***/ 0: | ||
/***/ 162: | ||
/***/ (function(module, exports) { | ||
var g; | ||
// This works in non-strict mode | ||
g = function () { | ||
return this; | ||
}(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1, eval)("this"); | ||
} catch (e) { | ||
// This works if the window reference is available | ||
if (typeof window === "object") g = window; | ||
} | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
module.exports = g; | ||
/***/ }), | ||
/***/ 149: | ||
/***/ (function(module, exports) { | ||
module.exports = "<div class=\"template-container\">\n <section class=\"dashboard-section\">\n <div class=\"section-title-wrapper clearfix\">\n <h2 class=\"section-title fl\">{{::conceptDisplayName}}</h2>\n <button class=\"confirm fr\" ng-click=\"save()\" accesskey=\"s\">\n <span class=\"text\" ng-bind-html=\"'CLINICAL_SAVE_TRANSLATION_KEY'| translate\"></span>\n </button>\n </div>\n <div ng-if=\"isFormBuilderForm && formDetails.formUuid\" class=\"concept-set-container\" id=\"{{formDetails.formUuid}}\">\n <form-controls form=\"formDetails\" patient='patient' validate-form=\"false\"></form-controls>\n </div>\n <div ng-if=\"!isFormBuilderForm()\" class=\"concept-set-container\" id=\"scrollOnEdit\">\n <concept-set patient=\"::patient\"\n concept-set-name=\"::conceptSetName\"\n observations=\"editableObservations\" show-title=\"::false\" ng-if=\"encounter\">\n </concept-set>\n </div>\n </section>\n</div>\n"; | ||
@@ -116,10 +90,10 @@ | ||
/***/ 150: | ||
/***/ 163: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = "<li ng-class=\"::{'is-text': observation.type == 'Text', 'has-child' : observation.groupMembers.length > 0 ,'video-concept':observation.isVideoConcept(), 'image-preview': observation.isImageConcept()}\" >\n <div ng-class=\"::{'is-abnormal': (observation.abnormal == true || observation.interpretation === 'ABNORMAL')}\" class=\"tree-list-item clearfix\" bm-gallery patient=\"patient\">\n <span ng-hide=\"observation.isImageConcept()\" ng-if=\"::(!observation.isImageConcept() || (observation.isImageConcept() && !print))\" class=\"testUnderPanel left\">\n <label>{{::(observation.concept.shortName || observation.concept.name)}}</label>\n <hint concept-details=\"::{\n lowNormal:observation.lowNormal||observation.concept.lowNormal,\n hiNormal:observation.hiNormal||observation.concept.hiNormal,\n }\"/>\n <a href=\"{{'/document_images/' + observation.value}}\" download ng-if=\"observation.isVideoConcept()\" class=\"button btn fr btn-download\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i></a>\n </span>\n <span ng-class=\"::{\n 'text-only': (observation.concept.dataType ==='Text' && print),\n 'value-text-only': !(observation.concept.dataType ==='Text' && print)\n }\"\n ng-if=\"::(observation.isFormElement() && !observation.isImageConcept() && !observation.isVideoConcept())\">\n <pre class=\"left\">{{::observation.getDisplayValue() | titleTranslate}}</pre>\n <span class=\"label-add-on\">{{::observation.concept.units}}</span>\n </span>\n <a ng-if=\"::(observation.isImageConcept() && !observation.hasPDFAsValue() && !print)\" class=\"img-concept\">\n <img bm-observation-gallery-item observation=\"::observation\" ng-src=\"{{::observation.value|thumbnail}}\" alt=\"{{::observation.concept.name}}\" />\n </a>\n <a ng-if=\"::(observation.isImageConcept() && observation.hasPDFAsValue() && !print)\" ng-href=\"/document_images/{{observation.value}}\" target=\"_blank\" class=\"pdf-link\">\n <img src=\"" + __webpack_require__(180) + "\" alt=\"pdf\" />\n </a>\n <div ng-if=\"::(observation.isVideoConcept())\" class=\"hidden-print obs-video-thumb-container\">\n <img src=\"{{::observation.value|thumbnail:'jpg'}}\">\n <button class=\"obs-play-btn\" ng-click=\"openVideoInPopup(observation)\"><i class=\"fa fa-play-circle\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <button ng-hide=\"observation.isImageConcept()\" class=\"toggle fr\" ng-if=\"observation.isFormElement() && showDetailsButton && !observation.comment\" ng-class=\"{'has-notes': observation.comment}\"\n toggle=\"observation.showDetails\">\n <i class=\"fa fa-angle-down\"></i>\n <i class=\"fa fa-angle-up\"></i>\n </button>\n </div>\n <div ng-if=\"::observation.comment || observation.isImageConcept() \" class=\"notes inline-comments\" ng-class=\"::{'print-notes': observation.comment, 'image-notes': observation.isImageConcept()}\">\n <i class=\"fa fa-comments left\"></i>\n <pre ng-if=\"::observation.comment\" class=\"left\">{{::observation.comment}}</pre>\n <div class=\"footer-note fr\">\n <span class=\"provider\">\n <provider-directive creator-name=\"{{::observation.creatorName}}\" provider-name=\"{{::observation.providers[0].name}}\"></provider-directive>\n <span ng-if=\"::observation.isFormElement()\">{{::dateString(observation)}} </span>\n </span>\n </div>\n </div>\n <div ng-if=\"observation.showDetails\" class=\"notes inline-notes\" ng-class=\"::{'print-notes': observation.showDetails}\">\n <div class=\"footer-note fr\">\n <span class=\"provider\">\n <provider-directive creator-name=\"{{::observation.creatorName}}\" provider-name=\"{{::observation.providers[0].name}}\"></provider-directive>\n <span ng-if=\"::observation.isFormElement()\">{{::dateString(observation)}}</span>\n </span>\n\n </div>\n </div>\n <div>\n <ul ng-if=\"::(!observation.isFormElement() && !print)\" class=\"hidden-print\">\n <show-observation show-details-button=\"::showDetailsButton\" ng-if=\"::!observation.isFormElement()\" ng-repeat=\"member in observation.groupMembers\"\n observation=\"::member\" patient=\"::patient\" show-date=\"::showDate\" show-time=\"::showTime\" ng-class=\"{'video-concept-show': member.isVideoConcept()}\"></show-observation>\n </ul>\n </div>\n <ul ng-if=\"::(!observation.isFormElement() && print)\" class=\"visible-print\">\n <show-observation show-details-button=\"showDetailsButton\" ng-if=\"::!observation.isFormElement()\" ng-repeat=\"member in observation.groupMembers\"\n observation=\"::member\" patient=\"::patient\" show-date=\"::showDate\" show-time=\"::showTime\"></show-observation>\n </ul>\n</li>\n"; | ||
module.exports = "<li ng-class=\"::{'is-text': observation.type == 'Text', 'has-child' : observation.groupMembers.length > 0 ,'video-concept':observation.isVideoConcept(), 'image-preview': observation.isImageConcept()}\" >\n <div ng-class=\"::{'is-abnormal': (observation.abnormal == true || observation.interpretation === 'ABNORMAL')}\" class=\"tree-list-item clearfix\" bm-gallery patient=\"patient\">\n <span ng-hide=\"observation.isImageConcept()\" ng-if=\"::(!observation.isImageConcept() || (observation.isImageConcept() && !print))\" class=\"testUnderPanel left\">\n <label>{{::(observation.concept.shortName || observation.concept.name)}}</label>\n <hint concept-details=\"::{\n lowNormal:observation.lowNormal||observation.concept.lowNormal,\n hiNormal:observation.hiNormal||observation.concept.hiNormal,\n }\"/>\n <a href=\"{{'/document_images/' + observation.value}}\" download ng-if=\"observation.isVideoConcept()\" class=\"button btn fr btn-download\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i></a>\n </span>\n <span ng-class=\"::{\n 'text-only': (observation.concept.dataType ==='Text' && print),\n 'value-text-only': !(observation.concept.dataType ==='Text' && print)\n }\"\n ng-if=\"::(observation.isFormElement() && !observation.isImageConcept() && !observation.isVideoConcept())\">\n <pre class=\"left\">{{::observation.getDisplayValue() | titleTranslate}}</pre>\n <span class=\"label-add-on\">{{::observation.concept.units}}</span>\n </span>\n <a ng-if=\"::(observation.isImageConcept() && !observation.hasPDFAsValue() && !print)\" class=\"img-concept\">\n <img bm-observation-gallery-item observation=\"::observation\" ng-src=\"{{::observation.value|thumbnail}}\" alt=\"{{::observation.concept.name}}\" />\n </a>\n <a ng-if=\"::(observation.isImageConcept() && observation.hasPDFAsValue() && !print)\" ng-href=\"/document_images/{{observation.value}}\" target=\"_blank\" class=\"pdf-link\">\n <img src=\"" + __webpack_require__(251) + "\" alt=\"pdf\" />\n </a>\n <div ng-if=\"::(observation.isVideoConcept())\" class=\"hidden-print obs-video-thumb-container\">\n <img src=\"{{::observation.value|thumbnail:'jpg'}}\">\n <button class=\"obs-play-btn\" ng-click=\"openVideoInPopup(observation)\"><i class=\"fa fa-play-circle\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <button ng-hide=\"observation.isImageConcept()\" class=\"toggle fr\" ng-if=\"observation.isFormElement() && showDetailsButton && !observation.comment\" ng-class=\"{'has-notes': observation.comment}\"\n toggle=\"observation.showDetails\">\n <i class=\"fa fa-angle-down\"></i>\n <i class=\"fa fa-angle-up\"></i>\n </button>\n </div>\n <div ng-if=\"::observation.comment || observation.isImageConcept() \" class=\"notes inline-comments\" ng-class=\"::{'print-notes': observation.comment, 'image-notes': observation.isImageConcept()}\">\n <i class=\"fa fa-comments left\"></i>\n <pre ng-if=\"::observation.comment\" class=\"left\">{{::observation.comment}}</pre>\n <div class=\"footer-note fr\">\n <span class=\"provider\">\n <provider-directive creator-name=\"{{::observation.creatorName}}\" provider-name=\"{{::observation.providers[0].name}}\"></provider-directive>\n <span ng-if=\"::observation.isFormElement()\">{{::dateString(observation)}} </span>\n </span>\n </div>\n </div>\n <div ng-if=\"observation.showDetails\" class=\"notes inline-notes\" ng-class=\"::{'print-notes': observation.showDetails}\">\n <div class=\"footer-note fr\">\n <span class=\"provider\">\n <provider-directive creator-name=\"{{::observation.creatorName}}\" provider-name=\"{{::observation.providers[0].name}}\"></provider-directive>\n <span ng-if=\"::observation.isFormElement()\">{{::dateString(observation)}}</span>\n </span>\n\n </div>\n </div>\n <div>\n <ul ng-if=\"::(!observation.isFormElement() && !print)\" class=\"hidden-print\">\n <show-observation show-details-button=\"::showDetailsButton\" ng-if=\"::!observation.isFormElement()\" ng-repeat=\"member in observation.groupMembers\"\n observation=\"::member\" patient=\"::patient\" show-date=\"::showDate\" show-time=\"::showTime\" ng-class=\"{'video-concept-show': member.isVideoConcept()}\"></show-observation>\n </ul>\n </div>\n <ul ng-if=\"::(!observation.isFormElement() && print)\" class=\"visible-print\">\n <show-observation show-details-button=\"showDetailsButton\" ng-if=\"::!observation.isFormElement()\" ng-repeat=\"member in observation.groupMembers\"\n observation=\"::member\" patient=\"::patient\" show-date=\"::showDate\" show-time=\"::showTime\"></show-observation>\n </ul>\n</li>\n"; | ||
/***/ }), | ||
/***/ 151: | ||
/***/ 164: | ||
/***/ (function(module, exports) { | ||
@@ -131,6 +105,6 @@ | ||
/***/ 164: | ||
/***/ 179: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* WEBPACK VAR INJECTION */(function(global) {global.Bahmni = Bahmni || {}; | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Common = Bahmni.Common || {}; | ||
@@ -140,23 +114,22 @@ Bahmni.Common.Obs = Bahmni.Common.Obs || {}; | ||
angular.module('bahmni.common.obs', []).run(function ($templateCache) { | ||
$templateCache.put('template-obs-show-observation', __webpack_require__(150)); | ||
$templateCache.put('template-obs-edit-observation', __webpack_require__(149)); | ||
$templateCache.put('template-obs-show-video', __webpack_require__(151)); | ||
$templateCache.put('template-obs-show-observation', __webpack_require__(163)); | ||
$templateCache.put('template-obs-edit-observation', __webpack_require__(162)); | ||
$templateCache.put('template-obs-show-video', __webpack_require__(164)); | ||
}); | ||
__webpack_require__(68); | ||
__webpack_require__(69); | ||
__webpack_require__(74); | ||
__webpack_require__(75); | ||
__webpack_require__(70); | ||
__webpack_require__(76); | ||
__webpack_require__(71); | ||
__webpack_require__(72); | ||
__webpack_require__(73); | ||
__webpack_require__(74); | ||
__webpack_require__(77); | ||
__webpack_require__(78); | ||
__webpack_require__(79); | ||
__webpack_require__(80); | ||
__webpack_require__(75); | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) | ||
__webpack_require__(81); | ||
/***/ }), | ||
/***/ 180: | ||
/***/ 251: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -168,3 +141,3 @@ | ||
/***/ 68: | ||
/***/ 74: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -341,3 +314,3 @@ | ||
/***/ 69: | ||
/***/ 75: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -395,3 +368,3 @@ | ||
/***/ 70: | ||
/***/ 76: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -485,3 +458,3 @@ | ||
/***/ 71: | ||
/***/ 77: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -534,3 +507,3 @@ | ||
/***/ 72: | ||
/***/ 78: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -550,3 +523,3 @@ | ||
/***/ 73: | ||
/***/ 79: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -593,3 +566,3 @@ | ||
/***/ 74: | ||
/***/ 80: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -686,3 +659,3 @@ | ||
/***/ 75: | ||
/***/ 81: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -689,0 +662,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 165); | ||
/******/ return __webpack_require__(__webpack_require__.s = 180); | ||
/******/ }) | ||
@@ -82,3 +82,3 @@ /************************************************************************/ | ||
/***/ 165: | ||
/***/ 180: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -88,15 +88,15 @@ | ||
__webpack_require__(76); | ||
__webpack_require__(77); | ||
__webpack_require__(78); | ||
__webpack_require__(79); | ||
__webpack_require__(80); | ||
__webpack_require__(81); | ||
__webpack_require__(82); | ||
__webpack_require__(83); | ||
__webpack_require__(84); | ||
__webpack_require__(85); | ||
__webpack_require__(86); | ||
__webpack_require__(87); | ||
__webpack_require__(88); | ||
__webpack_require__(89); | ||
__webpack_require__(90); | ||
/***/ }), | ||
/***/ 178: | ||
/***/ 209: | ||
/***/ (function(module, exports) { | ||
@@ -108,3 +108,3 @@ | ||
/***/ 76: | ||
/***/ 82: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -127,3 +127,3 @@ | ||
/***/ 77: | ||
/***/ 83: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -150,3 +150,3 @@ | ||
restrict: 'E', | ||
template: __webpack_require__(178), | ||
template: __webpack_require__(209), | ||
link: link, | ||
@@ -164,3 +164,3 @@ required: 'patient', | ||
/***/ 78: | ||
/***/ 84: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -185,3 +185,3 @@ | ||
/***/ 79: | ||
/***/ 85: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -216,3 +216,3 @@ | ||
/***/ 80: | ||
/***/ 86: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -234,3 +234,3 @@ | ||
/***/ 81: | ||
/***/ 87: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -252,3 +252,3 @@ | ||
/***/ 82: | ||
/***/ 88: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -290,3 +290,3 @@ | ||
/***/ 83: | ||
/***/ 89: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -422,3 +422,3 @@ | ||
/***/ 84: | ||
/***/ 90: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -425,0 +425,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 166); | ||
/******/ return __webpack_require__(__webpack_require__.s = 181); | ||
/******/ }) | ||
@@ -82,31 +82,5 @@ /************************************************************************/ | ||
/***/ 0: | ||
/***/ 165: | ||
/***/ (function(module, exports) { | ||
var g; | ||
// This works in non-strict mode | ||
g = function () { | ||
return this; | ||
}(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1, eval)("this"); | ||
} catch (e) { | ||
// This works if the window reference is available | ||
if (typeof window === "object") g = window; | ||
} | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
module.exports = g; | ||
/***/ }), | ||
/***/ 152: | ||
/***/ (function(module, exports) { | ||
module.exports = "<div class=\"patient-search-wrapper\">\n <div class=\"tabs\">\n <button ng-if=\"search.searchType.showPrint\" class=\"dialog-button-group fr\" ng-click=\"printPage()\"\n accesskey=\"{{'CLINICAL_PRINT_ACCESS_KEY'| translate}}\" ng-bind-html=\"'CLINICAL_PRINT_TRANSLATION_KEY'|translate\">\n <i class=\"fa fa-print\"></i>\n </button>\n <ul>\n <li class=\"tab-item\" ng-repeat=\"searchType in search.searchTypes\"\n ng-class=\"{'tab-selected': search.isSelectedSearch(searchType)}\">\n <a href=\"\" ng-click=\"search.switchSearchType(searchType)\">\n <span>{{::searchType | titleTranslate}} </span>\n <span ng-if=\"search.showPatientCountOnSearchParameter(searchType)\">({{search.searchResults.length}})</span>\n <span ng-if=\"(searchType.handler && !search.showPatientCountOnSearchParameter(searchType))\" scheduler\n watch-on=\"search.searchParameter\" refresh-time=\"searchType.refreshTime\">({{searchType.patientCount}})</span>\n </a>\n </li>\n </ul>\n </div>\n <div class=\"tab-content\" ng-if=\"::search.searchTypes.length\">\n <div class=\"patient-list-spinner\"></div>\n <span ng-if=\"search.isCurrentSearchLookUp()\">\n <form name=\"filterPatients\" ng-submit=\"filterPatientsAndSubmit()\">\n <div class=\"search-wrapper\">\n <input type=\"text\" id=\"patientIdentifier\" ng-model=\"::search.searchParameter\"\n focus-on=\"search.startPatientSearch\"\n ng-change=\"search.filterPatients()\"/>\n </div>\n </form>\n </span>\n <span ng-if=\"search.searchType && !search.isCurrentSearchLookUp()\">\n <form name=\"searchPatientForm\" ng-submit=\"searchPatients()\" class=\"overflow-hidden\">\n <div class=\"search-patient-id left\">\n <input type=\"text\" id=\"patientIdentifier\" ng-model=\"::search.searchParameter\"\n focus-on=\"search.startPatientSearch\" placeholder=\"{{'SEARCH_NAME_PLACEHOLDER_KEY' | translate: {primaryIdentifier : primaryIdentifier} }}\"/>\n </div>\n <div class=\"reg-srch-btn left\">\n <button type=\"submit\" ng-disabled=\"!search.searchParameter\">\n <i class=\"fa fa-search\"></i>\n {{'SEARCH_KEY' | translate }}\n </button>\n </div>\n </form>\n </span>\n <resize ng-if=\"search.isTabularView()\" search-results=\"search.searchResults\"\n visible-results=\"search.visiblePatients\" class=\"active-visits\">\n <div class=\"ward-details-container\">\n <table class=\"table patient-list-table\">\n <thead>\n <tr>\n <!-- <th><strong>Sl.No</strong></th> -->\n <th ng-repeat=\"heading in getHeadings(search.visiblePatients)\"><strong>{{ ::heading | translate }}</strong></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"row in search.visiblePatients\">\n <!-- <td>\n {{$index + 1}}\n </td> -->\n <td ng-repeat=\"heading in getHeadings(search.visiblePatients)\">\n <a ng-if=\"::isHeadingOfLinkColumn(heading)\"\n ng-click=\"forwardPatient(row, heading)\">{{::row[heading]}}</a>\n <span ng-if=\"::isHeadingOfName(heading)\" ng-click=\"forwardPatient(row)\">{{::row[heading]}}\n <i class=\"ipd-indication fa fa-bed\" ng-if=\"::(row.hasBeenAdmitted===true||row.hasBeenAdmitted==='true')\"></i>\n </span>\n <span ng-if=\"::(!isHeadingOfLinkColumn(heading) && !isHeadingOfName(heading))\">\n {{::row[heading]}}\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </resize>\n <resize ng-if=\"search.isTileView()\" search-results=\"search.searchResults\"\n visible-results=\"search.visiblePatients\" class=\"active-visits\">\n <ul>\n <li ng-repeat=\"patient in search.visiblePatients\" class=\"active-patient\" ng-click=\"forwardPatient(patient)\">\n <img class=\"smallImages\" ng-src=\"{{::patient.image}}\" fallback-src='../images/blank-user.png'>\n <div class=\"patient-name\">{{::patient.name}}</div>\n <div class=\"patient-id\">{{::patient.identifier}}</div>\n <i class=\"ipd-indication fa fa-bed\" ng-if=\"::(patient.hasBeenAdmitted===true||patient.hasBeenAdmitted==='true')\"></i>\n </li>\n </ul>\n </resize>\n <div class=\"note-container\" ng-if=\"search.noResultsMessage\">\n <div class=\"note warning\">\n <div class=\"text\">\n <p class=\"ng-binding\">{{::search.noResultsMessage | translate}}</p>\n </div>\n </div>\n </div>\n </div>\n</div>\n"; | ||
@@ -116,20 +90,20 @@ | ||
/***/ 166: | ||
/***/ 181: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
angular.module('bahmni.common.patientSearch', ['bahmni.common.patient', 'infinite-scroll']).run(function ($templateCache) { | ||
$templateCache.put('template-patient-search-patient-list', __webpack_require__(152)); | ||
$templateCache.put('template-patient-search-patient-list', __webpack_require__(165)); | ||
}); | ||
__webpack_require__(85); | ||
__webpack_require__(86); | ||
__webpack_require__(87); | ||
__webpack_require__(88); | ||
__webpack_require__(91); | ||
__webpack_require__(92); | ||
__webpack_require__(93); | ||
__webpack_require__(94); | ||
/***/ }), | ||
/***/ 85: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ 91: | ||
/***/ (function(module, exports) { | ||
/* WEBPACK VAR INJECTION */(function(global) {global.Bahmni = Bahmni || {}; | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Common = Bahmni.Common || {}; | ||
@@ -149,7 +123,6 @@ Bahmni.Common.PatientSearch = Bahmni.Common.PatientSearch || {}; | ||
}; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) | ||
/***/ }), | ||
/***/ 86: | ||
/***/ 92: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -362,3 +335,3 @@ | ||
/***/ 87: | ||
/***/ 93: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -423,3 +396,3 @@ | ||
/***/ 88: | ||
/***/ 94: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -426,0 +399,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 167); | ||
/******/ return __webpack_require__(__webpack_require__.s = 182); | ||
/******/ }) | ||
@@ -82,29 +82,101 @@ /************************************************************************/ | ||
/***/ 0: | ||
/***/ (function(module, exports) { | ||
/***/ 100: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var g; | ||
"use strict"; | ||
// This works in non-strict mode | ||
g = function () { | ||
return this; | ||
}(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1, eval)("this"); | ||
} catch (e) { | ||
// This works if the window reference is available | ||
if (typeof window === "object") g = window; | ||
} | ||
Bahmni.Common.Util.FormFieldPathUtil = { | ||
getFormNameAndVersion: function (path) { | ||
var formNameAndVersion = path.split("/")[0].split('.'); | ||
return { | ||
formName: formNameAndVersion[0], | ||
formVersion: formNameAndVersion[1] | ||
}; | ||
} | ||
}; | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
/***/ }), | ||
module.exports = g; | ||
/***/ 101: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
angular.module('httpErrorInterceptor', []).config(['$httpProvider', function ($httpProvider) { | ||
var interceptor = ['$rootScope', '$q', function ($rootScope, $q) { | ||
var serverErrorMessages = Bahmni.Common.Constants.serverErrorMessages; | ||
var showError = function (errorMessage) { | ||
var result = _.find(serverErrorMessages, function (listItem) { | ||
return listItem.serverMessage === errorMessage; | ||
}); | ||
if (_.isEmpty(result)) { | ||
$rootScope.$broadcast('event:serverError', errorMessage); | ||
} | ||
}; | ||
function stringAfter(value, searchString) { | ||
var indexOfFirstColon = value.indexOf(searchString); | ||
return value.substr(indexOfFirstColon + 1).trim(); | ||
} | ||
function getServerError(message) { | ||
return stringAfter(message, ':'); | ||
} | ||
function success(response) { | ||
return response; | ||
} | ||
function shouldRedirectToLogin(response) { | ||
var errorMessage = response.data.error ? response.data.error.message : response.data; | ||
if (errorMessage.search("HTTP Status 403 - Session timed out") > 0) { | ||
return true; | ||
} | ||
} | ||
function error(response) { | ||
var data = response.data; | ||
var unexpectedError = "There was an unexpected issue on the server. Please try again"; | ||
if (response.status === 500) { | ||
var errorMessage = data.error && data.error.message ? getServerError(data.error.message) : unexpectedError; | ||
showError(errorMessage); | ||
} else if (response.status === 409) { | ||
var errorMessage = data.error && data.error.message ? getServerError(data.error.message) : "Duplicate entry error"; | ||
showError(errorMessage); | ||
} else if (response.status === 0) { | ||
showError("Could not connect to the server. Please check your connection and try again"); | ||
} else if (response.status === 405) { | ||
showError(unexpectedError); | ||
} else if (response.status === 400) { | ||
var errorMessage = data.error && data.error.message ? data.error.message : data.localizedMessage || "Could not connect to the server. Please check your connection and try again"; | ||
showError(errorMessage); | ||
} else if (response.status === 403) { | ||
var errorMessage = data.error && data.error.message ? data.error.message : unexpectedError; | ||
if (shouldRedirectToLogin(response)) { | ||
$rootScope.$broadcast('event:auth-loginRequired'); | ||
} else { | ||
showError(errorMessage); | ||
} | ||
} else if (response.status === 404) { | ||
if (!_.includes(response.config.url, "implementation_config") && !_.includes(response.config.url, "locale_") && !_.includes(response.config.url, "offlineMetadata")) { | ||
showError("The requested information does not exist"); | ||
} | ||
} | ||
return $q.reject(response); | ||
} | ||
return { | ||
response: success, | ||
responseError: error | ||
}; | ||
}]; | ||
$httpProvider.interceptors.push(interceptor); | ||
}]); | ||
/***/ }), | ||
/***/ 100: | ||
/***/ 102: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -115,2 +187,112 @@ | ||
$(function () { | ||
if (Modernizr.ios) { | ||
// This fix is needed when we use fastclick.js on ipad | ||
$(document).on("click", "label[for]", function () { | ||
var $inputElement = $('input#' + $(this).attr('for')); | ||
var elementType = $inputElement.attr('type'); | ||
if (elementType === 'radio') { | ||
$inputElement.prop('checked', true); | ||
} else if (elementType === 'checkbox') { | ||
$inputElement.prop('checked', !$inputElement.prop('checked')); | ||
} else { | ||
$inputElement.focus(); | ||
} | ||
}); | ||
} | ||
}); | ||
/***/ }), | ||
/***/ 103: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Modernizr.addTest('ios', function () { | ||
return navigator.userAgent.match(/(iPad|iPhone|iPod)/i) ? true : false; | ||
}); | ||
Modernizr.addTest('windowOS', function () { | ||
return navigator.appVersion.indexOf("Win") != -1; | ||
}); | ||
/***/ }), | ||
/***/ 104: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
angular.module('bahmni.common.util').service('offlineStatusService', ['$rootScope', '$interval', 'appService', function ($rootScope, $interval, appService) { | ||
this.checkOfflineStatus = function () { | ||
if (Offline.state === 'up') { | ||
Offline.check(); | ||
} | ||
}; | ||
this.setOfflineOptions = function () { | ||
var networkConnectivity = appService.getAppDescriptor().getConfigValue("networkConnectivity"); | ||
var showNetworkStatusIndicator = networkConnectivity != null ? networkConnectivity.showNetworkStatusMessage : null; | ||
var intervalFrequency = networkConnectivity != null ? networkConnectivity.networkStatusCheckInterval : null; | ||
intervalFrequency = intervalFrequency ? intervalFrequency : 5000; | ||
Offline.options = { | ||
game: true, | ||
checkOnLoad: true, | ||
checks: { xhr: { url: Bahmni.Common.Constants.faviconUrl } } | ||
}; | ||
this.checkOfflineStatus(); | ||
if ($rootScope.offlineStatusCheckIntervalPromise === undefined) { | ||
$rootScope.offlineStatusCheckIntervalPromise = $interval(this.checkOfflineStatus, intervalFrequency); | ||
} | ||
var clearCheckOfflineStatusInterval = function (offlineStatusCheckIntervalPromise) { | ||
$interval.cancel(offlineStatusCheckIntervalPromise); | ||
}; | ||
$rootScope.$on("$destroy", function () { | ||
clearCheckOfflineStatusInterval($rootScope.offlineStatusCheckIntervalPromise); | ||
}); | ||
if (showNetworkStatusIndicator === false) { | ||
$('.offline-ui').css('display', 'none'); | ||
} | ||
}; | ||
}]); | ||
/***/ }), | ||
/***/ 105: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
String.prototype.format = function () { | ||
// eslint-disable-line no-extend-native | ||
var content = this; | ||
for (var i = 0; i < arguments.length; i++) { | ||
var replacement = '{' + i + '}'; | ||
content = content.replace(replacement, arguments[i]); | ||
} | ||
return content; | ||
}; | ||
String.prototype.toValidId = function () { | ||
// eslint-disable-line no-extend-native | ||
var content = this; | ||
return content.replace(/\s/g, '-'); | ||
}; | ||
/***/ }), | ||
/***/ 106: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Bahmni.Common.Util.ValidationUtil = function () { | ||
@@ -177,3 +359,3 @@ var isAcceptableType = function (propertyToCheck) { | ||
/***/ 157: | ||
/***/ 170: | ||
/***/ (function(module, exports) { | ||
@@ -257,9 +439,9 @@ | ||
/***/ 167: | ||
/***/ 182: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
global.Bahmni = Bahmni || {}; | ||
window.Bahmni = window.Bahmni || {}; | ||
Bahmni.Common = Bahmni.Common || {}; | ||
@@ -303,10 +485,4 @@ Bahmni.Common.Util = Bahmni.Common.Util || {}; | ||
__webpack_require__(157); | ||
__webpack_require__(170); | ||
__webpack_require__(89); | ||
__webpack_require__(90); | ||
__webpack_require__(91); | ||
__webpack_require__(92); | ||
__webpack_require__(93); | ||
__webpack_require__(94); | ||
__webpack_require__(95); | ||
@@ -318,7 +494,12 @@ __webpack_require__(96); | ||
__webpack_require__(100); | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) | ||
__webpack_require__(101); | ||
__webpack_require__(102); | ||
__webpack_require__(103); | ||
__webpack_require__(104); | ||
__webpack_require__(105); | ||
__webpack_require__(106); | ||
/***/ }), | ||
/***/ 89: | ||
/***/ 95: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -372,3 +553,3 @@ | ||
/***/ 90: | ||
/***/ 96: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -410,3 +591,3 @@ | ||
/***/ 91: | ||
/***/ 97: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -426,3 +607,3 @@ | ||
/***/ 92: | ||
/***/ 98: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -713,3 +894,3 @@ | ||
/***/ 93: | ||
/***/ 99: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -737,210 +918,2 @@ | ||
/***/ }), | ||
/***/ 94: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Bahmni.Common.Util.FormFieldPathUtil = { | ||
getFormNameAndVersion: function (path) { | ||
var formNameAndVersion = path.split("/")[0].split('.'); | ||
return { | ||
formName: formNameAndVersion[0], | ||
formVersion: formNameAndVersion[1] | ||
}; | ||
} | ||
}; | ||
/***/ }), | ||
/***/ 95: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
angular.module('httpErrorInterceptor', []).config(['$httpProvider', function ($httpProvider) { | ||
var interceptor = ['$rootScope', '$q', function ($rootScope, $q) { | ||
var serverErrorMessages = Bahmni.Common.Constants.serverErrorMessages; | ||
var showError = function (errorMessage) { | ||
var result = _.find(serverErrorMessages, function (listItem) { | ||
return listItem.serverMessage === errorMessage; | ||
}); | ||
if (_.isEmpty(result)) { | ||
$rootScope.$broadcast('event:serverError', errorMessage); | ||
} | ||
}; | ||
function stringAfter(value, searchString) { | ||
var indexOfFirstColon = value.indexOf(searchString); | ||
return value.substr(indexOfFirstColon + 1).trim(); | ||
} | ||
function getServerError(message) { | ||
return stringAfter(message, ':'); | ||
} | ||
function success(response) { | ||
return response; | ||
} | ||
function shouldRedirectToLogin(response) { | ||
var errorMessage = response.data.error ? response.data.error.message : response.data; | ||
if (errorMessage.search("HTTP Status 403 - Session timed out") > 0) { | ||
return true; | ||
} | ||
} | ||
function error(response) { | ||
var data = response.data; | ||
var unexpectedError = "There was an unexpected issue on the server. Please try again"; | ||
if (response.status === 500) { | ||
var errorMessage = data.error && data.error.message ? getServerError(data.error.message) : unexpectedError; | ||
showError(errorMessage); | ||
} else if (response.status === 409) { | ||
var errorMessage = data.error && data.error.message ? getServerError(data.error.message) : "Duplicate entry error"; | ||
showError(errorMessage); | ||
} else if (response.status === 0) { | ||
showError("Could not connect to the server. Please check your connection and try again"); | ||
} else if (response.status === 405) { | ||
showError(unexpectedError); | ||
} else if (response.status === 400) { | ||
var errorMessage = data.error && data.error.message ? data.error.message : data.localizedMessage || "Could not connect to the server. Please check your connection and try again"; | ||
showError(errorMessage); | ||
} else if (response.status === 403) { | ||
var errorMessage = data.error && data.error.message ? data.error.message : unexpectedError; | ||
if (shouldRedirectToLogin(response)) { | ||
$rootScope.$broadcast('event:auth-loginRequired'); | ||
} else { | ||
showError(errorMessage); | ||
} | ||
} else if (response.status === 404) { | ||
if (!_.includes(response.config.url, "implementation_config") && !_.includes(response.config.url, "locale_") && !_.includes(response.config.url, "offlineMetadata")) { | ||
showError("The requested information does not exist"); | ||
} | ||
} | ||
return $q.reject(response); | ||
} | ||
return { | ||
response: success, | ||
responseError: error | ||
}; | ||
}]; | ||
$httpProvider.interceptors.push(interceptor); | ||
}]); | ||
/***/ }), | ||
/***/ 96: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
$(function () { | ||
if (Modernizr.ios) { | ||
// This fix is needed when we use fastclick.js on ipad | ||
$(document).on("click", "label[for]", function () { | ||
var $inputElement = $('input#' + $(this).attr('for')); | ||
var elementType = $inputElement.attr('type'); | ||
if (elementType === 'radio') { | ||
$inputElement.prop('checked', true); | ||
} else if (elementType === 'checkbox') { | ||
$inputElement.prop('checked', !$inputElement.prop('checked')); | ||
} else { | ||
$inputElement.focus(); | ||
} | ||
}); | ||
} | ||
}); | ||
/***/ }), | ||
/***/ 97: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Modernizr.addTest('ios', function () { | ||
return navigator.userAgent.match(/(iPad|iPhone|iPod)/i) ? true : false; | ||
}); | ||
Modernizr.addTest('windowOS', function () { | ||
return navigator.appVersion.indexOf("Win") != -1; | ||
}); | ||
/***/ }), | ||
/***/ 98: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
angular.module('bahmni.common.util').service('offlineStatusService', ['$rootScope', '$interval', 'appService', function ($rootScope, $interval, appService) { | ||
this.checkOfflineStatus = function () { | ||
if (Offline.state === 'up') { | ||
Offline.check(); | ||
} | ||
}; | ||
this.setOfflineOptions = function () { | ||
var networkConnectivity = appService.getAppDescriptor().getConfigValue("networkConnectivity"); | ||
var showNetworkStatusIndicator = networkConnectivity != null ? networkConnectivity.showNetworkStatusMessage : null; | ||
var intervalFrequency = networkConnectivity != null ? networkConnectivity.networkStatusCheckInterval : null; | ||
intervalFrequency = intervalFrequency ? intervalFrequency : 5000; | ||
Offline.options = { | ||
game: true, | ||
checkOnLoad: true, | ||
checks: { xhr: { url: Bahmni.Common.Constants.faviconUrl } } | ||
}; | ||
this.checkOfflineStatus(); | ||
if ($rootScope.offlineStatusCheckIntervalPromise === undefined) { | ||
$rootScope.offlineStatusCheckIntervalPromise = $interval(this.checkOfflineStatus, intervalFrequency); | ||
} | ||
var clearCheckOfflineStatusInterval = function (offlineStatusCheckIntervalPromise) { | ||
$interval.cancel(offlineStatusCheckIntervalPromise); | ||
}; | ||
$rootScope.$on("$destroy", function () { | ||
clearCheckOfflineStatusInterval($rootScope.offlineStatusCheckIntervalPromise); | ||
}); | ||
if (showNetworkStatusIndicator === false) { | ||
$('.offline-ui').css('display', 'none'); | ||
} | ||
}; | ||
}]); | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
String.prototype.format = function () { | ||
// eslint-disable-line no-extend-native | ||
var content = this; | ||
for (var i = 0; i < arguments.length; i++) { | ||
var replacement = '{' + i + '}'; | ||
content = content.replace(replacement, arguments[i]); | ||
} | ||
return content; | ||
}; | ||
String.prototype.toValidId = function () { | ||
// eslint-disable-line no-extend-native | ||
var content = this; | ||
return content.replace(/\s/g, '-'); | ||
}; | ||
/***/ }) | ||
@@ -947,0 +920,0 @@ |
{ | ||
"name": "bahmniapps-commons", | ||
"version": "0.0.1-beta.3", | ||
"version": "0.0.1-beta.5", | ||
"description": "Common Modules carved out from bahmniapps.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
613012
17
12426