@egovernments/digit-ui-libraries 1.3.6 → 1.3.7
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 +39 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -40
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -217,7 +217,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
|
|
|
217
217
|
var index = getIndex(id, fieldList);
|
|
218
218
|
|
|
219
219
|
if (!action) {
|
|
220
|
-
console.log("no action found");
|
|
221
220
|
return;
|
|
222
221
|
}
|
|
223
222
|
|
|
@@ -2554,7 +2553,6 @@ var StoreService = {
|
|
|
2554
2553
|
},
|
|
2555
2554
|
defaultData: function (stateCode, moduleCode, language) {
|
|
2556
2555
|
try {
|
|
2557
|
-
console.log(moduleCode, stateCode);
|
|
2558
2556
|
var LocalePromise = LocalizationService.getLocale({
|
|
2559
2557
|
modules: ["rainmaker-" + moduleCode.toLowerCase()],
|
|
2560
2558
|
locale: language,
|
|
@@ -2759,8 +2757,6 @@ var LoginService = {
|
|
|
2759
2757
|
},
|
|
2760
2758
|
authenticate: function (details, stateCode) {
|
|
2761
2759
|
try {
|
|
2762
|
-
var _window, _window$globalConfigs;
|
|
2763
|
-
|
|
2764
2760
|
var params = new URLSearchParams();
|
|
2765
2761
|
Object.entries(details).forEach(function (_ref) {
|
|
2766
2762
|
var key = _ref[0],
|
|
@@ -2774,7 +2770,7 @@ var LoginService = {
|
|
|
2774
2770
|
method: "post",
|
|
2775
2771
|
params: params,
|
|
2776
2772
|
headers: {
|
|
2777
|
-
authorization: "Basic
|
|
2773
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
2778
2774
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
2779
2775
|
}
|
|
2780
2776
|
};
|
|
@@ -35448,8 +35444,6 @@ var Complaint = {
|
|
|
35448
35444
|
|
|
35449
35445
|
var UserService = {
|
|
35450
35446
|
authenticate: function authenticate(details) {
|
|
35451
|
-
var _window, _window$globalConfigs;
|
|
35452
|
-
|
|
35453
35447
|
var data = new URLSearchParams();
|
|
35454
35448
|
Object.entries(details).forEach(function (_ref) {
|
|
35455
35449
|
var key = _ref[0],
|
|
@@ -35463,7 +35457,7 @@ var UserService = {
|
|
|
35463
35457
|
url: Urls.Authenticate,
|
|
35464
35458
|
data: data,
|
|
35465
35459
|
headers: {
|
|
35466
|
-
authorization: "Basic
|
|
35460
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
35467
35461
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
35468
35462
|
}
|
|
35469
35463
|
});
|
|
@@ -36256,9 +36250,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
|
|
|
36256
36250
|
var valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
36257
36251
|
setStoredValue(valueToStore);
|
|
36258
36252
|
Digit.SessionStorage.set(key, valueToStore);
|
|
36259
|
-
} catch (err) {
|
|
36260
|
-
console.log(err);
|
|
36261
|
-
}
|
|
36253
|
+
} catch (err) {}
|
|
36262
36254
|
};
|
|
36263
36255
|
|
|
36264
36256
|
var clearValue = function clearValue() {
|
|
@@ -36374,7 +36366,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36374
36366
|
return Digit.PaymentService.fetchBill(_tenantId, params);
|
|
36375
36367
|
}, _extends({
|
|
36376
36368
|
retry: function retry(count, err) {
|
|
36377
|
-
console.log(err, "inside the payment hook");
|
|
36378
36369
|
return false;
|
|
36379
36370
|
}
|
|
36380
36371
|
}, config)),
|
|
@@ -37025,43 +37016,38 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37025
37016
|
};
|
|
37026
37017
|
|
|
37027
37018
|
var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
37028
|
-
var _Err$response, _Err$response$data, _Err$response$data$Er
|
|
37019
|
+
var _Err$response, _Err$response$data, _Err$response$data$Er;
|
|
37029
37020
|
|
|
37030
37021
|
if (Err !== null && Err !== void 0 && (_Err$response = Err.response) !== null && _Err$response !== void 0 && (_Err$response$data = _Err$response.data) !== null && _Err$response$data !== void 0 && (_Err$response$data$Er = _Err$response$data.Errors) !== null && _Err$response$data$Er !== void 0 && _Err$response$data$Er.some(function (e) {
|
|
37031
37022
|
return e.code === "EG_PT_INVALID_SEARCH" && e.message === " Search is not allowed on empty Criteria, Atleast one criteria should be provided with tenantId for EMPLOYEE";
|
|
37032
37023
|
})) return [];
|
|
37033
|
-
console.log(Err === null || Err === void 0 ? void 0 : (_Err$response2 = Err.response) === null || _Err$response2 === void 0 ? void 0 : _Err$response2.data, " this is error");
|
|
37034
37024
|
throw Err;
|
|
37035
37025
|
};
|
|
37036
37026
|
|
|
37037
37027
|
var callMiddlewares = function callMiddlewares(data, middlewares) {
|
|
37038
|
-
|
|
37039
|
-
|
|
37040
|
-
var itr = -1;
|
|
37028
|
+
var applyBreak = false;
|
|
37029
|
+
var itr = -1;
|
|
37041
37030
|
|
|
37042
|
-
|
|
37043
|
-
|
|
37044
|
-
|
|
37031
|
+
var _break = function _break() {
|
|
37032
|
+
return applyBreak = true;
|
|
37033
|
+
};
|
|
37045
37034
|
|
|
37046
|
-
|
|
37047
|
-
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37054
|
-
|
|
37055
|
-
|
|
37056
|
-
|
|
37057
|
-
|
|
37035
|
+
var _next = function _next(data) {
|
|
37036
|
+
try {
|
|
37037
|
+
if (!applyBreak && ++itr < middlewares.length) {
|
|
37038
|
+
var key = Object.keys(middlewares[itr])[0];
|
|
37039
|
+
var nextMiddleware = middlewares[itr][key];
|
|
37040
|
+
var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
|
|
37041
|
+
if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
|
|
37042
|
+
} else return Promise.resolve(data);
|
|
37043
|
+
} catch (e) {
|
|
37044
|
+
return Promise.reject(e);
|
|
37045
|
+
}
|
|
37046
|
+
};
|
|
37058
37047
|
|
|
37059
|
-
|
|
37060
|
-
|
|
37061
|
-
|
|
37062
|
-
} catch (e) {
|
|
37063
|
-
return Promise.reject(e);
|
|
37064
|
-
}
|
|
37048
|
+
return Promise.resolve(_next(data)).then(function (ret) {
|
|
37049
|
+
return ret || [];
|
|
37050
|
+
});
|
|
37065
37051
|
};
|
|
37066
37052
|
|
|
37067
37053
|
var useInboxGeneral = function useInboxGeneral(_ref4) {
|
|
@@ -37614,7 +37600,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
|
|
|
37614
37600
|
}) : null;
|
|
37615
37601
|
return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
|
|
37616
37602
|
} else {
|
|
37617
|
-
console.log("error fetching complaint details or service defs");
|
|
37618
37603
|
return {};
|
|
37619
37604
|
}
|
|
37620
37605
|
});
|
|
@@ -38315,6 +38300,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
|
|
|
38315
38300
|
|
|
38316
38301
|
case "PostFieldsConfig":
|
|
38317
38302
|
return usePostFieldsConfig();
|
|
38303
|
+
|
|
38304
|
+
default:
|
|
38305
|
+
return null;
|
|
38318
38306
|
}
|
|
38319
38307
|
};
|
|
38320
38308
|
|
|
@@ -39634,6 +39622,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
39634
39622
|
switch (type) {
|
|
39635
39623
|
case "GenderType":
|
|
39636
39624
|
return usePTGenders();
|
|
39625
|
+
|
|
39626
|
+
default:
|
|
39627
|
+
return null;
|
|
39637
39628
|
}
|
|
39638
39629
|
};
|
|
39639
39630
|
|
|
@@ -39746,6 +39737,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
|
|
|
39746
39737
|
|
|
39747
39738
|
case "applicationStatus":
|
|
39748
39739
|
return useMCollectApplcationStatus();
|
|
39740
|
+
|
|
39741
|
+
default:
|
|
39742
|
+
return null;
|
|
39749
39743
|
}
|
|
39750
39744
|
};
|
|
39751
39745
|
|
|
@@ -40489,6 +40483,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
40489
40483
|
switch (type) {
|
|
40490
40484
|
case "GenderType":
|
|
40491
40485
|
return useTLGenders();
|
|
40486
|
+
|
|
40487
|
+
default:
|
|
40488
|
+
return null;
|
|
40492
40489
|
}
|
|
40493
40490
|
};
|
|
40494
40491
|
|
|
@@ -40982,6 +40979,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
|
|
|
40982
40979
|
|
|
40983
40980
|
case "CancelReceiptReasonAndStatus":
|
|
40984
40981
|
return useCancelReceiptReasonAndStatus();
|
|
40982
|
+
|
|
40983
|
+
default:
|
|
40984
|
+
return null;
|
|
40985
40985
|
}
|
|
40986
40986
|
};
|
|
40987
40987
|
|
|
@@ -41141,7 +41141,6 @@ var mobileCheck = function mobileCheck() {
|
|
|
41141
41141
|
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true;
|
|
41142
41142
|
})(navigator.userAgent || navigator.vendor || window.opera);
|
|
41143
41143
|
|
|
41144
|
-
console.log("check", check);
|
|
41145
41144
|
return check;
|
|
41146
41145
|
};
|
|
41147
41146
|
|