@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.modern.js
CHANGED
|
@@ -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") {
|
|
@@ -37123,10 +37133,10 @@ var ShareFiles = {
|
|
|
37123
37133
|
targetLink: function targetLink(target, shortUrl) {
|
|
37124
37134
|
switch (target) {
|
|
37125
37135
|
case "mail":
|
|
37126
|
-
return window.open("mailto:?body=" + shortUrl, "_blank");
|
|
37136
|
+
return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
|
|
37127
37137
|
|
|
37128
37138
|
case "whatsapp":
|
|
37129
|
-
return window.open(
|
|
37139
|
+
return window.open('https://' + (window.mSewaApp && window.mSewaApp.isMsewaApp() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
|
|
37130
37140
|
|
|
37131
37141
|
default:
|
|
37132
37142
|
return window.open(shortUrl, "_blank");
|