@egovernments/digit-ui-libraries 1.5.0-beta.2 → 1.5.0-beta.5
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.
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -973,6 +973,8 @@ var LocalizationService = {
|
|
|
973
973
|
locale: locale,
|
|
974
974
|
tenantId: tenantId
|
|
975
975
|
});
|
|
976
|
+
localStorage.setItem("Employee.locale", locale);
|
|
977
|
+
localStorage.setItem("Citizen.locale", locale);
|
|
976
978
|
Digit.SessionStorage.set("locale", locale);
|
|
977
979
|
i18next.changeLanguage(locale);
|
|
978
980
|
},
|
|
@@ -34154,6 +34156,10 @@ var Download = {
|
|
|
34154
34156
|
}
|
|
34155
34157
|
|
|
34156
34158
|
var saveAs = function saveAs(uri, filename) {
|
|
34159
|
+
if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
|
|
34160
|
+
window.mSewaApp.downloadBase64File(uri, filename);
|
|
34161
|
+
}
|
|
34162
|
+
|
|
34157
34163
|
var link = document.createElement("a");
|
|
34158
34164
|
|
|
34159
34165
|
if (typeof link.download === "string") {
|
|
@@ -34210,6 +34216,10 @@ var Download = {
|
|
|
34210
34216
|
}
|
|
34211
34217
|
|
|
34212
34218
|
var saveAs = function saveAs(uri, filename) {
|
|
34219
|
+
if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
|
|
34220
|
+
window.mSewaApp.downloadBase64File(uri, filename);
|
|
34221
|
+
}
|
|
34222
|
+
|
|
34213
34223
|
var link = document.createElement("a");
|
|
34214
34224
|
|
|
34215
34225
|
if (typeof link.download === "string") {
|
|
@@ -37126,10 +37136,10 @@ var ShareFiles = {
|
|
|
37126
37136
|
targetLink: function targetLink(target, shortUrl) {
|
|
37127
37137
|
switch (target) {
|
|
37128
37138
|
case "mail":
|
|
37129
|
-
return window.open("mailto:?body=" + shortUrl, "_blank");
|
|
37139
|
+
return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
|
|
37130
37140
|
|
|
37131
37141
|
case "whatsapp":
|
|
37132
|
-
return window.open(
|
|
37142
|
+
return window.open('https://' + (window.mSewaApp && window.mSewaApp.isMsewaApp() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
|
|
37133
37143
|
|
|
37134
37144
|
default:
|
|
37135
37145
|
return window.open(shortUrl, "_blank");
|