Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bahmniapps-commons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahmniapps-commons - npm Package Compare versions

Comparing version 0.0.1-beta.1 to 0.0.1-beta.2

dist/bahmni-appframework-commons.js

42

dist/authentication.js

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 69);
/******/ return __webpack_require__(__webpack_require__.s = 147);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 0:
/***/ 1:
/***/ (function(module, exports, __webpack_require__) {

@@ -322,3 +322,3 @@

/***/ 1:
/***/ 147:
/***/ (function(module, exports, __webpack_require__) {

@@ -329,2 +329,19 @@

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) {

@@ -393,3 +410,3 @@ angular.extend(this, user);

/***/ 2:
/***/ 3:
/***/ (function(module, exports, __webpack_require__) {

@@ -471,19 +488,2 @@

/***/ }),
/***/ 69:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
window.Bahmni = Bahmni || {};
Bahmni.Auth = Bahmni.Auth || {};
angular.module('authentication', ['ui.router']);
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(0);
/***/ })

@@ -490,0 +490,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 70);
/******/ return __webpack_require__(__webpack_require__.s = 153);
/******/ })

@@ -82,8 +82,206 @@ /************************************************************************/

/***/ 10:
/***/ 153:
/***/ (function(module, exports, __webpack_require__) {
angular.module('bahmni.common.patient', []);
__webpack_require__(68);
__webpack_require__(69);
__webpack_require__(70);
__webpack_require__(71);
__webpack_require__(72);
__webpack_require__(73);
__webpack_require__(74);
__webpack_require__(75);
__webpack_require__(76);
/***/ }),
/***/ 166:
/***/ (function(module, exports) {
module.exports = "<div class=\"patient-details\">\n <i class=\"fa fa-user\"></i>\n <span>{{patient.name}}</span>\n <span>({{patient.identifier}},</span>\n <span>{{patient.gender | gender }},</span>\n <span>{{patient.age}} {{ 'YEARS_LABEL'|translate }})</span>\n</div>\n";
/***/ }),
/***/ 68:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').directive('stopEventPropagation', function () {
return {
link: function (scope, elem, attrs) {
elem.on(attrs.stopEventPropagation, function (e) {
e.stopPropagation();
});
}
};
});
/***/ }),
/***/ 69:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').directive('patientSummary', function () {
var link = function ($scope) {
$scope.showPatientDetails = false;
$scope.togglePatientDetails = function () {
$scope.showPatientDetails = !$scope.showPatientDetails;
};
$scope.onImageClick = function () {
if ($scope.onImageClickHandler) {
$scope.onImageClickHandler();
}
};
};
return {
restrict: 'E',
template: __webpack_require__(166),
link: link,
required: 'patient',
scope: {
patient: "=",
bedDetails: "=",
onImageClickHandler: "&"
}
};
});
/***/ }),
/***/ 70:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('age', function () {
return function (age) {
if (age.years) {
return age.years + " y";
}
if (age.months) {
return age.months + " m";
}
return age.days + " d";
};
});
/***/ }),
/***/ 71:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('birthDateToAgeText', ['$filter', '$translate', function ($filter, $translate) {
return function (birthDate) {
var DateUtil = Bahmni.Common.Util.DateUtil;
if (birthDate) {
var age = DateUtil.diffInYearsMonthsDays(birthDate, DateUtil.now());
var ageInString = "";
if (age.years) {
ageInString += age.years + " " + $translate.instant("CLINICAL_YEARS_TRANSLATION_KEY") + " ";
}
if (age.months) {
ageInString += age.months + " " + $translate.instant("CLINICAL_MONTHS_TRANSLATION_KEY") + " ";
}
if (age.days) {
ageInString += age.days + " " + $translate.instant("CLINICAL_DAYS_TRANSLATION_KEY") + " ";
}
return ageInString;
} else {
return "";
}
};
}]);
/***/ }),
/***/ 72:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('dateToAge', ['$filter', function ($filter) {
return function (birthDate, referenceDate) {
var DateUtil = Bahmni.Common.Util.DateUtil;
referenceDate = referenceDate || DateUtil.now();
var age = DateUtil.diffInYearsMonthsDays(birthDate, referenceDate);
return $filter('age')(age);
};
}]);
/***/ }),
/***/ 73:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('gender', ['$rootScope', function ($rootScope) {
return function (genderChar) {
if (genderChar == null) {
return "Unknown";
}
return $rootScope.genderMap[angular.uppercase(genderChar)];
};
}]);
/***/ }),
/***/ 74:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.PatientContextMapper = function () {
this.map = function (patient) {
var patientContext = {};
patientContext.uuid = patient.uuid;
patientContext.givenName = patient.person.names[0].givenName;
var familyName = patient.person.names[0].familyName;
patientContext.familyName = familyName ? familyName : "";
patientContext.middleName = patient.person.names[0].middleName;
patientContext.gender = patient.person.gender;
if (patient.identifiers) {
var primaryIdentifier = patient.identifiers[0].primaryIdentifier;
patientContext.identifier = primaryIdentifier ? primaryIdentifier : patient.identifiers[0].identifier;
}
if (patient.person.birthdate) {
patientContext.birthdate = parseDate(patient.person.birthdate);
}
return patientContext;
};
var parseDate = function (dateStr) {
if (dateStr) {
return Bahmni.Common.Util.DateUtil.parse(dateStr.substr(0, 10));
}
return dateStr;
};
};
/***/ }),
/***/ 75:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.PatientMapper = function (patientConfig, $rootScope, $translate) {

@@ -214,3 +412,3 @@ this.patientConfig = patientConfig;

/***/ 11:
/***/ 76:
/***/ (function(module, exports, __webpack_require__) {

@@ -275,200 +473,2 @@

/***/ }),
/***/ 3:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').directive('stopEventPropagation', function () {
return {
link: function (scope, elem, attrs) {
elem.on(attrs.stopEventPropagation, function (e) {
e.stopPropagation();
});
}
};
});
/***/ }),
/***/ 4:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').directive('patientSummary', function () {
var link = function ($scope) {
$scope.showPatientDetails = false;
$scope.togglePatientDetails = function () {
$scope.showPatientDetails = !$scope.showPatientDetails;
};
$scope.onImageClick = function () {
if ($scope.onImageClickHandler) {
$scope.onImageClickHandler();
}
};
};
return {
restrict: 'E',
template: __webpack_require__(77),
link: link,
required: 'patient',
scope: {
patient: "=",
bedDetails: "=",
onImageClickHandler: "&"
}
};
});
/***/ }),
/***/ 5:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('age', function () {
return function (age) {
if (age.years) {
return age.years + " y";
}
if (age.months) {
return age.months + " m";
}
return age.days + " d";
};
});
/***/ }),
/***/ 6:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('birthDateToAgeText', ['$filter', '$translate', function ($filter, $translate) {
return function (birthDate) {
var DateUtil = Bahmni.Common.Util.DateUtil;
if (birthDate) {
var age = DateUtil.diffInYearsMonthsDays(birthDate, DateUtil.now());
var ageInString = "";
if (age.years) {
ageInString += age.years + " " + $translate.instant("CLINICAL_YEARS_TRANSLATION_KEY") + " ";
}
if (age.months) {
ageInString += age.months + " " + $translate.instant("CLINICAL_MONTHS_TRANSLATION_KEY") + " ";
}
if (age.days) {
ageInString += age.days + " " + $translate.instant("CLINICAL_DAYS_TRANSLATION_KEY") + " ";
}
return ageInString;
} else {
return "";
}
};
}]);
/***/ }),
/***/ 7:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('dateToAge', ['$filter', function ($filter) {
return function (birthDate, referenceDate) {
var DateUtil = Bahmni.Common.Util.DateUtil;
referenceDate = referenceDate || DateUtil.now();
var age = DateUtil.diffInYearsMonthsDays(birthDate, referenceDate);
return $filter('age')(age);
};
}]);
/***/ }),
/***/ 70:
/***/ (function(module, exports, __webpack_require__) {
angular.module('bahmni.common.patient', []);
__webpack_require__(3);
__webpack_require__(4);
__webpack_require__(5);
__webpack_require__(6);
__webpack_require__(7);
__webpack_require__(8);
__webpack_require__(9);
__webpack_require__(10);
__webpack_require__(11);
/***/ }),
/***/ 77:
/***/ (function(module, exports) {
module.exports = "<div class=\"patient-details\">\n <i class=\"fa fa-user\"></i>\n <span>{{patient.name}}</span>\n <span>({{patient.identifier}},</span>\n <span>{{patient.gender | gender }},</span>\n <span>{{patient.age}} {{ 'YEARS_LABEL'|translate }})</span>\n</div>\n";
/***/ }),
/***/ 8:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
angular.module('bahmni.common.patient').filter('gender', ['$rootScope', function ($rootScope) {
return function (genderChar) {
if (genderChar == null) {
return "Unknown";
}
return $rootScope.genderMap[angular.uppercase(genderChar)];
};
}]);
/***/ }),
/***/ 9:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.PatientContextMapper = function () {
this.map = function (patient) {
var patientContext = {};
patientContext.uuid = patient.uuid;
patientContext.givenName = patient.person.names[0].givenName;
var familyName = patient.person.names[0].familyName;
patientContext.familyName = familyName ? familyName : "";
patientContext.middleName = patient.person.names[0].middleName;
patientContext.gender = patient.person.gender;
if (patient.identifiers) {
var primaryIdentifier = patient.identifiers[0].primaryIdentifier;
patientContext.identifier = primaryIdentifier ? primaryIdentifier : patient.identifiers[0].identifier;
}
if (patient.person.birthdate) {
patientContext.birthdate = parseDate(patient.person.birthdate);
}
return patientContext;
};
var parseDate = function (dateStr) {
if (dateStr) {
return Bahmni.Common.Util.DateUtil.parse(dateStr.substr(0, 10));
}
return dateStr;
};
};
/***/ })

