@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.js
CHANGED
|
@@ -220,7 +220,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
|
|
|
220
220
|
var index = getIndex(id, fieldList);
|
|
221
221
|
|
|
222
222
|
if (!action) {
|
|
223
|
-
console.log("no action found");
|
|
224
223
|
return;
|
|
225
224
|
}
|
|
226
225
|
|
|
@@ -2557,7 +2556,6 @@ var StoreService = {
|
|
|
2557
2556
|
},
|
|
2558
2557
|
defaultData: function (stateCode, moduleCode, language) {
|
|
2559
2558
|
try {
|
|
2560
|
-
console.log(moduleCode, stateCode);
|
|
2561
2559
|
var LocalePromise = LocalizationService.getLocale({
|
|
2562
2560
|
modules: ["rainmaker-" + moduleCode.toLowerCase()],
|
|
2563
2561
|
locale: language,
|
|
@@ -2762,8 +2760,6 @@ var LoginService = {
|
|
|
2762
2760
|
},
|
|
2763
2761
|
authenticate: function (details, stateCode) {
|
|
2764
2762
|
try {
|
|
2765
|
-
var _window, _window$globalConfigs;
|
|
2766
|
-
|
|
2767
2763
|
var params = new URLSearchParams();
|
|
2768
2764
|
Object.entries(details).forEach(function (_ref) {
|
|
2769
2765
|
var key = _ref[0],
|
|
@@ -2777,7 +2773,7 @@ var LoginService = {
|
|
|
2777
2773
|
method: "post",
|
|
2778
2774
|
params: params,
|
|
2779
2775
|
headers: {
|
|
2780
|
-
authorization: "Basic
|
|
2776
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
2781
2777
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
2782
2778
|
}
|
|
2783
2779
|
};
|
|
@@ -35451,8 +35447,6 @@ var Complaint = {
|
|
|
35451
35447
|
|
|
35452
35448
|
var UserService = {
|
|
35453
35449
|
authenticate: function authenticate(details) {
|
|
35454
|
-
var _window, _window$globalConfigs;
|
|
35455
|
-
|
|
35456
35450
|
var data = new URLSearchParams();
|
|
35457
35451
|
Object.entries(details).forEach(function (_ref) {
|
|
35458
35452
|
var key = _ref[0],
|
|
@@ -35466,7 +35460,7 @@ var UserService = {
|
|
|
35466
35460
|
url: Urls.Authenticate,
|
|
35467
35461
|
data: data,
|
|
35468
35462
|
headers: {
|
|
35469
|
-
authorization: "Basic
|
|
35463
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
35470
35464
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
35471
35465
|
}
|
|
35472
35466
|
});
|
|
@@ -36259,9 +36253,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
|
|
|
36259
36253
|
var valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
36260
36254
|
setStoredValue(valueToStore);
|
|
36261
36255
|
Digit.SessionStorage.set(key, valueToStore);
|
|
36262
|
-
} catch (err) {
|
|
36263
|
-
console.log(err);
|
|
36264
|
-
}
|
|
36256
|
+
} catch (err) {}
|
|
36265
36257
|
};
|
|
36266
36258
|
|
|
36267
36259
|
var clearValue = function clearValue() {
|
|
@@ -36377,7 +36369,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36377
36369
|
return Digit.PaymentService.fetchBill(_tenantId, params);
|
|
36378
36370
|
}, _extends({
|
|
36379
36371
|
retry: function retry(count, err) {
|
|
36380
|
-
console.log(err, "inside the payment hook");
|
|
36381
36372
|
return false;
|
|
36382
36373
|
}
|
|
36383
36374
|
}, config)),
|
|
@@ -37028,43 +37019,38 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37028
37019
|
};
|
|
37029
37020
|
|
|
37030
37021
|
var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
37031
|
-
var _Err$response, _Err$response$data, _Err$response$data$Er
|
|
37022
|
+
var _Err$response, _Err$response$data, _Err$response$data$Er;
|
|
37032
37023
|
|
|
37033
37024
|
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) {
|
|
37034
37025
|
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";
|
|
37035
37026
|
})) return [];
|
|
37036
|
-
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");
|
|
37037
37027
|
throw Err;
|
|
37038
37028
|
};
|
|
37039
37029
|
|
|
37040
37030
|
var callMiddlewares = function callMiddlewares(data, middlewares) {
|
|
37041
|
-
|
|
37042
|
-
|
|
37043
|
-
var itr = -1;
|
|
37031
|
+
var applyBreak = false;
|
|
37032
|
+
var itr = -1;
|
|
37044
37033
|
|
|
37045
|
-
|
|
37046
|
-
|
|
37047
|
-
|
|
37034
|
+
var _break = function _break() {
|
|
37035
|
+
return applyBreak = true;
|
|
37036
|
+
};
|
|
37048
37037
|
|
|
37049
|
-
|
|
37050
|
-
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37054
|
-
|
|
37055
|
-
|
|
37056
|
-
|
|
37057
|
-
|
|
37058
|
-
|
|
37059
|
-
|
|
37060
|
-
|
|
37038
|
+
var _next = function _next(data) {
|
|
37039
|
+
try {
|
|
37040
|
+
if (!applyBreak && ++itr < middlewares.length) {
|
|
37041
|
+
var key = Object.keys(middlewares[itr])[0];
|
|
37042
|
+
var nextMiddleware = middlewares[itr][key];
|
|
37043
|
+
var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
|
|
37044
|
+
if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
|
|
37045
|
+
} else return Promise.resolve(data);
|
|
37046
|
+
} catch (e) {
|
|
37047
|
+
return Promise.reject(e);
|
|
37048
|
+
}
|
|
37049
|
+
};
|
|
37061
37050
|
|
|
37062
|
-
|
|
37063
|
-
|
|
37064
|
-
|
|
37065
|
-
} catch (e) {
|
|
37066
|
-
return Promise.reject(e);
|
|
37067
|
-
}
|
|
37051
|
+
return Promise.resolve(_next(data)).then(function (ret) {
|
|
37052
|
+
return ret || [];
|
|
37053
|
+
});
|
|
37068
37054
|
};
|
|
37069
37055
|
|
|
37070
37056
|
var useInboxGeneral = function useInboxGeneral(_ref4) {
|
|
@@ -37617,7 +37603,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
|
|
|
37617
37603
|
}) : null;
|
|
37618
37604
|
return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
|
|
37619
37605
|
} else {
|
|
37620
|
-
console.log("error fetching complaint details or service defs");
|
|
37621
37606
|
return {};
|
|
37622
37607
|
}
|
|
37623
37608
|
});
|
|
@@ -38318,6 +38303,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
|
|
|
38318
38303
|
|
|
38319
38304
|
case "PostFieldsConfig":
|
|
38320
38305
|
return usePostFieldsConfig();
|
|
38306
|
+
|
|
38307
|
+
default:
|
|
38308
|
+
return null;
|
|
38321
38309
|
}
|
|
38322
38310
|
};
|
|
38323
38311
|
|
|
@@ -39637,6 +39625,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
39637
39625
|
switch (type) {
|
|
39638
39626
|
case "GenderType":
|
|
39639
39627
|
return usePTGenders();
|
|
39628
|
+
|
|
39629
|
+
default:
|
|
39630
|
+
return null;
|
|
39640
39631
|
}
|
|
39641
39632
|
};
|
|
39642
39633
|
|
|
@@ -39749,6 +39740,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
|
|
|
39749
39740
|
|
|
39750
39741
|
case "applicationStatus":
|
|
39751
39742
|
return useMCollectApplcationStatus();
|
|
39743
|
+
|
|
39744
|
+
default:
|
|
39745
|
+
return null;
|
|
39752
39746
|
}
|
|
39753
39747
|
};
|
|
39754
39748
|
|
|
@@ -40492,6 +40486,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
40492
40486
|
switch (type) {
|
|
40493
40487
|
case "GenderType":
|
|
40494
40488
|
return useTLGenders();
|
|
40489
|
+
|
|
40490
|
+
default:
|
|
40491
|
+
return null;
|
|
40495
40492
|
}
|
|
40496
40493
|
};
|
|
40497
40494
|
|
|
@@ -40985,6 +40982,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
|
|
|
40985
40982
|
|
|
40986
40983
|
case "CancelReceiptReasonAndStatus":
|
|
40987
40984
|
return useCancelReceiptReasonAndStatus();
|
|
40985
|
+
|
|
40986
|
+
default:
|
|
40987
|
+
return null;
|
|
40988
40988
|
}
|
|
40989
40989
|
};
|
|
40990
40990
|
|
|
@@ -41144,7 +41144,6 @@ var mobileCheck = function mobileCheck() {
|
|
|
41144
41144
|
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;
|
|
41145
41145
|
})(navigator.userAgent || navigator.vendor || window.opera);
|
|
41146
41146
|
|
|
41147
|
-
console.log("check", check);
|
|
41148
41147
|
return check;
|
|
41149
41148
|
};
|
|
41150
41149
|
|