@egovernments/digit-ui-libraries 1.5.0-beta.1 → 1.5.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -970,6 +970,8 @@ var LocalizationService = {
970
970
  locale: locale,
971
971
  tenantId: tenantId
972
972
  });
973
+ localStorage.setItem("Employee.locale", locale);
974
+ localStorage.setItem("Citizen.locale", locale);
973
975
  Digit.SessionStorage.set("locale", locale);
974
976
  i18next.changeLanguage(locale);
975
977
  },
@@ -34151,6 +34153,10 @@ var Download = {
34151
34153
  }
34152
34154
 
34153
34155
  var saveAs = function saveAs(uri, filename) {
34156
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34157
+ window.mSewaApp.downloadBase64File(uri, filename);
34158
+ }
34159
+
34154
34160
  var link = document.createElement("a");
34155
34161
 
34156
34162
  if (typeof link.download === "string") {
@@ -34207,6 +34213,10 @@ var Download = {
34207
34213
  }
34208
34214
 
34209
34215
  var saveAs = function saveAs(uri, filename) {
34216
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34217
+ window.mSewaApp.downloadBase64File(uri, filename);
34218
+ }
34219
+
34210
34220
  var link = document.createElement("a");
34211
34221
 
34212
34222
  if (typeof link.download === "string") {
@@ -37126,7 +37136,7 @@ var ShareFiles = {
37126
37136
  return window.open("mailto:?body=" + shortUrl, "_blank");
37127
37137
 
37128
37138
  case "whatsapp":
37129
- return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37139
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) return window.open("https://wa.me/send?text=" + shortUrl, "_blank");else return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37130
37140
 
37131
37141
  default:
37132
37142
  return window.open(shortUrl, "_blank");