@@ -475,0 +475,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 71);
/******/ return __webpack_require__(__webpack_require__.s = 155);
/******/ })

@@ -82,8 +82,176 @@ /************************************************************************/

/***/ 12:
/***/ 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;
/***/ }),
/***/ 146:
/***/ (function(module, exports) {
/*** IMPORTS FROM imports-loader ***/
(function() {
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-touch-mq-cssclasses-teststyles-prefixes
*/
;window.Modernizr = function (a, b, c) {
function x(a) {
j.cssText = a;
}function y(a, b) {
return x(m.join(a + ";") + (b || ""));
}function z(a, b) {
return typeof a === b;
}function A(a, b) {
return !!~("" + a).indexOf(b);
}function B(a, b, d) {
for (var e in a) {
var f = b[a[e]];if (f !== c) return d === !1 ? a[e] : z(f, "function") ? f.bind(d || b) : f;
}return !1;
}var d = "2.8.3",
e = {},
f = !0,
g = b.documentElement,
h = "modernizr",
i = b.createElement(h),
j = i.style,
k,
l = {}.toString,
m = " -webkit- -moz- -o- -ms- ".split(" "),
n = {},
o = {},
p = {},
q = [],
r = q.slice,
s,
t = function (a, c, d, e) {
var f,
i,
j,
k,
l = b.createElement("div"),
m = b.body,
n = m || b.createElement("body");if (parseInt(d, 10)) while (d--) j = b.createElement("div"), j.id = e ? e[d] : h + (d + 1), l.appendChild(j);return f = ["&#173;", '<style id="s', h, '">', a, "</style>"].join(""), l.id = h, (m ? l : n).innerHTML += f, n.appendChild(l), m || (n.style.background = "", n.style.overflow = "hidden", k = g.style.overflow, g.style.overflow = "hidden", g.appendChild(n)), i = c(l, a), m ? l.parentNode.removeChild(l) : (n.parentNode.removeChild(n), g.style.overflow = k), !!i;
},
u = function (b) {
var c = a.matchMedia || a.msMatchMedia;if (c) return c(b) && c(b).matches || !1;var d;return t("@media " + b + " { #" + h + " { position: absolute; } }", function (b) {
d = (a.getComputedStyle ? getComputedStyle(b, null) : b.currentStyle)["position"] == "absolute";
}), d;
},
v = {}.hasOwnProperty,
w;!z(v, "undefined") && !z(v.call, "undefined") ? w = function (a, b) {
return v.call(a, b);
} : w = function (a, b) {
return b in a && z(a.constructor.prototype[b], "undefined");
}, Function.prototype.bind || (Function.prototype.bind = function (b) {
var c = this;if (typeof c != "function") throw new TypeError();var d = r.call(arguments, 1),
e = function () {
if (this instanceof e) {
var a = function () {};a.prototype = c.prototype;var f = new a(),
g = c.apply(f, d.concat(r.call(arguments)));return Object(g) === g ? g : f;
}return c.apply(b, d.concat(r.call(arguments)));
};return e;
}), n.touch = function () {
var c;return "ontouchstart" in a || a.DocumentTouch && b instanceof DocumentTouch ? c = !0 : t(["@media (", m.join("touch-enabled),("), h, ")", "{#modernizr{top:9px;position:absolute}}"].join(""), function (a) {
c = a.offsetTop === 9;
}), c;
};for (var C in n) w(n, C) && (s = C.toLowerCase(), e[s] = n[C](), q.push((e[s] ? "" : "no-") + s));return e.addTest = function (a, b) {
if (typeof a == "object") for (var d in a) w(a, d) && e.addTest(d, a[d]);else {
a = a.toLowerCase();if (e[a] !== c) return e;b = typeof b == "function" ? b() : b, typeof f != "undefined" && f && (g.className += " " + (b ? "" : "no-") + a), e[a] = b;
}return e;
}, x(""), i = k = null, e._version = d, e._prefixes = m, e.mq = u, e.testStyles = t, g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (f ? " js " + q.join(" ") : ""), e;
}(this, this.document);
}.call(window));
/***/ }),
/***/ 155:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
global.Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.Util = Bahmni.Common.Util || {};
angular.module('bahmni.common.util', []).provider('$bahmniCookieStore', [function () {
var self = this;
self.defaultOptions = {};
var fixedEncodeURIComponent = function (str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16);
});
};
self.setDefaultOptions = function (options) {
self.defaultOptions = options;
};
self.$get = function () {
return {
get: function (name) {
var jsonCookie = $.cookie(name);
if (jsonCookie) {
return angular.fromJson(decodeURIComponent(jsonCookie));
}
return null;
},
put: function (name, value, options) {
options = $.extend({}, self.defaultOptions, options);
$.cookie.raw = true;
$.cookie(name, fixedEncodeURIComponent(angular.toJson(value)), options);
},
remove: function (name, options) {
options = $.extend({}, self.defaultOptions, options);
$.removeCookie(name, options);
}
};
};
}]);
__webpack_require__(146);
__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);
__webpack_require__(91);
__webpack_require__(92);
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
/***/ 81:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.Common.Util.AgeUtil = function () {

@@ -132,3 +300,3 @@ var differenceInMonths = function (date, anotherDate) {

/***/ 13:
/***/ 82:
/***/ (function(module, exports, __webpack_require__) {

@@ -170,3 +338,3 @@

/***/ 14:
/***/ 83:
/***/ (function(module, exports, __webpack_require__) {

@@ -186,3 +354,3 @@

/***/ 15:
/***/ 84:
/***/ (function(module, exports, __webpack_require__) {

@@ -473,3 +641,3 @@

/***/ 16:
/***/ 85:
/***/ (function(module, exports, __webpack_require__) {

@@ -499,3 +667,3 @@

/***/ 17:
/***/ 86:
/***/ (function(module, exports, __webpack_require__) {

@@ -518,3 +686,3 @@

/***/ 18:
/***/ 87:
/***/ (function(module, exports, __webpack_require__) {

@@ -599,3 +767,3 @@

/***/ 19:
/***/ 88:
/***/ (function(module, exports, __webpack_require__) {

@@ -625,3 +793,3 @@

/***/ 20:
/***/ 89:
/***/ (function(module, exports, __webpack_require__) {

@@ -642,3 +810,3 @@

/***/ 21:
/***/ 90:
/***/ (function(module, exports, __webpack_require__) {

@@ -688,3 +856,3 @@

/***/ 22:
/***/ 91:
/***/ (function(module, exports, __webpack_require__) {

@@ -713,3 +881,3 @@

/***/ 23:
/***/ 92:
/***/ (function(module, exports, __webpack_require__) {

@@ -779,170 +947,2 @@

/***/ }),
/***/ 25:
/***/ (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;
/***/ }),
/***/ 68:
/***/ (function(module, exports) {
/*** IMPORTS FROM imports-loader ***/
(function() {
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-touch-mq-cssclasses-teststyles-prefixes
*/
;window.Modernizr = function (a, b, c) {
function x(a) {
j.cssText = a;
}function y(a, b) {
return x(m.join(a + ";") + (b || ""));
}function z(a, b) {
return typeof a === b;
}function A(a, b) {
return !!~("" + a).indexOf(b);
}function B(a, b, d) {
for (var e in a) {
var f = b[a[e]];if (f !== c) return d === !1 ? a[e] : z(f, "function") ? f.bind(d || b) : f;
}return !1;
}var d = "2.8.3",
e = {},
f = !0,
g = b.documentElement,
h = "modernizr",
i = b.createElement(h),
j = i.style,
k,
l = {}.toString,
m = " -webkit- -moz- -o- -ms- ".split(" "),
n = {},
o = {},
p = {},
q = [],
r = q.slice,
s,
t = function (a, c, d, e) {
var f,
i,
j,
k,
l = b.createElement("div"),
m = b.body,
n = m || b.createElement("body");if (parseInt(d, 10)) while (d--) j = b.createElement("div"), j.id = e ? e[d] : h + (d + 1), l.appendChild(j);return f = ["&#173;", '<style id="s', h, '">', a, "</style>"].join(""), l.id = h, (m ? l : n).innerHTML += f, n.appendChild(l), m || (n.style.background = "", n.style.overflow = "hidden", k = g.style.overflow, g.style.overflow = "hidden", g.appendChild(n)), i = c(l, a), m ? l.parentNode.removeChild(l) : (n.parentNode.removeChild(n), g.style.overflow = k), !!i;
},
u = function (b) {
var c = a.matchMedia || a.msMatchMedia;if (c) return c(b) && c(b).matches || !1;var d;return t("@media " + b + " { #" + h + " { position: absolute; } }", function (b) {
d = (a.getComputedStyle ? getComputedStyle(b, null) : b.currentStyle)["position"] == "absolute";
}), d;
},
v = {}.hasOwnProperty,
w;!z(v, "undefined") && !z(v.call, "undefined") ? w = function (a, b) {
return v.call(a, b);
} : w = function (a, b) {
return b in a && z(a.constructor.prototype[b], "undefined");
}, Function.prototype.bind || (Function.prototype.bind = function (b) {
var c = this;if (typeof c != "function") throw new TypeError();var d = r.call(arguments, 1),
e = function () {
if (this instanceof e) {
var a = function () {};a.prototype = c.prototype;var f = new a(),
g = c.apply(f, d.concat(r.call(arguments)));return Object(g) === g ? g : f;
}return c.apply(b, d.concat(r.call(arguments)));
};return e;
}), n.touch = function () {
var c;return "ontouchstart" in a || a.DocumentTouch && b instanceof DocumentTouch ? c = !0 : t(["@media (", m.join("touch-enabled),("), h, ")", "{#modernizr{top:9px;position:absolute}}"].join(""), function (a) {
c = a.offsetTop === 9;
}), c;
};for (var C in n) w(n, C) && (s = C.toLowerCase(), e[s] = n[C](), q.push((e[s] ? "" : "no-") + s));return e.addTest = function (a, b) {
if (typeof a == "object") for (var d in a) w(a, d) && e.addTest(d, a[d]);else {
a = a.toLowerCase();if (e[a] !== c) return e;b = typeof b == "function" ? b() : b, typeof f != "undefined" && f && (g.className += " " + (b ? "" : "no-") + a), e[a] = b;
}return e;
}, x(""), i = k = null, e._version = d, e._prefixes = m, e.mq = u, e.testStyles = t, g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (f ? " js " + q.join(" ") : ""), e;
}(this, this.document);
}.call(window));
/***/ }),
/***/ 71:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
global.Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.Util = Bahmni.Common.Util || {};
angular.module('bahmni.common.util', []).provider('$bahmniCookieStore', [function () {
var self = this;
self.defaultOptions = {};
var fixedEncodeURIComponent = function (str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16);
});
};
self.setDefaultOptions = function (options) {
self.defaultOptions = options;
};
self.$get = function () {
return {
get: function (name) {
var jsonCookie = $.cookie(name);
if (jsonCookie) {
return angular.fromJson(decodeURIComponent(jsonCookie));
}
return null;
},
put: function (name, value, options) {
options = $.extend({}, self.defaultOptions, options);
$.cookie.raw = true;
$.cookie(name, fixedEncodeURIComponent(angular.toJson(value)), options);
},
remove: function (name, options) {
options = $.extend({}, self.defaultOptions, options);
$.removeCookie(name, options);
}
};
};
}]);
__webpack_require__(68);
__webpack_require__(12);
__webpack_require__(13);
__webpack_require__(14);
__webpack_require__(15);
__webpack_require__(16);
__webpack_require__(17);
__webpack_require__(18);
__webpack_require__(19);
__webpack_require__(20);
__webpack_require__(21);
__webpack_require__(22);
__webpack_require__(23);
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(25)))
/***/ })

@@ -949,0 +949,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 72);
/******/ return __webpack_require__(__webpack_require__.s = 156);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 24:
/***/ 156:
/***/ (function(module, exports, __webpack_require__) {

@@ -89,21 +89,2 @@

var Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.DisplayControl = Bahmni.Common.DisplayControl || {};
Bahmni.Common.DisplayControl.PatientProfile = Bahmni.Common.DisplayControl.PatientProfile || {};
angular.module('bahmni.common.displaycontrol.patientprofile', []);
__webpack_require__(73);
__webpack_require__(74);
__webpack_require__(75);
/***/ }),
/***/ 72:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
window.Bahmni = Bahmni || {};

@@ -115,7 +96,7 @@ Bahmni.Common = Bahmni.Common || {};

__webpack_require__(24);
__webpack_require__(93);
/***/ }),
/***/ 73:
/***/ 157:
/***/ (function(module, exports, __webpack_require__) {

@@ -221,3 +202,3 @@

},
template: __webpack_require__(78)
template: __webpack_require__(167)
};

@@ -229,3 +210,3 @@ }]);

/***/ 74:
/***/ 158:
/***/ (function(module, exports, __webpack_require__) {

@@ -249,3 +230,3 @@

/***/ 75:
/***/ 159:
/***/ (function(module, exports, __webpack_require__) {

@@ -267,3 +248,3 @@

/***/ 78:
/***/ 167:
/***/ (function(module, exports) {

@@ -273,2 +254,21 @@

/***/ }),
/***/ 93:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.DisplayControl = Bahmni.Common.DisplayControl || {};
Bahmni.Common.DisplayControl.PatientProfile = Bahmni.Common.DisplayControl.PatientProfile || {};
angular.module('bahmni.common.displaycontrol.patientprofile', []);
__webpack_require__(157);
__webpack_require__(158);
__webpack_require__(159);
/***/ })

@@ -275,0 +275,0 @@

{
"name": "bahmniapps-commons",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "Common Modules carved out from bahmniapps.",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc